/* base.css – shared styles for every page (round 19: style.css + premium.css + v2.css merged, dead rules removed).
   Page-specific CSS stays in olduspa.css, vedur.css, tilk.css, faerd2.css, lightbox.css, notfound.css. */

/* ==========================================================================
   PART: originally style.css (round 1 base layout)
   ========================================================================== */
:root { --chart-fill: rgba(30, 111, 217, 0.15); }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body { margin: 0; background-color: var(--bg); -webkit-font-smoothing: antialiased; }

/* Utilities */

small,
.small {
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

/* Focus outlines for keyboard users */
:focus { outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Navigation */

nav.topnav { background-color: var(--nav-bg); top: 0; }

nav.topnav a.brand { font-weight: 600; font-size: 18px; }

nav.topnav ul.menu li {
  margin: 0;
}

nav.topnav ul.menu li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

nav.topnav ul.menu li a.active {
  background-color: var(--nav-active);
  border-radius: 0;
}

nav.topnav .nav-tools { align-items: center; }

nav.topnav #menu-toggle {
  display: none;
}

/* Mobile menu */
@media (max-width: 979px) {
  nav.topnav #menu-toggle {
    display: flex;
  }

  nav.topnav ul.menu { position: absolute; left: 0; right: 0; background-color: var(--nav-bg); flex-direction: column; display: none; border-top: 1px solid rgba(255, 255, 255, 0.1); }

  nav.topnav ul.menu li a { padding: 12px 16px; border-radius: 8px; }

  nav.topnav ul.menu li a.active {
    background-color: var(--nav-active);
  }

  nav.topnav.open ul.menu {
    display: flex;
  }
}

/* Hero section */
section.hero { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
  section.hero {
    min-height: 240px;
  }
}

section.hero.small {
  min-height: 180px;
}

section.hero::before { top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }

@media (prefers-color-scheme: dark) {
  section.hero::before {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.15));
  }
}

section.hero .hero-inner { max-width: 1200px; width: 100%; padding: 0 16px; flex-direction: column; }

section.hero h1 { font-size: clamp(36px, 6vw, 64px); color: white; margin: 0; }

section.hero p.hero-sub { font-size: 18px; color: white; margin: 0; }

/* Cards overlapping hero */
main#main.container { margin: 0 auto; }



/* Cards */

/* Metrics */



/* Weather */



/* Last measurement */

/* Charts */



/* Notices */

/* Buttons */

/* Direction */

/* Badges */
.badge { display: inline-block; font-weight: 600; text-transform: uppercase; }

.badge.warn { background-color: rgba(243, 156, 18, 0.15); }

.badge.ok { background-color: rgba(39, 174, 96, 0.15); }

.badge.bad {
  background-color: rgba(231, 76, 60, 0.15);
  color: var(--bad);
}

/* Error */
.error { background-color: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); padding: 12px 16px; }

/* Panels */
section.panel { background-color: var(--surface); border-radius: 10px; box-shadow: 0 4px 12px var(--shadow); }

section.panel h2 { margin: 0 0 16px 0; }

/* Panel grid */



/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
}

.tab[aria-selected="true"] {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Tables */

table.data th,
table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table.data th { background-color: var(--surface-2); position: sticky; top: 0; z-index: 1; }

table.data tr:nth-child(even) {
  background-color: var(--surface-2);
}

table.data tr:hover {
  background-color: rgba(30, 111, 217, 0.05);
}

table.data td.num {
  text-align: right;
}

/* Strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Road list */

/* Webcams */




/* Announcement */



/* Footer */
.site-footer { background-color: var(--surface-2); }

/* Responsive adjustments */
@media (max-width: 979px) {
  .cards,
  .strip {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {




  .table-wrap {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  section.hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  section.hero p.hero-sub {
    font-size: 16px;
  }






}

/* ===================================================================
   Lead polish (written by the lead, not the models): icon sizing,
   grid overflow, metric layout, nav/brand, mockup fidelity.
   =================================================================== */
svg { flex-shrink: 0; }
nav.topnav { display: flex; align-items: center; gap: 16px; min-height: 64px; color: #fff; position: relative; z-index: 20; }
nav.topnav a.brand { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; color:#fff; text-decoration:none; margin-right:auto; }

nav.topnav .brand-title { line-height: 1.1; }

nav.topnav ul.menu { display:flex; list-style:none; margin:0; padding:0; align-self:stretch; }
nav.topnav ul.menu li { display:flex; }
nav.topnav ul.menu li a { display: flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }

nav.topnav .nav-tools { display:flex; gap:4px; margin-left:12px; }
nav.topnav .nav-tools > a, nav.topnav .nav-tools > button { border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }

nav.topnav .nav-tools svg { width:22px; height:22px; }
#menu-toggle { display:none; }
@media (max-width: 1100px) {
  #menu-toggle { display:grid; }
  nav.topnav ul.menu { display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; background:var(--nav-bg); padding:8px 0; box-shadow:0 8px 16px rgba(0,0,0,.3); }
  nav.topnav.open ul.menu { display:flex; }
  nav.topnav ul.menu li a { padding:14px 20px; font-size:17px; }
}
@media (max-width: 480px) {
  nav.topnav { gap:6px; padding:0 8px; }
   
  nav.topnav .brand-title { font-size:17px; } 
  nav.topnav .nav-tools { margin-left:0; gap:0; }
  nav.topnav .nav-tools > a, nav.topnav .nav-tools > button { width:36px; height:36px; }
}
section.hero .hero-inner { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }

@media (max-width: 600px) {
  section.hero .hero-inner { flex-direction:column-reverse; }
  
}




.panel h2 svg, .mini h2 svg, .mini h3 svg { width:22px; height:22px; vertical-align:-4px; color:var(--accent); }
table.data td svg { width:20px; height:20px; vertical-align:middle; }
.table-wrap .sticky, table.data td:first-child, table.data th:first-child { position:sticky; left:0; background:var(--surface); z-index:1; }
.strip { margin-top:16px; }
html[data-theme="dark"] .card, html[data-theme="dark"] section.panel, html[data-theme="dark"] .mini { border:1px solid var(--border); }

html[data-theme="dark"] body { font-size:17px; }

.strip ul { list-style:none; margin:0; padding:0; }
.strip li { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); }
@media (max-width: 700px) {

  section.hero h1 { font-size:34px; }
}

/* ===== v2 (lead): real hero photo ===== */
section.hero { background-size: cover; background-position: 35% 42%; }

@media (max-width: 700px) {
  section.hero { background-position: 30% 45%; }
}

/* ===== v2 (lead): live chart (style from the phone app WaveForecast.tsx) ===== */
.lc { margin: 0; --lc-alt: #0aa4c9; --lc-bubble-bg: #12324f; --lc-bubble-fg: #d7e7f4; }
html[data-theme="dark"] .lc { --lc-alt: #9b8cff; }
.lc-frame { display:grid; grid-template-columns:40px minmax(0,1fr); gap:6px; align-items:start; }
.lc-y { display:flex; flex-direction:column; justify-content:space-between; height:var(--lc-h); color:var(--muted); font-size:11px; line-height:1; text-align:right; transform:translateY(-.5em); }
.lc-y span { display:block; height:0; overflow:visible; }
.lc-main { min-width:0; }
.lc-plot { position: relative; height: var(--lc-h); touch-action: pan-y; cursor: crosshair; outline-offset: 4px; }
.lc-plot svg { display:block; width:100%; height:100%; overflow:visible; }
.lc-grid { stroke:var(--lc-grid); stroke-width:1; }
.lc-dayline { stroke:var(--lc-grid); stroke-width:1; stroke-dasharray:3 3; }

.lc-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.lc-line.fc { stroke:var(--lc-fc); }
.lc-line.obs { stroke:var(--lc-obs); stroke-width:2; }
.lc-line.alt, .lc-dot.alt { stroke:var(--lc-alt); }
.lc-line.dashed { stroke-dasharray:6 5; }

.lc-area.alt { color:var(--lc-alt); }
.lc-dot { position:absolute; width:7px; height:7px; border-radius:50%; background:var(--lc-obs); border:1.5px solid var(--surface); transform:translate(-50%,-50%); pointer-events:none; }
.lc-dot.fc { background:var(--lc-fc); }

.lc-cur { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--surface); transform: translate(-50%,-50%); pointer-events: none; }
@keyframes lcpulse { 0% { box-shadow:0 0 0 2px var(--lc-obs); } 70% { box-shadow:0 0 0 9px rgba(232,89,12,0); } 100% { box-shadow:0 0 0 2px var(--lc-obs); } }
@media (prefers-reduced-motion: reduce) { .lc-cur { animation:none; } }
.lc-now { position: absolute; top: 0; bottom: 0; width: 0; opacity: .7; pointer-events: none; }
.lc-now em { position: absolute; top: -2px; left: 4px; font-style: normal; font-weight: 700; color: var(--muted); text-transform: uppercase; }

.lc-x { position:relative; height:18px; margin-top:4px; }
.lc-x span { position:absolute; color:var(--muted); font-size:11px; white-space:nowrap; }

.lc-cross { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; }
.lc-tip { position: absolute; transform: translate(-50%, -100%); line-height: 1.35; white-space: nowrap; pointer-events: none; z-index: 3; display: flex; flex-direction: column; }
.lc-tip[hidden], .lc-cross[hidden] { display:none; }

.lc-tip .r i, .lc-key i { display:inline-block; width:14px; height:3px; border-radius:2px; vertical-align:middle; margin-right:5px; background:var(--lc-fc); }
.lc-tip .r.obs i, .lc-key.obs i { background:var(--lc-obs); height:8px; width:8px; border-radius:50%; }
.lc-tip .r.alt i, .lc-key.alt i { background:var(--lc-alt); }
.lc-key.dashed i { background:repeating-linear-gradient(90deg, var(--lc-alt) 0 5px, transparent 5px 8px); }
.lc-key.cur i { width: 10px; height: 10px; border-radius: 50%; }
.lc-tip .r.extra { color:var(--muted); }
.lc-legend { display: flex; flex-wrap: wrap; margin: 8px 0 0 46px; }

/* ===== v2 (lead): detail pages (Öldudufl, Veður) ===== */
.lc-dot.alt { background:var(--lc-alt); }
.lc { --lc-s1:#1e6fd9; --lc-s2:#e8590c; --lc-s3:#2f9e44; --lc-s4:#9c36b5; }
html[data-theme="dark"] .lc { --lc-s1:#3dcef6; --lc-s2:#ffb454; --lc-s3:#69db7c; --lc-s4:#da77f2; }
.lc-line.s1 { stroke:var(--lc-s1); } .lc-line.s2 { stroke:var(--lc-s2); } .lc-line.s3 { stroke:var(--lc-s3); } .lc-line.s4 { stroke:var(--lc-s4); }
.lc-area.s1 { color:var(--lc-s1); }
.lc-key.s1 i, .lc-tip .r.s1 i { background:var(--lc-s1); } .lc-key.s2 i, .lc-tip .r.s2 i { background:var(--lc-s2); }
.lc-key.s3 i, .lc-tip .r.s3 i { background:var(--lc-s3); } .lc-key.s4 i, .lc-tip .r.s4 i { background:var(--lc-s4); }
.detail { display: flex; flex-direction: column; }
.detail section.panel { margin:0; }

@keyframes livepulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

.chart-controls { display:flex; flex-wrap:wrap; gap:8px 14px; justify-content:space-between; margin-bottom:10px; }
.tabs.seg { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.tabs.seg .tab { border: 0; background: transparent; font: inherit; cursor: pointer; }

.tabs.seg .tab:focus-visible { outline:2px solid var(--accent); }


.compass { width:var(--size); text-align:center; flex:none; }
.compass svg { width:var(--size); height:var(--size); display:block; }

.compass .ticks line { stroke-width: 1.5; }
.compass text { font-weight: 700; text-anchor: middle; }

.compass text.na { font-size:20px; }

.compass .tail { opacity: .5; }
.compass-cap { max-width: 160px; margin-inline: auto; }
.mini-arrow { display:inline-block; vertical-align:-3px; color:var(--accent); }

.day-grid { display: grid; gap: 10px; }
.day-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; }
.day-name { font-weight:700; margin-bottom:4px; }
.day-main { display:flex; align-items:baseline; gap:8px; }

.day-max { font-size:22px; font-weight:700; }

.day-card dl { display:grid; grid-template-columns:auto 1fr; gap:2px 8px; margin:6px 0 0; }
.day-card dt { color:var(--muted); } .day-card dd { margin:0; text-align:right; }

.source { font-size:12px; color:var(--muted); margin:10px 0 0; }
.terms { display:grid; grid-template-columns:minmax(140px,220px) 1fr; gap:8px 16px; margin:0; }
.terms dt { font-weight:700; } .terms dd { margin:0; color:var(--muted); }
details > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details > summary h2 { display:inline; }

.table-wrap { overflow-x:auto; }

@media (max-width: 600px) {

.terms { grid-template-columns:1fr; } .terms dd { margin-bottom:6px; }

  .chart-controls { flex-direction:column; align-items:flex-start; }
  .lc-legend { margin-left:0; }
}
/* hero v2b: keep Herjólfur visible (ferry sits low-left in the photo) */
section.hero:not(.small) { min-height: 460px; align-items: flex-start; background-position: 40% 92%; }
section.hero:not(.small) .hero-inner { padding-top: 48px; }

/* [round 16] old mobile hero rules (min-height 300 / padding-top 16px) removed – they overrode the v2 mobile hero and put the text on top of the photo */

.day-card dd { white-space:nowrap; }
.day-grid { grid-template-columns:repeat(auto-fill, minmax(165px,1fr)); }
@media (max-width: 600px) { .day-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } .day-card dd { white-space:normal; } }

table.data td.num, table.data th.num { white-space:nowrap; }
table.data a { color:var(--accent); font-weight:600; }
@media (max-width: 600px) { #compare table.data { font-size:13px; } #compare th, #compare td { padding:6px 5px; } }
/* round 3: Öldudufl top row – buoy reading + tides side by side */


/* ==========================================================================
   PART: originally premium.css (round 4 polish layer)
   ========================================================================== */
/* =====================================================================
   premium.css – polish layer on top of style.css (lead, round 4)
   Same layout/content; refines type, spacing, depth, motion, dark mode.
   ===================================================================== */
@font-face {
  font-family: "InterVariable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
}
@view-transition { navigation: auto; }

:root {
  --font: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bg: #f1f4f9;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(30, 100, 216, .06), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f8;
  --text: #0e1b30;
  --text-2: #33435c;
  --muted: #627189;
  --accent: #1a62d6;
  --accent-2: #0ea5c6;
  --accent-soft: rgba(26, 98, 214, .09);
  --nav-bg: #0b1f3a;
  --nav-active: rgba(255, 255, 255, .12);
  --border: rgba(14, 34, 68, .09);
  --border-strong: rgba(14, 34, 68, .14);
  --ring: rgba(26, 98, 214, .45);
  --shadow: rgba(14, 30, 60, .10);
  --elev-1: 0 1px 2px rgba(14, 30, 60, .04), 0 2px 6px rgba(14, 30, 60, .04);
  --elev-2: 0 1px 2px rgba(14, 30, 60, .04), 0 6px 16px rgba(14, 30, 60, .06), 0 18px 36px -18px rgba(14, 30, 60, .18);
  --elev-3: 0 2px 4px rgba(14, 30, 60, .05), 0 12px 28px rgba(14, 30, 60, .10), 0 28px 56px -24px rgba(14, 30, 60, .28);
  --skel-a: #e9eef5; --skel-b: #f5f8fc;
  --ok: #1f9d55; --warn: #d9840a; --bad: #d64545;
}
html[data-theme="dark"] {
  --bg: #08111f;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(64, 140, 255, .08), transparent 60%);
  --surface: #0e1a2e;
  --surface-2: #122039;
  --surface-3: #162744;
  --text: #e7eef8;
  --text-2: #c3cfe0;
  --muted: #8d9db5;
  --accent: #66aefc;
  --accent-2: #3dcef6;
  --accent-soft: rgba(102, 174, 252, .12);
  --nav-bg: #071426;
  --nav-active: rgba(255, 255, 255, .10);
  --border: rgba(150, 185, 235, .10);
  --border-strong: rgba(150, 185, 235, .16);
  --ring: rgba(102, 174, 252, .55);
  --shadow: rgba(0, 0, 0, .35);
  --elev-1: 0 1px 2px rgba(0, 0, 0, .25);
  --elev-2: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .55);
  --elev-3: 0 2px 6px rgba(0, 0, 0, .35), 0 20px 48px -18px rgba(0, 0, 0, .7);
  --skel-a: #13223b; --skel-b: #1a2d4c;
  --ok: #3ccf7f; --warn: #f2a93b; --bad: #ff7a7a;
}

/* ---------- Typography ---------- */
body { font-family: var(--font); font-feature-settings: "cv11", "ss03", "calt"; letter-spacing: -.006em; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.018em; }
.metric-value, .tile-value, .big-temp, .day-max, .day-min, .tide-time, .tide-h, #hero-time, #hero-date,
table.data td, .lc-y, .lc-x, .lc-tip, .dir-cell, .last, .notice-date, .tile-sub, .lc-legend {
  font-variant-numeric: tabular-nums;
}

a { text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ---------- Focus & a11y ---------- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 5px var(--accent-soft); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 300; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; box-shadow: var(--elev-3); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------- Icons: consistent stroke ---------- */
svg[viewBox="0 0 24 24"] :is(path, circle, polyline, line, rect)[stroke] { stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Navigation (glass over hero) ---------- */
nav.topnav {
  height: 64px; padding: 0 max(16px, calc((100vw - 1400px) / 2 + 16px));
  background: linear-gradient(180deg, rgba(8, 24, 48, .78), rgba(8, 24, 48, .58));
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
nav.topnav.scrolled { background: rgba(9, 27, 52, .9); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .45); }
html[data-theme="dark"] nav.topnav { background: linear-gradient(180deg, rgba(5, 13, 26, .82), rgba(5, 13, 26, .62)); }
html[data-theme="dark"] nav.topnav.scrolled { background: rgba(6, 15, 30, .92); }
#shell { position: relative; }
#shell > nav.topnav { position: sticky; top: 0; }
#shell > section.hero { margin-top: -64px; padding-top: 64px; }
nav.topnav a.brand { gap: 10px; }

nav.topnav .brand-title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }

nav.topnav ul.menu { gap: 2px; }
nav.topnav ul.menu li a { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .82); transition: background .2s var(--ease), color .2s var(--ease); }
nav.topnav ul.menu li a svg { width: 18px; height: 18px; opacity: .9; }
nav.topnav ul.menu li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
nav.topnav ul.menu li a.active { background: var(--nav-active); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); }
nav.topnav .nav-tools > a, nav.topnav .nav-tools > button { width: 40px; height: 40px; border-radius: 10px; transition: background .2s var(--ease), transform .2s var(--ease); }
nav.topnav .nav-tools > a:hover, nav.topnav .nav-tools > button:hover { background: rgba(255, 255, 255, .10); }
nav.topnav .nav-tools > button:active { transform: scale(.94); }
@media (max-width: 979px) {
  nav.topnav ul.menu { top: 64px; background: rgba(8, 22, 44, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 8px; box-shadow: 0 16px 32px -12px rgba(0,0,0,.5); }
  nav.topnav ul.menu li a { height: 44px; margin: 0; }
}

/* ---------- Hero ---------- */
section.hero { overflow: hidden; isolation: isolate; }

section.hero::before {
  display: block !important; content: ""; position: absolute; inset: 0; z-index: -1;
  background: inherit; background-size: cover;
  transform-origin: 40% 70%; animation: kenburns 38s ease-in-out infinite alternate; will-change: transform;
}
section.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06) translate3d(-1%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { section.hero::before { animation: none; } }
section.hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-shadow: 0 2px 24px rgba(0, 10, 30, .45); }
section.hero p.hero-sub { font-weight: 500; opacity: .92; letter-spacing: -.005em; text-shadow: 0 1px 12px rgba(0, 10, 30, .5); }

html[data-theme="dark"] section.hero { filter: none; }
html[data-theme="dark"] section.hero::before { filter: brightness(.78) saturate(.9); }

/* ---------- Surfaces: cards & panels ---------- */
.card, section.panel, .chart, .mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--elev-2);
}
html[data-theme="dark"] .card, html[data-theme="dark"] section.panel, html[data-theme="dark"] .mini {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 40%), var(--surface); border-color: var(--border);
}

section.panel { padding: 24px; margin-bottom: 0; }
section.panel h2 { font-size: 19px; font-weight: 700; letter-spacing: -.022em; }
.panel-head h2 svg, .panel h2 svg { color: var(--accent); }
.detail { gap: 20px; padding-top: 22px; padding-bottom: 40px; }
.detail h3 { font-weight: 650; text-transform: uppercase; letter-spacing: .06em; margin: 24px 0 10px; }
main#main.container > * { animation: rise .55s var(--ease) both; }
main#main.container > *:nth-child(2) { animation-delay: .04s; } main#main.container > *:nth-child(3) { animation-delay: .08s; } main#main.container > *:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Metrics & tiles ---------- */

.metric-label, .tile-label { font-size: 12.5px; font-weight: 550; color: var(--muted); letter-spacing: .005em; text-transform: none; }
.day-card, .tide-row, .sun-row { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.day-card { padding: 12px 14px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
@media (hover: hover) { .day-card:hover { transform: translateY(-2px); border-color: var(--border-strong); } }
.day-max { letter-spacing: -.03em; }

.val-updated { animation: valflash 1.2s var(--ease); border-radius: 6px; }
@keyframes valflash { 0% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
.fade-in { animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Skeleton loaders (replace "Hleður…/Sæki…") ---------- */
.loading {
  position: relative; min-height: 88px; border-radius: var(--r-md); color: transparent !important; overflow: hidden; user-select: none;
  background: linear-gradient(100deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite;
}
.loading * { visibility: hidden; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .loading, body:not(.loaded) .metric-value { animation: none; } }

/* ---------- Controls ---------- */
.tabs.seg { padding: 3px; }
.tabs.seg .tab { border-radius: 9px; font-weight: 600; transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.tabs.seg .tab:hover { color: var(--text); }

html[data-theme="dark"] .tabs.seg .tab[aria-selected="true"] { background: #1d3354; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.06); }

.badge { border-radius: 999px; letter-spacing: .04em; font-size: 11px; padding: 2px 8px; }

details > summary { list-style: none; display: flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); margin-right: 4px; }
details[open] > summary::before { transform: rotate(45deg); }

/* ---------- Tables ---------- */
table.data { border-collapse: separate; border-spacing: 0; width: 100%; }
table.data th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
table.data td { border-bottom: 1px solid var(--border); }
table.data tr:nth-child(even) td { background: transparent; }
table.data tbody tr { transition: background .15s; }

table.data th:first-child { border-top-left-radius: 10px; } table.data th:last-child { border-top-right-radius: 10px; }
html[data-theme="dark"] table.data td:first-child, html[data-theme="dark"] table.data th:first-child, table.data td:first-child { background-color: inherit; }

/* ---------- Charts ---------- */
.lc { --lc-grid: rgba(14, 34, 68, .07); --lc-fc: #1a62d6; --lc-obs: #e8590c; }
html[data-theme="dark"] .lc { --lc-grid: rgba(150, 185, 235, .09); --lc-fc: #4cc9f5; --lc-obs: #ffb454; --lc-bubble-bg: #0b1a30; }
.lc-plot { border-left: 0; }
.lc-grid { stroke-dasharray: 2 4; }
.lc-line { stroke-width: 2.25; }

.lc-now { border-left: 1.5px dashed color-mix(in srgb, var(--muted) 70%, transparent); }
.lc-now em { font-size: 9.5px; letter-spacing: .08em; }

.lc-x span.day { font-weight: 650; }
.lc-tip { -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--elev-3); padding: 8px 11px; gap: 1px; }
.lc-tip .t { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.lc-tip .r b { font-weight: 700; }
.lc-cross { border-left: 1px solid color-mix(in srgb, var(--text) 35%, transparent); opacity: 1; }
.lc-legend { gap: 6px 8px; }
.lc-key { display: inline-flex; align-items: center; padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid var(--border); font-size: 11.5px; }
.lc-cur { border-width: 2.5px; }

/* ---------- Compass ---------- */

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding: 40px 16px 28px; background: #0a1b33; color: rgba(225, 235, 248, .78); border-top: 1px solid rgba(255,255,255,.06); text-align: left; font-size: 13px; }
html[data-theme="dark"] .site-footer { background: #050d1a; }

.site-footer p { margin: 0; line-height: 1.6; }
.site-footer a { color: #8cc4ff; }

/* ---------- Misc ---------- */
.error { border-radius: var(--r-md); }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
html { scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; }
section.hero::after { height: 160px; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 70%, transparent) 70%, var(--bg) 100%); }

@keyframes rise-soft { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
section.hero .hero-inner { position: relative; z-index: 3; }
section.hero::after { z-index: 1; }
section.hero.small::after { height: 36px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 60%, transparent)); }
section.hero.small { background-size: cover; background-position: 40% 55%; }

.hero-inner > div:first-child { animation: none; }

/* ==========================================================================
   PART: originally v2.css (round 5+ redesign: navy/cyan/glass)
   ========================================================================== */
/* =====================================================================
   v2.css – redesign after design-v2.png (deep navy, glowing cyan, glass)
   Loaded after style.css + premium.css on every page. Dark only.
   ===================================================================== */
:root, html[data-theme="dark"], html[data-theme="light"] {
  color-scheme: dark;
  --bg: #061226;
  --bg-grad: radial-gradient(900px 500px at 15% 0%, rgba(40, 120, 220, .16), transparent 60%), radial-gradient(1000px 600px at 100% 30%, rgba(61, 206, 246, .07), transparent 60%);
  --surface: rgba(12, 34, 66, .72);
  --surface-2: rgba(16, 42, 80, .55);
  --surface-3: rgba(20, 52, 96, .6);
  --text: #f2f7ff;
  --text-2: #d5e3f5;
  --muted: #a9bfdc;
  --accent: #3dcef6;
  --accent-2: #2fa8ff;
  --accent-soft: rgba(61, 206, 246, .12);
  --cyan: #3dcef6;
  --cyan-line: rgba(61, 206, 246, .38);
  --cyan-faint: rgba(61, 206, 246, .16);
  --border: rgba(61, 206, 246, .22);
  --border-strong: rgba(61, 206, 246, .42);
  --nav-bg: #050f20;
  --shadow: rgba(0, 0, 0, .45);
  --elev-1: 0 1px 2px rgba(0,0,0,.35);
  --elev-2: 0 0 0 1px rgba(61, 206, 246, .04), 0 10px 30px -12px rgba(0, 0, 0, .7), 0 0 26px -10px rgba(61, 206, 246, .28);
  --elev-3: 0 0 0 1px rgba(61, 206, 246, .08), 0 16px 40px -14px rgba(0, 0, 0, .8), 0 0 34px -8px rgba(61, 206, 246, .38);
  --skel-a: rgba(30, 60, 100, .55); --skel-b: rgba(50, 95, 150, .55);
  --ok: #4ade80; --warn: #fbbf24; --bad: #fb7185;
  --lc-fc: #3dcef6;
}
html { background: var(--bg); }
body { font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg-grad), var(--bg); background-attachment: fixed; }
.muted, .small { color: var(--muted); }
a { color: var(--cyan); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- glass panel ---------- */
.glass, .card, section.panel, .mini, .chart {
  background: linear-gradient(180deg, rgba(22, 56, 102, .55), rgba(9, 28, 56, .72)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: var(--elev-2) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------- nav ---------- */
nav.v2nav {
  height: 68px; background: rgba(4, 13, 28, .92) !important; border-bottom: 1px solid rgba(61, 206, 246, .14);
  padding: 0 max(20px, calc((100vw - 1360px) / 2 + 20px)); box-shadow: none;
}
nav.v2nav.scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,.7); }
nav.v2nav a.brand { gap: 12px; color: #fff; }
.brand-logo { display: inline-grid; place-items: center; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(61,206,246,.55)); }
.brand-logo svg { width: 46px; height: 24px; }
nav.v2nav .brand-title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
nav.v2nav ul.menu { gap: 6px; }
nav.v2nav ul.menu li a { height: 68px; padding: 0 16px; border-radius: 0; font-size: 16.5px; font-weight: 550; color: #dfeaf8; background: none !important; box-shadow: none !important; position: relative; }
nav.v2nav ul.menu li a:hover { color: #fff; }
nav.v2nav ul.menu li a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transform: scaleX(0); transition: transform .25s var(--ease); }
nav.v2nav ul.menu li a.active { color: #fff; }
nav.v2nav ul.menu li a.active::after, nav.v2nav ul.menu li a:hover::after { transform: scaleX(1); }
nav.v2nav ul.menu li a:hover:not(.active)::after { opacity: .45; }
nav.v2nav .nav-tools { margin-left: 8px; }
@media (min-width: 980px) { nav.v2nav .nav-tools { display: none; } }
@media (max-width: 979px) {
  nav.v2nav ul.menu { top: 68px; background: rgba(4, 13, 28, .98); border-bottom: 1px solid var(--border); }
  nav.v2nav ul.menu li a { height: 52px; font-size: 18px; }
  nav.v2nav ul.menu li a::after { left: 16px; right: auto; width: 40px; bottom: 8px; }
  nav.v2nav .nav-tools { margin-left: auto; }
  nav.v2nav .nav-tools button { color: #fff; width: 46px; height: 46px; }
}

/* ---------- hero ---------- */
#shell > section.v2hero { margin-top: 0; padding-top: 0; }
section.v2hero {
  min-height: 380px !important; align-items: center !important; isolation: isolate; overflow: hidden;
  background-image: linear-gradient(90deg, rgba(4, 14, 32, .78) 0%, rgba(4, 14, 32, .35) 38%, rgba(4, 14, 32, 0) 55%, rgba(4, 14, 32, .25) 100%), image-set(url("/assets/hero-v2.webp") type("image/webp"), url("/assets/hero-v2.jpg") type("image/jpeg")) !important;
  background-size: cover !important; background-position: center 55% !important;
  border-bottom: 1px solid rgba(61, 206, 246, .18);
}
section.v2hero::before { display: block !important; content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; background-size: cover; animation: kenburns 40s ease-in-out infinite alternate; transform-origin: 50% 60%; filter: none !important; }
section.v2hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; background: linear-gradient(180deg, transparent, rgba(6, 18, 38, .85)); }
section.v2hero .hero-inner { max-width: 1360px; padding: 32px 20px 48px; display: flex; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 32px; z-index: 3; }
section.v2hero h1 { font-size: clamp(36px, 4.6vw, 64px) !important; font-weight: 800; line-height: 1.04; letter-spacing: -.03em; max-width: 9.5em; text-shadow: 0 2px 22px rgba(0,8,24,.6); }
section.v2hero h1::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; margin-top: 18px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
section.v2hero p.hero-sub { font-size: 19px !important; max-width: 30em; margin-top: 16px !important; color: #e8f1fc; text-shadow: 0 1px 12px rgba(0,8,24,.7); }
section.v2hero.small { min-height: 230px !important; }
section.v2hero.small h1 { font-size: clamp(32px, 4vw, 52px) !important; }
.hero-notice { flex: 0 0 360px; padding: 20px 22px; background: linear-gradient(180deg, rgba(14, 44, 84, .78), rgba(6, 22, 46, .82)) !important; border-color: var(--border-strong) !important; box-shadow: var(--elev-3) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hn-head svg { width: 30px; height: 30px; color: #fff; flex: none; }
.hn-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }
.hn-body { min-height: 72px; }
.hn-title { margin: 0 0 4px; font-weight: 650; color: #fff; font-size: 16px; }
.hn-text { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hn-date { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.hn-link { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(61, 206, 246, .2); color: var(--cyan); font-weight: 600; text-decoration: none; font-size: 16px; }
.hn-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.hn-link:hover svg { transform: translateX(4px); }

/* ---------- main layout ---------- */
.v2main { max-width: 1360px; margin: -26px auto 0; padding: 0 20px 24px; position: relative; z-index: 4; display: flex; flex-direction: column; gap: 18px; }
.v2main > * { animation: rise .5s var(--ease) both; }
.card2 { padding: 20px 22px; min-width: 0; }
.c2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.c2-head h2 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.02em; color: #fff; }
.c2-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.c2-icon svg { width: 38px; height: 30px; color: #e6f2ff; }
.c2-foot { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.c2-foot a { color: var(--cyan); }
.cmp-title { text-align: center; font-weight: 650; font-size: 15px; color: #fff; margin-bottom: 4px; }

/* now strip */
.now-strip { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; align-items: center; padding: 18px 8px !important; }
.now-strip > * { padding: 6px 26px; }
.now-strip > * + * { border-left: 1px solid rgba(61, 206, 246, .25); }
.ns-title h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.ns-sub { margin: 4px 0 0; color: var(--text-2); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.ns-wave { width: 34px; height: 16px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M2 9c4-5 8-5 11 0s7 5 11 0 7-5 11 0 7 5 11 0M2 18c4-5 8-5 11 0s7 5 11 0 7-5 11 0 7 5 11 0' fill='none' stroke='%233dcef6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 4px rgba(61,206,246,.6)); }
.ns-time { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.ns-stat { display: flex; align-items: center; gap: 18px; }
.ns-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: #e8f2ff; transition: transform .6s var(--ease); }
.ns-icon svg { width: 38px; height: 38px; }
.ns-label { color: var(--text-2); font-size: 16px; font-weight: 550; }
.ns-value { font-size: 34px; font-weight: 750; letter-spacing: -.02em; color: #fff; line-height: 1.15; white-space: nowrap; }
.ns-value .unit { font-size: 18px; font-weight: 550; color: var(--muted); }

/* row 2 */
.row2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.forecast-card .c2-head { flex-wrap: wrap; }
.fc-body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; }
.fc-axis-title { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.fc-compass, .wx-compass { display: flex; flex-direction: column; align-items: center; }
.tabs.seg { background: rgba(4, 16, 36, .7); border: 1px solid var(--border); border-radius: 10px; }
.tabs.seg .tab { color: var(--text-2) !important; font-size: 15px; padding: 6px 13px; }
.tabs.seg .tab[aria-selected="true"] { background: linear-gradient(180deg, #3dcef6, #1ba7da) !important; color: #03203a !important; box-shadow: 0 0 14px rgba(61, 206, 246, .55) !important; font-weight: 750; }
.wx-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.wx-list { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wx-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(61, 206, 246, .1); }
.wx-row:last-child { border-bottom: 0; }
.wx-row dt { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 16px; }
.wx-ic svg { width: 22px; height: 22px; color: #e6f2ff; display: block; }
.wx-row dd { margin: 0; font-size: 21px; font-weight: 750; color: #fff; white-space: nowrap; }
.wx-row dd .unit { font-size: 14px; font-weight: 550; color: var(--muted); }

/* compass (v2 glow) */
.compass .ring { fill: rgba(4, 16, 36, .65); stroke: rgba(61, 206, 246, .55); stroke-width: 1.5; }
.compass svg { filter: drop-shadow(0 0 10px rgba(61, 206, 246, .25)); }
.compass .ticks line { stroke: rgba(200, 230, 255, .7); }
.compass text { fill: #e6f2ff !important; font-size: 12px; }
.compass text.n { fill: #fff !important; }
.compass .needle { fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
.compass .tail { fill: rgba(200, 230, 255, .35); }
.compass-cap { color: var(--text-2); font-size: 14px; margin-top: 6px; }

/* section title */
.section-title { display: flex; align-items: center; gap: 16px; margin: 14px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.section-title::before { content: ""; width: 44px; height: 4px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* row 3 */
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trip-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(61, 206, 246, .14); }
.trip-row:last-of-type { border-bottom: 0; }
.trip-route { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #fff; font-weight: 550; flex-wrap: wrap; }
.trip-route svg { width: 18px; height: 18px; color: var(--cyan); }
.trip-times { display: flex; gap: 8px; }
.trip-chip { display: flex; flex-direction: column; align-items: center; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--border); background: rgba(4, 16, 36, .55); }
.trip-chip b { font-size: 19px; color: #fff; }
.trip-chip small { font-size: 12px; color: var(--muted); }
.trip-chip.cancelled { border-color: rgba(251, 113, 133, .5); }
.trip-chip.cancelled b { text-decoration: line-through; color: #ffc2cc; }
.trip-chip.cancelled small { color: #ffb3c0; }
.tide-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tc-line { fill: none; stroke: var(--cyan); stroke-width: 2.5; filter: drop-shadow(0 0 5px rgba(61, 206, 246, .7)); }
.tc-dot { fill: #fff; stroke: var(--cyan); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--cyan)); }
.tc-dot.low { fill: #0b2a4a; }
.tc-lab { fill: #fff; font-size: 13px; font-weight: 700; text-anchor: middle; font-family: var(--font); }
.tc-time { fill: var(--text-2); font-size: 11.5px; text-anchor: middle; font-family: var(--font); }
.tc-now { stroke: rgba(220, 235, 255, .55); stroke-dasharray: 3 4; }
.tc-nowlab { fill: var(--muted); font-size: 10.5px; text-anchor: middle; font-family: var(--font); letter-spacing: .06em; }
.tide-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.tide-chip { display: flex; flex-direction: column; align-items: center; padding: 5px 4px; border-radius: 10px; border: 1px solid var(--border); background: rgba(4, 16, 36, .5); }
.tide-chip b { font-size: 18px; color: #fff; }
.tide-chip small { font-size: 12px; color: var(--muted); }
.tide-chip.high small:first-child { color: var(--cyan); font-weight: 650; }
.road-status { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: rgba(4, 16, 36, .55); }
.road-status b { display: block; font-size: 22px; color: #fff; }
.road-status small { color: var(--muted); font-size: 14px; }
.rs-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); flex: none; }
.road-status.warn .rs-dot { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.road-bad { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }

/* links */
.links-panel { padding: 18px 22px; }
.links-panel h2 { margin: 0 0 12px; font-size: 22px; font-weight: 750; color: #fff; }
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.link-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--border); background: rgba(4, 16, 36, .55); color: #fff; text-decoration: none; font-size: 17px; font-weight: 550; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.link-btn > span:first-child svg { width: 24px; height: 24px; display: block; color: #e6f2ff; }
.link-btn .lb-arrow { margin-left: auto; color: var(--cyan); }
.link-btn .lb-arrow svg { width: 20px; height: 20px; display: block; transition: transform .2s var(--ease); }
.link-btn:hover { border-color: var(--border-strong); box-shadow: 0 0 18px -4px rgba(61, 206, 246, .5); transform: translateY(-1px); }
.link-btn:hover .lb-arrow svg { transform: translateX(3px); }
.sources { padding: 18px 22px; scroll-margin-top: 80px; }
.sources h2 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.sources ul { margin: 0 0 8px; padding-left: 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }

/* chart (v2) */
.forecast-card .lc { --lc-fc: #3dcef6; --lc-grid: rgba(61, 206, 246, .14); --lc-obs: #ffffff; }
.lc-line.fc { stroke-width: 2.75; filter: drop-shadow(0 0 6px rgba(61, 206, 246, .85)); }
.lc-area { color: #3dcef6 !important; }
.lc-plot { border-bottom: 1px solid rgba(61, 206, 246, .3); }
.lc-y, .lc-x span { font-size: 13px; color: var(--text-2); }
.lc-x span.day { color: #fff !important; }
.lc-cur { background: #fff; border-color: #0b2a4a !important; animation: none; }
.lc-dot.obs { background: #fff; }
.lc-tip { background: rgba(6, 22, 46, .92); border-color: var(--border-strong) !important; color: #fff; font-size: 14px; }
.lc-tip .t { color: var(--cyan) !important; }
.lc-tip .r b { color: #fff !important; }
.lc-now { border-left-color: rgba(220, 235, 255, .45); }
.lc-past { fill: #fff; opacity: .03; }
.lc-key { background: rgba(4, 16, 36, .55); }

/* footer */
.site-footer.v2foot { margin-top: 26px; padding: 0 20px; background: rgba(3, 10, 22, .96) !important; border-top: 1px solid rgba(61, 206, 246, .18); color: var(--text-2); overflow: hidden; }
.v2foot .foot-inner { max-width: 1360px; margin: 0 auto; min-height: 62px; display: flex; align-items: center; gap: 18px; position: relative; }
.v2foot .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 17px; }
.v2foot .brand-logo svg { width: 38px; height: 20px; }
.v2foot .foot-sep { width: 1px; height: 22px; background: rgba(61, 206, 246, .3); }
.v2foot p { margin: 0; font-size: 15px; }
.v2foot .foot-link { color: var(--cyan); font-size: 14.5px; z-index: 1; }
.v2foot .foot-updated { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--text-2); font-size: 14.5px; z-index: 1; white-space: nowrap; }
.v2foot .foot-updated svg { width: 18px; height: 18px; }
.v2foot .foot-updated b { color: #fff; }
.v2foot .foot-wave { position: absolute; right: -20px; bottom: 0; width: 46%; height: 56px; pointer-events: none; }
.v2foot .foot-wave path { fill: none; stroke: rgba(61, 206, 246, .35); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(61,206,246,.5)); }

/* ---------- subpages restyled ---------- */
body:not(.page-home) main#main { position: relative; z-index: 4; }
.detail { max-width: 1360px; margin: 0 auto; padding: 22px 20px 30px !important; }
section.panel h2, .panel-head h2 { color: #fff; font-size: 23px !important; }
.detail h3 { color: var(--cyan) !important; font-size: 14px !important; }
.tile, .day-card, .tide-row, .sun-row, .status-box, .announcement, .notice, .road-list li, .webcams > *, details.announcement, .table-wrap { background-color: rgba(4, 16, 36, .5); border-color: var(--border) !important; }
table.data { font-size: 15.5px !important; color: var(--text); }
table.data th { background: rgba(4, 16, 36, .7) !important; color: var(--cyan); }
table.data td { border-color: rgba(61, 206, 246, .12) !important; background: transparent !important; }
table.data tbody tr:hover td { background: rgba(61, 206, 246, .08) !important; }

.badge.ok { background: rgba(74, 222, 128, .14); color: #86efac; }
.badge.warn { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.error { background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .35); color: #ffe4e8; }

.lc-legend { color: var(--text-2); font-size: 13px !important; }
main#main.container { max-width: 1360px; padding: 22px 20px 30px; }
main#main.container > h2, main#main.container section > h2 { color: #fff; }
.day-max { color: #fff; } .day-name { color: var(--text-2); }
details > summary { color: var(--cyan) !important; }
.loading { --skel-a: rgba(30, 60, 100, .55); --skel-b: rgba(50, 95, 150, .55); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .forecast-card { grid-column: 1 / -1; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 > :first-child { grid-column: 1 / -1; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .now-strip { grid-template-columns: 1fr 1fr 1fr; row-gap: 14px; }
  .now-strip .ns-title { grid-column: 1 / -1; border-left: 0; }
  .now-strip .ns-stat:nth-child(2) { border-left: 0; }
}
@media (max-width: 900px) {
  section.v2hero .hero-inner { flex-direction: column !important; align-items: stretch; padding-bottom: 40px; }
  .hero-notice { flex: none; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  section.v2hero { min-height: 0 !important; background-image: linear-gradient(180deg, rgba(4,14,32,.25) 0%, rgba(4,14,32,.15) 40%, rgba(4,14,32,.85) 100%), image-set(url("/assets/hero-v2-m.webp") type("image/webp"), url("/assets/hero-v2-m.jpg") type("image/jpeg")) !important; background-position: center 30% !important; background-size: auto 340px !important; background-repeat: no-repeat !important; background-color: #061226 !important; }
  section.v2hero::before { display: none !important; }
  section.v2hero .hero-inner { padding: 210px 16px 34px; gap: 18px; }
  section.v2hero.small .hero-inner { padding: 120px 16px 26px; }
  section.v2hero h1 { font-size: 36px !important; }
  section.v2hero p.hero-sub { font-size: 17px !important; }
  .v2main { padding: 0 12px 20px; margin-top: -14px; gap: 14px; }
  .now-strip { grid-template-columns: 1fr; padding: 14px 4px !important; }
  .now-strip > * { padding: 10px 16px; }
  .now-strip > * + * { border-left: 0; border-top: 1px solid rgba(61, 206, 246, .2); }
  .ns-value { font-size: 32px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .row3 > :first-child { grid-column: auto; }
  .fc-body { grid-template-columns: 1fr; }
  .wx-body { grid-template-columns: 1fr; }
  .card2 { padding: 16px; }
  .c2-head h2 { font-size: 22px; }
  .section-title { font-size: 25px; }
  .link-grid { grid-template-columns: 1fr; }
  .trip-row { flex-direction: column; align-items: flex-start; }
  .v2foot .foot-inner { flex-wrap: wrap; padding: 14px 0; gap: 8px 14px; }
  .v2foot .foot-sep { display: none; }
  .v2foot .foot-updated { margin-left: 0; }
  .v2foot .foot-wave { width: 70%; opacity: .5; }
  .tide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.trip-chip { min-width: 84px; }
.trip-chip small { white-space: nowrap; }
.trip-chip.moved { border-color: rgba(251, 191, 36, .55); }
.trip-chip.moved b { text-decoration: line-through; color: #fde68a; }
.trip-chip.moved small { color: #fcd34d; }
/* no fade/rise animations in v2 – content must never appear dimmed (readability first) */
.v2 .fade-in, .v2 main > *, .v2 main#main.container > *, .v2 .cards > .card, .v2 .v2main > * { animation: none; }
/* keep the retouched right part of the hero photo dark (it sits behind the notice card on the home page) */
section.v2hero.home { background-image: linear-gradient(90deg, rgba(4, 14, 32, .78) 0%, rgba(4, 14, 32, .35) 36%, rgba(4, 14, 32, 0) 52%, rgba(4, 14, 32, .35) 70%, rgba(4, 14, 32, .7) 100%), image-set(url("/assets/hero-v2.webp") type("image/webp"), url("/assets/hero-v2.jpg") type("image/jpeg")) !important; }
section.v2hero.small { background-image: linear-gradient(90deg, rgba(4, 14, 32, .82) 0%, rgba(4, 14, 32, .35) 34%, rgba(4, 14, 32, 0) 48%, rgba(4, 14, 32, .55) 66%, rgba(4, 14, 32, .92) 80%, rgba(4, 14, 32, .96) 100%), image-set(url("/assets/hero-v2.webp") type("image/webp"), url("/assets/hero-v2.jpg") type("image/jpeg")) !important; background-position: center 58% !important; }
@media (max-width: 700px) {
  section.v2hero.home, section.v2hero.small { background-image: linear-gradient(180deg, rgba(4,14,32,.25) 0%, rgba(4,14,32,.15) 40%, rgba(4,14,32,.88) 100%), image-set(url("/assets/hero-v2-m.webp") type("image/webp"), url("/assets/hero-v2-m.jpg") type("image/jpeg")) !important; }
  
}
@media (max-width: 700px) { section.v2hero.small { background-size: cover !important; background-position: center 35% !important; } }
/* [round 9] measured buoy history line (orange) on the home wave chart */
.lc-line.obs.meas { stroke: #ff9f43; stroke-width: 2.75; filter: drop-shadow(0 0 5px rgba(255, 159, 67, .7)); }
.lc-tip .r.obs.meas i, .lc-key.obs.meas i { background: #ff9f43; width: 14px; height: 3px; border-radius: 2px !important; }
.lc-key.cur i { background: #fff; box-shadow: 0 0 0 2px #0b2a4a, 0 0 0 3px #ff9f43; }
.fc-chart .lc-legend { margin-top: 6px; gap: 8px; font-size: 14px; }
.fc-chart .lc-key { font-size: 13.5px; }
.lc-cur { box-shadow: 0 0 0 2px #ff9f43, 0 0 12px #ff9f43; }

/* [round 13] departures moved to Þorlákshöfn */
.tk-chip.thor, .trip-chip.thor { border-color: rgba(167, 139, 250, .65); background: rgba(167, 139, 250, .12); }
.tk-chip.thor small, .trip-chip.thor small { color: #c4b5fd; font-weight: 650; }
.trip-chip.thor b { text-decoration: none; color: #fff; }
.trip-chip.thor small { white-space: normal; text-align: center; line-height: 1.2; }
.trip-chip small i { font-style: normal; display: block; opacity: .8; font-weight: 500; }

/* [round 15 – test] Hvar er Herjólfur? (VesselFinder AIS embed, colour-inverted to look dark) */
.row3 > .vf-card { grid-column: 1 / -1; order: 1; }
.vf-note { font-size: 13.5px; }
.vf-map { border-radius: 12px; overflow: hidden; border: 1px solid rgba(61, 206, 246, .28); background: #0b1a2e; height: 580px; }
.vf-map iframe { display: block; width: 100%; height: 580px; border: 0; filter: invert(.9) hue-rotate(180deg) brightness(.92) contrast(.92) saturate(.9); }
.vf-open { display: none; }
@media (max-width: 1180px) { .row3 > .vf-card { order: 0; } }
@media (max-width: 699px) {
  .vf-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid rgba(61, 206, 246, .45); background: rgba(61, 206, 246, .1); color: #fff; font: inherit; font-weight: 650; font-size: 15.5px; cursor: pointer; }
  .vf-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .vf-card:not(.open) .vf-map { display: none; }
  .vf-card.open .vf-map { margin-top: 12px; }
  .vf-map, .vf-map iframe { height: 400px; }
}

/* [round 16] mobile home hero: photo full width at the top, heading + Herjólfur notice BELOW it (no overlap at any width).
   hero-v2-m is 870×670 → photo height = 77vw. Stronger selector than the old style.css rule. */
@media (max-width: 700px) {
  section.v2hero.home {
    background-image: linear-gradient(180deg, rgba(6, 18, 38, 0) 78%, #061226 100%), image-set(url("/assets/hero-v2-m.webp") type("image/webp"), url("/assets/hero-v2-m.jpg") type("image/jpeg")) !important;
    background-size: 100% 77vw, 100% auto !important;
    background-position: center top, center top !important;
    background-repeat: no-repeat !important;
  }
  section.v2hero.home::after { display: none; }
  section.v2hero.home:not(.small) .hero-inner { padding-top: calc(77vw + 12px); }
}

/* ===== [round 24] home + Tilkynningar fixes ===== */
/* desktop hero (≥ 701 px): photo placed by home.js so Herjólfur is never under the text or the notice card */
@media (min-width: 701px) {
  section.v2hero.home.hfit {
    background-image: var(--hb-grad), image-set(url("/assets/hero-v2.webp") type("image/webp"), url("/assets/hero-v2.jpg") type("image/jpeg")) !important;
    background-size: 100% 100%, var(--hb-size) !important; background-position: 0 0, var(--hb-pos) !important; background-repeat: no-repeat !important;
  }
  /* text column ≈ heading width; on wide screens the notice card moves out towards the edge so the ship has room */
  section.v2hero.home { min-height: 360px !important; }
  section.v2hero.home p.hero-sub { max-width: 22em; }
}
@media (min-width: 901px) {
  section.v2hero.home .hero-inner { max-width: none; padding-left: max(20px, calc((100% - 1360px) / 2 + 20px)); padding-right: max(20px, calc((100% - 1360px) / 4 + 20px)); }
}
@media (min-width: 701px) {
  section.v2hero.home.hfit::before { background-size: 100% 100%, var(--hb-size) !important; background-position: 0 0, var(--hb-pos) !important; background-repeat: no-repeat !important; }
  /* band mode: the whole photo as a strip on top, heading + notice card underneath (no overlap at all) */
  section.v2hero.home.hband {
    min-height: 0 !important; align-items: flex-start !important;
    background-image: linear-gradient(180deg, rgba(6, 18, 38, 0) 72%, #061226 100%), image-set(url("/assets/hero-v2.webp") type("image/webp"), url("/assets/hero-v2.jpg") type("image/jpeg")) !important;
    background-size: 100% var(--band-h), 100% var(--band-h) !important; background-position: 0 0, 0 0 !important; background-repeat: no-repeat !important; background-color: #061226 !important;
  }
  section.v2hero.home.hband::before { display: none !important; }
  section.v2hero.home.hband .hero-inner { padding-top: calc(var(--band-h) + 6px); align-items: flex-start; }
}
/* chart range pills: Ölduspá labels, ≥ 44 px */
.page-home #range-pills .tab { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.page-home #range-pills .pm { display: none; }
.page-home .lc-now em { font-size: 12px; }
.badge { font-size: 12px; }
/* tide curve labels: --tk keeps them ≥ 12 px on screen */
.tide-svg .tc-time { font-size: calc(12px * var(--tk, 1)); }
.tide-svg .tc-lab { font-size: calc(13px * var(--tk, 1)); }
.tide-svg .tc-nowlab { font-size: calc(12px * var(--tk, 1)); }
/* VesselFinder: always-visible link + fallback when the embed does not load */
.vf-map { position: relative; }
.vf-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--text-2); font-size: 15.5px; background: #0b1a2e; }
.vf-fallback[hidden] { display: none !important; }
.vf-fallback b { color: #fff; font-size: 17px; }
.vf-ext { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); font-weight: 600; font-size: 15px; text-decoration: none; }
.vf-ext:hover { text-decoration: underline; }
.vf-fallback .vf-ext { padding: 0 16px; border-radius: 10px; border: 1px solid rgba(61, 206, 246, .45); background: rgba(61, 206, 246, .1); color: #fff; }
.vf-card .c2-foot { margin-top: 6px; }
.vf-card:not(.open) .c2-foot.vf-foot { display: none; }
#road .c2-foot a { display: flex; align-items: center; width: fit-content; min-height: 44px; }
.hn-link { min-height: 44px; box-sizing: border-box; }
@media (max-width: 700px) {
  .page-home #range-pills-wrap { width: 100%; }
  .page-home #range-pills { display: flex; width: 100%; }
  .page-home #range-pills .tab { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 15px; }
  .page-home #range-pills .pu { display: none; }
  .page-home #range-pills .pm { display: inline; }
  /* buoy values: one compact row of three */
  .page-home .now-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 4px !important; }
  .page-home .now-strip .ns-title { grid-column: 1 / -1; padding: 4px 12px 10px; }
  .page-home .now-strip .ns-title h2 { font-size: 24px; }
  .page-home .now-strip .ns-stat { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 6px 12px; border-top: 1px solid rgba(61, 206, 246, .2); }
  .page-home .now-strip .ns-stat + .ns-stat { border-left: 1px solid rgba(61, 206, 246, .2); }
  .page-home .ns-icon { width: 26px; height: 26px; place-items: start; }
  .page-home .ns-icon svg { width: 24px; height: 24px; }
  .page-home .ns-label { font-size: 14.5px; }
  .page-home .ns-value { font-size: 27px; white-space: normal; }
  .page-home .ns-value .unit { font-size: 15px; }
  .page-home #ns-dir-txt { display: block; font-size: 14px; line-height: 1.2; }
  /* weather cards: 2×2 values + small compass beside them */
  .page-home .wx-card .c2-head { margin-bottom: 8px; }
  .page-home .wx-body { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
  .page-home .wx-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .page-home .wx-row { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 0; border: 0; }
  .page-home .wx-row dt { font-size: 14px; gap: 6px; }
  .page-home .wx-ic svg { width: 18px; height: 18px; }
  .page-home .wx-row dd { font-size: 20px; }
  .page-home .wx-compass { width: 96px; }
  .page-home .wx-compass .cmp-title { font-size: 13px; margin-bottom: 2px; }
  .page-home .wx-compass .compass-cap { font-size: 13px; text-align: center; margin-top: 2px; }
  .page-home .wx-card .c2-foot { margin-top: 8px; }
  /* "Gögn og heimildir": once (folded panel + footer), not three times */
  .page-home .link-grid a[href="#heimildir"] { display: none; }
  .page-home .sources:has(> details) { padding: 6px 14px; }
  .page-home #src-details > summary { min-height: 44px; padding: 0; }
  .page-home #src-details > summary h2 { font-size: 18px; margin: 0; line-height: 1.2; }
  .page-home #src-details[open] { padding-bottom: 10px; }
  .page-home footer .brand, .page-tilkynningar footer .brand { padding: 12px 0; margin: -12px 0; }
  .page-home footer .foot-link, .page-tilkynningar footer .foot-link { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* [round 27] IS/EN language switch in the header (≥ 44 px tap target) */
nav.v2nav .lang-tg { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 44px; margin-left: 10px; padding: 0 10px; box-sizing: border-box; border: 1px solid rgba(61, 206, 246, .35); border-radius: 10px; color: #dfeaf8; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
nav.v2nav .lang-tg:hover { color: #fff; background: rgba(61, 206, 246, .12); }
nav.v2nav .lang-tg:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 979px) { nav.v2nav .lang-tg { margin-left: auto; } nav.v2nav .nav-tools { margin-left: 4px; } }
/* [round 27] English site: where the announcement text comes from */
.hn-src { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.hn-src.machine, .ann-lang.machine b { color: #ffd166; }
.ann-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.ann-lang b { color: var(--cyan); font-weight: 650; }
.ann-orig { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--cyan); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ann-orig-text { margin-top: 10px; padding: 10px 12px; border-left: 3px solid rgba(61, 206, 246, .4); background: rgba(61, 206, 246, .05); border-radius: 0 8px 8px 0; }
.ann-orig-text[hidden] { display: none; }

/* [r29h] harbour banner on the home trips card (same look as tilkynningar .tk-port) */
.tk-port { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(61, 206, 246, .25); background: rgba(8, 26, 54, .55); margin-bottom: 14px; }
.tk-port b { display: block; color: #fff; font-size: 20px; }
.tk-port span { color: var(--text-2, var(--muted)); font-size: 15px; }
.tk-port-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.tk-port.ok .tk-port-dot { background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.tk-port.warn { border-color: rgba(251, 191, 36, .55); background: rgba(80, 56, 8, .3); }
.tk-port.warn .tk-port-dot { background: #fbbf24; box-shadow: 0 0 12px #fbbf24; }
.trip-lhnote { margin: 4px 0 0; font-size: 14px; }
/* [r31] day-aware trips card: end-of-day line + announcement link (min 44 px tap target, no larger fonts) */
.trip-lhnote.trip-end { color: var(--text); font-weight: 600; }
.trip-annlink { margin: 6px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.trip-annlink a { color: var(--cyan); display: inline-flex; align-items: center; min-height: 44px; }

/* [r36] home chart: past forecast (what an earlier run said for the last 12 h) – dashed, muted forecast-cyan, no glow */
.lc-line.fc.pfc { stroke: rgba(61, 206, 246, .6); stroke-width: 2; filter: none; }
.lc-key.pfc i, .lc-tip .r.pfc i { background: repeating-linear-gradient(90deg, rgba(61, 206, 246, .75) 0 5px, transparent 5px 8px); height: 2px; }

/* [r33] shared Herjólfur card on sub-pages */
.ferry-panel { margin-bottom: 18px; }
.ferry-panel .c2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.ferry-panel .c2-head h2 { margin: 0; }
.ferry-panel .c2-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ferry-panel .trip-times { flex-wrap: wrap; }
/* r33c: ferry card only on front page */

/* [r33c] sub-pages: show Herjólfur (same photo as the front page) in the top header instead of only the mountain top */
html body.v2 section.v2hero.small, html body.v2 section.v2hero.small.strip {
  min-height: 300px !important; background-size: cover !important; background-position: 50% 78% !important;
  background-image: linear-gradient(90deg, rgba(4, 14, 32, .8) 0%, rgba(4, 14, 32, .35) 30%, rgba(4, 14, 32, 0) 45%, rgba(4, 14, 32, 0) 75%, rgba(4, 14, 32, .55) 100%), image-set(url("/assets/hero-v2.webp") type("image/webp"), url("/assets/hero-v2.jpg") type("image/jpeg")) !important;
}
html body.v2 section.v2hero.small::before { background-position: 50% 78% !important; }
@media (max-width: 700px) {
  html body.v2 section.v2hero.small, html body.v2 section.v2hero.small.strip {
    min-height: 250px !important; background-position: center 72% !important;
    background-image: linear-gradient(180deg, rgba(4, 14, 32, .55) 0%, rgba(4, 14, 32, .1) 35%, rgba(4, 14, 32, 0) 75%, #061226 100%), image-set(url("/assets/hero-v2-m.webp") type("image/webp"), url("/assets/hero-v2-m.jpg") type("image/jpeg")) !important;
  }
  html body.v2 section.v2hero.small::before { background-position: center 72% !important; }
  /* title sits in the sky above the ship, not across it */
  html body.v2 section.v2hero.small { display: flex !important; align-items: flex-start !important; }
  html body.v2 section.v2hero.small .hero-inner { align-self: flex-start !important; padding-top: 14px !important; padding-bottom: 150px !important; }
}

/* [r33d] selector bar directly under the photo header (Veður, Færð, Tilkynningar) */
.subbar { max-width: 1240px; margin: 14px auto 4px; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.subbar .hero-sub { margin: 0; color: var(--muted); font-size: 15px; }
.subbar .hero-tools { position: static !important; margin: 0 !important; transform: none !important; max-width: 100%; }
@media (max-width: 700px) {
  .subbar { padding: 0 14px; margin-top: 10px; }
  .subbar .hero-tools { width: 100%; }
  .subbar .hero-sub { font-size: 14px; }
}
/* [r33f] phones: three equal tabs in one row, text always inside, no horizontal scroll */
@media (max-width: 700px) {
  html body.v2 .subbar { overflow: hidden; }
  html body.v2 .subbar .hero-tools { width: 100% !important; min-width: 0 !important; overflow: visible !important; }
  html body.v2 .subbar .os-pills { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; width: 100% !important; box-sizing: border-box !important; gap: 4px !important; overflow: hidden !important; }
  html body.v2 .subbar .os-pill { min-width: 0 !important; width: 100% !important; padding: 9px 4px !important; font-size: 14px !important; letter-spacing: -0.01em !important; white-space: nowrap !important; text-align: center !important; }
}
@media (max-width: 400px) { html body.v2 .subbar .os-pill { font-size: 13px !important; padding: 8px 3px !important; } }
@media (max-width: 370px) { html body.v2 .subbar .os-pill { font-size: 12px !important; padding: 8px 2px !important; } }
/* [r33g] narrow phones / large text: tab text scales with the screen so it stays inside its tab; frame always wraps the tabs */
@media (max-width: 700px) {
  html body.v2 .subbar .os-pills { max-width: 100% !important; }
  html body.v2 .subbar .os-pill { font-size: clamp(10.5px, 3.45vw, 14px) !important; overflow: hidden !important; text-overflow: clip !important; }
}

/* ---------- mobile smooth scroll: no live blur / fixed bg / perpetual animation ---------- */
@media (max-width: 900px), (hover: none) {
  body { background-attachment: scroll !important; }
  .glass, .card, section.panel, .mini, .chart, .hero-notice, .os-pills, .os-ppills, .lc-tip { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass, .card, section.panel, .mini, .chart { background: linear-gradient(180deg, rgba(20, 50, 92, .96), rgba(9, 28, 56, .98)) !important; }
  nav.topnav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(8, 24, 48, .97) !important; }
  nav.topnav ul.menu { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  section.hero::before, section.v2hero::before { animation: none !important; will-change: auto !important; }
  html { scroll-behavior: auto; }
}

/* [deskscroll] desktop too: same smooth-scroll treatment as phones (no fixed bg, no live blur, still hero) */
body { background-attachment: scroll !important; }
html body *, html body *::before, html body *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.glass, .card, section.panel, .mini, .chart { background: linear-gradient(180deg, rgba(20, 50, 92, .96), rgba(9, 28, 56, .98)) !important; }
nav.topnav { background: rgba(8, 24, 48, .97) !important; }
section.hero::before, section.v2hero::before { animation: none !important; will-change: auto !important; }
html { scroll-behavior: auto !important; }

/* [ffscroll] Firefox desktop: drop-shadow glow on SVG lines/icons repaints on every scroll frame (esp. without GPU) -> off */
.brand-logo, .ns-wave, .compass svg, .compass .needle, .tc-line, .tc-dot, .lc-line, .lc-line.fc, .lc-line.obs.meas, .v2foot .foot-wave path,
.fd-ic-clock svg, .fd-pt, .fd-sum-h .i svg, .os-hicon svg, .os-bigwave svg, .dc-hs, .dc-mhs, .sw.hs, .sw.mhs, .os-tile .os-ic svg,
#past-duo .lc-line.obs.pa, .tk-latest .os-hicon svg, .wi, .wi.sun, .vx-arc .arc, .vx-arc .sundot, .vh-line .ln { filter: none !important; }
.fd-rt.sev-bad, .fd-rt-glow.sev-bad { animation: none !important; }

/* [r39] phones: header sits below the status bar (safe area + 14px), so the menu button is not right under the clock;
   menu button tap target 48px. Desktop (>=980px) unchanged. */
@media (max-width: 979px) {
  nav.v2nav { --nav-top: calc(env(safe-area-inset-top, 0px) + 14px); height: calc(68px + var(--nav-top)); padding-top: var(--nav-top); }
  nav.v2nav ul.menu { top: 100%; }
  nav.v2nav .nav-tools button { width: 48px; height: 48px; }
}
/* viewport-fit=cover: keep content clear of a side notch in landscape (insets are 0 everywhere else) */
body.v2 { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* [hamborgari] phones (<=979px): header always fits the screen, even with larger system text.
   Brand shrinks (ellipsis as last resort), EN and the menu button never shrink; menu button 48px, fully on screen. Desktop unchanged. */
@media (max-width: 979px) {
  nav.v2nav { box-sizing: border-box; width: 100%; max-width: 100vw; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  nav.v2nav a.brand { flex: 1 1 auto; min-width: 0; margin-right: 0; grid-template-columns: auto minmax(0, 1fr); overflow: hidden; }
  nav.v2nav .brand-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(16px, 5vw, 21px); }
  nav.v2nav .brand-logo svg { width: clamp(34px, 10vw, 46px); }
  nav.v2nav .lang-tg { flex: none; margin-left: 8px; min-width: 44px; padding: 0 8px; }
  nav.v2nav .nav-tools { flex: none; margin-left: 2px; }
  nav.v2nav .nav-tools button { width: 48px; height: 48px; }
}
