/*********************************************************************************************

Modern Color Style — a soft, card-based news design for Tribune.

Palette:    tinted canvas with white elevated cards, softly rounded corners and shadows,
            a vivid blue accent and soft-tinted accent chips. Where Editorial is flat and
            typographic, Modern is layered and UI-like.
            body.mode-dark (header switch / "Default Color Scheme" option) inverts the
            palette; every color below is a token so both schemes stay in sync.
Typography: 'Plus Jakarta Sans' throughout — heavy, tightly tracked headings, comfortable
            500-weight body copy. Loaded through the framework's shared Google Fonts
            request (see tribune_style_fonts() in functions/functions.php), so fonts picked
            in Customizer > Typography still win.

Loaded after style.css and css/media-queries.css (WPZOOM::theme_styles, priority 20), so
equal-specificity rules here win. Rules prefixed with .theme-style-modern (body class) are
there only where extra specificity is needed to out-rank a stock rule.

*********************************************************************************************

0.  Color Scheme Tokens
1.  Global
2.  Wider Canvas
3.  Header & Masthead
4.  Navigation
5.  News Ticker
6.  Featured Area
7.  Featured Categories
8.  Section Titles
9.  Archive Posts
10. Single Posts
11. Comments
12. Sidebar & Widgets
13. Pagination
14. Footer
15. Color Scheme Toggle
16. Responsive
17. Block Style: Categories / Tags as buttons
18. Block Style: Group as a surface
19. Block Style: Button as a link
20. Social Icons Widget
21. Query Loop Block Links

*********************************************************************************************/


/* 0. Color Scheme Tokens
   Light is the default. body.mode-dark is set before paint by the boot script in
   functions/functions.php, so there is no flash of the wrong scheme.
============================================================================================*/

body.theme-style-modern {
    --tb-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --tb-bg: #f5f6f9;
    --tb-card: #fff;
    --tb-card-soft: #f1f3f7;
    --tb-fg: #0f172a;
    --tb-text: #4a5567;
    --tb-muted: #6b7688;
    --tb-faint: #94a0b2;
    --tb-border: #e6e9ef;
    --tb-border-soft: #f0f2f6;
    --tb-accent: #2563eb;
    --tb-accent-hover: #1d4ed8;
    --tb-accent-soft: rgba(37, 99, 235, 0.1);
    --tb-accent-on: #fff;
    --tb-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px -14px rgba(15, 23, 42, 0.16);
    --tb-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.07), 0 20px 38px -16px rgba(15, 23, 42, 0.24);
    --tb-radius: 8px;
    --tb-radius-sm: 6px;
    --tb-pill: 999px;
    --tb-nav-glass: rgba(255, 255, 255, 0.88);
}

body.theme-style-modern.mode-dark {
    --tb-bg: #0b1120;
    --tb-card: #141d2f;
    --tb-card-soft: #1b2437;
    --tb-fg: #f8fafc;
    --tb-text: #a4aec0;
    --tb-muted: #8c98ab;
    --tb-faint: #6d7a8d;
    --tb-border: rgba(255, 255, 255, 0.09);
    --tb-border-soft: rgba(255, 255, 255, 0.05);
    --tb-accent: #60a5fa;
    --tb-accent-hover: #93c5fd;
    --tb-accent-soft: rgba(96, 165, 250, 0.16);
    --tb-accent-on: #0b1120;
    --tb-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -14px rgba(0, 0, 0, 0.7);
    --tb-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 20px 38px -16px rgba(0, 0, 0, 0.85);
    --tb-nav-glass: rgba(11, 17, 32, 0.85);
}


/* 1. Global
============================================================================================*/

body {
    background: var(--tb-bg);
    color: var(--tb-text);
    font-family: var(--tb-font);
    font-size: 16px;
    line-height: 1.65;
}

::selection {
    background: var(--tb-accent);
    color: #fff;
}

a {
    color: var(--tb-accent);
}

a:hover {
    color: var(--tb-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-weight: 800;
    letter-spacing: -0.025em;
}

hr,
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
    border: 0;
    border-top: 1px solid var(--tb-border);
}

/* Rounded artwork — deliberately not a bare `img` rule, which would also round
   16px wp-smiley emoji and the site logo. */
.post-thumb img,
.widget img,
.entry-content img:not(.wp-smiley),
.carousel-slider .post-thumb img {
    border-radius: var(--tb-radius-sm);
}

/* Category chips */
.cat-links a {
    background: var(--tb-accent-soft);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent);
    display: inline-block;
    font-family: var(--tb-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.6;
    margin: 0 4px 4px 0;
    padding: 3px 12px;
    text-transform: uppercase;
}

.cat-links a:hover {
    background: var(--tb-accent);
    color: var(--tb-accent-on);
}

.entry-meta,
.featured-meta,
.post-meta {
    color: var(--tb-muted);
    font-family: var(--tb-font);
    font-size: 13px;
}

.entry-meta a,
.featured-meta a,
.post-meta a {
    color: var(--tb-text);
    font-weight: 600;
}

.entry-meta a:hover,
.featured-meta a:hover,
.post-meta a:hover {
    color: var(--tb-accent);
}

.entry-meta span + span:before {
    color: var(--tb-faint);
    opacity: 1;
}

.separator,
.post-meta .separator {
    color: var(--tb-faint);
}

/* --- Forms --- */

label {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 13px;
    font-weight: 600;
}

/* body-prefixed so these also out-rank plugin/block form styles (WPZOOM Forms,
   Jetpack subscriptions) that load after this stylesheet */
body.theme-style-modern input[type="text"],
body.theme-style-modern input[type="email"],
body.theme-style-modern input[type="url"],
body.theme-style-modern input[type="tel"],
body.theme-style-modern input[type="number"],
body.theme-style-modern input[type="password"],
body.theme-style-modern input[type="search"],
body.theme-style-modern input[type="date"],
body.theme-style-modern textarea,
body.theme-style-modern select {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 15px;
}

body.theme-style-modern input[type="text"],
body.theme-style-modern input[type="email"],
body.theme-style-modern input[type="url"],
body.theme-style-modern input[type="tel"],
body.theme-style-modern input[type="number"],
body.theme-style-modern input[type="password"],
body.theme-style-modern input[type="search"],
body.theme-style-modern input[type="date"],
body.theme-style-modern select {
    height: 46px;
    padding: 0 16px;
    vertical-align: middle;
}

body.theme-style-modern textarea {
    padding: 14px 16px;
}

body.theme-style-modern input:focus,
body.theme-style-modern textarea:focus,
body.theme-style-modern select:focus {
    border-color: var(--tb-accent);
    box-shadow: 0 0 0 3px var(--tb-accent-soft);
    outline: none;
}

body.theme-style-modern select option {
    background: var(--tb-card);
    color: var(--tb-fg);
}

body.theme-style-modern ::placeholder {
    color: var(--tb-faint);
    opacity: 1;
}

/* Buttons */
button,
input[type=button],
input[type=reset],
input[type=submit],
.wp-block-search__button {
    background: var(--tb-accent);
    border: 0;
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent-on);
    font-family: var(--tb-font);
    font-size: 14px;
    font-weight: 600;
    height: 46px;
    letter-spacing: 0;
    padding: 0 26px;
    vertical-align: middle;
}

button:hover,
input[type=button]:hover,
input[type=reset]:hover,
input[type=submit]:hover,
.wp-block-search__button:hover {
    background: var(--tb-accent-hover);
    color: var(--tb-accent-on);
}

/* Soft-tinted secondary button */
.readmore_button a,
.more-link,
.more_link {
    background: var(--tb-accent-soft);
    border: 0;
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 24px;
}

.readmore_button a:after {
    display: none;
}

.readmore_button a:hover,
.more-link:hover,
.more_link:hover {
    background: var(--tb-accent);
    color: var(--tb-accent-on);
}

.infinite-scroll #infinite-handle span {
    background: var(--tb-accent);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent-on);
    font-family: var(--tb-font);
    font-size: 15px;
    text-transform: none;
}

.infinite-scroll #infinite-handle span:hover {
    background: var(--tb-accent-hover);
}

/* --- Tables, code --- */

table th {
    background: var(--tb-card-soft);
    border-bottom: 1px solid var(--tb-border);
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 13px;
    font-weight: 700;
}

table td,
table tr {
    border-color: var(--tb-border-soft);
}

code {
    background: var(--tb-card-soft);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent);
}

pre {
    background: var(--tb-card-soft);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-text);
}


/* 2. Wider Canvas
   Desktop only — at 1350px and below the stock percentage rules take over untouched.
============================================================================================*/

.page-wrap {
    background: transparent;
    border-left: 0;
    border-right: 0;
}

@media screen and (min-width: 1351px) {

    .theme-style-modern .page-wrap {
        max-width: 1400px;
        padding: 0 40px;
    }

    .theme-style-modern #footer {
        max-width: 1320px;
    }

    .theme-style-modern #main {
        width: calc(100% - 380px);
    }

    /* Full-width layouts render no sidebar, so they must not reserve its 380px.
       Stock's .full-width #main / #main.full-width (style.css:1874, 1877) tie with the
       rule above on specificity and lose on source order, so restate them here.
       single.php wraps #main in .full-width; the Full Width page template puts the
       class on #main itself. */
    .theme-style-modern .full-width #main,
    .theme-style-modern #main.full-width {
        width: 100%;
    }

    /* Match the widened canvas: .page-wrap is 1400px with 40px padding, so the content
       box is 1320px. Without this, block-constrained content stays at stock's 1240px
       (style.css:411) and stops short of the full-width container. */
    .theme-style-modern.page-template-full-width,
    .theme-style-modern.page-template-page-templatesfull-width-php,
    .theme-style-modern.page-template-full-width-no-title,
    .theme-style-modern.page-template-page-templatesfull-width-no-title-php {
        --wp--style--global--content-size: 1320px;
    }

    .theme-style-modern #sidebar {
        width: 340px;
        max-width: 340px;
    }
}


/* 3. Header & Masthead
============================================================================================*/

#header #header-inner {
    padding: 44px 0 36px;
}

.navbar-brand h1 {
    font-family: var(--tb-font);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: none;
}

.navbar-brand a {
    color: var(--tb-fg);
}

.navbar-brand a:hover {
    color: var(--tb-accent);
}

.navbar-brand .tagline {
    color: var(--tb-muted);
    font-family: var(--tb-font);
    font-size: 15px;
    margin-top: 12px;
}

.navbar-brand .header_date {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-muted);
    display: inline-block;
    font-family: var(--tb-font);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    margin-top: 14px;
    padding: 5px 16px;
}

#head_banner {
    margin-top: 0;
}

/* 4. Navigation
============================================================================================*/

.top-navbar {
    border-bottom: 1px solid var(--tb-border);
    padding: 10px 0;
}

.top-navbar .navbar-nav a,
.top-navbar a {
    color: var(--tb-muted);
    font-family: var(--tb-font);
    font-size: 13px;
    font-weight: 500;
}

.top-navbar .navbar-nav a:hover,
.top-navbar a:hover {
    color: var(--tb-accent);
}

/* The navy bar becomes a floating white card */
.main-navbar {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    margin-bottom: 40px;
    padding: 7px 18px;
}

.navbar-nav {
    font-family: var(--tb-font);
}

.main-navbar .sf-menu > li {
    padding: 0 2px;
}

.main-navbar .navbar-nav a {
    color: var(--tb-text);
    font-family: var(--tb-font);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    text-transform: none;
}

.main-navbar .navbar-nav a:hover {
    background: transparent;
    color: var(--tb-accent);
}

/* Current page: color and weight only — no fill, so menu items stay links rather than
   reading as buttons. border-bottom clears the stock translucent-white underline. */
.main-navbar .current-menu-item > a,
.main-navbar .current_page_item > a,
.main-navbar .current-menu-parent > a,
.main-navbar .current_page_parent > a {
    background: transparent;
    border-bottom: 0;
    color: var(--tb-accent);
    font-weight: 700;
}

.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a,
.navbar-nav .current-menu-parent > a {
    color: var(--tb-accent);
}

/* Dropdowns */
/* Stock style.css centers this panel's text and positions it with left:50%/
   transform:translate(-50%,0) — reset both so the dropdown reads as a left-aligned
   list instead of a centered block. */
.navbar-nav ul {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    box-shadow: var(--tb-shadow);
    padding: 8px;
    text-align: left;
}

.navbar-nav > li > ul:before,
.navbar-nav > li > ul:after {
    display: none;
}

.navbar-nav ul a,
.main-navbar .navbar-nav ul a {
    color: var(--tb-text);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    text-transform: none;
}

.navbar-nav ul a:hover,
.main-navbar .navbar-nav ul a:hover {
    background: transparent;
    color: var(--tb-accent);
}

/* Superfish arrows */
.sf-arrows .sf-with-ul:after,
.main-navbar .sf-arrows .sf-with-ul:after {
    border-top-color: currentColor;
    opacity: 0.5;
}

/* Mobile toggle */
.navbar-toggle {
    margin: 8px 0;
}

.navbar-toggle .icon-bar,
.top-navbar .navbar-toggle .icon-bar {
    background: var(--tb-fg);
    border-radius: 2px;
    height: 2px;
    width: 22px;
}

.navbar-toggle:hover .icon-bar,
.top-navbar .navbar-toggle:hover .icon-bar {
    background: var(--tb-accent);
}

.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 5px;
}

.navbar-toggle .toggle-text {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* Off-canvas menu */
.mm-menu.mm-theme-dark {
    background: var(--tb-card);
    color: var(--tb-text);
}

.mm-menu.mm-theme-dark .mm-listview > li:after {
    border-color: var(--tb-border-soft);
}

.mm-menu.mm-theme-dark .mm-listview > li > a.mm-prev,
.mm-menu.mm-theme-dark .mm-listview > li > a.mm-next {
    color: var(--tb-muted);
}

.mm-menu.mm-theme-dark .mm-listview > li > a.mm-prev:before,
.mm-menu.mm-theme-dark .mm-listview > li > a.mm-next:after {
    border-color: var(--tb-muted);
}

.mm-menu.mm-theme-dark .mm-listview > li.mm-selected > a:not(.mm-next),
.mm-menu.mm-theme-dark .mm-listview > li.mm-selected > span {
    background: var(--tb-accent-soft);
}

.mm-listview a {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* Search box in the main bar — the icon no longer sits on a navy field */
.sb-search {
    margin-top: 0;
}

.sb-search .sb-icon-search {
    border-radius: var(--tb-radius-sm);
    color: var(--tb-fg);
}

.sb-search .sb-icon-search:hover,
.sb-search.sb-search-open .sb-icon-search {
    background: transparent;
    color: var(--tb-accent);
}

body.theme-style-modern .sb-search .sb-search-input {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-fg);
    height: 40px;
    padding: 0 55px 0 18px;
}

.sb-search .sb-search-submit {
    background: transparent;
    border: 0;
    color: var(--tb-fg);
    height: 40px;
    padding: 0;
}


/* Fixed main navbar on scroll — .tb-nav-fixed is toggled by an inline script
   (see tribune_scripts in functions/functions.php), desktop only. The pill squares off
   and spans the viewport once it detaches from the page container. */
.tb-nav-fixed .main-navbar {
    animation: tb-nav-slide-down 0.25s ease;
    background: var(--tb-nav-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.4);
    left: 0;
    margin-bottom: 0;
    padding: 7px 30px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 990;
}

body.admin-bar.tb-nav-fixed .main-navbar {
    top: 32px;
}

@keyframes tb-nav-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}


/* 5. News Ticker
============================================================================================*/

#news-ticker {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    -webkit-box-shadow: var(--tb-shadow);
    box-shadow: var(--tb-shadow);
    margin: 0 0 40px;
    padding: 14px 20px;
}

#news-ticker dt {
    background: var(--tb-accent-soft);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent);
    font-family: var(--tb-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 12px 0 0;
    padding: 4px 12px;
    text-transform: uppercase;
}

#news-ticker dd a {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 15px;
    font-weight: 600;
}

#news-ticker dd a:hover {
    color: var(--tb-accent);
}


/* 6. Featured Area
============================================================================================*/

#featured {
    margin: 0 0 50px;
}

#slider {
    border-right: 0;
}

#slider #slidemain .post-thumb,
#slider #slidemain .slide_content {
    text-align: left;
}

#slider #slidemain .post-thumb a {
    border-radius: var(--tb-radius);
    display: block;
    overflow: hidden;
}

#slider #slidemain .post-thumb img {
    border-radius: 0;
    display: block;
    transition: transform 0.6s ease;
    width: 100%;
}

#slider #slidemain .post-thumb a:hover img {
    transform: scale(1.03);
}

#slider #slidemain .video_cover {
    border-radius: var(--tb-radius);
    overflow: hidden;
}

#slider #slidemain .slide_content {
    margin: 22px 0 0;
}

#slider #slidemain .slide_content h2 {
    font-family: var(--tb-font);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 12px 0 12px;
}

#slider #slidemain .slide_content h2 a {
    color: var(--tb-fg);
}

#slider #slidemain .slide_content h2 a:hover {
    color: var(--tb-accent);
}

#slider #slidemain .slide_content p {
    color: var(--tb-text);
    font-size: 16px;
}

.featured-meta {
    margin: 0 0 12px;
}

/* The bordered date pill becomes plain meta text */
#slider .entry-date,
.post-meta .entry-date {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--tb-muted);
    font-family: var(--tb-font);
    font-size: 13px;
    margin: 0 12px 0 0;
    padding: 0;
}

/* Flexslider controls */
.flex-control-nav {
    background: transparent;
    border-radius: 0;
    height: 40px;
    line-height: 40px;
    margin: 24px 0 0;
    padding: 0;
    text-align: left;
}

.flex-control-nav li {
    margin: 0 7px 0 0;
    vertical-align: middle;
}

.flex-control-paging li a {
    background: var(--tb-border);
    border-radius: var(--tb-pill);
    height: 6px;
    opacity: 1;
    width: 6px;
}

.flex-control-paging li a:hover {
    background: var(--tb-faint);
}

.flex-control-paging li a.flex-active {
    background: var(--tb-accent);
    opacity: 1;
    width: 22px;
}

/* Arrows: circular buttons at the right end of the dots row */
#slider .flex-direction-nav {
    bottom: 0;
    height: 0;
    width: 100%;
}

#slider .flex-direction-nav li a {
    background-color: var(--tb-card);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 7px 12px;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    bottom: 0;
    box-shadow: var(--tb-shadow);
    height: 40px;
    width: 40px;
}

#slider .flex-direction-nav li a:hover {
    border-color: var(--tb-accent);
}

.flex-direction-nav a.flex-prev {
    left: auto;
    right: 50px;
}

.flex-direction-nav a.flex-next {
    right: 0;
}

/* Replace the icon-font glyphs with scheme-aware SVG chevrons */
#slider .flex-direction-nav .flex-prev:after,
#slider .flex-direction-nav .flex-next:after {
    content: none;
}

#slider .flex-direction-nav .flex-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='6,1 1.5,7 6,13' fill='none' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#slider .flex-direction-nav .flex-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='2,1 6.5,7 2,13' fill='none' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.mode-dark #slider .flex-direction-nav .flex-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='6,1 1.5,7 6,13' fill='none' stroke='%23f8fafc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.mode-dark #slider .flex-direction-nav .flex-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='2,1 6.5,7 2,13' fill='none' stroke='%23f8fafc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#slider .notice {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    color: var(--tb-text);
    padding: 24px;
}

/* Homepage sidebar widgets sit on the canvas as cards */
.featured-widgets .widget {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    margin: 0 0 24px;
    padding: 22px 24px;
}

#home_ad {
    margin: 0 0 40px;
}


/* 7. Featured Categories (homepage widgets)
============================================================================================*/

#main .homecat {
    margin-bottom: 50px;
}

/* The colored title block becomes a heading with an accent bar.
   Prefixed to out-rank #main .homepage-widgets .red h4 a and friends. */
.theme-style-modern #main .homepage-widgets h4 {
    background: transparent;
    font-family: var(--tb-font);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
    padding: 0 0 0 16px;
    position: relative;
    text-transform: none;
}

.theme-style-modern #main .homepage-widgets h4:before {
    background: var(--tb-accent);
    border-radius: 2px;
    bottom: 3px;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    top: 3px;
    width: 4px;
}

/* Keep the widget's color option meaningful — it now tints the bar */
.theme-style-modern #main .homepage-widgets .red h4:before {
    background: #ef4444;
}

.theme-style-modern #main .homepage-widgets .green h4:before {
    background: #22c55e;
}

.theme-style-modern #main .homepage-widgets .black h4:before {
    background: var(--tb-fg);
}

.theme-style-modern #main .homepage-widgets h4 a,
.theme-style-modern #main .homepage-widgets .red h4 a,
.theme-style-modern #main .homepage-widgets .green h4 a,
.theme-style-modern #main .homepage-widgets .black h4 a {
    background: transparent;
    color: var(--tb-fg);
    padding: 0;
}

.theme-style-modern #main .homepage-widgets h4 a:hover {
    color: var(--tb-accent);
    opacity: 1;
}

/* Each story becomes a card */
#main .homepage-widgets .homecat ul.featured-stories li {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 16px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#main .homepage-widgets .homecat ul.featured-stories li:hover {
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-2px);
}

#main .homepage-widgets .homecat ul li h3 {
    font-family: var(--tb-font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0 0 8px;
}

#main .homepage-widgets .homecat ul li h3 a {
    color: var(--tb-fg);
}

#main .homepage-widgets .homecat ul li h3 a:hover {
    color: var(--tb-accent);
}

#main .homepage-widgets .homecat ul.featured-stories li .featured-date {
    color: var(--tb-faint);
    font-family: var(--tb-font);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

#main .homepage-widgets .homecat .post-thumb {
    border-radius: var(--tb-radius-sm);
    margin: 0 0 16px;
    overflow: hidden;
}

#main .homepage-widgets .homecat .post-thumb img {
    border-radius: 0;
    display: block;
    transition: transform 0.6s ease;
    width: 100%;
}

#main .homepage-widgets .homecat .post-thumb:hover img {
    transform: scale(1.04);
}

#main .homepage-widgets .homecat .post-excerpt {
    color: var(--tb-text);
    font-size: 14px;
}

/* A plain list of links — no card, in the same spirit as the unstyled
   "More in this category »" link right below it. */
#main .homepage-widgets .homecat ul.stories {
    padding: 6px 0 0;
}

#main .homepage-widgets .homecat ul.stories li {
    list-style-type: none;
    margin: 0;
    padding: 7px 0;
}

#main .homepage-widgets .homecat ul.stories li a {
    color: var(--tb-text);
    font-size: 15px;
    font-weight: 500;
}

#main .homepage-widgets .homecat ul.stories li a:hover {
    color: var(--tb-accent);
}


/* 8. Section Titles — heading with an accent bar
============================================================================================*/

.section-title {
    border-bottom: 0;
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin: 0 0 28px;
    padding: 0 0 0 16px;
    position: relative;
    text-align: left;
    text-transform: none;
}

.section-title:before {
    background: var(--tb-accent);
    border-radius: 2px;
    bottom: 4px;
    clear: none;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    top: 4px;
    width: 4px;
}

.section-title:after {
    content: none;
    display: none;
}

/* 404.php reuses .section-title for the page <h1> */
.error404 .section-title {
    font-size: 40px;
}

.category_description {
    color: var(--tb-muted);
    margin: -10px 0 40px;
}


/* 9. Archive Posts
============================================================================================*/

.recent-posts .post,
.recent-posts .type-page {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    margin: 0 0 24px;
    padding: 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.recent-posts .post:hover,
.recent-posts .type-page:hover {
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-2px);
}

.recent-posts .post-thumb {
    border-radius: var(--tb-radius-sm);
    margin: 0 24px 15px 0;
    overflow: hidden;
}

.recent-posts .post-thumb a {
    display: block;
    overflow: hidden;
}

.recent-posts .post-thumb img {
    border-radius: 0;
    display: block;
    transition: transform 0.6s ease;
}

.recent-posts .post-thumb a:hover img {
    transform: scale(1.04);
}

.recent-posts .entry-title {
    font-family: var(--tb-font);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin: 8px 0 10px;
}

.recent-posts .entry-title a {
    color: var(--tb-fg);
}

.recent-posts .entry-title a:hover {
    color: var(--tb-accent);
}

.recent-posts .entry-content {
    color: var(--tb-text);
    font-size: 15px;
    line-height: 1.65;
}

.recent-posts .cat-links {
    margin: 0 0 4px;
}


/* 10. Single Posts
============================================================================================*/

.content-area .post-thumb {
    border-radius: var(--tb-radius);
    margin-bottom: 28px;
    overflow: hidden;
}

h1.entry-title {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 12px 0 18px;
}

.post-meta {
    border-bottom: 1px solid var(--tb-border);
    color: var(--tb-muted);
    margin: 0 0 32px;
    padding: 0 0 18px;
}

.single .entry-content,
.page .entry-content {
    font-size: 17px;
    line-height: 1.75;
}

.single .entry-content p,
.page .entry-content p {
    margin-bottom: 24px;
}

/* No drop cap in Modern — plain text keeps the first paragraph simple, overriding both
   the theme's automatic drop cap and the block editor's manual per-paragraph toggle. */
.single:not(.wpz-no-drop-cap) .entry-content > p:first-of-type:first-letter,
.entry-content p.has-drop-cap:not(:focus)::first-letter {
    color: inherit;
    float: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    text-shadow: none;
}

.entry-content a:not(.wp-element-button):not(.wpz-sc-button):not(:where(.wp-block-query a)) {
    color: var(--tb-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:not(.wp-element-button):not(.wpz-sc-button):not(:where(.wp-block-query a)):hover {
    color: var(--tb-accent-hover);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 36px 0 14px;
}

.entry-content h6 {
    color: var(--tb-muted);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.entry-content blockquote {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-left: 4px solid var(--tb-accent);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.55;
    margin: 30px 0;
    padding: 22px 26px;
    text-align: left;
}

.entry-content blockquote:before,
.entry-content blockquote:after {
    display: none;
}

.entry-content ul li {
    list-style-type: disc;
}

.gallery-caption,
.wp-block-image figcaption,
.entry-content .wp-caption-text {
    color: var(--tb-muted);
    font-family: var(--tb-font);
    font-size: 13px;
}

.entry-content a.wp-element-button,
.entry-content a.wpz-sc-button {
    background-color: var(--tb-accent);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent-on);
    font-family: var(--tb-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.entry-content a.wp-element-button:hover,
.entry-content a.wpz-sc-button:hover {
    background-color: var(--tb-accent-hover);
    color: var(--tb-accent-on);
}

.tag_list {
    font-family: var(--tb-font);
    font-size: 13px;
    margin: 28px 0;
}

.tag_list a {
    background: var(--tb-accent-soft);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent);
    display: inline-block;
    font-weight: 600;
    margin: 0 4px 6px 0;
    padding: 5px 14px;
}

.tag_list a:hover {
    background: var(--tb-accent);
    color: var(--tb-accent-on);
}

.post_author {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 24px;
}

.post_author img {
    border-radius: 50%;
}

.post_author span {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 15px;
    font-weight: 700;
}

.col_arch {
    border-bottom-color: var(--tb-border);
}


/* 11. Comments
============================================================================================*/

#comments > h3,
#respond > h3 {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.commentlist .comment {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    font-size: 15px;
    margin-bottom: 20px;
    padding: 22px 24px;
}

/* Stock zeroes the padding on the last nested comment to drop its divider; the card
   needs it back. */
.commentlist .children li:last-child {
    margin: 20px 0 0;
    padding: 22px 24px;
}

.comment .avatar {
    border-radius: 50%;
}

.comment-author .fn a {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 16px;
    font-weight: 700;
}

.comment-author .comment-meta,
.comment-author .comment-meta a {
    color: var(--tb-faint);
    font-family: var(--tb-font);
    font-size: 13px;
}

.comment-author .comment-meta a:hover {
    color: var(--tb-accent);
}

.comment-notes,
.nocomments {
    color: var(--tb-muted);
    font-family: var(--tb-font);
    font-size: 14px;
    font-style: normal;
}

#respond .form_fields p .required_lab {
    color: var(--tb-accent);
}


/* 12. Sidebar & Widgets
============================================================================================*/

#sidebar .widget {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    margin: 0 0 24px;
    padding: 22px 24px;
}

.widget h3.title {
    border-bottom: 1px solid var(--tb-border-soft);
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    padding: 0 0 12px;
    text-transform: none;
}

.widget .feature-posts-list li {
    border-bottom: 1px solid var(--tb-border-soft);
    margin: 0 0 14px;
    padding: 0 0 14px;
}

.widget .feature-posts-list li a {
    color: var(--tb-fg);
}

.widget .feature-posts-list li a:hover {
    color: var(--tb-accent);
}

.widget .feature-posts-list li h3 {
    font-family: var(--tb-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.widget .feature-posts-list .recent-date,
.widget .zoom-twitter-widget__item-timestamp {
    color: var(--tb-faint);
    font-family: var(--tb-font);
    font-size: 12px;
}

.widget .feature-posts-list .post-excerpt {
    color: var(--tb-text);
}

ol.popular-posts li {
    border-bottom: 1px solid var(--tb-border-soft);
    color: var(--tb-faint);
}

ol.popular-posts li span {
    color: var(--tb-faint);
    font-family: var(--tb-font);
    font-style: normal;
}

ol.popular-posts li a {
    color: var(--tb-fg);
}

ol.popular-posts li a:hover {
    color: var(--tb-accent);
}

.widget ul li a {
    color: var(--tb-text);
}

.widget ul li a:hover {
    color: var(--tb-accent);
}

.widget_tag_cloud div a {
    background: var(--tb-accent-soft);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent);
    display: inline-block;
    font-family: var(--tb-font);
    font-weight: 600;
    margin: 0 4px 6px 0;
    padding: 5px 14px;
}

.widget_tag_cloud div a:hover {
    background: var(--tb-accent);
    color: var(--tb-accent-on);
}

/* Widget tabs
   #sidebar .widget.tabbertabs (style.css:2450) out-specifies the generic #sidebar .widget
   card rule above (two classes vs one under the same #sidebar prefix), so the tabbed
   widget needs its own card treatment here rather than inheriting it. */
#sidebar .widget.tabbertabs {
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    overflow: hidden;
    padding: 0;
}

.widget .tabbertab {
    padding: 20px 24px;
}

.widget .tabbernav {
    background: var(--tb-card-soft);
}

.widget .tabbernav li {
    color: var(--tb-faint);
}

.widget .tabbernav li a {
    background: transparent;
    border: 0;
    color: var(--tb-muted);
    font-family: var(--tb-font);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 18px;
    text-transform: none;
}

.widget .tabbernav li a:hover,
.widget .tabbernav .tabberactive a {
    background: var(--tb-card);
    border-radius: var(--tb-radius-sm) var(--tb-radius-sm) 0 0;
    color: var(--tb-accent);
}

/* Carousel widget */
.carousel-slider .post-thumb {
    border-radius: var(--tb-radius-sm);
    overflow: hidden;
}

.carousel-slider .item .entry-title {
    font-family: var(--tb-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.carousel-slider .item .entry-title a {
    color: var(--tb-fg);
}

.carousel-slider .item .entry-title a:hover {
    color: var(--tb-accent);
}

.flickity-prev-next-button {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    box-shadow: var(--tb-shadow);
}

.flickity-prev-next-button:hover {
    background: var(--tb-card);
    border-color: var(--tb-accent);
}

.flickity-prev-next-button path {
    fill: var(--tb-fg);
}

.flickity-page-dots .dot {
    background: var(--tb-border);
    border-radius: var(--tb-pill);
    height: 6px;
    opacity: 1;
    width: 6px;
}

.flickity-page-dots .dot.is-selected {
    background: var(--tb-accent);
    opacity: 1;
    width: 22px;
}

#wp-calendar tbody td {
    background: var(--tb-card-soft);
    border-radius: var(--tb-radius-sm);
}

#wp-calendar tbody td:hover {
    background: var(--tb-accent-soft);
}

#wp-calendar tbody {
    color: var(--tb-muted);
}


/* 13. Pagination
============================================================================================*/

div.navigation {
    font-family: var(--tb-font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0 0;
}

div.navigation a,
div.navigation span.current {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-sm);
    display: inline-block;
    line-height: 38px;
    margin: 0 3px;
    padding: 0 16px;
}

div.navigation a {
    color: var(--tb-text);
}

div.navigation a:hover {
    background: var(--tb-accent-soft);
    border-color: transparent;
    color: var(--tb-accent);
}

div.navigation span.current {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
    color: var(--tb-accent-on);
}

div.navigation .prev,
div.navigation .next {
    font-size: 14px;
}


/* 14. Footer
============================================================================================*/

.footer-widgets {
    border-top: 1px solid var(--tb-border);
    padding-top: 44px;
}

.footer-widgets .widget {
    margin-bottom: 32px;
}

#footer {
    background: var(--tb-card);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    color: var(--tb-muted);
    margin: 0 auto 40px;
    padding: 44px 40px 32px;
}

#footer a {
    color: var(--tb-muted);
}

#footer a:hover {
    color: var(--tb-accent);
}

#footer .footer-logo a {
    color: var(--tb-fg);
    font-family: var(--tb-font);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-transform: none;
}

#footer .footer-logo a:hover {
    color: var(--tb-accent);
}

#footer .footer-menu {
    font-family: var(--tb-font);
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

#footer .footer-info {
    border-top: 1px solid var(--tb-border-soft);
    color: var(--tb-faint);
    font-family: var(--tb-font);
    font-size: 13px;
    margin: 30px 0 0;
    padding: 20px 0 0;
}


/* 15. Color Scheme Toggle
   An icon button rather than a switch: the glyph shows the scheme you are in, and it sits
   in the top bar at the same visual weight as the social icons beside it. The glyph is a
   mask filled with currentColor, so one copy of each icon covers both schemes and the
   hover state; the @supports block below is the fallback for engines without masks.
============================================================================================*/

#dark-mode-toggle {
    background: transparent;
    border: 0;
    border-radius: var(--tb-radius-sm);
    box-shadow: none;
    color: var(--tb-muted);
    cursor: pointer;
    float: right;
    height: 32px;
    margin: 1px 0 0 16px;
    padding: 0;
    position: relative;
    transition: color 0.2s ease;
    width: 32px;
}

#dark-mode-toggle:hover {
    background: transparent;
    color: var(--tb-accent);
}

#dark-mode-toggle:focus-visible {
    outline: 2px solid var(--tb-accent);
    outline-offset: 2px;
}

/* Fallback glyph — fixed colors, no hover recolor. Replaced by the mask below wherever
   mask-image is available (everything current). */
#dark-mode-toggle::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7688' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
    content: "";
    display: block;
    height: 100%;
    transition: background-color 0.2s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

body.mode-dark #dark-mode-toggle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c98ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {

    #dark-mode-toggle::before {
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
    }

    body.mode-dark #dark-mode-toggle::before {
        background-image: none;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
    }
}

/* The sun turns, the moon tilts */
#dark-mode-toggle:hover::before {
    transform: rotate(40deg);
}

body.mode-dark #dark-mode-toggle:hover::before {
    transform: rotate(-15deg);
}

/* Dark scheme patch for the mmenu shadow hardcoded in style.css */
body.mode-dark .mm-menu.mm-pageshadow:after {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}


/* 16. Responsive
   Re-states the stock breakpoints that would otherwise out-rank the rules above,
   plus the sizes the larger Modern type needs on small screens.
============================================================================================*/

@media screen and (max-width: 980px) {

    .theme-style-modern #header #header-inner {
        padding: 32px 0 26px;
    }

    .theme-style-modern .main-navbar {
        margin-bottom: 28px;
        padding: 4px 12px;
    }

    .theme-style-modern .section-title {
        font-size: 21px;
    }

    .theme-style-modern #slider #slidemain .slide_content h2 {
        font-size: 26px;
    }

    .theme-style-modern h1.entry-title {
        font-size: 34px;
    }
}

@media screen and (max-width: 768px) {

    .theme-style-modern .recent-posts .post,
    .theme-style-modern .recent-posts .type-page {
        padding: 18px;
    }

    .theme-style-modern .recent-posts .entry-title {
        font-size: 19px;
    }

    .theme-style-modern .recent-posts .post-thumb {
        margin-right: 18px;
    }

    .theme-style-modern #sidebar .widget,
    .theme-style-modern .featured-widgets .widget {
        padding: 18px 20px;
    }

    .theme-style-modern #footer {
        padding: 32px 22px 24px;
    }
}

@media screen and (max-width: 640px) {

    .theme-style-modern h1.entry-title {
        font-size: 28px;
    }

    .theme-style-modern #slider #slidemain .slide_content h2 {
        font-size: 23px;
    }

    .theme-style-modern .entry-content blockquote {
        font-size: 17px;
        padding: 18px 20px;
    }

    .theme-style-modern .commentlist .comment {
        padding: 18px;
    }
}


/* 17. Block Style: Categories / Tags as buttons
   Registered in tribune_register_block_styles(). Matches the .cat-links chips so the
   block and the theme's own category links read the same. body-prefixed for (0,3,2) so it
   out-ranks `.entry-content a:not(.wp-element-button):not(.wpz-sc-button)` regardless of
   order.
============================================================================================*/

body.theme-style-modern .wp-block-post-terms.is-style-buttons a {
    background: var(--tb-accent-soft);
    border-radius: var(--tb-radius-sm);
    color: var(--tb-accent);
    font-family: var(--tb-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 13px;
    text-decoration: none;
    text-transform: uppercase;
}

body.theme-style-modern .wp-block-post-terms.is-style-buttons a:hover {
    background: var(--tb-accent);
    color: var(--tb-accent-on);
}

/* 18. Block Style: Group as a surface
   Registered in tribune_register_block_styles(). Modern is card-based, so the panel is one
   of its cards: the lighter --tb-card lifted off the tinted canvas, rounded and softly
   shadowed, with only a hairline border to keep the edge readable in dark mode. Both
   schemes come from the tokens in section 0, so body.mode-dark needs no rules of its own.
============================================================================================*/

body.theme-style-modern .wp-block-group.is-style-surface {
    background-color: var(--tb-card);
    border: 1px solid var(--tb-border-soft);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 32px;
}

@media screen and (max-width: 640px) {

    body.theme-style-modern .wp-block-group.is-style-surface {
        padding: 22px;
    }
}


/* 19. Block Style: Button as a link
   Registered in tribune_register_block_styles(). Keeps Modern's button type but drops the
   fill and the radius, leaving an accent-colored underlined label. Chaining both classes the
   anchor carries (.wp-block-button__link.wp-element-button) puts these at (0,6,2), above the
   filled-button rules earlier in this file regardless of order.
============================================================================================*/

body.theme-style-modern .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button,
body.theme-style-modern .entry-content .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    font-family: var(--tb-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-transform: none;
    text-underline-offset: 4px;
}

/* Guarded so an editor-set color still takes precedence; the token follows body.mode-dark. */
body.theme-style-modern .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button:not(.has-text-color):not([style*="color"]),
body.theme-style-modern .entry-content .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button:not(.has-text-color):not([style*="color"]) {
    color: var(--tb-accent);
}

body.theme-style-modern .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button:hover,
body.theme-style-modern .entry-content .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button:hover {
    background-color: transparent;
}

body.theme-style-modern .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button:not(.has-text-color):not([style*="color"]):hover,
body.theme-style-modern .entry-content .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button:not(.has-text-color):not([style*="color"]):hover {
    color: var(--tb-accent-hover);
}


/* 20. Social Icons Widget
   The WPZOOM Social Icons widget prints each icon's color inline on .social-icon, so the
   dark glyph color it ships with survives into the dark scheme and all but disappears on
   the near-black canvas. Only the plain style needs the override — the canvas style paints
   a filled brand chip with a white glyph and reads fine in both schemes.

   !important is the only way past an inline style; it also out-ranks the hover color the
   widget's own script writes inline, so the hover is restated here in the accent.
============================================================================================*/

body.mode-dark .zoom-social-icons-list--without-canvas .social-icon {
    color: var(--tb-fg) !important;
}

body.mode-dark .zoom-social-icons-list--without-canvas .zoom-social_icons-list__link:hover .social-icon {
    color: var(--tb-accent) !important;
}


/* 21. Query Loop Block Links
============================================================================================*/

:where(body.theme-style-modern .wp-block-query) a:not(:where(.wp-element-button, .wpz-sc-button)) {
    color: var(--tb-fg);
    text-decoration: none;
}

/* (0,1,1) with the :hover — so an editor-set hover color, at (0,2,1), still wins. */
:where(body.theme-style-modern .wp-block-query) a:not(:where(.wp-element-button, .wpz-sc-button)):hover {
    color: var(--tb-accent);
}
