/*
Theme Name: FedFront
Theme URI: https://fedfront.com
Author: FedFront
Description: Custom black-panel political news theme for FedFront — Politics from the Front Lines. Large bold white headlines over full-bleed photos, italic red category tags, thick red dividers.
Version: 1.0
Text Domain: fedfront
*/

:root{
  --red:#E31937; --black:#000000; --white:#FFFFFF; --offwhite:#F1F1EE;
  --gray:#6B6B6B; --line:#E2E2DE;
}
*{box-sizing:border-box;}
html{max-width:100%; overflow-x:hidden;}
body{margin:0; background:#fff; color:#151515; font-family:'Inter',sans-serif; font-size:17px; max-width:100%; overflow-x:hidden;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1320px; margin:0 auto; padding:0 clamp(16px,3vw,40px); width:100%;}
.screen-reader-text{position:absolute; left:-9999px;}

/* Fix: grid/flex items default to min-width:auto, which stops them from
   shrinking below their content's natural width — this is what was
   forcing headlines and cards to overflow past the screen edge on
   mobile instead of wrapping. Forcing min-width:0 lets them shrink and
   wrap normally. */
.content-layout, .article-layout, .bp-card, .bp-card.large,
.content-layout > *, .article-layout > *, .bp-card > *, .bp-card.large > * {
	min-width: 0;
}
.entry-title, .bp-panel h2, h1, h2, h3 {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* placeholder image block (used when a post has no featured image) */
.ph{position:relative; width:100%; height:100%; background:linear-gradient(135deg,#DADADA,#C4C4C4); display:flex; align-items:center; justify-content:center;}
.ph svg{width:14%; min-width:26px; max-width:54px; opacity:.4;}
.ph.tint-dark{background:linear-gradient(135deg,#2A2A2A,#1A1A1A);}
.ph.tint-dark svg{opacity:.35;}

/* reading progress bar (single post only) */
.progress-track{position:fixed; top:0; left:0; width:100%; height:4px; background:var(--line); z-index:100;}
.progress-fill{height:100%; width:0%; background:var(--red); transition:width .1s;}

/* ===== header ===== */
.masthead{background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;}
.masthead .wrap{display:flex; align-items:center; gap:24px; height:74px; flex-wrap:wrap;}
.hamburger{display:flex; flex-direction:column; gap:4px; cursor:pointer;}
.hamburger span{width:24px; height:3px; background:var(--red); display:block;}
.site-logo{display:flex; flex-direction:column; line-height:1;}
.site-logo .small{font-size:10px; font-weight:700; letter-spacing:.25em;}
.site-logo .big{font-family:'Archivo Black',sans-serif; font-size:25px; letter-spacing:-.01em; color:var(--black);}
.site-logo .big span{color:var(--red);}
.site-tagline{font-size:11.5px; font-weight:700; color:var(--gray); letter-spacing:.04em; text-transform:uppercase; margin-top:2px;}
.primary-nav{display:flex; gap:0; margin-left:10px;}
.primary-nav ul{list-style:none; display:flex; margin:0; padding:0;}
.primary-nav a{font-weight:800; font-size:13.5px; letter-spacing:.03em; padding:8px 14px; text-transform:uppercase; white-space:nowrap; display:block;}
.primary-nav .current-menu-item a, .primary-nav a:hover{color:var(--red);}
.header-right{margin-left:auto; display:flex; align-items:center; gap:16px;}
.subscribe-btn{background:var(--red); color:#fff; padding:9px 22px; border-radius:3px; font-weight:800; font-size:13px; text-transform:uppercase; white-space:nowrap;}
.search-icon{width:20px; height:20px; border:2.5px solid var(--black); border-radius:50%; position:relative; flex-shrink:0; cursor:pointer;}
.search-icon::after{content:""; position:absolute; width:8px; height:2.5px; background:var(--black); bottom:-5px; right:-5px; transform:rotate(45deg);}
@media(max-width:980px){.primary-nav{display:none;}}

@media(max-width:600px){
	.masthead .wrap{height:auto; padding:12px clamp(14px,4vw,24px); gap:10px;}
	.site-logo .small{font-size:8px; letter-spacing:.2em;}
	.site-logo .big{font-size:19px;}
	.site-tagline{display:none;}
	.subscribe-btn{padding:8px 14px; font-size:11.5px;}
	.hamburger span{width:20px;}
}

.site-search-form{max-width:1320px; margin:0 auto; padding:14px clamp(16px,3vw,40px); border-bottom:1px solid var(--line); display:none;}
.site-search-form.open{display:block;}
.site-search-form input[type="search"]{width:100%; padding:12px 16px; border:1px solid var(--line); font-size:16px;}

.breadcrumb{padding:20px 0 0; font-size:13.5px; color:var(--gray); font-weight:600;}
.breadcrumb .sep{margin:0 8px; color:var(--line);}

/* ===== black-panel story card (homepage / archive / category) ===== */
.bp-card{display:grid; grid-template-columns:minmax(160px,36%) 1fr; background:var(--black); margin-bottom:12px;}
.bp-card.large{grid-template-columns:minmax(200px,42%) 1fr;}
.bp-card .thumb{aspect-ratio:1/1; overflow:hidden;}
.bp-card .thumb img{width:100%; height:100%; object-fit:cover;}
.bp-panel{color:#fff; display:flex; flex-direction:column; justify-content:center; padding:26px 30px;}
.bp-tag{font-style:italic; font-weight:800; font-size:15px; letter-spacing:.01em; color:var(--red); text-transform:uppercase; margin-bottom:10px;}
.bp-panel h2, .bp-panel h2 a{font-family:'Inter',sans-serif; font-weight:900; font-size:26px; line-height:1.16; letter-spacing:-.01em; color:#fff;}
.bp-card.large .bp-panel h2{font-size:32px;}
.bp-bar{height:8px; background:var(--red); margin-bottom:22px;}
.bp-meta{font-size:12.5px; color:#B8B8B8; font-weight:600; margin-top:10px;}

@media(max-width:700px){
  .bp-card{grid-template-columns:1fr;}
  .bp-card .thumb{aspect-ratio:16/9;}
  .bp-panel h2{font-size:22px !important;}
}

/* ===== archive / homepage layout ===== */
.content-layout{display:grid; grid-template-columns:1fr 300px; gap:30px; padding:26px 0 60px;}
@media(max-width:1080px){.content-layout{grid-template-columns:1fr;}}
.pagination{display:flex; gap:10px; justify-content:center; padding:20px 0; font-weight:700;}
.pagination a, .pagination span{padding:8px 14px; border:1px solid var(--line);}
.pagination .current{background:var(--black); color:#fff;}

/* ===== sidebar ===== */
.sidebar{display:flex; flex-direction:column; gap:20px;}
.sidebar-widget h4{font-family:'Inter',sans-serif; font-weight:900; font-size:14px; text-transform:uppercase; letter-spacing:.05em; border-bottom:3px solid var(--black); padding-bottom:10px; margin-bottom:16px;}
.side-ad{width:100%; aspect-ratio:300/250; background:var(--offwhite); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--gray); font-size:12.5px; font-weight:700; text-transform:uppercase; margin-bottom:20px;}
.side-story{background:var(--black); margin-bottom:16px;}
.side-story .thumb{width:100%; aspect-ratio:1/1; overflow:hidden;}
.side-story .thumb img{width:100%; height:100%; object-fit:cover;}
.side-story .panel{color:#fff; padding:14px 16px;}
.side-story .tag{font-style:italic; font-weight:800; font-size:12px; color:var(--red); text-transform:uppercase; margin-bottom:6px;}
.side-story h5, .side-story h5 a{font-family:'Inter',sans-serif; font-weight:900; font-size:16px; line-height:1.25; color:#fff;}
.side-newsletter{background:var(--black); color:#fff; padding:22px; text-align:center;}
.side-newsletter h4{color:#fff; border:none; padding:0; margin-bottom:8px; font-size:15px;}
.side-newsletter p{font-size:12.5px; color:#B8B8B8; margin-bottom:14px; line-height:1.5;}
.side-newsletter input{width:100%; padding:9px 11px; border:none; border-radius:2px; margin-bottom:9px; font-size:13px;}
.side-newsletter button{width:100%; background:var(--red); color:#fff; border:none; padding:10px; font-weight:800; font-size:12px; text-transform:uppercase; border-radius:2px; cursor:pointer;}

/* ===== single article page ===== */
.article-layout{display:grid; grid-template-columns:1fr 300px; gap:56px; padding:26px 0 0; align-items:start;}
.main-col{max-width:800px; width:100%;}
@media(max-width:1080px){.article-layout{grid-template-columns:1fr;} .main-col{max-width:100%;}}

.art-tag{display:inline-block; font-style:italic; font-weight:800; font-size:clamp(15px,1.6vw,18px); color:var(--red); text-transform:uppercase; margin-bottom:18px;}
.entry-title{font-family:'Inter',sans-serif; font-weight:900; font-size:clamp(30px,4.4vw,50px); line-height:1.1; letter-spacing:-.01em; margin:0 0 22px;}
.entry-dek{font-family:'Source Serif 4',serif; font-size:clamp(19px,2.2vw,24px); line-height:1.55; color:#333; margin-bottom:24px;}
.byline{display:flex; align-items:center; gap:14px; font-size:14.5px; color:var(--gray); font-weight:600; padding:20px 0; margin-bottom:36px; border-top:2px solid var(--black); border-bottom:1px solid var(--line); flex-wrap:wrap;}
.byline b{color:#151515;}
.byline .avatar img{width:44px; height:44px; border-radius:50%; flex-shrink:0;}
.byline .share{margin-left:auto; display:flex; gap:8px;}
.byline .share a{width:34px; height:34px; border:2px solid var(--black); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#151515;}

.hero-thumb{width:100%; aspect-ratio:16/9; margin-bottom:10px; overflow:hidden;}
.hero-thumb img{width:100%; height:100%; object-fit:cover;}
.wp-caption-text, .entry-caption{font-size:13.5px; color:var(--gray); font-style:italic; margin-bottom:40px;}

.entry-content{font-family:'Source Serif 4',serif; font-size:clamp(18px,1.9vw,24px); line-height:1.85; color:#161616;}
.entry-content p{margin-bottom:32px;}
.entry-content p:first-of-type::first-letter{
  font-family:'Inter',sans-serif; font-weight:900; font-size:clamp(56px,7vw,84px); float:left; line-height:.78;
  padding:8px 12px 0 0; color:var(--red);
}
.entry-content h2{font-family:'Inter',sans-serif; font-weight:900; font-size:clamp(24px,3vw,34px); color:var(--black); margin:48px 0 22px; line-height:1.2;}
.entry-content blockquote{font-family:'Source Serif 4',serif; font-style:italic; font-weight:600; font-size:clamp(22px,2.8vw,32px); line-height:1.48; color:var(--black); border-left:7px solid var(--red); padding:10px 0 10px 28px; margin:46px 0;}
.entry-content img{width:100%; aspect-ratio:16/9; object-fit:cover; margin:40px 0 10px;}

.tags-links{display:flex; flex-wrap:wrap; gap:10px; margin:48px 0 0;}
.tags-links a{font-size:13.5px; font-weight:800; padding:8px 16px; background:var(--offwhite); border:1px solid var(--line); border-radius:20px;}
.tags-links a:hover{background:var(--black); color:#fff; border-color:var(--black);}

.author-box{display:flex; gap:18px; background:var(--offwhite); border:1px solid var(--line); padding:24px; margin-top:40px; flex-wrap:wrap;}
.author-box .avatar img{width:68px; height:68px; border-radius:50%; flex-shrink:0;}
.author-box h3{font-family:'Inter',sans-serif; font-weight:900; font-size:19px; margin-bottom:6px;}
.author-box p{font-size:14.5px; color:var(--gray); line-height:1.6;}

.related{padding:60px 0 0;}
.related h2{font-family:'Inter',sans-serif; font-weight:900; font-size:clamp(22px,2.6vw,28px); margin-bottom:22px; border-bottom:3px solid var(--black); padding-bottom:12px;}
.rel-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
@media(max-width:820px){.rel-grid{grid-template-columns:1fr;}}
.rel-card{background:var(--black);}
.rel-card .thumb{aspect-ratio:1/1; overflow:hidden;}
.rel-card .thumb img{width:100%; height:100%; object-fit:cover;}
.rel-card .panel{color:#fff; padding:16px 18px;}
.rel-card .tag{font-style:italic; font-weight:800; font-size:12.5px; color:var(--red); text-transform:uppercase; margin-bottom:6px;}
.rel-card h3, .rel-card h3 a{font-family:'Inter',sans-serif; font-weight:900; font-size:17px; line-height:1.25; color:#fff;}

/* ===== comments ===== */
.comments-area{padding:56px 0 70px; max-width:800px;}
.comments-title{font-family:'Inter',sans-serif; font-weight:900; font-size:24px; margin-bottom:24px;}
.comment-list{list-style:none; margin:0; padding:0;}
.comment-body{display:flex; gap:16px; padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid var(--line);}
.comment-author-avatar img{width:44px; height:44px; border-radius:50%; flex-shrink:0;}
.comment-meta b{font-size:14.5px;}
.comment-meta .comment-time{font-size:12.5px; color:var(--gray); margin-left:8px; font-weight:600;}
.comment-content p{font-size:15.5px; line-height:1.6; margin-top:6px; color:#333;}
.comment-form textarea{width:100%; min-height:90px; padding:14px; border:1px solid var(--line); font-family:'Inter',sans-serif; font-size:15px; resize:vertical; margin-bottom:12px;}
.comment-form input[type="text"], .comment-form input[type="email"]{padding:10px 12px; border:1px solid var(--line); font-size:14px; margin-bottom:10px; margin-right:10px;}
.comment-form input[type="submit"]{background:var(--black); color:#fff; border:none; padding:12px 26px; font-weight:800; font-size:13.5px; text-transform:uppercase; border-radius:2px; cursor:pointer;}

/* ===== footer ===== */
footer.site-footer{background:var(--black); color:#9A9A9A; padding:32px 0; text-align:center; font-size:13.5px;}
.footer-logo{font-family:'Archivo Black',sans-serif; font-size:19px; color:#fff; margin-bottom:8px;}
.footer-logo span{color:var(--red);}
