/* =========================================
   TURNIP GAZETTE — FINAL PAPER POLISH
   Loaded after gazette.css so the newsroom keeps
   one clear visual language with character.html.
========================================= */

/* Masthead typography: restrained gold response rather than a generic lift. */
.gazette-masthead-centre h1,
.gazette-masthead-centre h1 span,
.gazette-kicker,
.gazette-tagline {
    transition: color .3s ease, transform .3s ease, text-shadow .3s ease, letter-spacing .3s ease;
}

.gazette-masthead-centre:hover h1 {
    color: #70471f;
    transform: translateY(-2px);
    text-shadow: 0 2px 0 rgba(255,255,255,.28), 0 0 18px rgba(201,150,55,.18);
}

.gazette-masthead-centre:hover h1 span,
.gazette-masthead-centre:hover .gazette-kicker {
    color: #b07925;
}

.gazette-masthead-centre:hover .gazette-tagline {
    color: #946322;
    text-shadow: 0 1px 9px rgba(198,156,74,.20);
}

.gazette-edition-line span:not([aria-hidden="true"]) {
    position: relative;
    transition: color .24s ease, text-shadow .24s ease;
}

.gazette-edition-line span:not([aria-hidden="true"])::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b8862c, #f4d47c, #b8862c, transparent);
    transform: translateX(-50%);
    transition: width .32s ease;
}

.gazette-edition-line span:not([aria-hidden="true"]):hover {
    color: #8f5d1e;
    text-shadow: 0 0 8px rgba(244,212,124,.18);
}

.gazette-edition-line span:not([aria-hidden="true"]):hover::after {
    width: 100%;
}

/* Character-detail style section rule: quiet at rest, full gold sweep on hover. */
.gazette-panel-heading h2,
.gazette-signup-copy h2,
.gazette-small-print-heading h2 {
    border-bottom: 1px solid rgba(139,93,31,.20);
    transition: color .28s ease, transform .28s ease, text-shadow .28s ease;
}

.gazette-panel-heading h2::after,
.gazette-signup-copy h2::after,
.gazette-small-print-heading h2::after {
    width: 0;
    height: 2px;
    bottom: -1px;
    background: linear-gradient(90deg, #b8862c, #f4d47c, transparent);
    box-shadow: 0 0 8px rgba(244,212,124,.25);
    transition: width .48s ease;
}

.gazette-panel:hover .gazette-panel-heading h2::after,
.gazette-signup-panel:hover .gazette-signup-copy h2::after,
.gazette-small-print:hover .gazette-small-print-heading h2::after {
    width: 100%;
}

.gazette-panel:hover .gazette-panel-heading h2,
.gazette-signup-panel:hover .gazette-signup-copy h2,
.gazette-small-print:hover .gazette-small-print-heading h2 {
    color: #75491e;
    text-shadow: 0 1px 10px rgba(198,156,74,.13);
}

/* Inside the newsroom: use the width the panel actually provides. */
.gazette-about .gazette-panel-intro {
    width: 100%;
    max-width: none;
    font-size: clamp(19px, 1.8vw, 22px);
    line-height: 1.72;
}

.gazette-about .gazette-panel-heading h2 {
    font-size: clamp(33px, 4.2vw, 48px);
}

/* The three desks should feel like small newspaper inserts, not white UI cards. */
.gazette-beats {
    gap: 18px;
    margin-top: 31px;
}

.gazette-beats article {
    padding: 26px 24px 25px;
    background:
        linear-gradient(rgba(248,237,202,.78), rgba(232,211,164,.86)),
        url("../images/parchment.png");
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(198,156,74,.52);
    box-shadow: 0 10px 22px rgba(70,45,20,.12);
}

.gazette-beats article:hover {
    transform: translateY(-5px);
    border-color: #e1b752;
    box-shadow: 0 16px 30px rgba(70,45,20,.18), 0 0 15px rgba(244,212,124,.13);
}

.gazette-beat-number {
    font-size: 15px;
}

.gazette-beats strong {
    position: relative;
    display: inline-block;
    margin: 9px 0 11px;
    padding-bottom: 5px;
    font-size: clamp(23px, 2.1vw, 27px);
    transition: color .25s ease, transform .25s ease;
}

.gazette-beats strong::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a46e24, #f4d47c, transparent);
    transition: width .38s ease;
}

.gazette-beats article:hover strong {
    color: #7a4b1d;
    transform: translateX(2px);
}

.gazette-beats article:hover strong::after {
    width: 100%;
}

.gazette-beats p {
    font-size: clamp(18px, 1.55vw, 20px);
    line-height: 1.58;
}

/* Signup: light book-paper outer panel, parchment working form, light mini-cards. */
.gazette-signup-panel {
    background: rgba(255,250,229,.97);
}

.gazette-signup-lead {
    font-size: clamp(19px, 1.75vw, 21px);
    line-height: 1.72;
}

.gazette-signup-points > div {
    position: relative;
    transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.gazette-signup-points > div:hover {
    transform: translateX(4px);
    border-bottom-color: rgba(184,134,44,.52);
    background: linear-gradient(90deg, rgba(244,212,124,.08), transparent 82%);
}

.gazette-signup-points > div:hover > span {
    color: #d09a32;
    text-shadow: 0 0 10px rgba(244,212,124,.45);
}

.gazette-signup-points p {
    font-size: 17px;
    line-height: 1.58;
}

.gazette-form-card {
    background:
        linear-gradient(rgba(248,237,202,.80), rgba(232,211,164,.86)),
        url("../images/parchment.png");
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(198,156,74,.58);
    box-shadow: 0 14px 30px rgba(70,45,20,.15);
}

.gazette-field,
.gazette-choice,
.gazette-consent {
    position: relative;
}

.gazette-field--email {
    padding: 17px;
    background: rgba(255,250,229,.90);
    border: 1px solid rgba(139,93,31,.22);
    border-radius: 10px;
}

.gazette-choice {
    padding: 17px;
    background: rgba(255,250,229,.72);
    border: 1px solid rgba(139,93,31,.22);
    border-radius: 10px;
}

.gazette-choice legend {
    margin: 0 0 10px;
    padding: 0 5px;
    font-size: 18px;
}

.gazette-choice-grid label,
.gazette-consent {
    overflow: hidden;
    background: #fffaf0;
    border-color: rgba(139,93,31,.28);
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.gazette-choice-grid label::after,
.gazette-consent::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 62%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(244,212,124,.16), rgba(255,255,255,.28), transparent);
    transform: skewX(-22deg);
    transition: left .68s ease;
}

.gazette-choice-grid label:hover::after,
.gazette-choice-grid label:has(input:checked)::after,
.gazette-consent:hover::after {
    left: 135%;
}

.gazette-choice-grid label:hover,
.gazette-choice-grid label:has(input:checked),
.gazette-consent:hover {
    border-color: #c9983c;
    background: #fffdf5;
    box-shadow: 0 8px 18px rgba(70,45,20,.10), 0 0 10px rgba(244,212,124,.08);
}

.gazette-choice-grid strong {
    font-size: 16px;
}

.gazette-choice-grid small,
.gazette-consent {
    font-size: 15px;
}

.gazette-form-card .button {
    position: relative;
    overflow: hidden;
    border-width: 2px;
}

.gazette-form-card .button::after {
    content: "";
    position: absolute;
    top: -25%;
    left: -75%;
    width: 42%;
    height: 150%;
    pointer-events: none;
    background: linear-gradient(115deg, transparent, rgba(255,246,193,.22), rgba(255,255,255,.52), rgba(255,246,193,.18), transparent);
    transform: skewX(-18deg);
    transition: left .65s ease;
}

.gazette-form-card .button:hover::after,
.gazette-form-card .button:focus-visible::after {
    left: 135%;
}

/* Subscriber dispatches keep the same warm paper language. */
.gazette-subscriber-panel {
    background: rgba(255,250,229,.97);
}

.gazette-dispatch-card {
    border-width: 2px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.gazette-dispatch-card:hover {
    transform: translateY(-3px);
    border-color: #d6a845;
    box-shadow: 0 12px 24px rgba(70,45,20,.13), 0 0 12px rgba(244,212,124,.09);
}

/* Small print: keep the calm layout, but make it feel intentionally interactive. */
.gazette-small-print-heading > p:last-child {
    max-width: none;
}

.gazette-small-print details {
    position: relative;
    border-width: 2px;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.gazette-small-print details:hover,
.gazette-small-print details[open] {
    transform: translateY(-2px);
    border-color: #d1a045;
    background: #fffdf5;
    box-shadow: 0 9px 20px rgba(70,45,20,.10), 0 0 10px rgba(244,212,124,.07);
}

.gazette-small-print summary {
    position: relative;
    padding-left: 22px;
    transition: color .22s ease, padding-left .22s ease;
}

.gazette-small-print details:hover summary,
.gazette-small-print details[open] summary {
    color: #87551f;
    padding-left: 26px;
}

.gazette-small-print summary::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 7px;
    height: 2px;
    background: linear-gradient(90deg, #b8862c, #f4d47c, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .38s ease;
}

.gazette-small-print details:hover summary::after,
.gazette-small-print details[open] summary::after {
    transform: scaleX(1);
}

@media (max-width: 720px) {
    .gazette-about .gazette-panel-intro {
        font-size: 18px;
    }

    .gazette-beats p {
        font-size: 17px;
    }

    .gazette-form-card,
    .gazette-field--email,
    .gazette-choice {
        padding: 16px;
    }

    .gazette-signup-points > div:hover,
    .gazette-panel:hover,
    .gazette-small-print details:hover,
    .gazette-dispatch-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gazette-masthead-centre *,
    .gazette-edition-line span,
    .gazette-panel-heading h2,
    .gazette-signup-copy h2,
    .gazette-small-print-heading h2,
    .gazette-panel-heading h2::after,
    .gazette-signup-copy h2::after,
    .gazette-small-print-heading h2::after,
    .gazette-beats article,
    .gazette-beats article::after,
    .gazette-beats strong,
    .gazette-beats strong::after,
    .gazette-signup-points > div,
    .gazette-choice-grid label,
    .gazette-choice-grid label::after,
    .gazette-consent,
    .gazette-consent::after,
    .gazette-form-card .button::after,
    .gazette-dispatch-card,
    .gazette-small-print details,
    .gazette-small-print summary,
    .gazette-small-print summary::after {
        transition: none !important;
    }
}
