/* ==========================================================================
   专注列车 · FocusTrain — 帮助与条款中心
   Design system. Warm paper stock, brass rules, ink typography.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --paper:      #EEE5D5;
  --paper-2:    #F6F0E4;
  --paper-3:    #FCF9F2;
  --paper-4:    #FFFDF8;

  --ink:        #211E18;
  --ink-2:      #4B453A;
  --ink-3:      #837A6A;
  --ink-4:      #A79C88;

  --line:       #E1D5BE;
  --line-2:     #CBB994;
  --line-3:     #B49F74;

  --brass:      #96751F;
  --brass-2:    #B8933A;
  --brass-3:    #DFC78F;
  --brass-4:    #F2E7CB;

  --blue:       #23539A;
  --blue-2:     #3A72C4;
  --blue-3:     #DCE6F6;

  --green:      #1C5743;
  --green-2:    #2C7359;
  --green-3:    #DDEBE3;

  --clay:       #A6432C;
  --clay-3:     #F6E2DB;

  --radius-s:   8px;
  --radius-m:   14px;
  --radius-l:   20px;

  --shadow-s:   0 1px 2px rgba(64, 50, 24, .05), 0 2px 6px rgba(64, 50, 24, .05);
  --shadow-m:   0 2px 4px rgba(64, 50, 24, .06), 0 10px 24px rgba(64, 50, 24, .09);
  --shadow-l:   0 4px 10px rgba(64, 50, 24, .08), 0 26px 56px rgba(64, 50, 24, .16);

  --font-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC",
                "Source Han Serif CN", "SimSun", Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --topbar-h:   66px;
  --shell:      1180px;
  --measure:    43rem;
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 640px at 8% -10%, rgba(255, 253, 248, .92), rgba(255, 253, 248, 0) 62%),
    radial-gradient(900px 560px at 102% -4%, rgba(206, 184, 138, .34), rgba(206, 184, 138, 0) 58%),
    radial-gradient(1200px 900px at 50% 118%, rgba(196, 176, 132, .22), rgba(196, 176, 132, 0) 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

/* height:auto keeps the HTML width/height attributes from turning into a
   hard-coded pixel height once a CSS width is applied */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass-3); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper-3);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  z-index: 100;
  background: rgba(246, 240, 228, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(180, 159, 116, .28);
  transition: box-shadow .3s ease, background .3s ease;
}
.topbar.is-stuck {
  box-shadow: 0 1px 0 rgba(180, 159, 116, .2), 0 8px 26px rgba(64, 50, 24, .07);
  background: rgba(248, 243, 232, .93);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 5px 10px 5px 5px;
  margin-left: -5px;
  border-radius: 999px;
  transition: background .2s ease;
}
.brand:hover { background: rgba(180, 159, 116, .14); }

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(64, 50, 24, .18), 0 4px 10px rgba(64, 50, 24, .14);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}
.brand__sub {
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 2px;
}

.topbar__rule {
  width: 1px;
  height: 22px;
  background: var(--line-2);
  opacity: .7;
  flex: none;
}

.topbar__here {
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__here b { color: var(--ink); font-weight: 600; }

.topbar__spacer { flex: 1 1 auto; min-width: 8px; }

/* --- the switcher button (top right) ------------------------------------ */
.switcher { position: relative; flex: none; }

.switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--paper-4), var(--paper-2));
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.switcher__btn:hover {
  transform: translateY(-1px);
  border-color: var(--brass-2);
  box-shadow: 0 2px 4px rgba(64, 50, 24, .08), 0 10px 22px rgba(64, 50, 24, .13);
}
.switcher__btn:active { transform: translateY(0); }
.switcher__btn svg { flex: none; }

.switcher__chev {
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
  color: var(--ink-3);
}
.switcher.is-open .switcher__chev { transform: rotate(180deg); }
.switcher.is-open .switcher__btn { border-color: var(--brass-2); }

.switcher__kbd {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0;
}

/* --- switcher panel ----------------------------------------------------- */
.sheet {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 372px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--paper-3);
  box-shadow: var(--shadow-l);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.32, .72, 0, 1);
}
.switcher.is-open .sheet { opacity: 1; transform: none; pointer-events: auto; }

.sheet__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px 10px;
}
.sheet__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
}
.sheet__hint { font-size: 11px; color: var(--ink-4); letter-spacing: .06em; }

.sheet__list { display: flex; flex-direction: column; gap: 2px; }

.sheet__item {
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .16s ease;
}
.sheet__item:hover { background: rgba(180, 159, 116, .16); }
.sheet__item.is-current { background: var(--brass-4); }

.sheet__ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--paper-4);
  border: 1px solid var(--line);
  color: var(--brass);
  flex: none;
}
.sheet__item.is-current .sheet__ico {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  border-color: var(--brass);
  color: #FFF8E7;
}

.sheet__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sheet__desc {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
  letter-spacing: .02em;
}
.sheet__badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brass);
  border: 1px solid var(--brass-3);
  background: var(--brass-4);
  border-radius: 4px;
  padding: 1px 5px;
  text-transform: uppercase;
}
.sheet__item.is-current .sheet__badge {
  color: #FFF8E7;
  border-color: var(--brass);
  background: var(--brass);
}

.sheet__go { color: var(--ink-4); opacity: 0; transform: translateX(-3px); transition: all .16s ease; }
.sheet__item:hover .sheet__go { opacity: 1; transform: none; }

.sheet__foot {
  margin: 6px 4px 4px;
  padding: 11px 10px 4px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .04em;
}
.sheet__foot a { color: var(--brass); font-weight: 600; }
.sheet__foot a:hover { text-decoration: underline; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(40, 32, 16, .16);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.backdrop.is-on { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Right rail - route-map page switcher
   ========================================================================== */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
}
@media (min-width: 1300px) { .rail { display: flex; } }

.rail__line {
  position: absolute;
  left: 50%;
  top: 26px;
  bottom: 26px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brass-3), rgba(180, 159, 116, .28), var(--brass-3));
}

.rail__stop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.rail__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-3);
  border: 2px solid var(--line-3);
  box-shadow: 0 0 0 3px var(--paper);
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
}
.rail__stop:hover .rail__dot { border-color: var(--brass-2); transform: scale(1.25); }
.rail__stop.is-current .rail__dot {
  width: 12px;
  height: 12px;
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px rgba(184, 147, 58, .28);
}

.rail__label {
  position: absolute;
  right: calc(100% + 8px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 11px;
  box-shadow: var(--shadow-s);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}
.rail__stop:hover .rail__label,
.rail__stop.is-current .rail__label { opacity: 1; transform: none; }
.rail__stop.is-current .rail__label {
  border-color: var(--brass-2);
  background: linear-gradient(180deg, var(--paper-4), var(--brass-4));
}

/* ==========================================================================
   Page frame
   ========================================================================== */
.page { padding-top: var(--topbar-h); }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 54px 0 34px;
  overflow: hidden;
}
.hero__watermark {
  position: absolute;
  right: -8px;
  top: -22px;
  font-family: var(--font-serif);
  font-size: 210px;
  font-weight: 700;
  line-height: 1;
  color: rgba(150, 117, 31, .085);
  -webkit-text-stroke: 0;
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 780px) {
  .hero__watermark { font-size: 104px; top: -20px; right: 10px; opacity: .72; }
}

.hero__inner { position: relative; max-width: 44rem; }

.route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.route__code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brass);
  border: 1px solid var(--brass-3);
  background: var(--brass-4);
  border-radius: 5px;
  padding: 3px 8px;
  flex: none;
}
.route__track {
  position: relative;
  flex: 1 1 auto;
  max-width: 250px;
  height: 14px;
  display: flex;
  align-items: center;
}
.route__track::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--line-3) 0 52%, transparent 52% 100%);
  background-size: 12px 2px;
  border-radius: 2px;
  opacity: .75;
}
.route__track::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px;
  height: 8px;
  border-top: 1.5px solid rgba(180, 159, 116, .5);
  border-bottom: 1.5px solid rgba(180, 159, 116, .5);
  border-radius: 2px;
}
.route__from, .route__to {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  z-index: 1;
  background: var(--brass);
  box-shadow: 0 0 0 3px var(--paper);
}
.route__to { background: var(--paper-3); border: 2px solid var(--line-3); }
.route__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  flex: none;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.4vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .02em;
  color: var(--ink);
  margin: 0;
}
.hero__en {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 13px;
}
.hero__lead {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-2);
  margin: 18px 0 0;
  max-width: 38rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-3);
  background: rgba(255, 253, 248, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.chip b { color: var(--ink); font-weight: 600; }
.chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 3px rgba(44, 115, 89, .16);
  flex: none;
}
.chip--brass .chip__dot { background: var(--brass-2); box-shadow: 0 0 0 3px rgba(184, 147, 58, .18); }

/* divider under hero */
.hero__seam {
  position: relative;
  height: 1px;
  margin-top: 38px;
  background: linear-gradient(90deg, rgba(180, 159, 116, .55), rgba(180, 159, 116, .12) 62%, transparent);
}
.hero__seam::after {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass-2);
}

/* --- body layout -------------------------------------------------------- */
.body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  /* longhand only: this element also carries .shell, so a shorthand here
     would wipe out the horizontal gutters */
  padding-top: 44px;
  padding-bottom: 96px;
}
@media (min-width: 1040px) {
  .body-grid {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 56px;
  }
  /* pages without a side table of contents */
  .body-grid--solo { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* --- table of contents -------------------------------------------------- */
.toc { display: none; }
@media (min-width: 1040px) { .toc { display: block; } }

.toc__inner { position: sticky; top: calc(var(--topbar-h) + 40px); }

.toc__head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-left: 13px;
  margin-bottom: 14px;
}
.toc__list { position: relative; display: flex; flex-direction: column; }
.toc__list::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.toc__link {
  position: relative;
  display: block;
  padding: 6px 0 6px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: .02em;
  transition: color .18s ease;
}
.toc__link::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  width: 2px; height: 0;
  background: var(--brass);
  transform: translateY(-50%);
  border-radius: 2px;
  transition: height .22s cubic-bezier(.4, 0, .2, 1);
}
.toc__link:hover { color: var(--ink); }
.toc__link.is-active { color: var(--ink); font-weight: 600; }
.toc__link.is-active::before { height: 18px; }

.toc__side { margin-top: 26px; padding: 15px 15px 16px; border-radius: var(--radius-m); border: 1px dashed var(--line-2); background: rgba(255, 253, 248, .55); }
.toc__side p { margin: 0 0 10px; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }
.toc__side a { font-size: 12.5px; font-weight: 600; color: var(--brass); }
.toc__side a:hover { text-decoration: underline; }

/* ==========================================================================
   Article prose
   ========================================================================== */
.article { max-width: var(--measure); min-width: 0; }

.article > * + * { margin-top: 18px; }

.sec { padding-top: 12px; }
.sec + .sec { margin-top: 46px; }

.sec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 13px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sec__head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--brass-2), var(--brass-3));
  border-radius: 2px;
}
.sec__no {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brass);
  flex: none;
  padding-top: 3px;
}
.sec__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: .03em;
  margin: 0;
  flex: 1 1 auto;
}
.sec__en {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: .14em;
  text-transform: uppercase;
  flex: none;
  display: none;
}
@media (min-width: 720px) { .sec__en { display: block; } }

.article h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .03em;
  line-height: 1.55;
  margin: 34px 0 0;
}
.article h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  margin: 24px 0 0;
}

.article p { margin: 0; }
.article p + p { margin-top: 14px; }

.article a:not(.btn) {
  color: var(--blue);
  border-bottom: 1px solid rgba(58, 114, 196, .32);
  transition: border-color .16s ease, color .16s ease;
}
.article a:not(.btn):hover { color: var(--blue-2); border-bottom-color: var(--blue-2); }

.article strong { color: var(--ink); font-weight: 700; }
.article em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--brass-4) 0); padding: 0 1px; }

.article ul, .article ol { margin: 0; padding-left: 0; list-style: none; }
.article li { position: relative; padding-left: 24px; }
.article li + li { margin-top: 10px; }
.article ul > li::before {
  content: "";
  position: absolute;
  left: 5px; top: .74em;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--brass-2);
}
.article ol { counter-reset: li; }
.article ol > li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0; top: .18em;
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brass);
  background: var(--brass-4);
  border-radius: 5px;
}
.article li ul, .article li ol { margin-top: 10px; }

.article blockquote {
  margin: 0;
  padding: 3px 0 3px 18px;
  border-left: 2px solid var(--brass-3);
  color: var(--ink-3);
  font-size: 14.5px;
}

.article code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink);
  word-break: break-all;
}

/* --- callouts ----------------------------------------------------------- */
.callout {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 17px 19px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--paper-3);
  font-size: 14.5px;
  line-height: 1.78;
}
.callout + .callout { margin-top: 12px; }
.callout__ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.callout__title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: .03em;
  font-size: 14px;
}
.callout__body > * + * { margin-top: 8px; }
.callout ul li + li { margin-top: 6px; }

.callout--tip { background: linear-gradient(180deg, #FDFAF1, var(--brass-4)); border-color: var(--brass-3); }
.callout--tip .callout__ico { background: rgba(184, 147, 58, .16); color: var(--brass); }

.callout--info { background: linear-gradient(180deg, #FBFCFE, var(--blue-3)); border-color: #C3D3EC; }
.callout--info .callout__ico { background: rgba(58, 114, 196, .14); color: var(--blue); }

.callout--ok { background: linear-gradient(180deg, #FBFDFB, var(--green-3)); border-color: #BFD8CB; }
.callout--ok .callout__ico { background: rgba(44, 115, 89, .14); color: var(--green); }

.callout--warn { background: linear-gradient(180deg, #FEFBF9, var(--clay-3)); border-color: #EBC9BE; }
.callout--warn .callout__ico { background: rgba(166, 67, 44, .13); color: var(--clay); }

/* --- fact list ---------------------------------------------------------- */
.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
@media (min-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact {
  background: var(--paper-3);
  padding: 15px 17px;
}
.fact__k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 5px;
}
.fact__v { font-size: 14.5px; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.fact__v small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; line-height: 1.6; }

/* --- table -------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper-3);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
table.tbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:nth-child(even) { background: rgba(238, 229, 213, .38); }
table.tbl td:first-child { color: var(--ink); font-weight: 600; }
table.tbl .yes { color: var(--green-2); font-weight: 700; }
table.tbl .no  { color: var(--clay); font-weight: 700; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }

.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-3);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.qa[open] { border-color: var(--brass-3); box-shadow: var(--shadow-s); }
.qa:hover { border-color: var(--line-2); }
.qa[open]:hover { border-color: var(--brass-3); }

.qa__q {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: .02em;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--brass); }

.qa__mark {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--brass-4);
  color: var(--brass);
  transition: transform .24s cubic-bezier(.4, 0, .2, 1), background .2s ease, color .2s ease;
}
.qa[open] .qa__mark { transform: rotate(45deg); background: var(--brass); color: #FFF8E7; }

.qa__a {
  padding: 0 18px 17px 51px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ink-2);
}
.qa__a > * + * { margin-top: 10px; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--paper-4), var(--paper-2));
  color: var(--ink);
  box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--brass-2); box-shadow: 0 2px 5px rgba(64, 50, 24, .08), 0 10px 22px rgba(64, 50, 24, .13); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  border-color: var(--brass);
  color: #FFF8E7;
  text-shadow: 0 1px 0 rgba(90, 68, 12, .25);
  box-shadow: 0 1px 2px rgba(90, 68, 12, .22), 0 8px 20px rgba(150, 117, 31, .26);
}
.btn--primary:hover { border-color: var(--brass); box-shadow: 0 2px 4px rgba(90, 68, 12, .24), 0 14px 30px rgba(150, 117, 31, .32); }

.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: rgba(180, 159, 116, .14); box-shadow: none; }

.btn--sm { height: 36px; padding: 0 15px; font-size: 12.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- card grid (home + support) ----------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-4), var(--paper-3));
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1), box-shadow .22s ease, border-color .22s ease;
}
.card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 147, 58, .13), transparent 68%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-3);
  box-shadow: 0 4px 10px rgba(64, 50, 24, .08), 0 20px 44px rgba(64, 50, 24, .13);
}
.card__ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brass-4);
  color: var(--brass);
  border: 1px solid var(--brass-3);
}
.cards .card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card__desc { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); margin: 0; }
.card__more {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card:hover .card__more svg { transform: translateX(3px); }
.card__more svg { transition: transform .2s ease; }

.card--wide { grid-column: 1 / -1; }
@media (min-width: 700px) { .card--wide { flex-direction: row; align-items: center; gap: 22px; } .card--wide .card__body { flex: 1 1 auto; } }

/* --- hero CTA band ------------------------------------------------------ */
.band {
  position: relative;
  padding: 30px 30px 32px;
  border-radius: var(--radius-l);
  border: 1px solid var(--brass-3);
  background:
    radial-gradient(560px 220px at 100% 0%, rgba(184, 147, 58, .16), transparent 62%),
    linear-gradient(180deg, var(--paper-4), var(--brass-4));
  overflow: hidden;
}
.band .band__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
  margin: 0 0 8px;
}
.band p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2); max-width: 34rem; }

/* --- stat strip --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper-3); padding: 18px 18px 16px; }
.stat__n {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: .02em;
}
.stat__l { font-size: 11.5px; color: var(--ink-4); letter-spacing: .1em; text-transform: uppercase; margin-top: 7px; }

/* ==========================================================================
   Wallpapers
   ========================================================================== */
.wp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.wp-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .7);
}
.wp-tab {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
  transition: all .18s ease;
}
.wp-tab:hover { color: var(--ink); }
.wp-tab.is-on {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  color: #FFF8E7;
  box-shadow: 0 1px 2px rgba(90, 68, 12, .2);
}

.wp-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}
@media (min-width: 760px) { .wp-grid { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); } }

.wp {
  position: relative;
  display: block;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
  box-shadow: var(--shadow-s);
  transition: transform .24s cubic-bezier(.32, .72, 0, 1), box-shadow .24s ease, border-color .24s ease;
}
.wp:hover {
  transform: translateY(-4px);
  border-color: var(--brass-3);
  box-shadow: 0 6px 14px rgba(64, 50, 24, .1), 0 24px 48px rgba(64, 50, 24, .16);
}
.wp__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.wp__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.32, .72, 0, 1); display: block; }
.wp:hover .wp__frame img { transform: scale(1.045); }

.wp__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 22, 8, 0) 42%, rgba(30, 22, 8, .68));
  opacity: 0;
  transition: opacity .26s ease;
}
.wp:hover .wp__veil { opacity: 1; }

.wp__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 13px;
  color: #FFF9EC;
  transform: translateY(8px);
  opacity: 0;
  transition: all .26s cubic-bezier(.32, .72, 0, 1);
}
.wp:hover .wp__cap { transform: none; opacity: 1; }
.wp__name { font-family: var(--font-serif); font-size: 14.5px; font-weight: 700; letter-spacing: .04em; }
.wp__dim { font-size: 10.5px; letter-spacing: .1em; color: rgba(255, 249, 236, .72); margin-top: 3px; font-family: var(--font-mono); }

.wp__dl {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(30, 22, 8, .2);
  opacity: 0;
  transform: scale(.88);
  transition: all .2s cubic-bezier(.32, .72, 0, 1);
}
.wp:hover .wp__dl { opacity: 1; transform: none; }
.wp__dl:hover { background: var(--brass); color: #FFF8E7; }

.wp-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: var(--paper-3);
}
.wp-foot__name { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-foot__dim { margin-left: auto; font-size: 10.5px; color: var(--ink-4); font-family: var(--font-mono); letter-spacing: .04em; flex: none; }

.wp-note { font-size: 13px; color: var(--ink-3); line-height: 1.8; margin-top: 20px; }
.wp-note p + p { margin-top: 10px; }

/* --- single-feature wallpaper layout ------------------------------------ */
.wp-feature {
  display: grid;
  gap: 34px;
  align-items: start;
}
@media (min-width: 900px) {
  .wp-feature { grid-template-columns: minmax(0, 274px) minmax(0, 1fr); gap: 48px; }
}

.wp-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.wp-device {
  position: relative;
  display: block;
  width: 100%;
  max-width: 274px;
  padding: 11px;
  border-radius: 40px;
  border: 0;
  cursor: zoom-in;
  background: linear-gradient(158deg, #3B342B 0%, #241F19 42%, #16120E 100%);
  box-shadow:
    0 2px 3px rgba(30, 22, 8, .28),
    0 22px 48px rgba(30, 22, 8, .3),
    inset 0 0 0 1px rgba(255, 245, 225, .1);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1), box-shadow .3s ease;
}
.wp-device:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow:
    0 3px 5px rgba(30, 22, 8, .3),
    0 30px 62px rgba(30, 22, 8, .36),
    inset 0 0 0 1px rgba(255, 245, 225, .16);
}
.wp-device img { width: 100%; border-radius: 30px; display: block; }

.wp-device__island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 18px;
  border-radius: 999px;
  background: rgba(18, 14, 10, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 225, .07);
}
.wp-device__glare {
  position: absolute;
  inset: 11px;
  border-radius: 30px;
  background: linear-gradient(122deg, rgba(255, 252, 244, .16) 0%, rgba(255, 252, 244, 0) 34%, rgba(255, 252, 244, 0) 66%, rgba(255, 252, 244, .07) 100%);
  pointer-events: none;
}
.wp-device__zoom {
  position: absolute;
  right: 22px; bottom: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(30, 22, 8, .3);
  opacity: 0;
  transform: scale(.9);
  transition: all .22s cubic-bezier(.32, .72, 0, 1);
}
.wp-device:hover .wp-device__zoom { opacity: 1; transform: none; }

.wp-stage__cap {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-family: var(--font-mono);
}

.wp-info .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  background: var(--brass-4);
  border: 1px solid var(--brass-3);
  border-radius: 5px;
  padding: 4px 9px;
}
.article .wp-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.6vw, 34px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
  margin: 16px 0 0;
  line-height: 1.25;
}
.wp-info__en {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 10px;
}
.wp-info__lead { font-size: 15px; line-height: 1.85; color: var(--ink-2); margin: 18px 0 0; }

.wp-spec { margin-top: 24px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 560px) { .wp-spec { grid-template-columns: 1fr 1fr; } }
.wp-spec div { background: var(--paper-3); padding: 13px 16px; }
.wp-spec dt { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.wp-spec dd { margin: 5px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }

.wp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.wp-howto {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
}
.wp-howto h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wp-howto h3::before {
  content: "";
  width: 4px; height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brass-2), var(--brass-3));
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { position: relative; padding-left: 40px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brass);
  background: var(--brass-4);
  border: 1px solid var(--brass-3);
}
.steps li b { color: var(--ink); }

/* --- lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px 34px 102px;
  background: rgba(26, 20, 10, .74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lightbox.is-on { display: flex; animation: fade .22s ease both; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.lightbox__img {
  max-width: min(94vw, 620px);
  max-height: 84vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 249, 236, .18);
  object-fit: contain;
}
.lightbox__bar {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: rgba(250, 246, 238, .96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.lightbox__name { font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.lightbox__dim { font-size: 10.5px; color: var(--ink-4); font-family: var(--font-mono); }
.lightbox__close {
  position: fixed;
  top: 26px; right: 28px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 246, 238, .94);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}
.lightbox__close:hover { transform: rotate(90deg); }

/* ==========================================================================
   Footer - ticket stub
   ========================================================================== */
.footer { position: relative; margin-top: 20px; z-index: 1; }

.stub {
  position: relative;
  background: linear-gradient(180deg, #F7F1E5, #EFE5D2);
  border-top: 1px solid var(--line-2);
  padding: 46px 0 34px;
}
.stub::before {
  content: "";
  position: absolute;
  top: -6px; left: 0; right: 0;
  height: 12px;
  background-image: radial-gradient(circle at 6px 6px, var(--paper) 5.5px, transparent 6px);
  background-size: 18px 12px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.stub::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 8px, transparent 8px 16px);
  opacity: .6;
}

.stub__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .stub__grid { grid-template-columns: 1.35fr 1fr 1fr 1.1fr; gap: 30px; } }

.stub__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.stub__brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow-s); }
.stub__brand-name { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.stub__brand-en { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-4); margin-top: 3px; }
.stub__slogan { font-family: var(--font-serif); font-size: 13.5px; color: var(--ink-3); letter-spacing: .06em; margin: 0; }
.stub__slogan span { color: var(--brass); }

.stub h4 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 14px;
}
.stub ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.stub li a { font-size: 13.5px; color: var(--ink-2); transition: color .16s ease; }
.stub li a:hover { color: var(--brass); }
.stub li.is-here a { color: var(--brass); font-weight: 600; }

.stub__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  word-break: break-all;
}
.stub__mail:hover { color: var(--brass); }
.stub__addr { font-size: 12px; color: var(--ink-4); line-height: 1.75; }

.stub__base {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 12px;
  color: var(--ink-4);
}
.stub__base a { color: var(--ink-3); }
.stub__base a:hover { color: var(--brass); }
.stub__stamp {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--brass);
  border: 1px solid var(--brass-3);
  border-radius: 6px;
  padding: 4px 9px;
  transform: rotate(-3deg);
  background: rgba(255, 253, 248, .6);
}

/* ==========================================================================
   Toast + misc
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  z-index: 240;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(33, 30, 24, .94);
  color: #FBF6EA;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  box-shadow: 0 16px 40px rgba(30, 22, 8, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .28s cubic-bezier(.32, .72, 0, 1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal is opt-in: only applied once the inline head script has
   confirmed JS is running, so a script failure can never blank the page. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.32, .72, 0, 1), transform .6s cubic-bezier(.32, .72, 0, 1);
}

@view-transition { navigation: auto; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  .topbar__here, .topbar__rule { display: none; }
  .hero { padding: 36px 0 26px; }
  .hero__lead { font-size: 15.5px; }
  .body-grid { padding-top: 30px; padding-bottom: 72px; }
  .sec + .sec { margin-top: 38px; }
  .sec__title { font-size: 19.5px; }
  .stub { padding: 36px 0 28px; }
  .lightbox { padding: 18px; }
  .lightbox__bar { bottom: 20px; gap: 12px; padding: 9px 10px 9px 16px; }
  .sheet { width: min(92vw, 372px); }
}

@media (max-width: 420px) {
  .brand__text { display: none; }
  .switcher__kbd { display: none; }
}

@media print {
  .topbar, .rail, .footer, .toc, .sheet, .lightbox, .toast { display: none !important; }
  body { background: #fff; }
  .page { padding-top: 0; }
  .article { max-width: none; }
}
