@import '_base.css';
@import '_effects.css';

/* === ehw14 — Torzon Portal · bold mood, dark navy + red accent === */

/* ---- Layout primitives ---- */
.ehw14-body {
    background: hsl(var(--bg-0));
    color: hsl(var(--fg-1));
    font-family: var(--font-body), 'Roboto', sans-serif;
    overflow-x: hidden;
}

main {
    display: block;
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 1480px;
    margin: 0 auto;
    z-index: 1;
}

.ehw14-section-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.875rem 0.5rem 0.5rem;
    background: linear-gradient(95deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18), transparent 80%);
    border-left: 2px solid var(--accent);
    border-radius: 2px;
}
.ehw14-section-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: hsl(var(--bg-0));
    background: var(--accent);
    padding: 0.25rem 0.55rem;
    border-radius: 2px;
}
.ehw14-section-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: hsl(var(--fg-2));
}

.ehw14-section-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.85rem, 4.2vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: hsl(var(--fg-1));
    margin-bottom: 1.25rem;
    max-width: 28ch;
    text-shadow: 0 2px 24px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08);
}

.ehw14-section-intro {
    font-size: 1.075rem;
    line-height: 1.7;
    color: hsl(var(--fg-2));
    max-width: 60ch;
    margin-bottom: 3rem;
}

/* ---- HEADER / NAV ---- */
.ehw14-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, hsl(var(--bg-0) / 0.92) 0%, hsl(var(--bg-0) / 0.78) 100%);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    border-bottom: 1px solid hsl(var(--line-1));
    transition: transform 0.4s var(--ease-out-3), background 0.3s ease;
}
.ehw14-header.ehw14-header--shrink {
    background: hsl(var(--bg-0) / 0.95);
    box-shadow: 0 4px 18px hsl(0 0% 0% / 0.4);
}
.ehw14-header-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0.95rem clamp(1.25rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.ehw14-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}
.ehw14-logo-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.4));
}
.ehw14-logo-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: hsl(var(--fg-3));
    border-left: 1px solid hsl(var(--line-2));
    padding-left: 0.85rem;
}

.ehw14-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.ehw14-nav-link {
    position: relative;
    display: inline-block;
    padding: 0.55rem 0.9rem;
    color: hsl(var(--fg-2));
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    border-radius: 3px;
    transition: color 0.2s var(--ease-out-3), background 0.2s ease;
}
.ehw14-nav-link::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-3);
}
.ehw14-nav-link:hover { color: hsl(var(--fg-1)); }
.ehw14-nav-link:hover::after { transform: scaleX(1); }
.ehw14-nav-link--active { color: hsl(var(--fg-1)); }
.ehw14-nav-link--active::after { transform: scaleX(1); }

.ehw14-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background: var(--accent);
    color: hsl(0 0% 100%);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 4px 18px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.45),
                inset 0 1px 0 hsl(0 0% 100% / 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ehw14-nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.6);
    color: hsl(0 0% 100%);
}
.ehw14-nav-cta:active { transform: translateY(0) scale(0.98); }

/* ---- BUTTONS ---- */
.ehw14-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-body), 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.ehw14-btn-primary {
    background: var(--accent);
    color: hsl(0 0% 100%);
    box-shadow: 0 4px 22px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.45),
                inset 0 1px 0 hsl(0 0% 100% / 0.18),
                inset 0 -1px 0 hsl(0 0% 0% / 0.18);
    text-shadow: 0 1px 2px hsl(0 0% 0% / 0.2);
}
.ehw14-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 36px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.65),
                inset 0 1px 0 hsl(0 0% 100% / 0.25);
    color: hsl(0 0% 100%);
}
.ehw14-btn-primary:active { transform: translateY(0) scale(0.97); }
.ehw14-btn-primary:focus-visible { outline: 3px solid hsl(var(--fg-1)); outline-offset: 3px; }

.ehw14-btn-ghost {
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-1));
    border: 1px solid hsl(var(--line-2));
    box-shadow: inset 0 1px 0 hsl(var(--fg-1) / 0.04);
}
.ehw14-btn-ghost:hover {
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18);
    border-color: var(--accent);
    color: hsl(0 0% 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
}
.ehw14-btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---- HERO ---- */
.ehw14-hero {
    position: relative;
    min-height: clamp(640px, 95vh, 920px);
    padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    max-width: 1620px;
    margin: 0 auto;
}
.ehw14-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}
.ehw14-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, hsl(0 0% 0%) 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, hsl(0 0% 0%) 0%, transparent 75%);
    pointer-events: none;
    opacity: 0.7;
}
.ehw14-hero-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.ehw14-hero::before {
    content: '';
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    max-height: 800px;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: ehw14-orb 14s ease-in-out infinite;
}
@keyframes ehw14-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.15); }
}

.ehw14-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.ehw14-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.ehw14-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.95rem;
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
    border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.4);
    border-radius: 99px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: hsl(var(--fg-1));
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.5);
}
.ehw14-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--link-live));
    box-shadow: 0 0 0 0 hsl(var(--link-live) / 0.6);
    animation: ehw14-pulse-dot 2s ease-out infinite;
}
@keyframes ehw14-pulse-dot {
    0% { box-shadow: 0 0 0 0 hsl(var(--link-live) / 0.7); }
    70% { box-shadow: 0 0 0 12px hsl(var(--link-live) / 0); }
    100% { box-shadow: 0 0 0 0 hsl(var(--link-live) / 0); }
}
.ehw14-hero-stamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: hsl(var(--fg-3));
    letter-spacing: 0.04em;
}

.ehw14-hero-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 7.6vw, 6.5rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
    color: hsl(var(--fg-1));
    margin: 0 0 1.5rem;
    text-shadow:
        0 4px 28px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18),
        0 0 1px hsl(var(--fg-1) / 0.3);
    background: linear-gradient(180deg, hsl(var(--fg-1)) 60%, hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 12%)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ehw14-hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.65;
    color: hsl(var(--fg-2));
    max-width: 56ch;
    margin: 0 0 2.5rem;
}

.ehw14-hero-link {
    position: relative;
    background: hsl(var(--bg-1) / 0.85);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 24px 60px hsl(0 0% 0% / 0.35),
        inset 0 1px 0 hsl(var(--fg-1) / 0.06);
}
.ehw14-hero-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.55), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.ehw14-hero-link-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 18%));
    margin-bottom: 0.75rem;
}
.ehw14-hero-link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.ehw14-hero-link-text {
    flex: 1 1 320px;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.75rem, 1.05vw, 0.92rem);
    color: hsl(var(--fg-1));
    word-break: break-all;
    line-height: 1.5;
    background: hsl(var(--bg-0) / 0.7);
    padding: 0.85rem 1rem;
    border-radius: 3px;
    border: 1px solid hsl(var(--line-1));
    user-select: all;
}
.ehw14-hero-link-foot {
    display: block;
    margin-top: 0.95rem;
    font-size: 0.78rem;
    color: hsl(var(--fg-3));
    line-height: 1.5;
}

.ehw14-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.ehw14-trust-cell {
    padding: 1rem 1.1rem;
    background: hsl(var(--bg-1) / 0.65);
    border-left: 2px solid var(--accent);
    border-radius: 0 3px 3px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ehw14-trust-num {
    display: block;
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1;
    color: hsl(var(--fg-1));
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
}
.ehw14-trust-lbl {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--fg-3));
}

.ehw14-hero-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--fg-3));
    font-size: 0.85rem;
}
.ehw14-hero-jump {
    color: hsl(var(--fg-2));
    text-decoration: none;
    border-bottom: 1px dashed hsl(var(--line-2));
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.ehw14-hero-jump:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.ehw14-hero-side {
    position: relative;
    z-index: 2;
    aspect-ratio: 4 / 5;
    max-height: 720px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 36px 90px hsl(0 0% 0% / 0.55),
        0 0 0 1px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.3);
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
}
.ehw14-hero-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(0.9);
}
.ehw14-hero-side-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, hsl(var(--bg-0) / 0.9) 100%),
        linear-gradient(135deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35) 0%, transparent 50%);
    pointer-events: none;
}
.ehw14-hero-side-tag {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    pointer-events: none;
}
.ehw14-hero-side-tag-num {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 5rem);
    color: hsl(var(--fg-1));
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 24px hsl(0 0% 0% / 0.6);
}
.ehw14-hero-side-tag-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: hsl(var(--fg-2));
}

/* ---- AUTHORITY ARTICLE ---- */
.ehw14-authority {
    background:
        linear-gradient(180deg, hsl(var(--bg-0)) 0%, hsl(var(--bg-1)) 100%);
    max-width: none;
    padding-left: clamp(1.25rem, 5vw, 4rem);
    padding-right: clamp(1.25rem, 5vw, 4rem);
}
.ehw14-authority::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    max-width: 1480px;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.5), transparent);
    transform: translateX(-50%);
    pointer-events: none;
}
.ehw14-authority-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 1480px;
    margin: 0 auto;
}
.ehw14-authority-body p,
.ehw14-authority-body h3 {
    max-width: 68ch;
}
.ehw14-lead {
    font-size: 1.35rem;
    line-height: 1.55;
    color: hsl(var(--fg-1));
    margin-bottom: 1.75rem;
    font-weight: 400;
}
.ehw14-authority-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: hsl(var(--fg-2));
    margin-bottom: 1.5rem;
}
.ehw14-authority-body p code,
.ehw14-authority-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-1));
    padding: 0.15em 0.45em;
    border-radius: 2px;
    border: 1px solid hsl(var(--line-1));
}
.ehw14-authority-h3 {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    color: hsl(var(--fg-1));
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}
.ehw14-pullquote {
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 3px solid var(--accent);
    background: hsl(var(--bg-2) / 0.6);
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    line-height: 1.45;
    color: hsl(var(--fg-1));
    font-style: normal;
    border-radius: 0 3px 3px 0;
    box-shadow: inset 0 1px 0 hsl(var(--fg-1) / 0.04);
}
.ehw14-pullquote cite {
    display: block;
    margin-top: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsl(var(--fg-3));
}

.ehw14-authority-side {
    position: sticky;
    top: 7rem;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.ehw14-authority-figure {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid hsl(var(--line-2));
    box-shadow: 0 24px 50px hsl(0 0% 0% / 0.4);
}
.ehw14-authority-figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.ehw14-authority-figure figcaption {
    padding: 0.95rem 1.1rem;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-2));
    font-size: 0.85rem;
    line-height: 1.5;
    border-top: 1px solid hsl(var(--line-1));
}
.ehw14-stat-stack {
    display: flex;
    flex-direction: column;
    background: hsl(var(--bg-2) / 0.55);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    overflow: hidden;
}
.ehw14-stat-stack-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 1.1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--line-1));
    transition: background 0.2s ease;
}
.ehw14-stat-stack-row:last-child { border-bottom: none; }
.ehw14-stat-stack-row:hover { background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.07); }
.ehw14-stat-stack-num {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent);
    text-shadow: 0 0 18px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.5);
    min-width: 4ch;
}
.ehw14-stat-stack-lbl {
    color: hsl(var(--fg-2));
    font-size: 0.92rem;
    line-height: 1.45;
}

/* ---- PROTOCOL GUIDE ---- */
.ehw14-protocol {
    background: hsl(var(--bg-0));
}
.ehw14-protocol-wrap {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.ehw14-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ehw14-steps;
    position: relative;
}
.ehw14-steps::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 26px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.1));
    z-index: 0;
}
.ehw14-step {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    z-index: 1;
}
.ehw14-step:last-child { padding-bottom: 0; }

.ehw14-step-num {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: hsl(var(--bg-1));
    color: var(--accent);
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px hsl(var(--bg-0)),
                0 0 24px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.45);
    z-index: 2;
}
.ehw14-step-body {
    padding-top: 0.4rem;
}
.ehw14-step-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 1.85vw, 1.55rem);
    color: hsl(var(--fg-1));
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}
.ehw14-step-body p {
    font-size: 1.025rem;
    line-height: 1.7;
    color: hsl(var(--fg-2));
    margin-bottom: 0.85rem;
    max-width: 60ch;
}
.ehw14-step-body p code,
.ehw14-step-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-1));
    padding: 0.15em 0.45em;
    border-radius: 2px;
    border: 1px solid hsl(var(--line-1));
    word-break: break-all;
}
.ehw14-step-tip {
    padding: 0.85rem 1rem;
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 3px 3px 0;
    font-size: 0.95rem;
    color: hsl(var(--fg-1));
}
.ehw14-step-tip strong { color: var(--accent); }
.ehw14-step-figure {
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid hsl(var(--line-2));
    max-width: 480px;
}
.ehw14-step-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.ehw14-protocol-card {
    position: sticky;
    top: 7rem;
    padding: 1.75rem;
    background: linear-gradient(160deg, hsl(var(--bg-2)) 0%, hsl(var(--bg-1)) 100%);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    box-shadow:
        0 28px 56px hsl(0 0% 0% / 0.4),
        inset 0 1px 0 hsl(var(--fg-1) / 0.05);
    cursor: default;
    will-change: transform;
}
.ehw14-protocol-card-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: hsl(var(--fg-1));
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid hsl(var(--line-2));
    position: relative;
}
.ehw14-protocol-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--accent);
}
.ehw14-protocol-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: hsl(var(--fg-2));
    margin-bottom: 1rem;
}
.ehw14-protocol-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ehw14-protocol-card-list li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.92rem;
    color: hsl(var(--fg-2));
    line-height: 1.5;
}
.ehw14-protocol-card-list li::before {
    content: '⨯';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* ---- DATA TABLES ---- */
.ehw14-tables {
    background: linear-gradient(180deg, hsl(var(--bg-1)) 0%, hsl(var(--bg-0)) 100%);
}
.ehw14-tables-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.ehw14-table-block {
    background: hsl(var(--bg-1) / 0.6);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px hsl(0 0% 0% / 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ehw14-table-h3 {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: hsl(var(--fg-1));
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}
.ehw14-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.ehw14-table thead th {
    text-align: left;
    padding: 0.85rem 0.85rem;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-2));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    border-bottom: 1px solid hsl(var(--line-2));
}
.ehw14-table tbody th,
.ehw14-table tbody td {
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid hsl(var(--line-1));
    color: hsl(var(--fg-2));
    line-height: 1.5;
}
.ehw14-table tbody th {
    color: hsl(var(--fg-1));
    font-weight: 600;
}
.ehw14-table tbody tr:hover {
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06);
}
.ehw14-table-row-highlight {
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.1);
}
.ehw14-table-row-highlight th,
.ehw14-table-row-highlight td {
    color: hsl(var(--fg-1));
    font-weight: 600;
}
.ehw14-table-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: hsl(var(--fg-3));
    line-height: 1.55;
}
.ehw14-table-note a { color: var(--accent); }

.ehw14-mirror-status {
    background: hsl(var(--bg-1) / 0.7);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 18px 40px hsl(0 0% 0% / 0.3);
}
.ehw14-mirror-status-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ehw14-mirror-status-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem;
    background: hsl(var(--link-live) / 0.15);
    border-radius: 99px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: hsl(var(--link-live));
    letter-spacing: 0.04em;
}
.ehw14-mirror-pulse-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: hsl(var(--link-live));
}
.ehw14-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
}
.ehw14-status-ok {
    background: hsl(var(--link-live) / 0.15);
    color: hsl(var(--link-live));
    border: 1px solid hsl(var(--link-live) / 0.4);
}

.ehw14-tables-figure {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid hsl(var(--line-2));
    box-shadow: 0 22px 48px hsl(0 0% 0% / 0.4);
}
.ehw14-tables-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.ehw14-tables-figure figcaption {
    padding: 1rem 1.25rem;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-2));
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- FAQ ---- */
.ehw14-faq {
    background: hsl(var(--bg-0));
}
.ehw14-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 920px;
}
.ehw14-faq-item {
    background: hsl(var(--bg-1) / 0.7);
    border: 1px solid hsl(var(--line-2));
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ehw14-faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 12px 28px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18);
}
.ehw14-faq-q {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.35rem;
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: hsl(var(--fg-1));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.ehw14-faq-q::-webkit-details-marker { display: none; }
.ehw14-faq-q::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.3s var(--ease-out-3);
    flex-shrink: 0;
}
.ehw14-faq-item[open] .ehw14-faq-q::after { transform: rotate(45deg); }
.ehw14-faq-q:hover { color: var(--accent-hover); }
.ehw14-faq-a {
    padding: 0 1.35rem 1.35rem;
    color: hsl(var(--fg-2));
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid hsl(var(--line-1));
    padding-top: 1rem;
    max-width: 70ch;
}
.ehw14-faq-a code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82em;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-1));
    padding: 0.15em 0.45em;
    border-radius: 2px;
    border: 1px solid hsl(var(--line-1));
    word-break: break-all;
}

/* ---- BULLETIN ---- */
.ehw14-bulletin {
    background: linear-gradient(180deg, hsl(var(--bg-0)) 0%, hsl(var(--bg-1)) 100%);
}
.ehw14-bulletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.ehw14-bulletin-card {
    position: relative;
    padding: 1.6rem;
    background: linear-gradient(155deg, hsl(var(--bg-2)) 0%, hsl(var(--bg-1)) 100%);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    box-shadow: 0 18px 38px hsl(0 0% 0% / 0.32);
    cursor: default;
    will-change: transform;
    overflow: hidden;
}
.ehw14-bulletin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-3);
}
.ehw14-bulletin-card:hover::before { transform: scaleX(1); }
.ehw14-bulletin-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 18%));
    margin-bottom: 0.85rem;
}
.ehw14-bulletin-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.18rem;
    line-height: 1.3;
    color: hsl(var(--fg-1));
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}
.ehw14-bulletin-card p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: hsl(var(--fg-2));
    margin-bottom: 1.1rem;
}
.ehw14-bulletin-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
    color: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 22%));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 2px;
    border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
}
.ehw14-bulletin-foot {
    padding: 1.25rem 1.5rem;
    background: hsl(var(--bg-2) / 0.5);
    border-left: 2px solid var(--accent);
    color: hsl(var(--fg-2));
    font-size: 0.92rem;
    border-radius: 0 3px 3px 0;
}

/* ---- LINKS ---- */
.ehw14-links {
    background: hsl(var(--bg-0));
}
.ehw14-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.ehw14-link-card {
    position: relative;
    padding: 1.5rem;
    background: hsl(var(--bg-1) / 0.85);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    box-shadow:
        0 16px 38px hsl(0 0% 0% / 0.32),
        inset 0 1px 0 hsl(var(--fg-1) / 0.04);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ehw14-link-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow:
        0 24px 50px hsl(0 0% 0% / 0.45),
        0 0 0 1px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.4);
}
.ehw14-link-card--primary {
    background: linear-gradient(160deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12) 0%, hsl(var(--bg-1)) 100%);
    border-color: var(--accent);
    box-shadow:
        0 22px 48px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.25),
        0 0 0 1px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35),
        inset 0 1px 0 hsl(var(--fg-1) / 0.06);
}

.ehw14-link-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ehw14-link-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 0.3rem 0.65rem;
    background: var(--accent);
    color: hsl(0 0% 100%);
    border-radius: 2px;
    text-shadow: 0 1px 2px hsl(0 0% 0% / 0.3);
}
.ehw14-link-tag--mirror {
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-1));
    border: 1px solid hsl(var(--line-2));
    text-shadow: none;
}
.ehw14-link-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: hsl(var(--link-live));
}
.ehw14-link-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--link-live));
    box-shadow: 0 0 8px hsl(var(--link-live) / 0.7);
}
.ehw14-link-addr {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.74rem, 0.95vw, 0.86rem);
    color: hsl(var(--fg-1));
    word-break: break-all;
    line-height: 1.55;
    background: hsl(var(--bg-0) / 0.7);
    padding: 0.85rem 1rem;
    border-radius: 3px;
    border: 1px solid hsl(var(--line-1));
    margin-bottom: 1rem;
    user-select: all;
}
.ehw14-link-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.ehw14-link-foot-meta {
    font-size: 0.8rem;
    color: hsl(var(--fg-3));
}
.ehw14-links-note {
    max-width: 760px;
    font-size: 0.92rem;
    color: hsl(var(--fg-2));
    line-height: 1.65;
    padding: 1.25rem 1.5rem;
    background: hsl(var(--bg-2) / 0.45);
    border-radius: 3px;
    border-left: 2px solid var(--accent);
}
.ehw14-links-note code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78em;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-1));
    padding: 0.15em 0.45em;
    border-radius: 2px;
    border: 1px solid hsl(var(--line-1));
    letter-spacing: 0.05em;
}

/* ---- CTA ---- */
.ehw14-cta {
    position: relative;
    padding: clamp(4.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem);
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18) 0%, transparent 70%),
        hsl(var(--bg-1));
    border-top: 1px solid hsl(var(--line-1));
    border-bottom: 1px solid hsl(var(--line-1));
}
.ehw14-cta-mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.05) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(0deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.05) 1px, transparent 1px) 0 0 / 80px 80px;
    mask-image: radial-gradient(ellipse 60% 60% at center, hsl(0 0% 0%) 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, hsl(0 0% 0%) 0%, transparent 80%);
    pointer-events: none;
    opacity: 0.6;
}
.ehw14-cta-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    z-index: 2;
}
.ehw14-cta-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    padding: 0.4rem 0.85rem;
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
    border-radius: 99px;
    border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
}
.ehw14-cta-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    color: hsl(var(--fg-1));
    text-shadow: 0 4px 28px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.25);
}
.ehw14-cta-sub {
    font-size: 1.075rem;
    line-height: 1.65;
    color: hsl(var(--fg-2));
    margin: 0 auto 2.25rem;
    max-width: 60ch;
}
.ehw14-cta-link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ehw14-cta-link {
    flex: 1 1 360px;
    max-width: 560px;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.74rem, 0.95vw, 0.88rem);
    color: hsl(var(--fg-1));
    word-break: break-all;
    background: hsl(var(--bg-0));
    padding: 1rem 1.25rem;
    border-radius: 3px;
    border: 1px solid hsl(var(--line-2));
    text-align: left;
}
.ehw14-cta-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: hsl(var(--fg-3));
}
.ehw14-cta-meta a {
    color: hsl(var(--fg-2));
    text-decoration: none;
    border-bottom: 1px dashed hsl(var(--line-2));
    transition: color 0.2s ease, border-color 0.2s ease;
}
.ehw14-cta-meta a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---- FOOTER ---- */
.ehw14-footer {
    background: hsl(var(--bg-0));
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) 1.5rem;
    color: hsl(var(--fg-2));
    border-top: 1px solid hsl(var(--line-1));
}
.ehw14-footer-grid {
    max-width: 1480px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.ehw14-footer-col--brand { padding-right: 2rem; }
.ehw14-footer-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 8px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35));
}
.ehw14-footer-lede {
    font-size: 0.95rem;
    line-height: 1.65;
    color: hsl(var(--fg-2));
    margin-bottom: 1.25rem;
    max-width: 42ch;
}
.ehw14-footer-stamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: hsl(var(--fg-3));
    letter-spacing: 0.04em;
}
.ehw14-footer-stamp span { color: var(--accent); }

.ehw14-footer-h4 {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsl(var(--fg-1));
    margin: 0 0 1.1rem;
}
.ehw14-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ehw14-footer-list a {
    color: hsl(var(--fg-2));
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    position: relative;
    padding-left: 0;
}
.ehw14-footer-list a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}
.ehw14-footer-list a:hover::before {
    content: '→';
    position: absolute;
    left: -0.2rem;
    color: var(--accent);
}

.ehw14-footer-bottom {
    max-width: 1480px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--line-1));
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    color: hsl(var(--fg-3));
}

/* ---- RESPONSIVE ---- */
@media (min-width: 1024px) {
    .ehw14-step-body { padding-top: 0.6rem; }
}

@media (max-width: 980px) {
    .ehw14-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 4rem;
    }
    .ehw14-hero-side {
        max-height: 480px;
        transform: none;
    }
    .ehw14-authority-grid {
        grid-template-columns: 1fr;
    }
    .ehw14-authority-side { position: static; }
    .ehw14-protocol-wrap {
        grid-template-columns: 1fr;
    }
    .ehw14-protocol-card { position: static; }
    .ehw14-tables-grid { grid-template-columns: 1fr; }
    .ehw14-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ehw14-footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 720px) {
    .ehw14-header-inner {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }
    .ehw14-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 0.25rem;
        overflow-x: auto;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    .ehw14-nav-link {
        font-size: 0.82rem;
        padding: 0.45rem 0.6rem;
        white-space: nowrap;
    }
    .ehw14-nav-cta { font-size: 0.78rem; padding: 0.55rem 0.95rem; }
    .ehw14-logo-tag { display: none; }

    .ehw14-trust-bar { grid-template-columns: repeat(2, 1fr); }
    .ehw14-hero-link-row { flex-direction: column; align-items: stretch; }
    .ehw14-hero-link-text { flex-basis: auto; }
    .ehw14-step { grid-template-columns: 48px 1fr; gap: 1rem; }
    .ehw14-step-num { width: 44px; height: 44px; font-size: 0.88rem; }
    .ehw14-steps::before { left: 22px; }
    .ehw14-bulletin-grid,
    .ehw14-links-list { grid-template-columns: 1fr; }
    .ehw14-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ehw14-footer-bottom { justify-content: flex-start; }
    .ehw14-cta-link-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .ehw14-mesh,
    .ehw14-hero-bg,
    .ehw14-shield-pulse::after,
    .ehw14-hero-dot,
    .ehw14-hero::before,
    .ehw14-grad-text,
    .ehw14-grad-text-native,
    .ehw14-animated-gradient {
        animation: none !important;
    }
}

/* ===================================================
   INNER PAGE — urls/ specific styles
   =================================================== */

/* Skip link (accessibility) */
.ehw14-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: hsl(0 0% 100%);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 0 3px 3px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}
.ehw14-skip-link:focus { top: 0; }

/* ---- Breadcrumb ---- */
.ehw14-breadcrumb-bar {
    background: hsl(var(--bg-1));
    border-bottom: 1px solid hsl(var(--line-1));
}
.ehw14-breadcrumb-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0.75rem clamp(1.25rem, 5vw, 4rem);
}
.ehw14-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}
.ehw14-breadcrumb-link {
    color: hsl(var(--fg-2));
    text-decoration: none;
    transition: color 0.2s ease;
}
.ehw14-breadcrumb-link:hover { color: var(--accent); }
.ehw14-breadcrumb-sep { color: hsl(var(--fg-3)); }
.ehw14-breadcrumb-current { color: hsl(var(--fg-3)); }

/* ---- Inner Hero — compact, centered, no side image ---- */
.ehw14-inner-hero {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 5vw, 4rem);
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% -10%, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.22) 0%, transparent 65%),
        hsl(var(--bg-0));
    border-bottom: 1px solid hsl(var(--line-1));
}
.ehw14-inner-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
}
.ehw14-inner-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.07) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, hsl(0 0% 0%) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, hsl(0 0% 0%) 0%, transparent 70%);
    pointer-events: none;
}
.ehw14-inner-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}
.ehw14-inner-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.ehw14-inner-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: hsl(var(--bg-2) / 0.7);
    border: 1px solid hsl(var(--line-2));
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: hsl(var(--fg-2));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ehw14-inner-hero-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5.5vw, 4.2rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    background: linear-gradient(180deg, hsl(var(--fg-1)) 55%, hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 14%)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}
.ehw14-inner-hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    color: hsl(var(--fg-2));
    max-width: 58ch;
    margin: 0 auto 2.25rem;
}
.ehw14-inner-hero-sub a { color: hsl(var(--fg-2)); text-decoration: underline; text-underline-offset: 3px; }
.ehw14-inner-hero-sub a:hover { color: var(--accent); }

/* Stats row below primary link */
.ehw14-inner-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.ehw14-inner-stat {
    padding: 1rem;
    background: hsl(var(--bg-1) / 0.55);
    border: 1px solid hsl(var(--line-1));
    border-radius: 3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ehw14-inner-stat-num {
    display: block;
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1;
    color: hsl(var(--fg-1));
    letter-spacing: -0.02em;
    text-shadow: 0 0 18px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.3);
}
.ehw14-inner-stat-lbl {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--fg-3));
}

/* ---- Single-column link list (overrides the grid from homepage) ---- */
.ehw14-link-list-single {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.ehw14-link-list-single .ehw14-link-card {
    width: 100%;
    max-width: none;
}
.ehw14-link-head-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ehw14-inner-response {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: hsl(var(--fg-3));
    letter-spacing: 0.04em;
}

/* ---- Verification grid — 3fr/2fr, different from authority 7fr/4fr ---- */
.ehw14-verification-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.ehw14-verification-body { /* inherits from authority-body */ }
.ehw14-verification-aside {
    position: sticky;
    top: 7rem;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.ehw14-verify-card {
    padding: 1.6rem;
    background: linear-gradient(160deg, hsl(var(--bg-2)) 0%, hsl(var(--bg-1)) 100%);
    border: 1px solid hsl(var(--line-2));
    border-top: 3px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 18px 40px hsl(0 0% 0% / 0.35);
}
.ehw14-verify-card-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: hsl(var(--fg-1));
    margin: 0 0 1.15rem;
    letter-spacing: -0.01em;
}
.ehw14-verify-checklist {
    margin: 0;
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    counter-reset: ehw14-chk;
    list-style: none;
    padding-left: 0;
}
.ehw14-verify-checklist li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.9rem;
    color: hsl(var(--fg-2));
    line-height: 1.5;
    counter-increment: ehw14-chk;
}
.ehw14-verify-checklist li::before {
    content: counter(ehw14-chk, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.5;
}

/* Code block (pre element) */
.ehw14-code-block {
    margin: 1.5rem 0;
    padding: 1.1rem 1.35rem;
    background: hsl(var(--bg-0));
    border: 1px solid hsl(var(--line-2));
    border-left: 3px solid var(--accent);
    border-radius: 0 3px 3px 0;
    overflow-x: auto;
}
.ehw14-code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: hsl(var(--fg-1));
    letter-spacing: 0.02em;
    display: block;
    white-space: pre;
}

/* Inline article figure */
.ehw14-inner-figure {
    margin: 2rem 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid hsl(var(--line-2));
    box-shadow: 0 18px 42px hsl(0 0% 0% / 0.38);
}
.ehw14-inner-figure-cap {
    display: block;
    padding: 0.9rem 1.1rem;
    background: hsl(var(--bg-2));
    color: hsl(var(--fg-2));
    font-size: 0.85rem;
    line-height: 1.5;
    border-top: 1px solid hsl(var(--line-1));
}

/* ---- Uptime table layout ---- */
.ehw14-uptime-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 2.5rem;
    align-items: start;
}
.ehw14-uptime-table-wrap { min-width: 0; }
.ehw14-table-overflow {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 3px;
}

/* ---- Q&A editorial section ---- */
.ehw14-qa-section {
    background: hsl(var(--bg-0));
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 1480px;
    margin: 0 auto;
}
.ehw14-qa-editorial {
    max-width: 920px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}
.ehw14-qa-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1.75rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid hsl(var(--line-1));
    align-items: start;
}
.ehw14-qa-item:last-child { border-bottom: none; }
.ehw14-qa-num {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.22);
    padding-top: 0.3rem;
    user-select: none;
}
.ehw14-qa-content { min-width: 0; }
.ehw14-qa-q-text {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.15rem, 1.75vw, 1.45rem);
    color: hsl(var(--fg-1));
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.ehw14-qa-a-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: hsl(var(--fg-2));
    margin: 0;
    max-width: 68ch;
}
.ehw14-qa-a-text a { color: hsl(var(--fg-2)); text-decoration: underline; text-underline-offset: 3px; }
.ehw14-qa-a-text a:hover { color: var(--accent); }

/* ---- Responsive — inner page ---- */
@media (max-width: 980px) {
    .ehw14-inner-stats-row { grid-template-columns: repeat(2, 1fr); }
    .ehw14-verification-grid { grid-template-columns: 1fr; }
    .ehw14-verification-aside { position: static; }
    .ehw14-uptime-layout { grid-template-columns: 1fr; }
    .ehw14-uptime-layout .ehw14-tables-figure { max-width: 480px; }
}
@media (max-width: 640px) {
    .ehw14-inner-hero { text-align: left; }
    .ehw14-inner-hero-badges { justify-content: flex-start; }
    .ehw14-inner-hero-sub { margin-left: 0; margin-right: 0; }
    .ehw14-inner-stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .ehw14-qa-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .ehw14-qa-num { font-size: 2.2rem; padding-top: 0; }
    .ehw14-inner-hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* =========================================================
   TUTORIAL PAGE — /tutorial/
   ========================================================= */

/* Page banner */
.ehw14-page-banner {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    border-bottom: 1px solid hsl(var(--line-1));
    background: hsl(var(--bg-0));
}
.ehw14-page-banner-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 75% 90% at 20% 50%, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.14) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}
.ehw14-page-banner-figure {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 44%; max-width: 640px;
    overflow: hidden; z-index: 1;
}
.ehw14-page-banner-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.6) brightness(0.7);
}
.ehw14-page-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, hsl(var(--bg-0)) 18%, hsl(var(--bg-0) / 0.72) 52%, transparent 100%);
}
.ehw14-page-banner-inner {
    position: relative; z-index: 2;
    max-width: 780px;
}
.ehw14-page-banner-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.55rem; margin-bottom: 1.5rem;
}
.ehw14-page-banner-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    background: var(--accent); color: hsl(0 0% 100%);
    border-radius: 2px;
}
.ehw14-page-banner-dot {
    display: inline-block; width: 3px; height: 3px;
    border-radius: 50%; background: hsl(var(--fg-3));
}
.ehw14-page-banner-read,
.ehw14-page-banner-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem; color: hsl(var(--fg-3)); letter-spacing: 0.03em;
}
.ehw14-page-banner-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5.2vw, 3.75rem);
    line-height: 1.04; letter-spacing: -0.03em;
    color: hsl(var(--fg-1));
    margin: 0 0 1.25rem;
    text-shadow: 0 3px 20px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.14);
}
.ehw14-page-banner-sub {
    font-size: clamp(1rem, 1.55vw, 1.15rem);
    line-height: 1.65; color: hsl(var(--fg-2));
    max-width: 58ch; margin: 0 0 2rem;
}
.ehw14-page-banner-checks {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.ehw14-check-badge {
    display: inline-flex; align-items: center;
    gap: 0.35rem; padding: 0.42rem 0.85rem;
    background: hsl(var(--link-live) / 0.1);
    border: 1px solid hsl(var(--link-live) / 0.32);
    border-radius: 99px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem; color: hsl(var(--link-live));
    letter-spacing: 0.04em;
}
.ehw14-breadcrumb-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.45rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem; color: hsl(var(--fg-3));
    letter-spacing: 0.03em;
}
.ehw14-breadcrumb-list a {
    color: hsl(var(--fg-3)); text-decoration: none;
    transition: color 0.2s ease;
}
.ehw14-breadcrumb-list a:hover { color: var(--accent); }

/* Tutorial layout */
.ehw14-tutorial-wrap { background: hsl(var(--bg-0)); }
.ehw14-tutorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 1480px; margin: 0 auto;
    padding: clamp(3rem, 5.5vw, 5rem) clamp(1.25rem, 5vw, 4rem);
    align-items: start;
}
.ehw14-tutorial-main { min-width: 0; }
.ehw14-tut-section {
    padding: 0; max-width: none;
    margin: 0 0 4rem; position: static;
}

/* Prerequisites grid */
.ehw14-prereq-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem; margin: 2rem 0;
}
.ehw14-prereq-card {
    display: grid; grid-template-columns: 48px 1fr;
    gap: 1rem; align-items: start;
    padding: 1.3rem;
    background: linear-gradient(148deg, hsl(var(--bg-2)) 0%, hsl(var(--bg-1)) 100%);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px;
    box-shadow: 0 12px 26px hsl(0 0% 0% / 0.24);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.ehw14-prereq-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ehw14-prereq-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    flex-shrink: 0;
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.14);
    border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.38);
    border-radius: 50%;
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800; font-size: 0.95rem;
    color: var(--accent);
}
.ehw14-prereq-body { min-width: 0; }
.ehw14-prereq-title {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 700; font-size: 0.98rem;
    color: hsl(var(--fg-1));
    margin: 0 0 0.45rem; letter-spacing: -0.01em;
}
.ehw14-prereq-card p {
    font-size: 0.9rem; line-height: 1.55;
    color: hsl(var(--fg-2)); margin: 0;
}
.ehw14-prereq-card a {
    color: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 16%));
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.38);
    transition: color 0.2s ease;
}
.ehw14-prereq-card a:hover { color: var(--accent); }

/* TOC sidebar */
.ehw14-tutorial-sidebar {
    position: sticky; top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto; scrollbar-width: thin;
    scrollbar-color: hsl(var(--line-2)) transparent;
}
.ehw14-toc-card {
    background: linear-gradient(155deg, hsl(var(--bg-2)) 0%, hsl(var(--bg-1)) 100%);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 18px 42px hsl(0 0% 0% / 0.32);
}
.ehw14-toc-header {
    padding: 0.95rem 1.2rem;
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.1);
    border-bottom: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.28);
}
.ehw14-toc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.22em; font-weight: 700;
    color: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 14%));
}
.ehw14-toc { padding: 1.1rem 1.1rem 0.5rem; }
.ehw14-toc-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.1rem;
}
.ehw14-toc-list > li { position: relative; }
.ehw14-toc-link {
    display: block; padding: 0.42rem 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem; color: hsl(var(--fg-2));
    text-decoration: none; border-radius: 2px;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1.4; letter-spacing: 0.02em;
}
.ehw14-toc-link:hover { color: hsl(var(--fg-1)); background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08); }
.ehw14-toc-link--active { color: var(--accent) !important; background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.1) !important; }
.ehw14-toc-sub { list-style: none; margin: 0; padding: 0 0 0 0.85rem; }
.ehw14-toc-link--sub { font-size: 0.7rem; color: hsl(var(--fg-3)); padding: 0.28rem 0.5rem; }
.ehw14-toc-link--sub:hover { color: hsl(var(--fg-2)); }
.ehw14-toc-cta-box { padding: 1.15rem 1.2rem; border-top: 1px solid hsl(var(--line-1)); }
.ehw14-toc-cta-box > p {
    font-size: 0.83rem; color: hsl(var(--fg-2));
    margin: 0 0 0.8rem; line-height: 1.5;
}
.ehw14-toc-stat { border-top: 1px solid hsl(var(--line-1)); display: flex; flex-direction: column; }
.ehw14-toc-stat-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid hsl(var(--line-1));
    transition: background 0.2s ease;
}
.ehw14-toc-stat-row:last-child { border-bottom: none; }
.ehw14-toc-stat-row:hover { background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.05); }
.ehw14-toc-stat-num {
    font-family: var(--font-display), 'Archivo', sans-serif;
    font-weight: 800; font-size: 1.2rem; color: var(--accent);
    text-shadow: 0 0 12px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.38);
}
.ehw14-toc-stat-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; color: hsl(var(--fg-3));
    text-align: right; line-height: 1.4;
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* Cross-links */
.ehw14-tut-crosslinks {
    padding: 1.5rem 1.65rem;
    background: hsl(var(--bg-2) / 0.45);
    border: 1px solid hsl(var(--line-2));
    border-radius: 4px; margin-top: 3rem;
}
.ehw14-tut-related-list {
    list-style: none; margin: 0.85rem 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.ehw14-tut-related-list li {
    position: relative; padding-left: 1.4rem;
    font-size: 0.98rem; line-height: 1.55; color: hsl(var(--fg-2));
}
.ehw14-tut-related-list li::before {
    content: '→'; position: absolute; left: 0;
    color: var(--accent); font-family: 'JetBrains Mono', monospace;
}
.ehw14-tut-related-list a {
    color: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 16%));
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
    transition: color 0.2s ease;
}
.ehw14-tut-related-list a:hover { color: var(--accent); }

/* Troubleshooting table */
.ehw14-tbl-trouble td, .ehw14-tbl-trouble th { vertical-align: top; }
.ehw14-tbl-trouble td { font-size: 0.9rem; line-height: 1.6; }
.ehw14-tbl-trouble td a {
    color: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) + 16%));
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
}

/* Tutorial responsive */
@media (max-width: 1100px) {
    .ehw14-tutorial-layout { grid-template-columns: 1fr; }
    .ehw14-tutorial-sidebar { position: static; max-height: none; overflow-y: visible; }
    .ehw14-toc-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .ehw14-toc-header { grid-column: 1 / -1; }
    .ehw14-toc { grid-column: 1; }
    .ehw14-toc-stat { grid-column: 2; border-top: none; border-left: 1px solid hsl(var(--line-1)); }
    .ehw14-toc-cta-box { grid-column: 1 / -1; }
    .ehw14-page-banner-figure { display: none; }
}
@media (max-width: 640px) {
    .ehw14-prereq-grid { grid-template-columns: 1fr; }
    .ehw14-toc-card { grid-template-columns: 1fr; }
    .ehw14-toc { grid-column: auto; }
    .ehw14-toc-stat { grid-column: auto; border-left: none; border-top: 1px solid hsl(var(--line-1)); }
}


/* ── Mobile burger nav ── */
.ehw14-burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;padding:8px;background:transparent;border:none;cursor:pointer;color:hsl(var(--fg-1));z-index:101;flex-shrink:0}
.ehw14-burger span{display:block;width:22px;height:2px;background:currentColor;border-radius:1px;transition:transform .3s ease,opacity .3s ease}
.ehw14-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.ehw14-burger.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.ehw14-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:700px){
  .ehw14-nav{display:none!important}
  .ehw14-nav.open{display:flex!important;position:fixed;inset:0;background:hsl(var(--bg-0)/.97);backdrop-filter:blur(8px);flex-direction:column;align-items:center;justify-content:center;gap:2rem;z-index:100}
  .ehw14-nav.open a{font-size:1.25rem;padding:.75rem 2rem;text-align:center}
  .ehw14-nav-cta{display:none!important}
  .ehw14-burger{display:flex}
}