/*
Theme Name: JTribune
Theme URI: https://jtribune.com/
Author: JTribune
Description: A modern, responsive general-news WordPress theme for JTribune. Designed for the JTribune newsroom platform with responsive Yahoo-inspired news layouts, companion Core integration, homepage curation, publisher analytics, newsletters, comments, ads, News SEO, staff profiles and performance-focused asset handling.
Version: 4.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jtribune
Tags: news, magazine, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Core WordPress compatibility. Layout-specific styling is loaded from assets/css. */
.alignwide{max-width:1200px;margin-left:auto;margin-right:auto}.alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}
.wp-caption{max-width:100%}.wp-caption-text{font-size:.85em;color:#6b7079}.gallery-caption{font-size:.85em}.bypostauthor{display:block}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{clip:auto!important;height:auto;width:auto;display:block;top:5px;left:5px;z-index:100000;background:#fff;padding:15px;color:#000}
.admin-bar .topbar,.admin-bar .global{top:32px}.admin-bar .left-rail{top:32px}
@media(max-width:782px){.admin-bar .topbar,.admin-bar .global{top:46px}.admin-bar .left-rail{top:46px}}
.jt-fallback-image{display:block;width:100%;background:linear-gradient(135deg,#111 0%,#4f0b16 50%,#b30d26 100%);position:relative;overflow:hidden}.jt-fallback-image:after{content:'JTRIBUNE';position:absolute;inset:auto 18px 16px auto;color:#fff;font:800 18px Georgia,serif;letter-spacing:.03em}.jt-link-overlay{position:absolute;inset:0;z-index:2}.jt-card-link{display:block}.jt-card-link:hover h2,.jt-card-link:hover h3,.jt-card-link:hover h4{color:#b30d26}
.jt-notice{max-width:1570px;margin:18px auto 0;padding:12px 18px;border-radius:10px;background:#f5f6f7;border:1px solid #dedfe3;font-size:14px}.jt-notice.success{border-color:#9ac7a8;background:#f2fbf5}.jt-notice.error{border-color:#e1a9b1;background:#fff6f7}
.jt-widget-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:140px;color:#9a9da4;text-transform:uppercase;letter-spacing:1.4px;font-size:11px;text-align:center;padding:20px}.jt-widget-zone .widget{margin:0}.jt-widget-zone img{max-width:100%;height:auto}
.jt-menu-toggle{display:none}

.jt-widget-zone{width:100%;height:100%}.jt-widget-zone>.widget{width:100%;height:100%}.custom-logo-link{display:inline-block}.custom-logo{height:auto;max-width:100%}

/* JTribune v1.1 customization, accessibility and responsive navigation */
.jt-skip-link:focus{position:fixed!important;top:10px;left:10px;z-index:1000000;border-radius:6px;box-shadow:0 4px 18px rgba(0,0,0,.18)}
.jt-mobile-menu-button{display:none;border:0;background:transparent;color:inherit;font-size:24px;line-height:1;padding:6px 8px;cursor:pointer;border-radius:8px}
.jt-mobile-menu-button:focus-visible,.jt-menu-toggle:focus-visible,.jt-mobile-menu-close:focus-visible,.arrow:focus-visible,.tab:focus-visible,.pill:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.mobile-nav-drawer[hidden],.jt-drawer-backdrop[hidden]{display:none!important}
.mobile-nav-drawer{position:fixed;inset:0 auto 0 0;width:min(390px,88vw);background:#fff;z-index:1002;padding:20px 20px 32px;overflow-y:auto;box-shadow:16px 0 50px rgba(0,0,0,.18)}
.jt-drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:1001}
.mobile-nav-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid #e5e5e7;font-size:22px}
.jt-mobile-menu-close{border:0;background:#f3f3f4;width:40px;height:40px;border-radius:50%;font-size:27px;cursor:pointer}
.mobile-nav-search{margin:18px 0}.mobile-nav-search form{display:flex}.mobile-nav-search label{flex:1}.mobile-nav-search .search-field{width:100%;height:44px;border:1px solid #d8dadd;border-radius:24px 0 0 24px;padding:0 15px}.mobile-nav-search .search-submit{height:44px;border:0;background:var(--brand);color:#fff;border-radius:0 24px 24px 0;padding:0 18px;font-weight:700}
.mobile-nav-drawer nav .menu,.mobile-nav-drawer nav .jt-menu-fallback{display:block!important;list-style:none;margin:0;padding:0}.mobile-nav-drawer nav li{border-bottom:1px solid #eee}.mobile-nav-drawer nav a{display:block;padding:15px 3px;font-weight:800}
.mobile-quick-links{display:flex;gap:10px;margin-top:18px}.mobile-quick-links a{border:1px solid #d6d8dc;border-radius:22px;padding:10px 14px;font-weight:700}
body.jt-drawer-open{overflow:hidden}
.socials a{width:34px;height:34px;border:1px solid #d4d6da;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;transition:.15s ease}.socials a:hover{color:var(--brand);border-color:var(--brand);transform:translateY(-1px)}
.jt-hide-rail .left-rail{display:none}.jt-hide-rail .shell{margin-left:0}
.jt-hide-excerpts .lead .summary,.jt-hide-excerpts .trend-item p,.jt-hide-excerpts .archive-card p{display:none}
.jt-archive-cols-2 .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jt-archive-cols-4 .archive-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.jt-archive-cols-4 .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.jt-mobile-menu-button{display:inline-grid;place-items:center}.brand,.logo{display:flex!important;align-items:center;gap:7px}.jt-archive-cols-2 .archive-grid,.jt-archive-cols-4 .archive-grid{grid-template-columns:1fr}}
.left-rail .jt-menu-toggle{display:grid;place-items:center;border:0;background:#fff;cursor:pointer}
@media(max-width:900px){.jt-mobile-menu-button{display:inline-grid;place-items:center}}

/* JTribune 4.x newsroom platform additions */
.jt-story-kicker,.jt-section-eyebrow{font:800 11px/1.2 Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--brand,#b30d26)}
.jt-story-labels{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}.jt-story-labels span{display:inline-flex;background:var(--brand,#b30d26);color:#fff;padding:4px 7px;border-radius:3px;font:800 10px/1 Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase}.jt-author-role{display:block;font-size:11px;color:#777;margin-top:1px}.jt-editor-note,.jt-correction{padding:14px 16px;margin:18px 0;border-left:4px solid var(--brand,#b30d26);background:#f7f7f8;font-size:.95em}.jt-source-attribution{font-size:12px;color:#71757c}.jt-photo-credit{font-weight:700;color:#555}
.jt-pop-tabs{display:flex;flex-wrap:wrap;gap:5px}.jt-pop-tabs .tab{font-size:11px;padding-inline:8px}
.jt-section-home{padding-bottom:55px}.jt-section-head{display:flex;justify-content:space-between;align-items:end}.jt-section-head h1{margin-top:6px}.jt-category-leads{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:28px;margin:12px 0 30px}.jt-category-hero{position:relative}.jt-category-hero>a{display:block;color:#111;text-decoration:none}.jt-category-hero img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}.jt-category-hero-copy h2{font:800 clamp(30px,3vw,52px)/1.02 Georgia,serif;margin:10px 0}.jt-category-hero-copy p{font-size:16px;color:#575b61;max-width:850px}.jt-category-secondary{display:grid;gap:22px}.jt-category-secondary article{border-bottom:1px solid #e4e5e7;padding-bottom:18px}.jt-category-secondary img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:7px}.jt-category-secondary h3{font:800 22px/1.1 Georgia,serif;margin:8px 0}.jt-category-stream{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:44px;margin-top:32px}.jt-category-newsletter{margin-top:22px}
.jt-search-head{display:grid;gap:18px}.jt-search-filter{display:grid;grid-template-columns:minmax(240px,1fr) 190px 170px auto;gap:8px;position:relative}.jt-search-filter input,.jt-search-filter select{height:44px;border:1px solid #ccd0d5;border-radius:6px;padding:0 12px;background:#fff}.jt-search-filter button{height:44px;border:0;background:var(--brand,#b30d26);color:#fff;border-radius:6px;padding:0 18px;font-weight:800}.jt-search-results{max-width:1000px}.jt-search-result{display:grid;grid-template-columns:250px 1fr;gap:20px;padding:22px 0;border-bottom:1px solid #e3e4e6}.jt-search-result img{width:100%;height:160px;object-fit:cover;border-radius:7px}.jt-search-result h2{font:800 27px/1.08 Georgia,serif;margin:5px 0}.jt-search-result p{color:#62666c}
.jt-author-head{display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center;padding:28px 0;border-bottom:1px solid #ddd;margin-bottom:28px}.jt-author-avatar img{border-radius:50%;width:140px;height:140px;object-fit:cover}.jt-author-head h1{font:800 44px/1 Georgia,serif;margin:7px 0}.jt-author-title{font-weight:800;color:#656970}.jt-author-links{display:flex;gap:12px;flex-wrap:wrap}.jt-author-links a{font-weight:800;color:var(--brand,#b30d26)}
.copyright .jt-open-consent{color:inherit;text-decoration:underline}
@media(max-width:900px){.jt-category-leads,.jt-category-stream{grid-template-columns:1fr}.jt-category-secondary{grid-template-columns:1fr 1fr}.jt-search-filter{grid-template-columns:1fr 1fr}.jt-search-filter input{grid-column:1/-1}.jt-search-result{grid-template-columns:180px 1fr}}
@media(max-width:620px){.jt-category-secondary{grid-template-columns:1fr}.jt-search-filter{grid-template-columns:1fr}.jt-search-filter input{grid-column:auto}.jt-search-result{grid-template-columns:1fr}.jt-search-result img{height:auto}.jt-author-head{grid-template-columns:1fr}.jt-author-head h1{font-size:36px}}
.jt-widget-zone:empty{display:none}.jt-home-top-ad:has(.jt-widget-zone:empty),.jt-home-after-hero-ad:has(.jt-widget-zone:empty),.ad-wide:has(.jt-widget-zone:empty),.side-ad:has(.jt-widget-zone:empty),.head-ad:has(.jt-widget-zone:empty),.wide-ad:has(.jt-widget-zone:empty){display:none!important}

/* JTribune 4.x accessibility hardening */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #8f0a20;outline-offset:3px}
[hidden]{display:none!important}.jt-skip-link{font-weight:800}.jt-skip-link:focus{top:8px!important;left:8px!important;border:2px solid #111;border-radius:6px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}


/* JTribune 4.2 Stability & Launch Edition */
.jt-emergency-banner{position:relative;z-index:1005;background:#8b0015;color:#fff;display:flex;gap:14px;align-items:center;justify-content:center;padding:10px 18px;font-size:13px;letter-spacing:.01em}.jt-emergency-banner strong{font-size:12px;letter-spacing:.08em}.jt-emergency-home{max-width:1280px;margin:0 auto;padding:34px 28px 80px}.jt-emergency-hero{border-bottom:4px solid #111;padding-bottom:36px}.jt-emergency-kicker{display:inline-flex;background:#8b0015;color:#fff;padding:7px 10px;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px}.jt-emergency-story{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:34px;align-items:center}.jt-emergency-story img{width:100%;height:auto;display:block}.jt-emergency-story h1{font-family:Georgia,serif;font-size:clamp(38px,5vw,72px);line-height:.98;margin:0 0 16px;color:#111}.jt-emergency-story p{font-size:19px;line-height:1.5;color:#565b64;margin:0}.jt-emergency-latest{padding-top:30px}.jt-emergency-latest>h2{font-family:Georgia,serif;font-size:30px;margin:0 0 20px}.jt-emergency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 26px}.jt-emergency-grid article{border-top:1px solid #d9dadd;padding:18px 0}.jt-emergency-grid h3{font-family:Georgia,serif;font-size:20px;line-height:1.15;margin:0 0 8px}.jt-emergency-grid span{font-size:12px;color:#6e727b}.jt-emergency-mode .jt-home-top-ad,.jt-emergency-mode .jt-home-after-hero-ad,.jt-emergency-mode .ad-wide,.jt-emergency-mode .side-ad{display:none!important}
@media(max-width:800px){.jt-emergency-banner{align-items:flex-start;flex-direction:column;gap:2px}.jt-emergency-home{padding:24px 16px 60px}.jt-emergency-story{display:block}.jt-emergency-story h1{font-size:40px;margin-top:18px}.jt-emergency-grid{grid-template-columns:1fr}}
