/* BBSRA website — "village noticeboard, answers first". Afrikaans at the root, English in /en/.
   Layout: photo hero with the promise, a navy band of true numbers, then alternating white / shell
   sections that answer owners' questions on the page (cost, spending, weather, news). Light theme by brand choice. */
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
/* Stand-ins sized like the web fonts, used for the split second before they arrive, so text doesn't reflow (and the page doesn't jump) when they do */
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); font-weight: 100 599; size-adjust: 98.3%; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"); font-weight: 600 900; size-adjust: 93.6%; }
@font-face { font-family: "Source Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); font-weight: 100 599; size-adjust: 91.8%; }
@font-face { font-family: "Source Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"); font-weight: 600 900; size-adjust: 88.7%; }

:root {
  --navy: #103054;      /* brand, headings, dark band */
  --deep: #062547;      /* footer */
  --ink: #1C2B3B;       /* body text */
  --ocean: #1F6AA5;     /* links */
  --wave: #168ED3;      /* bars (decorative) */
  --sunset: #F2861D;    /* one accent: primary action, current page */
  --sun: #FAB41F;       /* figures on navy */
  --shell: #FBF5EA;     /* alternate sections */
  --sand: #E3B360;
  --slate: #5E6B78;
  --line: #DFE4EA;
  --white: #FFFFFF;
  --amber-bg: #FFF1D6; --amber-fg: #7A4300;
  --display: "Outfit", "Outfit Fallback", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Source Sans Fallback", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; font-weight: 600; overflow-wrap: break-word; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 2.8vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 820px; }
.small { font-size: 15px; color: var(--slate); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 16px; }
.confirm { display: none; font: 600 12px/1.6 var(--body); letter-spacing: .04em; text-transform: uppercase; background: var(--amber-bg); color: var(--amber-fg); padding: 0 6px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }
.more { font-family: var(--display); font-weight: 500; }
.more::after { content: " →"; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; gap: 16px 20px; min-height: 72px; padding-block: 10px; }
.brand { margin-right: auto; flex: none; display: block; }
.brand img { height: 40px; width: auto; max-width: none; aspect-ratio: 243 / 40; }
.nav-wide { display: flex; gap: 2px; }
.site-header nav a { font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--navy); text-decoration: none; padding: 10px 6px; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-header nav a:hover { color: var(--ocean); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--sunset); }
.nav-narrow { display: none; position: relative; }
.nav-narrow summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--navy); border: 2px solid var(--navy); border-radius: 8px; padding: 8px 16px; min-height: 44px; display: flex; align-items: center; }
.nav-narrow summary::-webkit-details-marker { display: none; }
.nav-narrow summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 10px; }
.nav-narrow[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.nav-narrow nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(6, 37, 71, .18); display: grid; min-width: 240px; padding: 8px;
  max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (orientation: landscape) and (max-height: 560px) {
  .nav-narrow nav { grid-template-columns: 1fr 1fr; column-gap: 8px; min-width: min(460px, calc(100vw - 32px)); }
  .nav-narrow nav a { padding: 10px 12px; }
}
.nav-narrow nav a { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.nav-narrow nav a:last-child { border-bottom: 0; color: var(--ocean); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 8px; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 500; font-size: 17px; text-decoration: none; border: 2px solid var(--navy); }
.btn:hover { background: #0B2440; color: var(--white); }
.btn-sun { background: var(--sunset); border-color: var(--sunset); color: var(--navy); }
.btn-sun:hover { background: #E07612; border-color: #E07612; color: var(--navy); }
.btn-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-light:hover { background: rgba(255, 255, 255, .15); color: var(--white); }
.report { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Hero */
.hero { display: block; padding-block: clamp(56px, 9vw, 128px) clamp(44px, 5vw, 72px); color: var(--white);
  background: linear-gradient(90deg, rgba(6, 37, 71, .82) 0%, rgba(6, 37, 71, .55) 45%, rgba(6, 37, 71, .05) 75%),
    linear-gradient(180deg, rgba(6, 37, 71, 0) 40%, rgba(6, 37, 71, .6) 100%), #6E8FA8 url("../img/hero-aerial-1920.jpg") 62% center / cover no-repeat;
  background-image: linear-gradient(90deg, rgba(6, 37, 71, .82) 0%, rgba(6, 37, 71, .55) 45%, rgba(6, 37, 71, .05) 75%),
    linear-gradient(180deg, rgba(6, 37, 71, 0) 40%, rgba(6, 37, 71, .6) 100%),
    image-set(url("../img/hero-aerial-1920.webp") type("image/webp"), url("../img/hero-aerial-1920.jpg") type("image/jpeg"));
  position: relative; }
.hero h1, .hero .lede { text-shadow: 0 1px 12px rgba(6, 37, 71, .45); }
.hero-inner { width: 100%; }
.hero h1 { color: var(--white); max-width: 15ch; font-size: clamp(36px, 6vw, 64px); margin-bottom: .3em; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); max-width: 46ch; }

/* Review copy: contact form switched off */
.form-off { background: var(--amber-bg); color: var(--amber-fg); border-radius: 8px; padding: 10px 14px; font-size: 16px; }
.form.is-off { opacity: .55; }
.form fieldset.off { display: contents; border: 0; margin: 0; padding: 0; }

/* Home weather strip: a slim line under the header, linking to the weather on the News & Weather page.
   One line on laptops and tablets; on phones the question and link share the first line, the numbers the second. */
.wxstrip { background: var(--white); border-bottom: 1px solid var(--line); }
.wxs { display: flex; align-items: center; gap: 4px 16px; min-height: 38px; padding-block: 5px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; white-space: nowrap; }
.wxs-h { font-family: var(--display); font-weight: 600; color: var(--navy); }
.wxs-items { display: flex; align-items: center; min-width: 0; }
.wxs-items > span { display: inline-flex; align-items: center; gap: 5px; }
.wxs-items > span:empty { display: none; }
.wxs-items > span:not(:empty) ~ span:not(:empty)::before { content: "·"; color: var(--slate); margin: 0 10px 0 5px; }
.wxs-items b { font-family: var(--display); font-weight: 600; color: var(--navy); }
.wxs-items .wxi { width: 22px; height: 22px; }
.wxs-items .si { color: var(--wave); flex: none; }
.wxs-items .tri { color: var(--wave); font-size: 11px; }
.wxs-items .cmp { color: var(--slate); }
.wxs-more { margin-left: auto; font-family: var(--display); font-weight: 500; color: var(--ocean); }
.wxs-more::after { content: " \2192"; }
.wxs:hover .wxs-more { text-decoration: underline; }
.wxs-off { color: var(--slate); }
.wxs-more .l-short { display: none; }
@media (max-width: 1099px) {   /* tablets: icons instead of the word labels, still one line */
  .wxs-items .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 760px) {    /* phones: two lines */
  .wxs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-block: 6px; font-size: 14px; }
  .wxs-more { grid-column: 2; grid-row: 1; }
  .wxs-h { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .wxs-items { grid-column: 1 / -1; min-height: 24px; }   /* the second line is reserved from the start, so nothing jumps when the numbers arrive */
}
@media (max-width: 400px) { .wxs-more .l-long { display: none; } .wxs-more .l-short { display: inline; } }
@media (max-width: 374px) { .wxs-items .cmp, .wxs-items [data-wx="s-wind"] .si { display: none; } .wxs-items > span:not(:empty) ~ span:not(:empty)::before { margin: 0 7px 0 3px; } }

/* News page: older news behind a button */
.older-news summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--navy); border-radius: 8px; font-family: var(--display); font-weight: 500; color: var(--navy); }
.older-news summary::-webkit-details-marker { display: none; }
.older-news summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.older-news[open] summary { margin-bottom: 18px; }
.older-news[open] summary::after { transform: translateY(2px) rotate(-135deg); }

/* Facts band */
.facts { background: var(--navy); color: var(--white); padding-block: 28px; }
.factrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.factrow p { margin: 0; color: #D7E1EC; font-size: 16px; }
.factrow .fig { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); color: var(--sun); line-height: 1.2; font-variant-numeric: tabular-nums; }

/* Sections */
.sec { padding-block: 64px; }
.tint { background: var(--shell); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split-text p { max-width: 52ch; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.three { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.panel p:last-child { margin: 0; }

/* Bars */
.bars { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 7.5em; gap: 16px; align-items: center; }
.bar-label strong { font-family: var(--display); font-weight: 600; color: var(--navy); display: block; }
.bar-label span { font-size: 15px; color: var(--slate); display: block; line-height: 1.4; }
.bar-track { height: 14px; background: #EAEFF4; border-radius: 7px; overflow: hidden; }
.bar { display: block; height: 100%; background: var(--wave); border-radius: 7px; }
.bars li:first-child .bar { background: var(--navy); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.bar-val strong { display: block; font-family: var(--display); color: var(--navy); }
.bar-val span { font-size: 14px; color: var(--slate); }

/* Tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); margin-bottom: 10px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { text-align: left; }
thead th { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--slate); background: #F5F7FA; }
tbody th { font-weight: 600; color: var(--navy); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.formula { font-family: var(--display); font-weight: 500; color: var(--navy); background: var(--shell); border-radius: 8px; padding: 14px 18px; }

/* Weather, emergency, news */
.emergency { list-style: none; padding: 0; margin: 0; }
.emergency li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.emergency .num { font-family: var(--display); font-weight: 600; color: var(--navy); white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.emergency .num.muted { color: var(--slate); font-weight: 500; white-space: normal; text-align: right; }
.news { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 18px; }
.news li { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.news .date { font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 0 0 2px; }
.news h3 { font-size: 19px; margin-bottom: 4px; }
.news p:last-child { margin: 0; }

/* Inner pages */
.pagehead { background: var(--shell); padding-block: 48px 36px; border-bottom: 1px solid var(--line); }
.pagehead p { color: var(--slate); max-width: 65ch; margin: 0; }
.pagehead h1 { margin-bottom: .3em; }
.svcgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 16px; }
.svc { border-top: 4px solid var(--navy); padding-top: 14px; }
.svc:nth-child(2) { border-top-color: var(--wave); }
.svc:nth-child(3) { border-top-color: #51782F; }
.svc:nth-child(4) { border-top-color: var(--sunset); }
.map { margin: 0; }
.map img { border-radius: 12px; border: 1px solid var(--line); }
.map figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--sand); }
.steps li { position: relative; padding: 0 0 18px 22px; }
.steps li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--sunset); }
.steps .date { display: block; font-family: var(--display); font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.plain { list-style: none; padding: 0; margin: 0 0 16px; }
.plain li { padding: 4px 0; }
.prose p { max-width: 65ch; }
.prose-table { width: 100%; table-layout: fixed; }
.prose-table th, .prose-table td { text-align: left; white-space: normal; vertical-align: top; font-size: 16px; line-height: 1.45; }
.prose-table th:first-child, .prose-table td:first-child { width: 34%; font-weight: 600; color: var(--navy); }

/* Documents */
.docs { padding-block: 40px 64px; display: grid; gap: 40px; }
.docgroup h2 { font-size: 24px; }
.doclist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--navy); }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.docbody { min-width: 0; }
.doc h3 { margin: 0 0 2px; font-size: 19px; }
.doc p { margin: 0; }
.doc .meta { font-size: 15px; color: var(--slate); margin-top: 4px; font-variant-numeric: tabular-nums; }
.filetag { width: 44px; height: 54px; background: var(--shell); border: 2px solid var(--sand); border-radius: 4px 12px 4px 4px; display: grid; place-items: end center; padding-bottom: 6px; font: 700 12px/1 var(--display); color: var(--navy); letter-spacing: .05em; }
.btn-doc { white-space: nowrap; }
.pending .filetag { border-color: var(--line); color: var(--slate); background: var(--white); }
.disabled { background: var(--line); border-color: var(--line); color: var(--slate); cursor: default; }

/* FAQ accordions */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.tabs a { font-family: var(--display); font-weight: 500; text-decoration: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 8px 18px; }
.tabs a:hover { background: var(--navy); color: var(--white); }
details.qa { border-bottom: 1px solid var(--line); background: var(--white); }
.tint details.qa { background: transparent; }
details.qa summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--navy); padding: 16px 40px 16px 0; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 26px; color: var(--sunset); font-weight: 400; }
details.qa[open] summary::after { content: "−"; }
details.qa p { margin: 0 0 18px; max-width: 68ch; }

/* Contact */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.card .big { font-family: var(--display); font-size: 21px; color: var(--navy); font-weight: 600; margin: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--deep); color: #D7E1EC; padding-block: 48px 24px; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 18px; }
.site-footer .small { color: #AFC0D2; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: .1em; color: var(--white); margin: 0 0 4px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot > * { min-width: 0; }
.footlinks { display: flex; flex-direction: column; gap: 4px; }
.footlinks a { text-decoration: none; }
.footlinks a:hover { text-decoration: underline; }
.credits { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 32px; flex-wrap: wrap; }
.credits p { margin: 0; }
.photo-credits { font-size: 12px; line-height: 1.5; color: #8FA3B8; text-align: right; max-width: 52ch; margin-left: auto; }
.site-footer .photo-credits a { color: #B7C6D6; }
.footlangs { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 15px; margin-top: 14px; }
.footlangs a { text-decoration: none; } .footlangs a[aria-current] { color: var(--sun); }


/* Language slider: Afr | Eng. Two plain links (so it works without JavaScript); the knob sits under the current language */
.lang-slider { position: relative; flex: none; display: grid; grid-template-columns: 1fr 1fr; width: 96px; height: 44px; padding: 3px; border: 2px solid var(--sunset); border-radius: 999px; background: var(--white); isolation: isolate; }
.site-header .lang-slider a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--navy); text-decoration: none; }
.site-header .lang-slider a:not([aria-current]):hover { background: #FFF4E8; color: var(--navy); }
.ls-knob { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--sunset); transition: transform .18s ease; }
.lang-slider[data-pos="1"] .ls-knob { transform: translateX(100%); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.foot-logo { width: 190px; height: auto; margin-bottom: 12px; }

/* Photo page head */
.pagehead.photo { position: relative; color: var(--white); border-bottom: 0; padding-block: 150px 44px; background-position: center 70% !important;
  background: linear-gradient(180deg, rgba(6, 37, 71, .15) 0%, rgba(6, 37, 71, .8) 100%), #8FA7B8 url("../img/beach-1800.jpg") center 70% / cover no-repeat;
  background-image: linear-gradient(180deg, rgba(6, 37, 71, 0) 30%, rgba(6, 37, 71, .75) 100%), image-set(url("../img/beach-1800.webp") type("image/webp"), url("../img/beach-1800.jpg") type("image/jpeg")); }
.pagehead.photo h1, .pagehead.photo p { color: var(--white); }
.pagehead.photo h1 { text-shadow: 0 1px 12px rgba(6, 37, 71, .5); }

/* Weather, tides and sea: one panel */
.wxp { border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(16, 48, 84, .06); overflow: hidden; }
.wxp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; padding: 22px 26px 6px; }
.wxp-head h2 { margin: 0; }
.wxp-meta { margin: 0; font-size: 15px; color: var(--slate); font-variant-numeric: tabular-nums; }
.wxp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 26px 6px; }
.stat { background: var(--shell); border-radius: 14px; padding: 14px 16px 12px; min-width: 0; display: flex; flex-direction: column; }
.stat .val { margin-top: auto; padding-top: 2px; }
.stat p { margin: 0; }
.stat .lbl { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.stat .val { display: flex; align-items: center; gap: 8px; min-height: 52px; color: var(--navy); }
.stat .big { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .unit { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--slate); align-self: flex-end; margin-bottom: 5px; margin-left: -4px; }
.stat .sub { font-size: 15px; color: var(--ink); min-height: 1.5em; display: flex; align-items: center; gap: 5px; }
.stat .wxi { flex: none; }
.wind-arrow { flex: none; color: var(--ocean); }
.wxp-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 32px; padding: 18px 26px 8px; }
.wxp-body h2, .wxp-body h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 500; margin: 0 0 10px; }
.wx-msg { margin: 0; color: var(--slate); font-size: 16px; }
.tide-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.tide-next { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 8px; }
.tide-next .lbl { grid-column: 1 / -1; align-self: start; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.tide-next .lbl::before { content: "\25B2  "; color: var(--ocean); font-size: 10px; }
.tide-next.down .lbl::before { content: "\25BC  "; }
.tide-next .time { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.tide-next .when { font-size: 14px; color: var(--slate); }
.tide-curve { display: block; max-width: 100%; height: auto; overflow: visible; }
.tide-curve text { font: 600 11px var(--display); fill: var(--navy); }
.tide-curve text.ax { font-weight: 400; fill: var(--slate); }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wx-days li { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; font-variant-numeric: tabular-nums; }
.wx-days .d { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 15px; }
.wx-days .t { font-size: 16px; color: var(--slate); } .wx-days .t strong { color: var(--ink); }
.wx-days .r { font-size: 13px; color: var(--ocean); }
.wxp-sun { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.wxp-sun div { background: var(--shell); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; }
.wxp-sun dd { margin-top: auto !important; }
.wxp-sun dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.wxp-sun dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.wxp-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px 24px; flex-wrap: wrap; padding: 14px 26px 18px; margin-top: 10px; border-top: 1px solid var(--line); }
.wxp-foot p { margin: 0; }
.wxp-foot .links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.wxp-foot .links a { font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; }
.wxp-foot .links a::after { content: " \203A"; }
.wxp-foot .src { font-size: 13px; color: var(--slate); max-width: 62ch; }


/* Levy: steps, calculator, VAT */
.howsteps { padding-left: 1.3em; margin: 0 0 16px; }
.howsteps li { margin-bottom: 8px; }
.calc { background: var(--white); border: 2px solid var(--navy); border-radius: 14px; padding: 24px; }
.calc label { display: block; font-family: var(--display); font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.calc input { width: 100%; font: 600 26px/1.2 var(--display); color: var(--navy); padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.calc input:focus { border-color: var(--ocean); outline: none; box-shadow: 0 0 0 3px rgba(31, 106, 165, .2); }
.calc table { margin-top: 16px; }
.calc td, .calc th { padding: 10px 8px; }
.calc tbody tr.levy th, .calc tbody tr.levy td { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 20px; background: var(--shell); }
.calc tbody tr.vat th, .calc tbody tr.vat td { font-size: 15px; color: var(--slate); font-weight: 400; }
.calc .small { margin: 12px 0 0; }
.vatbox { border-left: 4px solid var(--sunset); background: var(--white); padding: 18px 22px; border-radius: 0 12px 12px 0; }
.vatbox p:last-child { margin: 0; }
.anchor { scroll-margin-top: 96px; }
table.levy thead th { white-space: normal; vertical-align: bottom; }
.urgent { background: var(--shell); border-left: 4px solid var(--sunset); padding: 12px 16px; border-radius: 0 10px 10px 0; margin-bottom: 20px; }

/* Contacts */
.reportbox { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; border: 2px solid var(--sunset); border-radius: 16px; padding: 32px; background: var(--white); }
.report-aside { display: grid; gap: 16px; align-content: start; }
.report-aside .panel { padding: 20px; }
.numbers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.numbers li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.numbers .rank { font-family: var(--display); font-size: 13px; color: var(--slate); min-width: 1.6em; }
.numbers .what { flex: 1; }
.numbers .how { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.numbers .how a { font-family: var(--display); font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.numbers .how a.mail { font-weight: 500; color: var(--ocean); font-size: 16px; overflow-wrap: anywhere; white-space: normal; }
.numbers .how .alt { font-size: 14px; color: var(--slate); }
.numbers li.top { background: linear-gradient(90deg, rgba(242, 134, 29, .08), transparent); }
.provgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prov { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; padding: 16px 18px 18px; text-decoration: none; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.prov:nth-child(2) { border-top-color: var(--wave); } .prov:nth-child(3) { border-top-color: var(--sand); }
.prov:hover { border-color: var(--ocean); box-shadow: 0 4px 14px rgba(16, 48, 84, .08); }
.prov-logo { height: 88px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 10px; }
.prov-logo img { max-height: 88px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.prov .role { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-family: var(--display); }
.prov .name { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 20px; }
.prov .prov-link { color: var(--ocean); font-size: 15px; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.prov .prov-link::after { content: " \2197"; text-decoration: none; display: inline-block; margin-left: 2px; }

/* Form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-family: var(--display); font-weight: 500; color: var(--navy); margin-bottom: 6px; font-size: 16px; }
.field .opt { font-family: var(--body); font-weight: 400; color: var(--slate); font-size: 14px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ocean); outline: none; box-shadow: 0 0 0 3px rgba(31, 106, 165, .2); }
.field input[type=file] { width: 100%; font-size: 16px; padding: 10px; border: 2px dashed var(--sand); border-radius: 10px; background: var(--shell); }
.hint { font-size: 14px; color: var(--slate); margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.form-msg { display: none; padding: 12px 14px; border-radius: 10px; background: #FDECEA; color: #8A1C12; font-size: 16px; }
.form-msg.show { display: block; }
.form-msg.ok { background: #EAF3E2; color: #2F4A1A; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
button.btn { cursor: pointer; }
.done { max-width: 640px; }

@media (max-width: 960px) { .reportbox { grid-template-columns: minmax(0, 1fr); padding: 24px; } }
@media (max-width: 820px) { .numbers, .provgrid { grid-template-columns: minmax(0, 1fr); } .photo-credits { text-align: left; margin-left: 0; } }
@media (max-width: 960px) { .wxp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wxp-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .calc { padding: 16px; } .calc th, .calc td { white-space: normal; padding: 8px 5px; font-size: 15px; } .calc tbody tr.levy th, .calc tbody tr.levy td { font-size: 17px; } .calc input { font-size: 22px; }
  .form { grid-template-columns: minmax(0, 1fr); } .reportbox { padding: 18px; border-radius: 12px; }
  .lang-slider { width: 88px; } .site-header .lang-slider a { font-size: 14px; }
  .pagehead.photo { padding-block: 72px 28px; }
  .wxp-head, .wxp-stats, .wxp-body, .wxp-foot { padding-left: 16px; padding-right: 16px; }
  .wxp-stats { gap: 10px; } .stat { padding: 12px 12px 10px; } .stat .big { font-size: 36px; } .stat .val { min-height: 44px; } .stat .wxi { width: 38px; height: 38px; }
  .stat .sub { font-size: 14px; } .tide-next .time { font-size: 26px; } }

@media (max-width: 1280px) {
  .nav-wide, .report { display: none; }
  .nav-narrow { display: block; }
  .three { grid-template-columns: 1fr 1fr; }
  .three > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .split, .two, .cards, .foot, .three { grid-template-columns: minmax(0, 1fr); }
  thead th { white-space: normal; }
  .factrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding-block: 48px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand img { height: 28px; }
  .head { gap: 8px; } .head-tools { gap: 8px; }
  .nav-narrow summary { padding: 6px 10px; font-size: 15px; min-height: 44px; }
  .hero { padding-block: 44px 36px; min-height: min(500px, 60svh); }
  .bars li { grid-template-columns: 1fr auto; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bars { gap: 18px; }
  .bar-val strong, .bar-val span { display: inline; }
  .bar-val span { margin-left: 6px; }
  .svcgrid { grid-template-columns: minmax(0, 1fr); }
  .hero { background-position: 0 0, 0 0, center top;
    background-image: linear-gradient(180deg, rgba(6, 37, 71, .55) 0%, rgba(6, 37, 71, .85) 100%),
      image-set(url("../img/hero-aerial-tall-900.webp") type("image/webp"), url("../img/hero-aerial-tall-900.jpg") type("image/jpeg")); }
  .doc { grid-template-columns: auto 1fr; }
  .btn-doc { grid-column: 1 / -1; }
  th, td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .ls-knob { transition: none; } }
@media (max-width: 380px) {
  .brand img { height: 24px; }
  .lang-slider { width: 80px; }
  .nav-narrow summary { padding: 6px 8px; font-size: 14px; }
}
@media (max-width: 340px) { .lang-slider { width: 66px; } .site-header .lang-slider a { font-size: 13px; } .brand img { height: 22px; width: auto; }
  .head, .head-tools { gap: 6px; } .nav-narrow summary::after { margin-left: 6px; } }

@media (max-width: 560px) {
  table.levy th, table.levy td { white-space: normal; padding: 10px 8px; font-size: 15px; }
  table.levy thead th { font-size: 13px; }
}
@media (max-width: 560px) { table.plan .opt { display: none; } }
