/* About Data Analysis page (moved verbatim from the inline block in
   about_bungemeter.html). The page aliases core.css tokens into local
   --ab-* custom properties; the var() hex fallbacks were dropped because
   every aliased token is defined in core.css, so they were never used.
   The two at-a-glance dot colours (gold / open-data blue) have no core
   token — their exact former values are preserved below as hsl()
   equivalents (round-trip-exact conversions; visuals unchanged). */
.ab { --ab-red: var(--colour-primary); --ab-green: var(--colour-secondary);
      --ab-ink: var(--colour-text); --ab-muted: var(--colour-text-muted);
      --ab-line: var(--colour-border); --ab-bg: var(--colour-bg-subtle);
      --ab-gold: hsl(46 64.6% 52.4%);          /* evidence-backed dot */
      --ab-open-blue: hsl(218.8 73.6% 52.5%);  /* open-data dot */ }

/* HERO ---------------------------------------------------------------- */
.ab-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem; align-items: center;
           padding: .5rem 0 2rem; }
.ab-eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
              text-transform: uppercase; color: var(--ab-red); margin: 0 0 .6rem; }
.ab-hero__lead { font-size: 1.22rem; line-height: 1.55; color: var(--ab-ink); margin: 0; }
.ab-hero__lead strong { color: var(--ab-ink); }
.ab-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.4rem 0 0; }
.ab-btn { display: inline-block; padding: .7rem 1.25rem; border-radius: 9px; font-weight: 700;
          font-size: .95rem; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.ab-btn--primary { background: var(--ab-red); color: white; }
.ab-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(210,18,24,.28); color: white; }
.ab-btn--ghost { border: 1.5px solid var(--ab-line); color: var(--ab-ink); }
.ab-btn--ghost:hover { border-color: var(--ab-red); color: var(--ab-red); }

.ab-facts { background: var(--ab-bg); border: 1px solid var(--ab-line); border-radius: 14px;
            padding: 1.4rem 1.5rem; }
.ab-facts h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
               color: var(--ab-muted); margin: 0 0 1rem; }
.ab-facts ul { list-style: none; margin: 0; padding: 0; }
.ab-facts li { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0;
               border-top: 1px solid var(--ab-line); font-size: .95rem; }
.ab-facts li:first-child { border-top: 0; }
.ab-facts .ab-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: .42rem; }
.ab-facts li b { color: var(--ab-ink); font-weight: 700; }
.ab-facts li span { color: var(--ab-muted); }

/* SECTION HEADINGS ---------------------------------------------------- */
.ab-sec { margin: 2.6rem 0 1.1rem; }
.ab-sec h2 { font-size: 1.5rem; margin: 0 0 .25rem; color: var(--ab-ink); }
.ab-sec p { margin: 0; color: var(--ab-muted); font-size: 1rem; }

/* FEATURE GRID -------------------------------------------------------- */
.ab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ab-card { background: var(--colour-bg); border: 1px solid var(--ab-line); border-radius: 14px;
           padding: 1.35rem 1.4rem; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
/* hover border: exact former grey kept as hsl (no matching core token) */
.ab-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.07); border-color: hsl(0 0% 85%); }
.ab-card__icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
                 font-size: 1.4rem; margin: 0 0 .85rem; background: rgba(0,159,87,.10); }
.ab-card h3 { font-size: 1.08rem; margin: 0 0 .4rem; color: var(--ab-ink); }
.ab-card p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ab-muted); }
.ab-card a { color: var(--ab-red); font-weight: 600; text-decoration: none; }
.ab-card a:hover { text-decoration: underline; }

/* HOW IT WORKS -------------------------------------------------------- */
.ab-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ab-step { position: relative; background: var(--ab-bg); border: 1px solid var(--ab-line);
           border-radius: 14px; padding: 1.3rem 1.4rem 1.3rem 1.4rem; }
.ab-step__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
              background: var(--ab-red); color: white; font-weight: 800; font-size: .9rem; margin: 0 0 .7rem; }
.ab-step h3 { font-size: 1.02rem; margin: 0 0 .35rem; color: var(--ab-ink); }
.ab-step p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ab-muted); }

/* CLOSING BAND -------------------------------------------------------- */
.ab-band { margin: 2.8rem 0 1rem; padding: 1.8rem 2rem; border-radius: 16px;
           background: linear-gradient(100deg, rgba(210,18,24,.06), rgba(0,159,87,.07));
           border: 1px solid var(--ab-line); text-align: center; }
.ab-band p { margin: 0 auto; max-width: 70ch; font-size: 1.05rem; line-height: 1.6; color: var(--ab-ink); }
.ab-band a { color: var(--ab-red); font-weight: 700; text-decoration: none; }
.ab-band a:hover { text-decoration: underline; }

/* RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 900px) {
  .ab-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .ab-grid, .ab-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ab-grid, .ab-steps { grid-template-columns: 1fr; }
  .ab-hero__lead { font-size: 1.1rem; }
}
