:root {
  --blue: #043bc7;
  --blue-deep: #052f9f;
  --blue-soft: #edf3ff;
  --blue-pale: #f6f9fd;
  --ink: #30343b;
  --heading: #102044;
  --muted: #6e7480;
  --line: #e4e9f2;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --warning: #fff5d5;
  --warning-ink: #6a4a00;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(12, 48, 130, .1);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible { outline: 3px solid rgba(4, 59, 199, .28); outline-offset: 3px; }
.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;
}

.archive-bar {
  min-height: 36px;
  padding: 7px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  background: var(--warning);
  color: var(--warning-ink);
  font-size: 13px;
  text-align: center;
}
.archive-bar strong { letter-spacing: .04em; }
.archive-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(15, 24, 48, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

/* Current Wix header reconstruction */
.site-header {
  position: relative;
  z-index: 40;
  width: 100%;
  max-width: 1800px;
  min-height: 106px;
  margin: 0 auto;
  padding: 0 clamp(28px, 5vw, 90px);
  display: flex;
  align-items: center;
  gap: clamp(44px, 5.5vw, 100px);
  background: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.brand-full {
  width: clamp(210px, 15.2vw, 274px);
  flex: 0 0 auto;
}
.brand-full img { width: 100%; height: auto; object-fit: contain; }
.primary-nav {
  width: min(830px, 56vw);
  margin-right: clamp(0px, 10vw, 180px);
}
.primary-nav > ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 76px);
  list-style: none;
}
.nav-item { position: relative; }
.nav-home,
.nav-parent {
  min-height: 54px;
  padding: 13px 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--blue);
  font-size: 18px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-home.is-current,
.nav-item.is-current > .nav-parent { color: #8a8a8d; }
.nav-home:hover,
.nav-home:focus-visible,
.nav-parent:hover,
.nav-parent:focus-visible { border-bottom-color: var(--blue); }
.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.has-submenu.submenu-open .nav-caret { transform: translateY(2px) rotate(225deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  width: max-content;
  min-width: 236px;
  max-width: 330px;
  margin: 0;
  padding: 11px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(14, 45, 116, .16);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}
.nav-dropdown a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #293650;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible { background: var(--blue-soft); color: var(--blue); }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--blue); }

@media (min-width: 1061px) {
  .has-submenu:hover > .nav-dropdown,
  .has-submenu:focus-within > .nav-dropdown,
  .has-submenu.submenu-open > .nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Above the fold mirrors the current dashboard thumbnail. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 974px;
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55.7% 44.3%;
  align-items: center;
  overflow: hidden;
  background: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: var(--blue-pale);
  clip-path: polygon(0 0, 38% 100%, 100% 12%, 100% 100%, 0 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(630px, calc(100% - 70px));
  margin-left: clamp(42px, 13.4vw, 241px);
  padding-bottom: 0;
  transform: translateY(-31px);
}
.hero h1 {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: clamp(48px, 3.35vw, 60px);
  font-weight: 850;
  line-height: 1.62;
  letter-spacing: -.055em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-tags {
  margin: 0 0 40px;
  color: #32343a;
  font-size: clamp(16px, 1.12vw, 20px);
  font-weight: 750;
  letter-spacing: -.035em;
}
.hero-tags b { padding: 0 5px; color: #595b61; font-weight: 500; }
.lead { margin: 0 0 16px; color: #71747b; font-size: 17px; }
.hero-points { margin: 0 0 42px; padding: 0; list-style: none; color: #686c73; font-size: 17px; }
.hero-points li { position: relative; margin: 15px 0; padding-left: 29px; }
.hero-points li::before { content: ""; position: absolute; left: 5px; top: .74em; width: 9px; height: 9px; border-radius: 50%; background: #3b3d42; }
.primary-button,
.secondary-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 27px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 720;
  text-decoration: none;
}
.primary-button { width: 100%; min-height: 80px; font-size: 17px; }
.primary-button:disabled { cursor: not-allowed; opacity: 1; }
.cta-safety { margin: 8px 0 0; color: #979ca7; font-size: 11px; text-align: center; }
.hero-visual { position: relative; z-index: 1; align-self: stretch; display: grid; align-items: center; justify-items: end; padding-bottom: 82px; }
.hero-blue { position: absolute; z-index: 0; top: 0; right: 0; width: 75%; height: 800px; background: var(--blue); }
.hero-visual img {
  position: relative;
  z-index: 1;
  right: 1.5%;
  width: min(930px, 58vw);
  max-width: none;
  max-height: 790px;
  object-fit: contain;
  filter: drop-shadow(0 25px 28px rgba(13, 44, 105, .12));
  transform: translateY(-43px);
}

.section { padding: 118px max(28px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.centered-heading { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2,
.assurance-copy h2,
.community-copy h2,
.archive-hub h2,
.provenance-section h2 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.22;
  letter-spacing: -.045em;
}
.section-heading > p:last-child,
.archive-hub p,
.community-copy > p,
.provenance-section > div > p { color: var(--muted); font-size: 17px; }

.about-section { background: #fff; }
.about-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(52px, 7vw, 100px); align-items: center; }
.about-image-stack { position: relative; min-height: 520px; padding: 0 80px 70px 0; }
.about-main-image { width: 100%; height: 500px; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); }
.about-small-image { position: absolute; right: 0; bottom: 0; width: 210px; height: 285px; object-fit: cover; object-position: top; border: 10px solid #fff; box-shadow: 0 18px 50px rgba(13, 38, 92, .18); }
.about-copy p { color: var(--muted); }
.about-copy .large-copy { color: #30343b; font-size: 21px; font-weight: 620; line-height: 1.8; }
.route-link-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.route-link-grid a { padding: 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.route-link-grid a:hover { border-color: var(--blue); transform: translateY(-2px); }
.route-link-grid span { display: block; color: var(--heading); font-weight: 760; }
.route-link-grid small { display: block; margin-top: 5px; color: var(--muted); }

.services-section { background: var(--blue-pale); }
.major-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.major-service {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e7f3;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(13, 47, 126, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.major-service:hover { transform: translateY(-5px); border-color: #bdcdf4; box-shadow: 0 24px 55px rgba(13, 47, 126, .12); }
.service-card-top { min-height: 86px; padding: 22px 24px 4px; display: flex; align-items: flex-start; justify-content: space-between; }
.service-index { color: #b3bed7; font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.service-icon { width: 58px; height: 58px; padding: 10px; object-fit: contain; border-radius: 14px; background: var(--blue); }
.service-card-copy { min-height: 142px; padding: 5px 24px 24px; }
.service-card-copy strong { display: block; margin-bottom: 10px; color: var(--heading); font-size: 23px; letter-spacing: -.025em; }
.service-card-copy > span { color: var(--muted); font-size: 14px; }
.service-screen { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: contain; background: #f1f3f7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.local-more { padding: 15px 24px; color: var(--blue); font-size: 13px; font-weight: 750; }
.evidence-note { max-width: 980px; margin: 38px auto 0; padding: 15px 18px; display: flex; gap: 14px; border: 1px solid #d9e3f7; border-radius: 10px; background: rgba(255, 255, 255, .75); color: var(--muted); font-size: 12px; }
.evidence-note strong { flex: 0 0 auto; color: var(--blue); }

.assurance-section { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(54px, 8vw, 110px); align-items: center; }
.assurance-visual { padding: 36px; background: var(--blue-soft); }
.assurance-visual img { width: 100%; }
.assurance-copy > p { color: var(--muted); }
.compact-steps { margin: 28px 0 32px; }
.compact-steps > div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.compact-steps > div > span { color: var(--blue); font-weight: 850; }
.compact-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.compact-steps strong { display: block; color: var(--heading); font-size: 17px; }
.secondary-button { min-height: 52px; border: 1px solid #c5d3f4; background: #fff; color: var(--blue); }
.secondary-button:hover { background: var(--blue-soft); }

.support-section { background: #fff; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.support-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(24, 49, 105, .055); }
.support-card > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--blue-soft); }
.support-card > div { padding: 22px; }
.card-kicker { margin: 0 0 6px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.support-card h3,
.support-card h2 { margin: 0 0 9px; color: var(--heading); font-size: 19px; line-height: 1.4; }
.support-card p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-banner { margin-top: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); border: 1px solid #d7e0ef; background: #f6f9ff; }
.contact-banner > img { width: 100%; height: 100%; min-height: 360px; object-fit: contain; background: #fff; }
.contact-banner > div { padding: clamp(34px, 5vw, 70px); align-self: center; }
.contact-banner h3,
.contact-banner h2 { margin: 0; color: var(--heading); font-size: 34px; }
.contact-banner strong { color: var(--blue); font-size: 22px; }
.contact-banner p:not(.eyebrow) { color: var(--muted); }
.contact-banner button { padding: 10px 16px; border: 1px solid #ccd6e8; border-radius: 8px; background: #e8edf5; color: #7b8495; cursor: not-allowed; }

.point-section { background: var(--blue-pale); }
.point-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.point-card { min-height: 330px; padding: 30px; display: grid; grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr); gap: 26px; align-items: center; border: 1px solid #dde6f5; background: #fff; }
.point-card img { width: 100%; max-height: 260px; object-fit: contain; }
.point-card h3 { margin: 0 0 10px; color: var(--heading); font-size: 24px; }
.point-card p:not(.card-kicker) { color: var(--muted); }
.text-link { color: var(--blue); font-size: 14px; font-weight: 750; text-decoration: none; }

.community-section { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(48px, 7vw, 96px); align-items: center; }
.community-visual { padding: 30px; background: var(--blue); }
.community-visual img { width: 100%; }
.board-chip-grid { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 9px; }
.board-chip-grid span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: #45516a; background: #fff; font-size: 13px; }
.inline-actions,
.archive-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.archive-hub { display: flex; align-items: center; justify-content: space-between; gap: 46px; background: #0b245f; color: #fff; }
.archive-hub h2 { color: #fff; }
.archive-hub p { max-width: 690px; color: #c4cfea; }
.archive-hub .secondary-button { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.archive-hub .secondary-button:hover { background: rgba(255, 255, 255, .1); }

.historical-faq { max-width: none; margin: 0; background: #fff; }
.historical-faq > .section-heading,
.historical-faq > .faq-list { width: min(100%, 1050px); margin-left: auto; margin-right: auto; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.faq-list details[open] {
  border-color: #c5d3f4;
  background: #fbfdff;
  box-shadow: 0 12px 30px rgba(13, 47, 126, .08);
}
.faq-list summary {
  position: relative;
  min-height: 72px;
  padding: 20px 68px 20px 24px;
  display: flex;
  align-items: center;
  color: var(--heading);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.faq-list details[open] summary::after {
  background: var(--blue);
  color: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details p {
  margin: 0;
  padding: 0 68px 24px 24px;
  color: var(--muted);
  line-height: 1.8;
}
.provenance-section { background: var(--blue-pale); }
.provenance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.provenance-grid article { padding: 25px; border-left: 3px solid var(--blue); background: #fff; }
.provenance-grid strong { color: var(--heading); }
.provenance-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.provenance-link { margin-top: 24px; color: var(--muted); font-size: 13px; }

.site-footer { padding: 58px 28px; background: #071a43; color: #bcc8e1; text-align: center; }
.site-footer img { width: 196px; margin: 0 auto 18px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer p { margin: 10px 0 0; }
.footer-note { font-size: 12px; opacity: .72; }

/* Generated local route pages */
.route-page .site-header { border-bottom: 1px solid var(--line); }
.route-hero { max-width: var(--max); min-height: 520px; margin: 0 auto; padding: 82px 28px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: 70px; align-items: center; }
.route-hero h1 { margin: 0 0 20px; color: var(--heading); font-size: clamp(40px, 5vw, 64px); line-height: 1.2; letter-spacing: -.05em; }
.route-hero p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.source-badge { display: inline-flex; margin-top: 12px; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.route-visual { min-height: 310px; padding: 28px; display: grid; place-items: center; background: var(--blue); }
.route-visual:empty::after { content: "보존된 시각 자료 없음"; color: #dbe5ff; }
.route-visual img { max-height: 420px; object-fit: contain; }
.route-content { padding: 80px max(28px, calc((100vw - 1040px) / 2)); background: var(--blue-pale); }
.route-detail-list { display: grid; gap: 14px; }
.route-detail-list article { padding: 27px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; border: 1px solid var(--line); background: #fff; }
.route-detail-list article > span { color: var(--blue); font-weight: 850; }
.route-detail-list h2 { margin: 0 0 8px; color: var(--heading); font-size: 22px; }
.route-detail-list p { margin: 0; color: var(--muted); }
.compact-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-contact { margin-top: 28px; }
.route-safety { margin: 24px 0 0; padding: 17px; border-left: 3px solid var(--blue); background: #fff; color: var(--muted); }
.route-provenance { max-width: 900px; margin: 0 auto; padding: 84px 28px 110px; }
.route-provenance h2 { color: var(--heading); font-size: 30px; }
.route-provenance p { color: var(--muted); }

/* Blog and generated archive pages */
.subpage-header { max-width: 1000px; margin: 0 auto; padding: 42px 24px 20px; }
.subpage-header .brand-full { width: 210px; margin-bottom: 26px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.archive-shell { max-width: 1000px; min-height: 60vh; margin: 0 auto; padding: 34px 24px 100px; }
.archive-title { margin: 0 0 12px; color: var(--heading); font-size: clamp(36px, 5vw, 58px); line-height: 1.2; letter-spacing: -.045em; }
.archive-lead { max-width: 740px; color: var(--muted); }
.post-list { display: grid; gap: 18px; margin-top: 42px; }
.post-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(21, 49, 109, .1); }
.post-card img,
.post-card .cover-placeholder { width: 180px; height: 124px; object-fit: cover; border-radius: 12px; background: var(--blue-soft); }
.post-card h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--muted); }
.post-meta { color: #7e879b; font-size: 13px; }
.post-page { max-width: 860px; }
.post-page .post-meta { margin: 14px 0 34px; }
.post-hero-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: 18px; }
.post-content { margin-top: 44px; font-size: 17px; }
.post-content h2,
.post-content h3,
.post-content h4 { margin: 2.2em 0 .7em; line-height: 1.35; letter-spacing: -.025em; }
.post-content p { margin: 0 0 1.2em; }
.post-content p.spacer { min-height: .5em; margin: 0; }
.post-content figure { margin: 32px 0; }
.post-content figure img { max-height: 740px; margin: 0 auto; border-radius: 14px; }
.post-content figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.post-content pre { overflow: auto; padding: 18px; border-radius: 12px; background: #101827; color: #eaf0ff; }
.content-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.draft-banner { margin: 22px 0; padding: 14px 18px; border: 1px solid #f0d782; border-radius: 10px; background: var(--warning); color: var(--warning-ink); }

/* Media archive */
.media-toolbar { position: sticky; top: 0; z-index: 10; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.media-search { width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid #cdd5e5; border-radius: 9px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.media-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.media-item img { width: 100%; height: 180px; object-fit: contain; background: #f3f5f9; }
.media-item figcaption { padding: 12px; }
.media-item strong,
.media-item code { display: block; overflow-wrap: anywhere; }
.media-item strong { font-size: 13px; }
.media-item code { margin-top: 6px; color: var(--muted); font-size: 10px; }

@media (max-width: 1260px) {
  .primary-nav { margin-right: 0; width: min(760px, 62vw); }
  .hero-copy { margin-left: clamp(42px, 8vw, 120px); }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  .site-header { min-height: 86px; padding: 0 24px; }
  .brand-full { width: 220px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 78px; left: 18px; right: 18px; width: auto; margin: 0; padding: 14px; display: none; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { display: block; }
  .nav-home,
  .nav-parent { width: 100%; min-height: 45px; padding: 11px 12px; justify-content: space-between; font-size: 16px; }
  .nav-dropdown { position: static; width: 100%; max-width: none; padding: 3px 4px 8px 18px; display: none; visibility: visible; opacity: 1; transform: none; border: 0; border-radius: 0; box-shadow: none; }
  .nav-dropdown::before { display: none; }
  .has-submenu.submenu-open > .nav-dropdown { display: block; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-bottom: 80px; }
  .hero-copy { width: min(700px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 20px; }
  .hero-visual { min-height: 560px; padding-bottom: 70px; }
  .hero-copy { transform: none; }
  .hero-blue { width: 68%; height: 90%; }
  .hero-visual img { right: 3%; width: min(900px, 92vw); transform: none; }
  .about-layout,
  .assurance-section,
  .community-section,
  .route-hero { grid-template-columns: 1fr; }
  .major-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-banner { grid-template-columns: 1fr; }
  .contact-banner > img { min-height: 0; }
  .point-grid { grid-template-columns: 1fr; }
  .archive-hub { align-items: flex-start; flex-direction: column; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .archive-bar { align-items: flex-start; flex-direction: column; gap: 0; text-align: left; }
  .site-header { min-height: 76px; padding: 0 17px; }
  .brand-full { width: 180px; }
  .primary-nav { top: 70px; }
  .hero-copy { width: calc(100% - 40px); padding-top: 48px; }
  .hero h1 { margin-bottom: 17px; font-size: clamp(38px, 11vw, 52px); line-height: 1.4; }
  .hero h1 span { white-space: normal; }
  .hero-tags { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-bottom: 30px; font-size: 14px; }
  .hero-tags b { padding: 0; }
  .hero-points { font-size: 15px; }
  .primary-button { min-height: 66px; }
  .hero-visual { min-height: 390px; }
  .hero-blue { width: 78%; height: 84%; }
  .hero-visual img { right: -5%; width: 112vw; }
  .hero::after { height: 50px; }
  .section { padding: 76px 20px; }
  .section-heading { margin-bottom: 34px; }
  .about-image-stack { min-height: 390px; padding: 0 48px 54px 0; }
  .about-main-image { height: 370px; }
  .about-small-image { width: 145px; height: 210px; border-width: 7px; }
  .route-link-grid,
  .major-service-grid,
  .support-grid,
  .compact-support,
  .provenance-grid,
  .media-grid { grid-template-columns: 1fr; }
  .service-card-copy { min-height: auto; }
  .evidence-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .assurance-visual { padding: 18px; }
  .point-card { grid-template-columns: 110px 1fr; padding: 20px; }
  .contact-banner > div { padding: 28px 22px 38px; }
  .archive-actions,
  .inline-actions { align-items: stretch; flex-direction: column; }
  .secondary-button { width: 100%; }
  .faq-list summary { min-height: 64px; padding: 17px 58px 17px 18px; font-size: 16px; }
  .faq-list summary::after { right: 16px; width: 30px; height: 30px; }
  .faq-list details p { padding: 0 18px 20px; font-size: 14px; }
  .route-hero { min-height: 0; padding: 54px 20px; gap: 34px; }
  .route-visual { min-height: 230px; padding: 18px; }
  .route-content { padding: 58px 20px; }
  .route-detail-list article { grid-template-columns: 38px 1fr; padding: 20px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img,
  .post-card .cover-placeholder { width: 100%; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
