/* Made in Carnia — stile editoriale premium */

:root {
    --emerald: #0d4f3c;
    --emerald-light: #1a7a5c;
    --emerald-dark: #0a3d2e;
    --emerald-ink: #06241b;
    --gold: #c9a227;
    --gold-light: #f5d76e;
    --gold-deep: #a8841a;
    --red: #b91c1c;
    --red-dark: #991b1b;
    --white: #ffffff;
    --paper: #faf8f3;
    --off-white: #f5f3ed;
    --gray-100: #f1efe9;
    --gray-200: #e4e1d8;
    --gray-300: #cfcabd;
    --gray-500: #6b7280;
    --gray-600: #57534e;
    --gray-800: #292524;
    --text: #1c1917;
    --ink: #14110d;
    --shadow-sm: 0 1px 3px rgba(20, 17, 13, 0.06);
    --shadow: 0 6px 22px rgba(13, 79, 60, 0.09);
    --shadow-lg: 0 18px 50px rgba(13, 79, 60, 0.16);
    --radius: 6px;
    --radius-lg: 12px;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-serif: "Lora", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --container: 1220px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 100% -5%, rgba(201, 162, 39, 0.06), transparent 60%),
        var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red);
}

::selection {
    background: var(--gold-light);
    color: var(--ink);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Ticker ULTIM'ORA ── */

.ticker-bar {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: var(--white);
    font-size: 0.85rem;
    overflow: hidden;
    min-height: 38px;
}

.ticker-label {
    flex-shrink: 0;
    background: var(--ink);
    padding: 0.5rem 1.1rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    z-index: 1;
    position: relative;
}

.ticker-label::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 0;
    width: 10px;
    background: var(--ink);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
}

.ticker-inner:hover {
    animation-play-state: paused;
}

.ticker-inner a {
    color: var(--white);
    padding: 0 0.5rem;
    font-weight: 500;
}

.ticker-inner a:hover {
    color: var(--gold-light);
}

.ticker-sep {
    opacity: 0.45;
    padding: 0 0.85rem;
    color: var(--gold-light);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Header ── */

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-light) 40%, var(--gold) 70%, var(--red) 100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 1.5rem;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.logo-link:hover {
    color: inherit;
}

.logo-img {
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--emerald);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.logo-tagline {
    font-size: 0.72rem;
    color: var(--gray-600);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.15rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gray-800);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    color: var(--emerald);
    background: transparent;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav a.active {
    background: var(--emerald);
    color: var(--white);
}

.main-nav a.active::after {
    display: none;
}

.nav-date {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-family: var(--font-serif);
    font-style: italic;
    white-space: nowrap;
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
}

/* ── Main ── */

.site-main {
    min-height: 50vh;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0 0 1.85rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--emerald-dark);
}

.section-title span {
    position: relative;
    padding-left: 1rem;
    flex-shrink: 0;
}

.section-title span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1.15em;
    background: var(--red);
    border-radius: 2px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--gray-300), transparent);
}

.badge,
.badge-sm {
    display: inline-block;
    background: var(--emerald);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: badge-shine 4.5s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 70% { left: -120%; }
    100% { left: 130%; }
}

.badge-sm {
    font-size: 0.6rem;
    padding: 0.18rem 0.5rem;
    background: none;
    color: var(--gold-deep);
    padding-left: 0;
    letter-spacing: 0.12em;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--gray-500);
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
}

.meta time {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.meta .source {
    color: var(--gold-deep);
    font-weight: 600;
}

.meta .source::before {
    content: "·";
    margin-right: 0.75rem;
    color: var(--gray-300);
}

/* ── Primo piano ── */

.primo-piano {
    padding: 2.75rem 0 2.5rem;
}

.primo-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 2.25rem;
    align-items: stretch;
}

.hero-card {
    position: relative;
    background: var(--emerald-ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    isolation: isolate;
    animation: rise-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-card {
    animation: rise-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.news-grid .news-card:nth-child(2) { animation-delay: 0.05s; }
.news-grid .news-card:nth-child(3) { animation-delay: 0.1s; }
.news-grid .news-card:nth-child(4) { animation-delay: 0.15s; }
.news-grid .news-card:nth-child(5) { animation-delay: 0.2s; }
.news-grid .news-card:nth-child(6) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    .hero-card,
    .news-card,
    .badge::after,
    .footer-notice-dot {
        animation: none;
    }
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(6, 36, 27, 0.32);
}

.hero-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.hero-figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--emerald-ink);
}

.hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card:hover .hero-figure img {
    transform: scale(1.05);
}

.hero-body {
    padding: 1.75rem;
}

/* Quando c'è l'immagine, il testo va in sovrimpressione (stile copertina) */
.hero-figure + .hero-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 3.5rem 2.25rem 2rem;
    background: linear-gradient(to top,
        rgba(6, 36, 27, 0.96) 8%,
        rgba(6, 36, 27, 0.72) 45%,
        rgba(6, 36, 27, 0) 100%);
    color: var(--white);
}

.hero-figure + .hero-body h3,
.hero-figure + .hero-body p {
    color: var(--white);
}

.hero-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0.65rem 0 0.7rem;
    color: var(--emerald-dark);
    letter-spacing: -0.01em;
}

.hero-link:hover h3 {
    color: var(--red);
}

.hero-link:hover .hero-figure + .hero-body h3 {
    color: var(--gold-light);
}

.hero-body p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-serif);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 60ch;
}

.hero-figure + .hero-body .meta {
    color: rgba(255, 255, 255, 0.72);
}

.hero-figure + .hero-body .badge {
    background: var(--gold);
    color: var(--ink);
}

/* Side list — rubrica numerata */

.side-list {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    counter-reset: side;
    overflow: hidden;
}

.side-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-list li {
    counter-increment: side;
}

.side-list li + li {
    border-top: 1px solid var(--gray-200);
}

.side-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    padding: 1.05rem 1.15rem;
    color: inherit;
    text-decoration: none;
    align-items: center;
    transition: background 0.2s ease;
}

.side-list a:hover {
    background: var(--off-white);
}

.side-list a::before {
    content: counter(side, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    color: var(--gold);
    line-height: 1;
    min-width: 1.6rem;
}

.side-list a:hover h4 {
    color: var(--red);
}

.side-list img {
    width: 76px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    background: var(--gray-200);
    order: 3;
}

.side-list h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.28;
    margin: 0 0 0.3rem;
    color: var(--emerald-dark);
}

.side-list time {
    font-size: 0.72rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.side-list .badge-sm {
    display: block;
    margin-bottom: 0.2rem;
}

/* ── Ultime notizie grid ── */

.ultime-notizie {
    padding: 1rem 0 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.news-card a {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.news-card a:hover h3 {
    color: var(--red);
}

.news-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 2;
}

.news-card {
    position: relative;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.card-figure {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.card-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 36, 27, 0.28), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.news-card:hover .card-figure::after {
    opacity: 1;
}

.card-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.news-card:hover .card-figure img {
    transform: scale(1.06);
}

.card-body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}

.card-body .badge {
    align-self: flex-start;
    margin-bottom: 0.55rem;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--emerald-dark);
}

.card-body p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0 0 1rem;
    line-height: 1.55;
    font-family: var(--font-serif);
}

.card-body .meta {
    margin-top: auto;
}

/* ── Articolo singolo ── */

.article-page {
    padding: 2.5rem 0 3.5rem;
}

.article-wrap {
    max-width: 760px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.breadcrumb {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.breadcrumb a {
    color: var(--emerald);
    font-weight: 600;
}

.breadcrumb span:last-child {
    color: var(--gray-500);
}

.article-header {
    margin-bottom: 1.75rem;
}

.article-header .badge {
    margin-bottom: 0.5rem;
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.14;
    color: var(--ink);
    margin: 0.65rem 0 1rem;
    letter-spacing: -0.015em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--gray-500);
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.article-meta .author::before,
.article-meta .source::before {
    content: "·";
    margin-right: 1rem;
    color: var(--gray-300);
}

.article-meta .source {
    color: var(--gold-deep);
}

.article-hero {
    margin: 1.75rem 0 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-hero img {
    width: 100%;
}

.article-content {
    font-family: var(--font-serif);
    font-size: 1.16rem;
    line-height: 1.78;
    color: var(--gray-800);
}

.article-content p {
    margin: 0 0 1.4rem;
}

.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 3.8rem;
    line-height: 0.78;
    font-weight: 800;
    color: var(--emerald);
    padding: 0.35rem 0.55rem 0.1rem 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--emerald-dark);
    line-height: 1.25;
    margin: 2.25rem 0 0.85rem;
}

.article-content h2 {
    font-size: 1.6rem;
}

.article-content h3 {
    font-size: 1.3rem;
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: 1.75rem 0;
    box-shadow: var(--shadow-sm);
}

.article-content a {
    color: var(--emerald-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.article-content a:hover {
    color: var(--red);
}

.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.75rem;
    border-left: 4px solid var(--gold);
    background: var(--off-white);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--emerald-dark);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.4rem;
    padding-left: 1.4rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-footer {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-500);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.3rem;
    background: var(--emerald);
    color: var(--white) !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-back:hover {
    background: var(--emerald-dark);
    color: var(--white) !important;
    transform: translateX(-2px);
}

/* ── Condivisione social ── */

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.article-share .share-label {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--white) !important;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.share-btn svg {
    display: block;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.3);
}

.share-btn:active {
    transform: translateY(0);
}

.share-fb {
    background: #1877f2;
}

.share-fb:hover {
    background: #0f5fce;
    color: var(--white) !important;
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.3);
}

.share-copy {
    background: var(--emerald);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-copy:hover {
    background: var(--emerald-dark);
    color: var(--white) !important;
    box-shadow: 0 8px 18px rgba(13, 79, 60, 0.3);
}

.share-copy.is-copied {
    background: var(--gold-deep);
}

.share-copy.is-copied:hover {
    box-shadow: 0 8px 18px rgba(168, 132, 26, 0.35);
}

/* ── Carnia Web TV + Magazine ── */

.webtv-section {
    padding: 1rem 0 3.5rem;
}

.webtv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.rail-block {
    scroll-margin-top: 5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.rail-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--emerald);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.rail-caption {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--gray-600);
    margin: 0.75rem 0 0;
    line-height: 1.4;
}

.magazine-viewer {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.magazine-viewer iframe {
    width: 100%;
    height: 480px;
    border: none;
    display: block;
    background: var(--gray-100);
}

.magazine-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    background: var(--emerald);
    color: var(--white);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-download:hover {
    background: var(--emerald-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--emerald);
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-light:hover {
    background: var(--emerald);
    color: var(--white);
}

/* ── Footer ── */

.site-footer {
    background:
        radial-gradient(800px 400px at 0% 0%, rgba(201, 162, 39, 0.1), transparent 60%),
        var(--emerald-ink);
    color: rgba(255, 255, 255, 0.78);
    padding: 3rem 0 2.5rem;
    margin-top: 2rem;
    border-top: 3px solid var(--gold);
}

.footer-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin-bottom: 2rem;
    padding: 0.85rem 1.35rem;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(245, 215, 110, 0.3);
    border-radius: 999px;
}

.footer-notice-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 0 0 rgba(245, 215, 110, 0.7);
    animation: notice-pulse 2s ease-out infinite;
    flex-shrink: 0;
}

@keyframes notice-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 215, 110, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(245, 215, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 215, 110, 0); }
}

.footer-notice-text {
    font-family: var(--font-sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    color: var(--gold-light);
}

.footer-notice-sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.footer-logo {
    flex-shrink: 0;
    opacity: 0.95;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer-info p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-info strong {
    color: var(--gold-light);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.footer-staff {
    list-style: none;
    margin: 0.75rem 0 0.5rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-staff li {
    margin: 0;
}

.footer-staff .role {
    display: inline-block;
    color: var(--gold-light);
    font-weight: 600;
    margin-right: 0.35rem;
}

.footer-meta {
    margin-top: 1.25rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.6);
}

.footer-meta a {
    color: var(--gold-light);
}

.footer-meta a:hover {
    color: var(--white);
}

/* ── Utility ── */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
    font-size: 1.1rem;
    font-family: var(--font-serif);
    font-style: italic;
}

/* ── Responsive ── */

@media (max-width: 960px) {
    .primo-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.1rem;
    }

    .site-header {
        position: static;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.75rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .nav-date {
        border-left: none;
        padding-left: 0;
    }

    .logo-title {
        font-size: 1.5rem;
    }

    .ticker-label {
        font-size: 0.72rem;
        padding: 0.5rem 0.7rem;
    }

    .hero-figure + .hero-body {
        padding: 2.5rem 1.35rem 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-wrap {
        padding: 1.5rem 1.25rem;
    }

    .article-content {
        font-size: 1.06rem;
    }

    .article-content > p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .webtv-row {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .magazine-viewer iframe {
        height: 420px;
    }
}
