/* SichuanRoam — single stylesheet. Design tokens, shell, nav, cinematic hero, guide layout. */

:root {
  --ink: #10231d;
  --muted: #597066;
  --paper: #f4f1e8;
  --white: #fffef9;
  --forest: #163f32;
  --forest-2: #255c48;
  --lime: #d5ef6c;
  --orange: #ef6a3a;
  --line: rgba(16, 35, 29, .16);
  --shadow: 0 24px 70px rgba(16, 35, 29, .13);
  --radius: 22px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --nav-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.has-hero { padding-top: 0; }
body:not(.has-hero) { padding-top: var(--nav-h); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 18px; background: var(--forest); color: #fff; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ---------- navigation ---------- */

.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(244, 241, 232, .92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background .25s ease, border-color .25s ease;
}
body.has-hero .nav-wrap {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.has-hero .nav-wrap.solid {
  background: rgba(244, 241, 232, .94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nav { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { padding: 10px 17px; border-radius: 999px; background: var(--forest); color: #fff; }
.nav-links .nav-cta:hover { color: var(--lime); }
.menu-button { display: none; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }

body.has-hero .nav-wrap:not(.solid) .brand { color: #fff; }
body.has-hero .nav-wrap:not(.solid) .brand-mark { background: rgba(255, 255, 255, .16); color: #fff; }
body.has-hero .nav-wrap:not(.solid) .nav-links a { color: rgba(255, 255, 255, .86); }
body.has-hero .nav-wrap:not(.solid) .nav-links a:hover { color: #fff; }
body.has-hero .nav-wrap:not(.solid) .nav-links a.nav-cta { background: #fff; color: var(--forest); }
body.has-hero .nav-wrap:not(.solid) .nav-links a.nav-cta:hover { background: var(--lime); color: var(--forest); }
body.has-hero .nav-wrap:not(.solid) .menu-button { color: #fff; }

/* ---------- cinematic hero ---------- */

.sr-hero {
  --panda-rotate-x: 0deg;
  --panda-rotate-y: 0deg;
  --panda-shift-x: 0px;
  --panda-shift-y: 0px;
  position: relative;
  isolation: isolate;
  perspective: 1100px;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  color: #fff;
  background: #16221a;
}
.sr-hero::before {
  content: '';
  position: absolute;
  inset: -3%;
  z-index: -2;
  pointer-events: none;
  background: url('/assets/img/panda-hero-1280.webp') 68% center / cover no-repeat;
  transform-origin: 72% 43%;
  transform: translate3d(var(--panda-shift-x), var(--panda-shift-y), 0) rotateX(var(--panda-rotate-x)) rotateY(var(--panda-rotate-y)) scale(1.065);
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.sr-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 10, 7, .62) 0%, rgba(4, 10, 7, .18) 52%, rgba(4, 10, 7, .06) 100%);
}
@media (min-width: 1280px) {
  .sr-hero::before { background-image: url('/assets/img/panda-hero-1920.webp'); }
}
.sr-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) 48px 56px;
  width: min(1680px, 100%);
  margin-inline: auto;
}
.sr-main { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; }
.sr-copy { max-width: 670px; }
.sr-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sr-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .22);
}
.sr-copy > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.65;
}
.sr-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .2);
}
.sr-email span { color: #657069; font-size: 14px; }
.sr-email a {
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff;
  background: #1b1b1b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sr-email a:hover { background: var(--forest); }
.sr-cards { display: flex; gap: 18px; }
.sr-card {
  width: 248px;
  min-height: 204px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.sr-card-kicker { margin: 0 0 14px; color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sr-card h2 { margin: 0; color: #fff; font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.sr-card p { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; }
.sr-card-link { display: inline-block; margin-top: 18px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.sr-card-link:hover { color: var(--lime); }
.sr-whatsapp { flex-direction: column; align-items: flex-start; gap: 14px; }
.sr-whatsapp .sr-qr { width: 96px; height: 96px; }
.sr-qr {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}
.sr-qr img { width: 100%; height: 100%; border-radius: 8px; }
.sr-wa-copy { min-width: 0; }
.sr-wa-copy h2 { font-size: 18px; }

/* ---------- generic sections ---------- */

.eyebrow { margin: 0 0 18px; color: var(--forest-2); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { font-family: var(--serif); font-size: clamp(3.4rem, 7.2vw, 6.9rem); font-weight: 500; }
h2 { font-family: var(--serif); font-size: clamp(2.35rem, 4vw, 4rem); font-weight: 500; }
h3 { font-size: 1.08rem; letter-spacing: -.02em; }
.lead { max-width: 700px; margin-top: 26px; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.34rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border: 1px solid var(--forest); border-radius: 999px;
  font: inherit; font-weight: 750; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button.primary { background: var(--forest); color: #fff; }
.button.secondary { background: transparent; color: var(--forest); }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 35, 29, .14); }
.promise { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; }
.promise::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

.section { padding: 110px 0; }
.section.alt { background: var(--forest); color: #fff; }
.section.alt .eyebrow { color: var(--lime); }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.section-head p:last-child { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.alt .section-head p:last-child { color: #bad0c6; }

.metric-strip { border-block: 1px solid var(--line); background: var(--paper); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 23px 20px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.metric span { color: var(--muted); font-size: .82rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service { min-height: 230px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.service-number { margin-bottom: 52px; color: var(--orange); font: 500 2rem var(--serif); }
.service p { margin-top: 13px; color: var(--muted); }

.route-list { border-top: 1px solid rgba(255, 255, 255, .25); }
.route { display: grid; grid-template-columns: 80px 1fr auto; gap: 28px; align-items: center; padding: 28px 6px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.route span { color: var(--lime); font: 500 1.35rem var(--serif); }
.route h3 { font: 500 clamp(1.6rem, 3vw, 2.45rem) var(--serif); }
.route p { color: #bad0c6; text-align: right; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { padding: 26px; border-top: 3px solid var(--orange); background: rgba(255, 255, 255, .55); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 35px; color: var(--forest-2); font-weight: 800; }
.step h3 { font-family: var(--sans); font-weight: 750; }
.step p { margin-top: 12px; color: var(--muted); }

/* ---------- enquiry ---------- */

.contact-card { display: grid; grid-template-columns: 1fr .95fr; gap: 48px; padding: 48px; background: var(--lime); border-radius: 32px; }
/* The form column grew taller than the copy column. Pin the copy so the heading
   and contact details stay visible while the enquirer works down the fields. */
.contact-card > div:first-child { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.contact-card h2 { max-width: 580px; }
.contact-card .contact-note { margin-top: 22px; color: var(--forest-2); font-weight: 650; }
.contact-lines { margin-top: 28px; display: grid; gap: 10px; font-size: .95rem; }
.contact-lines a { text-underline-offset: 4px; }
.brief-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
input, textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid rgba(16, 35, 29, .35); border-radius: 12px;
  background: rgba(255, 255, 255, .72); color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.brief-form .button { grid-column: 1 / -1; width: 100%; border-color: var(--forest); background: var(--forest); color: #fff; }
.form-note { grid-column: 1 / -1; color: var(--forest-2); font-size: .8rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ---------- enquiry form: lower-friction fields ---------- */
/* Only three fields are required (name, email, request). Everything else is
   marked optional so a first-time enquirer does not feel they must have a
   finished plan before writing. */
.form-intro {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--forest-2);
  font-size: .92rem;
  font-weight: 650;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  vertical-align: middle;
}
.tag.req { background: var(--forest); color: #fff; }
.tag.opt { background: rgba(16, 35, 29, .1); color: var(--forest-2); }

.chips-field { border: 0; padding: 0; margin: 0; min-width: 0; }
/* legend does not inherit from the global label rule, so restate it here or the
   field reads as body text next to the upper-case labels above it. */
.chips-field legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(16, 35, 29, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.chips label:hover { border-color: var(--forest); }
/* Keep the real checkbox focusable for keyboard and screen-reader users. A
   zero-size box cannot receive focus, so it is clipped to 1px instead. */
.chips input {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
}
.chips input:checked + span { font-weight: 800; }
.chips label:has(input:checked) { background: var(--forest); border-color: var(--forest); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 4px; }

.consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--forest-2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}
.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--forest);
}
.form-note { font-weight: 700; }

/* ---------- what happens next ---------- */
.steps-block { margin-top: 56px; }
.steps-block h3 { margin: 8px 0 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.steps-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps-list li { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-size: .82rem;
  font-weight: 800;
}
.steps-list strong { display: block; font-size: .95rem; }
.steps-list p { margin-top: 4px; color: var(--muted); font-size: .88rem; }

/* ---------- guide pages ---------- */

.subhero { padding: 70px 0 54px; }
.subhero h1 { max-width: 980px; font-size: clamp(3rem, 6vw, 5.8rem); }
.subhero .lead { max-width: 780px; }
.crumbs { margin-bottom: 28px; color: var(--muted); font-size: .84rem; }
.crumbs a { text-underline-offset: 4px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 72px; padding-bottom: 110px; }
.article { max-width: 780px; }
.quick-answer { margin: 0 0 52px; padding: 26px; background: var(--lime); border-radius: 18px; font-size: 1.08rem; }
.article section { padding: 34px 0; border-top: 1px solid var(--line); }
.article section:first-of-type { border-top: 0; padding-top: 0; }
.article h2 { margin-bottom: 20px; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.article h3 { margin: 26px 0 9px; }
.article p, .article li { color: #334d43; }
.article p + p { margin-top: 14px; }
.article ul, .article ol { margin: 14px 0 0; padding-left: 22px; }
.article li + li { margin-top: 6px; }
.article a { color: var(--forest-2); text-underline-offset: 3px; }
.article strong { color: var(--ink); }
.article table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: .92rem; }
.article th, .article td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: rgba(22, 63, 50, .06); font-weight: 750; }
.article tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.notice { margin-top: 20px; padding: 18px; border-left: 4px solid var(--orange); background: var(--white); }
.verified { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.side-card { position: sticky; top: calc(var(--nav-h) + 26px); align-self: start; padding: 24px; color: #fff; background: var(--forest); border-radius: var(--radius); }
.side-card h3 { margin-bottom: 12px; font: 500 1.65rem var(--serif); }
.side-card p { color: #bad0c6; }
.side-card .button { width: 100%; margin-top: 22px; border-color: var(--lime); background: var(--lime); color: var(--forest); }

/* ---------- footer ---------- */

.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-blurb { max-width: 320px; margin-top: 16px; color: var(--muted); font-size: .88rem; }
.footer-col h3 { margin-bottom: 14px; font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-2); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: .9rem; text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-row p { color: var(--muted); font-size: .84rem; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .sr-shell { padding: calc(var(--nav-h) + 20px) 32px 40px; }
  .sr-main { align-items: flex-start; flex-direction: column; }
  .sr-cards { width: 100%; }
  .sr-card { flex: 1 1 0; width: auto; min-height: 160px; }
}
@media (max-width: 900px) {
  .section-head, .contact-card, .guide-layout { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .guide-layout { gap: 40px; }
}
@media (max-width: 700px) {
  :root { --nav-h: 64px; }
  .sr-hero { height: auto; min-height: 100svh; }
  .sr-hero::before { background-position: 64% center; transform: scale(1.065); }
  .sr-hero::after { background: linear-gradient(180deg, rgba(4, 10, 7, .18) 0%, rgba(4, 10, 7, .56) 44%, rgba(4, 10, 7, .84) 100%); }
  .sr-shell { min-height: 100svh; padding: calc(var(--nav-h) + 16px) 18px 26px; }
  .sr-main { gap: 20px; padding-top: 40px; }
  .sr-copy h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .sr-copy > p { margin-top: 16px; font-size: 15px; }
  .sr-email { width: 100%; justify-content: space-between; margin-top: 20px; padding-left: 14px; }
  .sr-email span { font-size: 12px; }
  .sr-email a { padding: 10px 15px; }
  .sr-cards { flex-direction: column; gap: 12px; }
  .sr-main { flex: 0 0 auto; }
  .sr-card { flex: 0 0 auto; width: 100%; min-height: 0; padding: 18px; }
  .sr-qr { width: 88px; height: 88px; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .menu-button { display: block; }
  .nav-links {
    display: none;
    position: absolute; left: 14px; right: 14px; top: calc(var(--nav-h) - 6px);
    padding: 18px; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  body.has-hero .nav-wrap:not(.solid) .nav-links.open a { color: var(--ink); }
  .nav-links a { padding: 10px 4px; }
  .nav-cta { text-align: center; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 78px 0; }
  .service-grid, .workflow, .brief-form { grid-template-columns: 1fr; }
  .route { grid-template-columns: 50px 1fr; }
  .route p { grid-column: 2; text-align: left; }
  .contact-card { padding: 28px 20px; }
  .contact-card > div:first-child { position: static; }
  .field.full, .brief-form .button, .form-note { grid-column: auto; }
  .form-intro { font-size: .86rem; }
  .chips label { padding: 7px 12px; font-size: .78rem; }
  .steps-block { margin-top: 40px; }
  .steps-list { grid-template-columns: 1fr; gap: 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-row { align-items: start; flex-direction: column; }
  .subhero { padding: 44px 0 34px; }
  .guide-layout { padding-bottom: 70px; }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .sr-hero::before { transform: scale(1.065); transition: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .nav-wrap, .footer, .side-card, .sr-hero { display: none; }
  body { padding-top: 0; }
}

/* ---------- language switcher ---------- */

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::marker { content: ""; }
.lang[open] summary { background: rgba(22, 63, 50, .08); }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 70;
}
.lang li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.lang li a:hover { background: rgba(22, 63, 50, .08); }
body.has-hero .nav-wrap:not(.solid) .lang summary { color: #fff; border-color: rgba(255, 255, 255, .32); }
body.has-hero .nav-wrap:not(.solid) .lang ul { color: var(--ink); }
body.has-hero .nav-wrap:not(.solid) .nav-links .lang li a { color: var(--ink); }
body.has-hero .nav-wrap:not(.solid) .nav-links .lang li a:hover { background: rgba(22, 63, 50, .08); color: var(--ink); }
.lang-label { display: none; }
@media (max-width: 680px) {
  .nav-links .lang { width: 100%; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-links .lang summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .nav-links .lang summary::after { content: '▾'; font-size: .9rem; letter-spacing: 0; }
  .nav-links .lang[open] summary { background: none; }
  .nav-links .lang .lang-code { display: none; }
  .nav-links .lang .lang-label { display: inline; }
  .nav-links .lang ul {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 10px 0 0;
    min-width: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .nav-links .lang li a {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .85rem;
    text-align: center;
  }
  body.has-hero .nav-wrap:not(.solid) .nav-links .lang summary { color: var(--muted); border-color: transparent; }
  body.has-hero .nav-wrap:not(.solid) .nav-links .lang li a { color: var(--ink); }
}

/* ---------- Korean line breaking ----------
   Korean is written with spaces between words, but the default browser rule
   still allows a break between any two Hangul syllables, which chops words
   like 달라집니다 in half. keep-all restores word-level breaking. The
   overflow-wrap fallback only kicks in when a single word cannot fit. */
:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
