/* ==========================================================================
   ideDoc — 2026
   A small, dependency-free stylesheet.
   ========================================================================== */

:root {
    --bg: #f6f5f0;
    --bg-soft: #efeee7;
    --surface: #fffefa;
    --surface-2: #f2f1ea;
    --ink: #15171c;
    --ink-soft: #2b2f38;
    --muted: #5f646e;
    --faint: #666b76;
    --line: #dfddd4;
    --line-strong: #cbc8bd;
    --accent: #2f4bff;
    --accent-hover: #1f38dd;
    --accent-soft: #e9edff;
    --accent-text: #2f4bff;
    --lime: #d9f27a;
    --lime-ink: #222b0a;
    --dark: #101217;
    --dark-2: #171a21;
    --dark-line: #2b303b;
    --code-bg: #11141a;
    --code-line: #252a35;
    --code-text: #e8eaf0;
    --success: #167a4b;
    --warning: #9a5b00;
    --shadow-sm: 0 1px 2px rgba(20, 24, 35, .05);
    --shadow-md: 0 10px 30px -14px rgba(20, 24, 35, .28);
    --shadow-lg: 0 30px 70px -30px rgba(20, 24, 35, .35);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --header-h: 68px;
    --container: 1180px;
    --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
    --bg: #0d0f14;
    --bg-soft: #12151c;
    --surface: #141821;
    --surface-2: #1a1f29;
    --ink: #f0f1ec;
    --ink-soft: #d8dbe3;
    --muted: #a2a8b4;
    --faint: #7e8592;
    --line: #272c37;
    --line-strong: #3a404d;
    --accent: #93a6ff;
    --accent-hover: #b0beff;
    --accent-soft: #1c2440;
    --accent-text: #a3b3ff;
    --lime: #cae97b;
    --lime-ink: #1d2608;
    --dark: #080a0e;
    --dark-2: #10131a;
    --dark-line: #2a303c;
    --code-bg: #080a0f;
    --code-line: #242a36;
    --code-text: #e6e9f1;
    --success: #6bd6a4;
    --warning: #f0b45a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, .65);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .7);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--accent);
    color: #fff;
}

[hidden] {
    display: none !important;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd,
blockquote,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

code,
kbd,
pre {
    font-family: var(--font-mono);
}

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

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-160%);
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -0.2em;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.serif-accent {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--accent-text);
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);
    flex: 0 0 auto;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
    flex: 0 0 auto;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: color .16s ease, border-color .16s ease;
}

.text-link:hover {
    color: var(--accent-text);
    border-color: currentColor;
}

.text-link--light {
    color: #f2f4ee;
    border-color: rgba(255, 255, 255, .3);
}

.text-link--light:hover {
    color: var(--lime);
    border-color: currentColor;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    line-height: 1.2;
    white-space: nowrap;
}

.chip-category {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.license-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-dark {
    background: var(--ink);
    color: var(--bg);
}

[data-theme="dark"] .button-dark {
    background: #f0f1ec;
    color: #101217;
}

.button-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.button-outline:hover {
    border-color: var(--ink);
}

.button-ghost {
    background: transparent;
    color: var(--muted);
}

.button-ghost:hover {
    color: var(--ink);
}

/* Header ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    color: var(--accent-text);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1;
}

.brand-name span {
    color: var(--accent-text);
}

.brand-sub {
    margin-left: 2px;
    padding-left: 10px;
    border-left: 1px solid var(--line-strong);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: .02em;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 14px;
}

.main-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
    transition: color .16s ease, background .16s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--ink);
    background: var(--surface-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.header-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 8px 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease;
}

.header-search:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.header-search kbd {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--bg-soft);
    color: var(--faint);
    font-size: 10px;
    line-height: 1.4;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.icon-button:hover {
    color: var(--ink);
    background: var(--surface-2);
}

.theme-icon {
    display: none;
    align-items: center;
    justify-content: center;
}

.theme-icon-dark {
    display: inline-flex;
}

[data-theme="dark"] .theme-icon-light {
    display: inline-flex;
}

[data-theme="dark"] .theme-icon-dark {
    display: none;
}

.menu-toggle {
    display: none;
}

.no-js .menu-toggle,
.no-js .theme-toggle {
    display: none;
}

.menu-icon-close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: inline-flex;
}

.mobile-nav {
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 12px 0 18px;
}

.mobile-nav nav {
    display: grid;
    gap: 4px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 550;
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
    background: var(--surface-2);
    color: var(--ink);
}

/* Hero -------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 84px;
    border-bottom: 1px solid var(--line);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 78% 36%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
        radial-gradient(ellipse 40% 50% at 12% 8%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 72%);
}

.hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0);
    background-size: 26px 26px;
    opacity: .4;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: 60px;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(2.85rem, 5.7vw, 4.7rem);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.hero-copy h1 .serif-accent {
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: inline-block;
    padding-right: .04em;
}

.hero-copy h1 .serif-accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: -.02em;
    bottom: .04em;
    height: .11em;
    background: var(--lime);
    z-index: -1;
    transform: rotate(-1.2deg);
}

.hero-lead {
    max-width: 610px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 620px;
    margin-top: 30px;
    padding: 6px 6px 6px 44px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.hero-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-md);
}

.hero-search-icon {
    position: absolute;
    left: 15px;
    color: var(--faint);
    display: inline-flex;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.hero-search input::placeholder {
    color: var(--faint);
}

.hero-search button {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    background: #2f4bff;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    transition: background .16s ease;
}

.hero-search button:hover {
    background: #1f38dd;
}

.hero-hints {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 16px;
    color: var(--faint);
    font-size: 12px;
}

.hero-hints a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1px;
}

.hero-hints a:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.hero-visual {
    position: relative;
    padding: 20px 6px 26px 0;
}

.code-window {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--code-line);
    border-radius: 18px;
    background: var(--code-bg);
    color: var(--code-text);
    box-shadow: var(--shadow-lg);
    transform: rotate(.6deg);
}

.code-window-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--code-line);
    background: #171a22;
}

.window-dots {
    display: inline-flex;
    gap: 5px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b404d;
}

.window-dots i:nth-child(1) {
    background: #e0685f;
}

.window-dots i:nth-child(2) {
    background: #d9a441;
}

.window-dots i:nth-child(3) {
    background: #5cae7c;
}

.window-file {
    overflow: hidden;
    color: #8f96a6;
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-badge {
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid #343a47;
    border-radius: 5px;
    color: #aeb6c6;
    font-family: var(--font-mono);
    font-size: 9px;
}

.hero-code {
    overflow-x: auto;
    margin: 0;
    padding: 18px 20px 20px;
    font-size: 11.5px;
    line-height: 1.78;
    tab-size: 4;
}

.hero-code code {
    font-family: var(--font-mono);
}

.tok-comment {
    color: #7e8da3;
}

.tok-keyword {
    color: #c792ea;
}

.tok-fn {
    color: #82aaff;
}

.tok-type {
    color: #ffcb6b;
}

.tok-var {
    color: #f7d6a0;
}

.tok-str {
    color: #c3e88d;
}

.code-window-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-top: 1px solid var(--code-line);
    background: #171a22;
    color: #8992a3;
    font-size: 10.5px;
}

.code-window-foot .status-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px rgba(107, 214, 164, .12);
}

.floating-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
}

.floating-chip-a {
    top: 0;
    right: 14px;
    transform: rotate(2deg);
}

.floating-chip-b {
    bottom: 2px;
    left: -10px;
    transform: rotate(-2deg);
}

/* Sections ---------------------------------------------------------------- */

.section {
    padding: 84px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.section-head h2,
.section h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.section-head .eyebrow {
    margin-bottom: 12px;
}

.section-note,
.section-lead {
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.section-head--dark h2,
.section-head--dark .section-lead {
    color: #f2f3ee;
}

.section-head--dark .eyebrow {
    color: var(--lime);
}

.section-start {
    padding-top: 72px;
}

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

.start-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.start-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

.start-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.start-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.start-number {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 11px;
}

.start-kicker {
    margin-bottom: 7px;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.start-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 680;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.start-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.start-arrow {
    margin-top: auto;
    padding-top: 20px;
    color: var(--faint);
    transition: color .16s ease, transform .16s ease;
}

.start-card:hover .start-arrow {
    color: var(--accent-text);
    transform: translateX(3px);
}

.section-featured {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 18px;
}

.featured-side {
    display: grid;
    gap: 10px;
}

.post-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.post-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.post-card-index {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.post-card-title {
    font-size: 19px;
    font-weight: 680;
    letter-spacing: -.025em;
    line-height: 1.38;
    text-wrap: balance;
}

.post-card-desc {
    margin-top: 11px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.72;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.post-card-arrow {
    display: inline-flex;
    margin-left: auto;
    color: var(--faint);
    transition: color .16s ease, transform .16s ease;
}

.post-card:hover .post-card-arrow {
    color: var(--accent-text);
    transform: translate(2px, -2px);
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--faint);
    font-size: 11px;
}

.post-card--lead {
    border-color: transparent;
    background: var(--ink);
    color: var(--bg);
}

[data-theme="dark"] .post-card--lead {
    background: #e9eae4;
    color: #14161c;
}

[data-theme="dark"] .post-card--lead .post-card-desc,
[data-theme="dark"] .post-card--lead .post-meta,
[data-theme="dark"] .post-card--lead .post-card-tags,
[data-theme="dark"] .post-card--lead .post-card-index {
    color: #5f646e;
}

.post-card--lead .post-card-link {
    padding: 32px;
}

.post-card--lead .post-card-title {
    max-width: 560px;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    line-height: 1.26;
}

.post-card--lead .post-card-desc {
    max-width: 540px;
    color: color-mix(in srgb, var(--bg) 68%, transparent);
    font-size: 14px;
}

.post-card--lead .post-meta,
.post-card--lead .post-card-tags,
.post-card--lead .post-card-index {
    color: color-mix(in srgb, var(--bg) 55%, transparent);
}

.post-card--lead .chip-category {
    background: color-mix(in srgb, var(--bg) 14%, transparent);
    color: var(--bg);
}

.post-card--lead .post-card-arrow {
    color: var(--bg);
}

.post-card--compact .post-card-link {
    padding: 18px 20px;
}

.post-card--compact .post-card-head {
    margin-bottom: 8px;
}

.post-card--compact .post-card-title {
    font-size: 16.5px;
}

.post-card--compact .post-meta {
    padding-top: 12px;
}

.section-dark {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #f1f3ed;
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .08) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: .45;
    pointer-events: none;
    mask-image: linear-gradient(to bottom right, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 70%);
}

.section-tools .container {
    position: relative;
}

.section-tools {
    padding: 78px 0;
}

.tool-picks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tool-pick {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 19px;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .03);
    color: #f2f3ee;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.tool-pick:hover {
    transform: translateY(-3px);
    border-color: #404756;
    background: rgba(255, 255, 255, .055);
}

.tool-pick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    color: #7e8596;
}

.tool-type {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tool-pick h3 {
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 680;
    letter-spacing: -.03em;
}

.tool-pick p {
    color: #9ba1af;
    font-size: 12.5px;
    line-height: 1.7;
}

.tool-eco {
    margin-top: auto;
    padding-top: 18px;
    color: #737b8d;
    font-family: var(--font-mono);
    font-size: 10px;
}

.tool-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--dark-line);
    color: #8e96a6;
    font-size: 12px;
    line-height: 1.65;
}

.tool-note .icon {
    margin-top: 2px;
}

.tool-note a {
    color: #cfd4df;
    text-decoration-color: #4a5263;
}

.tool-note a:hover {
    color: var(--lime);
}

.cta-wrap {
    padding: 72px 0;
}

.checklist-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: center;
    gap: 40px;
    padding: 42px;
    border-radius: var(--radius-lg);
    background: var(--lime);
    color: var(--lime-ink);
}

.checklist-banner .eyebrow {
    color: #4d5a22;
}

.checklist-banner h2 {
    max-width: 600px;
    margin-bottom: 14px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 740;
    letter-spacing: -.04em;
    line-height: 1.18;
}

.checklist-banner p {
    max-width: 570px;
    color: color-mix(in srgb, var(--lime-ink) 72%, transparent);
    font-size: 14px;
    line-height: 1.7;
}

.checklist-banner-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.checklist-banner-action .button {
    background: var(--lime-ink);
    color: var(--lime);
}

.checklist-banner-action span {
    color: #4d5a22;
    font-size: 11px;
}

.section-faq {
    border-top: 1px solid var(--line);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 70px;
}

.faq-intro h2 {
    max-width: 430px;
    margin-bottom: 16px;
}

.faq-intro > p:not(.eyebrow) {
    max-width: 400px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.faq-list details {
    border-top: 1px solid var(--line);
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 2px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 620;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    color: var(--faint);
    transition: transform .18s ease;
}

.faq-list details[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-list details p {
    max-width: 680px;
    padding: 0 26px 22px 2px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.section-about-strip {
    padding-top: 20px;
    padding-bottom: 96px;
}

.about-strip {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
    padding-top: 46px;
    border-top: 1px solid var(--line);
}

.about-strip h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.28;
}

.about-strip-copy {
    display: grid;
    gap: 16px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
}

.about-strip-copy a {
    color: var(--ink);
    text-decoration-color: var(--line-strong);
}

/* Page hero --------------------------------------------------------------- */

.page-hero {
    position: relative;
    padding: 30px 0 48px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 60% 90% at 90% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 65%),
        var(--bg);
}

.page-hero .breadcrumbs {
    margin-bottom: 42px;
}

.page-hero h1 {
    max-width: 900px;
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 4.6vw, 3.65rem);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1.12;
    text-wrap: balance;
}

.page-lead {
    max-width: 710px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.82;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: end;
    gap: 50px;
}

.page-hero-aside {
    padding: 18px 0 4px 22px;
    border-left: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.page-hero-aside p {
    margin-bottom: 7px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-hero-aside a {
    display: block;
    margin-top: 6px;
    color: var(--ink-soft);
    text-decoration-color: var(--line-strong);
}

.page-hero-aside span {
    display: block;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 36px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 550;
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.filter-chip span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
}

.filter-chip:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.filter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.filter-chip.is-active span {
    color: color-mix(in srgb, var(--bg) 65%, transparent);
}

.breadcrumbs {
    color: var(--faint);
    font-size: 11.5px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.breadcrumbs li + li::before {
    content: "/";
    color: var(--line-strong);
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}

.breadcrumbs a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    overflow: hidden;
    color: var(--ink-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Guides ------------------------------------------------------------------ */

.section-guides-list {
    padding-top: 54px;
}

.list-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.list-heading h2 {
    font-size: 18px;
    letter-spacing: -.02em;
}

.list-heading span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.empty-state {
    padding: 60px 0;
    color: var(--muted);
}

.empty-state .text-link {
    margin-top: 16px;
}

.section-guidance {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.guidance-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 70px;
    align-items: start;
}

.guidance-grid h2 {
    margin-bottom: 16px;
}

.guidance-grid > div > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.guidance-links {
    display: grid;
    gap: 8px;
}

.guidance-links a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.guidance-links a:hover {
    transform: translateX(3px);
    border-color: var(--line-strong);
}

.guidance-index {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
}

.guidance-links span:nth-child(2) {
    display: grid;
    gap: 2px;
}

.guidance-links strong {
    font-size: 14px;
    font-weight: 620;
}

.guidance-links small {
    color: var(--muted);
    font-size: 11.5px;
}

.guidance-links .icon {
    margin-left: auto;
    color: var(--faint);
}

/* Tools ------------------------------------------------------------------- */

.page-hero--tools {
    background:
        radial-gradient(ellipse 55% 80% at 95% 10%, color-mix(in srgb, var(--lime) 16%, transparent), transparent 65%),
        var(--bg);
}

.section-compare {
    padding-top: 54px;
    padding-bottom: 62px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
}

.table-wrap th,
.table-wrap td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table-wrap thead th {
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.table-wrap tbody th {
    font-weight: 620;
}

.table-wrap a {
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}

.table-wrap a:hover {
    color: var(--accent-text);
}

.compare-table th[scope="row"] {
    min-width: 130px;
}

.compare-table kbd {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9.5px;
    white-space: nowrap;
}

.tool-group {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.tool-group--tint {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tool-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.tool-group-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--accent-text);
}

.tool-group-head .eyebrow {
    margin-bottom: 5px;
}

.tool-group-head h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.tool-group-head > p {
    max-width: 370px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    scroll-margin-top: calc(var(--header-h) + 24px);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.tool-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.tool-card-type {
    display: block;
    margin-bottom: 5px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tool-card h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.tool-card-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.72;
}

.tool-facts {
    display: grid;
    gap: 9px;
    margin: 17px 0 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.tool-facts > div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    font-size: 12px;
    line-height: 1.65;
}

.tool-facts dt {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .04em;
    padding-top: 2px;
}

.tool-facts dd {
    color: var(--ink-soft);
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.tool-card-link:hover {
    color: var(--accent-text);
}

.section-decision {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.decision-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.decision-number {
    display: block;
    margin-bottom: 26px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
}

.decision-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.decision-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.decision-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.decision-note .icon {
    margin-top: 2px;
    color: var(--warning);
}

/* Checklist --------------------------------------------------------------- */

.page-hero--checklist {
    background:
        radial-gradient(ellipse 45% 80% at 88% 0%, color-mix(in srgb, var(--lime) 24%, transparent), transparent 68%),
        var(--bg);
}

.checklist-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 50px;
}

.checklist-stats {
    display: flex;
    gap: 30px;
    padding-bottom: 6px;
}

.checklist-stats div {
    display: grid;
    gap: 2px;
}

.checklist-stats strong {
    font-family: var(--font-mono);
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1.1;
}

.checklist-stats span {
    color: var(--faint);
    font-size: 10.5px;
}

.section-checklist {
    padding-top: 56px;
}

.checklist-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 54px;
}

.checklist-main {
    min-width: 0;
}

.callout {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13px;
}

.callout-warning {
    border-color: color-mix(in srgb, var(--warning) 35%, var(--line));
    background: color-mix(in srgb, var(--warning) 7%, var(--surface));
}

.checklist-group {
    padding: 28px 0 8px;
    border-top: 1px solid var(--line);
}

.checklist-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.checklist-group-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    margin-bottom: 8px;
}

.checklist-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.checklist-group-head h2 {
    margin: 1px 0 4px;
    font-size: 19px;
    letter-spacing: -.025em;
}

.checklist-group-head p {
    color: var(--muted);
    font-size: 12.5px;
}

.checklist-group-count {
    padding-top: 4px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.checklist-items {
    display: grid;
    gap: 2px;
    margin-left: 54px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s ease;
}

.check-item:hover {
    background: var(--surface);
}

.check-item:has(input:checked) {
    background: var(--surface);
}

.check-item.is-checked {
    background: var(--surface);
}

.check-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.check-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: var(--bg);
    color: var(--bg);
    flex: 0 0 auto;
    transition: background .15s ease, border-color .15s ease;
}

.check-box .icon {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s ease, transform .15s ease;
}

.check-item input:checked + .check-box {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.check-item input:checked + .check-box .icon {
    opacity: 1;
    transform: scale(1);
}

.check-item input:focus-visible + .check-box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.check-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.check-text {
    font-size: 14px;
    font-weight: 550;
    line-height: 1.55;
    transition: color .15s ease;
}

.check-hint {
    color: var(--faint);
    font-size: 11.5px;
    line-height: 1.65;
}

.check-item:has(input:checked) .check-text {
    color: var(--faint);
}

.check-item.is-checked .check-text {
    color: var(--faint);
}

.checklist-panel {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.checklist-panel-inner {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--dark);
    color: #f2f3ee;
    box-shadow: var(--shadow-md);
}

.checklist-panel-inner .eyebrow {
    color: var(--lime);
    margin-bottom: 18px;
}

.progress-number {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 13px;
}

.progress-number strong {
    font-family: var(--font-mono);
    font-size: 46px;
    font-weight: 500;
    letter-spacing: -.07em;
    line-height: .95;
}

.progress-number span {
    color: #7f8798;
    font-family: var(--font-mono);
    font-size: 13px;
}

.progress-track {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: var(--line);
}

.progress-track--dark {
    background: #2a303b;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--lime);
    transition: width .25s ease;
}

.checklist-panel-status {
    margin-top: 12px;
    color: #8f97a8;
    font-size: 11.5px;
    line-height: 1.6;
}

.checklist-panel-actions {
    display: grid;
    gap: 7px;
    margin-top: 22px;
}

.checklist-panel-actions .button {
    width: 100%;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
}

.checklist-panel-actions .button-outline {
    border-color: #343b48;
    color: #e7e9ef;
}

.checklist-panel-actions .button-outline:hover {
    border-color: #606a7d;
}

.checklist-panel-actions .button-ghost {
    color: #7f8798;
}

.checklist-panel-actions .button-ghost:hover {
    color: #e7e9ef;
}

.checklist-privacy {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #282e39;
    color: #7d8595;
    font-size: 10.5px;
    line-height: 1.6;
}

.checklist-privacy .icon {
    margin-top: 1px;
}

.section-checklist-note {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.checklist-note-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 70px;
    align-items: start;
}

.checklist-note-copy {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.checklist-note-copy > p {
    margin-top: 22px;
}

.checklist-note-copy a {
    color: var(--ink);
    text-decoration-color: var(--line-strong);
}

.step-list {
    display: grid;
    gap: 17px;
    counter-reset: steps;
}

.step-list li {
    position: relative;
    padding-left: 40px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    counter-increment: steps;
}

.step-list li::before {
    content: counter(steps, decimal-leading-zero);
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 10px;
}

.step-list strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 14px;
}

/* Search ------------------------------------------------------------------ */

.page-hero--search {
    padding-bottom: 42px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 780px;
    margin-top: 30px;
    padding: 6px 6px 6px 46px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}

.search-form-icon {
    position: absolute;
    left: 15px;
    display: inline-flex;
    color: var(--faint);
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.search-form button {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    font-weight: 650;
}

.search-form button:hover {
    background: var(--ink-soft);
}

.search-form--compact {
    max-width: 560px;
    margin-top: 26px;
}

.section-search-results {
    padding-top: 50px;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
    gap: 60px;
}

.search-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.search-summary h2 {
    font-size: 18px;
    letter-spacing: -.02em;
}

.search-summary span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.search-result-list {
    display: grid;
}

.search-result {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
}

.search-result h3 {
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.4;
}

.search-result h3 a {
    text-decoration: none;
}

.search-result h3 a:hover {
    color: var(--accent-text);
}

.search-result p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.search-result mark {
    padding: 0 2px;
    background: var(--lime);
    color: var(--lime-ink);
    border-radius: 2px;
}

.search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
}

.search-result-link:hover {
    color: var(--accent-text);
}

.search-empty {
    padding: 30px 0 50px;
}

.search-empty h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.search-empty p {
    color: var(--muted);
    font-size: 14px;
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.search-suggestions a {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.search-suggestions a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.search-aside {
    padding-top: 8px;
}

.search-aside .eyebrow {
    margin-bottom: 12px;
}

.search-popular {
    display: grid;
    margin-bottom: 22px;
    border-top: 1px solid var(--line);
}

.search-popular a {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.search-popular-index {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
    padding-top: 2px;
}

.search-popular a > span:last-child {
    display: grid;
    gap: 3px;
}

.search-popular strong {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.search-popular small {
    color: var(--faint);
    font-size: 10.5px;
}

.search-popular a:hover strong {
    color: var(--accent-text);
}

/* Article ----------------------------------------------------------------- */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    height: 2px;
    background: transparent;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
}

.article-header {
    position: relative;
    padding: 30px 0 46px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 55% 60% at 80% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
        var(--bg);
}

.article-header .breadcrumbs {
    margin-bottom: 44px;
}

.article-header-inner {
    max-width: 980px;
}

.article-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.article-level {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .04em;
}

.article-header h1 {
    max-width: 900px;
    margin-bottom: 20px;
    font-size: clamp(2.05rem, 4.2vw, 3.25rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.18;
    text-wrap: balance;
}

.article-deck {
    max-width: 780px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: var(--faint);
    font-size: 11.5px;
}

.article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-author-mark {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
}

.article-author {
    color: var(--ink-soft);
    font-weight: 600;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
    gap: 64px;
    padding-top: 52px;
    padding-bottom: 76px;
}

.article-main {
    min-width: 0;
    max-width: 780px;
}

.article-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.toc {
    font-size: 12px;
}

.toc-title {
    margin-bottom: 11px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.toc ol {
    display: grid;
    gap: 1px;
    border-left: 1px solid var(--line);
}

.toc a {
    display: block;
    padding: 6px 0 6px 13px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    color: var(--muted);
    line-height: 1.55;
    text-decoration: none;
    transition: color .14s ease, border-color .14s ease;
}

.toc a:hover {
    color: var(--ink);
}

.toc a.is-active {
    border-left-color: var(--accent);
    color: var(--ink);
    font-weight: 600;
}

.toc-mobile {
    display: none;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}

.toc-mobile summary::-webkit-details-marker {
    display: none;
}

.toc-mobile .toc {
    padding: 0 16px 14px;
}

.toc-mobile .toc ol {
    border-left: 0;
}

.toc-mobile .toc a {
    padding: 5px 0;
    border-left: 0;
}

.aside-cta {
    margin-top: 30px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.aside-cta .eyebrow {
    margin-bottom: 9px;
    font-size: 9.5px;
}

.aside-cta h2 {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.4;
}

.aside-cta p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
}

.aside-cta .text-link {
    font-size: 11.5px;
}

/* Prose ------------------------------------------------------------------- */

.prose {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 1.3em;
}

.prose h2 {
    margin: 2.6em 0 .8em;
    padding-top: 1.25em;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.35;
    scroll-margin-top: calc(var(--header-h) + 22px);
}

.prose h3 {
    margin: 1.9em 0 .55em;
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 680;
    letter-spacing: -.015em;
    line-height: 1.5;
    scroll-margin-top: calc(var(--header-h) + 22px);
}

.prose h4 {
    margin: 1.6em 0 .5em;
    font-size: 1rem;
    font-weight: 680;
}

.prose h2 .heading-anchor,
.prose h3 .heading-anchor {
    margin-left: 7px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: .68em;
    font-weight: 400;
    opacity: 0;
    text-decoration: none;
    transition: opacity .15s ease;
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.prose .heading-anchor:focus-visible {
    opacity: 1;
}

.prose a {
    color: var(--ink);
    text-decoration-color: var(--line-strong);
    transition: color .14s ease, text-decoration-color .14s ease;
}

.prose a:hover {
    color: var(--accent-text);
    text-decoration-color: currentColor;
}

.prose strong {
    color: var(--ink);
    font-weight: 650;
}

.prose ul,
.prose ol {
    display: grid;
    gap: .45em;
    margin: 0 0 1.35em;
    padding-left: 1.35em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    padding-left: .25em;
}

.prose li::marker {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: .85em;
}

.prose li > ul,
.prose li > ol {
    margin-top: .45em;
    margin-bottom: 0;
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 15px 18px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--accent-soft);
    color: var(--ink-soft);
    font-size: .94em;
    line-height: 1.8;
}

.prose blockquote p {
    margin: 0;
}

.prose :not(pre) > code {
    padding: .15em .38em;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: .86em;
    overflow-wrap: anywhere;
}

.code-block {
    position: relative;
    margin: 1.6em 0;
    border: 1px solid var(--code-line);
    border-radius: var(--radius-sm);
    background: var(--code-bg);
    box-shadow: var(--shadow-sm);
}

.code-block::before {
    content: attr(data-lang);
    position: absolute;
    top: 11px;
    left: 15px;
    color: #6f7889;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    pointer-events: none;
}

.code-block pre {
    overflow-x: auto;
    margin: 0;
    padding: 38px 18px 18px;
    color: var(--code-text);
    font-size: 12.5px;
    line-height: 1.78;
    tab-size: 4;
    -webkit-overflow-scrolling: touch;
}

.code-block code {
    font-family: var(--font-mono);
}

.code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border: 1px solid #303644;
    border-radius: 5px;
    background: #1a1e27;
    color: #9aa3b4;
    font-size: 10px;
    line-height: 1.4;
    transition: color .15s ease, border-color .15s ease;
}

.code-copy:hover {
    border-color: #4a5263;
    color: #e7eaf0;
}

.code-copy.is-copied {
    border-color: #3f6d55;
    color: #8fd3ae;
}

.prose hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.prose .table-wrap {
    margin: 1.6em 0;
}

.prose .table-wrap table {
    font-size: 13px;
}

.prose .table-wrap th,
.prose .table-wrap td {
    line-height: 1.65;
}

.prose .table-wrap thead th {
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 650;
}

.prose .table-wrap tbody th {
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

.prose img {
    border-radius: var(--radius-sm);
}

.prose .task-item {
    list-style: none;
    display: flex;
    gap: 9px;
    margin-left: -1.35em;
    padding-left: 0;
}

.prose .task-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: .42em;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--accent-text);
    font-size: 10px;
    line-height: 1;
    flex: 0 0 auto;
}

.prose .task-item.is-done .task-box {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.article-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.article-tags a {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 10.5px;
    text-decoration: none;
}

.article-tags a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.copy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.copy-link:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.copy-link.is-copied {
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 40%, var(--line));
}

.author-card {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.author-card-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 11px;
    flex: 0 0 auto;
}

.author-card-name {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
}

.author-card p:not(.author-card-name) {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.author-card-links {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.author-card-links a {
    color: var(--ink-soft);
    font-size: 11px;
    text-decoration-color: var(--line-strong);
}

.correction-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    color: var(--faint);
    font-size: 11.5px;
    line-height: 1.65;
}

.correction-note a {
    color: var(--muted);
    text-decoration-color: var(--line-strong);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 32px;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.post-nav-item:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.post-nav-next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-item strong {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.section-related {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* About / contact / legal ------------------------------------------------ */

.page-hero--about {
    background:
        radial-gradient(ellipse 50% 80% at 92% 10%, color-mix(in srgb, var(--lime) 20%, transparent), transparent 65%),
        var(--bg);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: end;
    gap: 60px;
}

.about-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px 0 5px;
    border-top: 1px solid var(--line-strong);
}

.about-numbers div {
    display: grid;
    gap: 3px;
}

.about-numbers strong {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
}

.about-numbers span {
    color: var(--faint);
    font-size: 10.5px;
}

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

.principle-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.principle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 24px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.principle-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.principle-card p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.section-process {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 70px;
    align-items: start;
}

.process-intro h2 {
    margin-bottom: 16px;
}

.process-intro > p:not(.eyebrow) {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.process-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.process-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.process-list > li > span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
    padding-top: 3px;
}

.process-list strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 650;
}

.process-list p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.about-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-extra-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.about-extra-card h2 {
    margin-bottom: 12px;
    font-size: 21px;
}

.about-extra-card p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.contact-hero {
    max-width: 820px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 64px;
}

.email-card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--bg);
}

[data-theme="dark"] .email-card {
    background: #e9eae4;
    color: #14161c;
}

.email-card-label {
    display: block;
    margin-bottom: 8px;
    color: color-mix(in srgb, var(--bg) 60%, transparent);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

[data-theme="dark"] .email-card-label {
    color: #5f646e;
}

.email-card-address {
    display: inline-block;
    margin-bottom: 12px;
    color: inherit;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 650;
    letter-spacing: -.04em;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.email-card p {
    max-width: 500px;
    color: color-mix(in srgb, var(--bg) 60%, transparent);
    font-size: 12px;
    line-height: 1.7;
}

[data-theme="dark"] .email-card p {
    color: #5f646e;
}

.contact-topics {
    margin-top: 40px;
}

.contact-topics h2,
.contact-guide h2 {
    margin-bottom: 18px;
    font-size: 20px;
    letter-spacing: -.025em;
}

.contact-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-topic-grid a {
    display: grid;
    gap: 7px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.contact-topic-grid a:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.contact-topic-icon {
    display: inline-flex;
    color: var(--accent-text);
}

.contact-topic-grid strong {
    font-size: 13.5px;
    font-weight: 650;
}

.contact-topic-grid span:last-child {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
}

.contact-guide {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.contact-guide ul {
    display: grid;
    gap: 9px;
}

.contact-guide li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.contact-guide li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.contact-aside {
    display: grid;
    gap: 12px;
}

.contact-aside-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.contact-aside-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.contact-aside-card p + p {
    margin-top: 10px;
}

.contact-aside-card--muted {
    background: var(--bg-soft);
}

.contact-aside-links {
    display: grid;
    gap: 10px;
    padding: 8px 2px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}

.contact-aside-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.contact-aside-links a:hover {
    color: var(--ink);
}

.legal-header {
    max-width: 860px;
}

.legal-date {
    margin-top: 18px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.section-legal {
    padding-top: 54px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 780px);
    align-items: start;
    gap: 70px;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 7px;
    padding-top: 4px;
}

.legal-toc p {
    margin-bottom: 5px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-toc a {
    color: var(--muted);
    font-size: 11.5px;
    text-decoration: none;
    line-height: 1.5;
}

.legal-toc a:hover {
    color: var(--ink);
}

.legal-prose h2 {
    font-size: 1.3rem;
}

.legal-prose {
    font-size: 14.5px;
}

/* Error ------------------------------------------------------------------- */

.page-hero--error {
    padding: 80px 0 100px;
    border-bottom: 0;
}

.error-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 60px;
}

.error-code {
    color: transparent;
    font-family: var(--font-mono);
    font-size: clamp(7rem, 16vw, 13rem);
    font-weight: 600;
    letter-spacing: -.08em;
    line-height: 1;
    -webkit-text-stroke: 1px var(--line-strong);
}

.error-layout h1 {
    max-width: 600px;
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 28px;
}

.error-links a {
    color: var(--muted);
    font-size: 12.5px;
    text-decoration-color: var(--line-strong);
}

.error-links a:hover {
    color: var(--ink);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
    background: var(--dark);
    color: #e7e9e3;
    padding: 58px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr));
    gap: 44px;
    padding-bottom: 42px;
}

.brand-footer {
    color: #f2f3ee;
    margin-bottom: 16px;
}

.brand-footer .brand-mark {
    color: var(--lime);
}

.brand-footer .brand-name span {
    color: var(--lime);
}

.footer-brand > p {
    max-width: 380px;
    color: #9299a8;
    font-size: 12px;
    line-height: 1.8;
}

.footer-rss {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #c8cdd8;
    font-size: 11.5px;
    text-decoration: none;
}

.footer-rss:hover {
    color: var(--lime);
}

.footer-col h2 {
    margin-bottom: 15px;
    color: #f2f3ee;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 9px;
}

.footer-col a {
    color: #9299a8;
    font-size: 12px;
    text-decoration: none;
}

.footer-col a:hover {
    color: #f2f3ee;
    text-decoration: underline;
    text-decoration-color: #4a5161;
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-top: 22px;
    border-top: 1px solid #252a34;
    color: #7d8595;
    font-size: 10.5px;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.7;
}

.footer-bottom a {
    color: #9299a8;
    text-decoration-color: #3d4451;
}

.footer-bottom a:hover {
    color: var(--lime);
}

.footer-meta {
    text-align: right;
}

/* Code switcher ----------------------------------------------------------- */

.code-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--code-line);
    background: #10131a;
}

.code-tab {
    padding: 5px 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #7d8798;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.4;
    transition: color .15s ease, background .15s ease;
}

.code-tab:hover {
    color: #e8eaf0;
}

.code-tab[aria-selected="true"] {
    background: #262c38;
    color: #f2f4f8;
}

.code-panel {
    outline: none;
}

.code-panel .hero-code {
    margin: 0;
}

.no-js .code-tabs {
    display: none;
}

/* Language / IDE stack section ------------------------------------------- */

.section-stacks {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.stack-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stack-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stack-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.stack-panel-head .eyebrow {
    margin-bottom: 6px;
}

.stack-panel-head h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.stack-list {
    display: grid;
}

.stack-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    border-top: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: background .15s ease;
}

.stack-list a:hover {
    background: var(--bg-soft);
}

.stack-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    flex: 0 0 auto;
}

.stack-monogram--ide {
    background: var(--ink);
    color: var(--bg);
}

[data-theme="dark"] .stack-monogram--ide {
    background: #e9eae4;
    color: #14161c;
}

.stack-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.stack-copy strong {
    font-size: 13.5px;
    font-weight: 620;
    line-height: 1.35;
}

.stack-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stack-list .icon {
    margin-left: auto;
    color: var(--faint);
}

/* Language hub ------------------------------------------------------------ */

.page-hero--languages {
    background:
        radial-gradient(ellipse 50% 80% at 86% 8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 68%),
        var(--bg);
}

.page-hero--ides {
    background:
        radial-gradient(ellipse 50% 80% at 86% 8%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 66%),
        var(--bg);
}

.language-grid,
.ide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.language-card,
.ide-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.language-card:hover,
.ide-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.language-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.language-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.language-convention {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9.5px;
    white-space: nowrap;
}

.language-card h3,
.ide-card h3 {
    margin-bottom: 5px;
    font-size: 23px;
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.language-tagline,
.ide-best {
    color: var(--accent-text);
    font-size: 11.5px;
    line-height: 1.6;
}

.language-desc,
.ide-desc {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0;
}

.language-tags span {
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.language-links {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.language-links a,
.ide-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1.5;
    text-decoration: none;
}

.language-links a:hover,
.ide-links a:hover {
    color: var(--accent-text);
}

.language-links a span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 400;
    text-transform: uppercase;
}

.ide-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.ide-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    flex: 0 0 auto;
}

[data-theme="dark"] .ide-monogram {
    background: #e9eae4;
    color: #14161c;
}

.ide-maker {
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ide-features {
    display: grid;
    gap: 7px;
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.ide-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
}

.ide-features .icon {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    color: var(--success);
}

.shortcut-list {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-soft);
}

.shortcut-list li {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.shortcut-list kbd {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.4;
    white-space: nowrap;
}

.ide-caution {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 10px 11px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.6;
}

.ide-caution .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    color: var(--warning);
}

.ide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.hub-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.hub-note .icon {
    margin-top: 2px;
    color: var(--accent-text);
}

@media (max-width: 1080px) {
    .language-grid,
    .ide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .stack-columns,
    .language-grid,
    .ide-grid {
        grid-template-columns: 1fr;
    }

    .stack-panel {
        padding: 19px;
    }

    .stack-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .shortcut-list li {
        grid-template-columns: 82px minmax(0, 1fr);
    }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero-grid {
        gap: 34px;
    }

    .hero-copy h1 {
        font-size: clamp(2.6rem, 5.2vw, 4rem);
    }

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

    .start-card {
        min-height: 240px;
    }

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

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 40px;
    }

    .checklist-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 36px;
    }

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

    .footer-grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr));
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .no-js .header-inner {
        flex-wrap: wrap;
        padding: 9px 0;
    }

    .no-js .main-nav {
        display: flex;
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        margin-left: 0;
        gap: 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-inner {
        gap: 14px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-copy h1 {
        max-width: 680px;
    }

    .hero-visual {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .featured-layout {
        grid-template-columns: 1fr;
    }

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

    .post-card--lead .post-card-desc {
        max-width: none;
    }

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

    .cta-wrap {
        padding: 54px 0;
    }

    .checklist-banner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px;
    }

    .faq-layout,
    .about-strip,
    .guidance-grid,
    .process-grid,
    .checklist-note-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .page-hero-aside {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 16px;
    }

    .guide-hero-aside {
        display: none;
    }

    .tool-group-head {
        display: block;
    }

    .tool-group-head > p {
        margin-top: 14px;
        max-width: 600px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .article-main {
        max-width: none;
    }

    .article-aside {
        display: none;
    }

    .toc-mobile {
        display: block;
    }

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

    .checklist-layout {
        grid-template-columns: 1fr;
    }

    .checklist-panel {
        position: static;
        order: -1;
    }

    .checklist-panel-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 14px 28px;
    }

    .checklist-panel-inner .eyebrow {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .progress-number {
        margin-bottom: 0;
    }

    .progress-track {
        grid-column: 1;
    }

    .checklist-panel-status {
        grid-column: 1;
        margin-top: 0;
    }

    .checklist-panel-actions {
        grid-column: 2;
        grid-row: 2 / span 3;
        margin-top: 0;
        min-width: 190px;
    }

    .checklist-privacy {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

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

    .contact-aside-links {
        grid-column: 1 / -1;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-numbers {
        max-width: 420px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .legal-toc {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 7px 14px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface);
    }

    .legal-toc p {
        width: 100%;
        margin: 0 0 2px;
    }

    .search-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .search-aside {
        padding-top: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

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

    .footer-brand > p {
        max-width: 520px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .footer-meta {
        text-align: left;
    }

    .error-layout {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: left;
    }

    .error-code {
        font-size: 7rem;
    }

    .checklist-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 36px);
    }

    :root {
        --header-h: 62px;
    }

    .brand-sub,
    .header-search kbd {
        display: none;
    }

    .header-search-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .header-search {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
    }

    .hero {
        padding: 54px 0 62px;
    }

    .hero-copy h1 {
        font-size: clamp(2.5rem, 11vw, 3.6rem);
        margin-bottom: 20px;
    }

    .hero-lead {
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-search {
        padding-left: 40px;
    }

    .hero-search button {
        padding: 0 15px;
    }

    .hero-hints {
        font-size: 11px;
    }

    .hero-visual {
        padding-right: 0;
    }

    .hero-code {
        font-size: 10px;
        padding: 16px;
    }

    .floating-chip-a {
        right: 4px;
    }

    .floating-chip-b {
        left: 4px;
        bottom: -4px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        display: block;
        margin-bottom: 28px;
    }

    .section-head > .text-link,
    .section-head > .section-note {
        margin-top: 16px;
    }

    .start-grid,
    .post-grid,
    .featured-side,
    .tool-picks,
    .tool-grid,
    .decision-grid,
    .principle-grid,
    .about-extra-grid,
    .contact-topic-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .start-card {
        min-height: 0;
    }

    .start-card-top {
        margin-bottom: 20px;
    }

    .post-card--lead .post-card-link {
        padding: 24px;
    }

    .post-card--lead .post-card-title {
        font-size: 1.5rem;
    }

    .section-tools {
        padding: 58px 0;
    }

    .tool-pick {
        min-height: 0;
    }

    .checklist-banner {
        padding: 26px;
        border-radius: var(--radius);
    }

    .checklist-banner h2 {
        font-size: 1.65rem;
    }

    .faq-layout {
        gap: 26px;
    }

    .faq-list summary {
        padding: 16px 0;
        font-size: 14px;
    }

    .about-strip {
        gap: 24px;
    }

    .page-hero {
        padding: 22px 0 36px;
    }

    .page-hero .breadcrumbs {
        margin-bottom: 28px;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .page-lead {
        font-size: 14.5px;
    }

    .filter-bar {
        margin-top: 26px;
    }

    .post-grid {
        gap: 10px;
    }

    .section-guidance {
        padding: 52px 0;
    }

    .tool-group-head {
        margin-bottom: 22px;
    }

    .tool-card {
        padding: 19px;
    }

    .table-wrap table {
        min-width: 560px;
    }

    .checklist-stats {
        gap: 22px;
    }

    .checklist-panel-inner {
        display: block;
    }

    .checklist-panel-inner .eyebrow {
        margin-bottom: 14px;
    }

    .progress-track {
        margin-top: 13px;
    }

    .checklist-panel-status {
        margin-top: 10px;
    }

    .checklist-panel-actions {
        margin-top: 18px;
    }

    .checklist-privacy {
        margin-top: 15px;
    }

    .checklist-items {
        margin-left: 0;
    }

    .checklist-group-head {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .checklist-group-count {
        grid-column: 2;
        padding-top: 0;
    }

    .article-header {
        padding: 22px 0 34px;
    }

    .article-header .breadcrumbs {
        margin-bottom: 30px;
    }

    .article-header h1 {
        font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    }

    .article-deck {
        font-size: 14.5px;
    }

    .article-meta {
        gap: 7px;
        font-size: 10.5px;
    }

    .article-layout {
        padding-top: 28px;
        padding-bottom: 54px;
    }

    .prose {
        font-size: 15px;
        line-height: 1.85;
    }

    .prose h2 {
        font-size: 1.35rem;
    }

    .prose h3 {
        font-size: 1.05rem;
    }

    .code-block pre {
        font-size: 11.5px;
        padding: 36px 14px 14px;
    }

    .article-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .author-card {
        padding: 17px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    .post-nav-next .post-nav-label {
        justify-content: flex-start;
    }

    .section-related {
        padding-top: 50px;
    }

    .about-numbers {
        gap: 16px;
    }

    .about-extra-card {
        padding: 22px;
    }

    .contact-aside {
        grid-template-columns: 1fr;
    }

    .email-card {
        padding: 22px;
    }

    .legal-prose {
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .site-footer {
        padding-top: 44px;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 28px);
    }

    .header-inner {
        gap: 8px;
    }

    .header-actions {
        gap: 2px;
    }

    .icon-button,
    .header-search {
        width: 36px;
        height: 36px;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .hero-search input {
        font-size: 13.5px;
    }

    .hero-search button {
        padding: 0 12px;
        font-size: 13px;
    }

    .floating-chip {
        display: none;
    }

    .checklist-banner {
        padding: 22px;
    }

    .checklist-stats strong {
        font-size: 24px;
    }

    .article-author-mark {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print ------------------------------------------------------------------- */

@media print {
    @page {
        margin: 16mm;
    }

    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
    }

    .site-header,
    .site-footer,
    .reading-progress,
    .skip-link,
    .checklist-panel,
    .checklist-banner-action,
    .article-aside,
    .toc-mobile,
    .article-toolbar,
    .correction-note,
    .post-nav,
    .section-related,
    .breadcrumbs,
    .filter-bar,
    .menu-toggle {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .section,
    .article-layout,
    .checklist-layout {
        display: block !important;
        padding: 0 !important;
    }

    .page-hero,
    .article-header {
        padding: 0 0 12pt;
        border-bottom: 1px solid #ccc;
        background: none !important;
    }

    .page-hero h1,
    .article-header h1,
    .prose h2,
    .prose h3 {
        color: #111 !important;
    }

    .checklist-group {
        break-inside: avoid;
        padding: 10pt 0;
        border-top: 1px solid #ddd;
    }

    .check-group,
    .check-item {
        break-inside: avoid;
    }

    .check-item {
        padding: 4pt 0;
    }

    .check-box {
        border-color: #555;
        background: #fff;
        color: #111;
    }

    .check-item input:checked + .check-box {
        background: #111;
        border-color: #111;
        color: #fff;
    }

    .check-hint {
        color: #555;
    }

    .code-block {
        border-color: #ccc;
        background: #f7f7f7;
        color: #111;
    }

    .code-block pre,
    .code-block::before {
        color: #111;
    }

    .code-copy {
        display: none;
    }

    a {
        color: #111 !important;
        text-decoration: none;
    }
}
