/* Town Tales Pro — Premium community stories design */

:root {
    --color-ink: #12121f;
    --color-ink-soft: #4a4a6a;
    --color-paper: #f8f6f3;
    --color-white: #ffffff;
    --color-coral: #e8453c;
    --color-coral-dark: #c7362f;
    --color-coral-soft: rgba(232, 69, 60, 0.12);
    --color-gold: #d4a853;
    --color-gold-light: #e8c97a;
    --color-muted: #eeebe5;
    --color-border: #ddd8cf;
    --color-dark: #12121f;
    --color-dark-soft: #1e1e30;
    --color-success-bg: #edf7ed;
    --color-success-border: #81c784;
    --color-success-text: #1b5e20;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 12px rgba(18, 18, 31, 0.07);
    --shadow-md: 0 12px 32px rgba(18, 18, 31, 0.11);
    --shadow-lg: 0 20px 56px rgba(18, 18, 31, 0.15);
    --shadow-glow: 0 0 0 1px rgba(232, 69, 60, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1180px;
    --narrow: 720px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-ink);
    background: var(--color-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--color-coral-soft);
    color: var(--color-ink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-coral);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-coral-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-ink);
}

.container {
    width: min(100% - 3rem, var(--container));
    margin-inline: auto;
}

.container--narrow {
    max-width: var(--narrow);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-coral);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
    background: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.btn--primary:hover {
    background: var(--color-coral-dark);
    border-color: var(--color-coral-dark);
    color: var(--color-white);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-ink);
    color: var(--color-ink);
}

.btn--outline-dark {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-ink);
}

.btn--outline-dark:hover {
    background: var(--color-ink);
    color: var(--color-white);
}

.btn--block {
    width: 100%;
}

.text-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-coral);
    padding-bottom: 2px;
}

.text-link:hover {
    border-bottom-color: var(--color-coral-dark);
}

.text-link--light {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.text-link--light:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-coral);
    margin: 0 0 0.75rem;
}

.eyebrow--light {
    color: var(--color-gold);
}

.lead {
    font-size: 1.1875rem;
    line-height: 1.75;
    color: var(--color-ink-soft);
    max-width: 58ch;
}

/* Ticker */
.ticker {
    background: var(--color-coral);
    color: var(--color-white);
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 500;
}

.ticker__track {
    display: flex;
    gap: 3rem;
    padding: 0.5rem 0;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
}

.ticker__label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    padding-left: 1.25rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.site-header__bar {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-white);
}

.site-logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-coral);
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-white);
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.primary-nav {
    display: flex;
    gap: 0.25rem;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 1px;
}

/* Hero */
.hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    background: var(--color-dark);
    color: var(--color-white);
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.5rem 3rem 4.5rem max(1.5rem, calc((100vw - var(--container)) / 2 + 1.5rem));
}

.hero__content h1 {
    font-size: clamp(2.125rem, 4.5vw, 3.25rem);
    color: var(--color-white);
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.hero__content .lead {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.25rem;
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__visual {
    margin: 0;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-dark) 0%, transparent 35%);
    pointer-events: none;
}

.hero__visual img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
}

/* Stats bar */
.stats-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.stats-bar__grid > div {
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: center;
}

.stats-bar__grid strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-coral);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.stats-bar__grid span {
    font-size: 0.875rem;
    color: var(--color-ink-soft);
    line-height: 1.45;
    display: block;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section--dark {
    background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
    color: var(--color-white);
}

.section--dark h2 {
    color: var(--color-white);
}

.section--muted {
    background: var(--color-muted);
}

.section--accent {
    background: linear-gradient(135deg, var(--color-coral) 0%, #c92a6a 100%);
    color: var(--color-white);
}

.section-header {
    max-width: 640px;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.875rem, 3vw, 2.375rem);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--color-ink-soft);
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.section-header--light p {
    color: rgba(255, 255, 255, 0.75);
}

/* Story grid */
.story-grid {
    display: grid;
    gap: 1.5rem;
}

.story-grid--featured {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
}

.story-grid--featured .story-card--lead {
    grid-row: span 2;
}

.story-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.story-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.story-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.story-card__media {
    position: relative;
    margin: 0;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.story-card--lead .story-card__media {
    aspect-ratio: 4/3;
}

.story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-coral);
    color: var(--color-white);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.story-card__body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.story-card__body time {
    font-size: 0.8125rem;
    color: var(--color-ink-soft);
    font-weight: 500;
}

.story-card__body h2,
.story-card__body h3 {
    font-size: 1.1875rem;
    margin: 0.6rem 0 0.75rem;
    line-height: 1.4;
    color: var(--color-ink);
}

.story-card--lead .story-card__body h3 {
    font-size: 1.5rem;
    line-height: 1.35;
}

.story-card__body p {
    font-size: 0.96875rem;
    color: var(--color-ink-soft);
    margin: 0 0 0.85rem;
    line-height: 1.65;
}

.story-card__meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-coral);
}

.story-card--horizontal {
    display: block;
}

.story-card--horizontal .story-card__link {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: stretch;
}

.story-card--horizontal .story-card__media {
    width: 260px;
    aspect-ratio: 16 / 11;
    min-height: 180px;
    height: auto;
}

.story-card--horizontal .story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card--horizontal .story-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 2rem;
}

.story-card--horizontal .story-card__body h2 {
    font-size: 1.3125rem;
    line-height: 1.35;
    margin: 0.5rem 0 0.85rem;
}

.story-card--horizontal .story-card__body p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Editorial block */
.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.editorial-block__text p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.35rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.editorial-block__text h2 {
    font-size: clamp(1.875rem, 3vw, 2.375rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.editorial-block__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}

.editorial-block__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Topic cards */
.topic-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.topic-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    border-color: var(--color-coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.topic-card__media {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-dark-soft);
}

.topic-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.topic-card:hover .topic-card__media img {
    transform: scale(1.04);
}

.topic-card h3,
.topic-card p,
.topic-card__count {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.topic-card h3 {
    font-size: 1.125rem;
    margin: 1.25rem 0 0.75rem;
    color: var(--color-ink);
}

.topic-card p {
    font-size: 0.875rem;
    color: var(--color-ink-soft);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.topic-card__count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-coral);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 1.75rem;
    margin-top: auto;
}

/* CTA panel */
.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.cta-panel h2 {
    color: var(--color-white);
    margin: 0 0 1.15rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    max-width: 58ch;
}

.cta-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-panel .btn--primary {
    background: var(--color-white);
    color: var(--color-coral);
    border-color: var(--color-white);
}

.cta-panel .btn--primary:hover {
    background: var(--color-paper);
}

.cta-panel .btn--outline-dark {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-panel .btn--outline-dark:hover {
    background: var(--color-white);
    color: var(--color-coral);
}

/* Page hero */
.page-hero {
    background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
    color: var(--color-white);
    padding: 4rem 0;
}

.page-hero h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    max-width: 22ch;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 58ch;
}

.page-hero--category {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 55%, #2a1f3d 100%);
}

.page-hero--category::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(232, 69, 60, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(212, 168, 83, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero--category .container {
    position: relative;
    z-index: 1;
}

.page-hero--compact {
    padding: 2.5rem 0;
}

.page-hero--legal {
    padding: 3rem 0;
    background: var(--color-white);
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-border);
}

.page-hero--legal h1 {
    color: var(--color-ink);
    max-width: none;
}

.page-hero--legal .lead {
    color: var(--color-ink-soft);
}

.page-hero--404 {
    text-align: center;
    padding: 6rem 0;
}

.page-hero--404 h1 {
    max-width: none;
    margin-inline: auto;
}

.page-hero--404 .lead {
    margin-inline: auto;
}

.page-hero--404 .hero__actions {
    justify-content: center;
    margin-top: 2rem;
}

.page-hero--404 .btn--outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.page-hero--404 .btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Story list */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-bar__item {
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-ink-soft);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-bar__item:hover,
.filter-bar__item--active {
    background: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.story-list__item {
    display: grid;
    grid-template-columns: 130px auto minmax(0, 1fr) auto;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border: 1px solid var(--color-border);
    align-items: start;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.story-list__item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.story-list__thumb {
    margin: 0;
    width: 130px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-muted);
    flex-shrink: 0;
}

.story-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-list__item time {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-ink-soft);
    white-space: nowrap;
    padding-top: 0.35rem;
}

.story-list__content {
    min-width: 0;
}

.story-list__content h2 {
    font-size: 1.1875rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.story-list__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-coral);
    margin-bottom: 0.35rem;
}

.story-list__content h2 {
    font-size: 1.125rem;
    margin: 0 0 0.35rem;
}

.story-list__content h2 a {
    color: var(--color-ink);
    text-decoration: none;
}

.story-list__content h2 a:hover {
    color: var(--color-coral);
}

.story-list__content p {
    font-size: 0.96875rem;
    color: var(--color-ink-soft);
    margin: 0;
    line-height: 1.65;
}

.story-list__meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-coral);
    white-space: nowrap;
    padding-top: 0.35rem;
}

/* Category layout */
.category-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.category-layout__main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.sidebar-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-box h2,
.sidebar-box h3 {
    font-size: 1.0625rem;
    margin: 0 0 0.85rem;
}

.sidebar-box p {
    font-size: 0.96875rem;
    color: var(--color-ink-soft);
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.sidebar-box--muted {
    background: var(--color-muted);
    border-color: transparent;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 0.4rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

/* Article page */
.article-page__header {
    padding: 2.5rem 0 1.5rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.article-page__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-coral);
    margin-bottom: 0.75rem;
}

.article-page__header h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin: 0 0 1rem;
}

.article-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--color-ink-soft);
    font-weight: 500;
}

.article-page__hero {
    margin: 0;
    max-height: 480px;
    overflow: hidden;
}

.article-page__hero img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.article-page__hero figcaption {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    color: var(--color-ink-soft);
    background: var(--color-muted);
    text-align: center;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--color-ink);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.article-disclaimer {
    background: var(--color-muted);
    border-left: 4px solid var(--color-coral);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-disclaimer p {
    margin: 0;
    font-size: 0.875rem;
}

.article-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.article-nav a {
    font-weight: 600;
}

/* Prose */
.prose {
    padding: 3rem 0 5rem;
    max-width: var(--narrow);
    margin-inline: auto;
}

.prose h2 {
    font-size: 1.625rem;
    margin: 2.75rem 0 1.15rem;
    color: var(--color-ink);
    letter-spacing: -0.01em;
}

.prose p,
.prose li {
    color: var(--color-ink-soft);
    line-height: 1.85;
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose__figure {
    margin: 0 0 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    aspect-ratio: 16 / 8;
}

.prose__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prose__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.prose--legal h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
}

.prose--legal address {
    font-style: normal;
    background: var(--color-muted);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
}

.steps-list {
    padding-left: 1.25rem;
}

.steps-list li {
    margin-bottom: 1rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.legal-table th {
    background: var(--color-muted);
    font-weight: 600;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-coral);
    outline-offset: 1px;
    border-color: var(--color-coral);
}

.form-group--error input,
.form-group--error textarea {
    border-color: var(--color-coral);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--color-ink-soft);
    margin: 0;
}

.form-success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
}

.form-success h3 {
    color: var(--color-success-text);
    margin: 0 0 0.75rem;
    font-size: 1.375rem;
}

.form-success p {
    margin: 0 0 0.75rem;
    color: var(--color-ink-soft);
    line-height: 1.65;
}

.form-success a {
    color: var(--color-coral);
    font-weight: 600;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-layout__form {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.contact-layout__form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-details {
    background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
    color: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.contact-details h2 {
    color: var(--color-white);
    margin-top: 0;
    font-size: 1.25rem;
}

.contact-details a {
    color: var(--color-gold-light);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.contact-details address p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.contact-details__hours {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 1rem 0;
}

.contact-details > p:last-child {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.contact-visual__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    aspect-ratio: 21 / 9;
}

.contact-visual__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Map */
.map-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--color-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 1.5rem;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.map-fallback {
    padding: 2rem;
    text-align: center;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 1.5rem 1.5rem;
    pointer-events: none;
}

.cookie-banner:not([hidden]) {
    pointer-events: auto;
}

.cookie-banner__panel {
    max-width: 920px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-border);
    border-left: 4px solid var(--color-coral);
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem 2rem;
    align-items: center;
    animation: cookieSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}

.cookie-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--color-coral-soft);
    border-radius: var(--radius);
    color: var(--color-coral);
}

.cookie-banner__text {
    min-width: 0;
}

.cookie-banner h2 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 0.45rem;
    line-height: 1.3;
}

.cookie-banner p {
    font-size: 0.9375rem;
    color: var(--color-ink-soft);
    line-height: 1.65;
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-banner__actions .btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.cookie-banner__link {
    color: var(--color-coral);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.cookie-banner__link:hover {
    color: var(--color-coral-dark);
    background: var(--color-coral-soft);
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 2rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-white);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.site-footer__name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.5rem;
}

.site-footer__tagline {
    font-size: 0.875rem;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.site-footer__hours {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.site-footer__heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer address {
    font-style: normal;
    font-size: 0.875rem;
}

.site-footer address p {
    margin: 0 0 0.35rem;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    font-size: 0.8125rem;
}

.site-footer__bottom p {
    margin: 0 0 0.5rem;
}

.site-footer__disclaimer {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero--split {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        max-height: 360px;
        min-height: 280px;
        order: -1;
    }

    .hero__visual::after {
        background: linear-gradient(180deg, transparent 50%, var(--color-dark) 100%);
    }

    .hero__visual img {
        min-height: 280px;
    }

    .hero__content {
        padding: 3rem 1.5rem 4rem;
    }

    .story-grid--featured {
        grid-template-columns: 1fr;
    }

    .story-grid--featured .story-card--lead {
        grid-row: auto;
    }

    .editorial-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .editorial-block__figure {
        aspect-ratio: 16 / 10;
    }

    .topic-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-panel {
        grid-template-columns: 1fr;
    }

    .category-layout {
        grid-template-columns: 1fr;
    }

    .story-card--horizontal .story-card__link {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .story-card--horizontal .story-card__media {
        width: 220px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-list__item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .story-list__item time {
        grid-column: 2;
        grid-row: 2;
        padding-top: 0;
    }

    .story-list__meta {
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: calc(4.5rem + 33px);
        left: 0;
        right: 0;
        background: var(--color-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .primary-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .primary-nav a {
        padding: 0.85rem 1rem;
        border-radius: var(--radius);
    }

    .story-list__item {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 1.5rem;
    }

    .story-list__thumb {
        width: 100%;
        height: 180px;
    }

    .story-list__item time,
    .story-list__meta {
        grid-column: auto;
        grid-row: auto;
    }

    .story-list__meta {
        text-align: left;
    }

    .story-card--horizontal .story-card__link {
        grid-template-columns: 1fr;
    }

    .story-card--horizontal .story-card__media {
        width: 100%;
        min-height: 200px;
        aspect-ratio: 16 / 10;
    }

    .story-card--horizontal .story-card__body {
        padding: 1.5rem 1.75rem 1.75rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .topic-cards {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner__panel {
        grid-template-columns: 1fr;
        padding: 1.35rem 1.5rem;
        gap: 1.25rem;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.35rem);
    }

    .cookie-banner__link {
        flex: 1 1 100%;
        text-align: center;
    }

    .article-page__hero img {
        height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
    }

    .cookie-banner__panel {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
