/* Track B (pages and forms): only what public/style.css (the preview's design, track A's file) does
   not have. Loaded by the text and form pages through the layout's `styles` prop. Colours are the
   preview's variables; the error colours are the tokens --villa / --villa-ljos (6.5:1 on white, 5.9:1 on --sandur). */

/* the breadcrumb (F27) is track A's Braud.astro with style.css's rules; the header menu rules are
   scoped to #valmynd there, so the page's own <nav>s need no undoing here */
.braud [aria-current]{color:var(--hvitt)}
.hlid h2.smalt{font-size:1.125rem;margin:4px 10px 10px}

/* ---- heading levels (F17): cards h4 -> h3 (h2 outside a section), side boxes h4 -> h2, same look - */
.texti .spjald :is(h2,h3){font:700 .75rem/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--brunn);margin:0 0 8px!important}
/* ---- Reiðhöll: reserved hours and the static map (F29) ----------------------------------------- */
.fratekid{background:var(--hvitt);border-left:4px solid var(--brunn);border-radius:var(--r-m);padding:16px 20px;margin:1.4em 0;box-shadow:0 2px 0 var(--lina)}
.fratekid p{margin:0 0 .4em!important}
.fratekid ul{margin:0}
.kortmynd{display:block;border-radius:var(--r-m);overflow:hidden;background:var(--sandur2)}
.kortmynd img{display:block;width:100%;height:auto}
.kortgjafi{font-size:.875rem;color:var(--daufur);margin:.5em 0 0!important}
.kortgjafi a{color:inherit}

/* ---- scanned originals and photos under the copy ----------------------------------------------- */
.myndir a{display:block;border-radius:var(--r-m)}
.myndir img{height:auto}
.frumrit .myndir{margin-top:0}

/* ---- forms (F21) --------------------------------------------------------------------------------- */
.gjaldskrartengill{margin:0 0 8px}
.gjaldskrartengill .btn{margin:0}
.eydublad{background:var(--hvitt);border-radius:var(--r-l);padding:clamp(22px,3vw,34px);margin:28px 0;box-shadow:0 2px 0 var(--lina);scroll-margin-top:110px}
.eydublad>h2,.eydublad>h3{font-size:1.5rem;margin:0 0 .7em!important;display:flex;align-items:flex-start;gap:12px}
.eydublad>h2::before,.eydublad>h3::before{content:"";flex:0 0 14px;height:14px;background:var(--brunn);clip-path:var(--att);margin-top:calc(.55em - 7px)}
.eydublad form{margin:0}
.skylda{font-size:.95rem;color:var(--daufur);margin:0 0 18px!important}
.reitur{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0 0 22px;padding:0;border:0;min-width:0}
.reitur>label,.reitur>legend{font-weight:700;padding:0}
.valfrjalst{font-weight:400;color:var(--daufur)}
.visir{margin:0!important;font-size:.875rem;color:var(--daufur)}
.eydublad input:is([type=text],[type=email],[type=tel]),.eydublad textarea{
  font:inherit;font-size:max(1rem,1em);line-height:1.4;color:var(--texti);background:var(--hvitt);
  width:100%;max-width:32rem;min-height:48px;padding:11px 14px;border:1px solid var(--kantur);border-radius:var(--r-s);box-sizing:border-box;margin:0}
.eydublad textarea{max-width:none;resize:vertical;min-height:7rem}
.eydublad :is(input,textarea,button):focus-visible{outline:3px solid var(--blar);outline-offset:2px}
.eydublad :is(input,textarea)[aria-invalid="true"]{border:2px solid var(--villa);background:var(--villa-ljos)}
.villa{color:var(--villa);font-weight:700;font-size:.95rem;margin:0!important}
.villa::before{content:"";display:inline-block;width:1.05em;height:1.05em;margin-right:.35em;vertical-align:-.15em;background:currentColor;-webkit-mask:url(g/i-villa.svg) center/contain no-repeat;mask:url(g/i-villa.svg) center/contain no-repeat} /* L6: an SVG warning sign, not the ⚠ character */
.villa[hidden]{display:none}
.villur,.tilkynning{border:2px solid var(--villa);background:var(--villa-ljos);border-radius:var(--r-s);padding:14px 18px;margin:0 0 22px!important;color:var(--texti)}
.villur p{margin:0 0 6px!important;font-weight:700}
.villur ul{margin:0}
.villur a{color:var(--villa);font-weight:700}
.kostur{display:flex;align-items:center;gap:10px;min-height:44px}
.kostur input{flex:0 0 auto;width:22px;height:22px;margin:0;accent-color:var(--blar)}
.kostur label{cursor:pointer}
.samthykki .kostur{align-items:flex-start}
.samthykki .kostur input{margin-top:3px}
.senda{margin:6px 0 0!important}
.senda .btn{margin:0;min-height:48px}
.vidtakandi{font-size:.95rem;color:var(--daufur);margin:14px 0 0!important}
.takk{background:var(--djupblar);color:var(--hvitt);border-radius:var(--r-m);padding:20px 22px}
.takk p{margin:0 0 .4em!important;font-family:var(--slab);font-size:1.15rem}
.takk p:last-child{margin:0!important;font-family:var(--sans);font-size:1rem}
.takk a{color:var(--hvitt)}
/* the honeypot: off screen, out of the tab order and the accessibility tree (aria-hidden + tabindex) */
.hunang{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.eydublad{position:relative}
/* the live region s2-sidur.js adds */
.s2-skjalesari{position:absolute;clip-path:inset(50%);overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap}

/* the newsletter block (placed in the footer at merge; also /frettabref) */
.frettabref .eydublad{margin:0}
