/*
Theme Name: SkyWarnUK
Theme URI: https://skywarn.org.uk/
Author: SkyWarnUK
Description: A clean, modern editorial WordPress theme for SkyWarnUK, with a flexible homepage, featured content, latest articles, configurable homepage sections and widget-ready footer.
Version: 3.9.13
Text Domain: skywarnuk
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
*/

:root{
  --sw-bg:#f5f7fa;
  --sw-surface:#ffffff;
  --sw-text:#17202a;
  --sw-muted:#637083;
  --sw-border:#dfe5ec;
  --sw-brand:#101820;
  --sw-accent:#1976b9;
  --sw-accent2:#0f5688;
  --sw-radius:16px;
  --sw-shadow:0 12px 34px rgba(16,24,32,.09);
  --sw-width:1440px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--sw-bg);color:var(--sw-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
a{color:var(--sw-accent);text-decoration:none}
a:hover{text-decoration:none;color:var(--sw-accent2)}
img{max-width:100%;height:auto;display:block}
.site-wrap{width:min(calc(100% - 40px),var(--sw-width));margin:auto}
.screen-reader-text{position:absolute;left:-9999px}
.site-header{background:#0c1117;color:#fff;position:relative;z-index:20}
.header-main{min-height:92px;display:flex;align-items:center;gap:32px}
.site-branding{display:flex;align-items:center;gap:14px;min-width:max-content}
.custom-logo{max-height:64px;width:auto}
.site-title{font-size:1.55rem;font-weight:800;color:#fff;letter-spacing:-.02em}
.site-description{font-size:.78rem;color:#b7c2ce;margin-top:-2px}
.main-navigation{margin-left:auto}
.main-navigation ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:5px}
.main-navigation a{display:block;color:#e8edf2;padding:12px 14px;border-radius:9px;font-weight:650;font-size:.94rem}
.main-navigation a:hover,.main-navigation .current-menu-item>a{background:rgba(255,255,255,.1);color:#fff}
.menu-toggle{display:none;margin-left:auto;background:transparent;border:1px solid #4a5663;color:#fff;padding:9px 12px;border-radius:8px}
.header-strip{height:5px;background:linear-gradient(90deg,#1976b9,#8ebfdc,#fff,#8ebfdc,#1976b9)}
.hero{position:relative;min-height:520px;display:flex;align-items:end;background:#182431;overflow:hidden}
.hero-media{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,12,18,.88),rgba(6,12,18,.56) 52%,rgba(6,12,18,.18)),linear-gradient(0deg,rgba(6,12,18,.65),transparent 55%)}
.hero-placeholder{position:absolute;inset:0;background:radial-gradient(circle at 75% 25%,#31556d 0,transparent 33%),linear-gradient(135deg,#0d1821,#243d4d)}
.hero-content{position:relative;color:#fff;padding:90px 0 72px;max-width:760px}
.eyebrow{display:inline-flex;background:rgba(255,255,255,.13);backdrop-filter:blur(6px);padding:6px 11px;border:1px solid rgba(255,255,255,.22);border-radius:99px;font-size:.76rem;text-transform:uppercase;letter-spacing:.09em;font-weight:800}
.hero h1{font-size:clamp(2.4rem,5vw,4.7rem);line-height:1.02;margin:18px 0 18px;letter-spacing:-.045em}
.hero p{font-size:1.1rem;color:#e2e8ee;max-width:660px}
.button{display:inline-flex;align-items:center;justify-content:center;background:var(--sw-accent);color:#fff!important;padding:12px 19px;border-radius:9px;font-weight:750;margin-top:8px}
.button:hover{background:var(--sw-accent2)}
.section{padding:70px 0}
.section.white{background:var(--sw-surface)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}
.section-kicker{font-size:.78rem;text-transform:uppercase;letter-spacing:.11em;font-weight:850;color:var(--sw-accent);margin-bottom:4px}
.section-title{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.15;margin:0;letter-spacing:-.025em}
.section-intro{color:var(--sw-muted);max-width:720px;margin:8px 0 0}
.text-link{font-weight:750;white-space:nowrap}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{background:var(--sw-surface);border:1px solid var(--sw-border);border-radius:var(--sw-radius);overflow:hidden;box-shadow:0 4px 20px rgba(16,24,32,.04);transition:.2s transform,.2s box-shadow}
.card:hover{transform:translateY(-3px);box-shadow:var(--sw-shadow)}
.card-image{aspect-ratio:16/9;background:#dce4eb;overflow:hidden}
.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.card:hover .card-image img{transform:scale(1.025)}
.card-body{padding:22px}
.card-meta{font-size:.78rem;color:var(--sw-muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.card h3{font-size:1.28rem;line-height:1.25;margin:8px 0 9px;letter-spacing:-.015em}
.card h3 a{color:var(--sw-text)}
.card p{color:var(--sw-muted);margin:0}
.feature-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:24px}
.feature-large{position:relative;min-height:500px;border-radius:var(--sw-radius);overflow:hidden;background:#182431}
.feature-large img{position:absolute;width:100%;height:100%;object-fit:cover}
.feature-large:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,10,15,.9),transparent 72%)}
.feature-copy{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:32px;color:#fff}
.feature-copy h2{font-size:2rem;line-height:1.1;margin:8px 0}
.feature-copy a{color:#fff}
.feature-side{display:grid;gap:20px}
.mini-story{display:grid;grid-template-columns:150px 1fr;gap:18px;background:#fff;border:1px solid var(--sw-border);border-radius:14px;overflow:hidden}
.mini-story img{width:100%;height:100%;object-fit:cover;min-height:130px}
.mini-copy{padding:16px 16px 16px 0}
.mini-copy h3{font-size:1.08rem;line-height:1.25;margin:5px 0}
.mini-copy h3 a{color:var(--sw-text)}
.content-area{padding:60px 0}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:40px}
.site-main{min-width:0}
.entry{background:#fff;border:1px solid var(--sw-border);border-radius:var(--sw-radius);padding:clamp(24px,4vw,50px)}
.entry-header h1{font-size:clamp(2.1rem,4vw,3.6rem);line-height:1.08;margin:0 0 12px;letter-spacing:-.04em}
.entry-meta{color:var(--sw-muted);font-size:.9rem;margin-bottom:28px}
.entry-thumbnail{margin:0 0 30px;border-radius:14px;overflow:hidden}
.entry-content{font-size:1.05rem}
.entry-content h2,.entry-content h3{line-height:1.2;margin-top:1.7em}
.entry-content img{border-radius:10px}
.sidebar .widget,.footer-widget{margin-bottom:24px}
.sidebar .widget{background:#fff;border:1px solid var(--sw-border);border-radius:14px;padding:22px}
.widget-title{font-size:1.05rem;margin:0 0 14px}
.widget ul{list-style:none;padding:0;margin:0}
.widget li{padding:7px 0;border-bottom:1px solid var(--sw-border)}
.archive-header{margin-bottom:28px}
.archive-header h1{font-size:2.5rem;margin:0}
.pagination{margin-top:35px}
.nav-links{display:flex;gap:7px;flex-wrap:wrap}
.page-numbers{background:#fff;border:1px solid var(--sw-border);padding:8px 13px;border-radius:8px}
.page-numbers.current{background:var(--sw-brand);color:#fff}
.site-footer{background:#0c1117;color:#bac5cf;padding-top:55px}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:35px}
.site-footer a{color:#dce4eb}
.site-footer .widget-title{color:#fff}
.site-footer .widget li{border-color:#27313a}
.footer-bottom{border-top:1px solid #27313a;margin-top:38px;padding:20px 0;display:flex;justify-content:space-between;gap:20px;font-size:.85rem}
.no-results{background:#fff;padding:30px;border-radius:14px}
@media(max-width:1000px){
 .cards{grid-template-columns:repeat(2,1fr)}
 .feature-grid,.content-grid{grid-template-columns:1fr}
 .sidebar{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
 .footer-grid{grid-template-columns:repeat(2,1fr)}
 .main-navigation{display:none;position:absolute;top:92px;left:0;right:0;background:#0c1117;padding:12px 20px 20px}
 .main-navigation.open{display:block}
 .main-navigation ul{display:block}
 .menu-toggle{display:block}
}
@media(max-width:650px){
 .site-wrap{width:min(calc(100% - 28px),var(--sw-width))}
 .header-main{min-height:78px}
 .custom-logo{max-height:52px}
 .main-navigation{top:78px}
 .hero{min-height:470px}
 .hero-content{padding:70px 0 52px}
 .section{padding:50px 0}
 .cards,.sidebar,.footer-grid{grid-template-columns:1fr}
 .feature-large{min-height:420px}
 .mini-story{grid-template-columns:115px 1fr}
 .footer-bottom{display:block}
}

/* =========================================================
   SkyWarnUK homepage
   Every selector is scoped to .sw-home so plugin pages,
   standard pages, posts and archives cannot inherit it.
   ========================================================= */
.sw-home{--home-ink:#08141d;--home-deep:#0d202d;--home-mid:#15384a;--home-blue:#20556d;--home-light:#9ccfe8;--home-text:#eef6fa;--home-muted:#b9ced9;background:var(--home-ink);color:var(--home-text)}
.sw-home *{box-sizing:border-box}
.sw-home a{text-decoration:none}
.sw-home-hero{position:relative;overflow:hidden;background:linear-gradient(118deg,#08141d 0%,#102a39 54%,#1f5269 100%);min-height:620px;display:flex;align-items:center}
.sw-home-hero__decor{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 82% 15%,rgba(139,205,235,.2),transparent 27%),radial-gradient(circle at 65% 110%,rgba(79,151,183,.2),transparent 32%)}
.sw-home-hero__decor:after{content:"";position:absolute;right:-130px;top:-110px;width:520px;height:520px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.018)}
.sw-home-hero__inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:90px;align-items:center;padding-top:90px;padding-bottom:90px}
.sw-home-overline,.sw-home-heading span{display:block;color:var(--home-light);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.16em}
.sw-home-hero__copy h1{max-width:850px;font-size:clamp(3.1rem,6.2vw,6rem);line-height:.98;letter-spacing:-.055em;margin:17px 0 24px;color:#fff}
.sw-home-hero__copy>p{max-width:690px;color:#d6e5ec;font-size:1.18rem;line-height:1.7;margin:0}
.sw-home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.sw-home-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:8px;background:#e9f5fb;color:#0b2230!important;font-weight:800;font-size:.9rem;transition:.2s}
.sw-home-btn:hover{transform:translateY(-1px);background:#fff}
.sw-home-btn--outline{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.35)}
.sw-home-btn--outline:hover{background:rgba(255,255,255,.1)}
.sw-home-hero__feature{border-top:3px solid var(--home-light);background:rgba(6,18,26,.46);padding:30px;border-radius:0 0 12px 12px;backdrop-filter:blur(10px)}
.sw-home-hero__feature>span{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--home-light);font-weight:800}
.sw-home-hero__feature strong{display:block;font-size:1.6rem;line-height:1.2;margin:14px 0;color:#fff}
.sw-home-hero__feature p{color:var(--home-muted);font-size:.94rem}
.sw-home-hero__rule{height:1px;background:rgba(255,255,255,.14);margin:25px 0 18px}
.sw-home-hero__feature small{color:#8da9b7;letter-spacing:.12em;font-weight:700}
.sw-home-section{padding:82px 0}
.sw-home-section--mid{background:#102633}
.sw-home-section--feature{background:#1c4659}
.sw-home-section--latest{background:#0b1b25}
.sw-home-section--content{background:#173748}
.sw-home-heading{display:flex;justify-content:space-between;align-items:end;gap:35px;margin-bottom:36px;padding-bottom:22px;border-bottom:1px solid rgba(255,255,255,.12)}
.sw-home-heading h2{font-size:clamp(1.9rem,3vw,2.8rem);line-height:1.08;letter-spacing:-.035em;margin:7px 0 0;color:#fff}
.sw-home-heading>p{color:var(--home-muted);max-width:450px;margin:0;text-align:right}
.sw-home-destinations{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid rgba(255,255,255,.13);border-radius:14px;overflow:hidden}
.sw-home-destination{min-height:260px;padding:30px;display:flex;flex-direction:column;color:#fff!important;background:#153442;border-right:1px solid rgba(255,255,255,.12);position:relative;transition:.2s}
.sw-home-destination:last-child{border-right:0}
.sw-home-destination:hover{background:#1b4051}
.sw-home-destination__num{color:#86bad3;font-size:.7rem;font-weight:850;letter-spacing:.12em}
.sw-home-destination h3{font-size:1.45rem;margin:50px 0 8px;color:#fff}
.sw-home-destination p{color:#bcd0da;margin:0;max-width:290px}
.sw-home-destination b{position:absolute;right:28px;bottom:25px;color:#a9d6ea;font-size:1.25rem}
.sw-home-editorial{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,.55fr);gap:28px}
.sw-home-lead{background:#102b38;border-radius:14px;overflow:hidden}
.sw-home-lead__media{display:block;aspect-ratio:16/8.5;overflow:hidden}
.sw-home-lead__media img,.sw-home-secondary__media img,.sw-home-story__media img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.sw-home-lead:hover img,.sw-home-secondary article:hover img,.sw-home-story:hover img{transform:scale(1.02)}
.sw-home-lead__body{padding:28px}
.sw-home-meta{color:#91b9cc;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.sw-home-lead h3{font-size:clamp(1.6rem,2.6vw,2.4rem);line-height:1.1;margin:10px 0}
.sw-home-lead h3 a,.sw-home-secondary h3 a,.sw-home-story h3 a{color:#fff}
.sw-home-lead p,.sw-home-secondary p,.sw-home-story p{color:#bfd1da}
.sw-home-read{color:#a8d7ec!important;font-weight:800;font-size:.86rem}
.sw-home-secondary{display:grid;gap:14px}
.sw-home-secondary article{display:grid;grid-template-columns:145px 1fr;background:#163543;border-radius:11px;overflow:hidden;min-height:145px}
.sw-home-secondary__media{display:block;min-height:145px;overflow:hidden}
.sw-home-image-fallback{display:block;width:100%;height:100%;min-height:inherit;background:linear-gradient(135deg,#234f63,#102a38)}
.sw-home-secondary article>div{padding:18px}
.sw-home-secondary h3{font-size:1.05rem;line-height:1.25;margin:5px 0}
.sw-home-secondary p{font-size:.84rem;margin:6px 0 0}
.sw-home-latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.sw-home-story{background:#122c39;border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden}
.sw-home-story__media{display:block;aspect-ratio:16/9;overflow:hidden}
.sw-home-story__body{padding:22px}
.sw-home-story h3{font-size:1.22rem;line-height:1.25;margin:7px 0 9px}
.sw-home-story p{font-size:.9rem;margin:0}
.sw-home-about{padding:88px 0;background:linear-gradient(110deg,#24566c,#173b4d 62%,#102a38)}
.sw-home-about__inner{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}
.sw-home-about h2{font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.05;letter-spacing:-.045em;margin:9px 0;color:#fff}
.sw-home-about p{font-size:1.08rem;color:#d0e0e7;margin:0 0 25px}
.sw-home-btn--light{background:#fff}
.sw-home-content{color:#e7f1f5}
.sw-home-content a{color:#a9d9ef}
@media(max-width:1050px){
 .sw-home-hero__inner,.sw-home-editorial,.sw-home-about__inner{grid-template-columns:1fr;gap:45px}
 .sw-home-hero__feature{max-width:650px}
 .sw-home-latest-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
 .sw-home-hero{min-height:auto}
 .sw-home-hero__inner{padding-top:65px;padding-bottom:65px}
 .sw-home-hero__copy h1{font-size:3.4rem}
 .sw-home-section{padding:58px 0}
 .sw-home-heading{display:block}
 .sw-home-heading>p{text-align:left;margin-top:12px}
 .sw-home-destinations{grid-template-columns:1fr}
 .sw-home-destination{min-height:210px;border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}
 .sw-home-destination:last-child{border-bottom:0}
 .sw-home-destination h3{margin-top:30px}
 .sw-home-latest-grid{grid-template-columns:1fr}
 .sw-home-secondary article{grid-template-columns:115px 1fr}
 .sw-home-about{padding:60px 0}
}


/* Restored approved hero — scoped to homepage */
.sw-home .sw-home-approved-hero{min-height:610px;align-items:center;background:#0d1720}
.sw-home .sw-home-approved-hero .hero-home-bg{position:absolute;inset:0;overflow:hidden;background:linear-gradient(115deg,rgba(10,18,26,.98) 0%,rgba(15,36,50,.96) 48%,rgba(20,65,91,.86) 100%)}
.sw-home .sw-home-approved-hero .hero-home-bg:before{content:"";position:absolute;inset:0;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);background-size:54px 54px;transform:perspective(700px) rotateX(55deg) scale(1.5);transform-origin:center bottom}
.sw-home .sw-home-approved-hero .hero-glow{position:absolute;border-radius:50%;filter:blur(4px);opacity:.45}
.sw-home .sw-home-approved-hero .hero-glow-one{width:460px;height:460px;right:-80px;top:-180px;background:radial-gradient(circle,rgba(113,192,236,.42),transparent 68%)}
.sw-home .sw-home-approved-hero .hero-glow-two{width:650px;height:650px;left:28%;bottom:-540px;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 66%)}
.sw-home .sw-home-approved-hero .hero-home-inner{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);gap:70px;align-items:center;padding-top:82px;padding-bottom:82px}
.sw-home .sw-home-approved-hero .hero-home-copy{color:#fff;max-width:780px}
.sw-home .sw-home-approved-hero .hero-home-copy h1{font-size:clamp(3.6rem,8vw,7.3rem);line-height:.92;letter-spacing:-.065em;margin:20px 0 24px;color:#fff}
.sw-home .sw-home-approved-hero .hero-home-copy p{font-size:1.2rem;color:#d9e3eb;max-width:680px;margin:0 0 24px}
.sw-home .sw-home-approved-hero .hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.sw-home .sw-home-approved-hero .button-ghost{background:transparent;border:1px solid rgba(255,255,255,.4)}
.sw-home .sw-home-approved-hero .button-ghost:hover{background:#fff;color:#101820!important}
.sw-home .sw-home-approved-hero .hero-home-panel{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.17);backdrop-filter:blur(12px);border-radius:22px;padding:34px;color:#fff;box-shadow:0 28px 70px rgba(0,0,0,.22)}
.sw-home .sw-home-approved-hero .hero-panel-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;font-weight:850;color:#9ed2ef}
.sw-home .sw-home-approved-hero .hero-panel-title{font-size:1.7rem;line-height:1.15;font-weight:800;margin:12px 0}
.sw-home .sw-home-approved-hero .hero-home-panel p{color:#cedae3;font-size:.95rem}
.sw-home .sw-home-approved-hero .hero-panel-lines{display:grid;gap:9px;margin-top:26px}
.sw-home .sw-home-approved-hero .hero-panel-lines span{height:4px;border-radius:99px;background:rgba(255,255,255,.12)}
.sw-home .sw-home-approved-hero .hero-panel-lines span:nth-child(1){width:100%}
.sw-home .sw-home-approved-hero .hero-panel-lines span:nth-child(2){width:78%}
.sw-home .sw-home-approved-hero .hero-panel-lines span:nth-child(3){width:91%}
.sw-home .sw-home-approved-hero .hero-panel-lines span:nth-child(4){width:57%}

/* Desktop/tablet/mobile hardening */
@media(max-width:1100px){
 .sw-home .sw-home-approved-hero .hero-home-inner{grid-template-columns:minmax(0,1fr) 340px;gap:40px}
 .sw-home .sw-home-approved-hero .hero-home-copy h1{font-size:clamp(3.3rem,7vw,5.8rem)}
}
@media(max-width:900px){
 .sw-home .sw-home-approved-hero .hero-home-inner{grid-template-columns:1fr;gap:32px;padding-top:62px;padding-bottom:62px}
 .sw-home .sw-home-approved-hero .hero-home-panel{max-width:600px}
 .sw-home-editorial{grid-template-columns:1fr}
 .sw-home-destinations{grid-template-columns:1fr}
 .sw-home-destination{border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}
 .sw-home-destination:last-child{border-bottom:0}
}
@media(max-width:650px){
 .sw-home .sw-home-approved-hero{min-height:auto}
 .sw-home .sw-home-approved-hero .hero-home-inner{padding-top:48px;padding-bottom:48px}
 .sw-home .sw-home-approved-hero .hero-home-copy h1{font-size:clamp(2.8rem,15vw,4.1rem);line-height:.96}
 .sw-home .sw-home-approved-hero .hero-home-copy p{font-size:1.02rem;line-height:1.6}
 .sw-home .sw-home-approved-hero .hero-actions{display:grid;grid-template-columns:1fr}
 .sw-home .sw-home-approved-hero .hero-actions .button{width:100%;margin:0}
 .sw-home .sw-home-approved-hero .hero-home-panel{padding:24px;border-radius:16px}
 .sw-home .sw-home-approved-hero .hero-panel-title{font-size:1.35rem}
 .sw-home-heading{margin-bottom:25px}
 .sw-home-secondary article{grid-template-columns:105px 1fr}
 .sw-home-secondary__media{min-height:125px}
 .sw-home-secondary article>div{padding:14px}
 .sw-home-secondary p{display:none}
 .sw-home-story__body{padding:18px}
}
@media(max-width:390px){
 .site-wrap{width:calc(100% - 24px)}
 .sw-home .sw-home-approved-hero .hero-home-copy h1{font-size:2.65rem}
 .sw-home .sw-home-approved-hero .hero-home-panel{padding:20px}
 .sw-home-secondary article{grid-template-columns:90px 1fr}
}


/* Full-width desktop shell with fluid responsive gutters.
   Scoped homepage containers override the older fixed 1440px site-wrap width. */
.sw-home .site-wrap{
 width:100%;
 max-width:none;
 padding-left:clamp(28px,4vw,76px);
 padding-right:clamp(28px,4vw,76px);
 margin-left:auto;
 margin-right:auto;
}
.sw-home .sw-home-hero__inner,
.sw-home .hero-home-inner,
.sw-home .sw-home-about__inner{
 width:100%;
 max-width:none;
}
.sw-home .sw-home-editorial{
 grid-template-columns:minmax(0,1.65fr) minmax(360px,.65fr);
}
.sw-home .sw-home-latest-grid{
 grid-template-columns:repeat(3,minmax(0,1fr));
}
.sw-home .sw-home-destinations{
 grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(min-width:1600px){
 .sw-home .site-wrap{padding-left:clamp(64px,5vw,110px);padding-right:clamp(64px,5vw,110px)}
 .sw-home .sw-home-editorial{grid-template-columns:minmax(0,1.8fr) minmax(420px,.62fr)}
 .sw-home .sw-home-latest-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:2200px){
 .sw-home .site-wrap{padding-left:clamp(90px,6vw,160px);padding-right:clamp(90px,6vw,160px)}
 .sw-home .sw-home-latest-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1200px){
 .sw-home .site-wrap{padding-left:32px;padding-right:32px}
 .sw-home .sw-home-editorial{grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr)}
}
@media(max-width:900px){
 .sw-home .site-wrap{padding-left:24px;padding-right:24px}
 .sw-home .sw-home-editorial{grid-template-columns:1fr}
 .sw-home .sw-home-destinations{grid-template-columns:1fr}
 .sw-home .sw-home-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .sw-home .site-wrap{padding-left:18px;padding-right:18px}
 .sw-home .sw-home-latest-grid{grid-template-columns:1fr}
}
@media(max-width:390px){
 .sw-home .site-wrap{width:100%;padding-left:12px;padding-right:12px}
}

/* Responsive header safeguards */
@media(max-width:1000px){
 body .site-header .menu-toggle{display:block}
 body .site-header .main-navigation{display:none}
 body .site-header .main-navigation.open{display:block}
}
@media(max-width:760px){
 body .site-header .header-main{min-height:74px}
 body .site-header .custom-logo{max-height:48px}
 body .site-header .main-navigation{top:74px;max-height:calc(100vh - 74px);overflow-y:auto}
 body .site-header .main-navigation ul{display:block}
 body .site-header .main-navigation li{display:block}
 body .site-header .main-navigation a{padding:11px 8px}
}


/* Menus assigned through Appearance > Menus only */
.site-header .main-navigation .menu-item-has-children{position:relative}
.site-header .main-navigation .sub-menu{
 display:none;position:absolute;top:100%;left:0;min-width:220px;padding:8px;
 background:#0c1117;border:1px solid #273541;border-radius:10px;
 box-shadow:0 16px 38px rgba(0,0,0,.25);z-index:100
}
.site-header .main-navigation .sub-menu li{width:100%}
.site-header .main-navigation .sub-menu a{white-space:nowrap;padding:10px 12px}
.site-header .main-navigation .menu-item-has-children:hover>.sub-menu,
.site-header .main-navigation .menu-item-has-children:focus-within>.sub-menu{display:block}
@media(max-width:1000px){
 .site-header .main-navigation .sub-menu{
  display:block;position:static;min-width:0;margin:2px 0 4px 14px;padding:0 0 0 10px;
  background:transparent;border:0;border-left:1px solid #344653;border-radius:0;box-shadow:none
 }
 .site-header .main-navigation .sub-menu a{white-space:normal}
}

/* Homepage section ordering supplied by SkyWarnUK Theme Control. */
.sw-home{display:flex;flex-direction:column;width:100%;}

/* Optional homepage sections */
.sw-home-announcement{background:#173f58;color:#fff}
.sw-home-announcement h2,.sw-home-announcement p{color:inherit}
.sw-home-section--headlines{background:#163247;color:#fff}
.sw-home-section--forecast{background:#244c64;color:#fff}
.sw-home-section--explainers{background:#1d3d52;color:#fff}
.sw-home-section--archive{background:#24333e;color:#fff}
.sw-home-section--gallery{background:#17374b;color:#fff}
.sw-home-section--aware{background:#24495e;color:#fff}
.sw-home-section--custom{background:#1b3547;color:#fff}
.sw-extra-grid,.sw-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.sw-gallery-grid figure{margin:0;overflow:hidden;border-radius:14px}
.sw-gallery-grid img{display:block;width:100%;height:260px;object-fit:cover}
@media(max-width:900px){.sw-extra-grid,.sw-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.sw-extra-grid,.sw-gallery-grid{grid-template-columns:1fr}.sw-gallery-grid img{height:auto}}

.sw-headlines-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,26px)}
.sw-headline-item{padding:clamp(20px,2.5vw,32px);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);border-radius:14px}
.sw-headline-item h3{margin-top:0;color:#fff}.sw-headline-item p{color:rgba(255,255,255,.82)}
.sw-headline-item a{color:#fff;font-weight:700}
@media(max-width:700px){.sw-headlines-grid{grid-template-columns:1fr}}

.sw-headline-latest{max-width:980px;padding:clamp(24px,3vw,42px);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:16px}
.sw-headline-latest h3{font-size:clamp(1.7rem,3vw,2.7rem);margin:.2em 0}.sw-headline-latest h3 a{color:#fff;text-decoration:none}
.sw-headline-date{font-size:.85rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;opacity:.75}
.sw-headline-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.sw-headlines-page .page-hero,.sw-headline-single .page-hero{background:linear-gradient(120deg,#0d1720,#163f58);color:#fff}
.sw-headlines-archive,.sw-headline-content{padding-block:clamp(36px,5vw,72px)}
.sw-headlines-list{display:grid;gap:20px}.sw-headline-archive-card{padding:clamp(22px,3vw,34px);border:1px solid rgba(20,45,60,.14);border-radius:14px;background:#fff}
.sw-headline-image img{display:block;width:100%;height:auto;border-radius:14px}

.sw-content-list,.sw-independent-content{padding-block:clamp(36px,5vw,72px)}
.sw-content-archive .page-hero,.sw-content-single .page-hero{background:linear-gradient(120deg,#0d1720,#163f58);color:#fff}

/* In Focus featured blog carousel */
.sw-featured-carousel{overflow:hidden}.sw-featured-track{display:flex;transition:transform .45s ease}
.sw-featured-slide{min-width:100%;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:clamp(22px,4vw,56px);align-items:center}
.sw-featured-media img{display:block;width:100%;height:clamp(300px,38vw,560px);object-fit:cover;border-radius:16px}
.sw-featured-copy h3{font-size:clamp(1.7rem,3vw,2.8rem)}.sw-featured-copy h3 a{color:inherit;text-decoration:none}
.sw-featured-controls{display:flex;justify-content:center;gap:10px;margin-top:24px}
.sw-featured-controls button{cursor:pointer;padding:9px 16px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit}
@media(max-width:760px){.sw-featured-slide{grid-template-columns:1fr}.sw-featured-media img{height:auto}}

.sw-content-unavailable{padding:24px 0;font-weight:600;opacity:.8}

/* Compact In Focus homepage carousel */
.sw-home .sw-home-section--feature{padding-block:40px}
.sw-home .sw-featured-carousel{overflow:hidden;max-width:1180px;margin:0 auto}
.sw-home .sw-featured-slide{min-width:100%;display:grid;grid-template-columns:minmax(280px,42%) minmax(0,1fr);gap:36px;align-items:center}
.sw-home .sw-featured-media{display:block;aspect-ratio:16/9;max-height:320px;overflow:hidden;border-radius:16px;background:rgba(9,31,43,.16)}
.sw-home .sw-featured-media:empty{display:none}
.sw-home .sw-featured-media img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.sw-home .sw-featured-copy{padding:8px 0}
.sw-home .sw-featured-copy h3{font-size:clamp(1.65rem,2.7vw,2.5rem);line-height:1.12;margin:.25em 0 .4em}
.sw-home .sw-featured-controls{margin-top:20px}
@media(max-width:760px){.sw-home .sw-featured-slide{grid-template-columns:1fr;gap:18px}.sw-home .sw-featured-media{max-height:none}}

/* Homepage Theme Control article rows */
.sw-home .sw-home-section--explainers,
.sw-home .sw-home-section--latest{
  padding-block:clamp(42px,6vw,76px);
}
.sw-home .sw-home-section--explainers .sw-extra-grid,
.sw-home .sw-home-section--latest .sw-home-latest-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.sw-home .sw-home-section--explainers article,
.sw-home .sw-home-section--latest article{
  width:auto;
  max-width:none;
  min-width:0;
  height:100%;
  border:1px solid rgba(255,255,255,.14);
  border-radius:15px;
  background:rgba(7,31,44,.34);
  color:#f4f8fb;
  box-shadow:none;
  overflow:hidden;
}
.sw-home .sw-home-section--explainers article a,
.sw-home .sw-home-section--latest article a{color:inherit}
.sw-home .sw-home-section--explainers article p,
.sw-home .sw-home-section--latest article p{color:rgba(244,248,251,.82)}
.sw-home .sw-home-section--explainers article img,
.sw-home .sw-home-section--latest article img{
  display:block;width:100%;aspect-ratio:16/9;object-fit:cover;
}
.sw-home .sw-home-section--explainers .sw-content-unavailable,
.sw-home .sw-home-section--latest .sw-content-unavailable{
  margin:0;padding:22px 0;color:rgba(244,248,251,.85);
}
@media(max-width:900px){
 .sw-home .sw-home-section--explainers .sw-extra-grid,
 .sw-home .sw-home-section--latest .sw-home-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .sw-home .sw-home-section--explainers .sw-extra-grid,
 .sw-home .sw-home-section--latest .sw-home-latest-grid{grid-template-columns:1fr}
}

.site-branding{display:flex;align-items:center;gap:14px}
.site-identity-text{display:flex;flex-direction:column;line-height:1.15}
.site-identity-text .site-title{font-size:1.25rem;font-weight:800}
.site-identity-text .site-title a{text-decoration:none;color:inherit}
.site-identity-text .site-description{margin-top:4px;font-size:.85rem;opacity:.78}

/* Weather Knowledge: richer SkyWarnUK homepage treatment */
.sw-home .sw-home-section--explainers{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 88% 10%,rgba(51,159,211,.16),transparent 34%),
    linear-gradient(135deg,#12394b 0%,#194b63 55%,#12394b 100%);
}
.sw-home .sw-home-section--explainers:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.16;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:44px 44px;
}
.sw-home .sw-home-section--explainers .site-wrap{position:relative;z-index:1}
.sw-home .sw-home-section--explainers .sw-home-heading span{color:#9dd9f4}
.sw-home .sw-home-section--explainers .sw-home-heading h2{color:#fff}
.sw-home .sw-home-section--explainers .sw-extra-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.sw-home .sw-home-section--explainers .sw-extra-grid>article{
  position:relative;
  min-height:210px;
  padding:28px;
  border:1px solid rgba(181,224,244,.22);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(8,35,48,.82),rgba(14,55,72,.72));
  box-shadow:0 16px 36px rgba(0,0,0,.13);
  transition:transform .2s ease,border-color .2s ease;
}
.sw-home .sw-home-section--explainers .sw-extra-grid>article:hover{transform:translateY(-3px);border-color:rgba(157,217,244,.5)}
.sw-home .sw-home-section--explainers .sw-extra-grid>article h3{font-size:1.35rem;line-height:1.2;margin:.55rem 0 .65rem;color:#fff}
.sw-home .sw-home-section--explainers .sw-extra-grid>article p{line-height:1.6}
.sw-home .sw-home-section--explainers .sw-extra-grid>article .sw-headline-date,
.sw-home .sw-home-section--explainers .sw-extra-grid>article .sw-home-meta{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#9dd9f4}
.sw-home .sw-home-section--explainers .button{margin-top:24px}
@media(max-width:900px){.sw-home .sw-home-section--explainers .sw-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sw-home .sw-home-section--explainers .sw-extra-grid{grid-template-columns:1fr}.sw-home .sw-home-section--explainers .sw-extra-grid>article{min-height:0}}

/* Customizer logo dimensions: resize the physical logo image, not the branding container */
.site-header .site-branding .custom-logo-link{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  line-height:0;
}
.site-header .site-branding .custom-logo-link img.custom-logo{
  max-width:none;
  max-height:none;
  object-fit:fill;
  flex:none;
}

/* In Focus uses the same three-card scale as other homepage sections */
.sw-home .sw-featured-carousel{max-width:none;overflow:hidden}.sw-home .sw-featured-track{display:flex;gap:22px;transition:transform .45s ease}.sw-home .sw-featured-slide{flex:0 0 calc((100% - 44px)/3);min-width:0;display:block;border:1px solid rgba(181,224,244,.22);border-radius:18px;background:linear-gradient(145deg,rgba(8,35,48,.82),rgba(14,55,72,.72));overflow:hidden;color:#f4f8fb}.sw-home .sw-featured-media{display:block;width:100%;aspect-ratio:16/9;max-height:none;border-radius:0;overflow:hidden}.sw-home .sw-featured-media img{width:100%;height:100%;object-fit:cover}.sw-home .sw-featured-copy{padding:24px}.sw-home .sw-featured-copy h3{font-size:1.35rem;line-height:1.2}.sw-home .sw-featured-copy h3 a,.sw-home .sw-featured-copy .sw-home-read{color:inherit}@media(max-width:900px){.sw-home .sw-featured-slide{flex-basis:calc((100% - 22px)/2)}}@media(max-width:600px){.sw-home .sw-featured-slide{flex-basis:100%}}

/* Normal WordPress pages are intentionally unconstrained by theme containers. */
.site-main--page,
.site-main--page .page-content,
.site-main--page .entry-content{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}
.site-main--page .page-content{background:transparent;border:0;border-radius:0;box-shadow:none}
.site-main--page .page-featured-image img{display:block;width:100%;height:auto}

/* Selectable page layouts */
.page-layout--full,
.page-layout--full .page-content,
.page-layout--full .entry-content{width:100%;max-width:none;margin:0;padding:0}
.page-layout--full .page-content{background:transparent;border:0;border-radius:0;box-shadow:none}
.page-layout--full .page-featured-image img{display:block;width:100%;height:auto}

.sw-home-section--forum{padding-block:clamp(42px,6vw,76px)}.sw-forum-widget-area{width:100%}.sw-forum-widget-area .widget{margin:0}

/* Homepage editorial flow — one continuous visual canvas rather than stacked colour panels */
.sw-home{
  position:relative;
  background:
    radial-gradient(circle at 14% 10%,rgba(39,126,155,.18),transparent 28rem),
    radial-gradient(circle at 88% 46%,rgba(20,101,128,.12),transparent 34rem),
    linear-gradient(180deg,#0a2530 0%,#071c25 48%,#09232d 100%);
}
.sw-home > .sw-home-section,
.sw-home > section.sw-home-section,
.sw-home .sw-home-section--feature,
.sw-home .sw-home-section--convective,
.sw-home .sw-home-section--latest,
.sw-home .sw-home-section--forum,
.sw-home .sw-home-section--gallery,
.sw-home .sw-home-section--aware,
.sw-home .sw-home-section--custom{
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  padding-block:clamp(30px,4vw,54px) !important;
}
.sw-home > .sw-home-section + .sw-home-section{
  position:relative;
}
.sw-home > .sw-home-section + .sw-home-section:before{
  content:"";
  position:absolute;
  top:0;
  left:max(24px,calc((100% - 1380px)/2));
  right:max(24px,calc((100% - 1380px)/2));
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(164,216,236,.18) 12%,rgba(164,216,236,.18) 88%,transparent);
}
.sw-home .sw-home-heading{
  margin-bottom:24px;
  padding-bottom:0;
  border:0;
}
.sw-home .sw-home-heading h2,
.sw-home .sw-home-section > .site-wrap > h2{
  margin-bottom:0;
}
.sw-home .sw-content-unavailable{
  margin:18px 0 4px;
  padding:16px 18px;
  border:1px solid rgba(164,216,236,.10);
  border-radius:12px;
  background:rgba(5,23,31,.22);
}
.sw-home .sw-featured-slide,
.sw-home .sw-extra-grid > *,
.sw-home .sw-convective-latest,
.sw-home .sw-forum-widget{
  background:rgba(8,36,47,.58) !important;
  border-color:rgba(177,221,239,.16) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}
@media(max-width:700px){
  .sw-home > .sw-home-section,
  .sw-home > section.sw-home-section{padding-block:28px !important}
}

/* v2.2 homepage redesign + light/dark colour system */
:root{
 --sw-page:#eef5f7;--sw-surface:#fff;--sw-surface-2:#e4f0f3;--sw-text:#102a35;--sw-muted:#526b75;
 --sw-line:rgba(14,67,86,.14);--sw-accent:#087c9e;--sw-accent-soft:#d8eef4;--sw-card-shadow:0 12px 34px rgba(18,58,71,.10);
}
html[data-sw-theme="dark"]{
 --sw-page:#061a22;--sw-surface:#0b2732;--sw-surface-2:#0e303d;--sw-text:#f4f8fa;--sw-muted:#b8cbd2;
 --sw-line:rgba(181,224,240,.14);--sw-accent:#58c5e5;--sw-accent-soft:#123b49;--sw-card-shadow:0 14px 36px rgba(0,0,0,.22);
}
body{background:var(--sw-page);color:var(--sw-text)}
.sw-theme-toggle{display:inline-flex;align-items:center;gap:7px;margin-left:14px;padding:8px 12px;border:1px solid rgba(190,224,235,.28);border-radius:999px;background:rgba(255,255,255,.08);color:inherit;font:inherit;font-size:.84rem;cursor:pointer}
.sw-theme-toggle__moon{display:none}html[data-sw-theme="dark"] .sw-theme-toggle__sun{display:none}html[data-sw-theme="dark"] .sw-theme-toggle__moon{display:inline}

/* Make the homepage read as one editorial canvas, not full-width coloured stripes. */
.sw-home{background:var(--sw-page)!important;color:var(--sw-text);padding:34px 0 72px;display:flex;flex-direction:column;gap:26px}
.sw-home > .sw-home-section,
.sw-home > section.sw-home-section{
 width:min(1380px,calc(100% - 48px));margin:0 auto!important;padding:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
.sw-home > .sw-home-section:before{display:none!important}
.sw-home .sw-home-section > .site-wrap{
 width:100%;max-width:none;margin:0;padding:clamp(28px,3.5vw,46px);
 background:var(--sw-surface);border:1px solid var(--sw-line);border-radius:24px;
 box-shadow:var(--sw-card-shadow);
}
.sw-home .sw-home-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid var(--sw-line)}
.sw-home .sw-home-heading span{display:block;margin-bottom:7px;color:var(--sw-accent);font-size:.72rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.sw-home .sw-home-heading h2,.sw-home .site-wrap>h2{color:var(--sw-text)!important;font-size:clamp(1.65rem,2.5vw,2.5rem);line-height:1.05}
.sw-home .sw-content-unavailable{margin:0!important;padding:18px 20px!important;background:var(--sw-surface-2)!important;border:0!important;border-radius:14px;color:var(--sw-muted)!important}

/* Content cards share one component language */
.sw-home .sw-featured-slide,.sw-home .sw-extra-grid>*,
.sw-home .sw-convective-latest,.sw-home .sw-forum-widget,
.sw-home article.sw-home-card{
 background:var(--sw-surface-2)!important;color:var(--sw-text)!important;border:1px solid var(--sw-line)!important;
 border-radius:16px!important;box-shadow:none!important;overflow:hidden;
}
.sw-home .sw-featured-copy,.sw-home .sw-extra-grid .card-content{color:var(--sw-text)}
.sw-home p,.sw-home .sw-featured-copy p{color:var(--sw-muted)!important}
.sw-home a:not(.button){color:var(--sw-accent)}
.sw-home .button{border-radius:999px}

/* Empty sections become compact modules rather than giant blank bands. */
.sw-home .site-wrap:has(> .sw-content-unavailable){padding-block:24px}
.sw-home .site-wrap:has(> .sw-content-unavailable) .sw-home-heading{margin-bottom:14px}

/* Hero remains full-width and visually distinct. */
.sw-home > .sw-hero,.sw-home > section.sw-hero{width:100%;border-radius:0}
.sw-home .sw-hero .site-wrap{background:transparent;border:0;border-radius:0;box-shadow:none}

/* Light footer/header integration */
html[data-sw-theme="light"] .site-header{background:#0b2b37;color:#fff}
html[data-sw-theme="light"] .site-footer{background:#09232d;color:#eaf4f7}

@media(max-width:700px){
 .sw-home{padding-top:18px;gap:16px}
 .sw-home > .sw-home-section,.sw-home > section.sw-home-section{width:min(100% - 24px,1380px)}
 .sw-home .sw-home-section > .site-wrap{padding:22px 18px;border-radius:18px}
 .sw-theme-toggle__label{display:none}
}

/* v2.3 genuine homepage layout redesign
   Sections now form an editorial dashboard rather than stacked full-width rows. */
.sw-home{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 column-gap:24px!important;
 row-gap:24px!important;
 width:min(1380px,calc(100% - 48px))!important;
 margin:0 auto!important;
 padding:30px 0 70px!important;
 background:var(--sw-page)!important;
 align-items:start;
}
.sw-home > section{
 width:auto!important;
 max-width:none!important;
 margin:0!important;
}
.sw-home > .sw-hero,
.sw-home > .sw-announcement,
.sw-home > .sw-explore,
.sw-home > .sw-home-section--headlines,
.sw-home > .sw-home-section--forecast,
.sw-home > .sw-home-section--explainers,
.sw-home > .sw-home-section--archive,
.sw-home > .sw-home-section--gallery,
.sw-home > .sw-home-section--forum,
.sw-home > .sw-home-section--custom,
.sw-home > .sw-home-section--feature{
 grid-column:1 / -1;
}
.sw-home > .sw-home-section--convective,
.sw-home > .sw-home-section--latest,
.sw-home > .sw-home-section--aware{
 grid-column:auto;
 height:100%;
}
.sw-home > .sw-home-section .site-wrap{
 height:100%;
 padding:28px!important;
 border-radius:18px!important;
 background:var(--sw-surface)!important;
 border:1px solid var(--sw-line)!important;
 box-shadow:var(--sw-card-shadow)!important;
}
.sw-home > .sw-home-section--feature .site-wrap{
 display:grid;
 grid-template-columns:minmax(220px,.34fr) minmax(0,.66fr);
 column-gap:32px;
}
.sw-home > .sw-home-section--feature .sw-home-heading{
 grid-column:1;
 display:block;
 border:0;
 margin:0;
 padding:8px 0;
}
.sw-home > .sw-home-section--feature .sw-featured-carousel,
.sw-home > .sw-home-section--feature .sw-content-unavailable{
 grid-column:2;
 align-self:center;
}
.sw-home > .sw-home-section--convective .sw-home-heading,
.sw-home > .sw-home-section--latest .sw-home-heading{
 margin-bottom:18px;
}
.sw-home .sw-home-heading h2{font-size:clamp(1.55rem,2vw,2.15rem)!important}
.sw-home > .sw-home-section--feature .sw-home-heading h2{font-size:clamp(2rem,3vw,3.15rem)!important}
.sw-home .sw-content-unavailable{
 min-height:0!important;
 padding:15px 17px!important;
 display:flex;
 align-items:center;
}
.sw-home > .sw-home-section--convective .site-wrap,
.sw-home > .sw-home-section--latest .site-wrap{
 min-height:300px;
}
.sw-home > .sw-home-section--latest .sw-extra-grid{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.sw-home > .sw-home-section--latest .sw-extra-grid > :nth-child(n+3){display:none}

/* Hero escapes the card/dashboard treatment and spans the viewport. */
.sw-home > .sw-hero{
 width:100vw!important;
 margin-left:calc(50% - 50vw)!important;
 grid-column:1/-1;
}
.sw-home > .sw-hero .site-wrap{
 border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;
}

/* Light theme is intentionally visually distinct. */
html[data-sw-theme="light"] .sw-home{--sw-page:#edf4f6;--sw-surface:#fff;--sw-surface-2:#e8f1f4}
html[data-sw-theme="light"] .sw-home > .sw-home-section .site-wrap{box-shadow:0 10px 30px rgba(28,72,88,.09)!important}
html[data-sw-theme="light"] .sw-home .sw-content-unavailable{background:#eef5f7!important;color:#506a74!important}

/* Dark uses deeper panels against the canvas. */
html[data-sw-theme="dark"] .sw-home > .sw-home-section .site-wrap{background:#0a2631!important}
html[data-sw-theme="dark"] .sw-home > .sw-home-section--convective .site-wrap{background:linear-gradient(145deg,#0a2631,#0c2d39)!important}
html[data-sw-theme="dark"] .sw-home > .sw-home-section--latest .site-wrap{background:linear-gradient(145deg,#0b2934,#0a2330)!important}

@media(max-width:900px){
 .sw-home{grid-template-columns:1fr!important;width:min(100% - 28px,1380px)!important;gap:18px!important}
 .sw-home > section{grid-column:1!important}
 .sw-home > .sw-hero{grid-column:1!important}
 .sw-home > .sw-home-section--feature .site-wrap{display:block}
 .sw-home > .sw-home-section--feature .sw-home-heading{margin-bottom:18px}
 .sw-home > .sw-home-section--latest .sw-extra-grid{grid-template-columns:1fr!important}
}



/* ===== v3.9.3 authoritative independent logo dimensions =====
   Width/height values are supplied inline by functions.php. These rules prevent
   earlier global img and responsive custom-logo rules from clamping the width. */
.site-header .site-branding{min-width:0;flex:0 0 auto}
.site-header .site-branding .custom-logo-link{display:block!important;width:auto!important;max-width:none!important;height:auto!important;line-height:0}
.site-header .site-branding .custom-logo-link img.custom-logo{
 display:block!important;
 min-width:0!important;
 max-width:none!important;
 min-height:0!important;
 max-height:none!important;
 object-fit:fill!important;
}
@media(max-width:760px){
 body .site-header .site-branding .custom-logo-link img.custom-logo{
   max-width:none!important;
   max-height:none!important;
 }
}

/* ===== v3.9.4 logo sizing authority ===== */
.site-header .site-branding{min-width:0!important;width:auto!important;overflow:visible!important}
.site-header .site-branding .custom-logo-link{width:auto!important;max-width:none!important;overflow:visible!important}
.site-header .site-branding .custom-logo-link img.custom-logo{max-width:none!important;min-width:0!important;object-fit:contain!important}

/* ===== v3.9.5 independent custom-logo dimensions ===== */
body .site-header .site-branding,
body .site-header .site-branding .custom-logo-link{max-width:none!important;overflow:visible!important}
body .site-header .site-branding .custom-logo-link img.custom-logo{
 max-width:none!important;
 max-height:none!important;
 object-fit:fill!important;
}

/* v3.9.6: keep Latest Forecast teaser compact even with unusually long manual summaries */
.sw35-right-column .sw34-weather-card:nth-child(2) p{
 display:-webkit-box!important;
 -webkit-box-orient:vertical!important;
 -webkit-line-clamp:4!important;
 overflow:hidden!important;
 max-height:6em!important;
}

/* v3.9.7 */
.sw34-weather-card-forecast p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;max-height:4.6em!important}

/* Footer colour switch, with optional viewport pinning. */
.site-footer .footer-bottom{align-items:center;flex-wrap:wrap}
.sw-footer-theme{display:flex;justify-content:flex-end;margin-left:auto;flex-shrink:0}
.sw-footer-theme .sw-theme-toggle{margin:0;min-height:44px;background:#123844;color:#fff;border-color:#76929c}
.sw-footer-theme .sw-theme-toggle:focus-visible{outline:3px solid #70d9f7;outline-offset:4px}
.sw-footer-theme.is-sticky{position:fixed;right:20px;right:max(20px,env(safe-area-inset-right));bottom:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:1000}
.sw-footer-theme.is-sticky .sw-theme-toggle{box-shadow:0 4px 18px #0005}
.site-footer.sw-footer-switch-sticky{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
@media(max-width:700px){.sw-footer-theme{margin-top:16px;width:100%}.sw-footer-theme.is-sticky{margin-top:0;width:auto}}

/* Keep configured desktop branding from displacing the mobile menu. */
@media(max-width:1000px){
 html body .site-header .header-main{position:relative;gap:12px}
 html body .site-header .site-branding{min-width:0;max-width:calc(100% - 80px)!important;flex:0 1 auto!important}
 html body .site-header .site-branding .custom-logo-link{max-width:100%!important}
 html body .site-header .site-branding .custom-logo-link img.custom-logo{max-width:100%!important;height:auto!important;max-height:72px!important;object-fit:contain!important}
 .site-header .site-title,.site-header .site-description{overflow-wrap:anywhere}
 html body .site-header .menu-toggle{flex:0 0 auto;min-height:44px;min-width:64px}
 html body .site-header .main-navigation{top:100%;max-height:70vh;max-height:70dvh;overflow-y:auto;box-sizing:border-box}
}
.site-main,.entry-content,.widget,.footer-grid>div{min-width:0;overflow-wrap:anywhere}
.entry-content iframe,.entry-content video,.entry-content embed,.entry-content object{max-width:100%}
.entry-content .wp-block-table{overflow-x:auto}
@media(max-width:650px){
 .entry-content pre{max-width:100%;overflow-x:auto}
 .footer-bottom nav ul{display:flex;flex-wrap:wrap;gap:12px;padding-left:0;list-style:none}
 .site-footer .footer-bottom a{display:inline-block;padding-block:8px}
 .sw-footer-theme .sw-theme-toggle{min-width:44px}
}

/* One mobile toggle when Max Mega Menu supplies the navigation. */
@media(max-width:1000px){
 .site-header .main-navigation.open #mega-menu-wrap-primary .mega-menu-toggle{display:none!important}
 .site-header .main-navigation.open #mega-menu-wrap-primary #mega-menu-primary{display:block!important}
 .site-header .main-navigation.open #mega-menu-wrap-primary #mega-menu-primary>li{display:block!important;float:none!important;width:100%!important}
}

@media(min-width:1001px){
 .site-header .main-navigation .primary-menu>li:last-child>.sub-menu,
 .site-header .main-navigation #mega-menu-wrap-primary #mega-menu-primary>li:last-child>.mega-sub-menu{left:auto!important;right:0!important}
}
