
:root{
  /* Wider newsroom container so articles don't feel "mobile" on desktop */
  --max:1280px;
  --gutter:16px;
  --ink:#111;
  --muted:#6b6b6b;
  --rule:#e9e9e9;
  --bg:#fff;

  --accent:#e53935;
  --shadow:0 10px 30px rgba(0,0,0,.10);

  --sans: system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial;
  --serif: ui-serif, Georgia, Times, "Times New Roman", serif;
}

/* Global */
body{ background:var(--bg); color:var(--ink); }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }
.wp-site-blocks{ padding:0; }

.dsd-wrap{ max-width:var(--max); margin:0 auto; padding:0 var(--gutter); }

/* Header */
.dsd-header{
  background:#fff;
  border-bottom:1px solid var(--rule);
}
.dsd-header__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:28px var(--gutter) 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.dsd-logo{
  font: 900 56px/1 var(--sans);
  letter-spacing:-0.03em;
  margin:0;
}
@media (max-width: 900px){
  .dsd-header__inner{ padding:22px var(--gutter) 24px; }
  .dsd-logo{ font-size:40px; }
}

/* ESPN-ish Top Nav + mega menu */
\.dsd-topnav-wrap{
  position:sticky;
  top:0;
  z-index:70;
  background:transparent;
  width:100%;
  border:0;
}
.dsd-topnav{
  max-width:1120px;
  margin:0 auto;
  padding:10px var(--gutter);
  display:flex;
  align-items:center;
  gap:22px;
}
.dsd-topnav__link{
  color:#111;
  font: 900 13px/1 var(--sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  padding:2px 2px;
  text-decoration:none !important;
  background:none !important;
}
.dsd-topnav__link:hover{ text-decoration:none; }

/* Subscribe button: prominent, right-aligned */
.dsd-subscribe-btn{
  margin-left:auto;
  background:#e53935 !important;
  color:#fff !important;
  padding:10px 18px;
  border-radius:999px;
  font: 900 13px/1 var(--sans);
  letter-spacing:.10em;
  text-transform:uppercase;
  border:1px solid #e53935;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
  text-decoration:none !important;
}
.dsd-subscribe-btn:hover{ filter:brightness(.95); }
.dsd-subscribe-btn:focus-visible{
  outline:3px solid rgba(255,255,255,.35);
  outline-offset:3px;
}

/* A/B Variant B (stored in localStorage): red CTA */
.dsd-subscribe-variant-b .dsd-subscribe-btn{
  background:var(--accent);
  border-color:var(--accent);
}
.dsd-subscribe-variant-b .dsd-subscribe-btn:hover{
  background:#fff;
  color:var(--accent) !important;
}

/* Sticky on scroll (applies after 80px) */
.dsd-topnav-wrap.is-sticky{
  position:sticky;
  top:0;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}

/* Mega dropdown panel */
.dsd-mega{
  display:none;
  position:absolute;
  left:0; right:0;
  top:100%;
  background:#fff;
  border-bottom:1px solid var(--rule);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}
.dsd-mega.is-open{ display:block; }
.dsd-mega__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:16px var(--gutter) 20px;
}
.dsd-mega__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}
.dsd-mega__title{
  font:900 12px/1 var(--sans);
  letter-spacing:.10em;
  text-transform:uppercase;
}
.dsd-mega__close{
  width:40px; height:40px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fff;
  font-size:22px;
  line-height:1;
}
.dsd-mega__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
@media (max-width: 900px){
  .dsd-topnav{ justify-content:flex-start; }
  .dsd-subscribe-btn{ margin-left:0; }
  .dsd-mega{ position:static; box-shadow:none; }
  .dsd-mega__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.dsd-mega__card{
  display:block;
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.dsd-mega__thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  background:#f2f2f2;
}
.dsd-mega__headline{
  padding:10px 10px 12px;
  font:900 14px/1.2 var(--sans);
}

/* Front page titles match logo vibe */
.dsd-card .wp-block-post-title a{
  font: 900 28px/1.1 var(--sans);
  letter-spacing:-0.03em;
}
@media (max-width: 900px){
  .dsd-card .wp-block-post-title a{ font-size:22px; }
}
.dsd-date{
  font: 800 12px/1.2 var(--sans);
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-top:6px;
}
.dsd-excerpt{
  font: 400 16px/1.6 var(--serif);
  color:#222;
}

/* Single layout: left rail + wide content */
.dsd-single{
  max-width:var(--max);
  margin:28px auto;
  padding:0 var(--gutter);
  display:grid;
  /* Desktop ratio: article ~70% / rail ~30% */
  grid-template-columns: minmax(0, 1fr) 340px;
  gap:46px;
}

/* Prevent WP's constrained layout from shrinking post content inside the grid */
.dsd-single__main,
.dsd-prose,
.dsd-single__main .wp-block-post-content{
  max-width:none !important;
}
.dsd-single__main{ min-width:0; }
@media (max-width: 980px){
  .dsd-single{ grid-template-columns:1fr; gap:24px; }
}
.dsd-rail{
  position:sticky;
  top:90px;
  align-self:start;
}
@media (max-width: 980px){
  .dsd-rail{ position:static; }
}
.dsd-module{
  border:1px solid var(--rule);
  border-radius:14px;
  background:#fff;
  padding:16px;
  margin-bottom:16px;
}
.dsd-module__title{
  font: 900 18px/1.1 var(--sans);
  letter-spacing:-0.02em;
  margin:0 0 10px;
}

/* Popular posts: bolder newsroom-style headlines */
.dsd-module .wp-block-latest-posts{
  margin:0;
  padding:0;
}
.dsd-module .wp-block-latest-posts li{
  list-style:none;
  margin:0 0 10px;
}
.dsd-module .wp-block-latest-posts a{
  font: 900 15px/1.25 var(--sans);
  letter-spacing:-0.01em;
}
.dsd-module .wp-block-latest-posts__post-date{
  display:block;
  margin-top:3px;
  font: 600 12px/1.2 var(--sans);
  color:var(--muted);
  letter-spacing:.02em;
}

/* Single header */
.dsd-h1{
  font: 900 56px/1.05 var(--sans);
  letter-spacing:-0.03em;
  margin:0 0 10px;
}
@media (max-width: 900px){
  .dsd-h1{ font-size:40px; }
}
.dsd-meta{
  font: 700 13px/1.3 var(--sans);
  color:var(--muted);
  letter-spacing:.04em;
  text-transform:uppercase;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
@media (min-width: 901px){
  .dsd-meta{ white-space:nowrap; }
}
.dsd-divider{
  height:1px;
  background:var(--rule);
  margin:16px 0 18px;
}
.dsd-prose{
  font: 400 20px/1.85 var(--serif);
  color:#111;
}

/* Make in-article hyperlinks visible (keep nav/headline links clean) */
.dsd-prose a,
.dsd-prose a:visited,
.wp-block-post-content a,
.wp-block-post-content a:visited{
  color:#0a58ca;
  text-decoration:underline;
  text-underline-offset:2px;
}
.dsd-prose a:hover,
.wp-block-post-content a:hover{
  text-decoration-thickness:2px;
}
body.dsd-dropcaps .dsd-prose p:first-of-type::first-letter{
  float:left;
  font: 700 90px/0.9 var(--serif);
  padding:10px 12px 0 0;
}

/* Share buttons (inline) */
.dsd-share{
  display:flex;
  gap:10px;
  margin-top:14px;
}
.dsd-share a{
  width:40px; height:40px;
  border-radius:999px;
  border:1px solid var(--rule);
  display:grid;
  place-items:center;
  font:900 14px/1 var(--sans);
  background:#fff;
}
.dsd-share a:hover{ box-shadow:var(--shadow); }

/* Author box (single posts) */
.dsd-author-box{
  margin: 28px auto 10px;
  padding: 18px 18px 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.dsd-author-box__kicker{
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  color: #555;
}
.dsd-author-box__name{
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 6px;
}
.dsd-author-box__name a{ color: var(--ink); text-decoration: none; }
.dsd-author-box__name a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.dsd-author-box__bio{
  margin: 0 0 10px;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}
.dsd-author-box__cta{
  display: inline-block;
  margin-top: 2px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 8px 12px;
  border-radius: 999px;
  background: #fafafa;
}
.dsd-author-box__cta:hover{
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}
.dsd-author-box__recent{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.dsd-author-box__recentTitle{
  font-family: var(--sans);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #333;
  margin: 0 0 8px;
}
.dsd-author-box__recent ul{
  margin: 0;
  padding-left: 18px;
}
.dsd-author-box__recent li{
  margin: 6px 0;
}
.dsd-author-box__recent a{
  font-weight: 800;
  text-decoration: none;
}
.dsd-author-box__recent a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ===== NAV HOVER STACKING FIX (Chrome/Safari) ===== */
/* Ensure header + dropdown/mega menu always sit above sticky rails/embeds */
.dsd-header,
.dsd-topnav-wrap{
  position: relative;
  z-index: 10000;
}

.dsd-topnav-wrap{
  position: sticky;
  top: 0;
  background: #fff; /* keeps text-only feel, prevents transparency artifacts */
}

/* Any dropdown / mega panels */
.dsd-mega,
.dsd-mega-panel,
.dsd-mega-menu,
.dsd-nav-dropdown,
.dsd-topnav .sub-menu,
.dsd-topnav .menu-item-has-children > .sub-menu{
  position: absolute;
  z-index: 10001;
}

/* Prevent main content / sidebar sticky rails from overlapping nav hover */
.dsd-main,
.dsd-content,
.dsd-sidebar,
.dsd-rail,
.wp-site-blocks,
.site,
#page{
  position: relative;
  z-index: 1;
}

/* Sticky sidebars sometimes get a z-index in browsers; force them below header */
.dsd-sidebar *,
.dsd-rail *{
  z-index: auto;
}


/* ===== SECTION FRONTS ===== */
.dsd-section{ padding: 18px 16px 48px; }
.dsd-section__title{
  font-size: 34px;
  font-weight: 900;
  margin: 10px 0 18px;
}
.dsd-hero__img img{ width:100%; height:auto; display:block; border-radius: 14px; }
.dsd-hero__title{ font-size: 30px; font-weight: 900; margin: 14px 0 8px; }
.dsd-popitem__title{ font-weight: 900; }


/* Desktop top banner (above nav) */
.dsd-topbanner{display:none;}
@media (min-width: 900px){
  .dsd-topbanner{display:block; margin:0 auto 10px; max-width:1200px; padding:0 16px;}
  .dsd-topbanner.is-active{display:block;}
  .dsd-topbanner__link{display:flex; gap:16px; align-items:stretch; text-decoration:none; color:inherit; border:1px solid rgba(0,0,0,.08); border-radius:14px; overflow:hidden; background:#fff;}
  .dsd-topbanner__img{flex:0 0 300px; background-size:cover; background-position:center; min-height:110px;}
  .dsd-topbanner__meta{display:flex; flex-direction:column; justify-content:center; padding:14px 16px;}
  .dsd-topbanner__kicker{font:700 12px/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; letter-spacing:.08em; text-transform:uppercase; opacity:.65; margin-bottom:6px;}
  .dsd-topbanner__title{font:800 22px/1.15 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; margin-bottom:6px;}
  .dsd-topbanner__dek{font:400 14px/1.35 ui-serif, Georgia, Times, serif; opacity:.85; max-width:720px;}
  .dsd-topbanner__link:hover{border-color:rgba(0,0,0,.16);}
}

/* Ensure top nav stays aligned after banner */
.dsd-topnav-wrap{position:relative; z-index:1000;}


/* Getty embed below single post title */
.dsd-getty-below-title{
  margin: 12px 0 14px;
}
.dsd-getty-below-title iframe{max-width:100%;}
