/* ============================================================
   truckerstool.com — pro-tool brand for a US truck dispatch co.
   Hard-edged industrial aesthetic. Snap-on / DeWalt energy.
   ============================================================ */

:root {
    --tt-black:   #0c0c0c;   /* tool black */
    --tt-steel:   #3a3d42;   /* steel */
    --tt-steel-2: #2a2d31;   /* darker steel */
    --tt-orange:  #ff5722;   /* safety orange — primary CTA / hi-vis */
    --tt-amber:   #ffb800;   /* highway amber — secondary accent */
    --tt-bone:    #f5f1e8;   /* bone — body bg */
    --tt-paper:   #ffffff;   /* card paper */
    --tt-line:    #d8d3c4;   /* hairline */
    --tt-text:    #1a1a1a;
    --tt-muted:   #54575c;  /* darkened from #6c6f74 to pass WCAG AA on bone bg (4.5:1+) */
    --tt-success: #1e9b5a;

    --shadow-hard:  6px 6px 0 0 var(--tt-black);
    --shadow-hard-sm: 3px 3px 0 0 var(--tt-black);
    --shadow-hard-orange: 6px 6px 0 0 var(--tt-orange);

    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Nav height — referenced by the mobile drawer for top-offset and max-height.
       Bump this if the nav grows (e.g., banner row above). */
    --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }

html { scroll-behavior: smooth; }

/* Defensive: media never overflows its parent. Without this, any inline image
   or video without explicit responsive attributes can blow out a column on
   narrow phones. */
img, video, svg, picture {
    max-width: 100%;
    height: auto;
}

/* Defensive: long unbreakable strings (URLs, equipment slugs, blog post
   titles) wrap instead of forcing horizontal scroll on phones. */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--tt-text);
    background: var(--tt-bone);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* === Type === */
.font-display { font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: .02em; line-height: .95; }
.font-mono    { font-family: 'JetBrains Mono', 'Consolas', monospace; }
h1, h2, h3, h4 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .015em; line-height: 1; margin: 0; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { margin: 0 0 1rem 0; }
a  { color: var(--tt-orange); text-decoration: none; }
a:hover { color: var(--tt-amber); }

/* === Containers / sections === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--dark   {
    background: var(--tt-black);
    color: var(--tt-bone);
    /* Re-scope --tt-muted for dark backgrounds. The site-wide value (#54575c)
       is tuned for bone bg and would give 2.7:1 on tt-black. This override
       lifts hint/disclaimer text to ~7.5:1 inside dark sections. */
    --tt-muted: #b8bbbe;
}
.section--dark p,
.section--dark ol,
.section--dark ul {
    /* default body rhythm in dark sections — used by every spotlight
       block + the self-dispatch / lease-purchase prose. Override per
       element only when the rhythm needs to differ. */
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
}
.section--dark ol,
.section--dark ul { padding-left: 1.5rem; }
.section--dark p:last-child,
.section--dark ol:last-child,
.section--dark ul:last-child { margin-bottom: 0; }
.section--steel  { background: var(--tt-steel); color: var(--tt-bone); }
.section--paper  { background: var(--tt-paper); }

.section-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--tt-orange);
    background: var(--tt-black);
    padding: .25rem .65rem;
    margin-bottom: 1rem;
}
.section--dark .section-eyebrow { background: var(--tt-orange); color: var(--tt-black); }
.section-title { margin-bottom: .75rem; }
.section-lede {
    font-size: 1.1rem;
    color: var(--tt-muted);
    max-width: 60ch;
    margin-bottom: 2.5rem;
}
.section--dark .section-lede { color: rgba(255,255,255,0.7); }

/* === Caution-tape divider (amber/black diagonal stripes) === */
.tape-divider {
    height: 14px;
    background: repeating-linear-gradient(
        -45deg,
        var(--tt-amber) 0 24px,
        var(--tt-black) 24px 48px
    );
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    background: var(--tt-paper);
    color: var(--tt-text) !important;
    border: 3px solid var(--tt-black);
    padding: .85rem 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease;
    box-shadow: var(--shadow-hard-sm);
}
.btn:hover  { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--tt-black); }
.btn:active { transform: translate(2px, 2px);  box-shadow: 1px 1px 0 0 var(--tt-black); }
.btn--primary { background: var(--tt-orange); color: var(--tt-paper) !important; }
.btn--primary:hover { color: var(--tt-paper) !important; }
.btn--amber   { background: var(--tt-amber); color: var(--tt-black) !important; }
.btn--amber:hover { color: var(--tt-black) !important; }
.btn--ghost {
    background: transparent;
    color: var(--tt-bone) !important;
    border-color: var(--tt-bone);
    box-shadow: none;
}
.btn--ghost:hover { background: var(--tt-bone); color: var(--tt-black) !important; box-shadow: 4px 4px 0 0 var(--tt-orange); }
.btn--xl  { padding: 1.05rem 2rem; font-size: 1.25rem; }
.btn--sm  { padding: .55rem 1rem; font-size: .9rem; min-height: 36px; }
/* Small inline buttons used inside table rows (e.g., IFTA delete X) get a
   transparent invisible 44x44 hit-zone via padding offset on touch devices. */
@media (pointer: coarse) {
    .btn--sm { min-height: 44px; min-width: 44px; }
}

/* === Top nav === */
.tt-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--tt-black);
    color: var(--tt-bone);
    border-bottom: 4px solid var(--tt-orange);
}
.tt-nav-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: .9rem 1.25rem;
    max-width: 1280px;
    margin: 0 auto;
}
.tt-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    color: var(--tt-bone);
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none !important;
}
.tt-brand-mark {
    display: inline-flex;
    width: 30px; height: 30px;
    background: var(--tt-orange);
    align-items: center;
    justify-content: center;
    color: var(--tt-black);
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
}
.tt-nav-links {
    display: flex;
    gap: .25rem;
    margin-left: auto;
    list-style: none;
    padding: 0;
}
.tt-nav-links a {
    color: var(--tt-bone) !important;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    padding: .45rem .85rem;
    text-decoration: none !important;
    text-transform: uppercase;
}
.tt-nav-links a:hover { color: var(--tt-amber) !important; }
.tt-nav-links li { position: relative; }
.tt-nav-links li.has-dropdown > a::after {
    content: '\25BE'; /* small triangle */
    margin-left: .35rem;
    font-size: .7em;
    color: var(--tt-amber);
}
.tt-nav-links .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 680px;
    background: var(--tt-black);
    border: 3px solid var(--tt-orange);
    box-shadow: 6px 6px 0 0 rgba(0,0,0,0.4);
    padding: 1rem;
    z-index: 110;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}
.tt-nav-links li.has-dropdown:hover > .dropdown,
.tt-nav-links li.has-dropdown:focus-within > .dropdown {
    display: grid;
}
/* Single-column dropdowns. Mark with `single-col` class explicitly in markup
   so the layout doesn't depend on nav position. The :has() rule auto-detects
   any dropdown with one .dd-col child for browsers that support it (Chrome
   105+, Safari 15.4+, Firefox 121+). */
.tt-nav-links .dropdown.single-col,
.tt-nav-links .dropdown:has(> .dd-col:only-child) {
    grid-template-columns: 1fr;
    min-width: 280px;
    max-width: 340px;
}
.tt-nav-links .dropdown .dd-col { display: flex; flex-direction: column; gap: .15rem; }
.tt-nav-links .dropdown .dd-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    color: var(--tt-amber);
    text-transform: uppercase;
    padding-bottom: .35rem;
    margin-bottom: .25rem;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.tt-nav-links .dropdown a {
    padding: .4rem .55rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .9rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--tt-bone) !important;
    display: flex;
    gap: .55rem;
    align-items: center;
}
.tt-nav-links .dropdown a:hover {
    background: var(--tt-orange);
    color: var(--tt-paper) !important;
}
.tt-nav-links .dropdown a i { width: 18px; color: var(--tt-amber); }
.tt-nav-links .dropdown a.dd-divider {
    margin-top: .35rem;
    border-top: 1px dashed rgba(255,255,255,0.15);
    padding-top: .55rem !important;
}

/* === Process page timeline (process.php) === */
.timeline-card {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}
.timeline-card:last-of-type { margin-bottom: 0; }
.timeline-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
    letter-spacing: .12em;
    color: var(--tt-orange);
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}
.timeline-card p { margin: 0; line-height: 1.65; }

.tt-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .95rem;
    color: var(--tt-amber) !important;
    text-decoration: none !important;
    padding: .4rem .6rem;
}
.tt-nav-phone i { color: var(--tt-orange); }
.tt-nav-cta { padding: .55rem 1.05rem; font-size: .95rem; }

@media (max-width: 900px) {
    .tt-nav-links { display: none; }
}
@media (max-width: 600px) {
    .tt-nav-phone span:not(.short) { display: none; }
}

/* === Hero === */
.hero {
    background: var(--tt-black);
    color: var(--tt-bone);
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 7rem);
    overflow: hidden;
}
.hero::before {
    /* faint diagonal tread pattern */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,184,0,0.04) 0 2px, transparent 2px 30px);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    letter-spacing: .15em;
    color: var(--tt-amber);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--tt-orange); display: inline-block; }
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    color: var(--tt-paper);
    max-width: 18ch;
    margin-bottom: 1.5rem;
}
.hero h1 .hi-vis { color: var(--tt-orange); }
.hero h1 .underline {
    display: inline-block;
    border-bottom: 6px solid var(--tt-amber);
    padding-bottom: .15rem;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255,255,255,0.78);
    max-width: 52ch;
    margin-bottom: 2rem;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: 2.25rem;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust i { color: var(--tt-amber); }

/* === Stats bar (stamped metal) === */
.stats {
    background: var(--tt-steel);
    color: var(--tt-bone);
    padding: 2.5rem 0;
    border-top: 4px solid var(--tt-amber);
    border-bottom: 4px solid var(--tt-amber);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-block {
    background: var(--tt-steel-2);
    border: 2px solid var(--tt-black);
    border-top: 6px solid var(--tt-amber);
    padding: 1.1rem 1rem 1.2rem;
    position: relative;
    box-shadow: var(--shadow-hard-sm);
}
.stat-block .stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--tt-bone);
    letter-spacing: -.02em;
    line-height: 1;
}
.stat-block .stat-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .9rem;
    letter-spacing: .12em;
    color: var(--tt-amber);
    text-transform: uppercase;
    margin-top: .4rem;
    line-height: 1.1;
}

/* === Service cards === */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    box-shadow: var(--shadow-hard);
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: transform .12s ease, box-shadow .12s ease;
}
.svc-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--tt-orange); }
.svc-icon {
    display: inline-flex;
    width: 44px; height: 44px;
    background: var(--tt-amber);
    color: var(--tt-black);
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--tt-black);
    margin-bottom: .3rem;
}
.svc-card h3 { font-size: 1.4rem; }
.svc-card p { color: var(--tt-muted); font-size: .96rem; margin: 0; }

/* === How it works (steps) === */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    padding: 1.5rem 1.3rem 1.6rem;
    position: relative;
    box-shadow: var(--shadow-hard-sm);
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.6rem;
    color: var(--tt-orange);
    line-height: 1;
    margin-bottom: .25rem;
}
.step-when {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    letter-spacing: .12em;
    color: var(--tt-muted);
    text-transform: uppercase;
    margin-bottom: .4rem;
    border-left: 3px solid var(--tt-amber);
    padding-left: .5rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p  { margin: 0; color: var(--tt-muted); font-size: .94rem; }

/* === Pricing === */
.rate-table {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
}
.rate-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.1rem 1.4rem;
    border-bottom: 2px dashed var(--tt-line);
    gap: 1rem;
}
.rate-row:last-child { border-bottom: none; }
.rate-row .rate-eq {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: .03em;
    line-height: 1.1;
}
.rate-row .rate-eq small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    color: var(--tt-muted);
    letter-spacing: 0;
    margin-top: .15rem;
    font-weight: 400;
}
.rate-row .rate-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--tt-orange);
    font-weight: 700;
    line-height: 1;
}
.rate-row .rate-pct sup { font-size: .55em; color: var(--tt-text); }
.rate-row.is-feature { background: var(--tt-amber); }

.no-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
}
.no-badge {
    background: var(--tt-black);
    color: var(--tt-bone);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    padding: .45rem .9rem;
    border: 2px solid var(--tt-amber);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.no-badge i { color: var(--tt-orange); }

/* === The edge (tech / AI) === */
.edge-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (max-width: 800px) { .edge-grid { grid-template-columns: 1fr; } }
.edge-text p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 60ch; }
.edge-strip {
    background: var(--tt-steel-2);
    border: 2px solid var(--tt-amber);
    padding: 1.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    line-height: 1.6;
}
.edge-strip .row { display: flex; gap: .6rem; align-items: center; padding: .25rem 0; border-bottom: 1px dashed rgba(255,255,255,0.12); }
.edge-strip .row:last-child { border-bottom: none; }
.edge-strip .row .ok { color: var(--tt-amber); }
.edge-strip .row .lbl { color: var(--tt-bone); flex-grow: 1; }
.edge-strip .row .meta { color: var(--tt-orange); }

/* === Calculator === */
.calc {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard-orange);
    padding: 2rem;
}
.calc-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin-bottom: 1.6rem; }
.calc-heading h3 { font-size: 1.8rem; }
.calc-heading .lede { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--tt-muted); letter-spacing: .08em; text-transform: uppercase; }

.calc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.8rem; }
@media (max-width: 600px) { .calc-controls { grid-template-columns: 1fr; gap: 1.2rem; } }

.calc-row label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt-text);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .35rem;
}
.calc-row label .v {
    font-family: 'JetBrains Mono', monospace;
    color: var(--tt-orange);
    font-size: 1.15rem;
    letter-spacing: 0;
}
.calc-row input[type=range] {
    width: 100%;
    appearance: none;
    background: transparent;
    height: 18px;
}
.calc-row input[type=range]::-webkit-slider-runnable-track {
    height: 8px;
    background: var(--tt-amber);
    border: 2px solid var(--tt-black);
}
.calc-row input[type=range]::-moz-range-track {
    height: 8px;
    background: var(--tt-amber);
    border: 2px solid var(--tt-black);
}
/* Slider thumbs sized to be one-handed-grabbable in a moving truck cab.
   30px visible, 44px hit-zone via vertical track padding (input has min-height: 44px). */
.calc-row input[type=range] { min-height: 44px; padding: 7px 0; }
.calc-row input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 30px; height: 30px;
    background: var(--tt-orange);
    border: 2px solid var(--tt-black);
    margin-top: -13px;
    cursor: pointer;
    box-shadow: 2px 2px 0 0 var(--tt-black);
}
.calc-row input[type=range]::-moz-range-thumb {
    width: 30px; height: 30px;
    background: var(--tt-orange);
    border: 2px solid var(--tt-black);
    cursor: pointer;
    box-shadow: 2px 2px 0 0 var(--tt-black);
}
.calc-row.equipment-row select {
    width: 100%;
    appearance: none;
    background: var(--tt-bone);
    border: 2px solid var(--tt-black);
    padding: .55rem .7rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .95rem;
}

.calc-output {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 520px) { .calc-output { grid-template-columns: 1fr; } }

.calc-block {
    border: 2px solid var(--tt-black);
    padding: 1.1rem 1.2rem 1.3rem;
    background: var(--tt-bone);
}
.calc-block.is-them { background: var(--tt-bone); }
.calc-block.is-us   { background: var(--tt-black); color: var(--tt-bone); border-color: var(--tt-orange); box-shadow: 4px 4px 0 0 var(--tt-orange); }
.calc-block .blk-head {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .55rem;
}
.calc-block.is-them .blk-head { color: var(--tt-muted); }
.calc-block.is-us .blk-head   { color: var(--tt-amber); }
.calc-block .blk-money {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: .55rem;
}
.calc-block.is-us .blk-money { color: var(--tt-paper); }
.calc-block .blk-line {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--tt-muted);
    padding: .2rem 0;
    border-top: 1px dashed rgba(0,0,0,0.12);
}
.calc-block.is-us .blk-line { color: rgba(255,255,255,0.55); border-top-color: rgba(255,255,255,0.12); }
.calc-block .blk-delta {
    margin-top: .65rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt-amber);
}

/* === Testimonials === */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

.testi {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-hard);
}
.testi .quote {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--tt-text);
    font-style: italic;
    flex-grow: 1;
}
.testi .who { display: flex; align-items: center; gap: .8rem; padding-top: .8rem; border-top: 2px dashed var(--tt-line); }
.testi .who img {
    width: 48px; height: 48px;
    border: 2px solid var(--tt-black);
    background: var(--tt-bone);
    object-fit: cover;
    flex-shrink: 0;
}
.testi .who .name { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; line-height: 1; }
.testi .who .meta { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--tt-muted); margin-top: .15rem; }
.testi .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    background: var(--tt-amber);
    border: 2px solid var(--tt-black);
    padding: .5rem .6rem;
    margin-top: -.4rem;
}
.testi .stats-row .s { text-align: center; }
.testi .stats-row .s .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1rem; line-height: 1; color: var(--tt-black); }
.testi .stats-row .s .l { font-family: 'Bebas Neue', sans-serif; font-size: .7rem; letter-spacing: .1em; color: var(--tt-black); margin-top: .15rem; }

/* === FAQ === */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    margin-bottom: .8rem;
    box-shadow: var(--shadow-hard-sm);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: .03em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    color: var(--tt-orange);
    line-height: 1;
}
.faq-item[open] summary::after { content: '×'; }
.faq-item[open] summary { border-bottom: 2px dashed var(--tt-line); }
.faq-item .faq-body {
    padding: 1rem 1.25rem 1.2rem;
    color: var(--tt-text);
    font-size: 1rem;
    line-height: 1.55;
}

/* === Apply form === */
.apply-wrap {
    background: var(--tt-paper);
    color: var(--tt-text); /* reset — section is dark, but the wrap is white, so labels need dark text */
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard-orange);
    padding: 2rem;
    max-width: 760px;
    margin: 0 auto;
}
.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1rem;
}
@media (max-width: 600px) { .apply-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; }
.field.full  { grid-column: 1 / -1; }
.field label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tt-text); /* explicit — guards against parent color inheritance from dark sections */
    margin-bottom: .3rem;
}
.field input,
.field select,
.field textarea {
    background: var(--tt-bone);
    border: 2px solid var(--tt-black);
    padding: .65rem .75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--tt-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--tt-orange);
    box-shadow: 3px 3px 0 0 var(--tt-orange);
}
.field textarea { min-height: 84px; resize: vertical; }
.field-hint { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--tt-muted); margin-top: .25rem; }

/* Required field marker -- on the label of any field containing a [required] control. */
.field:has([required]) label::after {
    content: ' *';
    color: var(--tt-orange);
    font-weight: 700;
}

/* Validation error states */
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
    border-color: #c0392b;
    box-shadow: 3px 3px 0 0 #c0392b;
    background: #fdecea;
}
.apply-error-summary {
    background: #fdecea;
    color: #8a1c0c;
    border: 2px solid #c0392b;
    padding: .9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
    display: flex;
    gap: .75rem;
    align-items: center;
}
.apply-error-summary i { color: #c0392b; font-size: 1.2rem; }

/* Visible focus for keyboard users -- applied site-wide. */
*:focus-visible {
    outline: 3px solid var(--tt-orange);
    outline-offset: 2px;
}
button:focus-visible,
.btn:focus-visible {
    outline-offset: 3px;
}

.apply-success {
    background: var(--tt-black);
    color: var(--tt-bone);
    border: 3px solid var(--tt-orange);
    padding: 2.5rem 1.8rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow-hard);
}
.apply-success h3 { color: var(--tt-amber); font-size: 2rem; margin-bottom: .8rem; }
.apply-success p  { color: rgba(255,255,255,0.78); margin: 0 auto .8rem; max-width: 50ch; }
.apply-success .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    background: var(--tt-orange);
    color: var(--tt-black);
    font-size: 2rem;
    margin-bottom: 1rem;
    border: 3px solid var(--tt-amber);
}

/* === Footer ============================================================= */
.tt-foot {
    background: var(--tt-black);
    color: var(--tt-bone);
    padding: 3rem 0 1.5rem;
    border-top: 4px solid var(--tt-amber);
}

/* Top: 7 equal-width link columns. By State runs as a tall single list —
   that's intentional: trying to span 2 cols cramped the others. The State
   column will be taller than its neighbors; align-items: start lets it grow
   without dragging the others down. */
.tt-foot-links {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.75rem 1.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

@media (max-width: 1200px) { .tt-foot-links { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .tt-foot-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .tt-foot-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px)  { .tt-foot-links { grid-template-columns: 1fr; } }

.tt-foot h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: .12em;
    color: var(--tt-amber);
    margin-bottom: .8rem;
    text-transform: uppercase;
}
.tt-foot ul { list-style: none; padding: 0; margin: 0; }
.tt-foot ul li { margin-bottom: .35rem; }
.tt-foot a { color: rgba(255,255,255,0.7) !important; text-decoration: none !important; }
.tt-foot a:hover { color: var(--tt-orange) !important; }

/* Brand band sits between the link grid and the legal row. Logo + tagline
   on the left, contact rows on the right. Stacks on mobile. */
.tt-foot-brand-band {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.75rem 0;
    border-top: 2px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.25rem;
}
@media (max-width: 800px) {
    .tt-foot-brand-band { grid-template-columns: 1fr; gap: 1.25rem; }
}
.tt-foot-brand-id .tt-brand { margin-bottom: .6rem; }
.tt-foot-tagline {
    color: rgba(255,255,255,0.65);
    font-size: .95rem;
    margin: 0;
    max-width: 52ch;
    line-height: 1.55;
}
.tt-foot-contact {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    font-size: .92rem;
    align-items: flex-start;
}
@media (min-width: 801px) { .tt-foot-contact { align-items: flex-end; text-align: right; } }
.tt-foot-contact-row {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255,255,255,0.78) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
}
.tt-foot-contact-row i {
    color: var(--tt-amber);
    width: 18px;
    text-align: center;
}
a.tt-foot-contact-row:hover { color: var(--tt-orange) !important; }

/* Legal row stays as before (copyright + reg badges) */
.tt-foot .legal {
    border-top: none;       /* the brand band already provides a divider */
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tt-foot .reg-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.tt-foot .reg-badge {
    border: 2px solid rgba(255,255,255,0.25);
    padding: .25rem .6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    letter-spacing: .08em;
    color: rgba(255,255,255,0.65);
}

/* === Skip-to-content link (a11y) ===
   Hidden visually until a keyboard user tabs to it. First focusable element
   in the body, lets them jump past the entire nav + dropdowns to page content. */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-150%);
    background: var(--tt-orange);
    color: var(--tt-paper);
    padding: .9rem 1.25rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    text-decoration: none;
    z-index: 1000;
    transition: transform .15s ease;
}
.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--tt-amber);
    outline-offset: 2px;
}
/* Empty anchor target — focusable but invisible. Used by skip-link. */
#main-content { display: block; outline: none; }

/* === Trust strip (above-fold credentials row on equipment + state pages) === */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(245, 241, 232, 0.18);
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.72);
}
.trust-strip span { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.trust-strip i { color: var(--tt-amber); }

/* === Page header (used on all standalone pages above the fold) === */
.page-hero {
    background: var(--tt-black);
    color: var(--tt-bone);
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 4px solid var(--tt-orange);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,184,0,0.04) 0 2px, transparent 2px 30px);
    pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: var(--tt-paper);
    margin-bottom: 1rem;
    max-width: 22ch;
}
.page-hero h1 .hi-vis    { color: var(--tt-orange); }
.page-hero h1 .underline { display: inline-block; border-bottom: 5px solid var(--tt-amber); padding-bottom: .1rem; }
.page-hero .lede {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.78);
    max-width: 60ch;
    margin-bottom: 1.5rem;
}

/* === Breadcrumbs === */
.breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    letter-spacing: .08em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--tt-amber) !important; }
.breadcrumbs a:hover { color: var(--tt-orange) !important; }
.breadcrumbs .sep { color: rgba(255,255,255,0.3); margin: 0 .4rem; }
.breadcrumbs .here { color: rgba(255,255,255,0.85); }

/* === CTA band (bottom of every page) === */
.cta-band {
    background: var(--tt-orange);
    color: var(--tt-paper);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    border-top: 4px solid var(--tt-black);
    border-bottom: 4px solid var(--tt-black);
    text-align: center;
}
.cta-band h2 {
    color: var(--tt-paper);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: .8rem;
}
.cta-band p {
    color: rgba(255,255,255,0.92);
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 0 auto 1.6rem;
}
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-band .btn { background: var(--tt-paper); color: var(--tt-text) !important; }
.cta-band .btn--primary { background: var(--tt-black); color: var(--tt-paper) !important; box-shadow: 4px 4px 0 0 var(--tt-amber); }
.cta-band .btn--primary:hover { color: var(--tt-paper) !important; }
.cta-band .btn--ghost { background: transparent; color: var(--tt-paper) !important; border-color: var(--tt-paper); }
.cta-band .btn--ghost:hover { background: var(--tt-paper); color: var(--tt-text) !important; }

/* === Equipment page sections === */
.eq-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 700px) { .eq-stats { grid-template-columns: 1fr; } }
.eq-stat {
    background: var(--tt-bone);
    border: 2px solid var(--tt-black);
    padding: 1rem 1.2rem;
}
.eq-stat .lbl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .75rem;
    letter-spacing: .12em;
    color: var(--tt-orange);
    text-transform: uppercase;
}
.eq-stat .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--tt-text);
    margin-top: .2rem;
    line-height: 1.3;
}
.eq-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.eq-tag {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    padding: 1px 7px;
    color: var(--tt-text);
}

.eq-why {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard-sm);
    padding: 1.5rem;
}
.eq-why h3 { margin-bottom: .8rem; }
.eq-why ul { list-style: none; padding: 0; margin: 0; }
.eq-why li {
    padding: .55rem 0;
    border-bottom: 1px dashed var(--tt-line);
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
}
.eq-why li:last-child { border-bottom: none; }
.eq-why li::before {
    content: '✓';
    color: var(--tt-orange);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.eq-grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 800px) { .eq-grid-2 { grid-template-columns: 1fr; } }

/* === Audience page sections === */
.aud-pain, .aud-outcomes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 700px) { .aud-pain, .aud-outcomes { grid-template-columns: 1fr; } }
.aud-pain-row {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    padding: .9rem 1.1rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    box-shadow: var(--shadow-hard-sm);
}
.aud-pain-row::before {
    content: '⚠';
    color: var(--tt-orange);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.aud-outcome {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    padding: 1.4rem;
    box-shadow: var(--shadow-hard);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.aud-outcome .ico {
    display: inline-flex;
    width: 44px; height: 44px;
    background: var(--tt-amber);
    color: var(--tt-black);
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid var(--tt-black);
}
.aud-outcome h3 { font-size: 1.3rem; }
.aud-outcome p { color: var(--tt-muted); margin: 0; }

/* === Team grid (team.php) === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .team-grid { grid-template-columns: 1fr; } }
.team-card {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.team-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--tt-amber);
    border-bottom: 3px solid var(--tt-black);
}
.team-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.team-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; line-height: 1.05; margin: 0; }
.team-role { font-family: 'JetBrains Mono', monospace; font-size: .8rem; letter-spacing: .08em; color: var(--tt-orange); text-transform: uppercase; }
.team-bio  { font-size: .95rem; line-height: 1.55; color: var(--tt-text); margin: .35rem 0; flex-grow: 1; }
.team-meta {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding-top: .6rem;
    border-top: 2px dashed var(--tt-line);
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: var(--tt-muted);
}
.team-meta i { color: var(--tt-amber); width: 16px; }

/* === Tools (tools/*.php) === */
.tool-shell {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard-orange);
    padding: 2rem;
    max-width: 940px;
    margin: 0 auto;
}
.tool-shell h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    padding-bottom: .5rem;
    border-bottom: 2px dashed var(--tt-line);
}
.tool-shell h2:not(:first-child) { margin-top: 2rem; }
.tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .tool-row { grid-template-columns: 1fr; } }
.tool-row.full { grid-template-columns: 1fr; }
.tool-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.tool-field label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tt-text);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.tool-field label .v {
    font-family: 'JetBrains Mono', monospace;
    color: var(--tt-orange);
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
}
.tool-field input[type=range] {
    width: 100%;
    appearance: none;
    background: transparent;
    height: 22px;
    margin: 0;
}
.tool-field input[type=range]::-webkit-slider-runnable-track {
    height: 8px;
    background: var(--tt-amber);
    border: 2px solid var(--tt-black);
}
.tool-field input[type=range]::-moz-range-track {
    height: 8px;
    background: var(--tt-amber);
    border: 2px solid var(--tt-black);
}
.tool-field input[type=range] { min-height: 44px; padding: 7px 0; }
.tool-field input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 30px; height: 30px;
    background: var(--tt-orange);
    border: 2px solid var(--tt-black);
    margin-top: -13px;
    cursor: pointer;
    box-shadow: 2px 2px 0 0 var(--tt-black);
}
.tool-field input[type=range]::-moz-range-thumb {
    width: 30px; height: 30px;
    background: var(--tt-orange);
    border: 2px solid var(--tt-black);
    cursor: pointer;
    box-shadow: 2px 2px 0 0 var(--tt-black);
}
.tool-field input[type=text],
.tool-field input[type=number],
.tool-field input[type=email],
.tool-field input[type=tel],
.tool-field input[type=date],
.tool-field select,
.tool-field textarea {
    background: var(--tt-bone);
    border: 2px solid var(--tt-black);
    padding: .55rem .7rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .95rem;
    color: var(--tt-text);
    width: 100%;
}
.tool-field input:focus,
.tool-field select:focus,
.tool-field textarea:focus {
    outline: none;
    border-color: var(--tt-orange);
    box-shadow: 3px 3px 0 0 var(--tt-orange);
}
.tool-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--tt-muted);
    margin-top: .25rem;
}

/* Output cards */
.tool-output {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.tool-output-card {
    border: 2px solid var(--tt-black);
    padding: 1rem 1.2rem;
    background: var(--tt-bone);
}
.tool-output-card.is-headline {
    background: var(--tt-black);
    color: var(--tt-paper);
    border-color: var(--tt-orange);
    box-shadow: 4px 4px 0 0 var(--tt-orange);
}
.tool-output-card .lbl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tt-muted);
}
.tool-output-card.is-headline .lbl { color: var(--tt-amber); }
.tool-output-card .v {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--tt-text);
    line-height: 1;
    margin-top: .35rem;
}
.tool-output-card.is-headline .v { color: var(--tt-paper); }
.tool-output-card .sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--tt-muted);
    margin-top: .35rem;
}
.tool-output-card.is-headline .sub { color: rgba(255,255,255,0.6); }

/* IFTA + invoice tables */
.tool-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--tt-black);
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
}
.tool-table th, .tool-table td {
    padding: .55rem .7rem;
    border-bottom: 1px dashed var(--tt-line);
    text-align: left;
}
.tool-table thead th {
    background: var(--tt-black);
    color: var(--tt-bone);
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem;
    letter-spacing: .08em;
}
.tool-table tbody tr:nth-child(even) { background: var(--tt-bone); }
.tool-table tbody tr.is-total {
    background: var(--tt-amber);
    font-weight: 700;
}
.tool-table tbody tr.is-total td { border-bottom: none; }
.tool-table input,
.tool-table select {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    padding: .25rem .35rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
    color: var(--tt-text);
}
.tool-table input:focus,
.tool-table select:focus {
    outline: none;
    border-color: var(--tt-orange);
    background: var(--tt-paper);
}
.tool-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tool-table .neg { color: #c1351a; }
.tool-table .pos { color: var(--tt-success); }

/* Tool buttons */
.tool-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--tt-line);
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: checklist;
}
.checklist > li {
    counter-increment: checklist;
    padding: 1rem 1rem 1rem 3.5rem;
    border-bottom: 2px dashed var(--tt-line);
    position: relative;
}
.checklist > li:last-child { border-bottom: none; }
.checklist > li::before {
    content: counter(checklist, decimal-leading-zero);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--tt-orange);
    position: absolute;
    left: 0; top: 1rem;
    font-size: 1rem;
}
.checklist label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}
.checklist label input[type=checkbox] {
    width: 22px; height: 22px;
    border: 2px solid var(--tt-black);
    accent-color: var(--tt-orange);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.checklist label input[type=checkbox]:checked + .check-text { text-decoration: line-through; color: var(--tt-muted); }
.check-text strong { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .03em; line-height: 1.1; margin-bottom: .25rem; }
.check-text small { display: block; color: var(--tt-muted); font-size: .85rem; line-height: 1.45; margin-top: .25rem; }

.checklist-section { margin-top: 2rem; }
.checklist-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: var(--tt-text);
    border-bottom: 3px solid var(--tt-orange);
    padding-bottom: .4rem;
    margin: 0 0 .5rem 0;
}

.checklist-progress {
    background: var(--tt-bone);
    border: 2px solid var(--tt-black);
    padding: .8rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
}
.checklist-bar {
    flex-grow: 1;
    height: 14px;
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    overflow: hidden;
}
.checklist-bar-fill {
    height: 100%;
    background: var(--tt-orange);
    width: 0;
    transition: width .25s ease;
}

/* Invoice */
.invoice-canvas {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    padding: 2.5rem;
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
    color: var(--tt-text);
}
.invoice-canvas h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: .04em;
}
.invoice-canvas .invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid var(--tt-black);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.invoice-canvas .invoice-meta {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
}
.invoice-canvas .invoice-meta strong { display: block; font-size: 1.1rem; }
.invoice-canvas .invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .invoice-canvas .invoice-grid { grid-template-columns: 1fr; } }
.invoice-canvas .invoice-grid > div {
    border: 2px dashed var(--tt-line);
    padding: 1rem;
}
.invoice-canvas .invoice-grid h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem;
    color: var(--tt-orange);
    letter-spacing: .12em;
    margin: 0 0 .5rem 0;
}
.invoice-canvas .invoice-totals {
    margin-top: 1.5rem;
    width: 100%;
    border-top: 2px solid var(--tt-black);
    padding-top: 1rem;
}
.invoice-canvas .invoice-totals .row {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    padding: .35rem 0;
}
.invoice-canvas .invoice-totals .row.is-grand {
    border-top: 2px solid var(--tt-black);
    margin-top: .5rem;
    padding-top: .75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Print rules — used by checklist + invoice */
@media print {
    body { background: white; color: black; font-size: 11pt; }
    .tt-nav, .tt-foot, .cta-band, .tool-actions, .checklist-progress, .no-print, .trust-strip { display: none !important; }
    .page-hero { background: white !important; color: black !important; padding: 1rem 0 !important; border: none !important; }
    .page-hero h1, .page-hero h1 span { color: black !important; text-shadow: none !important; border: none !important; }
    .page-hero .lede { color: #444 !important; }
    .page-hero .breadcrumbs { display: none; }
    .page-hero .hero-ctas { display: none; }
    .tool-shell { box-shadow: none !important; border: 1px solid #999 !important; padding: 0 !important; max-width: 100% !important; }
    .invoice-canvas { padding: 1rem !important; border: none !important; }
    .checklist > li { break-inside: avoid; }
    .section--dark { background: white !important; color: black !important; }
    a { color: black !important; text-decoration: none !important; }

    /* Tool inputs render as plain text in print so the IFTA calculator,
       freight invoice, and checklist all print as a static record of what
       the user entered (not as empty form boxes). Number/text/select inputs
       become inline values; checkboxes show checked state via Unicode glyph. */
    .tool-shell input[type=text],
    .tool-shell input[type=number],
    .tool-shell input[type=tel],
    .tool-shell input[type=email],
    .tool-shell input[type=date],
    .tool-shell select,
    .invoice-canvas input,
    .invoice-canvas select {
        appearance: none !important;
        -webkit-appearance: none !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #999 !important;
        padding: 0 !important;
        margin: 0 !important;
        font: inherit !important;
        color: black !important;
        box-shadow: none !important;
        min-height: 0 !important;
        width: auto !important;
        display: inline-block !important;
    }
    .tool-shell select { padding-right: 0 !important; }
    .tool-shell input[type=range] { display: none !important; }

    /* Checklist checkboxes -- show as Unicode squares so PDF readers see state */
    .checklist input[type=checkbox] { display: none !important; }
    .checklist label::before {
        content: '\2610';   /* empty box */
        margin-right: .5em;
        font-size: 1.1em;
    }
    .checklist input[type=checkbox]:checked + .check-text::before {
        content: '\2611';   /* checked box */
        margin-right: .5em;
        font-size: 1.1em;
        font-weight: bold;
    }

    /* Print-friendly table chrome */
    .tool-table th, .tool-table td,
    .invoice-canvas table th, .invoice-canvas table td {
        border: 1px solid #999 !important;
        padding: .35em .5em !important;
    }
    .tool-table th,
    .invoice-canvas table th {
        background: #eee !important;
        color: black !important;
    }

    /* Avoid awkward page breaks inside tool sections + invoice rows */
    .tool-output-card, .tool-table tr, .invoice-canvas { break-inside: avoid; }

    /* Glossary terms in printed posts collapse back to plain text */
    .glossary-term { text-decoration: none !important; color: black !important; cursor: text; }
}

/* === Sitemap (sitemap.php) === */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.sitemap-col--wide { grid-column: span 2; }
@media (max-width: 760px) { .sitemap-col--wide { grid-column: auto; } }

.sitemap-col h2.sitemap-h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: var(--tt-text);
    border-bottom: 3px solid var(--tt-orange);
    padding-bottom: .5rem;
    margin: 0 0 .9rem 0;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.sitemap-h2 .sitemap-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    background: var(--tt-amber);
    color: var(--tt-black);
    padding: 1px 7px;
    border: 2px solid var(--tt-black);
    margin-left: auto;
}
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-list li { padding: .25rem 0; }
.sitemap-list a {
    color: var(--tt-text) !important;
    text-decoration: none !important;
    font-size: .95rem;
    line-height: 1.45;
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
}
.sitemap-list a:hover { color: var(--tt-orange) !important; }
.sitemap-list a i { color: var(--tt-orange); font-size: .85em; flex-shrink: 0; }
.sitemap-list--two-col {
    columns: 2;
    column-gap: 1rem;
}
.sitemap-list--two-col li { break-inside: avoid; }
.sitemap-abbr { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--tt-muted); }

/* === City grid (state pages) === */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.city-card {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard-sm);
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: transform .12s ease, box-shadow .12s ease;
}
.city-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--tt-orange); }
.city-card .city-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    line-height: 1.05;
    margin: 0;
    color: var(--tt-text);
}
.city-card .city-name i { color: var(--tt-orange); margin-right: .35rem; font-size: .9em; }
.city-card .city-note {
    font-size: .95rem;
    line-height: 1.55;
    color: var(--tt-muted);
    margin: 0;
}

/* === Reviews grid (reviews.php) === */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 800px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard-sm);
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    font-size: .85rem;
}
.review-platform {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--tt-black);
    color: var(--tt-bone);
    padding: 2px 8px;
}
.review-platform--google { background: #4285f4; }
.review-platform--bbb    { background: #00558b; }
.review-stars { color: var(--tt-amber); font-size: 1.1rem; letter-spacing: 1px; }
.review-stars .off { color: var(--tt-line); }
.review-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    color: var(--tt-muted);
    margin-left: auto;
}
.review-body { font-size: 1rem; line-height: 1.55; font-style: italic; margin: 0; }
.review-author {
    border-top: 2px dashed var(--tt-line);
    padding-top: .6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
}
.review-author strong { font-family: 'Bebas Neue', sans-serif; font-size: .95rem; letter-spacing: .04em; color: var(--tt-text); margin-right: .5rem; }
.review-author span { color: var(--tt-muted); }

/* === Audience comparison table (lease-on vs lease-purchase vs W-2) === */
.aud-compare-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 2px solid var(--tt-amber);
    background: var(--tt-steel-2);
}
.aud-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    color: var(--tt-bone);
    min-width: 580px;
}
.aud-compare th, .aud-compare td {
    padding: .75rem .9rem;
    text-align: left;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    vertical-align: top;
}
.aud-compare th {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .95rem;
    letter-spacing: .08em;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    background: rgba(0,0,0,0.25);
    border-bottom: 2px solid var(--tt-amber);
}
.aud-compare th.is-us, .aud-compare td.is-us {
    background: rgba(255, 87, 34, 0.12);
    color: var(--tt-paper);
}
.aud-compare th.is-us {
    color: var(--tt-amber);
}
.aud-compare td.lbl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .9rem;
    letter-spacing: .06em;
    color: var(--tt-amber);
    text-transform: uppercase;
    width: 25%;
}
.aud-compare tr:last-child td { border-bottom: none; }

/* === Simple page wrap (for privacy / terms) === */
.simple-page {
    max-width: 760px;
    margin: 0 auto;
}
.simple-page h2 { margin-top: 2.5rem; margin-bottom: .8rem; }
.simple-page h2:first-child { margin-top: 0; }
.simple-page p { margin-bottom: 1rem; line-height: 1.65; }
.simple-page ul { padding-left: 1.5rem; line-height: 1.65; margin-bottom: 1rem; }
.simple-page .updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--tt-muted);
    border-bottom: 2px dashed var(--tt-line);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* === Contact page === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard);
    padding: 1.8rem;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info .row {
    padding: .8rem 0;
    border-bottom: 1px dashed var(--tt-line);
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}
.contact-info .row:last-child { border-bottom: none; }
.contact-info .row .ico {
    color: var(--tt-orange);
    font-size: 1.2rem;
    width: 24px;
    margin-top: 2px;
}
.contact-info .row .lbl {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tt-muted);
}
.contact-info .row .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--tt-text);
}

/* === Services hub cards === */
.svc-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.svc-card-link:hover .svc-card { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--tt-orange); }
.svc-card-link .svc-card { transition: transform .12s ease, box-shadow .12s ease; }

.eq-hub-card {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    text-decoration: none;
    color: var(--tt-text);
    height: 100%;
    transition: transform .12s ease, box-shadow .12s ease;
}
.eq-hub-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--tt-orange); color: var(--tt-text); }
.eq-hub-card .ico {
    display: inline-flex;
    width: 44px; height: 44px;
    background: var(--tt-amber);
    color: var(--tt-black);
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid var(--tt-black);
}
.eq-hub-card .nm { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; line-height: 1.1; margin-top: .2rem; }
.eq-hub-card .sub { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--tt-muted); }
.eq-hub-card .pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--tt-orange);
    font-weight: 700;
    margin-top: auto;
}
.eq-hub-card .pct sup { font-size: .55em; color: var(--tt-text); }

/* === Equipment hub grid (services.php) — 4-up to 2-up to 1-up === */
.eq-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 1000px) { .eq-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px)  { .eq-hub-grid { grid-template-columns: 1fr; } }

/* === Section "view full page" link === */
.view-full {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: .06em;
    color: var(--tt-orange) !important;
    text-decoration: none !important;
    margin-top: 1.5rem;
    border-bottom: 2px solid var(--tt-orange);
    padding-bottom: 2px;
}
.view-full:hover { color: var(--tt-amber) !important; border-color: var(--tt-amber); }

/* === Mobile menu button (header) === */
.tt-menu-btn {
    display: none;
    background: transparent;
    color: var(--tt-bone);
    border: 2px solid var(--tt-bone);
    /* 44x44 minimum hit-zone (WCAG AAA). Drivers tap one-handed in cabs. */
    min-width: 44px;
    min-height: 44px;
    padding: .35rem .65rem;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}
@media (max-width: 900px) {
    .tt-menu-btn { display: inline-flex; }
    /* Mobile drawer: pinned below nav, scrolls within itself if longer than viewport,
       so it never pushes the hero CTA off-screen when expanded.
       --nav-h is defined in :root and consumed here so nav-height changes
       only need editing in one place. dvh declared after vh for graceful
       fallback on older browsers (pre-Safari 15.4 / pre-Chrome 108). */
    .tt-nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        max-height: calc(100vh - var(--nav-h));
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        background: var(--tt-black);
        flex-direction: column;
        padding: 1rem 1.25rem 1.5rem;
        border-bottom: 4px solid var(--tt-orange);
        gap: .25rem;
        z-index: 99;
    }
    .tt-nav-links.is-open { display: flex; }
    /* Indent + tint nested dropdowns so the hierarchy reads on mobile */
    .tt-nav-links .dropdown {
        position: static;
        min-width: 0;
        box-shadow: none;
        border: none;
        padding: .25rem 0 .5rem 1.25rem;
        border-left: 2px solid var(--tt-amber);
        margin: .15rem 0 .35rem;
    }
    .tt-nav-links .dropdown a {
        font-size: .92rem;
        padding: .55rem .5rem;
    }
}

/* === Invoice missing-field marker === */
.inv-missing {
    color: #c0392b !important;
    font-style: italic;
    font-weight: 400 !important;
    background: rgba(255, 87, 34, 0.08);
    padding: 0 .25rem;
}
@media print { .inv-missing { background: transparent !important; color: #aa0000 !important; } }

/* === Glossary (resources.php) === */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.glossary-item {
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    border-left: 6px solid var(--tt-orange);
    padding: 1rem 1.1rem;
}
.glossary-item dt {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: .04em;
    color: var(--tt-text);
    margin-bottom: .25rem;
}
.glossary-item dd {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--tt-muted);
}

/* === Blog === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.blog-card {
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--tt-text);
    transition: transform .12s ease, box-shadow .12s ease;
}
.blog-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--tt-orange); color: var(--tt-text); }
.blog-card-icon {
    display: inline-flex;
    width: 52px; height: 52px;
    background: var(--tt-amber);
    color: var(--tt-black);
    border: 2px solid var(--tt-black);
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.blog-card .cat {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem;
    color: var(--tt-orange);
    letter-spacing: .12em;
    margin-bottom: .35rem;
}
.blog-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 .6rem 0;
    letter-spacing: .02em;
}
.blog-card p {
    font-size: .95rem;
    line-height: 1.5;
    color: var(--tt-muted);
    margin: 0;
    flex-grow: 1;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 2px dashed var(--tt-line);
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: var(--tt-muted);
}

/* Blog listing — featured (first card spans full row) */
.blog-grid .blog-card.is-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem;
}
.blog-grid .blog-card.is-featured .blog-card-icon {
    width: 90px; height: 90px;
    font-size: 2.5rem;
    flex-shrink: 0;
    margin-bottom: 0;
}
.blog-grid .blog-card.is-featured h3 { font-size: 2rem; }
.blog-grid .blog-card.is-featured p { font-size: 1.05rem; }
.blog-grid .blog-card.is-featured > div { display: flex; flex-direction: column; flex-grow: 1; }
@media (max-width: 700px) {
    .blog-grid .blog-card.is-featured { flex-direction: column; padding: 1.5rem; }
    .blog-grid .blog-card.is-featured .blog-card-icon { width: 52px; height: 52px; font-size: 1.5rem; margin-bottom: 1rem; }
    .blog-grid .blog-card.is-featured h3 { font-size: 1.5rem; }
}

/* Blog post body */
.post-hero { background: var(--tt-black); color: var(--tt-bone); padding: 4rem 0 3rem; }
.post-hero .container { max-width: 880px; }
.post-hero .breadcrumbs { margin-bottom: 1.25rem; }
.post-hero .cat-eyebrow {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--tt-amber);
    letter-spacing: .14em;
    background: rgba(255, 184, 0, 0.12);
    padding: .35rem .9rem;
    border-left: 3px solid var(--tt-amber);
    margin-bottom: 1rem;
}
.post-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: .02em;
    margin: 0 0 1rem 0;
    color: var(--tt-bone);
}
.post-hero .lede { font-size: 1.2rem; line-height: 1.55; color: rgba(245, 241, 232, 0.85); margin: 0 0 1.5rem 0; }
.post-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    color: rgba(245, 241, 232, 0.65);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(245, 241, 232, 0.15);
}
.post-meta .by { color: var(--tt-orange); }

.post-body { padding: 3rem 0; }
.post-body .container { max-width: 720px; }
.post-body h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: .03em;
    margin: 2.5rem 0 1rem 0;
    color: var(--tt-text);
    border-bottom: 3px solid var(--tt-orange);
    padding-bottom: .35rem;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: .03em;
    margin: 1.75rem 0 .8rem 0;
    color: var(--tt-text);
}
.post-body p { font-size: 1.06rem; line-height: 1.7; margin: 0 0 1.1rem 0; }
.post-body ul, .post-body ol { font-size: 1.06rem; line-height: 1.65; padding-left: 1.5rem; margin: 0 0 1.25rem 0; }
.post-body li { margin-bottom: .5rem; }
.post-body strong { font-weight: 700; color: var(--tt-text); }
.post-body a { color: var(--tt-orange); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--tt-amber); }
.post-body blockquote {
    border-left: 4px solid var(--tt-orange);
    background: var(--tt-bone);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.05rem;
}
.post-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: .92em;
    background: var(--tt-bone);
    padding: .1em .35em;
    border: 1px solid var(--tt-line);
}
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
}
.post-body table th, .post-body table td {
    border: 2px solid var(--tt-black);
    padding: .65rem .8rem;
    text-align: left;
}
.post-body table th {
    background: var(--tt-black);
    color: var(--tt-bone);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .04em;
}
.post-body table tbody tr:nth-child(even) { background: var(--tt-bone); }

/* Mobile: blog post tables become horizontally scrollable instead of overflowing
   the viewport. `display: block` on the table turns it into a flow container
   that respects max-width; `overflow-x: auto` lets the row content scroll. */
@media (max-width: 600px) {
    .post-body table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: .88rem;
    }
    .post-body table th,
    .post-body table td {
        padding: .5rem .55rem;
        white-space: nowrap;
    }
    /* Allow long label cells (first column) to wrap rather than stretch the
       horizontal scroll past the screen for no reason. */
    .post-body table td:first-child {
        white-space: normal;
        min-width: 9rem;
    }
}

/* Glossary terms auto-linked inside post bodies. Visually distinct from
   regular links (which are orange + underlined) so drivers know it's a
   definition link, not a navigation. Dotted underline + amber color. */
.post-body .glossary-term {
    color: var(--tt-text);
    text-decoration: underline dotted var(--tt-amber);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    cursor: help;
    font-weight: 600;
}
.post-body .glossary-term:hover {
    color: var(--tt-orange);
    text-decoration-style: solid;
}

/* Anchor target highlight when jumping to a specific glossary term */
.glossary-item:target {
    box-shadow: 0 0 0 4px var(--tt-amber);
    animation: glossary-flash 1.4s ease-out;
}
@keyframes glossary-flash {
    0%   { background: rgba(255, 184, 0, 0.4); }
    100% { background: var(--tt-paper); }
}

/* Callout box (key takeaway / warning / pull-quote) */
.post-callout {
    background: var(--tt-bone);
    border: 3px solid var(--tt-black);
    border-left: 8px solid var(--tt-orange);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}
.post-callout .lbl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .95rem;
    color: var(--tt-orange);
    letter-spacing: .14em;
    margin-bottom: .35rem;
}
.post-callout p:last-child { margin-bottom: 0; }
.post-callout.is-warn { border-left-color: #c0392b; }
.post-callout.is-warn .lbl { color: #c0392b; }

/* Author bio */
.author-bio {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--tt-bone);
    border: 2px solid var(--tt-black);
    padding: 1.25rem 1.5rem;
    margin-top: 2.5rem;
}
.author-bio .avatar {
    width: 60px; height: 60px;
    background: var(--tt-amber);
    border: 2px solid var(--tt-black);
    color: var(--tt-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.author-bio .lbl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem;
    color: var(--tt-orange);
    letter-spacing: .14em;
    margin-bottom: .15rem;
}
.author-bio h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    margin: 0 0 .15rem 0;
    letter-spacing: .03em;
}
.author-bio .role { font-size: .85rem; color: var(--tt-muted); margin-bottom: .35rem; }
.author-bio p { font-size: .95rem; line-height: 1.55; margin: 0; }

/* Related posts */
.related-posts h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: .04em;
    margin: 0 0 1rem 0;
}

/* Category filter pills */
.cat-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem 0;
}
.cat-pill {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .9rem;
    letter-spacing: .08em;
    padding: .35rem .85rem;
    border: 2px solid var(--tt-black);
    background: var(--tt-paper);
    color: var(--tt-text);
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease;
}
.cat-pill:hover { background: var(--tt-amber); }
.cat-pill.is-active { background: var(--tt-orange); color: var(--tt-bone); border-color: var(--tt-orange); }

/* === Utility === */
.text-center { text-align: center; }
/* Visually hidden but available to screen readers / SEO crawlers */
.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;
}
.mt-3 { margin-top: 1.5rem; }

/* === 404 page — visual mark, grid override, tip + contact strip === */

/* Tight section padding for between-content strips */
.section--tight   { padding: 2rem 0; }
.section--bone    { background: var(--tt-bone); }

/* Big 404 mark sitting above the H1 in the hero */
.page-hero--404 .err-mark {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4.5rem, 13vw, 8.5rem);
    line-height: .9;
    letter-spacing: -.04em;
    color: var(--tt-orange);
    text-shadow: 6px 6px 0 var(--tt-black);
    margin: .2rem 0 .6rem;
    -webkit-text-stroke: 2px var(--tt-black);
    paint-order: stroke fill;
}

/* "If you typed the URL by hand…" tip below the lede */
.err-tip {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1rem;
    margin-top: 1rem;
    background: var(--tt-paper);
    border: 2px solid var(--tt-black);
    box-shadow: var(--shadow-hard-sm);
    font-size: .88rem;
    color: var(--tt-text);
    max-width: 64ch;
}
.err-tip > .fa-circle-info { color: var(--tt-orange); margin-top: .15rem; }
.err-tip code {
    background: var(--tt-bone);
    padding: 1px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .85em;
    border: 1px solid var(--tt-black);
}
.err-tip a { color: var(--tt-orange); font-weight: 700; text-decoration: underline; }

/* 3-column grid variant — used on the 404 so 6 cards lay out as a clean 2x3 instead of 4+2 */
.eq-hub-grid.eq-hub-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) { .eq-hub-grid.eq-hub-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .eq-hub-grid.eq-hub-grid--3 { grid-template-columns: 1fr; } }

/* Recent-from-blog heading on the 404 */
.err-recent-h {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    margin: .2rem 0 1.4rem;
    color: var(--tt-text);
    letter-spacing: .005em;
}

/* Contact strip — replaces the inline-styled paragraph */
.err-contact-strip {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.2rem;
    background: var(--tt-paper);
    border: 3px solid var(--tt-black);
    box-shadow: var(--shadow-hard-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: .92rem;
    max-width: 920px;
    margin: 0 auto;
    color: var(--tt-text);
    flex-wrap: wrap;
}
.err-contact-strip > .fa-headset {
    width: 40px; height: 40px;
    background: var(--tt-amber);
    color: var(--tt-black);
    border: 2px solid var(--tt-black);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex: 0 0 auto;
}
.err-link {
    color: var(--tt-orange);
    font-weight: 700;
    text-decoration: underline;
}
.err-link:hover { color: var(--tt-amber); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    html { scroll-behavior: auto; }
}
