/* guides.amlaautobody.com — tokens copied from amlacollision.com (src/styles/global.css):
   charcoal facade, chrome-silver logo, thin gold rules. Font: Archivo variable (OFL), self-hosted. */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/archivo.woff2) format('woff2-variations');
}

:root {
  --charcoal: #1c1f22;
  --charcoal-raised: #25292d;
  --chrome: #c9ced3;
  --steel: #8d949b;
  --gold: #b8955a;
  --gold-bright: #cfae72;
  --white: #ffffff;
  --font: 'Archivo Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wide: 118%;
  --gutter: 1rem;
  --page: 72rem;
  --measure: 44rem;
}
@media (min-width: 40rem) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 56rem) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-stretch: var(--wide); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 20; padding: .75rem 1rem; background: var(--gold); color: var(--charcoal); font-weight: 700; }
.skip-link:focus { top: .75rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--charcoal-raised); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding-block: .75rem; }
.home-link { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.home-link img { width: 120px; }
@media (min-width: 56rem) { .home-link img { width: 160px; } }
.brand-sub { border-left: 1px solid var(--gold); padding-left: .9rem; color: var(--chrome); font-stretch: var(--wide); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.header-call { color: var(--chrome); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.header-call:hover { color: var(--white); }
@media (max-width: 30rem) { .header-call { display: none; } }

/* Hero + index */
.hero { padding-block: 3.5rem 2.5rem; border-bottom: 1px solid var(--charcoal-raised); }
.eyebrow { color: var(--gold-bright); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: .9rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 18ch; }
.lead { color: var(--chrome); font-size: 1.15em; margin-top: 1rem; max-width: var(--measure); }
.cat-nav { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.cat-nav a { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--steel); border-radius: .375rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
.cat-nav a:hover { background: var(--charcoal-raised); border-color: var(--gold); }

.category { padding-block: 3rem; border-bottom: 1px solid var(--charcoal-raised); }
.category h2, .related h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.category h2::after { content: ""; display: block; width: 3rem; height: 2px; background: var(--gold); margin-top: .8rem; }

.cards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card a { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.4rem; background: var(--charcoal-raised); border: 1px solid transparent; border-radius: .5rem; text-decoration: none; transition: border-color .15s ease; }
.card a:hover { border-color: var(--gold); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--chrome); font-size: .95rem; }
.card-meta { color: var(--steel) !important; font-size: .85rem !important; margin-top: auto; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-right: .35rem; border: 1px solid var(--steel); color: var(--chrome); }
.pill-easy { border-color: #6f9a74; color: #a9d1ae; }
.pill-moderate { border-color: var(--gold); color: var(--gold-bright); }
.pill-advanced { border-color: #b46a5e; color: #e0a197; }

/* Article */
.article { padding-block: 2.5rem 3.5rem; }
.crumbs { color: var(--steel); font-size: .9rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--chrome); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.article h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.article > .wrap > .card-meta { margin-top: 1rem; }
.need { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--charcoal-raised); border-left: 3px solid var(--gold); border-radius: .375rem; }
.need h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: .5rem; }
.need ul { margin: 0; padding-left: 1.1rem; color: var(--chrome); font-size: .95rem; }

.prose { color: #e6e8ea; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; color: var(--chrome); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .5rem; }
.prose ol > li::marker { color: var(--gold-bright); font-weight: 700; }
.prose strong { color: var(--white); }
.callout { padding: 1rem 1.25rem; border-radius: .375rem; background: var(--charcoal-raised); border-left: 3px solid var(--steel); }
.callout.warning { border-left-color: #c9734f; }
.callout.tip { border-left-color: var(--gold); }

.related { padding-block: 3rem; border-top: 1px solid var(--charcoal-raised); }

/* Footer */
.site-footer { border-top: 1px solid var(--gold); padding-block: 3rem; color: var(--chrome); }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-inner img { width: 150px; }
.footer-contact p + p { margin-top: .35rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; color: var(--white); }
.footer-small { color: var(--steel); font-size: .85rem; max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card a { transition: none; } }
