:root { color-scheme: dark; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #f8fafc; background: #020617; line-height: 1.65; }
a { color: #67e8f9; }
a:hover { color: #a5f3fc; }
a:focus-visible { outline: 3px solid #06b6d4; outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.topbar { border-bottom: 1px solid #1e293b; background: #020617; }
.topbar-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand img:first-child { width: auto; height: 1.75rem; }
.brand img:last-child { width: auto; height: 1.125rem; }
.topnav { display: flex; align-items: center; gap: 1rem; }
.topnav a { color: #cbd5e1; font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topnav .nav-cta { color: #082f49; background: #22d3ee; border-radius: .5rem; padding: .65rem .9rem; }
.breadcrumb { padding-top: 1.6rem; color: #94a3b8; font-size: .875rem; }
.breadcrumb a { color: #cbd5e1; }
.hero { max-width: 52rem; padding: 3.5rem 0 3rem; }
.eyebrow { color: #5eead4; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
h1 { margin: .7rem 0 1.25rem; font-size: clamp(2.5rem, 5vw, 4.1rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { margin: 0 0 .45rem; font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { max-width: 47rem; color: #cbd5e1; font-size: 1.2rem; line-height: 1.7; }
.hero-actions, .closing-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.1rem; border-radius: .55rem; font-size: .9rem; font-weight: 750; text-decoration: none; }
.button-primary { background: #22d3ee; color: #082f49; }
.button-primary:hover { background: #67e8f9; color: #082f49; }
.button-secondary { border: 1px solid #475569; background: #0f172a; color: #f1f5f9; }
.button-secondary:hover { background: #1e293b; color: #fff; }
.reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 4rem; }
.clock { border: 1px solid #164e63; border-radius: 1rem; background: #082f49; padding: 1.35rem; }
.clock:nth-child(2) { border-color: #115e59; background: #042f2e; }
.clock p { margin-bottom: 0; color: #cbd5e1; }
.clock .number { color: #67e8f9; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.clock:nth-child(2) .number { color: #5eead4; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 3.5rem; align-items: start; }
.article { max-width: 44rem; padding-bottom: 4rem; }
.article section { margin-bottom: 3.6rem; scroll-margin-top: 2rem; }
.article p, .article li { color: #cbd5e1; font-size: 1.05rem; }
.article ul, .article ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.article li { padding-left: .2rem; margin-bottom: .65rem; }
.note { border-left: 4px solid #22d3ee; border-radius: .25rem; background: #083344; padding: 1rem 1.25rem; color: #cffafe; }
.note p { margin: 0; color: inherit; }
.example { border: 1px solid #334155; border-radius: 1rem; background: #0f172a; padding: 1.5rem; }
.example .label { color: #5eead4; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.example strong { color: #fff; }
.table-scroll { overflow-x: auto; margin: 1.25rem 0; border: 1px solid #334155; border-radius: 1rem; background: #0f172a; }
table { width: 100%; border-collapse: collapse; min-width: 34rem; text-align: left; }
caption { padding: 1rem 1.25rem .25rem; color: #94a3b8; font-size: .8rem; text-align: left; }
th, td { padding: .85rem 1.25rem; border-bottom: 1px solid #334155; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: #f8fafc; font-size: .85rem; }
td { color: #cbd5e1; font-size: .95rem; }
.toc { position: sticky; top: 2rem; border: 1px solid #334155; border-radius: .9rem; background: #0f172a; padding: 1.3rem; }
.toc strong { display: block; margin-bottom: .7rem; }
.toc a { display: block; margin-top: .7rem; color: #cbd5e1; font-size: .9rem; }
.closing { margin: 0 0 4rem; border: 1px solid #164e63; border-radius: 1.5rem; background: linear-gradient(130deg, #082f49, #042f2e); padding: clamp(1.5rem, 4vw, 3rem); }
.closing h2 { max-width: 38rem; }
.closing p { max-width: 40rem; color: #cbd5e1; }
.closing .eyebrow { color: #5eead4; }
footer { border-top: 1px solid #1e293b; padding: 1.5rem 0; color: #94a3b8; font-size: .8rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer a { margin-left: 1rem; color: #cbd5e1; }
.guide-group { margin-bottom: 4rem; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-card { display: block; border: 1px solid #334155; border-radius: 1rem; background: #0f172a; padding: 1.4rem; color: #f8fafc; text-decoration: none; }
.guide-card:hover { border-color: #22d3ee; background: #132238; }
.guide-card h3 { margin: 0 0 .6rem; }
.guide-card p { color: #cbd5e1; }
.guide-card span { color: #67e8f9; font-weight: 700; }
.print-controls { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
button.button { cursor: pointer; font-family: inherit; }
.log-sheet { border: 1px solid #475569; border-radius: .7rem; background: #f8fafc; color: #0f172a; padding: 1rem; }
.log-sheet-title { color: #0f172a !important; font-weight: 800; }
.log-vehicle { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 1rem; font-size: .85rem; }
.table-scroll { overflow-x: auto; }
.log-table { width: 100%; min-width: 39rem; border-collapse: collapse; font-size: .75rem; }
.log-table th, .log-table td { border: 1px solid #94a3b8; padding: .4rem; text-align: left; }
.log-table th { background: #e2e8f0; }
.log-table td { height: 2.5rem; }
.log-hint { color: #334155 !important; font-size: .8rem !important; margin: .8rem 0 0; }
.forecast-tool { border: 1px solid #164e63; border-radius: 1rem; background: #082f49; padding: 1.5rem; margin: 1rem 0; }
.forecast-tool label { display: block; font-weight: 700; }
.forecast-tool input { display: block; width: 100%; margin: 1.2rem 0; accent-color: #22d3ee; }
.forecast-tool p { margin: 0; color: #f8fafc; }
@media (max-width: 760px) {
  .article-layout { display: block; }
  .toc { position: static; margin: 0 0 3rem; }
  .article { max-width: none; }
  .hero { padding: 2.5rem 0; }
}
@media (max-width: 560px) {
  .guide-list { grid-template-columns: 1fr; }
  .topnav .optional { display: none; }
  .reading-grid { grid-template-columns: 1fr; margin-bottom: 3rem; }
  .hero-actions .button, .closing-actions .button { width: 100%; }
  footer a:first-child { margin-left: 0; }
}
@media print {
  @page { size: landscape; margin: .5in; }
  body.printable-log { background: #fff; color: #000; }
  body.printable-log .topbar, body.printable-log .breadcrumb, body.printable-log .hero, body.printable-log .article section:not(#printable), body.printable-log .toc, body.printable-log .closing, body.printable-log footer, body.printable-log .print-controls, body.printable-log #printable > p { display: none !important; }
  body.printable-log .wrap, body.printable-log .article-layout, body.printable-log .article { width: 100%; max-width: none; padding: 0; margin: 0; display: block; }
  body.printable-log #printable h2 { display: none; }
  body.printable-log .log-sheet { border: 0; padding: 0; }
  body.printable-log .table-scroll { overflow: visible; }
  body.printable-log .log-table { min-width: 0; }
}
