/* ============================================================
   N-Einn — styles.css  (drop-in, engar HTML-breytingar)
   UMF Sindri · N1 mót drengja 2026

   Litaskipan:
     navy   → vörumerki, byggingu, hausa, fót
     gull   → hlýr hreimur (eyebrow/kicker, „framundan", smáatriði)
     rautt  → Í BEINNI + áríðandi/nýtt (sparlega)
     grænt  → jákvæðar aðgerðir (hlaða upp, virkja, sigur)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #15212e;
  --muted: #5a6675;
  --blue: #092b49;          /* vörumerkjalitur (theme-color) */
  --blue-2: #0e3c66;        /* léttari toppur á gradient */
  --blue-deep: #061d33;
  --red: #d7282f;           /* Í BEINNI / áríðandi */
  --red-soft: #fceaeb;
  --gold: #e3a52f;          /* hlýr hreimur */
  --green: #1aa05d;         /* jákvæðar aðgerðir */
  --green-soft: #e7f5ee;
  --sky: #e9f1f9;
  --paper: #f4f7fa;
  --card: #ffffff;
  --line: rgba(15, 33, 51, 0.10);
  --line-strong: rgba(15, 33, 51, 0.16);
  --shadow: 0 12px 34px -18px rgba(9, 43, 73, 0.30);
  --shadow-lg: 0 20px 48px -22px rgba(9, 43, 73, 0.40);
  --radius: 14px;
  --radius-sm: 10px;

  --font-display: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

img,
iframe { max-width: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 75% -10%, rgba(14, 60, 102, 0.10), transparent 60%),
    linear-gradient(180deg, var(--sky), var(--paper) 360px);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2.5px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(14, 60, 102, 0.72), rgba(9, 43, 73, 0.92) 60%, rgba(6, 29, 51, 0.96)),
    url("https://images.unsplash.com/photo-1579952363873-27f3bade9f55?auto=format&fit=crop&w=1600&q=82")
      center / cover;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 160, 93, 0.30), transparent 70%);
  pointer-events: none;
}
.hero__overlay { display: none; }       /* gamla rauða yfirlagið — nýja gradientið sér um þetta */

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 30px 22px 36px;
}

.hero__logo--corner {
  position: absolute;
  top: 20px; right: 22px;
  width: 84px; height: auto;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.45));
}

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.hero__eyebrow-row .eyebrow { margin-bottom: 0; }

.hero__logo--inline {
  display: none;
  height: auto;
  flex: none;
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero__logo--corner { display: none; }
  .hero__logo--inline {
    display: block;
    width: 60px;
    opacity: 0.95;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 12vw, 62px);
  font-weight: 800;
  line-height: 1.0;
}

.lead {
  max-width: 54ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 4.4vw, 20px);
  line-height: 1.45;
}

.hero__actions,
.card-actions,
.place-actions,
.parent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, opacity 140ms ease;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(9, 43, 73, 0.45);
}
.button:active { transform: translateY(0); }

.button--light  { background: #fff; color: var(--blue); }
.button--outline { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: rgba(255, 255, 255, 0.10); }
.button--dark   { background: var(--blue); color: #fff; }
.button--red    { background: var(--red); color: #fff; }
.button--green  { background: var(--green); color: #fff; }
.button--ghost  { border-color: var(--line-strong); background: #fff; color: var(--blue); }

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* ── Sticky bar + nav ─────────────────────────────────────── */
.sticky-bar { position: sticky; top: 0; z-index: 20; }

.quick-nav {
  padding: 10px 12px;
  background: rgba(244, 247, 250, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--blue);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }

.quick-nav.open .nav-toggle__bars { background: transparent; }
.quick-nav.open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.quick-nav.open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(9, 43, 73, 0.25);
}
.nav-links a:hover { border-color: var(--line-strong); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    overflow-x: visible;
  }
  .quick-nav.open .nav-links { display: flex; }
  .nav-links a { width: 100%; min-height: 50px; }
}

/* ── Layout ───────────────────────────────────────────────── */
main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 20px;
}

.section { margin: 30px 0; }

.section-heading { margin-bottom: 16px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 6.5vw, 36px);
  font-weight: 800;
  line-height: 1.08;
}
.section-heading .section-kicker { color: var(--gold); }

.notice-grid,
.games-grid,
.places-grid,
.app-grid { display: grid; gap: 16px; }

/* ── Leikir flokkaðir eftir degi (forsíða) ───────────────── */
.games-stack { display: grid; gap: 14px; }

.game-day__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.game-day__chev { transition: transform 0.15s ease; }
.game-day__header.collapsed .game-day__chev { transform: rotate(-90deg); }
.game-day__body { margin-top: 12px; }
.game-day__body[hidden] { display: none; }

/* ── Sameiginleg spjöld ───────────────────────────────────── */
.notice-card,
.day-card,
.game-card,
.place-card,
.player-card,
.venue-card,
.app-card,
.upload-panel,
.gallery-panel,
.info-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.notice-card,
.day-card,
.game-card,
.app-card,
.upload-panel,
.gallery-panel,
.info-band { padding: 20px; }

.app-card { display: flex; flex-direction: column; gap: 14px; }
.app-card > p:not(.small-note) { flex: 1 1 auto; }
.app-card > form { flex: 1 1 auto; }
.app-card .small-note { min-height: 2.7em; }

.app-card__icon {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.app-card h3 { margin: 0; font-size: 21px; line-height: 1.15; }
.app-card p { margin: 0; color: var(--muted); }

.small-note { margin: 0; color: var(--muted); font-size: 14.5px; }

.guide-intro { margin: 24px 0 4px; color: var(--ink); font-weight: 600; }

.setup-guide { display: grid; gap: 16px; margin-top: 16px; }
.guide-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 20px;
}
.guide-col h3 { margin: 0 0 16px; font-size: 19px; line-height: 1.12; }

.guide-steps {
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.guide-steps li {
  position: relative;
  padding-left: 50px;
  min-height: 36px;
  color: var(--muted);
  overflow-wrap: break-word;
}
.guide-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.guide-steps strong { color: var(--ink); }

@media (min-width: 880px) {
  .setup-guide { grid-template-columns: 1fr 1fr; }
}

/* ── Tilkynningar (forsíða) ──────────────────────────────── */
.notice-card { border-left: 4px solid var(--blue); }
.notice-card[data-tone="red"] { border-left-color: var(--red); }
.notice-card[data-tone="gold"] { border-left-color: var(--gold); }
.notice-card[data-tone="green"] { border-left-color: var(--green); }

.notice-label,
.time,
.place-tag,
.game-meta {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.notice-card h3,
.game-card h3 {
  margin: 6px 0 10px;
  font-size: clamp(19px, 5vw, 23px);
  line-height: 1.15;
}
.notice-card p,
.game-card p,
.event-note,
.place-card p { margin: 0; color: var(--muted); }

.notice-time { margin: 0 0 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.notices-viewall { margin-top: 16px; display: inline-flex; }

/* ── Dagskrá ──────────────────────────────────────────────── */
.schedule-stack { display: grid; gap: 18px; }

.day-card h3 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: clamp(22px, 6vw, 28px);
}

.event-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.event-row:first-of-type { border-top: 0; padding-top: 0; }

.event-title {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.event-location {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Leikjaspjald ─────────────────────────────────────────── */
.game-card {
  display: grid;
  gap: 16px;
  border-top: 6px solid var(--green);   /* sjálfgefið: framundan */
}
.game-card[data-status="later"] { border-top-color: var(--gold); }
.game-card[data-status="later"] .button { display: none; }
.game-card[data-status="done"] { border-top-color: var(--blue); }
.game-card[data-status="live"] { border-top-color: var(--red); }

.field-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  background: var(--sky);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.game-result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(9, 43, 73, 0.06);
}
.game-result__label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.game-result__score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.game-result[data-live="true"] { background: var(--red-soft); }
.game-result[data-live="true"] .game-result__label { color: var(--red); }

/* ── Live-borði ───────────────────────────────────────────── */
.live-score {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--red), #a51d22);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4);
}
.live-score[hidden] { display: none; }

.live-score__head,
.live-score__row { width: min(100%, 1180px); margin-inline: auto; }

.live-score__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.live-score__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.4s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 11px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.live-score__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.live-score__teams { font-size: 16px; font-weight: 600; }
.live-score__board {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}


/* ── Staðir / kort ───────────────────────────────────────── */
.place-card { overflow: hidden; }
.map-frame { position: relative; min-height: 240px; background: var(--sky); }
.map-frame iframe { width: 100%; height: 300px; display: block; border: 0; }
.place-body { padding: 20px; }
.place-card h3 { margin: 6px 0 10px; font-size: clamp(20px, 5.5vw, 24px); line-height: 1.12; }

.place-actions .button,
.parent-actions .button,
.card-actions .button { flex: 1 1 220px; }

/* ── Myndahleðsla ─────────────────────────────────────────── */
.upload-layout { display: grid; gap: 16px; }
.upload-panel { display: grid; gap: 12px; }
.upload-panel label { color: var(--blue); font-size: 15px; font-weight: 700; }

.upload-panel input,
.upload-panel select,
.upload-panel textarea,
.notify-form input,
.notify-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.upload-panel input:focus,
.upload-panel select:focus,
.upload-panel textarea:focus,
.notify-form input:focus,
.notify-form textarea:focus {
  outline: none;
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(14, 60, 102, 0.14);
}
.upload-panel input[type="file"] { min-height: 60px; background: var(--sky); padding: 12px 14px; }
.upload-panel textarea { resize: vertical; }

.notify-form { display: grid; gap: 12px; }
.notify-form label { color: var(--blue); font-size: 14px; font-weight: 700; }
.notify-form textarea { resize: vertical; }

.upload-progress { width: 100%; height: 14px; accent-color: var(--green); }

/* ── Gallerí ──────────────────────────────────────────────── */
.gallery-panel { min-height: 260px; }
.gallery-empty {
  min-height: 200px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.gallery-empty[hidden] { display: none; }
.gallery-empty strong { color: var(--blue); font-size: 20px; }
.gallery-empty span { color: var(--muted); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.photo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.photo-card img,
.photo-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: var(--sky);
}
.photo-card video { background: #000; }
.photo-card__body { display: grid; gap: 4px; padding: 12px; }
.photo-card__body strong { color: var(--ink); font-size: 15px; }
.photo-card__body span { color: var(--muted); font-size: 13px; }

.gallery-viewall { margin-top: 16px; align-self: start; }

.day-gallery { margin: 0 0 22px; }
.day-gallery__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border: none;
  border-bottom: 2px solid var(--gold);
  background: transparent;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.day-gallery__title { display: flex; align-items: center; gap: 12px; }
.day-gallery__chev { font-size: 18px; transition: transform 0.15s ease; }
.day-gallery__header.collapsed .day-gallery__chev { transform: rotate(-90deg); }
.day-gallery__body[hidden] { display: none; }
.day-count {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 3px 14px;
}

/* ── Sérstök gallerí-/undirsíða ──────────────────────────── */
.page-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: var(--blue);
  color: #fff;
}
.page-bar h1 { margin: 0; font-size: 20px; line-height: 1.1; }
.back-link { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.gallery-lead { margin: 0 0 20px; color: var(--muted); }

/* ── Leikmenn ─────────────────────────────────────────────── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.player-card { overflow: hidden; text-align: center; padding-bottom: 16px; }
.player-media { position: relative; }
.player-photo,
.player-avatar { position: relative; width: 100%; aspect-ratio: 1 / 1; display: block; }
.player-photo { object-fit: cover; background: var(--sky); }
.player-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
}
.player-nr {
  position: absolute;
  top: 10px; left: 10px;
  min-width: 30px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.player-status {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.player-name { margin: 12px 12px 4px; font-size: 16px; line-height: 1.12; font-weight: 700; color: var(--blue); }
.player-position {
  margin: 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}
.player-bday { margin: 0 12px; color: var(--muted); font-size: 13px; }
.player-bday__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ── Vellir ───────────────────────────────────────────────── */
.venue-grid { display: grid; gap: 16px; }
.venue-card { overflow: hidden; }
.venue-map { display: block; width: 100%; height: auto; background: #34503f; }
.venue-body { padding: 20px; }
.venue-body h2 { margin: 0 0 6px; font-size: clamp(20px, 5.5vw, 26px); line-height: 1.1; color: var(--blue); }
.venue-note { margin: 0 0 16px; color: var(--muted); }

/* ── Staðan (tafla) ──────────────────────────────────────── */
.standings-meta { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.standings-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.standings { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.standings th,
.standings td { padding: 12px 10px; text-align: center; white-space: nowrap; }
.standings thead th {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.standings th.team-col,
.standings td.team-col { text-align: left; white-space: normal; font-weight: 600; }
.standings tbody tr { border-top: 1px solid var(--line); }
.standings tbody tr.us { background: var(--sky); }
.standings tbody tr.us .team-col { box-shadow: inset 3px 0 0 var(--blue); font-weight: 800; color: var(--blue); }
.standings .pts { font-weight: 800; color: var(--blue); }
.standings-empty { padding: 24px; color: var(--muted); }

/* ── Reglur ───────────────────────────────────────────────── */
.rule-list { display: grid; gap: 14px; }
.rule-list article {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}
.rule-list strong { color: var(--blue); font-size: 18px; }
.rule-list span { color: var(--muted); }

/* ── Tilkynningalisti (/tilkynningar) ────────────────────── */
.notifications-list { display: grid; gap: 16px; }
.notification-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.notification-when { margin: 0; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: capitalize; }
.notification-card h2 { margin: 0; color: var(--blue); font-size: 20px; line-height: 1.2; }
.notification-body { margin: 0; font-size: 16px; line-height: 1.5; }

/* ── Matseðill (/matsedill) ──────────────────────────────── */
.menu-day { margin: 0 0 28px; }
.menu-day__title {
  margin: 0 0 16px;
  font-size: clamp(20px, 5.5vw, 26px);
  color: var(--blue);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
}
.menu-meal {
  padding: 18px 20px;
  margin: 0 0 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow);
}
.menu-meal[data-meal="breakfast"] { border-left-color: var(--gold); }
.menu-meal[data-meal="lunch"] { border-left-color: var(--green); }
.menu-meal[data-meal="dinner"] { border-left-color: var(--red); }
.meal-label {
  display: inline-block;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.meal-main { margin: 0; font-size: 16px; line-height: 1.5; }
.meal-alt { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.menu-times,
.menu-note { margin: 0 0 28px; }
.times-block {
  padding: 18px 20px;
  margin: 0 0 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.times-block h3 { margin: 0 0 12px; font-size: 18px; color: var(--blue); }
.times-sub { margin: 14px 0 6px; font-weight: 700; color: var(--ink); }
.times-block ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.times-block li { font-size: 16px; }
.menu-note p { margin: 0 0 12px; }

/* ── Stjórnsíða (/stjorn) ────────────────────────────────── */
.admin-form { display: grid; gap: 16px; width: min(100%, 660px); }
.admin-form > label { color: var(--blue); font-weight: 700; font-size: 14px; margin-bottom: -8px; }
.admin-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.result-rows { display: grid; gap: 14px; }
.result-row {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.result-row__label { font-weight: 700; color: var(--blue); font-size: 15px; }
.result-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.result-row__controls { display: flex; gap: 10px; align-items: stretch; }
.result-row__controls input { flex: 1 1 auto; min-width: 0; }
.result-row select {
  flex: none;
  padding: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.admin-section { margin: 0 0 32px; }
.admin-section .notify-form { width: min(100%, 660px); }

.admin-loggedin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 660px);
  margin: 0 0 22px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
}
.admin-loggedin__label { font-weight: 700; color: var(--green); font-size: 15px; }

.result-day {
  width: min(100%, 660px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.result-day__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.result-day__chev { transition: transform 0.15s ease; }
.result-day__header.collapsed .result-day__chev { transform: rotate(-90deg); }
.result-day__body { display: grid; gap: 14px; padding: 16px; }
.result-day__body[hidden] { display: none; }

/* ── Fótur ────────────────────────────────────────────────── */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 30px 24px 42px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
}
.footer p { margin: 0; }
.footer a { font-weight: 700; }

/* ── Stærri skjáir ────────────────────────────────────────── */
@media (min-width: 860px) {
  .hero { min-height: 420px; }
  .notice-grid,
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .app-grid,
  .places-grid,
  .upload-layout { grid-template-columns: repeat(2, 1fr); }
}

/* ── Lítil símaskjár ─────────────────────────────────────── */
@media (max-width: 520px) {
  main { padding: 16px; }
  .notice-card,
  .day-card,
  .game-card,
  .info-band { padding: 18px; }
  .event-row { grid-template-columns: 70px 1fr; gap: 12px; }
  .button { width: 100%; }
  .place-actions .button,
  .parent-actions .button,
  .card-actions .button { flex: 1 1 100%; }
}

/* ── Forsíða: ný stefna (Næsti leikur, tímalína, fixtures) ── */
/* Hero — hreint navy gradient (engin ljósmynd) + merki/félagsnafn */
.hero {
  min-height: 0;
  background: linear-gradient(165deg, var(--blue-2), var(--blue) 55%, var(--blue-deep));
}
.crest-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.crest {
  width: 46px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}
.club { font-size: 12px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, 0.78); }

/* Næsti leikur — signature-spjald */
.next-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.next-card--empty { color: var(--muted); }
.nc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.nc-when {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.nc-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.nc-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.nc-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.nc-badge {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}
.nc-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.nc-vs { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--muted); }
.nc-foot { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.nc-foot > div { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink); }
.nc-foot svg { color: var(--muted); flex: none; }

/* Dagskrá — tímalína */
.timeline { position: relative; }
.tl-item { position: relative; display: flex; gap: 13px; padding-bottom: 15px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px; top: 18px; bottom: -3px;
  width: 2px;
  background: var(--line-strong);
}
.tl-time { width: 46px; flex: none; padding-top: 1px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tl-dot {
  width: 12px; height: 12px;
  flex: none;
  margin-top: 3px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--line-strong);
  z-index: 1;
}
.tl-item.now .tl-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tl-item.now .tl-label { color: var(--green); }
.tl-detail { min-width: 0; }
.tl-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.tl-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* Leikir — raðir (fixtures) */
.fixture {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.fx-status {
  flex: none;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fx-status.done { color: var(--muted); background: var(--sky); }
.fx-status.live { color: #fff; background: var(--green); }
.fx-status.next { color: var(--blue); background: #e8eff6; }
.fx-main { flex: 1; min-width: 0; }
.fx-teams { font-size: 15px; font-weight: 600; color: var(--ink); }
.fx-teams .me { color: var(--blue); font-weight: 800; }
.fx-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.fx-score { flex: none; font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── Hreyfing af / aðgengi ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
