/* WordPress integration fixes only — original DEM CSS remains the design source. */
html,body{font-family:"Matter","Manrope",Arial,sans-serif}
body{font-size:var(--dem-admin-body,16px);font-weight:var(--dem-body-weight,400)}
:is(.hero-title,.football-title,.info-hero-title,.h1){font-weight:var(--dem-title-weight,700)!important;font-size:clamp(42px,5.35vw,var(--dem-admin-h1,82px))!important}
:is(.h2,.news-zone .h2,.split-head h2){font-weight:var(--dem-title-weight,700)!important;font-size:clamp(34px,4.05vw,var(--dem-admin-h2,62px))!important}
:is(.h3,.news-detail-body h2){font-weight:var(--dem-title-weight,700)!important;font-size:clamp(24px,3vw,var(--dem-admin-h3,46px))}
.site-header a,.menu-layer a,.nav a{font-weight:var(--dem-nav-weight,700)}
.hero-media video,.dem-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.news-card.dem-card-link{display:flex;color:inherit;text-decoration:none;cursor:pointer}.news-card.dem-card-link .read{pointer-events:none}.news-card.dem-card-link:focus-visible{outline:3px solid #78be20;outline-offset:4px}
.news-related{position:relative;z-index:2;padding-bottom:clamp(72px,8vw,130px);clear:both}.news-related-grid{position:relative;z-index:2}
.single-dem_news main.news-detail{overflow:clip}.single-dem_news .news-detail-cover{width:min(1040px,calc(100% - (var(--page-gutter)*2)));min-height:0!important;height:clamp(190px,22vw,300px)!important;margin-top:24px!important}
.single-dem_event .news-detail-cover,.single-dem_event figure.news-detail-cover{width:min(860px,calc(100% - (var(--page-gutter)*2)));min-height:0!important;max-height:none;margin-top:24px}.single-dem_event .news-detail-cover img{height:clamp(190px,25vw,330px)!important;min-height:0!important;object-fit:cover}
.single-dem_event .news-related,.single-dem_news .news-related{margin-bottom:0!important}
.footer{position:relative;z-index:1;clear:both}
.dem-footer-widget{display:grid;gap:10px}.dem-footer-widget p{margin:0}.dem-footer-widget ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}.dem-footer-widget a{color:inherit}
@media(max-width:620px){.single-dem_event .news-detail-cover img{height:190px!important}.single-dem_news .news-detail-cover{height:190px!important;min-height:0!important;margin-top:18px!important}.news-related{padding-bottom:72px}}

/* v1.0.8 — preserve source page shells/cascade without inventing new section backgrounds. */
.info-page main.page,.history-page main.page{overflow:clip}
.single-dem_news .news-detail-cover img{height:100%!important;min-height:0!important;object-fit:cover}
.single-dem_news .news-detail-cover.is-logo img{object-fit:contain!important;padding:clamp(28px,5vw,72px)!important;background:#eef5ff}
.single-dem_news .news-related{width:min(var(--container),calc(100% - (var(--page-gutter)*2)));margin:var(--section-y-compact) auto 0!important;padding-bottom:var(--section-y)!important}

/* v1.0.9 — news detail uses the selected cover as the hero media. */
.single-dem_news .news-cover-hero{
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  border-color:rgba(0,21,47,.08)!important;
  color:#fff!important;
}
.single-dem_news .news-cover-hero .football-title{color:#fff!important;text-shadow:0 3px 30px rgba(0,12,30,.16)}
.single-dem_news .news-cover-hero .football-lead{color:rgba(255,255,255,.9)!important}
.single-dem_news .news-cover-hero .crumbs,
.single-dem_news .news-cover-hero .crumbs a{color:rgba(255,255,255,.76)!important}
.single-dem_news .news-cover-hero .hero-label{color:var(--lime,#c5ff64)!important}
.single-dem_news .news-cover-hero:after{color:rgba(255,255,255,.045)!important}
.single-dem_news .news-cover-hero .hero-side-card{
  background:rgba(255,255,255,.9)!important;
  border-color:rgba(255,255,255,.46)!important;
  box-shadow:0 24px 70px rgba(0,17,39,.18)!important;
  backdrop-filter:blur(18px) saturate(1.08);
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
}


/* v1.0.11 — source-faithful mobile hero + readable news hero meta card. */
.single-dem_news .news-cover-hero .hero-side-card small{color:var(--blue)!important}
.single-dem_news .news-cover-hero .hero-side-card strong{color:var(--navy)!important;text-shadow:none!important}
.single-dem_news .news-cover-hero .hero-side-card p{color:#718196!important}
@media(max-width:820px){
  body.home .hero-shell{padding-left:0!important;padding-right:0!important;padding-top:0!important}
  body.home .hero{width:100%!important;max-width:none!important;border-radius:0!important;height:100svh!important;min-height:100svh!important}
  body.home .hero-media,body.home .hero-media img,body.home .hero-media video{width:100%!important;height:100%!important;inset:0!important}
  body.home .site-header{top:12px!important}
}
/* Imported forms are sections of their page, never standalone navigational chrome. */
.dem-mail-form{position:relative;z-index:1}.dem-mail-form input[type=hidden]{display:none!important}

/* v1.0.11 route-audit fixes. */
.single-dem_news .news-cover-hero .hero-side-card{color:var(--navy)!important}.single-dem_news .news-cover-hero .hero-side-card strong{color:var(--navy)!important}.single-dem_news .news-cover-hero .hero-side-card p{color:#65758a!important}
@media(max-width:820px){body.home{overflow-x:hidden}body.home main.page{width:100%;max-width:none}body.home .hero-shell{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;padding:0!important}body.home .hero{width:100vw!important;max-width:none!important;min-height:100svh!important;height:100svh!important;border-radius:0!important;margin:0!important}body.home .hero-media{position:absolute!important;inset:0!important}}
/* Exact source forms stay embedded in the page; WordPress only changes their handler invisibly. */
.dem-form.dem-mail-form{width:100%}.dem-form.dem-mail-form input[name="action"],.dem-form.dem-mail-form input[name="form_id"],.dem-form.dem-mail-form input[name="dem_form_nonce"]{display:none!important}
/* Stacked history cards: preserve source card design, only layer their scroll depth. */
.history-page .history-timeline{isolation:isolate}.history-page .era-card{will-change:transform}.history-page .pin-spacer{z-index:auto!important}
