/*
Theme Name: Psykolog Pasgaard
Theme URI: https://psykologpasgaard.dk/
Description: Projektspecifikt bloktema til Psykolog Pasgaard.
Author: Psykolog Pasgaard
Version: 0.4.2
Template: extendable
Text Domain: pasgaard
*/

:root {
  --pasgaard-paper: #f7f3ee;
  --pasgaard-ink: #333333;
  --pasgaard-petrol: #083f47;
  --pasgaard-line: #b9b1a9;
  --pasgaard-soft: #ebe5de;
  --pasgaard-white: #fffdf9;
  --pasgaard-content: 760px;
  --pasgaard-wide: 1240px;
  --pasgaard-radius: 8px;
  --pasgaard-header-height: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--pasgaard-paper);
  color: var(--pasgaard-ink);
  font-family: var(--wp--preset--font-family--manrope), Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-size: 18px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
  color: var(--pasgaard-petrol);
  font-family: var(--wp--preset--font-family--gotu), Gotu, sans-serif;
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 4.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--pasgaard-petrol);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #d18852;
  outline-offset: 4px;
}

.wp-site-blocks {
  overflow: clip;
}

.pasgaard-site-header {
  background: color-mix(in srgb, var(--pasgaard-paper) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--pasgaard-line) 70%, transparent);
  position: relative;
  z-index: 30;
}

.pasgaard-site-header__inner {
  min-height: var(--pasgaard-header-height);
  padding: 18px clamp(20px, 4vw, 56px);
}

.pasgaard-site-header .custom-logo {
  height: auto;
  max-width: min(210px, 45vw);
}

.pasgaard-site-header .wp-block-navigation {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.pasgaard-site-header .wp-block-navigation-item__content {
  padding-block: 0.45rem;
  text-decoration: none;
}

.pasgaard-site-header .current-menu-item > .wp-block-navigation-item__content,
.pasgaard-site-header .wp-block-navigation-item__content:hover {
  text-decoration: underline;
  text-underline-offset: 0.45em;
}

.pasgaard-main {
  margin: 0;
}

.pasgaard-front-hero {
  padding: clamp(52px, 8vw, 118px) clamp(20px, 4vw, 56px) clamp(44px, 7vw, 92px);
}

.pasgaard-front-title {
  margin-bottom: clamp(34px, 5vw, 68px);
  max-width: 1100px;
}

.pasgaard-front-title h1 {
  margin: 0;
  max-width: 12ch;
}

.pasgaard-front-image {
  margin: 0;
}

.pasgaard-front-image img {
  aspect-ratio: 16 / 8.65;
  border-radius: var(--pasgaard-radius);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.pasgaard-entrances {
  border-bottom: 1px solid var(--pasgaard-line);
  border-top: 1px solid var(--pasgaard-line);
  gap: 0 !important;
  margin-top: clamp(40px, 6vw, 76px) !important;
}

.pasgaard-entrances > .wp-block-column {
  border-left: 1px solid var(--pasgaard-line);
  min-width: 0;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
}

.pasgaard-entrances > .wp-block-column:first-child {
  border-left: 0;
}

.pasgaard-entrances h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  margin: 0;
}

.pasgaard-entrances a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
}

.pasgaard-entrances a::after {
  content: "↗";
  font-family: Manrope, sans-serif;
  font-size: 0.7em;
  font-weight: 400;
  margin-left: 0.8em;
  transition: transform 180ms ease;
}

.pasgaard-entrances a:hover::after {
  transform: translate(0.18em, -0.18em);
}

.pasgaard-home-content {
  border-top: 0;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 4vw, 56px);
}

.pasgaard-home-content > .wp-block-group,
.pasgaard-home-content > .wp-block-columns {
  max-width: var(--pasgaard-wide) !important;
}

.pasgaard-home-content h1,
.pasgaard-home-content h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem) !important;
  margin-top: 0 !important;
}

.pasgaard-home-content .wp-block-button__link,
.entry-content .wp-block-button__link {
  background: transparent !important;
  border: 1px solid var(--pasgaard-petrol) !important;
  border-radius: 999px !important;
  color: var(--pasgaard-petrol) !important;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  padding: 0.75rem 1.25rem;
}

.pasgaard-home-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover {
  background: var(--pasgaard-petrol) !important;
  color: var(--pasgaard-paper) !important;
}

.pasgaard-page .entry-content {
  margin-top: 0;
}

.pasgaard-page .entry-content > .wp-block-group.alignfull {
  border-bottom: 1px solid var(--pasgaard-line) !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding-bottom: clamp(64px, 8vw, 112px) !important;
  padding-top: clamp(64px, 8vw, 112px) !important;
}

.pasgaard-page .entry-content > .wp-block-group.alignfull:first-child {
  padding-top: clamp(52px, 8vw, 104px) !important;
}

.pasgaard-page .entry-content h1 {
  font-size: clamp(3rem, 6.8vw, 6.6rem) !important;
  max-width: 13ch;
}

.pasgaard-page .entry-content h2 {
  font-size: clamp(2rem, 4vw, 3.85rem) !important;
}

.pasgaard-page .entry-content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem) !important;
}

.pasgaard-page .entry-content .alignwide {
  max-width: var(--pasgaard-wide) !important;
}

.pasgaard-page .entry-content p,
.pasgaard-page .entry-content li {
  max-width: 72ch;
}

.pasgaard-transition {
  align-items: end;
  border-bottom: 1px solid var(--pasgaard-line);
  display: grid;
  gap: 1rem 3rem;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--pasgaard-wide);
  padding: clamp(54px, 7vw, 92px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 42px);
}

.pasgaard-transition__label {
  color: var(--pasgaard-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.pasgaard-transition__title {
  color: var(--pasgaard-petrol);
  font-family: var(--wp--preset--font-family--gotu), Gotu, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.pasgaard-section-nav {
  background: color-mix(in srgb, var(--pasgaard-paper) 96%, transparent);
  border-bottom: 1px solid var(--pasgaard-line);
  border-top: 1px solid var(--pasgaard-line);
  margin: 0 calc(50% - 50vw);
  padding: 0 clamp(20px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 22;
}

.admin-bar .pasgaard-section-nav {
  top: 32px;
}

.pasgaard-section-nav__links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0 auto;
  max-width: var(--pasgaard-wide);
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
}

.pasgaard-section-nav a {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1rem 0;
  text-decoration: none;
  white-space: nowrap;
}

.pasgaard-section-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.pasgaard-section-nav--mobile {
  display: none;
}

.page-id-4234 .entry-content [id] {
  scroll-margin-top: 6.5rem;
}

.page-id-4234 .pasgaard-section--clinical {
  background: var(--pasgaard-paper) !important;
}

.page-id-4234 .pasgaard-section--clinical .wp-block-columns {
  gap: clamp(32px, 6vw, 92px) !important;
}

.page-id-4234 .pasgaard-section--focus .wp-block-columns,
.page-id-4234 .pasgaard-section--outcomes .wp-block-columns {
  gap: 0 !important;
}

.page-id-4234 .pasgaard-section--focus .wp-block-column,
.page-id-4234 .pasgaard-section--outcomes .wp-block-column {
  border-top: 1px solid var(--pasgaard-line);
  padding: clamp(24px, 3vw, 38px) clamp(0px, 2vw, 28px) clamp(32px, 4vw, 48px) !important;
}

.page-id-4234 .pasgaard-section--progression .wp-block-columns {
  gap: 0 !important;
}

.page-id-4234 .pasgaard-section--progression .wp-block-column {
  border-left: 1px solid var(--pasgaard-line);
  padding: clamp(22px, 3vw, 38px) !important;
}

.page-id-4234 .pasgaard-section--progression .wp-block-column:first-child {
  border-left: 0;
}

.page-id-4234 .pasgaard-section--learning {
  background: var(--pasgaard-white) !important;
}

.page-id-4234 .pasgaard-section--essay .alignwide {
  display: grid;
  gap: clamp(30px, 7vw, 100px);
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
}

.page-id-4234 .pasgaard-section--dates {
  background: var(--pasgaard-petrol) !important;
  color: var(--pasgaard-paper) !important;
}

.page-id-4234 .pasgaard-section--dates h2,
.page-id-4234 .pasgaard-section--dates h3,
.page-id-4234 .pasgaard-section--dates p,
.page-id-4234 .pasgaard-section--dates li,
.page-id-4234 .pasgaard-section--dates a {
  color: var(--pasgaard-paper) !important;
}

.page-id-4234 .pasgaard-section--dates .wp-block-column {
  border-top: 1px solid color-mix(in srgb, var(--pasgaard-paper) 45%, transparent);
  padding-top: 1.5rem;
}

.page-id-4234 .pasgaard-section--approvals {
  background: var(--pasgaard-soft) !important;
}

.page-id-4234 .pasgaard-section--approvals .wp-block-column {
  border-left: 3px solid var(--pasgaard-petrol);
  padding-left: clamp(18px, 3vw, 34px);
}

.page-id-4234 .pasgaard-section--practical .wp-block-column {
  border-top: 1px solid var(--pasgaard-line);
  padding-top: 1.25rem;
}

.page-id-4234 .pasgaard-section--audience {
  background: var(--pasgaard-white) !important;
}

.page-id-4234 .pasgaard-section--audience .wp-block-column {
  border-top: 1px solid var(--pasgaard-line);
  padding-top: 1.5rem;
}

.page-id-4234 .pasgaard-section--contact {
  background: var(--pasgaard-soft) !important;
}

.pasgaard-site-footer {
  background: var(--pasgaard-petrol);
  color: var(--pasgaard-paper);
  padding: clamp(54px, 8vw, 96px) clamp(20px, 4vw, 56px) 38px;
}

.pasgaard-site-footer a,
.pasgaard-site-footer p {
  color: var(--pasgaard-paper);
}

.pasgaard-site-footer .custom-logo {
  filter: brightness(0) invert(1);
  height: auto;
  max-width: 210px;
}

.pasgaard-site-footer__grid {
  align-items: start;
  gap: clamp(32px, 6vw, 92px) !important;
}

.pasgaard-site-footer__meta {
  border-top: 1px solid color-mix(in srgb, var(--pasgaard-paper) 35%, transparent);
  font-size: 0.75rem;
  margin-top: clamp(42px, 6vw, 72px) !important;
  padding-top: 1.2rem;
}

.cmplz-cookiebanner {
  background: var(--pasgaard-paper) !important;
  border: 1px solid var(--pasgaard-line) !important;
  border-radius: var(--pasgaard-radius) !important;
  box-shadow: none !important;
  color: var(--pasgaard-ink) !important;
  font-family: var(--wp--preset--font-family--manrope), Manrope, sans-serif !important;
}

.cmplz-cookiebanner .cmplz-title {
  color: var(--pasgaard-petrol) !important;
  font-family: var(--wp--preset--font-family--gotu), Gotu, sans-serif !important;
  font-weight: 500 !important;
}

.cmplz-cookiebanner .cmplz-btn {
  border: 1px solid var(--pasgaard-petrol) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-weight: 650 !important;
}

.cmplz-cookiebanner .cmplz-accept {
  background: var(--pasgaard-petrol) !important;
  color: var(--pasgaard-paper) !important;
}

.cmplz-cookiebanner .cmplz-deny,
.cmplz-cookiebanner .cmplz-view-preferences {
  background: transparent !important;
  color: var(--pasgaard-petrol) !important;
}

@media (max-width: 900px) {
  :root {
    --pasgaard-header-height: 76px;
  }

  .pasgaard-entrances {
    display: block !important;
  }

  .pasgaard-entrances > .wp-block-column {
    border-left: 0;
    border-top: 1px solid var(--pasgaard-line);
  }

  .pasgaard-entrances > .wp-block-column:first-child {
    border-top: 0;
  }

  .page-id-4234 .pasgaard-section--essay .alignwide {
    display: block;
  }

  .page-id-4234 .pasgaard-section--progression .wp-block-columns {
    display: block;
  }

  .page-id-4234 .pasgaard-section--progression .wp-block-column {
    border-left: 0;
    border-top: 1px solid var(--pasgaard-line);
  }
}

@media (max-width: 680px) {
  body,
  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .pasgaard-site-header__inner {
    padding: 14px 20px;
  }

  .pasgaard-front-hero {
    padding-inline: 20px;
  }

  .pasgaard-front-image img {
    aspect-ratio: 4 / 3;
  }

  .pasgaard-transition {
    display: block;
  }

  .pasgaard-transition__title {
    margin-top: 0.75rem;
  }

  .pasgaard-section-nav--desktop {
    display: none;
  }

  .pasgaard-section-nav--mobile {
    display: block;
    padding-block: 0.65rem;
  }

  .pasgaard-section-nav--mobile summary {
    color: var(--pasgaard-petrol);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    list-style: none;
  }

  .pasgaard-section-nav--mobile summary::-webkit-details-marker {
    display: none;
  }

  .pasgaard-section-nav--mobile summary::after {
    content: "+";
    float: right;
  }

  .pasgaard-section-nav--mobile[open] summary::after {
    content: "–";
  }

  .pasgaard-section-nav--mobile .pasgaard-section-nav__links {
    display: grid;
    gap: 0;
    max-height: min(66vh, 520px);
    overflow: auto;
    padding-top: 0.65rem;
  }

  .pasgaard-section-nav--mobile a {
    border-top: 1px solid var(--pasgaard-line);
    padding: 0.72rem 0;
  }

  .page-id-4234 .entry-content .wp-block-columns,
  .pasgaard-site-footer__grid {
    display: block !important;
  }

  .page-id-4234 .entry-content .wp-block-column,
  .pasgaard-site-footer__grid > .wp-block-column {
    margin-bottom: 2rem;
  }

  .pasgaard-site-footer__grid > .wp-block-column:first-child {
    margin-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Danish 404 template */
.error404 .wp-site-blocks,
.error404 .wp-site-blocks > * {
  margin-block-start: 0;
}

.pasgaard-not-found-page {
  --paper: #f4f0e9;
  --paper2: #ebe5dc;
  --white: #fbfaf7;
  --ink: #29312f;
  --teal: #0d5057;
  --muted: #6d6d66;
  --line: #cec6ba;
  --max: 1240px;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.66;
}

.pasgaard-not-found-page * {
  box-sizing: border-box;
}

.pasgaard-not-found-page a {
  color: inherit;
  text-decoration: none;
}

.pasgaard-not-found-page .wrap {
  width: min(calc(100% - 72px), var(--max));
  margin: auto;
}

.pasgaard-not-found-page header {
  position: relative;
  z-index: 120;
  background: var(--white);
  border-bottom: 1px solid rgba(40, 49, 47, 0.18);
}

.pasgaard-not-found-page .nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  gap: 42px;
}

.pasgaard-not-found-page .logo img {
  display: block;
  width: 155px;
  height: auto;
  mix-blend-mode: multiply;
}

.pasgaard-not-found-page .mobile-menu-toggle {
  display: none;
}

.pasgaard-not-found-page .menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.pasgaard-not-found-page .menu > a,
.pasgaard-not-found-page .nav-dropdown > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid transparent;
}

.pasgaard-not-found-page .menu > a:hover,
.pasgaard-not-found-page .nav-dropdown > a:hover {
  border-color: currentColor;
}

.pasgaard-not-found-page .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.pasgaard-not-found-page .nav-dropdown__toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  font: inherit;
  cursor: pointer;
}

.pasgaard-not-found-page .nav-dropdown__toggle span {
  transition: transform 0.18s ease;
}

.pasgaard-not-found-page .nav-dropdown.is-open .nav-dropdown__toggle span {
  transform: rotate(180deg);
}

.pasgaard-not-found-page .nav-dropdown__menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 12px);
  right: 0;
  width: max-content;
  min-width: 286px;
  padding: 9px 18px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(41, 49, 47, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.pasgaard-not-found-page .nav-dropdown:hover .nav-dropdown__menu,
.pasgaard-not-found-page .nav-dropdown:focus-within .nav-dropdown__menu,
.pasgaard-not-found-page .nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pasgaard-not-found-page .nav-dropdown__menu a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.pasgaard-not-found-page .nav-dropdown__menu a:last-child {
  border-bottom: 0;
}

.pasgaard-not-found-page .not-found-main {
  min-height: 57vh;
  padding: clamp(76px, 10vw, 142px) 0 clamp(88px, 12vw, 164px);
}

.pasgaard-not-found-page .not-found-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.pasgaard-not-found-page .not-found-eyebrow {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pasgaard-not-found-page h1 {
  max-width: 8ch;
  margin: 0;
  color: var(--teal);
  font-family: var(--serif);
  font-size: clamp(58px, 7.4vw, 104px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.pasgaard-not-found-page .not-found-copy {
  max-width: 610px;
  padding-top: 34px;
}

.pasgaard-not-found-page .not-found-copy > p:first-child {
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.45;
}

.pasgaard-not-found-page .not-found-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.pasgaard-not-found-page .not-found-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.pasgaard-not-found-page .not-found-links a:nth-child(odd) {
  padding-right: 24px;
}

.pasgaard-not-found-page .not-found-links a:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.pasgaard-not-found-page footer {
  padding: 48px 0 52px;
  background: var(--teal);
  color: #e6eeee;
  font-size: 12px;
  line-height: 1.65;
}

.pasgaard-not-found-page .footer-split {
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.pasgaard-not-found-page .footer-brand img {
  display: block;
  width: 126px;
  height: auto;
  filter: invert(1) grayscale(1) brightness(2.7);
  opacity: 0.92;
  mix-blend-mode: screen;
}

.pasgaard-not-found-page .footer-heading {
  margin-bottom: 12px;
  color: #bcd0cf;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pasgaard-not-found-page .footer-contact {
  font-size: 13px;
}

.pasgaard-not-found-page .footer-meta {
  justify-self: end;
  text-align: right;
}

.pasgaard-not-found-page footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid rgba(230, 238, 238, 0.7);
}

.pasgaard-not-found-page .footer-copy {
  margin-top: 22px;
  color: #bcd0cf;
}

@media (max-width: 980px) {
  .pasgaard-not-found-page .wrap {
    width: min(calc(100% - 46px), var(--max));
  }

  .pasgaard-not-found-page .menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 21px;
  }

  .pasgaard-not-found-page .not-found-grid {
    grid-template-columns: 1fr;
  }

  .pasgaard-not-found-page .not-found-copy {
    padding-top: 0;
  }

  .pasgaard-not-found-page .footer-split {
    grid-template-columns: 0.7fr 1.1fr 0.9fr;
    gap: 38px;
  }
}

@media (max-width: 700px) {
  body.pasgaard-menu-open {
    overflow: hidden;
  }

  .pasgaard-not-found-page {
    font-size: 16px;
  }

  .pasgaard-not-found-page .wrap {
    width: calc(100% - 34px);
  }

  .pasgaard-not-found-page .nav {
    min-height: 88px;
    gap: 20px;
  }

  .pasgaard-not-found-page .logo img {
    width: 120px;
  }

  .pasgaard-not-found-page .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 76px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
  }

  .pasgaard-not-found-page .mobile-menu-toggle__icon {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
  }

  .pasgaard-not-found-page .mobile-menu-toggle__icon i {
    position: absolute;
    left: 0;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 0.18s ease, top 0.18s ease;
  }

  .pasgaard-not-found-page .mobile-menu-toggle__icon i:first-child {
    top: 3px;
  }

  .pasgaard-not-found-page .mobile-menu-toggle__icon i:last-child {
    top: 11px;
  }

  .pasgaard-not-found-page .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon i:first-child {
    top: 7px;
    transform: rotate(45deg);
  }

  .pasgaard-not-found-page .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon i:last-child {
    top: 7px;
    transform: rotate(-45deg);
  }

  .pasgaard-not-found-page .menu {
    display: none;
    position: absolute;
    z-index: 110;
    top: 100%;
    left: 50%;
    width: 100vw;
    max-height: calc(100vh - 88px);
    margin: 0;
    padding: 9px 17px 17px;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(41, 49, 47, 0.12);
    transform: translateX(-50%);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    font-size: 14px;
  }

  .pasgaard-not-found-page .menu.is-open {
    display: flex;
  }

  .pasgaard-not-found-page .menu > a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .pasgaard-not-found-page .nav-dropdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    width: 100%;
  }

  .pasgaard-not-found-page .nav-dropdown > a,
  .pasgaard-not-found-page .nav-dropdown__toggle {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .pasgaard-not-found-page .nav-dropdown__toggle {
    width: 48px;
    height: 48px;
  }

  .pasgaard-not-found-page .nav-dropdown__menu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-height: 0;
    padding: 0 0 0 18px;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    overflow: hidden;
  }

  .pasgaard-not-found-page .nav-dropdown.is-open .nav-dropdown__menu {
    max-height: 420px;
    padding: 5px 0 8px 18px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .pasgaard-not-found-page .not-found-main {
    padding: 64px 0 88px;
  }

  .pasgaard-not-found-page h1 {
    font-size: 56px;
  }

  .pasgaard-not-found-page .not-found-links {
    grid-template-columns: 1fr;
  }

  .pasgaard-not-found-page .not-found-links a:nth-child(n) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .pasgaard-not-found-page .footer-split {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .pasgaard-not-found-page .footer-meta {
    justify-self: start;
    text-align: left;
  }

  .pasgaard-not-found-page footer a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pasgaard-not-found-page *,
  .pasgaard-not-found-page *::before,
  .pasgaard-not-found-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
