[x-cloak] {
    display: none !important;
}

/* ── Canvas & typography ── */
body {
    background-color: #fafafa;
}

.prose-news {
    --tw-prose-body: #0f172a;
    --tw-prose-headings: #0f172a;
    --tw-prose-lead: #1e293b;
    --tw-prose-bold: #0f172a;
    --tw-prose-quotes: #0f172a;
    color: #0f172a;
}

.prose-news p,
.prose-news li {
    color: #0f172a;
}

.prose-news .text-muted,
.prose-news .lead-muted {
    color: #334155;
}

.prose-news p {
    margin-bottom: 1.15em;
}

.prose-news h2 {
    margin-top: 1.75em;
    margin-bottom: 0.65em;
    color: #0f172a;
}

.prose-news blockquote {
    border-left: 3px solid #1e293b;
    background: #f8fafc;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 1rem 1.25rem;
    font-style: normal;
    color: #0f172a;
}

/* ── Masthead & ticker ── */
.masthead-banner {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.masthead-inner {
    padding-top: 0.75rem;
    padding-bottom: 0;
}

@media (min-width: 640px) {
    .masthead-inner {
        padding-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .masthead-inner {
        padding-top: 1.125rem;
    }
}

.masthead-lockup {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-width: 0;
    text-decoration: none;
}

@media (min-width: 640px) {
    .masthead-lockup {
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .masthead-lockup {
        gap: 0.875rem;
    }
}

.masthead-logo {
    height: clamp(3.75rem, 15vw, 6.5rem);
    width: auto;
    flex-shrink: 0;
    align-self: center;
}

.masthead-lockup__text {
    flex: 1;
    min-width: 0;
}

.masthead-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.75rem, 13.5vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 400;
    width: 100%;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .masthead-title {
        font-size: clamp(3.25rem, 11vw, 5.75rem);
        letter-spacing: -0.015em;
    }
}

@media (min-width: 1024px) {
    .masthead-title {
        letter-spacing: 0;
    }
}

.masthead-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.125rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .masthead-subline {
        margin-top: 0.1875rem;
        padding-bottom: 0.625rem;
    }
}

.masthead-domain {
    margin: 0;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: clamp(0.875rem, 3vw, 1.125rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.masthead-date {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 0.25rem;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .masthead-date {
        font-size: 0.75rem;
        padding: 0.3125rem 0.625rem;
    }
}

.masthead-rule {
    height: 1px;
    background: rgba(100, 116, 139, 0.45);
    margin: 0;
}

.masthead-slogan {
    margin: 0;
    padding: 0.5rem 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 500;
    font-style: italic;
    text-align: center;
    color: #e2e8f0;
}

@media (min-width: 640px) {
    .masthead-slogan {
        font-size: 0.875rem;
        padding: 0.5625rem 0 0.875rem;
    }
}

.ticker-strip {
    background: #334155;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-wrap {
    position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #334155, transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #334155, transparent);
}

.ticker-track {
    animation: ticker 50s linear infinite;
    width: max-content;
}

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

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

.ticker-live-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    background: #f8fafc;
    border-radius: 9999px;
}

/* ── Unified sidebar cards ── */
.sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
    .sidebar-card {
        padding: 1.5rem;
    }
}

/* ── Byline + share + Marra Mode layout ── */
.article-meta-block {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.375rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    overflow: visible;
}

.article-byline {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 0;
}

.article-share-row {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.article-meta-block .marra-mode-micro {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    overflow: visible;
}

.share-inline-row__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.share-inline-row__icons {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #475569;
    border-radius: 9999px;
    transition: color 0.15s ease, background-color 0.15s ease;
    text-decoration: none;
}

.share-icon svg {
    width: 1rem;
    height: 1rem;
}

.share-icon:hover {
    text-decoration: none;
}

.share-icon--facebook:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.08);
}

.share-icon--x:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

.share-icon--linkedin:hover {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.08);
}

.share-icon:focus-visible {
    outline: 2px solid #1e293b;
    outline-offset: 2px;
}

/* Marra Mode — compact micro-box */
.marra-mode-micro {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4375rem 0.5625rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease;
    overflow: visible;
    z-index: 0;
}

.marra-mode-micro--on {
    border-color: #1e293b;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12);
}

.marra-mode-micro__ring {
    position: absolute;
    inset: -4px;
    border: 2px solid #1e293b;
    border-radius: 0.5625rem;
    pointer-events: none;
    opacity: 0.35;
    transform: scale(1);
    animation: marra-mode-ring-pulse 2s ease-in-out infinite;
    -webkit-animation: marra-mode-ring-pulse 2s ease-in-out infinite;
    will-change: transform, opacity;
}

.marra-mode-micro--on .marra-mode-micro__ring {
    display: none;
}

.marra-mode-micro__header,
.marra-mode-micro__switcher,
.marra-info-bubble {
    position: relative;
    z-index: 1;
}

@keyframes marra-mode-ring-pulse {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.95;
        transform: scale(1.06);
    }
}

@-webkit-keyframes marra-mode-ring-pulse {
    0%,
    100% {
        opacity: 0.2;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        opacity: 0.95;
        -webkit-transform: scale(1.06);
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marra-mode-micro__ring {
        animation: none;
        -webkit-animation: none;
        opacity: 0.55;
    }
}

.marra-mode-micro__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
}

.marra-mode-micro__label {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    white-space: nowrap;
}

.marra-mode-micro__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.marra-mode-micro__info svg {
    width: 0.875rem;
    height: 0.875rem;
}

.marra-mode-micro__info:hover {
    color: #1e293b;
    background: rgba(15, 23, 42, 0.06);
}

.marra-mode-micro__info:focus-visible {
    outline: 2px solid #1e293b;
    outline-offset: 1px;
}

.marra-mode-micro__switcher {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.marra-mode-micro__switcher:focus-visible {
    outline: 2px solid #1e293b;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.marra-mode-micro__state {
    min-width: 1.625rem;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
}

.marra-mode-micro--on .marra-mode-micro__state {
    color: #0f172a;
}

.marra-mode-display-toggle__track {
    position: relative;
    display: block;
    width: 2.25rem;
    height: 1.25rem;
    background: #cbd5e1;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.marra-mode-micro--on .marra-mode-display-toggle__track {
    background: #22c55e;
}

.marra-mode-display-toggle__thumb {
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1rem;
    height: 1rem;
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.marra-mode-micro--on .marra-mode-display-toggle__thumb {
    transform: translateX(1rem);
}

/* Speech-bubble tooltip for Marra Mode info */
.marra-info-bubble {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.625rem);
    z-index: 40;
    width: min(16.5rem, calc(100vw - 2rem));
    padding: 0.75rem 0.875rem;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.marra-info-bubble::after {
    content: '';
    position: absolute;
    right: 1.125rem;
    bottom: -0.375rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.marra-info-bubble p {
    margin: 0;
}

@media (min-width: 640px) {
    .share-inline-row__label {
        font-size: 0.875rem;
    }

    .marra-mode-micro {
        padding: 0.5rem 0.625rem;
    }

    .marra-mode-micro__label {
        font-size: 0.75rem;
    }

    .marra-mode-micro__state {
        font-size: 0.6875rem;
    }

    .marra-info-bubble {
        width: 18rem;
        font-size: 0.8125rem;
    }
}

/* Legacy share pills — kept for reference, unused */
.share-bar {
    gap: 0.5rem;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.share-pill:focus-visible {
    outline: 2px solid #1e293b;
    outline-offset: 2px;
}

.share-pill--facebook:hover {
    border-color: #1877f2;
}

.share-pill--x:hover {
    border-color: #0f172a;
}

.share-pill--linkedin:hover {
    border-color: #0a66c2;
}

/* ── Marra Mode modal ── */
.marra-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.marra-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.marra-modal__card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.marra-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.375rem;
    line-height: 1;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.marra-modal__close:hover {
    color: #0f172a;
    background: #f8fafc;
}

.marra-modal__title {
    margin: 0 2rem 0.75rem 0;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.5rem;
    color: #0f172a;
}

.marra-modal__prompt {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

.marra-modal__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.marra-modal__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.marra-modal__label--active {
    color: #0f172a;
}

.marra-modal__status {
    margin: 0.875rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.marra-modal-enter {
    transition: opacity 0.22s ease;
}

.marra-modal-enter-start,
.marra-modal-leave-end {
    opacity: 0;
}

.marra-modal-enter-end,
.marra-modal-leave-start {
    opacity: 1;
}

.marra-modal-leave {
    transition: opacity 0.18s ease;
}

.marra-modal-enter-start .marra-modal__card,
.marra-modal-leave-end .marra-modal__card {
    transform: translateY(0.5rem) scale(0.98);
    opacity: 0;
}

.marra-modal-enter-end .marra-modal__card,
.marra-modal-leave-start .marra-modal__card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.marra-modal__card {
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.kev-register-switch--modal {
    width: 3rem;
    height: 1.625rem;
}

.kev-register-switch--modal .kev-register-switch__thumb {
    width: 1.25rem;
    height: 1.25rem;
}

.kev-register-switch--modal .kev-register-switch__thumb--on {
    transform: translateX(1.375rem);
}

.kev-register-switch[aria-checked="true"] {
    background: #0f172a;
    border-color: #0f172a;
}

/* ── Kev-o-Meter register switch (custom, no DaisyUI toggle artifacts) ── */
.kev-register-switch {
    position: relative;
    flex-shrink: 0;
    width: 2.75rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kev-register-switch[aria-checked="true"] {
    background: #0f172a;
    border-color: #0f172a;
}

.kev-register-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s ease;
}

.kev-register-switch__thumb--on {
    transform: translateX(1.25rem);
}

.kev-register-switch:focus-visible {
    outline: 2px solid #1e293b;
    outline-offset: 2px;
}

/* ── Inline editorial figure ── */
.inline-editorial-figure {
    margin: 2rem 0;
    padding: 0;
}

.inline-editorial-figure__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
}

.inline-editorial-figure__caption {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
    font-style: normal;
    text-align: left;
}

.inline-editorial-figure__link {
    display: block;
    text-decoration: none;
}

.inline-editorial-figure__link:hover .inline-editorial-figure__img {
    border-color: #94a3b8;
}

/* ── Local news tip CTA ── */
.local-news-cta {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.local-news-cta__title {
    margin: 0 0 0.75rem;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.375rem;
    line-height: 1.25;
    color: #0f172a;
}

.local-news-cta__text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

.local-news-cta__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: #1e293b;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.local-news-cta__link:hover {
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
}

.local-news-cta__link:focus-visible {
    outline: 2px solid #1e293b;
    outline-offset: 2px;
}

/* ── Article register blocks ── */
.article-register-block[x-cloak] {
    display: none !important;
}

/* ── Editorial note blockquote ── */
.editorial-note {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #1e293b;
    background: #ffffff;
    border-radius: 0 0.375rem 0.375rem 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.editorial-note p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #0f172a;
}

/* ── Category & meta chips ── */
.chip-breaking {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: #1e293b;
    border-radius: 0.25rem;
}

.chip-meta {
    color: #475569;
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
        flex-wrap: wrap;
        white-space: normal;
        width: 100%;
    }

    .ticker-item {
        display: block;
        padding: 0.5rem 1rem;
    }

    .kev-register-switch__thumb {
        transition: none;
    }
}
