/* =====================================================================
   about.css — About the Department
   ---------------------------------------------------------------------
   Scoped to `.about-page`. Nothing in this file may use a bare element
   selector.

   The previous version of this file styled `body`, `footer`, `table`,
   `th`, `td`, `h1`, `h2`, `h3`, `h5`, `h6`, `.container`, `.section`,
   `.white-box` and `.button` globally. Because it was linked from inside
   the content placeholder it loaded AFTER css/gov-theme.css in the head,
   so those rules applied to the whole document on any page reached
   through About. The two that actually showed:

     footer { position: fixed; bottom: 0; }   pinned the site footer over
                                              the page content
     body   { font-family: 'Roboto' }         dropped the Poppins/Inter
                                              pairing the rest of the site
                                              uses

   plus a green (#4CAF50) table header and an orange (#f57e3a) heading
   rule that belong to no palette on this site. All of it is gone; colour
   and rhythm now come from the gov-theme tokens.
   ===================================================================== */

/* ---------- Hero ---------- */
/* The banner's own gradient, radius and padding come from .page-banner in
   gov-theme.css. Only the internal layout is set here. */
.about-page .about-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3.5vw, 44px);
}

.about-page .about-hero-text {
    flex: 1 1 460px;
    max-width: 680px;
}

.about-page .about-hero-text h1 {
    margin: 10px 0 14px !important;
    font-size: clamp(28px, 3.4vw, 42px) !important;
    line-height: 1.14 !important;
    letter-spacing: -.02em !important;
}

.about-page .about-hero-text p {
    max-width: 62ch;
    font-size: clamp(14.5px, 1.15vw, 16.5px);
    line-height: 1.75;
}

.about-page .about-hero-stats {
    flex: 0 1 auto;
    flex-wrap: wrap;
}

/* ---------- Introduction: copy + milestones ---------- */
.about-page .about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
}

.about-page .about-split-main p {
    color: var(--tg-ink-soft);
    font-size: 15.5px;
    line-height: 1.8;
    margin: 0 0 14px;
    text-align: justify;
}

.about-page .about-split-main p:last-child {
    margin-bottom: 0;
}

.about-page .about-split-main strong {
    color: var(--tg-navy);
    font-weight: 600;
}

/* Milestones. The vertical rule is drawn on the <ol> rather than as a
   border on each item so it stops cleanly at the last marker instead of
   running past it. */
.about-page .about-timeline {
    position: relative;
    list-style: none;
    margin: 4px 0 0;
    padding: 0 0 0 4px;
}

.about-page .about-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--tg-gold), var(--tg-blue-500));
    border-radius: 2px;
}

.about-page .about-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 22px;
}

.about-page .about-timeline-item:last-child {
    padding-bottom: 0;
}

/* Marker dot, sitting on the rule */
.about-page .about-timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tg-white);
    border: 3px solid var(--tg-blue-700);
    box-shadow: 0 0 0 4px var(--tg-blue-50);
}

.about-page .about-timeline-year {
    grid-column: 2;
    font-family: var(--tg-font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--tg-blue-700);
}

.about-page .about-timeline-body {
    grid-column: 2;
    font-size: 14px;
    line-height: 1.65;
    color: var(--tg-muted);
}

.about-page .about-timeline-body strong {
    display: block;
    color: var(--tg-navy);
    font-family: var(--tg-font-heading);
    font-weight: 600;
    font-size: 15px;
    margin: 2px 0 4px;
}

/* ---------- Mission & Vision ---------- */
.about-page .about-duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.about-page .about-pillar {
    background: var(--tg-blue-50);
    border: 1px solid var(--tg-border);
    border-left: 4px solid var(--tg-gold);
    border-radius: var(--tg-radius);
    padding: 24px clamp(18px, 2.2vw, 28px);
}

.about-page .about-pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tg-blue-700);
    color: #fff;
    font-size: 18px;
    box-shadow: var(--tg-shadow-sm);
}

/* Not a .section h2, so it needs its own treatment - and deliberately
   left-aligned, unlike the centred section headings, because it labels a
   left-aligned column of text. */
.about-page .about-pillar h3 {
    font-size: 19px !important;
    color: var(--tg-navy) !important;
    margin: 14px 0 12px !important;
    border: none !important;
    padding: 0 !important;
}

.about-page .about-pillar ul {
    margin: 0;
    padding-left: 20px;
    color: var(--tg-ink-soft);
}

.about-page .about-pillar li {
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 9px;
}

.about-page .about-pillar li::marker {
    color: var(--tg-gold-dark);
}

.about-page .about-pillar li:last-child {
    margin-bottom: 0;
}

/* ---------- Mandate tiles ---------- */
/* Fixed 3-up rather than auto-fit. There are six tiles, and auto-fit
   resolved to four columns on a wide screen, leaving an orphan row of
   two. Three columns give a clean 3 x 2 block at every desktop width. */
.about-page .about-mandate {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 20px);
}

@media (max-width: 860px) {
    .about-page .about-mandate {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .about-page .about-mandate {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* .card supplies the surface, border, radius and hover lift from
   gov-theme; this adds the link behaviour and internal layout. */
.about-page .about-tile {
    display: block;
    padding: 22px 20px;
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* Gold wipe on hover, matched to the accent used on section headings */
.about-page .about-tile::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--tg-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--tg-ease-out);
}

.about-page .about-tile:hover::before,
.about-page .about-tile:focus-visible::before {
    transform: scaleX(1);
}

/* The hover lift has to be restated at this specificity. gov-theme's
   `.card:hover { transform: translateY(-6px) }` is outranked by
   `.reveal.in-view { transform: none }`, which js/motion.js puts on every
   .card and which is declared far later in the same file. Three classes
   beats two, so the lift survives the reveal. */
.about-page .about-tile:hover,
.about-page .about-tile:focus-visible {
    transform: translateY(-6px);
}

.about-page .about-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--tg-blue-50);
    color: var(--tg-blue-700);
    font-size: 19px;
    margin-bottom: 14px;
    transition: background-color .25s var(--tg-ease-out), color .25s var(--tg-ease-out);
}

.about-page .about-tile:hover .about-tile-icon {
    background: var(--tg-blue-700);
    color: #fff;
}

.about-page .about-tile-title {
    display: block;
    font-family: var(--tg-font-heading);
    font-weight: 600;
    font-size: 16.5px;
    color: var(--tg-navy);
    margin-bottom: 6px;
}

.about-page .about-tile-desc {
    display: block;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--tg-muted);
}

/* ---------- Onward links ---------- */
.about-page .about-next-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.about-page .about-next-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius);
    background: var(--tg-white);
    text-decoration: none !important;
    color: var(--tg-navy);
    font-family: var(--tg-font-heading);
    font-weight: 600;
    font-size: 15px;
    transition: border-color .25s var(--tg-ease-out), box-shadow .25s var(--tg-ease-out), transform .3s var(--tg-ease-spring);
}

.about-page .about-next-links a:hover,
.about-page .about-next-links a:focus-visible {
    border-color: var(--tg-blue-500);
    box-shadow: var(--tg-shadow-sm);
    transform: translateY(-2px);
}

.about-page .about-next-links i {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tg-blue-50);
    color: var(--tg-blue-700);
    font-size: 15px;
}

.about-page .about-next-links span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.about-page .about-next-links small {
    font-family: var(--tg-font-body);
    font-weight: 400;
    font-size: 12.5px;
    color: var(--tg-muted);
    margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    /* Milestones drop below the copy rather than squeezing into a
       column too narrow for the year + title pairing to stay on one line */
    .about-page .about-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-page .about-timeline {
        padding-top: 6px;
        border-top: 1px solid var(--tg-border);
    }
}

@media (max-width: 700px) {
    .about-page .about-hero-inner {
        align-items: flex-start;
    }

    /* Grid, not the inherited flex row. Flex-wrapping three tiles at this
       width put two on the first row and let the third stretch across the
       second on its own, which read as a mistake. Three equal columns keep
       the figures as one comparable set; the type steps down so the longest
       label ("Protected Monuments") still wraps to two lines rather than
       being clipped. */
    .about-page .about-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
    }

    .about-page .about-hero-stats .hps-stat {
        min-width: 0;
        padding: 14px 10px;
    }

    .about-page .about-hero-stats .hps-stat-num {
        font-size: 24px;
    }

    .about-page .about-hero-stats .hps-stat-label {
        font-size: 11px;
        line-height: 1.35;
    }

    .about-page .about-split-main p {
        text-align: left;
        font-size: 15px;
    }
}
