@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Days+One&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
--transparent: transparent;
--grey: grey;
--lightgrey: lightgrey;
--lightgrey1: #efefef;
--lightgrey2: #e6e6e6;
--lightgrey3: #696969;
--lightergrey: #dedede;
--darkgrey: #585858;
--whitesmoke: whitesmoke;
--black: #383838;
--lightergrey: #dedede;
--light-darkgrey: #d8d8d8;
--grey1: #bbbbbb;
--grey-green: #effff1;
--grey2: #ebebeb;
--default-white: white;
--default-darkwhite: #f3f3f3;
--sw-info-color: #3490dc;
--layout-row-shaddow-color-light: rgba(0,0,0,0.1);
--layout-row-shaddow-color-dark: rgba(0,0,0,0.2);
--calendar-selection-background-color: white;
--theme-heading-color: black;
--theme-heading1-color: black;
--theme-heading2-color: black;
--theme-heading3-color: black;
--theme-font-color: #331919;
--theme-body-font-color: #424242;
--theme-color-lighten-10: hsl(var(--theme-color),40%);
--theme-color-lighten-20: hsl(var(--theme-color),30%);
--theme-color-darken-10: hsl(var(--theme-color),60%);
--theme-color-darken-20: hsl(var(--theme-color),70%);
--theme-color-contrast: black;
--donate-wizard-button-next-color: #585858;
--theme-color: whitesmoke;
--default-black: var(--black);
--default-grey: var(--grey);
--navbar-background-color: var(--theme-nav-backgroundcolor);
--navbar-collapsed-background-color: var(--whitesmoke);
--navbar-font-color: var(--theme-nav-color);
--navbar-collapsed-font-color: var(--default-black);
--page-title-border-color: var(--theme-color);
--footer-background-color: var(--theme-color);
--footer-font-color: var(--theme-color-contrast);
--cta-events-date-border-color: var(--theme-color);
}

:root {
  --ff-libre-franklin: "Libre Franklin", sans-serif;
  --ff-inter: "Inter", sans-serif;

  --clr-ilder: hsl(210deg 8.33% 95.29%);
  --clr-ilder-op-1: hsl(210 8% 98% / 1);
  --clr-ilder-op-2: hsl(210 8% 100% / 1);
  --clr-blue-050: #f0f9ff;
  --clr-blue-100: #e0f2fe;
  --clr-blue-200: #b9e6fe;
  --clr-blue-300: #7cd3fd;
  --clr-blue-400: #36befa;
  --clr-blue-500: #0ca5eb;
  --clr-blue-600: #0084c9;
  --clr-blue-700: #0269a2;
  --clr-blue-800: #065986;
  --clr-blue-900: #0b4a6f;
  --clr-blue-950: #072f4a;
  --clr-white: #ffffff;
  --clr-whitesmoke: #f5f5f5;

  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;
  --fw-900: 900;
}

/* GENERAL */

body {
  background: #f8faff;
}

html {
  font-family: var(--ff-inter);
  font-weight: var(--fw-300);
}

h1,
h2,
h3 {
  font-family: var(--ff-libre-franklin);
  color: var(--clr-blue-950);
  text-wrap: pretty;
}


/* NAVBAR */

.login-wrapper {
}

.login {
  display: flex;
  justify-content: center;
  padding: 8px 16px;
  background: var(--clr-blue-400);
  color: white !important;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.4rem, 1.6rem, 2.1rem);
  border-radius: 5px;
  font-weight: var(--fw-500);
  transition: 0.2s ease;
}

.login:hover {
  background-color: var(--clr-blue-800);
  transform: translateY(-1px);
}

.navbar__body-dynamic .navbar__bars {
  /* FJERN NAVBAR */
  display: none;
}

.navbar {
  width: 100%;
  min-height: 80px;
}

.navbar__body {
  width: 100%;
  justify-content: space-between;
  padding-block: 10px;
}

.navbar__logo {
  width: clamp(20px, 21rem, 37vw);
  max-height: fit-content;
}

.navbar__collapse--show {
  height: calc(100svh - 88px);
}

/* HERO*/

.frontpage .grid__md--2 {
  align-items: center;
  padding-block: 4rem;
}

.zigzag-list__content-container {
  background-color: transparent;
}

.zigzag-list__image-container img {
  height: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
}

.zigzag-list__heading {
  font-size: calc(3.6rem + 1.7vw);
  font-weight: var(--fw-700);
  color: var(--clr-blue-950);
  text-wrap: balance;
  text-wrap-mode: nowrap;
  margin-bottom: 12px;
}

.zigzag-list__content {
  letter-spacing: normal;
  gap: 1rem;
}

.frontpage .zigzag-list__content span {
  font-size: clamp(20px, 2.3rem, 3vw) !important;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 768px) {
  .frontpage .grid__md--2 {
    padding-block: 2rem;
  }

  .zigzag-list--reverse-mobile {
    flex-direction: column;
    text-align: center;
  }

  .zigzag-list__image {
    max-height: 100%;
  }
}

/* ===== Summary (minimal, self-contained) ===== */
:root {
  --brand: #3a7afe;
  --bg: #ffffff;
  --text: var(--clr-blue-950);
  --muted: #5e6b7a;
  --border: #e8edf4;
  --arrow: #d1d3d7;
  --shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

/* Container */
.summary {
  background: #f8faff;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
}

.summary-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 1280px;
  width: 100%;
}

/* Intro */
.summary-card__intro h2 {
  margin: 0 0 0.4rem 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
}

.summary-card__intro p {
  color: var(--muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
font-size: clamp(1.6rem, 1.4vw, 1.8rem);
}


.summary-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3rem;
}

/* Feature pills */
.summary-card__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
}

.summary-card__feature-pill {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  place-items: center;
  gap: 10px;
  padding: 1rem;
  background: #fdfdfd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #36befa; /* icon color */
  font-size: 1.6rem; /* icon size */
  position: relative;
  width: 100%;
}

.summary-card__feature-label {
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--text);
  width: 100%;
}

/* ----- Mobile (stacked) with vertical connectors ----- */
@media (max-width: 699px) {
  .summary-card__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .summary-card__feature-pill {
    justify-content: flex-start;
    text-align: left;
  }

  .summary-card__feature-pill:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 6%;
    transform: translateX(-50%);
    bottom: -22px;
    width: 2px;
    height: 22px;
    background: var(--arrow);
    opacity: 0.6;
    border-radius: 2px;
  }
}

/* ----- Desktop branched flow ----- */
@media (min-width: 700px) {
  .summary-card__grid {
    grid-template-columns: 1fr 1fr; /* features | desc (optional) */
    align-items: start;
    column-gap: 2rem;
  }

  /* Two-row, 3-column matrix */
  .summary-card__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem 2rem;
    justify-items: center;
    position: relative;
  }

  /* Place pills explicitly (L-shaped flow):
     Row 1: 1 (col1), 2 (col2), 3 (col3)
     Row 2: 4 (col3), 5 (col2), 6 (col1)  */
  .summary-card__feature-pill:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .summary-card__feature-pill:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .summary-card__feature-pill:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .summary-card__feature-pill:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
  .summary-card__feature-pill:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }
  .summary-card__feature-pill:nth-child(6) {
    grid-column: 1;
    grid-row: 2;
  }

  /* Clear any inherited connectors from elsewhere in your project */
  .summary-card__feature-pill::before,
  .summary-card__feature-pill::after {
    content: none;
  }

  /* Row 1 horizontal lines: 1 -> 2, 2 -> 3 (right side) */
  .summary-card__feature-pill:nth-child(1)::after,
  .summary-card__feature-pill:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -26px;
    transform: translateY(-50%);
    width: 26px;
    height: 2px;
    background: var(--arrow);
    opacity: 0.85;
  }

  /* Down from Innkalling (3) to second row */
  .summary-card__feature-pill:nth-child(3)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    width: 2px;
    height: 28px;
    background: var(--arrow);
    opacity: 0.8;
    border-radius: 2px;
  }

  /* Row 2 reversed flow: Referat <- Godkjenning <- Deling
     Add LEFT-side lines on (5) and (6) */
  .summary-card__feature-pill:nth-child(5)::before,
  .summary-card__feature-pill:nth-child(6)::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        width: 21px;
        height: 2px;
        background: var(--arrow);
        opacity: 0.85;
  }
}

/* ===== Optional: description list (kept minimal) ===== */
.summary-card__desc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.summary-card__desc-item {
  border: 1px dashed #e7ecf4;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fcfdff;
}

.summary-card__desc-item h3 {
  margin: 0 0 0.35rem 0;
  color: var(--text);
}

.summary-card__desc-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: balance;
}

@media (min-width: 700px) {
  .summary-card__desc {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
