:root {
    color-scheme: light;
    --portal-accent: #0576d5;
    --portal-accent-dark: #075da5;
    --portal-ink: #101828;
    --portal-muted: #526071;
    --portal-subtle: #8a97a8;
    --portal-line: #d6dee8;
    --portal-soft: #f3f7fb;
    --portal-warm: #fff8e7;
    --portal-warm-line: #ecd79c;
    --portal-white: #ffffff;
    --portal-radius: 8px;
    --portal-container: min(1180px, calc(100% - 32px));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--portal-white);
}

body {
    margin: 0;
    color: var(--portal-ink);
    background: var(--portal-white);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

button,
input {
    font: inherit;
}

:where(a, button, input, [tabindex]):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--portal-accent) 72%, white);
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    z-index: 80;
    width: auto;
    height: auto;
    clip: auto;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    background: var(--portal-ink);
    color: var(--portal-white);
    border-radius: 6px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--portal-line);
    backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.home-hero,
.content-band,
.archive-header,
.archive-list,
.article-shell,
nav[role="navigation"] {
    width: var(--portal-container);
    margin: 0 auto;
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--portal-accent);
    color: var(--portal-white);
    font-weight: 850;
}

.brand__text {
    max-width: 230px;
    overflow: hidden;
    color: var(--portal-ink);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.site-nav a {
    padding: 9px 10px;
    border-radius: 6px;
    color: #253044;
    font-size: 14px;
    font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: var(--portal-soft);
    color: var(--portal-accent-dark);
}

.site-search,
.search-page-form {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background: var(--portal-white);
}

.site-search input,
.search-page-form input {
    width: 180px;
    min-width: 0;
    border: 0;
    padding: 10px 12px;
    font-size: 14px;
}

.site-search button,
.search-page-form button,
.copy-link {
    min-height: 44px;
    border: 0;
    background: var(--portal-ink);
    color: var(--portal-white);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: var(--portal-white);
    color: var(--portal-ink);
}

.menu-button span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.home-hero {
    padding: 34px 0 28px;
}

.home-hero__intro {
    max-width: 760px;
    margin-bottom: 24px;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(23px, 2.4vw, 31px);
    line-height: 1.12;
    letter-spacing: 0;
}

.home-hero__intro p,
.archive-header p,
.article-lead {
    color: var(--portal-muted);
    font-size: 20px;
    line-height: 1.55;
}

.home-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.home-editorial__stories {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
    gap: 20px;
}

.home-editorial__secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.home-editorial__secondary .story-card--feature strong {
    font-size: 18px;
}

.home-editorial__secondary .story-card--feature .story-card__summary {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

.home-editorial__rail {
    display: grid;
    gap: 16px;
}

.story-card {
    min-width: 0;
    background: var(--portal-white);
}

.story-card__link {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 132px;
    padding: 16px 0;
}

.story-card__body {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.story-card__image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--portal-radius);
    object-fit: cover;
}

.story-card picture,
.article-cover picture,
.article-gallery__item picture,
.portal-article__inline-media picture {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.story-card__meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: #66758a;
    font-size: 13px;
    font-weight: 750;
}

.story-card__meta span {
    color: var(--portal-accent-dark);
}

.story-card strong {
    display: block;
    color: var(--portal-ink);
    font-size: 19px;
    line-height: 1.2;
}

.story-card__summary {
    display: -webkit-box;
    overflow: hidden;
    color: var(--portal-muted);
    font-size: 15px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.story-card__cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-bottom: 2px solid var(--portal-accent);
    color: var(--portal-accent-dark);
    font-size: 14px;
    font-weight: 850;
}

.story-card--lead {
    border-top: 0;
}

.story-card--lead .story-card__link {
    gap: 14px;
    min-height: 0;
    padding: 0;
}

.story-card--lead .story-card__image {
    aspect-ratio: 16 / 10;
}

.story-card--lead strong {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
}

.story-card--lead .story-card__summary {
    max-width: 680px;
    font-size: 18px;
    -webkit-line-clamp: 4;
}

.story-card--feature .story-card__link {
    min-height: 0;
    padding: 12px 0;
}

.story-card--feature .story-card__image {
    aspect-ratio: 16 / 9;
}

.story-card--feature strong {
    font-size: 20px;
}

.story-card--feature .story-card__summary {
    font-size: 15px;
    -webkit-line-clamp: 3;
}

.story-card--row .story-card__link {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 14px 0;
}

.story-card--row .story-card__image {
    width: 96px;
    height: 72px;
    aspect-ratio: auto;
}

.story-card--row.story-card--no-image .story-card__link {
    grid-template-columns: 1fr;
}

.story-card--row strong {
    font-size: 19px;
}

.story-card--row .story-card__summary {
    font-size: 15px;
    -webkit-line-clamp: 2;
}

.story-card--compact .story-card__link {
    min-height: 0;
    padding: 14px 0;
}

.story-card--compact .story-card__image {
    aspect-ratio: 16 / 9;
}

.story-card--compact strong {
    font-size: 16px;
}

.story-card--compact .story-card__summary {
    -webkit-line-clamp: 2;
}

.story-card--text .story-card__link,
.story-card--no-image .story-card__link {
    min-height: 0;
}

.section-rail {
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    padding: 14px;
    background: var(--portal-white);
}

.section-rail__header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--portal-ink);
    padding-bottom: 10px;
}

.section-rail__header h2 {
    font-size: 20px;
}

.section-rail__list {
    display: grid;
    gap: 8px;
}

.section-rail__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 8px;
    padding: 9px 8px;
}

.section-rail__item:hover,
.section-rail__item:focus-visible {
    background: var(--portal-soft);
}

.section-rail__mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(5, 118, 213, 0.22);
    border-radius: 6px;
    background: #eef7ff;
    color: var(--portal-accent-dark);
    font-size: 14px;
    font-weight: 900;
}

.section-rail__image {
    width: 64px;
    height: 64px;
    border-radius: 7px;
    object-fit: cover;
}

.section-rail__content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.section-rail__content strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-rail__content strong {
    color: var(--portal-accent-dark);
    font-size: 12px;
    font-weight: 850;
}

.section-rail__content small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--portal-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.section-chip-strip {
    display: none;
}

.event-highlight {
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background: var(--portal-warm);
    overflow: hidden;
}

.event-highlight__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 15px 16px 10px;
}

.event-highlight__header h2 {
    font-size: 18px;
}

.event-highlight__header a {
    color: var(--portal-accent-dark);
    font-size: 13px;
    font-weight: 850;
}

.event-highlight__card {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.event-highlight__card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
}

.event-highlight__card span {
    display: grid;
    gap: 6px;
}

.event-highlight__card small {
    color: var(--portal-accent-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.event-highlight__card strong {
    font-size: 17px;
    line-height: 1.16;
}

.event-highlight__card em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--portal-muted);
    font-size: 13px;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.content-band {
    padding: 32px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--portal-ink);
    padding-bottom: 12px;
}

.section-heading a {
    color: var(--portal-accent-dark);
    font-size: 14px;
    font-weight: 850;
}

.latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.latest-editorial {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(250px, 0.8fr) minmax(270px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.latest-editorial__main,
.latest-editorial__stack,
.latest-editorial__city {
    min-width: 0;
}

.latest-editorial__main .story-card--row .story-card__link {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
}

.latest-editorial__main .story-card--row .story-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.latest-editorial__main .story-card--row strong {
    font-size: 21px;
}

.latest-editorial__main .story-card--row .story-card__summary {
    -webkit-line-clamp: 3;
}

.latest-editorial__stack {
    display: grid;
    gap: 8px;
}

.latest-editorial__city {
    border-left: 1px solid var(--portal-line);
    padding-left: 22px;
}

.latest-editorial__city-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.latest-editorial__city-header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.18;
}

.latest-editorial__city-header a {
    color: var(--portal-accent-dark);
    font-size: 13px;
    font-weight: 850;
}

.mini-news-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 8px;
    padding: 8px 6px;
}

.mini-news-item:hover,
.mini-news-item:focus-visible {
    background: var(--portal-soft);
}

.mini-news-item__image {
    width: 64px;
    height: 64px;
    border-radius: 7px;
    object-fit: cover;
}

.mini-news-item__content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.mini-news-item__meta {
    display: flex;
    overflow: hidden;
    gap: 8px;
    align-items: center;
    color: #66758a;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.mini-news-item__meta strong {
    overflow: hidden;
    color: var(--portal-accent-dark);
    font-size: 12px;
    text-overflow: ellipsis;
}

.mini-news-item__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--portal-ink);
    font-size: 15px;
    font-weight: 780;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.popular-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.popular-section-card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 164px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background: var(--portal-white);
}

.popular-section-card img {
    width: 100%;
    height: 100%;
    min-height: 172px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.popular-section-card span {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    gap: 4px;
    padding: 14px;
}

.popular-section-card--image span {
    position: absolute;
    inset: auto 0 0;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0) 0%, rgba(16, 24, 40, 0.78) 100%);
    color: var(--portal-white);
    padding-top: 48px;
}

.popular-section-card strong {
    font-size: 18px;
    line-height: 1.16;
}

.popular-section-card small {
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 750;
}

.popular-section-card--image small {
    color: rgba(255, 255, 255, 0.82);
}

.popular-section-card--text {
    min-height: 112px;
    background: var(--portal-soft);
}

.popular-section-card--text span {
    align-content: center;
}

.empty-state {
    border: 1px dashed var(--portal-line);
    border-radius: var(--portal-radius);
    padding: 28px;
    background: var(--portal-soft);
}

.archive-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 42px 0 24px;
}

.archive-header--section {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
}

.archive-header__content {
    display: grid;
    gap: 12px;
}

.archive-kicker {
    width: fit-content;
    color: var(--portal-accent-dark);
    font-size: 14px;
    font-weight: 850;
}

.archive-header__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--portal-radius);
    object-fit: cover;
}

.archive-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.archive-stats span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid var(--portal-line);
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--portal-white);
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 800;
}

.archive-list {
    padding-bottom: 32px;
}

.archive-list .story-card--row:first-child {
    border-top: 0;
}

.article-shell {
    padding: 42px 0;
}

.article-header {
    max-width: 100%;
    margin-bottom: 34px;
}

.article-section {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--portal-accent-dark);
    font-size: 14px;
    font-weight: 850;
}

.article-header h1 {
    max-width: 940px;
    font-size: clamp(34px, 5vw, 62px);
}

.article-meta {
    margin: 14px 0 18px;
}

.copy-link {
    border-radius: var(--portal-radius);
}

.article-cover {
    margin: 24px 0 16px;
}

.article-cover__button,
.article-gallery__item button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.article-cover img {
    width: 100%;
    max-height: 75vh;
    border-radius: var(--portal-radius);
    object-fit: contain;
    background: var(--portal-soft);
}

.article-cover figcaption,
.article-gallery figcaption {
    display: grid;
    gap: 2px;
    margin-top: 7px;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.35;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 740px) minmax(260px, 1fr);
    gap: 48px;
    align-items: start;
}

.article-main {
    min-width: 0;
    max-width: 100%;
}

.article-body {
    min-width: 0;
    max-width: 100%;
    color: #1b2533;
    font-size: 19px;
    line-height: 1.72;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
    margin: 0 0 24px;
}

.portal-article__inline-media {
    margin: 30px 0;
}

.portal-article__inline-media > button,
.article-carousel__slide > button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.portal-article__inline-media img {
    display: block;
    width: 100%;
    max-height: 620px;
    border-radius: var(--portal-radius);
    object-fit: cover;
}

.portal-article__inline-media figcaption {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.4;
}

.article-carousel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 32px 0;
    border-top: 1px solid var(--portal-line);
    border-bottom: 1px solid var(--portal-line);
    padding: 16px 0 14px;
}

.article-carousel__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.article-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.article-carousel__track {
    display: flex;
    min-width: 0;
    transition: transform 220ms ease;
}

.article-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.article-carousel__slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 620px;
    border-radius: var(--portal-radius);
    object-fit: contain;
    background: var(--portal-soft);
}

.article-carousel__slide figcaption {
    display: grid;
    gap: 2px;
    min-height: 42px;
    margin-top: 8px;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.4;
}

.article-carousel__controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: var(--portal-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.article-carousel__controls button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--portal-line);
    border-radius: 50%;
    background: var(--portal-white);
    color: var(--portal-ink);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.article-carousel__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 96px));
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.article-carousel__thumbs button {
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 0;
    background: transparent;
    opacity: 0.66;
    cursor: pointer;
}

.article-carousel__thumbs button.is-active {
    border-color: var(--portal-accent);
    opacity: 1;
}

.article-carousel__thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
}

.article-body h2,
.article-body h3 {
    margin: 36px 0 14px;
}

.article-body a {
    color: var(--portal-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    border-left: 4px solid var(--portal-accent);
    padding-left: 18px;
    color: #344054;
    font-weight: 650;
}

.related-panel {
    position: sticky;
    top: 96px;
    border-top: 2px solid var(--portal-ink);
    padding-top: 14px;
}

.article-gallery {
    max-width: 940px;
    margin-top: 36px;
}

.article-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.article-gallery__item {
    margin: 0;
}

.article-gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--portal-radius);
    object-fit: cover;
}

.portal-lightbox:not([open]) {
    display: none;
}

.portal-lightbox {
    z-index: 70;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border: 0;
    padding: 24px;
    background: rgba(7, 13, 24, 0.92);
}

.portal-lightbox::backdrop {
    background: rgba(7, 13, 24, 0.84);
}

.portal-lightbox__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(980px, 100%);
    transform: translate(-50%, -50%);
    color: var(--portal-white);
}

.portal-lightbox__dialog img {
    width: 100%;
    max-height: 78vh;
    border-radius: var(--portal-radius);
    object-fit: contain;
    background: #050914;
}

.portal-lightbox__dialog p {
    grid-column: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.portal-lightbox__close,
.portal-lightbox__nav {
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(7, 13, 24, 0.82);
    color: var(--portal-white);
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .article-carousel__track {
        transition: none;
    }

    .article-carousel__viewport {
        scroll-behavior: auto;
    }
}

.portal-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
}

.portal-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 1;
}

.search-page-form {
    max-width: 680px;
    margin-top: 18px;
}

.search-page-form input {
    width: 100%;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid var(--portal-line);
    background: var(--portal-soft);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr) auto;
    gap: 24px;
    align-items: start;
    padding: 30px 0;
    color: var(--portal-muted);
}

.site-footer strong {
    color: var(--portal-ink);
}

.site-footer p {
    margin: 6px 0 0;
}

.site-footer__title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.age-mark {
    display: inline-grid;
    min-width: 34px;
    min-height: 28px;
    place-items: center;
    border: 1px solid var(--portal-ink);
    border-radius: 4px;
    color: var(--portal-ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.legal-footer {
    display: grid;
    gap: 5px;
    font-size: 13px;
    line-height: 1.45;
}

.legal-footer a,
.service-links a,
.text-link {
    color: var(--portal-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
    font-weight: 800;
}

nav[role="navigation"] {
    padding: 4px 0 36px;
}

nav[role="navigation"] > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--portal-line);
    border-radius: 6px;
    padding: 7px 11px;
    background: var(--portal-white);
    font-size: 14px;
}

.cookie-notice {
    position: static;
    width: var(--portal-container);
    margin: 12px auto 0;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--portal-soft);
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.4;
}

.cookie-notice__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}
.cookie-notice .cookie-notice__details-toggle { background: transparent; color: var(--portal-ink); border: 1px solid var(--portal-line); }
.cookie-notice [data-cookie-text]:not([hidden]) { margin-top: 10px; border-top: 1px solid var(--portal-line); padding-top: 10px; }

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice p {
    margin: 0;
}

.cookie-notice a {
    color: var(--portal-accent-dark);
    font-weight: 800;
}

.cookie-notice button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 6px 11px;
    background: var(--portal-ink);
    color: var(--portal-white);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.search-match {
    margin: -12px 0 24px;
    border-left: 3px solid var(--portal-accent);
    padding-left: 12px;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.5;
}

.search-match mark {
    background: #fff2a8;
    color: var(--portal-ink);
}

picture.portal-image-failed {
    display: block;
    min-height: 112px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background: var(--portal-soft);
}

picture.portal-image-failed img {
    max-height: 240px;
    visibility: hidden;
}

@media (max-width: 1180px) {
    .home-editorial {
        grid-template-columns: 1fr;
    }

    .home-editorial__rail,
    .section-rail {
        display: none;
    }

    .section-chip-strip {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        margin-top: 18px;
        padding: 2px 0 10px;
        scrollbar-width: thin;
    }

    .section-chip-strip a {
        display: grid;
        flex: 0 0 min(260px, 78vw);
        gap: 4px;
        border: 1px solid var(--portal-line);
        border-radius: 8px;
        padding: 10px 12px;
        background: var(--portal-white);
        color: var(--portal-ink);
    }

    .section-chip-strip strong {
        color: var(--portal-accent-dark);
        font-size: 12px;
        font-weight: 850;
    }

    .section-chip-strip small {
        display: -webkit-box;
        overflow: hidden;
        color: var(--portal-ink);
        font-size: 14px;
        font-weight: 750;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .popular-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-header--section {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .archive-header__image {
        max-height: 320px;
    }
}

@media (max-width: 900px) {
    .site-header__inner {
        grid-template-columns: auto auto;
        gap: 12px;
        min-height: auto;
        padding: 12px 0;
    }

    .menu-button {
        display: block;
        justify-self: end;
    }

    .site-nav,
    .site-search {
        display: none;
        grid-column: 1 / -1;
    }

    body.menu-open .site-nav,
    body.search-open .site-search {
        display: flex;
    }

    body.menu-open .site-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .site-search input {
        width: 100%;
    }

    .home-editorial__stories,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .home-editorial__secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .latest-list,
    .latest-editorial,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .latest-editorial {
        gap: 16px;
    }

    .latest-editorial__city {
        border-top: 1px solid var(--portal-line);
        border-left: 0;
        padding-top: 16px;
        padding-left: 0;
    }

    .article-gallery__grid {
        grid-template-columns: 1fr;
    }

    .related-panel {
        position: static;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .service-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    :root {
        --portal-container: min(100% - 24px, 1180px);
    }

    .brand__text {
        max-width: 190px;
        font-size: 16px;
    }

    .home-hero {
        padding-top: 26px;
    }

    h1 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .home-hero__intro p,
    .archive-header p,
    .article-lead {
        font-size: 18px;
    }

    .story-card--lead strong {
        font-size: 29px;
    }

    .home-editorial__secondary {
        grid-template-columns: 1fr;
    }

    .story-card--feature strong,
    .story-card--row strong {
        font-size: 17px;
    }

    .story-card--feature .story-card__summary,
    .story-card--row .story-card__summary {
        font-size: 14px;
    }

    .story-card--row .story-card__link {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
    }

    .story-card--row .story-card__image {
        width: 88px;
        height: 66px;
    }

    .latest-editorial__main .story-card--row .story-card__link {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .latest-editorial__main .story-card--row .story-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .latest-editorial__main .story-card--row strong {
        font-size: 17px;
    }

    .mini-news-item {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 7px 0;
    }

    .mini-news-item__image {
        width: 58px;
        height: 58px;
    }

    .mini-news-item__title {
        font-size: 14px;
    }

    .popular-section-grid {
        grid-template-columns: 1fr;
    }

    .home-section--mobile-hidden {
        display: none;
    }

    .article-body {
        font-size: 17px;
    }

    .article-carousel {
        margin-right: calc((100vw - 100%) / -2);
        margin-left: calc((100vw - 100%) / -2);
        padding-right: 12px;
        padding-left: 12px;
    }

    .article-carousel__thumbs {
        display: none;
    }

    .article-gallery__grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
    }

    .article-gallery__item {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .portal-lightbox {
        padding: 12px;
    }

    .portal-lightbox__dialog {
        grid-template-columns: 1fr;
    }

    .portal-lightbox__dialog img,
    .portal-lightbox__dialog p {
        grid-column: 1;
    }

    .portal-lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .portal-lightbox__nav--prev {
        left: 8px;
    }

    .portal-lightbox__nav--next {
        right: 8px;
    }

    .portal-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .cookie-notice { padding: 6px 8px; margin-top: 8px; font-size: 12px; }
}

/* Responsive picture wrappers keep the same geometry as the previous images. */
.mini-news-item > picture, .section-rail__item > picture { display: block; min-width: 0; }
.event-highlight__card > picture, .popular-section-card > picture { display: block; width: 100%; }
.article-carousel__slide picture { display: block; width: 100%; }
.portal-lightbox__dialog > picture { display: block; min-width: 0; grid-column: 2; }
.portal-lightbox__dialog > [data-lightbox-original] { grid-column: 2; color: white; text-decoration: underline; width: fit-content; padding: 8px 0; }
@media (max-width: 560px) {
    .portal-lightbox__dialog > picture, .portal-lightbox__dialog > [data-lightbox-original] { grid-column: 1; }
}

.brand__text { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
.article-carousel { scroll-margin-top: 100px; }

.archive-header--section > picture { display: block; width: 100%; min-width: 0; }

/* Compact district homepage and independent mobile search. */
.search-toggle { display: none; min-height: 44px; border: 1px solid var(--portal-line); border-radius: 8px; padding: 8px 10px; background: white; color: var(--portal-ink); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.brand__mark { flex-shrink: 0; }
.home-hero__intro { max-width: none; margin-bottom: 18px; }
.home-hero__intro h1 { font-size: 32px; margin-bottom: 0; line-height: 1.15; }
.home-editorial__secondary .story-card__link { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--portal-line); }
.home-editorial__secondary .story-card:first-child .story-card__link { border-top: 0; padding-top: 0; }
.home-editorial__secondary .story-card__image { width: 112px; height: 84px; aspect-ratio: 4 / 3; }
.section-chip-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.section-chip-strip a { display: flex; gap: 8px; align-items: center; border: 1px solid var(--portal-line); border-radius: 8px; padding: 10px 12px; }
.section-chip-strip strong { font-size: 13px; color: var(--portal-accent-dark); }
.section-chip-strip small { font-size: 12px; color: var(--portal-muted); }
.home-events:empty { display: none; }
.home-events .event-highlight__card { grid-template-columns: 160px minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) {
    .site-header__inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .search-toggle { display: inline-grid; place-items: center; }
    .brand__text { min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
    .home-editorial__secondary { grid-template-columns: minmax(0, 1fr); }
    .section-chip-strip { flex-wrap: nowrap; }
    .section-chip-strip a { flex: 0 0 auto; }
}
@media (max-width: 560px) {
    .home-hero { padding-top: 16px; padding-bottom: 16px; }
    .home-hero__intro { margin-bottom: 14px; }
    .home-hero__intro h1 { font-size: 26px; }
    .home-editorial__secondary .story-card__link { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
    .home-editorial__secondary .story-card__image { width: 88px; height: 66px; }
    .home-editorial__secondary .story-card__summary { display: none; }
    .home-editorial__secondary .story-card--feature strong { font-size: 17px; line-height: 1.3; }
    .home-events .event-highlight__card { grid-template-columns: 88px minmax(0, 1fr); }
}
