/* generated-by: gsd-doc-writer */
/* QuantBrains 第四版：全站 shell、首頁與相容樣式 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

:root {
    color-scheme: light;
    --bg-primary: #f7f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2f5f9;
    --bg-sunken: #e9eef5;
    --bg-sidebar: #f3f6fa;
    --bg-sidebar-soft: #e7edf5;

    --accent-primary: #2864a0;
    --accent-primary-strong: #205281;
    --accent-primary-soft: #e7eff9;
    --accent-primary-tint: rgba(40, 100, 160, 0.08);
    --accent-secondary: #2f7661;
    --accent-success: #2f7661;
    --accent-success-strong: #205544;
    --accent-success-soft: #dcece6;
    --accent-gold: #a86d08;
    --accent-info: #286d91;
    --accent-info-soft: #dcecf4;
    --accent-warning: #a86d08;
    --accent-warning-soft: #f5e7c8;
    --accent-danger: #a63838;
    --accent-danger-soft: #f5dddd;
    --accent-tip: #694d9b;
    --accent-tip-soft: #e9e1f3;

    --text-primary: #202e40;
    --text-secondary: #47576a;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;
    --sidebar-text: #25364a;
    --sidebar-muted: #63748a;
    --sidebar-border: #dce3ec;

    --border-color: #dce3ec;
    --border-strong: #b8c5d5;
    --focus-ring: #2864a0;

    --spacing-xs: 0.375rem;
    --spacing-sm: 0.625rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.25rem;
    --spacing-2xl: 3.5rem;

    --radius-sm: 0.45rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(37, 35, 31, 0.08);
    --shadow-md: 0 10px 26px rgba(37, 35, 31, 0.1);
    --shadow-lg: 0 22px 52px rgba(24, 29, 26, 0.18);
    --shadow-glow: 0 0 0 4px rgba(40, 100, 160, 0.12);

    --font-sans: "Microsoft JhengHei", "PingFang TC", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --sidebar-width: 280px;

    /* 舊頁相容別名 */
    --primary: var(--accent-primary);
    --muted: var(--text-muted);
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

a {
    color: var(--accent-primary-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

img,
svg {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 1rem;
    transform: translateY(-160%);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #1d2c26;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    transition: transform 0.16s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.reading-progress {
    position: fixed;
    z-index: 1200;
    inset: 0 0 auto 0;
    height: 4px;
    overflow: hidden;
    background: rgba(23, 36, 31, 0.12);
    pointer-events: none;
}

.reading-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--accent-primary), #5a8cbd);
    will-change: transform;
}

.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 100;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.35rem 1.15rem 1rem;
    border-right: 1px solid #0f1915;
    background: var(--bg-sidebar);
    color: var(--sidebar-text);
    scrollbar-color: #53685e transparent;
}

.sidebar-header {
    margin-bottom: 1rem;
    padding: 0.15rem 0.35rem 1.1rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo {
    display: inline-block;
    color: #ffffff;
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-decoration: none;
}

.sidebar-logo[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--focus-ring);
    text-underline-offset: 0.35rem;
}

.sidebar-tagline {
    margin-top: 0.25rem;
    color: var(--sidebar-muted);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-search {
    display: block;
    margin-top: 1rem;
}

.nav-search-label {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--sidebar-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.nav-search-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.7rem;
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
}

.nav-search-control:focus-within {
    border-color: var(--focus-ring);
    box-shadow: 0 0 0 2px rgba(245, 169, 111, 0.24);
}

.nav-search-control input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.9rem;
}

.nav-search-control input::placeholder {
    color: #99aba2;
}

.nav-search-status {
    min-height: 1.4em;
    margin: 0.35rem 0 0;
    color: var(--sidebar-muted);
    font-size: 0.72rem;
}

.nav-tree,
.nav-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-tree {
    flex: 1 0 auto;
}

.nav-section {
    margin-bottom: 0.55rem;
}

.nav-section[hidden],
.nav-item[hidden] {
    display: none !important;
}

.nav-section-title {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.62rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
}

.nav-section-title:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-icon {
    display: inline-flex;
    width: 2rem;
    height: 1.45rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    color: #f5b17d;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0;
}

.nav-arrow {
    margin-left: auto;
    color: var(--sidebar-muted);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.16s ease;
}

.nav-section.expanded > .nav-section-title .nav-arrow {
    transform: rotate(90deg);
}

.nav-section:not(.expanded) > .nav-items {
    display: none;
}

.nav-items {
    padding: 0.15rem 0 0.35rem 0.25rem;
}

.nav-item + .nav-item {
    margin-top: 0.08rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-height: 2.55rem;
    padding: 0.48rem 0.58rem;
    border-left: 3px solid transparent;
    border-radius: 0.4rem;
    color: #d5dfda;
    font-size: 0.82rem;
    line-height: 1.42;
    text-decoration: none;
}

.nav-item a:hover {
    border-left-color: rgba(245, 169, 111, 0.65);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.nav-item a.active {
    border-left-color: #2864a0;
    background: #2a4036;
    color: #ffffff;
    font-weight: 800;
}

.item-icon {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.38rem;
    background: rgba(255, 255, 255, 0.07);
    color: #f6ba8d;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
}

.sidebar-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding: 0.9rem 0.45rem 0.15rem;
    border-top: 1px solid var(--sidebar-border);
    color: var(--sidebar-muted);
    font-size: 0.7rem;
}

.nav-link-single {
    display: none !important;
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    margin-left: var(--sidebar-width);
}

.container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 2rem 2.2rem 4rem;
}

.home-container {
    width: min(100%, 1320px);
    padding-top: 2.6rem;
}

.sidebar-toggle {
    position: fixed;
    z-index: 101;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: 3.15rem;
    height: 3.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: var(--bg-sidebar);
    color: #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-size: 1.15rem;
}

.sidebar-overlay {
    display: none;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 36rem;
    padding: clamp(2.2rem, 5vw, 5.2rem);
    overflow: hidden;
    border: 1px solid #2f443b;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.04), transparent 48%),
        var(--bg-sidebar);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.home-hero > * {
    min-width: 0;
}

.edition-badge,
.section-kicker,
.panel-kicker {
    margin: 0 0 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.edition-badge {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: #f6ba8d;
}

.home-hero h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.55rem, 5.2vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.home-lead {
    max-width: 45rem;
    margin: 1.5rem 0 0;
    color: #d9e2dd;
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button-primary,
.btn {
    background: #2864a0;
    color: #ffffff;
}

.button-primary:hover,
.btn:hover {
    background: #205281;
}

.button-secondary,
.btn-ghost {
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
}

.button-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.home-hero-panel {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
}

.panel-kicker {
    color: #f6ba8d;
}

.home-hero-panel strong {
    display: block;
    font-size: 1.22rem;
    line-height: 1.5;
}

.home-hero-panel ul {
    margin: 1.25rem 0 0;
    padding-left: 1.25rem;
    color: #d9e2dd;
    font-size: 0.9rem;
}

.home-hero-panel li + li {
    margin-top: 0.65rem;
}

.home-section {
    padding: clamp(3.4rem, 7vw, 6rem) 0 0;
}

.home-section-heading {
    max-width: 48rem;
    margin-bottom: 2rem;
}

.section-kicker {
    color: var(--accent-primary-strong);
}

.home-section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.home-section-heading > p:last-child {
    margin: 0.8rem 0 0;
    color: var(--text-secondary);
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.route-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    min-height: 17rem;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.route-card:nth-child(2),
.route-card:nth-child(3) {
    background: #ffffff;
}

.route-index {
    color: var(--accent-primary-strong);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
}

.route-time {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.route-card h3 {
    margin: 0.45rem 0 0;
    font-size: 1.55rem;
    line-height: 1.25;
}

.route-card p {
    margin: 0.8rem 0 1.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.route-card a {
    font-weight: 800;
}

.workflow-section {
    padding-bottom: 0.5rem;
}

.compact-heading {
    margin-bottom: 1.4rem;
}

.workflow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #30443b;
    border-radius: var(--radius-lg);
    background: var(--bg-sidebar);
    list-style: none;
}

.workflow-strip li {
    min-height: 9rem;
    padding: 1.25rem;
    color: #ffffff;
}

.workflow-strip li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.workflow-strip span,
.workflow-strip strong,
.workflow-strip small {
    display: block;
}

.workflow-strip span {
    color: #f6ba8d;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
}

.workflow-strip strong {
    margin-top: 1rem;
    font-size: 1.08rem;
}

.workflow-strip small {
    margin-top: 0.2rem;
    color: var(--sidebar-muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.guide-group {
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.guide-group-heading {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.guide-group-heading > span {
    color: var(--accent-primary-strong);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
}

.guide-group-heading h3 {
    margin: 0;
    font-size: 1.22rem;
}

.guide-group-heading p {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.guide-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.guide-index-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    min-height: 7.2rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.guide-index-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.guide-index-card > span {
    color: var(--accent-primary-strong);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
}

.guide-index-card h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.guide-index-card p {
    margin: 0.38rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

/* 舊首頁卡片 class 保留 */
.header,
.section-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.hero,
.feature-card,
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.hero {
    padding: var(--spacing-xl);
    text-align: center;
}

.features,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.feature-card,
.card {
    padding: var(--spacing-lg);
}

.card {
    position: relative;
    display: flex;
    min-height: 9rem;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.card:hover,
.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.card-content {
    flex: 1;
}

.card-content h3,
.feature-card h3 {
    margin: 0 0 var(--spacing-sm);
}

.card-content p,
.feature-card p {
    color: var(--text-secondary);
}

.card-arrow {
    align-self: flex-end;
    color: var(--accent-primary-strong);
    font-weight: 900;
}

.bento-grid {
    margin-top: var(--spacing-xl);
}

.card-large,
.card-wide {
    grid-column: span 2;
}

.card-icon,
.feature-icon {
    margin-bottom: var(--spacing-sm);
    font-size: 1.6rem;
}

.card-primary,
.card-accent,
.card-highlight,
.card-warning,
.card-info,
.card-success,
.card-purple,
.card-gradient,
.card-secondary {
    background: var(--bg-secondary);
}

.footer {
    margin-top: 4.5rem;
    padding: 1.8rem 0 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
}

.footer p {
    margin: 0.18rem 0;
    font-size: 0.8rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: var(--radius-md);
    scrollbar-color: var(--border-strong) transparent;
}

.table-responsive:focus-visible {
    outline-offset: 2px;
}

.image-modal[hidden] {
    display: none;
}

.image-modal.active {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem 1.5rem;
    background: rgba(8, 12, 10, 0.94);
}

.modal-content {
    max-width: min(96vw, 1500px);
    max-height: calc(100vh - 5rem);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.is-zoomable {
    cursor: zoom-in;
}

.back-to-top {
    position: fixed;
    z-index: 90;
    right: 1.1rem;
    bottom: 1.1rem;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    transform: translateY(1rem);
    border: 1px solid #2f443b;
    border-radius: 50%;
    background: var(--bg-sidebar);
    color: #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1180px) {
    .workflow-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workflow-strip li:nth-child(4) {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }

    .workflow-strip li:nth-child(n + 5) {
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: min(var(--sidebar-width), calc(100vw - 3.5rem));
        min-width: 0;
        transform: translateX(-102%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar-overlay.active {
        position: fixed;
        z-index: 99;
        inset: 0;
        display: block;
        background: rgba(8, 12, 10, 0.62);
    }

    .back-to-top {
        right: 1rem;
        bottom: 4.8rem;
    }
}

@media (max-width: 820px) {
    body {
        font-size: 16px;
    }

    .container,
    .home-container {
        padding: 1.2rem 1rem 4.5rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 2rem 1.35rem;
    }

    .home-hero h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: clamp(2.15rem, 10.5vw, 3.5rem);
    }

    .home-lead,
    .home-hero-panel {
        overflow-wrap: anywhere;
    }

    .route-grid,
    .guide-index-grid {
        grid-template-columns: 1fr;
    }

    .route-card {
        min-height: 0;
    }

    .guide-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-large,
    .card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 560px) {
    .workflow-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-strip li:nth-child(3),
    .workflow-strip li:nth-child(5) {
        border-left: 0;
    }

    .workflow-strip li:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    @page {
        margin: 1.5cm;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 11pt;
    }

    .sidebar,
    .sidebar-overlay,
    .sidebar-toggle,
    .reading-progress,
    .back-to-top,
    .skip-link,
    .image-modal,
    .nav {
        display: none !important;
    }

    .main-content {
        width: 100%;
        margin: 0;
    }

    .container,
    .home-container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .section,
    .step,
    .step-card,
    .note,
    .guide-card,
    .guide-index-card,
    .route-card {
        break-inside: avoid;
        box-shadow: none !important;
    }

    a {
        color: #000000;
    }

    .table-responsive {
        overflow: visible;
    }
}

/* 2026-09: quiet, readable manual surfaces. */
.sidebar { border-color: var(--border-color); scrollbar-color: #becada transparent; }
.sidebar-logo, .nav-section-title, .nav-search-control input { color: var(--text-primary); }
.nav-search-control { background: #fff; }
.nav-search-control input::placeholder { color: var(--text-muted); }
.nav-icon { border-color: var(--border-color); color: var(--text-muted); }
.nav-item a { color: var(--text-secondary); }
.nav-item a:hover, .nav-section-title:hover { background: #e8eef6; color: var(--text-primary); }
.nav-item a.active { background: #e1ebf8; color: #205281; border-left-color: #2864a0; }
.item-icon { background: transparent; color: #63748a; }
.sidebar-toggle { background: #25364a; }
.reading-progress { height: 2px; }
.home-hero { color: var(--text-primary); background: #fff; border-color: var(--border-color); box-shadow: none; }
.home-lead { color: var(--text-secondary); }
.edition-badge, .panel-kicker { color: var(--accent-primary-strong); border-color: var(--border-color); }
.button-secondary { color: var(--accent-primary-strong); border-color: var(--border-color); }
.button-secondary:hover { background: var(--bg-tertiary); border-color: var(--border-strong); }
.home-hero-panel { background: var(--bg-tertiary); border-color: var(--border-color); }
.home-hero-panel ul { color: var(--text-secondary); }
.client-intro { margin: 0; color: var(--text-secondary); font-size: .9rem; }
.client-guide-title { margin: .55rem 0 1rem; font-size: 1.45rem; line-height: 1.5; }
.client-guide-link { display: inline-block; margin-top: .7rem; font-weight: 700; }
.workflow-strip { background: #eef3f8; border-color: var(--border-color); }
.workflow-strip li { color: var(--text-primary); }
.workflow-strip li + li { border-color: var(--border-color); }
.workflow-strip span { color: var(--accent-primary-strong); }
.home-section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.4; }
.route-card, .guide-index-card, .card, .feature-card { box-shadow: none; }
.home-section { padding-top: 3.5rem; }
@media print {
    .home-hero, .workflow-strip { background: #fff; color: #202e40; }
}
