/**
 * Theme 28 Refresh — polish layer
 * Smaller radii (via tokens), higher contrast, dual theme, comments/related/email fixes.
 */

/* ---- Theme toggle ---- */
.pcc-theme-33 .pcc-header__trail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcc-theme-33 .pcc-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: none;
    padding: 0;
}

.pcc-theme-33 .pcc-theme-toggle:hover,
.pcc-theme-33 .pcc-theme-toggle:focus-visible {
    border: 0;
    outline: 2px solid var(--pcc-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

html[data-theme="dark"] .pcc-theme-33 .pcc-theme-toggle__icon--sun {
    display: inline;
}

html[data-theme="dark"] .pcc-theme-33 .pcc-theme-toggle__icon--moon {
    display: none;
}

html[data-theme="light"] .pcc-theme-33 .pcc-theme-toggle__icon--sun {
    display: none;
}

html[data-theme="light"] .pcc-theme-33 .pcc-theme-toggle__icon--moon {
    display: inline;
}

/* ---- Contact / content email obfuscation images (dark glyphs → white on dark) ---- */
html[data-theme="dark"] .pcc-theme-33 .entry-content img[src^="data:image"],
html[data-theme="dark"] .pcc-theme-33 .wp-block-paragraph img[src^="data:image"],
html[data-theme="dark"] .pcc-theme-33 .entry-content a img[src^="data:image"] {
    filter: invert(1) brightness(1.15);
    mix-blend-mode: normal;
}

html[data-theme="light"] .pcc-theme-33 .entry-content img[src^="data:image"],
html[data-theme="light"] .pcc-theme-33 .wp-block-paragraph img[src^="data:image"],
html[data-theme="light"] .pcc-theme-33 .entry-content a img[src^="data:image"] {
    filter: none;
}

.pcc-theme-33 .entry-content a[href^="mailto:"],
.pcc-theme-33 .entry-content a[href*="mailto:"] {
    color: var(--pcc-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 650;
}

.pcc-theme-33 .entry-content a[href^="mailto:"]:hover,
.pcc-theme-33 .entry-content a[href*="mailto:"]:hover {
    color: var(--pcc-accent);
}

/* ---- Comments: flat panels, readable contrast ---- */
.pcc-theme-33 .pcc-comments,
.pcc-theme-33 #comments.pcc-comments {
    background: var(--pcc-bg-article-panel);
    border: 0;
    border-radius: var(--pcc-radius-lg);
    box-shadow: none;
    padding: 22px;
}

.pcc-theme-33 .pcc-comments__head {
    border-bottom: 0;
    padding-bottom: 0;
}

.pcc-theme-33 .pcc-comments__eyebrow {
    letter-spacing: 0.08em;
}

.pcc-theme-33 .pcc-comments__intro,
.pcc-theme-33 .comment-content,
.pcc-theme-33 .comment-meta,
.pcc-theme-33 .comment-author .says {
    color: var(--pcc-muted);
}

.pcc-theme-33 .comment-content {
    color: var(--pcc-text-2);
}

.pcc-theme-33 .comment-list .comment-body {
    background: var(--pcc-surface);
    border: 0;
    border-radius: var(--pcc-radius-md);
    box-shadow: none;
    padding: 16px 16px 16px 64px;
}

.pcc-theme-33 .comment-list .comment-body:hover {
    border-color: transparent;
}

.pcc-theme-33 .children .comment-body {
    background: var(--pcc-bg-soft);
}

.pcc-theme-33 .children::before {
    background: var(--pcc-accent-a45);
    border-radius: 0;
    width: 2px;
}

.pcc-theme-33 .comment-reply-link {
    background: var(--pcc-accent-a10);
    color: var(--pcc-text-2);
    border-radius: var(--pcc-radius-sm);
    text-transform: none;
    letter-spacing: 0.02em;
}

.pcc-theme-33 .comment-reply-link:hover,
.pcc-theme-33 .comment-reply-link:focus-visible {
    color: #fff;
    background: var(--pcc-accent);
}

.pcc-theme-33 .bypostauthor > .comment-body {
    border: 0;
    box-shadow: inset 3px 0 0 var(--pcc-accent);
}

.pcc-theme-33 .comment-respond {
    background: var(--pcc-bg-soft);
    border: 0;
    border-radius: var(--pcc-radius-lg);
    box-shadow: none;
}

.pcc-theme-33 .comment-form input[type="text"],
.pcc-theme-33 .comment-form input[type="email"],
.pcc-theme-33 .comment-form input[type="url"],
.pcc-theme-33 .comment-form textarea,
.pcc-theme-33 .comment-form input,
.pcc-theme-33 .comment-form textarea {
    background: var(--pcc-surface);
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius-sm);
    color: var(--pcc-text);
}

.pcc-theme-33 .comment-form input:focus,
.pcc-theme-33 .comment-form textarea:focus,
.pcc-theme-33 .comment-form input[type="text"]:focus,
.pcc-theme-33 .comment-form input[type="email"]:focus,
.pcc-theme-33 .comment-form textarea:focus {
    border-color: var(--pcc-accent);
    box-shadow: 0 0 0 2px var(--pcc-accent-a22);
    outline: none;
}

.pcc-theme-33 .pcc-comments__submit,
.pcc-theme-33 .comment-form .submit {
    background: var(--pcc-accent-solid);
    color: var(--pcc-accent-on-solid);
    border: 0;
    border-radius: var(--pcc-radius-sm);
    font-weight: 700;
}

.pcc-theme-33 .pcc-comments__submit:hover,
.pcc-theme-33 .comment-form .submit:hover {
    background: var(--pcc-accent-solid-hover);
}

/* Contact form inputs (same radius/contrast language) */
.pcc-theme-33 .entry-content input[type="text"],
.pcc-theme-33 .entry-content input[type="email"],
.pcc-theme-33 .entry-content input[type="url"],
.pcc-theme-33 .entry-content select,
.pcc-theme-33 .entry-content textarea {
    border-radius: var(--pcc-radius-sm);
    background: var(--pcc-surface);
    border: 1px solid var(--pcc-border);
    color: var(--pcc-text);
}

/* ---- Related news (plugin more-stories + inline related-story) ---- */
.pcc-theme-33 .pcc-related-more {
    background: var(--pcc-bg-article-panel);
    border: 0;
    border-radius: var(--pcc-radius-lg);
    padding: 1.15rem;
    box-shadow: none;
}

.pcc-theme-33 .pcc-related-more__heading {
    color: var(--pcc-text);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
}

.pcc-theme-33 .pcc-related-more__link {
    background: var(--pcc-surface);
    border: 0;
    border-radius: var(--pcc-radius-md);
    color: var(--pcc-text);
    transition: background-color 0.15s ease;
}

.pcc-theme-33 .pcc-related-more__link:hover,
.pcc-theme-33 .pcc-related-more__link:focus-visible {
    border-color: transparent;
    background: var(--pcc-bg-soft);
    transform: none;
}

.pcc-theme-33 .pcc-related-more__title {
    color: var(--pcc-text);
    font-weight: 700;
}

.pcc-theme-33 .pcc-related-more__link:hover .pcc-related-more__title {
    color: var(--pcc-accent);
}

.pcc-theme-33 .pcc-related-more__thumb {
    border-radius: var(--pcc-radius-sm);
}

.pcc-theme-33 .pcc-related-story,
.pcc-theme-33 .pcc-latest-band--single .pcc-related-story,
.pcc-theme-33 .pcc-latest-band--single .entry-content .pcc-related-story {
    background: var(--pcc-accent-solid);
    border: 0;
    border-radius: var(--pcc-radius-lg);
    box-shadow: none;
}

.pcc-theme-33 .pcc-related-story:hover,
.pcc-theme-33 .pcc-latest-band--single .entry-content .pcc-related-story:hover {
    border-color: transparent;
    background: var(--pcc-accent-solid-hover);
}

.pcc-theme-33 .pcc-related-story__link,
.pcc-theme-33 .entry-content a.pcc-related-story__link,
.pcc-theme-33 .entry-content a.pcc-related-story__link:hover,
.pcc-theme-33 .entry-content a.pcc-related-story__link:focus,
.pcc-theme-33 .entry-content a.pcc-related-story__link:focus-visible {
    color: #fff;
    text-decoration: none;
}

.pcc-theme-33 .pcc-related-story__label {
    color: rgba(255, 255, 255, 0.88);
}

.pcc-theme-33 .pcc-related-story__title,
.pcc-theme-33 .pcc-related-story:hover .pcc-related-story__title {
    color: #fff;
    text-decoration: none;
}

.pcc-theme-33 .pcc-related-story__media {
    border-radius: var(--pcc-radius-sm);
}

/* ---- Light mode: content text must track --pcc-text (chrome stays white) ---- */
html[data-theme="light"] .pcc-theme-33 .pcc-sidebar-card__title,
html[data-theme="light"] .pcc-theme-33 .pcc-trending__title a,
html[data-theme="light"] .pcc-theme-33 .comment-form input,
html[data-theme="light"] .pcc-theme-33 .comment-form textarea,
html[data-theme="light"] .pcc-theme-33 .pcc-related-more__heading,
html[data-theme="light"] .pcc-theme-33 .pcc-section-title,
html[data-theme="light"] .pcc-theme-33 .pcc-lead__title,
html[data-theme="light"] .pcc-theme-33 .pcc-grid-card__title,
html[data-theme="light"] .pcc-theme-33 .pcc-spot-card__title,
html[data-theme="light"] .pcc-theme-33 .pcc-feed-feature__title,
html[data-theme="light"] .pcc-theme-33 .pcc-feed-row__title,
html[data-theme="light"] .pcc-theme-33 .pcc-feed-card__title a,
html[data-theme="light"] .pcc-theme-33 .pcc-team-strip-card__name,
html[data-theme="light"] .pcc-theme-33 .pcc-card__title,
html[data-theme="light"] .pcc-theme-33 .pcc-single__title,
html[data-theme="light"] .pcc-theme-33 .entry-title,
html[data-theme="light"] .pcc-theme-33 .pcc-related-more__title,
html[data-theme="light"] .pcc-theme-33 .pcc-pill-filter:not(.is-active),
html[data-theme="light"] .pcc-theme-33 .pcc-pill-filter:not(.is-active):hover,
html[data-theme="light"] .pcc-theme-33 .entry-content .wp-block-pullquote,
html[data-theme="light"] .pcc-theme-33 .entry-content .wp-block-pullquote blockquote,
html[data-theme="light"] .pcc-theme-33 .entry-content .wp-block-table th,
html[data-theme="light"] .pcc-theme-33 .entry-content table th {
    color: var(--pcc-text);
}

/* Latest News: dark panel on light page for contrast */
html[data-theme="light"] .pcc-theme-33 .pcc-latest-news {
    background: #12151c;
    color: #f7f8fb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(15, 17, 21, 0.14);
}

html[data-theme="light"] .pcc-theme-33 .pcc-latest-news__title,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-news .pcc-rank-row__num,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-news .pcc-rank-row__title a {
    color: #f7f8fb;
}

html[data-theme="light"] .pcc-theme-33 .pcc-latest-news .pcc-rank-row__title a:hover {
    color: var(--pcc-accent);
}

html[data-theme="light"] .pcc-theme-33 .pcc-latest-news__follow {
    border-color: rgba(255, 255, 255, 0.22);
    color: #f7f8fb;
}

html[data-theme="light"] .pcc-theme-33 .pcc-latest-news__follow:hover {
    background: var(--pcc-accent-solid);
    border-color: var(--pcc-accent-solid);
    color: var(--pcc-accent-on-solid);
}

html[data-theme="light"] .pcc-theme-33 .pcc-latest-news .pcc-rank-item::after {
    background: var(--pcc-accent);
}

html[data-theme="light"] .pcc-theme-33 .pcc-team-strip-card__role,
html[data-theme="light"] .pcc-theme-33 .pcc-meta,
html[data-theme="light"] .pcc-theme-33 .pcc-muted {
    color: var(--pcc-muted);
}

/* Popular tags strip: chrome band + red label (Spotlight keeps the full-bleed red) */
.pcc-theme-33 .pcc-signals {
    background: var(--pcc-chrome-bg);
    border-bottom: 1px solid var(--pcc-chrome-line);
    color: var(--pcc-hero-text);
}

.pcc-theme-33 .pcc-signals::after {
    display: block;
    opacity: 0.55;
}

.pcc-theme-33 .pcc-signals__label {
    color: var(--pcc-accent-bright);
}

.pcc-theme-33 .pcc-signals__link {
    color: var(--pcc-hero-text);
}

.pcc-theme-33 .pcc-signals__link:hover {
    color: var(--pcc-accent-bright);
    text-decoration: underline;
}

/* Spotlight section title sits on accent red — keep white */
html[data-theme="light"] .pcc-theme-33 .pcc-spotlight__title {
    color: #fff;
}

/* Team strip band uses bg-alt in light; cards use surface */
html[data-theme="light"] .pcc-theme-33 .pcc-team-strip .pcc-spotlight__inner {
    background: var(--pcc-bg-alt);
}

html[data-theme="light"] .pcc-theme-33 .pcc-team-strip-card__avatar {
    border-color: var(--pcc-border);
}

/* Light mode: flat white sidebar / comments / related panels */
html[data-theme="light"] .pcc-theme-33 .pcc-sidebar-card,
html[data-theme="light"] .pcc-theme-33 .pcc-sidebar-card--ad,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-sidebar-card,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-sidebar-card--ad,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-sidebar-card--ad.pcc-ad-region--placeholder,
html[data-theme="light"] .pcc-theme-33 .pcc-comments,
html[data-theme="light"] .pcc-theme-33 #comments.pcc-comments,
html[data-theme="light"] .pcc-theme-33 .comment-respond,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .comment-respond,
html[data-theme="light"] .pcc-theme-33 .comment-list .comment-body,
html[data-theme="light"] .pcc-theme-33 .children .comment-body,
html[data-theme="light"] .pcc-theme-33 .pcc-related-more,
html[data-theme="light"] .pcc-theme-33 .pcc-related-more__link,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-related-more__link,
html[data-theme="light"] .pcc-theme-33 .pcc-google-sources__inner,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-google-sources__inner {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .pcc-theme-33 .pcc-google-sources__inner:hover,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-google-sources__inner:hover {
    background: #f7f8fb !important;
}

html[data-theme="light"] .pcc-theme-33 .pcc-google-sources__mark,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-google-sources__mark {
    background: #f3f4f7;
    border: 0;
    box-shadow: none;
}

html[data-theme="light"] .pcc-theme-33 .pcc-related-more__link:hover,
html[data-theme="light"] .pcc-theme-33 .pcc-related-more__link:focus-visible,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-related-more__link:hover {
    background: #f7f8fb !important;
}

/* Related story callout: AA solid red both themes */
html[data-theme="light"] .pcc-theme-33 .pcc-related-story,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .pcc-related-story,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .entry-content .pcc-related-story {
    background: var(--pcc-accent-solid) !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .pcc-theme-33 .pcc-related-story:hover,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .entry-content .pcc-related-story:hover {
    background: var(--pcc-accent-solid-hover) !important;
}

html[data-theme="light"] .pcc-theme-33 .pcc-related-story__title,
html[data-theme="light"] .pcc-theme-33 .pcc-related-story:hover .pcc-related-story__title,
html[data-theme="light"] .pcc-theme-33 .pcc-related-story__label,
html[data-theme="light"] .pcc-theme-33 .pcc-related-story__link {
    color: #fff;
    text-decoration: none;
}

html[data-theme="light"] .pcc-theme-33 .comment-form input[type="text"],
html[data-theme="light"] .pcc-theme-33 .comment-form input[type="email"],
html[data-theme="light"] .pcc-theme-33 .comment-form input[type="url"],
html[data-theme="light"] .pcc-theme-33 .comment-form input,
html[data-theme="light"] .pcc-theme-33 .comment-form textarea,
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .comment-form input[type="text"],
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .comment-form input[type="email"],
html[data-theme="light"] .pcc-theme-33 .pcc-latest-band--single .comment-form textarea {
    background: #fff;
}

/* Cards / panels inherit higher-contrast surfaces from tokens */
.pcc-theme-33 .pcc-lead,
.pcc-theme-33 .pcc-hot-card,
.pcc-theme-33 .pcc-spot-card,
.pcc-theme-33 .pcc-latest-news,
.pcc-theme-33 .pcc-sidebar-card {
    border-radius: var(--pcc-radius-lg);
}

.pcc-theme-33 body.pcc-body {
    background: var(--pcc-bg);
    color: var(--pcc-text);
}

.pcc-theme-33 .pcc-muted,
.pcc-theme-33 .pcc-meta {
    color: var(--pcc-muted);
}

/* ---- Mobile: balanced header (menu | logo | theme) ---- */
@media (max-width: 1023px) {
    .pcc-theme-33 .pcc-header__inner {
        grid-template-columns: 40px 1fr 40px;
        gap: 0;
        padding-block: 10px;
    }

    .pcc-theme-33 .pcc-header__lead,
    .pcc-theme-33 .pcc-header__trail {
        width: 40px;
        min-width: 40px;
        justify-content: center;
        gap: 0;
    }

    .pcc-theme-33 .pcc-actions--lead {
        margin-left: 0;
    }

    .pcc-theme-33 .pcc-brand--mobile {
        display: flex;
        position: static;
        transform: none;
        justify-content: center;
        align-items: center;
        grid-column: 2;
    }

    .pcc-theme-33 .pcc-header__lead {
        grid-column: 1;
    }

    .pcc-theme-33 .pcc-header__trail {
        justify-self: end;
        grid-column: 3;
    }

    .pcc-theme-33 .pcc-theme-toggle {
        width: 40px;
        height: 40px;
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 700px) {
    .pcc-theme-33 .pcc-header__trail > .pcc-header-search {
        display: none;
    }
}

/* Hot slideshow: mobile only */
.pcc-theme-33 .pcc-hot-slideshow {
    display: none;
}

@media (max-width: 960px) {
    .pcc-theme-33 .pcc-hot-desktop {
        display: none;
    }

    .pcc-theme-33 .pcc-hot-slideshow {
        display: block;
        position: relative;
    }

    .pcc-theme-33 .pcc-hot-slideshow__viewport {
        position: relative;
        overflow: hidden;
        border-radius: var(--pcc-radius-lg);
        background: var(--pcc-surface);
    }

    .pcc-theme-33 .pcc-hot-slide {
        display: none;
        margin: 0;
    }

    .pcc-theme-33 .pcc-hot-slide.is-active {
        display: block;
        animation: pcc-hot-fade 0.45s ease;
    }

    .pcc-theme-33 .pcc-hot-slide .pcc-lead__link {
        border-radius: var(--pcc-radius-lg);
    }

    .pcc-theme-33 .pcc-hot-slideshow__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .pcc-theme-33 .pcc-hot-slideshow__dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.28);
        cursor: pointer;
    }

    html[data-theme="light"] .pcc-theme-33 .pcc-hot-slideshow__dot {
        background: rgba(15, 17, 21, 0.22);
    }

    .pcc-theme-33 .pcc-hot-slideshow__dot.is-active {
        background: var(--pcc-accent);
    }

    /* Latest News: thumb + title, no rank numbers */
    .pcc-theme-33 .pcc-latest-news .pcc-rank-row {
        grid-template-columns: 72px 1fr;
        gap: 12px;
    }

    .pcc-theme-33 .pcc-latest-news .pcc-rank-row__num {
        display: none;
    }

    .pcc-theme-33 .pcc-latest-news .pcc-rank-row__thumb {
        width: 72px;
        height: 72px;
    }

    .pcc-theme-33 .pcc-latest-news .pcc-rank-row__title {
        font-size: 15px;
    }
}

@keyframes pcc-hot-fade {
    from {
        opacity: 0.35;
    }
    to {
        opacity: 1;
    }
}

/* Spotlight + Team: full-bleed scroll on mobile */
@media (max-width: 720px) {
    .pcc-theme-33 .pcc-spotlight > .pcc-container {
        max-width: none;
        width: 100%;
        padding-inline: 0;
    }

    .pcc-theme-33 .pcc-spotlight__inner {
        border-radius: 0;
        padding: 16px 0 14px;
    }

    .pcc-theme-33 .pcc-spotlight__title {
        padding-inline: var(--pcc-pad);
        margin-bottom: 12px;
    }

    .pcc-theme-33 .pcc-spotlight__viewport {
        padding-inline: 0;
    }

    .pcc-theme-33 .pcc-spotlight__track {
        gap: 12px;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--pcc-pad);
        overscroll-behavior-x: contain;
        cursor: grab;
        user-select: none;
    }

    /* Flex spacers keep first/last cards inset from the screen edge */
    .pcc-theme-33 .pcc-spotlight__track::before,
    .pcc-theme-33 .pcc-spotlight__track::after {
        content: "";
        flex: 0 0 var(--pcc-pad);
        width: var(--pcc-pad);
        min-width: var(--pcc-pad);
        height: 1px;
        pointer-events: none;
    }

    .pcc-theme-33 .pcc-spotlight__track::after {
        flex-basis: calc(var(--pcc-pad) + 36px);
        min-width: calc(var(--pcc-pad) + 36px);
    }

    .pcc-theme-33 .pcc-spotlight__track.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
    }

    .pcc-theme-33 .pcc-spotlight__track.is-dragging a {
        pointer-events: none;
    }

    .pcc-theme-33 .pcc-spot-card {
        flex: 0 0 78vw;
        min-width: 0;
        max-width: 320px;
    }

    .pcc-theme-33 .pcc-team-strip-card {
        flex: 0 0 42vw;
        min-width: 140px;
    }

    .pcc-theme-33 .pcc-spotlight__next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pcc-theme-33 body,
    .pcc-theme-33 * {
        transition: none !important;
    }

    .pcc-theme-33 .pcc-hot-slide.is-active {
        animation: none;
    }
}
