/*
================================================
Space Vanta Theme 1.0
Module:  Main Page — Document + Contact layouts
File:    public/main-page/doc.css
Version: MAIN-PAGE-CSS-003 (test build v1.2)

Colour codes follow "Space Vanta color codes v0.1" (SV-P50, SV-B600 …).
Variables are scoped to .sv-doc on purpose: nothing global changes
until the token merge happens.

Rule of thumb: the frame carries the DNA (floating plates, broken seam
lines, one glass shard); the reading text stays flat and calm.
================================================
*/

.sv-doc {
  --svc-w0: #FFFFFF;
  --svc-p50: #FBF7F0;
  --svc-p100: #F7F2E8;
  --svc-p300: #DDD6C9;
  --svc-p600: #5F574D;
  --svc-p900: #252321;
  --svc-g50: #FFFBFA;
  --svc-g100: #F1EDEA;
  --svc-g200: #DBD9DA;
  --svc-g300: #C1BDBE;
  --svc-g400: #AEB1B9;
  --svc-g500: #898C95;
  --svc-g800: #3F4553;
  --svc-g900: #313540;
  --svc-g950: #1F232B;
  --svc-b50: #E5FFFF;
  --svc-b100: #EAF1FF;
  --svc-b300: #7DADDE;
  --svc-b500: #2F6BFF;
  --svc-b600: #1F55D6;
  --svc-b700: #16419F;
  --svc-s700: #485D7C;
  --svc-seam: linear-gradient(90deg, rgba(125, 173, 222, 0), #7DADDE 28%, #E5FFFF 50%, #1D6BFF 72%, rgba(29, 107, 255, 0));
  --svc-cut: 28px;
  --svc-ease: cubic-bezier(.2, .7, .2, 1);
  --svc-pad: clamp(16px, 4vw, 56px);
  --svc-sticky: 24px;

  position: relative;
  overflow-x: clip;
  background: var(--svc-p50);
  color: var(--svc-p900);
  font-family: var(--sv-font-sans, "Helvetica Neue", Helvetica, Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

.sv-doc *,
.sv-doc *::before,
.sv-doc *::after { box-sizing: border-box; }
.sv-doc [hidden] { display: none !important; }
.sv-doc a:focus-visible,
.sv-doc button:focus-visible { outline: 2px solid var(--svc-b500); outline-offset: 3px; }

.sv-doc__skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  padding: 10px 16px; background: var(--svc-p900); color: #fff; text-decoration: none;
}
.sv-doc__skip:focus { left: 16px; top: 16px; }

/* ---------- reusable bits ---------- */
.sv-doc__label {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--svc-p600); text-transform: uppercase;
}
/* the broken seam line: a rule that steps aside once */
.sv-doc__fx {
  height: 7px; opacity: .6;
  background: linear-gradient(90deg, #5A636E 0, #5A636E 18%, #2F6BFF 20.5%, #2F6BFF 22%, #5A636E 25%, #5A636E 100%);
  clip-path: polygon(0 0, 20% 0, 22.5% 100%, 100% 100%, 100% calc(100% - 1px), 22.2% calc(100% - 1px), 19.7% 1px, 0 1px);
}

/* ---------- buttons ---------- */
.sv-doc a.sv-doc__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; text-decoration: none;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  transition: background .25s var(--svc-ease), color .25s var(--svc-ease);
}
.sv-doc a.sv-doc__btn--solid { background: var(--svc-b600); color: #fff; border: 1px solid var(--svc-b600); }
.sv-doc a.sv-doc__btn--solid:hover { background: var(--svc-b700); border-color: var(--svc-b700); color: #fff; }
.sv-doc a.sv-doc__btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.sv-doc a.sv-doc__btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sv-doc a.sv-doc__btn--block { width: 100%; }

/* ---------- hero ---------- */
.sv-doc__hero { position: relative; overflow: hidden; padding: 56px var(--svc-pad) 72px; }
.sv-doc__hero-in { position: relative; max-width: 1240px; margin: 0 auto; }

.sv-doc__decor { position: absolute; right: 0; top: 0; width: min(46%, 600px); height: 100%; pointer-events: none; }
.sv-doc__decor i { position: absolute; display: block; }
.sv-doc__decor-a { inset: 0; background: linear-gradient(200deg, rgba(207, 224, 245, .75), rgba(255, 255, 255, 0) 80%); clip-path: polygon(30% 0, 100% 0, 100% 76%); }
.sv-doc__decor-b { right: 16%; top: 34%; width: 190px; height: 96px; background: linear-gradient(150deg, rgba(255, 255, 255, .98), rgba(190, 214, 255, .8)); clip-path: polygon(7% 0, 100% 16%, 84% 100%, 0 72%); filter: drop-shadow(0 16px 16px rgba(27, 32, 38, .14)); }
.sv-doc__decor-c { right: 6%; top: 56%; width: 120px; height: 70px; background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(201, 209, 217, .85)); clip-path: polygon(0 30%, 72% 0, 100% 62%, 28% 100%); }
.sv-doc__decor-d { right: 30%; top: 16%; width: 34px; height: 24px; background: var(--svc-b500); clip-path: polygon(0 0, 100% 40%, 30% 100%); }

.sv-doc__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--svc-p600); }
.sv-doc .sv-doc__crumbs a { color: var(--svc-p600); text-decoration: none; }
.sv-doc .sv-doc__crumbs a:hover { color: var(--svc-p900); text-decoration: underline; }
.sv-doc__crumbs [aria-current] { color: var(--svc-p900); }

.sv-doc__eyebrow { margin: 40px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--svc-p600); }
.sv-doc__title {
  margin: 14px 0 0; font-size: clamp(40px, 6vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; color: var(--svc-p900);
  overflow-wrap: anywhere;
}
.sv-doc__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0; font-size: 14px; color: var(--svc-p600); }
.sv-doc__intro { margin: 20px 0 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--svc-p600); }

/* ---------- layout ---------- */
.sv-doc__main { padding: 0 var(--svc-pad) 96px; }
.sv-doc__grid { max-width: 1240px; margin: 0 auto; display: block; }
.sv-doc__grid.has-aside { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 56px; align-items: start; }
.sv-doc__col { min-width: 0; }
.sv-doc__wide { max-width: 1240px; margin: 0 auto; }
.sv-doc__grid:not(.has-aside) .sv-doc__body,
.sv-doc__grid:not(.has-aside) .sv-doc__related,
.sv-doc__grid:not(.has-aside) .sv-doc__contact { max-width: 900px; }

/* ---------- aside: floating glass contents card ---------- */
.sv-doc__aside { position: sticky; top: var(--svc-sticky); }
.sv-doc__aside-wrap { filter: drop-shadow(0 18px 24px rgba(27, 32, 38, .16)); }
.sv-doc__aside-face {
  padding: 24px 12px 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(232, 240, 255, .82));
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.sv-doc__aside-face > .sv-doc__label { margin: 0 0 8px 14px; }
.sv-doc__aside-face > .sv-doc__fx { margin: 16px 14px; }

.sv-doc a.sv-doc__toc-link {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 14px;
  color: var(--svc-p600); font-size: 15px; line-height: 1.35; text-decoration: none;
}
.sv-doc a.sv-doc__toc-link:hover { color: var(--svc-p900); }
.sv-doc a.sv-doc__toc-link.is-on { color: var(--svc-p900); font-weight: 600; }
.sv-doc a.sv-doc__toc-link.is-on::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #7DADDE, #E5FFFF 50%, #1D6BFF); box-shadow: 0 0 8px rgba(29, 107, 255, .6);
}
.sv-doc__toc-n { flex: none; font-size: 12px; letter-spacing: .14em; color: var(--svc-b600); }

.sv-doc__tools { display: flex; flex-direction: column; gap: 8px; padding: 0 14px; }
.sv-doc button.sv-doc__tool {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(37, 35, 33, .28); background: transparent; color: var(--svc-p900);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.sv-doc button.sv-doc__tool:hover { background: var(--svc-w0); }

/* ---------- document plate (floating, with two ghost layers) ---------- */
.sv-doc__plate { position: relative; isolation: isolate; filter: drop-shadow(0 26px 30px rgba(27, 32, 38, .10)); }
.sv-doc__ghost {
  position: absolute; inset: 0; z-index: -1; display: block; pointer-events: none;
  background: linear-gradient(135deg, var(--svc-g100), var(--svc-g400));
  clip-path: polygon(0 0, calc(100% - var(--svc-cut)) 0, 100% var(--svc-cut), 100% 100%, var(--svc-cut) 100%, 0 calc(100% - var(--svc-cut)));
}
.sv-doc__ghost--1 { transform: translate(18px, 18px); opacity: .5; }
.sv-doc__ghost--2 { transform: translate(9px, 9px); opacity: .85; }
.sv-doc__face {
  background: var(--svc-w0); padding: clamp(24px, 5vw, 64px);
  clip-path: polygon(0 0, calc(100% - var(--svc-cut)) 0, 100% var(--svc-cut), 100% 100%, var(--svc-cut) 100%, 0 calc(100% - var(--svc-cut)));
}
.sv-doc__body { max-width: 760px; }

/* summary card */
.sv-doc__summary { margin: 0 0 40px; }
.sv-doc__summary-face { position: relative; padding: 28px 28px 24px; background: linear-gradient(135deg, #F7F3F0, #EFEBE8); }
.sv-doc__summary-face::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--svc-seam);
}
.sv-doc__summary-face > .sv-doc__label { margin-bottom: 14px; }
.sv-doc__summary-body { font-size: 16px; line-height: 1.6; color: var(--svc-p900); }
.sv-doc__summary-body > *:first-child { margin-top: 0; }
.sv-doc__summary-body > *:last-child { margin-bottom: 0; }
.sv-doc__summary-body p { margin: 0 0 10px; }
.sv-doc__summary-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sv-doc__summary-body li { position: relative; padding-left: 21px; }
.sv-doc__summary-body li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: #1D6BFF; transform: rotate(45deg);
}

/* market chips (built from a table whose first column is a market) */
.sv-doc__mk { margin: 0 0 20px; }
.sv-doc__mk-head { margin: 0 0 12px; }
.sv-doc__mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-doc button.sv-doc__chip {
  position: relative; isolation: isolate; flex: none; min-height: 44px; padding: 10px 20px;
  border: 0; background: none; color: var(--svc-p600); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .08em; cursor: pointer;
}
.sv-doc button.sv-doc__chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-14deg);
  border: 1px solid rgba(37, 35, 33, .28); background: var(--svc-w0);
}
.sv-doc button.sv-doc__chip:hover { color: var(--svc-p900); }
.sv-doc button.sv-doc__chip[aria-pressed="true"] { color: #fff; }
.sv-doc button.sv-doc__chip[aria-pressed="true"]::before { background: linear-gradient(135deg, #2F6BFF, #1F55D6); border-color: transparent; box-shadow: 0 8px 18px -6px rgba(29, 107, 255, .55); }

.sv-doc__tablewrap { overflow-x: auto; border: 1px solid var(--svc-p300); margin: 24px 0; -webkit-overflow-scrolling: touch; }
.sv-doc__mk .sv-doc__tablewrap { margin-bottom: 0; }
.sv-doc__mkcard { display: none; }

/* ---------- rich text inside the document ---------- */
.sv-doc__content { font-size: 17px; line-height: 1.75; color: var(--svc-p900); overflow-wrap: anywhere; }
.sv-doc__content > *:first-child { margin-top: 0; }
.sv-doc__content p { margin: 16px 0 0; }
.sv-doc__content a { color: var(--svc-b600); text-decoration: underline; text-underline-offset: 3px; }
.sv-doc__content a:hover { color: var(--svc-b700); }
.sv-doc__content strong { font-weight: 600; }
.sv-doc__content img, .sv-doc__content video, .sv-doc__content iframe { max-width: 100%; height: auto; }
.sv-doc__content h1, .sv-doc__content h2 {
  display: flex; align-items: baseline; gap: 14px; margin: 0; font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: var(--svc-p900);
}
.sv-doc__content h3 { margin: 32px 0 0; font-size: 22px; font-weight: 500; line-height: 1.3; }
.sv-doc__content h4 { margin: 24px 0 0; font-size: 18px; font-weight: 600; }
.sv-doc__num { flex: none; font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--svc-b600); }
.sv-doc__sec-body > *:first-child { margin-top: 20px; }
.sv-doc__sec + .sv-doc__sec { margin-top: 48px; padding-top: 40px; position: relative; }
.sv-doc__sec + .sv-doc__sec::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; opacity: .6;
  background: linear-gradient(90deg, #5A636E 0, #5A636E 18%, #2F6BFF 20.5%, #2F6BFF 22%, #5A636E 25%, #5A636E 100%);
  clip-path: polygon(0 0, 20% 0, 22.5% 100%, 100% 100%, 100% calc(100% - 1px), 22.2% calc(100% - 1px), 19.7% 1px, 0 1px);
}
.sv-doc__content > .sv-doc__sec:first-of-type { margin-top: 48px; padding-top: 40px; position: relative; }
.sv-doc__content > .sv-doc__sec:first-of-type::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; opacity: .6;
  background: linear-gradient(90deg, #5A636E 0, #5A636E 18%, #2F6BFF 20.5%, #2F6BFF 22%, #5A636E 25%, #5A636E 100%);
  clip-path: polygon(0 0, 20% 0, 22.5% 100%, 100% 100%, 100% calc(100% - 1px), 22.2% calc(100% - 1px), 19.7% 1px, 0 1px);
}
.sv-doc__content > .sv-doc__sec:first-child { margin-top: 0; padding-top: 0; }
.sv-doc__content > .sv-doc__sec:first-child::before { display: none; }

.sv-doc__content ul, .sv-doc__content ol { margin: 16px 0 0; padding-left: 24px; }
.sv-doc__content li { margin: 6px 0 0; }
.sv-doc__content ul { list-style: none; padding-left: 0; }
.sv-doc__content ul > li { position: relative; padding-left: 22px; }
.sv-doc__content ul > li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; background: #1D6BFF; transform: rotate(45deg); }
.sv-doc__content hr { border: 0; height: 7px; margin: 40px 0; opacity: .6; background: linear-gradient(90deg, #5A636E 0, #5A636E 18%, #2F6BFF 20.5%, #2F6BFF 22%, #5A636E 25%, #5A636E 100%); clip-path: polygon(0 0, 20% 0, 22.5% 100%, 100% 100%, 100% calc(100% - 1px), 22.2% calc(100% - 1px), 19.7% 1px, 0 1px); }
.sv-doc__content code { padding: 2px 6px; background: var(--svc-g100); font-size: .92em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sv-doc__content blockquote {
  margin: 24px 0 0; padding: 22px 26px; background: linear-gradient(135deg, #F4F6FA, #E4E8EF);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  font-size: 16px; line-height: 1.65;
}
.sv-doc__content blockquote > *:first-child { margin-top: 0; }
.sv-doc__content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.sv-doc__content th, .sv-doc__content td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--svc-p300); }
.sv-doc__content thead th, .sv-doc__content tr:first-child th { border-top: 0; background: var(--svc-g100); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--svc-p600); text-transform: uppercase; }
.sv-doc__content tr.sv-doc__row--on td, .sv-doc__content tr.sv-doc__row--on th { background: #EAF1FF; font-weight: 600; }

/* ---------- contact card at the end of a document ---------- */
.sv-doc__contact { margin-top: 64px; filter: drop-shadow(0 24px 28px rgba(27, 32, 38, .22)); }
.sv-doc__contact-face {
  position: relative; padding: 48px; color: var(--svc-g50);
  background: linear-gradient(135deg, #1F232B 0%, #313540 55%, #3F4553 100%);
  clip-path: polygon(0 0, calc(100% - var(--svc-cut)) 0, 100% var(--svc-cut), 100% 100%, var(--svc-cut) 100%, 0 calc(100% - var(--svc-cut)));
}
.sv-doc__contact-face::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--svc-seam); }
.sv-doc__contact-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--svc-g300); }
.sv-doc__contact-title { margin: 0; font-size: 34px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--svc-g50); }
.sv-doc__contact-text { margin: 14px 0 0; max-width: 520px; font-size: 16px; line-height: 1.65; color: var(--svc-g200); }
.sv-doc__contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- other policies ---------- */
.sv-doc__related { margin-top: 72px; }
.sv-doc__related:not(:has(.sv-doc__rel)) { display: none; }
.sv-doc__related-title { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--svc-p900); }
.sv-doc__related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; counter-reset: svrel; }
.sv-doc a.sv-doc__rel { position: relative; display: block; isolation: isolate; color: var(--svc-p900); text-decoration: none; transition: transform .35s var(--svc-ease); filter: drop-shadow(0 12px 16px rgba(27, 32, 38, .12)); counter-increment: svrel; }
.sv-doc a.sv-doc__rel:hover { transform: translateY(-4px); color: var(--svc-p900); }
.sv-doc__rel-ghost {
  position: absolute; inset: 0; z-index: -1; display: block; opacity: .85; transform: translate(7px, 7px);
  background: linear-gradient(135deg, var(--svc-g100), var(--svc-g400));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.sv-doc__rel-face {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 112px; padding: 20px 22px; background: var(--svc-w0);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.sv-doc__rel-n::before { content: counter(svrel, decimal-leading-zero); font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--svc-b600); }
.sv-doc__rel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }

/* ---------- Contact layout ---------- */
.sv-doc__channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.sv-doc__card { position: relative; isolation: isolate; filter: drop-shadow(0 22px 26px rgba(27, 32, 38, .12)); }
.sv-doc__ghost--card { transform: translate(12px, 12px); opacity: .85; --svc-cut: 24px; }
.sv-doc__card-face {
  position: relative; padding: 40px; background: var(--svc-w0);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.sv-doc__card-face::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--svc-seam); }
.sv-doc__card-icon {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: var(--svc-p900);
  background: linear-gradient(135deg, #F7F3F0, #E4E0DE);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.sv-doc__card-title { margin: 28px 0 0; font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.sv-doc__card-text { margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--svc-p600); min-height: 56px; }
.sv-doc__card-reply { margin: 18px 0 0; font-size: 14px; color: var(--svc-p600); }
.sv-doc__card .sv-doc__btn { margin-top: 24px; }
.sv-doc__card + .sv-doc__card .sv-doc__btn--solid,
.sv-doc__card[data-order="2"] .sv-doc__btn--solid { background: transparent; color: var(--svc-p900); border: 1px solid rgba(37, 35, 33, .4); }
.sv-doc__card + .sv-doc__card .sv-doc__btn--solid:hover,
.sv-doc__card[data-order="2"] .sv-doc__btn--solid:hover { background: var(--svc-p100); color: var(--svc-p900); border-color: rgba(37, 35, 33, .4); }

.sv-doc__social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; margin-top: 40px; }
.sv-doc__social:not(:has(.sv-doc__soc)) { display: none; }
.sv-doc a.sv-doc__soc {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--svc-p900); font-size: 16px; font-weight: 500;
  text-decoration: underline; text-decoration-color: #1D6BFF; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.sv-doc a.sv-doc__soc:hover { color: var(--svc-b600); }
.sv-doc__fx--wide { margin: 64px 0 56px; }

.sv-doc__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: start; }
.sv-doc__h2 { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.sv-doc__lede { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--svc-p600); }
.sv-doc__checklist { margin: 24px 0 0; font-size: 17px; line-height: 1.55; white-space: pre-line; }
.sv-doc__checklist ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; white-space: normal; }
.sv-doc__checklist li { position: relative; padding-left: 23px; }
.sv-doc__checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: #1D6BFF; transform: rotate(45deg); }
.sv-doc__quick { margin-top: 12px; border-bottom: 1px solid var(--svc-p300); }
.sv-doc a.sv-doc__qa {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 0 4px;
  border-top: 1px solid var(--svc-p300); color: var(--svc-p900); font-size: 17px; font-weight: 500; text-decoration: none;
}
.sv-doc a.sv-doc__qa:hover { color: var(--svc-b600); }
.sv-doc__extra { margin-top: 56px; max-width: 760px; font-size: 17px; line-height: 1.75; }
.sv-doc__extra a { color: var(--svc-b600); }
.sv-doc__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 15px; line-height: 1.6; }
.sv-doc__facts p { margin: 0; }
.sv-doc__facts .sv-doc__label { margin-bottom: 6px; font-size: 12px; letter-spacing: .16em; }
.sv-doc__facts div > p:not(.sv-doc__label) { color: var(--svc-p900); }

/* ---------- mobile bottom bar + topic bar: desktop = hidden ---------- */
.sv-doc__bar, .sv-doc__mtoc { display: none; }

/* ============================================================
   Tablet / phone — a separate layout, not a scaled-down desktop
   ============================================================ */
@media (max-width: 900px) {
  .sv-doc { --svc-cut: 14px; font-size: 16px; }
  .sv-doc__hero { padding: 8px 16px 28px; }
  .sv-doc__decor { width: 150px; height: 110px; }
  .sv-doc__decor-b { right: 26px; top: 22px; width: 84px; height: 44px; filter: drop-shadow(0 8px 8px rgba(27, 32, 38, .14)); }
  .sv-doc__decor-c { display: none; }
  .sv-doc__decor-d { right: 12px; top: 58px; width: 22px; height: 16px; }
  .sv-doc__crumbs { min-height: 48px; align-items: center; padding-top: 0; }
  .sv-doc__eyebrow { margin-top: 8px; }
  .sv-doc__title { font-size: 38px; margin-top: 10px; }
  .sv-doc__meta { margin-top: 14px; gap: 4px 20px; }
  .sv-doc__intro { font-size: 16px; margin-top: 14px; }

  .sv-doc__main { padding: 0 0 56px; }
  .sv-doc__grid.has-aside { display: block; }
  .sv-doc__aside { display: none; }

  /* topic bar: sticky, horizontal scroll */
  .sv-doc__mtoc { display: block; position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 240, .96); border-block: 1px solid var(--svc-p300); }
  .sv-doc__tabs { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 2px; }
  .sv-doc__tabs::-webkit-scrollbar { display: none; }
  .sv-doc a.sv-doc__tab {
    position: relative; flex: none; display: flex; align-items: center; min-height: 48px; padding: 0 14px;
    color: var(--svc-p600); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  }
  .sv-doc a.sv-doc__tab.is-on { color: var(--svc-p900); font-weight: 600; }
  .sv-doc a.sv-doc__tab.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: linear-gradient(90deg, #7DADDE, #E5FFFF 50%, #1D6BFF); }

  /* the plate melts into the page: flat reading surface */
  .sv-doc__plate { filter: none; }
  .sv-doc__ghost--1, .sv-doc__ghost--2 { display: none; }
  .sv-doc__face { background: transparent; padding: 0; clip-path: none; }
  .sv-doc__body { max-width: none; }

  /* summary: the one decorated card above the fold */
  .sv-doc__summary { position: relative; isolation: isolate; margin: 0 16px 28px; }
  .sv-doc__summary::before {
    content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(6px, 6px);
    background: linear-gradient(135deg, var(--svc-g100), var(--svc-g400));
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  }
  .sv-doc__summary-face {
    padding: 22px 20px 20px; background: var(--svc-w0);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  }
  .sv-doc__summary-body { font-size: 17px; line-height: 1.5; }

  .sv-doc__content { font-size: 16px; line-height: 1.7; }
  .sv-doc__content > :not(.sv-doc__sec):not(.sv-doc__mk) { margin-left: 16px; margin-right: 16px; }

  /* market: chips + one big card instead of a table */
  .sv-doc__mk { margin: 0 0 8px; }
  .sv-doc__mk-head { margin: 0 16px 12px; }
  .sv-doc__mk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px 4px; }
  .sv-doc__mk-chips::-webkit-scrollbar { display: none; }
  .sv-doc__mk .sv-doc__tablewrap { display: none; }
  .sv-doc__mkcard { display: block; margin: 16px 16px 0; padding: 20px; background: var(--svc-w0); border: 1px solid var(--svc-p300); }
  .sv-doc__mkname { margin: 0; font-size: 14px; color: var(--svc-p600); }
  .sv-doc__mklabel { margin: 14px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--svc-p600); text-transform: uppercase; }
  .sv-doc__mkval { margin: 6px 0 0; font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }

  /* sections = accordion (built by doc.js) */
  .sv-doc__sec, .sv-doc__sec + .sv-doc__sec, .sv-doc__content > .sv-doc__sec:first-of-type { margin: 0; padding: 0; border-top: 1px solid var(--svc-p300); }
  .sv-doc__sec::before, .sv-doc__sec + .sv-doc__sec::before, .sv-doc__content > .sv-doc__sec:first-of-type::before { display: none; }
  .sv-doc__sec:last-child { border-bottom: 1px solid var(--svc-p300); }
  .sv-doc__content h2 { display: block; font-size: 18px; }
  .sv-doc button.sv-doc__acc {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 0 16px;
    border: 0; background: none; color: var(--svc-p900); font: inherit; font-size: 18px; font-weight: 500; text-align: left; cursor: pointer;
  }
  .sv-doc__acc-t { flex: 1; }
  .sv-doc__acc svg { flex: none; transition: transform .25s var(--svc-ease); }
  .sv-doc__acc[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sv-doc__sec-body { padding: 0 16px 24px; }
  .sv-doc__sec-body > *:first-child { margin-top: 0; }

  .sv-doc__contact { margin: 40px 16px 0; filter: drop-shadow(0 16px 20px rgba(27, 32, 38, .2)); }
  .sv-doc__contact-face { padding: 28px 22px 24px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
  .sv-doc__contact-title { font-size: 26px; }
  .sv-doc__contact-text { font-size: 15px; margin-top: 10px; }
  .sv-doc__contact-actions { flex-direction: column; gap: 10px; margin-top: 22px; }
  .sv-doc a.sv-doc__btn { min-height: 56px; }

  .sv-doc__related { margin-top: 44px; }
  .sv-doc__related-title { margin: 0 16px 12px; font-size: 22px; }
  .sv-doc__related-list { display: block; margin: 0; border-bottom: 1px solid var(--svc-p300); }
  .sv-doc a.sv-doc__rel { filter: none; transform: none !important; }
  .sv-doc__rel-ghost { display: none; }
  .sv-doc__rel-face { min-height: 56px; padding: 0 16px; flex-direction: row; align-items: center; background: transparent; clip-path: none; border-top: 1px solid var(--svc-p300); }
  .sv-doc__rel-n { display: none; }
  .sv-doc__rel-row { flex: 1; }

  /* bottom bar (appears after the first screen) */
  .sv-doc--document { padding-bottom: 0; }
  .sv-doc__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 24px -14px rgba(27, 32, 38, .3); transform: translateY(110%); transition: transform .3s var(--svc-ease);
  }
  .sv-doc__bar.is-visible { transform: none; }
  .sv-doc a.sv-doc__bar-main { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--svc-b600); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
  .sv-doc a.sv-doc__bar-top { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(37, 35, 33, .28); color: var(--svc-p900); }
  .sv-doc--document .sv-doc__main { padding-bottom: 72px; }

  /* contact layout */
  .sv-doc__wide { padding: 0 16px; }
  .sv-doc__channels { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sv-doc__card { filter: none; }
  .sv-doc__ghost--card { display: none; }
  .sv-doc__card-face { padding: 0; background: transparent; clip-path: none; }
  .sv-doc__card-face::before, .sv-doc__card-icon, .sv-doc__card-text, .sv-doc__card-title { display: none; }
  .sv-doc__card-reply { display: none; }
  .sv-doc__card .sv-doc__btn { margin-top: 0; min-height: 56px; }
  .sv-doc__social { margin-top: 20px; gap: 0 24px; }
  .sv-doc__social .sv-doc__label { width: 100%; }
  .sv-doc__fx--wide { margin: 32px 0 24px; }
  .sv-doc__two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sv-doc__h2 { font-size: 20px; }
  .sv-doc__checklist { font-size: 16px; margin-top: 16px; }
  .sv-doc__extra { margin-top: 32px; font-size: 16px; }
  .sv-doc__facts { grid-template-columns: minmax(0, 1fr); gap: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-doc a.sv-doc__rel, .sv-doc__bar, .sv-doc__acc svg, .sv-doc a.sv-doc__btn { transition: none; }
  .sv-doc a.sv-doc__rel:hover { transform: none; }
}

@media print {
  .sv-doc { background: #fff; }
  .sv-doc__decor, .sv-doc__aside, .sv-doc__mtoc, .sv-doc__bar, .sv-doc__contact, .sv-doc__related, .sv-doc__skip, .sv-doc__mk-chips, .sv-doc__ghost { display: none !important; }
  .sv-doc__face { clip-path: none; padding: 0; }
  .sv-doc__plate { filter: none; }
  .sv-doc__sec-body[hidden] { display: block !important; }
  .sv-doc__acc svg { display: none; }
  .sv-doc__mk .sv-doc__tablewrap { display: block !important; }
  .sv-doc__mkcard { display: none !important; }
}

/* ================================================================
   v1.2 — market detail panels (H3 = market name) + support hours
   ================================================================ */

.sv-doc__mpanel { margin: 20px 0 0; padding: 20px 0 0 24px; border-left: 2px solid var(--svc-b500); position: relative; }
.sv-doc__mpanel[hidden] { display: none; }
.sv-doc__mpanel > h3:first-child { margin-top: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.sv-doc__mpanel > :last-child { margin-bottom: 0; }
.sv-doc__mp-note { margin: 12px 0 0; font-size: 13px; color: var(--svc-p600); }

.sv-doc__hours { margin-top: 56px; }
.sv-doc__hours .sv-doc__label { margin: 0 0 10px; }
.sv-doc__hours-status { margin: 0; font-size: 18px; line-height: 1.5; color: var(--svc-p900); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sv-doc__hours-raw { white-space: pre-line; }
.sv-doc__hours-raw-tz { color: var(--svc-p600); font-size: 14px; }
.sv-doc__dot { flex: none; width: 10px; height: 10px; background: var(--svc-g500); transform: rotate(45deg); }
.sv-doc__hours-status[data-state="open"] .sv-doc__dot { background: #1E7A4C; box-shadow: 0 0 0 4px rgba(30, 122, 76, .16); }
.sv-doc__hours-status b { font-weight: 600; }
.sv-doc__hours-status span.sv-doc__hours-sub { color: var(--svc-p600); font-size: 16px; }
.sv-doc__hours-more { margin-top: 12px; }
.sv-doc__hours-more summary { cursor: pointer; display: inline-block; font-size: 14px; color: var(--svc-b700); padding: 6px 0; min-height: 24px; }
.sv-doc__hours-more summary:focus-visible { outline: 2px solid var(--svc-b600); outline-offset: 2px; }
.sv-doc__hours-list { list-style: none; margin: 8px 0 0; padding: 0; max-width: 420px; border-top: 1px solid var(--svc-p300); }
.sv-doc__hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--svc-p300); font-size: 15px; }
.sv-doc__hours-list li[data-today="1"] { font-weight: 600; }
.sv-doc__hours-list li[data-closed="1"] span:last-child { color: var(--svc-p600); }
.sv-doc__hours-note { margin: 10px 0 0; font-size: 13px; color: var(--svc-p600); }

.sv-doc__hours-chip { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--svc-g200); }
.sv-doc__hours-chip[hidden] { display: none; }
.sv-doc__hours-chip .sv-doc__dot { background: var(--svc-g400); width: 8px; height: 8px; }
.sv-doc__hours-chip[data-state="open"] .sv-doc__dot { background: #5BD39A; box-shadow: 0 0 0 4px rgba(91, 211, 154, .2); }

@media (max-width: 900px) {
  .sv-doc__mpanel { margin: 16px 16px 0; padding: 4px 0 0 16px; }
  .sv-doc__mpanel > h3:first-child { font-size: 20px; }
  .sv-doc__hours { margin-top: 36px; }
  .sv-doc__hours-status { font-size: 17px; }
  .sv-doc__hours-list { max-width: none; }
}

@media print {
  .sv-doc__mpanel[hidden] { display: block !important; }
  .sv-doc__hours-chip { display: none !important; }
}
