/* Ocean Field Atlas — shared server-rendered visual system, v1.
   Used after existing Tailwind 4 output and ui.css. Strictly CSS: zero JS
   dependencies, network fonts, texture/image backgrounds or live data calls. */
body.sf-atlas-site {
  --font-display:"Iowan Old Style",Baskerville,Georgia,serif;
  --font-body:system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,"SFMono-Regular",Consolas,monospace;
  --radius:4px;--radius-sm:3px;--radius-pill:4px;
  --atlas-amber:#bd803c;--atlas-readable:65ch;
  font-family:var(--font-body);letter-spacing:0;
  background-image:none!important;background-attachment:scroll!important;
  transition:none;
}
body.sf-atlas-site.ui-day {
  --bg-0:#f0f1e6;--bg-1:#e4ece6;--bg-2:#d8e5dd;
  --ink:#12383d;--muted:#476269;--faint:#697f82;
  --surface:#fafbf6;--surface-solid:#fafbf6;
  --border:#b6c7c3;--border-strong:#7c9e9c;
  --accent:#146a70;--accent-ink:#fff;--accent-2:#a36b30;
  --shadow:none;--glow:none;
}
body.sf-atlas-site.ui-night {
  --bg-0:#08272f;--bg-1:#12333a;--bg-2:#1d4145;
  --ink:#edf1e8;--muted:#b6cbc7;--faint:#91aaa8;
  --surface:#12353c;--surface-solid:#12353c;
  --border:#4f7173;--border-strong:#779b99;
  --accent:#97dbce;--accent-ink:#09262c;--accent-2:#e1af75;
  --shadow:none;--glow:none;--atlas-amber:#e1af75;
}
body.sf-atlas-site.ui-twilight {
  --bg-0:#2d2932;--bg-1:#37353c;--bg-2:#48424a;
  --ink:#f8ecdf;--muted:#dacdc8;--faint:#bbaba8;
  --surface:#383640;--surface-solid:#383640;
  --border:#81727a;--border-strong:#a9989c;
  --accent:#e8bf8c;--accent-ink:#25222c;--accent-2:#f1b3a9;
  --shadow:none;--glow:none;--atlas-amber:#e8bf8c;
}
/* Never override semantic forecast/risk colours: the safety coding stays truthful. */
body.sf-atlas-site .bg-deco,body.sf-atlas-site .footer-tide{display:none!important}
body.sf-atlas-site .hero::before{display:none!important}
body.sf-atlas-site :is(h1,h2,h3){text-wrap:balance}
body.sf-atlas-site .sf-atlas-main{isolation:isolate}
body.sf-atlas-site .site-header,
body.sf-atlas-site.ui-day .site-header,
body.sf-atlas-site.ui-night .site-header,
body.sf-atlas-site.ui-twilight .site-header{
  background:var(--bg-0)!important;backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;border-color:var(--border)!important;
  box-shadow:none!important;
}
body.sf-atlas-site .header-shell{min-height:62px}
body.sf-atlas-site .site-logo{font:600 1.33rem/1.2 var(--font-display);letter-spacing:-.035em}
body.sf-atlas-site .site-logo img{width:2.25rem;height:2.25rem;flex-basis:2.25rem}
body.sf-atlas-site .primary-nav a{font:.77rem/1.4 var(--font-body);letter-spacing:.015em}
body.sf-atlas-site .primary-nav a::after{height:1px}
body.sf-atlas-site .header-icon-button{border-radius:3px;box-shadow:none}
body.sf-atlas-site .nav-search-form{border-radius:3px;box-shadow:none}
body.sf-atlas-site .nav-search-input{border-radius:3px}
body.sf-atlas-site .site-footer{margin-top:2.5rem;background:var(--bg-1)!important;border-top:1px solid var(--border)}
body.sf-atlas-site .footer-inner{padding-bottom:1.8rem}
body.sf-atlas-site .footer-masthead{border-color:var(--border)}
body.sf-atlas-site .site-footer h2{font:650 .7rem/1.4 var(--font-mono);letter-spacing:.06em;text-transform:uppercase}
body.sf-atlas-site .site-footer a{text-decoration-thickness:1px}
/* Cards are quiet field plates instead of costly frosted widgets. */
body.sf-atlas-site .card-enhanced,
body.sf-atlas-site.ui-day .card-enhanced,
body.sf-atlas-site.ui-night .card-enhanced,
body.sf-atlas-site.ui-twilight .card-enhanced{
  background:var(--surface);border:1px solid var(--border);
  border-radius:3px;box-shadow:none;backdrop-filter:none;
  -webkit-backdrop-filter:none;transition:border-color 120ms ease-out;
}
body.sf-atlas-site .card-enhanced::after{display:none}
body.sf-atlas-site .card-enhanced:hover{transform:none;box-shadow:none;border-color:var(--border-strong)}
body.sf-atlas-site .btn{border-radius:3px;box-shadow:none;transform:none}
body.sf-atlas-site .btn:hover{transform:none;box-shadow:none}
body.sf-atlas-site :is(input[type=search],input[type=text],textarea,select){
  border-radius:3px;box-shadow:none;backdrop-filter:none;
}
body.sf-atlas-site .badge{border-radius:2px;font-variant-numeric:tabular-nums;box-shadow:none}
body.sf-atlas-site :is(.forecast-cell,.responsive-table,.guide-compare-card){
  box-shadow:none;backdrop-filter:none;transform:none;
}
body.sf-atlas-site .forecast-cell:hover{transform:none}
body.sf-atlas-site :is(table,td,th,.badge,.sf-country-score){
  font-variant-numeric:tabular-nums;
}
body.sf-atlas-site :is(.responsive-table,.sf-guide-table-wrap,.ranking-scroll,.heatmap-scroll){
  scrollbar-color:var(--border-strong) transparent;
}
body.sf-atlas-site :is(a,button,input,select,textarea,summary):focus-visible{
  outline:2px solid var(--accent);outline-offset:3px;
}
body.sf-atlas-site :is(.card-enhanced,.site-footer,.site-header){
  animation:none;
}
/* Common page bands: literature + instruments. All content remains server-rendered. */
body.sf-atlas-site .sf-atlas-page-band{
  background:var(--bg-1)!important;border-block:1px solid var(--border);
  color:var(--ink);
}
body.sf-atlas-site .sf-atlas-page-band-inner{padding-block:clamp(1.9rem,4vw,3.5rem);text-align:left}
body.sf-atlas-site .sf-atlas-kicker{
  display:block;margin:0 0 .62rem;color:var(--accent);
  font:700 .68rem/1.45 var(--font-mono);
  text-transform:uppercase;letter-spacing:.055em;
}
body.sf-atlas-site .sf-atlas-page-title{
  color:var(--ink);max-width:22ch;
  font:400 clamp(2.3rem,5vw,4.4rem)/1.05 var(--font-display);
  letter-spacing:-.04em;
}
body.sf-atlas-site .sf-atlas-page-band p:not(.sf-atlas-kicker){
  color:var(--muted);max-width:75ch;margin-left:0;line-height:1.65;
}
body.sf-atlas-site .sf-atlas-catalog{padding-block:clamp(1.65rem,4vw,3rem)}
body.sf-atlas-site .sf-atlas-catalog .card-enhanced h2{
  font:400 1.55rem/1.1 var(--font-display);
}
body.sf-atlas-site .sf-atlas-catalog .card-enhanced{
  height:100%;text-decoration:none;
}
body.sf-atlas-site .sf-atlas-country-metrics{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:1.6rem;
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);
}
body.sf-atlas-site .sf-atlas-country-metrics>.card-enhanced{
  border:0;border-radius:0;background:transparent;padding:1rem 1.1rem 1rem 0;
}
body.sf-atlas-site .sf-atlas-country-metrics>.card-enhanced+.card-enhanced{
  padding-left:1.1rem;border-left:1px solid var(--border);
}
body.sf-atlas-site .sf-atlas-country-metrics strong{font-size:clamp(1.35rem,2.4vw,2rem);font-variant-numeric:tabular-nums}
body.sf-atlas-site .sf-atlas-country-content h2,
body.sf-atlas-site .sf-atlas-reading>header h1{
  font:400 clamp(1.7rem,3vw,2.7rem)/1.12 var(--font-display);
}
/* Homepage: useful destinations, not decorative visual noise. */
body.sf-atlas-site .homepage-hero{border-block:1px solid var(--border);background:var(--bg-1)!important;overflow:visible}
body.sf-atlas-site .homepage-hero .hero-inner{
  text-align:left;padding-block:clamp(2.25rem,4.8vw,4.3rem)!important;
}
body.sf-atlas-site .sf-atlas-home-grid{
  display:grid;grid-template-columns:minmax(0,1.17fr) minmax(18rem,.83fr);
  align-items:center;gap:clamp(1.5rem,4vw,4rem);
}
body.sf-atlas-site .sf-atlas-home-copy{min-width:0}
body.sf-atlas-site .homepage-hero .hero-inner :is(h1,.hero-copy,.hero-search){
  margin-left:0;margin-right:0;text-align:left;
}
body.sf-atlas-site .homepage-hero h1{
  max-width:14ch;font:400 clamp(2.8rem,5.6vw,5.3rem)/.99 var(--font-display);
  letter-spacing:-.048em;color:var(--ink);
}
body.sf-atlas-site .homepage-hero h1 em{color:var(--accent);font-style:italic}
body.sf-atlas-site .homepage-hero .hero-copy{
  max-width:60ch;font-size:clamp(.95rem,1.4vw,1.07rem);line-height:1.6;
}
body.sf-atlas-site .homepage-hero .eyebrow{
  margin:0 0 1rem!important;letter-spacing:.07em;font-size:.69rem;
}
body.sf-atlas-site .homepage-hero .hero-search{max-width:100%;margin-top:1.4rem!important}
body.sf-atlas-site .homepage-hero .search-container{gap:.4rem}
body.sf-atlas-site .homepage-hero input#locationSearch{
  background:var(--surface)!important;color:var(--ink);border:1px solid var(--border)!important;
  border-radius:3px!important;box-shadow:none!important;backdrop-filter:none!important;
  min-height:52px;padding-block:.6rem;font-size:1rem;
}
body.sf-atlas-site .homepage-hero #location-search-button{
  background:var(--accent);border-radius:3px;box-shadow:none!important;
  min-height:52px;padding:.7rem 1rem;
}
body.sf-atlas-site.ui-night .homepage-hero #location-search-button{color:var(--accent-ink)}
body.sf-atlas-site .homepage-hero .hero-actions{
  flex-direction:row;justify-content:start;margin-top:1.05rem!important;gap:.45rem;
}
body.sf-atlas-site .homepage-hero .mobile-proof-strip{
  justify-content:start;margin-top:1.35rem;gap:.8rem;
  font:650 .68rem/1.5 var(--font-mono);text-transform:uppercase;letter-spacing:.03em;
}
body.sf-atlas-site .sf-atlas-home-index{
  background:var(--surface-solid);border:1px solid var(--border-strong);
  color:var(--ink);min-width:0;
}
body.sf-atlas-site .sf-atlas-home-index-head{
  display:flex;justify-content:space-between;gap:1rem;padding:.8rem 1rem;
  color:var(--muted);border-bottom:1px solid var(--border);
  font:650 .66rem/1.5 var(--font-mono);letter-spacing:.03em;
}
body.sf-atlas-site .sf-atlas-home-index h2{
  padding:1rem 1rem .5rem;font:400 1.85rem/1.1 var(--font-display);
}
body.sf-atlas-site .sf-atlas-home-index-list{margin:0;padding:0;list-style:none}
body.sf-atlas-site .sf-atlas-home-index-list>li{border-top:1px solid var(--border)}
body.sf-atlas-site .sf-atlas-home-index-list>li:first-child{border-top:0}
body.sf-atlas-site .sf-atlas-home-index-list a{
  display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;align-items:center;
  gap:.85rem;padding:.76rem 1rem;min-height:58px;text-decoration:none;color:var(--ink);
}
body.sf-atlas-site .sf-atlas-home-index-list a:hover{background:var(--bg-1)}
body.sf-atlas-site .sf-atlas-home-index-number{font:.73rem var(--font-mono);color:var(--accent)}
body.sf-atlas-site .sf-atlas-home-index-place{display:grid;gap:.15rem;min-width:0}
body.sf-atlas-site .sf-atlas-home-index-place strong{font-weight:650;font-size:.92rem}
body.sf-atlas-site .sf-atlas-home-index-place small{color:var(--muted);font-size:.74rem}
body.sf-atlas-site .sf-atlas-home-index-measure{font:650 .86rem var(--font-mono);color:var(--accent);font-variant-numeric:tabular-nums}
body.sf-atlas-site .sf-atlas-home-index-footer{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.9rem 1rem;border-top:1px solid var(--border-strong);
  color:var(--accent);text-decoration:none;font-weight:650;font-size:.83rem;
}
body.sf-atlas-site .sf-atlas-home-index-empty{padding:1rem;color:var(--muted)}
body.sf-atlas-site .sf-atlas-home-index-disclaimer{
  padding:0 1rem .8rem;color:var(--muted);font-size:.71rem;line-height:1.5;
}
body.sf-atlas-site .sf-atlas-home-content .section-heading-row{
  border-bottom:1px solid var(--border);padding-bottom:.7rem;
}
body.sf-atlas-site .sf-atlas-home-content .section-heading-row h2{
  font:400 clamp(1.5rem,3vw,2.25rem)/1.13 var(--font-display);
}
body.sf-atlas-site .country-chip,body.sf-atlas-site .feature-item{
  background:var(--surface)!important;border:1px solid var(--border)!important;
  border-radius:3px;box-shadow:none;transition:border-color 120ms ease-out;
}
body.sf-atlas-site .country-chip:hover,body.sf-atlas-site .feature-item:hover{border-color:var(--border-strong)!important;transform:none}
body.sf-atlas-site .popular-card-chart{height:3.9rem}
body.sf-atlas-site .popular-card-head h3{font:400 1.7rem/1.14 var(--font-display)}
body.sf-atlas-site .feature-item h3{font:400 1.5rem/1.15 var(--font-display)}
body.sf-atlas-site #how.card-enhanced{border-radius:3px}
/* Marine reports: actual verdicts remain visually primary and semantically coloured. */
body.sf-atlas-site .sf-atlas-report,
body.sf-atlas-site .sf-atlas-climate{padding-top:clamp(1.25rem,2.5vw,2rem)}
body.sf-atlas-site .sf-atlas-report-header,
body.sf-atlas-site .sf-atlas-climate-header{
  text-align:left;border-bottom:1px solid var(--border);padding-bottom:1rem;
}
body.sf-atlas-site .sf-atlas-report-header h1,
body.sf-atlas-site .sf-atlas-climate-header h1{
  font:400 clamp(2.1rem,4vw,3.5rem)/1.08 var(--font-display);
  letter-spacing:-.035em;text-align:left;margin-bottom:.5rem;
}
body.sf-atlas-site .sf-atlas-report-header p,
body.sf-atlas-site .sf-atlas-climate-header p{text-align:left;color:var(--muted)}
body.sf-atlas-site .sf-atlas-report-verdict{
  border-radius:3px;box-shadow:none!important;overflow:visible;
  border-left-width:4px;
}
body.sf-atlas-site .sf-atlas-temperature-instrument{
  width:100%;max-width:30rem;border-radius:3px;
  background:var(--surface-solid)!important;border-color:var(--border-strong)!important;
  box-shadow:none;align-items:flex-start;text-align:left;
}
body.sf-atlas-site .sf-atlas-temperature-instrument>p{
  color:var(--ink);font-variant-numeric:tabular-nums;
}
body.sf-atlas-site .sf-atlas-temperature-instrument>p:nth-child(2){color:var(--accent)!important}
body.sf-atlas-site .sf-atlas-reading{font-family:var(--font-body)}
body.sf-atlas-site .sf-atlas-reading .guide-page-title{
  font:400 clamp(2.2rem,4.5vw,3.55rem)/1.06 var(--font-display);letter-spacing:-.036em;
}
body.sf-atlas-site .sf-atlas-sargassum>header h1{
  font:400 clamp(2.1rem,4.2vw,3.4rem)/1.06 var(--font-display);
}
body.sf-atlas-site .sf-atlas-reading :is(h2,h3){letter-spacing:-.015em}
body.sf-atlas-site .sf-atlas-reading .guide-page-lead{border-radius:3px}
@media(max-width:860px){
  body.sf-atlas-site .sf-atlas-home-grid{grid-template-columns:1fr}
  body.sf-atlas-site .sf-atlas-home-index{max-width:100%}
}
@media(max-width:640px){
  body.sf-atlas-site .sf-atlas-page-band-inner{padding-block:1.65rem}
  body.sf-atlas-site .sf-atlas-home-index h2{font-size:1.6rem}
  body.sf-atlas-site .sf-atlas-country-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.sf-atlas-site .sf-atlas-country-metrics>.card-enhanced{padding:.7rem .5rem}
  body.sf-atlas-site .sf-atlas-country-metrics>.card-enhanced+.card-enhanced{padding-left:.5rem}
  body.sf-atlas-site .sf-atlas-country-metrics strong{font-size:1.25rem}
  body.sf-atlas-site .homepage-hero .hero-actions{flex-wrap:wrap}
  body.sf-atlas-site .homepage-hero .hero-inner{padding-block:1.8rem!important}
  body.sf-atlas-site .sf-atlas-page-title{font-size:clamp(2.2rem,10vw,3rem)}
}
@media(prefers-reduced-motion:reduce){
  body.sf-atlas-site *,body.sf-atlas-site *::before,body.sf-atlas-site *::after{
    scroll-behavior:auto;animation:none!important;transition:none!important
  }
}
@media print{
  body.sf-atlas-site .site-header,body.sf-atlas-site .site-footer{display:none}
  body.sf-atlas-site{background:#fff!important;color:#000}
}
