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

Editorial Color Style — a modern, flat newspaper design for Tribune.

Palette:    light canvas by default (#fff), near-black type, hairline rules and a single
            editorial red accent. No boxes, drop shadows or rounded corners — the structure
            comes from whitespace and 1px rules instead.
            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: 'Newsreader' for the masthead, headlines and body copy, 'Inter Tight' for
            navigation, kickers, meta and buttons. Both load through the framework's shared
            Google Fonts request — see tribune_google_fonts_depending_by_style() 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-editorial (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

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


/* 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-editorial {
    --tb-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --tb-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --tb-bg: #fff;
    --tb-surface: #f5f5f3;
    --tb-fg: #111;
    --tb-fg-inverse: #fff;
    --tb-text: #35353b;
    --tb-muted: #6e6e76;
    --tb-faint: #9a9aa2;
    --tb-hairline-soft: rgba(0, 0, 0, 0.07);
    --tb-hairline: rgba(0, 0, 0, 0.13);
    --tb-hairline-mid: rgba(0, 0, 0, 0.22);
    --tb-hairline-strong: rgba(0, 0, 0, 0.42);
    --tb-accent: #c8102e;
    --tb-accent-hover: #90000f;
    --tb-accent-soft: rgba(200, 16, 46, 0.1);
    --tb-nav-glass: rgba(255, 255, 255, 0.92);
}

body.theme-style-editorial.mode-dark {
    --tb-bg: #0f0f10;
    --tb-surface: #17171a;
    --tb-fg: #fff;
    --tb-fg-inverse: #0f0f10;
    /* Body copy sits a step lighter than a straight inversion of the light scheme:
       thin serif text needs the extra lift to read on a near-black canvas. */
    --tb-text: #cbcbd2;
    --tb-muted: #8b8b93;
    --tb-faint: #6c6c74;
    --tb-hairline-soft: rgba(255, 255, 255, 0.08);
    --tb-hairline: rgba(255, 255, 255, 0.15);
    --tb-hairline-mid: rgba(255, 255, 255, 0.24);
    --tb-hairline-strong: rgba(255, 255, 255, 0.45);
    --tb-accent: #ff4d5e;
    --tb-accent-hover: #ff8b96;
    /* A literal 10% tint of a saturated red is close to invisible on a near-black
       canvas, so the dark scheme carries a little more alpha. */
    --tb-accent-soft: rgba(255, 77, 94, 0.16);
    --tb-nav-glass: rgba(15, 15, 16, 0.9);
}


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

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

::selection {
    background: var(--tb-fg);
    color: var(--tb-fg-inverse);
}

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

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

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

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

/* Small uppercase label — kickers, meta, nav, section headings */
.cat-links a,
.entry-meta,
.featured-meta,
.post-meta,
.readmore_button,
.navbar-nav,
.mm-listview a,
.widget h3.title,
.section-title,
div.navigation {
    font-family: var(--tb-sans);
}

.cat-links a {
    color: var(--tb-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.entry-meta,
.featured-meta,
.post-meta {
    color: var(--tb-muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
}

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

.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-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

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

body.theme-style-editorial textarea {
    padding: 12px 14px;
}

body.theme-style-editorial input:focus,
body.theme-style-editorial textarea:focus,
body.theme-style-editorial select:focus {
    border-color: var(--tb-fg);
    box-shadow: none;
    outline: none;
}

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

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

/* Solid near-black button, inverts to the accent on hover */
button,
input[type=button],
input[type=reset],
input[type=submit],
.wp-block-search__button {
    background: var(--tb-fg);
    border: 1px solid var(--tb-fg);
    border-radius: 0;
    color: var(--tb-fg-inverse);
    font-family: var(--tb-sans);
    font-size: 11px;
    font-weight: 600;
    height: 44px;
    letter-spacing: 0.18em;
    padding: 0 26px;
    text-transform: uppercase;
    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);
    border-color: var(--tb-accent);
    color: #fff;
}

/* Ghost button — hairline frame, fills on hover */
.readmore_button a,
.more-link,
.more_link {
    background: transparent;
    border: 1px solid var(--tb-hairline-strong);
    border-radius: 0;
    color: var(--tb-fg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
    padding: 14px 26px;
    text-transform: uppercase;
}

.readmore_button a:after {
    display: none;
}

.readmore_button a:hover,
.more-link:hover,
.more_link:hover {
    background: var(--tb-fg);
    border-color: var(--tb-fg);
    color: var(--tb-fg-inverse);
}

.infinite-scroll #infinite-handle span {
    background: transparent;
    border: 1px solid var(--tb-hairline-strong);
    border-radius: 0;
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

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

table th {
    background: transparent;
    border-bottom: 1px solid var(--tb-fg);
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

code {
    background: var(--tb-surface);
    border-radius: 0;
    color: var(--tb-accent);
}

pre {
    background: var(--tb-surface);
    border: 1px solid var(--tb-hairline);
    border-radius: 0;
    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-editorial .page-wrap {
        max-width: 1400px;
        padding: 0 40px;
    }

    .theme-style-editorial #footer {
        max-width: 1400px;
    }

    .theme-style-editorial #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-editorial .full-width #main,
    .theme-style-editorial #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-editorial.page-template-full-width,
    .theme-style-editorial.page-template-page-templatesfull-width-php,
    .theme-style-editorial.page-template-full-width-no-title,
    .theme-style-editorial.page-template-page-templatesfull-width-no-title-php {
        --wp--style--global--content-size: 1320px;
    }

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


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

#header #header-inner {
    padding: 48px 0 40px;
}

.navbar-brand h1 {
    font-family: var(--tb-serif);
    font-weight: 600;
    letter-spacing: -0.035em;
    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-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    margin-top: 14px;
    text-transform: uppercase;
}

.navbar-brand .header_date {
    color: var(--tb-faint);
    font-family: var(--tb-sans);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.16em;
    margin-top: 10px;
    text-transform: uppercase;
}

#head_banner {
    margin-top: 0;
}

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

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

.top-navbar .navbar-nav a,
.top-navbar a {
    color: var(--tb-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

/* Main bar loses the navy block — hairlines and letterspaced caps instead */
.main-navbar {
    background: transparent;
    border-top: 1px solid var(--tb-hairline);
    border-bottom: 1px solid var(--tb-hairline);
    margin-bottom: 45px;
    padding: 0;
}

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

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

.main-navbar .navbar-nav a {
    color: var(--tb-text);
    font-family: var(--tb-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    padding: 17px 16px;
    text-transform: uppercase;
}

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

.main-navbar .current-menu-item > a,
.main-navbar .current_page_item > a,
.main-navbar .current-menu-parent > a,
.main-navbar .current_page_parent > a {
    border-bottom: 0;
    box-shadow: inset 0 -2px 0 var(--tb-accent);
    color: var(--tb-fg);
}

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

/* 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-bg);
    border: 1px solid var(--tb-hairline);
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    padding: 6px 0;
    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 {
    box-shadow: none;
    color: var(--tb-text);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 9px 18px;
    text-transform: none;
}

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

/* Submenu chevron — superfish.js adds the .sf-with-ul class straight onto the <a>
   (js/superfish.min.js: anchorClass) and style.css renders it as a dashicon ::after
   glyph. Its stock vertical-align/margin-top were tuned for the 16px stock menu text;
   flexing the anchor keeps the glyph centered against the text at any font-size instead
   of a hand-tuned offset. */
.top-navbar .navbar-nav a,
.main-navbar .navbar-nav a,
.navbar-nav ul a {
    align-items: center;
    display: flex;
}

.navbar-nav ul a {
    justify-content: space-between;
}

.sf-arrows .sf-with-ul:after,
.main-navbar .sf-arrows .sf-with-ul:after,
.sf-arrows ul .sf-with-ul:after,
.main-navbar .sf-arrows ul .sf-with-ul:after {
    color: var(--tb-muted);
    margin: 0 0 0 4px;
    opacity: 1;
}

.main-navbar .navbar-nav a.sf-with-ul:hover:after,
.navbar-nav ul a.sf-with-ul:hover:after {
    color: var(--tb-accent);
}

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

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

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

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

.navbar-toggle .toggle-text {
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

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

.mm-menu.mm-theme-dark .mm-listview > li:after {
    border-color: var(--tb-hairline-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-hairline-soft);
}

.mm-listview a {
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

/* Search box in the main bar — the icon no longer sits on a navy field */
.sb-search .sb-icon-search {
    color: var(--tb-fg);
    border-radius: 0;
}

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

body.theme-style-editorial .sb-search .sb-search-input {
    background: var(--tb-bg);
    border: 1px solid var(--tb-hairline-mid);
    border-radius: 0;
    color: var(--tb-fg);
    height: 40px;
    padding: 0 55px 0 15px;
}

.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. position:sticky
   can't be used because .main-navbar's wrapper ends right below it. */
.tb-nav-fixed .main-navbar {
    animation: tb-nav-slide-down 0.25s ease;
    background: var(--tb-nav-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top-color: transparent;
    left: 0;
    margin-bottom: 0;
    padding: 0 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: transparent;
    border: 0;
    border-top: 1px solid var(--tb-hairline);
    border-bottom: 1px solid var(--tb-hairline);
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 45px;
    padding: 14px 0;
}

#news-ticker dt {
    background: transparent;
    border-radius: 0;
    color: var(--tb-accent);
    font-family: var(--tb-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    margin: 0 14px 0 0;
    padding: 0;
}

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

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


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

#featured {
    margin: 0 0 55px;
}

#slider {
    border-right: 1px solid var(--tb-hairline);
}

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

#slider #slidemain .post-thumb a {
    display: block;
    overflow: hidden;
}

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

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

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

#slider #slidemain .slide_content h2 {
    font-family: var(--tb-serif);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 12px 0 14px;
}

#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 date pill becomes plain letterspaced caps */
#slider .entry-date,
.post-meta .entry-date {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--tb-muted);
    font-family: var(--tb-sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    margin: 0 14px 0 0;
    padding: 0;
    text-transform: uppercase;
}

/* Flexslider controls — flat rules instead of the red bar */
.flex-control-nav {
    background: transparent;
    border-radius: 0;
    height: 36px;
    line-height: 36px;
    margin: 28px 0 0;
    padding: 0;
    text-align: left;
}

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

.flex-control-paging li a {
    background: var(--tb-hairline-strong);
    border-radius: 0;
    height: 2px;
    opacity: 0.35;
    width: 26px;
}

.flex-control-paging li a:hover {
    opacity: 0.7;
}

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

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

#slider .flex-direction-nav li a {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 7px 12px;
    border: 1px solid var(--tb-hairline);
    bottom: 0;
    height: 36px;
    width: 36px;
}

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

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

.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.5,1 1.5,7 6.5,13' fill='none' stroke='%23111' stroke-width='1.4'/%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='1.5,1 6.5,7 1.5,13' fill='none' stroke='%23111' stroke-width='1.4'/%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.5,1 1.5,7 6.5,13' fill='none' stroke='%23fff' stroke-width='1.4'/%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='1.5,1 6.5,7 1.5,13' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E");
}

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

.featured-widgets .widget {
    margin: 0 0 34px;
}

#home_ad {
    margin: 0 0 45px;
}


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

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

/* The colored title block becomes a rule + letterspaced caps.
   Prefixed to out-rank #main .homepage-widgets .red h4 a and friends. */
.theme-style-editorial #main .homepage-widgets h4 {
    background: transparent;
    border-bottom: 1px solid var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 13px;
    letter-spacing: 0.2em;
    margin-bottom: 28px;
    padding: 0 0 12px;
}

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

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

#main .homepage-widgets .homecat ul li h3 {
    font-family: var(--tb-serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    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-sans);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#main .homepage-widgets .homecat .post-thumb {
    margin: 0 0 18px;
    overflow: hidden;
}

#main .homepage-widgets .homecat .post-thumb img {
    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: 15px;
}

#main .homepage-widgets .homecat ul.stories {
    border-top: 1px solid var(--tb-hairline);
    padding: 4px 0 0;
}

#main .homepage-widgets .homecat ul.stories li {
    border-bottom: 1px solid var(--tb-hairline-soft);
    list-style-type: none;
    margin: 0;
    padding: 12px 0;
}

#main .homepage-widgets .homecat ul.stories li:last-child {
    border-bottom: 0;
}

#main .homepage-widgets .homecat ul.stories li a {
    color: var(--tb-fg);
    font-size: 16px;
}

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


/* 8. Section Titles — a small caps label with a rule running to the right
============================================================================================*/

.section-title {
    border-bottom: 0;
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.4;
    margin: 0 0 32px;
    overflow: hidden;
    padding: 0;
    text-align: left;
    text-transform: uppercase;
}

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

/* Hairline that runs from the label to the right edge. An overflowing inline-block
   rather than a flex item, so the inline markup inside the heading (search.php wraps
   the query in <strong>) keeps flowing normally. */
.section-title:after {
    background: var(--tb-hairline);
    clear: none;
    content: "";
    display: inline-block;
    height: 1px;
    margin-left: 20px;
    vertical-align: middle;
    width: 100%;
}

/* 404.php reuses .section-title for the page <h1> — keep that one a real headline */
.error404 .section-title {
    font-family: var(--tb-serif);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-transform: none;
}

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

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


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

.recent-posts .post,
.recent-posts .type-page {
    border-bottom: 1px solid var(--tb-hairline);
    margin: 0 0 40px;
    padding: 0 0 40px;
}

.recent-posts .post-thumb {
    margin: 0 32px 15px 0;
    overflow: hidden;
}

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

.recent-posts .post-thumb img {
    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-serif);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 6px 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: 16px;
    line-height: 1.7;
}

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


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

.content-area .post-thumb {
    margin-bottom: 30px;
    overflow: hidden;
}

.single .cat-links a {
    font-size: 12px;
}

h1.entry-title {
    color: var(--tb-fg);
    font-family: var(--tb-serif);
    font-size: 46px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 12px 0 18px;
}

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

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

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

/* Flat drop cap — no faux 3D shadow */
.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: var(--tb-fg);
    font-size: 84px;
    font-weight: 600;
    line-height: 0.72;
    padding: 8px 14px 0 0;
    text-shadow: none;
}

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

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

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

.entry-content h6 {
    color: var(--tb-muted);
    font-family: var(--tb-sans);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.entry-content blockquote {
    border-left: 2px solid var(--tb-accent);
    color: var(--tb-fg);
    font-family: var(--tb-serif);
    font-size: 24px;
    font-style: italic;
    line-height: 1.45;
    margin: 34px 0;
    padding: 4px 0 4px 28px;
    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-sans);
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* The color declarations carry the same :not() guards as the stock rule in style.css
   (.entry-content a.wp-element-button:not(.has-text-color):not([style*="color"]), which
   forces #fff at (0,4,1)) plus the body prefix, so the token wins at (0,5,2). Without it the
   button rendered white-on-white in dark mode, where --tb-fg is #fff. Editor-set colors still
   take precedence, exactly as the guards intend. */
body.theme-style-editorial .entry-content a.wp-element-button:not(.has-text-color):not([style*="color"]),
body.theme-style-editorial .entry-content a.wpz-sc-button:not(.has-text-color):not([style*="color"]) {
    background-color: var(--tb-fg);
    border-radius: 0;
    color: var(--tb-fg-inverse);
    font-family: var(--tb-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.theme-style-editorial .entry-content a.wp-element-button:not(.has-text-color):not([style*="color"]):hover,
body.theme-style-editorial .entry-content a.wpz-sc-button:not(.has-text-color):not([style*="color"]):hover {
    background-color: var(--tb-accent);
    color: #fff;
}

.tag_list {
    font-family: var(--tb-sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    margin: 30px 0;
}

.tag_list a {
    border: 1px solid var(--tb-hairline);
    display: inline-block;
    margin: 0 4px 6px 0;
    padding: 5px 12px;
}

.tag_list a:hover {
    border-color: var(--tb-fg);
}

.post_author {
    background: transparent;
    border-top: 1px solid var(--tb-hairline);
    border-bottom: 1px solid var(--tb-hairline);
    padding: 30px 0;
}

.post_author span {
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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


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

#comments > h3,
#respond > h3 {
    border-bottom: 1px solid var(--tb-hairline);
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding-bottom: 14px;
    text-transform: uppercase;
}

.commentlist .comment {
    border-bottom: 1px solid var(--tb-hairline-soft);
    font-size: 16px;
}

.comment .avatar {
    border-radius: 0;
}

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

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

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

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

#respond label {
    font-size: 11px;
}

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


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

/* Boxes out, hairlines in */
#sidebar .widget {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--tb-hairline);
    border-radius: 0;
    margin: 0 0 38px;
    padding: 0 0 34px;
}

#sidebar .widget:last-child {
    border-bottom: 0;
}

.widget h3.title {
    border-bottom: 1px solid var(--tb-fg);
    color: var(--tb-fg);
    font-family: var(--tb-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin: 0 0 22px;
    padding: 0 0 12px;
    text-transform: uppercase;
}

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

.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-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.widget .feature-posts-list .recent-date,
.widget .zoom-twitter-widget__item-timestamp {
    color: var(--tb-faint);
    font-family: var(--tb-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

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

ol.popular-posts li span {
    color: var(--tb-faint);
    font-family: var(--tb-sans);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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 {
    border: 1px solid var(--tb-hairline);
    display: inline-block;
    font-family: var(--tb-sans);
    margin: 0 4px 6px 0;
    padding: 5px 12px;
}

.widget_tag_cloud div a:hover {
    border-color: var(--tb-fg);
}

/* Widget tabs
   #sidebar .widget.tabbertabs (style.css:2450) out-specifies the generic #sidebar .widget
   reset above (two classes vs one under the same #sidebar prefix), so the tabbed widget
   needs its own reset here rather than inheriting it — including the border-bottom hairline
   that separates each sidebar widget from the next one. */
#sidebar .widget.tabbertabs {
    background: transparent;
    border: 0;
    border: 1px solid var(--tb-hairline);
    border-radius: 0;
}

#sidebar .widget.tabbertabs:last-child {
    border-bottom: 0;
}

.widget .tabbernav {
    background: transparent;
    border-bottom: 1px solid var(--tb-hairline);
}

.widget .tabbernav li a {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--tb-muted);
    font-family: var(--tb-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.widget .tabbernav li a:hover,
.widget .tabbernav .tabberactive a {
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--tb-accent);
    color: var(--tb-fg);
}

/* Carousel widget */
.carousel-slider .item .entry-title {
    font-family: var(--tb-serif);
    font-size: 17px;
    font-weight: 600;
    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-bg);
    border: 1px solid var(--tb-hairline);
    border-radius: 0;
}

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

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

.flickity-page-dots .dot {
    background: var(--tb-hairline-strong);
    border-radius: 0;
    height: 2px;
    opacity: 0.35;
    width: 22px;
}

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

/* Video widget playlist */
.wpzoom_media .wpzoom-video-list li {
    border-bottom: 1px solid var(--tb-hairline-soft);
}

.wpzoom_media .wpzoom-video-list a {
    color: var(--tb-fg);
}

.wpzoom_media .wpzoom-video-list a:hover,
.wpzoom_media .wpzoom-video-list a.active .wpzoom-video-list__title {
    color: var(--tb-accent);
}

.wpzoom_media .wpzoom-video-list a.active .wpzoom-video-list__thumb {
    box-shadow: inset 0 0 0 2px var(--tb-accent);
}

.wpzoom-video-list__thumb {
    background: var(--tb-surface);
    border-radius: 0;
}

.wpzoom-video-list__title {
    font-family: var(--tb-serif);
    font-size: 15px;
    font-weight: 600;
}

.wpzoom-video-list__duration {
    font-family: var(--tb-sans);
}

.wpzoom_media .open .description {
    color: var(--tb-muted);
    font-family: var(--tb-sans);
    font-size: 12px;
    font-style: normal;
}

#wp-calendar tbody td {
    background: transparent;
    border: 1px solid var(--tb-hairline-soft);
}

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

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


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

div.navigation {
    border-top: 1px solid var(--tb-hairline);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    padding: 26px 0 0;
    text-transform: uppercase;
}

div.navigation a,
div.navigation span.current {
    border: 1px solid transparent;
    display: inline-block;
    line-height: 34px;
    margin: 0 2px;
    padding: 0 14px;
}

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

div.navigation a:hover {
    border-color: var(--tb-hairline);
    color: var(--tb-fg);
}

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

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


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

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

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

#footer {
    background: transparent;
    border-top: 1px solid var(--tb-hairline);
    color: var(--tb-muted);
    padding: 50px 30px 40px;
}

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

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

#footer .footer-logo a {
    color: var(--tb-fg);
    font-family: var(--tb-serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
}

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

#footer .footer-menu {
    font-family: var(--tb-sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    margin-top: 18px;
    text-transform: uppercase;
}

#footer .footer-info {
    border-top: 1px solid var(--tb-hairline);
    color: var(--tb-faint);
    font-family: var(--tb-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    margin: 34px 0 0;
    padding: 22px 0 0;
}


/* 15. Color Scheme Toggle
   Small switch in the top bar. Light = off (knob left), dark = on (knob right).
============================================================================================*/

#dark-mode-toggle {
    background: transparent;
    border: 1px solid var(--tb-hairline-mid);
    border-radius: 12px;
    cursor: pointer;
    float: right;
    height: 23px;
    margin: 4px 0 0 20px;
    padding: 0;
    position: relative;
    transition: border-color 0.2s ease;
    width: 42px;
}

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

#dark-mode-toggle::before {
    background-color: var(--tb-fg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 11px 11px;
    /* sun — light glyph inside the dark knob */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E");
    border-radius: 50%;
    content: "";
    height: 17px;
    left: 2px;
    position: absolute;
    top: 2px;
    transform: translateX(0);
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 17px;
}

body.mode-dark #dark-mode-toggle::before {
    /* moon — dark glyph inside the light knob */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f10' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 14.5A8.5 8.5 0 0 1 9.5 3.5a8.5 8.5 0 1 0 11 11z'/%3E%3C/svg%3E");
    transform: translateX(19px);
}

/* Dark scheme patches for colors hardcoded in style.css */
body.mode-dark #wp-calendar tbody td,
body.mode-dark .widget img,
body.mode-dark .post-thumb img {
    border-color: var(--tb-hairline-soft);
}

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 Editorial type needs on small screens.
============================================================================================*/

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

    .theme-style-editorial #slider {
        border-right: 0;
    }
}

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

    .theme-style-editorial #slider {
        border-right: 1px solid var(--tb-hairline);
    }

    .theme-style-editorial #header #header-inner {
        padding: 34px 0 28px;
    }

    .theme-style-editorial .section-title {
        font-size: 12px;
    }

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

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

    .theme-style-editorial .main-navbar {
        margin-bottom: 30px;
        padding: 0;
    }
}

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

    .theme-style-editorial .recent-posts .entry-title {
        font-size: 21px;
    }

    .theme-style-editorial .recent-posts .post-thumb {
        margin-right: 20px;
    }

    .theme-style-editorial .single .entry-content,
    .theme-style-editorial .page .entry-content {
        font-size: 17px;
    }

    .theme-style-editorial #footer {
        padding: 40px 20px 30px;
    }
}

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

    .theme-style-editorial #slider {
        border-right: 0;
    }
}

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

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

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

    .theme-style-editorial .entry-content blockquote {
        font-size: 20px;
    }
}


/* 17. Block Style: Categories / Tags as buttons
   Registered in tribune_register_block_styles(). Square and letterspaced, matching the
   .cat-links kickers. 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-editorial .wp-block-post-terms.is-style-buttons a {
    background: var(--tb-accent-soft);
    border-radius: 0;
    color: var(--tb-accent);
    font-family: var(--tb-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    padding: 6px 14px;
    text-decoration: none;
    text-transform: uppercase;
}

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

/* 18. Block Style: Group as a surface
   Registered in tribune_register_block_styles(). Editorial has no cards or shadows, so the
   panel is a flat tinted box: square corners, a hairline border and a heavier rule across
   the top to mark it off the page. Both schemes come from the tokens in section 0, so
   body.mode-dark needs no rules of its own.
============================================================================================*/

body.theme-style-editorial .wp-block-group.is-style-surface {
    background-color: var(--tb-surface);
    border: 1px solid var(--tb-hairline-soft);
    border-radius: 0;
    box-shadow: none;
    padding: 36px 40px;
}

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

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


/* 19. Block Style: Button as a link
   Registered in tribune_register_block_styles(). Keeps Editorial's uppercase letterspaced
   button type but drops the fill, leaving a label underlined in the accent. 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-editorial .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button,
body.theme-style-editorial .entry-content .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button {
    background-color: transparent;
    border-radius: 0;
    font-family: var(--tb-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: var(--tb-accent);
    text-decoration-thickness: 1px;
    text-transform: uppercase;
    text-underline-offset: 4px;
}

/* Guarded like the filled-button rules above, so an editor-set color still takes precedence
   — and the token keeps the label readable in dark mode. */
body.theme-style-editorial .wp-block-button.is-style-link a.wp-block-button__link.wp-element-button:not(.has-text-color):not([style*="color"]),
body.theme-style-editorial .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-fg);
}

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

body.theme-style-editorial .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-editorial .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);
}


/* 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;
}
