/* VårØkonomi – «Lytt til tekst», understrekede lenker og redusert bevegelse. Brukes på nettsidene og i appen. */
.vo-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vo-ico { width: 1.1em; height: 1.1em; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; flex: none; }
.vo-ico path + path { fill: none; }

/* Menyen «Lytt» og «Flere innstillinger» */
.vo-tts, .vo-more { position: relative; display: inline-block; }
.vo-tts > summary, .vo-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border: 1px solid #C9D2DC; border-radius: .4rem; background: #fff; color: #142033; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.vo-tts > summary::-webkit-details-marker, .vo-more > summary::-webkit-details-marker { display: none; }
.vo-tts > summary::after, .vo-more > summary::after { content: ""; border: .3em solid transparent; border-top-color: currentColor; margin: .3em 0 0 .15em; }
.vo-tts[open] > summary, .vo-more[open] > summary { background: #EAF1FB; border-color: #1F5FAE; }
.vo-tts-panel, .vo-more-panel { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 1080; min-width: 15rem; display: grid; gap: .4rem; padding: .75rem; background: #fff; color: #142033; border: 1px solid #C9D2DC; border-radius: .6rem; box-shadow: 0 .5rem 1.5rem rgba(20, 32, 51, .18); }
.vo-up .vo-tts-panel, .vo-up .vo-more-panel { top: auto; bottom: calc(100% + .35rem); left: 0; right: auto; }
.vo-tts-panel button, .vo-more-panel button, #vo-tts-bar button { font: inherit; font-size: .9rem; font-weight: 600; padding: .4rem .7rem; border: 1px solid #1F5FAE; border-radius: .4rem; background: #fff; color: #1F5FAE; text-align: left; cursor: pointer; }
.vo-tts-panel button[aria-pressed="true"], .vo-more-panel button[aria-pressed="true"] { background: #1F5FAE; color: #fff; }
.vo-tts-panel button:disabled { opacity: .55; cursor: default; }
.vo-tts-row { display: flex; gap: .4rem; }
.vo-tts-row button { flex: 1; text-align: center; }
.vo-tts-panel label { font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.vo-tts-panel select { font: inherit; font-size: .9rem; padding: .3rem .4rem; border: 1px solid #8A97A8; border-radius: .4rem; background: #fff; color: #142033; }
.vo-tts-note { margin: .2rem 0 0; font-size: .78rem; color: #4A5668; }
.vo-more-panel button[aria-pressed]::before { content: "☐ "; }
.vo-more-panel button[aria-pressed="true"]::before { content: "☑ "; }

/* Høyttalerknapper ved seksjoner og spørsmål */
.vo-say { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 .5rem; padding: .15rem .55rem; font-size: .8rem; font-weight: 600; line-height: 1.6; color: #1F5FAE; background: #fff; border: 1px solid #A9C1E3; border-radius: 99rem; cursor: pointer; width: max-content; }
.vo-say:hover { background: #EAF1FB; }
.vo-say-l::after { content: attr(data-label); }
.accordion-item > .vo-say { margin: .5rem 1rem; }
.ph > .vo-say, .d-flex > .vo-say { margin: 0; }

/* Teksten som leses opp, og «Velg avsnitt» */
.vo-reading { outline: 3px solid #FFD400 !important; outline-offset: 3px; background-color: rgba(255, 212, 0, .14) !important; border-radius: .25rem; }
html.vo-pick main *:hover, html.vo-pick #main *:hover { cursor: pointer; }
html.vo-pick main p:hover, html.vo-pick main li:hover, html.vo-pick main h1:hover, html.vo-pick main h2:hover, html.vo-pick main h3:hover,
html.vo-pick #main p:hover, html.vo-pick #main li:hover, html.vo-pick #main h1:hover, html.vo-pick #main h2:hover, html.vo-pick #main h3:hover { outline: 2px dashed #1F5FAE; outline-offset: 2px; }

/* Kontrollen nederst mens noe leses opp */
#vo-tts-bar { position: fixed; right: 1rem; bottom: 1rem; z-index: 1090; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: #142033; color: #fff; border-radius: .75rem; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3); font-size: .9rem; }
#vo-tts-bar[hidden] { display: none; }
#vo-tts-bar button { background: #fff; border-color: #fff; color: #142033; }
@media (max-width: 760px) { #vo-tts-bar { bottom: 5.5rem; left: 1rem; right: 1rem; justify-content: center; } }

/* Understrekede lenker */
html[data-underline] a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 1.5px !important; text-underline-offset: .2em; }
html[data-underline] .btn-link, html[data-underline] a.btn-link { text-decoration: underline !important; }

/* Høy kontrast */
html[data-contrast="high"] .vo-say, html[data-contrast="high"] .vo-tts > summary, html[data-contrast="high"] .vo-more > summary { color: #000; border: 2px solid #000; background: #fff; }
html[data-contrast="high"] .vo-tts-panel, html[data-contrast="high"] .vo-more-panel { border: 2px solid #000; }
html[data-contrast="high"] .vo-tts-panel button, html[data-contrast="high"] .vo-more-panel button { color: #000; border: 2px solid #000; }
html[data-contrast="high"] .vo-tts-panel button[aria-pressed="true"], html[data-contrast="high"] .vo-more-panel button[aria-pressed="true"] { background: #000; color: #fff; }

/* Mørk modus i appen */
[data-bs-theme="dark"] .vo-tts > summary, [data-bs-theme="dark"] .vo-more > summary, [data-bs-theme="dark"] .vo-tts-panel, [data-bs-theme="dark"] .vo-more-panel,
[data-bs-theme="dark"] .vo-tts-panel select, [data-bs-theme="dark"] .vo-say { background: #1B2533; color: #E8EEF6; border-color: #4A5A70; }
[data-bs-theme="dark"] .vo-tts-panel button, [data-bs-theme="dark"] .vo-more-panel button { background: #1B2533; color: #9EC2F5; border-color: #9EC2F5; }
[data-bs-theme="dark"] .vo-tts-panel button[aria-pressed="true"], [data-bs-theme="dark"] .vo-more-panel button[aria-pressed="true"] { background: #9EC2F5; color: #0E1622; }
[data-bs-theme="dark"] .vo-tts-note { color: #B8C4D3; }
[data-bs-theme="dark"] .vo-say { color: #9EC2F5; }

/* Redusert bevegelse: ingen animasjoner eller myk rulling */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto !important; }
}
@media (max-width: 576px) {
  .vo-tts-panel, .vo-more-panel { position: fixed; left: .75rem; right: .75rem; top: 5.5rem; min-width: 0; }
  .vo-up .vo-tts-panel, .vo-up .vo-more-panel { top: auto; bottom: 1rem; left: .75rem; right: .75rem; }
}
/* I appens sidemeny vises panelene i flyten, så de ikke kuttes av menyen */
.side .vo-tts-panel, .side .vo-more-panel { position: static; margin-top: .4rem; box-shadow: none; min-width: 0; }
.ph > .vo-say, .d-flex.justify-content-between > .vo-say { margin: 0 auto 0 .5rem; }
.vo-tts-panel select { max-width: 100%; }
