/* Theme s1: the Stefna (Duda) draft, finished properly.
   Navy header and footer, the draft's blue, Poppins, pill buttons, white logo.
   Mockups: design canvas, rows S1 (stage 1 and 2). */
:root {
  --s1-navy: #003375;
  --s1-navy-dark: #00285c;
  --s1-blue: #3b8fe7;
  --s1-blue-dark: #2f7bd0;
  --s1-blue-ink: #1a5fa8;   /* blue for small text on white (6.3:1) and on the pale tints (5.6:1) */
  --s1-action: #2672c4;     /* buttons and the blue band: white text on it is 4.9:1 (WCAG AA) */
  --s1-action-dark: #1f62ad;
  --s1-pale: #bdd9fa;
  --s1-mist: #f4f6f9;
  --s1-line: #dfe5ec;
  --s1-ink: #2d2e32;
  --s1-soft: #4b5563;
  --s1-muted: #5f6672;      /* 5.3:1 on the mist background, 5.8:1 on white */
  --s1-gold: #ffd23f;
  --s1-orange: #e9651d;      /* the UFA orange (JAKO poster); header option. White on it is only 3.3:1, so text on it is --s1-on-orange */
  --s1-on-orange: #001a3a;   /* text and icons on the orange: 5.3:1 */
  --s1-font: "Poppins", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.theme-s1 { margin: 0; font-family: var(--s1-font); font-size: 16px; line-height: 1.65; color: var(--s1-ink); background: #fff; }
.theme-s1 img { max-width: 100%; height: auto; }
.theme-s1 a { color: var(--s1-navy); }
.theme-s1 a:hover { color: var(--s1-blue-dark); }
.theme-s1 h1, .theme-s1 h2, .theme-s1 h3 { line-height: 1.2; text-wrap: balance; }
/* Accessibility baseline (docs/accessibility.md). A visible focus ring on everything that has none of
   its own (:where keeps it weaker than the components' own focus styles), light on the dark bands. */
:where(.theme-s1) :focus-visible { outline: 3px solid var(--s1-blue-ink); outline-offset: 2px; }
:where(.theme-s1) :where(.s1-header, .s1-footer, .s1-feature, .s1-banner, .s1-hero, .s1-box--navy, .s1-session) :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .theme-s1 *, .theme-s1 *::before, .theme-s1 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.theme-s1 .skip { position: absolute; left: -9999px; top: 0; }
.theme-s1 .skip:focus { left: 12px; top: 56px; z-index: 50; background: #fff; padding: 10px 16px; border-radius: 8px; }
.theme-s1 .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.s1-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.theme-s1 main { padding: 0; min-height: 0; }
.theme-s1 main:focus { outline: none; }
.theme-s1 main > .wrap { max-width: 1200px; margin: 0 auto; padding: 56px 24px 88px; }
.theme-s1 main > .page-home { display: block; }

/* Buttons */
.s1-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 26px; border-radius: 999px; background: var(--s1-action); color: #fff !important; font-weight: 500; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.s1-btn:hover { background: var(--s1-action-dark); }
.s1-btn--navy { background: var(--s1-navy); }
.s1-btn--navy:hover { background: var(--s1-navy-dark); }
.s1-btn--outline { background: transparent; color: var(--s1-navy) !important; border: 2px solid var(--s1-navy); }
.s1-btn--outline:hover { background: var(--s1-navy); color: #fff !important; }
.s1-btn--ghost { background: transparent; color: #fff !important; border: 2px solid #fff; }
.s1-btn--ghost:hover { background: #fff; color: var(--s1-navy) !important; }
.s1-btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }

.s1-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s1-blue-ink); }
.s1-h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; color: var(--s1-navy); }
.s1-h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--s1-navy); }
.s1-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--s1-soft); max-width: 62ch; }
.s1-meta { margin: 0; font-size: 13px; color: var(--s1-muted); }
.s1-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s1-navy); background: #e6effa; border-radius: 4px; padding: 3px 8px; }

/* Header */
.s1-header { background: var(--s1-navy); color: #fff; position: relative; z-index: 20; }
.s1-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding-block: 12px; }
.s1-header__brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.s1-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
/* ÍSÍ's Fyrirmyndarfélag star beside the logo, on a white disc so its colours read on the header. */
.s1-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.s1-badge img { height: 36px; width: auto; display: block; }
.s1-badge:hover { background: #e6effa; }
/* The navy logo is one colour on transparent; the filter makes it white on the header (navy or orange) and the footer. */
.s1-logo img { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); }
.s1-nav { display: flex; align-items: center; gap: 4px; }
.s1-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
/* Top items as in design 3: each is a button-like pill, light on hover and for the current section.
   A section with subpages is its link plus an arrow button in one pill; the link goes to the page,
   the arrow (or hover, handled by /js/nav-dropdown.js) opens the dropdown. */
.s1-nav .s1-nav__top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.s1-nav .s1-nav__top:hover { background: rgba(255,255,255,.12); color: #fff; }
.s1-nav .s1-nav__top[aria-current="page"] { background: rgba(255,255,255,.14); }
.s1-nav .s1-nav__top:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.s1-dd { position: relative; display: inline-flex; align-items: center; border-radius: 8px; }
.s1-dd:hover, .s1-dd.is-open { background: rgba(255,255,255,.12); }
.s1-dd:has(> .s1-nav__top[aria-current]) { background: rgba(255,255,255,.14); }
.s1-nav .s1-dd > .s1-nav__top { padding-right: 4px; border-radius: 8px 0 0 8px; }
.s1-nav .s1-dd > .s1-nav__top:hover, .s1-nav .s1-dd > .s1-nav__top[aria-current] { background: transparent; }
.s1-dd__toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 44px; margin: 0; padding: 0 8px 0 4px; border: 0; border-radius: 0 8px 8px 0; background: transparent; color: #fff; cursor: pointer; }
.s1-dd__toggle:hover { background: rgba(255,255,255,.12); }
.s1-dd__toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.s1-nav .s1-search-link { margin-left: 6px; }
@media (min-width: 1001px) and (max-width: 1180px) { .s1-nav .s1-nav__top { padding: 0 10px; font-size: 14px; } }
.s1-dd__chev { transition: transform .15s; }
.s1-dd.is-open > .s1-dd__toggle .s1-dd__chev { transform: rotate(180deg); }
/* Dropdown panel: white card under the item with a small caret. */
.s1-dd__panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; width: 290px; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,30,70,.22); }
.s1-dd__panel[hidden] { display: none; }
.s1-dd__panel::before { content: ""; position: absolute; top: -7px; left: 40px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
/* A bridge over the gap so the pointer can move from the item down to the panel without leaving it. */
.s1-dd__panel::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.s1-dd__panel a { position: relative; display: block; padding: 10px 14px; border-radius: 8px; color: var(--s1-ink); font-size: 15px; line-height: 1.4; text-decoration: none; }
.s1-dd__panel a:hover, .s1-dd__panel a:focus-visible, .s1-dd__panel a[aria-current="page"] { background: var(--s1-mist); color: var(--s1-navy); }
.s1-dd__panel a[aria-current="page"] { font-weight: 500; }
.s1-dd__panel a:focus-visible { outline: 2px solid var(--s1-blue-ink); outline-offset: -2px; }
/* Second level: a subpage with its own pages is a row with its link and an arrow button. Its panel
   opens beside the first, positioned against the first panel so their tops line up. */
.s1-dd2 { position: relative; display: flex; align-items: stretch; border-radius: 8px; }
.s1-dd2:hover, .s1-dd2.is-open, .s1-dd2.is-current { background: var(--s1-mist); }
.s1-dd__panel .s1-dd2__row { flex: 1; min-width: 0; background: none; }
.s1-dd__panel .s1-dd2__row:hover, .s1-dd__panel .s1-dd2__row[aria-current="page"] { background: none; }
.s1-dd2:hover > .s1-dd2__row, .s1-dd2.is-open > .s1-dd2__row, .s1-dd2.is-current > .s1-dd2__row { color: var(--s1-navy); }
.s1-dd2.is-current > .s1-dd2__row { font-weight: 500; }
.s1-dd2__toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; flex-shrink: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--s1-blue-ink); cursor: pointer; }
.s1-dd2__toggle:hover, .s1-dd2.is-open > .s1-dd2__toggle { background: #e6effa; }
.s1-dd2__toggle:focus-visible { outline: 2px solid var(--s1-blue-ink); outline-offset: -2px; }
.s1-dd2__chev { flex-shrink: 0; }
/* Beside the row that opened it: the first panel's 10px padding plus an 8px gap. */
.s1-dd2__panel { position: absolute; top: -10px; left: calc(100% + 18px); z-index: 31; width: 300px; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,30,70,.22); }
.s1-dd2__panel[hidden] { display: none; }
.s1-dd2__panel.is-flipped { left: auto; right: calc(100% + 18px); }
/* A bridge over the first panel's padding and the gap: moving from the row to this panel never leaves
   the item, so it does not close on the way (the bridge belongs to the item through this panel). */
.s1-dd2__panel::before { content: ""; position: absolute; top: 0; bottom: 0; left: -24px; width: 24px; }
.s1-dd2__panel.is-flipped::before { left: auto; right: -24px; }
.s1-dd2__eyebrow { display: block; padding: 8px 14px 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--s1-blue-ink); }
.s1-dd__panel .s1-dd2__link { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.s1-dd2__link small { flex-shrink: 0; font-size: 12px; color: var(--s1-muted); white-space: nowrap; }
.s1-nav .s1-search-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: #fff; }
.s1-nav .s1-search-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.s1-menu { display: none; }
.s1-menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; color: #fff; cursor: pointer; }
.s1-menu > summary::-webkit-details-marker { display: none; }
.s1-menu[open] > summary { background: rgba(255,255,255,.12); }
.s1-menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--s1-navy); border-top: 1px solid rgba(255,255,255,.15); padding: 8px 24px 24px; box-shadow: 0 16px 32px rgba(0,20,50,.25); }
.s1-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.s1-menu__panel li a { display: flex; align-items: center; min-height: 52px; color: #fff; text-decoration: none; font-weight: 500; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
.s1-menu__panel .s1-btn { margin-top: 18px; width: 100%; }
/* Phone menu: sections with subpages open as accordions. */
.s1-menu__group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: #fff; font-weight: 500; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.s1-menu__group > summary::-webkit-details-marker { display: none; }
.s1-menu__group > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.s1-menu__plus { color: var(--s1-pale); flex-shrink: 0; }
.s1-menu__group[open] > summary .s1-menu__plus .v { display: none; }
.s1-menu__group > ul { padding: 4px 0 10px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.s1-menu__panel .s1-menu__group li a { min-height: 46px; font-size: 15px; font-weight: 400; border-bottom: 0; color: rgba(255,255,255,.9); }
.s1-menu__panel .s1-menu__group li a[aria-current="page"] { color: #fff; font-weight: 600; }
/* The name in a section row is a link to the page; the +/− area opens the subpages. */
.s1-menu__panel .s1-menu__group > summary > a { flex: 1; min-height: 52px; border-bottom: 0; font-size: inherit; font-weight: inherit; }
.s1-menu__panel .s1-menu__group--2 > summary > a { min-height: 46px; }
.s1-menu__panel .s1-menu__group > summary > a[aria-current="page"] { font-weight: 600; }
.s1-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; }
.s1-menu__group > summary:hover .s1-menu__toggle { background: rgba(255,255,255,.08); }

/* Breadcrumbs: a slim bar under the banner on pages below a section (under the header where there is no banner). */
.s1-crumbs { background: var(--s1-mist); border-bottom: 1px solid var(--s1-line); }
.s1-crumbs ol { list-style: none; margin: 0 auto; padding-block: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; color: var(--s1-muted); }
.s1-crumbs li { display: inline-flex; align-items: center; }
.s1-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--s1-muted); }
.s1-crumbs a { color: var(--s1-blue-ink); text-decoration: none; font-weight: 500; }
.s1-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1-crumbs [aria-current] { color: var(--s1-ink); font-weight: 500; }

/* Page banner (inner pages) */
.s1-banner { position: relative; overflow: hidden; background: var(--s1-navy); color: #fff; }
.s1-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.s1-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,26,64,.82) 0%, rgba(0,26,64,.55) 55%, rgba(0,26,64,.35) 100%); }
.s1-banner__inner { position: relative; z-index: 1; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-block: 48px; }
.s1-banner .s1-eyebrow { color: var(--s1-pale); }
.s1-banner h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 700; color: #fff; max-width: 22ch; }
.s1-banner p.s1-banner__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #eef4fc; max-width: 60ch; }
.s1-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.s1-banner--plain { background: var(--s1-navy); }
.s1-banner--plain::after { display: none; }

/* Two columns with a sidebar */
.s1-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.s1-cols > * { min-width: 0; }
.s1-side { display: flex; flex-direction: column; gap: 24px; }
.s1-box { background: var(--s1-mist); border-radius: 14px; padding: 24px; }
.s1-box--navy { background: var(--s1-navy); color: #fff; }
.s1-box--navy a { color: #fff; }
.s1-box h2, .s1-box h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s1-blue-ink); }
.s1-box--navy h2, .s1-box--navy h3 { color: var(--s1-pale); }
.s1-subnav ul { list-style: none; margin: 0; padding: 0; }
.s1-subnav li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--s1-line); color: var(--s1-ink); text-decoration: none; font-size: 15px; }
.s1-subnav li:last-child a { border-bottom: 0; }
.s1-subnav li a:hover { color: var(--s1-navy); }
.s1-subnav li a[aria-current="page"] { color: var(--s1-navy); font-weight: 600; }
.s1-subnav li a::after { content: "›"; color: var(--s1-blue-ink); font-size: 20px; line-height: 1; }

/* Rich text and blocks */
.theme-s1 .rich { max-width: 72ch; font-size: 16px; line-height: 1.75; }
.theme-s1 .rich h2 { font-size: 26px; color: var(--s1-navy); margin: 1.6em 0 .5em; }
.theme-s1 .rich h3, .theme-s1 .rich h4 { font-size: 20px; color: var(--s1-navy); margin: 1.4em 0 .4em; }
.theme-s1 .rich > :first-child { margin-top: 0; }
.theme-s1 .rich img { border-radius: 10px; margin: 12px 0; display: block; }
.theme-s1 .rich table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 15px; }
.theme-s1 .rich th, .theme-s1 .rich td { border-bottom: 1px solid var(--s1-line); padding: 8px 10px; text-align: left; }
.theme-s1 .rich a { color: var(--s1-blue-ink); }
.theme-s1 .umb-block-list { display: flex; flex-direction: column; gap: 24px; }
.theme-s1 figure { margin: 0; }
.theme-s1 figure img { border-radius: 12px; display: block; }
.theme-s1 figcaption { font-size: 13px; color: var(--s1-muted); margin-top: 6px; }
.theme-s1 details { background: var(--s1-mist); border-radius: 12px; padding: 14px 18px; }
.theme-s1 details summary { cursor: pointer; font-weight: 600; color: var(--s1-navy); min-height: 28px; }
.theme-s1 .files { list-style: none; padding: 0; margin: 0; }
.theme-s1 .files li a { display: flex; gap: 10px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--s1-line); text-decoration: none; color: var(--s1-ink); }
.theme-s1 .files li a::before { content: ""; width: 14px; height: 18px; border: 2px solid var(--s1-blue-ink); border-radius: 2px; flex-shrink: 0; }
.theme-s1 .button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 26px; border-radius: 999px; background: var(--s1-action); color: #fff; text-decoration: none; font-weight: 500; }

/* Home */
.s1-hero { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--s1-navy); }
.s1-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.s1-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,20,50,.45); }
.s1-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; padding: 72px 24px; max-width: 900px; }
.s1-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.s1-hero p { margin: 0; font-size: 18px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.s1-feature { background: var(--s1-action); color: #fff; }
.s1-feature .s1-wrap { display: flex; align-items: center; justify-content: center; gap: 64px; padding-block: 72px; }
.s1-feature__text { flex: 0 1 440px; display: flex; flex-direction: column; gap: 16px; }
.s1-feature h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: #fff; }
.s1-feature__date { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #003375; background: var(--s1-gold); align-self: flex-start; padding: 4px 10px; border-radius: 4px; }
.s1-feature p { margin: 0; color: #fff; }
.s1-feature .s1-feature__date { color: var(--s1-navy); }
.s1-feature__img { flex: 0 1 520px; aspect-ratio: 520 / 340; border-radius: 12px; overflow: hidden; background: #2f7bd0; }
.s1-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Text on the mid blue needs to be large or bold to pass contrast; keep feature copy at 17px+ medium. */
.s1-feature p:not(.s1-feature__date) { font-size: 17px; font-weight: 500; line-height: 1.6; }

.s1-facts { background: var(--s1-mist); }
.s1-facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 52px; }
.s1-fact { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 8px 20px; border-right: 1px solid #cfd6df; }
.s1-fact:last-child { border-right: 0; }
.s1-fact strong { font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--s1-navy); }
.s1-fact span { font-size: 15px; color: var(--s1-soft); }

.s1-section { padding-block: 72px; }
.s1-section--mist { background: var(--s1-mist); }
.s1-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.s1-section__head > div { display: flex; flex-direction: column; gap: 6px; }
.s1-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.s1-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s1-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.s1-card__img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #e6edf5; }
.s1-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.s1-card__img--empty { display: flex; align-items: center; justify-content: center; }
.s1-card__img--empty img { width: 72px; height: auto; opacity: .35; object-fit: contain; }
.s1-card:hover .s1-card__img img { transform: scale(1.03); }
.s1-card h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; }
.s1-card h3 a { color: var(--s1-ink); text-decoration: none; }
.s1-card h3 a:hover { color: var(--s1-navy); text-decoration: underline; }
.s1-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--s1-soft); }

.s1-split { display: flex; align-items: center; justify-content: center; gap: 72px; }
.s1-split__text { flex: 0 1 460px; display: flex; flex-direction: column; gap: 16px; }
.s1-split__text p { margin: 0; }
.s1-split__img { flex: 0 1 520px; aspect-ratio: 520 / 340; border-radius: 12px; overflow: hidden; background: #e6edf5; }
.s1-split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sponsors' logos above the footer on every page (Footer.cshtml), no heading. */
.s1-sponsors { padding-block: 40px 48px; text-align: center; background: #fff; border-top: 1px solid var(--s1-line); }
.s1-sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.s1-sponsors a { display: flex; align-items: center; justify-content: center; min-height: 72px; color: var(--s1-muted); text-decoration: none; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* Sizes come from Themes/SponsorLogo.cs (--logo-h); one row from about 920px wide. */
.s1-sponsors img { height: calc(var(--logo-h, 40px) * var(--sponsor-size, 1)); width: auto; display: block; filter: grayscale(.2); }
@media (max-width: 1199px) { .s1-sponsors { --sponsor-size: .85; } .s1-sponsors ul { column-gap: 40px; } }
@media (max-width: 640px) { .s1-sponsors { --sponsor-size: .75; } .s1-sponsors ul { gap: 24px 32px; } }

/* Footer */
.s1-footer { background: var(--s1-navy); color: #fff; }
.s1-footer__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 48px; }
.s1-footer__club { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
/* The logo fills its column (up to its own width) and stays white. */
.s1-footer .s1-logo { width: 100%; max-width: 311px; }
.s1-footer .s1-logo img { width: 100%; height: auto; }
.s1-footer address { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #e3ecf8; }
.s1-footer address a { color: #fff; }
.s1-footer__social { display: flex; gap: 12px; }
.s1-footer__social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: #fff; color: var(--s1-navy); }
.s1-footer__col h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.s1-footer__col h2 a { color: #fff; text-decoration: none; }
.s1-footer__col h2 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.s1-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.s1-footer__col li a { display: inline-flex; align-items: center; min-height: 34px; font-size: 15px; color: #d5e3f5; text-decoration: none; }
.s1-footer__col li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .s1-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .s1-footer__club { grid-column: 1 / -1; } .s1-footer .s1-logo { max-width: 260px; } }
@media (max-width: 640px) { .s1-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px; } }
.s1-footer__small { border-top: 1px solid rgba(255,255,255,.15); padding-block: 16px; font-size: 13px; text-align: center; color: var(--s1-pale); }
.s1-footer__small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* News list */
.s1-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.s1-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s1-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--s1-line); color: var(--s1-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.s1-chips a:hover { border-color: var(--s1-navy); color: var(--s1-navy); }
.s1-chips a[aria-current="page"] { background: var(--s1-navy); border-color: var(--s1-navy); color: #fff; }
.s1-search { display: flex; align-items: center; gap: 8px; }
.s1-search input { min-height: 44px; width: 240px; max-width: 100%; padding: 0 16px; border: 1.5px solid var(--s1-line); border-radius: 999px; font: inherit; font-size: 14px; }
.s1-search input:focus { outline: none; border-color: var(--s1-blue); box-shadow: 0 0 0 3px rgba(59,143,231,.25); }
.s1-search button { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--s1-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.s1-newslist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s1-line); }
.s1-newsitem { display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; gap: 28px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--s1-line); }
.s1-newsitem__date { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.s1-newsitem h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.s1-newsitem h2 a { color: var(--s1-ink); text-decoration: none; }
.s1-newsitem h2 a:hover { color: var(--s1-navy); text-decoration: underline; }
.s1-newsitem p { margin: 0; font-size: 14px; color: var(--s1-soft); line-height: 1.55; }
.s1-newsitem__img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #eef2f7; }
.s1-newsitem__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s1-newsitem__img--empty { display: flex; align-items: center; justify-content: center; }
.s1-newsitem__img--empty img { width: 44px; height: auto; opacity: .3; object-fit: contain; }
.s1-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.s1-pager ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
.s1-pager ol a, .s1-pager ol span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--s1-line); text-decoration: none; color: var(--s1-ink); font-size: 14px; }
.s1-pager ol [aria-current="page"] { background: var(--s1-navy); border-color: var(--s1-navy); color: #fff; }
.s1-pager ol .s1-gap { border: 0; min-width: 20px; }

/* Article */
.s1-article { max-width: 880px; margin: 0 auto; }
.s1-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.s1-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 10px; }
.s1-article h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 44px); font-weight: 700; color: var(--s1-navy); }
.s1-article__lead { font-size: 19px; line-height: 1.6; color: var(--s1-soft); margin: 0 0 28px; }
.s1-article__hero { margin: 0 0 32px; }
.s1-article__hero img { width: 100%; border-radius: 14px; display: block; max-height: 560px; object-fit: cover; }
.s1-article .rich { max-width: none; }
.s1-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.s1-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.s1-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s1-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--s1-line); }

/* Training groups and timetable */
.s1-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.s1-group { border: 1px solid var(--s1-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.s1-group__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s1-group h3 { margin: 0; font-size: 17px; color: var(--s1-navy); }
.s1-group__when { font-size: 13px; color: var(--s1-blue-ink); font-weight: 500; }
.s1-group__foot { margin-top: auto; display: flex; flex-direction: column; }
.s1-group__fee { margin: 0; padding-top: 10px; font-size: 18px; font-weight: 700; color: var(--s1-ink); }
.s1-group__fee small { font-size: 12px; font-weight: 400; color: var(--s1-muted); display: block; }
/* A group with its own Skráning link: the whole card opens it (stretched link). */
.s1-group--link { position: relative; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.s1-group__link { color: inherit; text-decoration: none; }
.s1-group__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.s1-group--link a:not(.s1-group__link) { position: relative; z-index: 1; }
.s1-group__cta { margin-top: 10px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--s1-blue-ink); padding: 6px 12px; border-radius: 999px; background: var(--s1-mist); transition: background .15s ease, color .15s ease; }
.s1-group--link:hover, .s1-group--link:focus-within { border-color: var(--s1-blue); box-shadow: 0 10px 24px rgba(0, 51, 117, .14); transform: translateY(-3px); }
.s1-group--link:hover .s1-group__cta, .s1-group--link:focus-within .s1-group__cta { background: var(--s1-blue-dark); color: #fff; }
.s1-group--link:hover h3, .s1-group--link:focus-within h3 { text-decoration: underline; text-underline-offset: 3px; }
.s1-group__link:focus-visible { outline: none; }
.s1-group--link:has(.s1-group__link:focus-visible) { outline: 3px solid var(--s1-blue); outline-offset: 3px; }
.s1-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--s1-line); }
.s1-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 640px; }
.s1-table th, .s1-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--s1-line); vertical-align: top; }
.s1-table thead th { background: var(--s1-navy); color: #fff; font-weight: 600; font-size: 13px; }
.s1-table tbody th { font-weight: 600; color: var(--s1-ink); }
.s1-table tbody th small { display: block; font-weight: 400; color: var(--s1-muted); }
.s1-table__group { color: var(--s1-navy); text-decoration: none; border-bottom: 2px solid var(--s1-pale); transition: color .15s ease, border-color .15s ease; }
.s1-table__place { display: block; font-size: 12px; color: var(--s1-soft); }
.s1-table__group span { font-size: 12px; color: var(--s1-blue-ink); }
.s1-table__group:hover, .s1-table__group:focus-visible { color: var(--s1-blue-ink); border-bottom-color: var(--s1-blue); }
.s1-table tbody tr:nth-child(even) { background: var(--s1-mist); }
.s1-table tbody tr:last-child th, .s1-table tbody tr:last-child td { border-bottom: 0; }
/* Timetable section (parts/TrainingGroups): the page's own table, or the "Æfingahópalisti" block. */
.s1-timetable__title { margin: 0 0 20px; }
.s1-h3.s1-timetable__title { margin-bottom: 16px; }
.s1-timetable__note { margin-top: 10px; }
/* With "Sýna lýsingu hópa" each group is a tbody of its row and a description row; the zebra moves to the pair. */
.s1-table--desc tbody tr:nth-child(even) { background: none; }
.s1-table--desc tbody.is-even { background: var(--s1-mist); }
.s1-table--desc tbody tr:last-child th, .s1-table--desc tbody tr:last-child td { border-bottom: 1px solid var(--s1-line); }
.s1-table--desc tbody:last-child tr:last-child th, .s1-table--desc tbody:last-child tr:last-child td { border-bottom: 0; }
.s1-table--desc tr.has-desc th, .s1-table--desc tr.has-desc td { border-bottom: 0; padding-bottom: 4px; }
.s1-table--desc .s1-table__desc td { padding: 0 14px 14px; font-size: 14px; line-height: 1.55; color: var(--s1-soft); font-weight: 400; }
.s1-table--desc .s1-table__desc p { margin: 0; max-width: 70ch; }
/* The descriptions as a list, for phones where the table scrolls sideways. */
.s1-groupdesc { display: none; margin: 24px 0 0; padding: 0; list-style: none; }
.s1-groupdesc li { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--s1-line); }
.s1-groupdesc li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.s1-groupdesc h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--s1-navy); }
.s1-groupdesc p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--s1-soft); }
@media (max-width: 640px) {
  .s1-table--desc .s1-table__desc { display: none; }
  .s1-table--desc tr.has-desc th, .s1-table--desc tr.has-desc td { border-bottom: 1px solid var(--s1-line); padding-bottom: 12px; }
  .s1-groupdesc { display: block; }
}
.s1-fees { list-style: none; margin: 0; padding: 0; }
.s1-fees li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--s1-line); }
.s1-fees li strong { white-space: nowrap; color: var(--s1-navy); }
.s1-fees li small { display: block; color: var(--s1-muted); font-size: 13px; }

.s1-sessions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s1-session { background: var(--s1-navy); color: #fff; border-radius: 12px; padding: 18px 20px; }
.s1-session span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--s1-pale); font-weight: 600; }
.s1-session strong { display: block; font-size: 26px; font-weight: 700; margin-top: 4px; }

/* Race */
.s1-facts-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; }
.s1-facts-box dt, .s1-facts-box dd { margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.s1-facts-box dt { color: var(--s1-pale); }
.s1-facts-box dd { text-align: right; font-weight: 600; }
.s1-results { list-style: none; margin: 0; padding: 0; }

/* People */
.s1-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.s1-person { border: 1px solid var(--s1-line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.s1-person span { display: block; font-size: 12px; color: var(--s1-muted); }
.s1-person strong { display: block; font-size: 15px; color: var(--s1-ink); margin-top: 2px; }
.s1-person a { font-size: 13px; overflow-wrap: anywhere; }

/* Forms */
.s1-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.s1-form p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.s1-form .s1-full { grid-column: 1 / -1; }
.s1-form label { font-weight: 600; font-size: 14px; color: var(--s1-ink); }
.s1-form input, .s1-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #c9d2dd; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.s1-form textarea { min-height: 180px; resize: vertical; }
.s1-form input:focus, .s1-form textarea:focus { outline: none; border-color: var(--s1-blue); box-shadow: 0 0 0 3px rgba(59,143,231,.25); }
.s1-form .hp { position: absolute; left: -9999px; }
.s1-form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-s1 .validation-summary-errors { color: #b3261e; grid-column: 1 / -1; }
.s1-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.s1-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.s1-contact-list svg { flex-shrink: 0; margin-top: 3px; }

.s1-empty { padding: 32px; background: var(--s1-mist); border-radius: 12px; color: var(--s1-soft); }
.s1-stack { display: flex; flex-direction: column; gap: 40px; }
.s1-depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.s1-dept { border: 1px solid var(--s1-line); border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.s1-dept__img { aspect-ratio: 16 / 10; background: var(--s1-navy); overflow: hidden; }
.s1-dept__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s1-dept__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.s1-dept__body h3 { margin: 0; font-size: 18px; color: var(--s1-navy); }
.s1-dept__body p { margin: 0; font-size: 14px; color: var(--s1-soft); }
.s1-dept:hover h3 { text-decoration: underline; }

/* Phone and small tablet */
@media (max-width: 1000px) {
  .s1-nav { display: none; }
  .s1-menu { display: block; }
  .s1-header__row { min-height: 72px; }

  .s1-logo img { height: 32px; }
  .s1-header__brand { gap: 12px; }
  .s1-badge { width: 40px; height: 40px; }
  .s1-badge img { height: 30px; }
  .s1-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .s1-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s1-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s1-feature .s1-wrap, .s1-split { flex-direction: column; gap: 32px; align-items: stretch; }
  .s1-split--reverse { flex-direction: column-reverse; }
  .s1-feature__text, .s1-split__text { flex: none; }
  .s1-feature__img, .s1-split__img { flex: none; width: 100%; }
}
@media (max-width: 640px) {
  body.theme-s1 { font-size: 16px; }
  .theme-s1 main > .wrap { padding: 36px 16px 64px; }
  .s1-wrap { padding-inline: 16px; }
  .s1-hero { min-height: 460px; }
  .s1-hero__inner { padding: 56px 16px; }
  .s1-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; padding-block: 40px; }
  .s1-fact { border-right: 0; padding: 4px 8px; }
  .s1-fact strong { font-size: 26px; }
  .s1-section { padding-block: 52px; }
  .s1-cards, .s1-cards--3, .s1-depts, .s1-groups, .s1-sessions { grid-template-columns: minmax(0, 1fr); }
  .s1-newsitem { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
  .s1-newsitem__date { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .s1-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s1-form { grid-template-columns: minmax(0, 1fr); }
  .s1-search, .s1-search input { width: 100%; }
  .s1-search input { flex: 1; }
  .s1-banner__inner { min-height: 220px; padding-block: 40px; }
  .s1-pager { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .s1-card__img img { transition: none; }
  .s1-group--link { transition: none; }
  .s1-group--link:hover, .s1-group--link:focus-within { transform: none; }
}

/* Added with the inner page templates */
.s1-fee-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.s1-newsitem--text { grid-template-columns: 120px minmax(0, 1fr); }
.s1-racelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s1-line); }
.s1-racelist li a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--s1-line); text-decoration: none; color: var(--s1-ink); }
.s1-racelist li a::after { content: "→"; color: var(--s1-blue-ink); }
.s1-racelist__date { font-size: 14px; font-weight: 600; color: var(--s1-blue-ink); }
.s1-racelist__name { font-weight: 600; }
.s1-racelist li a:hover .s1-racelist__name { color: var(--s1-navy); text-decoration: underline; }
/* "Sýna inngang": the intro under the name, two lines at most; the row aligns to its top. */
.s1-racelist--intro li a { align-items: start; padding: 14px 0; }
.s1-racelist--intro .s1-racelist__date, .s1-racelist--intro li a::after { padding-top: 2px; }
.s1-racelist__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s1-racelist__intro { font-size: 14px; line-height: 1.55; color: var(--s1-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s1-card__img--empty, .s1-newsitem__img--empty { background: var(--s1-navy); }
.s1-card__img--empty img, .s1-newsitem__img--empty img { filter: brightness(0) invert(1); opacity: .35; }
@media (max-width: 640px) {
  .s1-fee-grid { grid-template-columns: minmax(0, 1fr); }
  .s1-newsitem--text { grid-template-columns: minmax(0, 1fr); }
  .s1-racelist li a { grid-template-columns: 90px minmax(0, 1fr) auto; }
  /* With intros the date sits above the name so the text gets the full width; the arrow spans both. */
  .s1-racelist--intro li a { grid-template-columns: minmax(0, 1fr) auto; }
  .s1-racelist--intro .s1-racelist__date { grid-column: 1; font-size: 13px; padding-top: 0; }
  .s1-racelist--intro .s1-racelist__date:empty { display: none; }
  .s1-racelist--intro .s1-racelist__text, .s1-racelist--intro .s1-racelist__name { grid-column: 1; }
  .s1-racelist--intro li a::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-top: 0; }
}
.s1-form .validation-summary-valid { display: none; }
.s1-form .validation-summary-errors { grid-column: 1 / -1; background: #fdecea; border-radius: 10px; padding: 12px 16px; }
.s1-form .validation-summary-errors ul { margin: 0; padding-left: 18px; }
/* The menus are details elements too; undo the content style for details above. */
.theme-s1 details.s1-menu, .theme-s1 details.s1-menu__group { background: none; padding: 0; border-radius: 0; }
.theme-s1 .s1-menu > summary { color: #fff; min-height: 48px; }
.theme-s1 .s1-menu__group > summary { color: #fff; font-weight: 500; min-height: 52px; }
/* Second level in the phone menu: a subpage with its own pages folds out one step further in. */
.theme-s1 .s1-menu__group--2 > summary { min-height: 46px; font-size: 15px; font-weight: 400; border-bottom: 0; color: rgba(255,255,255,.9); }
.theme-s1 .s1-menu__group--2[open] > summary { color: #fff; font-weight: 600; }
.s1-menu__group--2 > ul { padding: 0 0 6px 16px; border-bottom: 0; }
@media (max-width: 640px) {
  .s1-card .s1-card__img--empty { display: none; }
}

/* ── News archive: years and months (News/NewsArchive.cs) ───────────────── */
.s1-newsarchive { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.s1-newsarchive__main { min-width: 0; }
.s1-newsarchive__years { position: sticky; top: 24px; }
.s1-years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.s1-years li:first-child { grid-column: 1 / -1; }
.s1-years a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--s1-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.s1-years a:hover { background: #fff; color: var(--s1-navy); }
.s1-years a[aria-current="page"] { background: var(--s1-navy); color: #fff; }
.s1-years__count { font-size: 12px; color: var(--s1-muted); font-weight: 400; }
.s1-years a[aria-current="page"] .s1-years__count { color: var(--s1-pale); }
.s1-month + .s1-month { margin-top: 36px; }
.s1-month__title { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s1-blue-ink); scroll-margin-top: 24px; }
.s1-month .s1-newslist { border-top: 2px solid var(--s1-navy); }
.s1-newsitem h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.s1-newsitem h3 a { color: var(--s1-ink); text-decoration: none; }
.s1-newsitem h3 a:hover { color: var(--s1-navy); text-decoration: underline; }
.s1-yearbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.s1-yearbar__title { margin: 0; font-size: 26px; font-weight: 700; color: var(--s1-navy); line-height: 1.2; }
.s1-yearbar__title .s1-meta { font-size: 15px; font-weight: 400; }
.s1-monthjump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.s1-monthjump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--s1-mist); color: var(--s1-navy); text-decoration: none; font-size: 13px; font-weight: 500; text-transform: capitalize; }
.s1-monthjump a:hover { background: #e6effa; }
@media (max-width: 1000px) {
  .s1-newsarchive { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* On narrow screens the years become one scrolling row above the list. */
  .s1-newsarchive__years { order: -1; position: static; padding: 12px; border-radius: 12px; }
  .s1-newsarchive__years h2 { margin-bottom: 8px; }
  .s1-years { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
  .s1-years li { flex: 0 0 auto; }
  .s1-years a { min-height: 44px; background: #fff; border: 1.5px solid var(--s1-line); white-space: nowrap; }
  .s1-years a[aria-current="page"] { border-color: var(--s1-navy); }
}

/* Flickr gallery (css/flickr.css) */
.theme-s1 .ufa-flickr { --fl-accent: var(--s1-navy); --fl-muted: var(--s1-soft); --fl-line: var(--s1-line); --fl-radius: 10px; }

/* Sidebar page tree (css/section-tree.css, Views/Partials/site/SectionTree.cshtml) */
.theme-s1 .ufa-tree { --tr-text: var(--s1-ink); --tr-accent: var(--s1-navy); --tr-section: var(--s1-blue-ink); --tr-current-bg: var(--s1-navy); --tr-current-ink: #fff; --tr-line: var(--s1-line); --tr-focus: var(--s1-blue); }
.s1-treebox { border-radius: 16px; padding: 22px 14px 16px; }
.s1-tree-m { display: none; }
@media (max-width: 1000px) {
  .s1-treebox { display: none; }
  .s1-tree-m { display: block; margin-top: 20px; }
  .theme-s1 details.s1-tree-m__box { background: var(--s1-mist); border-radius: 14px; overflow: hidden; padding: 0; }
  .theme-s1 .s1-tree-m__box > summary { list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; font-weight: 600; font-size: 15px; color: var(--s1-navy); cursor: pointer; }
  .s1-tree-m__box > summary::-webkit-details-marker { display: none; }
  .s1-tree-m__box > summary svg { color: var(--s1-blue-ink); transition: transform .15s ease; }
  .s1-tree-m__box[open] > summary svg { transform: rotate(180deg); }
  .s1-tree-m__box > summary:focus-visible { outline: 3px solid var(--s1-blue); outline-offset: -3px; }
  .s1-tree-m__body { padding: 4px 8px 12px; }
}
@media (max-width: 1000px) and (prefers-reduced-motion: reduce) { .s1-tree-m__box > summary svg { transition: none; } }

/* Síðulisti block (parts/PageList.cshtml): page cards with the stretched-link pattern. */
.s1-pagelist { margin-block: 32px; }
.s1-pagelist__title { margin: 0 0 16px; }
.s1-pagecards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.s1-pagecard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--s1-line); border-radius: 16px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.s1-pagecard:hover, .s1-pagecard:focus-within { border-color: var(--s1-blue); box-shadow: 0 10px 24px rgba(0, 51, 117, .14); transform: translateY(-3px); }
.s1-pagecard__img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.s1-pagecard__img--blank { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--s1-navy), var(--s1-blue-ink)); color: rgba(255, 255, 255, .85); font-size: 44px; font-weight: 700; }
.s1-pagecard__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.s1-pagecard__date { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--s1-navy); background: #e6effa; border-radius: 999px; padding: 3px 10px; }
.s1-pagecard h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.s1-pagecard__link { color: var(--s1-navy); text-decoration: none; }
.s1-pagecard__link::after { content: ""; position: absolute; inset: 0; }
.s1-pagecard:hover h3, .s1-pagecard:focus-within h3 { text-decoration: underline; text-underline-offset: 3px; }
.s1-pagecard__link:focus-visible { outline: none; }
.s1-pagecard:has(.s1-pagecard__link:focus-visible) { outline: 3px solid var(--s1-blue); outline-offset: 3px; }
.s1-pagecard__intro { margin: 0; font-size: 14px; line-height: 1.55; color: var(--s1-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.s1-pagecard__meta { margin: 0; font-size: 13px; color: var(--s1-muted); }
.s1-pagecard__reg { position: relative; z-index: 1; align-self: flex-start; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--s1-blue-ink); }
@media (prefers-reduced-motion: reduce) { .s1-pagecard { transition: none; } .s1-pagecard:hover, .s1-pagecard:focus-within { transform: none; } }

/* Race results (themes/s1/pages/resultsArchive.cshtml) */
.s1-res { gap: 24px; }
.s1-res__search label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--s1-navy); }
.s1-res__searchrow { display: flex; gap: 10px; max-width: 560px; }
.s1-res__searchrow input { flex: 1; min-width: 0; min-height: 44px; padding: 0 18px; font: inherit; border: 1px solid #c7d2e0; border-radius: 999px; background: #fff; color: var(--s1-ink); }
.s1-res__searchrow input:focus-visible { outline: 3px solid var(--s1-blue); outline-offset: 2px; }
.s1-res__note { margin: 8px 0 0; font-size: 13px; color: var(--s1-soft); }
.s1-res__search label.s1-res__scope { display: inline-flex; font-weight: 500; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: var(--s1-ink); cursor: pointer; }
.s1-res__search label.s1-res__scope input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--s1-navy); }
.s1-res__label { font-weight: 600; color: var(--s1-navy); margin-right: 4px; }
.s1-res__years { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s1-res__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #c7d2e0; border-radius: 999px; background: #fff; color: var(--s1-ink) !important; font-size: 14px; text-decoration: none; }
.s1-res__chip:hover { background: #e6effa; }
.s1-res__chip[aria-current="page"] { background: var(--s1-navy); border-color: var(--s1-navy); color: #fff !important; font-weight: 600; }
.s1-res__chip:focus-visible, .s1-res__tabs a:focus-visible, .s1-res__seg a:focus-visible { outline: 3px solid var(--s1-blue); outline-offset: 2px; }
.s1-res__older, .s1-res__age { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.s1-res__older { margin-left: 6px; }
.s1-res select { font: inherit; font-size: 14px; min-height: 36px; padding: 0 10px; border: 1px solid #c7d2e0; border-radius: 8px; background: #fff; color: var(--s1-ink); }
.s1-res select:focus-visible { outline: 3px solid var(--s1-blue); outline-offset: 2px; }
/* The submit buttons only matter without JavaScript (the selects submit on change). */
.s1-res__go { font: inherit; font-size: 13px; min-height: 36px; padding: 0 12px; border: 1px solid #c7d2e0; border-radius: 8px; background: var(--s1-mist); color: var(--s1-navy); cursor: pointer; }
.s1-res__go[hidden] { display: none; }
.s1-res__mselect { display: none; }
.s1-res__tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--s1-line); }
.s1-res__tabs a { margin-bottom: -2px; padding: 10px 18px; border-bottom: 3px solid transparent; color: var(--s1-soft) !important; font-weight: 500; text-decoration: none; }
.s1-res__tabs a:hover { color: var(--s1-navy) !important; }
.s1-res__tabs a[aria-current="page"] { border-bottom-color: var(--s1-blue); color: var(--s1-navy) !important; font-weight: 700; }
.s1-res__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.s1-res__seg { display: inline-flex; padding: 3px; border: 1px solid #c7d2e0; border-radius: 999px; }
.s1-res__seg a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; color: var(--s1-ink) !important; font-size: 14px; text-decoration: none; }
.s1-res__seg a[aria-current="page"] { background: var(--s1-navy); color: #fff !important; font-weight: 600; }
.s1-res__summary { margin: 0 0 0 auto; font-size: 14px; color: var(--s1-soft); }
.s1-res__tablewrap { overflow-x: auto; }
.s1-res__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.s1-res__table th { padding: 10px 12px; border-bottom: 1px solid var(--s1-line); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--s1-soft); white-space: nowrap; }
.s1-res__table td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.s1-res__table tbody tr:hover { background: var(--s1-mist); }
.s1-res__num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s1-res__score { font-weight: 600; }
.s1-res__status { font-weight: 400; color: var(--s1-muted); font-style: italic; }
.s1-res__chiptime { color: var(--s1-soft); }
.s1-res__name { font-weight: 600; }
.s1-res__meta { display: none; }
.s1-res__club, .s1-res__agecol { color: var(--s1-soft); }
.s1-res__placecol { width: 64px; }
.s1-res__place { display: inline-block; min-width: 28px; text-align: center; color: var(--s1-soft); }
.s1-res__place--1, .s1-res__place--2, .s1-res__place--3 { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; color: #fff; font-weight: 700; }
.s1-res__place--1 { background: #8a6a12; }
.s1-res__place--2 { background: #5f6b76; }
.s1-res__place--3 { background: #9a5d2c; }
.s1-res__foundhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.s1-res__foundhead h2 { margin: 0; font-size: 22px; color: var(--s1-navy); }
.s1-res__person { border: 1px solid var(--s1-line); border-radius: 14px; padding: 16px 20px; margin-bottom: 14px; }
.s1-res__person h3 { margin: 0 0 6px; font-size: 17px; color: var(--s1-navy); }
.s1-res__person h3 span { font-size: 13px; font-weight: 400; color: var(--s1-soft); }
.s1-res__table--hits { font-size: 14px; }
.s1-res__table--hits th, .s1-res__table--hits td { padding: 7px 8px 7px 0; }

@media (max-width: 640px) {
  .s1-res__years, .s1-res__tabs { display: none; }
  .s1-res__mselect { display: flex; align-items: flex-end; gap: 8px; }
  .s1-res__mselect label { display: flex; flex: 1; flex-direction: column; gap: 4px; font-size: 12px; color: var(--s1-soft); }
  .s1-res__mselect select { min-height: 44px; font-size: 15px; border-radius: 10px; }
  .s1-res__mselect .s1-res__go { min-height: 44px; }
  .s1-res__seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .s1-res__seg a { justify-content: center; min-height: 40px; }
  .s1-res__summary { margin: 0; width: 100%; }
  /* Rows become compact list items: place | name with club · age group underneath | time. */
  .s1-res__table:not(.s1-res__table--hits) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .s1-res__table:not(.s1-res__table--hits) tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
  .s1-res__table:not(.s1-res__table--hits) td { padding: 0; border: 0; }
  .s1-res__table:not(.s1-res__table--hits) .s1-res__placecol { width: auto; }
  .s1-res__table:not(.s1-res__table--hits) .s1-res__name { grid-column: 2; }
  .s1-res__table:not(.s1-res__table--hits) .s1-res__score { grid-column: 3; grid-row: 1; }
  .s1-res__table:not(.s1-res__table--hits) .s1-res__chiptime { display: none; }
  .s1-res__table:not(.s1-res__table--hits) .s1-res__meta { display: block; font-size: 13px; font-weight: 400; color: var(--s1-soft); }
  .s1-res__table:not(.s1-res__table--hits) .s1-res__club,
  .s1-res__table:not(.s1-res__table--hits) .s1-res__agecol { display: none; }
  .s1-res__searchrow { max-width: none; }
}

/* ── Department pages: groups, races and the news band ──────────────────── */
.s1-groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s1-group__when { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--s1-ink); font-weight: 500; }
.s1-group__when svg { flex-shrink: 0; color: var(--s1-blue); margin-top: 1px; }
.s1-more { font-size: 15px; font-weight: 600; color: var(--s1-blue-ink) !important; text-decoration: none; white-space: nowrap; }
.s1-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Races as date tiles */
.s1-events { list-style: none; margin: 0; padding: 0; }
.s1-ev { display: flex; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--s1-line); color: var(--s1-ink) !important; text-decoration: none; }
.s1-events li:last-child .s1-ev { border-bottom: 1px solid var(--s1-line); }
.s1-datetile { width: 76px; flex-shrink: 0; text-align: center; background: #e6effa; border-radius: 12px; padding: 9px 0 8px; }
.s1-datetile b { display: block; font-size: 24px; font-weight: 700; line-height: 1; color: var(--s1-navy); }
.s1-datetile span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--s1-blue-ink); }
.s1-datetile--tba { background: var(--s1-mist); }
.s1-datetile--tba span { color: var(--s1-muted); }
.s1-ev__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.s1-ev__text strong { font-size: 17px; font-weight: 600; color: var(--s1-navy); }
.s1-ev__text span { font-size: 14px; color: var(--s1-muted); }
.s1-ev__more { font-size: 14px; font-weight: 600; color: var(--s1-blue-ink); white-space: nowrap; }
.s1-ev:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* News band: full width under the columns, pale to the screen edges and down to the footer. */
.s1-dnews { margin: 72px 0 -88px; padding: 56px 0 72px; background: var(--s1-mist); box-shadow: 0 0 0 100vmax var(--s1-mist); clip-path: inset(0 -100vmax); }
.s1-dnews .s1-section__head { margin-bottom: 28px; }
.s1-dnews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.s1-ncard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 51, 117, .06); transition: box-shadow .15s ease, transform .15s ease; }
.s1-ncard:hover, .s1-ncard:focus-within { box-shadow: 0 12px 28px rgba(0, 51, 117, .14); transform: translateY(-3px); }
.s1-ncard__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.s1-ncard__img--blank { display: flex; align-items: flex-end; padding: 18px 20px; background: linear-gradient(135deg, #e6effa, var(--s1-pale)); color: var(--s1-navy); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.s1-ncard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.s1-ncard__date { font-size: 13px; font-weight: 600; color: var(--s1-blue-ink); }
.s1-ncard h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; }
.s1-ncard__link { color: var(--s1-navy) !important; text-decoration: none; }
.s1-ncard__link::after { content: ""; position: absolute; inset: 0; }
.s1-ncard:hover h3, .s1-ncard:focus-within h3 { text-decoration: underline; text-underline-offset: 3px; }
.s1-ncard__link:focus-visible { outline: none; }
.s1-ncard:has(.s1-ncard__link:focus-visible) { outline: 3px solid var(--s1-blue-ink); outline-offset: 3px; }
.s1-ncard p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--s1-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) {
  .s1-groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s1-dnews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .s1-groups--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .s1-dnews { margin: 56px 0 -64px; padding: 40px 0 56px; }
  .s1-dnews__grid { grid-template-columns: minmax(0, 1fr); }
  .s1-ev { gap: 14px; }
  .s1-ev__more { display: none; }
  .s1-datetile { width: 62px; }
}
@media (prefers-reduced-motion: reduce) { .s1-ncard { transition: none; } .s1-ncard:hover, .s1-ncard:focus-within { transform: none; } }
/* Shared training times in the sidebar */
.s1-sessbox h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s1-blue-ink); }
.s1-sessbox dl { margin: 0 0 14px; }
.s1-sessbox dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--s1-line); }
.s1-sessbox dt { font-weight: 500; }
.s1-sessbox dd { margin: 0; font-weight: 700; color: var(--s1-navy); font-variant-numeric: tabular-nums; }

/* ── Síðulisti of races: table (default) or cards ───────────────────────── */
.s1-pagelist__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.s1-pagelist__head .s1-pagelist__title { margin: 0; }
.s1-viewswitch { display: inline-flex; margin-left: auto; padding: 4px; gap: 4px; background: var(--s1-mist); border-radius: 999px; }
.s1-viewswitch[hidden] { display: none; }
.s1-viewswitch button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--s1-soft); cursor: pointer; }
.s1-viewswitch button:hover { color: var(--s1-navy); }
.s1-viewswitch button[aria-pressed="true"] { background: #fff; color: var(--s1-navy); box-shadow: 0 1px 3px rgba(0, 51, 117, .15); }
.s1-muted { color: var(--s1-muted); }
.s1-pagelist--table .s1-pagecards { display: none; }
.s1-pagelist--table.is-cards .s1-pagecards { display: grid; }
.s1-pagelist--table.is-cards .s1-racetable__wrap { display: none; }
.s1-racetable__wrap { border: 1px solid var(--s1-line); border-radius: 14px; overflow: hidden; }
.s1-racetable { width: 100%; border-collapse: collapse; font-size: 15px; }
.s1-racetable thead th { background: var(--s1-navy); color: #fff; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 12px 16px; }
.s1-racetable td, .s1-racetable tbody th { padding: 14px 16px; border-top: 1px solid var(--s1-line); text-align: left; vertical-align: top; }
.s1-racetable tbody tr:nth-child(even) { background: #fafbfd; }
.s1-racetable tbody th { font-weight: 600; }
.s1-racetable tbody th a { color: var(--s1-navy); text-decoration: none; }
.s1-racetable tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1-racetable td a { font-weight: 600; color: var(--s1-blue-ink); white-space: nowrap; }
.s1-racetable td:nth-child(2) { white-space: nowrap; }
/* "Sýna inngang": each race is a tbody of its row and an intro row spanning every column but Úrslit; the zebra moves to the pair. */
.s1-racetable--intro tbody tr:nth-child(even) { background: none; }
.s1-racetable--intro tbody.is-even { background: #fafbfd; }
.s1-racetable--intro tr.has-intro th, .s1-racetable--intro tr.has-intro td { padding-bottom: 4px; }
.s1-racetable--intro .s1-racetable__introrow td { border-top: 0; padding: 0 16px 14px; white-space: normal; }
.s1-racetable--intro .s1-racetable__introrow p { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 400; color: var(--s1-soft); }
/* Phones: each race is a small block with labelled rows. */
@media (max-width: 760px) {
  .s1-racetable__wrap { border: 0; border-radius: 0; }
  .s1-racetable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .s1-racetable, .s1-racetable tbody, .s1-racetable tr, .s1-racetable td, .s1-racetable tbody th { display: block; }
  .s1-racetable tbody tr { border: 1px solid var(--s1-line); border-radius: 12px; margin-bottom: 12px; padding: 6px 0; background: #fff !important; }
  .s1-racetable tbody th { border-top: 0; font-size: 17px; padding: 10px 16px 6px; }
  .s1-racetable td { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--s1-line); padding: 8px 16px; }
  .s1-racetable td::before { content: attr(data-label); color: var(--s1-muted); font-size: 14px; }
  .s1-racetable td:nth-child(2) { white-space: normal; }
  .s1-racetable td { text-align: right; }
  /* With intros the tbody is the block; its rows dissolve so the intro can sit right under the name, before the labelled lines. */
  .s1-racetable--intro tbody { display: flex; flex-direction: column; border: 1px solid var(--s1-line); border-radius: 12px; margin-bottom: 12px; padding: 6px 0; background: #fff !important; }
  .s1-racetable--intro tbody tr { display: contents; }
  .s1-racetable--intro tr.has-intro th { padding-bottom: 2px; }
  .s1-racetable--intro tr.has-intro td { order: 2; padding-bottom: 8px; }
  .s1-racetable--intro .s1-racetable__introrow td { order: 1; display: block; text-align: left; border-top: 0; padding: 0 16px 10px; }
  .s1-racetable--intro .s1-racetable__introrow td::before { content: none; }
}

/* ── Report archive (pages/reportArchive, D56) ─────────────────────────── */
.s1-rep__filters { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--s1-line); border-radius: 14px; background: var(--s1-mist); }
.s1-rep__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s1-rep__row .s1-res__label { min-width: 64px; }
.s1-rep__count, .s1-rep__empty { margin: 0; color: var(--s1-soft); font-size: 14px; }
.s1-rep__year h2 { margin: 0 0 8px; font-size: 22px; color: var(--s1-navy); padding-bottom: 6px; border-bottom: 2px solid var(--s1-pale); }
.s1-rep__list { list-style: none; margin: 0; padding: 0; }
.s1-rep__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--s1-line); }
.s1-rep__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e6effa; color: var(--s1-navy); }
.s1-rep__main { min-width: 0; }
.s1-rep__title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.s1-rep__title:hover { text-decoration: underline; }
.s1-rep__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 2px 0 0; font-size: 13px; color: var(--s1-soft); }
.s1-rep__kind { font-weight: 600; color: var(--s1-blue-ink); }
.s1-rep__dept::before, .s1-rep__file::before { content: "·"; margin-right: 12px; color: var(--s1-muted); }
.s1-rep__note { margin: 4px 0 0; font-size: 14px; color: var(--s1-soft); }
.s1-rep select { font: inherit; font-size: 14px; min-height: 36px; padding: 0 10px; border: 1px solid #c7d2e0; border-radius: 8px; background: #fff; color: var(--s1-ink); }
@media (max-width: 640px) {
  .s1-rep__filters { padding: 14px; }
  .s1-rep__row .s1-res__label { min-width: 0; width: 100%; }
}

/* ── Front page: header over the photo (home-hero.js) ─────────────────────
   The header is fixed and transparent over the hero, with a dark fade behind the white menu so it
   stays readable on any photo; once the page is scrolled (or a menu is open) it turns navy. The
   photo moves at a fifth of the scroll speed. Other pages keep the plain navy header. */
.s1-header--overlay { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: transparent; transition: background-color .25s ease, box-shadow .25s ease; }
.s1-header--overlay::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0,20,50,.6), rgba(0,20,50,0)); pointer-events: none; transition: opacity .25s ease; }
.s1-header--overlay > * { position: relative; }
.s1-header--overlay.is-scrolled, .s1-header--overlay:has([aria-expanded="true"]), .s1-header--overlay:has(.s1-menu[open]) { background: var(--s1-navy); box-shadow: 0 6px 20px rgba(0,20,50,.25); }
.s1-header--overlay.is-scrolled::before, .s1-header--overlay:has([aria-expanded="true"])::before, .s1-header--overlay:has(.s1-menu[open])::before { opacity: 0; }
html:has(.s1-header--overlay) { scroll-padding-top: 96px; }
body:has(.s1-header--overlay) .s1-hero { min-height: 648px; }
body:has(.s1-header--overlay) .s1-hero__inner { padding-top: 160px; }
body:has(.s1-header--overlay) .s1-hero > img { will-change: transform; }
@media (max-width: 1000px) {
  html:has(.s1-header--overlay) { scroll-padding-top: 80px; }
  body:has(.s1-header--overlay) .s1-hero { min-height: 540px; }
  body:has(.s1-header--overlay) .s1-hero__inner { padding-top: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .s1-header--overlay, .s1-header--overlay::before { transition: none; }
}

/* Orange header (Stillingar › Útlit › Litur á haus): the UFA orange with dark text; the logo stays white (a
   graphic, 3.3:1), the navy one sank into the orange. The overrides apply while the header is actually orange:
   on the front page it stays transparent over the photo (white text, white logo) until the page is scrolled or
   a menu is open. Everything that is white on navy becomes --s1-on-orange; hover and current fills are white
   25% (a lighter orange), which keeps the dark text above 4.5:1; a dark fill would not. */
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) { background: var(--s1-orange); color: var(--s1-on-orange); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-nav__top, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-dd__toggle, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-search-link, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu > summary, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__panel li a, .theme-s1 .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__group > summary, .theme-s1 .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__group--2 > summary, .theme-s1 .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__group--2[open] > summary { color: var(--s1-on-orange); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-nav__top:hover, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-nav__top[aria-current="page"], .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-dd:hover, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-dd.is-open, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-dd:has(> .s1-nav__top[aria-current]), .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-dd__toggle:hover, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-search-link:hover, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu[open] > summary { background: rgba(255,255,255,.25); color: var(--s1-on-orange); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-dd > .s1-nav__top:hover, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-dd > .s1-nav__top[aria-current] { background: transparent; }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-nav .s1-nav__top:focus-visible, .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-dd__toggle:focus-visible, :where(.theme-s1) .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) :focus-visible { outline-color: var(--s1-on-orange); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__toggle { color: var(--s1-on-orange); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-btn { background: var(--s1-navy); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-btn:hover { background: var(--s1-navy-dark); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__panel { background: var(--s1-orange); border-top-color: rgba(0,26,58,.2); }
.s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__panel li a, .theme-s1 .s1-header--orange:is(:not(.s1-header--overlay), .is-scrolled, :has([aria-expanded="true"]), :has(.s1-menu[open])) .s1-menu__group > summary { border-bottom-color: rgba(0,26,58,.18); }
