/* ============================= */
/* Global bas – arkivlayout     */
/* ============================= */

html, body{
  background-color: #ffffff;
  color: #222222;
  margin: 0;
  padding: 0;
}

body{
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ============================= */
/* Rubriker                     */
/* ============================= */

h1, h2, h3{
  font-weight: normal;
}

h1{
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

h2{
  margin-top: 1.7em;
  margin-bottom: 0.7em;
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  line-height: 1.2;
}

h3{
  font-size: 1.05rem;
  margin-top: 2.0em;
  margin-bottom: 0.6em;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* ============================= */
/* Navigation                   */
/* ============================= */

nav p{ margin: 0; }

nav hr{
  margin: 12px 0 22px 0;
}

nav a.active{
  text-decoration: underline;
}

/* ============================= */
/* Länkar                       */
/* ============================= */

a{
  color: #222222;
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

main a{
  text-decoration: underline;
}

nav a{
  text-decoration: none;
}

nav a:hover{
  text-decoration: underline;
}

/* Länkfärger */
main a:hover,
main a:focus{
  color: #7a3cff;
}

nav a:hover,
nav a:focus,
nav a.active{
  color: #7a3cff;
}

/* ============================= */
/* Listor                       */
/* ============================= */

ul, ol{ padding-left: 18px; }

main ul,
main ol{ margin-left: 1.2em; }

/* ============================= */
/* Horisontella linjer          */
/* ============================= */

hr{
  border: none;
  border-top: 1px solid #dddddd;
  margin: 22px 0;
}

/* ============================= */
/* Textklasser                  */
/* ============================= */

.subtitle{
  font-style: italic;
  margin-top: 0.5em;
}

.ingress{ margin-top: 1.5em; }

.small-note{
  font-size: 0.9em;
  opacity: 0.85;
  margin-top: 0.6em;
}

.tiny-link,
.tiny{
  font-size: 0.85em;
  opacity: 0.85;
}

.tiny-link{
  margin-top: 0.8em;
  margin-bottom: 1.6em;
}

.footer-note{
  font-size: 0.9em;
  opacity: 0.8;
  margin-top: 2em;
}

/* ============================= */
/* Media-standard v1.0 – LÅST   */
/* Bilder 380px, video 520px    */
/* ============================= */

.media-image,
.media-wide{
  text-align: center;
  margin: 24px 0;
}

.media-image img,
.media-wide img{
  width: 100%;
  max-width: 380px;     /* LÅST */
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #dddddd;
}

.caption{
  text-align: center;
  font-size: 0.95em;
  opacity: 0.85;
  margin-top: 8px;
}

/* ============================= */
/* Kärnvapenepoken – bildrytm   */
/* ============================= */

.section-block > .media-wide:first-of-type{
  margin-top: 48px;
  margin-bottom: 40px;
}

.section-block > .media-wide:not(:first-of-type){
  margin-top: 28px;
  margin-bottom: 36px;
}

/* Luft efter media innan nästa rubrik/text */
.karnvapenepoken figure.media-wide,
.karnvapenepoken figure.media-image{
  margin-bottom: 34px;
}

.karnvapenepoken figure.media-wide + h2,
.karnvapenepoken figure.media-wide + h3,
.karnvapenepoken figure.media-image + h2,
.karnvapenepoken figure.media-image + h3{
  margin-top: 2.2em;
}

/* ============================= */
/* Video / embed – LÅST         */
/* ============================= */

.embed{ margin: 2em 0; }

.embed-frame{
  position: relative;
  width: 100%;
  max-width: 520px;     /* LÅST */
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.embed-frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================= */
/* Citat – inline (ersätter blockquote) */
/* ============================= */

.quote-inline{
  max-width: 520px;
  margin: 0.8em auto 1.6em auto;
  padding-left: 0;
  border-left: none;
}

.quote-inline em{
  display: block;
  font-style: italic;
  line-height: 1.55;
}

.quote-inline .quote-attrib{
  display: inline-block;
  margin-top: 6px;
  opacity: 0.85;
  font-size: 0.95em;
}

.quote-inline + .quote-inline{
  margin-top: 1em;
}

/* ============================= */
/* Sektioner                    */
/* ============================= */

.section-block{ margin: 3em 0; }

.karnvapenepoken .section-block{ margin: 3.4em 0; }

.karnvapenepoken hr{ margin: 30px 0; }

/* ============================= */
/* Notdel – lista               */
/* ============================= */

.note-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-list li{
  margin: 0 0 1.4em 0;
}

.note-list strong{
  display: block;
  margin-bottom: 0.2em;
}

.karnvapenepoken .note-list li{
  padding-bottom: 0.9em;
  border-bottom: 1px solid #eeeeee;
  margin: 0 0 1.2em 0;
}

.karnvapenepoken .note-list li:last-child{
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.center-note{
  text-align: center;
  max-width: 560px;
  margin: 1.4em auto 0 auto;
  font-size: 0.95em;
  opacity: 0.9;
}

/* ============================= */
/* Kärnvapenepoken – citatrytm  */
/* (NYTT, ENDA FIXEN)           */
/* Tajtare H3 → citat           */
/* ============================= */

.karnvapenepoken h3{
  margin-top: 1.6em;      /* lite mindre luft före rubrik */
  margin-bottom: 0.25em;  /* tajt mot citatet */
}

.karnvapenepoken h3 + .quote-inline{
  margin-top: 0.25em;     /* tajt direkt under rubriken */
}

/* Citat – SUPER NÄRA rubrik */
.karnvapenepoken h3{
  margin: 1.1em 0 0.15em 0;   /* lite luft före, nästan inget efter */
}

.karnvapenepoken h3 + .quote-inline{
  margin-top: 0;             /* tar bort citatets toppmarginal */
}
/* ============================= */
/* Sagan-citat – LÅST SNÄV RHYTM */
/* ============================= */

.karnvapenepoken h3{
  margin-top: 1.2em !important;
  margin-bottom: 0.1em !important;
}

.karnvapenepoken h3 + .quote-inline{
  margin-top: 0 !important;
}

/* ============================= */
/* Subtil global fetstil – LÅST  */
/* ============================= */

strong{
  font-weight: 400;
  color: #333333;
}
.quote-inline em{
  font-size: 0.85em;
}
/* === Finjustering: citatens ton (låg risk) === */
.quote-inline{
  font-size: 0.85em;
  opacity: 0.82;
}


