/* =====================================================================
   Arsuz Kültür — pages.css
   Page-specific styles. Shared components (hero, sections, cards, rails,
   tiles, chips, invitations …) live in site.css; this file only adds what
   one page needs on top of them. One block per page, in this order:

     home ........ views/home/index.php, partials/home-news.php, partials/home-alerts.php
     lists ....... helpers shared by list pages: filters, status line, notes, pager, search bar
     detail ...... helpers shared by detail pages: figure, facts card, detail card, side card, sources, FAQ
     forms ....... form card, sections, notices, info panels (contact, directory form, jobs, issues, alerts)
     articles .... views/articles/{index,show,history}.php
     events ...... views/events/{index,show}.php
     gallery ..... views/gallery/{index,credits}.php (photo grid, masonry, credits list)
     directory ... views/directory/{index,show,create}.php
     community ... news, alerts, issues, jobs, contact, writers

   Append the blocks of other pages below.
   ===================================================================== */

/* ---------------------------------------------------------------------
   home
   --------------------------------------------------------------------- */

/* Phones: tighter vertical rhythm, the page is long. */
@media (max-width: 767.98px) {
    .home-discover, .home-events, .home-articles, .home-businesses, .home-daily, .home-gallery, .home-map { --ak-section-y: 2rem; }
    .home-discover .section-heading { margin-bottom: 1rem; }
    /* Headings with a "see all" link: the link sits on the eyebrow line (top right), the title follows on its
       own line. A long eyebrow is cut with an ellipsis instead of pushing the link down. */
    :is(.home-news-section, .home-events, .home-articles, .home-businesses, .home-gallery, .home-daily-directory) .section-heading { align-items: center; gap: .3rem 1rem; margin-bottom: 1rem; }
    :is(.home-news-section, .home-events, .home-articles, .home-businesses, .home-gallery, .home-daily-directory) .section-heading > div { display: contents; }
    :is(.home-news-section, .home-events, .home-articles, .home-businesses, .home-gallery, .home-daily-directory) .section-eyebrow {
        display: block;
        order: 1;
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        letter-spacing: .1em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    :is(.home-news-section, .home-events, .home-articles, .home-businesses, .home-gallery, .home-daily-directory) .section-eyebrow::before { display: inline-block; width: 1.1rem; margin-right: .45rem; vertical-align: middle; }
    /* 44px tap area, 28px of layout height. */
    :is(.home-news-section, .home-events, .home-articles, .home-businesses, .home-gallery, .home-daily-directory) .link-arrow { order: 2; flex: none; margin-block: -8px; font-size: .95rem; }
    :is(.home-news-section, .home-events, .home-articles, .home-businesses, .home-gallery, .home-daily-directory) .section-title { order: 3; flex: 0 0 100%; }
}
@media (max-width: 359.98px) {
    :is(.home-news-section, .home-events, .home-articles, .home-businesses, .home-gallery, .home-daily-directory) .section-eyebrow::before { display: none; }
}

/* -- Hero: numbers are links, one quiet line for business owners -- */
.hero-home .stat-row { gap: .25rem clamp(1.5rem, 4vw, 2.75rem); margin-top: 1.6rem; }
.hero-home .stat { justify-content: center; min-height: 44px; }
.hero-home .stat-label { display: inline-flex; align-items: center; gap: .1rem; font-size: .9rem; }
.hero-home .stat-label .bi { font-size: 1.15em; line-height: 1; transition: transform .2s var(--ak-ease); }
.hero-home a.stat:hover .stat-label { color: #fff; }
.hero-home a.stat:hover .stat-label .bi { transform: translateX(3px); }
.hero-home-owner {
    margin: 1.35rem 0 0;
    padding-top: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
    color: var(--ak-on-dark);
    font-size: .95rem;
    line-height: 1.5;
}
.hero-home-owner a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .5);
    text-underline-offset: .22em;
}
.hero-home-owner a:hover { color: var(--ak-accent); text-decoration-color: currentColor; }
.hero-home-owner a .bi { transition: transform .2s var(--ak-ease); }
.hero-home-owner a:hover .bi:last-child { transform: translateX(3px); }

/* Below 1200px the photo is a clear window at the top (river, boats and restaurants in view) and the text
   starts where the overlay is already 90% dark, so white text keeps AA whatever the photo shows. */
@media (max-width: 1199.98px) {
    .hero-home { --hero-window: 10.5rem; }
    .page-hero--tall.page-hero--photo.hero-home { padding-top: var(--hero-window); }
    .hero-home .page-hero-media { bottom: auto; height: calc(var(--hero-window) + 1rem); }
    .hero-home .page-hero-media img { object-position: center 72%; }
    .page-hero--tall.page-hero--photo.hero-home::before {
        background: linear-gradient(180deg,
            rgba(var(--ak-ink-rgb), .1) 0,
            rgba(var(--ak-ink-rgb), .18) calc(var(--hero-window) * .5),
            rgba(var(--ak-ink-rgb), .9) calc(var(--hero-window) - .25rem),
            var(--ak-ink) calc(var(--hero-window) + 1rem));
    }
    .hero-home .page-hero-place { top: .6rem; bottom: auto; }
}
@media (min-width: 576px) and (max-width: 1199.98px) { .hero-home { --hero-window: 14rem; } }
@media (min-width: 768px) and (max-width: 1199.98px) { .hero-home { --hero-window: 17rem; } }

/* -- Discovery tiles: swipe row on phones, 4 columns from md, 5 with two wide tiles from lg -- */
.rail.discover-grid { gap: .75rem; }
.rail.discover-grid > * { flex-basis: min(46%, 12rem); }
.discover-tile { aspect-ratio: 4 / 5; }
.discover-tile .tile-body { padding: 2.75rem .85rem .85rem; }
.discover-tile .tile-title { font-size: 1.08rem; overflow-wrap: anywhere; }
.discover-tile .tile-text { font-size: .8rem; }
/* Where a photo was taken, when that is not Arsuz (reusable on any .tile). */
.tile-place {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    max-width: calc(100% - 1rem);
    padding: .1rem .5rem;
    border-radius: var(--ak-radius-pill);
    background: rgba(var(--ak-ink-rgb), .68);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
@media (min-width: 768px) {
    .rail.discover-grid { --rail-cols: 4; gap: 1rem; }
    .discover-tile { aspect-ratio: auto; height: 13rem; }
    .discover-tile .tile-title { font-size: 1.15rem; }
}
@media (min-width: 992px) {
    .rail.discover-grid { --rail-cols: 5; }
    .discover-tile { height: 14.5rem; }
    .discover-tile--wide { grid-column: span 2; }
    .discover-tile--wide .tile-title { font-size: 1.4rem; }
    .discover-tile--wide .tile-text { font-size: .9rem; }
}
@media (min-width: 1400px) { .discover-tile { height: 15.5rem; } }

/* -- News: dense list, two columns from lg (partials/home-news.php) -- */
.home-news-section { padding: var(--ak-section-y) 0; }
.news-brief-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ak-border); }
.news-brief {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem .15rem;
    border-bottom: 1px solid var(--ak-border);
    break-inside: avoid;
}
.news-brief > .icon-circle { margin-top: .1rem; }
.news-brief-body { flex: 1; min-width: 0; }
.news-brief .news-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0;
    font-family: var(--ak-font-body);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
}
.news-brief .news-card-title a { color: var(--ak-dark); text-decoration: none; }
.news-brief:hover .news-card-title a { color: var(--ak-primary); text-decoration: none; }
.news-brief .news-card-title a:focus-visible { outline: none; }
.news-brief .news-card-title a:focus-visible::after { outline: 3px solid var(--ak-focus); outline-offset: -3px; border-radius: .4rem; }
.news-brief-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .2rem 0 0;
    color: var(--ak-text-light);
    font-size: .8rem;
    line-height: 1.55;
    white-space: nowrap;
}
.news-brief-meta > * { flex: none; }
.news-brief-meta > * + *::before { content: '·'; margin-right: .5rem; color: #8ea5ad; }
.news-brief-kind { color: var(--ak-primary-dark); font-weight: 800; }
.news-brief-meta > .news-brief-source { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.news-brief-arrow { flex: none; margin-top: .2rem; color: var(--ak-primary); font-size: .9rem; transition: transform .2s var(--ak-ease); }
.news-brief:hover .news-brief-arrow { transform: translate(2px, -2px); }
.news-brief-note { display: flex; align-items: baseline; gap: .5rem; margin: .9rem 0 0; color: var(--ak-text-light); font-size: .84rem; }
.home-news-section .news-empty-state { padding: 1.25rem 1.4rem; }
.home-news-section .news-empty-state p { margin-bottom: .4rem; }
@media (min-width: 992px) {
    .news-brief-list { columns: 2; column-gap: 3rem; }
}
@media (max-width: 767.98px) {
    .home-news-section { padding: 2rem 0; }
    .news-brief { padding-block: .75rem; }
    /* Four rows are enough on a phone; the rest is one tap away. */
    .news-brief:nth-child(n+5) { display: none; }
}

/* -- Alerts (partials/home-alerts.php): a slim strip without alerts, cards with them -- */
.home-alerts-section { padding: 2rem 0; }
.home-alerts-section > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "live" "actions";
    gap: .9rem 1.5rem;
}
.home-alerts-head { grid-area: head; min-width: 0; }
.home-alerts-head .section-title { display: flex; align-items: center; gap: .6rem; margin: 0; }
.home-alerts-head .section-title .bi { color: var(--ak-primary); font-size: .8em; }
.home-alerts-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: .5rem; }
.home-alerts-section .live-alerts { grid-area: live; min-width: 0; }
.home-alerts-section .alert-cards-grid:empty { display: none; }
.home-alerts--quiet { padding: 1.1rem 0 1.25rem; border-top: 0; }
.home-alerts--quiet > .container { row-gap: .3rem; }
.home-alerts--quiet .section-eyebrow, .home-alerts--quiet .alerts-live-toolbar { display: none; }
.home-alerts--quiet .section-title { font-family: var(--ak-font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; line-height: 1.4; }
.home-alerts--quiet .section-title .bi { font-size: 1em; }
.home-alerts--quiet .alerts-empty { padding: 0; border: 0; background: none; font-size: .92rem; line-height: 1.5; }
.home-alerts--quiet .home-alerts-actions { margin-top: .55rem; }
/* An alert published while the page is open (alerts.js fills the list) brings the toolbar back. */
.home-alerts--quiet:has([data-alert-items] > *) .alerts-live-toolbar { display: flex; margin-top: .6rem; }
@media (min-width: 768px) {
    .home-alerts-section > .container { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head actions" "live live"; align-items: end; }
    .home-alerts--quiet > .container { grid-template-areas: "head actions" "live actions"; align-items: center; }
    .home-alerts--quiet .home-alerts-actions { margin-top: 0; }
    .home-alerts--quiet:has([data-alert-items] > *) > .container { grid-template-areas: "head actions" "live live"; }
}

@media (max-width: 575.98px) {
    /* Phones: alert cards sit side by side in a swipe row instead of a tall stack. */
    .home-alerts-section .alert-cards-grid {
        display: flex;
        gap: .75rem;
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) .75rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
        scrollbar-width: thin;
    }
    .home-alerts-section .alert-cards-grid > * { flex: 0 0 86%; scroll-snap-align: start; }
    .home-alerts-section .alert-cards-grid > :only-child { flex-basis: 100%; }
}

/* -- Card rails: six cards to swipe on phones, four on tablets, three on desktop -- */
@media (max-width: 767.98px) {
    .home-rail > *, .home-business-rail > * { flex-basis: min(76%, 18rem); }
    .home-rail .card-excerpt, .home-business-rail .ak-card .card-excerpt { display: none; }
    .rail.home-rail, .rail.home-business-rail { padding-bottom: .6rem; }
    /* One line for the address in the swipe row; the business page has it in full. */
    .home-business-rail .card-meta li:last-child:not(:only-child) span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
}
@media (min-width: 768px) and (max-width: 991.98px) { .home-rail > :nth-child(n+5) { display: none; } }
@media (min-width: 992px) { .home-rail > :nth-child(n+4) { display: none; } }

/* -- Businesses: a 44px tap area for the phone number (28px of layout), and the invitation card takes the
      free slots of the last row -- */
.home-business-rail .card-meta a[href^="tel:"] { min-height: 44px; margin-block: -8px; }
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-ghost--md2 { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
    .home-ghost--lg2 { grid-column: span 2; }
    .home-ghost--lg3 { grid-column: 1 / -1; }
}
/* A full-row invitation lies flat: icon, text, button. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-ghost--md2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon title action" "icon text action"; align-items: center; gap: .15rem 1.25rem; min-height: 0; padding: 1.4rem 1.5rem; text-align: left; }
    .home-ghost--md2 > .icon-circle { grid-area: icon; }
    .home-ghost--md2 > .ghost-card-title { grid-area: title; align-self: end; margin: 0; }
    .home-ghost--md2 > .ghost-card-text { grid-area: text; align-self: start; max-width: none; }
    .home-ghost--md2 > .btn { grid-area: action; margin: 0; }
}
@media (min-width: 992px) {
    .home-ghost--lg3 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon title action" "icon text action"; align-items: center; gap: .15rem 1.25rem; min-height: 0; padding: 1.4rem 1.75rem; text-align: left; }
    .home-ghost--lg3 > .icon-circle { grid-area: icon; }
    .home-ghost--lg3 > .ghost-card-title { grid-area: title; align-self: end; margin: 0; }
    .home-ghost--lg3 > .ghost-card-text { grid-area: text; align-self: start; max-width: none; }
    .home-ghost--lg3 > .btn { grid-area: action; margin: 0; }
}

/* -- Everyday links (.guide-link-grid is pinned by a test) and the official directory: two list cards -- */
.home-daily-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.home-daily .section-heading { margin-bottom: 1.15rem; }
.guide-link-grid, .dir-brief-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-lg);
    background: #fff;
}
.guide-link-grid > li + li, .dir-brief + .dir-brief { border-top: 1px solid var(--ak-border); }
/* The older rule for ".guide-link-grid a" sets border and padding with !important. */
.guide-link-grid a.guide-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 3.4rem;
    padding: .5rem .9rem !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .18s ease;
}
.guide-link-grid a.guide-link:hover { background: #f4f8f8; color: var(--ak-primary-dark); }
.guide-link-grid a.guide-link:focus-visible { outline-offset: -3px; }
.guide-link-label { flex: 1; min-width: 0; font-size: .96rem; overflow-wrap: anywhere; }
.guide-link-arrow { flex: none; color: var(--ak-primary); font-size: .8rem; transition: transform .2s var(--ak-ease); }
.guide-link:hover .guide-link-arrow { transform: translateX(3px); }
.dir-brief { position: relative; display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; transition: background-color .18s ease; }
.dir-brief:hover { background: #f4f8f8; }
.dir-brief-body { flex: 1; min-width: 0; }
.dir-brief-title { margin: 0; font-family: var(--ak-font-body); font-size: .98rem; font-weight: 800; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
.dir-brief-title a { color: var(--ak-dark); text-decoration: none; }
.dir-brief:hover .dir-brief-title a { color: var(--ak-primary); }
.dir-brief-title a:focus-visible { outline: none; }
.dir-brief-title a:focus-visible::after { outline: 3px solid var(--ak-focus); outline-offset: -3px; }
.dir-brief-meta { margin: .3rem 0 0; line-height: 1; }
.dir-brief-meta .chip { padding: .1rem .55rem; font-size: .72rem; }
.dir-brief-phone {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    flex: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0 .85rem;
    border-radius: var(--ak-radius-pill);
    background: var(--ak-tint);
    color: var(--ak-primary-dark);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.dir-brief-phone:hover { background: var(--ak-tint-strong); color: var(--ak-primary-dark); }
@media (max-width: 575.98px) {
    /* Phones: a round call button (the number stays available to assistive technology), no category chip,
       four institutions, and the three shortcuts that repeat the menu are left out of the links list. */
    .dir-brief-phone { padding: 0; }
    .dir-brief-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .dir-brief-meta, .dir-brief:nth-child(n+5) { display: none; }
    .guide-link-grid > li:nth-child(n+8) { display: none; }
}
@media (min-width: 992px) {
    .home-daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; align-items: start; }
    .home-daily-grid--single { grid-template-columns: minmax(0, 46rem); }
    .guide-link-grid a.guide-link { min-height: 3.1rem; padding-block: .4rem !important; }
}

/* -- Gallery preview: eight photos, one large and one wide -- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.mosaic-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--ak-radius);
    background: var(--ak-tint);
    color: #fff;
}
.mosaic-item > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .7s var(--ak-ease); }
.mosaic-item--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic-item--wide { grid-column: span 2; aspect-ratio: auto; }
.mosaic-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem .75rem .6rem;
    background: linear-gradient(0deg, rgba(var(--ak-ink-rgb), .92) 0, rgba(var(--ak-ink-rgb), .8) calc(100% - 2rem), rgba(var(--ak-ink-rgb), 0) 100%);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    transition: opacity .25s ease;
}
.mosaic-item:focus-visible { outline: 3px solid var(--ak-focus); outline-offset: 3px; }
.mosaic-item:focus-visible .mosaic-caption { opacity: 1; }
@media (hover: hover) {
    .mosaic-item:hover .mosaic-caption { opacity: 1; }
    .mosaic-item:hover > img { transform: scale(1.05); }
}
@media (min-width: 576px) {
    .mosaic-item--big .mosaic-caption { opacity: 1; font-size: .9rem; }
}
@media (min-width: 768px) {
    .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
    .mosaic--even { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mosaic-item { border-radius: var(--ak-radius-lg); }
}

/* -- Map: text beside a lazy Google Maps frame -- */
.home-map-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.home-map-copy .section-title { margin: 0 0 .6rem; }
.home-map-copy .section-subtitle { margin: 0; }
.home-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.25rem; }
.home-map-guide { display: flex; align-items: center; gap: .55rem; margin: .5rem 0 0; font-size: .95rem; line-height: 1.4; }
.home-map-guide .bi { color: var(--ak-primary); }
.home-map-guide a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(var(--ak-primary-rgb), .35); }
.home-map-guide a:hover { text-decoration-color: currentColor; }
.home-map-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-lg);
    background: linear-gradient(135deg, var(--ak-tint), var(--ak-sand));
    box-shadow: var(--ak-shadow-card);
}
.home-map-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 992px) {
    .home-map-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
    .home-map-frame { aspect-ratio: auto; height: 23rem; }
}

@media (max-width: 575.98px) { .home-map-frame { aspect-ratio: 16 / 9; } }

/* -- The band above the footer already invites business owners: the footer does not repeat that card here -- */
main:has(> .cta-band:last-child) ~ .footer .footer-invite--accent { display: none; }
main:has(> .cta-band:last-child) ~ .footer .footer-invites { grid-template-columns: minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) {
    .mosaic-item > img { transition: none; transform: none !important; }
}

/* ---------------------------------------------------------------------
   lists — helpers shared by the list pages
   --------------------------------------------------------------------- */
.list-filters { margin-bottom: 1.75rem; }
.list-filters--split { display: flex; flex-direction: column; gap: .35rem; }
.filter-pill > .bi { font-size: .95em; }
/* Second, quieter row of choices beside a row of ordinary pills (events: year, then view). */
.filter-pill--soft { border-color: transparent; background: transparent; color: var(--ak-text); }
.filter-pill--soft:hover { border-color: transparent; background: var(--ak-tint); }
.filter-pill--soft.active, .filter-pill--soft[aria-current] { border-color: transparent; background: var(--ak-tint-strong); color: var(--ak-primary-dark); box-shadow: inset 0 -2px 0 var(--ak-primary); }
@media (min-width: 992px) {
    /* Side by side when both rows fit (they wrap onto two lines in the longer languages). */
    .list-filters--split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; }
}
.list-status { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: -.5rem 0 1.5rem; color: var(--ak-text-light); }
.list-status .link-arrow { gap: .35rem; font-size: .9rem; }
.list-note { display: flex; align-items: flex-start; gap: .6rem; margin: 2rem 0 0; color: var(--ak-text-light); font-size: .92rem; line-height: 1.55; }
.list-note > .bi { margin-top: .12rem; color: var(--ak-primary); flex: none; }
.list-note a { font-weight: 800; text-decoration: underline; white-space: nowrap; }
.list-note--top { margin: -.5rem 0 1.5rem; }
.list-note--side { margin-top: 1.25rem; }
.list-more { margin: 1.5rem 0 0; }
.list-page .empty-state + .list-note { margin-top: 1.5rem; }

.pager { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.pager .pagination { margin: 0; }
.pager .page-link { gap: .35rem; padding-inline: .8rem; border-radius: var(--ak-radius-sm) !important; }
.pager .page-item.active .page-link { color: #fff; }
.pager .page-item.disabled .page-link { color: #70868f; background: transparent; }
.pager-gap .page-link { min-width: 1.5rem; padding-inline: 0; border-color: transparent; }
@media (max-width: 575.98px) {
    /* Previous, 1 … 4 5 6 … 12 and next stay on one row of a 360px screen. */
    .pager .pagination { gap: .15rem; }
    .pager .page-link { min-width: 38px; padding-inline: .4rem; }
    .pager-gap .page-link { min-width: 1.1rem; }
    .pager-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Search field with its button inside one rounded bar (directory). */
.search-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .35rem .35rem .35rem 1rem;
    border: 1px solid #c5d5d9;
    border-radius: var(--ak-radius-pill);
    background: #fff;
    box-shadow: var(--ak-shadow-card);
}
.search-bar:focus-within { border-color: var(--ak-primary); box-shadow: 0 0 0 4px rgba(var(--ak-primary-rgb), .16); }
.search-bar > .bi { color: var(--ak-text-light); flex: none; }
.search-bar input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ak-dark); }
.search-bar input:focus, .search-bar input:focus-visible { outline: none; }
.search-bar input::placeholder { color: #70868f; }
.search-bar .btn { flex: none; min-width: 44px; border-radius: var(--ak-radius-pill); padding-inline: 1.25rem; }
@media (max-width: 575.98px) {
    .search-bar > .bi { display: none; }
    .search-bar .btn { padding-inline: 0; width: 44px; }
}

/* ---------------------------------------------------------------------
   detail — helpers shared by the detail pages
   --------------------------------------------------------------------- */
.article-figure { margin: 0 0 clamp(1.5rem, 4vw, 2.25rem); }
.article-figure .media-cover, .article-figure .ratio-cover { box-shadow: var(--ak-shadow-raised); }
.article-figure figcaption { margin-top: .6rem; color: var(--ak-text-light); font-size: .82rem; line-height: 1.5; }
.article-figure figcaption a { font-weight: 700; text-decoration: underline; }
.article-block-title { margin: 0 0 .8rem; font-family: var(--ak-font-body); font-size: 1.15rem; font-weight: 800; letter-spacing: 0; line-height: 1.35; color: var(--ak-dark); }
* + .article-block-title { margin-top: 1.75rem; }

.facts-card, .detail-card, .side-card, .form-card {
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-lg);
    background: #fff;
    box-shadow: var(--ak-shadow-card);
}
.facts-card { padding: 1.35rem 1.4rem 1.5rem; }
.facts-card-title, .side-card-title { margin: 0 0 1rem; font-family: var(--ak-font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; color: var(--ak-dark); }
.facts-card-flag { margin: -.3rem 0 1rem; }
.facts-list { display: grid; gap: .9rem; margin: 0; }
.facts-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.facts-list dt { display: flex; align-items: center; gap: .45rem; color: var(--ak-text-light); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.facts-list dt .bi { color: var(--ak-primary); font-size: .95rem; }
.facts-list dd { margin: 0; padding-left: 1.4rem; color: var(--ak-dark); font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.facts-list dd a { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -.5rem; font-size: .9rem; font-weight: 800; text-decoration: underline; }
.facts-card-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.facts-card-actions .btn { white-space: normal; }
.facts-card-note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--ak-border); color: var(--ak-text-light); font-size: .82rem; line-height: 1.5; }
@media (min-width: 992px) { .facts-card { position: sticky; top: 6rem; } }

.detail-card { overflow: hidden; }
.detail-card-cover { border-radius: 0; }
.detail-card-body { padding: clamp(1.25rem, 3vw, 2rem); }
.detail-card-kicker { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.detail-card-lead { margin: 0 0 1.5rem; font-size: 1.08rem; line-height: 1.7; color: var(--ak-text); }
.detail-back { margin: 1.25rem 0 0; }

.side-card { padding: 1.25rem 1.3rem 1.2rem; }
.side-card + .side-card { margin-top: 1.25rem; }
.side-card > .link-arrow { margin-top: .5rem; }
.side-card .dir-brief-list { border: 0; border-radius: 0; margin-inline: -.9rem; }
.side-card .dir-brief { border-radius: var(--ak-radius); }
.side-card .dir-brief + .dir-brief { border-top: 0; }
/* The home block hides these on phones for its own short list. */
.side-card .dir-brief-meta { display: block; color: var(--ak-text-light); font-size: .86rem; font-weight: 600; }
.side-card .dir-brief:nth-child(n+5) { display: flex; }

.contact-list { display: grid; gap: 1rem 1.5rem; margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: .85rem; align-items: start; align-content: start; }
.contact-list dt { display: contents; color: var(--ak-text-light); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.contact-list dt .icon-circle { grid-row: 1 / span 2; margin-top: .1rem; letter-spacing: 0; }
.contact-list dt > span:not(.icon-circle) { grid-column: 2; }
.contact-list dd { grid-column: 2; margin: 0; color: var(--ak-dark); font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.contact-list dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.45rem; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(var(--ak-primary-rgb), .35); }
.contact-list dd a:hover { text-decoration-color: currentColor; }
@media (min-width: 768px) { .contact-list:not(.contact-list--plain) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.source-box, .faq-box { margin-top: 1.5rem; padding: 1.15rem 1.3rem; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-lg); background: #fff; }
.source-box { background: var(--ak-tint); border-color: #cfe2e5; }
.source-box-title, .faq-box-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-family: var(--ak-font-body); font-size: 1rem; font-weight: 800; letter-spacing: 0; color: var(--ak-dark); }
.source-box-title .bi { color: var(--ak-primary); }
.source-box-list { margin: 0; padding: 0; list-style: none; }
.source-box-list a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.source-box-list .bi { font-size: .8em; flex: none; }
.source-box-date { margin: .5rem 0 0; color: var(--ak-text-light); font-size: .84rem; }
.faq-box-question { margin: 1rem 0 .3rem; font-family: var(--ak-font-body); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.faq-box-answer { margin: 0; color: var(--ak-text); line-height: 1.65; }

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
/* Small links keep their look and get a 44px tap area. */
.tag-list a.chip { position: relative; min-height: 36px; padding-inline: .85rem; }
.tag-list a.chip::after, .photo-figure-credit::after, .article-meta a::after, .page-hero-meta a::after { content: ''; position: absolute; inset: -4px 0; }
.photo-figure-credit, .page-hero-meta a { position: relative; }
.photo-figure-credit::after { inset: -6px 0; }
.page-hero-meta a::after { inset: -10px 0; }

/* Avatar: initials, with the profile photo laid over them when there is one (a broken photo leaves the initials). */
.avatar { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; width: 4rem; height: 4rem; border-radius: 50%; background: var(--ak-tint); }
.avatar > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 5.5rem; height: 5.5rem; }
.avatar--xl { width: 7.5rem; height: 7.5rem; border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 28px rgba(var(--ak-ink-rgb), .35); }
.avatar--initials { background: linear-gradient(135deg, var(--ak-primary), var(--ak-primary-dark)); color: #fff; font-family: var(--ak-font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }
.avatar--lg.avatar--initials { font-size: 1.9rem; }
.avatar--xl.avatar--initials { font-size: 2.5rem; }

/* ---------------------------------------------------------------------
   forms — cards, sections, notices and info panels
   --------------------------------------------------------------------- */
.form-shell { max-width: 52rem; margin-inline: auto; }
.form-card { padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.form-card-title { margin: 0 0 1rem; font-family: var(--ak-font-body); font-size: 1.2rem; font-weight: 800; letter-spacing: 0; color: var(--ak-dark); }
.form-card-text { margin: -.4rem 0 1.1rem; color: var(--ak-text); line-height: 1.6; }
.form-card-help { margin: -.4rem 0 1.1rem; color: var(--ak-text-light); font-size: .88rem; line-height: 1.55; }
.form-required { color: #b3261e; font-weight: 800; }
.form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
/* The legend sits on the top border of its fieldset, so the line reads as a divider that starts after the title. */
.form-section + .form-section { margin-top: 1.5rem; padding-top: .35rem; border-top: 1px solid var(--ak-border); }
.form-section + .form-section > .form-section-title { padding-right: .9rem; }
/* Header of a narrow form page: lines up with the form column. */
.page-hero--form > .container { max-width: 53.5rem; }
.form-section-title { display: flex; align-items: center; gap: .55rem; float: none; width: auto; margin: 0 0 1rem; padding: 0; font-family: var(--ak-font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; color: var(--ak-dark); }
.form-section-title .bi { color: var(--ak-primary); }
.form-section-help { margin: -.5rem 0 1rem; color: var(--ak-text-light); font-size: .88rem; }
.form-control--short { min-height: 5rem !important; }
.form-note { display: flex; align-items: flex-start; gap: .6rem; margin: 1.75rem 0 0; padding: .85rem 1rem; border-radius: var(--ak-radius); background: var(--ak-tint); color: var(--ak-primary-dark); font-size: .9rem; font-weight: 600; line-height: 1.5; }
.form-note .bi { margin-top: .1rem; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.5rem; }
@media (max-width: 575.98px) { .form-actions .btn-primary { width: 100%; } }

.notice-bar { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1.5rem; padding: .85rem 1.1rem; border: 1px solid #c4dde2; border-radius: var(--ak-radius); background: var(--ak-tint); color: var(--ak-primary-dark); font-weight: 600; line-height: 1.5; }
.notice-bar > .bi { margin-top: .15rem; flex: none; }
.notice-bar a { font-weight: 800; text-decoration: underline; }

.info-panel { margin-top: 1.5rem; padding: 1.25rem 1.35rem 1.35rem; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-lg); background: #fff; }
.info-panel--sand { border-color: var(--ak-sand-strong); background: var(--ak-sand); }
.info-panel-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-family: var(--ak-font-body); font-size: 1.08rem; font-weight: 800; letter-spacing: 0; line-height: 1.35; color: var(--ak-dark); }
.info-panel-title .bi { color: var(--ak-primary); }
.info-panel p { margin: 0 0 1rem; line-height: 1.6; }
.info-panel > :last-child { margin-bottom: 0; }
.info-panel-text { display: flex; align-items: flex-start; gap: .6rem; color: var(--ak-text-light); font-size: .92rem; }
.info-panel-text .bi { margin-top: .15rem; color: var(--ak-primary); flex: none; }
.info-panel .tag-list { margin-bottom: 1rem; }
.info-panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.check-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.45; }
.check-list .bi { margin-top: .15rem; color: var(--ak-primary); flex: none; }

/* ---------------------------------------------------------------------
   articles — index, article page, history
   --------------------------------------------------------------------- */
/* Article page: title, lead image and text share one reading column; the image overlaps the header band. */
.article-hero { padding-bottom: clamp(4.5rem, 9vw, 6.5rem); }
.article-hero > .container, .article-shell { max-width: 51rem; }
.article-hero .page-hero-inner > * { max-width: none; }
.article-hero .page-hero-eyebrow { margin-bottom: .6rem; }
.article-meta { color: var(--ak-text-light); font-size: .9rem; }
.article-meta .bi { color: var(--ak-primary); }
.article-shell { padding-bottom: var(--ak-section-y); }
.article-shell > .article-figure { margin-top: clamp(-4.5rem, -6vw, -3rem); }
.article-gallery { margin-top: 2.25rem; }
.article-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 576px) { .article-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--ak-border); }
.article-share { margin-left: auto; }
.article-cta { justify-content: flex-start; margin-top: 1.25rem; }
.author-box { display: flex; align-items: flex-start; gap: 1rem; margin-top: 2rem; padding: 1.25rem 1.35rem; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-lg); background: #fff; box-shadow: var(--ak-shadow-card); }
.author-box p { margin: 0; }
.author-box-label { color: var(--ak-text-light); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.author-box-name { font-size: 1.08rem; font-weight: 800; color: var(--ak-dark); }
.author-box-name a { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--ak-primary-rgb), .35); }
.author-box-name a:hover { color: var(--ak-primary); }
.author-box-bio { margin-top: .3rem !important; color: var(--ak-text-light); font-size: .92rem; line-height: 1.55; }
.history-grid { gap: 1.5rem; }
@media (max-width: 575.98px) {
    /* Phones: the first article keeps its full card, the others become dense rows (small photo, title, date). */
    .card-rows-sm { gap: .75rem; }
    .card-rows-sm > .ak-card--article:not(:first-child) { flex-direction: row; align-items: stretch; }
    .card-rows-sm > .ak-card--article:not(:first-child) > .media-cover { flex: 0 0 6.75rem; min-height: 6.75rem; aspect-ratio: auto; }
    .card-rows-sm > .ak-card--article:not(:first-child) .media-cover-label { left: .3rem; bottom: .3rem; max-width: calc(100% - .6rem); padding: .05rem .4rem; font-size: .6rem; }
    .card-rows-sm > .ak-card--article:not(:first-child) > .card-body { padding: .7rem .85rem .75rem; gap: .3rem; justify-content: center; min-width: 0; }
    .card-rows-sm > .ak-card--article:not(:first-child) :is(.card-title, .card-heading) { font-size: 1rem; line-height: 1.3; }
    .card-rows-sm > .ak-card--article:not(:first-child) .card-excerpt { display: none; }
    .card-rows-sm > .ak-card--article:not(:first-child) .card-kicker .chip { padding: .05rem .5rem; font-size: .7rem; }
    .card-rows-sm > .ak-card--article:not(:first-child) .card-meta { margin-top: .1rem; padding-top: 0; font-size: .8rem; gap: .15rem .8rem; }
}

/* ---------------------------------------------------------------------
   events — agenda and event page
   --------------------------------------------------------------------- */
.agenda-month + .agenda-month { margin-top: clamp(2rem, 5vw, 3rem); }
.agenda-month-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.1rem; font-size: clamp(1.3rem, 2.6vw, 1.65rem); font-weight: 800; }
.agenda-month-title small { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding-inline: .5rem; border-radius: var(--ak-radius-pill); background: var(--ak-tint-strong); color: var(--ak-primary-dark); font-family: var(--ak-font-body); font-size: .8rem; font-weight: 800; }
.agenda-month-title::after { content: ''; flex: 1; height: 1px; background: var(--ak-border); }
@media (max-width: 575.98px) {
    /* Phones: a dense agenda row (small photo with the date on it, then title, time and venue). */
    .agenda-grid { gap: .75rem; }
    .agenda-grid .ak-card--event { flex-direction: row; align-items: stretch; }
    .agenda-grid .ak-card--event > .card-media { flex: 0 0 6.75rem; }
    .agenda-grid .ak-card--event > .card-media > .media-cover { height: 100%; min-height: 6.75rem; aspect-ratio: auto; }
    .agenda-grid .ak-card--event .date-badge { top: .4rem; left: .4rem; min-width: 2.7rem; padding: .28rem .4rem .32rem; border-radius: .6rem; }
    .agenda-grid .ak-card--event .date-badge-day { font-size: 1.15rem; }
    .agenda-grid .ak-card--event .date-badge-month { margin-top: .12rem; font-size: .6rem; }
    .agenda-grid .ak-card--event .media-cover-label { left: .3rem; bottom: .3rem; max-width: calc(100% - .6rem); padding: .05rem .4rem; font-size: .6rem; }
    .agenda-grid .ak-card--event > .card-body { padding: .7rem .85rem .75rem; gap: .3rem; justify-content: center; }
    .agenda-grid .ak-card--event .card-heading { font-size: 1rem; line-height: 1.3; }
    .agenda-grid .ak-card--event .card-meta { margin-top: .1rem; padding-top: 0; font-size: .8rem; gap: .15rem; }
}
.event-hero .page-hero-meta li { align-items: flex-start; }
/* Below lg the facts card follows the header directly and already gives the date and the venue. */
@media (max-width: 991.98px) { .event-hero .page-hero-meta { display: none; } }
.event-hero .page-hero-meta .bi { margin-top: .2rem; }
.event-cta { justify-content: flex-start; margin-top: 1rem; padding-inline: .25rem; font-size: .9rem; }
.event-about { margin-bottom: .5rem; }
.event-description { margin: 0; font-size: 1.08rem; line-height: 1.75; color: var(--ak-text); }
.event-more-links { margin: 1.25rem 0 0; }
.event-more-links--only { margin-top: 0; }
.event-more-links--only + .event-more-links { margin-top: .25rem; }
.section:has(> .container > .event-more-links--only) { padding-block: 1.75rem; }

/* ---------------------------------------------------------------------
   gallery — photo grid, masonry of library photos, share banner, credits
   --------------------------------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--ak-radius); background: var(--ak-tint); box-shadow: var(--ak-shadow-card); }
.photo-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ak-ease); }
.photo-tile-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.75rem .75rem .55rem;
    background: linear-gradient(0deg, rgba(var(--ak-ink-rgb), .88), rgba(var(--ak-ink-rgb), 0));
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.3;
}
.photo-tile:focus-visible { outline: 3px solid var(--ak-primary); outline-offset: 3px; }
@media (hover: hover) { .photo-tile:hover > img, .photo-figure > a:hover img { transform: scale(1.04); } }

/* Library photos keep their own proportions: CSS columns, two on phones. */
.photo-masonry { columns: 2; column-gap: .75rem; }
@media (min-width: 768px) { .photo-masonry { columns: 3; column-gap: 1.25rem; } }
@media (min-width: 1200px) { .photo-masonry { columns: 4; } }
.photo-figure { break-inside: avoid; margin: 0 0 1rem; }
.photo-masonry .photo-figure { display: inline-block; width: 100%; }
.photo-figure > a { display: block; overflow: hidden; border-radius: var(--ak-radius); background: var(--ak-tint); box-shadow: var(--ak-shadow-card); }
.photo-figure > a > img { display: block; width: 100%; height: auto; transition: transform .6s var(--ak-ease); }
.photo-figure > a:focus-visible { outline: 3px solid var(--ak-primary); outline-offset: 3px; }
.photo-figure figcaption { display: grid; gap: .1rem; padding: .5rem .15rem 0; font-size: .8rem; line-height: 1.4; }
.photo-figure-place { display: flex; align-items: center; gap: .3rem; color: var(--ak-dark); font-weight: 800; }
.photo-figure-place .bi { color: var(--ak-primary); }
.photo-figure-text { color: var(--ak-text); }
@media (max-width: 575.98px) {
    .photo-masonry .photo-figure-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
}
.photo-figure-credit { justify-self: start; padding-block: .35rem; color: var(--ak-text-light); font-size: .74rem; text-decoration: underline; text-decoration-color: rgba(82, 107, 119, .45); overflow-wrap: anywhere; }
.photo-figure-credit:hover { color: var(--ak-primary-dark); }
/* One row of equally cropped photos: a swipe row on phones, four columns from md up (history page). */
.photo-strip { display: flex; gap: .9rem; margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: .25rem calc(var(--bs-gutter-x, 1.5rem) * .5) .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ak-tint-strong) transparent; }
.photo-strip > .photo-figure { flex: 0 0 min(72%, 17rem); margin: 0; scroll-snap-align: start; }
.photo-strip .photo-figure > a { aspect-ratio: 4 / 3; }
.photo-strip .photo-figure > a > img { height: 100%; object-fit: cover; }
@media (min-width: 768px) {
    .photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; margin-inline: 0; padding: 0; overflow: visible; }
}

.share-banner { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #cfe2e5; border-radius: var(--ak-radius-lg); background: linear-gradient(135deg, var(--ak-tint), #f4f9f9); }
.share-banner-copy { flex: 1; min-width: 0; }
.share-banner-title { margin: 0 0 .35rem; font-family: var(--ak-font-body); font-size: 1.2rem; font-weight: 800; letter-spacing: 0; color: var(--ak-dark); }
.share-banner-text { margin: 0; color: var(--ak-text); line-height: 1.6; }
.share-banner .btn { white-space: nowrap; }
@media (min-width: 768px) { .share-banner { flex-direction: row; align-items: center; gap: 1.5rem; } }
@media (max-width: 575.98px) { .share-banner .btn { width: 100%; } }

/* Image sources page. */
.credits-notes { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
@media (min-width: 992px) { .credits-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.credits-note { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-lg); background: #fff; }
.credits-note h2 { margin: 0 0 .3rem; font-family: var(--ak-font-body); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.credits-note p { margin: 0; color: var(--ak-text); font-size: .92rem; line-height: 1.6; }
.credits-group + .credits-group { margin-top: clamp(2rem, 5vw, 3rem); }
.credits-group-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.1rem; font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 800; }
.credits-group-title small { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding-inline: .5rem; border-radius: var(--ak-radius-pill); background: var(--ak-tint-strong); color: var(--ak-primary-dark); font-family: var(--ak-font-body); font-size: .8rem; font-weight: 800; }
.credits-group-title::after { content: ''; flex: 1; height: 1px; background: var(--ak-border); }
.credits-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .credits-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; } }
@media (min-width: 1200px) { .credits-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.credit-item { display: flex; align-items: flex-start; gap: .9rem; padding: .75rem; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-lg); background: #fff; scroll-margin-top: 7rem; }
.credit-item:target { border-color: var(--ak-accent-deep); box-shadow: 0 0 0 3px rgba(var(--ak-accent-rgb), .45); }
.credit-thumb { flex: 0 0 6.5rem; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--ak-radius); background: var(--ak-tint); }
.credit-thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.credit-thumb:focus-visible { outline: 3px solid var(--ak-primary); outline-offset: 3px; }
.credit-body { flex: 1; min-width: 0; }
.credit-body p { margin: 0; }
.credit-title { color: var(--ak-dark); font-size: .92rem; font-weight: 800; line-height: 1.35; }
.credit-place { display: flex; align-items: center; gap: .3rem; margin-top: .2rem !important; color: var(--ak-text-light); font-size: .82rem; font-weight: 700; }
.credit-place .bi { color: var(--ak-primary); }
.credit-facts { display: grid; gap: .1rem; margin: .45rem 0 0; font-size: .82rem; line-height: 1.45; }
.credit-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35rem; }
.credit-facts dt { color: var(--ak-text-light); font-weight: 600; }
.credit-facts dt::after { content: ':'; }
.credit-facts dd { margin: 0; min-width: 0; color: var(--ak-text); font-weight: 700; overflow-wrap: anywhere; }
.credit-facts a { display: inline-block; padding-block: .2rem; text-decoration: underline; }
.credit-facts a .bi { margin-left: .25rem; }
.credit-facts a .bi { font-size: .8em; }

/* ---------------------------------------------------------------------
   directory — list card
   --------------------------------------------------------------------- */
.dir-card-head { display: flex; align-items: flex-start; gap: .85rem; }
.dir-card-head > div { display: grid; gap: .4rem; min-width: 0; }
.dir-card .card-meta { gap: .2rem; }
.dir-card .card-meta li { align-items: flex-start; }
.dir-card .card-meta .bi { margin-top: .2rem; }
.dir-card .card-meta a[href^="tel:"] { min-height: 44px; margin-block: -.55rem; font-size: .95rem; }
.directory-page .page-hero-meta { font-weight: 600; }
.directory-page .alert .alert-link { display: inline-block; margin-block: -.7rem; padding: .7rem .3rem; }

/* ---------------------------------------------------------------------
   community — news, alerts, issues, jobs, contact, writers
   --------------------------------------------------------------------- */
.news-list-section > .empty-state { margin-top: 0; }
.news-list-section .pager { margin-bottom: 0; }
.news-hero-kind { margin: 0 0 .7rem; }
/* Official headlines are long and often in capitals: body font, smaller than a page title. */
.news-hero h1.page-hero-title { font-family: var(--ak-font-body); font-size: clamp(1.4rem, 2.7vw, 1.95rem); font-weight: 800; letter-spacing: 0; line-height: 1.28; }
.news-hero-note { margin-top: .5rem; font-size: .92rem !important; }
.news-hero .news-story-byline { padding-bottom: 0; border-bottom: 0; font-size: .86rem; font-weight: 600; }
.news-hero .news-story-byline .bi { color: var(--ak-primary); }
.news-story .news-story-body { padding-top: 0; }
.news-source-box a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }

.alerts-page .info-panel { margin-top: 2rem; }
.alerts-live-toolbar .btn { gap: .4rem; }
/* The long legend of the optional contact block reads as a small heading above its fields, not in a border notch. */
.alert-report-form fieldset { padding: 1rem 0 0; border: 0; border-top: 1px solid var(--ak-border); border-radius: 0; }
.alert-report-form fieldset > legend { float: left; width: 100%; margin: 0 0 .75rem; padding: 0; }
.alert-report-form fieldset > legend + * { clear: both; }
.alert-report-form.form-card { padding: 1.35rem 1.4rem 1.5rem; }
.alert-report-form .form-text { margin: .35rem 0 0; }

.issue-card { margin-bottom: 1rem; padding: 1.25rem 1.35rem; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-lg); background: #fff; box-shadow: var(--ak-shadow-card); overflow-wrap: anywhere; }
.issue-card-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; }
.issue-card-title { margin: 0 0 .3rem; font-family: var(--ak-font-body); font-size: 1.1rem; font-weight: 800; letter-spacing: 0; line-height: 1.4; }
.issue-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0 0 .7rem; color: var(--ak-text-light); font-size: .86rem; font-weight: 600; }
.issue-card-meta .bi { color: var(--ak-primary); }

.job-card-place { display: flex; align-items: flex-start; gap: .45rem; margin: 0; color: var(--ak-text); font-weight: 700; line-height: 1.4; }
.job-card-place .bi { margin-top: .1rem; color: var(--ak-primary); flex: none; }
.jobs-panels { display: grid; gap: 1.25rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.jobs-panels > .info-panel { margin-top: 0; }
@media (min-width: 992px) { .jobs-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-owner-help { justify-content: flex-start; margin-top: 1.25rem; padding-inline: .25rem; }

.writer-card > .card-body { align-items: center; text-align: center; padding-top: 1.6rem; }
.writer-card .card-kicker, .writer-card .card-meta { justify-content: center; }
.writer-card .card-meta { margin-top: auto; }
.writer-hero .avatar { margin-bottom: 1rem; }
.writer-hero h1 { color: #fff; }
.writer-hero-role { margin: .5rem 0 0; }
.writer-hero .page-hero-lead { margin-top: .9rem; }
/* The writers page already invites volunteers in the list: the footer does not repeat that card here. */
main:has(.writer-invite) ~ .footer .footer-invite:not(.footer-invite--accent) { display: none; }
main:has(.writer-invite) ~ .footer .footer-invites { grid-template-columns: minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) {
    .photo-tile > img, .photo-figure > a > img { transition: none; transform: none !important; }
}
