/* =========================================
   TURNIP GAZETTE — PUBLIC NEWSROOM
========================================= */

.gazette-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 118px var(--page-padding) clamp(76px, 8vw, 110px);
    background:
        radial-gradient(circle at 50% 7%, rgba(244,212,124,.10), transparent 30%),
        linear-gradient(180deg, #101827 0%, #182438 54%, #101827 100%);
}

.gazette-shell {
    position: relative;
    z-index: 2;
    width: min(1160px, 100%);
    margin-inline: auto;
}

.gazette-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gazette-particles span {
    position: absolute;
    left: var(--x, 50%);
    bottom: -30px;
    width: var(--size, 5px);
    height: var(--size, 5px);
    border-radius: 50%;
    background: #f4d47c;
    opacity: var(--opacity, .32);
    box-shadow: 0 0 9px rgba(244,212,124,.70), 0 0 18px rgba(244,212,124,.26);
    animation: gazetteParticleFloat var(--duration, 30s) linear infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes gazetteParticleFloat {
    0% { transform: translate3d(0, 40px, 0) scale(.65); opacity: 0; }
    10% { opacity: var(--opacity, .32); }
    52% { transform: translate3d(var(--drift, 12px), -52vh, 0) scale(.9); }
    90% { opacity: calc(var(--opacity, .32) * .7); }
    100% { transform: translate3d(calc(var(--drift, 12px) * -.5), -115vh, 0) scale(1.1); opacity: 0; }
}

/* =========================================
   NEWSPAPER MASTHEAD
========================================= */

.gazette-masthead-card,
.gazette-panel {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.gazette-masthead-card {
    display: grid;
    grid-template-columns: minmax(165px, 220px) minmax(0, 1fr) minmax(165px, 220px);
    grid-template-areas:
        "left title right"
        "line line line";
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
    padding: clamp(30px, 4.4vw, 52px) clamp(24px, 4vw, 46px) 0;
    color: #56351a;
    background:
        linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.01)),
        linear-gradient(rgba(248,237,202,.72), rgba(232,211,164,.80)),
        url("../images/parchment.png");
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(214,170,70,.90);
}

.gazette-masthead-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(93,58,24,.24);
    border-radius: 9px;
}

.gazette-masthead-centre,
.gazette-paper-shot,
.gazette-edition-line {
    position: relative;
    z-index: 1;
}

.gazette-masthead-centre {
    grid-area: title;
    min-width: 0;
    text-align: center;
}

.gazette-kicker,
.gazette-panel-kicker {
    margin: 0 0 9px;
    color: #9a681f;
    font-family: var(--title-font);
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.gazette-kicker {
    text-align: center;
}

.gazette-masthead-centre h1 {
    margin: 0;
    color: #56351a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6.8vw, 82px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: .91;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(255,255,255,.30);
}

.gazette-masthead-centre h1 span {
    display: block;
    margin-bottom: 4px;
    color: #6a421e;
    font-size: .36em;
    letter-spacing: .18em;
    line-height: 1;
}

.gazette-tagline {
    margin: 16px 0 0;
    color: #60401f;
    font-family: Georgia, serif;
    font-size: clamp(17px, 2vw, 24px);
    font-style: italic;
    font-weight: 700;
}

.gazette-paper-shot {
    margin: 0;
    padding: 6px;
    background: linear-gradient(145deg, #d9ad4d, #8a591d);
    border: 2px solid rgba(244,212,124,.88);
    border-radius: 11px;
    box-shadow: 0 16px 28px rgba(55,34,14,.28);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.gazette-paper-shot--left {
    grid-area: left;
    transform: rotate(-4deg);
}

.gazette-paper-shot--right {
    grid-area: right;
    transform: rotate(4deg);
}

.gazette-paper-shot:hover {
    border-color: #fff0ad;
    box-shadow: 0 20px 36px rgba(55,34,14,.35), 0 0 18px rgba(244,212,124,.18);
}

.gazette-paper-shot--left:hover {
    transform: rotate(-2deg) translateY(-5px);
}

.gazette-paper-shot--right:hover {
    transform: rotate(2deg) translateY(-5px);
}

.gazette-paper-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.gazette-edition-line {
    grid-area: line;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 4px;
    padding: 16px 8px 18px;
    color: #5b3d21;
    border-top: 2px solid rgba(111,76,36,.46);
    font-family: Georgia, serif;
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* =========================================
   CHARACTER-STYLE PAPER PANELS
========================================= */

.gazette-panel {
    margin-top: 34px;
    padding: clamp(28px, 4vw, 44px);
    color: #5b381d;
    border: 2px solid rgba(198,156,74,.58);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.gazette-panel:hover {
    transform: translateY(-3px);
    border-color: rgba(229,196,110,.92);
    box-shadow: 0 20px 44px rgba(0,0,0,.24), 0 0 16px rgba(244,212,124,.10);
}

.gazette-panel--book {
    background: rgba(255,250,229,.96);
}

.gazette-panel--parchment {
    background:
        linear-gradient(rgba(248,237,202,.75), rgba(232,211,164,.82)),
        url("../images/parchment.png");
    background-size: cover;
    background-position: center;
}

.gazette-panel-heading {
    margin-bottom: 18px;
}

.gazette-panel-heading h2,
.gazette-signup-copy h2,
.gazette-small-print-heading h2 {
    position: relative;
    margin: 0;
    padding-bottom: 11px;
    color: #65401c;
    font-family: var(--title-font);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.gazette-panel-heading h2::after,
.gazette-signup-copy h2::after,
.gazette-small-print-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(190px, 52%);
    height: 2px;
    background: linear-gradient(90deg, #b8862c, #f4d47c, transparent);
}

.gazette-panel-heading p,
.gazette-panel-intro,
.gazette-signup-lead,
.gazette-small-print-heading > p:last-child {
    max-width: 820px;
    margin: 12px 0 0;
    color: #6d4a2b;
    font-size: clamp(17px, 1.65vw, 20px);
    line-height: 1.65;
}

.gazette-about {
    background:
        linear-gradient(rgba(255,250,229,.97), rgba(255,250,229,.97)),
        url("../images/parchment.png");
}

.gazette-beats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 28px;
}

.gazette-beats article {
    position: relative;
    overflow: hidden;
    padding: 22px 20px;
    color: #5b381d;
    background: linear-gradient(145deg, #fffaf0, #f3e5bf);
    border: 1px solid rgba(139,93,31,.28);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(70,45,20,.10);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.gazette-beats article::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(244,212,124,.16), rgba(255,255,255,.22), transparent);
    transform: skewX(-22deg);
    transition: left .7s ease;
}

.gazette-beats article:hover {
    transform: translateY(-4px);
    border-color: #d7aa4d;
    box-shadow: 0 13px 25px rgba(70,45,20,.15);
}

.gazette-beats article:hover::after {
    left: 135%;
}

.gazette-beat-number {
    color: #a87523;
    font-family: var(--title-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.gazette-beats strong {
    display: block;
    margin: 7px 0 8px;
    color: #65401c;
    font-family: var(--title-font);
    font-size: 21px;
}

.gazette-beats p {
    margin: 0;
    color: #735334;
    font-size: 16px;
    line-height: 1.52;
}

/* =========================================
   SIGNUP
========================================= */

.gazette-signup-layout {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    gap: clamp(30px, 5vw, 54px);
    align-items: start;
}

.gazette-signup-copy {
    padding: 8px 0;
}

.gazette-signup-points {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.gazette-signup-points > div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px 0;
    border-bottom: 1px solid rgba(139,93,31,.19);
}

.gazette-signup-points > div > span {
    color: #b57c1f;
    font-size: 18px;
    line-height: 1.4;
}

.gazette-signup-points p {
    margin: 0;
    color: #6d4a2b;
    font-size: 16px;
    line-height: 1.5;
}

.gazette-signup-points strong {
    color: #56351a;
}

.gazette-form-card {
    display: grid;
    gap: 19px;
    padding: clamp(22px, 3vw, 30px);
    color: #52371d;
    background: rgba(255,250,229,.88);
    border: 1px solid rgba(111,76,36,.26);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(70,45,20,.13);
}

.gazette-form-card label,
.gazette-form-card legend {
    color: #52371d;
    font-weight: 800;
}

.gazette-field label {
    display: block;
}

.gazette-form-card input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 14px 15px;
    color: #4c321c;
    background: #fffdf6;
    border: 1px solid rgba(113,74,30,.42);
    border-radius: 9px;
    font: inherit;
    font-size: 17px;
}

.gazette-form-card input[type="email"]:focus {
    outline: 2px solid rgba(213,170,75,.45);
    outline-offset: 2px;
    border-color: #ad7b29;
}

.gazette-choice {
    margin: 0;
    padding: 0;
    border: 0;
}

.gazette-choice legend {
    margin-bottom: 10px;
}

.gazette-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.gazette-choice-grid label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 92px;
    padding: 14px;
    cursor: pointer;
    background: #fffaf0;
    border: 1px solid rgba(139,93,31,.28);
    border-radius: 10px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.gazette-choice-grid label:hover,
.gazette-choice-grid label:has(input:checked) {
    transform: translateY(-2px);
    background: #f7e9c4;
    border-color: #bd8b31;
    box-shadow: 0 7px 15px rgba(70,45,20,.10);
}

.gazette-choice-grid input,
.gazette-consent input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: #b57c1f;
}

.gazette-choice-grid strong,
.gazette-choice-grid small {
    display: block;
}

.gazette-choice-grid strong {
    color: #56351a;
    font-family: var(--title-font);
    font-size: 15px;
}

.gazette-choice-grid small {
    margin-top: 5px;
    color: #76573a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.gazette-consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 14px 15px;
    color: #604325;
    background: rgba(243,229,191,.52);
    border: 1px solid rgba(139,93,31,.22);
    border-radius: 10px;
    font-weight: 600 !important;
    line-height: 1.46;
}

.gazette-form-card .button {
    justify-self: start;
    min-height: 50px;
    padding: 12px 25px;
    color: #1d3049;
    background: linear-gradient(145deg, #f4d574, #d4a33a);
    border: 1px solid #b88427;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(75,49,18,.18);
    cursor: pointer;
    font-family: var(--title-font);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.gazette-form-card .button:hover,
.gazette-form-card .button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(75,49,18,.24), 0 0 12px rgba(244,212,124,.18);
}

.gazette-form-card .button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.gazette-form-status {
    min-height: 0;
    margin: 0;
    color: #5b4024;
    font-weight: 800;
}

.gazette-form-status:empty {
    display: none;
}

.gazette-form-status.is-success,
.gazette-form-status.is-error {
    display: block;
    padding: 11px 13px;
    border-radius: 9px;
}

.gazette-form-status.is-success {
    color: #285d35;
    background: #e8f3df;
    border: 1px solid rgba(65,125,74,.32);
}

.gazette-form-status.is-error {
    color: #8a3029;
    background: #f9e4dd;
    border: 1px solid rgba(154,53,45,.30);
}

.gazette-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =========================================
   SUBSCRIBER NEWSROOM
========================================= */

.gazette-panel-heading--subscriber {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.gazette-subscribed-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    color: #fff0ad;
    background: #1b304d;
    border: 1px solid #b98a34;
    border-radius: 999px;
    font-family: var(--title-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.gazette-dispatch-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.gazette-dispatch-card {
    overflow: hidden;
    color: #5b381d;
    background: rgba(255,250,229,.86);
    border: 1px solid rgba(139,93,31,.28);
    border-radius: 11px;
    box-shadow: 0 7px 16px rgba(70,45,20,.08);
}

.gazette-dispatch-card summary {
    display: block;
    position: relative;
    padding: 18px 48px 18px 20px;
    cursor: pointer;
    list-style: none;
}

.gazette-dispatch-card summary::-webkit-details-marker {
    display: none;
}

.gazette-dispatch-card summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #9b681f;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1;
}

.gazette-dispatch-card[open] summary::after {
    content: "−";
}

.gazette-dispatch-card time {
    color: #9b681f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gazette-dispatch-card h3 {
    margin: 5px 0 7px;
    color: #65401c;
    font-family: var(--title-font);
    font-size: clamp(20px, 2.5vw, 27px);
}

.gazette-dispatch-excerpt,
.gazette-dispatch-body p {
    color: #735334;
    line-height: 1.55;
}

.gazette-dispatch-excerpt {
    margin: 0;
}

.gazette-dispatch-body {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(139,93,31,.18);
}

.gazette-dispatch-body p {
    margin: 16px 0 0;
}

.gazette-dispatch-cta {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 15px;
    color: #1b304d;
    background: #e6b84f;
    border: 1px solid #b88427;
    border-radius: 999px;
    font-family: var(--title-font);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.gazette-dispatch-empty {
    margin: 0;
    padding: 20px;
    color: #6d4a2b;
    background: rgba(255,250,229,.62);
    border: 1px dashed rgba(139,93,31,.30);
    border-radius: 10px;
    text-align: center;
}

/* =========================================
   SMALL PRINT
========================================= */

.gazette-small-print-heading {
    margin-bottom: 20px;
}

.gazette-small-print-heading h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.gazette-small-print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gazette-small-print details {
    overflow: hidden;
    background: #fffaf0;
    border: 1px solid rgba(139,93,31,.25);
    border-radius: 10px;
}

.gazette-small-print summary {
    padding: 16px 18px;
    color: #65401c;
    cursor: pointer;
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 800;
}

.gazette-small-print-copy {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(139,93,31,.16);
}

.gazette-small-print-copy p {
    margin: 14px 0 0;
    color: #735334;
    font-size: 15px;
    line-height: 1.58;
}

[hidden] {
    display: none !important;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .gazette-masthead-card {
        grid-template-columns: minmax(135px, 180px) minmax(0, 1fr) minmax(135px, 180px);
        gap: 18px;
        padding-inline: 26px;
    }

    .gazette-masthead-centre h1 {
        font-size: clamp(45px, 7.6vw, 66px);
    }

    .gazette-signup-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gazette-signup-copy {
        max-width: 760px;
    }
}

@media (max-width: 720px) {
    .gazette-page {
        padding: 100px 14px 72px;
    }

    .gazette-masthead-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "title title"
            "left right"
            "line line";
        padding: 30px 20px 0;
    }

    .gazette-masthead-centre {
        padding-inline: 6px;
    }

    .gazette-paper-shot {
        width: min(215px, 100%);
        justify-self: center;
    }

    .gazette-paper-shot--left {
        transform: rotate(-3deg);
    }

    .gazette-paper-shot--right {
        transform: rotate(3deg);
    }

    .gazette-edition-line {
        gap: 7px 10px;
    }

    .gazette-panel {
        margin-top: 24px;
        padding: 25px 20px;
    }

    .gazette-beats,
    .gazette-small-print-grid {
        grid-template-columns: 1fr;
    }

    .gazette-panel-heading--subscriber {
        display: block;
    }

    .gazette-subscribed-badge {
        margin-top: 14px;
    }
}

@media (max-width: 560px) {
    .gazette-choice-grid {
        grid-template-columns: 1fr;
    }

    .gazette-choice-grid label {
        min-height: auto;
    }

    .gazette-form-card .button {
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 440px) {
    .gazette-masthead-card {
        padding-inline: 15px;
        gap: 14px 10px;
    }

    .gazette-masthead-centre h1 {
        font-size: clamp(39px, 14vw, 54px);
    }

    .gazette-tagline {
        font-size: 16px;
    }

    .gazette-paper-shot {
        padding: 4px;
        border-width: 1px;
    }

    .gazette-edition-line {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gazette-particles span {
        animation: none !important;
        display: none;
    }

    .gazette-paper-shot,
    .gazette-panel,
    .gazette-beats article,
    .gazette-form-card .button {
        transition: none !important;
    }

    .gazette-panel:hover,
    .gazette-beats article:hover,
    .gazette-form-card .button:hover,
    .gazette-paper-shot--left:hover,
    .gazette-paper-shot--right:hover {
        transform: none !important;
    }
}
