/* NLL shared UX rhythm · 2026-11-16
 * Opt in: <body data-nll-ux="20261116">. Load after existing page styles.
 * Deliberately excludes hero geometry, sticky scenes, paint/product composition,
 * calculators, project media and footer accordions. */
body[data-nll-ux="20261116"] {
  --nll-ux-space-1: 8px;
  --nll-ux-space-2: 16px;
  --nll-ux-space-3: 24px;
  --nll-ux-space-4: 32px;
  --nll-ux-section: clamp(32px, 4.5vw, 56px);
  --nll-ux-card: clamp(20px, 2.5vw, 32px);
  --nll-ux-reading: 68ch;
  --nll-ux-focus: #f2d675;
}
/* Client-approved heading alignment applies to every public page family. */
body[data-nll-ux="20261116"] main :is(h1, h2, h3) {
  text-align: center !important;
  text-wrap: balance;
}
body[data-nll-ux="20261116"] main .content-section :is(.section-title, h2) {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.18;
}
body[data-nll-ux="20261116"] main .nll-section-answer {
  max-width: 68ch;
  margin: 20px auto 32px !important;
  text-align: center !important;
  line-height: 1.65;
}
/* The fixed desktop header already carries quote and telephone actions. Keep
 * the mobile contact bar, without two extra copies covering desktop content. */
@media (min-width: 1024px) {
  body[data-nll-ux="20261116"] :is(.nll-sidecta, #nll-sticky) { display: none !important; }
}

/* Marketing sections share a rhythm. No universal section rule: the special
 * video, horizontal scenes, process, project deck and paint studio retain theirs. */
body[data-nll-ux="20261116"] #main-content > .content-section:not(.nll-services-glass):not(.nll-audience):not(.nll-process-glass):not(.nll-case-deck),
body[data-nll-ux="20261116"] #main-content > .nll-kontroll,
body[data-nll-ux="20261116"] #main-content > .nll-fq {
  padding-block: var(--nll-ux-section) !important;
}

/* Existing centered headings get a bounded answer rather than a full-width
 * line. Detailed copy, tables, card copy and split-layout intros stay left aligned. */
body[data-nll-ux="20261116"] #main-content :is(.nll-kontroll__answer, .nll-section-answer, .nll-price-hub__calc-lead),
body[data-nll-ux="20261116"] #main-content > .content-section > .container > .section-title + p,
body[data-nll-ux="20261116"] #main-content > .content-section > .section-title + p {
  max-width: var(--nll-ux-reading);
  margin: 20px auto 32px;
  text-align: center;
  line-height: 1.65;
  text-wrap: pretty;
}
body[data-nll-ux="20261116"] #main-content :is(.nll-kontroll__t, .nll-fq > .container > h2) {
  max-width: 28ch;
  margin: 0 auto 20px;
  text-align: center;
  text-wrap: balance;
}
body[data-nll-ux="20261116"] #main-content .nll-kontroll__answer {
  margin-bottom: 32px !important;
}

/* Real checklist: labels remain the whole click target, with no false decorative
 * checkboxes or cropped native focus outlines. */
body[data-nll-ux="20261116"] #main-content #nll-kontroll .nll-kontroll__l {
  padding: 0;
  gap: 0;
}
body[data-nll-ux="20261116"] #main-content #nll-kontroll .nll-check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  padding: var(--nll-ux-card);
  cursor: pointer;
}
body[data-nll-ux="20261116"] #main-content #nll-kontroll .nll-check-row input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: #c9a84c;
}
body[data-nll-ux="20261116"] #main-content #nll-kontroll .nll-check-row span { min-width: 0; }
body[data-nll-ux="20261116"] #main-content #nll-kontroll .nll-kontroll__o {
  margin-top: 20px;
  max-width: 85ch;
  line-height: 1.65 !important;
}

/* Three genuine FAQ families. The footer, guide contents, disclosures and service
 * scene accordions are intentionally absent from these selectors. */
body[data-nll-ux="20261116"] #main-content :is(.nll-fq__l, .faq-list) { gap: 12px; }
body[data-nll-ux="20261116"] :is(#main-content, #main) :is(details.nll-faq, details.faq-item) {
  margin-block: 0 12px;
}
body[data-nll-ux="20261116"] :is(#main-content, #main) :is(details.nll-faq, details.faq-item, details.nll-fq__i) > summary {
  min-height: 64px;
  padding: 20px 24px;
  gap: 20px;
  cursor: pointer;
  line-height: 1.4;
}
body[data-nll-ux="20261116"] #main-content .nll-fq__i > summary > h3 {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 22px);
  line-height: 1.35;
  text-wrap: balance;
}
body[data-nll-ux="20261116"] :is(#main-content, #main) :is(.nll-faq__a, .nll-fq__svar, .faq-answer) {
  padding: 20px 24px 24px;
  line-height: 1.75;
}
body[data-nll-ux="20261116"] :is(#main-content, #main) :is(.nll-faq__a, .nll-fq__svar, .faq-answer) > p {
  max-width: var(--nll-ux-reading);
  margin: 0 0 16px;
  line-height: 1.75 !important;
  text-align: left;
}
body[data-nll-ux="20261116"] :is(#main-content, #main) :is(.nll-faq__a, .nll-fq__svar, .faq-answer) > :last-child { margin-bottom: 0; }

/* Article rhythm is intentionally smaller than marketing section rhythm. */
body[data-nll-ux="20261116"] .nll-reader-body > h2 {
  margin-block: 48px 20px;
  scroll-margin-top: 112px;
  text-wrap: balance;
}
body[data-nll-ux="20261116"] .nll-reader-body > h2:first-child { margin-top: 0; }
body[data-nll-ux="20261116"] .nll-reader-body > h3 { margin-block: 32px 16px; }
body[data-nll-ux="20261116"] .nll-reader-body > p { margin-block: 0 24px; }
body[data-nll-ux="20261116"] .nll-reader-body > p + p { margin-top: 0; }
body[data-nll-ux="20261116"] .nll-reader-body :is(p, li) { overflow-wrap: break-word; }
body[data-nll-ux="20261116"] main .nll-article-section > .text-content > :last-child { margin-bottom: 0; }

/* Hub cards already own image ratios and hover behavior. Only the relationship
 * between section description and its grid changes. */
body[data-nll-ux="20261116"] .gh-section > h2 { margin-bottom: 16px; text-wrap: balance; }
body[data-nll-ux="20261116"] .gh-section > p:not(.gh-kicker) { max-width: var(--nll-ux-reading); line-height: 1.65; }
body[data-nll-ux="20261116"] .gh-section > .gh-grid { margin-top: 32px; }

/* Explicit reusable opt-ins for future editorial cards. Never blanket .card:
 * existing project/price/service cards have different composition requirements. */
body[data-nll-ux="20261116"] .nll-ux-card { padding: var(--nll-ux-card); }
body[data-nll-ux="20261116"] .nll-ux-card > :first-child { margin-top: 0; }
body[data-nll-ux="20261116"] .nll-ux-card > :last-child { margin-bottom: 0; }

/* Visible focus is kept inside clipped accordion boundaries. No forced overflow
 * hiding: horizontal tables and carousels retain their native scrolling. */
body[data-nll-ux="20261116"] :is(a, button, input, textarea, select, summary, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--nll-ux-focus);
  outline-offset: 3px;
}
body[data-nll-ux="20261116"] main details > summary:focus-visible { outline-offset: -4px; }
body[data-nll-ux="20261116"] main :is(.btn, .button, .company-primary, .nll-guide-controls button) { min-height: 44px; }
body[data-nll-ux="20261116"] main :is(.btn, .button, .company-primary) { white-space: normal; }

@media (max-width: 740px) {
  body[data-nll-ux="20261116"] { --nll-ux-section: 32px; }
  body[data-nll-ux="20261116"] #main-content :is(.nll-kontroll__answer, .nll-section-answer, .nll-price-hub__calc-lead) {
    margin-block: 16px 24px;
  }
  body[data-nll-ux="20261116"] :is(#main-content, #main) :is(details.nll-faq, details.faq-item, details.nll-fq__i) > summary {
    padding: 18px 20px;
    gap: 14px;
  }
  body[data-nll-ux="20261116"] :is(#main-content, #main) :is(.nll-faq__a, .nll-fq__svar, .faq-answer) { padding: 18px 20px 20px; }
  body[data-nll-ux="20261116"] .nll-reader-body > h2 { margin-block: 36px 16px; }
  body[data-nll-ux="20261116"] .gh-section > .gh-grid { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-nll-ux="20261116"] { scroll-behavior: auto; }
  body[data-nll-ux="20261116"] main .nll-fq__ikona::before,
  body[data-nll-ux="20261116"] main .nll-fq__ikona::after { transition: none; }
}
