/* ==========================================================================
   RSMH Utbildning – delade stilar
   Byggd för att fungera på gamla enheter: lite CSS, inga tunga ramverk,
   inga onödiga effekter. Byggd för tillgänglighet: stora klickytor, hög
   kontrast, skalbar text (rem/em), tydlig fokusmarkering.
   ========================================================================== */

@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Roboto (inte Condensed) – variabelt typsnitt, en fil täcker 400–700 */
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* RSMH färgpalett */
  --aska: #2f222d;
  --aska-90: #241a20;
  --korall: #ff5a5a;
  --korall-dark: #d43f3f;
  --neon: #effcce;
  --neon: #effcce;
  --malva: #f1dfff;
  --near-white: #fefffc;
  --light-grey: #f7f7f7;
  --border-grey: #e3ddd8;

  /* Semantiska tokens */
  --color-bg: var(--near-white);
  --color-text: var(--aska);
  --color-heading: var(--aska);
  --color-accent: var(--korall);
  --color-focus: var(--korall-dark);

  /* Typografi. Anton används enbart till H1 (svårläst i löptext/mindre
     rubriker) – allt annat, inklusive H2/H3, sätts i Roboto (ej Condensed). */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
  --step-max-width: 42rem;

  color-scheme: light;
}

/* ---- Reset & bas ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* Webbläsarens [hidden]-regel förlorar annars mot t.ex. .slide-nav{display:flex} */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  color: var(--color-heading);
  margin: 0 0 0.6em;
}

/* Anton används enbart på H1 – som display-typsnitt är det tyngre att
   läsa i längre eller mindre text, så H2/H3 sätts i fet Roboto istället. */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

h2,
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.7rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
  max-width: 38em;
}

ul,
ol {
  padding-left: 1.3em;
}

a {
  color: var(--aska);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--korall-dark);
}

strong {
  font-weight: 700;
}

/* Tydlig, konsekvent fokusmarkering överallt */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hoppa-till-innehåll-länk för tangentbords- och skärmläsaranvändare */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--aska);
  color: var(--near-white);
  padding: 0.75em 1.2em;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.stack {
  max-width: var(--step-max-width);
}

section {
  padding: 2.5rem 0;
}

/* ---- Header / logotyp ---- */
.site-header {
  background: var(--aska);
  border-bottom: 5px solid var(--korall);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--near-white);
  text-decoration: none;
}

.logo:hover {
  color: var(--neon);
}

.logo-img {
  height: 2.75rem;
  width: auto;
  display: block;
  border-radius: 6px;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--malva);
  margin-top: 0.4rem;
}

.header-tagline {
  color: var(--neon);
  font-size: 1rem;
  font-style: normal;
  margin: 0;
}

.back-link {
  color: var(--near-white);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ---- Hero ---- */
.hero {
  background: var(--malva);
  padding: 3rem 0;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  background: var(--aska);
  color: var(--neon);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero p.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aska);
  max-width: 42em;
}

.hero p.lead {
  font-size: 1.25rem;
  max-width: 42em;
}

/* Statisk (ej animerad) pil som visar att det finns mer innehåll nedanför */
.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.scroll-cue svg {
  width: 2rem;
  height: 2rem;
  color: var(--aska);
  opacity: 0.6;
}

.tagline {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--korall-dark);
  font-size: 1.1rem;
}

/* ---- Knappar ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85em 1.6em;
  min-height: 3rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

/* Destinationen i "Nästa: X" göms på smala skärmar så knappen inte blir
   trång eller radbryts – kvar blir bara "Tillbaka" / "Nästa". */
.btn-detail {
  margin-left: -0.5em;
}

@media (max-width: 480px) {
  .btn-detail {
    display: none;
  }
}

.btn-primary {
  background: var(--aska);
  color: var(--near-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--aska-90);
  color: var(--neon);
}

.btn-secondary {
  background: transparent;
  color: var(--aska);
  border-color: var(--aska);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--aska);
  color: var(--near-white);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* ---- Infobox / grundprinciper ---- */
.info-box {
  background: var(--near-white);
  border: 2px solid var(--border-grey);
  border-left: 6px solid var(--korall);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.info-box h2 {
  margin-top: 0;
}

.info-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.info-box li {
  margin-bottom: 0.5em;
}

.info-box li:last-child {
  margin-bottom: 0;
}

/* ---- Nollställ framsteg (delad dator) ---- */
.reset-box {
  background: var(--light-grey);
  border: 2px solid var(--border-grey);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.reset-box h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.reset-box p {
  margin-bottom: 1.25rem;
}

.reset-box p:last-child {
  margin-bottom: 0;
  margin-top: 0.75rem;
}

/* ---- Modullista ---- */
.module-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}

.module-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--near-white);
  border: 2px solid var(--border-grey);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
}

.module-card.is-available {
  border-color: var(--aska);
}

.module-card.is-done {
  background: var(--neon);
  border-color: #2f7a3d;
}

.module-number {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--malva);
  color: var(--aska);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-card.is-available .module-number {
  background: var(--korall);
  color: var(--near-white);
}

.module-card.is-done .module-number {
  background: var(--aska);
  color: var(--neon);
}

.module-body {
  flex: 1 1 auto;
  min-width: 0;
}

.module-body h3 {
  margin: 0 0 0.15em;
}

.module-body p {
  margin: 0;
  font-size: 1rem;
  color: var(--aska);
}

.module-status {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--korall-dark);
}

.module-card.is-done .module-status {
  color: #2f7a3d;
}

.module-progress-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aska-90);
  margin: 0.5rem 0 0.35rem;
}

.module-body .progress-track {
  max-width: 16rem;
}

.module-card.is-locked {
  opacity: 0.65;
}

.module-card.is-locked .module-status {
  color: #6b6167;
}

.module-action {
  flex: none;
}

/* Under ~480px får kortet inte plats i en rad (cirkel + text + knapp) –
   stapla istället cirkel/text ovanför en knapp i full bredd. */
@media (max-width: 480px) {
  .module-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-action {
    width: 100%;
  }

  .module-action .btn {
    width: 100%;
  }
}

/* ---- Modulsida: progress ---- */
.progress-wrap {
  background: var(--near-white);
  border-bottom: 1px solid var(--border-grey);
  position: sticky;
  top: 0;
  z-index: 10;
}

.progress-wrap .container {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Långa modultitlar får inte plats bredvid "Steg X av Y" på smala
   skärmar – stapla dem istället. */
@media (max-width: 480px) {
  .progress-label {
    flex-direction: column;
  }
}

.progress-track {
  height: 10px;
  background: var(--light-grey);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--korall);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* ---- Slides / steg ---- */
.slide {
  padding: 2.5rem 0 3rem;
}

.slide[hidden] {
  display: none;
}

.slide-eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--korall-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.slide-nav {
  border-top: 1px solid var(--border-grey);
  padding-top: 1.75rem;
  margin-top: 2.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Media (video) ---- */
.media-frame {
  background: var(--aska);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.media-frame video,
.media-frame iframe,
.media-frame mux-player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--neon);
  background: repeating-linear-gradient(
    135deg,
    var(--aska),
    var(--aska) 12px,
    var(--aska-90) 12px,
    var(--aska-90) 24px
  );
  text-align: center;
  padding: 1.5rem;
  font-weight: 700;
}

.media-caption {
  font-size: 1rem;
  background: var(--light-grey);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
}

.media-caption strong {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--korall-dark);
  margin-bottom: 0.3em;
}

/* ---- Frågeruta (reflektion / gissa-innan-du-ser) ---- */
.prompt-box {
  background: var(--malva);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.prompt-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--korall-dark);
  margin-bottom: 0.5em;
}

.prompt-box > p:not(.reflection-hint) {
  margin: 0 0 0.75em;
  font-weight: 700;
  font-size: 1.15rem;
}

.prompt-box > p:last-child {
  margin-bottom: 0;
}

.prompt-box .reflection-hint {
  margin: 0 0 0.75em;
}

.prompt-box .reflection-hint:last-child {
  margin-bottom: 0;
}

.prompt-box .fact-box {
  margin: 1rem 0 0;
}

.prompt-box .btn {
  margin-top: 0.25rem;
}

/* ---- Faktaruta ---- */
.fact-box {
  background: var(--neon);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---- Kort-grid (verksamhetsområden, medlemskap, kom ihåg) ---- */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.75rem 0;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Bildtrio (t.ex. exempelmeningar med illustration) ---- */
.image-trio {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.75rem 0;
}

.image-trio figure {
  margin: 0;
}

.image-trio img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.image-trio figcaption {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--aska-90);
  text-align: center;
}

@media (min-width: 640px) {
  .image-trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: var(--near-white);
  border: 2px solid var(--border-grey);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
}

.info-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--korall);
}

.info-card h3 {
  margin-bottom: 0.35em;
}

.info-card p {
  margin: 0;
  font-size: 1rem;
}

.info-card.tone-malva {
  background: var(--malva);
  border-color: var(--malva);
}

.info-card.tone-neon {
  background: var(--neon);
  border-color: var(--neon);
}

.info-card.tone-aska {
  background: var(--aska);
  border-color: var(--aska);
  color: var(--near-white);
}

.info-card.tone-aska h3 {
  color: var(--neon);
}

/* ---- Värdegrund: illustrerade rader ---- */
.value-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}

.value-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border-grey);
  border-radius: 14px;
  overflow: hidden;
  background: var(--near-white);
}

.value-card.tone-malva {
  border-color: var(--malva);
}

.value-card.tone-neon {
  border-color: var(--neon);
}

.value-card-media {
  margin: 0;
  background: var(--near-white);
}

.value-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.value-card-body {
  padding: 1rem 1.35rem 1.35rem;
}

.value-card-body h3 {
  margin: 0 0 0.35em;
}

.value-card-body p {
  margin: 0;
  font-size: 1rem;
}

.value-card-body p + p {
  margin-top: 0.5em;
}

@media (min-width: 640px) {
  .value-card {
    flex-direction: row;
    align-items: stretch;
  }

  .value-card-media {
    flex: 0 0 38%;
    max-width: 38%;
    max-height: 190px;
    overflow: hidden;
  }

  .value-card-media img {
    height: 100%;
    object-fit: cover;
  }

  .value-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.5rem;
  }
}

/* Sammanfattningskort ("Kom ihåg") ska sticka ut extra tydligt */
.card-grid.card-grid--recap .info-card {
  border: 3px solid var(--korall);
}

/* ---- Verksamhetsgrafik (tre cirklar) ---- */
.venn-figure {
  margin: 1.5rem 0 2rem;
}

.venn-figure svg {
  width: 100%;
  height: auto;
  max-width: 26rem;
  margin: 0 auto;
}

.venn-legend {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.venn-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 1rem;
}

.venn-dot {
  flex: none;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  margin-top: 0.35em;
  border: 1px solid var(--border-grey);
}

/* ---- Sverigekarta ---- */
.map-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.map-figure svg {
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin: 0 auto;
}

/* ---- Tidslinje ---- */
.timeline {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  border-left: 4px solid var(--korall);
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.62rem;
  top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--korall);
  border: 3px solid var(--near-white);
  box-shadow: 0 0 0 2px var(--korall);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-year {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--korall-dark);
  display: block;
}

.timeline li h3 {
  margin: 0.1em 0 0.3em;
  font-size: 1.1rem;
}

.timeline li p {
  margin: 0;
  font-size: 1rem;
}

.timeline-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-media {
  flex: 0 0 7.5rem;
  margin: 0;
}

.timeline-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.timeline-body {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 480px) {
  .timeline-content {
    flex-direction: column;
  }

  .timeline-media {
    flex-basis: auto;
    width: 9rem;
  }
}

/* ---- Reflektion: flervalsknappar ---- */
.choice-group {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.choice-btn {
  text-align: left;
  background: var(--near-white);
  border: 2px solid var(--border-grey);
  border-radius: 12px;
  padding: 1em 1.2em;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--aska);
  cursor: pointer;
}

.choice-btn:hover {
  border-color: var(--korall);
}

.choice-btn[aria-pressed="true"] {
  border-color: var(--aska);
  background: var(--malva);
  font-weight: 700;
}

.choice-feedback {
  background: var(--neon);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}

.choice-feedback[hidden] {
  display: none;
}

/* ---- Två jämförelseövningar efter varandra: tydlig avskildhet ---- */
.compare-item {
  border-left: 3px solid var(--border-grey);
  padding-left: 1.2rem;
  margin: 1.75rem 0;
}

.compare-item .choice-group {
  margin-top: 0.75rem;
}

.compare-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aska);
  opacity: 0.7;
}

/* ---- Ja/nej-kunskapsfråga ---- */
.choice-group--quiz {
  grid-template-columns: repeat(2, minmax(0, 9rem));
}

.choice-group--quiz .choice-btn {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.choice-btn.is-correct {
  border-color: #2f7a3d;
  background: var(--neon);
}

.choice-btn.is-incorrect {
  border-color: var(--korall-dark);
  background: #fbeaea;
}

/* ---- Staplade kort (organisationsnivåer, föreningens delar) ---- */
.stacked-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}

/* ---- Reflektion: fritext ---- */
.reflection-field {
  margin: 1.5rem 0;
}

.reflection-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.reflection-hint {
  font-size: 1rem;
  color: var(--aska-90);
  margin: 0.3em 0 0.8em;
}

.reflection-field textarea {
  width: 100%;
  min-height: 7rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.9em;
  border: 2px solid var(--border-grey);
  border-radius: 10px;
  resize: vertical;
}

.save-note {
  font-size: 1rem;
  color: var(--aska-90);
  margin-top: 0.5em;
  min-height: 1.2em;
}

/* ---- Slutförd-vy ---- */
.completion-panel {
  background: var(--neon);
  color: var(--aska);
  border: 2px solid var(--aska);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.completion-panel h2 {
  color: var(--aska);
}

.completion-panel p {
  margin-left: auto;
  margin-right: auto;
  color: var(--aska);
}

/* ---- Sista avslutningsrutan (efter hela kursen, inte bara en modul) ---- */
.completion-panel--grand {
  background: var(--malva);
  border: 3px solid var(--korall);
  padding: 3rem 2rem;
}

.completion-badge {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  color: var(--korall-dark);
}

.completion-panel--grand h2 {
  font-size: 1.7rem;
}

/* ---- Diplomformulär ---- */
.diploma-form {
  max-width: 30rem;
  margin: 1.75rem auto;
  padding: 1.5rem;
  background: var(--near-white);
  border: 2px solid var(--border-grey);
  border-radius: 14px;
  text-align: left;
}

.diploma-form h3 {
  margin-top: 0;
}

.diploma-form > p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.diploma-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.diploma-row label {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 1rem;
}

.diploma-row input {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.6em 0.8em;
  border: 2px solid var(--border-grey);
  border-radius: 10px;
  color: var(--aska);
  background: var(--near-white);
}

.diploma-row input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
}

.diploma-row-remove {
  flex: 0 0 auto;
  background: transparent;
  border: 2px solid var(--border-grey);
  border-radius: 10px;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--aska-90);
  cursor: pointer;
}

.diploma-row-remove:hover {
  border-color: var(--korall);
}

.diploma-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.diploma-actions .btn {
  width: 100%;
}

@media (max-width: 480px) {
  .diploma-row {
    flex-direction: column;
    align-items: stretch;
  }

  .diploma-row-remove {
    align-self: flex-end;
  }
}

/* ---- Bilder i innehållet (verksamhetsgrafik, karta, historiska bilder) ---- */
.content-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.content-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.content-figure--map {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.content-figure--banner {
  margin-top: 0;
}

/* ---- Tillfällig platshållare för grafik/bilder som väntar ---- */
.graphic-placeholder {
  border: 2px dashed var(--korall);
  border-radius: 14px;
  background: var(--light-grey);
  color: var(--aska-90);
  font-weight: 700;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin: 1.5rem 0;
}

.graphic-placeholder.is-banner {
  padding: 3.5rem 1.5rem;
  margin-top: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--light-grey);
  border-top: 1px solid var(--border-grey);
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 1rem;
}

.site-footer p {
  margin: 0 0 0.4em;
}

/* ---- Stegindikator (punkter) ---- */
.step-dots {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.step-dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border-grey);
}

.step-dots span.is-current {
  background: var(--korall);
}

.step-dots span.is-done {
  background: var(--aska);
}

/* ---- Hjälptext för dev/temporär video ---- */
.dev-note {
  font-size: 1rem;
  color: var(--aska-90);
  background: var(--malva);
  border-radius: 8px;
  padding: 0.6em 0.9em;
  margin: 0 0 1rem;
}
