/* Shared by every page under /blog. Plain static HTML on purpose: a crawler
   reads these without running the React app. Colours mirror the landing page
   (charcoal + brand teal). No per-truck price appears anywhere in /blog — the
   rate card is served by the API, and a number written into static HTML is the
   one that goes stale (see the note in public/index.html). */

:root {
    --bg: #0c0f14;
    --bg-2: #12161e;
    --bg-3: #1a1f2a;
    --ink: #f5f7fa;
    --ink-dim: #cdd3dd;
    --muted: #8891a3;
    --teal: #1fb6ce;
    --teal-2: #5dd0e3;
    --navy: #04285a;
    --line: rgba(255, 255, 255, 0.13);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-dim);
    font-family: "Barlow", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-2); }
a:hover { color: var(--ink); }

.bar {
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.bar-in {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    font-family: "Barlow Condensed", system-ui, sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
}
.brand span { color: var(--teal); }
.bar-links { display: flex; align-items: center; gap: 18px; font-size: 16px; }
.bar-links a { text-decoration: none; color: var(--ink-dim); }
.bar-links a:hover { color: var(--ink); }

.btn {
    display: inline-block;
    background: var(--teal);
    color: #04121a !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 11px 20px;
    border-radius: 8px;
}
.btn:hover { background: var(--teal-2); }

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 20px 72px;
}

h1, h2, h3 {
    font-family: "Barlow Condensed", system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 1.9rem; font-weight: 700; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.35rem; font-weight: 700; margin: 1.6em 0 0.4em; }

.meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.lede { font-size: 1.15em; color: var(--ink); }

ul, ol { padding-left: 1.3em; }
li { margin: 0.35em 0; }
strong { color: var(--ink); }

.note {
    border-left: 3px solid var(--teal);
    background: var(--bg-2);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 1.4em 0;
    font-size: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 16px;
}
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }

.cta {
    margin: 3em 0 0;
    padding: 26px 24px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.cta h2 { margin: 0 0 8px; font-size: 1.6rem; }
.cta p { margin: 0 0 16px; }

.list { list-style: none; padding: 0; margin: 28px 0 0; }
.list li { margin: 0 0 14px; }
.list a {
    display: block;
    padding: 18px 20px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
}
.list a:hover { border-color: var(--teal); }
.list .t {
    display: block;
    font-family: "Barlow Condensed", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.list .d { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); }

/* Rate-per-mile calculator */
.calc {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin: 1.6em 0;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.calc input {
    width: 100%;
    font: inherit;
    font-size: 18px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}
.calc input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.calc-out { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--bg-3); border-radius: 10px; padding: 12px 14px; }
.stat b {
    display: block;
    font-family: "Barlow Condensed", system-ui, sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--ink);
}
.stat span { font-size: 14px; color: var(--muted); }
.stat.good b { color: #4ade80; }
.stat.bad b { color: #f87171; }

footer {
    border-top: 1px solid var(--line);
    padding: 26px 20px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}
footer a { color: var(--muted); }

@media (max-width: 520px) {
    body { font-size: 17px; }
    .calc-grid, .calc-out { grid-template-columns: 1fr; }
    .bar-links a.hide-sm { display: none; }
}
