:root {
  --bg-page: #f3efe8;
  --bg-panel: #f9f6f2;
  --bg-soft: #ece3d5;
  --header-bg: rgba(255,255,255,0.88);
  --nav-bg: rgba(248,244,238,0.96);
  --nav-text: #1e1c1a;
  --accent: #6d7d5f;
  --accent-strong: #485943;
  --accent-soft: #edf1ea;
  --accent-warm: #d7b48f;
  --link: #243824;
  --text: #171612;
  --muted: #5c584f;
  --border: rgba(23, 22, 18, 0.08);
  --shadow: rgba(19, 21, 19, 0.08);
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.52), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #f7f3ee 0%, #efe7dc 100%);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 18px auto 40px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(4px);
}

.site-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  width: calc(100% + 2px);
  margin: -1px -1px 0;
  padding-top: 18px;
  background: var(--header-bg);
}

.brand-wrap {
  text-align: center;
  margin-bottom: 10px;
  padding: 10px 0 8px;
}

.site-title {
  margin: 0;
  padding: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.08;
  text-transform: none;
  font-family: inherit;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.main-navigation {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 18px;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--nav-text);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus,
.nav-menu > li.current > a {
  text-decoration: none;
  background: rgba(109, 125, 95, 0.08);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 220px;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(17,17,17,0.08);
  padding: 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 10;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu,
.menu-item-has-children.open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  display: block;
  padding: 12px 15px;
  color: var(--text);
  font-size: 0.9rem;
}

.sub-menu a:hover,
.sub-menu a:focus {
  text-decoration: none;
  background: var(--accent-soft);
}

.header-banner {
  display: block;
  width: 100%;
  margin-top: 0;
}

.header-banner img {
  width: 100%;
  height: auto;
  display: block;
  background: #e8e1d9;
}

.site-shell {
  display: block;
  padding: 24px 0 0;
}

.main-column {
  min-width: 0;
  background: transparent;
  padding: 28px 20px 10px;
}

.entry-header {
  margin: 0 6px 1.5rem;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.entry-title {
  max-width: 1000px;
  margin: 0;
  color: #111;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
}

.home-main-column {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-top: 18px;
}

.entry-content {
  padding: 0 6px 32px;
  color: var(--text);
}

.entry-content p {
  max-width: 900px;
  margin: 0 0 1.2rem;
  text-align: left;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.entry-content > p:first-child:not([class]) {
  color: #292720;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.entry-content a:not(.button) {
  text-decoration: underline;
  text-decoration-color: rgba(72,89,67,0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:not(.button):hover,
.entry-content a:not(.button):focus {
  text-decoration-color: currentColor;
}

.entry-content p strong,
.entry-content strong {
  color: var(--text);
  font-weight: 700;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2.5rem 0 1rem;
  padding-top: 14px;
  border-top: 1px solid rgba(23,22,18,0.18);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #111;
  text-align: left;
  line-height: 1.12;
}

.entry-content h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.entry-content h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.entry-content h4 {
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
}

.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child {
  margin-top: 0;
}

.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child {
  padding-top: 0;
  border-top: 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem;
  max-width: 900px;
  padding-left: 1.25rem;
  color: var(--muted);
}

.entry-content li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
  line-height: 1.75;
}

.entry-content .page-list,
.entry-content .resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  border-top: 1px solid rgba(23,22,18,0.18);
  border-bottom: 1px solid rgba(23,22,18,0.18);
  list-style: none;
}

.entry-content .page-list li,
.entry-content .resource-list li {
  margin: 0;
  padding: 0;
  border-right: 1px solid rgba(23,22,18,0.18);
}

.entry-content .page-list li:last-child,
.entry-content .resource-list li:last-child {
  border-right: 0;
}

.entry-content .page-list a,
.entry-content .resource-list a {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #171612;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.entry-content .page-list li:first-child a,
.entry-content .resource-list li:first-child a {
  padding-left: 0;
}

.entry-content .page-list a:hover,
.entry-content .resource-list a:hover,
.entry-content .page-list a:focus,
.entry-content .resource-list a:focus {
  color: var(--accent-strong);
  background: rgba(237,241,234,0.4);
}

.resource-list a span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-content .page-list a {
  min-height: 132px;
  font-size: 1rem;
  line-height: 1.6;
}

.entry-content .page-list a strong {
  color: #171612;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

.entry-content .page-list a span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.entry-content blockquote:not(.home-dojo-kun) {
  max-width: 900px;
  margin: 2rem 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent-strong);
  background: rgba(237,241,234,0.55);
  color: #292720;
}

.entry-content blockquote:not(.home-dojo-kun) p {
  margin: 0;
  color: inherit;
}

.entry-content dl {
  max-width: 900px;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.entry-content dt {
  margin: 0;
  padding: 16px 0 5px;
  border-top: 1px solid rgba(23,22,18,0.12);
  color: #171612;
  font-weight: 700;
}

.entry-content dd {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
}

.entry-content table {
  border-collapse: collapse;
}

.contact-table {
  width: 100%;
  margin: 1.25rem auto;
}

.contact-table td {
  width: 50%;
  padding: 0.75rem 1rem;
  vertical-align: top;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
}

.contact-grid,
.schedule-grid,
.location-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.6rem 0 2rem;
  border-top: 1px solid rgba(23,22,18,0.18);
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.contact-grid > div,
.schedule-card,
.location-directory-card {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid rgba(23,22,18,0.18);
}

.contact-grid > div:first-child,
.schedule-card:first-child,
.location-directory-card:first-child {
  padding-left: 0;
}

.contact-grid > div:last-child,
.schedule-card:last-child,
.location-directory-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.contact-grid h3,
.schedule-card h2,
.schedule-card h3,
.location-directory-card h2,
.location-directory-card h3 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.schedule-card,
.location-directory-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.schedule-card .button,
.location-directory-card .button {
  margin-top: auto;
}

.page-next-steps {
  width: calc(100% + 2px);
  margin: 0 -1px;
  padding: 22px 0 24px;
  background: var(--nav-bg);
  border-top: 1px solid rgba(23,22,18,0.18);
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.page-next-steps-inner {
  width: min(var(--content-width), calc(100% - 82px));
  margin: 0 auto;
}

.page-next-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border-top: 1px solid rgba(23,22,18,0.16);
  border-bottom: 1px solid rgba(23,22,18,0.16);
}

.page-next-steps-grid a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-right: 1px solid rgba(23,22,18,0.16);
  color: var(--muted);
  text-decoration: none !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.page-next-steps-grid a:first-child {
  padding-left: 0;
}

.page-next-steps-grid a:last-child {
  padding-right: 0;
  border-right: 0;
}

.page-next-steps-grid a:hover,
.page-next-steps-grid a:focus {
  color: var(--accent-strong);
  background: rgba(255,255,255,0.45);
}

.page-next-steps-grid strong {
  color: #171612;
  font-size: 0.95rem;
}

.page-next-steps-grid span {
  font-size: 0.82rem;
  line-height: 1.5;
}

.post-header {
  margin: 0 6px 1.5rem;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.post-header h1 {
  max-width: 1000px;
  margin: 0;
  color: #111;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.post-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-content {
  padding: 0 6px 32px;
}

.archive-event {
  max-width: 900px;
  margin: 1.5rem 0 3rem;
  padding: 20px 0;
  border-top: 1px solid rgba(23,22,18,0.18);
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.archive-event h3 {
  margin-top: 0;
}

.contact-table h3 {
  text-align: left;
}

.kata-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.kata-table {
  width: 100%;
  min-width: 560px;
  table-layout: fixed;
  text-align: center;
  line-height: 1.4;
}

.kata-table th,
.kata-table td {
  border: 1px solid var(--border);
  padding: 0.45rem;
}

.kata-table thead {
  background: var(--bg-soft);
}

.kata-table th:first-child,
.kata-table td:first-child {
  text-align: left;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 1.4rem 0 2.2rem;
}

.photo-gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #e5e0d8;
  cursor: zoom-in;
}

.photo-gallery a:hover,
.photo-gallery a:focus {
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  filter: saturate(0.84);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-gallery a:hover img,
.photo-gallery a:focus img {
  transform: scale(1.045);
  filter: saturate(1);
}

.photo-gallery--centered {
  grid-template-columns: minmax(200px, 360px);
  justify-content: center;
}

.photo-event {
  margin: 0 6px 3rem;
  padding-top: 18px;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.photo-event .schedule-kicker {
  margin-bottom: 8px;
}

.entry-content .photo-event h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.entry-content .photo-event > p:not(.schedule-kicker) {
  margin-bottom: 0.5rem;
}

.video-list {
  display: grid;
  max-width: 900px;
  margin: 1.5rem 0 0;
  border-top: 1px solid rgba(23,22,18,0.14);
}

.entry-content .video-list .video-list-heading {
  margin: 0;
  padding: 14px 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-list > a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23,22,18,0.14);
  color: #171612;
  text-decoration: none !important;
}

.video-list > a:hover,
.video-list > a:focus {
  color: var(--accent-strong);
}

.photo-lightbox {
  width: min(100vw, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 30px;
  border: 0;
  background: rgba(15,16,14,0.96);
  color: #f7f5ef;
}

.photo-lightbox::backdrop {
  background: rgba(15,16,14,0.94);
}

.photo-lightbox-content {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.photo-lightbox figure {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.photo-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100% - 48px);
  object-fit: contain;
}

.photo-lightbox-caption {
  max-width: 900px;
  padding: 12px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  text-align: center;
}

.photo-lightbox button {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.photo-lightbox button:hover,
.photo-lightbox button:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
}

.photo-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.photo-lightbox-previous {
  grid-column: 1;
  grid-row: 1;
}

.photo-lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

.photo-lightbox-count {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  text-align: center;
}

.home-cta {
  max-width: 100%;
  margin: 0 0 1.6rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(236,227,213,0.9));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 18px 28px rgba(19, 21, 17, 0.08);
  animation: fadeUp 0.55s ease both;
}

.home-cta h3 {
  margin: 0 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-cta p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.home-cta .schedule-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
}

.button {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 24px;
  color: #fff !important;
  background: #252820;
  border-radius: 0;
  border: 1px solid #252820;
  text-decoration: none;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.button:hover,
.button:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  text-decoration: none;
  box-shadow: none;
}

.schedule-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5 !important;
  text-transform: uppercase;
}

.schedule-detail-link {
  display: inline-block;
  margin-top: 15px;
  color: #262721;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none !important;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.schedule-detail-link:hover,
.schedule-detail-link:focus {
  color: var(--accent-strong);
  text-decoration: underline !important;
}

.instructor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none !important;
  margin: 1.5rem 0 2rem !important;
  padding: 0 !important;
  border-top: 1px solid rgba(23,22,18,0.18);
  list-style: none;
}

.instructor-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.instructor-list li:nth-child(odd) {
  border-right: 1px solid rgba(23,22,18,0.18);
}

.instructor-list li:nth-child(even) a {
  padding-left: 22px;
}

.instructor-list a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px 16px 0;
  text-decoration: none !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.instructor-list a:hover,
.instructor-list a:focus {
  color: var(--accent-strong);
}

.instructor-list strong {
  color: #171612;
  font-size: 1.05rem;
}

.instructor-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.instructor-profile {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin: 0 6px 2.5rem;
  padding-top: 24px;
}

.instructor-profile-aside {
  min-width: 0;
  padding-right: clamp(22px, 3vw, 36px);
  border-right: 1px solid rgba(23,22,18,0.18);
}

.instructor-portrait {
  width: 100%;
  max-width: 240px;
  margin: 0 0 18px;
}

.instructor-portrait a {
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}

.instructor-portrait img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
  transition: filter 0.25s ease;
}

.instructor-portrait a:hover img,
.instructor-portrait a:focus img {
  filter: grayscale(0.35);
}

.instructor-credentials {
  margin: 0;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.instructor-credentials dt {
  margin: 0;
  padding: 13px 0 3px;
  border-top: 1px solid rgba(23,22,18,0.12);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.instructor-credentials dd {
  margin: 0;
  padding: 0 0 13px;
  color: #171612;
  font-size: 0.95rem;
  line-height: 1.55;
}

.instructor-profile-bio {
  min-width: 0;
}

.entry-content .instructor-profile-bio p {
  max-width: none;
  text-align: left !important;
}

.entry-content .instructor-profile-bio h2 {
  margin: 2rem 0 0.8rem;
  padding-top: 14px;
  border-top: 1px solid rgba(23,22,18,0.18);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.entry-content .instructor-profile-bio .instructor-achievements {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}

.entry-content .instructor-profile-bio .instructor-achievements li {
  margin-bottom: 0.55rem;
  padding-left: 0.15rem;
  line-height: 1.65;
}

.entry-content .instructor-profile-bio .instructor-achievements li::marker {
  color: var(--accent-strong);
}

.dojo-profile {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin: 0 6px 2.5rem;
  padding-top: 24px;
}

.dojo-profile-aside {
  min-width: 0;
  padding-right: clamp(22px, 3vw, 36px);
  border-right: 1px solid rgba(23,22,18,0.18);
}

.dojo-profile-photos {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.dojo-profile-photos > a,
.dojo-profile-photo-pair a {
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}

.dojo-profile-photos img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  transition: filter 0.25s ease;
}

.dojo-profile-photos a:hover img,
.dojo-profile-photos a:focus img {
  filter: grayscale(0.35);
}

.dojo-profile-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dojo-profile-photo-pair img {
  height: 76px;
  object-fit: cover;
}

.dojo-profile-details {
  margin: 0;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.dojo-profile-details dt {
  margin: 0;
  padding: 13px 0 3px;
  border-top: 1px solid rgba(23,22,18,0.12);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dojo-profile-details dd {
  margin: 0;
  padding: 0 0 13px;
  color: #171612;
  font-size: 0.95rem;
  line-height: 1.55;
}

.dojo-profile-details a {
  color: #171612;
}

.dojo-profile-content {
  min-width: 0;
}

.entry-content .dojo-profile-content p {
  max-width: none;
  text-align: left !important;
}

.dojo-profile-content .dojo-map {
  height: 240px;
  margin-top: 22px;
  margin-bottom: 24px;
}

.dojo-training-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 560px;
  margin: 0 0 12px;
  padding: 14px 0 10px;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.entry-content .dojo-training-summary p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  line-height: 1.5;
}

.dojo-training-summary strong {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dojo-training-summary span {
  color: #171612;
  font-size: 0.98rem;
}

.dojo-enroll-button {
  margin-top: 0;
}

.dojo-profile + h3 {
  margin-top: 2rem;
}

.widget {
  margin-top: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
}

.widget h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--text);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-block;
  opacity: 0.82;
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 760px;
}

.page-list li {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.callout {
  max-width: 760px;
  margin: 1.6rem auto;
  padding: 16px 18px;
  background: rgba(237,241,234,0.8);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  text-align: left;
}

.site-footer {
  position: relative;
  width: calc(100% + 2px);
  margin: 0 -1px -1px;
  padding: 0;
}

.footer-inner {
  padding: 30px 24px 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.92rem;
  color: #f5f3ee;
  background: #191b18;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 18px;
  align-items: start;
}

.footer-column {
  min-width: 0;
  margin-top: 0;
}

.footer-column h3,
.footer-column h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column p,
.footer-column li {
  margin: 0 0 8px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column a {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 1;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #f4f1e9;
  border-radius: 0;
  background: #f4f1e9;
  color: #191b18 !important;
  font-weight: 700;
  box-shadow: none;
}

.footer-cta:hover,
.footer-cta:focus {
  background: #fff;
  border-color: #fff;
  color: #191b18 !important;
  box-shadow: none;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  color: #fff;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.footer-column a.facebook-link {
  color: #fff;
}

.footer-column a.facebook-link:hover,
.footer-column a.facebook-link:focus {
  text-decoration: none;
  transform: translateY(-2px);
  color: #d8dfcf;
  opacity: 1;
}

.facebook-link svg {
  display: block;
  width: 22px;
  height: 35px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 14px 0 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  padding-bottom: 8px;
}

.menu-toggle {
  display: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  align-items: stretch;
  margin: 0 -20px 4rem;
  padding: 0 20px;
  border-top: 1px solid rgba(23,22,18,0.18);
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.home-hero .home-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 28px 32px 0;
  margin: 0;
  border: 0;
  border-right: 1px solid rgba(23,22,18,0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  animation: none;
}

.home-hero .home-spotlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px 0 32px 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-hero .mini-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-hero .home-spotlight h1 {
  margin: 0;
  max-width: 780px;
  color: #111;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.99;
  letter-spacing: -0.07em;
}

.home-hero .home-spotlight p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.home-cta h3 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.home-cta p {
  margin: 0 0 10px;
  color: #222;
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-cta .schedule-link {
  display: inline-flex;
  margin-top: 10px;
  padding-bottom: 4px;
  color: #222;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-cta .schedule-link:hover,
.home-cta .schedule-link:focus {
  color: var(--accent-strong);
  text-decoration: none;
}

.home-cta .button {
  margin-top: 8px;
  padding: 11px 19px;
  border-radius: 2px;
  background: #252820;
  box-shadow: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-cta .button:hover,
.home-cta .button:focus {
  background: var(--accent-strong);
  box-shadow: none;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid rgba(23,22,18,0.18);
  width: 100%;
}

.metric {
  padding: 14px 10px 0 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.metric + .metric {
  padding-left: 12px;
  border-left: 1px solid rgba(23,22,18,0.18);
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: #111;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.25;
}

.metric span {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-content-section {
  margin: 0 0 4rem;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.62fr) minmax(0, 1.38fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0 22px;
}

.home-section-kicker,
.entry-content .home-section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.home-section-heading h2 {
  margin: -5px 0 0;
  padding: 0;
  border: 0;
  color: #111;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.home-intro-grid,
.home-training-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 22px 0 30px;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.entry-content .home-intro-grid p,
.entry-content .home-training-grid p,
.entry-content .home-founder-copy p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.8;
}

.entry-content .home-intro-grid p:last-child,
.entry-content .home-training-grid p:last-child,
.entry-content .home-founder-copy p:last-child {
  margin-bottom: 0;
}

.entry-content .home-intro-grid .home-lead,
.entry-content .home-training-grid .home-lead {
  color: #292720;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.home-founder-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 28px 0 0;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.home-founder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.home-founder > a {
  display: block;
  width: min(100%, 200px);
  overflow: hidden;
  filter: grayscale(1);
}

.home-founder img {
  width: 100%;
  height: auto;
}

.home-founder figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-founder figcaption strong {
  color: #111;
  font-size: 0.9rem;
}

.home-founder figcaption span {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.home-training-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.home-training-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.home-training-details p:last-child {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.home-dojo-kun {
  margin: 0 clamp(16px, 6vw, 72px) 4rem;
  padding: 26px clamp(18px, 3vw, 32px) 28px;
  background: var(--nav-bg);
}

.entry-content .home-dojo-kun > p:nth-child(2) {
  max-width: 920px;
  margin: 22px 0 14px;
  color: #171612;
  font-size: clamp(1.55rem, 3.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.home-dojo-kun cite {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-dojos {
  margin: 4rem -20px 1.5rem;
  border-bottom: 1px solid rgba(23,22,18,0.18);
}

.home-dojos-heading {
  margin: 0;
  padding: 0 20px;
}

.home-dojos .home-section-heading {
  border-top: 1px solid rgba(23,22,18,0.18);
}

.dojo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid rgba(23,22,18,0.18);
}

.dojo-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-right: 1px solid rgba(23,22,18,0.18);
  background: transparent;
  transition: background-color 0.22s ease;
}

.dojo-card:last-child {
  border-right: 0;
}

.dojo-card:hover {
  background: rgba(255,255,255,0.42);
}

.dojo-card-content {
  position: relative;
  padding: 0;
}

.dojo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dojo-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(23,22,18,0.2);
}

.dojo-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.dojo-card-content h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.dojo-venue {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 1rem;
}

.dojo-card address {
  min-height: 3.2em;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.7;
}

.dojo-phone {
  margin: 0 0 22px;
  font-size: 0.95rem;
  font-weight: 600;
}

.dojo-phone a {
  color: var(--muted);
}

.dojo-map {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
  background: var(--bg-soft);
  filter: grayscale(1) contrast(0.94);
}

.dojo-card-actions {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 0 0;
}

.dojo-page-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 0 0;
  color: #282722;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: gap 0.2s ease, color 0.2s ease;
}

.dojo-page-button:hover,
.dojo-page-button:focus {
  gap: 13px;
  color: var(--accent-strong);
  text-decoration: none;
}

.dojo-schedule-note {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(var(--content-width), calc(100% - 24px));
  }

  .main-column {
    padding: 16px 14px 10px;
  }

  .contact-grid,
  .schedule-grid,
  .location-directory-grid,
  .entry-content .page-list,
  .entry-content .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid > div,
  .schedule-card,
  .location-directory-card {
    border-bottom: 1px solid rgba(23,22,18,0.18);
  }

  .contact-grid > div:nth-child(2),
  .schedule-card:nth-child(2),
  .location-directory-card:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .contact-grid > div:nth-child(odd),
  .schedule-card:nth-child(odd),
  .location-directory-card:nth-child(odd) {
    padding-left: 0;
  }

  .contact-grid > div:last-child,
  .schedule-card:last-child,
  .location-directory-card:last-child {
    border-bottom: 0;
  }

  .entry-content .page-list li:nth-child(2n),
  .entry-content .resource-list li:nth-child(2n) {
    border-right: 0;
  }

  .entry-content .page-list li:nth-child(n + 3),
  .entry-content .resource-list li:nth-child(n + 3) {
    border-top: 1px solid rgba(23,22,18,0.18);
  }

  .page-next-steps-grid {
    grid-template-columns: 1fr;
  }

  .page-next-steps-inner {
    width: min(var(--content-width), calc(100% - 66px));
  }

  .page-next-steps-grid a,
  .page-next-steps-grid a:first-child,
  .page-next-steps-grid a:last-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(23,22,18,0.12);
  }

  .page-next-steps-grid a:last-child {
    border-bottom: 0;
  }

  .main-navigation {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 0;
    border: 0;
    background: rgba(20,21,18,0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .main-navigation.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(23,22,18,0.2);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 19px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .menu-toggle.is-open {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1002;
    border-color: rgba(23,22,18,0.2);
    background: #f9f6f2;
  }

  .brand-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 8px 16px 14px;
    text-align: left;
  }

  .site-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    letter-spacing: -0.065em;
    text-align: left;
  }

  .menu-wrap {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: min(88vw, 400px);
    height: 100%;
    overflow-y: auto;
    padding: 82px 26px 32px;
    background: #f9f6f2;
    box-shadow: -18px 0 48px rgba(0,0,0,0.16);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1), visibility 0.28s ease;
  }

  .main-navigation.is-open .menu-wrap {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu > li > a {
    justify-content: space-between;
    padding: 15px 2px;
    border-bottom: 1px solid rgba(23,22,18,0.12);
    color: #222;
    font-size: 0.94rem;
    letter-spacing: 0.1em;
  }

  .menu-item-has-children.open > a::after {
    margin-top: 4px;
    transform: rotate(225deg);
  }

  .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    display: none;
    box-shadow: none;
    border-top: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: transparent;
    padding-left: 12px;
  }

  .menu-item-has-children.open .sub-menu {
    display: block;
  }

  .home-hero {
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
  }

  .home-hero .home-cta {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(23,22,18,0.18);
  }

  .home-hero .home-spotlight {
    padding: 26px 0;
  }

  .home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-intro-grid,
  .home-training-grid,
  .home-founder-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-training-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-training-details p:last-child {
    grid-column: auto;
  }

  .home-founder-row {
    align-items: start;
  }

  .dojo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dojo-card:nth-child(2) {
    border-right: 0;
  }

  .dojo-card:last-child {
    border-top: 1px solid rgba(23,22,18,0.18);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .contact-table,
  .contact-table tbody,
  .contact-table tr,
  .contact-table td {
    display: block;
    width: 100%;
  }

  .contact-table td {
    padding: 0.8rem 0;
  }
}

@media (max-width: 520px) {
  .entry-header {
    margin-right: 0;
    margin-left: 0;
  }

  .entry-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .entry-content {
    padding-right: 0;
    padding-left: 0;
  }

  .contact-grid,
  .schedule-grid,
  .location-directory-grid,
  .entry-content .page-list,
  .entry-content .resource-list {
    grid-template-columns: 1fr;
  }

  .contact-grid > div,
  .schedule-card,
  .location-directory-card,
  .contact-grid > div:first-child,
  .schedule-card:first-child,
  .location-directory-card:first-child,
  .contact-grid > div:last-child,
  .schedule-card:last-child,
  .location-directory-card:last-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(23,22,18,0.18);
  }

  .contact-grid > div:last-child,
  .schedule-card:last-child,
  .location-directory-card:last-child {
    border-bottom: 0;
  }

  .entry-content .page-list li,
  .entry-content .resource-list li {
    border-right: 0;
    border-bottom: 1px solid rgba(23,22,18,0.18);
  }

  .entry-content .page-list li:last-child,
  .entry-content .resource-list li:last-child {
    border-bottom: 0;
  }

  .entry-content .page-list li:nth-child(n + 3),
  .entry-content .resource-list li:nth-child(n + 3) {
    border-top: 0;
  }

  .entry-content .page-list a,
  .entry-content .resource-list a,
  .entry-content .page-list li:first-child a,
  .entry-content .resource-list li:first-child a {
    padding: 14px 0;
  }

  .instructor-list {
    grid-template-columns: 1fr;
  }

  .instructor-list li:nth-child(odd) {
    border-right: 0;
  }

  .instructor-list li:nth-child(even) a {
    padding-left: 0;
  }

  .home-hero {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric + .metric {
    padding: 10px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(23,22,18,0.18);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .home-section-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dojo-cards {
    grid-template-columns: 1fr;
  }

  .home-dojos {
    margin-right: -14px;
    margin-left: -14px;
  }

  .home-dojos-heading {
    padding-right: 16px;
    padding-left: 16px;
  }
  .dojo-card,
  .dojo-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(23,22,18,0.18);
    padding-right: 18px;
    padding-left: 18px;
  }

  .dojo-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  .instructor-profile {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-right: 0;
    margin-left: 0;
    padding-top: 18px;
  }

  .instructor-profile-aside {
    width: 100%;
    max-width: 420px;
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(23,22,18,0.18);
  }

  .instructor-portrait {
    max-width: 220px;
  }

  .instructor-credentials {
    max-width: 420px;
  }

  .dojo-profile {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-right: 0;
    margin-left: 0;
    padding-top: 18px;
  }

  .dojo-profile-aside {
    width: 100%;
    max-width: 560px;
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(23,22,18,0.18);
  }

  .dojo-profile-photos > a:first-child img {
    max-height: 300px;
    object-fit: cover;
  }

  .dojo-profile-photo-pair img {
    height: clamp(88px, 23vw, 140px);
  }

  .dojo-profile-content .dojo-map {
    height: clamp(200px, 56vw, 280px);
  }
}

@media (max-width: 520px) {
  .page-next-steps-inner {
    width: calc(100% - 54px);
  }
}

@media (max-width: 860px) {
  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .photo-event {
    margin-right: 0;
    margin-left: 0;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-gallery--centered {
    grid-template-columns: minmax(0, 280px);
  }

  .photo-lightbox {
    padding: 14px;
  }

  .photo-lightbox-content {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .photo-lightbox button {
    width: 40px;
    height: 44px;
    font-size: 1.6rem;
  }

  .photo-lightbox-image {
    max-height: calc(100% - 56px);
  }
}
