/* ==========================================================================
   SIVIRAI Worldwide corporate flagship (/, /sivirai, /sivilai-hub).
   Grammar: sovereign dossier (scrollcraft/builds/sivirai/BRIEF.md).
   World: midnight chancery navy, champagne gold from the official emblem
   (#F5D78E / #D8A64D / #B57E24), white statutory sheets, a stone goods wall.
   Type: IBM Plex Sans (Latin), Sarabun (Thai), IBM Plex Mono for codes and
   figures only; all three are self-hosted by thaihao_gfw_safe_tokens.css.
   Motion tokens come from the same file (--th-dur-*, --th-ease-out).
   Pure ASCII; human strings live in the markup.
   ========================================================================== */

.o_siv_portal {
    --siv-navy: #0D1C30;
    --siv-navy-deep: #08121F;
    --siv-navy-2: #12243B;
    --siv-navy-3: #1A3150;
    --siv-gold: #D8A64D;
    --siv-gold-hi: #F5D78E;
    --siv-gold-deep: #B57E24;
    --siv-gold-ink: #7A5B1E;
    --siv-white: #FCFCFC;
    --siv-on-navy: #F1EEE7;
    --siv-on-navy-2: #B6C5DC;
    --siv-on-navy-3: #8FA3C2;
    --siv-line-navy: rgba(216, 166, 77, 0.22);
    --siv-hair-navy: rgba(241, 238, 231, 0.12);
    --siv-paper: #FCFCFA;
    --siv-stone: #E7E5E0;
    --siv-stone-2: #DAD7CF;
    --siv-ink: #0D1C30;
    --siv-ink-2: #46506A;
    --siv-rule: #94A3B8;
    --siv-rule-soft: #D5D9E0;
    --siv-gcc: #F5D78E;
    --siv-mx: #5CC6A0;
    --siv-cn: #EE7B6A;
    --siv-gcc-ink: #8A6514;
    --siv-mx-ink: #1F6B4C;
    --siv-cn-ink: #A3242F;
    --siv-e2: 0 18px 36px -22px rgba(4, 10, 20, 0.7), 0 2px 6px -2px rgba(4, 10, 20, 0.4);
    --siv-e3: 0 34px 64px -30px rgba(4, 10, 20, 0.8), 0 6px 14px -6px rgba(4, 10, 20, 0.45);
    --siv-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --siv-ease: var(--th-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
    --siv-dur-quick: var(--th-dur-quick, 150ms);
    --siv-dur-fast: var(--th-dur-fast, 250ms);
    --siv-dur-slow: var(--th-dur-slow, 400ms);
    --siv-sans: "IBM Plex Sans", "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --siv-th: "Sarabun", "IBM Plex Sans", "Leelawadee UI", "Noto Sans Thai", sans-serif;
    --siv-mono-font: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --siv-wrap: 1180px;
    --siv-gutter: clamp(16px, 4vw, 40px);
    --siv-section: clamp(72px, 9vw, 128px);

    /* transitions.dev tokens, mapped to the shared motion scale */
    --text-soft-dur: 200ms;
    --text-soft-blur: var(--th-blur-small, 2px);
    --text-soft-ease: ease-in-out;
    --text-soft-resize-dur: 240ms;
    --text-soft-resize-ease: var(--siv-ease);
    --digit-dur: 500ms;
    --digit-distance: var(--th-distance-base, 8px);
    --digit-stagger: 70ms;
    --digit-blur: var(--th-blur-small, 2px);
    --digit-ease: var(--siv-ease);
    --digit-dir-x: 0;
    --digit-dir-y: 1;
    --tabs-dur: var(--th-dur-fast, 250ms);
    --tabs-ease: var(--siv-ease);
    --tabs-text-muted: #B6C5DC;
    --tabs-text-active: #0D1C30;
    --tabs-bar-bg: #12243B;
    --tabs-pill-bg: #D8A64D;
    --panel-open-dur: var(--th-dur-slow, 400ms);
    --panel-close-dur: var(--th-dur-medium, 350ms);
    --panel-translate-y: 14px;
    --panel-blur: var(--th-blur-small, 2px);
    --panel-ease: var(--siv-ease);
}

html {
    background-color: #0D1C30;
    scrollbar-color: #B57E24 #08121F;
}

/* Horizontal containment. A phone lets the visitor pan sideways as soon as
   anything is wider than the viewport, and the graduated ring is a square box
   that grows to about 1.4 times its width as scroll turns it (58px past a
   390px screen at the end of the atlas). The ring is clipped at its stage
   below; these rules make sure nothing else can ever widen the page either.
   The root takes hidden first for engines without clip (on the root both
   values reach the viewport). The body and main take clip only: clip does
   not create a scroll container, so the sticky instrument keeps working,
   where a hidden fallback on them would break it. */
html:has(body.o_siv_portal) {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
}

.o_siv_portal *,
.o_siv_portal *::before,
.o_siv_portal *::after {
    box-sizing: border-box;
}

body.o_siv_portal {
    margin: 0;
    background-color: var(--siv-navy);
    color: var(--siv-on-navy);
    font-family: var(--siv-sans);
    font-size: 16px;
    line-height: 1.6;
    caret-color: var(--siv-gold-hi);
    accent-color: var(--siv-gold);
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
    font-variant-numeric: tabular-nums;
    /* The docked instrument and its cosmos run to the viewport edge, whose
       100vw includes the scrollbar; clip (not hidden) keeps sticky working. */
    max-width: 100vw;
    overflow-x: clip;
}

.siv-main {
    max-width: 100vw;
    overflow-x: clip;
}

.o_siv_portal ::selection {
    background-color: var(--siv-gold);
    color: var(--siv-navy);
}

/* Thai text: Sarabun, open line height, no tracking. Zero specificity, so
   monospace figures and the Latin wordmark keep their own faces. */
:where(.o_siv_portal :lang(th)) {
    font-family: var(--siv-th);
    letter-spacing: 0;
    line-height: 1.65;
}

html:lang(th) .o_siv_portal :is(.siv-h2, .siv-charter-name, .siv-charter-line, .siv-doc-title, .siv-doc-h, .siv-node, .siv-ledger, .siv-register dt, .siv-btn, .t-tab, .siv-corr-btn, .siv-lh-index a, .siv-footer-h, .siv-stat dt, .siv-stat-value, .siv-status, .siv-plate-label, .siv-ctl-label, .siv-spine-cap, .siv-issuer-vat, .siv-settle-label, .siv-hero-th) {
    letter-spacing: 0;
    line-height: 1.5;
}

html:lang(th) .o_siv_portal .siv-spine .o_thaihao_sc_corridor_where {
    font-family: var(--siv-th);
    font-size: 14px;
    letter-spacing: 0;
}

:where(.o_siv_portal) a {
    color: inherit;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
}

.o_siv_portal :lang(ar) {
    font-family: "IBM Plex Sans Arabic", var(--siv-sans);
}

.o_siv_portal :where(a, button, [tabindex]):focus-visible {
    outline: 2px solid var(--siv-gold-hi);
    outline-offset: 3px;
}

.o_siv_portal :where(.siv-doc, .siv-collection, .siv-sheet) :where(a, button):focus-visible {
    outline-color: var(--siv-navy);
}

.siv-mono {
    font-family: var(--siv-mono-font);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.siv-nw {
    white-space: nowrap;
}

.siv-skip {
    position: absolute;
    top: -64px;
    left: 12px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: 10px;
    background-color: var(--siv-gold);
    color: var(--siv-navy);
    font-weight: 600;
    text-decoration: none;
}

.siv-skip:focus {
    top: 12px;
}

.siv-wrap {
    width: 100%;
    max-width: calc(var(--siv-wrap) + 2 * var(--siv-gutter));
    margin: 0 auto;
    padding: 0 var(--siv-gutter);
}

#siv-route,
#siv-units,
#siv-desk,
#siv-collection,
#siv-launch,
#siv-registry {
    scroll-margin-top: 16px;
}

/* The shared command bar sits one step deeper than the letterhead. */
.o_siv_portal .sivilai-command-bar {
    background-color: var(--siv-navy-deep);
    border-bottom-color: rgba(216, 166, 77, 0.18);
}

.o_siv_portal .sivilai-command-bar .sivilai-brand-sub {
    font-size: 12px;
}

/* An authored icon the shared token set does not carry. */
.ti-arrow-up-right {
    --ti-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7L7 17'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.siv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--siv-dur-quick) var(--siv-ease), border-color var(--siv-dur-quick) var(--siv-ease), color var(--siv-dur-quick) var(--siv-ease), transform 120ms var(--siv-ease);
}

.siv-btn:active {
    transform: translateY(1px);
}

.siv-btn .ti {
    font-size: 17px;
}

.siv-btn-gold {
    background-color: var(--siv-gold);
    color: var(--siv-navy);
}

.siv-btn-ghost {
    border-color: rgba(241, 238, 231, 0.32);
    color: var(--siv-on-navy);
}

.siv-btn-outline {
    border-color: rgba(13, 28, 48, 0.34);
    color: var(--siv-navy);
}

@media (hover: hover) and (pointer: fine) {
    .siv-btn-gold:hover {
        background-color: #E6BC6A;
    }

    .siv-btn-ghost:hover {
        border-color: var(--siv-gold);
        background-color: rgba(241, 238, 231, 0.06);
    }

    .siv-btn-outline:hover {
        border-color: var(--siv-navy);
        background-color: rgba(13, 28, 48, 0.05);
    }
}

/* --------------------------------------------------------------------------
   Letterhead
   -------------------------------------------------------------------------- */
.siv-letterhead {
    position: relative;
    z-index: 3;
    background-color: var(--siv-navy);
}

.siv-lh-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
}

.siv-lh-brand {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 6px;
}

.siv-lh-logo {
    display: block;
    width: auto;
    height: 44px;
}

.siv-lh-index {
    margin-inline-start: auto;
}

.siv-lh-index ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-lh-index a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--siv-on-navy-2);
    font-size: 14.5px;
    text-decoration: none;
    transition: color var(--siv-dur-quick) var(--siv-ease), background-color var(--siv-dur-quick) var(--siv-ease);
}

@media (hover: hover) and (pointer: fine) {
    .siv-lh-index a:hover {
        background-color: rgba(241, 238, 231, 0.06);
        color: var(--siv-white);
    }
}

.siv-lang {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid var(--siv-line-navy);
    border-radius: 10px;
}

.siv-lang-btn {
    min-width: 46px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background-color: transparent;
    color: var(--siv-on-navy-2);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--siv-dur-quick) var(--siv-ease), color var(--siv-dur-quick) var(--siv-ease);
}

.siv-lang-btn[aria-pressed="true"] {
    background-color: var(--siv-gold);
    color: var(--siv-navy);
}

@media (hover: hover) and (pointer: fine) {
    .siv-lang-btn[aria-pressed="false"]:hover {
        color: var(--siv-white);
    }
}

.siv-lh-cta {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
}

.siv-lh-rule {
    border-top: 1px solid var(--siv-line-navy);
    border-bottom: 1px solid var(--siv-hair-navy);
    background-color: var(--siv-navy-deep);
}

.siv-lh-reg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    min-height: 40px;
}

.siv-clocks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin: 0;
}

.siv-clock {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.siv-clock dt {
    color: var(--siv-on-navy-3);
    font-size: 13px;
}

.siv-clock-code {
    display: none;
    font-family: var(--siv-mono-font);
    letter-spacing: 0.04em;
}

.siv-clock dd {
    margin: 0;
}

.siv-clock-time {
    color: var(--siv-gold-hi);
    font-family: var(--siv-mono-font);
    font-size: 13.5px;
}

.siv-lh-legal {
    margin: 0;
    color: var(--siv-on-navy-3);
    font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Atlas: cover, route and units beside the docked instrument
   -------------------------------------------------------------------------- */
.siv-atlas {
    --siv-col: minmax(0, 1fr);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: calc(var(--siv-wrap) + 2 * var(--siv-gutter));
    margin: 0 auto;
    padding: 0 var(--siv-gutter);
    isolation: isolate;
}

/* No pointer gradients on the atlas or the cover: a box-bound gradient is
   cut off by its own box. The pointer light lives in the cosmos canvas,
   which spans the viewport behind the hero. */
.siv-atlas > * {
    position: relative;
    z-index: 1;
}

/* The cover reads above the cosmos layer of the instrument cell. */
.siv-atlas > .siv-cover {
    z-index: 2;
}

.siv-cover {
    position: relative;
    padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 48px);
}

.siv-register-block {
    padding: 28px 0 0;
}

.siv-hero-title {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    font-weight: 500;
}

/* The two words break like the official lockup: white SIVIRAI over
   champagne-gold WORLDWIDE, tracked open like the wordmark. */
.siv-hero-en {
    display: flex;
    flex-direction: column;
    color: var(--siv-white);
    font-size: clamp(44px, 5.6vw, 84px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: 0.07em;
}

.siv-hero-gold {
    color: var(--siv-gold);
    font-weight: 400;
    letter-spacing: 0.16em;
}

.siv-hero-th {
    color: var(--siv-on-navy-2);
    font-size: clamp(19px, 1.8vw, 25px);
    font-weight: 400;
    line-height: 1.5;
}

.siv-hero-lead {
    max-width: 50ch;
    margin: 26px 0 0;
    color: var(--siv-on-navy-2);
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.65;
    text-wrap: pretty;
}

.siv-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.siv-register {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, auto));
    justify-content: start;
    gap: 14px 0;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--siv-line-navy);
}

.siv-register > div {
    position: relative;
    padding: 6px 18px;
    border-inline-start: 1px solid var(--siv-hair-navy);
    border-radius: 6px;
    cursor: default;
    transition: background-color 180ms var(--siv-ease), transform 180ms var(--siv-ease);
}

.siv-register > div[data-siv-kpi-globe] {
    cursor: pointer;
}

.siv-register > div[data-siv-kpi-globe]::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--siv-gold-hi), transparent);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 220ms var(--siv-ease), transform 260ms var(--siv-ease);
}

@media (hover: hover) and (pointer: fine) {
    .siv-register > div[data-siv-kpi-globe]:hover,
    .siv-register > div[data-siv-kpi-globe].is-siv-kpi-active {
        background-color: rgba(216, 166, 77, 0.08);
        transform: translateY(-1px);
    }

    .siv-register > div[data-siv-kpi-globe]:hover::before,
    .siv-register > div[data-siv-kpi-globe].is-siv-kpi-active::before {
        opacity: 1;
        transform: scaleX(1);
    }

    .siv-register > div[data-siv-kpi-globe]:hover dd,
    .siv-register > div[data-siv-kpi-globe].is-siv-kpi-active dd {
        color: var(--siv-gold-hi);
    }
}

.siv-register > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.siv-register dt {
    color: var(--siv-on-navy-3);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.siv-register dd {
    margin: 4px 0 0;
    color: var(--siv-white);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
}

.siv-register-note {
    margin: 12px 0 0;
    color: var(--siv-on-navy-3);
    font-size: 13px;
}

/* The instrument: the globe stage and its corridor plate. */
.siv-instrument-cell {
    position: relative;
    margin: 0 calc(-1 * var(--siv-gutter));
}

.siv-instrument {
    --siv-oy: 0.5;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* The stage is the globe's box: the canvas pins the globe to it
   (data-sc-canvas3d-anchor) and the graduated ring sits inside it.
   The ring's circle stays inside the stage at every width; only the
   transparent corners of its turning square box reach past the sides, so
   the stage clips its horizontal axis. Vertical stays visible: on tablets
   the 600px ring is taller than the 520px stage and must not be cut. */
.siv-globe-stage {
    position: relative;
    height: min(118vw, 520px);
    overflow-x: clip;
}

.siv-instrument canvas[data-sc-canvas3d] {
    --c3d-primary: #D8A64D;
    --c3d-highlight: #F5D78E;
    --c3d-shadow: #B57E24;
    --c3d-ground: #0D1C30;
    --c3d-accent: #5CC6A0;
    --c3d-accent-2: #EE7B6A;
    --c3d-ink: #F6F1E6;
    --c3d-muted: #7F8DA6;
    --c3d-ox: 0.5;
    --c3d-oy: var(--siv-oy);
    --c3d-zoom: 0.3;
    --c3d-density: 1;
    --c3d-font: 500 12px "IBM Plex Mono", ui-monospace, monospace;
}

html:lang(th) .siv-instrument canvas[data-sc-canvas3d] {
    --c3d-font: 500 13px "Sarabun", "Leelawadee UI", sans-serif;
}

/* The cosmos layer: one canvas carries the ecliptic field and the S-globe.
   On phones it covers the instrument; on wide screens it spans the whole
   viewport behind the hero (see the wide-screen block). It sits over the
   stage's ring and under the plate. Soft masks fade every edge, so the
   field is never cut to a box. */
.siv-cosmos {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.siv-cosmos canvas[data-sc-canvas3d] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
}

/* Back plane: a graduated ring behind the globe that turns against it.
   Scroll progress yaws the ring; pointer position adds a counter-rotation
   so the ring reads as a free-floating astrolabe that responds to the mouse.
   The pointer channel is --siv-ring-x/--siv-ring-y: --siv-mx is the Mexico
   corridor colour, and reusing it made this transform invalid on load (the
   ring sat off centre and widened the page) and blanked the Mexico swatch
   after the first pointer move. */
.siv-ring {
    position: absolute;
    top: calc(var(--siv-oy) * 100%);
    left: 50%;
    width: min(92%, 84vh, 600px);
    height: auto;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%)
        rotate(calc(var(--siv-atlas-p, 0) * -48deg + var(--siv-ring-x, 0) * -22deg))
        translate(calc(var(--siv-ring-x, 0) * -12px), calc(var(--siv-ring-y, 0) * -8px));
    pointer-events: none;
    transition: transform 220ms var(--siv-ease);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .siv-ring {
        transform: translate(-50%, -50%);
        transition: none;
    }
}

.siv-ring-line {
    fill: none;
    stroke: rgba(216, 166, 77, 0.18);
    stroke-width: 1;
}

.siv-ring-inner {
    stroke: rgba(216, 166, 77, 0.1);
}

.siv-ring-ticks {
    fill: none;
    stroke: rgba(216, 166, 77, 0.26);
    stroke-width: 6;
    stroke-dasharray: 1 8.91;
}

.siv-ring-ticks-major {
    stroke: rgba(245, 215, 142, 0.34);
    stroke-width: 12;
    stroke-dasharray: 1.2 73.33;
}

/* Front plane: the corridor plate overlaps the edge of the stage. On
   phones it follows the globe; on wide screens it heads the instrument. */
.siv-plate {
    --sc-mx: 0.5;
    --sc-my: 0.5;
    --sc-lit: 0;
    position: relative;
    z-index: 1;
    order: 2;
    margin: -28px var(--siv-gutter) 0;
    padding: 16px;
    border: 1px solid var(--siv-line-navy);
    border-radius: 14px;
    background-color: var(--siv-navy-2);
    box-shadow: var(--siv-edge), var(--siv-e2);
    isolation: isolate;
    will-change: transform;
    transition: border-color 220ms var(--siv-ease), box-shadow 220ms var(--siv-ease);
}

.siv-plate::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(
        260px 180px at calc(var(--sc-mx) * 100%) calc(var(--sc-my) * 100%),
        rgba(245, 215, 142, calc(0.18 * var(--sc-lit))),
        rgba(216, 166, 77, calc(0.03 * var(--sc-lit))) 48%,
        transparent 72%
    );
    opacity: var(--sc-lit);
    pointer-events: none;
    transition: opacity 220ms var(--siv-ease);
}

.siv-plate > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .siv-plate:hover {
        border-color: rgba(216, 166, 77, 0.4);
        box-shadow: var(--siv-edge), 0 24px 60px -24px rgba(216, 166, 77, 0.45);
    }
}

.siv-plate-label {
    margin: 0 0 10px;
    color: var(--siv-on-navy-3);
    font-size: 13px;
}

.siv-plate-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.siv-corr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 10px;
    background-color: transparent;
    color: var(--siv-on-navy-2);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--siv-dur-quick) var(--siv-ease), border-color var(--siv-dur-quick) var(--siv-ease), color var(--siv-dur-quick) var(--siv-ease);
}

.siv-corr-btn[aria-pressed="true"] {
    border-color: var(--siv-gold);
    background-color: rgba(216, 166, 77, 0.12);
    color: var(--siv-white);
}

.siv-corr-btn:active {
    transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
    .siv-corr-btn[aria-pressed="false"]:hover {
        border-color: rgba(216, 166, 77, 0.5);
        color: var(--siv-white);
    }
}

.siv-swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 14px;
    height: 3px;
    border-radius: 2px;
    vertical-align: middle;
}

.siv-swatch-gcc {
    background-color: var(--siv-gcc);
}

.siv-swatch-mx {
    background-color: var(--siv-mx);
}

.siv-swatch-cn {
    background-color: var(--siv-cn);
}

.siv-plate-read {
    min-height: 3em;
    margin: 12px 0 0;
    color: var(--siv-on-navy);
    font-size: 14.5px;
    line-height: 1.5;
    text-wrap: pretty;
}

/* Route: the five corridor stages as a vertical spine. */
.siv-route {
    padding: var(--siv-section) 0 0;
}

.siv-h2 {
    max-width: 24ch;
    margin: 0;
    color: var(--siv-white);
    font-size: clamp(28px, 3.1vw, 42px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.siv-h2:lang(th) {
    line-height: 1.5;
    letter-spacing: 0;
}

.siv-sub {
    max-width: 58ch;
    margin: 14px 0 0;
    color: var(--siv-on-navy-2);
    font-size: 17px;
    line-height: 1.6;
    text-wrap: pretty;
}

.o_siv_portal .siv-spine {
    --sc-corridor-accent: var(--siv-gold);
    position: relative;
    margin-top: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--siv-on-navy);
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_track {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 11px;
    width: 2px;
    height: auto;
    background-color: var(--siv-hair-navy);
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_fill {
    width: 100%;
    height: calc(var(--sc-corridor-p, 0) * 100%);
    background-image: none;
    background-color: var(--siv-gold);
    transition: height 180ms var(--siv-ease);
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_nodes {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.siv-stage {
    position: relative;
    padding: 0 0 clamp(28px, 4vh, 44px) 44px;
}

.siv-stage:last-child {
    padding-bottom: 0;
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: auto;
    min-height: 44px;
    margin-left: -44px;
    padding: 0 8px 4px 44px;
    border-radius: 10px;
    color: var(--siv-on-navy-2);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    text-align: start;
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    border-color: rgba(241, 238, 231, 0.3);
    background-color: var(--siv-navy);
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_node.is-sc-stage-done .o_thaihao_sc_corridor_dot {
    border-color: var(--siv-gold);
    background-color: var(--siv-gold);
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_node.is-sc-stage-active {
    color: var(--siv-white);
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_node.is-sc-stage-active .o_thaihao_sc_corridor_dot {
    border-color: var(--siv-gold-hi);
    background-color: var(--siv-navy);
    box-shadow: none;
    outline: 2px solid rgba(216, 166, 77, 0.38);
    outline-offset: 3px;
    transform: none;
}

.o_siv_portal .siv-spine .o_thaihao_sc_corridor_where {
    color: var(--siv-gold);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.siv-stage-detail {
    max-width: 56ch;
    margin: 8px 0 0;
    color: var(--siv-on-navy-3);
    font-size: 15.5px;
    line-height: 1.6;
    text-wrap: pretty;
    transition: color var(--siv-dur-fast) var(--siv-ease);
}

.siv-stage:has(.is-sc-stage-active) .siv-stage-detail {
    color: var(--siv-on-navy);
}

/* Units: three charters. */
.siv-units {
    padding: var(--siv-section) 0 clamp(48px, 6vw, 88px);
}

.siv-charters {
    display: grid;
    gap: 16px;
    margin-top: 36px;
}

.siv-charter {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: 16px;
    background-color: var(--siv-navy-2);
    box-shadow: var(--siv-edge), var(--siv-e2);
}

.siv-charter-core {
    padding: 30px;
}

@media (hover: hover) and (pointer: fine) {
    html.sc-ready .siv-charter[data-sc-spotlight] {
        background-image: radial-gradient(380px circle at calc(var(--sc-mx, 0.5) * 100%) calc(var(--sc-my, 0.5) * 100%), rgba(216, 166, 77, calc(0.1 * var(--sc-lit, 0))), transparent 70%);
    }
}

.siv-charter-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.siv-charter-head > div {
    min-width: 0;
}

.siv-charter-mark {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.siv-charter-core .siv-charter-mark {
    width: 56px;
    height: 56px;
}

.siv-charter-mark-light {
    padding: 4px;
    background-color: #FFFFFF;
}

.siv-charter-domain {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    color: var(--siv-on-navy-3);
    font-size: 13px;
}

.siv-charter-name {
    margin: 0;
    color: var(--siv-white);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.siv-charter-core .siv-charter-name {
    font-size: clamp(27px, 2.6vw, 32px);
}

.siv-charter-line {
    margin: 0;
    color: var(--siv-gold);
    font-size: 14.5px;
    font-weight: 500;
}

.siv-charter-body {
    max-width: 60ch;
    margin: 0;
    color: var(--siv-on-navy-2);
    font-size: 15.5px;
    line-height: 1.6;
    text-wrap: pretty;
}

.siv-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-markets li {
    padding: 3px 12px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 999px;
    color: var(--siv-on-navy);
    font-family: var(--siv-mono-font);
    font-size: 12.5px;
    letter-spacing: 0.04em;
}

.siv-charter-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--siv-hair-navy);
    color: var(--siv-on-navy-3);
    font-size: 13.5px;
}

.siv-charter-facts strong {
    color: var(--siv-on-navy);
    font-weight: 600;
}

.siv-charter-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-top: auto;
    color: var(--siv-white);
    font-weight: 600;
    text-decoration: none;
}

.siv-charter-cta::after {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    content: "";
}

@media (hover: hover) and (pointer: fine) {
    .siv-charter:hover .siv-charter-cta span {
        text-decoration: underline;
        text-decoration-color: var(--siv-gold);
    }
}

/* --------------------------------------------------------------------------
   3-to-1 convergence instrument: the thirteen-digit DBD tax ID anatomy and
   the one-issuer architecture that threads the three business units into
   SIVIRAI WORLDWIDE CO., LTD. before the desk re-issues its ledger.
   -------------------------------------------------------------------------- */
.siv-anatomy {
    position: relative;
    padding: clamp(72px, 10vh, 120px) 0 clamp(56px, 7vh, 88px);
    border-top: 1px solid var(--siv-hair-navy);
    background: radial-gradient(1200px 520px at 76% 8%, rgba(216, 166, 77, 0.08), transparent 70%), var(--siv-navy-deep);
    overflow: hidden;
}

.siv-anatomy::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--siv-line-navy) 18%, rgba(216, 166, 77, 0.55) 50%, var(--siv-line-navy) 82%, transparent);
    content: "";
    pointer-events: none;
}

.siv-anatomy-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px 40px;
    margin: 0 0 clamp(36px, 5vh, 56px);
}

.siv-anatomy-eye {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--siv-gold-hi);
    font-family: var(--siv-mono-font);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.siv-anatomy-eye::before {
    display: inline-block;
    width: 28px;
    height: 1px;
    background-color: currentColor;
    content: "";
}

.siv-anatomy-head h2 {
    max-width: 44ch;
    margin: 0;
    color: var(--siv-white);
    font-size: clamp(26px, 3.1vw, 40px);
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.siv-anatomy-head:lang(th) h2,
:lang(th) .siv-anatomy-head h2 {
    line-height: 1.42;
    letter-spacing: 0;
}

.siv-anatomy-sub {
    max-width: 62ch;
    margin: 0;
    color: var(--siv-on-navy-2);
    font-size: 15px;
    line-height: 1.6;
    text-wrap: pretty;
}

.siv-anatomy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

/* --- Left: the 3-into-1 convergence diagram --- */
.siv-converge {
    --sc-mx: 0.5;
    --sc-my: 0.5;
    --sc-lit: 0;
    position: relative;
    margin: 0;
    padding: 24px 22px 20px;
    border: 1px solid var(--siv-line-navy);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 36, 59, 0.55), rgba(8, 18, 31, 0.45));
    isolation: isolate;
    transition: border-color var(--siv-dur-quick) var(--siv-ease), box-shadow 320ms var(--siv-ease);
    will-change: transform;
}

.siv-converge::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(
        320px 320px at calc(var(--sc-mx) * 100%) calc(var(--sc-my) * 100%),
        rgba(245, 215, 142, calc(0.26 * var(--sc-lit))),
        rgba(216, 166, 77, calc(0.06 * var(--sc-lit))) 42%,
        transparent 72%
    );
    opacity: var(--sc-lit);
    pointer-events: none;
    transition: opacity 220ms var(--siv-ease);
}

.siv-converge > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .siv-converge:hover {
        border-color: rgba(216, 166, 77, 0.38);
        box-shadow: 0 24px 60px -28px rgba(216, 166, 77, 0.4), inset 0 0 0 1px rgba(216, 166, 77, 0.06);
    }
}

.siv-converge-cap {
    margin: 0 0 20px;
    color: var(--siv-on-navy-3);
    font-family: var(--siv-mono-font);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.siv-converge-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.siv-converge-sources,
.siv-converge-targets {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.siv-converge-sources > li,
.siv-converge-targets > li {
    display: flex;
    min-width: 0;
}

.siv-source {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 11px 10px 10px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 12px;
    background-color: rgba(13, 28, 48, 0.72);
    color: var(--siv-on-navy-2);
    font: inherit;
    text-align: start;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--siv-dur-quick) var(--siv-ease),
                background-color var(--siv-dur-quick) var(--siv-ease),
                transform var(--siv-dur-quick) var(--siv-ease),
                color var(--siv-dur-quick) var(--siv-ease);
}

.siv-source-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--siv-white);
    font-size: clamp(11.5px, 1.05vw, 13.5px);
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
}

.siv-source-name > :last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.siv-source-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 5px;
    padding-inline-start: 15px;
    color: var(--siv-on-navy-3);
    font-size: clamp(10.5px, 0.88vw, 12px);
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: normal;
}

html:lang(th) .siv-source-meta,
html:lang(th) .siv-target-head {
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
}

.siv-source-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset, 0 0 12px -2px currentColor;
}

.siv-source[data-bu="tcs"] .siv-source-dot,
.siv-target[data-bu="tcs"] .siv-source-dot { color: var(--siv-gcc); background-color: currentColor; }
.siv-source[data-bu="twm"] .siv-source-dot,
.siv-target[data-bu="twm"] .siv-source-dot { color: var(--siv-mx); background-color: currentColor; }
.siv-source[data-bu="th"] .siv-source-dot,
.siv-target[data-bu="th"] .siv-source-dot { color: var(--siv-cn); background-color: currentColor; }

.siv-source[aria-pressed="true"],
.siv-anatomy[data-siv-anatomy-focus="tcs"] .siv-source[data-bu="tcs"],
.siv-anatomy[data-siv-anatomy-focus="twm"] .siv-source[data-bu="twm"],
.siv-anatomy[data-siv-anatomy-focus="th"] .siv-source[data-bu="th"] {
    border-color: var(--siv-gold);
    background-color: rgba(216, 166, 77, 0.14);
    color: var(--siv-white);
}

@media (hover: hover) and (pointer: fine) {
    .siv-source:hover {
        border-color: rgba(216, 166, 77, 0.55);
        color: var(--siv-white);
        transform: translateY(-2px);
    }
}

.siv-source:focus-visible {
    outline: 2px solid var(--siv-gold-hi);
    outline-offset: 2px;
}

.siv-converge-lines {
    display: block;
    width: 100%;
    height: 34px;
    pointer-events: none;
    overflow: visible;
    position: relative;
    z-index: 0;
}

.siv-converge-line {
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.72;
    transition: opacity var(--siv-dur-fast) var(--siv-ease), stroke-width var(--siv-dur-fast) var(--siv-ease);
}

/* Continuous flowing dash stream along each convergence curve, staggered
   per BU so the three streams read as one golden current flowing into
   the shared issuer plate. The animation pauses under reduced motion. */
@keyframes sivConvergePulse {
    0%   { stroke-dashoffset: 26; opacity: 0.68; }
    50%  { stroke-dashoffset: 13; opacity: 0.96; }
    100% { stroke-dashoffset: 0;  opacity: 0.68; }
}

.siv-converge-lines::after {
    content: none;
}

.siv-converge .siv-converge-line {
    stroke-dasharray: 8 5;
    stroke-dashoffset: 26;
    animation: sivConvergePulse 2200ms linear infinite;
    animation-play-state: paused;
    filter: drop-shadow(0 0 3px currentColor);
}

.siv-converge .siv-converge-line[data-bu="tcs"] { animation-delay: 0ms;   }
.siv-converge .siv-converge-line[data-bu="twm"] { animation-delay: 420ms; }
.siv-converge .siv-converge-line[data-bu="th"]  { animation-delay: 860ms; }

@media (hover: hover) and (pointer: fine) {
    .siv-converge:hover .siv-converge-line {
        animation-play-state: running;
    }
}

html.sc-ready .siv-converge .siv-converge-line {
    animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
    html.sc-ready .siv-converge .siv-converge-line,
    .siv-converge:hover .siv-converge-line {
        animation: none;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}

.siv-converge-line[data-bu="tcs"] { stroke: var(--siv-gcc); }
.siv-converge-line[data-bu="twm"] { stroke: var(--siv-mx); }
.siv-converge-line[data-bu="th"] { stroke: var(--siv-cn); }

.siv-anatomy[data-siv-anatomy-focus="tcs"] .siv-converge-line[data-bu="tcs"],
.siv-anatomy[data-siv-anatomy-focus="twm"] .siv-converge-line[data-bu="twm"],
.siv-anatomy[data-siv-anatomy-focus="th"] .siv-converge-line[data-bu="th"] {
    opacity: 1;
    stroke-width: 2.5;
}

.siv-anatomy[data-siv-anatomy-focus="tcs"] .siv-converge-line:not([data-bu="tcs"]),
.siv-anatomy[data-siv-anatomy-focus="twm"] .siv-converge-line:not([data-bu="twm"]),
.siv-anatomy[data-siv-anatomy-focus="th"] .siv-converge-line:not([data-bu="th"]) {
    opacity: 0.18;
}

.siv-converge-core {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    padding: 15px 18px;
    border: 1px solid rgba(216, 166, 77, 0.55);
    border-radius: 14px;
    background: radial-gradient(90% 90% at 50% 20%, rgba(245, 215, 142, 0.2), rgba(216, 166, 77, 0.04) 60%, transparent), rgba(8, 18, 31, 0.92);
    text-align: start;
    box-shadow: 0 14px 40px -18px rgba(216, 166, 77, 0.5), inset 0 0 0 1px rgba(216, 166, 77, 0.08);
    overflow: hidden;
}

.siv-converge-core-mark {
    flex: 0 0 auto;
    width: 42px;
    height: auto;
}

.siv-converge-core-body {
    min-width: 0;
    flex: 1 1 auto;
}

.siv-converge-core-entity {
    margin: 0;
    color: var(--siv-white);
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.siv-converge-core-id {
    margin: 3px 0 0;
    color: var(--siv-gold-hi);
    font-family: var(--siv-mono-font);
    font-size: clamp(12px, 1.1vw, 14px);
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
    white-space: nowrap;
}

.siv-converge-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 7px 0 0;
    min-width: 0;
}

.siv-converge-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid rgba(216, 166, 77, 0.45);
    border-radius: 999px;
    color: var(--siv-gold-hi);
    font-family: var(--siv-mono-font);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.siv-target {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 10px 10px 11px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 12px;
    background-color: rgba(13, 28, 48, 0.52);
    color: var(--siv-on-navy-2);
    font-size: clamp(11px, 0.95vw, 12.5px);
    line-height: 1.3;
    overflow: hidden;
    transition: border-color var(--siv-dur-quick) var(--siv-ease),
                background-color var(--siv-dur-quick) var(--siv-ease),
                color var(--siv-dur-quick) var(--siv-ease);
}

.siv-target-head {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    color: var(--siv-white);
    font-weight: 600;
    font-size: clamp(11.5px, 1vw, 13px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.siv-target-head > :last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.siv-target-head .siv-source-dot {
    margin-top: 4px;
}

.siv-target-invoice {
    display: block;
    margin-top: 6px;
    padding-inline-start: 0;
    color: var(--siv-on-navy-3);
    font-family: var(--siv-mono-font);
    font-size: clamp(9.5px, 0.78vw, 10.5px);
    letter-spacing: 0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.siv-anatomy[data-siv-anatomy-focus="tcs"] .siv-target[data-bu="tcs"],
.siv-anatomy[data-siv-anatomy-focus="twm"] .siv-target[data-bu="twm"],
.siv-anatomy[data-siv-anatomy-focus="th"] .siv-target[data-bu="th"] {
    border-color: var(--siv-gold);
    background-color: rgba(216, 166, 77, 0.1);
    color: var(--siv-white);
}

/* --- Right: the 13-digit DBD anatomy --- */
.siv-taxid {
    --sc-mx: 0.5;
    --sc-my: 0.5;
    --sc-lit: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--siv-line-navy);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 36, 59, 0.45), rgba(8, 18, 31, 0.52));
    isolation: isolate;
    transition: border-color var(--siv-dur-quick) var(--siv-ease), box-shadow 320ms var(--siv-ease);
    will-change: transform;
}

.siv-taxid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(
        320px 320px at calc(var(--sc-mx) * 100%) calc(var(--sc-my) * 100%),
        rgba(245, 215, 142, calc(0.24 * var(--sc-lit))),
        rgba(216, 166, 77, calc(0.05 * var(--sc-lit))) 42%,
        transparent 72%
    );
    opacity: var(--sc-lit);
    pointer-events: none;
    transition: opacity 220ms var(--siv-ease);
}

.siv-taxid > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .siv-taxid:hover {
        border-color: rgba(216, 166, 77, 0.38);
        box-shadow: 0 24px 60px -28px rgba(216, 166, 77, 0.4), inset 0 0 0 1px rgba(216, 166, 77, 0.06);
    }
}

.siv-taxid-cap {
    margin: 0;
    color: var(--siv-on-navy-3);
    font-family: var(--siv-mono-font);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.siv-taxid-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 4px;
}

.siv-taxid-seg {
    appearance: none;
    position: relative;
    flex: 1 1 0;
    min-width: 54px;
    padding: 13px 8px 12px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 10px;
    background-color: rgba(8, 18, 31, 0.6);
    color: var(--siv-on-navy-3);
    font: inherit;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: border-color var(--siv-dur-quick) var(--siv-ease),
                background-color var(--siv-dur-quick) var(--siv-ease),
                color var(--siv-dur-quick) var(--siv-ease),
                transform var(--siv-dur-quick) var(--siv-ease);
}

.siv-taxid-seg[data-seg="province"] { flex-grow: 1.3; }
.siv-taxid-seg[data-seg="form"] { flex-grow: 1; }
.siv-taxid-seg[data-seg="year"] { flex-grow: 1; }
.siv-taxid-seg[data-seg="seq"] { flex-grow: 2.1; }
.siv-taxid-seg[data-seg="check"] { flex-grow: 0.75; }

.siv-taxid-num {
    display: block;
    color: var(--siv-gold-hi);
    font-family: var(--siv-mono-font);
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.055em;
    white-space: nowrap;
}

.siv-taxid-tag {
    display: block;
    margin-top: 7px;
    color: var(--siv-on-navy-2);
    font-size: clamp(9.5px, 0.8vw, 10.5px);
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow-wrap: normal;
    word-break: keep-all;
}

.siv-taxid-seg[aria-pressed="true"] {
    border-color: var(--siv-gold);
    background-color: rgba(216, 166, 77, 0.14);
    color: var(--siv-white);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -14px rgba(216, 166, 77, 0.5);
}

@media (hover: hover) and (pointer: fine) {
    .siv-taxid-seg:hover {
        border-color: rgba(216, 166, 77, 0.55);
        color: var(--siv-white);
    }
}

.siv-taxid-seg:focus-visible {
    outline: 2px solid var(--siv-gold-hi);
    outline-offset: 2px;
}

.siv-taxid-readout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-height: 108px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(216, 166, 77, 0.3);
    border-radius: 12px;
    background-color: rgba(216, 166, 77, 0.055);
}

.siv-taxid-readout dt {
    margin: 0;
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.siv-taxid-readout dd {
    margin: 0;
    color: var(--siv-white);
    font-size: 13.5px;
    line-height: 1.55;
    text-wrap: pretty;
}

.siv-taxid-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.siv-taxid-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(216, 166, 77, 0.4);
    border-radius: 999px;
    color: var(--siv-on-navy-2);
    font-size: 12.5px;
    line-height: 1.3;
}

.siv-taxid-pill strong {
    color: var(--siv-gold-hi);
    font-family: var(--siv-mono-font);
    font-weight: 500;
    letter-spacing: 0.08em;
}

.siv-taxid-foot {
    margin: 0;
    color: var(--siv-on-navy-3);
    font-size: 12.5px;
    line-height: 1.55;
    text-wrap: pretty;
}

/* --- Scope bridge: anatomy to desk --- */
.siv-anatomy-bridge {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px 24px;
    align-items: center;
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 14px;
    background-color: rgba(13, 28, 48, 0.55);
}

.siv-anatomy-bridge-label {
    margin: 0;
    color: var(--siv-on-navy-3);
    font-family: var(--siv-mono-font);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.siv-anatomy-scopes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.siv-anatomy-scope {
    appearance: none;
    padding: 9px 14px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 999px;
    background-color: transparent;
    color: var(--siv-on-navy-2);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--siv-dur-quick) var(--siv-ease),
                background-color var(--siv-dur-quick) var(--siv-ease),
                color var(--siv-dur-quick) var(--siv-ease);
}

.siv-anatomy-scope[aria-pressed="true"] {
    border-color: var(--siv-gold);
    background-color: rgba(216, 166, 77, 0.14);
    color: var(--siv-white);
}

.siv-anatomy-scope[aria-pressed="true"]::after {
    margin-inline-start: 8px;
    color: var(--siv-gold-hi);
    content: "\2193";
}

.siv-anatomy-scope:focus-visible {
    outline: 2px solid var(--siv-gold-hi);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .siv-anatomy-scope:hover {
        border-color: rgba(216, 166, 77, 0.55);
        color: var(--siv-white);
    }
}

/* --------------------------------------------------------------------------
   Desk: the holding spine and the statutory ledger (signature, peak)
   -------------------------------------------------------------------------- */
.siv-desk {
    position: relative;
    padding: clamp(56px, 7vh, 88px) 0 var(--siv-section);
    background-color: var(--siv-navy-deep);
}

.siv-desk-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px 40px;
    align-items: end;
    margin-bottom: clamp(28px, 4vh, 44px);
}

.siv-desk-head .siv-h2 {
    max-width: 26ch;
    margin: 0;
}

.siv-desk-head .siv-sub {
    max-width: 62ch;
    margin: 0;
}

.siv-desk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.siv-desk-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.siv-ctl-label {
    margin: 0 0 8px;
    color: var(--siv-on-navy-3);
    font-size: 13px;
}

/* transitions.dev 16, tabs sliding. The pill also travels vertically
   because the four scopes sit on a two-by-two grid. */
.t-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--siv-line-navy);
    border-radius: 12px;
    background-color: var(--tabs-bar-bg);
}

.t-tab {
    position: relative;
    z-index: 1;
    appearance: none;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background-color: transparent;
    color: var(--tabs-text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: color var(--tabs-dur) var(--tabs-ease);
}

.t-tab[aria-pressed="true"] {
    color: var(--tabs-text-active);
}

@media (hover: hover) and (pointer: fine) {
    .t-tab:not([aria-pressed="true"]):hover {
        color: var(--siv-white);
    }
}

.t-tabs-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 0;
    border-radius: 9px;
    background-color: var(--tabs-pill-bg);
    transform: translate(0, 0);
    transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease), height var(--tabs-dur) var(--tabs-ease);
    will-change: transform, width;
    pointer-events: none;
}

body:not(.siv-pills-ready) .t-tabs-pill {
    visibility: hidden;
}

body:not(.siv-pills-ready) .t-tab[aria-pressed="true"] {
    background-color: var(--tabs-pill-bg);
}

.siv-ccy {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.siv-ccy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 52px;
    padding: 6px 12px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 10px;
    background-color: transparent;
    color: var(--siv-on-navy-2);
    font: inherit;
    cursor: pointer;
    transition: background-color var(--siv-dur-quick) var(--siv-ease), border-color var(--siv-dur-quick) var(--siv-ease), color var(--siv-dur-quick) var(--siv-ease);
}

.siv-ccy-btn:active {
    transform: translateY(1px);
}

.siv-ccy-code {
    font-family: var(--siv-mono-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.siv-ccy-sym {
    color: var(--siv-on-navy-3);
    font-size: 13px;
    line-height: 1.3;
}

.siv-ccy-btn[aria-pressed="true"] {
    border-color: var(--siv-gold);
    background-color: rgba(216, 166, 77, 0.14);
    color: var(--siv-white);
}

.siv-ccy-btn[aria-pressed="true"] .siv-ccy-sym {
    color: var(--siv-gold-hi);
}

@media (hover: hover) and (pointer: fine) {
    .siv-ccy-btn[aria-pressed="false"]:hover {
        border-color: rgba(216, 166, 77, 0.5);
        color: var(--siv-white);
    }
}

/* The holding spine */
.siv-spine-fig {
    position: relative;
    margin: 4px 0 0;
    padding: 20px 18px 20px 20px;
    border: 1px solid var(--siv-line-navy);
    border-radius: 16px;
    background-color: var(--siv-navy);
}

.siv-spine-cap {
    margin: 0 0 14px;
    color: var(--siv-white);
    font-size: 16px;
    font-weight: 600;
}

.siv-flow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0 0 0 26px;
    list-style: none;
}

.siv-flow::before {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 7px;
    width: 2px;
    border-radius: 2px;
    background-color: rgba(216, 166, 77, 0.32);
    content: "";
}

.siv-node {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    padding: 6px 0;
    color: var(--siv-on-navy-3);
    font-size: 14px;
    line-height: 1.4;
    transition: color var(--siv-dur-fast) var(--siv-ease), opacity var(--siv-dur-fast) var(--siv-ease);
}

.siv-node::before {
    position: absolute;
    top: 50%;
    left: -19px;
    width: 12px;
    height: 2px;
    background-color: currentColor;
    content: "";
}

.siv-node-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-weight: 500;
}

.siv-node-meta {
    color: inherit;
    font-size: 12.5px;
}

.siv-node.is-on {
    color: var(--siv-on-navy);
}

.siv-node.is-on .siv-node-meta {
    color: var(--siv-gold);
}

.siv-node:not(.is-on) {
    opacity: 0.55;
}

.siv-issuer {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 14px 0;
    padding: 14px 0;
    border-block: 1px solid rgba(216, 166, 77, 0.55);
}

.siv-issuer-mark {
    flex: 0 0 auto;
    width: 40px;
    height: auto;
}

.siv-issuer-text p {
    margin: 0;
}

.siv-issuer-entity {
    color: var(--siv-white);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.siv-issuer-id {
    margin-top: 4px;
    color: var(--siv-gold-hi);
    font-size: 13px;
}

.siv-issuer-vat {
    margin-top: 4px;
    color: var(--siv-on-navy-2);
    font-size: 13px;
    text-wrap: pretty;
}

.siv-settle {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--siv-hair-navy);
}

.siv-settle-label {
    margin: 0;
    color: var(--siv-on-navy-3);
    font-size: 13px;
}

.siv-settle-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
    margin: 4px 0 14px;
    color: var(--siv-white);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.2;
}

.siv-settle-ccy {
    color: var(--siv-gold);
    font-size: 0.62em;
}

/* The consolidation fold: three unit bars that slide together into one
   balance sheet when the consolidated scope is chosen. */
.siv-fold {
    position: relative;
    height: 14px;
    margin: 0 30px 0 0;
}

.siv-fold-seg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--siv-x) * 1%);
    width: calc(var(--siv-w) * 1%);
    border-radius: 3px;
    transform: translateX(calc(var(--siv-i) * 10px));
    transition: transform var(--siv-dur-slow) var(--siv-ease), opacity var(--siv-dur-fast) var(--siv-ease);
}

.siv-fold-gcc {
    background-color: var(--siv-gcc);
}

.siv-fold-mx {
    background-color: var(--siv-mx);
}

.siv-fold-cn {
    background-color: var(--siv-cn);
}

.siv-desk[data-scope="all"] .siv-fold-seg {
    transform: translateX(0);
}

.siv-desk[data-scope="all"] .siv-fold-gcc {
    border-radius: 3px 0 0 3px;
}

.siv-desk[data-scope="all"] .siv-fold-mx {
    border-radius: 0;
}

.siv-desk[data-scope="all"] .siv-fold-cn {
    border-radius: 0 3px 3px 0;
}

.siv-desk[data-scope="tcs"] .siv-fold-seg:not([data-bu="tcs"]),
.siv-desk[data-scope="twm"] .siv-fold-seg:not([data-bu="twm"]),
.siv-desk[data-scope="th"] .siv-fold-seg:not([data-bu="th"]) {
    opacity: 0.22;
}

.siv-fold-key {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 10px 0 0;
    color: var(--siv-on-navy-3);
    font-size: 12.5px;
}

/* The ledger sheet */
.siv-doc {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: clamp(22px, 3.2vw, 44px);
    border-radius: 14px;
    background-color: var(--siv-paper);
    color: var(--siv-ink);
    box-shadow: var(--siv-e3);
}

.siv-doc-mark {
    position: absolute;
    top: 42%;
    left: 50%;
    color: rgba(13, 28, 48, 0.045);
    font-size: clamp(64px, 11vw, 140px);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-24deg);
    pointer-events: none;
    user-select: none;
}

.siv-doc-letterhead {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--siv-navy);
}

.siv-doc-emblem {
    flex: 0 0 auto;
    width: 46px;
    height: auto;
}

.siv-doc-letterhead p {
    margin: 0;
}

.siv-doc-entity {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.siv-doc-entity-th {
    font-size: 14px;
}

.siv-doc-addr {
    max-width: 75ch;
    margin-top: 4px;
    color: var(--siv-ink-2);
    font-size: 12.5px;
    line-height: 1.5;
}

.siv-doc-title {
    position: relative;
    margin: 20px 0 0;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.siv-doc-meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
    gap: 10px 48px;
    margin: 14px 0 0;
    font-size: 13px;
}

.siv-doc-meta .siv-mono {
    white-space: nowrap;
}

.siv-doc-meta dt {
    color: var(--siv-ink-2);
}

.siv-doc-meta dd {
    margin: 2px 0 0;
    font-weight: 500;
}

.siv-doc-body {
    position: relative;
}

.siv-doc-body.is-reissuing {
    animation: siv-reissue var(--siv-dur-slow) var(--siv-ease) both;
}

@keyframes siv-reissue {
    from {
        opacity: 0.25;
        transform: translateY(6px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

.siv-doc-part {
    margin-top: 26px;
}

.siv-doc-h {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-wrap: balance;
}

/* Tables follow the company's print standard: fixed layout, navy header
   with no inner verticals, slate rules on the cells. */
.siv-ledger {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13.5px;
    line-height: 1.4;
}

.siv-ledger thead th {
    padding: 8px 12px;
    border: 1px solid var(--siv-navy);
    background-color: var(--siv-navy);
    color: var(--siv-white);
    font-size: 12.5px;
    font-weight: 500;
    text-align: start;
    white-space: nowrap;
}

.siv-ledger thead th [data-siv-ccy-code] {
    color: var(--siv-gold-hi);
}

.siv-ledger td,
.siv-ledger tbody th {
    padding: 8px 12px;
    border: 1px solid var(--siv-rule);
    font-weight: 400;
    text-align: start;
    vertical-align: top;
}

.siv-ledger .siv-num {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.siv-ledger td.siv-num,
.siv-ledger td.siv-c-ref {
    font-family: var(--siv-mono-font);
    font-size: 12.5px;
    white-space: nowrap;
}

.siv-ledger-a th:nth-child(1) {
    width: 23%;
}

.siv-ledger-a th:nth-child(2) {
    width: 33%;
}

.siv-ledger-a th:nth-child(3) {
    width: 23%;
}

.siv-ledger-b th:nth-child(1) {
    width: 25%;
}

.siv-ledger-b th:nth-child(2) {
    width: 23%;
}

.siv-ledger-b th:nth-child(3) {
    width: 23%;
}

.siv-ledger-b th:nth-child(4) {
    width: 8%;
}

.siv-balance th:nth-child(1) {
    width: 26%;
}

.siv-c-sub {
    display: block;
    color: var(--siv-ink-2);
    font-size: 12.5px;
}

.siv-c-unit {
    font-size: 13px;
}

.siv-amt,
.siv-total {
    --text-soft-align: end;
}

.siv-balance .siv-balance-total th,
.siv-balance .siv-balance-total td {
    border-top: 2px solid var(--siv-navy);
    font-weight: 600;
}

.siv-balance td[data-col],
.siv-balance th[data-col] {
    transition: opacity var(--siv-dur-fast) var(--siv-ease), background-color var(--siv-dur-fast) var(--siv-ease);
}

.siv-desk[data-scope="all"] .siv-balance td[data-col="all"],
.siv-desk[data-scope="tcs"] .siv-balance td[data-col="tcs"],
.siv-desk[data-scope="twm"] .siv-balance td[data-col="twm"],
.siv-desk[data-scope="th"] .siv-balance td[data-col="th"] {
    background-color: #F4EBD6;
}

.siv-desk[data-scope="tcs"] .siv-balance [data-col]:not([data-col="tcs"]),
.siv-desk[data-scope="twm"] .siv-balance [data-col]:not([data-col="twm"]),
.siv-desk[data-scope="th"] .siv-balance [data-col]:not([data-col="th"]) {
    opacity: 0.38;
}

.siv-doc-notes {
    position: relative;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--siv-rule-soft);
    color: var(--siv-ink-2);
    font-size: 13px;
    line-height: 1.55;
}

.siv-doc-notes p {
    max-width: 75ch;
    margin: 0 0 6px;
    text-wrap: pretty;
}

/* transitions.dev 34, text swap soft */
.t-text-soft {
    display: inline-grid;
    justify-items: var(--text-soft-align, start);
    transition: width var(--text-soft-resize-dur) var(--text-soft-resize-ease);
}

.t-text-soft > span {
    grid-area: 1 / 1;
    white-space: pre;
    transition: filter var(--text-soft-dur) var(--text-soft-ease), opacity var(--text-soft-dur) var(--text-soft-ease);
}

.t-text-soft-new {
    opacity: 0;
    filter: blur(var(--text-soft-blur));
}

.t-text-soft.is-swapping .t-text-soft-old {
    opacity: 0;
    filter: blur(var(--text-soft-blur));
}

.t-text-soft.is-swapping .t-text-soft-new {
    opacity: 1;
    filter: blur(0);
}

/* transitions.dev 02, number pop-in */
@keyframes t-digit-pop-in {
    0% {
        transform: translate(calc(var(--digit-distance) * var(--digit-dir-x)), calc(var(--digit-distance) * var(--digit-dir-y)));
        opacity: 0;
        filter: blur(var(--digit-blur));
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
        filter: blur(0);
    }
}

.t-digit-group {
    display: inline-flex;
    align-items: baseline;
}

.t-digit {
    display: inline-block;
    will-change: transform, opacity, filter;
}

.t-digit-group.is-animating .t-digit {
    animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}

.t-digit-group.is-animating .t-digit[data-stagger="1"] {
    animation-delay: var(--digit-stagger);
}

.t-digit-group.is-animating .t-digit[data-stagger="2"] {
    animation-delay: calc(var(--digit-stagger) * 2);
}

.t-digit-group.is-animating .t-digit[data-same] {
    animation: none;
}

.siv-balance td .t-digit-group {
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Statement of goods
   -------------------------------------------------------------------------- */
.siv-collection {
    --siv-on-navy: #0D1C30;
    padding: var(--siv-section) 0;
    background-color: var(--siv-stone);
    color: var(--siv-ink);
}

.siv-collection .siv-h2 {
    color: var(--siv-ink);
}

.siv-collection .siv-sub {
    color: var(--siv-ink-2);
}

.siv-collection-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 40px;
    margin-bottom: 44px;
}

.siv-collection-head > div {
    max-width: 62ch;
}

.siv-collection-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--siv-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--siv-gold-deep);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

.siv-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 48px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-collection-grid > li:nth-child(3n + 2) {
    margin-top: 64px;
}

.siv-sku-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

.siv-sku-frame {
    display: block;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 14px;
    background-color: var(--siv-navy);
    box-shadow: 0 24px 40px -28px rgba(13, 28, 48, 0.55), 0 2px 6px -3px rgba(13, 28, 48, 0.2);
    transition: translate var(--siv-dur-fast) var(--siv-ease), box-shadow var(--siv-dur-fast) var(--siv-ease);
}

.siv-sku-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    transition: scale var(--siv-dur-slow) var(--siv-ease);
}

.siv-sku-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    color: var(--siv-ink-2);
    font-size: 13px;
}

.siv-sku-code {
    color: var(--siv-gold-ink);
    font-size: 12.5px;
}

.siv-sku-title {
    color: var(--siv-ink);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration-color: var(--siv-gold-deep);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.siv-sku-th {
    color: var(--siv-ink-2);
    font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .siv-sku-link:hover .siv-sku-frame {
        translate: 0 -4px;
        box-shadow: 0 32px 48px -28px rgba(13, 28, 48, 0.6), 0 4px 10px -4px rgba(13, 28, 48, 0.22);
    }

    .siv-sku-link:hover .siv-sku-img {
        scale: 1.03;
    }

    .siv-sku-link:hover .siv-sku-title {
        text-decoration-line: underline;
    }
}

.siv-sku-link:focus-visible {
    outline-color: var(--siv-navy);
    outline-offset: 6px;
}

/* --------------------------------------------------------------------------
   Platform doors
   -------------------------------------------------------------------------- */
.siv-launch {
    padding: var(--siv-section) 0;
    background-color: var(--siv-navy);
}

.siv-section-head {
    max-width: 62ch;
    margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   Platform switchboard: six door plates beside one drafting stage.
   Without scripts (no .is-live) every bay reads under its plate. Live on
   wide screens the plates dock on the left and the bays share one stage
   frame on the right; on narrower screens each bay opens under its plate.
   Bay layouts answer to the bay's own width (container queries).
   -------------------------------------------------------------------------- */
.siv-switch {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow-anchor: none;
}

/* A door plate: index, title, description, access and route, launch link. */
.siv-gate {
    position: relative;
    z-index: 1;
    padding: 16px 20px 17px 62px;
}

.siv-gate::before {
    position: absolute;
    top: 0;
    right: 12px;
    left: 62px;
    height: 1px;
    background-color: var(--siv-hair-navy);
    content: "";
    transition: opacity var(--siv-dur-quick) var(--siv-ease);
}

.siv-gate.is-active::before,
.siv-gate.is-after-active::before {
    opacity: 0;
}

.siv-gate-h {
    margin: 0;
    padding-inline-end: 52px;
    font-size: inherit;
    font-weight: inherit;
}

.siv-gate-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

/* The whole plate selects the door; the launch link sits above it. */
.siv-gate-btn::after {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    content: "";
}

.o_siv_portal .siv-gate-btn:focus-visible {
    outline: none;
}

.siv-gate-btn:focus-visible::after {
    outline: 2px solid var(--siv-gold-hi);
    outline-offset: -2px;
}

.siv-gate-no {
    position: absolute;
    top: 16px;
    left: 22px;
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: 0.04em;
    transition: color var(--siv-dur-quick) var(--siv-ease);
}

.siv-gate-title {
    display: block;
    color: var(--siv-on-navy-2);
    font-size: 18.5px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: -0.01em;
    transition: color var(--siv-dur-quick) var(--siv-ease);
}

.siv-gate-text {
    max-width: 56ch;
    margin: 5px 0 0;
    color: var(--siv-on-navy-3);
    font-size: 14.5px;
    line-height: 1.5;
    text-wrap: pretty;
    transition: color var(--siv-dur-quick) var(--siv-ease);
}

.siv-gate-text .siv-mono {
    color: var(--siv-on-navy);
}

.siv-gate-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 10px 0 0;
    font-size: 12.5px;
}

.siv-gate-access {
    padding: 4px 12px;
    border: 1px solid var(--siv-hair-navy);
    border-radius: 999px;
    color: var(--siv-on-navy);
    font-weight: 600;
    line-height: 1.4;
}

.siv-gate-path {
    color: var(--siv-on-navy-3);
    font-family: var(--siv-mono-font);
    letter-spacing: 0.01em;
}

.siv-gate-go {
    position: absolute;
    top: 7px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--siv-on-navy-3);
    font-size: 20px;
    text-decoration: none;
    transition: color var(--siv-dur-quick) var(--siv-ease), background-color var(--siv-dur-quick) var(--siv-ease);
}

.siv-gate-go:active {
    transform: translateY(1px);
}

.siv-gate.is-active .siv-gate-no,
.siv-gate.is-active .siv-gate-go {
    color: var(--siv-gold-hi);
}

.siv-gate.is-active .siv-gate-title {
    color: var(--siv-white);
}

.siv-gate.is-active .siv-gate-text {
    color: var(--siv-on-navy-2);
}

@media (hover: hover) and (pointer: fine) {
    .siv-gate:hover .siv-gate-title {
        color: var(--siv-white);
    }

    .siv-gate:hover .siv-gate-no {
        color: var(--siv-gold-hi);
    }

    .siv-gate-go:hover {
        background-color: rgba(216, 166, 77, 0.16);
        color: var(--siv-gold-hi);
    }
}

/* transitions.dev 16, tabs sliding, set vertically: the lit plate travels
   to the open door. JS writes the door's offsets; CSS owns the tween. */
.siv-switch-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 0;
    border: 1px solid rgba(216, 166, 77, 0.34);
    border-radius: 14px;
    background-color: var(--siv-navy-2);
    opacity: 0;
    transform: translate(0, 0);
    transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease), height var(--tabs-dur) var(--tabs-ease), opacity var(--siv-dur-quick) var(--siv-ease);
    will-change: transform, width;
    pointer-events: none;
}

.siv-switch.is-live .siv-switch-pill.is-on {
    opacity: 1;
}

/* The patch cord: plugs the lit plate into the stage and slides with it. */
.siv-switch-cord {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: none;
    width: 0;
    height: 1px;
    background-color: var(--siv-gold);
    transform: translate(0, 0);
    transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease);
    pointer-events: none;
}

.siv-switch-cord::before,
.siv-switch-cord::after {
    position: absolute;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
}

.siv-switch-cord::before {
    left: -3px;
    background-color: var(--siv-gold);
}

.siv-switch-cord::after {
    right: -4px;
    border: 1px solid var(--siv-gold);
    background-color: var(--siv-navy-deep);
}

.siv-switch-stage {
    display: none;
}

/* Thai: open leading and no tracking on the switchboard's own type; the
   index keeps the title's line box so the two stay on one baseline. */
html:lang(th) .o_siv_portal :is(.siv-gate-title, .siv-bay-h, .siv-kyb-label, .siv-rbac-role, .siv-read-word, .siv-reorder-name) {
    letter-spacing: 0;
    line-height: 1.5;
}

html:lang(th) .o_siv_portal :is(.siv-gate-title, .siv-gate-no) {
    line-height: 28px;
}

/* Every running line in the switchboard wraps without a lone last word. */
:is(.siv-bay-note, .siv-read-note, .siv-callouts li, .siv-dispatch-what, .siv-kit-name, .siv-rbac-scope, .siv-room-name, .siv-days-mark, .siv-kyb-items li, .siv-bay-table td) {
    text-wrap: pretty;
}

/* A bay: the drafting sheet behind one door. */
.siv-bay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    margin: 6px 0 22px;
    padding: 26px 28px 24px;
    border: 1px solid rgba(216, 166, 77, 0.28);
    border-radius: 16px;
    background-color: var(--siv-navy-deep);
    container: siv-bay / inline-size;
}

.siv-bay[hidden] {
    display: none;
}

.siv-bay.is-leaving {
    z-index: 0;
}

/* Registration corners, as on a drawing sheet. */
.siv-bay::before,
.siv-bay::after,
.siv-switch-stage::before,
.siv-switch-stage::after {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 0 solid var(--siv-gold);
    content: "";
    pointer-events: none;
}

.siv-bay::before,
.siv-switch-stage::before {
    top: 10px;
    left: 10px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.siv-bay::after,
.siv-switch-stage::after {
    right: 10px;
    bottom: 10px;
    border-right-width: 1px;
    border-bottom-width: 1px;
}

.siv-bay-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--siv-hair-navy);
}

.siv-bay-h {
    max-width: 30ch;
    margin: 0;
    color: var(--siv-white);
    font-size: clamp(21px, 1.8vw, 25px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.siv-bay-lead {
    max-width: 64ch;
    margin: 0;
    color: var(--siv-on-navy-2);
    font-size: 15px;
    line-height: 1.55;
    text-wrap: pretty;
}

.siv-bay-fig {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    min-width: 0;
}

.siv-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Readouts: live figures from the ERP, ruled like the hero register. */
.siv-bay-read {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 0;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--siv-hair-navy);
}

.siv-bay-read-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.siv-bay-read > div {
    min-width: 0;
    padding: 0 16px;
    border-inline-start: 1px solid var(--siv-hair-navy);
}

.siv-bay-read > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.siv-bay-read dt {
    color: var(--siv-on-navy-3);
    font-size: 13px;
    line-height: 1.35;
}

.siv-bay-read dd {
    margin: 6px 0 0;
    color: var(--siv-white);
}

.siv-read-num {
    color: var(--siv-white);
    font-family: var(--siv-mono-font);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
}

.siv-read-word {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.siv-read-note {
    display: block;
    margin-top: 3px;
    color: var(--siv-on-navy-3);
    font-size: 13px;
    line-height: 1.4;
}

.siv-bay-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.siv-bay-note {
    max-width: 44ch;
    margin: 0;
    color: var(--siv-on-navy-3);
    font-size: 13px;
    line-height: 1.45;
}

.siv-bay-badge {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(216, 166, 77, 0.5);
    border-radius: 999px;
    color: var(--siv-gold-hi);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Ledger tables on the drafting sheet. */
.siv-bay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.siv-bay-table th,
.siv-bay-table td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--siv-hair-navy);
    text-align: start;
    vertical-align: top;
}

.siv-bay-table thead th {
    padding-top: 0;
    color: var(--siv-on-navy-3);
    font-size: 13px;
    font-weight: 500;
}

.siv-bay-table tbody th {
    color: var(--siv-white);
    font-weight: 600;
}

.siv-bay-table td {
    color: var(--siv-on-navy-2);
}

/* Bay 01: the KYB route, three stations on one drawn line. */
.siv-kyb {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 4px 22px;
    margin: 0;
    padding: 30px 0 0;
    list-style: none;
}

.siv-kyb::before {
    position: absolute;
    top: 9px;
    right: 2px;
    left: 5px;
    height: 1px;
    background-color: var(--siv-gold);
    content: "";
}

.siv-kyb::after {
    position: absolute;
    top: 5px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--siv-gold);
    border-right: 1px solid var(--siv-gold);
    transform: rotate(45deg);
    content: "";
}

/* Each station spans the three rows, so the numbers, labels and lists
   line up across stations whatever wraps. */
.siv-kyb-step {
    position: relative;
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-content: start;
    min-width: 0;
}

.siv-kyb-step::before {
    position: absolute;
    top: -26px;
    left: 0;
    width: 11px;
    height: 11px;
    border: 1px solid var(--siv-gold);
    border-radius: 50%;
    background-color: var(--siv-navy-deep);
    content: "";
}

.siv-kyb-step:first-child::before {
    background-color: var(--siv-gold);
}

.siv-kyb-no {
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.siv-kyb-label {
    color: var(--siv-white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.siv-kyb-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--siv-hair-navy);
    color: var(--siv-on-navy-2);
    font-size: 13.5px;
    line-height: 1.4;
    list-style: none;
}

.siv-kyb-items li {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.siv-kyb-items .siv-swatch {
    align-self: center;
}

/* A drawn sheet with a folded corner, for the KYB documents. */
.siv-doc-glyph {
    position: relative;
    flex: 0 0 auto;
    align-self: center;
    width: 10px;
    height: 13px;
    border: 1px solid var(--siv-gold);
    border-radius: 1px;
    clip-path: polygon(0 0, 62% 0, 100% 30%, 100% 100%, 0 100%);
}

.siv-doc-glyph::after {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 5px;
    height: 5px;
    border-bottom: 1px solid var(--siv-gold);
    border-left: 1px solid var(--siv-gold);
    content: "";
}

.siv-kyb-dash {
    flex: 0 0 auto;
    align-self: center;
    width: 10px;
    height: 1px;
    background-color: var(--siv-gold);
}

.siv-tracks th:first-child {
    width: 30%;
}

.siv-tracks-corr {
    white-space: nowrap;
}

/* Bay 02: the seller app, keyed to three callouts. */
.siv-device {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
}

.siv-phone {
    position: relative;
    width: 216px;
    height: 420px;
}

.siv-phone-frame,
.siv-room-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.siv-phone-screen {
    position: absolute;
    inset: 36px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.siv-phone-app {
    margin: 0;
    color: var(--siv-on-navy-3);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.siv-phone-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 8px;
    border-top: 1px solid var(--siv-hair-navy);
}

.siv-phone-label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    color: var(--siv-on-navy);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.siv-key {
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.siv-phone-big {
    margin: 0;
    color: var(--siv-on-navy-2);
    font-size: 12.5px;
    line-height: 1.4;
}

.siv-phone-big .siv-read-num {
    color: var(--siv-gold-hi);
    font-size: 21px;
}

.siv-phone-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 0;
    color: var(--siv-on-navy-2);
    font-size: 12.5px;
    line-height: 1.4;
    list-style: none;
}

.siv-phone-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.siv-phone-code {
    font-family: var(--siv-mono-font);
    font-size: 12px;
}

.siv-tick {
    flex: 0 0 auto;
    width: 9px;
    height: 5px;
    border-bottom: 1.5px solid var(--siv-mx);
    border-left: 1.5px solid var(--siv-mx);
    transform: translateY(-2px) rotate(-45deg);
}

.siv-phone-loc {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.siv-phone-ledger {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.siv-phone-ledger div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.siv-phone-ledger dt {
    color: var(--siv-on-navy-3);
}

.siv-phone-ledger dd {
    margin: 0;
    color: var(--siv-on-navy);
    font-family: var(--siv-mono-font);
}

.siv-callouts {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-callouts li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    color: var(--siv-on-navy);
    font-size: 15px;
    line-height: 1.5;
}

.siv-callouts .siv-key {
    font-size: 14px;
    line-height: 1.6;
}

/* Bay 03: the sample dispatch line beside a live room. */
.siv-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 228px;
    align-items: center;
    gap: 32px;
}

.siv-dispatch {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0 0 0 30px;
    list-style: none;
}

.siv-dispatch::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 5px;
    width: 1px;
    background-color: var(--siv-gold);
    content: "";
}

.siv-dispatch li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.siv-dispatch li::before {
    position: absolute;
    top: 4px;
    left: -30px;
    width: 11px;
    height: 11px;
    border: 1px solid var(--siv-gold);
    border-radius: 50%;
    background-color: var(--siv-navy-deep);
    content: "";
}

.siv-dispatch li:last-child::before {
    background-color: var(--siv-gold);
}

.siv-dispatch-where {
    color: var(--siv-gold);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.siv-dispatch-what {
    color: var(--siv-on-navy);
    font-size: 14.5px;
    line-height: 1.45;
}

.siv-room {
    position: relative;
    width: 228px;
    height: 372px;
}

.siv-room-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    height: 52px;
    margin: 0;
    color: var(--siv-on-navy-3);
    font-size: 12.5px;
    font-weight: 600;
}

.siv-room-tab:first-child {
    color: var(--siv-white);
}

.siv-room-shot {
    position: absolute;
    top: 72px;
    left: 50%;
    width: 156px;
    height: 156px;
    margin-left: -78px;
    overflow: hidden;
    border-radius: 50%;
}

.siv-room-img,
.siv-shelf-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.25);
    transform-origin: 50% 33%;
}

.siv-room-live {
    position: absolute;
    top: 244px;
    left: 50%;
    margin: 0;
    padding: 3px 12px;
    border: 1px solid rgba(238, 123, 106, 0.7);
    border-radius: 999px;
    color: #F6B7AC;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transform: translateX(-50%);
}

.siv-room-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
}

.siv-room-code {
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 12px;
}

.siv-room-name {
    color: var(--siv-white);
    font-size: 14px;
    line-height: 1.35;
}

/* Bay 04: the role map. */
.siv-rbac {
    table-layout: fixed;
}

.siv-rbac thead th:first-child,
.siv-rbac tbody th {
    width: 42%;
}

.siv-rbac thead th:not(:first-child),
.siv-rbac td {
    padding-right: 6px;
    padding-left: 6px;
    text-align: center;
}

.siv-rbac td {
    vertical-align: middle;
}

.siv-rbac tbody th,
.siv-rbac td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.siv-rbac-role {
    display: block;
}

.siv-rbac-scope {
    display: block;
    margin-top: 2px;
    color: var(--siv-on-navy-3);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.siv-bu-code {
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.siv-mark {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(182, 197, 220, 0.42);
    border-radius: 4px;
    vertical-align: middle;
    transition: opacity var(--siv-dur-quick) var(--siv-ease);
}

.siv-mark.is-on {
    border-color: var(--siv-gold);
    background-color: var(--siv-gold);
}

.siv-rbac tbody th {
    transition: color var(--siv-dur-quick) var(--siv-ease);
}

@media (hover: hover) and (pointer: fine) {
    .siv-rbac tbody:hover tr:not(:hover) .siv-mark.is-on {
        opacity: 0.35;
    }

    .siv-rbac tbody tr:hover th {
        color: var(--siv-gold-hi);
    }
}

.siv-rbac-key {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    color: var(--siv-on-navy-3);
    font-size: 13px;
    line-height: 1.45;
}

.siv-rbac-code {
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
}

/* Bay 05: twenty-four days, then the re-order hub. */
.siv-days {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.siv-days-mark {
    position: relative;
    max-width: 66%;
    margin: 0 0 0 31.25%;
    padding: 0 0 6px 12px;
    color: var(--siv-gold-hi);
    font-size: 13.5px;
    line-height: 1.4;
}

.siv-days-mark::before {
    position: absolute;
    top: 3px;
    bottom: -24px;
    left: 0;
    width: 1px;
    background-color: var(--siv-gold-hi);
    content: "";
}

.siv-days-bar {
    display: block;
    width: 100%;
    height: 40px;
    overflow: visible;
}

.siv-days-ends {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: var(--siv-on-navy-2);
    font-size: 13px;
    line-height: 1.4;
}

.siv-days-count {
    color: var(--siv-white);
    font-weight: 600;
}

.siv-stops {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 14px 0 0;
    padding: 0;
    color: var(--siv-on-navy-2);
    font-size: 13.5px;
    line-height: 1.5;
    list-style: none;
}

.siv-stops li:not(:last-child)::after {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: var(--siv-gold);
    vertical-align: middle;
    content: "";
}

.siv-reorder {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px 28px;
    padding-top: 18px;
    border-top: 1px solid var(--siv-hair-navy);
}

.siv-reorder-code {
    margin: 0;
    color: var(--siv-gold-hi);
    font-family: var(--siv-mono-font);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.04em;
}

.siv-reorder-name {
    margin: 4px 0 0;
    color: var(--siv-white);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.siv-reorder-corr {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    color: var(--siv-on-navy-3);
    font-size: 13.5px;
    line-height: 1.4;
}

.siv-reorder-label {
    margin: 0 0 8px;
    color: var(--siv-on-navy-2);
    font-size: 13.5px;
    line-height: 1.4;
}

.siv-kit {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-kit li {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    border-top: 1px solid var(--siv-hair-navy);
    font-size: 13.5px;
    line-height: 1.4;
}

.siv-kit-code {
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 12.5px;
    line-height: 1.5;
}

.siv-kit-name {
    color: var(--siv-on-navy);
}

/* Bay 06: the six signature SKUs, cropped to the bottle. */
.siv-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
    max-width: 560px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-shelf-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.siv-shelf-frame {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.siv-shelf-img {
    transition: transform var(--siv-dur-slow) var(--siv-ease);
}

.siv-shelf-code {
    color: var(--siv-gold);
    font-family: var(--siv-mono-font);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    text-decoration-color: var(--siv-gold);
    text-underline-offset: 0.3em;
}

@media (hover: hover) and (pointer: fine) {
    .siv-shelf-link:hover .siv-shelf-img {
        transform: scale(2.4);
    }

    .siv-shelf-link:hover .siv-shelf-code {
        text-decoration-line: underline;
    }
}

.siv-shelf-vat {
    margin: 0;
}

/* Linework drafts itself in when a bay opens (stroke-dashoffset on SVG
   paths normalised with pathLength="1", clip-path on drawn CSS rules). */
.siv-ink {
    fill: none;
    stroke: var(--siv-gold);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
}

.siv-ink-soft {
    stroke: rgba(216, 166, 77, 0.5);
}

.siv-ink-bold {
    stroke: var(--siv-gold-hi);
    stroke-width: 6;
    stroke-linecap: butt;
}

@keyframes siv-draft {
    from {
        stroke-dashoffset: 1;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes siv-wipe-x {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes siv-wipe-y {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes siv-ink-in {
    from {
        opacity: 0;
        filter: blur(var(--th-blur-small, 2px));
        translate: 0 6px;
    }

    to {
        opacity: 1;
        filter: blur(0);
        translate: 0 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .siv-bay.is-drafting .siv-ink {
        animation: siv-draft 900ms var(--siv-ease) both;
        animation-delay: calc(var(--i, 0) * 90ms + 90ms);
    }

    .siv-bay.is-drafting .siv-kyb::before {
        animation: siv-wipe-x 760ms var(--siv-ease) 120ms both;
    }

    .siv-bay.is-drafting .siv-dispatch::before {
        animation: siv-wipe-y 760ms var(--siv-ease) 120ms both;
    }

    .siv-bay.is-drafting :is(.siv-kyb-step, .siv-callouts li, .siv-dispatch li, .siv-shelf li) {
        animation: siv-ink-in 520ms var(--siv-ease) both;
        animation-delay: calc(var(--i, 0) * 80ms + 220ms);
    }
}

/* Bay layouts by the bay's own width */
@container siv-bay (max-width: 540px) {
    .siv-device {
        grid-template-columns: 216px minmax(0, 1fr);
        gap: 22px;
    }

    .siv-callouts li {
        font-size: 14px;
    }

    .siv-live {
        gap: 22px;
    }

    .siv-bay-read-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .siv-bay-read-4 > div:nth-child(3) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

@container siv-bay (max-width: 460px) {
    .siv-kyb {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 0 0 0 30px;
    }

    .siv-kyb::before {
        top: 6px;
        right: auto;
        bottom: 12px;
        left: 5px;
        width: 1px;
        height: auto;
    }

    .siv-kyb::after {
        top: auto;
        right: auto;
        bottom: 6px;
        left: 1px;
        transform: rotate(135deg);
    }

    .siv-kyb-step {
        display: flex;
        flex-direction: column;
        grid-row: auto;
        gap: 4px;
    }

    .siv-kyb-step::before {
        top: 4px;
        left: -30px;
    }

    .siv-bay.is-drafting .siv-kyb::before {
        animation-name: siv-wipe-y;
    }

    .siv-tracks thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .siv-tracks,
    .siv-tracks tbody,
    .siv-tracks tr,
    .siv-tracks th,
    .siv-tracks td {
        display: block;
        width: auto;
    }

    .siv-tracks tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--siv-hair-navy);
    }

    .siv-tracks th:first-child {
        width: auto;
    }

    .siv-tracks tbody th,
    .siv-tracks td {
        padding: 0;
        border: 0;
    }

    .siv-tracks .siv-tracks-corr {
        margin: 2px 0;
        color: var(--siv-gold);
        font-size: 13px;
    }

    .siv-device,
    .siv-live {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .siv-callouts,
    .siv-dispatch {
        width: 100%;
    }

    .siv-room {
        order: -1;
    }

    .siv-reorder {
        grid-template-columns: minmax(0, 1fr);
    }

    .siv-shelf {
        gap: 14px 10px;
    }

    .siv-bay-read,
    .siv-bay-read-4 {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: 0;
        border-top: 0;
    }

    .siv-bay-read > div,
    .siv-bay-read > div:first-child,
    .siv-bay-read-4 > div:nth-child(3) {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 2px 16px;
        padding: 10px 0;
        border-top: 1px solid var(--siv-hair-navy);
        border-inline-start: 0;
    }

    .siv-bay-read dd {
        margin: 0;
        text-align: end;
    }

    .siv-read-num {
        font-size: 21px;
    }

    .siv-read-word {
        font-size: 15px;
    }

    .siv-read-note {
        flex-basis: 100%;
        text-align: end;
    }

    .siv-bay-cta {
        flex: 1 1 100%;
    }
}

/* Wide screens: the plates dock on the left, the bays share one stage. */
@media (min-width: 1080px) {
    .siv-switch.is-live {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-rows: repeat(6, auto) 1fr;
        column-gap: 44px;
        min-height: var(--siv-bay-min, 0px);
    }

    .siv-switch.is-live .siv-gate {
        grid-column: 1;
        grid-row: var(--siv-row);
    }

    .siv-switch.is-live .siv-switch-stage {
        position: relative;
        z-index: 0;
        display: block;
        grid-column: 2;
        grid-row: 1 / -1;
        border: 1px solid rgba(216, 166, 77, 0.28);
        border-radius: 16px;
        background-color: var(--siv-navy-deep);
    }

    .siv-switch.is-live .siv-bay {
        grid-column: 2;
        grid-row: 1 / -1;
        margin: 0;
        border-color: transparent;
        background-color: transparent;
    }

    .siv-switch.is-live .siv-bay::before,
    .siv-switch.is-live .siv-bay::after {
        display: none;
    }

    .siv-switch.is-live .siv-switch-cord {
        display: block;
    }
}

@media (max-width: 767px) {
    .siv-gate {
        padding: 16px 12px 16px 52px;
    }

    .siv-gate::before {
        left: 52px;
    }

    .siv-gate-no {
        top: 16px;
        left: 16px;
    }

    .siv-gate-go {
        top: 7px;
        right: 4px;
    }

    .siv-bay {
        padding: 20px 18px 18px;
    }
}

/* transitions.dev 07, panel reveal: the bays cross-blur on the shared
   stage. JS sets --panel-translate-y per bay so the stage travels with the
   door: the next bay rises in from below, the previous one leaves upward. */
.t-panel-slide {
  transform: translateY(var(--panel-translate-y));
  opacity: 0;
  filter: blur(var(--panel-blur));
  pointer-events: none;
  transition:
    transform var(--panel-close-dur) var(--panel-ease),
    opacity   var(--panel-close-dur) var(--panel-ease),
    filter    var(--panel-close-dur) var(--panel-ease);
  will-change: transform, opacity, filter;
}
.t-panel-slide[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transition:
    transform var(--panel-open-dur) var(--panel-ease),
    opacity   var(--panel-open-dur) var(--panel-ease),
    filter    var(--panel-open-dur) var(--panel-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-panel-slide { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .siv-gate::before,
    .siv-gate-no,
    .siv-gate-title,
    .siv-gate-text,
    .siv-gate-go,
    .siv-mark,
    .siv-rbac tbody th,
    .siv-shelf-img {
        transition: none;
    }

    .siv-switch-pill,
    .siv-switch-cord {
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Registry close: the certified extract and the seal
   -------------------------------------------------------------------------- */
.siv-registry {
    padding: var(--siv-section) 0;
    background-color: var(--siv-navy-deep);
}

.siv-dossier {
    display: grid;
    grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
    overflow: hidden;
    border-radius: 20px;
    background-color: var(--siv-paper);
    color: var(--siv-ink);
    box-shadow: var(--siv-e3);
}

.siv-seal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 4.4vw, 60px) clamp(24px, 2.6vw, 36px);
    background-color: var(--siv-navy);
    color: var(--siv-on-navy);
}

.siv-seal-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.siv-seal-pedestal {
    position: relative;
    display: grid;
    place-items: center;
    width: 232px;
    height: 232px;
    margin: 0;
}

/* The seal ring: a 42 mm mount around a 40 mm impression, like the
   company's JL C42 seal, engraved in two gold hairlines. */
.siv-seal-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(216, 166, 77, 0.55);
    border-radius: 50%;
}

.siv-seal-ring::after {
    position: absolute;
    inset: 4.8%;
    border: 1px solid rgba(216, 166, 77, 0.3);
    border-radius: 50%;
    content: "";
}

.siv-seal-crest {
    position: relative;
    display: block;
    width: auto;
    height: 150px;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.42));
}

.siv-seal-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 10px 12px;
    border-block: 1px solid rgba(216, 166, 77, 0.42);
    color: var(--siv-gold-hi);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-align: center;
}

.siv-seal-plate :lang(th),
.siv-seal-plate:lang(th) {
    letter-spacing: 0;
}

html.sc-ready .siv-seal-stage[data-sc-in]:not(.is-sc-in) {
    translate: none;
}

@media (prefers-reduced-motion: no-preference) {
    html.sc-ready .siv-seal-stage.is-sc-in .siv-seal-crest {
        animation: siv-seal-press 640ms var(--siv-ease) both;
    }

    html.sc-ready .siv-seal-stage.is-sc-in .siv-seal-ring {
        animation: siv-seal-ring 900ms var(--siv-ease) 120ms both;
    }
}

@keyframes siv-seal-press {
    from {
        transform: translateY(-10px) scale(1.06);
        filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.28));
    }
    to {
        transform: none;
        filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.42));
    }
}

@keyframes siv-seal-ring {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.siv-sheet {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    padding: clamp(28px, 3.6vw, 48px);
}

.siv-registry-name {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-weight: 500;
}

.siv-registry-en {
    font-size: clamp(24px, 2.5vw, 33px);
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-wrap: balance;
}

.siv-registry-th {
    color: var(--siv-ink-2);
    font-size: 18px;
    font-weight: 400;
}

.siv-status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
    margin: 16px 0 0;
    padding: 6px 14px;
    border: 1px solid var(--siv-rule-soft);
    border-radius: 999px;
    color: var(--siv-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.siv-statutory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid rgba(181, 126, 36, 0.6);
}

.siv-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 18px 28px 20px 0;
    border-bottom: 1px solid var(--siv-rule-soft);
}

.siv-stat:nth-child(2n) {
    padding-inline: 28px 0;
    border-inline-start: 1px solid var(--siv-rule-soft);
}

.siv-stat dt {
    color: var(--siv-ink-2);
    font-size: 13.5px;
    line-height: 1.4;
}

.siv-stat dd {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.siv-stat-value {
    color: var(--siv-ink);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.siv-stat-value.siv-mono {
    font-size: 18px;
    font-weight: 500;
}

.siv-stat-note {
    color: var(--siv-ink-2);
    font-size: 14px;
    line-height: 1.5;
    text-wrap: pretty;
}

a.siv-stat-note {
    align-self: flex-start;
    color: var(--siv-ink);
    text-decoration: underline;
    text-decoration-color: var(--siv-gold-deep);
}

.siv-stat-address {
    color: var(--siv-ink);
    font-size: 15px;
    line-height: 1.65;
}

.siv-stat-units {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-stat-units li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 12px;
}

.siv-stat-unit {
    color: var(--siv-ink);
    font-size: 15.5px;
    font-weight: 600;
}

.siv-stat-split {
    color: var(--siv-ink-2);
    font-size: 14px;
}

.siv-sheet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: auto 0 0;
}

.siv-link-erp {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--siv-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--siv-gold-deep);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

@media (hover: hover) and (pointer: fine) {
    .siv-link-erp:hover {
        text-decoration-color: var(--siv-navy);
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.siv-footer {
    border-top: 1px solid rgba(216, 166, 77, 0.28);
    background-color: #060E19;
    color: var(--siv-on-navy-2);
    font-size: 14.5px;
    line-height: 1.6;
}

.siv-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
    padding: clamp(56px, 6vw, 80px) 0 clamp(44px, 5vw, 64px);
}

.siv-footer-logo-link {
    display: inline-flex;
    border-radius: 6px;
}

.siv-footer-logo {
    display: block;
    width: auto;
    height: 44px;
}

.siv-footer-entity {
    max-width: 34ch;
    margin: 22px 0 0;
    color: var(--siv-white);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.siv-footer-meta {
    margin: 10px 0 0;
}

.siv-footer-h {
    margin: 0 0 16px;
    color: var(--siv-gold);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.siv-footer-links,
.siv-footer-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.siv-footer a {
    color: var(--siv-white);
    text-decoration: none;
    transition: color var(--siv-dur-quick) var(--siv-ease);
}

.siv-footer-links a {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0;
}

.siv-footer-link-desc {
    color: var(--siv-on-navy-3);
    font-size: 13.5px;
}

.siv-footer-meta a,
.siv-footer-facts a {
    text-decoration: underline;
    text-decoration-color: rgba(216, 166, 77, 0.55);
    text-underline-offset: 0.25em;
}

.siv-footer-fact-id {
    color: var(--siv-white);
}

@media (hover: hover) and (pointer: fine) {
    .siv-footer a:hover {
        color: var(--siv-gold-hi);
    }

    .siv-footer-links a:hover .siv-footer-link-name {
        text-decoration: underline;
        text-decoration-color: rgba(245, 215, 142, 0.55);
        text-underline-offset: 0.25em;
    }
}

.siv-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 32px;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(241, 238, 231, 0.1);
    color: var(--siv-on-navy-3);
    font-size: 13px;
}

.siv-footer-legal p {
    max-width: 75ch;
    margin: 0;
    text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Phone dock: the five exhibits as a bottom bar under 761px, the same
   pattern as the ThaiHao workspace dock. sivirai_portal.js marks the exhibit
   under the reading line with aria-current="true". Icons are authored 24px
   masks in the shared .ti format (thaihao_gfw_safe_tokens.css).
   -------------------------------------------------------------------------- */
.siv-dock {
    display: none;
}

.ti-siv-route {
    --ti-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='19' r='2'/%3E%3Ccircle cx='19' cy='5' r='2'/%3E%3Cpath d='M7 19h8a3.5 3.5 0 0 0 0-7H9a3.5 3.5 0 0 1 0-7h8'/%3E%3C/svg%3E");
}

.ti-siv-units {
    --ti-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='5' r='2'/%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='19' cy='5' r='2'/%3E%3Cpath d='M5 7c0 5 7 4.5 7 10M19 7c0 5-7 4.5-7 10M12 7v10'/%3E%3Ccircle cx='12' cy='19' r='2'/%3E%3C/svg%3E");
}

.ti-siv-ledger {
    --ti-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 3v18'/%3E%3Cpath d='M12.5 8h4M12.5 12h4M12.5 16h2.5'/%3E%3C/svg%3E");
}

.ti-siv-catalog {
    --ti-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M12 12l8-4.5M12 12v9M12 12L4 7.5'/%3E%3C/svg%3E");
}

.ti-siv-platform {
    --ti-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 12v.01'/%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Wide screens: the atlas splits, the instrument docks
   -------------------------------------------------------------------------- */
@media (min-width: 1080px) {
    .siv-atlas {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        column-gap: clamp(24px, 3vw, 48px);
    }

    .siv-cover,
    .siv-register-block,
    .siv-route,
    .siv-units {
        grid-column: 1;
    }

    .siv-cover {
        grid-row: 1;
    }

    .siv-register-block {
        grid-row: 2;
        padding-top: 0;
    }

    .siv-route {
        grid-row: 3;
    }

    .siv-units {
        grid-row: 4;
    }

    .siv-instrument-cell {
        grid-column: 2;
        grid-row: 1 / span 4;
        margin: 0 calc(-1 * max(var(--siv-gutter), (100vw - var(--siv-wrap)) / 2)) 0 0;
    }

    .siv-instrument {
        position: sticky;
        top: 0;
        height: 100vh;
        min-height: 620px;
        max-height: 1000px;
        padding: 24px 0 8px;
    }

    .siv-globe-stage {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }

    .siv-plate {
        order: 0;
        margin: 0 max(var(--siv-gutter), (100vw - var(--siv-wrap)) / 2) -24px 0;
    }

    .siv-plate-read {
        min-height: 1.5em;
    }

    .siv-instrument {
        --siv-oy: 0.42;
    }

    .siv-instrument canvas[data-sc-canvas3d] {
        --c3d-zoom: 0.285;
    }

    /* The cosmos runs the full viewport width from the right edge of the
       instrument cell, which already reaches the viewport edge, so the
       field passes behind the hero copy without a seam. Its left side is
       dimmed for the copy and dims further as the atlas scrolls into the
       route and the units. */
    .siv-cosmos {
        inset: 0 0 0 auto;
        width: 100vw;
        -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, calc(0.34 - 0.2 * var(--siv-atlas-p, 0))) 0%, rgba(0, 0, 0, calc(0.6 - 0.3 * var(--siv-atlas-p, 0))) 34%, #000 62%);
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, calc(0.34 - 0.2 * var(--siv-atlas-p, 0))) 0%, rgba(0, 0, 0, calc(0.6 - 0.3 * var(--siv-atlas-p, 0))) 34%, #000 62%);
    }

    .siv-cover {
        padding-top: clamp(64px, 11vh, 120px);
    }

    .siv-route {
        padding-top: clamp(80px, 12vh, 140px);
    }

    .siv-desk-grid {
        grid-template-columns: minmax(330px, 4fr) minmax(0, 7fr);
        align-items: start;
        gap: 40px;
    }

    .siv-desk-side {
        position: sticky;
        top: 20px;
    }

    .siv-anatomy-head {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        align-items: end;
    }

    .siv-anatomy-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 36px;
        align-items: stretch;
    }

    .siv-anatomy-bridge {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .siv-desk-head {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    }
}

@media (min-width: 1080px) and (max-height: 820px) {
    .siv-desk-side {
        position: static;
    }
}

/* Tablets and phones */
@media (max-width: 1079px) {
    /* Below the wide split the cosmos covers only the instrument (inset 0),
       so nothing in the atlas needs to reach past the viewport sides. On wide
       screens these stay unclipped: the cosmos spans the full viewport from
       the instrument cell's right edge. */
    .siv-atlas,
    .siv-instrument-cell {
        overflow-x: clip;
    }

    .siv-lh-index {
        display: none;
    }

    .siv-lang {
        margin-inline-start: auto;
    }

    .siv-plate-read {
        min-height: 0;
    }

    .siv-instrument canvas[data-sc-canvas3d] {
        --c3d-zoom: 0.31;
    }
}

@media (max-width: 1080px) {
    .siv-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .siv-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .siv-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .siv-collection-grid > li:nth-child(3n + 2) {
        margin-top: 0;
    }

    .siv-collection-grid > li:nth-child(2n) {
        margin-top: 48px;
    }

    .siv-dossier {
        grid-template-columns: minmax(0, 1fr);
    }

    .siv-seal {
        padding: 40px 24px 36px;
    }
}

@media (max-width: 760px) {
    .siv-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .siv-register {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 16px;
    }

    .siv-register > div:nth-child(4) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

/* The phone dock. The page keeps its own bottom clear: the footer pads by
   the dock height and anchored jumps stop above it. */
@media (max-width: 760px) {
    :root {
        --siv-dock-h: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    html:has(.siv-dock) {
        scroll-padding-bottom: calc(var(--siv-dock-h) + 12px);
    }

    .siv-dock {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: grid;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        height: var(--siv-dock-h);
        padding: 0 2px env(safe-area-inset-bottom, 0px);
        border-top: 1px solid rgba(216, 166, 77, 0.28);
        background-color: #060E19;
    }

    .siv-dock a {
        position: relative;
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 4px;
        min-width: 0;
        min-height: 48px;
        padding: 0;
        color: var(--siv-on-navy-3);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.25;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition: color var(--siv-dur-quick) var(--siv-ease);
    }

    /* The current exhibit: champagne gold and a short ruled line on the top
       edge, drawn in from the centre. */
    .siv-dock a::before {
        position: absolute;
        top: -1px;
        left: 50%;
        width: 28px;
        height: 2px;
        margin-left: -14px;
        border-radius: 0 0 2px 2px;
        background-color: var(--siv-gold);
        transform: scaleX(0);
        transition: transform var(--siv-dur-fast) var(--siv-ease);
        content: "";
    }

    .siv-dock a[aria-current="true"] {
        color: var(--siv-gold);
    }

    .siv-dock a[aria-current="true"]::before {
        transform: scaleX(1);
    }

    .o_siv_portal .siv-dock a:focus-visible {
        outline-offset: -4px;
        border-radius: 10px;
    }

    .siv-dock .ti::before {
        width: 22px;
        height: 22px;
        vertical-align: 0;
    }

    .siv-dock span {
        max-width: 100%;
        overflow: hidden;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html:lang(th) .siv-dock span {
        font-size: 12.5px;
        line-height: 1.3;
    }

    body:has(.siv-dock) .siv-footer {
        padding-bottom: var(--siv-dock-h);
    }
}

@media (max-width: 380px) {
    .siv-dock a {
        font-size: 11px;
    }

    html:lang(th) .siv-dock span {
        font-size: 11.5px;
    }
}

@media (max-width: 767px) {
    .siv-lh-main {
        flex-wrap: wrap;
        gap: 10px 12px;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .siv-lh-logo {
        height: 38px;
    }

    .siv-lh-cta {
        min-height: 44px;
        padding: 0 14px;
    }

    .siv-lh-legal {
        display: none;
    }

    .siv-lh-reg {
        justify-content: flex-start;
        min-height: 36px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .siv-clocks {
        gap: 4px 16px;
    }

    .siv-clock-name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .siv-clock-code {
        display: inline;
    }

    .siv-hero-en {
        font-size: clamp(38px, 11vw, 56px);
        letter-spacing: 0.05em;
    }

    .siv-hero-gold {
        letter-spacing: 0.12em;
    }

    .siv-cta-row .siv-btn {
        flex: 1 1 auto;
    }

    .siv-plate {
        margin-top: -20px;
        padding: 14px;
    }

    .siv-plate-btns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .siv-corr-btn {
        justify-content: center;
        padding: 0 12px;
    }

    .siv-stage {
        padding-left: 40px;
    }

    .o_siv_portal .siv-spine .o_thaihao_sc_corridor_node {
        margin-left: -40px;
        padding-left: 40px;
        font-size: 17.5px;
    }

    .siv-charter,
    .siv-charter-core {
        padding: 22px;
    }

    .siv-spine-fig {
        padding: 18px 14px 18px 16px;
    }

    /* The ledger becomes stacked lines: reference and amount on the first
       line, the counterparty and unit under them. */
    .siv-ledger-a thead,
    .siv-ledger-b thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .siv-ledger-a,
    .siv-ledger-a tbody,
    .siv-ledger-b,
    .siv-ledger-b tbody {
        display: block;
        width: 100%;
    }

    .siv-ledger-a tr,
    .siv-ledger-b tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 12px;
        padding: 10px 2px;
        border-bottom: 1px solid var(--siv-rule-soft);
    }

    .siv-ledger-a tr:first-child,
    .siv-ledger-b tr:first-child {
        border-top: 2px solid var(--siv-navy);
    }

    .siv-ledger-a td,
    .siv-ledger-b td {
        padding: 0;
        border: 0;
    }

    .siv-ledger-a .siv-c-ref,
    .siv-ledger-b .siv-c-ref {
        grid-column: 1;
        grid-row: 1;
    }

    .siv-ledger-a .siv-c-amt,
    .siv-ledger-b .siv-c-amt {
        grid-column: 2;
        grid-row: 1;
        font-weight: 600;
    }

    .siv-ledger-a .siv-c-name,
    .siv-ledger-b .siv-c-name {
        grid-column: 1;
        grid-row: 2;
        color: var(--siv-ink-2);
    }

    .siv-ledger-a .siv-c-unit {
        grid-column: 2;
        grid-row: 2;
        color: var(--siv-ink-2);
        text-align: end;
    }

    .siv-ledger-b .siv-c-orig {
        grid-column: 2;
        grid-row: 2;
        color: var(--siv-ink-2);
    }

    .siv-ledger-b .siv-c-vat {
        display: none;
    }

    .siv-ledger-a .siv-c-sub {
        display: inline;
    }

    .siv-ledger-a .siv-c-sub::before {
        content: " \00B7  ";
    }

    .siv-doc-h [data-siv-ccy-code] {
        display: inline;
    }

    /* Balance: the label and the chosen column only. */
    .siv-balance th:nth-child(1) {
        width: 58%;
    }

    .siv-desk[data-scope="all"] .siv-balance [data-col]:not([data-col="all"]),
    .siv-desk[data-scope="tcs"] .siv-balance [data-col]:not([data-col="tcs"]),
    .siv-desk[data-scope="twm"] .siv-balance [data-col]:not([data-col="twm"]),
    .siv-desk[data-scope="th"] .siv-balance [data-col]:not([data-col="th"]) {
        display: none;
    }

    .siv-desk[data-scope] .siv-balance td[data-col] {
        background-color: transparent;
    }

    .siv-dossier {
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    /* Phones: the goods wall becomes a rail the thumb pages through. */
    .siv-collection-grid {
        grid-template-columns: none;
        grid-auto-columns: 80%;
        grid-auto-flow: column;
        gap: 16px;
        margin: 0 calc(-1 * var(--siv-gutter));
        padding: 0 var(--siv-gutter) 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--siv-gutter);
        scrollbar-width: none;
    }

    .siv-collection-grid::-webkit-scrollbar {
        display: none;
    }

    .siv-collection-grid > li {
        scroll-snap-align: start;
    }

    .siv-collection-grid > li:nth-child(n) {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .siv-converge-stage {
        gap: 12px;
    }

    .siv-converge-sources,
    .siv-converge-targets {
        grid-template-columns: minmax(0, 1fr);
    }

    .siv-converge-lines {
        display: none;
    }

    .siv-seal-pedestal {
        width: 200px;
        height: 200px;
    }

    .siv-seal-crest {
        height: 128px;
    }

    .siv-statutory {
        grid-template-columns: minmax(0, 1fr);
    }

    .siv-stat,
    .siv-stat:nth-child(2n) {
        padding: 16px 0 18px;
        border-inline-start: 0;
    }

    .siv-sheet-actions .siv-btn {
        flex: 1 1 100%;
    }

    .siv-sheet-actions .siv-link-erp {
        margin-inline: auto;
    }

    .siv-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .siv-register {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .siv-register > div:nth-child(3),
    .siv-register > div:nth-child(5) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .siv-register > div:nth-child(4) {
        padding-inline-start: 18px;
        border-inline-start: 1px solid var(--siv-hair-navy);
    }
}

@media (max-width: 479px) {
    .siv-lh-cta {
        display: none;
    }
}

@media (max-width: 400px) {
    .siv-lh-logo {
        height: 34px;
    }

    .siv-lh-cta {
        padding: 0 12px;
        font-size: 13.5px;
    }

    .siv-lang-btn {
        min-width: 44px;
        padding: 0 12px;
    }

    .siv-ccy-code {
        font-size: 12.5px;
    }

    .siv-doc-meta {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Without scripts the plate and the desk controls cannot act, so they stay
   out of the way; the readout and the consolidated THB ledger still read. */
html:not(.sc-ready) .siv-plate-label,
html:not(.sc-ready) .siv-plate-btns,
html:not(.sc-ready) .siv-ctl {
    display: none;
}

/* --------------------------------------------------------------------------
   Reduced motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .siv-btn,
    .siv-lh-index a,
    .siv-lang-btn,
    .siv-corr-btn,
    .siv-ccy-btn,
    .siv-node,
    .siv-sku-frame,
    .siv-sku-img,
    .siv-stage-detail,
    .siv-balance td[data-col],
    .siv-balance th[data-col],
    .siv-footer a,
    .o_siv_portal .siv-spine .o_thaihao_sc_corridor_fill {
        transition: none;
    }

    .siv-ring {
        transform: translate(-50%, -50%);
    }

    .siv-dock a,
    .siv-dock a::before {
        transition: none;
    }

    .siv-fold-seg {
        transition: none;
    }

    .siv-doc-body.is-reissuing {
        animation: none;
    }

    .t-tabs-pill,
    .t-tab {
        transition: none !important;
    }

    .t-text-soft,
    .t-text-soft > span {
        transition: none !important;
    }

    .t-digit-group .t-digit {
        animation: none !important;
    }
}

@media print {
    html,
    body.o_siv_portal {
        background-color: #FFFFFF;
        color: #0D1C30;
    }

    .siv-instrument-cell,
    .siv-letterhead .siv-lang,
    .siv-ctl,
    .siv-dock {
        display: none;
    }

    .siv-desk-side {
        position: static;
    }
}
