/* ==========================================================
   APACE 2027 — 공용 스타일 (표본 라벨 문구류)
   서울대학교 산림보호학연구실
   홈 전용 섹션은 home.css, 이 파일은 모든 페이지가 함께 씀
   ========================================================== */
:root {
  --bg: #dedad3;
  --paper: #efeeeb;
  --surface: #d3cec6;
  --deep: #34322e;
  --ink: #0a0a0a;
  --muted: #4a4741;
  --soft: #5d5952;
  --accent: #256f82;
  --accent-deep: #1d5a6a;
  --accent-tint: #d6e3e5;
  --accent-ink: #ffffff;

  --ok: #2f6b3a;     --ok-50: #dbe5d6;
  --warn: #7f5300;   --warn-50: #eedfc4;
  --danger: #a3352b; --danger-50: #efd6d0;

  /* 예전 이름: 관리자 화면과 스크립트의 인라인 스타일이 참조 */
  --navy: var(--ink);
  --primary: var(--accent);
  --primary-600: var(--accent-deep);
  --primary-50: var(--accent-tint);
  --forest: var(--accent);
  --ink-2: var(--muted);
  --ink-3: var(--soft);
  --line: #c9c3b9;
  --line-2: #b3aca1;
  --white: #fff;
  --radius: 0;

  --face: "Schibsted Grotesk", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  --serif: var(--face);
  --sans: var(--face);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1rem + 5.6vw, 6.25rem);

  --margin: clamp(16px, 2.4vw, 40px);
  --gap: clamp(96px, 11vw, 168px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1360px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--face); font-size: var(--step-body); color: var(--ink); background: var(--bg); line-height: 1.55; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--face); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

html[lang="ko"] .en { display: none !important; }
html[lang="en"] .ko { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--margin); }
.wrap { padding-inline: var(--margin); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- icons (관리자 화면 전용, CSS mask) ---------- */
.ic { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.ic-calendar { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>"); }
.ic-pin { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/><circle cx='12' cy='10' r='3'/></svg>"); }
.ic-doc { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/></svg>"); }
.ic-badge { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='9' cy='11' r='2'/><path d='M15 10h3M15 14h3M6 16c.5-1.5 1.7-2 3-2s2.5.5 3 2'/></svg>"); }
.ic-globe { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/></svg>"); }
.ic-card { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><path d='M2 10h20M6 15h4'/></svg>"); }
.ic-bank { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 22h18M6 18v-7M10 18v-7M14 18v-7M18 18v-7M12 2l9 5H3z'/></svg>"); }
.ic-lock { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>"); }
.ic-mail { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 6L2 7'/></svg>"); }
.ic-info { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4M12 8h.01'/></svg>"); }
.ic-check { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); }
.ic-upload { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/></svg>"); }
.ic-download { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/></svg>"); }
.ic-clip { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/></svg>"); }
.ic-user { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-6 8-6s8 2 8 6'/></svg>"); }
.ic-users { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='4'/><path d='M2 21c0-4 3-6 7-6s7 2 7 6M16 4a4 4 0 0 1 0 8M22 21c0-3-2-5-4-5.5'/></svg>"); }
.ic-chart { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18M7 16v-5M12 16V8M17 16v-8'/></svg>"); }
.ic-settings { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/></svg>"); }
.ic-leaf { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.5 19 2c1 2 2 4.2 2 8 0 5.5-4.8 10-10 10Z'/><path d='M2 21c0-3 1.9-5.4 5.1-6C9.5 14.5 12 13 13 12'/></svg>"); }
.ic-tree { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2 5 12h4l-3 5h12l-3-5h4z'/><path d='M12 17v5'/></svg>"); }
.ic-flask { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6M10 3v6L4.5 19a2 2 0 0 0 1.8 3h11.4a2 2 0 0 0 1.8-3L14 9V3M7 15h10'/></svg>"); }
.ic-dna { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2c0 6 12 6 12 12s-12 2-12 8M18 2c0 6-12 6-12 12M18 22c0-3-3-4.5-6-5.5M8 5h8M8 19h8M7 9.5h10'/></svg>"); }
.ic-bug { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='8' y='6' width='8' height='14' rx='4'/><path d='M12 20v-9M9 3l1.5 3M15 3l-1.5 3M3 13h5M16 13h5M4 8l4 2M20 8l-4 2M4 19l4-2M20 19l-4-2'/></svg>"); }
.ic-wind { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M17.7 7.7A2.5 2.5 0 1 1 19.5 12H2M9.6 4.6A2 2 0 1 1 11 8H2M12.6 19.4A2 2 0 1 0 14 16H2'/></svg>"); }
.ic-shield { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/></svg>"); }
.ic-cup { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 22h8M12 15v7M7 3h10l-1 7a4 4 0 0 1-8 0z'/></svg>"); }
.ic-utensils { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2M7 2v20M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7'/></svg>"); }
.ic-map { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2z'/><path d='M9 4v14M15 6v14'/></svg>"); }
.ic-building { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='2' width='16' height='20' rx='1'/><path d='M9 22v-4h6v4M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/></svg>"); }
.ic-landmark { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 9h20L12 3zM4 9v10M20 9v10M9 13v6M15 13v6M2 21h20'/></svg>"); }
.ic-external { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/></svg>"); }
.ic-arrow { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>"); }
.ic-trash { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6'/></svg>"); }
.ic-mic { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='2' width='6' height='12' rx='3'/><path d='M5 10a7 7 0 0 0 14 0M12 17v5'/></svg>"); }
.ic-train { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='14' rx='3'/><path d='M5 11h14M9 21l-2-4M15 21l2-4M9 14h.01M15 14h.01'/></svg>"); }
.ic-plane { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/></svg>"); }
.ic-award { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='6'/><path d='M15.5 13 17 22l-5-3-5 3 1.5-9'/></svg>"); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: var(--bg); font-size: var(--step-small); }
.topbar .container { max-width: none; display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar a { color: var(--bg); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; gap: 2px; }
.lang-switch button { background: none; border: 0; color: var(--bg); font: inherit; font-size: var(--step-small); font-weight: 600; padding: 2px 6px; cursor: pointer; }
.lang-switch button.active { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.lang-switch button + button::before { content: "|"; color: var(--soft); margin-right: 8px; display: inline-block; text-decoration: none; }

.site-header { position: relative; z-index: 50; background: var(--bg); }
.site-header .container { max-width: none; display: flex; align-items: center; min-height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.logo-text small { font-size: var(--step-small); color: var(--muted); margin-top: 3px; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; padding: 26px 14px; color: var(--ink); font-weight: 600; font-size: var(--step-small); text-decoration: none; transition: color .2s; }
.nav > ul > li > a:hover { color: var(--accent); }
.nav > ul > li.active > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .sub { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--paper); display: none; }
.nav > ul > li:hover .sub, .nav > ul > li:focus-within .sub { display: block; }
.nav .sub a { display: block; padding: 9px 18px; color: var(--ink); font-size: var(--step-small); text-decoration: none; }
.nav .sub a:hover { background: var(--surface); color: var(--ink); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 0; border: 0; font: inherit; font-weight: 600; font-size: var(--step-small); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn-ink, .btn-accent { background: var(--ink); color: var(--paper); }
.btn-ink:hover, .btn-accent:hover { background: var(--deep); color: var(--paper); }
.btn-outline, .btn-ghost { background: var(--surface); color: var(--ink); }
.btn-outline:hover, .btn-ghost:hover { background: #c9c3ba; color: var(--ink); }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-white:hover { background: #fff; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8a2b22; color: #fff; }
.btn-sm { padding: 8px 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- page head: the label over the photograph ---------- */
.page-label { position: relative; display: grid; align-items: end; min-height: min(78svh, 760px); padding: clamp(40px, 6vw, 88px) var(--margin) var(--margin); background: var(--ink); overflow: hidden; }
.page-label > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.66); }
.page-label > .photo-note { position: absolute; top: 16px; right: var(--margin); margin: 0; color: #e6e1d9; font-size: var(--step-small); }
.tag { position: relative; width: min(100%, 960px); background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 40px); display: grid; gap: clamp(24px, 3.4vw, 40px); }
.tag h1 { margin: 0; font-size: var(--step-display); line-height: .9; letter-spacing: -0.05em; }
.tag-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.tag-facts { margin: 0; font-size: var(--step-lead); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.tag-facts > span { display: block; }
.tag-facts .coords { margin-top: .6em; font-size: var(--step-body); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.tag-lede { margin: 0; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; max-width: 32ch; }
.tag-index { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: var(--step-small); font-weight: 600; }
.tag-index a { text-decoration: underline; text-decoration-thickness: 1.5px; }
.tag-index .btn { margin-left: auto; text-decoration: none; }

/* ---------- sections ---------- */
.sec { padding-block: var(--gap); }
.sec.paper { background: var(--paper); }
.sec.surface { background: var(--surface); }
.sec.dark { background: var(--ink); color: var(--paper); }
.sec.dark .note, .sec.dark .muted { color: #c9c3b9; }
.sec.dark .label .note, .sec.dark .label .muted, .sec.dark .table-wrap .muted { color: var(--muted); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head h2 { grid-column: 1 / 7; margin: 0; font-size: var(--step-head); line-height: .95; letter-spacing: -0.045em; }
.sec-head p { grid-column: 8 / 13; margin: 0; max-width: 46ch; }
.big { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; }
.note { font-size: var(--step-small); color: var(--muted); }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; }
.sample { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 8px; background: var(--warn-50); color: var(--warn); font-size: var(--step-small); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.proto-flag { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 8px; background: var(--warn-50); color: var(--warn); font-size: var(--step-small); font-weight: 600; letter-spacing: 0; line-height: 1.3; }

/* specimen label: the site's one stationery object */
.label { background: var(--paper); color: var(--ink); padding: clamp(20px, 2.4vw, 32px); }
.sec.paper .label { background: #fff; }
.label h3 { font-size: var(--step-lead); margin: 0 0 12px; letter-spacing: -0.03em; }
.label p:last-child, .label ul:last-child, .label dl:last-child { margin-bottom: 0; }
.label .loc { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 14px; }
.label ul { padding-left: 1.1em; margin: 0 0 1em; }
.label li + li { margin-top: 6px; }

/* picture with caption */
.fig { margin: 0; }
.fig img { width: 100%; object-fit: cover; }
.fig figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.sec.dark .fig figcaption { color: #bdb7ad; }

/* ledger of dates (about, abstracts) */
.ledger-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
.ledger-list li { display: grid; grid-template-columns: 4.6em 1fr; align-items: baseline; gap: 16px; }
.ledger-list b { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.ledger-list span { line-height: 1.35; }
.ledger-list small { display: block; font-size: var(--step-small); color: var(--muted); }
.ledger-list li.next b { color: var(--accent); }
.ledger-list li.past { color: var(--soft); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); padding: clamp(20px, 2.4vw, 32px); }
.card h3 { font-size: var(--step-lead); letter-spacing: -0.03em; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); color: var(--ink); }
.sec.paper .table-wrap { background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
th, td { padding: 14px 18px; border-bottom: 2px solid var(--bg); text-align: left; vertical-align: top; }
thead th { background: var(--ink); color: var(--paper); font-size: var(--step-small); font-weight: 600; white-space: nowrap; border-bottom: 0; }
tbody th { font-weight: 600; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; }
.fee-table td.num b { color: var(--ink); }
.fee-table th.col-active { background: var(--accent); color: var(--accent-ink); }
.fee-table td.col-active { background: var(--accent-tint); }

/* ---------- forms ---------- */
.form-card { background: var(--paper); padding: clamp(22px, 3.4vw, 48px); }
.form-section { padding-top: 40px; margin-top: 40px; border-top: 8px solid var(--bg); }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section > h3 { font-size: var(--step-lead); display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.form-section > h3 .step { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-size: var(--step-small); font-weight: 600; margin-bottom: 8px; color: var(--ink); background: none; padding: 0; }
.req::after { content: " *"; color: var(--danger); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; font: inherit; font-size: var(--step-body); background: #fff; color: var(--ink);
}
.field input[type=file] { font: inherit; font-size: var(--step-small); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.field .hint { font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: var(--danger); background: var(--danger-50); }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: block; padding: 18px; cursor: pointer; background: var(--surface); transition: background-color .2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { background: #c9c3ba; }
.choice.selected, .choice:has(input:checked) { background: var(--ink); color: var(--paper); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice b { display: flex; align-items: center; gap: 8px; font-size: var(--step-body); }
.choice .price { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.choice small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--step-small); }
.choice.selected small, .choice:has(input:checked) small { color: #c9c3b9; }

.consent { background: #fff; margin-bottom: 8px; }
.consent-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.consent-head label { flex: 1; font-weight: 600; font-size: var(--step-body); cursor: pointer; display: flex; gap: 12px; align-items: center; }
.consent-head input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.consent-toggle { background: none; border: 0; color: var(--muted); font: inherit; font-size: var(--step-small); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent-body { display: none; padding: 4px 16px 16px; font-size: var(--step-small); color: var(--muted); max-height: 280px; overflow: auto; }
.consent.open .consent-body { display: block; }
.consent-body table { font-size: var(--step-small); }
.consent-body th, .consent-body td { padding: 8px 10px; }
.consent.all { background: var(--ink); color: var(--paper); }
.consent.all .consent-head input { accent-color: var(--accent); }

.dropzone { display: block; padding: clamp(28px, 4vw, 48px); text-align: center; background: #fff; cursor: pointer; outline: 2px dashed var(--soft); outline-offset: -10px; transition: background-color .2s; }
.dropzone:hover, .dropzone.drag { background: var(--accent-tint); }
.dropzone b { display: block; font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 6px; }
.dropzone .big { display: none; }
.file-chip { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; font-size: var(--step-small); font-weight: 600; }
.file-chip a { color: var(--paper); }

/* the registration summary is a specimen label */
.summary-box { background: #fff; color: var(--ink); padding: 28px; position: sticky; top: 24px; }
.summary-box h3 { font-size: var(--step-lead); margin-bottom: 18px; }
.summary-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; font-size: var(--step-small); }
.summary-box dt { color: var(--muted); }
.summary-box dd { margin: 0; text-align: right; font-weight: 600; }
.summary-box .total { margin-top: 24px; padding-top: 20px; border-top: 8px solid var(--bg); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-box .total b { font-size: var(--step-head); letter-spacing: -0.045em; line-height: 1; }
.summary-box .ssl { margin: 14px 0 0; font-size: var(--step-small); color: var(--muted); }

.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gutter); align-items: start; }

/* ---------- notice / badge ---------- */
.notice { padding: 14px 18px; font-size: var(--step-small); display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.notice > .ic { margin-top: 3px; }
.notice-info { background: var(--accent-tint); color: #123f4a; }
.notice-warn { background: var(--warn-50); color: #5a3b00; }
.notice-ok { background: var(--ok-50); color: #1f4a27; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; white-space: nowrap; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-muted { background: var(--surface); color: var(--muted); }
.badge-info { background: var(--accent-tint); color: var(--accent-deep); }
.badge-forest { background: var(--accent-tint); color: var(--accent-deep); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 28px; background: var(--bg); padding: 4px; }
.tabs button { flex: 1; background: none; border: 0; padding: 12px 14px; font: inherit; font-size: var(--step-small); font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--ink); color: var(--paper); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 10, 10, .62); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--paper); width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; }
.modal-head { padding: 18px 22px; background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: var(--step-body); }
.modal-close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--paper); }
.modal-body { padding: 22px; }
.pg-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.pg-amount { text-align: center; padding: 18px; background: #fff; margin-bottom: 18px; }
.pg-amount b { display: block; font-size: var(--step-head); letter-spacing: -0.045em; }

.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: var(--step-small); animation: toastIn .25s var(--ease); max-width: 90vw; display: flex; gap: 8px; align-items: center; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- footer: the back of the card ---------- */
.back { background: var(--ink); padding: 120px var(--margin) 48px; color: var(--paper); }
.back-card { max-width: 1240px; margin-inline: auto; }
.back-edge { display: block; width: 100%; height: 50px; color: var(--paper); }
.back-panel { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.back-panel h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: .95; margin-bottom: 24px; }
.back-msg p { margin: 0; }
.back-msg p + p { margin-top: 12px; }
.back-msg .orgs { margin-top: 28px; font-size: var(--step-small); color: var(--muted); }
.back-msg .orgs b { color: var(--ink); font-weight: 600; }
.back-msg .sponsor { margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.back-msg .sponsor b { display: block; color: var(--ink); font-weight: 600; }
.sponsor-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 10px; text-decoration: none; }
.sponsor-link:hover .sponsor-name { text-decoration: underline; }
.sponsor-logo { display: block; width: auto; height: 64px; flex: none; }
.back-addr { position: relative; padding-top: 140px; }
.stamp { position: absolute; top: 0; right: 0; width: 96px; background: var(--paper); margin: 0; transform: rotate(3deg); }
.stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; outline: 6px solid #fff; }
.back-addr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.back-addr a { text-decoration-thickness: 1.5px; }
.imprint { grid-column: 1 / -1; margin: 0; text-align: center; font-size: var(--step-small); color: var(--muted); }
.credits { max-width: 1240px; margin: 40px auto 0; font-size: var(--step-small); color: #b3ada3; line-height: 1.6; }
.credits p { margin: 0; }
.credits ul { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 34ch; column-gap: 48px; }
.credits li { break-inside: avoid; }
.credits a { color: inherit; }

/* ---------- misc ---------- */
.prose h3 { margin-top: 32px; font-size: var(--step-lead); }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose p, .prose li { max-width: 68ch; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }
.done-panel { text-align: center; padding: clamp(40px, 6vw, 80px) 24px; }
.done-panel h2 { font-size: var(--step-head); letter-spacing: -0.045em; }
.done-panel .check { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 32px; display: grid; place-items: center; margin: 0 auto 20px; }
.regno { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 24px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; text-align: left; max-width: 480px; margin: 0 auto 24px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .page-label > img, .js .desk > img { animation: drift 24s var(--ease) both alternate infinite; }
  .js .tag, .js .desk-inner { animation: settle .9s var(--ease) both; }
  .js .choice, .js .btn { transition: background-color .2s, color .2s, transform .15s var(--ease); }
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .fig img { transition: transform 1.2s var(--ease); }
  .js .fig:hover img { transform: scale(1.02); }
}
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes settle { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .nav > ul > li > a { padding: 26px 9px; } .logo-text small { display: none; } }
@media (max-width: 1024px) {
  .sec-head h2, .sec-head p { grid-column: 1 / 13; }
  .sec-head p { margin-top: 20px; }
  .tag-body { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .logo-text small { display: block; }
  .nav { position: fixed; top: 114px; left: 0; right: 0; bottom: 0; background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform .25s var(--ease); z-index: 60; }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; padding: 8px var(--margin) 40px; }
  .nav > ul > li > a { padding: 16px 4px; font-size: var(--step-body); }
  .nav .sub { position: static; display: block; background: transparent; padding: 0 0 12px 8px; min-width: 0; }
  .nav .mobile-cta { display: block; padding: 20px 0 0; }
  .nav .mobile-cta a { color: var(--accent-ink); }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-list { grid-template-columns: 1fr; }
}
@media (min-width: 961px) { .nav .mobile-cta { display: none; } }
@media (max-width: 640px) {
  .topbar .event-info { display: none; }
  .topbar .container { justify-content: flex-end; }
  .logo-text small { display: none; }
  .page-label { min-height: 88svh; padding: 16px; }
  .page-label > .photo-note { left: 16px; right: 16px; }
  .tag { padding: 22px; }
  .tag h1 { font-size: 12.5vw; }
  .tag-index .btn { margin-left: 0; width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .ledger-list li { grid-template-columns: 3.6em 1fr; }
  .ledger-list b { font-size: 1.75rem; }
  .kv { grid-template-columns: 110px 1fr; }
  .back-panel { grid-template-columns: 1fr; }
  .back-addr { padding-top: 0; }
  .stamp { position: static; width: 72px; margin-bottom: 24px; }
  .back-addr ul { font-size: 1.125rem; }
  th, td { padding: 12px 12px; }
}
