:root {
  color-scheme: dark;
  --bg:#10141d; --panel:#192130; --text:#edf2fa;
  --muted:#b5c1d4; --line:#39455b; --accent:#91bdff;
  --button:#275cc5; --button-text:#fff;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#f3f6fb; --panel:#fff; --text:#182337;
  --muted:#4c5b73; --line:#c4cede; --accent:#174fa9;
  --button:#2258bf; --button-text:#fff;
}
* { box-sizing:border-box; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font:1rem/1.7 system-ui,-apple-system,"Noto Sans KR",sans-serif;
  overflow-wrap:anywhere;
}
a { color:var(--accent); text-underline-offset:.2em; }
a:hover { text-decoration-thickness:2px; }
.container { width:min(1120px,calc(100% - 2rem)); margin:auto; }
.site-header { border-bottom:1px solid var(--line); background:var(--panel); }
.header-inner { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; padding:1rem 0; }
.brand { font-size:1.35rem; font-weight:800; text-decoration:none; }
nav { display:flex; gap:.65rem 1rem; flex-wrap:wrap; align-items:center; }
.header-inner nav { flex:1; }
main { padding:2rem 0 4rem; min-height:65vh; }
h1,h2,h3,h4 { line-height:1.35; }
h1 { font-size:clamp(2rem,5vw,3.4rem); }
h2 { font-size:clamp(1.5rem,3vw,2.1rem); }
.hero { padding:clamp(1rem,4vw,3rem) 0; max-width:850px; }
.lead { font-size:1.15rem; color:var(--muted); }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.card, article {
  background:var(--panel); border:1px solid var(--line);
  border-radius:14px; padding:1.25rem; margin:1rem 0;
}
.grid .card { margin:0; }
.notice { border-left:4px solid var(--accent); padding:.8rem 1rem; background:var(--panel); }
label { display:block; font-weight:600; margin:.6rem 0 .25rem; }
input,textarea,select {
  width:100%; max-width:100%; min-height:44px; padding:.7rem;
  color:var(--text); background:var(--bg);
  border:1px solid var(--line); border-radius:8px; font:inherit;
}
input[type="checkbox"],input[type="radio"] { width:auto; min-height:auto; }
textarea { min-height:150px; }
button,.button {
  display:inline-block; padding:.65rem 1rem; margin:.35rem .25rem .35rem 0;
  min-height:44px; border:1px solid transparent; border-radius:8px;
  background:var(--button); color:var(--button-text);
  font:inherit; font-weight:600; cursor:pointer; text-decoration:none;
}
button:hover,.button:hover { filter:brightness(1.12); }
form { max-width:760px; }
.helptext { display:block; color:var(--muted); font-size:.9rem; }
.errorlist { color:#ff9d9d; }
:root[data-theme="light"] .errorlist { color:#a01818; }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.skip-link { position:absolute; left:1rem; top:-100px; background:var(--panel); padding:.7rem; }
.skip-link:focus { top:1rem; }
.site-footer { border-top:1px solid var(--line); padding:1.5rem 0; color:var(--muted); }
.inline-form { display:inline; }
.inline-form button { margin:0; }
dt { font-weight:700; }
dd { margin:0 0 .7rem; }
table { display:block; max-width:100%; overflow:auto; }
@media (max-width:640px) {
  .grid { grid-template-columns:1fr; }
  .header-inner { align-items:flex-start; }
  .header-inner nav { flex-basis:100%; }
  main { padding-top:1rem; }
  article,.card { padding:1rem; }
}


/* Responsive photographic hero */
.home-hero {
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:var(--panel);
  margin-bottom:1.5rem;
}
.hero-photo {
  display:block;
  width:100%;
  height:auto;
}
.hero-copy { padding:clamp(1rem,4vw,2.5rem); }
.hero-copy h1 { margin:.5rem 0 1rem; }
.hero-eyebrow { color:var(--accent); font-weight:700; }
.hero-search { max-width:800px; }
.search-row { display:flex; gap:.75rem; align-items:stretch; }
.search-row input { flex:1; min-width:0; }
.search-row button { flex:none; margin:0; min-width:90px; }
.hero-facts {
  display:flex; flex-wrap:wrap; gap:.6rem 1.5rem;
  padding-left:1.2rem; margin-top:1.5rem;
}
.hero-caution { color:var(--muted); font-size:.9rem; max-width:850px; }
@media (max-width:480px) {
  .search-row { flex-direction:column; }
  .hero-facts { display:block; }
  .hero-facts li { margin:.5rem 0; }
}


/* Multilingual navigation */
.header-preferences {
  display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;
}
.language-switcher {
  display:flex; align-items:center; gap:.4rem; max-width:none;
}
.language-switcher select { width:auto; max-width:190px; }
.language-switcher button { margin:0; }
.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;
}
.audience-cards h2 { margin-top:0; }
@media (max-width:640px) {
  .header-preferences { width:100%; }
  .language-switcher { flex:1; }
  .language-switcher select { flex:1; min-width:0; }
}

/* InKorean UI refresh 1 */
[hidden] { display:none !important; }
.navigation-toggle { margin-left:auto; }
.page-heading { margin-bottom:1.75rem; max-width:850px; }
.page-heading h1 { margin:.3rem 0 .75rem; }
.eyebrow { color:var(--accent); font-weight:750; margin:0 0 .4rem; }
.muted { color:var(--muted); }
.search-panel {
  max-width:none; padding:1.25rem;
  border:1px solid var(--line); border-radius:16px;
  background:var(--panel);
}
.search-fields {
  display:grid; grid-template-columns:minmax(0,1fr) 220px auto;
  gap:1rem; align-items:end;
}
.search-fields > div { min-width:0; }
.search-fields label { margin-top:0; }
.search-fields button { margin:0; }
.text-action { display:inline-block; margin-top:.6rem; }
.results-heading {
  display:flex; flex-wrap:wrap; gap:.25rem 1rem;
  justify-content:space-between; align-items:center; margin:1rem 0;
}
.results-heading p { margin:.25rem 0; }
.listing-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem;
}
.listing-card {
  display:flex; flex-direction:column; min-width:0;
  padding:1.5rem; margin:0;
}
.listing-card h2 { font-size:1.45rem; margin:1rem 0; }
.listing-card h2 a { text-decoration:none; }
.listing-card h2 a:hover { text-decoration:underline; }
.listing-badges { display:flex; flex-wrap:wrap; gap:.5rem; }
.badge {
  display:inline-block; padding:.2rem .6rem; margin:0;
  border:1px solid var(--line); border-radius:999px;
  font-size:.83rem; font-weight:650; color:var(--text);
}
.badge-muted { color:var(--muted); }
.listing-facts { margin:.25rem 0; }
.listing-facts > div {
  display:grid; grid-template-columns:100px minmax(0,1fr);
  gap:.65rem; margin-bottom:.45rem;
}
.listing-facts dt { color:var(--muted); font-size:.9rem; }
.listing-facts dd { margin:0; }
.listing-excerpt { color:var(--muted); flex:1; }
.listing-card > .button { align-self:flex-start; }
.empty-state {
  grid-column:1 / -1; padding:2rem;
  border:1px dashed var(--line); border-radius:16px;
}
.empty-state h2 { font-size:1.3rem; }
.pagination {
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:center; gap:1rem; margin:2rem 0;
}
.account-layout {
  display:grid; grid-template-columns:230px minmax(0,1fr);
  gap:1.5rem; align-items:start;
}
.account-navigation {
  display:flex; flex-direction:column; align-items:stretch;
  padding:1rem; background:var(--panel);
  border:1px solid var(--line); border-radius:14px;
}
.account-navigation a { padding:.6rem; }
.account-content { min-width:0; }
.account-panel { margin:0 0 1.25rem; }
.account-panel h2 { margin-top:0; }
.action-row { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; }
.action-row .text-action { margin:0; }
.business-row {
  padding:1rem 0; border-bottom:1px solid var(--line); margin-bottom:1rem;
}
.business-row h3 { margin:0 0 .5rem; }
.business-row > a { display:inline-block; margin-top:.75rem; }
@media (max-width:900px) {
  .search-fields { grid-template-columns:minmax(0,1fr) 180px; }
  .search-fields button { grid-column:1 / -1; }
}
@media (max-width:760px) {
  #primary-navigation {
    flex-basis:100%; width:100%;
    flex-direction:column; align-items:stretch;
    gap:.25rem; padding:.5rem 0;
  }
  #primary-navigation > a { padding:.55rem .25rem; }
  #primary-navigation .inline-form button { width:100%; text-align:left; }
  .header-preferences { width:100%; }
  .account-layout { grid-template-columns:1fr; }
  .account-navigation { gap:.15rem; }
}
@media (max-width:640px) {
  .listing-grid { grid-template-columns:1fr; }
  .search-fields { grid-template-columns:1fr; }
  .search-fields button { grid-column:auto; }
  .listing-card { padding:1.1rem; }
  .listing-facts > div { grid-template-columns:90px minmax(0,1fr); }
  .search-panel { padding:1rem; }
}

/* InKorean split header 1 */
.split-header {
  --header-bg:#15241f;
  --header-text:#f1f3ec;
  --header-muted:#b7c5bb;
  --header-line:#3a5045;
  --header-accent:#d8c28e;
  background:var(--header-bg);
  color:var(--header-text);
  border-bottom:1px solid var(--header-line);
}
:root[data-theme="light"] .split-header {
  --header-bg:#fbfaf5;
  --header-text:#25382e;
  --header-muted:#647166;
  --header-line:#dedfd3;
  --header-accent:#806333;
}
.split-header .header-inner {
  display:flex; align-items:center; flex-wrap:nowrap;
  gap:1.6rem; padding:1.15rem 0; min-height:86px;
}
.split-header a { color:var(--header-text); text-decoration:none; }
.split-header a:hover { color:var(--header-accent); }
.split-header .split-brand {
  display:inline-flex; align-items:center; gap:.7rem;
  flex:none; margin:0;
}
.brand-emblem {
  display:grid; place-items:center;
  width:38px; height:38px; flex:none;
  border:1px solid var(--header-accent); border-radius:50%;
  color:var(--header-accent);
  font-size:1rem; font-weight:750; letter-spacing:-.06em;
}
.brand-wordmark { display:flex; flex-direction:column; }
.brand-name {
  font-size:1.3rem; font-weight:800;
  letter-spacing:-.045em; line-height:1.15;
}
.brand-caption {
  margin-top:.3rem; font-size:.62rem; font-weight:550;
  letter-spacing:.06em; line-height:1.3;
  color:var(--header-muted);
}
.split-navigation {
  display:flex; align-items:center; justify-content:flex-end;
  gap:1.1rem; flex:1; min-width:0;
}
.split-header .split-links {
  display:flex; align-items:center; justify-content:flex-end;
  flex:1; flex-wrap:nowrap; gap:1.1rem;
  font-size:.82rem; font-weight:600;
}
.split-links > a { white-space:nowrap; padding:.55rem 0; }
.split-links .header-account {
  padding:.5rem .8rem;
  border:1px solid var(--header-line); border-radius:6px;
}
.split-links .header-account:hover { border-color:var(--header-accent); }
.guide-dropdown { position:relative; }
.guide-dropdown summary {
  display:flex; align-items:center; gap:.4rem;
  padding:.65rem 0; cursor:pointer; list-style:none; white-space:nowrap;
}
.guide-dropdown summary::-webkit-details-marker { display:none; }
.guide-dropdown summary::after {
  content:""; width:6px; height:6px;
  border-right:1px solid currentColor; border-bottom:1px solid currentColor;
  transform:rotate(45deg); margin-top:-3px;
}
.guide-dropdown[open] summary { color:var(--header-accent); }
.guide-dropdown-panel {
  position:absolute; top:100%; left:-1rem; z-index:30;
  width:240px; padding:.45rem;
  background:var(--header-bg); border:1px solid var(--header-line);
  border-radius:8px; box-shadow:0 14px 35px #0003;
}
.guide-dropdown-panel a {
  display:block; padding:.7rem .6rem; border-radius:4px;
}
.guide-dropdown-panel a:hover { background:var(--panel); }
.split-header .header-preferences {
  display:flex; align-items:center; flex-wrap:nowrap;
  gap:.45rem; width:auto;
  border-left:1px solid var(--header-line); padding-left:1rem;
}
.split-header .language-switcher {
  display:flex; flex:none; gap:.3rem; margin:0;
}
.split-header .language-switcher select {
  width:112px; max-width:112px; min-height:40px;
  padding:.35rem .45rem; font-size:.75rem;
  color:var(--header-text); background:var(--header-bg);
  border-color:var(--header-line); border-radius:5px;
}
.split-header .language-switcher button,
.split-header .header-logout button {
  min-height:40px; margin:0; padding:.35rem .5rem;
  font-size:.75rem; font-weight:600;
  color:var(--header-text); background:transparent;
  border:1px solid var(--header-line); border-radius:5px;
}
.split-header #theme-toggle {
  display:inline-grid; place-items:center;
  width:40px; height:40px; min-height:40px;
  padding:0; margin:0; flex:none;
  background:transparent; color:var(--header-text);
  border:1px solid var(--header-line); border-radius:5px;
  font-size:0;
}
.split-header #theme-toggle::before {
  content:"☀"; font-size:1.2rem; line-height:1;
}
:root[data-theme="light"] .split-header #theme-toggle::before { content:"☾"; }
.split-header .navigation-toggle {
  display:inline-flex; align-items:center; gap:.55rem;
  margin:0 0 0 auto; min-height:44px; padding:.5rem .7rem;
  background:transparent; color:var(--header-text);
  border:1px solid var(--header-line); border-radius:6px;
  font-size:.8rem; font-weight:600;
}
.menu-lines {
  position:relative; display:block;
  width:16px; height:2px; background:currentColor;
}
.menu-lines::before,.menu-lines::after {
  content:""; position:absolute; left:0;
  width:16px; height:2px; background:currentColor;
}
.menu-lines::before { top:-5px; }
.menu-lines::after { top:5px; }
.split-header :focus-visible {
  outline:3px solid var(--header-accent); outline-offset:4px;
}
@media (max-width:1080px) {
  .split-header .header-inner {
    flex-wrap:wrap; gap:0; padding:.85rem 0; min-height:74px;
  }
  .split-header .brand-name { font-size:1.22rem; }
  .split-header .brand-caption { font-size:.6rem; }
  .split-header #primary-navigation {
    display:flex; flex-basis:100%; width:100%;
    flex-direction:column; align-items:stretch;
    gap:1rem; padding:1rem 0 .25rem; margin-top:.8rem;
    border-top:1px solid var(--header-line);
  }
  .split-header .split-links {
    flex:none; flex-direction:column; align-items:stretch;
    gap:0; font-size:.9rem;
  }
  .split-header .split-links > a,
  .split-header .guide-dropdown summary {
    padding:.7rem .3rem;
  }
  .split-header .split-links .header-account {
    margin:.4rem 0; text-align:center;
  }
  .split-header .header-logout { display:block; }
  .split-header .header-logout button { width:100%; text-align:left; padding:.7rem .3rem; }
  .split-header .guide-dropdown-panel {
    position:static; width:100%; box-shadow:none;
    border:0; border-left:1px solid var(--header-line);
    border-radius:0; margin:.2rem 0 .6rem; padding:0 .6rem;
  }
  .split-header .header-preferences {
    width:100%; border-left:0; border-top:1px solid var(--header-line);
    padding:1rem 0 0; justify-content:space-between; gap:.75rem;
  }
  .split-header .language-switcher { flex:1; }
  .split-header .language-switcher select {
    flex:1; width:auto; max-width:none; min-height:44px; font-size:.85rem;
  }
  .split-header .language-switcher button,
  .split-header #theme-toggle { min-height:44px; height:44px; }
  .split-header #theme-toggle { width:44px; }
}


/* Dark-mode hero treatment */
:root:not([data-theme="light"]) .home-hero .hero-photo {
  filter: brightness(.65) saturate(.85);
}
:root[data-theme="light"] .home-hero .hero-photo {
  filter: none;
}

/* Illustrated InKorean hero */
.illustrated-hero {
  --art-color:#d8c28e;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr);
  align-items:center;
  background:
    radial-gradient(ellipse at 88% 42%,#b59b5520,transparent 60%),
    var(--panel);
  border-radius:18px;
}
.illustrated-hero .hero-copy {
  grid-column:1; grid-row:1;
  padding:clamp(1.5rem,4vw,3rem);
  padding-right:1rem; min-width:0;
}
.illustrated-hero .hero-copy h1 {
  font-size:clamp(2rem,3.8vw,3.1rem);
  line-height:1.16;
  letter-spacing:-.035em;
  margin:.85rem 0 1rem;
}
.illustrated-hero .hero-eyebrow {
  color:var(--art-color);
  font-size:.8rem;
  font-weight:650;
  max-width:36rem;
}
.illustrated-hero .lead { font-size:1.05rem; }
.illustrated-hero .hero-art {
  grid-column:2; grid-row:1;
  display:grid; place-items:center;
  padding:1.5rem 1.5rem 1.5rem 0;
  color:var(--art-color); min-width:0;
}
.hero-vector { display:block; width:100%; height:auto; max-width:420px; }
.illustrated-hero .hero-facts {
  font-size:.82rem; gap:.5rem 1rem;
  margin-top:1.4rem;
}
.illustrated-hero .hero-caution { font-size:.8rem; }
.audience-icon {
  display:block; width:42px; height:42px;
  color:#d8c28e; margin:0 0 1rem;
}
.audience-cards .card { padding:1.5rem; }
.audience-cards h2 { font-size:1.4rem; }
:root[data-theme="light"] .illustrated-hero {
  --art-color:#806333;
  background:
    radial-gradient(ellipse at 88% 42%,#b59b5516,transparent 60%),
    var(--panel);
}
:root[data-theme="light"] .audience-icon { color:#806333; }
@media(max-width:760px) {
  .illustrated-hero { grid-template-columns:minmax(0,1fr); }
  .illustrated-hero .hero-copy {
    grid-column:1; grid-row:1;
    padding:1.5rem 1.25rem .75rem;
  }
  .illustrated-hero .hero-art {
    grid-column:1; grid-row:2;
    padding:0 1.5rem 1rem;
  }
  .illustrated-hero .hero-vector { max-width:250px; }
  .illustrated-hero .hero-copy h1 { font-size:clamp(2rem,8vw,2.6rem); }
  .illustrated-hero .hero-facts { margin-top:1rem; }
}
