/* Blue Water Brief: home page skin, matching the Dashboard. Look only; no behaviour changes. */
:root{--hsh:0 1px 2px rgba(15,40,52,.06),0 8px 28px -12px rgba(15,40,52,.22);--hgrad:linear-gradient(125deg,#0f3446 0%,#1b5f7c 55%,#2a8aa6 100%)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--hsh:0 1px 2px rgba(0,0,0,.4),0 10px 30px -12px rgba(0,0,0,.65)}}
:root[data-theme="dark"]{--hsh:0 1px 2px rgba(0,0,0,.4),0 10px 30px -12px rgba(0,0,0,.65)}
html body{background:radial-gradient(1200px 520px at 80% -120px,color-mix(in srgb,var(--sea,#1b6a8c) 14%,transparent),transparent 70%),var(--bg);background-attachment:fixed}
/* title banner */
html body #siteTitle{background:var(--hgrad)!important;color:#fff!important;border:0!important;border-radius:22px!important;padding:14px 20px!important;box-shadow:var(--hsh)!important;position:relative;overflow:hidden}
html body #siteTitle::after{content:"";position:absolute;right:-60px;top:-90px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 65%);pointer-events:none}
html body #siteTitle span,html body #siteTitle{text-shadow:none}
html body #siteTitle img{box-shadow:0 0 0 2px rgba(255,255,255,.35)!important;border-radius:10px!important}

html body #siteTitle:focus-visible{outline:3px solid var(--sea,#1b6a8c);outline-offset:3px}
/* controls */
html body #tools button,html body #tools select,html body #tools a{border-radius:99px!important;transition:background .15s,border-color .15s,transform .15s}
html body #tools button:hover,html body #tools a:hover{transform:translateY(-1px);border-color:var(--sea,#1b6a8c)!important}
html body #tools button[aria-pressed=true],html body #tools button.on{background:var(--hgrad)!important;border-color:transparent!important;color:#fff!important}
/* cards and panels */
html body .panel,html body #homeView .card,html body #homeRest .card{border-radius:20px!important;box-shadow:var(--hsh)!important}
html body #homeView details.card,html body #homeRest details{border-radius:16px}
html body #homeView button.chip,html body #homeView .chip{border-radius:99px}
/* tiles in "start with a question" and the stat boxes */
html body #startTiles button{border-radius:16px!important;transition:transform .15s,box-shadow .15s}
html body #startTiles button:hover{transform:translateY(-2px);box-shadow:var(--hsh)}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
html body #tools details#atMap,html body #tools details#toolsMore{border-radius:99px!important}
html body #tools details#atMap>summary,html body #tools details#toolsMore>summary{border-radius:99px!important}
html body #tools .sbox{border-radius:99px!important}html body #tools #qBrowse{border-radius:0 99px 99px 0!important}
html body #tools #sres button,html body #tools #sres a,html body #tools #sres li,html body #tools #sres>*{border-radius:8px!important;transform:none!important}
html body #tools #sres{border-radius:14px!important;overflow:auto}
/* search box + Browse: one clean pill */
html body #tools .sbox{position:relative}
html body #tools .sbox #q{border-radius:99px!important;padding-left:18px!important;padding-right:112px!important;background:var(--panel,#fff)!important;border:1px solid var(--line)!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
html body #tools .sbox #q:focus{border-color:var(--sea,#1b6a8c)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--sea,#1b6a8c) 22%,transparent)!important;outline:none}
html body #tools .sbox #qBrowse{position:absolute!important;right:1px!important;top:1px!important;bottom:1px!important;height:auto!important;border:0!important;border-left:1px solid var(--line)!important;border-radius:0 99px 99px 0!important;background:transparent!important;box-shadow:none!important;padding:0 18px 0 16px!important;transform:none!important}
html body #tools .sbox #qBrowse:hover,html body #tools .sbox #qBrowse[aria-expanded=true]{background:color-mix(in srgb,var(--sea,#1b6a8c) 12%,transparent)!important;color:var(--sea,#1b6a8c)!important}
/* hover feedback on every button and link */
html body #homeView button:not(:disabled):hover,html body #homeRest button:not(:disabled):hover,html body #tools button:not(:disabled):hover,html body #tools summary:hover,html body #homeView summary:hover{border-color:var(--sea,#1b6a8c)!important;cursor:pointer}
html body #tools summary:hover,html body #homeView details>summary:hover{color:var(--sea,#1b6a8c)}
html body #homeView a.hmpg:hover,html body #startTiles button:hover{border-color:var(--sea,#1b6a8c)!important}
html body #tools #atTheme:hover,html body #tools #hSv:hover,html body #tools #pkBtn:hover,html body #tools #hBr:hover,html body #tools #hDb:hover,html body #tools a:hover{background:color-mix(in srgb,var(--sea,#1b6a8c) 12%,var(--panel,#fff))!important;color:var(--sea,#1b6a8c)!important}
html body #tools details#atMap>summary,html body #tools details#toolsMore>summary{display:flex;align-items:center;justify-content:center;min-height:42px}
/* hover feedback on every button and card-link */
html body :is(a.top,a.brand):hover{filter:brightness(1.1)}

/* each topic group has its own colour: heading, marker, pill outline and hover fill */
html body #homeGrid .hc[data-hg="Overview"]{--gc:#1b6a8c}
html body #homeGrid .hc[data-hg="Military"]{--gc:#a83a3a}
html body #homeGrid .hc[data-hg="Economy and Money"]{--gc:#b58218}
html body #homeGrid .hc[data-hg="Arctic Powers"]{--gc:#2aa3c4}
html body #homeGrid .hc[data-hg="Countries and Alliances"]{--gc:#7048c6}
html body #homeGrid .hc[data-hg="Places and Chokepoints"]{--gc:#1f8f6e}
html body #homeGrid .hc[data-hg="Security"]{--gc:#c43c72}
html body #homeGrid .hc[data-hg="Goods and Supply"]{--gc:#6a9a2a}
html body #homeGrid .hc[data-hg="Ships"]{--gc:#2f56b0}
html body #homeGrid .hc[data-hg="Library"]{--gc:#8b5e3c}
html body #homeGrid .hc[data-hg="Briefs"]{--gc:#e07a2d}
html body #homeGrid .hc.hpd h3{display:flex!important;align-items:center;gap:9px;color:color-mix(in srgb,var(--gc,var(--sea)) 80%,var(--ink))!important}
html body #homeGrid .hc.hpd h3::before{content:""!important;display:inline-block!important;flex:none;width:10px;height:10px;border-radius:3px;background:var(--gc,var(--sea))}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) html body #homeGrid .hc.hpd h3,html body #homeGrid .hc.hpd h3{color:color-mix(in srgb,var(--gc,var(--sea)) 62%,#fff)!important}}
:root[data-theme="dark"] body #homeGrid .hc.hpd h3{color:color-mix(in srgb,var(--gc,var(--sea)) 62%,#fff)!important}
html body #homeGrid .hc.hpd .ht button,html body #homeGrid .hc.hpd .ht a.bla{background:var(--panel,#fff)!important;border:1px solid color-mix(in srgb,var(--gc,var(--sea)) 28%,var(--line))!important;transition:background .15s,color .15s,border-color .15s,transform .15s}
html body #homeGrid.hp .hc.hpd .ht button:hover,html body #homeGrid.hp .hc.hpd .ht button:focus-visible,html body #homeGrid .hc.hpd .ht a.bla:hover,html body #homeGrid .hc.hpd .ht a.bla:focus-visible{background:linear-gradient(125deg,color-mix(in srgb,var(--gc,var(--sea)) 78%,#000),var(--gc,var(--sea)))!important;color:#fff!important;border-color:transparent!important;transform:translateY(-1px)}
html body #homeGrid .hc.hpd .ht a.bla:hover b,html body #homeGrid .hc.hpd .ht a.bla:hover::after,html body #homeGrid .hc.hpd .ht button:hover b,html body #homeGrid .hc.hpd .ht button:hover::after{color:#fff!important}
html body #homeGrid .hc.hpd h3{font-size:16px!important;letter-spacing:.06em!important;white-space:nowrap}

/* ---- home sections: shared sleek card style ---- */
html body #hotBox,html body #bwb,html body #sinceVisit,html body #nowBox,html body #iwCard,html body #atMapRow,html body #glance>div,html body #homeSlot details.st-d{background:var(--panel,#fff)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:var(--hsh)!important;overflow:hidden}
html body #hotBox,html body #bwb,html body #sinceVisit,html body #nowBox,html body #iwCard,html body #atMapRow{padding:18px 20px 16px!important;position:relative}
html body #hotBox::before,html body #bwb::before,html body #sinceVisit::before,html body #nowBox::before,html body #iwCard::before,html body #atMapRow::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--hgrad)}
html body #hotBox>h3,html body #bwb>h3,html body #sinceVisit>h2,html body #iwCard>h3,html body #startZone>h2,html body #nowBox .nwH b,html body #atMapRow .amh b{font-family:inherit!important;font-size:12.5px!important;font-weight:800!important;letter-spacing:.09em!important;text-transform:uppercase;color:var(--sea,#1b6a8c)!important;margin:0 0 10px!important;display:flex;align-items:center;gap:9px}
html body #hotBox>h3::before,html body #bwb>h3::before,html body #sinceVisit>h2::before,html body #iwCard>h3::before,html body #startZone>h2::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--hgrad);flex:none}
html body #startZone>h2{font-size:12.5px!important;margin:0 0 10px!important}
html body #bwb>h3{font-size:14px!important;letter-spacing:.05em!important}
html body #hotBox .hot-g{border:0!important;background:none!important;box-shadow:none!important;display:grid;gap:8px}
html body #hotBox .hot-c{background:color-mix(in srgb,var(--sea,#1b6a8c) 5%,var(--panel,#fff))!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:12px 14px!important;transition:border-color .15s,box-shadow .15s,transform .15s}
html body #hotBox .hot-c:hover{border-color:var(--sea,#1b6a8c)!important;box-shadow:0 6px 18px -10px rgba(15,52,70,.45);transform:translateY(-1px)}
html body #homeSlot details.st-d>summary{padding:14px 18px!important;font-weight:700;cursor:pointer;transition:background .15s,color .15s}
html body #homeSlot details.st-d>summary:hover{background:color-mix(in srgb,var(--sea,#1b6a8c) 10%,var(--panel,#fff))!important;color:var(--sea,#1b6a8c)}
html body #homeSlot details.st-d[open]>summary{border-bottom:1px solid var(--line)}
html body #homeSlot details.st-d>div{padding:14px 18px!important}
html body #homeSlot details.st-d .fnBadge{border-radius:99px!important}
html body #glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
html body #glance>div{padding:16px 18px!important;border-top:4px solid transparent!important;border-image:var(--hgrad) 1!important;border-radius:0 0 16px 16px!important}
html body #glance .kpi{font-size:34px;font-weight:800;color:var(--sea,#1b6a8c)}
html body #glance .kpi small{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#5b6b75)}
html body #hmMore{border:1px solid var(--line)!important;border-radius:16px!important;background:var(--panel,#fff)!important;box-shadow:var(--hsh)!important}
html body #hmMore>summary{padding:14px 18px!important}
html body #hmMore .hmC,html body #sinceVisit .k,html body #nowBox .nwT{border-radius:99px!important}
html body #nowBox details.nwI{border-radius:10px;transition:background .15s}
html body #nowBox details.nwI:hover,html body #sinceVisit li:hover{background:color-mix(in srgb,var(--sea,#1b6a8c) 7%,transparent)}
html body #bwb .sev,html body #bwb .bw-sev{border-radius:99px!important}
html body #atMapRow .amb button{border-radius:99px!important}
html body #homeStatus{border-radius:99px!important}
html body #exBar button{border-radius:99px!important}
html body #iwCard{padding:0!important}
html body #iwCard::before{display:none}
html body #iwCard>h3{color:#fff!important;margin:0!important;padding:14px 20px!important;font-size:13px!important}
html body #iwCard>h3::before{background:rgba(255,255,255,.85)}
html body #glance>div{border:1px solid var(--line)!important;border-image:none!important;border-radius:16px!important;position:relative;overflow:hidden}
html body #glance>div::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--hgrad)}
html body #iwCard .wwRd>summary{background:none!important;box-shadow:none!important}
html body #iwCard details.wwRd{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:-6px 0 10px!important}
html body #iwCard details.wwRd>summary{display:inline-block!important;list-style:none;cursor:pointer;padding:5px 14px!important;border:1px solid var(--line)!important;border-radius:99px!important;background:var(--panel,#fff)!important;color:var(--sea,#1b6a8c)!important;font-size:13px;font-weight:700;box-shadow:none!important;transition:background .15s,color .15s}
html body #iwCard details.wwRd>summary::-webkit-details-marker{display:none}
html body #iwCard details.wwRd>summary:hover{background:var(--hgrad)!important;color:#fff!important;border-color:transparent!important}
html body #iwCard details.wwRd[open]>summary{margin-bottom:6px}
html body #iwCard details.wwRd>p.wwP{margin:8px 0 0}
html body #iwCard .wwP:empty{display:none}

html body #hotStrip{margin:0 0 18px}
html body #hotStrip>h3{margin:0 0 10px;font-family:inherit!important;font-size:12.5px!important;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--sea);display:flex;align-items:center;gap:8px}
html body #hotStrip>h3::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--hgrad)}
html body #hotStrip .htG{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html body #hotStrip .htC{position:relative;display:flex;flex-direction:column;gap:6px;overflow:hidden;padding:18px 18px 16px;border:1px solid var(--line);border-radius:16px;background:var(--panel,#fff);box-shadow:var(--hsh);color:inherit!important;text-decoration:none!important;transition:transform .15s,box-shadow .15s}
html body #hotStrip .htC::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#3a1418,#8a1f2d 50%,#c4452f)}
html body #hotStrip .htU::before{background:linear-gradient(90deg,#8a1f2d,#b8452f 55%,#d98b3a)}
html body #hotStrip .htC:hover,html body #hotStrip .htC:focus-visible{transform:translateY(-2px);box-shadow:0 14px 28px -16px rgba(15,52,70,.5)}
html body #hotStrip .htC i{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#a8323f}
html body #hotStrip .htC b{font:700 20px/1.2 Georgia,serif;color:var(--ink,#14252e)}
html body #hotStrip .htC span{font-size:13.5px;line-height:1.5;color:var(--ink,#14252e);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html body #hotStrip .htC u{text-decoration:none;font-size:12px;color:var(--muted,#5b6b75);line-height:1.4}
html body #hotStrip .htC u b{font:700 12px system-ui,sans-serif;color:#a8323f}
html body #hotStrip .htC em{font-style:normal;margin-top:4px;align-self:flex-start;padding:6px 14px;border-radius:99px;background:var(--hgrad);color:#fff;font-size:12.5px;font-weight:700}
@media(max-width:720px){html body #hotStrip .htG{grid-template-columns:1fr;gap:10px}}
html body #siteTitle{background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .6  0 0 0 0 .75  0 0 0 0 .95  0 0 0 .2 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"),var(--hgrad)!important}

@media(max-width:720px){button,summary,[role=tab]{min-height:40px}a.blr,a.bla,a.lead{display:inline-flex;align-items:center;min-height:40px}}

.bwbc .wb-more{color:#e6f1f8!important;border-color:rgba(230,241,248,.5)!important}
.bwbc a{color:#cfe3f1}
.wcW .wcC,.wcW .wcR,.wcW .wcD{white-space:normal;min-width:0}.wcW .wcH{row-gap:4px}
/* wide screens: use more of the page */
@media(min-width:1200px){main{max-width:1180px}}

/* map console: one toolbar, big map, signals under it */
#mapDock{background:var(--panel,#fff);border:1px solid var(--line);border-radius:18px;padding:10px;display:flex;flex-direction:column;gap:8px;box-shadow:0 6px 22px rgba(10,40,60,.08)}
#mapDock>#mapFoldBar{order:0;display:flex;align-items:center;gap:8px;margin:0}
#mapDock>#mapReg{order:1;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:4px;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--bg);-webkit-overflow-scrolling:touch}
#mapDock>#mapReg button{flex:0 0 auto;border:0;border-radius:9px;padding:6px 12px;background:transparent;font-weight:600;font-size:13px;min-height:34px}
#mapDock>#mapReg button[aria-pressed=true],#mapDock>#mapReg button.on{background:var(--ink,#14212a);color:var(--bg,#fff)}
#mapDock>#cmpTray{order:2;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-size:13px}
#mapDock>#mapBody{order:3;display:flex;flex-direction:column;gap:8px}
#mapBody>#hmBar{order:1;margin:0;display:flex;flex-wrap:wrap;gap:6px}
#mapBody>#hmTools{order:2;margin:0;border-radius:12px}
#mapBody>#hmHost{order:3;border-radius:14px;overflow:hidden;border:1px solid var(--line)}
#mapBody>#hmHost #hmMap{min-height:max(520px,68vh)}
#mapBody>#hmStrip{order:4;margin:0}
#mapBody>#mapCap{order:5;margin:0;font-size:12.5px;color:var(--mute,#5b6b75)}
#mapBody>.lg{order:6}#mapBody>#lyBtn{order:3}
#mapBody>#mapCap,#mapBody>.lg{padding:0 4px}
#hmBar button{border-radius:99px;padding:6px 14px;font-weight:600;font-size:13px;min-height:34px}
#hmStrip{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
#hmStrip .uxc{flex:0 0 190px;text-align:left;border-radius:12px;padding:10px 12px;min-height:0;height:auto}
@media(max-width:700px){#mapBody>#hmHost #hmMap{min-height:60vh}#mapDock{padding:8px;border-radius:14px}}
#mapBody>.wb-more{order:7;align-self:flex-start}
#mapBody>#lyBtn{order:3;align-self:flex-start;border:1px solid var(--line);border-radius:99px;background:var(--panel,#fff);padding:4px 12px;min-height:30px;font-weight:600}
#mapDock>#mapReg button{color:var(--ink)}
