/*
 * Granite State Rundown — Category Section Front v1.0.38.
 * Scoped to the standard category template. The unchanged Fairy post cards
 * are rendered and styled by the same GSR Article Cards code as Latest News.
 */
/* Compact white heading panel shared by Top News and sparse/empty archive headings. */
#page .gsr-category-page .gsr-category__header {
    margin: 0 0 13px;
    padding: 11px 12px 10px;
    border: 0;
    border-bottom: 1px solid #e2e6ea;
    background: #fff;
    box-shadow: 0 2px 14px rgba(21, 35, 44, .055);
}
#page .gsr-category-page .gsr-category__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    color: #15232c !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -.2px;
    text-transform: uppercase;
}
#page .gsr-category-page .gsr-category__title::before {
    content: '';
    flex: 0 0 3px;
    width: 3px;
    height: 22px;
    background: #a71919;
}
/* The Latest News H2 is a separate white panel directly above the feed. */
#page .gsr-category-page .gsr-category__section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px !important;
    padding: 11px 12px 10px;
    border-bottom: 1px solid #e2e6ea;
    background: #fff;
    box-shadow: 0 2px 14px rgba(21, 35, 44, .055);
    color: #15232c !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: uppercase;
}
#page .gsr-category-page .gsr-category__section-title::before {
    content: '';
    display: block;
    flex: 0 0 3px;
    width: 3px;
    height: 22px;
    background: #a71919;
}
#page .gsr-category-page .gsr-category__lead-section { margin: 0 0 30px; }
/* One large story above the feed, using exactly the same Fairy card markup. */
#page .gsr-category-page .fairy-content-area.fairy-masonry.gsr-category__lead {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
}
#page .gsr-category-page .gsr-category__lead > article .card_media > a {
    aspect-ratio: 16 / 8 !important;
}
#page .gsr-category-page .gsr-category__lead > article .card_body {
    padding: 16px 19px 18px !important;
}
#page .gsr-category-page .gsr-category__lead > article .card_title {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}
#page .gsr-category-page .gsr-category__lead > article .card_title,
#page .gsr-category-page .gsr-category__lead > article .card_title a {
    font-size: clamp(23px, 2.3vw, 28px) !important;
    line-height: 1.22 !important;
}
#page .gsr-category-page .gsr-category__latest-section { margin-bottom: 4px; }
/* Inherited GSR Article Cards grid keeps equal-height two-column cards,
   the same image labels, reading time, updates, and highlights as Latest News. */
@media screen and (max-width: 1023px) {
    #page .gsr-category-page .gsr-category__header { margin-bottom: 13px; }
    #page .gsr-category-page .gsr-category__lead > article .card_title,
    #page .gsr-category-page .gsr-category__lead > article .card_title a {
        font-size: 23px !important;
    }
}
@media screen and (max-width: 767px) {
    #page .gsr-category-page .gsr-category__title { font-size: 21px !important; }
    #page .gsr-category-page .gsr-category__lead > article .card_media > a {
        aspect-ratio: 16 / 9 !important;
    }
    #page .gsr-category-page .gsr-category__lead > article .card_body {
        padding: 12px 14px 16px !important;
    }
    #page .gsr-category-page .gsr-category__lead > article .card_title,
    #page .gsr-category-page .gsr-category__lead > article .card_title a {
        font-size: 22px !important;
    }
}


/* v1.0.38 — Match slider-style inline Updated/Corrected/Clarified metadata
   on the category lead and Latest [Category] News cards.
   JS inserts the event within .entry-meta only in category section fronts;
   home listings, featured slider, Weekly Rundown and other pages are untouched.
   Allow wrapping where narrow cards cannot accommodate all three labels. */
#page .gsr-category-page .fairy-content-area.fairy-masonry > article
.card_body .entry-meta {
    align-items: center;
    column-gap: 10px;
}
#page .gsr-category-page .fairy-content-area.fairy-masonry > article
.card_body .entry-meta > .gsr-card-editorial-event {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    vertical-align: middle;
}


/* Weekly Rundown archive uses the standard category white-panel headings.
   Keep a compact empty-state message without fabricating archive cards. */
#page .gsr-weekly-archive .gsr-weekly-archive__empty {
    padding: 14px 16px;
    border: 1px solid #e2e6ea;
    background: #fff;
    color: #526270;
    font-size: 14px;
    line-height: 1.6;
}


/* v1.0.43 — Archive-only inline count + published date.
 * The title anchor now contains the complete row at render time, removing
 * reliance on JS moving separately styled Fairy elements. Apply to ALL
 * archive cards, including older issues (even without extra post classes). */
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .card_body .entry-meta,
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-card-reading-time,
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-weekly-archive-minutes,
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .card_body p.gsr-card-weekly-intro {
    display: none !important;
}
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .card_title {
    margin: 0 !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .card_title > a {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100% !important;
}
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-weekly-archive__inline {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 13px !important;
    width: auto !important;
    max-width: 100% !important;
}
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-card-weekly-stats {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-card-weekly-stories-icon {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
}
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-weekly-archive__published {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.4 !important;
}
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-weekly-archive__published i,
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-weekly-archive__published time {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #64717a !important;
    line-height: 1.4 !important;
}
/* Retain FontAwesome font for the native GSR clock icon. */
#page .gsr-weekly-archive .fairy-content-area.fairy-masonry > article .gsr-weekly-archive__published i.fa {
    font-family: FontAwesome !important;
}


/* Newsletter CTA v1 — editorial branding consistent with GSR's category panels.
   The form preview is inert until the configured provider shortcode is active. */
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter {
    margin: 29px 0 16px;
    padding: 23px 24px 22px;
    border: 1px solid #e0e6e9;
    border-radius: 2px;
    background: #fff;
    color: #15232c;
    text-align: left;
    box-shadow: 0 2px 14px rgba(21, 35, 44, .055);
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-heading {
    margin: 0 0 13px;
    padding: 0 0 0 14px;
    border-left: 3px solid #a71919;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-kicker {
    display: block;
    color: #a71919;
    font: 800 11px/1.35 Arial, Helvetica, sans-serif;
    letter-spacing: .08em;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter h2 {
    margin: 6px 0 0 !important;
    color: #15232c !important;
    font: 700 23px/1.27 Georgia, 'Times New Roman', serif !important;
    letter-spacing: -.015em;
    text-transform: none;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-description {
    margin: 0 0 18px !important;
    max-width: 585px;
    color: #425361;
    font: 400 14px/1.58 Arial, Helvetica, sans-serif !important;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-preview {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    max-width: 600px;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-preview input[type="email"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 10px 13px;
    box-sizing: border-box;
    border: 1px solid #ccd6dd;
    border-radius: 3px;
    background: #fff;
    color: #536472;
    opacity: 1;
    font: 400 14px/1.3 Arial, Helvetica, sans-serif;
    cursor: not-allowed;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-preview input[type="email"]::placeholder { color: #71808a; opacity: 1; }
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-preview button {
    flex: 0 0 auto;
    min-width: 128px;
    height: 44px;
    margin: 0;
    padding: 0 21px;
    border: 1px solid #15232c;
    border-radius: 3px;
    background: #15232c;
    color: #fff;
    opacity: .82;
    font: 700 13px/1.3 Arial, Helvetica, sans-serif;
    cursor: not-allowed;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-pending {
    margin: 10px 0 0 !important;
    color: #5b6b77;
    font: 400 12px/1.45 Arial, Helvetica, sans-serif !important;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form {
    max-width: 600px;
    margin-top: 16px;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form input[type="email"] {
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #ccd6dd;
    border-radius: 3px;
    background: #fff;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form input[type="email"]:focus-visible {
    outline: 2px solid #a71919;
    outline-offset: 2px;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form button,
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form input[type="submit"] {
    min-height: 44px;
    padding: 10px 21px;
    border: 1px solid #15232c;
    border-radius: 3px;
    background: #15232c;
    color: #fff;
    font: 700 13px/1.3 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background-color .15s ease;
}
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form button:hover,
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form input[type="submit"]:hover { background: #263e4c; }
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form button:focus-visible,
#page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form input[type="submit"]:focus-visible {
    outline: 3px solid #a71919;
    outline-offset: 2px;
}
@media (max-width: 767px) {
    #page .gsr-weekly-archive .gsr-weekly-archive__newsletter { padding: 20px 17px; margin-top: 24px; }
    #page .gsr-weekly-archive .gsr-weekly-archive__newsletter h2 { font-size: 21px !important; }
    #page .gsr-weekly-archive .gsr-weekly-archive__newsletter-preview { flex-wrap: wrap; }
    #page .gsr-weekly-archive .gsr-weekly-archive__newsletter-preview input[type="email"],
    #page .gsr-weekly-archive .gsr-weekly-archive__newsletter-preview button { flex: 1 0 100%; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    #page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form button,
    #page .gsr-weekly-archive .gsr-weekly-archive__newsletter-form input[type="submit"] { transition: none; }
}


/* 1.0.46 — Live weekly card shares existing archive card proportions,
   while representing a virtual issue rather than reusing a saved post. */
#page .gsr-weekly-archive .gsr-live-weekly-card .gsr-card-weekly-range {
    display: block !important;
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 6px 9px;
    background: rgba(21,35,44,.94);
    color: #fff;
    font: 800 13px/1.2 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    border-radius: 3px;
}
#page .gsr-weekly-archive .gsr-live-weekly-card .gsr-card-category-flags {
    display: block !important;
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
}
#page .gsr-weekly-archive .gsr-live-weekly-card .gsr-card-category-flag {
    display: inline-block !important;
    background: #a71919;
    color: #fff;
    padding: 6px 9px;
    border-radius: 3px;
    font: 800 12px/1.2 Arial, Helvetica, sans-serif;
}
#page .gsr-weekly-archive .gsr-live-weekly-card .gsr-live-weekly-card__progress {
    font: 400 12px/1.4 Arial, Helvetica, sans-serif;
    color: #64717a;
}
#page .gsr-weekly-archive .gsr-live-weekly-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #c7c7c7;
    color: #777;
    font: 800 42px/1.12 Arial, Helvetica, sans-serif;
    text-align: center;
    opacity: .8;
}
#page .gsr-weekly-archive .gsr-live-weekly-card .card_title a { text-decoration: none; }
