
/* WordPress theme extras */
.treatment-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.treatment-card--link:hover h3 {
  color: var(--accent, #c87a53);
}

.dd-section-more {
  text-align: center;
  margin-top: 2.5rem;
}

.dd-admin-hint {
  padding: 1.5rem;
  background: var(--primary-light, #e9ece9);
  border-radius: var(--radius-md, 12px);
  color: var(--text-muted, #5a6e6a);
  font-size: 0.95rem;
}

.dd-page-hero {
  padding: 8rem 0 3rem;
  background: var(--bg-paper, #faf7f2);
}

.dd-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.5rem;
}

.dd-content-wrap {
  padding-bottom: 4rem;
}

.dd-archive-grid {
  margin-top: 2rem;
}

.dd-single-wrap {
  /* Only set vertical padding — keep .container side gutters (was 0 24px wiped by shorthand). */
  padding-top: 6.5rem;
  padding-bottom: 6rem;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  /* Avoid Lenis/transform stacking that can paint text under the hero image. */
  transform: none;
}

.dd-single-header {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  display: flow-root;
}

.dd-single-thumb {
  /* Never sticky/fixed — short articles were scrolling text under the image. */
  position: relative;
  z-index: 0;
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-md, 12px);
  transform: none !important;
}

.dd-single-thumb img {
  display: block;
  border-radius: var(--radius-md, 12px);
  margin: 0;
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.dd-single-header .article-meta,
.dd-single-header h1,
.dd-single-header .dd-lead {
  position: relative;
  z-index: 1;
  background: transparent;
}

.dd-single-content {
  position: relative;
  z-index: 1;
  line-height: 1.7;
  transform: none !important;
}

.dd-single-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.dd-single-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
}

.dd-single-content ul,
.dd-single-content ol {
  margin: 0 0 1rem 1.25rem;
}

.dd-single-content p {
  margin-bottom: 1rem;
}

body.single-post .dd-single-wrap [data-aos],
body.single-post .dd-single-wrap [data-aos].aos-animate {
  transform: none !important;
}

.dd-back {
  margin-top: 3rem;
}

.dd-back a {
  color: var(--primary, #2d4a43);
  font-weight: 600;
}

.article-img--placeholder {
  background: var(--primary-light, #e9ece9);
  min-height: 200px;
}

.article-img-link {
  display: block;
  line-height: 0;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent, #c87a53);
}

.dd-lead {
  font-size: 1.15rem;
  color: var(--text-muted, #5a6e6a);
  line-height: 1.5;
}

.logo img,
.custom-logo-link img {
  height: clamp(36px, 8vw, 48px);
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
}

.find-section .container > [data-aos] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.find-section #dd-finder,
.find-section .dd-finder {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  /* Theme.css still sets .find-layout to 1fr 1fr above 1299px reverse — force stack for our finder */
  .find-section .find-layout.dd-finder,
  .find-section #dd-finder.find-layout {
    grid-template-columns: 1fr !important;
  }
}

.hero-title .hero-title-accent {
  color: var(--accent, #c87a53);
  font-style: italic;
}

.dd-single-behandling .dd-beh-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.dd-single-behandling .dd-beh-kicker .treatment-icon {
  width: 48px;
  height: 48px;
}

.dd-single-behandling .dd-beh-kicker .treatment-number {
  font-size: 1.35rem;
  opacity: 0.7;
}

.dd-beh-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color, #e5e0d8);
}

.dd-beh-nav .dd-back-inline {
  margin-left: auto;
  color: var(--primary, #2d4a43);
  font-weight: 600;
  text-decoration: none;
}

.dd-beh-nav .dd-back-inline:hover {
  color: var(--accent, #c87a53);
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Section intros — never collapse into empty badge “blobs” */
.section-intro:empty {
  display: none;
}

.badge:empty {
  display: none;
}

.subsidies-copy .subsidies-title {
  font-size: 2.5rem;
  margin: 16px 0 24px;
}

.subsidies-copy .subsidies-lead {
  margin-bottom: 24px;
}

.subsidy-option-body > *:last-child {
  margin-bottom: 0;
}

.subsidy-option-body p {
  margin: 0 0 0.75rem;
}

/* Foredrag / erhverv booking card */
.booking-card .badge--on-dark {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.booking-card h2 {
  margin-top: 16px;
}

.booking-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.95);
}

.booking-bullets svg {
  color: var(--accent, #c87a53);
  flex-shrink: 0;
}

.booking-card .btn--on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.booking-card .btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.booking-form-panel {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-form-panel h3 {
  color: #ffffff;
  margin: 0 0 12px;
  font-family: var(--font-sans, inherit);
  font-size: 1.35rem;
}

.booking-form-intro {
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 20px !important;
  font-size: 0.95rem !important;
}

.booking-form .form-control {
  background: rgba(255, 255, 255, 0.92);
}

.booking-form .form-control--tall {
  height: 100px;
  resize: vertical;
  min-height: 100px;
}

.booking-form .btn--accent-fill {
  width: 100%;
  background-color: var(--accent, #c87a53);
  border-color: var(--accent, #c87a53);
}

.booking-form .btn--accent-fill:hover {
  background-color: #b86b46;
}

.booking-form-notice {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.booking-form-notice--ok {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.booking-form-notice--err {
  background: rgba(180, 40, 40, 0.35);
  color: #fff;
}

.dd-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 900px) {
  .subsidies-grid {
    grid-template-columns: 1fr !important;
  }

  .booking-grid {
    grid-template-columns: 1fr !important;
  }

  .booking-card {
    padding: 36px 24px !important;
  }
}

/* Mobile: prevent sideways scroll + keep content gutters on singles/archives */
html,
body {
  overflow-x: clip;
}

#dd-theme-root {
  overflow-x: clip;
  max-width: 100%;
}

#dd-theme-root h1,
#dd-theme-root h2,
#dd-theme-root h3,
#dd-theme-root h4,
#dd-theme-root p,
#dd-theme-root li,
#dd-theme-root .dd-lead,
#dd-theme-root .dd-single-content {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

#dd-theme-root .dd-single-content,
#dd-theme-root .dd-single-header,
#dd-theme-root .dd-beh-nav {
  min-width: 0;
}

#dd-theme-root img,
#dd-theme-root .dd-single-thumb,
#dd-theme-root .dd-single-thumb img {
  max-width: 100%;
}

@media (max-width: 768px) {
  .dd-single-wrap {
    padding-top: 5rem;
    padding-bottom: 3.5rem;
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-intro {
    max-width: 100%;
    padding: 0 4px;
    margin-bottom: 2.5rem;
  }

  .section-intro h2 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    line-height: 1.2;
  }

  .dd-beh-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .dd-beh-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .dd-beh-nav .dd-back-inline {
    margin-left: 0;
    text-align: center;
  }

  .dd-page-hero {
    padding: 5.5rem 0 2rem;
  }
}
