/* Long-form content pages: advice index + articles, privacy, terms, 404.
   Uses the tokens from site.css only. */

/* ---------- Page head ---------- */
.content-head { padding-top: 48px; padding-bottom: 8px; }
.content-head__in { max-width: 820px; }
.content-head--wide .content-head__in { max-width: none; }

.crumbs { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-3); }

.content-meta { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }
.content-meta span { color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: none; }

.content-title {
  margin: 0;
  font: 800 clamp(34px, 4.6vw, 52px)/1.06 var(--font);
  font-stretch: 108%; letter-spacing: -.025em; color: var(--ink);
}
.content-lead { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--text); max-width: 720px; text-wrap: pretty; }

/* Byline with initials avatar (no headshot yet) */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 700; }
.avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-dark);
  font: 800 16px var(--font); font-stretch: 108%; letter-spacing: .02em;
}

/* ---------- Article hero image ---------- */
.byline a { color: inherit; text-decoration: none; }
.byline a:hover { color: var(--copper); text-decoration: underline; }

.content-hero { margin: 32px 0 0; max-width: 1040px; }
.content-hero img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--line);
}

/* ---------- Prose ---------- */
.content-body { padding-top: 40px; padding-bottom: 64px; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  margin: 2.2em 0 .6em; color: var(--ink);
  font: 800 28px/1.15 var(--font); font-stretch: 108%; letter-spacing: -.02em;
  scroll-margin-top: 24px;
}
.prose h3 {
  margin: 1.8em 0 .5em; color: var(--ink);
  font: 700 21px/1.25 var(--font); font-stretch: 105%;
  scroll-margin-top: 24px;
}
.prose h2 + h3 { margin-top: .8em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: 0 0 .45em; padding-left: .2em; }
.prose li::marker { color: var(--copper); }
.prose ol li::marker { font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--copper-dark); text-decoration-thickness: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.prose .mono { font-size: .92em; color: var(--ink-3); }

/* Definition-style rows (e.g. photo checklist, contact details) */
.prose dl { margin: 0 0 1.4em; display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 10px 20px; }
.prose dt { font-weight: 700; color: var(--ink); }
.prose dd { margin: 0; }

/* Tables (pricing summary in terms) */
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.prose td.num { font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ---------- Notices ---------- */
.callout {
  margin: 1.6em 0; padding: 18px 20px; border-radius: 12px;
  background: var(--teal-tint); color: var(--teal-dark); font-size: 16px; line-height: 1.55;
}
.callout strong { color: inherit; }
.callout p { margin: 0 0 .6em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--warn { background: var(--copper-tint-2); color: var(--copper-notice-text); }
.callout--danger { background: var(--error-bg); color: var(--error-text); border-left: 4px solid var(--error); }
.callout__title { display: block; margin-bottom: 6px; font-weight: 800; font-size: 16.5px; }

.draft-note {
  display: block; margin: 22px 0 0; padding: 14px 18px; max-width: 720px;
  border-radius: 12px; border: 1px dashed var(--copper); background: var(--copper-tint-2); color: var(--copper-notice-text);
  font-size: 15px; line-height: 1.5;
}
.draft-note strong { color: inherit; }
.tbc { background: var(--copper-tint-2); color: var(--copper-notice-text); border-radius: 4px; padding: 0 4px; font-weight: 600; }

.updated { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Table of contents (legal pages) ---------- */
.toc { margin: 0 0 2em; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc h2, .prose .toc h2 { margin: 0 0 10px; font: 700 15px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol, .prose .toc ol { margin: 0; padding-left: 1.3em; columns: 2 240px; column-gap: 32px; font-size: 15.5px; line-height: 1.5; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--copper); text-decoration: underline; }

/* ---------- Article CTA card ---------- */
.cta-card {
  max-width: 720px; margin: 48px 0 0; padding: 28px; border-radius: 16px;
  background: var(--ink); color: var(--on-dark);
}
.cta-card h2 { margin: 0 0 8px; color: #fff; font: 800 26px/1.15 var(--font); font-stretch: 108%; letter-spacing: -.02em; }
.cta-card p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.55; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card__fine { margin: 16px 0 0 !important; font-size: 14px !important; color: var(--on-dark-2); }

/* Photo checklist inside articles */
.shots { margin: 1.4em 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.shots h3 { margin: 0 0 10px !important; font-size: 18px; }
.shots ol { margin-bottom: .6em; }
.shots p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Related links ---------- */
.related { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--line-2); }
.related__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 26px; }
.related__head h2 { margin: 0; font: 800 30px/1.1 var(--font); font-stretch: 108%; letter-spacing: -.02em; color: var(--ink); }
.related__head a { font-weight: 700; text-decoration: none; }
.related__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.related__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.related__links a:hover { border-color: var(--copper); color: var(--copper); }

/* ---------- Advice cards (match Home "Maintenance tips from the van") ---------- */
.advice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.advice-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); height: 100%; }
.advice-card:hover { color: var(--ink); }
.advice-card:hover .advice-card__title { color: var(--copper); }
.advice-card__text { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.advice-card__img { height: 220px; border-radius: 14px; overflow: hidden; background: #d8d2c7; }
.advice-card__img img { width: 100%; height: 100%; object-fit: cover; }
.advice-card__meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.advice-card__title { margin: 0; font: 700 21px/1.25 var(--font); font-stretch: 105%; transition: color .15s ease; }
.advice-card__desc { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.advice-card__more { margin-top: auto; font-weight: 700; color: var(--copper); }

.advice-index { padding-top: 36px; padding-bottom: 72px; }
.advice-note { margin: 40px 0 0; padding: 22px 24px; border-radius: 14px; background: var(--teal-tint); color: var(--teal-dark); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.advice-note p { margin: 0; font-size: 16.5px; line-height: 1.5; max-width: 640px; }

/* ---------- 404 ---------- */
.notfound { padding-top: 72px; padding-bottom: 96px; }
.notfound__code { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--copper); margin: 0 0 14px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.notfound__links { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16.5px; }
.notfound__links a { font-weight: 600; }

/* ---------- Mobile (< 720px) ---------- */
@media (max-width: 719.98px) {
  .content-head { padding-top: 24px; }
  .crumbs { font-size: 13.5px; margin-bottom: 16px; }
  .crumbs ol { flex-wrap: nowrap; }
  .crumbs li { flex: none; }
  .crumbs li:last-child { flex: 0 1 auto; min-width: 0; }
  .crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content-meta { font-size: 13px; }
  .content-title { font-size: 32px; line-height: 1.08; font-stretch: 105%; }
  .content-lead { font-size: 16.5px; margin-top: 14px; }
  .byline { margin-top: 18px; font-size: 14px; }
  .avatar { width: 42px; height: 42px; font-size: 15px; }
  .content-hero { margin-top: 22px; margin-inline: -16px; }
  .content-hero img { border-radius: 0; aspect-ratio: 3 / 2; }
  .content-body { padding-top: 28px; padding-bottom: 44px; }
  .prose { font-size: 16.5px; line-height: 1.65; }
  .prose h2 { font-size: 24px; font-stretch: 105%; margin-top: 1.9em; scroll-margin-top: 84px; }
  .prose h3 { font-size: 19px; scroll-margin-top: 84px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
  .prose table { font-size: 14.5px; }
  .prose th, .prose td { padding: 10px 12px; }
  .callout { padding: 16px; font-size: 15.5px; }
  .toc { padding: 16px 18px; }
  .toc ol { columns: 1; }
  .cta-card { margin-top: 36px; padding: 22px 18px; border-radius: 14px; }
  .cta-card h2 { font-size: 23px; }
  .cta-card__actions .btn { flex: 1 1 100%; min-height: 52px; }
  .shots { padding: 16px; }
  .related { padding-top: 36px; padding-bottom: 44px; }
  .related__head h2 { font-size: 24px; }
  .advice-index { padding-top: 20px; padding-bottom: 44px; }
  .advice-grid { gap: 14px; }
  /* Mobile advice cards become rows with an 88×72 thumbnail, as on Home */
  .advice-card { flex-direction: row; align-items: center; gap: 12px; }
  .advice-card__img { width: 88px; height: 72px; flex: none; border-radius: 10px; }
  .advice-card__text { gap: 2px; }
  .advice-card__meta { font-size: 12.5px; }
  .advice-card__title { font-size: 15.5px; line-height: 1.3; font-weight: 700; font-stretch: 100%; }
  .advice-card__desc, .advice-card__more { display: none; }
  .advice-note { padding: 18px 16px; }
  .advice-note .btn { width: 100%; min-height: 52px; }
  .notfound { padding-top: 40px; padding-bottom: 56px; }
  .notfound__actions .btn { flex: 1 1 100%; min-height: 52px; }
}
