/* 中文源码说明：WSIT 四类知识文档目录、状态卡片和详情正文的三语响应式样式。 */
:root {
    --wsit-ink: #13283a;
    --wsit-muted: #526473;
    --wsit-paper: #f3efe6;
    --wsit-white: #fffdf8;
    --wsit-teal: #087e78;
    --wsit-blue: #315f82;
    --wsit-coral: #bd6c53;
    --wsit-gold: #b58a4c;
    --wsit-line: rgba(19, 40, 58, 0.14);
    --wsit-shadow: 0 22px 58px rgba(31, 49, 62, 0.10);
    --wsit-series-accent: var(--wsit-teal);
    --wsit-series-soft: rgba(8, 126, 120, 0.12);
    --wsit-series-glow: rgba(8, 126, 120, 0.18);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(8, 126, 120, 0.12), transparent 28rem),
        radial-gradient(circle at 91% 12%, rgba(189, 108, 83, 0.11), transparent 29rem),
        linear-gradient(180deg, #f8f4ec 0%, var(--wsit-paper) 62%, #ede6da 100%);
    color: var(--wsit-ink);
}

.wsit-page {
    min-height: 76vh;
    font-family: "Noto Sans SC", sans-serif;
}

.wsit-page--insights {
    --wsit-series-accent: #315f82;
    --wsit-series-soft: rgba(49, 95, 130, 0.12);
    --wsit-series-glow: rgba(49, 95, 130, 0.2);
}

.wsit-page--scenes {
    --wsit-series-accent: #a85e49;
    --wsit-series-soft: rgba(189, 108, 83, 0.13);
    --wsit-series-glow: rgba(189, 108, 83, 0.2);
}

.wsit-page--glossary {
    --wsit-series-accent: #947035;
    --wsit-series-soft: rgba(181, 138, 76, 0.14);
    --wsit-series-glow: rgba(181, 138, 76, 0.2);
}

body[data-language="tc"] .wsit-page {
    font-family: "Noto Sans TC", "Noto Sans SC", sans-serif;
}

body[data-language="en"] .wsit-page {
    font-family: "Noto Sans", Arial, sans-serif;
}

.wsit-page *,
.wsit-page *::before,
.wsit-page *::after { box-sizing: border-box; }

.wsit-container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.wsit-container--detail { width: min(1500px, calc(100% - 56px)); }

.wsit-loading,
.wsit-error {
    width: min(680px, calc(100% - 48px));
    min-height: 52vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--wsit-muted);
}

.wsit-loading > span,
.wsit-error > span {
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 56px;
    padding: 0 12px;
    border: 1px solid rgba(8, 126, 120, 0.24);
    border-radius: 17px;
    background: rgba(255, 253, 248, 0.88);
    color: var(--wsit-teal);
    font-weight: 700;
    letter-spacing: .03em;
}

.wsit-loading strong,
.wsit-error strong { color: var(--wsit-ink); font-size: 18px; }
.wsit-loading p,
.wsit-error p { margin: 5px 0 0; }

.wsit-hero {
    padding: 84px 0 66px;
    border-bottom: 1px solid var(--wsit-line);
}

.wsit-eyebrow {
    margin: 0 0 14px;
    color: var(--wsit-teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wsit-hero h1 {
    max-width: 880px;
    margin: 0;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(38px, 5.4vw, 68px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

body[data-language="tc"] .wsit-hero h1 { font-family: "Noto Serif TC", serif; }
body[data-language="en"] .wsit-hero h1 { font-family: "Noto Serif", Georgia, serif; }

.wsit-hero__lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--wsit-muted);
    font-size: 18px;
    line-height: 1.78;
}

.wsit-series-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.wsit-series-nav a {
    padding: 10px 16px;
    border: 1px solid var(--wsit-line);
    border-radius: 999px;
    background: rgba(255, 253, 248, .68);
    color: var(--wsit-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.wsit-series-nav a[aria-current="page"] {
    border-color: var(--wsit-teal);
    background: var(--wsit-teal);
    color: white;
}

.wsit-catalog { padding: 54px 0 84px; }

.wsit-catalog__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.wsit-catalog__head h2 { margin: 0; font-size: 28px; }
.wsit-catalog__head p { margin: 0; color: var(--wsit-muted); }

.wsit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wsit-card {
    position: relative;
    min-height: 224px;
    padding: 26px;
    border: 1px solid var(--wsit-line);
    border-radius: 24px;
    background: rgba(255, 253, 248, .92);
    box-shadow: 0 14px 38px rgba(31, 49, 62, .06);
}

a.wsit-card {
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.wsit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 126, 120, .42);
    box-shadow: var(--wsit-shadow);
}

.wsit-card--unavailable { background: rgba(246, 243, 236, .74); }

.wsit-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wsit-card__id { color: var(--wsit-blue); font-size: 13px; font-weight: 700; letter-spacing: .04em; }

.wsit-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8eee9;
    color: #496052;
    font-size: 12px;
    font-weight: 700;
}

.wsit-status--published { background: #d7ece5; color: #0a675d; }
.wsit-status--writing { background: #e3eaf2; color: #315f82; }
.wsit-status--candidate { background: #f1e7dc; color: #8a5b42; }

.wsit-card h3 { margin: 28px 0 10px; font-size: 24px; line-height: 1.35; }
.wsit-card p { margin: 0; color: var(--wsit-muted); line-height: 1.72; }

.wsit-card__meta {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    color: var(--wsit-muted);
    font-size: 13px;
}

.wsit-detail-hero {
    --wsit-nav-band: clamp(96px, 8vw, 132px);
    position: relative;
    min-height: 0;
    padding: calc(var(--wsit-nav-band) + 46px) 0 76px;
    overflow: hidden;
    isolation: isolate;
    border-bottom-color: rgba(19, 40, 58, 0.11);
    background:
        linear-gradient(180deg, #13283a 0, #13283a var(--wsit-nav-band), rgba(19, 40, 58, .72) calc(var(--wsit-nav-band) + 18px), transparent calc(var(--wsit-nav-band) + 52px)),
        linear-gradient(102deg, rgba(255, 253, 248, 0.98) 0%, rgba(247, 242, 232, 0.95) 55%, rgba(234, 241, 236, 0.86) 100%),
        radial-gradient(circle at 82% 26%, var(--wsit-series-glow), transparent 30rem);
}

.wsit-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(19, 40, 58, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 40, 58, 0.055) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 56%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 56%, #000 100%);
}

.wsit-detail-hero::after {
    content: "";
    position: absolute;
    top: calc(var(--wsit-nav-band) + 38px);
    right: 2%;
    z-index: -1;
    width: min(42vw, 620px);
    height: 360px;
    pointer-events: none;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wsit-series-glow), transparent 68%);
    filter: blur(20px);
}

.wsit-detail-hero .wsit-container {
    position: relative;
    z-index: 1;
}

.wsit-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    align-items: center;
    gap: clamp(42px, 5vw, 82px);
}

.wsit-detail-hero__copy {
    position: relative;
    padding-left: 34px;
}

.wsit-detail-hero__copy::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--wsit-series-accent), rgba(181, 138, 76, 0.45));
    box-shadow: 0 0 0 7px var(--wsit-series-soft);
}

.wsit-detail-hero .wsit-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    margin-bottom: 20px;
    padding: 0 12px;
    border: 1px solid var(--wsit-series-soft);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.68);
    box-shadow: 0 9px 24px rgba(31, 49, 62, 0.05);
    color: var(--wsit-series-accent);
    font-size: 11px;
    backdrop-filter: blur(10px);
}

.wsit-detail-hero .wsit-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px var(--wsit-series-soft);
}

.wsit-detail-hero h1 {
    max-width: 820px;
    font-size: clamp(40px, 3.7vw, 60px);
    line-height: 1.12;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(255, 253, 248, 0.62);
}

.wsit-detail-hero .wsit-hero__lead {
    max-width: 760px;
    margin-top: 24px;
}

.wsit-detail-hero__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
}

.wsit-hero-back {
    display: inline-flex;
    min-height: 48px;
    padding: 6px 19px 6px 7px;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(8, 126, 120, .2);
    border-radius: 15px;
    background: var(--wsit-series-accent);
    box-shadow: 0 13px 28px rgba(19, 40, 58, .16);
    color: #fff;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

.wsit-hero-back > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .15);
    font-size: 18px;
    transition: transform .2s ease;
}

.wsit-hero-back b { font-size: 14px; }
.wsit-hero-back:hover,
.wsit-hero-back:focus-visible { box-shadow: 0 17px 34px rgba(19, 40, 58, .22); transform: translateY(-2px); }
.wsit-hero-back:hover > span,
.wsit-hero-back:focus-visible > span { transform: translateX(-3px); }

.wsit-detail-hero__actions > i {
    position: relative;
    width: 74px;
    height: 1px;
    background: linear-gradient(90deg, var(--wsit-series-accent), transparent);
}

.wsit-detail-hero__actions > i::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wsit-series-accent);
    box-shadow: 0 0 0 5px var(--wsit-series-soft);
}

.wsit-detail-visual {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(19, 40, 58, .13);
    border-radius: 34px;
    background: rgba(255, 253, 248, .74);
    box-shadow: 0 28px 68px rgba(31, 49, 62, .16), 0 1px 0 rgba(255, 255, 255, .88) inset;
    transform: translateY(4px);
    backdrop-filter: blur(10px);
}

.wsit-detail-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(8, 126, 120, .08), rgba(255, 253, 248, .72));
}

.wsit-detail-visual__decor {
    position: absolute;
    right: 25px;
    bottom: -14px;
    width: 92px;
    height: 28px;
    border: 1px solid rgba(19, 40, 58, .12);
    border-radius: 999px;
    background:
        radial-gradient(circle at 22px 50%, var(--wsit-series-accent) 0 3px, transparent 4px),
        radial-gradient(circle at 42px 50%, var(--wsit-gold) 0 3px, transparent 4px),
        linear-gradient(90deg, rgba(255, 253, 248, .98), rgba(242, 239, 230, .95));
    box-shadow: 0 9px 20px rgba(31, 49, 62, .12);
}

.wsit-detail-meta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 10px 22px;
    overflow: hidden;
    border: 1px solid var(--wsit-line);
    border-radius: 22px;
    background: rgba(255, 253, 248, .94);
    box-shadow: 0 14px 34px rgba(31, 49, 62, .065);
}

.wsit-detail-meta::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--wsit-series-accent), transparent 76%);
}

.wsit-detail-meta div {
    min-width: 0;
    padding: 13px 0 14px;
    border-bottom: 1px solid rgba(19, 40, 58, .09);
    transition: padding-left .2s ease;
}

.wsit-detail-meta div:last-child { border-bottom: 0; }

.wsit-detail-meta div:hover {
    padding-left: 4px;
}

.wsit-detail-meta dt {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    color: var(--wsit-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wsit-detail-meta dt::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--wsit-series-accent);
    box-shadow: 0 0 0 3px var(--wsit-series-soft);
}

.wsit-detail-meta dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.wsit-detail-meta dd small {
    display: block;
    margin-top: 4px;
    color: var(--wsit-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.wsit-document {
    position: relative;
    padding: 58px 0 96px;
    overflow: clip;
    background:
        radial-gradient(circle at 4% 15%, var(--wsit-series-soft), transparent 25rem),
        radial-gradient(circle at 96% 78%, rgba(181, 138, 76, .09), transparent 28rem);
}

.wsit-document::before {
    content: "";
    position: absolute;
    top: 44px;
    left: -58px;
    width: 170px;
    height: 170px;
    pointer-events: none;
    border: 1px solid rgba(19, 40, 58, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .16);
}

.wsit-document-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 330px;
    align-items: start;
    gap: 22px;
}

.wsit-article {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 62px);
    border: 1px solid var(--wsit-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, var(--wsit-series-soft), transparent 320px),
        linear-gradient(180deg, rgba(255, 253, 248, .99), rgba(255, 253, 248, .94));
    box-shadow:
        0 32px 78px rgba(31, 49, 62, .12),
        0 2px 0 rgba(255, 255, 255, .82) inset;
}

.wsit-article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--wsit-series-accent), #80b9ab 55%, var(--wsit-gold), var(--wsit-coral));
}

.wsit-article::after {
    content: "";
    position: absolute;
    top: 34px;
    right: 34px;
    width: 106px;
    height: 106px;
    pointer-events: none;
    opacity: .12;
    background-image: radial-gradient(circle, var(--wsit-series-accent) 1.4px, transparent 1.7px);
    background-size: 11px 11px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
    mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.wsit-article > * {
    position: relative;
    z-index: 1;
}

.wsit-article > h2 { position: relative; margin: 56px 0 20px; padding: 0 0 15px 21px; border-bottom: 1px solid var(--wsit-line); font-family: "Noto Serif SC", serif; font-size: 29px; scroll-margin-top: calc(var(--wsit-sticky-top, 116px) + 18px); }
.wsit-article > h2::before { content: ""; position: absolute; left: 0; top: .18em; width: 5px; height: 1.05em; border-radius: 99px; background: linear-gradient(180deg, var(--wsit-series-accent), var(--wsit-gold)); box-shadow: 0 0 0 5px var(--wsit-series-soft); }
.wsit-article > h2::after { content: ""; position: absolute; right: 0; bottom: -1px; width: 74px; height: 1px; background: linear-gradient(90deg, transparent, var(--wsit-series-accent)); }
body[data-language="tc"] .wsit-article > h2 { font-family: "Noto Serif TC", serif; }
body[data-language="en"] .wsit-article > h2 { font-family: "Noto Serif", Georgia, serif; }
.wsit-article h3 { margin: 34px 0 13px; font-size: 21px; scroll-margin-top: calc(var(--wsit-sticky-top, 116px) + 18px); }
.wsit-article p,
.wsit-article li { color: #334b5d; font-size: 17px; line-height: 1.9; }
.wsit-article p { margin: 0 0 18px; }
.wsit-article ul,
.wsit-article ol { margin: 0 0 22px; padding-left: 26px; }
.wsit-article a { color: var(--wsit-teal); }
.wsit-article img,
.wsit-article video { max-width: 100%; height: auto; border-radius: 12px; }
.wsit-article figure { max-width: 100%; margin: 24px 0; }
.wsit-article hr { margin: 32px 0; border: 0; border-top: 1px solid var(--wsit-line); }

.wsit-article blockquote {
    margin: 24px 0;
    padding: 17px 20px;
    border-left: 4px solid var(--wsit-teal);
    border-radius: 0 14px 14px 0;
    background: #eef7f4;
    color: #365569;
    font-size: 16px;
    line-height: 1.8;
}

.wsit-table-wrap { max-width: 100%; margin: 24px 0 30px; overflow-x: auto; border: 1px solid var(--wsit-line); border-radius: 14px; }
.wsit-table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; }
.wsit-table-wrap th,
.wsit-table-wrap td { padding: 13px 15px; border-right: 1px solid var(--wsit-line); border-bottom: 1px solid var(--wsit-line); color: #334b5d; font-size: 14px; line-height: 1.6; text-align: left; vertical-align: top; }
.wsit-table-wrap th { background: #edf5f2; color: var(--wsit-ink); font-weight: 700; }
.wsit-table-wrap tr:last-child td { border-bottom: 0; }
.wsit-table-wrap th:last-child,
.wsit-table-wrap td:last-child { border-right: 0; }

.wsit-editorial-note {
    position: relative;
    margin-bottom: 38px;
    padding: 24px 26px 24px 78px;
    overflow: hidden;
    border: 1px solid rgba(49, 95, 130, .22);
    border-radius: 18px;
    background:
        linear-gradient(100deg, rgba(227, 234, 242, .72), rgba(238, 247, 244, .5)),
        rgba(255, 255, 255, .42);
}

.wsit-editorial-note::before {
    content: "i";
    position: absolute;
    top: 24px;
    left: 24px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: var(--wsit-series-accent);
    box-shadow: 0 8px 18px var(--wsit-series-glow);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
}

.wsit-editorial-note::after {
    content: "";
    position: absolute;
    top: -38px;
    right: -28px;
    width: 112px;
    height: 112px;
    border: 18px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
}

.wsit-editorial-note h2,
.wsit-notes h2 { margin: 0 0 10px; font-size: 21px; }

.wsit-editorial-note p,
.wsit-notes p { margin-bottom: 0; font-size: 15px; }

.wsit-credits { margin: 0 0 42px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wsit-credits > div { position: relative; padding: 22px; overflow: hidden; border: 1px solid var(--wsit-line); border-radius: 17px; background: linear-gradient(145deg, #fbf9f3, rgba(238, 247, 244, .5)); }
.wsit-credits > div::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--wsit-series-accent), transparent 72%); }
.wsit-credits h2 { margin: 0 0 12px; font-size: 17px; }
.wsit-credits ol,
.wsit-credits ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.wsit-credits li { padding-top: 8px; display: grid; gap: 2px; border-top: 1px solid rgba(19,40,58,.09); }
.wsit-credits li:first-child { padding-top: 0; border-top: 0; }
.wsit-credits strong { color: var(--wsit-ink); font-size: 13px; }
.wsit-credits span { color: var(--wsit-muted); font-size: 11px; line-height: 1.55; }

.wsit-notes {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--wsit-line);
}

.wsit-document-sidebar { position: sticky; top: var(--wsit-sticky-top, 116px); display: grid; gap: 16px; max-height: calc(100vh - var(--wsit-sticky-top, 116px) - 24px); padding-right: 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(8,126,120,.28) transparent; }
.wsit-document-sidebar .wsit-credits { grid-template-columns: 1fr; margin: 0; }
.wsit-toc,
.wsit-side-card { position: relative; padding: 23px; overflow: hidden; border: 1px solid var(--wsit-line); border-radius: 22px; background: rgba(255,253,248,.94); box-shadow: 0 14px 34px rgba(31,49,62,.065); }
.wsit-toc::before,
.wsit-side-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--wsit-series-accent), transparent 76%); }
.wsit-toc h2,
.wsit-side-card h2 { margin: 0 0 13px; font-size: 17px; }
.wsit-toc { position: sticky; top: var(--wsit-sticky-top, 116px); max-height: calc(100vh - var(--wsit-sticky-top, 116px) - 24px); overflow-y: auto; }
.wsit-toc a { position: relative; display: block; margin: 2px 0; padding: 7px 9px 7px 18px; border-radius: 8px; color: #526473; font-size: 13px; line-height: 1.45; text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.wsit-toc a::before { content: ""; position: absolute; top: 14px; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: rgba(82, 100, 115, .4); }
.wsit-toc a:hover,
.wsit-toc a:focus-visible,
.wsit-toc a.is-active { background: var(--wsit-series-soft); color: var(--wsit-series-accent); transform: translateX(2px); }
.wsit-toc a:focus-visible { outline: 2px solid rgba(8,126,120,.48); outline-offset: -2px; }
.wsit-toc a:hover::before,
.wsit-toc a:focus-visible::before,
.wsit-toc a.is-active::before { background: var(--wsit-series-accent); box-shadow: 0 0 0 3px var(--wsit-series-soft); }
.wsit-toc__level-3 { margin-left: 12px; font-size: 12px !important; }
.wsit-side-card h3 { margin: 19px 0 9px; color: var(--wsit-muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.wsit-category-links,
.wsit-entry-links { display: flex; flex-wrap: wrap; gap: 7px; }
.wsit-category-links a,
.wsit-entry-links a,
.wsit-side-card > a { padding: 7px 9px; border: 1px solid var(--wsit-line); border-radius: 9px; background: #fff; color: var(--wsit-ink); font-size: 12px; text-decoration: none; }
.wsit-side-card > a { display: block; margin-top: 7px; }
.wsit-category-links a:hover,
.wsit-entry-links a:hover,
.wsit-side-card > a:hover { border-color: rgba(8,126,120,.36); color: var(--wsit-teal); }

.wsit-editorial-registry {
    display: grid;
    gap: 0;
}

.wsit-editorial-registry > h2 {
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(19,40,58,.09);
}

.wsit-registry-field {
    padding: 14px 0;
    border-bottom: 1px solid rgba(19,40,58,.09);
}

.wsit-registry-field:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.wsit-editorial-registry .wsit-registry-field h3 {
    margin: 0 0 7px;
    color: var(--wsit-muted);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .035em;
    text-transform: none;
}

.wsit-registry-unit,
.wsit-registry-pending {
    margin: 0;
    color: var(--wsit-ink);
    font-size: 12px;
    line-height: 1.65;
}

.wsit-registry-unit { font-weight: 700; }
.wsit-registry-pending { color: #687984; }

.wsit-editorial-registry ol,
.wsit-editorial-registry ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wsit-editorial-registry li {
    display: grid;
    gap: 2px;
}

.wsit-editorial-registry li strong { color: var(--wsit-ink); font-size: 12px; }
.wsit-editorial-registry li span { color: var(--wsit-muted); font-size: 11px; line-height: 1.5; }

.wsit-empty {
    padding: 54px;
    border: 1px dashed rgba(19, 40, 58, .24);
    border-radius: 24px;
    text-align: center;
    color: var(--wsit-muted);
}

@media (max-width: 767px) {
    .wsit-container,
    .wsit-container--detail { width: min(100% - 28px, 1240px); }
    .wsit-hero { padding: 54px 0 42px; }
    .wsit-hero h1 { font-size: clamp(34px, 11vw, 48px); }
    .wsit-hero__lead { font-size: 16px; }
    .wsit-catalog { padding: 36px 0 60px; }
    .wsit-catalog__head { display: block; }
    .wsit-catalog__head p { margin-top: 8px; }
    .wsit-grid { grid-template-columns: 1fr; }
    .wsit-card { min-height: 0; padding: 22px; }
    .wsit-card h3 { margin-top: 22px; font-size: 21px; }
    .wsit-detail-hero { --wsit-nav-band: 74px; min-height: 0; padding: 108px 0 52px; }
    .wsit-detail-hero::before { background-size: 42px 42px; opacity: .28; }
    .wsit-detail-hero::after { top: 120px; right: -80px; width: 320px; height: 260px; }
    .wsit-detail-hero__copy { padding-left: 20px; }
    .wsit-detail-hero__copy::before { width: 2px; box-shadow: 0 0 0 5px var(--wsit-series-soft); }
    .wsit-detail-hero .wsit-eyebrow { min-height: 28px; margin-bottom: 16px; padding: 0 10px; font-size: 9px; letter-spacing: .1em; }
    .wsit-detail-hero h1 { font-size: clamp(33px, 9.7vw, 45px); line-height: 1.12; }
    .wsit-detail-hero .wsit-hero__lead { margin-top: 18px; font-size: 15px; }
    .wsit-detail-hero__actions { margin-top: 24px; }
    .wsit-detail-hero__actions > i { width: 48px; }
    .wsit-detail-visual { padding: 7px; border-radius: 24px; }
    .wsit-detail-visual img { border-radius: 18px; }
    .wsit-detail-visual__decor { right: 16px; }
    .wsit-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 18px; }
    .wsit-detail-meta div { padding: 12px 0 13px; }
    .wsit-detail-meta div:nth-child(odd) { padding-right: 12px; }
    .wsit-detail-meta div:nth-child(even) { padding-left: 12px; border-left: 1px solid rgba(19, 40, 58, .09); }
    .wsit-detail-meta div:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .wsit-document { padding: 34px 0 68px; }
    .wsit-document::before { display: none; }
    .wsit-article { padding: 27px 20px 30px; border-radius: 20px; }
    .wsit-article::after { top: 24px; right: 18px; width: 72px; height: 72px; }
    .wsit-article p,
    .wsit-article li { font-size: 16px; }
    .wsit-detail-hero__grid { grid-template-columns: 1fr; gap: 38px; }
    .wsit-document-layout { grid-template-columns: 1fr; }
    .wsit-document-sidebar { position: static; grid-row: 1; max-height: none; padding-right: 0; overflow: visible; }
    .wsit-toc { display: none; }
    .wsit-article > h2 { margin-top: 44px; padding-left: 17px; font-size: 24px; }
    .wsit-editorial-note { padding: 64px 18px 20px; }
    .wsit-editorial-note::before { top: 18px; left: 18px; }
    .wsit-credits { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1120px) {
    .wsit-document-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
    .wsit-toc { display: none; }
    .wsit-detail-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
    .wsit-detail-visual { width: min(720px, 100%); margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .wsit-detail-meta div,
    .wsit-hero-back,
    .wsit-hero-back > span,
    .wsit-toc a {
        transition: none;
    }
}

.wsit-hero-back-float {
    display: none;
}

@media (max-width: 767px) {
    .wsit-hero-back-float {
        position: fixed;
        right: auto;
        bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
        left: max(12px, env(safe-area-inset-left, 0px));
        z-index: 96;
        display: inline-flex;
        max-width: calc(100vw - 96px);
        min-height: 48px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(18px) scale(.94);
        transition:
            opacity .18s ease,
            visibility .18s ease,
            transform .18s ease,
            box-shadow .18s ease;
        will-change: opacity, transform;
    }

    .wsit-hero-back-float.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .wsit-hero-back-float.is-visible:hover,
    .wsit-hero-back-float.is-visible:focus-visible {
        transform: translateY(-2px) scale(1);
    }

    .wsit-hero-back-float.is-visible:active {
        transform: translateY(0) scale(.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wsit-hero-back-float {
        transition: none !important;
    }
}


