/* Free maintenance schedules: same look as the landing page, plus print styles. */
:root {
  --navy: #053C5E; --navy-2: #0A4E78; --blue: #019FCB; --blue-d: #0189AF;
  --mint: #EEF6EE; --ink: #12202A; --muted: #546270; --line: #DCE4E8;
  --bg: #FFFFFF; --soft: #F4F8FA;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(5,60,94,.08); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
nav { display: flex; align-items: center; gap: 16px; }
nav a.plain { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
nav a.plain:hover { color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(1,159,203,.30); }
.btn.primary:hover { background: var(--blue-d); }
.btn.ghost { color: var(--navy); background: #fff; border: 1.5px solid rgba(5,60,94,.25); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 12px; box-shadow: none; white-space: nowrap; }

.intro { padding: 40px 0 28px; background: linear-gradient(180deg, var(--mint), #fff 90%); }
.kicker { margin: 0 0 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.kicker a { text-decoration: none; }
h1 { color: var(--navy); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin: 0 0 20px; max-width: 700px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 700px; }

.body { padding-bottom: 56px; }
h2 { color: var(--navy); font-size: clamp(21px, 2.6vw, 26px); line-height: 1.2; margin: 36px 0 12px; letter-spacing: -.01em; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.sched { table-layout: fixed; }
.sched th:nth-child(1) { width: 38%; }
.sched th:nth-child(2) { width: 22%; }
.sched th:nth-child(4) { width: 40px; }
th { text-align: left; color: var(--navy); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 2px solid var(--navy); padding: 8px 10px; }
td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
.sched .task { font-weight: 600; }
.sched .when { color: var(--navy); }
.sched .note { color: var(--muted); }
.sched .done { text-align: center; }
.sched td.done { border-left: 1px solid var(--line); }
.code-note { background: var(--soft); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 8px; margin: 28px 0 0; }
.know p { color: var(--muted); margin: 0; max-width: 760px; }

.cta-box { margin: 44px 0 8px; padding: 28px; border-radius: 22px; color: #fff;
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-box h2 { color: #fff; margin: 0 0 8px; }
.cta-box p { margin: 0; opacity: .9; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }

.log-id { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.logt td { height: 34px; border: 1px solid var(--line); }
.logt th { border-bottom: 2px solid var(--navy); }
.sources ul { padding-left: 20px; margin: 8px 0 0; }
.sources li { margin: 4px 0; font-size: 15px; }
.sources p { color: var(--muted); margin: 0; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--blue); }
.card h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.print-only { display: none; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
  nav a.plain { display: none; }
  table { font-size: 14.5px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  /* The checkbox column is for paper; on a phone the notes matter more. */
  .sched .done, .sched th:nth-child(4) { display: none; }
  .sched th:nth-child(1) { width: 40%; }
  .sched th:nth-child(2) { width: 27%; }
  table { font-size: 14px; }
  td, th { padding-left: 6px; padding-right: 6px; }
}

/* Paper: no site chrome, black on white, schedule on page 1, log on its own page. */
@media print {
  @page { size: letter; margin: 0.5in; }
  .screen-only { display: none !important; }
  .print-only { display: block; }
  body { font-size: 11pt; line-height: 1.3; color: #000; }
  .intro { background: none; padding: 0 0 6pt; }
  h1 { font-size: 20pt; color: #000; margin: 0 0 4pt; }
  .lead { font-size: 10.5pt; color: #222; margin: 0 0 4pt; }
  .fine { font-size: 9pt; color: #333; margin: 0; }
  .wrap { max-width: none; padding: 0; }
  h2 { font-size: 12pt; color: #000; margin: 9pt 0 3pt; break-after: avoid; }
  table { font-size: 9.5pt; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th { color: #000; border-bottom: 1.2pt solid #000; padding: 2pt 4pt; font-size: 8pt; }
  td { padding: 2.5pt 4pt; border-bottom: .5pt solid #999; }
  .sched .when { color: #000; }
  .sched .note { color: #333; }
  .sched .done, .sched th:nth-child(4) { display: table-cell !important; }
  .sched th:nth-child(1) { width: 38%; }
  .sched th:nth-child(2) { width: 22%; }
  .sched td.done { border-left: .5pt solid #999; }
  .code-note { background: none; border: .75pt solid #000; padding: 5pt 8pt; font-size: 9.5pt; }
  .log { break-before: page; }
  .logt td { height: 26pt; border: .5pt solid #666; }
  .print-foot { margin-top: 8pt; font-size: 8.5pt; color: #444; text-align: right; }
  /* Longer sheets (the trucks) get tighter rows so they still fit on one page. */
  body.dense .lead { font-size: 9.5pt; }
  body.dense h1 { font-size: 18pt; }
  body.dense h2 { font-size: 11pt; margin: 6pt 0 2pt; }
  body.dense table { font-size: 8.8pt; }
  body.dense td { padding: 1.6pt 4pt; }
  body.dense .code-note { font-size: 8.3pt; padding: 4pt 6pt; margin-top: 8pt; }
  /* Small brand mark in the top corner of each printed page. */
  .print-brand { display: flex; float: right; align-items: center; gap: 6pt; margin: 0 0 4pt 12pt;
    font-size: 8.5pt; line-height: 1.2; color: #053C5E; text-align: left; }
  .print-brand img { width: 22pt; height: 22pt; }
  .print-brand b { font-size: 10pt; }
  a { color: #000; text-decoration: none; }
}

/* Hub: section chips so a shop or a crew can jump to their part instead of scrolling every card. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #DCE4E8; color: #053C5E; font-size: 14px; font-weight: 700; text-decoration: none; }
.jump a:hover { border-color: #019FCB; color: #019FCB; }
.group { scroll-margin-top: 80px; }
@media print { .jump { display: none; } }
