/* Sögufélag Loftleiða – útlit. Litir: navy / cream / gull */
:root {
  --ll-blue: #3598d3; /* Loftleiðablár, CMYK 76/29/0/0 */
  --navy: #1f5f8b;
  --navy-2: #2a7bb0;
  --cream: #f6f0e1;
  --cream-2: #ece3cc;
  --gold: #e0d43b;
  --gold-text: #3d3d3d; /* dökkgrár fyrir nöfn og texta á ljósum grunni */
  --gold-light: #e0d43b;
  --ink: #1d1d1d;
  --muted: #5b5b5b;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(20, 37, 74, .12);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: "acumin-variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Haus */
.site-header { background: var(--ll-blue); color: var(--cream); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--cream); text-decoration: none; }
.brand-mark { width: 64px; height: 48px; object-fit: contain; color: var(--gold-light); flex: none; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.45rem; letter-spacing: .02em; }
.brand-sub { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav a { color: var(--cream); text-decoration: none; padding: .5rem .85rem; border-radius: var(--radius); font-size: .95rem; letter-spacing: .03em; display: block; }
.main-nav a:hover { background: var(--navy-2); }
.main-nav a[aria-current="page"] { background: var(--gold); color: var(--navy); font-weight: 600; }
.nav-toggle { display: none; background: transparent; color: var(--cream); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: .4rem .8rem; font: inherit; cursor: pointer; }

/* Kynning */
.intro { background: linear-gradient(180deg, var(--ll-blue), var(--navy)); color: var(--cream); padding: 2.5rem 0 2.75rem; text-align: center;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 40px), linear-gradient(180deg, var(--ll-blue), var(--navy)); }
.intro h1 { color: var(--cream); font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .25rem 0 1rem; }
.kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: var(--gold-light); margin: 0; }
.intro .placeholder-note { max-width: 720px; margin: 0 auto; color: var(--cream-2); }
.placeholder-note strong { color: var(--gold-text); font-weight: 600; }
.intro .placeholder-note strong { color: var(--gold-light); }

.view { padding: 2.5rem 0 3.5rem; }
.section-title { font-size: 2rem; text-align: center; margin: 0 0 .25rem; }
.section-title::after { content: ""; display: block; width: 80px; height: 3px; background: var(--gold); margin: .6rem auto 0; }
.section-lead { text-align: center; color: var(--muted); margin: .75rem 0 2rem; }

/* Tímalína */
.timeline { position: relative; }
.decade { position: relative; margin-bottom: 1.5rem; }
.decade-title { position: relative; z-index: 2; text-align: center; margin: 2rem 0 1.5rem; }
.decade-title span { display: inline-block; background: var(--navy); color: var(--cream); font-family: var(--serif); font-size: 1.15rem; padding: .45rem 1.25rem; border: 2px solid var(--gold); border-radius: 999px; }
.tl-list { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-list::before { content: ""; position: absolute; left: 50%; top: -1.5rem; bottom: -1.5rem; width: 3px; background: var(--gold); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 2.25rem 2rem 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2rem 2.25rem; }
.tl-item::before { content: ""; position: absolute; top: 1.4rem; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 3px solid var(--navy); z-index: 1; }
.tl-item:nth-child(even)::before { right: auto; left: -9px; }
.tl-card { background: #fffdf7; border: 1px solid var(--cream-2); border-top: 4px solid var(--ll-blue); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tl-card.highlight { outline: 3px solid var(--gold); }
.tl-photo { display: block; width: 100%; padding: 0; border: 0; background: #ddd; cursor: zoom-in; }
.tl-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; filter: sepia(.15); }
.tl-photo:hover img { filter: none; }
.tl-body { padding: 1rem 1.25rem 1.25rem; }
.tl-year { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-text); font-weight: 700; line-height: 1; }
.tl-body h3 { margin: .35rem 0 .5rem; font-size: 1.2rem; }
.tl-body p { margin: 0 0 .5rem; }
.tl-people { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.chip { font: inherit; font-size: .8rem; border: 1px solid var(--navy); color: var(--navy); background: transparent; border-radius: 999px; padding: .15rem .65rem; cursor: pointer; }
.chip:hover { background: var(--navy); color: var(--cream); }

/* Ættartré starfsfólks */
.tree { --line: var(--gold); text-align: center; }
.tree-root { display: inline-block; background: var(--navy); color: var(--cream); border: 2px solid var(--gold); border-radius: var(--radius); padding: .75rem 1.5rem; font-family: var(--serif); font-size: 1.25rem; position: relative; }
.tree-root small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--gold-light); letter-spacing: .15em; }
.tree-trunk { width: 3px; height: 28px; background: var(--line); margin: 0 auto; }
.branches { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 1rem; position: relative; }
.branch { flex: 1 1 0; min-width: 0; position: relative; padding-top: 28px; }
/* lárétt lína á milli greina */
.branch::before { content: ""; position: absolute; top: 0; left: -.5rem; right: -.5rem; height: 3px; background: var(--line); }
.branch:first-child::before { left: 50%; }
.branch:last-child::before { right: 50%; }
.branch:only-child::before { display: none; }
/* lóðrétt lína niður að grein */
.branch::after { content: ""; position: absolute; top: 0; left: 50%; width: 3px; height: 28px; background: var(--line); transform: translateX(-50%); }
.branch-title { display: inline-block; background: var(--cream-2); border: 2px solid var(--navy); color: var(--navy); font-family: var(--serif); font-weight: 700; padding: .35rem .9rem; border-radius: var(--radius); margin: 0; font-size: 1rem; }
.leaves { list-style: none; margin: 0; padding: 0; position: relative; }
.leaf { position: relative; padding-top: 22px; }
.leaf::before { content: ""; position: absolute; top: 0; left: 50%; width: 3px; height: 22px; background: var(--line); transform: translateX(-50%); }
.person { display: block; width: 100%; max-width: 190px; margin: 0 auto; background: #fffdf7; border: 1px solid var(--cream-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: .75rem; font: inherit; color: inherit; cursor: pointer; text-align: center; }
.person:hover { border-color: var(--gold); transform: translateY(-2px); transition: transform .15s; }
.person img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .5rem; border: 3px solid var(--gold); object-fit: cover; object-position: center 15%; }
.person-name { display: block; font-family: var(--serif); font-weight: 700; color: var(--gold-text); font-size: .95rem; }
.person-role { display: block; font-size: .82rem; color: var(--muted); }
.person-years { display: block; font-size: .8rem; color: var(--gold-text); font-weight: 600; margin-top: .2rem; }

/* Gluggar */
dialog { border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 10px 40px rgba(0,0,0,.4); max-width: min(92vw, 900px); background: var(--cream); }
dialog::backdrop { background: rgba(10, 18, 38, .8); }
.dialog-close { position: absolute; top: .4rem; right: .5rem; width: 2.4rem; height: 2.4rem; font-size: 1.6rem; line-height: 1; border: 0; border-radius: 50%; background: var(--navy); color: var(--cream); cursor: pointer; z-index: 2; }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { padding: .75rem 1.25rem 1rem; font-family: var(--serif); color: var(--navy); }
.person-dialog { width: min(92vw, 640px); }
#person-body { padding: 1.5rem; }
.pd-head { display: flex; gap: 1.25rem; align-items: center; }
/* d705: do not squash tall portraits in the profile circle */
.pd-head img { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--gold); flex: none; object-fit: cover; object-position: center 15%; }
.pd-head h3 { margin: 0 0 .25rem; }
.pd-meta { margin: 0; color: var(--muted); }
.pd-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.pd-photos button { width: 100%; padding: 0; border: 1px solid var(--cream-2); background: #fffdf7; cursor: zoom-in; font: inherit; text-align: left; border-radius: var(--radius); overflow: hidden; }
.pd-photos span { display: block; padding: .35rem .5rem; font-size: .8rem; }
.pd-photos a { display: block; padding: 0 .5rem .4rem; font-size: .78rem; color: var(--navy-2); }

.contact dt { font-weight: 700; color: var(--navy); margin-top: .75rem; }
.contact dd { margin: 0; }

.site-footer { background: var(--ll-blue); color: var(--cream-2); border-top: 4px solid var(--gold); padding: 1.25rem 0; font-size: .85rem; text-align: center; }
.site-footer p { margin: 0; }
.site-footer .site-footer-umsjon { margin-top: .35rem; }

/* Farsímar og spjaldtölvur */
@media (max-width: 900px) {
  .branches { flex-direction: column; align-items: stretch; gap: 0; }
  .branch { padding-top: 28px; }
  .branch::before { display: none; }
  .leaves { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .tl-list::before { left: 10px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.5rem 2.25rem; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 2px; right: auto; }
  .pd-head { flex-direction: column; text-align: center; }
}
@media (max-width: 900px) { .leaf::before { display: none; } .leaf { padding-top: .75rem; } }

/* Viðbætur v2: útgefið efni og myndasafn */
.pub { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; margin: 2rem 0; align-items: start; }
.pub:not(:has(> img)) { grid-template-columns: 1fr; }
.pub img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pub h3, .pub h4 { margin-top: 0; }
.pub h4 { font-size: 1.15rem; margin-bottom: .5rem; }
@media (max-width: 600px) { .pub { grid-template-columns: 1fr; } .pub img { max-width: 220px; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; display: block; }
.gallery-item figcaption { font-size: .85rem; margin-top: .35rem; opacity: .8; }
.about-img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 1rem; }
.about-logo { display: block; width: auto; max-width: min(100%, 360px); height: auto; object-fit: contain; border-radius: 0; margin: 0 auto 1.25rem; }

.tl-source { font-size: .78rem; opacity: .7; margin-top: .6rem; }
.tl-source a { color: inherit; }
.tl-uncertain { color: #9a6b00; }
/* Nafnaskrá */
.nn-controls{display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0}
.nn-controls label{display:flex;flex-direction:column;font-size:.85rem;gap:.25rem}
.nn-search{flex:1 1 280px}
.nn-controls input,.nn-controls select{padding:.5rem .6rem;border:1px solid #c9b98f;border-radius:4px;font:inherit;background:#fff}
.nn-az{display:flex;flex-wrap:wrap;gap:.25rem;margin:-.4rem 0 .8rem}
.nn-az-btn{min-width:1.7rem;padding:.15rem .3rem;font:inherit;font-size:.85rem;font-weight:600;line-height:1.3;color:var(--navy);background:#fff;border:1px solid #c9b98f;border-radius:4px;cursor:pointer}
.nn-az-btn:hover:not(:disabled),.nn-az-btn:focus-visible{background:var(--navy);color:#fff;border-color:var(--navy)}
.nn-az-btn:disabled{color:#bbb;border-color:#e5dcc3;background:#faf8f2;cursor:default}
.nn-count{font-size:.9rem;color:#555}
.nn-list{list-style:none;padding:0;margin:0}
.nn-letter{font-family:Georgia,serif;font-size:1.4rem;color:var(--navy);border-bottom:2px solid var(--gold);margin:1.2rem 0 .5rem;padding-bottom:.2rem}
.nn-item{background:#fff;border:1px solid #e5dcc3;border-radius:6px;padding:.8rem 1rem;margin:.5rem 0}
.nn-head{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.nn-name{margin:0;font-size:1.05rem;color:var(--gold-text)}
.nn-badge{font-size:.72rem;padding:.1rem .5rem;border-radius:10px;font-weight:600}
.nn-ok{background:#e3f1e3;color:#245a24}.nn-guess{background:#fbecd2;color:#8a5a00}
.nn-meta{margin:.2rem 0;color:#555;font-size:.9rem}
.nn-facts{margin:.4rem 0 .3rem 1.1rem;padding:0}
.nn-note{font-size:.85rem;color:#8a5a00;margin:.3rem 0}
.nn-cross{font-size:.82rem;color:#3b4a6b;margin:.2rem 0}
.nn-srclabel{font-size:.8rem;margin:.4rem 0 0;color:#555}
.nn-src{font-size:.82rem;margin:.1rem 0 0 1.1rem;padding:0}
.nn-profile{margin:.3rem 0;font:inherit;font-size:.85rem;background:var(--navy);color:#fff;border:0;border-radius:4px;padding:.3rem .7rem;cursor:pointer}

/* Handrit heimildarmyndar */
.hr-download { margin: .5rem 0 1rem; }
.hr-btn { display: inline-block; background: var(--navy); color: var(--cream); padding: .5rem 1rem; border-radius: var(--radius); text-decoration: none; font-family: var(--sans); }
.hr-btn:hover { background: var(--navy-2); }
.hr-texti { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem clamp(1rem, 4vw, 3rem); max-width: 50rem; font-family: var(--serif); line-height: 1.55; }
.hr-scene { font-family: var(--sans); font-size: .85rem; letter-spacing: .06em; color: var(--navy); border-top: 1px solid var(--cream-2); padding-top: 1rem; margin: 1.4rem 0 .4rem; }
.hr-action { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-style: italic; margin: .3rem 0; }
.hr-line { margin: .7rem 0 .7rem 1.5rem; }
.hr-line p { margin: .1rem 0 0; }
.hr-speaker { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-text); }
.hr-thulur .hr-speaker { color: var(--navy); }
.hr-thulur p { font-style: italic; }
.hr-subb { font-family: var(--sans); font-size: .8rem; color: var(--navy-2); background: var(--cream); display: inline-block; padding: .15rem .5rem; border-radius: 3px; margin: .2rem 0 .2rem 1.5rem; }
.hr-hle { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .3em; margin: 1rem 0; }
.hr-hit { background: #fff6d8; }

/* Loftleiðastélið, eins og á kaflasíðum bókarinnar */
.section-title { position: relative; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--ll-blue); }
section:has(> .container > .section-title), section:has(> .section-title) { position: relative; }
.view { position: relative; }

/* Acumin Variable (Adobe Fonts): fyrirsagnir í Condensed Bold Italic */
h1, h2, h3, .brand-name { font-family: "acumin-variable", var(--serif); font-weight: 700; font-style: normal; font-variation-settings: "wght" 700, "wdth" 75, "slnt" -12; letter-spacing: 0; }

/* Meginmál: Acumin Condensed Light, dökkgrátt */
body, .hr-texti { font-family: var(--sans); font-weight: 400; font-variation-settings: "wdth" 75; color: #3a3a3a; }
b, strong { font-weight: 600; }
.tl-merki { display: block; width: 160px; height: 160px; margin: 0 auto .5rem; }
.tl-merki--wide { width: auto; max-width: min(100%, 420px); height: auto; }
.tl-merki--breitt { width: auto; height: 160px; max-width: 100%; object-fit: contain; }

/* Handrit: Courier Prime (SIL Open Font License, letur/OFL.txt) */
@font-face { font-family: "Courier Prime"; src: url("letur/CourierPrime-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("letur/CourierPrime-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("letur/CourierPrime-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("letur/CourierPrime-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
.hr-texti, .hr-texti * { font-family: "Courier Prime", "Courier New", Courier, monospace; font-variation-settings: normal; letter-spacing: 0; }
.hr-texti { font-size: 1rem; line-height: 1.5; }
.section-title { font-variation-settings: "wght" 700, "wdth" 75, "slnt" 0; }

/* Tungumálaval handrits (IS/EN) */
.hr-cover { text-align: center; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--cream-2); margin-bottom: 1rem; }
.hr-cover strong { display: block; font-size: 1.15rem; margin-bottom: .3rem; }
.hr-texti, .hr-texti *, .hr-action, .hr-thulur p { font-style: normal; }

/* Myndasafn á tímalínu */
.tl-gallery-wrap { margin: .75rem 0 .5rem; }
.tl-gallery-intro { font-style: normal; color: #3a3a3a; }
.tl-gallery-count { font-size: .85rem; color: var(--muted); }
.tl-gallery { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.tl-gallery li { margin: 0; padding: 0; }
.tl-gallery button { display: block; width: 100%; padding: 0; border: 0; background: #ddd; cursor: zoom-in; border-radius: 3px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.tl-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.15); transition: filter .15s; }
.tl-gallery button:hover img, .tl-gallery button:focus-visible img { filter: none; }
/* d346: fixed (ekki relative) — annars verður modal-glugginn absolute efst í skjalinu og síðan rennur upp á topp þegar mynd er opnuð */
.lightbox { position: fixed; }
.lb-nav { display: none; position: absolute; top: 40%; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(20,30,55,.75); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; z-index: 2; padding: 0 0 .2rem; -webkit-appearance: none; appearance: none; }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }
.lightbox.has-nav .lb-nav { display: block; }
.lightbox .lb-nav { transform: translateY(-50%); } /* d359: top stillt með JS á miðja mynd */
.lb-count { display: none; position: absolute; top: .7rem; left: .8rem; background: rgba(20,30,55,.75); color: #fff; font-size: .8rem; padding: .15rem .5rem; border-radius: 1rem; }
.lightbox.has-nav .lb-count { display: block; }
.lightbox.has-nav img { touch-action: pan-y; max-width: 100%; }
@media (max-width: 600px) { .tl-gallery { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; } .lb-nav { width: 2.2rem; height: 2.2rem; font-size: 1.6rem; } }

/* Myndasafnssíða */
.tl-gallery-link { margin: 0 0 .5rem; padding-top: 1rem; }
.ms-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.ms-tabs a { padding: .35rem .9rem; border: 1px solid var(--cream-2); border-radius: 1.2rem; background: #fffdf7; color: #3a3a3a; text-decoration: none; }
.ms-tabs a[aria-current] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.ms-album h3 { margin: .5rem 0; }
.ms-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 600px) { .ms-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 5px; } }

/* Myndamappa á starfsmannaspjaldi */
.pd-album { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-bottom: .75rem; }

/* Senda ábendingu */
.fb-btn { display: inline-block; margin-top: .6rem; padding: .25rem .7rem; font: inherit; font-size: .8rem; line-height: 1.4; color: var(--navy); background: #fffdf7; border: 1px solid var(--cream-2); border-radius: 1.2rem; cursor: pointer; font-family: var(--sans); }
.fb-btn::before { content: "✎ "; }
.fb-btn:hover, .fb-btn:focus-visible { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.fb-row { margin: .5rem 0 .75rem; }
.fb-btn-lightbox { margin: .5rem auto 0; display: block; }
.fb-dialog { width: min(32rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); max-height: calc(100svh - 2rem); overflow: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 1.25rem 1.25rem 1rem; border: 0; border-radius: var(--radius); background: var(--cream); color: var(--ink); box-shadow: var(--shadow); position: fixed; inset: 0; margin: auto; height: auto; }
/* d694: Senda var undir sjónmálum í löngu formi, einkum í síma; fótinn festist neðst. */
.fb-footer { position: sticky; bottom: -1rem; z-index: 3; margin: 0 -0.15rem; padding: .35rem 0.15rem calc(.25rem + env(safe-area-inset-bottom, 0px)); background: var(--cream); }
body:has(dialog[open]) .ab-tonlist,
body:has(dialog[open]) .ab-tonlist-spila,
body:has(dialog[open]) .to-top { visibility: hidden; pointer-events: none; }
.fb-dialog [aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 1px; }
.fb-status.fb-busy { color: var(--navy); font-weight: 600; }
.fb-submit:disabled { opacity: .7; cursor: progress; }
.fb-dialog::backdrop { background: rgba(20, 30, 55, .6); }
.fb-dialog h3 { margin: 0 2rem .4rem 0; color: var(--navy); }
.fb-intro { margin: 0 0 .8rem; font-size: .9rem; color: var(--muted); }
.fb-form label { display: block; margin: 0 0 .7rem; font-size: .9rem; font-weight: 600; font-family: var(--sans); }
.fb-form small { font-weight: 400; color: var(--muted); }
.fb-form input, .fb-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .5rem .6rem; font: inherit; font-size: 1rem; font-weight: 400; border: 1px solid #c9bd9d; border-radius: 4px; background: #fffdf7; color: var(--ink); }
.fb-form input[readonly] { background: var(--cream-2); color: #3a3a3a; font-size: .9rem; }
.fb-form textarea { resize: vertical; min-height: 7rem; }
.fb-form input:focus, .fb-form textarea:focus { outline: 2px solid var(--ll-blue); outline-offset: 1px; }
.fb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.fb-cancel { font: inherit; padding: .5rem 1rem; border: 1px solid var(--cream-2); border-radius: var(--radius); background: transparent; cursor: pointer; font-family: var(--sans); }
.fb-submit { border: 0; cursor: pointer; font-size: 1rem; }
.fb-submit[disabled] { opacity: .6; cursor: wait; }
.fb-status { min-height: 1.2em; margin: .2rem 0 .6rem; font-size: .95rem; }
.fb-status:empty { display: none; }
.fb-ok { padding: .75rem; background: #e8f3e3; border-left: 4px solid #4a8a3a; }
.fb-err { color: #a12a1a; }
@media (max-width: 600px) { .fb-dialog { padding: 1rem .9rem .8rem; } .fb-actions button { flex: 1; } }

/* Útfellanlegur aukakafli í tímalínuspjaldi */
.tl-extra { margin: .75rem 0; background: var(--cream); border: 1px solid var(--cream-2); border-left: 3px solid var(--navy); border-radius: var(--radius); padding: .5rem .9rem; }
.tl-extra summary { cursor: pointer; font-family: var(--serif); color: var(--navy); font-weight: 600; }
.tl-extra summary:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.tl-extra[open] summary { margin-bottom: .5rem; border-bottom: 1px solid var(--cream-2); padding-bottom: .4rem; }
.tl-extra p { margin: 0 0 .7rem; font-size: .95rem; }
.tl-extra .tl-extra-source { font-size: .85rem; color: var(--muted); margin: 0; }
.tl-extra .tl-extra-source a { color: var(--navy); }
/* d507: vélritað minnisblað/bréf í aukakafla — línuskipti eins og á eintakinu */
.tl-extra p.tl-extra-typed {
  white-space: pre-wrap;
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  font-size: .88rem;
  line-height: 1.45;
  overflow-x: auto;
}
/* d507: eitt skjal í prófílsmyndasafni — síðufjöldi eins og á auglýsingum */
.pd-album button.pd-album-doc { position: relative; }
.pd-album .pd-album-sidur {
  position: absolute; right: .35rem; bottom: .35rem;
  background: rgba(0,0,0,.65); color: #fff;
  font-family: var(--sans); font-size: .7rem;
  padding: .12rem .4rem; border-radius: 999px;
  pointer-events: none;
}


/* Ættartré: Stofnendur / Stjórn efst, svo Í lofti og Á jörðu */
.tree-single { max-width: 60rem; margin: 0 auto; }
.tree-single > .branch-title { margin-bottom: .75rem; }
.branches-two > .branch { flex: 1 1 0; }
.tree-group { background: rgba(255,255,255,.35); border: 1px solid var(--cream-2); border-radius: var(--radius); padding: .75rem .5rem 1rem; }
.group-title { font-size: 1.15rem; background: var(--navy) !important; color: var(--cream) !important; border-color: var(--gold) !important; }
.dept-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .75rem 0; }
.dept-tab { font: inherit; font-family: var(--serif); font-size: .9rem; border: 1.5px solid var(--navy); color: var(--navy); background: var(--cream); border-radius: 999px; padding: .25rem .8rem; cursor: pointer; }
.dept-tab:hover { background: var(--cream-2); }
.dept-tab.active { background: var(--navy); color: var(--cream); border-color: var(--gold); }
.dept-count { font-size: .85em; opacity: .8; }
.leaf-empty { font-style: italic; color: var(--muted); padding: .5rem; }
@media (max-width: 720px) {
  .branches-two { flex-direction: column; gap: 1.25rem; }
  .branches-two > .branch { padding-top: 0; }
  .branches-two > .branch::before, .branches-two > .branch::after { display: none; }
}
.tree-single .leaves, .dept-panel .leaves { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.tree-single .leaf, .dept-panel .leaf { flex: 0 1 11rem; padding-top: 0; }
.tree-single .leaf::before, .dept-panel .leaf::before { display: none; }
@media (max-width: 480px) { .tree-single .leaf, .dept-panel .leaf { flex-basis: calc(50% - .5rem); } }

/* Hópmyndir (stjórn) efst í grein */
.group-photos { list-style: none; margin: 0 auto 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; max-width: 58rem; }
.group-photo { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.group-photo-btn { display: block; width: 100%; padding: 0; border: 0; border-bottom: 3px solid var(--gold); background: var(--cream-2); cursor: zoom-in; }
.group-photo-btn img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--cream-2); filter: sepia(.15); }
.group-photo-btn:hover img, .group-photo-btn:focus-visible img { filter: none; }
.group-photo figcaption { font-family: var(--serif); font-size: .8rem; line-height: 1.35; color: var(--ink, #222); padding: .6rem .8rem .75rem; text-align: left; }
@media (max-width: 480px) { .group-photos { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .group-photo figcaption { font-size: .74rem; padding: .45rem .55rem .55rem; } }

/* Ábendingaform: myndir */
.fb-form input[type="file"] { padding: .4rem; font-size: .9rem; cursor: pointer; }
.fb-form input[type="file"]::file-selector-button { font: inherit; font-size: .85rem; margin-right: .6rem; padding: .3rem .8rem; border: 0; border-radius: var(--radius); background: var(--navy); color: var(--cream); cursor: pointer; }
.fb-form .fb-hint { display: block; margin-top: .25rem; font-size: .8rem; }

.fb-files { margin-bottom: .9rem; }
.fb-form label.fb-check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 600; margin: .2rem 0 .8rem; }
.fb-form .fb-check input { display: inline-block; width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; flex: none; }
.fb-medlimur { margin: 0 0 .9rem; padding: .7rem .8rem .5rem; border-left: 3px solid var(--gold); background: var(--cream-2); }
.fb-medlimur label { margin-bottom: .3rem; }
.fb-medlimur .fb-hint { margin: 0 0 .2rem; }
.fb-form [hidden] { display: none !important; }
.fb-flabel { display: block; font-weight: 600; }
.fb-fbox { display: flex !important; align-items: center; gap: .6rem; margin-top: .25rem; padding: .4rem; border: 1px solid #c9bd9d; border-radius: 4px; background: #fffdf7; cursor: pointer; font-weight: 400; }
.fb-fbox { position: relative; }
.fb-fbox input[type="file"], .fb-fbox .fb-fin, .fb-fbox .fb-audio-fin {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0;
}
.fb-fbox input[type="file"]::file-selector-button { display: none; }
.fb-fbtn { flex: none; font-size: .85rem; padding: .3rem .8rem; border-radius: var(--radius); background: var(--navy); color: var(--cream); }
.fb-fname { flex: 1 1 auto; min-width: 0; font-size: .9rem; color: #3a3a3a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-fbox:focus-within { outline: 2px solid var(--ll-blue); outline-offset: 1px; }

/* d522/d523: hljóðupptaka í ábendingaformi */
.fb-audio { margin: 0 0 .9rem; padding: .7rem .8rem .65rem; border: 1px solid #c9bd9d; border-radius: 4px; background: #fffdf7; }
.fb-audio-note { margin: .25rem 0 .55rem; font-size: .85rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
.fb-audio-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .45rem; }
.fb-audio-rec, .fb-audio-stop, .fb-audio-del {
  font: inherit; font-family: var(--sans); font-size: .85rem; padding: .35rem .85rem;
  border: 0; border-radius: var(--radius); cursor: pointer; background: var(--navy); color: var(--cream);
}
.fb-audio-stop { background: #a12a1a; }
.fb-audio-del { background: transparent; color: var(--navy); border: 1px solid var(--cream-2); }
.fb-audio-rec:disabled { opacity: .55; cursor: not-allowed; }
.fb-audio-recording .fb-audio-time { color: #a12a1a; font-weight: 600; }
.fb-audio-time { font-size: .85rem; color: #3a3a3a; }
.fb-audio-time:empty { display: none; }
.fb-audio-prev { display: block; width: 100%; max-width: 100%; height: 36px; margin: .35rem 0 .45rem; }
.fb-audio-prev[hidden], .fb-audio-stop[hidden], .fb-audio-del[hidden] { display: none !important; }
.fb-audio-pick { margin-top: .35rem; min-width: 0; width: 100%; box-sizing: border-box; }
.fb-audio-pick .fb-fbtn { flex: 0 0 auto; }
.fb-audio-pick .fb-fname, .fb-audio-pick .fb-audio-fname {
  flex: 1 1 auto; min-width: 0; font-size: .9rem; color: #3a3a3a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-msg-req { font-weight: 400; }

.board-panels { max-width: 34rem; margin: 0 auto 1.25rem; }
.board-photo { height: auto; }
.board-photo[hidden] { display: none; }
.board-photo .group-photo-btn img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; }
.board-photo figcaption { font-size: .9rem; }


.board-panels.wide{max-width:none}

.tree-root.tree-logo{background:none;border:0;padding:0}
.tree-logo img{display:block;width:12rem;max-width:60vw;height:auto}

/* Skráningarform Sögufélags Loftleiða */
.sk-form { background: #fffdf7; border: 1px solid var(--cream-2); border-top: 4px solid var(--ll-blue); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.25rem 1.4rem; margin: 1.25rem 0 2rem; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.sk-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.sk-form input[type="text"], .sk-form input[type="email"], .sk-form input[type="tel"] { font: inherit; font-weight: 400; color: var(--ink); padding: .55rem .65rem; border: 1px solid #c9bfa6; border-radius: var(--radius); background: #fff; }
.sk-form input:focus { border-color: var(--ll-blue); }
.sk-req { color: #b3261e; }
.sk-form label.sk-check { flex-direction: row; align-items: flex-start; gap: .6rem; margin-top: 1.1rem; font-weight: 400; color: var(--ink); }
.sk-check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.sk-privacy { font-size: .88rem; color: var(--muted); margin: .8rem 0 .4rem; }
.sk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sk-status { margin: .5rem 0; min-height: 1.2em; }
.sk-status.sk-ok { color: #1e6b34; font-weight: 600; }
.sk-status.sk-err { color: #b3261e; font-weight: 600; }
.sk-submit[hidden], .sk-form [hidden] { display: none !important; }
@media (max-width: 640px) { .sk-grid { grid-template-columns: 1fr; } }
.sk-submit { border: 0; cursor: pointer; font-size: 1rem; margin-top: .4rem; }

.tl-extra-fig{margin:1em 0}
.tl-extra-fig img{max-width:100%;height:auto;display:block}
.tl-extra-fig figcaption{font-size:.9em;opacity:.8;margin-top:.4em}

/* Samræmd miðjusetning: fyrirsagnir og inngangstextar í öllum hlutum (ekki form, listar, myndatextar né prófílar) */
.view > .wrap > h3,
.view > .wrap > p:not([class]):not(:first-child),
.ms-album > h3 { text-align: center; }
/* Um Sögufélagið: fyrirsögn, fyrsta setning og merki miðjuð; textinn fyrir neðan merkið vinstrijafnaður */
#view-um > .wrap > .about-logo ~ p,
#view-um > .wrap > .about-logo ~ h3,
#view-um > .wrap > .about-logo ~ ul { text-align: left; }

/* Nafnaskrá: „Vantar einhvern í skrána?“ */
.nn-vantar { text-align: center; margin: .5rem auto 1.25rem; max-width: 40rem; padding: .75rem 1rem; background: #fffdf7; border: 1px solid var(--cream-2); border-radius: var(--radius); position: relative; }
.nn-vantar-dot { position: absolute; top: .6rem; right: .6rem; width: .7rem; height: .7rem; border-radius: 50%; background: #d62828; box-shadow: 0 0 0 0 rgba(214,40,40,.5); animation: nn-dot-pulse 2s ease-in-out infinite; }
@keyframes nn-dot-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(214,40,40,.45); } 50% { opacity: .35; box-shadow: 0 0 0 .35rem rgba(214,40,40,0); } }
@media (prefers-reduced-motion: reduce) { .nn-vantar-dot { animation: none; } }
.nn-vantar p { margin: 0; color: var(--ink); }
.nn-vantar .nn-vantar-btn { margin-top: .5rem; }
.nn-vantar .nn-vantar-src { margin-top: .5rem; font-size: .75rem; color: var(--muted); }
.nn-vantar .nn-vantar-src a { color: var(--muted); }

/* Forsíða: „Gerast meðlimur“ */
.intro-cta { margin: 1.4rem 0 0; display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.cta-medlimur { display: inline-block; background: var(--gold); color: var(--navy); font-family: var(--sans); font-weight: 700; letter-spacing: .03em; text-decoration: none; padding: .7rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-medlimur:hover, .cta-medlimur:focus-visible { background: var(--cream); color: var(--navy); }
.intro-cta-sub { font-size: .85rem; color: var(--cream-2); }
#skraning { scroll-margin-top: 90px; }

/* Air Bahama og Cargolux */
.sec-dotturfelag { text-align: center; }
.sec-dotturfelag .sec-merki:empty { display: none; }
.sec-dotturfelag .sec-lead { text-align: center; max-width: 44rem; margin: 1.25rem auto 1rem; line-height: 1.65; }
.sec-dotturfelag .sec-links { text-align: center; margin: .5rem 0; }
.sec-dotturfelag .sec-folk { text-align: center; margin: .75rem 0; }
.sec-dotturfelag .sec-folk span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .25rem; }
.sec-dotturfelag .sec-folk .nn-profile { margin: .2rem; }
.sec-dotturfelag .sec-src { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 1.5rem; }
.sec-dotturfelag .sec-src a { color: var(--muted); }

.tree-single .branch-title[id] { scroll-margin-top: 90px; }

/* Lítill „Gerast meðlimur“-hnappur efst í hverjum kafla (efst til hægri á tölvu, undir fyrirsögn í síma) */
.view > .wrap { position: relative; }
.medlimur-litill { position: absolute; top: .35rem; right: 1.25rem; margin: 0; display: flex; align-items: center; gap: .4rem; z-index: 2; }
.cta-litill { display: inline-block; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--ll-blue); text-decoration: none; padding: .28rem .8rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; line-height: 1.2; }
.cta-litill:hover, .cta-litill:focus-visible { background: var(--ll-blue); color: #fff; }
.cta-litill-sub { font-family: var(--sans); font-size: .7rem; color: var(--muted, #6b7280); }
@media (max-width: 760px) {
  .medlimur-litill { position: static; justify-content: center; margin: .6rem 0 .4rem; }
}

/* Flugvélakostur */
.fv-toc { text-align: left; font-family: var(--sans); font-size: .85rem; line-height: 1.8; margin: .5rem auto 1.5rem; max-width: 900px; }
.fv-toc a { color: var(--ll-blue); text-decoration: none; white-space: nowrap; }
.fv-toc a:hover, .fv-toc a:focus-visible { text-decoration: underline; }
.fv-group { margin: 2.25rem 0 0; }
.fv-group-title { font-size: 1.35rem; margin: 0 0 .35rem; border-bottom: 2px solid var(--gold); padding-bottom: .3rem; scroll-margin-top: 90px; }
.fv-group-title.highlight { color: var(--ll-blue); }
.fv-group-intro { margin: .4rem 0 .5rem; max-width: 760px; }
.fv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.fv-card { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: var(--radius, 6px); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.fv-card.highlight { outline: 3px solid var(--gold); }
.fv-body { padding: .75rem .9rem .9rem; }
.fv-reg { display: flex; justify-content: space-between; gap: .5rem; margin: 0; font-family: var(--sans); font-weight: 700; color: var(--ll-blue); letter-spacing: .03em; }
.fv-ar { font-weight: 400; color: var(--muted); font-size: .85rem; }
.fv-nafn { margin: .15rem 0 0; font-size: 1.1rem; }
.fv-tegund { margin: .1rem 0 .5rem; font-size: .85rem; color: var(--muted); }
.fv-saga { margin: 0; font-size: .92rem; line-height: 1.5; }
.fv-ostadfest { margin: .5rem 0 0; font-size: .82rem; color: #8a5a00; }
.fv-source { font-size: .74rem; }
.fv-vantar { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #ece9e1; color: var(--muted); font-family: var(--sans); font-size: .85rem; letter-spacing: .04em; }
.fv-myndir { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 2px; }
.fv-myndir li { margin: 0; }
.fv-myndir button { display: block; width: 100%; padding: 0; border: 0; background: #ddd; cursor: zoom-in; }
.fv-myndir img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fv-album-btn { display: block; width: 100%; margin: 0; padding: .45rem .8rem; border: 0; border-bottom: 1px solid rgba(0,0,0,.08); background: var(--cream); color: var(--navy); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; }
.fv-album-btn:hover, .fv-album-btn:focus-visible { background: var(--cream-2); text-decoration: underline; }
.fv-myndir--group { grid-template-columns: repeat(auto-fill, minmax(150px, 220px)); gap: 6px; margin: .5rem 0; }
.fv-myndir--group button { border-radius: 3px; overflow: hidden; }

/* d198: gulir „Gerast meðlimur“-hnappar með undirlínu */
.medlimur-litill { flex-direction: column; align-items: center; gap: .15rem; }
.cta-litill { background: var(--gold); color: var(--navy); border: 0; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cta-litill:hover, .cta-litill:focus-visible { background: var(--navy); color: #fff; }
.cta-litill-sub { font-size: .75rem; line-height: 1.1; }
/* d198: tveggja raða haus á breiðum skjá (~131px) faldi efsta hluta skráningarforms */
@media (min-width: 761px) {
  #skraning, .fv-card, .fv-group-title, .tree-single .branch-title[id], .lag-sida { scroll-margin-top: 145px; }
}

/* Valfrjáls merki (lógó) á prófíl, t.d. fyrirtæki sem viðkomandi stofnaði */
.pd-merki { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: .5rem 0 1rem; }
.pd-merki img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.pd-tengt { margin: .25rem 0 1rem; font-size: .95rem; }

/* d244: „Fara efst“-hnappur (nafnaskrá) */
.to-top{position:fixed;right:1rem;bottom:1rem;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:30;padding:.55rem .95rem;font:inherit;font-size:.9rem;font-weight:600;line-height:1.2;color:#fff;background:var(--navy);border:2px solid var(--gold);border-radius:999px;box-shadow:var(--shadow);cursor:pointer}
.to-top:hover,.to-top:focus-visible{background:var(--navy-2)}
.to-top[hidden]{display:none}
@media print{.to-top{display:none}}
@media (max-width: 720px){.to-top{right:.75rem;bottom:.75rem;bottom:calc(.75rem + env(safe-area-inset-bottom));padding:.6rem .9rem;font-size:.95rem}}

/* Loftleiðasögur */
.sogur-logo{margin:2rem auto 1.5rem;text-align:center}
.sogur-logo img{display:inline-block;width:16rem;max-width:70vw;height:auto;border-radius:4px}
.sogur{margin-top:1.5rem}
.saga-card{background:#fff;border-left:4px solid var(--gold);border-radius:var(--radius);box-shadow:0 2px 8px rgba(0,0,0,.08);padding:1.25rem 1.5rem;margin:0 0 1.5rem}
.saga-card h3{margin-top:0}
/* d742: millifyrirsagnir í Loftleiðasögum; letur eins og aðrar fyrirsagnir (Acumin Variable) */
.saga-card h4.saga-millifyrirsogn{
  font-family:"acumin-variable",var(--serif);
  font-weight:700;
  font-style:normal;
  font-variation-settings:"wght" 700,"wdth" 75,"slnt" -12;
  color:var(--navy);
  letter-spacing:0;
  line-height:1.25;
  margin:1.15rem 0 .4rem;
}
.saga-card h4.saga-millifyrirsogn:first-of-type{margin-top:.85rem}
/* d743: hefðbundið bókarsnið á meginmáli Loftleiðasagna eingöngu; fyrsta málsgrein undir titli og millifyrirsögn án inndráttar */
.saga-card > p:not(.saga-eftir):not(.saga-folk):not(.saga-myndtexti):not(.tl-source){
  font-family:var(--serif);
  font-weight:400;
  font-style:normal;
  font-variation-settings:normal;
  text-indent:4mm;
  margin:0;
  line-height:1.55;
}
.saga-card > h3 + p:not(.saga-eftir):not(.saga-folk):not(.saga-myndtexti):not(.tl-source),
.saga-card > .saga-eftir + p:not(.saga-folk):not(.saga-myndtexti):not(.tl-source),

.saga-card > h4.saga-millifyrirsogn + p:not(.saga-folk):not(.saga-myndtexti):not(.tl-source){
  text-indent:0;
}
/* d746: neðanmálsgreinar í Loftleiðasögum, í bókarsniði */
.saga-card a.saga-fn-merki{
  font-family:inherit;
  color:var(--navy);
  text-decoration:none;
  margin:0;
  padding:0 .05em;
  text-indent:0;
}
.saga-card a.saga-fn-merki:hover{text-decoration:underline}
.saga-card a.saga-fn-merki sup{
  font-size:.72em;
  font-weight:600;
  line-height:0;
  vertical-align:super;
}
.saga-card footer.saga-nedanmals{
  font-family:var(--serif);
  font-weight:400;
  font-style:normal;
  font-variation-settings:normal;
  font-size:.82em;
  line-height:1.45;
  color:var(--navy);
  text-indent:0;
  margin:.95rem 0 0;
  padding-top:.5rem;
  border-top:0.5pt solid color-mix(in srgb, var(--navy) 28%, transparent);
}
.saga-card footer.saga-nedanmals .saga-nedanmals-lina{
  margin:0;
  text-indent:0;
}


.saga-folk,.pd-sogur{font-size:.95rem}
.saga-folk span,.pd-sogur span{font-weight:600}
.sogur-tomt{text-align:center;color:var(--muted);font-style:italic}
.saga-myndband{margin:1rem 0 .4rem}
.saga-card{scroll-margin-top:90px}
@media (min-width: 761px){.saga-card{scroll-margin-top:145px}}
.saga-myndtexti{font-size:.9rem;color:var(--muted);margin:0 0 1rem}
.saga-uppskrift{margin:1rem 0;border-top:1px solid var(--cream-2);padding-top:.6rem;text-align:left}
.saga-uppskrift summary{cursor:pointer;font-family:var(--serif);color:var(--navy);font-weight:600}
.saga-uppskrift summary:focus-visible{outline:2px solid var(--navy-2);outline-offset:2px}
.saga-uppskrift[open] summary{margin-bottom:.6rem}
.saga-uppskrift p{max-width:42rem}
@media (min-width: 721px) { .main-nav a { padding: .5rem .65rem; } }
.tl-merki--oval { width: auto; max-width: min(100%, 300px); height: auto; }
.augl-abending { text-align: center; margin: .15rem auto 1.35rem; max-width: 36rem; }
.augl-abending p { margin: 0; color: var(--ink); }
.augl-abending .fb-btn { margin-top: .5rem; }
@media (max-width: 600px) {
  .augl-abending { margin-bottom: 1.15rem; padding: 0 .25rem; }
}

/* Air Bahama á Starfsfólkssíðu */
.tree-air-bahama{margin:3rem auto 0;padding-top:2rem;border-top:2px solid var(--gold);display:flex;flex-direction:column;align-items:center;text-align:center;max-width:64rem}
.tree-logo-ab img{width:22rem;max-width:80vw}
.tree-air-bahama .branch-title{margin-top:0}
.tree-air-bahama .ab-tabs{justify-content:center;margin:.5rem 0 1rem}
.ab-panels{width:100%}
.ab-deildir{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center}
.ab-deild{min-width:14rem}
.ab-deild-title{font-family:var(--serif);color:var(--navy);margin:.25rem 0 .5rem;font-size:1rem}
.ab-panel .leaves{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
.ab-panel .leaf::before{display:none}
.ab-panel .leaf{padding-top:0}

/* Lög og textar: undirsíða lags undir Tónlist */
.lag-sida { scroll-margin-top: 115px; margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; background: #fffdf7; border: 1px solid var(--cream-2); border-radius: var(--radius); text-align: left; }
.lag-sida h3 { margin-top: .25rem; }
.lag-tilbaka { font-family: var(--sans); font-size: .9rem; margin: 0 0 .5rem; }
.lag-upplysingar { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .75rem 0 1rem; }
.lag-upplysingar dt { font-weight: bold; }
.lag-upplysingar dd { margin: 0; }
.lag-spilari { display: block; width: 100%; max-width: 32rem; margin: .5rem 0 .35rem; }
.lag-upptaka { font-size: .85rem; color: var(--muted); margin: 0 0 1.25rem; }
.lag-texti p { margin: 0 0 1rem; line-height: 1.6; }
.lag-heimildir { padding-left: 1.25rem; }
@media (max-width: 600px) { .lag-sida { padding: 1rem; scroll-margin-top: 90px; } .lag-upplysingar { grid-template-columns: 1fr; } .lag-upplysingar dd { margin-bottom: .4rem; } }
@media (min-width: 761px) { .lag-sida { scroll-margin-top: 145px; } }

.lag-myndband { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; margin: .5rem 0 .35rem; background: #000; }
.lag-myndband iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Hljóðrás heimildarmyndarinnar */
.plata-kredit { text-align: left; margin: .25rem 0 1rem; }
.plata { display: flex; gap: 1.25rem; align-items: flex-start; text-align: left; margin: 0 0 1.75rem; padding: 1rem 1.25rem; background: #fffdf7; border: 1px solid var(--cream-2); border-radius: var(--radius); }
.plata-umslag { flex: 0 0 13rem; display: block; }
.plata-umslag img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow); }
.plata-efni { flex: 1 1 auto; min-width: 0; }
.plata-titill { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin: 0 0 .25rem; }
.plata-ar { font-weight: normal; color: var(--muted); }
.plata-lysing { margin: 0 0 .75rem; color: var(--muted); }
.plata-log { margin: 0; padding-left: 1.6rem; }
.plata-log li { margin: 0 0 .6rem; }
.plata-lag { display: flex; justify-content: space-between; gap: .75rem; max-width: 32rem; }
.plata-lengd { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.plata-log audio { display: block; width: 100%; max-width: 32rem; height: 36px; margin-top: .2rem; }
@media (max-width: 600px) { .plata { flex-direction: column; align-items: stretch; padding: 1rem; } .plata-umslag { flex-basis: auto; width: 100%; max-width: 20rem; } }
.plata-spotify { margin: -.35rem 0 .85rem; font-family: var(--sans); }
.hofundur { display: flex; align-items: center; gap: 1.25rem; margin: .5rem 0 1.25rem; text-align: left; }
.hofundur .plata-kredit { margin: 0; }
.hofundur-mynd { flex: 0 0 auto; width: 180px; margin: 0; }
.hofundur-mynd img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.hofundur-mynd figcaption { font-size: .85rem; color: var(--muted); margin-top: .35rem; text-align: left; }
@media (max-width: 600px) { .hofundur { flex-direction: column; align-items: flex-start; gap: .6rem; } .hofundur-mynd { width: 160px; } }
a.nn-tengill { display: inline-block; text-decoration: none; }
a.nn-tengill:hover, a.nn-tengill:focus { text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plata-spila { display: inline-block; margin: 0 0 .9rem; font: inherit; font-family: var(--sans); font-size: .9rem; background: var(--navy); color: #fff; border: 0; border-radius: 4px; padding: .4rem .85rem; cursor: pointer; }
.plata-spila:hover { filter: brightness(1.15); }
.plata-spila:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.plata-log { list-style: none; padding-left: 0; counter-reset: lag; }
.plata-log li { counter-increment: lag; padding: .25rem .5rem .35rem .6rem; border-radius: 4px; }
.plata-log .plata-lag-heiti::before { content: counter(lag) ". "; display: inline-block; min-width: 1.7rem; font-variant-numeric: tabular-nums; }
.plata-log li audio { margin-left: 1.7rem; width: calc(100% - 1.7rem); }
.plata-log li.plata-spilar { background: #fff6d6; box-shadow: inset 4px 0 0 var(--gold); }
.plata-log li.plata-spilar .plata-lag-heiti { font-weight: 700; color: var(--navy); }

/* Tenglar á starfsfólk undir myndatexta í ljósakassa */
.lightbox .lb-folk a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* d323: Um Sögufélagið – efnisyfirlit undirkafla; Auglýsingar */
.um-toc { font-size: .95rem; color: var(--muted); margin: 0 0 1.25rem; }
#view-um > .wrap > h4 { margin: 2rem 0 .5rem; }
/* d327: síuhnappar (pillur) — Auglýsingar og Flugvélakostur; allt vinstrijafnað */
.pill-nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .45rem .5rem; margin: .75rem 0 1.5rem; padding: 0; text-align: left; }
.pill { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--sans); font-size: .9rem; line-height: 1.2; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--ll-blue); background: #fff; color: var(--ll-blue); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover, .pill:focus-visible { background: var(--cream-2, #f3ead6); text-decoration: none; }
.pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill[aria-pressed="true"] { background: var(--ll-blue); color: #fff; }
.pill-fjoldi { opacity: .75; font-size: .85em; }
.augl-panel { text-align: left; }
.augl-inngangur, .augl-fjoldi { text-align: left; margin: 0 0 .6rem; }
.augl-fjoldi { font-family: var(--sans); font-size: .85rem; color: #555; }
.augl-grid { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.augl-atridi { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: var(--radius, 6px); overflow: hidden; display: flex; flex-direction: column; text-align: left; scroll-margin-top: 90px; }
.augl-mynd { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #f4f1ea; cursor: zoom-in; aspect-ratio: 4 / 3; text-align: left; }
.augl-mynd img { width: 100%; height: 100%; object-fit: contain; display: block; }
.augl-sidur { position: absolute; right: .4rem; bottom: .4rem; background: rgba(0,0,0,.65); color: #fff; font-family: var(--sans); font-size: .75rem; padding: .15rem .45rem; border-radius: 999px; }
.augl-body { padding: .6rem .8rem .8rem; text-align: left; }
.augl-dags { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--ll-blue); margin: 0 0 .2rem; }
.augl-titill { font-size: 1rem; margin: 0 0 .3rem; }
.augl-texti { font-size: .9rem; margin: 0 0 .3rem; }

/* d750 (óupphlaðið): Leirtau — tómt ástand; Safnarar — listi */
.augl-tomt {
  margin: 1.1rem 0 2rem;
  padding: 1.6rem 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--radius, 6px);
  text-align: left;
  max-width: 36rem;
}
.augl-tomt-titill {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}
.augl-tomt-lysing { margin: 0 0 .7rem; font-size: .95rem; color: var(--ink); }
.augl-tomt-texti { margin: 0; font-family: var(--sans); font-size: .9rem; color: #555; line-height: 1.5; }
.augl-safnarar {
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.augl-safnari {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--radius, 6px);
  padding: .85rem 1rem;
}
.augl-safnari img, .augl-safnari-stafur {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex: none;
  border: 3px solid var(--gold);
}
.augl-safnari-stafur {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2, #f3ead6);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}
.augl-safnari-texti { min-width: 0; }
.augl-safnari-nafn { margin: 0 0 .2rem; font-size: 1.05rem; }
.augl-safnari-nafn a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.augl-safnari-hlutverk { margin: 0; font-family: var(--sans); font-size: .85rem; color: #555; }

@media (max-width: 600px) { .pill { font-size: .85rem; padding: .4rem .75rem; } .augl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; } }
#view-um > .wrap > h3 { scroll-margin-top: 90px; }
#view-auglysingar .section-lead, #view-flugvelakostur .section-lead { text-align: left; margin-left: 0; }
.tl-myndir { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); margin: .5rem 0 .75rem; }
/* d329: ár flugáætlana 1948–1973 */
.ar-pills { margin: .5rem 0 1.25rem; gap: .4rem .45rem; }
.ar-pill { font-variant-numeric: tabular-nums; padding: .35rem .7rem; }
.ar-pill.ar-full { font-weight: 600; }
.ar-pill.ar-tomt { border-style: dashed; border-color: #9aa9b8; color: #6b7785; background: transparent; font-weight: 400; }
.ar-pill.ar-tomt[aria-pressed="true"] { background: #6b7785; border-color: #6b7785; border-style: solid; color: #fff; }
.ar-fjoldi { display: inline-block; min-width: 1.15em; padding: 0 .3em; border-radius: 999px; background: var(--gold, #e3c54a); color: #1d2b3a; font-size: .72em; line-height: 1.35; text-align: center; }
.ar-panel { text-align: left; }
.ar-heiti { text-align: left; font-family: var(--sans); margin: 0 0 .75rem; }
.ar-tomt-texti { text-align: left; margin: 0 0 1rem; padding: .75rem 1rem; border-left: 3px solid #9aa9b8; background: rgba(255,255,255,.6); }
.ar-pills { scroll-margin-top: 145px; }
@media (max-width: 600px) { .ar-pills { scroll-margin-top: 90px; } .ar-pill { padding: .3rem .55rem; font-size: .82rem; } }
/* d342: Flugmódel */
.fv-tomt { font-style: italic; color: var(--muted); text-align: left; }

/* d345: Flugmódel — undirflokkar */
.fv-fm-pills { margin: .5rem 0 1rem; }
.fv-fm-title { font-size: 1.1rem; margin: 1.1rem 0 .3rem; text-align: left; scroll-margin-top: 145px; }

/* d359: þröngir símar (≤400px) — haus í einni línu svo fasti hausinn taki minna pláss */
@media (max-width: 400px) {
  .header-inner { gap: .5rem; }
  .brand { gap: .5rem; min-width: 0; }
  .brand-mark { width: 48px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .nav-toggle { padding: .35rem .65rem; flex: none; }
}
@media (max-width: 340px) {
  .brand-mark { width: 40px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
}

/* d362: myndasafn á föstum köflum (Cargolux) */
.sec-album { margin: 1.25rem 0 1rem; text-align: left; }
.sec-album-titill { font-size: 1.15rem; margin: 0 0 .25rem; color: var(--navy); }
/* d392 */
.intro[hidden] { display: none; }
/* d394: forsíða (splash) – merki á Loftleiðabláum grunni yfir allan skjáinn; texti vinstrijafnaður */
.splash { display: none; }
html.splash-on { overflow: hidden; }
html.splash-on body { overflow: hidden; }
html.splash-on .splash { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; background: var(--ll-blue); color: var(--cream); padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3.5rem); height: 100vh; height: 100dvh; overflow: hidden; text-align: left; }
html.splash-on .skip-link, html.splash-on .site-header, html.splash-on main, html.splash-on .site-footer,
html.splash-on .ab-tonlist, html.splash-on .ab-tonlist-spila { visibility: hidden; } /* d689: spilarinn er festur á body (z-index 1100) og var ekki í forsíðureglu d394 */
.splash-texti { flex: 0 0 auto; text-align: left; }
.splash-kicker { margin: 0; font-family: var(--sans); text-transform: uppercase; letter-spacing: .3em; font-size: clamp(.85rem, 1.6vw, 1.05rem); color: var(--gold); font-weight: 600; }
.splash-titill { margin: .3rem 0 0; font-family: var(--serif); color: var(--cream); font-size: clamp(1.5rem, 4vw, 2.8rem); line-height: 1.15; max-width: 22em; text-align: left; }
.splash-merki { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(.75rem, 2vh, 1.5rem) 0; }
.splash-merki img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.splash-takki-wrap { flex: 0 0 auto; margin: 0; text-align: left; }
.splash-takki { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .03em; color: var(--navy); background: var(--gold); text-decoration: none; padding: .75rem 1.6rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.splash-takki:hover, .splash-takki:focus-visible { background: var(--cream); color: var(--navy); outline: 3px solid var(--cream); outline-offset: 3px; }
/* d395: undantekning samþykkt af Sigurgeiri – á forsíðu (splash) einni er texti og hnappur miðjujafnaður */
.splash-texti, .splash-titill, .splash-takki-wrap { text-align: center; }
.splash-titill { margin-left: auto; margin-right: auto; }
/* d396: velkomin-borðinn á Tímalínu er vinstrijafnaður (aðeins forsíðan/splash er miðjujöfnuð) */
.intro, .intro h1, .intro .kicker { text-align: left; }
/* d397: „Gangið um borð“ stærri og með sama letri og fyrirsögnin „Góðir farþegar“ */
.splash-takki { font-family: var(--serif); font-weight: 700; font-style: normal; letter-spacing: normal; text-transform: none; font-size: clamp(1.35rem, 3vw, 1.9rem); padding: .85rem 2.4rem; max-width: 100%; box-sizing: border-box; }
/* d398: Tímalína DC-8 véla (hnappur og tafla í DC-8-kafla Flugvélakosts); allt vinstrijafnað */
.dc8-tl { margin: .6rem 0 1rem; text-align: left; }
.dc8-tl-btn { display: inline-block; padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-align: left; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.dc8-tl-btn:hover, .dc8-tl-btn:focus-visible { background: var(--navy); color: var(--cream); }
.dc8-tl-panel { margin-top: .8rem; padding: 1rem 1.1rem 1.1rem; background: #fff; border: 1px solid rgba(0,0,0,.1); border-top: 4px solid var(--ll-blue); border-radius: 6px; text-align: left; }
.dc8-tl-panel[hidden] { display: none; }
.dc8-tl-titill { margin: 0 0 .4rem; color: var(--navy); }
.dc8-tl-inng, .dc8-tl-ath-alm { margin: 0 0 .5rem; max-width: 760px; font-size: .92rem; }
.dc8-tl-samantekt { margin: 0 0 .6rem; color: var(--navy); }
.dc8-tl-ath-alm { margin-top: .9rem; font-style: italic; }
.dc8-tl-hluti { margin: 1rem 0 .4rem; color: var(--navy-2); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.dc8-tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dc8-tl-tafla { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
.dc8-tl-tafla th, .dc8-tl-tafla td { padding: .4rem .5rem; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; text-align: left; }
.dc8-tl-tafla th { background: var(--navy); color: var(--cream); font-weight: 600; white-space: nowrap; }
.dc8-tl-tafla tbody tr:nth-child(even) { background: var(--cream); }
.dc8-tl-tafla td:first-child { font-weight: 700; white-space: nowrap; }
.dc8-tl-tafla td[data-label="Tímabil"] { white-space: nowrap; }
.dc8-tl-tb { display: block; }
.dc8-tl-ath { display: block; }
.dc8-tl-os { display: block; margin: .2rem 0 0; }
.dc8-tl-flagg td:first-child { box-shadow: inset 4px 0 0 #c98a00; }
@media (max-width: 720px) {
  .dc8-tl-panel { padding: .8rem .7rem; }
  .dc8-tl-tafla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dc8-tl-tafla, .dc8-tl-tafla tbody, .dc8-tl-tafla tr, .dc8-tl-tafla td { display: block; width: 100%; }
  .dc8-tl-tafla tr { margin: 0 0 .6rem; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; padding: .3rem .5rem; background: #fff; }
  .dc8-tl-tafla tbody tr:nth-child(even) { background: #fff; }
  .dc8-tl-tafla td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; border: 0; padding: .2rem 0; white-space: normal !important; }
  .dc8-tl-tafla td::before { content: attr(data-label); font-weight: 600; color: var(--navy); }
  .dc8-tl-tafla td.dc8-tl-tomt { display: none; }
  .dc8-tl-flagg { border-left: 4px solid #c98a00 !important; }
  .dc8-tl-flagg td:first-child { box-shadow: none; }
}
.dc8-tl-tafla td[data-label="Tegund"] { white-space: nowrap; }
/* d404: hak „Er ekki með kennitölu“ og óvirkur kennitölureitur */
.sk-form label.sk-engin-kt { margin-top: .9rem; }
.sk-form input:disabled { background: #eee9dc; color: var(--muted); cursor: not-allowed; }
/* d406: DC-8 flokkað eftir litum */
.fv-litahopur { margin: 1.6rem 0 .3rem; color: var(--navy); font-size: 1.1rem; text-align: left; border-bottom: 2px solid var(--cream-2); padding-bottom: .25rem; }
.fv-litahopur-inng { margin: 0 0 .8rem; max-width: 760px; font-size: .93rem; text-align: left; }
.dc8-tl-hluti-inng { margin: 0 0 .5rem; max-width: 760px; font-size: .9rem; text-align: left; }
/* d408: mynd við litahóp */
.fv-myndir--litahopur { grid-template-columns: repeat(auto-fill, minmax(260px, 420px)); margin: 0 0 .9rem; }
/* d426: velkomusíða („Velkomin um borð“) – birtist eftir forsíðunni (#velkomin). Mynd yfir allan skjáinn með hægum aðdrætti; fréttir á hálfgegnsæju spjaldi. Fyrirsögn og hnappur miðjujöfnuð (splash-undantekning), fréttatexti vinstrijafnaður. */
.velkomin { display: none; }
html.velkomin-on, html.velkomin-on body { overflow: hidden; }
html.velkomin-on .velkomin { display: block; position: fixed; inset: 0; z-index: 100; background: #10283d; color: var(--cream); height: 100vh; height: 100dvh; overflow: hidden; }
html.velkomin-on .skip-link, html.velkomin-on .site-header, html.velkomin-on main, html.velkomin-on .site-footer { visibility: hidden; }
.velkomin-mynd { position: absolute; inset: 0; overflow: hidden; }
.velkomin-mynd img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 40%; transform-origin: 63% 36%; transform: scale(1); animation: velkominZoom 50s cubic-bezier(.22, .61, .36, 1) forwards; will-change: transform; }
@keyframes velkominZoom { from { transform: scale(1); } to { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .velkomin-mynd img { animation: none; transform: none; } }
.velkomin-skuggi { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 24, 40, .62) 0%, rgba(8, 24, 40, .12) 26%, rgba(8, 24, 40, .08) 62%, rgba(8, 24, 40, .55) 100%); }
.velkomin-innra { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 1fr minmax(18rem, 27rem); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "titill titill" ". frettir" "takki takki"; gap: clamp(.75rem, 2vh, 1.5rem) clamp(1rem, 3vw, 2.5rem); padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3.5rem) 2.4rem; }
.velkomin-titill { grid-area: titill; margin: 0; font-family: var(--serif); color: var(--cream); font-size: clamp(1.7rem, 4.4vw, 3.1rem); line-height: 1.15; text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.velkomin-frettir { grid-area: frettir; align-self: start; max-height: 100%; min-height: 0; display: flex; flex-direction: column; text-align: left; background: rgba(12, 34, 56, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(246, 240, 225, .18); border-radius: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); padding: 1rem 0 .4rem 1.15rem; }
.velkomin-frettir[hidden] { display: none; }
.frettir-titill { margin: 0 0 .5rem; font-family: var(--serif); color: var(--gold); font-size: 1.35rem; text-align: left; }
.frettir-listi { list-style: none; margin: 0; padding: 0 1rem .6rem 0; overflow-y: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(246, 240, 225, .4) transparent; }
.frettir-listi:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.frett { padding: .65rem 0; border-top: 1px solid rgba(246, 240, 225, .16); text-align: left; }
.frett:first-child { border-top: 0; padding-top: .1rem; }
.frett-dags { display: block; font-size: .78rem; letter-spacing: .04em; color: rgba(246, 240, 225, .72); }
.frett-titill { margin: .1rem 0 .2rem; font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--cream); text-align: left; }
.frett-titill a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(224, 212, 59, .7); text-underline-offset: 3px; }
.frett-titill a:hover, .frett-titill a:focus-visible { color: var(--gold); }
.frett-texti { margin: 0; font-size: .9rem; line-height: 1.45; color: rgba(246, 240, 225, .9); text-align: left; }
.velkomin-takki-wrap { grid-area: takki; margin: 0; text-align: center; }
.velkomin-ljosmyndari { position: absolute; z-index: 1; left: clamp(.75rem, 2vw, 1.5rem); bottom: .5rem; margin: 0; font-size: .72rem; color: rgba(246, 240, 225, .82); text-shadow: 0 1px 4px rgba(0, 0, 0, .7); text-align: left; }
@media (max-width: 720px) {
  .velkomin-innra { grid-template-columns: 1fr; grid-template-areas: "titill" "frettir" "takki"; padding-bottom: 2rem; }
  .velkomin-frettir { align-self: end; max-height: min(100%, 56vh); max-height: min(100%, 56dvh); background: rgba(12, 34, 56, .8); }
  .velkomin-takki { font-size: clamp(1.15rem, 5vw, 1.5rem); padding: .75rem 1.8rem; }
}
/* d426b: ein frétt í einu, með mynd ef hún er til */
.frett-mynd { margin: 0 0 .6rem; }
.frett-mynd img { display: block; width: 100%; height: clamp(8rem, 27vh, 15rem); max-width: 100%; object-fit: contain; background: rgba(0, 0, 0, .28); border-radius: 8px; }
.frett-mynd figcaption { margin-top: .3rem; font-size: .72rem; line-height: 1.35; color: rgba(246, 240, 225, .75); text-align: left; }
@media (max-width: 720px) { .frett-mynd img { height: clamp(7rem, 22vh, 11rem); } }
/* d429: dauf bakgrunnsmynd á aðalsíðum vefsins (ekki forsíðum): farþegaafgreiðsla Loftleiða á Reykjavíkurflugvelli, ljósm. Lennart Carlén. Fast lag aftan við efnið (ekki background-attachment: fixed, sem virkar illa í símum); rjómaliturinn skín í gegn. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("myndir/bakgrunnur-farthegaafgreidsla.jpg") center 40% / cover no-repeat; opacity: .16; }
@media (max-width: 720px) { body::before { background-image: url("myndir/bakgrunnur-farthegaafgreidsla-900.jpg"); opacity: .13; } }
html.splash-on body::before, html.velkomin-on body::before { display: none; }
@media print { body::before { display: none; } }
.site-footer .site-footer-bakgrunnur { margin-top: .35rem; font-size: .75rem; opacity: .85; }

/* d446: Afþreying um borð – myndasýning */
.ab-show { background: #10233a; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 1rem 0 .5rem; border-bottom: 4px solid var(--gold); }
.ab-stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(58vh, 560px); background: #0b1a2c; }
.ab-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .6s ease; }
.ab-stage img.ab-in { opacity: 1; }
.ab-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: rgba(20,30,55,.75); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 0 .2rem; -webkit-appearance: none; appearance: none; }
.ab-nav:hover { background: var(--navy-2); }
.ab-prev { left: .6rem; } .ab-next { right: .6rem; }
.ab-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem 1rem 0; }
.ab-btn { font: inherit; font-size: .9rem; background: var(--gold); color: var(--navy); border: 0; border-radius: var(--radius); padding: .4rem .85rem; cursor: pointer; font-weight: 600; }
.ab-btn:hover { background: #ece35a; }
.ab-count { color: var(--cream-2); font-size: .9rem; margin-left: auto; }
.ab-cap { margin: 0; padding: .5rem 1rem 1rem; color: var(--cream); font-family: var(--serif); text-align: left; min-height: 3.2em; }
.ab-hint { color: var(--muted); font-size: .85rem; text-align: left; }
.ab-show:fullscreen, .ab-show.ab-fake-fs { display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; border-radius: 0; }
.ab-show:-webkit-full-screen { display: flex; flex-direction: column; width: 100%; height: 100%; }
.ab-show:fullscreen .ab-stage, .ab-show.ab-fake-fs .ab-stage { flex: 1; height: auto; min-height: 0; }
.ab-show.ab-fake-fs { position: fixed; inset: 0; z-index: 1000; }
@media (max-width: 720px) { .ab-stage { height: 52vh; } .ab-nav { width: 2.3rem; height: 2.3rem; font-size: 1.6rem; } .ab-cap { font-size: .95rem; } }
.ab-page .section-lead { text-align: left; margin-left: 0; }

/* d447: annar hnappur á velkomusíðunni – Afþreying um borð */
.velkomin-takki-wrap { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.velkomin-takki-2 { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--gold); }
.velkomin-takki-2:hover { background: rgba(224,212,59,.18); color: #fff; }

/* d449: myndasýningin fyllir skjáinn eins og hægt er – svartur bakgrunnur, myndin óskorin (contain) */
.ab-page .ab-show { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; background: #000; }
.ab-page .ab-stage { height: calc(100vh - 8.5rem); height: calc(100svh - 8.5rem); min-height: 260px; background: #000; }
.ab-page .ab-stage img { width: 100%; height: 100%; object-fit: contain; }
.ab-page .ab-bar, .ab-page .ab-cap { max-width: 1200px; margin-left: auto; margin-right: auto; }
.ab-page .ab-cap { min-height: 0; }
@media (max-width: 720px) { .ab-page .ab-stage { height: calc(100svh - 11rem); } }
.ab-page .ab-show { scroll-margin-top: var(--ab-hdr, 0px); }
.ab-page .ab-stage { height: calc(100vh - var(--ab-hdr, 0px) - 6.5rem); height: calc(100svh - var(--ab-hdr, 0px) - 6.5rem); }
@media (max-width: 720px) { .ab-page .ab-stage { height: calc(100svh - var(--ab-hdr, 0px) - 9rem); } }
.ab-show:fullscreen .ab-stage, .ab-show.ab-fake-fs .ab-stage { height: auto; }
.ab-show:fullscreen .ab-bar, .ab-show:fullscreen .ab-cap, .ab-show.ab-fake-fs .ab-bar, .ab-show.ab-fake-fs .ab-cap { align-self: stretch; width: 100%; max-width: none; box-sizing: border-box; text-align: left; }

/* d451: afþreying án haus og fóts – sýningin fyllir gluggann, stjórntæki ofan á myndinni og hverfa þegar ekkert gerist */
.ab-page { background: #000; margin: 0; overflow: hidden; }
.ab-page .ab-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ab-page main, .ab-page .view, .ab-page .wrap { margin: 0; padding: 0; max-width: none; }
.ab-page .ab-show { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #000; }
.ab-page .ab-stage, .ab-page .ab-show:fullscreen .ab-stage { position: absolute; inset: 0; height: 100%; min-height: 0; }
.ab-page .ab-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 0 .2rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.ab-page .ab-bar, .ab-page .ab-cap { max-width: none; margin: 0; text-align: left; }
.ab-page .ab-cap { padding: .4rem 1rem .8rem; }
.ab-heim { position: absolute; top: .8rem; left: .8rem; z-index: 2; font-size: .85rem; color: #fff; background: rgba(20,30,55,.6); border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: .35rem .75rem; text-decoration: none; }
.ab-heim:hover, .ab-heim:focus { background: var(--navy-2); color: #fff; }
.ab-page .ab-nav { z-index: 2; }
.ab-page .ab-heim, .ab-page .ab-nav, .ab-page .ab-ui { transition: opacity .5s ease; }
.ab-page.ab-idle .ab-heim, .ab-page.ab-idle .ab-nav, .ab-page.ab-idle .ab-ui { opacity: 0; pointer-events: none; }
.ab-page.ab-idle { cursor: none; }

/* d455: Fríhöfnin – hægur aðdráttur (Ken Burns) á hverja mynd */
@keyframes ab-kb-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.ab-kb .ab-stage { overflow: hidden; }
.ab-kb .ab-stage img.ab-in { animation: ab-kb-zoom 8s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .ab-kb .ab-stage img.ab-in { animation: none; } }

/* d456: crossfade milli mynda (~0,9 s) – myndirnar liggja hvor ofan á annarri; aðdráttur heldur áfram í gegnum skiptin */
.ab-page .ab-stage img { position: absolute; inset: 0; transition: opacity .7s ease-in-out; }
/* d476: dofnar í svart og úr svörtu (engin blöndun) */
.ab-page .ab-stage img.ab-top { z-index: 1; }
.ab-page .ab-nav { z-index: 3; }
.ab-kb .ab-stage img.ab-in { animation: none; }
.ab-kb .ab-stage img.ab-zoom { animation: ab-kb-zoom 9s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .ab-page .ab-stage img { transition: opacity .15s linear; } .ab-kb .ab-stage img.ab-zoom { animation: none; } }

/* d478: Hótel Loftleiðir og Bílaleiga – vinstrijafnaður texti */
.sec-stod .sec-lead { max-width: 44rem; margin: 1rem 0; line-height: 1.65; }
.sec-stod .sec-folk { margin: .75rem 0; }
.sec-stod .sec-folk span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .25rem; }
.sec-stod .sec-folk .nn-profile { margin: .2rem .4rem .2rem 0; }

/* d494: stjórntæki ofan á myndum – .ab-top (z-index 1) á myndinni lá yfir .ab-ui og gleypti smelli á „Gera hlé“ og „Fylla skjá“ */
.ab-page .ab-stage img { pointer-events: none; }
.ab-page .ab-ui { z-index: 4; }
.ab-page .ab-heim { z-index: 4; }

/* d495: „Næsta frétt“ í fréttaglugganum */
.frett-naesta-wrap { margin: .2rem 0 .5rem; padding-right: 1rem; text-align: left; }
.frett-naesta-wrap[hidden] { display: none; }
.frett-naesta { font: inherit; font-size: .85rem; font-weight: 600; background: var(--gold); color: var(--navy); border: 0; border-radius: var(--radius); padding: .35rem .8rem; cursor: pointer; }
.frett-naesta:hover { background: #ece35a; }
.frett-naesta:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* d496: Like-þumall á prófílum */
.pd-like { display: inline-flex; align-items: center; gap: .35rem; margin: .6rem .5rem 0 0; padding: .25rem .7rem; font: inherit; font-family: var(--sans); font-size: .8rem; line-height: 1.4; color: var(--navy); background: #fffdf7; border: 1px solid var(--cream-2); border-radius: 1.2rem; cursor: pointer; vertical-align: bottom; }
.pd-like svg { width: 18px; height: 18px; }
.pd-like:hover { background: rgba(0, 0, 0, .05); }
.pd-like:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pd-like.is-on { color: #d62828; border-color: #d62828; }
.pd-like svg { transition: transform .2s ease; }
.pd-like.is-on svg { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .pd-like svg { transition: none; } }

/* d513: bréf Sigurðar Helgasonar 1956 — læsilegt bréf, engin Courier */
.tl-extra .bref { background: #fff; border: 1px solid var(--cream-2); border-radius: var(--radius); padding: 1.5rem clamp(1rem, 4vw, 2.5rem); margin: .5rem 0 1rem; max-width: 42rem; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.6; color: #2b2b2b; }
.tl-extra .bref p { font-size: 1rem; margin: 0 0 .9rem; }
.bref-haus { text-align: center; border-bottom: 2px solid var(--navy); padding-bottom: .6rem; margin-bottom: 1.2rem; }
.bref-firma { font-family: var(--sans); font-weight: 700; color: var(--navy); letter-spacing: .08em; text-transform: uppercase; font-size: 1.05rem; line-height: 1.25; }
.bref-heimili { font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-top: .3rem; }
.bref-meta { margin-bottom: 1.2rem; }
.bref-lina { text-align: right; }
.bref-meta .bref-lina:first-child { text-align: left; font-weight: 700; letter-spacing: .1em; font-size: .85rem; }
.bref-teg { margin-top: .8rem; font-style: italic; }
.bref-efni { font-weight: 700; letter-spacing: .05em; }
.tl-extra .bref h4.bref-h { font-family: Georgia, serif; font-size: 1rem; font-weight: 700; text-decoration: underline; margin: 1.3rem 0 .5rem; color: #2b2b2b; }
.bref-listi { margin: 0 0 .9rem; }
.bref-lidur { display: flex; gap: .6rem; margin: 0 0 .6rem; }
.bref-undirlidur { margin-left: 2rem; }
.bref-nr { flex: 0 0 1.4rem; text-align: right; }
.bref-tafla { border-collapse: collapse; margin: .4rem 0 1rem 2rem; font-size: .95rem; }
.bref-tafla th, .bref-tafla td { padding: .2rem 1rem; text-align: right; border-bottom: 1px solid var(--cream-2); }
.bref-tafla th:first-child, .bref-tafla td:first-child { text-align: left; }
.tl-extra .bref p.bref-undirskrift { margin-top: 1.5rem; font-style: italic; }
/* d521: undirheiti á aukaköflum (t.d. höfundur æviágrips) */
.tl-extra-sub{margin:0.5rem 0 0;font-style:italic;color:#555;font-size:0.95rem;}

/* d530: Deila — hlutdeildarvalmynd */
.deila-wrap { position: relative; display: inline-block; vertical-align: bottom; margin: .6rem .35rem 0 0; }
.deila-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; font: inherit; font-family: var(--sans); font-size: .8rem; line-height: 1.4;
  color: var(--navy); background: #fffdf7; border: 1px solid var(--cream-2); border-radius: 1.2rem; cursor: pointer;
}
.deila-btn::before { content: "↗ "; font-size: .85em; }
.deila-btn:hover, .deila-btn:focus-visible { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.deila-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.deila-btn[aria-expanded="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.deila-menu {
  position: absolute; z-index: 5; top: calc(100% + .25rem); left: 0; min-width: 11.5rem;
  padding: .3rem; background: #fffdf7; border: 1px solid var(--cream-2); border-radius: .6rem;
  box-shadow: 0 8px 24px rgba(10,18,38,.18);
}
.deila-menu[hidden] { display: none !important; }
.deila-item {
  display: block; width: 100%; box-sizing: border-box; text-align: left; text-decoration: none;
  padding: .45rem .65rem; margin: 0; border: 0; border-radius: .4rem; background: transparent;
  color: var(--navy); font: inherit; font-family: var(--sans); font-size: .85rem; cursor: pointer;
}
.deila-item:hover, .deila-item:focus-visible { background: var(--navy); color: var(--cream); outline: none; }
a.deila-item { color: var(--navy); }
.deila-status {
  margin: .35rem 0 0; font-size: .78rem; color: var(--navy); font-family: var(--sans);
}
.deila-status.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.deila-fallback { margin: .4rem 0 0; font-size: .78rem; font-family: var(--sans); }
.deila-fallback-input {
  display: block; width: min(100%, 22rem); margin-top: .2rem; padding: .35rem .5rem;
  font: inherit; font-size: .78rem; border: 1px solid var(--cream-2); border-radius: .4rem; background: #fff;
}
.fb-row .deila-wrap { margin-top: 0; margin-left: .35rem; }
.fb-row .fb-btn { margin-top: 0; }
.tl-deila-row { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .25rem; }
/* d608: Afrita tengil + Deila í ljósakassa */
.lb-share-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem .6rem;
  margin: .55rem 1.25rem .85rem;
}
.lb-share-row .deila-wrap { margin: 0; }
.deila-lightbox { display: inline-block; margin: 0; }
.deila-lightbox .deila-btn { margin: 0; }
.deila-btn-copy::before { content: none; }
.lightbox .deila-menu { left: 0; right: auto; }
@media (max-width: 600px) {
  .deila-menu { right: 0; left: auto; }
  .deila-lightbox .deila-menu { left: 0; right: auto; }
}

/* d535: Kvikmyndir – flokkar */
.kv-flokkar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 1.5rem; }
.kv-flokkur { min-width: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.25; padding: .5rem 1rem; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy); cursor: pointer; overflow-wrap: normal; word-break: keep-all; hyphens: manual; white-space: nowrap; }
.kv-flokkur:hover { background: var(--cream-2); }
.kv-flokkur[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.kv-flokkur[aria-selected="true"]:hover { background: var(--navy-2); border-color: var(--navy-2); }
.kv-flokkur:focus-visible, .kv-mynd-btn:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.kv-myndir { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.kv-mynd-btn { border: 0; font-size: 1rem; cursor: pointer; }
.kv-mynd-btn[aria-expanded="true"] { box-shadow: inset 0 -3px 0 var(--gold-text); }
.kv-tomt { font-family: var(--sans); color: var(--muted); padding: 1rem 0; }
@media (max-width: 760px) { .kv-flokkar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kv-flokkur { font-size: clamp(.85rem, 4vw, 1rem); padding: .5rem .4rem; } }

/* d539: Staðarákvörðun óþekkt innan Kvikmynda */
.kvm-notice { margin: 1rem 0 1.5rem; padding: 1rem 1.25rem; background: #fffdf7; border: 1px solid var(--cream-2); border-radius: var(--radius, 8px); max-width: 46rem; }
.kvm-texti { max-width: 46rem; }
.kvm-heimild { font-style: italic; }
/* d616: attributed quote on a heimildarmynd page */
.kvm-tilvitnun { margin: 1.25rem 0 1.5rem; padding: 0 0 0 1.15rem; border-left: 3px solid var(--navy); max-width: 46rem; }
.kvm-tilvitnun p { margin: 0; }
.kvm-tilvitnun footer { display: block; margin-top: .7rem; font-style: italic; }
/* d617: Flugþjóðin clip buttons and panels */
.kvm-skeid { margin: 1.5rem 0 0; }
.kvm-skeid-hnappar { margin: 0 0 1rem; }
.kvm-skeid-panel { margin: 0 0 1.25rem; }
.kvm-skeid-panel h4 { margin: 0 0 .35rem; font-size: 1.05rem; }
.kvm-skeid-panel .tl-source { margin: 0 0 .6rem; }
.kv-mynd-btn[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--gold); }
.kv-flokkar { scroll-margin-top: 90px; }
@media (min-width: 761px) { .kv-flokkar { scroll-margin-top: 145px; } }

/* d541: myndasýning á velkomusíðu (#velkomin) */
.velkomin-mynd .vm-slide { position: absolute; inset: 0; opacity: 0; animation: none; transition: opacity .9s ease; }
.velkomin-mynd.vm-syning { background: #000; }
.velkomin-mynd .vm-slide.is-active { opacity: 1; animation: velkominZoom 50s cubic-bezier(.22, .61, .36, 1) forwards; }
.velkomin-mynd.vm-syning .vm-slide.is-active, .velkomin-mynd.vm-syning .vm-slide.is-leaving { animation: velkominZoomStutt 12s linear forwards; }
@keyframes velkominZoomStutt { from { transform: scale(1); } to { transform: scale(1.08); } }
.velkomin-hle { position: absolute; z-index: 2; right: clamp(.75rem, 2vw, 1.5rem); bottom: .4rem; font: inherit; font-family: var(--sans); font-size: .75rem; padding: .25rem .7rem; color: var(--cream); background: rgba(12, 34, 56, .6); border: 1px solid rgba(246, 240, 225, .5); border-radius: var(--radius); cursor: pointer; }
.velkomin-hle:hover { background: rgba(12, 34, 56, .85); }
.velkomin-hle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .velkomin-mynd .vm-slide { transition: none; } .velkomin-mynd .vm-slide.is-active, .velkomin-mynd.vm-syning .vm-slide.is-active { animation: none; transform: none; } }
/* d549: Fréttir í sér glugga (dialog) – lokaður í upphafi; þekur allan skjáinn í símum */
.frettir-gluggi { padding: 0; border: 0; background: transparent; width: min(40rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: hidden; color: var(--cream); }
.frettir-gluggi::backdrop { background: rgba(6, 18, 30, .6); }
.frettir-gluggi .velkomin-frettir { max-height: inherit; height: auto; background: rgba(12, 34, 56, .96); padding: 1rem 0 .6rem 1.15rem; box-sizing: border-box; }
.frettir-gluggi[open] .velkomin-frettir { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
.frettir-haus { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-right: 1rem; flex: 0 0 auto; }
.frettir-loka { font: inherit; font-size: 1.6rem; line-height: 1; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; color: var(--cream); background: transparent; border: 2px solid var(--gold); border-radius: 50%; cursor: pointer; }
.frettir-loka:hover { background: rgba(224,212,59,.18); }
.frettir-loka:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
html.frettir-opnar, html.frettir-opnar body { overflow: hidden; }
@media (max-width: 640px) {
  .frettir-gluggi { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; inset: 0; }
  .frettir-gluggi .velkomin-frettir, .frettir-gluggi[open] .velkomin-frettir { height: 100%; max-height: 100%; border-radius: 0; border: 0; padding-top: max(1rem, env(safe-area-inset-top)); padding-bottom: max(.6rem, env(safe-area-inset-bottom)); }
}
/* d636: myndir þar sem vantar nöfn — spurning, myndatexti og ábendingahnappur í fréttaglugganum */
.frett--nafnlaus .frett-titill { margin-bottom: .45rem; }
.frett-mynd-tengill { display: block; }
.frett-mynd-tengill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.frett--nafnlaus .frett-mynd img { height: clamp(9rem, 32vh, 18rem); }
.frett--nafnlaus .frett-mynd figcaption { white-space: pre-wrap; max-height: 8.5rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(246, 240, 225, .4) transparent; }
.frettir-gluggi .fb-btn { color: var(--navy); background: var(--cream); border-color: var(--gold); margin-top: .55rem; }
.frettir-gluggi .fb-btn:hover, .frettir-gluggi .fb-btn:focus-visible { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (max-width: 720px) {
  .frett--nafnlaus .frett-mynd img { height: clamp(8rem, 28vh, 14rem); }
  .frett--nafnlaus .frett-mynd figcaption { max-height: 7rem; }
}
/* d553: „Fréttir“ er <button> – fjarlægja sjálfgefinn ramma vafrans svo hann líti eins út og hinir aukahnapparnir (tenglar) */
button.velkomin-takki-2 { -webkit-appearance: none; appearance: none; border: 0; margin: 0; line-height: inherit; cursor: pointer; }
/* aukahnappar: lyklaborðsfókus (líka þegar fókus snýr aftur eftir að fréttaglugga er lokað) sýnir sama útlit og hover, ekki rjómalitaða fyllingu */
.velkomin-takki-2:focus-visible { background: rgba(224,212,59,.18); color: #fff; outline: 3px solid var(--cream); outline-offset: 3px; }
/* d560: starfsfólk sem nafnhnappar (í stað myndaspjalda); prófílglugginn sýnir myndir og texta */
.leaves:has(.person-nafn) { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem .5rem; }
.leaf:has(.person-nafn) { flex: 0 0 auto; padding-top: 0; max-width: 100%; }
.leaf:has(.person-nafn)::before { display: none; }
.person.person-nafn { display: inline-flex; align-items: center; width: auto; max-width: 100%; margin: 0; padding: .38rem .9rem; border-radius: 6px; border: 1px solid var(--gold); background: #fffdf7; box-shadow: none; text-align: center; transform: none; }
.person.person-nafn .person-name { font-size: .9rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.person.person-nafn:hover { background: var(--gold); border-color: var(--gold); transform: none; }
.person.person-nafn:hover .person-name { color: var(--navy); }
.person.person-nafn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* d577: sögumannaspjöld og ábendingarhnappur í texta */
.sogur-segjendur{display:flex;flex-wrap:wrap;gap:.75rem;margin:0 0 1.5rem}
.sogur-segjandi{display:inline-flex;align-items:center;gap:.55rem;appearance:none;border:1px solid var(--cream-2);background:var(--cream);color:var(--navy);border-radius:999px;padding:.35rem .85rem .35rem .35rem;cursor:pointer;font:inherit}
.sogur-segjandi img{width:2.5rem;height:2.5rem;border-radius:50%;object-fit:cover;object-position:center 15%;display:block}
.sogur-segjandi.is-active,.sogur-segjandi:hover{border-color:var(--gold);background:#fff}
.sogur-segjandi:focus-visible{outline:2px solid var(--navy-2);outline-offset:2px}
.fv-sogur{margin:.5rem 0 1rem}
.fv-saga-btn{display:inline-block;margin:.15rem .25rem .15rem 0}
.fb-inline-link{appearance:none;border:0;background:none;padding:0;margin:0;color:var(--navy);text-decoration:underline;cursor:pointer;font:inherit}
.fb-inline-link:focus-visible{outline:2px solid var(--navy-2);outline-offset:2px}
.umfjollun-mbl{margin:1.5rem 0 2rem;padding:1rem 1.25rem;background:#fff;border-left:4px solid var(--gold);border-radius:var(--radius);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.umfjollun-mynd{margin:1rem 0}
.umfjollun-mynd img{max-width:100%;height:auto;display:block;border-radius:4px}
.umfjollun-asid{margin:1rem 0;padding:.75rem 1rem;background:var(--cream);border-radius:var(--radius)}
.umfjollun-asid h5{margin:.2rem 0 .5rem}

/* d578: Flugvellir — stærri hnappur + modal */
.fv-flugvellir-wrap { margin: 1rem 0 1.5rem; text-align: center; }
.fv-flugvellir-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1.15rem; font-weight: 600;
  line-height: 1.2; padding: .85rem 1.75rem; min-width: min(100%, 16rem);
  border-radius: 999px; border: 2px solid var(--ll-blue);
  background: var(--ll-blue); color: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,40,80,.15);
}
.fv-flugvellir-btn:hover, .fv-flugvellir-btn:focus-visible {
  filter: brightness(1.08); outline: 2px solid var(--navy); outline-offset: 2px;
}
.flugvellir-dialog {
  width: min(96vw, 720px); max-height: min(92vh, 900px);
  padding: 0; border: 0; border-radius: 12px;
  background: var(--cream, #f7f1e6); color: var(--navy);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.flugvellir-dialog::backdrop { background: rgba(10, 24, 48, .55); }
.flugvellir-inner { display: flex; flex-direction: column; max-height: min(92vh, 900px); }
.flugvellir-haus {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 3rem 0.75rem 1.1rem; border-bottom: 1px solid rgba(0,40,80,.12);
  flex-shrink: 0;
}
.flugvellir-titill { margin: 0; font-family: var(--serif); font-size: 1.45rem; flex: 1; }
.flugvellir-back {
  font-family: var(--sans); font-size: .9rem; border: 0; background: transparent;
  color: var(--ll-blue); cursor: pointer; padding: .35rem .5rem; border-radius: 6px;
}
.flugvellir-back:hover, .flugvellir-back:focus-visible { background: rgba(0,80,160,.08); outline: 2px solid var(--ll-blue); }
.flugvellir-list {
  display: flex; flex-wrap: wrap; gap: .65rem; padding: 1.1rem 1.1rem 1.4rem;
  overflow: auto; -webkit-overflow-scrolling: touch;
}
.flugvellir-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: .7rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--ll-blue); background: #fff; color: var(--ll-blue);
  cursor: pointer; text-align: center;
}
.flugvellir-pill:hover, .flugvellir-pill:focus-visible {
  background: var(--ll-blue); color: #fff; outline: 2px solid var(--navy); outline-offset: 2px;
}
.flugvellir-detail {
  padding: 1rem 1.15rem 1.5rem; overflow: auto; -webkit-overflow-scrolling: touch;
}
.flugvellir-detail-heiti { margin: 0 0 .75rem; font-family: var(--serif); font-size: 1.25rem; }
.flugvellir-saga { margin: 0 0 .85rem; font-family: var(--serif); line-height: 1.55; }
.flugvellir-heimild { margin: .5rem 0 1rem; font-size: .88rem; color: rgba(0,40,80,.75); }
.flugvellir-album-label { margin: .75rem 0 .35rem; font-weight: 600; font-family: var(--sans); font-size: .95rem; }
.flugvellir-myndir-vantar { font-style: italic; color: rgba(0,40,80,.55); margin: .5rem 0 1rem; }
.fv-myndir--flugvellir { margin: .5rem 0 1rem; }
.flugvellir-grein {
  margin: 1.25rem 0 0; padding: 1rem; border-radius: 8px;
  background: rgba(255,255,255,.65); border: 1px solid rgba(0,40,80,.1);
}
.flugvellir-grein-titill { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.05rem; }
.flugvellir-grein-meta { margin: 0 0 .75rem; font-size: .88rem; color: rgba(0,40,80,.7); }
.flugvellir-grein-texti { margin: 0 0 .7rem; font-family: var(--serif); line-height: 1.5; white-space: pre-wrap; }
.flugvellir-grein-ath { margin: .5rem 0; font-size: .82rem; font-style: italic; color: rgba(0,40,80,.65); }
.flugvellir-grein-pdf a { color: var(--ll-blue); font-weight: 600; }
@media (max-width: 430px) {
  .fv-flugvellir-btn { width: 100%; font-size: 1.05rem; padding: .9rem 1.2rem; }
  .flugvellir-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .flugvellir-inner { max-height: 100vh; }
  .flugvellir-pill { flex: 1 1 calc(50% - .65rem); font-size: .92rem; padding: .65rem .8rem; }
}

.flugvellir-folk { margin: .35rem 0 1rem; font-family: var(--sans); font-size: .95rem; }
.flugvellir-folk a { color: var(--ll-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.flugvellir-saga a, .flugvellir-grein-texti a { color: var(--ll-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* d581: höfundarlína undir Loftleiðasögu-fyrirsögn */
.saga-eftir { margin: -.15rem 0 .85rem; font-family: var(--serif); font-style: italic; color: rgba(0,40,80,.8); }
.saga-eftir a { color: var(--ll-blue); font-style: italic; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* d582: blaðúrklippur í flugvallaalbúmi — sýna alla myndina (letterbox) */
.fv-myndir img.fv-clip { object-fit: contain; background: var(--cream-2, #f7f1e6); }

/* d585: Fyrirtæki undirvalmynd + yfirlitssíða */
.main-nav .has-sub { position: relative; }
.main-nav .nav-parent { display: flex; align-items: stretch; gap: 0; }
.main-nav .nav-parent > a { border-radius: var(--radius) 0 0 var(--radius); }
.main-nav .nav-sub-toggle {
  font: inherit; color: var(--cream); background: transparent; border: 0;
  padding: .5rem .55rem; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1; align-self: stretch;
}
.main-nav .nav-sub-toggle:hover,
.main-nav .nav-parent > a:hover + .nav-sub-toggle { background: var(--navy-2); }
.main-nav .has-sub.is-active > .nav-parent > a,
.main-nav .has-sub.is-active > .nav-parent > .nav-sub-toggle {
  background: var(--gold); color: var(--navy); font-weight: 600;
}
.main-nav .nav-sub {
  display: none; list-style: none; margin: 0; padding: .35rem;
  background: var(--navy); border: 1px solid var(--gold-light); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 11.5rem; z-index: 30;
}
.main-nav .nav-sub a { padding: .45rem .75rem; white-space: nowrap; }
@media (min-width: 721px) {
  .main-nav .nav-sub {
    position: absolute; top: calc(100% + 2px); left: 0;
  }
  .main-nav .has-sub:hover > .nav-sub,
  .main-nav .has-sub:focus-within > .nav-sub,
  .main-nav .has-sub.open > .nav-sub { display: block; }
}
@media (max-width: 720px) {
  .main-nav .nav-parent { width: 100%; }
  .main-nav .nav-parent > a { flex: 1; }
  .main-nav .nav-sub {
    position: static; margin: .15rem 0 .35rem .75rem; padding: .25rem;
    border: 1px solid rgba(224, 212, 59, .35); min-width: 0; width: auto;
  }
  .main-nav .nav-sub a { white-space: normal; }
  .main-nav .has-sub.open > .nav-sub { display: block; }
}
.fy-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin: 1.25rem 0 2rem;
}
.fy-card {
  display: flex; flex-direction: column; gap: .55rem;
  background: #fffdf7; border: 1px solid var(--cream-2); border-top: 4px solid var(--ll-blue);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem 1.15rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.fy-card:hover { border-color: var(--gold); transform: translateY(-2px); transition: transform .15s; }
.fy-card img {
  width: auto; max-width: 100%; max-height: 88px; height: auto; object-fit: contain;
  margin: 0 auto .25rem; background: transparent;
}
.fy-card h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.fy-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.fy-card-go { color: var(--navy-2); font-weight: 600; font-size: .9rem; }
@media (max-width: 400px) {
  .fy-grid { grid-template-columns: 1fr; }
}

/* d587: Söluskrifstofur */
.sk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem; margin: 1.25rem 0 2rem;
}
.sk-card {
  display: flex; flex-direction: column; min-width: 0;
  background: #fffdf7; border: 1px solid var(--cream-2); border-top: 4px solid var(--ll-blue);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  scroll-margin-top: 90px;
}
.sk-card.highlight { outline: 3px solid var(--gold); }
@media (min-width: 761px) { .sk-card { scroll-margin-top: 145px; } }
.sk-card-media { background: var(--cream-2); min-height: 140px; }
.sk-card-media > img,
.sk-card-photo img { width: 100%; height: 180px; object-fit: cover; display: block; }
.sk-card-photo {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
}
.sk-card-thumbs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  list-style: none; margin: 0; padding: .15rem .75rem .55rem;
}
.sk-card-thumbs li { margin: 0; }
.sk-card-thumbs button {
  display: block; margin: 0; padding: 0; border: 1px solid rgba(31,95,139,.25); border-radius: 3px;
  background: none; cursor: pointer; line-height: 0;
}
.sk-card-thumbs img { width: 72px; height: 54px; object-fit: cover; display: block; border-radius: 2px; }
.sk-card-ph {
  display: flex; align-items: center; justify-content: center; height: 140px;
  color: var(--muted); font-size: .95rem; font-style: italic; letter-spacing: .02em;
  border-bottom: 1px dashed rgba(31,95,139,.25);
}
.sk-card-cap { margin: 0; padding: .4rem .75rem .55rem; font-size: .78rem; color: var(--muted); }
.sk-card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.sk-card-body h3 { margin: 0; font-size: 1.2rem; }
.sk-badge-adalskrifstofa {
  margin: 0 0 .15rem;
  display: inline-block;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  line-height: 1.3;
}
.sk-card-adalskrifstofa { border-top: 3px solid var(--navy); }
.sk-card-land { margin: 0; color: var(--navy-2); font-size: .88rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sk-card-addr, .sk-card-ar { margin: 0; font-size: .92rem; }
.sk-card-body > p { margin: .15rem 0 0; }
.sk-card-folk { margin-top: .5rem !important; }
.sk-card-links { margin-top: .35rem !important; }
.sk-card-src { margin-top: .5rem !important; font-size: .82rem; }
@media (max-width: 400px) { .sk-grid { grid-template-columns: 1fr; } }
/* d588: Söluskrifstofur lönd */
.sk-pills { margin: .75rem 0 1.15rem; }
.sk-land-panel { text-align: left; scroll-margin-top: 90px; }
@media (min-width: 761px) { .sk-land-panel { scroll-margin-top: 145px; } }
.sk-land-head { margin: 0 0 .75rem; }
.sk-land-heiti { margin: 0 0 .25rem; }
.sk-land-lysing { margin: 0; color: var(--muted); font-size: .92rem; }
.sk-land-tomt { margin-top: .25rem; }
/* d621: Tímalína skrifstofa Loftleiða */
.sk-timalina { margin: 1.25rem 0 1.5rem; max-width: 46rem; }
.sk-timalina-heiti { margin: 0 0 .85rem; font-size: 1.15rem; }
.sk-timalina-list { margin: 0; padding: 0; list-style: none; }
.sk-timalina-list > li { margin: 0 0 .85rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--cream-2); }
.sk-timalina-list > li:last-of-type { border-bottom: 0; margin-bottom: .4rem; padding-bottom: 0; }
.sk-timalina-timi { margin: 0 0 .15rem; font-family: var(--sans); font-weight: 700; color: var(--navy); }
.sk-timalina-list p { margin: 0; }
.sk-timalina-heimild { margin-top: .35rem; }
.sk-timalina-augl { margin: .65rem 0 0; max-width: 22rem; }
.sk-timalina-augl img { display: block; width: 100%; height: auto; border: 1px solid var(--cream-2); }
.sk-timalina-augl figcaption { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); }

/* d590: jafnstórir láréttir landahnappár, stafrófsröð, efst undir fyrirsögn */
#soluskrifstofur-pills.sk-pills,
#soluskrifstofur-pills .sk-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr));
  gap: .4rem .45rem;
  margin: .85rem 0 1.15rem;
  width: 100%;
}
#soluskrifstofur-pills .sk-pill {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 3.15rem;
  margin: 0;
  padding: .3rem .7rem .3rem .45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
  font-size: .78rem;
  font-weight: 600;
  border-radius: var(--radius);
  overflow: hidden;
}
#soluskrifstofur-pills .sk-pill-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}
#soluskrifstofur-pills .sk-pill-tomt { border-style: dashed; border-color: #9aa9b8; color: #6b7785; background: transparent; font-weight: 500; }
#soluskrifstofur-pills .sk-pill-tomt[aria-pressed="true"] { background: #6b7785; border-color: #6b7785; border-style: solid; color: #fff; }
#soluskrifstofur-pills .sk-pill-full { font-weight: 600; }
#soluskrifstofur-pills .sk-pill-fjoldi {
  position: absolute; top: .18rem; right: .22rem;
  min-width: 1.05em; padding: 0 .28em; border-radius: 999px;
  background: var(--gold, #e3c54a); color: #1d2b3a;
  font-size: .65rem; line-height: 1.35; text-align: center;
  font-weight: 700; pointer-events: none;
}
@media (max-width: 600px) {
  #soluskrifstofur-pills.sk-pills,
  #soluskrifstofur-pills .sk-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  #soluskrifstofur-pills .sk-pill { height: 3.15rem; font-size: .78rem; padding: .3rem .7rem .3rem .4rem; }
}

/* d637: Töflur um átturnar (Ómar Arason) í DC-8-kafla */
.dc8-attur { margin: 1rem 0 1.4rem; text-align: left; scroll-margin-top: 145px; }
.dc8-attur-titill { margin: 0 0 .5rem; color: var(--navy); font-size: 1.15rem; }
.dc8-attur-merking, .dc8-attur-heimild { margin: .5rem 0 .7rem; font-size: .9rem; max-width: 50rem; }
.dc8-attur-heimild { font-style: italic; }
.dc8-attur-ar { margin: 1.1rem 0 1.3rem; }
.dc8-attur-ar-titill { margin: 0 0 .4rem; color: var(--navy); font-size: 1.05rem; }
.dc8-attur-tafla { width: 100%; border-collapse: collapse; font-size: .84rem; text-align: left; }
.dc8-attur-yfirlit { min-width: 72rem; }
.dc8-attur-tafla th, .dc8-attur-tafla td { padding: .35rem .45rem; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; text-align: left; }
.dc8-attur-tafla th { background: var(--navy); color: var(--cream); font-weight: 600; white-space: nowrap; }
.dc8-attur-tafla tbody tr:nth-child(even) { background: var(--cream); }
.dc8-attur-grid td:first-child, .dc8-attur-yfirlit td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.dc8-attur-grid th, .dc8-attur-grid td { text-align: center; }
.dc8-attur-grid td:first-child, .dc8-attur-grid th:first-child, .dc8-attur-grid td:last-child, .dc8-attur-grid th:last-child { text-align: left; }
.dc8-attur-notes { margin: .45rem 0 0; max-width: 50rem; }
.dc8-attur-notes p { margin: 0 0 .35rem; font-size: .88rem; line-height: 1.45; }
.dc8-attur-ahafnir { margin: 1.2rem 0; }
.dc8-attur-ahafnir-grid { display: grid; grid-template-columns: repeat(4, minmax(11rem, 1fr)); gap: 1rem; }
.dc8-attur-ahafn h6 { margin: 0 0 .35rem; color: var(--navy); font-size: .9rem; }
.dc8-attur-ahafn ul { margin: 0; padding: 0 0 0 1.1rem; font-size: .86rem; line-height: 1.4; }
@media (max-width: 720px) {
  .dc8-attur-ahafnir-grid { grid-template-columns: 1fr 1fr; }
  .dc8-attur-yfirlit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dc8-attur-yfirlit, .dc8-attur-yfirlit tbody, .dc8-attur-yfirlit tr, .dc8-attur-yfirlit td { display: block; width: 100%; min-width: 0; }
  .dc8-attur-yfirlit tr { margin: 0 0 .6rem; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; padding: .3rem .5rem; background: #fff; }
  .dc8-attur-yfirlit tbody tr:nth-child(even) { background: #fff; }
  .dc8-attur-yfirlit td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; border: 0; padding: .2rem 0; white-space: normal !important; text-align: left; }
  .dc8-attur-yfirlit td::before { content: attr(data-label); font-weight: 600; color: var(--navy); }
  .dc8-attur-yfirlit td.dc8-tl-tomt { display: none; }
  /* Year grids stay as tables with horizontal scroll on the phone */
  .dc8-attur-grid { min-width: 40rem; }
}
@media (max-width: 480px) {
  .dc8-attur-ahafnir-grid { grid-template-columns: 1fr; }
}

/* d642: Átturspjöld, uppsetning eftir síðu 9 í DC8-árunum (Ómar Arason) */
.dc8-spjald { margin: 0 0 1.6rem; max-width: 52rem; }
.dc8-spjald .fv-main, .dc8-spjald .fv-myndir { margin: 0; }
/* d749: Átturspjalda-smámyndir halda hlutföllum — crop/contain, ekki teygja */
.dc8-spjald .fv-myndir img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #e8eef3;
}
.dc8-spjald-haus {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: .6rem 1rem;
  align-items: start;
  padding: .85rem 1.1rem .7rem;
  border-bottom: 1.5px solid #222;
}
.dc8-spjald-nafn { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.dc8-spjald-adur-lab, .dc8-spjald-vard-lab { margin: 0; font-size: .92rem; }
.dc8-spjald-adur, .dc8-spjald-vard { margin: 0; font-size: .92rem; line-height: 1.35; }
.dc8-spjald-midja { text-align: center; }
.dc8-spjald-reg { margin: 0 0 .25rem; font-size: 2rem; font-weight: 700; letter-spacing: .02em; color: var(--navy); line-height: 1.1; }
.dc8-spjald-meta { margin: 0; font-size: .92rem; line-height: 1.35; }
.dc8-spjald-haegri { text-align: right; }
.dc8-spjald-gerd { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.dc8-spjald-afdrif { margin: .35rem 0 0; font-size: .92rem; line-height: 1.35; }
.dc8-spjald-frasogn { padding: .8rem 1.1rem 1rem; }
.dc8-spjald-lina { margin: 0 0 .45rem; font-size: .95rem; line-height: 1.5; max-width: 50rem; }
.dc8-spjald-lina:last-child { margin-bottom: 0; }
.dc8-attur-extra { margin: 1.2rem 0 .8rem; }
.dc8-attur-fella { margin: 0 0 .6rem; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; padding: .45rem .8rem; background: #fff; }
.dc8-attur-fella summary { cursor: pointer; font-family: var(--serif); color: var(--navy); font-weight: 600; }
.dc8-attur-fella summary:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.dc8-attur-fella[open] summary { margin-bottom: .5rem; border-bottom: 1px solid var(--cream-2); padding-bottom: .4rem; }
@media (max-width: 720px) {
  .dc8-spjald { max-width: none; }
  .dc8-spjald-haus { grid-template-columns: 1fr; gap: .7rem; }
  .dc8-spjald-midja, .dc8-spjald-haegri { text-align: left; }
  .dc8-spjald-reg { font-size: 1.7rem; }
}

/* d676: fljótandi bakgrunnstónlistarspilari */
.ab-tonlist {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: .55rem;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: .45rem .7rem .45rem .5rem;
  background: rgba(31, 95, 139, .94);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: .85rem;
  line-height: 1.3;
}
.ab-tonlist[hidden], .ab-tonlist-spila[hidden] { display: none !important; }
.ab-tonlist-hljod, .ab-tonlist-naesta, .ab-tonlist-spila {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--navy);
  border: 0;
  border-radius: var(--radius);
  padding: .3rem .65rem;
  cursor: pointer;
  white-space: nowrap;
}
.ab-tonlist-hljod:hover, .ab-tonlist-naesta:hover, .ab-tonlist-spila:hover { background: #ece35a; }
.ab-tonlist-nafn {
  font-family: var(--serif);
  color: var(--cream);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-tonlist-spila {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  box-shadow: var(--shadow);
}
.ab-page.ab-idle .ab-tonlist,
.ab-page.ab-idle .ab-tonlist-spila {
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: auto;
}
@media (max-width: 720px) {
  .ab-tonlist { right: .5rem; bottom: .5rem; font-size: .8rem; }
  .ab-tonlist-spila { right: .5rem; bottom: .5rem; }
}

/* d712: lítill leitarreitur efst á Tímalínu */
.tl-leit { max-width: 28rem; margin: .45rem auto 1rem; }
.tl-leit-reitur { position: relative; display: flex; align-items: center; }
.tl-leit-reitur input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9b98f;
  border-radius: var(--radius);
  padding: .55rem 2.4rem .55rem .85rem;
  -webkit-appearance: none;
  appearance: none;
}
.tl-leit-reitur input::-webkit-search-cancel-button,
.tl-leit-reitur input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.tl-leit-reitur input::placeholder { color: var(--muted); opacity: .85; }
.tl-leit-hreinsa {
  position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.tl-leit-hreinsa:hover, .tl-leit-hreinsa:focus-visible { color: var(--navy); background: var(--cream-2); }
.tl-leit-talning { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.tl-leit-tomt { text-align: center; color: var(--muted); margin: 1.25rem 0 0; }
.tl-card { scroll-margin-top: 6rem; }
.tl-card.tl-leit-hit { outline: 3px solid var(--gold); }
@media (max-width: 720px) {
  .tl-leit { max-width: none; width: 100%; margin: .55rem 0 1rem; }
  .tl-leit-reitur input { font-size: 16px; padding: .7rem 2.6rem .7rem .9rem; }
  .tl-card { scroll-margin-top: 5.5rem; }
}
@media (min-width: 721px) {
  .timeline.is-filtered .tl-list::before { left: 10px; transform: none; }
  .timeline.is-filtered .tl-item,
  .timeline.is-filtered .tl-item:nth-child(even) {
    width: 100%; margin-left: 0; padding: 0 0 1.5rem 2.25rem;
  }
  .timeline.is-filtered .tl-item::before,
  .timeline.is-filtered .tl-item:nth-child(even)::before { left: 2px; right: auto; }
}
