/* =========================================================
   동무 (DONGMU) — 시니어 취미 동호회 소셜게임
   접근성 우선 · 따뜻한 대형 UI
   ========================================================= */

/* ===== Fonts (self-host, no CDN) ===== */
@font-face {
  font-family: "Gowun Dodum";
  src: url("../fonts/GowunDodum-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ===== Design Tokens ===== */
:root {
  --cream:      #fbf6ee;   /* warm background */
  --cream-2:    #f4ebdc;   /* soft panel */
  --coral:      #ef7a52;   /* friendly tangerine */
  --coral-dark: #d65f38;   /* hover / AAA text-on-cream */
  --blue:       #3f7ea3;   /* calm blue */
  --blue-dark:  #2f6787;
  --brown:      #3a322b;   /* deep brown text */
  --brown-soft: #6a5f53;   /* secondary text */
  --line:       #e4d8c5;   /* borders */
  --white:      #ffffff;
  --gold:       #e8a13c;   /* stars / accents */
  --ok:         #4a8a5c;   /* success green */

  --font-heading: "Gowun Dodum", "Pretendard", system-ui, sans-serif;
  --font-body: "Pretendard", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 22px rgba(58, 50, 43, 0.10);
  --shadow-lg: 0 14px 40px rgba(58, 50, 43, 0.16);
  --tap: 60px; /* min touch target */
}

/* ===== Base ===== */
html { font-size: 19px; }
body {
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--brown); font-weight: 400; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
p  { font-size: 1.05rem; }
strong { font-weight: 700; }

a { text-decoration: none; }

/* Focus — large, high-contrast */
:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: 12px; top: -80px;
  background: var(--brown); color: #fff; padding: 14px 22px;
  border-radius: 10px; z-index: 2000; font-weight: 700; font-size: 1.05rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Buttons (big touch targets) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 30px;
  font-size: 1.12rem; font-weight: 700; line-height: 1.1;
  border-radius: 999px; border: 3px solid transparent;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 24px; height: 24px; flex: none; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn--blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost { background: var(--white); color: var(--brown); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--coral); color: var(--coral-dark); transform: translateY(-2px); }
.btn--lg { min-height: 68px; font-size: 1.2rem; padding: 0 38px; }
.btn--block { width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 2px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 82px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.5rem; color: var(--brown); }
.brand img { width: 44px; height: 44px; }
.brand b { font-weight: 400; }
.brand span { color: var(--coral-dark); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px;
  font-size: 1.08rem; font-weight: 500; color: var(--brown); border-radius: 12px;
}
.nav-links a:hover { background: var(--cream-2); color: var(--coral-dark); }
.nav-links a[aria-current="page"] { color: var(--coral-dark); font-weight: 700; background: #fdece3; }
.nav-cta { display: inline-flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.1rem; color: var(--blue-dark);
}
.nav-phone svg { width: 22px; height: 22px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 56px; height: 56px; background: var(--white); border: 2px solid var(--line);
  border-radius: 14px; cursor: pointer;
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta {
    display: none; position: absolute; left: 0; right: 0; top: 82px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 2px solid var(--line);
    padding: 14px 22px 22px;
  }
  .nav[data-open="true"] .nav-links,
  .nav[data-open="true"] .nav-cta { display: flex; }
  .nav[data-open="true"] .nav-cta { top: auto; position: static; padding-top: 0; border: 0; }
  .nav-links a { min-height: 58px; font-size: 1.15rem; }
  .nav-phone { justify-content: center; min-height: 56px; }
}

/* ===== Section helpers ===== */
.section { padding: 72px 0; }
.section--tint { background: var(--cream-2); }
.section--blue { background: #eef4f7; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--brown-soft); margin-top: 14px; font-size: 1.12rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .98rem; letter-spacing: .04em;
  color: var(--coral-dark); background: #fdece3; padding: 8px 18px; border-radius: 999px;
  margin-bottom: 18px;
}

/* ===== Hero ===== */
.hero { padding: 56px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .hl { color: var(--coral-dark); }
.hero-lead { font-size: 1.25rem; color: var(--brown-soft); margin-bottom: 32px; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--white); border: 2px solid var(--line);
  border-radius: 18px; padding: 16px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 78%;
}
.hero-badge .num { font-family: var(--font-heading); font-size: 2rem; color: var(--coral-dark); line-height: 1; }
.hero-badge .txt { font-size: .98rem; color: var(--brown-soft); line-height: 1.4; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.hero-trust div { }
.hero-trust .n { font-family: var(--font-heading); font-size: 1.9rem; color: var(--blue-dark); line-height: 1; }
.hero-trust .l { font-size: .98rem; color: var(--brown-soft); margin-top: 6px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-media { order: -1; }
}

/* ===== Why cards ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
}
.why-card .ico {
  width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center;
  margin-bottom: 22px;
}
.why-card .ico svg { width: 42px; height: 42px; }
.ico--coral { background: #fdece3; color: var(--coral-dark); }
.ico--blue { background: #e6eff4; color: var(--blue-dark); }
.ico--gold { background: #fbeed3; color: #b9791b; }
.why-card h3 { margin-bottom: 12px; }
.why-card p { color: var(--brown-soft); font-size: 1.05rem; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== Club cards ===== */
.club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.club-card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.club-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.club-card .thumb { position: relative; aspect-ratio: 3 / 2; }
.club-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.club-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(58,50,43,.86); color: #fff; font-weight: 700; font-size: .92rem;
  padding: 7px 15px; border-radius: 999px;
}
.club-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.club-card h3 { margin-bottom: 8px; }
.club-card .loc { color: var(--brown-soft); font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.club-card .loc svg { width: 19px; height: 19px; color: var(--coral); }
.club-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.club-meta span {
  background: var(--cream-2); color: var(--brown); font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 10px;
}
.club-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seats { font-size: .98rem; color: var(--brown-soft); }
.seats b { color: var(--ok); }
.seats.low b { color: var(--coral-dark); }
@media (max-width: 900px) { .club-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .club-grid { grid-template-columns: 1fr; } }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 40px 30px 34px; text-align: center; position: relative;
}
.step .n {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--coral); color: #fff; font-family: var(--font-heading);
  font-size: 2.4rem; display: grid; place-items: center; box-shadow: var(--shadow);
}
.step:nth-child(2) .n { background: var(--blue); }
.step:nth-child(3) .n { background: var(--gold); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--brown-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ===== Reviews / stories ===== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--gold); }
.stars svg { width: 24px; height: 24px; }
.review blockquote { font-size: 1.12rem; line-height: 1.75; color: var(--brown); margin-bottom: 22px; flex: 1; }
.reviewer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.reviewer img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cream-2); }
.reviewer .who b { display: block; font-size: 1.05rem; }
.reviewer .who span { color: var(--brown-soft); font-size: .95rem; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%); color: #fff; }
.cta-band .container { text-align: center; padding-block: 66px; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { font-size: 1.18rem; opacity: .96; margin-bottom: 30px; }
.cta-band .btn--ghost { background: #fff; border-color: #fff; }
.cta-band .btn--phone { background: rgba(255,255,255,.16); color: #fff; border: 3px solid rgba(255,255,255,.7); }
.cta-band .btn--phone:hover { background: rgba(255,255,255,.26); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ===== Page header (interior) ===== */
.page-hero { background: var(--cream-2); border-bottom: 2px solid var(--line); padding: 56px 0; text-align: center; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p { color: var(--brown-soft); font-size: 1.15rem; max-width: 680px; margin: 16px auto 0; }

/* ===== Filters (clubs) ===== */
.filters { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 40px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; }
.field label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; }
.field select, .field input {
  width: 100%; min-height: var(--tap); padding: 0 18px; font-size: 1.08rem;
  border: 2px solid var(--line); border-radius: 14px; background: var(--cream);
  color: var(--brown); font-family: inherit;
}
.field select:focus, .field input:focus { border-color: var(--blue); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px;
  background: var(--cream-2); border: 2px solid var(--line); border-radius: 999px;
  font-size: 1.02rem; font-weight: 500; cursor: pointer; color: var(--brown);
}
.chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; font-weight: 700; }
@media (max-width: 760px) { .filter-row { grid-template-columns: 1fr; } }

/* ===== Meetups ===== */
.month-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 44px; }
.month-nav h2 { margin: 0; }
.meetup-list { display: grid; gap: 24px; }
.meetup {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 26px; align-items: center;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow);
}
.mdate {
  text-align: center; background: var(--cream-2); border-radius: 16px; padding: 16px 10px;
}
.mdate .d { font-family: var(--font-heading); font-size: 2.5rem; color: var(--coral-dark); line-height: 1; }
.mdate .m { font-size: .98rem; color: var(--brown-soft); margin-top: 4px; }
.mdate .w { font-weight: 700; color: var(--blue-dark); margin-top: 6px; font-size: 1rem; }
.meetup .info h3 { margin-bottom: 12px; }
.meetup .info ul { display: flex; flex-wrap: wrap; gap: 18px; color: var(--brown-soft); font-size: 1.02rem; }
.meetup .info li { display: flex; align-items: center; gap: 7px; }
.meetup .info svg { width: 20px; height: 20px; color: var(--coral); flex: none; }
.meetup .thumb-sm { width: 120px; height: 84px; border-radius: 14px; object-fit: cover; }
.meetup-media { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 44px; }
.meetup-media img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .meetup { grid-template-columns: 90px 1fr; }
  .meetup .foot-cell { grid-column: 1 / -1; }
  .meetup-media { grid-template-columns: 1fr; }
  .meetup-media img { height: 200px; }
}

/* ===== Stories page ===== */
.story-lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.story-lead img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.big-quote { font-family: var(--font-heading); font-size: clamp(1.5rem,3.4vw,2.1rem); line-height: 1.5; color: var(--brown); }
.big-quote .by { display: block; font-family: var(--font-body); font-size: 1.05rem; color: var(--brown-soft); margin-top: 20px; }
@media (max-width: 820px) { .story-lead { grid-template-columns: 1fr; } }

/* ===== Stats strip ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .box { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 30px 18px; box-shadow: var(--shadow); }
.stats .n { font-family: var(--font-heading); font-size: 2.4rem; color: var(--coral-dark); line-height: 1; }
.stats .l { color: var(--brown-soft); margin-top: 10px; font-size: 1rem; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.phone-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 40px 34px; box-shadow: var(--shadow-lg);
}
.phone-card .label { font-size: 1.1rem; opacity: .95; }
.phone-card .num { font-family: var(--font-heading); font-size: clamp(2.4rem,6vw,3.2rem); line-height: 1.1; margin: 10px 0 6px; display: inline-flex; align-items: center; gap: 14px; }
.phone-card .num svg { width: 44px; height: 44px; }
.phone-card .hours { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.28); padding-top: 22px; }
.phone-card .hours dt { font-weight: 700; margin-top: 12px; }
.phone-card .hours dd { opacity: .95; }
.phone-card .btn { margin-top: 26px; background: #fff; color: var(--blue-dark); }
.contact-info { margin-top: 26px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-info dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; }
.contact-info dt { font-weight: 700; color: var(--brown); }
.contact-info dd { color: var(--brown-soft); }

.form-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 8px; }
.form-card .hint { color: var(--brown-soft); margin-bottom: 26px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.form-group .req { color: var(--coral-dark); }
.form-control {
  width: 100%; min-height: var(--tap); padding: 14px 18px; font-size: 1.08rem;
  border: 2px solid var(--line); border-radius: 14px; background: var(--cream);
  color: var(--brown); font-family: inherit;
}
textarea.form-control { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-control:focus { border-color: var(--blue); }
.check-line { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--brown-soft); }
.check-line input { width: 26px; height: 26px; margin-top: 3px; flex: none; accent-color: var(--coral); }
.form-note { background: var(--cream-2); border-radius: 12px; padding: 16px 18px; font-size: .98rem; color: var(--brown-soft); margin-top: 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--brown); color: #e9e0d3; padding: 60px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 16px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-top p { color: #cbbfae; font-size: 1rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #d8cdbc; font-size: 1.02rem; display: inline-flex; min-height: 32px; align-items: center; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.3rem; font-weight: 700; }
.footer-phone svg { width: 26px; height: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bottom small { color: #b8ac9a; font-size: .92rem; line-height: 1.7; display: block; }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-open {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: #f0e8db; font: inherit; font-size: 1rem; text-decoration: underline; min-height: 44px;
}
.legal-open:hover { color: #fff; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }

/* ===== Modal ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(58,50,43,0.62); }
.modal__panel {
  position: relative; z-index: 1; width: min(720px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--cream); color: var(--brown); padding: 40px 38px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.modal__panel h2 { margin-bottom: 8px; }
.modal__panel h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 26px 0 10px; }
.modal__panel p, .modal__panel li { font-size: 1.05rem; line-height: 1.75; color: var(--brown); }
.modal__panel ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.modal__panel .updated { color: var(--brown-soft); font-size: .98rem; margin-bottom: 10px; }
.modal__panel table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.modal__panel th, .modal__panel td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: 1rem; }
.modal__panel th { background: var(--cream-2); font-weight: 700; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 52px; height: 52px;
  background: var(--white); border: 2px solid var(--line); border-radius: 14px;
  font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--brown);
  display: grid; place-items: center;
}
.modal__close:hover { background: var(--cream-2); }

/* ===== 404 ===== */
.notfound { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound .big { font-family: var(--font-heading); font-size: clamp(5rem, 18vw, 9rem); color: var(--coral); line-height: 1; }
.notfound h1 { margin: 10px 0 16px; }
.notfound p { color: var(--brown-soft); font-size: 1.15rem; margin-bottom: 30px; }
.notfound .btn { justify-content: center; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 26px; }

/* ===== Utility ===== */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
