/* ============================================================
   Svenska Bänkskytteförbundet
   Modern men saklig. Inga effekter för effekternas skull.
   ============================================================ */

:root {
  /* Färger */
  --bla:          #16344f;
  --bla-mork:     #0f2537;
  --bla-ljus:     #245174;
  --massing:      #b08d4f;
  --massing-ljus: #d4b877;
  --papper:       #faf9f6;
  --papper-mork:  #f0ede6;
  --text:         #1a1a1a;
  --text-svag:    #5f6368;
  --text-ljus:    #8b9096;
  --ram:          #e0dcd2;
  --vit:          #ffffff;

  /* Typografi */
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;

  /* Mått */
  --bredd: 1140px;
  --bredd-smal: 720px;
  --radius: 4px;
  --radius-stor: 8px;

  /* Skuggor — mycket sparsamt */
  --skugga: 0 1px 2px rgba(0,0,0,.06);
  --skugga-lyft: 0 4px 14px rgba(0,0,0,.09);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--papper);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------- typografi */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bla);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: var(--bla-ljus);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--massing); }

/* ---------------------------------------------- container */

.behallare {
  width: 100%;
  max-width: var(--bredd);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 600px) {
  .behallare { padding: 0 16px; }
}

/* ---------------------------------------------- sidhuvud */

.huvud {
  background: var(--bla);
  color: var(--vit);
  border-bottom: 3px solid var(--massing);
  position: sticky;
  top: 0;
  z-index: 50;
}

.huvud-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}

.logotyp {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vit);
  text-decoration: none;
}
.logotyp:hover { color: var(--vit); }

.logotyp-marke {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--massing);
  color: var(--bla-mork);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.logotyp-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}
.logotyp-text small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .8px;
  text-transform: uppercase;
  opacity: .7;
}

/* ---------------------------------------------- meny */

.meny {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.meny a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .12s, color .12s;
}
.meny a:hover,
.meny a[aria-current="page"] {
  background: rgba(255,255,255,.12);
  color: var(--vit);
}

@media (max-width: 640px) {
  .huvud-inner { min-height: auto; padding: 12px 0; }
  .meny { width: 100%; gap: 2px; }
  .meny a { padding: 7px 10px; font-size: 14px; }
}

/* ---------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--bla-mork);
  color: var(--vit);
  overflow: hidden;
}

.hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}

.hero-innhall {
  position: relative;
  padding: 88px 0 72px;
  max-width: 640px;
}

.hero h1 {
  color: var(--vit);
  margin-bottom: .35em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin: 0;
  max-width: 52ch;
}

@media (max-width: 640px) {
  .hero-innhall { padding: 56px 0 48px; }
  .hero p { font-size: 1rem; }
}

/* ---------------------------------------------- sektion */

.sektion {
  padding: 56px 0;
}
.sektion.gra { background: var(--papper-mork); }
.sektion.smal { padding: 40px 0; }

.sektion-topp {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sektion-topp h2 { margin: 0; }

.sektion-lank {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--bla-ljus);
  white-space: nowrap;
}
.sektion-lank:hover { color: var(--massing); }

/* ---------------------------------------------- två spalter */

.tva-spalter {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .tva-spalter { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------------------------------------------- nyhetskort */

.nyhetslista {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nyhet {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--ram);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.nyhet:first-child { padding-top: 0; }
.nyhet:last-child { border-bottom: none; }
.nyhet:hover { color: inherit; }
.nyhet:hover .nyhet-titel { color: var(--massing); }

.nyhet-datum {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--text-ljus);
  margin-bottom: 4px;
}

.nyhet-titel {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bla);
  margin-bottom: 4px;
  transition: color .12s;
}

.nyhet-ingress {
  display: block;
  font-size: 15px;
  color: var(--text-svag);
  line-height: 1.55;
  margin: 0;
}

/* ---------------------------------------------- dokumentlista */

.doklista {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ram);
  border-radius: var(--radius-stor);
  background: var(--vit);
  overflow: hidden;
  box-shadow: var(--skugga);
}

.dok {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ram);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.dok:last-child { border-bottom: none; }
.dok:hover { background: var(--papper); }
.dok:hover .dok-titel { color: var(--massing); }

.dok-ikon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--papper-mork);
  color: var(--bla-ljus);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  flex: 0 0 auto;
}

.dok-text {
  flex: 1 1 auto;
  min-width: 0;
}

.dok-titel {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--bla);
  line-height: 1.35;
  transition: color .12s;
}

.dok-meta {
  display: block;
  font-size: 13px;
  color: var(--text-ljus);
}

/* ---------------------------------------------------------------
   FILTER — arsknappar och kategoriknappar
   --------------------------------------------------------------- */

.arknappar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arknapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--linje);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--bla);
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}

.arknapp:hover {
  background: #f4f7fa;
  border-color: var(--bla-ljus);
}

.arknapp[aria-pressed="true"],
.arknapp[aria-current="true"] {
  background: var(--bla);
  border-color: var(--bla);
  color: #fff;
}

.arknapp[aria-pressed="true"] .arknapp-antal,
.arknapp[aria-current="true"] .arknapp-antal {
  color: rgba(255, 255, 255, .75);
}

.arknapp-antal {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-ljus);
}

.filter-tom {
  margin: 24px 0 0;
  padding: 16px 18px;
  background: var(--papper);
  border-left: 3px solid var(--massing);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--text);
}

.lankknapp {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--bla);
  text-decoration: underline;
  cursor: pointer;
}

.lankknapp:hover {
  color: var(--massing);
}

/* ---------------------------------------------------------------
   INFORMATIONS SIDOR
   --------------------------------------------------------------- */

.sida {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.sida-text {
  margin: 0 0 0.9em;
}

.sida-text strong {
  color: var(--bla);
}

.sida-bild {
  margin: 1.6em 0;
}

.sida-bild img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--linje);
  border-radius: 4px;
  background: #fff;
}

.sida-fil {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  margin: 0 0 8px;
  background: var(--papper);
  border-left: 3px solid var(--bla-ljus);
  border-radius: 0 4px 4px 0;
}

.sida-fil a {
  flex: 1 1 auto;
  font-weight: 600;
  color: var(--bla);
  text-decoration: none;
}

.sida-fil a:hover {
  color: var(--massing);
}

.sida-fil-typ {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--bla);
  padding: 3px 7px;
  border-radius: 3px;
}

.sida a {
  color: var(--bla);
  text-decoration: underline;
  text-decoration-color: #b8c8d8;
  text-underline-offset: 2px;
}

.sida a:hover {
  color: var(--massing);
}

/* ---------------------------------------------------------------
   NYHETER
   --------------------------------------------------------------- */

.undertopp-datum {
  font-size: 15px;
  color: var(--text-ljus);
  margin-top: 4px;
}

.nyhetslista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nyhetsrad a {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 13px 16px;
  border-bottom: 1px solid var(--linje);
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
}

.nyhetsrad:first-child a {
  border-top: 1px solid var(--linje);
}

.nyhetsrad a:hover {
  background: #f4f7fa;
}

.nyhetsrad a:hover .nyhetsrad-titel {
  color: var(--massing);
}

.nyhetsrad-datum {
  flex: 0 0 130px;
  font-size: 13px;
  color: var(--text-ljus);
  font-variant-numeric: tabular-nums;
}

.nyhetsrad-titel {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 15px;
  color: var(--bla);
  transition: color .12s;
}

@media (max-width: 640px) {
  .nyhetsrad a {
    flex-direction: column;
    gap: 4px;
  }

  .nyhetsrad-datum {
    flex: 0 0 auto;
  }
}

/* Enskild nyhet */

.nyhet {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.nyhet p {
  margin: 0 0 1.1em;
}

.nyhet a {
  color: var(--bla);
  text-decoration: underline;
  text-decoration-color: #b8c8d8;
  text-underline-offset: 2px;
}

.nyhet a:hover {
  color: var(--massing);
  text-decoration-color: var(--massing);
}

.nyhet-bild {
  margin: 1.6em 0;
}

.nyhet-bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.nyhet-pdf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  margin: 0 0 8px;
  background: var(--papper);
  border-left: 3px solid var(--bla-ljus);
  border-radius: 0 4px 4px 0;
}

.nyhet-pdf a {
  flex: 1 1 auto;
  font-weight: 600;
  text-decoration: none;
}

.nyhet-pdf-typ {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--bla);
  padding: 3px 7px;
  border-radius: 3px;
}

.nyhet-tillbaka {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--linje);
}

.nyhet-tillbaka a {
  font-size: 14px;
  color: var(--bla);
  text-decoration: none;
}

.nyhet-tillbaka a:hover {
  color: var(--massing);
}

.arknapp-antal {
  font-size: 12px;
  color: var(--text-ljus);
  margin-left: 4px;
}

.dok-beskrivning {
  display: block;
  font-size: 13px;
  color: var(--text-ljus);
  margin-top: 2px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dok-pil {
  color: var(--text-ljus);
  font-size: 18px;
  flex: 0 0 auto;
}

/* ---------------------------------------------- år och filter */

.arknappar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arknapp {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--ram);
  border-radius: 999px;
  background: var(--vit);
  color: var(--bla);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.arknapp:hover {
  background: var(--bla);
  border-color: var(--bla);
  color: var(--vit);
}
.arknapp[aria-current="true"] {
  background: var(--bla);
  border-color: var(--bla);
  color: var(--vit);
}

/* ---------------------------------------------- undersida */

.undertopp {
  background: var(--bla);
  color: var(--vit);
  padding: 44px 0 38px;
  border-bottom: 3px solid var(--massing);
}
.undertopp h1 {
  color: var(--vit);
  margin: 0 0 .2em;
}
.undertopp p {
  color: rgba(255,255,255,.78);
  margin: 0;
  max-width: 62ch;
}

.brodsmulor {
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.6);
}
.brodsmulor a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.brodsmulor a:hover { color: var(--massing-ljus); }

/* ---------------------------------------------- artikel */

.artikel {
  max-width: var(--bredd-smal);
  padding: 48px 0 64px;
}

.artikel-meta {
  font-size: 14px;
  color: var(--text-ljus);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ram);
}

.artikel h2 { margin-top: 1.6em; }
.artikel h3 { margin-top: 1.4em; }

.artikel img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1em 0;
}

.artikel blockquote {
  margin: 1.4em 0;
  padding-left: 20px;
  border-left: 3px solid var(--massing);
  color: var(--text-svag);
  font-style: italic;
}

.artikel ul, .artikel ol {
  padding-left: 22px;
  margin: 0 0 1em;
}
.artikel li { margin-bottom: .4em; }

/* ---------------------------------------------- sidfot */

.fot {
  background: var(--bla-mork);
  color: rgba(255,255,255,.72);
  padding: 48px 0 32px;
  font-size: 15px;
}

.fot-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .fot-inner { grid-template-columns: 1fr; gap: 28px; }
}

.fot h3 {
  color: var(--vit);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fot a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}
.fot a:hover { color: var(--massing-ljus); }

.fot-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fot-lista li { margin-bottom: 8px; }

.fot-neder {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.45);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------------------- tillgänglighet */

:focus-visible {
  outline: 3px solid var(--massing);
  outline-offset: 2px;
}

.hoppa-over {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--massing);
  color: var(--bla-mork);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 100;
}
.hoppa-over:focus {
  left: 16px;
  top: 16px;
}

.skarmlasare {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}



