:root {
  --ink: #18342f;
  --ink-2: #245148;
  --persimmon: #c94f35;
  --persimmon-dark: #9c3827;
  --paper: #f5efdf;
  --paper-2: #e9dfc8;
  --cream: #fffaf0;
  --gold: #c6a25b;
  --blue: #426b77;
  --night: #182333;
  --muted: #6d7269;
  --line: rgba(24, 52, 47, 0.16);
  --shadow: 0 18px 50px rgba(27, 38, 31, 0.14);
  --radius: 22px;
  --wrap: min(1440px, calc(100% - 40px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(198, 162, 91, .08), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999; padding: 12px 18px;
  background: white; color: var(--ink); border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.masthead {
  position: relative; overflow: hidden; color: var(--paper);
  background:
    linear-gradient(115deg, rgba(255,255,255,.03), transparent 44%),
    radial-gradient(circle at 88% 20%, rgba(198,162,91,.24), transparent 25rem),
    var(--ink);
}
.masthead::after {
  content: ""; position: absolute; width: 28rem; height: 28rem; right: -11rem; bottom: -18rem;
  border: 1px solid rgba(245,239,223,.14); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(245,239,223,.035), 0 0 0 8rem rgba(245,239,223,.025);
}
.roofline {
  height: 7px; background: repeating-linear-gradient(90deg, var(--persimmon) 0 54px, var(--gold) 54px 61px);
}
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(245,239,223,.14); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(245,239,223,.5);
  color: var(--paper); font-family: Georgia, serif; font-size: 21px; transform: rotate(-2deg);
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.brand small { margin-top: 2px; color: rgba(245,239,223,.68); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.top-actions, .hero-buttons { display: flex; align-items: center; gap: 10px; }
.button {
  border: 0; border-radius: 999px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, opacity .18s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .filter-chip:focus-visible, .time-chip:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(198,162,91,.55); outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button.ghost { color: var(--paper); border: 1px solid rgba(245,239,223,.28); background: transparent; }
.button.ghost span, .mobile-route-button strong { min-width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--persimmon); color: white; font-size: 11px; }
.button.ink { color: white; background: var(--ink); }
.masthead .button.ink { color: var(--ink); background: var(--paper); }
.button.persimmon { color: white; background: var(--persimmon); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.button.paper { color: var(--ink); background: rgba(245,239,223,.1); border: 1px solid rgba(245,239,223,.25); }
.button.full { width: 100%; }

.hero { min-height: 560px; padding-block: 74px 86px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); align-items: end; gap: clamp(40px, 8vw, 130px); position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: var(--persimmon-dark); }
.hero h1 { margin: 0; max-width: 860px; font: 500 clamp(54px, 7vw, 102px)/.88 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-lede { max-width: 720px; margin: 30px 0 28px; color: rgba(245,239,223,.78); font-size: 17px; line-height: 1.75; }
.day-card { position: relative; padding: 32px; border: 1px solid rgba(245,239,223,.2); background: rgba(9,28,24,.38); backdrop-filter: blur(18px); border-radius: 4px 4px 54px 4px; }
.date-seal { position: absolute; right: 24px; top: -34px; width: 82px; height: 82px; padding: 11px 8px; display: grid; place-items: center; background: var(--persimmon); color: white; box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: rotate(2deg); }
.date-seal span { font-size: 9px; font-weight: 850; letter-spacing: .18em; line-height: 1; }
.date-seal strong { font: 500 34px/.9 Georgia, serif; }
.day-card dl { margin: 10px 0 24px; }
.day-card dl div { display: flex; justify-content: space-between; gap: 22px; padding: 12px 0; border-bottom: 1px solid rgba(245,239,223,.14); }
.day-card dt { color: rgba(245,239,223,.58); font-size: 12px; }
.day-card dd { margin: 0; text-align: right; font-size: 13px; font-weight: 750; }
.day-card dt, .day-card dd { word-break: keep-all; overflow-wrap: normal; }
.day-card p { margin: 0; color: rgba(245,239,223,.6); font-size: 11px; line-height: 1.7; }

.planner-section { padding-block: 86px 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.section-heading h2, .itinerary-head h2, .legend-grid h2 { margin: 0; font: 500 clamp(34px, 4vw, 54px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.section-heading h2 span { color: var(--persimmon); }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; }
.time-ruler-shell { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 9px; margin-bottom: 26px; }
.time-arrow { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.44); color: var(--ink); cursor: pointer; }
.time-ruler { overflow-x: auto; scrollbar-width: none; display: flex; gap: 7px; padding: 4px; scroll-snap-type: x proximity; }
.time-ruler::-webkit-scrollbar { display: none; }
.time-chip { min-width: 72px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.42); font-size: 12px; font-weight: 700; cursor: pointer; scroll-snap-align: center; }
.time-chip small { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.time-chip.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 8px 22px rgba(24,52,47,.2); }
.time-chip.active small { color: rgba(255,255,255,.62); }

.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.browse-panel { min-width: 0; }
.toolbar { padding: 18px; border: 1px solid var(--line); background: rgba(255,250,240,.62); border-radius: 18px; }
.search-field { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.search-field svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-field input::placeholder { color: #9a9c94; }
.filter-row { margin-top: 12px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.filter-chip.active { color: white; border-color: var(--persimmon); background: var(--persimmon); }
.availability-summary { display: flex; justify-content: space-between; gap: 20px; margin: 22px 4px 12px; color: var(--muted); font-size: 12px; }
.availability-summary strong { color: var(--ink); }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-card { position: relative; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,250,240,.86); cursor: pointer; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.activity-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--category-color, var(--gold)); opacity: .75; }
.activity-card:hover { transform: translateY(-2px); border-color: rgba(24,52,47,.3); box-shadow: 0 12px 32px rgba(24,52,47,.09); background: white; }
.activity-card.selected { border-color: rgba(36,81,72,.48); background: #fffdf8; box-shadow: inset 0 0 0 1px rgba(36,81,72,.16); }
.card-top, .card-meta, .card-actions, .window-line { display: flex; align-items: center; }
.card-top { justify-content: space-between; gap: 12px; }
.category-tag, .format-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; color: var(--category-color, var(--ink)); background: color-mix(in srgb, var(--category-color, var(--ink)) 12%, transparent); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.format-tag { color: var(--muted); background: rgba(24,52,47,.07); }
.activity-card h3 { margin: 16px 0 5px; font: 600 22px/1.15 Georgia, serif; letter-spacing: -.02em; }
.korean-name { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.card-summary { min-height: 64px; margin: 0; color: #4f5b56; font-size: 12px; line-height: 1.7; }
.window-line { gap: 7px; margin-top: 14px; color: var(--ink-2); font-size: 11px; font-weight: 760; }
.window-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--category-color, var(--gold)); }
.card-meta { flex-wrap: wrap; gap: 6px 12px; margin: 14px 0; color: var(--muted); font-size: 10px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-actions { justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.learn-link { border: 0; padding: 6px 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.add-button { padding: 9px 12px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-size: 10px; font-weight: 820; cursor: pointer; }
.add-button.remove { color: var(--ink); background: var(--paper-2); }
.activity-card.conflicting .add-button { background: var(--persimmon); }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state span { font-size: 40px; }
.empty-state h3 { margin: 8px 0 4px; font: 600 22px Georgia, serif; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.itinerary-panel { position: sticky; top: 20px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; padding: 24px; border-radius: 26px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .22s ease, transform .22s ease; }
.itinerary-panel.attention { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(198,162,91,.34), var(--shadow); }
.itinerary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.itinerary-head h2 { font-size: 34px; }
.itinerary-panel .eyebrow { color: var(--gold); }
.route-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0 14px; background: rgba(245,239,223,.14); }
.route-stats div { padding: 13px 8px; text-align: center; background: var(--ink); }
.route-stats strong, .route-stats span { display: block; }
.route-stats strong { font: 500 20px Georgia, serif; }
.route-stats span { margin-top: 2px; color: rgba(245,239,223,.52); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.route-alert { margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(198,162,91,.28); border-radius: 10px; color: rgba(245,239,223,.68); background: rgba(198,162,91,.08); font-size: 10px; line-height: 1.55; }
.route-alert.has-conflict { color: #ffd7cc; border-color: rgba(201,79,53,.52); background: rgba(201,79,53,.14); }
.route-list { min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; scrollbar-color: rgba(245,239,223,.22) transparent; }
.route-item { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr) 28px; gap: 10px; padding: 13px 0; border-bottom: 1px solid rgba(245,239,223,.12); }
.route-item.conflict { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; background: rgba(201,79,53,.12); }
.route-time { color: var(--gold); font-size: 11px; font-weight: 820; }
.route-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.route-info span { display: block; margin-top: 3px; color: rgba(245,239,223,.5); font-size: 9px; }
.route-remove { width: 27px; height: 27px; border: 1px solid rgba(245,239,223,.14); border-radius: 50%; color: rgba(245,239,223,.7); background: transparent; cursor: pointer; }
.route-empty { margin: auto; padding: 46px 20px; text-align: center; color: rgba(245,239,223,.58); }
.empty-brush { width: 80px; height: 3px; margin: 0 auto 20px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.route-empty p { margin: 0 0 5px; font: 500 20px Georgia, serif; color: var(--paper); }
.route-empty small { font-size: 9px; }
.route-actions { padding-top: 16px; }
.text-button { width: 100%; margin-top: 9px; padding: 7px; border: 0; color: rgba(245,239,223,.56); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.text-button:disabled { opacity: .3; cursor: not-allowed; }

.legend-section { padding-block: 86px; color: var(--paper); background: var(--persimmon-dark); }
.legend-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 34px; }
.legend-grid h2 { max-width: 330px; font-size: 42px; }
.legend-grid article { padding-left: 20px; border-left: 1px solid rgba(245,239,223,.22); }
.legend-grid article span { color: var(--gold); font: 500 24px Georgia, serif; }
.legend-grid h3 { margin: 20px 0 8px; font-size: 13px; }
.legend-grid article p { margin: 0; color: rgba(245,239,223,.65); font-size: 11px; line-height: 1.75; }

.guide-dialog { width: min(920px, calc(100% - 28px)); max-width: none; max-height: min(900px, calc(100dvh - 28px)); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--cream); box-shadow: 0 30px 100px rgba(0,0,0,.35); overflow: hidden; }
.guide-dialog::backdrop { background: rgba(10,24,21,.7); backdrop-filter: blur(5px); }
.dialog-shell { max-height: min(900px, calc(100dvh - 28px)); display: flex; flex-direction: column; }
.dialog-topbar { flex: 0 0 auto; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(245,239,223,.8); }
.dialog-kicker { color: var(--persimmon-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 21px; line-height: 1; cursor: pointer; }
.dialog-content { min-height: 0; overflow-y: auto; padding: clamp(24px, 5vw, 54px); }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 35px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.guide-hero h2 { margin: 0; font: 500 clamp(38px, 5vw, 62px)/.98 Georgia, serif; letter-spacing: -.04em; }
.guide-hero .guide-korean { margin: 8px 0 20px; color: var(--muted); font-size: 12px; }
.guide-hero .guide-deck { margin: 0; color: #4d5b56; font-size: 14px; line-height: 1.8; }
.guide-facts { align-self: start; padding: 18px; border-radius: 16px; color: var(--paper); background: var(--ink); }
.guide-facts div + div { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(245,239,223,.14); }
.guide-facts span, .guide-facts strong { display: block; }
.guide-facts span { color: rgba(245,239,223,.55); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.guide-facts strong { margin-top: 3px; font-size: 11px; }
.say-this { margin: 30px 0; padding: 26px 28px; border-left: 5px solid var(--persimmon); border-radius: 0 16px 16px 0; background: var(--paper); }
.say-this span { display: block; margin-bottom: 10px; color: var(--persimmon-dark); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.say-this blockquote { margin: 0; font: 500 20px/1.55 Georgia, serif; }
.guide-section { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 30px; padding: 27px 0; border-top: 1px solid var(--line); }
.guide-section h3 { margin: 0; color: var(--persimmon-dark); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.guide-section-body p { margin: 0 0 13px; color: #45534e; font-size: 13px; line-height: 1.85; }
.guide-section-body p:last-child { margin-bottom: 0; }
.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-list li { position: relative; padding: 0 0 10px 17px; color: #45534e; font-size: 12px; line-height: 1.7; }
.guide-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border: 1px solid var(--persimmon); transform: rotate(45deg); }
.vocab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.vocab-item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.vocab-item strong { display: block; font-family: Georgia, serif; font-size: 14px; }
.vocab-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.truth-note { padding: 18px; border-radius: 14px; color: #5b4932; background: #f2e4c9; font-size: 11px; line-height: 1.75; }
.source-list { display: flex; flex-wrap: wrap; gap: 7px; }
.source-list a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: white; font-size: 9px; font-weight: 750; text-decoration: none; }
.source-list a:hover { border-color: var(--ink-2); }
.dialog-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: white; }
.dialog-footer .slot-label { color: var(--muted); font-size: 10px; }

.mobile-route-button { display: none; }
.mobile-only { display: none; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 250px; max-width: 360px; padding: 13px 16px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; animation: toast-in .22s ease-out; }
.toast.warning { background: var(--persimmon-dark); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.language-switcher { display: inline-flex; padding: 3px; border: 1px solid rgba(245,239,223,.24); border-radius: 999px; background: rgba(5,19,16,.2); }
.language-switcher button { min-width: 39px; min-height: 34px; border: 0; border-radius: 999px; color: rgba(245,239,223,.7); background: transparent; font-size: 12px; font-weight: 850; letter-spacing: .04em; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { color: var(--ink); background: var(--paper); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.admin-button { color: var(--paper); border: 1px solid rgba(198,162,91,.44); background: rgba(198,162,91,.12); }
.admin-button.active { color: #132d27; background: var(--gold); }
.admin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(198,162,91,.12); }
.admin-button.active .admin-dot { background: var(--ink); box-shadow: none; }

.admin-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: var(--cream); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.admin-dialog::backdrop { background: rgba(10,24,21,.74); backdrop-filter: blur(5px); }
.admin-shell { padding: 26px; }
.admin-shell .dialog-topbar { margin-bottom: 20px; }
.admin-shell h2 { margin: 2px 0 0; font: 500 34px/1.05 Georgia, serif; }
.admin-copy { color: var(--muted); font-size: 15px; line-height: 1.7; }
.admin-form { display: grid; gap: 12px; margin-top: 22px; }
.admin-form label { color: var(--muted); font-size: 13px; font-weight: 750; }
.admin-form input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 17px; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.admin-error { min-height: 1.5em; margin: 0; color: var(--persimmon-dark); font-size: 13px; }
.admin-session-card { padding: 20px; border: 1px solid rgba(36,81,72,.22); border-radius: 16px; background: rgba(36,81,72,.07); }
.admin-session-card strong { display: block; margin-bottom: 6px; font: 500 24px Georgia, serif; }

.admin-research { margin-top: 34px; padding-top: 30px; border-top: 3px solid var(--gold); }
.admin-research-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 24px; }
.admin-research-head h3 { margin: 4px 0 7px; font: 500 30px/1.08 Georgia, serif; }
.admin-bilingual-title { display: grid; gap: 7px; }
.admin-bilingual-title span[lang="ko"] { color: var(--ink-2); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .78em; font-weight: 720; line-height: 1.35; }
.admin-research-head p { margin: 0; color: var(--muted); }
.admin-original-note { margin: 22px 0 0; padding: 14px 16px; border-left: 4px solid var(--gold); color: var(--muted); background: rgba(198,162,91,.1); font-size: 13px; }
.admin-material-block { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.admin-material-block > h4 { margin: 0 0 16px; font: 500 26px/1.1 Georgia, serif; }
.admin-bilingual-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 6px; padding: 0 0 9px 38px; border-bottom: 1px solid var(--line); }
.admin-bilingual-key span, .admin-language-label, .admin-point-language-label { color: var(--persimmon-dark); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.admin-bilingual-list { margin: 0; padding: 0; list-style: none; counter-reset: admin-point; }
.admin-bilingual-point { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 15px 0 15px 38px; color: #33443d; font-size: 16px; line-height: 1.7; counter-increment: admin-point; }
.admin-bilingual-point + .admin-bilingual-point { border-top: 1px solid var(--line); }
.admin-bilingual-point::before { position: absolute; top: 18px; left: 0; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); background: rgba(36,81,72,.09); content: counter(admin-point); font-size: 12px; font-weight: 850; line-height: 1; }
.admin-point-column p { margin: 0; }
.admin-point-korean { padding-left: 24px; border-left: 1px solid var(--line); }
.admin-point-language-label { display: none; }
.admin-depth-section + .admin-depth-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-bilingual-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.admin-language-column { min-width: 0; }
.admin-language-korean { padding-left: 24px; border-left: 1px solid var(--line); }
.admin-language-label { display: inline-block; margin-bottom: 8px; }
.admin-depth-section h5 { margin: 0 0 10px; color: var(--persimmon-dark); font-size: 14px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.admin-depth-section p { margin: 0 0 13px; color: #33443d; font-size: 16px; line-height: 1.8; }
.admin-depth-section p:last-child { margin-bottom: 0; }
.admin-unlock-card { margin-top: 30px; padding: 20px; border: 1px dashed rgba(198,162,91,.7); border-radius: 16px; background: rgba(198,162,91,.08); }
.admin-unlock-card h3 { margin: 0 0 6px; font: 500 24px Georgia, serif; }
.admin-unlock-card p { margin: 0 0 14px; color: var(--muted); }
.translation-reference { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.42); }
.translation-reference summary { padding: 14px 16px; color: var(--muted); font-size: 13px; font-weight: 760; cursor: pointer; }
.translation-reference-body { padding: 0 16px 16px; }

@media (max-width: 1100px) {
  .planner-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .legend-grid { grid-template-columns: repeat(3, 1fr); }
  .legend-grid > div { grid-column: 1 / -1; }
}

@media (max-width: 850px) {
  :root { --wrap: min(100% - 28px, 720px); }
  .top-actions .button.ink, .top-actions #open-itinerary-top { display: none; }
  .top-actions { gap: 7px; }
  .admin-button { padding: 9px 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 58px 70px; }
  .hero h1 { font-size: clamp(54px, 14vw, 82px); }
  .day-card { max-width: 500px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 15px; }
  .planner-layout { display: block; }
  .itinerary-panel { position: fixed; inset: auto 10px 10px 10px; z-index: 901; max-height: calc(100dvh - 20px); transform: translateY(calc(100% + 30px)); transition: transform .25s ease; }
  .itinerary-panel.open { transform: translateY(0); }
  .mobile-only { display: grid; }
  .mobile-route-button { position: fixed; left: 50%; bottom: 14px; z-index: 850; min-width: 160px; display: flex; align-items: center; justify-content: center; gap: 10px; transform: translateX(-50%); padding: 12px 18px; border: 1px solid rgba(245,239,223,.22); border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(10,24,21,.58); }
  .legend-grid { grid-template-columns: 1fr; }
  .legend-grid > div { grid-column: auto; }
  .guide-hero { grid-template-columns: 1fr; }
  .guide-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; overflow: hidden; }
  .guide-facts div, .guide-facts div + div { margin: 0; padding: 13px; border: 0; border-bottom: 1px solid rgba(245,239,223,.12); }
}

@media (max-width: 620px) {
  .topbar { min-height: 76px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .top-actions .button { padding: 9px 11px; }
  .admin-button > span:last-child { display: none; }
  .language-switcher button { min-width: 34px; min-height: 32px; font-size: 11px; }
  .hero { min-height: auto; }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-card h3 { font-size: 21px; }
  .card-summary { min-height: 0; }
  .time-ruler-shell { grid-template-columns: minmax(0,1fr); }
  .time-arrow { display: none; }
  .availability-summary { display: block; }
  .availability-summary span { display: block; margin-top: 3px; }
  .guide-dialog { width: 100%; max-height: calc(100dvh - 8px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dialog-shell { max-height: calc(100dvh - 8px); }
  .dialog-content { padding: 24px 19px 36px; }
  .guide-section { grid-template-columns: 1fr; gap: 12px; }
  .vocab-grid { grid-template-columns: 1fr; }
  .dialog-footer { align-items: stretch; flex-direction: column; }
  .dialog-footer .button { width: 100%; }
  .toast-region { left: 14px; right: 14px; bottom: 72px; }
  .toast { min-width: 0; max-width: none; }
  .admin-shell { padding: 20px 17px; }
  .admin-research-head { display: block; }
  .admin-material-block { padding: 18px 16px; }
  .admin-material-block > h4 { font-size: 23px; }
  .admin-talking-points li, .admin-depth-section p { font-size: 15px; }
  .admin-bilingual-key { display: none; }
  .admin-bilingual-point, .admin-bilingual-section { grid-template-columns: 1fr; gap: 14px; }
  .admin-point-language-label { display: inline-block; margin-bottom: 6px; }
  .admin-point-korean, .admin-language-korean { padding: 14px 0 0; border-top: 1px dashed var(--line); border-left: 0; }
}

/* Readability pass: the original editorial scale was attractive but too small for a day-long field guide. */
@media (min-width: 851px) {
  body { font-size: 18px; }
  .topbar { min-height: 98px; }
  .brand strong { font-size: 20px; }
  .brand small, .eyebrow { font-size: 13px; }
  .button { padding: 13px 19px; font-size: 15px; }
  .hero-lede { font-size: 20px; }
  .day-card dt { font-size: 15px; }
  .day-card dd { font-size: 16px; }
  .day-card p { font-size: 14px; }
  .section-heading > p { font-size: 16px; }
  .time-chip { min-width: 80px; font-size: 15px; }
  .time-chip small { font-size: 10px; }
  .search-field input { font-size: 16px; }
  .filter-chip { padding: 10px 14px; font-size: 14px; }
  .availability-summary { font-size: 15px; }
  .activity-card { padding: 24px; }
  .activity-card h3 { font-size: 27px; }
  .korean-name { font-size: 15px; }
  .card-summary { font-size: 16px; line-height: 1.7; }
  .category-tag, .format-tag { font-size: 12px; }
  .window-line { font-size: 14px; }
  .card-meta { font-size: 13px; }
  .learn-link, .add-button { font-size: 13px; }
  .route-stats strong { font-size: 24px; }
  .route-stats span { font-size: 10px; }
  .route-alert { font-size: 13px; }
  .route-time, .route-info strong { font-size: 14px; }
  .route-info span { font-size: 12px; }
  .guide-hero .guide-deck, .guide-section-body p { font-size: 17px; }
  .guide-section > h3 { font-size: 13px; }
  .guide-facts span, .slot-label { font-size: 12px; }
  .guide-facts strong { font-size: 15px; }
  .dialog-kicker, .say-this span { font-size: 12px; }
  .say-this blockquote { font-size: 22px; }
  .guide-list li, .vocab-item span { font-size: 15px; }
  .source-list a { font-size: 13px; }
  .truth-note { font-size: 15px; }
  .dialog-footer .slot-label { font-size: 13px; }
}

@media (max-width: 850px) {
  body { font-size: 17px; }
  .hero-lede { font-size: 18px; }
  .section-heading > p, .card-summary, .guide-section-body p { font-size: 15px; }
  .filter-chip, .card-meta, .window-line, .route-alert { font-size: 12px; }
  .learn-link, .add-button { font-size: 12px; }
  .guide-list li, .truth-note { font-size: 14px; }
  .source-list a { font-size: 12px; }
}

@media print {
  .topbar, .hero-buttons, .time-ruler-shell, .toolbar, .activity-grid, .legend-section, .mobile-route-button, .route-actions, .guide-dialog { display: none !important; }
  .masthead { color: var(--ink); background: white; }
  .hero { min-height: 0; padding: 30px 0; grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .hero-lede { color: var(--ink); }
  .day-card { display: none; }
  .planner-section { padding: 20px 0; }
  .planner-layout { display: block; }
  .itinerary-panel { position: static; max-height: none; color: var(--ink); background: white; box-shadow: none; }
  .route-list { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
