/*
 * guides.css - styles for the public CPA guide pages, the per-sitting exam
 * timetables, the exemption checker, the duration planner and the syllabus
 * page's topic lists (templates/_guide_base.html, page_timetable*.html,
 * guide_*.html, page_syllabus.html). Loaded only by those pages.
 *
 * Built on the site's own pieces (style.css .btn, store_styles.html
 * .access-grid / .acc-card, style.css .buybar) so a guide looks like the
 * rest of the shop. Colours: the house green #006400 / #064e06.
 *
 * Phone first: most readers are on an Android phone, so every grid falls to
 * one column under 640px and nothing is wider than the screen.
 */

/* `hidden` must win over the display rules below (e.g. .tt-filters is flex):
   script-only controls stay out of sight until guides.js reveals them. */
.info [hidden] { display: none !important; }

/* Buttons inside .info: _info_base.html colours every .info link green,
   which would paint a green button's text green too. */
.info a.btn-primary, .info a.btn-primary:hover { color: #fff; }
.info a.btn-outline { color: #006400; }
.info a.btn-outline:hover { color: #fff; }

/* Compact buy / sign-up band, high on every guide (_guide_cta.html). */
.gcta-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 20px;
             padding: 14px 16px; background: #f3f7f3; border: 1px solid #d5e5d5; border-radius: 14px; }
.gcta-band-item { flex: 1 1 180px; line-height: 1.35; }
.gcta-band-item strong { display: block; color: #1a202c; font-size: 0.95rem; }
.gcta-band-item small { color: #5b6b5b; font-size: 0.82rem; }
.gcta-btn { padding: 11px 18px; font-size: 0.95rem; white-space: nowrap; }

/* Full buy / sign-up block, at the end of every guide (_guide_cta.html). */
.gcta { margin: 30px 0 10px; }
.gcta-papers { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gcta-paper { padding: 10px 14px; font-size: 0.9rem; text-align: left; }
.gcta-more { display: block; margin-top: 10px; font-size: 0.88rem; }
.gcta-preview { margin-top: 12px; font-size: 0.92rem; }

/* "More CPA guides" (_guide_more.html): two columns on a laptop. */
.gmore { margin: 26px 0 8px; }
.gmore-list { columns: 2 260px; column-gap: 28px; }
.gmore-list li { break-inside: avoid; margin-bottom: 6px; }

/* Guides hub cards (page_guides.html). */
.ghub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 18px 0; }
.info a.ghub-card { display: block; padding: 16px 18px; background: #fff; border: 1px solid #e3e8e3; border-radius: 14px;
                    color: #2a332a; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.info a.ghub-card:hover { border-color: #006400; box-shadow: 0 4px 14px rgba(0, 100, 0, 0.12); }
.ghub-card strong { display: block; color: #064e06; margin-bottom: 4px; }
.ghub-card span { font-size: 0.9rem; color: #4a5568; }

/* Numbered steps (register, apply for exemptions): cards joined by a line,
   so the process reads as one path. */
.info ol.gsteps { padding-left: 0; list-style: none; counter-reset: gstep; }
.gsteps li { position: relative; padding: 12px 14px 12px 54px; margin-bottom: 10px; counter-increment: gstep;
             background: #fff; border: 1px solid #e3e8e3; border-radius: 14px; }
.gsteps li::before { content: counter(gstep); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px;
                     border-radius: 50%; background: linear-gradient(135deg, #0b7a2a, #064e06); color: #fff;
                     font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.gsteps li:not(:last-child)::after { content: ''; position: absolute; left: 27px; top: 42px; bottom: -11px;
                                     width: 2px; background: #cfe3cf; }

/* Ticked lists ("Before the exams"). */
.info ul.gchecks { list-style: none; padding-left: 0; }
.gchecks li { position: relative; padding: 0 0 10px 30px; }
.gchecks li::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px;
                      background: #e6f4ea; color: #1e6b34; font-weight: 800; font-size: 0.8rem;
                      display: flex; align-items: center; justify-content: center; }

/* ---- Hero: the top of every guide, timetable and the syllabus ---- */
/* .ghero is a <header>: style.css's site-wide header rule centres text, adds
   a border and shadows the h1, so those are reset here. */
.ghero { position: relative; overflow: hidden; margin: 0 0 18px; padding: 24px 22px 22px; border-radius: 22px; color: #eaf7ea;
         text-align: left; border: 0;
         background: radial-gradient(120% 140% at 100% 0%, rgba(132, 204, 22, 0.35) 0%, rgba(132, 204, 22, 0) 50%),
                     linear-gradient(135deg, #053f05 0%, #0a6420 55%, #0f7f2c 100%);
         box-shadow: 0 18px 40px -20px rgba(6, 78, 6, 0.6); }
/* Two soft rings for depth; decoration only. */
.ghero::before, .ghero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none;
                                border: 1px solid rgba(255, 255, 255, 0.12); }
.ghero::before { width: 260px; height: 260px; right: -80px; top: -110px; }
.ghero::after { width: 160px; height: 160px; right: 30px; bottom: -90px; }
.ghero > * { position: relative; }
.ghero-eyebrow { display: inline-block; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
                 color: #d9f5dc; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.info .ghero .pt-h1 { color: #fff; margin: 10px 0 8px; font-size: clamp(1.4rem, 4.6vw, 2.05rem); line-height: 1.2;
                      letter-spacing: -0.01em; text-shadow: none; }
.info .ghero p.ghero-lead { color: #e1f3e1; margin: 0; font-size: 1rem; max-width: 62ch; }
.ghero-answer { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; color: #bef264; margin: 2px 0 8px; line-height: 1.15; }
.info ul.ghero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.info .ghero-chips li { color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
                        padding: 5px 12px; border-radius: 999px; font-size: 0.84rem; }
.info .ghero-chips li.is-urgent { background: #fbbf24; border-color: #fbbf24; color: #3b2600; font-weight: 700; }
.info a.ghero-btn { margin-top: 14px; padding: 11px 18px; background: #fff; color: #064e06; font-size: 0.95rem; }
.info a.ghero-btn:hover { color: #064e06; transform: translateY(-2px); }

/* The hero's road (auditor guide): four stages as linked steps. */
.info ol.ghero-road { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px;
                      padding: 0; margin: 16px 0 0; counter-reset: road; }
.ghero-road li { counter-increment: road; }
.info .ghero-road a { display: block; height: 100%; padding: 10px 12px; border-radius: 12px; color: #fff; text-decoration: none;
                      background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); font-weight: 600;
                      font-size: 0.9rem; transition: background 0.2s; }
.info .ghero-road a::before { content: counter(road); display: block; font-size: 0.72rem; color: #bef264; font-weight: 800; }
.info .ghero-road a:hover { background: rgba(255, 255, 255, 0.22); }

/* Live countdown in the hero (guides.js ticks it). */
.ghero-count { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.ghero-count-label { flex: 1 1 200px; font-size: 0.9rem; color: #e1f3e1; }
.ghero-clock { display: flex; gap: 8px; }
.ghero-clock span { min-width: 62px; padding: 8px 6px; text-align: center; border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.ghero-clock b { display: block; color: #fff; font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ghero-clock small { color: #cfeccf; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- "On this page" chips (built by guides.js), sticky under the top bar ---- */
.gtoc { position: sticky; z-index: 15; display: flex; gap: 8px; overflow-x: auto; margin: 0 -6px 16px; padding: 8px 6px;
        background: rgba(246, 248, 246, 0.92); backdrop-filter: blur(8px); scrollbar-width: none; }
.gtoc::-webkit-scrollbar { display: none; }
.info .gtoc a { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; border: 1px solid #d5e5d5; background: #fff;
                color: #064e06; font-size: 0.83rem; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s; }
.info .gtoc a.is-on { background: #006400; border-color: #006400; color: #fff; }

/* Reading progress: a thin line across the very top. */
.gprogress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%;
             transform: scaleX(0); background: linear-gradient(90deg, #16a34a, #84cc16); pointer-events: none; }

/* Sections ease in as they reach the screen (guides.js adds .reveal, so
   nothing is hidden without script); none of it for reduced motion. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons press in. */
.info .btn:active { transform: scale(0.98); }

/* ---- Exam timetable (page_timetable.html; behaviour in guides.js) ---- */
.tt-status table { margin: 6px 0 0; }
.tt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tt-chip { padding: 9px 14px; border: 1px solid #b9d3b9; border-radius: 999px; background: #fff; color: #064e06;
           font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.tt-chip.is-on { background: #006400; border-color: #006400; color: #fff; }
/* A day is a card whose date bar is dark and stays pinned while its papers
   scroll past, so the date is never confused with a paper (owner,
   2026-10-29). No overflow: hidden here - it would stop the bar sticking. */
.tt-day { margin: 0 0 24px; border: 1px solid #cfe0cf; border-radius: 16px; background: #fff;
          box-shadow: 0 6px 18px -14px rgba(6, 78, 6, 0.45); }
.info .tt-day h3 { position: sticky; top: var(--tt-top, 0px); z-index: 6; display: flex; align-items: center; gap: 4px;
                   margin: 0; padding: 10px 14px; border-radius: 15px 15px 0 0; color: #fff; font-size: 1.05rem;
                   background: linear-gradient(135deg, #053f05, #0b6b23); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.4); }
/* Morning and afternoon: a labelled band each, its own colour on the left. */
.tt-session-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px;
                   background: #f6f8f6; border-left: 4px solid #f59e0b; color: #1a202c;
                   font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tt-session-pm .tt-session-head { border-left-color: #3b82f6; }
.tt-session-head span { font-weight: 600; color: #5b6b5b; letter-spacing: 0; text-transform: none; }
.info ul.tt-papers { list-style: none; margin: 0; padding: 0 0 6px; }
.tt-paper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px;
            border-top: 1px solid #eef2ee; }
.tt-paper.is-mine { background: #f0f9f0; box-shadow: inset 4px 0 0 #006400; }
.tt-paper[hidden] { display: none; }
.tt-pick input { width: 22px; height: 22px; accent-color: #006400; cursor: pointer; }
.tt-what { flex: 1 1 240px; min-width: 0; }
.tt-code { font-weight: 700; color: #064e06; margin-right: 6px; }
.tt-level { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 700;
            vertical-align: 1px; }
.tt-level-foundation { background: #e6f4ea; color: #1e6b34; }
.tt-level-intermediate { background: #e8f0fe; color: #1a4f9c; }
.tt-level-advanced { background: #fdeee0; color: #8a4b0f; }
.tt-level-requirement { background: #f1e9fb; color: #5b2d91; }
.tt-title { display: block; margin-top: 2px; }
.tt-count { display: block; font-size: 0.82rem; color: #5b6b5b; }
.tt-count.is-soon { color: #b45309; font-weight: 600; }
.tt-actions { display: flex; align-items: center; gap: 10px; }
.tt-btn { padding: 9px 14px; font-size: 0.88rem; white-space: nowrap; }
/* In a paper row the notes button is a soft pill, so the paper's name -
   not a wall of identical green buttons - is what the eye reads first. */
.info .tt-actions a.tt-btn { padding: 7px 12px; border-radius: 999px; font-size: 0.84rem; background: #e6f4ea;
                             color: #064e06; border: 1px solid #b9d3b9; }
.info .tt-actions a.tt-btn:hover { background: #006400; color: #fff; }
.tt-link { font-size: 0.88rem; white-space: nowrap; }

/* Day strip: jump to an exam day; scrolls sideways on a phone. */
.tt-days { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.tt-days::-webkit-scrollbar { display: none; }
.info .tt-days a { flex: 0 0 auto; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #d5e5d5;
                   color: #2a332a; font-size: 0.88rem; text-decoration: none; }
.tt-days a b { color: #064e06; }
.info .tt-days a.is-on { background: #064e06; border-color: #064e06; color: #fff; }
.info .tt-days a.is-on b { color: #bef264; }
.info .tt-days a:hover { border-color: #006400; }
.tt-day-num { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px;
              margin-right: 8px; vertical-align: middle; border-radius: 12px; background: #fff; color: #064e06;
              font-size: 0.62rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.tt-day-num b { font-size: 1.1rem; }
.tt-paper { transition: background 0.2s; }
.tt-paper:hover { background: #fafcfa; }

/* "Our picks" (exam_focus.py): the call-out and each paper's panel. */
.tt-picks-intro { margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f5d98b;
                  font-size: 0.92rem; }
.tt-chip-star { border-color: #f5c84b; color: #8a5a00; }
.tt-chip-star.is-on { background: #f59e0b; border-color: #f59e0b; color: #1f1300; }
.tt-picks { flex: 1 1 100%; margin-top: 4px; border: 1px solid #f5d98b; border-radius: 12px; background: #fffbef; }
.tt-picks summary { padding: 9px 12px; cursor: pointer; font-weight: 700; color: #8a5a00; font-size: 0.9rem; }
.info .tt-picks ul { margin: 0; padding: 4px 14px 4px 32px; }
.tt-picks li { margin-bottom: 6px; }
.tt-why { display: block; color: #6b5a2e; font-size: 0.82rem; }
.info .tt-picks p { margin: 4px 14px; }
.info .tt-picks .tt-picks-small { font-size: 0.78rem; color: #7a6a3a; }
.tt-picks .tt-btn { margin: 6px 14px 12px; display: inline-block; }

/* The reader's own papers, gathered at the top. */
.tt-mine { margin: 0 0 16px; padding: 14px 16px; background: #fffdf2; border: 1px solid #f0e0a8; border-radius: 14px; }
.tt-mine h3 { margin: 0 0 8px; font-size: 1rem; }
.info .tt-mine ol { margin: 6px 0 10px; }
.tt-mine-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---- Exemption checker (guide_exemptions.html) ---- */
.ex-box, .plan { margin: 16px 0 20px; padding: 16px 18px; background: #fff; border: 2px solid #cfe3cf; border-radius: 14px; }
.ex-label { display: block; font-weight: 700; margin-bottom: 6px; }
.ex-box select, .plan select { width: 100%; min-height: 46px; padding: 0 10px; border: 1px solid #cfd8cf;
                               border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.ex-result:not(:empty), .plan-result:not(:empty) { margin-top: 14px; }
.ex-result h3, .plan-result h3 { margin: 12px 0 6px; font-size: 1rem; }
.ex-paper { display: block; }
.ex-left { list-style: none; padding: 0; margin: 6px 0 10px; }
.ex-left li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
              padding: 8px 0; border-bottom: 1px solid #eef2ee; }
.ex-left .tt-btn { margin-left: auto; }
.ex-table td:nth-child(2) { font-size: 0.88rem; }
/* Names like "ICT/Computer Science/Management Information Systems" have no
   spaces to break at; without this they push the table off a phone screen. */
.ex-table td { overflow-wrap: anywhere; }
/* Phones: each schedule row is a card that labels its own cells. */
@media (max-width: 640px) {
    .ex-table, .ex-table tbody, .ex-table tr, .ex-table td { display: block; width: 100%; }
    .ex-table tr:first-child { display: none; }
    .ex-table tr { margin: 0 0 10px; border: 1px solid #e3e8e3; border-radius: 12px; overflow: hidden; }
    .info .ex-table td { border-bottom: 1px solid #eef2ee; padding: 8px 12px; }
    .info .ex-table td:last-child { border-bottom: 0; }
    .ex-table td::before { content: attr(data-label); display: block; font-size: 0.76rem; font-weight: 700;
                           color: #5b6b5b; text-transform: uppercase; letter-spacing: 0.02em; }
}

/* ---- Duration planner (guide_duration.html) ---- */
.plan-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-form label { font-weight: 600; font-size: 0.92rem; }
.plan-form select { margin-top: 4px; font-weight: 400; }
.info ol.plan-list { padding-left: 20px; }
.plan-list li { margin-bottom: 6px; }
.plan-total { font-size: 1.15rem; font-weight: 700; color: #064e06; }

/* ---- Syllabus page: each paper's topics (page_syllabus.html) ---- */
.syl-topics { margin: 4px 0 18px; }
.syl-paper { border: 1px solid #e3e8e3; border-radius: 12px; margin: 0 0 8px; background: #fff; }
.syl-paper summary { padding: 11px 14px; cursor: pointer; }
.syl-paper[open] summary { border-bottom: 1px solid #eef2ee; }
.info ol.syl-topic-list { margin: 10px 0; padding-left: 40px; font-size: 0.93rem; }
.syl-free { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
            font-size: 0.55rem; color: #fff; background: #16a34a; vertical-align: 1px; }

/* Syllabus tools: level tabs and the topic search (guides.js). */
.syl-tools { position: sticky; top: 0; z-index: 14; margin: 12px 0 16px; padding: 12px; border-radius: 14px;
             background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border: 1px solid #e3e8e3;
             box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.25); }
.syl-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.syl-tabs::-webkit-scrollbar { display: none; }
.syl-tabs .tt-chip { flex: 0 0 auto; }
.syl-search input { width: 100%; min-height: 46px; margin-top: 10px; padding: 0 14px; border: 1px solid #cfd8cf; border-radius: 12px;
                    font: inherit; font-size: 16px; background: #fff; }
.syl-search input:focus { outline: 2px solid #16a34a; outline-offset: 1px; }
.info p.syl-found { margin: 6px 2px 0; font-size: 0.85rem; color: #5b6b5b; }
.info p.syl-found:empty { display: none; }
/* While searching, only the matching topics and their papers show. */
.syl-searching .syl-level > h2, .syl-searching .syl-level > p, .syl-searching .syl-level > table { display: none; }
.syl-topic-list li.is-hit a { background: #fef3c7; border-radius: 4px; }
.syl-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.syl-actions .btn { padding: 10px 16px; font-size: 0.92rem; }

/* Phones: buttons fill the width so they are easy to hit. */
@media (max-width: 640px) {
    .gcta-btn, .syl-actions .btn { flex: 1 1 100%; }
    .tt-actions { flex: 1 1 100%; justify-content: space-between; }
}

/* Company pages (page_company.html) - phone first.
   Charts: the inline SVG fills the width (its 320-wide drawing box keeps text
   readable on a phone) and is capped so it does not balloon on a desktop. */
.co-chart { margin: 14px 0 18px; padding: 12px; background: #fff; border: 1px solid #e3e8e3; border-radius: 14px; max-width: 680px; }
.co-chart figcaption { margin-bottom: 6px; font-size: 0.95rem; }
.co-chart svg { display: block; width: 100%; max-width: 480px; height: auto; }
/* Phones: less card padding, so the chart itself gets the width. */
@media (max-width: 480px) { .co-chart { padding: 8px; } }
/* Legend: a small swatch beside each series name (identity never by colour alone: names are written). */
.info ul.co-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 6px 0 0; font-size: 0.85rem; color: #4a5568; }
.co-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
/* "Show the numbers": the table view behind every chart. */
.co-numbers { margin-top: 8px; font-size: 0.88rem; }
.co-numbers summary { cursor: pointer; color: #064e06; }
/* Any wide table scrolls inside its own box, never the page. */
.co-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.co-scroll table { min-width: 520px; }
/* IFRS cards: the standard, why it matters here, the papers that teach it. */
.co-card { background: #fff; border: 1px solid #e3e8e3; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.info .co-card h3 { margin: 0 0 6px; font-size: 1rem; color: #064e06; }
.co-meta { font-size: 0.86rem; margin: 6px 0 0; }
.co-paper { white-space: nowrap; }
.co-ratios td:first-child { min-width: 200px; }
/* "Years covered" note under the hero: which reports were readable, said plainly. */
.co-coverage { background: #f6f8f6; border-left: 4px solid #2a78d6; border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; }

/* Guides hub: a heading above each area's cards ("Studying for CPA", "Becoming an auditor"). */
.info h2.ghub-area { margin: 22px 0 10px; }
/* Auditor-General report pages (guide_audit_reports, page_audit_county, page_audit_year).
   A link inside the hero eyebrow (county name) must read on the dark green hero. */
.info .ghero-eyebrow a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.info .ghero-eyebrow a:hover { color: #bef264; }
/* Opinion chips: a status colour AND a letter, so the meaning never rests on colour alone. */
.aud-chip { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 5px; font-size: 0.8rem;
            font-weight: 800; text-align: center; color: #fff; }
.aud-u { background: #0ca30c; }
.aud-q { background: #fab219; color: #0b0b0b; }
.aud-a { background: #ec835a; }
.aud-d { background: #d03b3b; }
/* County list on the guide: wrapping pills, one per county. */
.aud-counties { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.info a.aud-county { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff;
                     border: 1px solid #e3e8e3; border-radius: 999px; text-decoration: none; color: #064e06; }
.info a.aud-county:hover { border-color: #0a6420; }
/* Ministry-year: "this part of the report holds N audits" note under the hero. */
.aud-mix { background: #fff; border: 1px solid #e3e8e3; border-radius: 12px; padding: 10px 14px; font-size: 0.92rem; }
/* Year links under a county-year hero. */
.aud-yearlinks { font-size: 0.92rem; }
/* Findings: one card per finding - plain line first, the auditor's heading under it. */
.info ul.aud-items { list-style: none; padding: 0; margin: 0 0 18px; }
.aud-item { background: #fff; border: 1px solid #e3e8e3; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.aud-plain { margin: 0 0 4px; font-weight: 600; color: #1a202c; }
.aud-title { margin: 0 0 4px; font-size: 0.86rem; }
.aud-src { font-size: 0.86rem; }
/* "counted" tag: this item is part of the "not explained" total. */
.aud-counted { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 0.72rem;
               font-weight: 700; background: #fde8e8; color: #9b1c1c; vertical-align: middle; }
/* Years table on a county page scrolls inside itself on phones. */
.aud-years { display: block; overflow-x: auto; }
/* County + year picker (_audit_picker.html): one wrapping row, big targets. */
.aud-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 16px; padding: 14px;
              background: #fff; border: 1px solid #e3e8e3; border-radius: 14px; }
.aud-picker label { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: #4a5568; flex: 1 1 160px; }
.aud-picker select { padding: 10px; border: 1px solid #cfd8cf; border-radius: 10px; font: inherit; background: #fff; }
.aud-picker .btn { flex: 1 1 140px; }
.aud-legend { font-size: 0.88rem; }
/* Hub grid: all counties x all years; scrolls sideways inside its box on phones. */
.aud-grid-wrap { overflow-x: auto; background: #fff; border: 1px solid #e3e8e3; border-radius: 14px; margin-bottom: 12px; }
.aud-grid { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.aud-grid th, .aud-grid td { padding: 5px 7px; border-bottom: 1px solid #eef2ee; text-align: center; white-space: nowrap; }
.aud-grid th:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.info .aud-grid a { text-decoration: none; }
