/* ============================================================
   Dojo Zen de Lisboa — Ryumonji
   Shared stylesheet for all inner pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Inter:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --paper:     #f5f0e8;
  --paper-2:   #ede8df;
  --paper-3:   #e5dfd4;
  --ink:       #1c1812;
  --stone:     #1c1812;
  --mist:      rgba(28, 24, 18, 0.55);
  --ink-2:     var(--paper-3);
  --ghost:     rgba(28, 24, 18, 0.05);
  --red:       #c4412e;
  --red-dim:   rgba(196, 65, 46, 0.12);
  --gold:      #a8844a;
  --gold-dim:  rgba(168, 132, 74, 0.18);
  --rule:      rgba(28, 24, 18, 0.1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* ── Night mode ── */
html {
  transition: background-color 0.35s ease, color 0.35s ease;
}

html.night {
  --paper:     #0e0d0b;
  --paper-2:   #131210;
  --paper-3:   #1a1815;
  --ink:       #ddd7cc;
  --stone:     #ddd7cc;
  --mist:      rgba(221, 215, 204, 0.5);
  --ghost:     rgba(221, 215, 204, 0.05);
  --rule:      rgba(221, 215, 204, 0.1);
  --gold:      #b8945a;
}

/* Night mode overrides for hardcoded rgba values */
html.night nav > a,
html.night nav .nav-item > a  { color: rgba(221, 215, 204, 0.7); }
html.night nav > a:hover,
html.night nav > a.active,
html.night nav .nav-item:hover > a { color: var(--ink); }
html.night .mobile-nav a      { color: rgba(221, 215, 204, 0.75); }
html.night #site-header       { background: rgba(14, 13, 11, 0.94); }
html.night #site-header.scrolled { background: rgba(14, 13, 11, 0.96); }
html.night .dropdown           { background: rgba(14, 13, 11, 0.98); border-color: rgba(221,215,204,0.1); }
html.night .dropdown a         { color: rgba(221, 215, 204, 0.65) !important; }
html.night .dropdown a:hover   { color: var(--ink) !important; background: var(--paper-3); }
html.night .mobile-nav         { background: rgba(14, 13, 11, 0.98); }

/* Night: kanji / decorative characters */
html.night .person-photo-fill span { color: rgba(196, 65, 46, 0.4); }
html.night .kanji-watermark        { color: rgba(196, 65, 46, 0.3) !important; }

/* Night toggle button */
.night-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mist);
  padding: 0.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  position: relative;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.night-toggle:hover { color: var(--gold); }
.night-toggle .icon-sun { display: none; }

html.night .night-toggle { color: var(--mist); }
html.night .night-toggle .icon-moon { display: none; }
html.night .night-toggle .icon-sun { display: block; }

@media (max-width: 900px) {
  .night-toggle { display: flex; margin-right: 0.25rem; }
}

@media (min-width: 901px) {
  .night-toggle { display: flex; margin-left: 1.5rem; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow.no-rule::before { display: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  transition: gap 0.2s;
}

.text-link:hover { gap: 1rem; }

.sutra-row { transition: background 0.2s, box-shadow 0.2s; }
.sutra-row:hover { background: var(--ink-2); box-shadow: 2rem 0 0 var(--ink-2), -2rem 0 0 var(--ink-2); }
.sutra-row:hover h3 { color: var(--red); }

.teaching-card:hover { background: var(--ink-2) !important; }
.teaching-card:hover > div:first-child { color: var(--red); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Buttons ── */
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s;
}

.btn-red:hover { background: #d4503c; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(28, 24, 18, 0.22);
  background: none;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ── Header ── */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 5rem;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  justify-content: space-between;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-seal {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-seal span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  line-height: 1;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.25; }

.logo-text .name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.logo-text .sub {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav > a,
nav .nav-item > a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(28, 24, 18, 0.7);
  transition: color 0.2s;
  white-space: nowrap;
}

nav > a:hover,
nav > a.active,
nav .nav-item:hover > a { color: var(--ink); }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3.5px solid currentColor;
  margin-left: 0.4rem;
  opacity: 0.45;
  vertical-align: middle;
  transition: opacity 0.2s;
}

.nav-item:hover > a::after { opacity: 0.8; }

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--rule);
  min-width: 13rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(28,24,18,0.08);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: -1rem;
  right: -1rem;
  height: 0.75rem;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
}

.dropdown a {
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(28,24,18,0.65) !important;
  text-decoration: none !important;
}

.dropdown a:hover { color: var(--ink) !important; background: var(--paper-2); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--ink);
  position: relative;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

/* ── Mobile nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 5rem 0 0 0;
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.7rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a:hover { color: var(--red); }

.mobile-nav-section {
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1.25rem 2rem 0.4rem;
}

/* ── Page hero ── */
.page-hero {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(196, 65, 46, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .eyebrow { margin-bottom: 1.5rem; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 18ch;
}

.page-hero p {
  margin-top: 1.75rem;
  max-width: 50ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mist);
}

/* ── Prose content ── */
.prose {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--mist);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p { margin-bottom: 1.25rem; }

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--ink); font-weight: 500; }

.prose a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(168,132,74,0.3); transition: border-color 0.2s; }

.prose a:hover { border-color: var(--gold); }

.prose blockquote {
  border-left: 2px solid var(--red);
  padding: 0.75rem 0 0.75rem 1.75rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.55;
}

.prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.prose li { margin-bottom: 0.5rem; }

/* ── Section spacing ── */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }

.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ── Divider ── */
.divider { height: 1px; background: var(--rule); margin: 3rem 0; }

/* ── Contact Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field.full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  transition: border-color 0.2s;
  outline: none;
  border-radius: 0;
  width: 100%;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(28, 24, 18, 0.35);
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(28, 24, 18, 0.3); }

.form-textarea { resize: vertical; min-height: 8rem; }

.form-note {
  font-size: 1rem;
  color: var(--mist);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 1rem;
  color: var(--red);
  margin-top: 0.25rem;
  display: none;
}

.form-success {
  padding: 1.5rem 2rem;
  border: 1px solid rgba(168, 132, 74, 0.3);
  background: rgba(168, 132, 74, 0.08);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  display: none;
}

/* ── Member/price toggle ── */
.member-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 0.25rem;
}

.member-option { cursor: pointer; display: block; }

.member-option input[type="radio"] { display: none; }

.member-option-face {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--paper-3);
  transition: background 0.18s;
}

.member-option input[type="radio"]:checked + .member-option-face {
  background: var(--red-dim);
  box-shadow: inset 0 0 0 2px var(--red);
}

.member-option-label {
  font-size: 0.85rem;
  color: var(--mist);
  transition: color 0.18s;
}

.member-option-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  transition: color 0.18s;
}

.member-option input[type="radio"]:checked + .member-option-face .member-option-label,
.member-option input[type="radio"]:checked + .member-option-face .member-option-price {
  color: var(--red);
}

/* ── Info cards ── */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.info-card {
  width: 100%;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.info-card:last-child {
  border-bottom: none;
}

.info-card h4 {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.info-card p,
.info-card a {
  font-size: 1rem;
  color: var(--mist);
  text-decoration: none;
  line-height: 1.75;
  display: block;
  transition: color 0.2s;
}

.info-card a:hover { color: var(--red); }

/* ── Event list (inner page) ── */
.event-list {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.event-item {
  background: var(--paper);
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2rem 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.event-item:hover { background: var(--paper-2); }

.event-item-date { text-align: center; padding-right: 2.5rem; border-right: 1px solid var(--rule); }

.event-item-day {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: var(--red);
  line-height: 1;
  font-weight: 300;
}

.event-item-mon {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 0.15rem;
}

.event-item-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.event-item-body p {
  font-size: 1rem;
  color: var(--mist);
  line-height: 1.6;
}

.event-item-tags { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }

.tag {
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--rule);
  color: var(--mist);
}

.tag.red { border-color: rgba(196,65,46,0.35); color: var(--red); background: var(--red-dim); }

.event-item-aside { text-align: right; flex-shrink: 0; }

.event-item-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 300;
  display: block;
}

.event-item-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Map placeholder ── */
.map-wrap {
  width: 100%;
  height: 22rem;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(100%) contrast(85%) opacity(0.85);
}

/* ── Person card (masters page) ── */
.person-card {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.person-card:first-child { padding-top: 0; }

.person-photo {
  aspect-ratio: 3/4;
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}

.person-photo-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #ede8df 0%, #e5dfd4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-photo-fill span {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(196, 65, 46, 0.2);
}

.person-role {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.person-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.person-title {
  font-size: 1rem;
  font-style: italic;
  color: var(--mist);
  margin-bottom: 1.75rem;
}

/* ── Step list ── */
.step-list { display: flex; flex-direction: column; gap: 1.75rem; }

.step-item { display: flex; gap: 1.75rem; align-items: flex-start; }

.step-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--red);
  flex-shrink: 0;
  width: 2.5rem;
  opacity: 0.75;
  margin-top: 0.1rem;
}

.step-body h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.step-body p { font-size: 1rem; color: var(--mist); line-height: 1.8; }

/* ── Footer ── */
footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.footer-main {
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--mist);
  line-height: 1.85;
  max-width: 28ch;
  margin-top: 1.5rem;
}

.footer-col h4 {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col li { font-size: 0.875rem; color: var(--mist); }

.footer-col a { text-decoration: none; color: var(--mist); transition: color 0.2s; }

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.68rem;
  color: rgba(28, 24, 18, 0.35);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--gold); }

/* ── Teaching section layout (sidebar) ── */
.teaching-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.teaching-sidebar {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.teaching-sidebar-item {
  background: var(--ink-2);
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.teaching-sidebar-item:hover {
  background: var(--paper-3);
}

.teaching-sidebar-item[aria-current="page"] {
  background: var(--paper);
  border-left: 2px solid var(--red);
  pointer-events: none;
}

.teaching-sidebar-eyebrow {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.teaching-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--stone);
}

.teaching-sidebar-title-current {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.teaching-sidebar-desc {
  font-size: 0.9rem;
  color: var(--mist);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: block; }

  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }


  .event-item {
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
  }
  .event-item-aside { display: none; }

  .person-card {
    grid-template-columns: 8rem 1fr;
    gap: 2rem;
  }

  .footer-main { grid-template-columns: 1fr !important; gap: 2rem; padding: 3.5rem 0 3rem; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.25rem 0; }
}

@media (max-width: 768px) {
  /* Logo: hide Ryūmonji sub on mobile */
  .logo-text .sub { display: none; }

  /* Two-column content grid → single column */
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Inner page sections */
  .section { padding: 3.5rem 0; }
  .section-alt { padding: 3.5rem 0; }

  /* Event detail pages: 2-col form layout → stack */
  .event-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  /* Person-cards on lineage/mestres page: full-width portrait */
  .person-card { grid-template-columns: 1fr; }
  .person-photo {
    width: 100%;
    aspect-ratio: 3/2;
    max-height: 280px;
  }

  /* Sutra / kusen listing rows */

  /* Teaching cards grid */
  .teaching-cards { grid-template-columns: 1fr !important; }
  .teaching-sidebar { display: none; }
  .teaching-layout { grid-template-columns: 1fr; }

  /* Global rule: any .col-2 card/content grid → single column */
  .col-2 { grid-template-columns: 1fr !important; }

  /* Page hero */
  .page-hero h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.25rem 0; }
}

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 1.25rem; }

  .page-hero { padding: 8rem 0 3rem; }
  .page-hero h1 { font-size: clamp(2rem, 7vw, 3rem); }

  .content-grid { gap: 2rem !important; }

  .person-card { grid-template-columns: 1fr; }
  .person-photo { width: 7rem; }

  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
