/* =============================================================================
   "About Tyre Reviews": the group of site pages (About, Jonathan Benson, how we
   test, how we score, ethics, the legal pages)

   Layered over tyres-for.css (the tf- shell: head band, tokens) and
   article-section.css (.art-body typography, the folding contents). Everything
   here carries .ab-. Mobile first; the navigation rail appears from 992px and
   folds into a menu above the content below that.
   ========================================================================== */

.ab { --ab-rail: 250px; --ab-main: 780px; }

/* --- Head band -------------------------------------------------------------- */

.ab-head__kicker {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tf-cyan);
}

.ab-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--tf-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.76rem;
    color: #cfd8de;
}

.ab-head__meta .fa { color: var(--tf-muted-on-ink); margin-right: 3px; }
.ab-head__meta a { color: #fff; text-decoration: none; }
.ab-head__meta a:hover { text-decoration: underline; }

/* --- Layout: rail + content -------------------------------------------------- */

.ab-read { padding: 0; }

.ab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 20px;
    padding-bottom: 40px;
}

.ab-main { min-width: 0; }
.ab-side { display: none; }

@media (min-width: 992px) {
    .ab-layout {
        grid-template-columns: var(--ab-rail) minmax(0, var(--ab-main));
        justify-content: start;
        gap: 56px;
        padding-top: 34px;
        padding-bottom: 56px;
    }
    .ab-side { display: block; }
    .ab-nav--rail {
        position: sticky;
        top: 24px;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
        padding-bottom: 8px;
    }
    .ab-menu { display: none; }
}

/* --- The navigation (rail and folded menu share it) --------------------------- */

.ab-nav__group {
    margin: 20px 0 6px;
    padding: 0 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tf-muted);
}

.ab-nav__group:first-child { margin-top: 0; }

.ab-nav__list,
.ab-nav__toc { list-style: none; margin: 0; padding: 0; }
.ab-nav li { margin: 0; padding: 0; }

a.ab-nav__link,
a.ab-nav__link:link,
a.ab-nav__link:visited {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--tf-text);
    text-decoration: none;
}

a.ab-nav__link .fa { flex-shrink: 0; color: var(--tf-muted); }
a.ab-nav__link:hover { background: var(--tf-mist); color: var(--tf-text); text-decoration: none; }

a.ab-nav__link.is-current,
a.ab-nav__link.is-current:link,
a.ab-nav__link.is-current:visited { background: var(--tf-ink); color: #fff; font-weight: 700; }
a.ab-nav__link.is-current .fa { color: var(--tf-cyan); }

.ab-nav__toc {
    margin: 6px 0 10px 18px;
    padding-left: 12px;
    border-left: 2px solid var(--tf-line);
}

/* The sub-list also carries .art-toc__list for article-section.js; undo the
   borders and spacing article-section.css gives that list. */
.ab-nav__toc li,
.ab-nav__toc li:first-child { border-top: 0; }

.ab-nav__toc a,
.ab-nav__toc.art-toc__list a {
    display: block;
    padding: 4px 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--tf-muted);
    text-decoration: none;
}

.ab-nav__toc a:hover { color: var(--tf-text); }
.ab-nav__toc a.is-active { color: var(--tf-text); font-weight: 700; }

/* Narrow screens: the whole navigation folds into one menu. */
.ab-menu {
    margin: 0 0 14px;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    background: var(--tf-paper);
}

.ab-menu > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon label caret" "icon current caret";
    align-items: center;
    column-gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
}

.ab-menu > summary::-webkit-details-marker { display: none; }
.ab-menu > summary > .fa-bars { grid-area: icon; color: var(--tf-cyan); }
.ab-menu__label { grid-area: label; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tf-muted); }
.ab-menu__current { grid-area: current; font-size: 0.95rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-menu__caret { grid-area: caret; color: var(--tf-muted); transition: transform 0.15s; }
.ab-menu[open] .ab-menu__caret { transform: rotate(180deg); }
.ab-nav--fold { padding: 12px 6px 12px; border-top: 1px solid var(--tf-line); }

/* The page's own contents fold sits under the menu on narrow screens and
   inside the rail on wide ones (article-section.css hides it from 992px). */
.ab-toc { margin-bottom: 22px; }

/* --- Previous / next ---------------------------------------------------------- */

.ab-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--tf-line);
}

a.ab-pager__link,
a.ab-pager__link:link,
a.ab-pager__link:visited {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    color: var(--tf-text);
    text-decoration: none;
}

a.ab-pager__link:hover { border-color: var(--tf-cyan); text-decoration: none; }
.ab-pager__link--next { grid-column: 2; text-align: right; }
.ab-pager__dir { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-muted); }
.ab-pager__title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

/* ==========================================================================
   Content components. The content files use these and plain HTML; nothing
   in them carries inline styles.
   ========================================================================== */

.ab-body li { padding: 0; }

.ab-body .ab-lead { margin: 0 0 24px; font-size: 1.14rem; line-height: 1.65; }

/* A row of figures. */
.ab-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 28px;
    background: var(--tf-line);
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 640px) { .ab-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ab-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; background: var(--tf-paper); }

.ab-stat__n {
    font-family: var(--tf-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--tf-text);
}

.ab-stat__l { font-size: 0.8rem; line-height: 1.35; color: var(--tf-muted); }

/* Cards in a grid. Titles are divs so they stay out of the contents list. */
.ab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin: 0 0 26px;
}

.ab-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    background: var(--tf-paper);
}

.ab-card--mist { background: var(--tf-mist); border-color: var(--tf-mist); }

/* Three short cards that should sit in one row on a wide screen. */
.ab-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.ab-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--tf-text);
}

.ab-card__title > .fa { flex-shrink: 0; color: var(--tf-cyan); }
.ab-body .ab-card__logo { display: block; flex-shrink: 0; height: 22px; width: auto; max-width: 90px; object-fit: contain; border-radius: 0; }
.ab-card p { margin: 0; font-size: 0.94rem; line-height: 1.6; }
.ab-card p + p { margin-top: 6px; }
.ab-card__note { color: var(--tf-muted); font-size: 0.86rem; }
.ab-body .ab-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin: 0 0 6px; }
.ab-card ul { margin: 0; padding-left: 18px; font-size: 0.93rem; line-height: 1.6; }
.ab-card li { margin: 0 0 3px; }

/* A quotation with its source. .ab-body raises it over .art-body blockquote,
   which would otherwise grey the text and reset the padding. */
.ab-body .ab-quote {
    margin: 0 0 22px;
    padding: 16px 18px 16px 20px;
    border-left: 3px solid var(--tf-cyan);
    border-radius: 0 8px 8px 0;
    background: var(--tf-mist);
    color: var(--tf-text);
    font-size: 1rem;
}

.ab-body .ab-quote p { margin: 0; line-height: 1.6; }
.ab-body .ab-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.84rem; color: var(--tf-muted); }

/* Short third-party quotes side by side, each with its source underneath. */
.ab-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px;
    margin: 0 0 26px;
}

.ab-body .ab-quotes .ab-quote { display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.ab-body .ab-quotes .ab-quote p { font-weight: 600; }
.ab-body .ab-quotes .ab-quote cite { font-weight: 700; color: var(--tf-text); }

/* Logos in a row. */
.ab-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 30px;
    margin: 0 0 26px;
    padding: 18px 20px;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    background: var(--tf-paper);
}

.ab-body .ab-logos img { display: block; height: 30px; width: auto; max-width: 130px; object-fit: contain; border-radius: 0; }
.ab-logos__caption { flex-basis: 100%; margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--tf-muted); }

/* Dated milestones. .ab-body raises these over .art-body ol, whose
   padding would otherwise push every entry off the line. */
.ab-body .ab-timeline { list-style: none; margin: 0 0 26px 6px; padding: 0; border-left: 2px solid var(--tf-line); }
.ab-body .ab-timeline li { position: relative; margin: 0; padding: 0 0 16px 22px; }
.ab-timeline li:last-child { padding-bottom: 0; }

.ab-timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--tf-cyan);
    border-radius: 50%;
    background: var(--tf-paper);
}

.ab-timeline__y { display: block; font-family: var(--tf-mono); font-variant-numeric: tabular-nums; font-size: 0.85rem; font-weight: 600; }
.ab-timeline p { margin: 2px 0 0; font-size: 0.97rem; line-height: 1.6; }

/* Questions. Each is a <details>; the page builds FAQPage schema from them. */
.ab-faq { margin: 0 0 26px; border-top: 1px solid var(--tf-line); }
.ab-faq__item { border-bottom: 1px solid var(--tf-line); }

.ab-faq__item > summary {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 2px;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.ab-faq__item > summary::-webkit-details-marker { display: none; }
.ab-faq__item > summary::after { content: "\f107"; font-family: FontAwesome; margin-left: auto; color: var(--tf-muted); transition: transform 0.15s; }
.ab-faq__item[open] > summary::after { transform: rotate(180deg); }
.ab-faq__item > summary:hover { color: var(--tf-cyan); }
.ab-faq__a { padding: 0 2px 16px; font-size: 0.97rem; line-height: 1.7; }
.ab-faq__a p { margin: 0 0 10px; }
.ab-faq__a p:last-child { margin-bottom: 0; }

/* Pictures. */
.ab-figure { margin: 0 0 26px; }
.ab-body .ab-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ab-figure figcaption { margin-top: 8px; font-size: 0.82rem; line-height: 1.45; color: var(--tf-muted); }

/* Text beside a picture; stacks on narrow screens. */
.ab-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; margin: 0 0 28px; }
.ab-split > :last-child { margin-bottom: 0; }
.ab-split p:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
    .ab-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
    .ab-split--portrait { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.ab-body .ab-split img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* A note beside the text. */
.ab-note {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--tf-mist);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ab-note > .fa { flex-shrink: 0; color: var(--tf-cyan); }
.ab-note p { margin: 0; }
.ab-note p + p { margin-top: 8px; }

/* A list of ticks. */
.ab-body .ab-checks { list-style: none; display: grid; gap: 10px; margin: 0 0 24px; padding: 0; }
.ab-body .ab-checks li { display: flex; gap: 12px; align-items: baseline; margin: 0; }
.ab-checks li > .fa { flex-shrink: 0; color: var(--tf-good); }

/* Buttons: contact routes, social profiles. */
.ab-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }

a.ab-btn,
a.ab-btn:link,
a.ab-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--tf-line);
    border-radius: 6px;
    background: var(--tf-paper);
    color: var(--tf-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

a.ab-btn .fa { color: var(--tf-cyan); }
a.ab-btn:hover { border-color: var(--tf-cyan); color: var(--tf-text); text-decoration: none; }

a.ab-btn--primary,
a.ab-btn--primary:link,
a.ab-btn--primary:visited { background: var(--tf-cyan); border-color: var(--tf-cyan); color: #fff; }
a.ab-btn--primary .fa { color: #fff; }
a.ab-btn--primary:hover { background: #0a9bcc; border-color: #0a9bcc; color: #fff; }

/* Links on to other pages in the group. */
.ab-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 12px;
    margin: 0 0 26px;
}

a.ab-related__item,
a.ab-related__item:link,
a.ab-related__item:visited {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    background: var(--tf-paper);
    color: var(--tf-text);
    text-decoration: none;
}

a.ab-related__item:hover { border-color: var(--tf-cyan); text-decoration: none; }
.ab-related__title { display: flex; gap: 8px; align-items: baseline; font-weight: 800; line-height: 1.3; }
.ab-related__title .fa { flex-shrink: 0; color: var(--tf-cyan); }
.ab-related__desc { font-size: 0.87rem; line-height: 1.5; color: var(--tf-muted); }

/* A postal address or other block of plain facts. */
.ab-address {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    font-style: normal;
    line-height: 1.65;
}

/* A table that scrolls sideways on its own when it has to. */
.ab-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; }
.ab-table table { min-width: 480px; }
.ab-table td code { font-size: 0.86rem; }

/* A person: round photo, name and role. */
.ab-person { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.ab-body .ab-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tf-cyan); flex-shrink: 0; }
.ab-person > div { display: flex; flex-direction: column; line-height: 1.3; }
.ab-person b { font-size: 1.05rem; }
.ab-person span { font-size: 0.86rem; color: var(--tf-muted); }

/* Who cites Tyre Reviews (tr_recognition_list): one source per row, under a
   heading per tyre maker or publication where there are several. */
.ab-body .ab-cites { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--tf-line); }
.ab-body .ab-cite { margin: 0; padding: 12px 0 13px; border-bottom: 1px solid var(--tf-line); }
.ab-body .ab-cite__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 3px; font-size: 0.82rem; line-height: 1.45; }
.ab-cite__org { font-size: 0.93rem; font-weight: 800; color: var(--tf-text); }
.ab-cite__meta { color: var(--tf-muted); }
.ab-body a.ab-cite__title { display: block; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.ab-body .ab-cite__what { margin: 5px 0 0; font-size: 0.93rem; line-height: 1.55; }
.ab-body .ab-cite__quote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--tf-cyan); border-radius: 0 6px 6px 0; background: var(--tf-mist); color: var(--tf-text); font-size: 0.93rem; }
.ab-body .ab-cite__quote p { margin: 0; line-height: 1.55; }
.ab-body .ab-cite__quote cite { display: block; margin-top: 4px; font-size: 0.8rem; font-style: normal; color: var(--tf-muted); }
.ab-body .ab-cite__ours { margin: 6px 0 0; font-size: 0.84rem; line-height: 1.5; }
.ab-cite__ours .fa { margin-right: 3px; color: var(--tf-muted); }
.ab-citegroup { margin: 0 0 6px; }
.ab-body .ab-citegroup__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 24px 0 8px; font-size: 1.06rem; }
.ab-citegroup__n { font-size: 0.8rem; font-weight: 500; color: var(--tf-muted); }
