/* =====================================================================
   accidentesenarizona.com — shared stylesheet for /guias/
   Served at: /assets/guia.css

   ONE PLACE TO CHANGE THINGS
   --------------------------
   Every color and the font stack are defined once in :root below.
   If the homepage uses a different typeface, change --font and every
   guide page follows. Do not edit the page files for styling.

   Colors are matched to the homepage: navy field, yellow accent.
   ===================================================================== */

:root {
  --navy:       #16254a;   /* page background, dark band            */
  --navy-2:     #1e3159;   /* card surface on dark                  */
  --navy-3:     #101b36;   /* footer                                */
  --yellow:     #ffc72c;   /* accent — headline, rules, numbers     */
  --paper:      #f6f7f9;   /* light content area                    */
  --paper-2:    #ffffff;   /* cards on light                        */
  --text-dim:   #c3cbdb;   /* body text on navy                     */
  --text-body:  #2c3550;   /* body text on light                    */
  --rule:       #dde1e9;   /* hairlines on light                    */
  --rule-dark:  #2a3a63;   /* hairlines on navy                     */
  --link:       #1d4ed8;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Helvetica, Arial, sans-serif;

  --maxw: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ------------------------------------------------ */
.bar { background: var(--navy); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between;
             padding-top: 18px; padding-bottom: 18px; }
.bar a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.bar a:hover { color: #fff; }
.brand { color: #fff !important; font-weight: 700; letter-spacing: -0.01em;
         display: inline-flex; align-items: center; gap: 9px; }
.brand::before {
  content: ""; width: 13px; height: 13px; background: var(--yellow);
  transform: rotate(45deg); border-radius: 2px; display: inline-block;
}
.brand span { color: var(--yellow); }

/* ---------- dark page header --------------------------------------- */
.head { background: var(--navy); color: #fff; padding: 52px 0 60px; }
.eyebrow {
  color: var(--yellow); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px;
}
.head h1 {
  margin: 0 0 20px; font-size: 44px; line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800; color: #fff;
}
.head h1 em { font-style: normal; color: var(--yellow); }
.head .lede { margin: 0; color: var(--text-dim); font-size: 19px; max-width: 62ch; }

/* road-marking divider, matches the homepage band */
.road {
  height: 10px;
  background: repeating-linear-gradient(
    90deg, var(--yellow) 0 34px, transparent 34px 60px);
}

/* ---------- light body --------------------------------------------- */
main { padding: 54px 0 72px; }
main h2 {
  font-size: 27px; line-height: 1.2; letter-spacing: -0.02em;
  font-weight: 800; color: var(--navy); margin: 46px 0 14px;
}
main h2:first-child { margin-top: 0; }
main h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 30px 0 8px; }
main p { margin: 0 0 18px; }
main ul { margin: 0 0 18px; padding-left: 22px; }
main li { margin-bottom: 9px; }
main strong { color: var(--navy); font-weight: 700; }
a { color: var(--link); }
a:hover { color: #0f2f8f; }

/* ---------- number callout cards ----------------------------------- */
.figs { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 28px 0 32px; }
@media (max-width: 620px) { .figs { grid-template-columns: 1fr; } }

.fig {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-top: 3px solid var(--yellow);
  border-radius: 8px; padding: 22px 22px 20px;
}
.fig .lbl {
  color: #6b7694; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px;
}
.fig .num {
  font-size: 40px; font-weight: 800; letter-spacing: -0.035em;
  color: var(--navy); line-height: 1; margin: 0 0 10px;
}
.fig .num small { font-size: 17px; font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.fig p { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---------- emphasis block ----------------------------------------- */
.note {
  border-left: 4px solid var(--yellow); background: var(--paper-2);
  padding: 18px 20px; margin: 28px 0; font-size: 16px; border-radius: 0 8px 8px 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- worked example ----------------------------------------- */
.calc {
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 24px 26px; margin: 28px 0;
}
.calc h3 { color: var(--yellow); margin: 0 0 14px; font-size: 15px;
           letter-spacing: 0.1em; text-transform: uppercase; }
.calc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.calc td { padding: 9px 0; border-bottom: 1px solid var(--rule-dark); color: var(--text-dim); }
.calc td:last-child { text-align: right; color: #fff; font-weight: 700;
                      font-variant-numeric: tabular-nums; }
.calc tr:last-child td { border-bottom: 0; padding-top: 14px;
                         font-size: 19px; color: var(--yellow); }
.calc tr:last-child td:first-child { font-weight: 700; }

.rule-cite {
  font-size: 14px; color: #68718c; border-top: 1px solid var(--rule);
  padding-top: 18px; margin-top: 40px;
}

/* ---------- guide list --------------------------------------------- */
.cards { display: grid; gap: 14px; margin: 32px 0 0; }
.card {
  display: block; background: var(--paper-2); border: 1px solid var(--rule);
  border-left: 4px solid var(--yellow);
  border-radius: 8px; padding: 22px 24px; text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--rule); border-left-color: var(--navy); }
.card h3 { margin: 0 0 6px; font-size: 19px; color: var(--navy); font-weight: 700; }
.card p { margin: 0; font-size: 15px; color: var(--text-body); }

/* ---------- disclaimer + footer ------------------------------------ */
.disc {
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 18px 20px; margin: 44px 0 0; font-size: 15px;
  border-radius: 8px; color: #55607e;
}
.disc p:last-child { margin-bottom: 0; }

footer { background: var(--navy-3); color: #8b97b4; padding: 40px 0; font-size: 14px; }
footer a { color: var(--text-dim); }
footer a:hover { color: #fff; }
footer p { margin: 0 0 10px; }
footer .nav a { margin-right: 18px; }

@media (max-width: 620px) {
  .head h1 { font-size: 33px; }
  .head { padding: 38px 0 44px; }
  main h2 { font-size: 23px; }
  body { font-size: 16px; }
  .calc { padding: 20px; }
}
