/* Trucker tools: calculators + assistant (tokens come from the shared :root in _inc/site.php) */
.tl-hero { background: var(--navy, #12172a); color: #fff; padding: 44px 24px 64px; text-align: center; }
.tl-tag { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #8fa6f5; margin-bottom: 10px; }
.tl-hero h1 { font-family: var(--font-head, 'Oswald', sans-serif); font-weight: 700; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; margin: 0 auto 12px; max-width: 840px; }
.tl-hero p { font-size: 16.5px; line-height: 1.6; color: #c7cbdb; max-width: 680px; margin: 0 auto; }
.tl-main { max-width: 1100px; margin: -34px auto 0; padding: 0 16px 56px; position: relative; }
.tl-card { background: #fff; border: 1px solid var(--border, #e3e6ee); border-radius: 16px; padding: 24px; box-shadow: 0 16px 48px rgba(18,23,42,.10); margin-bottom: 20px; }
@media (max-width: 560px) { .tl-card { padding: 18px 14px; } }
.tl-section { margin: 28px 0; }
.tl-section h2, .tl-card h2 { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 26px; margin-bottom: 12px; }
.tl-section p, .tl-card > p { color: var(--text-muted, #5b6272); line-height: 1.75; margin-bottom: 12px; }
.tl-section ul { color: var(--text-muted, #5b6272); line-height: 1.75; padding-left: 20px; }
.tl-section a, .tl-card a.lnk { color: var(--accent, #3457e6); font-weight: 600; text-decoration: underline; }
.tl-section details { border: 1px solid var(--border, #e3e6ee); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.tl-section summary { font-weight: 600; cursor: pointer; }
.tl-section details p { margin: 10px 0 0; }

/* forms */
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 16px; }
.f-grp h3 { grid-column: 1 / -1; font-family: var(--font-head, 'Oswald', sans-serif); font-size: 17px; margin: 8px 0 -2px; color: var(--accent, #3457e6); letter-spacing: .3px; }
.f-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.f-field small { display: block; font-size: 12px; color: var(--text-dim, #9aa0b4); margin-top: 4px; line-height: 1.4; }
.f-field input, .f-field select { width: 100%; padding: 12px 13px; border: 1.5px solid var(--border, #e3e6ee); border-radius: 9px; font-size: 16px; font-family: inherit; background: #fff; color: var(--text, #12172a); }
.f-field input:focus, .f-field select:focus { outline: none; border-color: var(--accent, #3457e6); }
.f-sep { border: 0; border-top: 1px solid var(--border, #e3e6ee); margin: 18px 0; }
.f-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.f-btn { padding: 10px 14px; border: 1px solid var(--border, #e3e6ee); border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-muted, #5b6272); background: #fff; }
.f-btn:hover { border-color: var(--accent, #3457e6); color: var(--accent, #3457e6); }

/* results */
.verdict { background: #eef2fe; border: 1px solid #d4ddfb; border-radius: 12px; padding: 16px 18px; font-size: 16px; line-height: 1.6; margin: 20px 0 16px; }
.verdict a { color: var(--accent, #3457e6); font-weight: 700; text-decoration: underline; }
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.res-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
@media (max-width: 760px) { .res-grid, .res-grid.three { grid-template-columns: 1fr; } }
.res-card { border: 1px solid var(--border, #e3e6ee); border-radius: 14px; padding: 18px; background: #fff; }
.res-card h3 { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 18px; margin-bottom: 6px; }
.res-card .big { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 34px; font-weight: 700; color: var(--accent, #3457e6); line-height: 1.1; }
.res-card .big span { font-family: var(--font-body, 'Inter', sans-serif); font-size: 13px; font-weight: 600; color: var(--text-muted, #5b6272); margin-left: 6px; }
.res-card .sub { font-size: 13.5px; color: var(--text-muted, #5b6272); margin: 4px 0 12px; }
.res-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-table td { padding: 8px 0; border-top: 1px solid var(--border, #e3e6ee); vertical-align: top; }
.res-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 10px; }
.res-table small { display: block; font-weight: 400; color: var(--text-dim, #9aa0b4); font-size: 12px; }
.res-table tr.total td { border-top: 2px solid var(--text, #12172a); font-weight: 800; font-size: 15.5px; }
.res-table tr.muted td { color: var(--text-muted, #5b6272); font-weight: 500; }
.notes { margin-top: 18px; }
.notes h3 { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 20px; margin-bottom: 8px; }
.notes ul { padding-left: 20px; color: var(--text-muted, #5b6272); line-height: 1.7; }
.notes li { margin-bottom: 6px; }
.notes .muted { color: var(--text-dim, #9aa0b4); font-size: 13px; }
.setaside { margin-top: 12px; padding: 14px 16px; background: #f1faf4; border: 1px solid #cdebd6; border-radius: 10px; font-size: 15px; line-height: 1.6; }
.tbl-wrap { overflow-x: auto; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.rate-table th { text-align: left; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim, #9aa0b4); padding: 8px 10px; border-bottom: 2px solid var(--border, #e3e6ee); }
.rate-table td { padding: 10px; border-bottom: 1px solid var(--border, #e3e6ee); }
.rate-table tr.on td { background: #eef2fe; font-weight: 700; }

/* assistant */
.as-box { border: 1px solid var(--border, #e3e6ee); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 12px 36px rgba(18,23,42,.08); }
.as-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--navy, #12172a); color: #fff; }
.as-head strong { display: block; font-size: 16px; }
.as-head small { color: #aeb6d2; font-size: 12.5px; }
.as-badge { background: var(--accent, #3457e6); color: #fff; font-weight: 800; font-size: 12px; padding: 6px 9px; border-radius: 8px; }
.as-ctx { padding: 8px 18px; font-size: 12.5px; background: #eef2fe; color: #2942b8; font-weight: 600; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 0; }
.as-chip { padding: 8px 12px; border: 1px solid var(--border, #e3e6ee); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text, #12172a); background: #fff; text-align: left; }
.as-chip:hover { border-color: var(--accent, #3457e6); color: var(--accent, #3457e6); }
.as-log { padding: 14px 18px 4px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.as-msg { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.6; }
.as-msg p { margin: 0 0 6px; } .as-msg p:last-child { margin-bottom: 0; }
.as-msg ul { margin: 4px 0 6px; padding-left: 20px; }
.as-gap { height: 4px; }
.as-msg.user { align-self: flex-end; background: var(--accent, #3457e6); color: #fff; border-bottom-right-radius: 4px; }
.as-msg.bot { align-self: flex-start; background: var(--bg-alt, #f4f6fb); border-bottom-left-radius: 4px; }
.as-msg.err { background: #fdecea; color: #8e2a1f; }
.as-typing { display: flex; gap: 5px; padding: 4px 2px; }
.as-typing span { width: 7px; height: 7px; background: #9aa0b4; border-radius: 50%; animation: asb 1s infinite ease-in-out; }
.as-typing span:nth-child(2) { animation-delay: .15s; } .as-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes asb { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.as-form { display: flex; gap: 10px; padding: 12px 18px 6px; }
.as-form textarea { flex: 1; resize: none; padding: 12px 13px; border: 1.5px solid var(--border, #e3e6ee); border-radius: 10px; font-family: inherit; font-size: 16px; }
.as-form textarea:focus { outline: none; border-color: var(--accent, #3457e6); }
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.as-send { background: var(--accent, #3457e6); color: #fff; font-weight: 700; padding: 0 22px; border-radius: 10px; }
.as-send:disabled { opacity: .5; cursor: wait; }
.as-note { padding: 6px 18px 16px; font-size: 12px; color: var(--text-dim, #9aa0b4); line-height: 1.5; }

/* cta, disclaimer, hub */
.tl-cta { margin-top: 28px; padding: 24px; background: var(--navy, #12172a); color: #fff; border-radius: 14px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tl-cta h2 { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 24px; margin: 0 0 4px; }
.tl-cta p { color: #c7cbdb; font-size: 15px; line-height: 1.5; max-width: 560px; }
.tl-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tl-btn { padding: 13px 20px; border-radius: 10px; font-weight: 700; background: var(--accent, #3457e6); color: #fff; }
.tl-btn:hover { background: var(--accent-dark, #2942b8); }
.tl-btn.alt { background: transparent; border: 1px solid rgba(255,255,255,.4); }
.tl-disclaimer { margin-top: 20px; font-size: 12.5px; color: var(--text-dim, #9aa0b4); line-height: 1.6; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tl-tile { display: block; background: #fff; border: 1px solid var(--border, #e3e6ee); border-radius: 14px; padding: 22px; transition: .2s; }
.tl-tile:hover { border-color: var(--accent, #3457e6); box-shadow: 0 10px 30px rgba(52,87,230,.12); transform: translateY(-2px); }
.tl-tile .ico { font-size: 28px; margin-bottom: 10px; }
.tl-tile h3 { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 20px; margin-bottom: 6px; }
.tl-tile p { font-size: 14.5px; color: var(--text-muted, #5b6272); line-height: 1.55; }
.tl-tile .go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent, #3457e6); font-size: 14px; }

.tl-crumbs { max-width: 1100px; margin: 0 auto; padding: 14px 16px 10px; font-size: 13px; color: var(--text-dim, #9aa0b4); }
.tl-crumbs a { color: var(--text-muted, #5b6272); } .tl-crumbs a:hover { color: var(--accent, #3457e6); text-decoration: underline; }
