/* ==========================================================================
   Psykolog Milton – designsystem
   Typsnitt: Newsreader (rubriker), Instrument Sans (brödtext). Självhostade.
   ========================================================================== */

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-opsz-italic.woff2') format('woff2-variations');
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* Färger – kontrast mot --paper: ink 12.5:1, muted 5.6:1, moss 5.6:1, clay-ink 6.6:1, ≥5:1 på alla ytor */
  --paper: #F6F3EC;
  --sand: #ECE6DA;
  --sand-deep: #E2D9C9;
  --sage: #DADFD3;
  --moss: #566557;
  --moss-deep: #3F4B41;
  --forest: #2F3A33;
  --ink: #292E2A;
  --muted: #5E625C;
  --clay: #C7A993;
  --clay-ink: #6B5241;
  --line: rgba(41, 46, 42, 0.16);
  --line-strong: rgba(41, 46, 42, 0.32);

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.07rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.7rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.7vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.6rem);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --space-tight: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Bas ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p, ul, ol, dl { margin: 0; }
p { text-wrap: pretty; }
em { font-style: italic; }
a { color: var(--moss-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--moss-deep); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--sage); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; color: var(--paper); }

.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); line-height: 1.6; }
.spacer { height: 2rem; }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 38rem; }
.kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-ink); margin-bottom: 1.25rem;
}
.kicker::before { content: ''; width: 1.75rem; height: 1px; background: var(--clay); }

/* ---- Knappar och länkar -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .8rem 1.6rem;
  background: var(--moss); color: #fff; border-radius: 999px;
  font-weight: 500; font-size: .98rem; letter-spacing: .01em; text-decoration: none;
  transition: background-color .25s var(--ease);
}
.btn:hover { background: var(--moss-deep); color: #fff; }
.btn--small { min-height: 2.5rem; padding: .5rem 1.15rem; font-size: .92rem; }

.tlink {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); font-weight: 500; text-decoration: none;
  padding-block: .35rem;
}
.tlink span:first-child { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease); }
.tlink .i-arrow { transition: transform .3s var(--ease); flex: none; }
.tlink:hover { color: var(--moss-deep); }
.tlink:hover .i-arrow { transform: translateX(4px); }

/* ---- Sidhuvud ------------------------------------------------------------ */
.site-header { position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.01em; }
.brand__sub { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.brand:hover { color: var(--ink); }

.site-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.6rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .96rem; padding-block: .5rem; background: linear-gradient(currentColor, currentColor) 0 calc(100% - .35rem) / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current='page']:not(.btn) { background-size: 100% 1px; }
.site-nav__cta { margin-left: .5rem; }
.site-nav .btn[aria-current='page'] { background: var(--moss-deep); }

.menu-toggle { display: none; }

@media (max-width: 63.99rem) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: .65rem;
    background: none; border: 1px solid var(--line-strong); border-radius: 999px;
    padding: .55rem 1rem; min-height: 2.75rem; color: var(--ink); cursor: pointer;
  }
  .menu-toggle__bars { width: 16px; height: 8px; position: relative; border-block: 1.5px solid currentColor; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded='true'] .menu-toggle__bars { border-bottom-color: transparent; transform: translateY(2px) scaleY(.4); }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 2rem;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li { border-top: 1px solid var(--line); }
  .js .site-nav a:not(.btn) { display: block; font-family: var(--serif); font-size: 1.5rem; padding-block: .8rem; background: none; }
  .js .site-nav a[aria-current='page']:not(.btn) { color: var(--moss); }
  .js .site-nav__cta { margin: 1.25rem 0 0; border-top: 0 !important; }
  .js .site-nav__cta .btn { width: 100%; min-height: 3.1rem; font-size: 1rem; }
  /* Utan JS: navigeringen visas som en enkel rad under logotypen */
  html:not(.js) .site-header__inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Startsidans hero ------------------------------------------------------ */
.hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 2rem + 5vw, 7rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.hero__title { max-width: 14ch; }
.hero__title em { color: var(--moss); }
.hero__lead { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }
.hero__media .portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; width: 100%; }
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero__text { padding-bottom: clamp(1rem, 4vw, 4rem); }
  .hero__media .portrait img { aspect-ratio: 3 / 4; }
}
@media (max-width: 39.99rem) {
  .hero__media { margin-inline: calc(var(--gutter) * -1); }
}

.portrait { position: relative; background: var(--sand); }
.portrait img { border-radius: var(--radius); }

/* ---- Sektioner ----------------------------------------------------------- */
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-tight); }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage); }
.section--line > .wrap { border-top: 1px solid var(--line); padding-top: var(--space-tight); }
.section--line { padding-top: 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 40rem; }

/* Delad layout: rubrik till vänster, innehåll till höger */
.split { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); }
.split__head h2 { max-width: 16ch; }
.split__head .muted { margin-top: 1.25rem; max-width: 26rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split__head { position: sticky; top: 2rem; align-self: start; }
}

.prose > * + * { margin-top: 1.1em; }
.prose ul { padding-left: 1.1rem; }
.prose li { padding-left: .3rem; margin-top: .45em; }
.prose li::marker { color: var(--clay-ink); }
.prose strong { font-weight: 600; }

/* ---- Tjänster på startsidan ---------------------------------------------- */
.services__primary { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 52rem) { .services__primary { grid-template-columns: 1fr 1fr; } }
.feature {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: var(--radius);
  min-height: clamp(20rem, 32vw, 26rem);
  transition: background-color .3s var(--ease);
}
.feature--sand { background: var(--sand); }
.feature--sage { background: var(--sage); }
.feature--sand:hover { background: var(--sand-deep); }
.feature--sage:hover { background: #CFD6C7; }
.feature__for { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
.feature__title { font-size: var(--step-3); max-width: 15ch; }
.feature__title a { color: var(--ink); text-decoration: none; }
.feature__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.feature__title a:focus-visible { outline: none; }
.feature:has(a:focus-visible) { outline: 2px solid var(--moss-deep); outline-offset: 3px; }
.feature > p:not(.feature__for):not(.feature__meta) { max-width: 34rem; }
.feature__meta { font-size: var(--step--1); color: var(--muted); margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.feature__more { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; }
.feature__more .i-arrow, .service-row__arrow .i-arrow { transition: transform .3s var(--ease); }
.feature:hover .i-arrow, .service-row:hover .i-arrow { transform: translateX(5px); }

.services__list { list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.service-row {
  position: relative; display: grid; gap: .5rem 2rem; align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line);
}
.service-row__title { font-size: var(--step-2); }
.service-row__title a { color: var(--ink); text-decoration: none; }
.service-row__title a::after { content: ''; position: absolute; inset: 0; }
.service-row:has(a:focus-visible) { outline: 2px solid var(--moss-deep); outline-offset: 4px; }
.service-row__title a:focus-visible { outline: none; }
.service-row p { color: var(--muted); max-width: 36rem; }
.service-row__arrow { color: var(--moss); }
.service-row:hover .service-row__title a { color: var(--moss-deep); }
@media (min-width: 52rem) { .service-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; } }
@media (max-width: 51.99rem) { .service-row__arrow { display: none; } }

/* ---- Om-teaser ------------------------------------------------------------ */
.about-teaser { background: var(--sand); }
.about-teaser__grid { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); }
.about-teaser__intro h2 { max-width: 17ch; }
.about-teaser__body > p + p { margin-top: 1.1em; }
@media (min-width: 56rem) { .about-teaser__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.credentials { list-style: none; padding: 0; margin: 2rem 0 1.75rem; border-top: 1px solid var(--line); }
.credentials li { padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: .98rem; }

/* ---- Arbetssätt ----------------------------------------------------------- */
.approach__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.steps { list-style: none; padding: 0; display: grid; gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.step__n { display: block; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--clay-ink); margin-bottom: 1rem; }
.step__title { font-size: var(--step-2); margin-bottom: .9rem; max-width: 18ch; }
.step p { color: var(--muted); }

/* ---- Mottagningen ---------------------------------------------------------- */
.clinic { padding-top: 0; }
.clinic__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.clinic__text > p { margin-top: 1.25rem; max-width: 34rem; }
@media (min-width: 56rem) { .clinic__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.photo-slot { margin: 0; }
.ratio-4-3 { --ratio: 4 / 3; } .ratio-5-4 { --ratio: 5 / 4; } .ratio-4-5 { --ratio: 4 / 5; } .ratio-3-2 { --ratio: 3 / 2; }
.photo-slot__frame {
  aspect-ratio: var(--ratio, 4 / 3); width: 100%;
  display: grid; place-items: center; border-radius: var(--radius);
  background: var(--sand-deep); color: var(--clay);
}
.photo-slot figcaption { margin-top: .8rem; font-size: var(--step--1); color: var(--muted); }

.address { margin-top: 1.75rem; }
.address__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: .6rem; }
.address p + p { margin-top: .6rem; }
.address > p:first-of-type:not(.address__label), .address__label + p { font-family: var(--serif); font-size: var(--step-2); line-height: 1.3; }

/* ---- Kontaktband ----------------------------------------------------------- */
.contact-band--sage { background: var(--sage); }
.contact-band--sand { background: var(--sand); }
.contact-band__grid { display: grid; gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: end; }
.contact-band h2 { max-width: 14ch; }
.contact-band .lead { margin-top: 1.25rem; }
@media (min-width: 56rem) { .contact-band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.contact-band__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); margin-top: 1.5rem; }
.contact-band__label:first-child { margin-top: 0; }
.contact-band__email { font-family: var(--serif); font-size: clamp(1.45rem, 1rem + 2.2vw, 2.4rem); line-height: 1.25; overflow-wrap: anywhere; }
.contact-band__email a, .contact-band__phone a { color: var(--ink); }
.contact-band__email a:hover, .contact-band__phone a:hover { color: var(--moss-deep); }
.contact-band__phone { font-family: var(--serif); font-size: var(--step-2); }
.hint { margin-top: 1.75rem; font-size: var(--step--1); color: var(--muted); max-width: 30rem; padding-left: 1rem; border-left: 2px solid var(--clay); }

/* ---- Undersidor ------------------------------------------------------------ */
.page-hero { padding-block: clamp(1rem, 3vw, 2rem) clamp(3.5rem, 7vw, 6.5rem); }
.page-hero__grid { display: grid; gap: 1.75rem clamp(2rem, 6vw, 6rem); align-items: end; margin-top: clamp(2rem, 5vw, 4rem); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.2rem, 1.6rem + 2.8vw, 4rem); }
.page-hero--plain h1 { margin-bottom: 1.5rem; }
.page-hero--plain .kicker { margin-top: clamp(2rem, 5vw, 4rem); }
.page-hero__actions { margin-top: 2rem; }
@media (min-width: 56rem) { .page-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }

.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--clay); }
.crumbs a { color: var(--muted); }

.trio { display: grid; gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 52rem) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio__item, .duo__item { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.trio__item h3, .duo__item h3 { margin-bottom: .9rem; }
.trio__item p, .duo__item p { color: var(--muted); }
.duo { display: grid; gap: 2.5rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 52rem) { .duo { grid-template-columns: 1fr 1fr; } }
.section--sand .trio__item p, .section--sand .duo__item p { color: #50544E; }

/* Faktalista */
.facts { border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; gap: .3rem 2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); padding-top: .2rem; }
.facts dd { margin: 0; }
@media (min-width: 40rem) { .facts > div { grid-template-columns: 11rem 1fr; } }
.facts + p { margin-top: 1.25rem; }
.plain { list-style: none; padding: 0; }
.plain li + li { margin-top: .25rem; }

.handler-card { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.portrait.portrait--small { background: none; }
.portrait--small { width: 5.5rem; flex: none; }
.portrait--small img { aspect-ratio: 1; object-fit: cover; object-position: 50% 28%; border-radius: 50%; }
.handler-card p { font-size: .96rem; line-height: 1.45; }
.handler-card strong { font-weight: 600; }

/* Processteg */
.flow { list-style: none; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 2rem 3.25rem; }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: .1rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--serif); font-size: 1rem; color: var(--clay-ink);
}
.flow li:not(:last-child)::after { content: ''; position: absolute; left: 1rem; top: 2.6rem; bottom: .5rem; width: 1px; background: var(--line); }
.flow h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-bottom: .35rem; }
.flow p { color: var(--muted); max-width: 36rem; }

.pricebox { margin-top: 1rem; padding: 1.5rem 1.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); max-width: 26rem; }
.pricebox__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
.pricebox__value { font-family: var(--serif); font-size: var(--step-2); margin: .35rem 0 .25rem; }
.pricebox__value span { font-family: var(--sans); font-size: 1rem; color: var(--muted); }

.tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { margin: 0 !important; padding: .4rem .9rem !important; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .94rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; line-height: 1.45; }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--moss); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding-bottom: 1.5rem; max-width: 38rem; color: #474B45; }
.faq__a p + p { margin-top: .8em; }
.faq + .note { margin-top: 2.5rem; }

.note--emergency { padding: 1.25rem 1.5rem; background: var(--sand); border-radius: var(--radius); font-size: .96rem; max-width: 40rem; }
.section--sand .note--emergency { background: var(--paper); }
.note strong { font-weight: 600; }

/* Prislista */
.price-list { border-top: 1px solid var(--line-strong); }
.price-row { display: grid; gap: .35rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.price-row dt { font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; }
.price-row dt a { color: var(--ink); }
.price-row dd { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.price-row__amount { font-weight: 600; font-size: 1.05rem; }
.price-row__per { font-weight: 400; color: var(--muted); }
.price-row__len { font-size: var(--step--1); color: var(--muted); }
@media (min-width: 40rem) { .price-row { grid-template-columns: 1fr 15rem; align-items: baseline; } .price-row dd { text-align: right; } }
.price-row__amount + .price-row__per { display: inline; }

.linklist { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist .tlink { display: flex; justify-content: space-between; padding-block: 1rem; font-size: 1.05rem; }
.linklist .tlink span:first-child { background: none; }
.page-hero--plain .linklist { max-width: 32rem; margin-top: 2rem; }

.en-note { margin-top: 3rem; padding: 1.5rem 1.75rem; border-left: 2px solid var(--clay); background: var(--sand); max-width: 40rem; font-size: .98rem; }
.en-note strong { font-weight: 600; }

/* Om Edla */
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .about__media { position: sticky; top: 2rem; } }
.about__media .portrait img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about__role { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--moss); margin: .75rem 0 2rem; }
.about__text .prose { max-width: 38rem; }

/* Kontaktsidan */
.contact-main { padding-top: 0; }
.contact-main__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
@media (min-width: 56rem) { .contact-main__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.contact-main__ways > * + * { margin-top: 1.75rem; }
.contact-card { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--sage); border-radius: var(--radius); }
.contact-card--quiet { background: var(--sand); }
.contact-card__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
.contact-card__value { font-family: var(--serif); font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem); line-height: 1.2; margin: .5rem 0 1rem; overflow-wrap: anywhere; }
.contact-card__value--sm { font-size: var(--step-3); }
.contact-card__value a { color: var(--ink); }
.contact-card__actions { display: flex; align-items: center; gap: 1rem; min-height: 1.5rem; margin-bottom: 1.5rem; }
.copy-btn { background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: .5rem 1rem; min-height: 2.5rem; cursor: pointer; color: var(--ink); font-size: .92rem; }
.copy-btn:hover { border-color: var(--ink); }
.copy-status { font-size: var(--step--1); color: var(--moss-deep); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .94rem; background: rgba(255,255,255,.35); }
.chip:hover { background: var(--paper); color: var(--ink); }

/* Relaterade länkar */
.related { padding-block: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; }
.related__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

/* Integritetspolicy */
.policy h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.policy h2 + p { margin-top: .75rem; }

/* ---- Sidfot ---------------------------------------------------------------- */
.site-footer { background: var(--forest); color: #E9E6DD; padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; font-size: .95rem; }
.site-footer a { color: #E9E6DD; text-decoration-color: rgba(233, 230, 221, .4); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer :focus-visible { outline-color: #E9E6DD; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 4fr 3fr 3fr 4fr; } }
.site-footer__name { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .75rem; color: #fff; }
.site-footer__brand p:last-child { color: #C9CCC3; max-width: 22rem; }
.site-footer__h { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #BFC6B8; margin-bottom: .9rem; }
.site-footer__list { list-style: none; padding: 0; line-height: 1.9; }
.site-footer__list--cols { columns: 1; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(233, 230, 221, .18); font-size: var(--step--1); color: #C9CCC3; }

/* ---- Diskreta animationer -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero__text > * { animation: rise .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  .hero__media { animation: fade 1.2s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media print {
  .site-header nav, .menu-toggle, .site-footer nav, .copy-btn { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   WordPress-anpassningar: blockmarkup (Gutenberg) → designsystemet ovan
   ========================================================================== */

:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' stroke='black' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); }

/* Flödeslayoutens standardmarginaler nollställs; avstånd styrs av designsystemet */
#innehall .prose > * + *, .editor-styles-wrapper .prose > * + * { margin-block-start: 1.1em; }
.wp-block-group { box-sizing: border-box; }
.wp-block-heading { margin: 0; }
.wp-block-list { margin: 0; }

/* Knappar */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.wp-block-button__link, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.6rem;
  background: var(--moss); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: .98rem; line-height: 1.2; letter-spacing: .01em; text-decoration: none;
  transition: background-color .25s var(--ease);
}
.wp-block-button__link:hover, .wp-block-button__link:focus-visible { background: var(--moss-deep); color: #fff; }
.page-hero__actions { margin-top: 2rem; }

/* Textlänk med pil */
.pm-link a, .linklist a, .related a {
  display: inline-flex; align-items: center; gap: .6rem; padding-block: .35rem;
  color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.pm-link a::after, .linklist a::after {
  content: ''; flex: none; width: 18px; height: 12px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.pm-link a:hover, .linklist a:hover { color: var(--moss-deep); }
.pm-link a:hover::after, .linklist a:hover::after { transform: translateX(4px); }
.about-teaser__body .pm-link { margin-top: 0; }

/* Hero */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem !important; }
.hero__lead { margin-top: clamp(1.5rem, 3vw, 2.25rem) !important; }
.hero__media .portrait, .about__media .portrait { display: block; }

/* Tjänstekort och rader */
.feature__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto !important; }
.feature__meta::after, .service-row::after {
  content: ''; flex: none; width: 18px; height: 12px; background: var(--ink);
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.feature:hover .feature__meta::after, .service-row:hover::after { transform: translateX(5px); }
.service-row::after { background: var(--moss); align-self: center; }
@media (max-width: 51.99rem) { .service-row::after { display: none; } }
.services__list { margin-top: clamp(2rem, 4vw, 3rem) !important; }
.feature { gap: 1.1rem; }

/* Om-teaser */
.about-teaser__body .credentials { margin: 2rem 0 1.75rem !important; }

/* Faktarader (ersätter dl) */
.facts__row { display: grid; gap: .3rem 2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.facts__dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); padding-top: .2rem; }
@media (min-width: 40rem) { .facts__row { grid-template-columns: 11rem 1fr; } }
.facts + p { margin-top: 1.25rem !important; }
.facts .plain { list-style: none; padding: 0; }

/* Processteg */
.flow { counter-reset: flow; }
.flow__item { counter-increment: flow; position: relative; padding: 0 0 2rem 3.25rem; }
.flow__item::before {
  content: counter(flow); position: absolute; left: 0; top: .1rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--serif); font-size: 1rem; color: var(--clay-ink);
}
.flow__item:not(:last-child)::after { content: ''; position: absolute; left: 1rem; top: 2.6rem; bottom: .5rem; width: 1px; background: var(--line); }
.flow__item h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-bottom: .35rem !important; }
.flow__item p { color: var(--muted); max-width: 36rem; }
.flow + .pricebox, .flow + p, .pricebox + * { margin-top: 1rem !important; }
.pricebox__value { margin: .35rem 0 .25rem !important; }

/* FAQ med detaljblocket */
.faq .wp-block-details { border-bottom: 1px solid var(--line); margin: 0 !important; }
.faq .wp-block-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.25rem; cursor: pointer; list-style: none; font-weight: 600; line-height: 1.45;
}
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--moss), var(--moss)) center / 100% 1.5px no-repeat, linear-gradient(var(--moss), var(--moss)) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq .wp-block-details[open] summary::after { background: linear-gradient(var(--moss), var(--moss)) center / 100% 1.5px no-repeat; }
.faq .wp-block-details > :not(summary) { padding-bottom: 1.5rem; max-width: 38rem; color: #474B45; margin: 0; }
.faq + .note, .faq + .wp-block-group { margin-top: 2.5rem !important; }

/* Prislista */
.price-list { border-top: 1px solid var(--line-strong); }
.price-row__label { font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; }
.price-row__label a { color: var(--ink); }
.price-row__value { display: flex; flex-direction: column; gap: .15rem; }
@media (min-width: 40rem) { .price-row__value { text-align: right; } }

/* Platshållare för mottagningsfoto */
.photo-slot::before {
  content: ''; display: block; aspect-ratio: var(--ratio, 4 / 3); width: 100%; border-radius: var(--radius);
  background: var(--sand-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23C7A993' stroke-width='1.2'%3E%3Cpath d='M8 54V22l24-14 24 14v32'/%3E%3Cpath d='M24 54V36h16v18'/%3E%3C/svg%3E") center / 44px no-repeat;
}
.photo-slot__caption { margin-top: .8rem !important; font-size: var(--step--1); color: var(--muted); }
.clinic__photo, .clinic__grid > .wp-block-image img, .contact-main__side .wp-block-image img { border-radius: var(--radius); width: 100%; height: auto; }
.contact-main__side > * + * { margin-top: 1.75rem !important; }
.clinic__text > p:not(.kicker) { margin-top: 1.25rem !important; max-width: 34rem; }

/* Handledarkort */
.handler-card { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem !important; }
.split__head > .muted { margin-top: 1.25rem !important; max-width: 26rem; }

/* Listor */
.tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.credentials, .linklist { list-style: none; padding: 0; }
.linklist a { display: flex; justify-content: space-between; padding-block: 1rem; font-size: 1.05rem; text-decoration: none; }

/* Kontaktsektion, kontaktkort */
.contact-band__text .lead { margin-top: 1.25rem !important; }
.contact-main__ways > * + * { margin-top: 1.75rem !important; }
.contact-main__ways .hint { margin-top: 1.75rem; }

/* Om Edla */
.about__text .prose { margin-top: 0 !important; }
.about__role { margin: .75rem 0 2rem !important; }
.en-note { margin-top: 3rem !important; }

/* Undersidor: brödsmulor från mallen ovanför sidans innehåll */
.pm-crumbs { padding-top: clamp(1rem, 3vw, 2rem); }
.pm-crumbs + .page-hero { padding-top: 0; }
.page-hero--plain h1 { margin-bottom: 1.5rem !important; }
.policy h2 { margin-top: 2.5rem !important; }
.policy h2 + p { margin-top: .75rem !important; }

/* Menyer från WordPress */
.site-nav .menu { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.6rem; margin: 0; }
.site-nav .menu-cta { margin-left: .5rem; }
.site-nav .current-menu-item > a:not(.btn) { background-size: 100% 1px; }
@media (max-width: 63.99rem) {
  .js .site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav .menu-cta { margin: 1.25rem 0 0; border-top: 0 !important; }
  .js .site-nav .menu-cta .btn { width: 100%; min-height: 3.1rem; font-size: 1rem; }
}
.site-footer .menu { margin: 0; }

/* Adminfältet ska inte täcka mobilmenyn */
.admin-bar .site-header { position: relative; }


/* WordPress layoutregler (is-layout-flow) nollställer marginaler – återställ designsystemets */
#innehall .kicker { margin-bottom: 1.25rem; }
#innehall .section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
#innehall .step__n { margin-bottom: 1rem; }
#innehall .step__title, #innehall .trio__item h3, #innehall .duo__item h3 { margin-bottom: .9rem; }
#innehall .flow__item h3 { margin-bottom: .35rem; }
#innehall .page-hero--plain h1 { margin-bottom: 1.5rem; }
#innehall .page-hero__intro .lead + .wp-block-buttons { margin-top: 2rem; }
#innehall .page-hero__grid, #innehall .about__grid { margin-top: clamp(2rem, 5vw, 4rem); }
#innehall .page-hero--plain .kicker { margin-top: clamp(2rem, 5vw, 4rem); }
#innehall .page-hero--plain .linklist { margin-top: 2rem; }

/* ==========================================================================
   Premiumlager – bågmotiv, mörka sektioner, större typografi, rörelse vid scroll
   ========================================================================== */

:root {
  --forest-deep: #1E2822;
  --forest-ink: #E9E4D8;
  --forest-muted: #B9BFB3;
  --brass: #B08A68;
  --brass-soft: rgba(176, 138, 104, .55);
  --arch: 999px 999px 6px 6px;
}

/* Pappersstruktur */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sidhuvud som följer med */
.site-header { position: sticky; top: 0; z-index: 40; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { background: rgba(246, 243, 236, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled .site-header__inner { padding-block: .9rem; }
.site-header__inner { transition: padding .35s var(--ease); }
.brand__name { font-size: 1.65rem; }

/* Knappar */
.wp-block-button__link, .btn { position: relative; overflow: hidden; isolation: isolate; padding-inline: 1.8rem; letter-spacing: .02em; }
.wp-block-button__link::before, .btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--forest-deep);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.wp-block-button__link:hover::before, .btn:hover::before { transform: none; }
.wp-block-button__link:hover, .btn:hover { background: var(--moss); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero__title { font-size: clamp(2.9rem, 1.4rem + 5.8vw, 7.2rem); line-height: .96; letter-spacing: -.035em; max-width: 11ch; font-weight: 380; }
.hero__title em { font-weight: 300; color: var(--moss); padding-right: .04em; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 34rem; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; border-top: 1px solid var(--line-strong); max-width: 36rem;
}
.hero__facts p { padding: 1rem 1.5rem 0 0; margin-right: 1.5rem; font-size: .86rem; line-height: 1.4; color: var(--muted); border-right: 1px solid var(--line); }
.hero__facts p:last-child { border-right: 0; margin-right: 0; }
.hero__facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 39.99rem) { .hero__facts { grid-template-columns: 1fr 1fr; } .hero__facts p:nth-child(2) { border-right: 0; margin-right: 0; } .hero__facts p:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 1rem; } }

.hero__media { position: relative; padding: 0 0 1.25rem 1.25rem; }
.hero__media .portrait { position: relative; z-index: 1; background: none; }
.hero__media .portrait img { border-radius: var(--arch); aspect-ratio: 4 / 5.2 !important; object-position: 50% 30%; }
.hero__media::before {
  content: ''; position: absolute; z-index: 0; top: 1.25rem; right: 1.25rem; bottom: 0; left: 0;
  border: 1px solid var(--brass); border-radius: var(--arch);
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
  .hero__media { margin-right: calc(var(--gutter) * -0.25); }
}
@media (max-width: 39.99rem) { .hero__media { margin-inline: 0; padding: 0 0 1rem 1rem; } .hero__media::before { top: 1rem; right: 1rem; } }

/* Rund textbricka på porträttet */
.hero-badge {
  position: absolute; z-index: 2; left: -1.5rem; bottom: 2.5rem; width: clamp(7.5rem, 11vw, 9.5rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--paper); box-shadow: 0 10px 40px -18px rgba(30, 40, 34, .45); display: grid; place-items: center;
}
.hero-badge svg { position: absolute; inset: .45rem; width: calc(100% - .9rem); height: calc(100% - .9rem); transform: rotate(var(--rot, 0deg)); }
.hero-badge text { font: 600 10.5px/1 var(--sans); letter-spacing: .26em; fill: var(--clay-ink); text-transform: uppercase; }
.hero-badge__mono { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--moss); line-height: 1; }
@media (max-width: 39.99rem) { .hero-badge { left: auto; right: -.25rem; bottom: -.5rem; width: 6.5rem; } }

/* ---- Band med tjänster ----------------------------------------------------- */
.band { background: var(--forest-deep); color: var(--forest-ink); overflow: hidden; padding-block: clamp(1.4rem, 3vw, 2.4rem); }
.band__track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; white-space: nowrap; transform: translate3d(var(--shift, 0px), 0, 0); will-change: transform; }
.band__item { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.1rem, 1.2rem + 3.8vw, 5rem); letter-spacing: -.02em; line-height: 1.05; }
.band__sep { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brass); }

/* ---- Tjänster ---------------------------------------------------------------- */
.services .section-head h2, .approach__head h2, .section-head h2 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 4rem); letter-spacing: -.025em; line-height: 1.02; }
.services__primary { counter-reset: svc; gap: clamp(1rem, 2vw, 1.75rem); }
.feature { counter-increment: svc; min-height: clamp(24rem, 36vw, 32rem); padding: clamp(2rem, 4.5vw, 3.75rem); border-radius: 6px; transition: transform .5s var(--ease), background-color .3s var(--ease), box-shadow .5s var(--ease); }
.feature::before { content: '0' counter(svc); position: absolute; top: clamp(2rem, 4.5vw, 3.75rem); right: clamp(2rem, 4.5vw, 3.75rem); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brass); }
.feature:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(30, 40, 34, .55); }
.feature__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); letter-spacing: -.02em; line-height: 1.04; }
.feature--sand { background: var(--forest-deep); color: var(--forest-ink); }
.feature--sand:hover { background: #18211C; }
.feature--sand .feature__title a, .feature--sand .feature__meta { color: #fff; }
.feature--sand .feature__for { color: var(--brass); }
.feature--sand > p:not(.feature__for):not(.feature__meta) { color: var(--forest-muted); }
.feature--sand .feature__meta { border-top-color: rgba(233, 228, 216, .2); color: var(--forest-muted); }
.feature--sand .feature__meta::after { background: #fff; }
.feature--sage:hover { background: #D2D8CA; }

.service-row { padding-inline: clamp(.5rem, 2vw, 1.5rem); background: linear-gradient(var(--sand), var(--sand)) 0 100% / 100% 0 no-repeat; transition: background-size .5s var(--ease); }
.service-row:hover { background-size: 100% 100%; }
.service-row__title { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.6rem); letter-spacing: -.02em; }

/* ---- Om-teaser ---------------------------------------------------------------- */
.about-teaser__intro h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); letter-spacing: -.028em; line-height: 1.02; max-width: 13ch; }
.about-teaser__body > p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.45; color: var(--ink); }
.credentials { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
@media (min-width: 40rem) { .credentials { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.credentials li { position: relative; padding-left: 1.4rem !important; }
.credentials li::before { content: ''; position: absolute; left: 0; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-radius: 50%; border: 1px solid var(--brass); }

/* ---- Arbetssätt: mörk sektion -------------------------------------------------- */
.approach { background: var(--forest-deep); color: var(--forest-ink); }
.approach .kicker { color: var(--brass); }
.approach .kicker::before { background: var(--brass); }
.approach h2, .approach h3 { color: #fff; }
.approach .step { border-top-color: rgba(233, 228, 216, .22); padding-top: 2rem; }
.approach .step p { color: var(--forest-muted); }
.approach .step__n { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--brass); margin-bottom: 1.5rem; font-weight: 300; }
.approach .step__title { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); }
.approach :focus-visible { outline-color: #fff; }

/* ---- Mottagningen ----------------------------------------------------------------- */
.clinic { padding-top: var(--space-section); }
.photo-slot { display: grid; position: relative; }
.photo-slot::before {
  grid-area: 1 / 1; background: var(--sage) !important; border-radius: var(--arch) !important;
  box-shadow: inset 0 0 0 14px var(--sage), inset 0 0 0 15px var(--brass-soft);
}
.photo-slot::after {
  content: '32'; grid-area: 1 / 1; place-self: center; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(7rem, 18vw, 15rem); line-height: 1; letter-spacing: -.05em; color: var(--moss); opacity: .9; margin-top: 8%;
}
.contact-main__side .photo-slot::after { content: 'K32'; font-size: clamp(5rem, 12vw, 9rem); }
.photo-slot__caption { grid-area: 2 / 1; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem !important; color: var(--clay-ink) !important; }
.clinic h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.8rem); letter-spacing: -.025em; line-height: 1.02; }
.clinic .address__lines, .clinic .address > p:first-of-type { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem) !important; }

/* ---- Kontaktband: mörkt avslut ------------------------------------------------------ */
.contact-band--sage, .contact-band--sand { background: var(--forest-deep); color: var(--forest-ink); position: relative; overflow: hidden; }
.contact-band::after {
  content: ''; position: absolute; right: -8vw; bottom: -40%; width: min(44vw, 38rem); aspect-ratio: 3 / 4;
  border: 1px solid rgba(176, 138, 104, .35); border-radius: var(--arch); pointer-events: none;
}
.contact-band .wrap { position: relative; z-index: 1; }
.contact-band h2 { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3vw, 4.4rem); letter-spacing: -.028em; line-height: 1.02; }
.contact-band .lead { color: var(--forest-muted); }
.contact-band .kicker, .contact-band__label { color: var(--brass) !important; }
.contact-band .kicker::before { background: var(--brass); }
.contact-band__email { font-size: clamp(1.5rem, .9rem + 2.6vw, 2.9rem); }
.contact-band__email a, .contact-band__phone a { color: #fff !important; text-decoration-color: var(--brass); text-decoration-thickness: 1px; }
.contact-band__email a:hover, .contact-band__phone a:hover { color: var(--brass) !important; }
.contact-band .hint { color: var(--forest-muted); border-left-color: var(--brass); }
.contact-band :focus-visible { outline-color: #fff; }

/* ---- Sidfot ------------------------------------------------------------------------- */
.site-footer { background: #151C18; border-top: 1px solid rgba(233, 228, 216, .08); }
.site-footer__name { font-size: 2.2rem; letter-spacing: -.02em; }
.site-footer__h { color: var(--brass); }

/* ---- Undersidor --------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; background: var(--sand); padding-bottom: clamp(4rem, 8vw, 7.5rem); }
.page-hero::after {
  content: ''; position: absolute; right: -6vw; top: 2rem; width: min(36vw, 30rem); aspect-ratio: 3 / 4;
  border: 1px solid var(--brass-soft); border-radius: var(--arch); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 5.4rem) !important; letter-spacing: -.032em; line-height: .98; }
.page-hero--about { background: transparent; }
.page-hero--about::after { display: none; }
.pm-crumbs { background: var(--sand); max-width: none; padding-inline: max(var(--gutter), calc((100% - 78rem) / 2 + var(--gutter))); }
body:has(.page-hero--about) .pm-crumbs, body:has(.page-hero--plain) .pm-crumbs { background: transparent; }
.page-hero--plain { background: transparent; }
.page-hero--plain::after { display: none; }

.split__head h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); letter-spacing: -.022em; line-height: 1.05; }

.about__media { position: relative; padding: 0 0 1.25rem 1.25rem; }
.about__media .portrait img { border-radius: var(--arch); }
.about__media::before { content: ''; position: absolute; top: 1.25rem; right: 1.25rem; bottom: 0; left: 0; border: 1px solid var(--brass); border-radius: var(--arch); }
.about__media .portrait { position: relative; z-index: 1; background: none; }
.about__text h1 { font-size: clamp(3rem, 2rem + 4vw, 6rem) !important; }

.pricebox { background: var(--forest-deep); color: var(--forest-ink); border: 0; border-radius: 6px; padding: 1.75rem 2rem; }
.pricebox__label { color: var(--brass); }
.pricebox__value { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.pricebox__value span, .pricebox .muted { color: var(--forest-muted) !important; }

.section--sand .trio__item { background: var(--paper); border-top: 0; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 6px; }
.section--sand .duo__item { background: var(--paper); border-top: 0; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: 6px; }
.trio__item h3, .duo__item h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

.faq .wp-block-details summary { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); letter-spacing: -.005em; padding-block: 1.4rem; }
.faq .wp-block-details summary:hover { color: var(--moss); }

.flow__item::before { background: var(--paper); border-color: var(--brass); color: var(--clay-ink); }

.contact-card { border-radius: 6px; }
.contact-card:first-child { background: var(--forest-deep); color: var(--forest-ink); }
.contact-card:first-child .contact-card__label { color: var(--brass); }
.contact-card:first-child .contact-card__value a { color: #fff; text-decoration-color: var(--brass); }
.contact-card:first-child .muted { color: var(--forest-muted); }
.contact-card:first-child .copy-btn, .contact-card:first-child .chip { color: #fff; border-color: rgba(233, 228, 216, .35); background: transparent; }
.contact-card:first-child .chip:hover, .contact-card:first-child .copy-btn:hover { background: rgba(233, 228, 216, .1); color: #fff; }
.contact-card:first-child .copy-status { color: var(--brass); }
.contact-card:first-child :focus-visible { outline-color: #fff; }

/* Rörelse: avstängd vid önskemål om reducerad rörelse */
@media (prefers-reduced-motion: reduce) {
  .band__track, .hero-badge svg { transform: none !important; }
  .feature, .feature:hover { transform: none; }
}

/* Finjusteringar */
.hero__title { max-width: 13.5ch; }
.about-teaser__intro h2 { font-size: clamp(2rem, 1.4rem + 2.3vw, 3.4rem); max-width: 15ch; }
.contact-band__email { font-size: clamp(1.3rem, .75rem + 2.1vw, 2.45rem); overflow-wrap: normal; word-break: normal; }
@media (max-width: 22rem) { .contact-band__email { overflow-wrap: anywhere; } }
.page-hero::after { right: auto; left: calc(50% + 39rem - 6rem); top: 3rem; width: 24rem; }
@media (max-width: 90rem) { .page-hero::after { display: none; } }

/* 1.1.1: lugnare sidhuvud på undersidor – inga dekorlinjer över text, rubriker som ryms */
.page-hero::after, .contact-band::after { display: none !important; content: none; }
.page-hero { border-bottom: 1px solid var(--brass-soft); }
.page-hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 4.1rem) !important; line-height: 1.02; max-width: 14ch; }
.page-hero__grid { column-gap: clamp(2.5rem, 7vw, 7rem); align-items: end; }
@media (min-width: 56rem) { .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.page-hero__intro .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.about__text h1 { font-size: clamp(2.8rem, 2rem + 3vw, 5rem) !important; }

/* 1.2.0: porträtt som inramat verk – passepartout, koncentrisk hårlinje, galleritext */
.hero__title { font-size: clamp(2.7rem, 1.4rem + 4.3vw, 5.8rem); max-width: none; }
.hero__media { padding: clamp(.9rem, 1.6vw, 1.4rem); margin: clamp(1rem, 2vw, 1.5rem) 0 0; isolation: isolate; }
.hero__media::before {
  top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background: var(--sand-deep); border: 0; border-radius: var(--arch);
  box-shadow: 0 0 0 clamp(.55rem, 1vw, .8rem) var(--paper), 0 0 0 calc(clamp(.55rem, 1vw, .8rem) + 1px) var(--brass), 0 40px 80px -50px rgba(30, 40, 34, .55);
}
.hero__media .portrait img { aspect-ratio: 4 / 5.1 !important; object-position: 50% 26%; filter: saturate(.9) contrast(1.04) sepia(.06); }
.hero-badge { left: auto; right: calc(clamp(.55rem, 1vw, .8rem) * -1 - 3.2rem); bottom: auto; top: 42%; width: clamp(6.4rem, 8vw, 7.6rem); box-shadow: 0 0 0 1px var(--brass), 0 14px 36px -20px rgba(30, 40, 34, .5); }
.hero-badge text { font-size: 11.5px; }
.hero-badge__mono { font-size: clamp(1.5rem, 2vw, 1.85rem); }
.hero__caption { margin-top: clamp(1.5rem, 2.5vw, 2rem) !important; text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay-ink); }
.hero__caption span { display: block; margin-bottom: .2rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(4rem, 7vw, 8rem); } .hero__media { margin-right: 3rem; } }
@media (max-width: 63.99rem) { .hero__media { max-width: 30rem; margin-inline: auto; } .hero-badge { right: -1.25rem; top: auto; bottom: 18%; } }
@media (max-width: 39.99rem) { .hero__media { margin-inline: .75rem; } .hero-badge { right: -1rem; width: 5.6rem; } .hero-badge text { font-size: 12.5px; } }
.hero__media { padding: 0; }
.hero__media::before { display: none; }
.hero__media .portrait {
  display: block; padding: clamp(.9rem, 1.6vw, 1.4rem); background: var(--sand-deep); border-radius: var(--arch);
  box-shadow: 0 0 0 clamp(.55rem, 1vw, .8rem) var(--paper), 0 0 0 calc(clamp(.55rem, 1vw, .8rem) + 1px) var(--brass), 0 40px 80px -50px rgba(30, 40, 34, .55);
}
.hero__media .portrait img { border-radius: var(--arch); width: 100%; }
.hero__title { font-size: clamp(2.7rem, 1.4rem + 4vw, 5.3rem); }
@media (min-width: 64rem) { .hero__grid { column-gap: clamp(3rem, 5vw, 5.5rem); } .hero__media { margin-right: 3.25rem; } }
.about__media { padding: 0; margin: .8rem; }
.about__media::before { display: none; }
.about__media .portrait {
  display: block; padding: clamp(.9rem, 1.6vw, 1.4rem); background: var(--sand-deep); border-radius: var(--arch);
  box-shadow: 0 0 0 clamp(.55rem, 1vw, .8rem) var(--paper), 0 0 0 calc(clamp(.55rem, 1vw, .8rem) + 1px) var(--brass), 0 40px 80px -50px rgba(30, 40, 34, .55);
}
.about__media .portrait img { filter: saturate(.9) contrast(1.04) sepia(.06); }
/* 1.2.1: kundens redigerade porträtt – inget färgfilter */
.hero__media .portrait img, .about__media .portrait img { filter: none; }

/* ==========================================================================
   1.3.0 Kontaktsidan: formulär + kontaktkort
   ========================================================================== */
.contact-main { padding-top: clamp(3.5rem, 6vw, 6rem); }
.contact-main__grid { align-items: start; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 56rem) { .contact-main__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .contact-main__side { position: sticky; top: 7rem; } }
.contact-main__ways > * + *, .contact-main__side > * + * { margin-top: 1.25rem !important; }
.contact-main__note { padding-left: .25rem; }

/* Formulärkort */
.pm-form-card { background: #FBF9F4; border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.75rem, 4.5vw, 3.5rem); box-shadow: 0 30px 70px -55px rgba(30, 40, 34, .45); }
.pm-form-card__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); display: flex; align-items: center; gap: .75rem; }
.pm-form-card__kicker::before { content: ''; width: 1.75rem; height: 1px; background: var(--clay); }
.pm-form-card__title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); letter-spacing: -.022em; line-height: 1.05; margin: 1rem 0 clamp(1.75rem, 3vw, 2.5rem) !important; }

.pm-form__grid { display: grid; gap: 1.4rem 1.5rem; }
@media (min-width: 40rem) { .pm-form__grid { grid-template-columns: 1fr 1fr; } .pm-field--wide { grid-column: 1 / -1; } }
.pm-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .45rem; color: var(--ink); }
.pm-field__opt { font-weight: 400; color: var(--muted); }
.pm-field input, .pm-field select, .pm-field textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #8A8D86; border-radius: 6px; padding: .85rem 1rem; min-height: 3.15rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pm-field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.pm-field input:hover, .pm-field select:hover, .pm-field textarea:hover { border-color: var(--ink); }
.pm-field input:focus, .pm-field select:focus, .pm-field textarea:focus { outline: none; border-color: var(--moss-deep); box-shadow: 0 0 0 3px rgba(86, 101, 87, .25); }
.pm-select { position: relative; }
.pm-select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.pm-select::after { content: ''; position: absolute; right: 1.1rem; top: 50%; width: .5rem; height: .5rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pm-field__hint { margin-top: .5rem; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.pm-field.has-error input, .pm-field.has-error select, .pm-field.has-error textarea { border-color: #A23B2A; box-shadow: 0 0 0 1px #A23B2A; }
.pm-field__error { margin-top: .45rem; font-size: .88rem; font-weight: 600; color: #A23B2A; }
.pm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.pm-form__submit { border: 0; cursor: pointer; min-height: 3.25rem; padding-inline: 2rem; font-size: 1rem; }
.pm-form__legal { flex: 1 1 16rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.pm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-form-alert { border-left: 3px solid #A23B2A; background: #FBEDEA; padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.75rem; font-size: .95rem; }
.pm-form-alert ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.pm-form-alert a { color: #7A2A1D; }
.pm-form-done { padding: 1.5rem 1.75rem; background: var(--sage); border-radius: 6px; }
.pm-form-done__title { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .4rem; }
.pm-admin-note { padding: .75rem 1rem; margin-bottom: 1rem; border: 1px dashed var(--clay-ink); border-radius: 4px; font-size: .85rem; color: var(--clay-ink); }

/* Kontaktkort i högerkolumnen */
.pm-direct { background: var(--forest-deep); color: var(--forest-ink); border-radius: 8px; padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.pm-direct__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.25rem; }
.pm-direct__list > div { padding-block: 1rem; border-top: 1px solid rgba(233, 228, 216, .16); }
.pm-direct__list > div:first-child { border-top: 0; padding-top: 0; }
.pm-direct dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-muted); margin-bottom: .3rem; }
.pm-direct dd { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.4; color: #fff; overflow-wrap: anywhere; }
.pm-direct dd a { color: #fff; text-decoration-color: var(--brass); text-underline-offset: .25em; }
.pm-direct dd a:hover { color: var(--brass); }
.pm-direct dd a[target] { font-family: var(--sans); font-size: .9rem; }
.pm-direct :focus-visible { outline-color: #fff; }
.pm-direct__copy { margin-top: 1.25rem; color: #fff; border-color: rgba(233, 228, 216, .35); background: transparent; }
.pm-direct__copy:hover { background: rgba(233, 228, 216, .1); }
.pm-direct .copy-status { display: block; margin-top: .5rem; color: var(--brass); }

/* Om formuläret är avstängt visas e-postkortet i vänsterkolumnen */
.contact-main__form .contact-card + .contact-card { margin-top: 1.25rem; }

/* 1.3.1: illustration av entrén i kontaktsidans högerkolumn */
@media (min-width: 56rem) { .contact-main__side { position: static; } }
.pm-entre { margin: .8rem .8rem 0; }
figure.pm-entre img {
  display: block; padding: clamp(.8rem, 1.4vw, 1.2rem); background: var(--sand-deep); border-radius: var(--arch);
  box-shadow: 0 0 0 clamp(.55rem, 1vw, .8rem) var(--paper), 0 0 0 calc(clamp(.55rem, 1vw, .8rem) + 1px) var(--brass), 0 40px 80px -50px rgba(30, 40, 34, .55);
}
.pm-entre img { display: block; width: 100%; height: auto; border-radius: var(--arch); }
.pm-entre figcaption { margin-top: 1.4rem; text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay-ink); }
.pm-entre + .pm-direct { margin-top: 1.75rem !important; }

/* 1.4.1: entrébilden i mottagningssektionen på startsidan */
.clinic .pm-entre figcaption { margin-top: 1.6rem; }

/* 1.4.2: rektangulära ramar i stället för bågform – som ett inramat foto */
:root { --arch: 3px; }
.hero__media .portrait, .about__media .portrait, .pm-entre picture { border-radius: 4px; }
.hero__media .portrait img, .about__media .portrait img, .pm-entre img { border-radius: 2px; }
.hero-badge { box-shadow: 0 0 0 1px var(--brass), 0 14px 36px -20px rgba(30, 40, 34, .5); }

/* 1.4.3: Om Edla på mobil – rubrik först, mindre porträtt, sedan text */
@media (max-width: 55.99rem) {
  .about__grid { display: flex; flex-direction: column; gap: 0; }
  .about__text { display: contents; }
  .about__text > .kicker { order: 1; }
  .about__text > h1 { order: 2; }
  .about__text > .about__role { order: 3; margin-bottom: 1.75rem !important; }
  .about__media { order: 4; width: min(calc(100% - 1.6rem), 19rem); margin: .8rem auto 2.5rem; position: static; }
  .about__text > .prose { order: 5; }
  .about__media .portrait img { aspect-ratio: 4 / 4.6; object-position: 50% 30%; }
}

/* ==========================================================================
   1.5.0 Undermenyer
   ========================================================================== */
.site-nav .sub-menu { display: block; list-style: none; margin: 0; padding: 0; }
.site-nav .menu-item-has-children { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.submenu-toggle {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: .15rem; padding: 0;
  background: none; border: 0; border-radius: 4px; color: var(--ink); cursor: pointer;
}
.submenu-toggle__icon { width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.menu-item-has-children.is-open > .submenu-toggle .submenu-toggle__icon { transform: translateY(1px) rotate(-135deg); }
.site-nav .current-menu-ancestor > a:not(.btn), .site-nav .current-menu-parent > a:not(.btn) { background-size: 100% 1px; }
.site-nav a.is-placeholder { cursor: pointer; }
.site-nav .lang-item img { display: inline-block; vertical-align: middle; }

@media (min-width: 64rem) {
  .site-nav .sub-menu {
    position: absolute; top: calc(100% + .35rem); left: -1rem; z-index: 50; min-width: 15.5rem;
    padding: .5rem; background: #FBF9F4; border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 24px 50px -24px rgba(30, 40, 34, .35);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .site-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
  .site-nav .menu-item-has-children:hover > .sub-menu,
  .site-nav .menu-item-has-children:focus-within > .sub-menu,
  .site-nav .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav .sub-menu li { display: block; }
  .site-nav .sub-menu a:not(.btn) {
    display: block; padding: .65rem .85rem; border-radius: 6px; white-space: nowrap;
    background: none !important; font-size: .95rem; transition: background-color .2s var(--ease);
  }
  .site-nav .sub-menu a:not(.btn):hover, .site-nav .sub-menu a:not(.btn):focus-visible { background-color: var(--sand) !important; }
  .site-nav .sub-menu .current-menu-item > a { color: var(--moss-deep); background-color: var(--sand) !important; }
}

@media (max-width: 63.99rem) {
  .js .site-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .js .site-nav .menu-item-has-children > a { flex: 1 1 auto; }
  .js .site-nav .submenu-toggle { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 999px; margin-left: .5rem; }
  .js .site-nav .sub-menu { flex: 1 0 100%; display: none; margin: 0 0 .75rem; padding-left: 1rem; border-left: 1px solid var(--brass); }
  .js .site-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
  .js .site-nav .sub-menu li { border-top: 0 !important; }
  .js .site-nav .sub-menu a:not(.btn) { font-family: var(--sans) !important; font-size: 1.05rem !important; padding-block: .55rem !important; }
  html:not(.js) .site-nav .sub-menu { padding-left: 1rem; }
}

/* ==========================================================================
   1.6.2 Standardsidor (nya sidor utan sidmall) och textinnehåll
   ========================================================================== */
#innehall .page-hero--plain .wrap > h1:first-child { margin-top: clamp(2rem, 5vw, 4rem); }
.page-hero--default .page-hero__grid { align-items: end; }
.page-body { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem); }

.page-prose { max-width: 44rem; font-size: clamp(1.02rem, .98rem + .2vw, 1.12rem); line-height: 1.75; }
#innehall .page-prose > * + * { margin-block-start: 1.15em; }
#innehall .page-prose > :first-child { margin-top: 0; }
.page-prose h2, .page-prose h3, .page-prose h4 { letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
.page-prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.page-prose h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.page-prose h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
#innehall .page-prose > h2 { margin-block-start: 2.2em; }
#innehall .page-prose > h3, #innehall .page-prose > h4 { margin-block-start: 1.8em; }
#innehall .page-prose > h2 + *, #innehall .page-prose > h3 + *, #innehall .page-prose > h4 + * { margin-block-start: .6em; }
.page-prose a:not(.wp-block-button__link) { color: var(--moss-deep); text-decoration-color: var(--brass); text-underline-offset: .2em; }
.page-prose a:not(.wp-block-button__link):hover { color: var(--ink); }
.page-prose ul, .page-prose ol { padding-left: 1.3rem; }
.page-prose li + li { margin-top: .4em; }
.page-prose li::marker { color: var(--clay-ink); }
.page-prose strong { font-weight: 600; }

.page-prose .wp-block-image, .page-prose figure { margin-inline: 0; }
.page-prose .wp-block-image img { border-radius: 4px; height: auto; }
.page-prose figcaption, .page-prose .wp-element-caption { margin-top: .7rem; font-size: .85rem; color: var(--muted); text-align: left; }
@media (min-width: 64rem) { .page-prose .wp-block-image.alignwide { margin-inline: -6rem; } }

.page-prose blockquote, .page-prose .wp-block-quote {
  margin-inline: 0; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--brass);
  font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.45; color: var(--ink);
}
.page-prose blockquote cite, .page-prose .wp-block-quote cite { display: block; margin-top: .75rem; font-family: var(--sans); font-size: .85rem; font-style: normal; color: var(--muted); }
.page-prose .wp-block-pullquote { border-block: 1px solid var(--line-strong); padding: 2rem 0; text-align: left; }

.page-prose hr, .page-prose .wp-block-separator { border: 0; border-top: 1px solid var(--line-strong); margin-block: 2.5em !important; opacity: 1; }
.page-prose .wp-block-buttons { margin-block-start: 1.75em !important; }
.page-prose .wp-block-columns { gap: clamp(1.5rem, 3vw, 2.5rem); }
.page-prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.page-prose .wp-block-table th, .page-prose .wp-block-table td { padding: .7rem .5rem; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.page-prose .wp-block-table thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); border-bottom-color: var(--line-strong); }
.page-prose .wp-block-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1rem; }
.page-prose .wp-block-details + .wp-block-details { border-top: 0; margin-top: 0 !important; }
.page-prose .wp-block-details summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; }
.page-prose .wp-block-separator + .wp-block-details, .page-prose hr + .wp-block-details { border-top: 0; margin-top: 0 !important; }

/* 1.6.3: länklistor (t.ex. 404-sidan) – en pil per rad, längst till höger */
.linklist a .i-arrow { display: none; }
.linklist a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.linklist a span:first-child { background: none !important; padding: 0; }
.linklist a:hover span:first-child { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* 1.6.5: meritlistan – ring och text centrerade på höjden */
.credentials li { display: flex !important; align-items: center; gap: .9rem; padding-left: 0 !important; padding-block: 1rem !important; line-height: 1.45; }
.credentials li::before { position: static !important; flex: none; margin: 0 !important; top: auto !important; }
.prose .credentials, .credentials { padding-left: 0 !important; margin-left: 0 !important; }
.prose .credentials li { padding-left: 0 !important; margin-top: 0 !important; }

/* ==========================================================================
   1.6.6 Språkväljare och helskärmsmeny på mobil
   ========================================================================== */
.site-nav .lang-item a.lang-switch {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; min-height: 2.5rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none !important;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em; color: var(--ink); text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav .lang-item a.lang-switch:hover { border-color: var(--ink); background-color: rgba(255, 255, 255, .5) !important; }
.site-nav .lang-item img { display: block; width: 20px !important; height: 14px !important; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(41, 46, 42, .12); }
.site-nav .lang-item__name { display: none; }
.site-nav__extra { display: none; }

@media (max-width: 63.99rem) {
  .js .site-nav {
    height: calc(100dvh - var(--pm-header-h, 6.5rem)); max-height: calc(100dvh - var(--pm-header-h, 6.5rem));
    overflow-y: auto; overscroll-behavior: contain; padding-bottom: 2.5rem;
    display: flex; flex-direction: column;
  }
  html.pm-menu-open { overflow: hidden; }
  .js .site-nav { position: fixed; top: var(--pm-header-h, 6.5rem); left: 0; right: 0; bottom: 0; height: auto; max-height: none; z-index: 45; }
  .js .site-nav .lang-item { border-top: 0 !important; margin-top: 1.5rem; }
  .js .site-nav .lang-item a.lang-switch {
    display: flex; justify-content: center; width: 100%; min-height: 3.1rem; padding: .7rem 1.2rem;
    font-size: 1rem; font-weight: 500; letter-spacing: 0; font-family: var(--sans) !important;
  }
  .js .site-nav .lang-item img { width: 24px !important; height: 17px !important; }
  .js .site-nav .lang-item__name { display: inline; }
  .js .site-nav .lang-item__code { display: none; }
  .js .site-nav__extra {
    display: block; margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--line);
    font-size: .98rem; line-height: 1.9;
  }
  .js .site-nav .menu-cta + .lang-item, .js .site-nav .site-nav__cta + .lang-item { margin-top: .75rem; }
  .js .site-nav__extra p { margin: 0; }
  .js .site-nav__extra a { color: var(--ink); background: none !important; display: inline !important; font-family: var(--sans) !important; font-size: inherit !important; padding: 0 !important; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--brass); }
  .js .site-nav__extra-label { font-size: .74rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: .35rem !important; }
}
@media (min-width: 64rem) {
  .site-nav .lang-item { margin-left: .25rem; }
}
html.pm-menu-open .site-header { background: var(--paper) !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
