/*
Theme Name: BNVVOF
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Template: twentytwentyfive
Author: Bräcke Norra Viltvårdsområdesförening
Description: Utseende för föreningens hemsida, byggt på WordPress-temat Twenty Twenty-Five. Inloggning, sektioner och medlemssidor följer med.
Version: 2.2.15
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: bnvvof
*/

@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
h1, h2, h3, h4, .wp-block-site-title, .bnvvof-brand strong {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bnvvof-sidhuvud,
.bnvvof-sidhuvud.has-contrast-background-color {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(105deg, #1a4a32 0%, #2d6a45 58%, #3f7d4c 100%) !important;
  color: #f6f3ea !important;
  border-bottom: 4px solid #6e8f46;
  box-shadow: inset 0 -3px 0 #d4a84b, 0 10px 28px rgba(26, 74, 50, 0.22);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.admin-bar .bnvvof-sidhuvud {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .bnvvof-sidhuvud {
    top: 46px;
  }
}
.bnvvof-sidhuvud-plats {
  height: calc(40px + 0.8rem + 4px);
}
html {
  scroll-padding-top: calc(40px + 0.8rem + 4px);
}
.bnvvof-huvudrad {
  flex-wrap: nowrap !important;
  align-items: center !important;
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  gap: 0.75rem 1rem;
}
.bnvvof-brand,
.bnvvof-sidhuvud .bnvvof-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: #f6f3ea !important;
  text-decoration: none;
  min-width: 0;
}
.bnvvof-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.bnvvof-brand strong,
.bnvvof-sidhuvud .bnvvof-brand strong {
  display: block;
  min-width: 0;
  color: #f6f3ea !important;
  font-size: 1.25rem;
  line-height: 1;
}
.bnvvof-brand small,
.bnvvof-sidhuvud .bnvvof-brand small {
  display: block;
  color: #d7e4c8 !important;
  max-width: 16rem;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.15;
}
.bnvvof-huvudknappar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex: none;
  position: relative;
}
.bnvvof-menyfalt {
  position: static;
  flex: none;
}
.bnvvof-menyfalt > summary.bnvvof-knapp {
  list-style: none;
}
.bnvvof-menyfalt > summary.bnvvof-knapp::-webkit-details-marker {
  display: none;
}
.bnvvof-menyfalt > summary.bnvvof-knapp::marker {
  content: "";
}
.bnvvof-meny,
.bnvvof-meny ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bnvvof-meny {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(18.5rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow: auto;
  background: #245c3e;
  border: 1px solid rgba(212, 168, 75, 0.45);
  border-radius: 14px;
  padding: 0.35rem;
  box-shadow: 0 16px 36px rgba(16, 38, 30, 0.28);
  z-index: 40;
}
.bnvvof-meny a,
.bnvvof-sidhuvud .bnvvof-meny a {
  display: block;
  color: #f6f3ea !important;
  text-decoration: none;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
}
.bnvvof-meny a:hover,
.bnvvof-sidhuvud .bnvvof-meny a:hover {
  background: rgba(212, 168, 75, 0.28) !important;
  color: #f8e7b8 !important;
}
.bnvvof-meny .sub-menu {
  display: flex;
  position: static;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  box-shadow: none;
}
.bnvvof-meny .sub-menu a,
.bnvvof-sidhuvud .bnvvof-meny .sub-menu a {
  padding-left: 1.45rem;
  color: #d7e4c8 !important;
  font-size: 0.95rem;
}
.bnvvof-meny-extra:first-of-type {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(212, 168, 75, 0.35);
}
.bnvvof-knapp,
.falt button,
dialog.behorighet button[type="submit"] {
  display: inline-block;
  background: #e4c36a;
  color: #1a3d2a;
  border: 1px solid #c4923a;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
a.bnvvof-knapp,
a.bnvvof-knapp-primar,
.bnvvof-sidhuvud summary.bnvvof-knapp {
  background: #e4c36a !important;
  color: #1a3d2a !important;
  border-color: #c4923a !important;
}
.bnvvof-knapp-mork,
.bnvvof-hero a.bnvvof-knapp-mork,
.bnvvof-sidhuvud a.bnvvof-knapp-mork,
.falt button,
dialog.behorighet button[type="submit"] {
  background: #8d4034 !important;
  color: #f6f3ea !important;
  border-color: #6e3028 !important;
}
.bnvvof-sidhuvud a.bnvvof-knapp-mork:hover,
.bnvvof-hero a.bnvvof-knapp-mork:hover {
  background: #a04b3d !important;
  color: #f6f3ea !important;
}
.bnvvof-knapp:hover,
.bnvvof-sidhuvud summary.bnvvof-knapp:hover { background: #f0d48a !important; color: #1a3d2a !important; }

.bnvvof-hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  background: #1a4a32;
  color: #f6f3ea;
  overflow: hidden;
}
.bnvvof-hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 18.5rem;
  padding: 1.85rem clamp(1.25rem, 4vw, 3.25rem) 1.6rem;
  max-width: 38rem;
  background: linear-gradient(100deg, rgba(22, 58, 40, 0.5) 0%, rgba(22, 58, 40, 0.22) 58%, rgba(22, 58, 40, 0) 100%);
}
.bnvvof-hero.har-knappar .bnvvof-hero-text {
  min-height: 20rem;
  padding-bottom: 4.6rem;
}
.bnvvof-hero-knappar {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0.85rem clamp(1.25rem, 4vw, 3.25rem) 1rem;
}
.bnvvof-overrad {
  margin: 0 0 0.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #f0d48a;
}
.bnvvof-hero p.bnvvof-sol {
  margin: 0.7rem 0 0;
  color: #f0d48a;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  max-width: 34rem;
}
.bnvvof-hero h1 {
  margin: 0 0 0.5rem;
  color: #f7f4ea;
  font-size: clamp(1.8rem, 2.8vw, 2.55rem);
  line-height: 1.08;
  max-width: 15em;
}
.bnvvof-hero p:last-child { margin: 0; font-size: 1.05rem; line-height: 1.45; color: #e7f0df; max-width: 34rem; }
.bnvvof-hero img {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 18%;
  width: 82%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 40%;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.75) 14%, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.75) 14%, #000 32%);
}
.bnvvof-yta { padding: 2.2rem 0 3rem; }
.bnvvof-yta.is-layout-constrained > .wp-block-shortcode {
  max-width: var(--wp--style--global--wide-size, 1180px);
}
.bnvvof-framsida {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
.bnvvof-spalt h2 { margin-top: 0; }
.bnvvof-spalt > p { margin-top: 0; }
.bnvvof-flashform { margin: 0.8rem 0 1.2rem; }
.nyheter { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.nyheter,
.nyheter h3,
.nyheter h3 a,
.nyheter .prosa,
.nyheter p { color: #1c1914; }
.nyheter li {
  background: #fffdf8;
  border: 1px solid #e4dccb;
  border-radius: 18px;
  padding: 1.15rem 1.25rem 0.4rem;
  box-shadow: 0 12px 32px rgba(16, 38, 30, 0.05);
}
.nyheter time { color: #6b6256; font-size: 0.92rem; }
.nyheter h3 { margin: 0.25rem 0 0.4rem; }
.nyheter h3 a { text-decoration: none; }
.bricka {
  display: inline-block;
  margin-left: 0.4rem;
  background: #2f6b45;
  color: #f6f3ea;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-size: 0.75rem;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0;
}
.bnvvof-sidfot,
.bnvvof-sidfot.has-contrast-background-color {
  background: linear-gradient(105deg, #1a4a32 0%, #2d6a45 100%) !important;
  border-top: 4px solid #6e8f46;
  box-shadow: inset 0 3px 0 #d4a84b;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.bnvvof-sidfot a { color: #f0d48a; }
.falt { display: grid; gap: 0.8rem; margin: 1rem 0 2rem; max-width: 32rem; }
.falt label { display: grid; gap: 0.25rem; font-weight: 600; }
.falt label.rad { display: flex; align-items: center; gap: 0.45rem; }
.falt label.rad input { width: auto; }
.falt input,
.falt textarea,
.falt select,
dialog.behorighet input,
dialog.behorighet select,
.bnvvof-formular input,
.bnvvof-formular textarea,
.bnvvof-formular select {
  font: inherit;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b7ad9c;
  border-radius: 8px;
  background: #fff !important;
  color: #1c1914 !important;
}
.meddelande { padding: 0.7rem 0.9rem; border-radius: 8px; }
.meddelande.ok { background: #e5f0e6; }
.meddelande.error { background: #f8e4df; }
dialog.behorighet {
  border: 1px solid #d9d0bf;
  border-radius: 16px;
  max-width: 34rem;
  width: calc(100% - 2rem);
  padding: 1.2rem 1.3rem;
  background: #fffdf8 !important;
  color: #1c1914 !important;
}
dialog.behorighet h2,
dialog.behorighet p,
dialog.behorighet li,
dialog.behorighet label,
dialog.behorighet ol,
dialog.behorighet a {
  color: #1c1914 !important;
}
dialog.behorighet::backdrop { background: rgba(14, 34, 25, 0.55); }
dialog.behorighet .textknapp {
  margin-left: 0.8rem;
  background: transparent !important;
  border: 0;
  color: #9c3d2e !important;
  font: inherit;
  cursor: pointer;
}
.bnvvof-formular,
.bnvvof-formular h1,
.bnvvof-formular h2,
.bnvvof-formular p,
.bnvvof-formular li,
.bnvvof-formular label,
.bnvvof-formular a {
  color: #1c1914;
}
.sektionskort {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sektionskort li {
  background: #fffdf8;
  border: 1px solid #e4dccb;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 32px rgba(16, 38, 30, 0.05);
}
.sektionskort a { text-decoration: none; }
.sektion-panel { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.filtrad { list-style: none; padding: 0; margin: 0 0 1rem; }
.filtrad li { padding: 0.45rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.filrad { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.filrad form { margin: 0; }
.filrad .textknapp { background: none; border: 0; color: #9c3d2e; cursor: pointer; padding: 0; font: inherit; }
.filrad .versioner { flex: 1 0 100%; margin: 0.15rem 0 0.35rem; }
.versioner summary { cursor: pointer; font-weight: 600; }
.versioner ul { list-style: none; margin: 0.45rem 0; padding: 0; display: grid; gap: 0.28rem; }
.versioner li { color: #3c3832; }
.versioner .falt { margin: 0.7rem 0; }
.sida .versioner { margin: 0.8rem 0 1.2rem; }
.dokumentvisning { width: 100%; height: 75vh; border: 1px solid #d9d0bf; background: white; }
.dokumentbild { display: block; max-width: 100%; margin-top: 0.5rem; }
.dokumenttext { white-space: pre-wrap; background: white; border: 1px solid #d9d0bf; padding: 1rem; }
.bnvvof-uppdaterad { color: #5d564b; font-size: 0.95rem; }
.bnvvof-chatt { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.bnvvof-chatt li {
  background: #fffdf8;
  border: 1px solid #e4dccb;
  border-radius: 14px;
  padding: 0.85rem 1rem 0.35rem;
}
.bnvvof-chatt-meta { margin: 0 0 0.35rem; color: #6b6256; font-size: 0.92rem; }
.bnvvof-chatt-meta strong { color: #1c1914; }
.bnvvof-chatt .textknapp { background: none; border: 0; color: #9c3d2e; cursor: pointer; padding: 0; font: inherit; }

@media (max-width: 700px) {
  .bnvvof-huvudrad > * {
    min-width: 0;
  }
  .bnvvof-huvudrad > *:first-child {
    flex: 1 1 auto;
    overflow: hidden;
  }
  .bnvvof-huvudrad > *:last-child {
    flex: none;
    min-width: max-content;
    overflow: visible;
  }
  .bnvvof-brand small,
  .bnvvof-sidhuvud .bnvvof-brand small {
    display: none;
  }
  .bnvvof-brand strong,
  .bnvvof-sidhuvud .bnvvof-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bnvvof-huvudknappar {
    gap: 0.35rem;
  }
  .bnvvof-sidhuvud summary.bnvvof-knapp,
  .bnvvof-sidhuvud a.bnvvof-knapp-mork {
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .sektionskort { grid-template-columns: 1fr; }
  .bnvvof-framsida { grid-template-columns: 1fr; }
  .bnvvof-hero {
    display: block;
    min-height: 0;
  }
  .bnvvof-hero-text {
    min-height: 16rem;
    max-width: none;
    padding: 1.35rem 1.2rem 1.55rem;
    background: linear-gradient(180deg, rgba(18, 46, 32, 0.38) 0%, rgba(18, 46, 32, 0.08) 46%, rgba(18, 46, 32, 0) 68%);
  }
  .bnvvof-hero.har-knappar .bnvvof-hero-text {
    min-height: 18rem;
    padding-bottom: 4.4rem;
  }
  .bnvvof-hero-knappar { padding-left: 1.2rem; padding-right: 1.2rem; }
  .bnvvof-hero img {
    left: 0;
    right: 0;
    width: 100%;
    object-position: 68% 36%;
    opacity: 0.9;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
