/* Free trucking tools (trucking-tools.html and the tool pages). Sky Transport Solutions colors:
   navy #3b5978 (primary-blue), deep navy #1e3a5f, yellow #f5b301 (accent-yellow), text gray #5e5a5c. */

.tk-page { font-family: 'Inter', system-ui, sans-serif; color: #1f2d3d; }
.tk-page h1, .tk-page h2, .tk-page h3 { font-family: 'Poppins', 'Inter', sans-serif; }

/* ---------- hero ---------- */
.tk-hero { background: #1e3a5f; color: #fff; padding: 2.25rem 0 2.5rem; }
.tk-inner { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.tk-crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.tk-crumbs a { color: inherit; }
.tk-crumbs a:hover { color: #fff; }
.tk-crumbs span[aria-hidden] { margin: 0 .4rem; }
.tk-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #f5b301; margin-bottom: .7rem; }
.tk-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.12; margin: 0 0 .7rem; max-width: 24ch; }
.tk-hero p.tk-lede { font-size: 1.08rem; line-height: 1.6; color: #d5e0ec; max-width: 46rem; margin: 0; }
.tk-hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem; font-size: .9rem; color: #d5e0ec; }
.tk-hero-points i { color: #f5b301; margin-right: .4rem; }

/* ---------- layout ---------- */
.tk-wrap { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.tk-grid.tk-grid-wide-left { grid-template-columns: 1.25fr 1fr; }
.tk-stack > * + * { margin-top: 1.5rem; }
@media (max-width: 900px) { .tk-grid, .tk-grid.tk-grid-wide-left { grid-template-columns: 1fr; } }

.tk-card { background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 1.4rem; box-shadow: 0 1px 2px rgba(30,58,95,.05); }
.tk-card h2 { font-size: 1.2rem; font-weight: 700; color: #3b5978; margin: 0 0 1rem; }
.tk-card h3 { font-size: 1rem; font-weight: 700; color: #3b5978; margin: 1.25rem 0 .6rem; }
.tk-sticky { position: sticky; top: 6.5rem; }
@media (max-width: 900px) { .tk-sticky { position: static; } }

/* ---------- form fields ---------- */
.tk-field { margin-bottom: .95rem; }
.tk-field label, .tk-label { display: block; font-size: .88rem; font-weight: 600; color: #1f2d3d; margin-bottom: .3rem; }
.tk-hint { display: block; font-size: .78rem; color: #5e5a5c; margin-top: .25rem; font-weight: 400; }
.tk-input, .tk-select { width: 100%; padding: .65rem .75rem; border: 2px solid #e3e8ee; border-radius: 8px; font-size: 1rem;
    background: #fff; color: #1f2d3d; transition: border-color .15s; }
.tk-input:focus, .tk-select:focus { outline: none; border-color: #f5b301; }
.tk-affix { position: relative; }
.tk-affix > span { position: absolute; top: 50%; transform: translateY(-50%); color: #5e5a5c; font-size: .95rem; pointer-events: none; }
.tk-affix.tk-pre > span { left: .75rem; }
.tk-affix.tk-pre > .tk-input { padding-left: 1.6rem; }
.tk-affix.tk-post > span { right: .75rem; }
.tk-affix.tk-post > .tk-input { padding-right: 3.6rem; }
.tk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.tk-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
@media (max-width: 560px) { .tk-row2, .tk-row3 { grid-template-columns: 1fr; } }

.tk-choice { display: flex; flex-wrap: wrap; gap: .5rem; }
.tk-choice label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border: 2px solid #e3e8ee;
    border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer; margin: 0; background: #fff; }
.tk-choice input { accent-color: #3b5978; }
.tk-choice label:has(input:checked) { border-color: #3b5978; background: #eef3f8; color: #3b5978; }

.tk-check { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .2rem; border-bottom: 1px solid #eef1f4; cursor: pointer; }
.tk-check:last-child { border-bottom: 0; }
.tk-check input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: #3b5978; flex: none; }
.tk-check small { display: block; color: #5e5a5c; font-size: .8rem; margin-top: .15rem; }

.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #f5b301; color: #1e3a5f;
    font-weight: 700; padding: .75rem 1.4rem; border-radius: 8px; border: 0; cursor: pointer; transition: opacity .15s; text-decoration: none; }
.tk-btn:hover { opacity: .9; }
.tk-btn[disabled] { opacity: .6; cursor: default; }
.tk-btn-navy { background: #3b5978; color: #fff; }
.tk-btn-ghost { background: #fff; color: #3b5978; border: 2px solid #3b5978; }

/* ---------- results ---------- */
.tk-big { background: #1e3a5f; color: #fff; border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.tk-big .tk-big-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #f5b301; font-weight: 700; }
.tk-big .tk-big-value { font-family: 'Poppins', sans-serif; font-size: 2.1rem; font-weight: 700; line-height: 1.15; margin-top: .15rem; }
.tk-big .tk-big-note { font-size: .88rem; color: #d5e0ec; margin-top: .25rem; }
.tk-lines { width: 100%; border-collapse: collapse; }
.tk-lines td { padding: .55rem 0; border-bottom: 1px solid #eef1f4; font-size: .95rem; vertical-align: top; }
.tk-lines td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 1rem; }
.tk-lines tr:last-child td { border-bottom: 0; }
.tk-lines tr.tk-total td { border-top: 2px solid #3b5978; font-weight: 700; color: #3b5978; }
.tk-good { color: #1b7a43; }
.tk-warn { color: #a15c00; }
.tk-bad { color: #b3261e; }
.tk-note { background: #fff8e1; border-left: 4px solid #f5b301; border-radius: 6px; padding: .8rem 1rem; font-size: .9rem; color: #4a3b00; margin-top: 1rem; }
.tk-note.tk-note-blue { background: #eef3f8; border-left-color: #3b5978; color: #1e3a5f; }
.tk-note.tk-note-red { background: #fdecea; border-left-color: #b3261e; color: #7a1a14; }
.tk-note.tk-note-green { background: #e8f5ec; border-left-color: #1b7a43; color: #14532d; }
.tk-pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #eef3f8; color: #3b5978; }
.tk-pill.tk-pill-good { background: #e8f5ec; color: #1b7a43; }
.tk-pill.tk-pill-warn { background: #fff3d6; color: #8a5a00; }
.tk-pill.tk-pill-bad { background: #fdecea; color: #b3261e; }
.tk-meter { height: 12px; background: #e3e8ee; border-radius: 999px; overflow: hidden; }
.tk-meter > div { height: 100%; background: #f5b301; border-radius: 999px; transition: width .3s; }
.tk-hidden { display: none !important; }

/* ---------- email-me box ---------- */
.tk-lead { margin-top: 1.75rem; background: #fff; border: 1px solid #e3e8ee; border-top: 4px solid #f5b301; border-radius: 12px; padding: 1.5rem; }
.tk-lead-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.75rem; align-items: start; }
@media (max-width: 900px) { .tk-lead-grid { grid-template-columns: 1fr; } }
.tk-lead h2 { font-size: 1.3rem; font-weight: 700; color: #3b5978; margin: 0 0 .5rem; }
.tk-lead p { color: #5e5a5c; margin: 0 0 .6rem; line-height: 1.55; }
.tk-lead ul { margin: .4rem 0 0; padding: 0; list-style: none; color: #1f2d3d; font-size: .93rem; }
.tk-lead ul li { padding: .2rem 0 .2rem 1.5rem; position: relative; }
.tk-lead ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #f5b301; position: absolute; left: 0; }
.tk-lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tk-lead-msg { margin-top: .8rem; font-size: .92rem; font-weight: 600; }
.tk-lead-msg.tk-ok { color: #1b7a43; }
.tk-lead-msg.tk-err { color: #b3261e; }
.tk-lead-fine { font-size: .76rem; color: #8a8f98; margin-top: .7rem; }

/* ---------- reading sections ---------- */
.tk-prose { margin-top: 2.5rem; max-width: 52rem; }
.tk-prose h2 { font-size: 1.45rem; font-weight: 700; color: #3b5978; margin: 2rem 0 .7rem; }
.tk-prose h3 { font-size: 1.08rem; font-weight: 700; color: #1f2d3d; margin: 1.3rem 0 .4rem; }
.tk-prose p, .tk-prose li { color: #45494f; line-height: 1.7; }
.tk-prose p { margin: 0 0 .9rem; }
.tk-prose ul, .tk-prose ol { margin: 0 0 1rem 1.3rem; }
.tk-prose ul { list-style: disc; }
.tk-prose ol { list-style: decimal; }
.tk-prose a { color: #3b5978; font-weight: 600; text-decoration: underline; }
.tk-faq details { background: #fff; border: 1px solid #e3e8ee; border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.tk-faq summary { font-weight: 700; color: #1f2d3d; cursor: pointer; }
.tk-faq details p { margin: .6rem 0 0; }
.tk-sources { font-size: .88rem; }

/* ---------- more tools + call box ---------- */
.tk-more { margin-top: 2.5rem; }
.tk-more h2 { font-size: 1.3rem; font-weight: 700; color: #3b5978; margin: 0 0 1rem; }
.tk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .tk-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tk-tiles { grid-template-columns: 1fr; } }
.tk-tile { display: block; background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 1.1rem 1.15rem; text-decoration: none;
    color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; height: 100%; }
.tk-tile:hover { border-color: #f5b301; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,58,95,.08); }
.tk-tile i { color: #3b5978; font-size: 1.25rem; background: #eef3f8; width: 2.6rem; height: 2.6rem; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: .7rem; }
.tk-tile strong { display: block; color: #1f2d3d; font-size: 1rem; margin-bottom: .25rem; }
.tk-tile span { color: #5e5a5c; font-size: .88rem; line-height: 1.5; }
.tk-group-title { font-family: 'Poppins', sans-serif; font-size: 1.35rem; font-weight: 700; color: #3b5978; margin: 2.25rem 0 .35rem; }
.tk-group-sub { color: #5e5a5c; margin: 0 0 1rem; }

.tk-call { margin-top: 2.5rem; background: #1e3a5f; color: #fff; border-radius: 14px; padding: 1.75rem; display: flex; flex-wrap: wrap;
    gap: 1.25rem; align-items: center; justify-content: space-between; }
.tk-call h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .3rem; color: #fff; }
.tk-call p { margin: 0; color: #d5e0ec; max-width: 38rem; }
.tk-call-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.tk-call .tk-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

@media print {
    #header-placeholder, #footer-placeholder, .tk-lead, .tk-more, .tk-call, .tk-noprint { display: none !important; }
    .tk-hero { background: #fff; color: #000; padding: 0 0 1rem; }
    .tk-hero h1, .tk-hero p.tk-lede { color: #000; }
}

/* ---------- guides (trucking-guides.html and guide-*.html, generated by Tools/ToolGuides/build.py) ---------- */
.tk-guide { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2.5rem; align-items: start; }
@media (max-width: 1000px) { .tk-guide { grid-template-columns: 1fr; } .tk-guide aside { order: -1; } }
.tk-guide article.tk-prose { margin-top: 0; max-width: none; }
.tk-guide article.tk-prose h2 { scroll-margin-top: 7rem; }
.tk-guide article.tk-prose h2:first-child { margin-top: 0; }
.tk-toc { background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 1.1rem 1.2rem; position: sticky; top: 6.5rem; }
@media (max-width: 1000px) { .tk-toc { position: static; } }
.tk-toc strong { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #3b5978; margin-bottom: .6rem; }
.tk-toc a { display: block; padding: .3rem 0; font-size: .9rem; color: #45494f; text-decoration: none; line-height: 1.35; }
.tk-toc a:hover { color: #3b5978; text-decoration: underline; }
.tk-toc .tk-btn { display: flex; margin-top: .9rem; font-size: .9rem; padding: .6rem .8rem; color: #1e3a5f; }
.tk-toc .tk-btn:hover { text-decoration: none; color: #1e3a5f; }
.tk-meta { font-size: .85rem; color: #d5e0ec; margin-top: 1rem; }
.tk-table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.tk-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
.tk-table th { background: #3b5978; color: #fff; text-align: left; padding: .6rem .75rem; font-weight: 600; }
.tk-table td { border: 1px solid #e3e8ee; padding: .6rem .75rem; vertical-align: top; color: #45494f; line-height: 1.5; }
.tk-table tbody tr:nth-child(even) td { background: #f6f8fa; }
.tk-prose ol.tk-steps { list-style: none; margin-left: 0; counter-reset: tkstep; }
.tk-prose ol.tk-steps li { counter-increment: tkstep; position: relative; padding: 0 0 .7rem 2.4rem; }
.tk-prose ol.tk-steps li::before { content: counter(tkstep); position: absolute; left: 0; top: .1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: #3b5978; color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tk-links { list-style: none !important; margin: 0 0 1rem !important; padding: 0; }
.tk-links li { padding: .45rem 0; border-bottom: 1px solid #eef1f4; }
.tk-links li:last-child { border-bottom: 0; }
.tk-links span { display: block; font-size: .88rem; color: #5e5a5c; }
.tk-group-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
@media (max-width: 760px) { .tk-group-list { grid-template-columns: 1fr; } }
.tk-guide-link { display: block; background: #fff; border: 1px solid #e3e8ee; border-left: 4px solid #3b5978; border-radius: 10px; padding: .9rem 1.1rem;
    text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.tk-guide-link:hover { border-left-color: #f5b301; box-shadow: 0 4px 12px rgba(30,58,95,.08); }
.tk-guide-link strong { display: block; color: #1f2d3d; margin-bottom: .2rem; }
.tk-guide-link span { color: #5e5a5c; font-size: .88rem; line-height: 1.45; }
.tk-guide-link em { font-style: normal; display: inline-block; margin-top: .4rem; font-size: .72rem; font-weight: 700; color: #8a5a00; background: #fff3d6; padding: .12rem .5rem; border-radius: 999px; }
@media print { .tk-toc, .tk-guide aside { display: none !important; } .tk-guide { display: block; } }
