:root {
  --green-900: #0e472f;
  --green-800: #265944;
  --green-700: #14643c;
  --green-600: #287876;
  --green-300: #82ba79;
  --green-100: #d7e3d5;
  --green-050: #f4f7f3;
  --sand-050: #f7f3ea;
  --gold-600: #d89b45;
  --blue-900: #08334c;
  --blue-700: #1e6a96;
  --text: #1f1f1f;
  --muted: #5f6662;
  --border: #dadada;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --warning: #8a5a00;
  --warning-bg: #fff5d6;
  --danger: #9c2f1b;
  --danger-bg: #fde7e1;
  --success: #0e5a38;
  --success-bg: #e5f2e3;
  --neutral-bg: #edf2f4;
  --shadow: 0 18px 45px rgba(8, 51, 76, 0.12);
  --shadow-soft: 0 10px 24px rgba(8, 51, 76, 0.06);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, var(--sand-050) 0%, #fff 44%, var(--green-050) 100%);
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  z-index: 999;
  outline: 3px solid var(--green-700);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 243, 0.88);
  border-bottom: 1px solid rgba(14, 71, 47, 0.12);
  backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-900);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 71, 47, 0.25);
}

.brand-mark::before {
  content: "";
  width: 23px;
  height: 23px;
  display: block;
  background:
    linear-gradient(135deg, transparent 45%, currentColor 46% 54%, transparent 55%) 0 0 / 100% 70% no-repeat,
    linear-gradient(currentColor, currentColor) 4px 10px / 15px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 12px / 2px 9px no-repeat,
    linear-gradient(currentColor, currentColor) 16px 12px / 2px 9px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 15px / 5px 6px no-repeat;
}

.brand-name,
.brand-tagline,
.eyebrow,
.small-note,
.preview-label,
.step-indicator,
.question-help,
.notice p,
.info-card p,
.process-card p {
  margin: 0;
}

.brand-name {
  font-size: 1.04rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-tagline {
  margin-top: 0.18rem;
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 650;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: var(--green-900);
  font-weight: 650;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--green-100);
}

.site-nav a[aria-current="page"] {
  background: var(--green-100);
  color: var(--green-900);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(216, 155, 69, 0.5);
  outline-offset: 3px;
}

.section {
  padding: 3.25rem 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.52);
  border-block: 1px solid rgba(14, 71, 47, 0.08);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header p {
  max-width: 36rem;
  color: var(--muted);
}

.hero {
  padding-top: 4.8rem;
  padding-bottom: 2.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green-800);
  box-shadow: 0 8px 20px rgba(14, 71, 47, 0.08);
}

.eyebrow-on-dark {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.eyebrow-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green-300);
}

h1,
h2,
h3 {
  color: var(--green-900);
}

h1 {
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 1.2rem 0 1.1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
}

h3 {
  margin: 0.2rem 0 0.45rem;
  line-height: 1.15;
}

.lead {
  font-size: clamp(1.08rem, 2.3vw, 1.38rem);
  max-width: 48rem;
  color: #33403a;
  margin: 0 0 1.7rem;
}

.hero-description {
  color: #33403a;
  font-size: 1.06rem;
  line-height: 1.7;
  margin: -0.8rem 0 1.55rem;
  max-width: 46rem;
}

.muted,
.small-note {
  color: var(--muted);
}

.small-note {
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 42rem;
}

.hero-actions,
.wizard-actions,
.result-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  max-width: 48rem;
}

.feature-pills span {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.14);
  border-radius: 999px;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  min-height: 2.8rem;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 14px 30px rgba(14, 71, 47, 0.25);
}

.button-primary:hover {
  background: var(--green-800);
}

.button-secondary,
.button-muted {
  background: #fff;
  color: var(--green-900);
  border: 1px solid rgba(14, 71, 47, 0.18);
}

.button-secondary:hover,
.button-muted:hover {
  background: var(--green-050);
}

.button-muted {
  background: var(--green-050);
}

.button-large {
  padding: 0.95rem 1.25rem;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 71, 47, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--green-900), var(--green-300), var(--blue-700));
}

.screen-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0.95rem;
  margin-top: 0.2rem;
}

.preview-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.preview-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--border);
}

.mini-progress,
.progress-track {
  height: 9px;
  border-radius: 99px;
  background: var(--green-100);
  overflow: hidden;
}

.mini-progress {
  margin: 0.5rem 0 1rem;
}

.mini-progress div,
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-900), var(--green-300));
  border-radius: 99px;
  transition: width 0.2s ease;
}

.mini-progress div {
  width: 58%;
}

.progress-bar {
  width: 0;
}

.preview-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.preview-question {
  font-weight: 850;
  font-size: 1.12rem;
  color: var(--green-900);
  margin: 0.32rem 0 0.7rem;
}

.preview-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.62rem 0.72rem;
  margin: 0.38rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.preview-option strong {
  line-height: 1.25;
}

.preview-option.checked {
  border-color: var(--green-700);
  background: var(--green-050);
}

.radio-fake {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--green-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.radio-fake::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-700);
}

.radio-empty {
  border-color: var(--border);
}

.radio-empty::after {
  display: none;
}

.status-pill,
.result-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 900;
  font-size: 0.9rem;
}

.status-pill {
  align-items: center;
  max-width: 100%;
  width: fit-content;
  margin-top: 0.75rem;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 0.55rem 0.75rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trust-strip,
.info-grid,
.process-grid {
  display: grid;
  gap: 1rem;
}

.trust-strip {
  grid-template-columns: repeat(3, 1fr);
  margin: 2rem 0 0;
}

.trust-item,
.notice {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.14);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.trust-icon,
.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  color: var(--green-900);
  font-weight: 900;
  flex: 0 0 auto;
}

.trust-item strong,
.notice strong {
  display: block;
  color: var(--green-900);
  margin-bottom: 0.15rem;
}

.trust-item span,
.notice p {
  font-size: 0.93rem;
  color: var(--muted);
}

.trust-panel {
  background: #236b57;
  border-radius: var(--radius-lg);
  color: #fff;
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}

.trust-panel h2 {
  color: #fff;
}

.trust-panel-grid {
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-check {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.trust-check span {
  color: var(--gold-600);
  font-size: 1.15rem;
  font-weight: 900;
}

.trust-check p {
  color: #fff;
  font-weight: 800;
  margin: 0;
}

.info-grid,
.process-grid {
  grid-template-columns: repeat(3, 1fr);
}

.answers-section {
  background: rgba(255, 255, 255, 0.38);
}

.answer-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-card {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.25rem;
}

.answer-card h3 {
  color: var(--green-900);
  margin: 0 0 0.45rem;
}

.answer-card p {
  color: var(--muted);
  margin: 0;
}

.info-card,
.process-card {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.14);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}

.info-card h3,
.process-card h3 {
  color: var(--green-900);
}

.card-icon {
  margin-bottom: 0.75rem;
}

.process-card span {
  color: var(--green-700);
  font-weight: 900;
  font-size: 0.86rem;
}

.notice-strong {
  max-width: 58rem;
  margin: 0 auto;
}

.homepage-note {
  display: block;
  max-width: 950px;
  padding: 1.6rem 1.75rem;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(14, 71, 47, 0.1);
  box-shadow: 0 8px 22px rgba(8, 51, 76, 0.04);
}

.caution-note {
  align-items: flex-start;
  background: #fff8e8;
  border-color: rgba(216, 155, 69, 0.45);
  display: flex;
  gap: 0.9rem;
}

.notice-icon {
  background: rgba(216, 155, 69, 0.18);
  border-radius: 999px;
  color: #7a4c00;
  display: grid;
  flex: 0 0 auto;
  font-weight: 900;
  height: 2rem;
  place-items: center;
  width: 2rem;
}

.homepage-note h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 0.9rem;
}

.homepage-note p {
  max-width: 820px;
  color: #4f5a55;
  font-size: 1rem;
  line-height: 1.7;
}

.homepage-note p + p {
  margin-top: 0.75rem;
}

.app-shell {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff;
  padding: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.app-header h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0.65rem 0 0.45rem;
}

.app-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.version-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}

.wizard-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 620px;
}

.steps {
  background: var(--green-050);
  border-right: 1px solid rgba(14, 71, 47, 0.12);
  padding: 1.25rem;
}

.step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 16px;
  color: var(--muted);
}

.step + .step {
  margin-top: 0.35rem;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 850;
  color: var(--green-800);
  flex: 0 0 auto;
}

.step.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(8, 51, 76, 0.06);
}

.step.active .step-number {
  background: var(--green-900);
  color: #fff;
  border-color: var(--green-900);
}

.step.done .step-number {
  background: var(--green-300);
  color: var(--green-900);
  border-color: var(--green-300);
}

.step strong {
  display: block;
  color: var(--green-900);
  line-height: 1.15;
}

.step span {
  font-size: 0.88rem;
}

.wizard-panel {
  padding: 1.75rem;
}

.wizard-meta {
  margin-bottom: 1.25rem;
}

.step-indicator {
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 750;
  margin-bottom: 0.55rem;
}

.mobile-stage-indicator {
  display: none;
  color: var(--green-900);
  font-size: 0.925rem;
  font-weight: 750;
  margin: -0.25rem 0 0.55rem;
}

.question-text {
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--green-900);
  margin: 0.2rem 0 0.5rem;
  user-select: none;
}

.question-text:focus {
  outline: none;
}

.question-help {
  color: var(--muted);
  max-width: 48rem;
  font-weight: 400;
  line-height: 1.4;
}

.question-container {
  margin: 1.5rem 0;
}

.choice-group {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.choice-option {
  position: relative;
  border: 2px solid rgba(14, 71, 47, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
  user-select: none;
}

.choice-option:hover,
.choice-option:has(input:focus-visible) {
  border-color: rgba(14, 99, 70, 0.35);
  box-shadow: 0 10px 22px rgba(14, 71, 47, 0.06);
  transform: translateY(-1px);
}

.choice-option.selected,
.choice-option:has(input:checked) {
  border-color: var(--green-700);
  background: var(--green-050);
  box-shadow: 0 12px 24px rgba(14, 71, 47, 0.08);
}

.choice-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  accent-color: var(--green-700);
}

.choice-marker {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(14, 99, 70, 0.18);
  border: 0;
  flex: 0 0 auto;
}

.choice-marker::before {
  content: none;
}

.choice-option.selected .choice-marker,
.choice-option:has(input:checked) .choice-marker {
  background: var(--green-700);
  border-color: var(--green-700);
}

.choice-content,
.choice-label,
.choice-description {
  display: block;
}

.choice-content {
  color: var(--green-900);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.12rem;
  width: 100%;
  align-items: center;
}

.choice-label {
  font-weight: 850;
  line-height: 1.25;
  grid-column: 1;
}

.choice-description {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  grid-column: 1;
}

.choice-content::before,
.choice-label::before,
.choice-description::before {
  content: none;
}

.choice-option:has(input:focus-visible) .choice-marker {
  outline: 3px solid rgba(14, 99, 70, 0.2);
  outline-offset: 3px;
}

.number-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.number-input input {
  width: 100%;
  max-width: 16rem;
  min-height: 3.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.number-input input:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(130, 186, 121, 0.28);
}

.input-unit {
  color: var(--muted);
  font-weight: 850;
}

.numeric-answer-group {
  display: grid;
  gap: 0.75rem;
}

.numeric-answer-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.numeric-answer-input {
  flex: 1 1 auto;
  width: 100%;
  max-width: 16rem;
  min-height: 3.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.numeric-answer-input:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(130, 186, 121, 0.28);
}

.numeric-answer-unit,
.numeric-answer-unit-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 850;
}

.numeric-answer-unit {
  min-height: 3.15rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.numeric-answer-unit:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(130, 186, 121, 0.28);
}

.numeric-answer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.numeric-answer-options:not(:has(.numeric-answer-option:nth-child(2))) {
  grid-template-columns: 1fr;
}

.numeric-answer-options .numeric-answer-option {
  width: 100%;
  max-width: none;
  min-height: 62px;
  margin-top: 0;
}

.numeric-answer-options .choice-option:has(input:checked) {
  border-color: rgba(14, 71, 47, 0.12);
  background: #fff;
  box-shadow: none;
}

.numeric-answer-options .choice-option.selected {
  border-color: var(--green-700);
  background: var(--green-050);
  box-shadow: 0 12px 24px rgba(14, 71, 47, 0.08);
}

.numeric-answer-options .choice-option.selected .choice-marker {
  background: var(--green-700);
  border-color: var(--green-700);
}

.numeric-answer-options .choice-option:not(.selected):has(input:focus-visible) {
  border-color: rgba(14, 99, 70, 0.35);
  background: #fff;
  box-shadow: 0 10px 22px rgba(14, 71, 47, 0.06);
}

.numeric-answer-options .choice-option:not(.selected):has(input:focus-visible) .choice-marker {
  background: rgba(14, 99, 70, 0.18);
  outline: 3px solid rgba(14, 99, 70, 0.2);
  outline-offset: 3px;
}

.unknown-option {
  margin-top: 0.75rem;
  max-width: 18rem;
  min-height: auto;
}

.form-error {
  color: var(--danger);
  font-weight: 850;
  margin: 0.75rem 0 0;
}

.wizard-actions {
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(14, 71, 47, 0.1);
}

.result-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(14, 71, 47, 0.14);
  background: #fff;
  box-shadow: var(--shadow);
}

.result-hero {
  border-radius: 22px;
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: var(--neutral-bg);
}

.result-card.result-green .result-hero {
  background: var(--success-bg);
  border-color: rgba(14, 90, 56, 0.25);
}

.result-card.result-yellow .result-hero {
  background: var(--warning-bg);
  border-color: rgba(138, 90, 0, 0.25);
}

.result-card.result-red .result-hero {
  background: var(--danger-bg);
  border-color: rgba(156, 47, 27, 0.25);
}

.result-card.result-not-covered .result-hero {
  background: var(--neutral-bg);
  border-color: rgba(70, 82, 96, 0.18);
}

.result-card.result-out_of_scope .result-hero {
  background: var(--neutral-bg);
}

.result-label {
  background: #fff;
  color: var(--green-900);
  margin-bottom: 0.85rem;
}

.result-green .result-label {
  color: var(--success);
}

.result-yellow .result-label {
  color: var(--warning);
}

.result-not-covered .result-label {
  color: #465260;
}

.result-red .result-label {
  color: var(--danger);
}

.result-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0.2rem 0 0.65rem;
}

.result-explanation p {
  max-width: 62rem;
  color: #33403a;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0;
}

.result-subsection {
  margin-top: 1.25rem;
}

.result-subsection-title {
  margin: 0 0 0.75rem;
  color: var(--green-900);
  font-size: 1.1rem;
}

.result-subsection[hidden],
.info-box[hidden] {
  display: none !important;
}

.next-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #33403a;
}

.next-step-list li {
  margin: 0.55rem 0;
  padding-left: 1.6rem;
  position: relative;
  line-height: 1.55;
}

.next-step-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-700);
  font-weight: 700;
}

.next-step-bbr-card {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(14, 71, 47, 0.1);
}

.next-step-bbr-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-900);
}

.next-step-bbr-card p {
  margin: 0.45rem 0 0;
  color: #33403a;
  font-weight: 400;
  line-height: 1.45;
}

.next-step-bbr-card .next-step-bbr-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--green-800);
  font-weight: 650;
  text-decoration: none;
}

.next-step-bbr-card .next-step-bbr-link:hover,
.next-step-bbr-card .next-step-bbr-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.answers-collapsible > summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-900);
  list-style: none;
}

.answers-collapsible > summary::-webkit-details-marker {
  display: none;
}

.answers-collapsible > summary::after {
  content: " ▾";
  font-size: 0.9rem;
}

.answers-collapsible[open] > summary::after {
  content: " ▴";
}

.answer-stage-group + .answer-stage-group {
  margin-top: 1rem;
}

.answer-stage-title {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  color: var(--green-800);
}

#documents-section {
  --document-card-padding: 0.8rem;
}

#documents-section .documents-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

#documents-section .documents-content > .document-list {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

#documents-section .documents-intro,
#documents-section .documents-note {
  margin: 0;
  padding-inline: var(--document-card-padding);
  color: #33403a;
  line-height: 1.55;
}

#documents-section .documents-content .document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.document-card {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: 14px;
  padding: var(--document-card-padding, 0.8rem);
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.summary-item {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: 16px;
  padding: 0.85rem;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
}

.summary-item strong {
  display: block;
  color: var(--green-900);
  font-size: 1.05rem;
  margin-top: 0.1rem;
}

.result-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.result-sections:has([hidden]),
.result-sections-single {
  grid-template-columns: 1fr;
}

.result-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.info-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.info-box h2,
.disclaimer-box h2 {
  margin: 0 0 0.7rem;
  color: var(--green-900);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.info-box .muted {
  margin: 0;
  color: #33403a;
  line-height: 1.55;
}

.reason-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: #33403a;
}

.reason-list li {
  margin: 0.55rem 0;
  padding-left: 1.6rem;
  position: relative;
}

.reason-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-700);
  font-weight: 900;
}

.document-card-title {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.document-card strong {
  color: var(--green-900);
}

.document-card span {
  color: var(--muted);
}

.help-trigger {
  align-items: center;
  background: var(--green-050);
  border: 1px solid rgba(14, 71, 47, 0.2);
  border-radius: 999px;
  color: var(--green-700);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 900;
  height: 1.55rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 1.55rem;
}

.help-trigger:hover,
.help-trigger:focus-visible,
.help-trigger[aria-expanded="true"] {
  background: var(--green-100);
  border-color: var(--green-700);
  color: var(--green-900);
  outline: none;
}

.help-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(130, 186, 121, 0.35);
}

.help-popover {
  background: var(--surface);
  border: 1px solid rgba(14, 71, 47, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(8, 51, 76, 0.18);
  color: var(--text);
  max-width: calc(100vw - 2rem);
  padding: 1rem;
  position: fixed;
  width: min(420px, calc(100vw - 2rem));
  z-index: 20;
}

.help-popover[hidden] {
  display: none;
}

.help-popover h3 {
  color: var(--green-900);
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 2rem 0.7rem 0;
}

.help-popover p {
  color: #33403a;
  margin: 0.75rem 0;
  font-weight: 400;
  line-height: 1.4;
}

.help-popover ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.help-popover li {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.help-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 0.55rem;
  top: 0.45rem;
  width: 2rem;
}

.help-close:hover,
.help-close:focus-visible {
  background: var(--green-050);
  color: var(--green-900);
  outline: none;
}

.help-illustration {
  align-items: center;
  background: linear-gradient(180deg, var(--green-050), #fff);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  min-height: 7rem;
  overflow: hidden;
}

.help-illustration svg {
  height: 6.2rem;
  max-width: 100%;
  width: 100%;
}

.help-illustration img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.help-image-button {
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.help-image-button:focus-visible {
  outline: 3px solid rgba(130, 186, 121, 0.55);
  outline-offset: 3px;
}

.help-image-button img {
  border: 1px solid rgba(14, 71, 47, 0.14);
  border-radius: 14px;
}

.help-illustration rect,
.help-illustration path,
.help-illustration circle {
  fill: none;
  stroke: var(--green-700);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.help-illustration text {
  fill: var(--green-900);
  font-size: 1.35rem;
  font-weight: 900;
}

.help-illustration-placeholder {
  color: var(--muted);
  font-weight: 800;
}

.help-popover-mobile {
  border-radius: 20px 20px 0 0;
  bottom: 0;
  left: 0;
  max-width: none;
  padding: 1rem 1.15rem 1.25rem;
  right: 0;
  top: auto;
  width: 100%;
}

.help-lightbox {
  align-items: center;
  background: rgba(8, 25, 18, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  z-index: 40;
}

.help-lightbox[hidden] {
  display: none;
}

.help-lightbox-panel {
  max-height: calc(100vh - 2.5rem);
  max-width: min(1040px, calc(100vw - 2.5rem));
  position: relative;
}

.help-lightbox-panel img {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  display: block;
  height: auto;
  max-height: calc(100vh - 2.5rem);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.help-lightbox-close {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.18);
  border-radius: 999px;
  color: var(--green-900);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.55rem;
  height: 2.4rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: -0.8rem;
  top: -0.8rem;
  width: 2.4rem;
  z-index: 1;
}

.help-lightbox-close:focus-visible,
.help-lightbox-close:hover {
  background: var(--green-050);
  outline: none;
}

.has-help-lightbox {
  overflow: hidden;
}

.answer-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.answer-summary div {
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: 14px;
  padding: 0.85rem;
  background: var(--surface-2);
}

.answer-summary dt {
  font-weight: 800;
  color: var(--green-900);
}

.answer-summary dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.disclaimer-box {
  margin-top: 1.25rem;
  background: var(--green-050);
}

.result-actions {
  margin-top: 1.15rem;
}

.info-page {
  max-width: 1100px;
}

.info-page h1 {
  margin: 0.35rem 0 0.85rem;
  color: var(--green-900);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.info-page > .lead {
  max-width: 46rem;
  margin-bottom: 1.35rem;
}

.info-page-card,
.info-step,
.color-note {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.info-page-card {
  padding: 1.35rem;
}

.info-page-card p {
  margin: 0;
}

.info-page-card p + p {
  margin-top: 1rem;
}

.info-hero {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.info-hero p:last-child {
  color: var(--muted);
  margin: 0;
  max-width: 46rem;
}

.info-content {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.info-section,
.info-grid,
.info-card--wide {
  margin-top: 1.1rem;
}

.info-section-header {
  margin-bottom: 0.75rem;
}

.info-section-header h2,
.info-section-header p {
  margin: 0;
}

.info-section-header h2 {
  color: var(--green-900);
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.info-section-header p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 0.3rem;
  max-width: 46rem;
}

.info-grid {
  display: grid;
  gap: 0.9rem;
}

.info-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.25rem;
}

.info-card--wide {
  padding: 1.35rem 1.5rem;
}

.info-card--highlight {
  background: #f4f8f4;
  border-color: rgba(14, 71, 47, 0.18);
}

.info-card--warning {
  background: #fff8e8;
  border-color: rgba(138, 90, 0, 0.2);
}

.forbehold-summary {
  margin-top: 1.35rem;
}

.forbehold-summary--framed {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.forbehold-summary .info-section-header {
  margin-bottom: 1rem;
}

.guide-flow-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 1.35rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.guide-flow-section .info-section-header {
  margin-bottom: 1rem;
}

.guide-flow-section .info-steps {
  margin-top: 0;
}

.forbehold-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forbehold-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  min-height: 100%;
  padding: 1.15rem 1.25rem;
}

.forbehold-list h3 {
  color: var(--green-900);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 0.45rem;
}

.forbehold-list p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.info-card h2,
.info-card h3 {
  color: var(--green-900);
  font-size: 1.08rem;
  letter-spacing: 0;
  margin: 0 0 0.45rem;
}

.info-card p {
  color: var(--muted);
  margin: 0;
}

.info-card p + p {
  margin-top: 0.65rem;
}

.info-list {
  color: var(--muted);
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
}

.info-list li + li {
  margin-top: 0.35rem;
}

.contact-details {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
}

.contact-details strong {
  color: var(--green-900);
}

.contact-details a {
  color: var(--green-900);
  text-decoration: none;
  width: fit-content;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-mailbox {
  display: grid;
  gap: 0.85rem;
  padding-block: 1.15rem;
}

.contact-page .contact-mailbox {
  margin-top: clamp(1.25rem, 3vw, 1.8rem);
}

.contact-mailbox-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
}

.contact-mail-link {
  color: var(--green-900);
  font-size: 1.05rem;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-mail-link:hover,
.contact-mail-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.info-note {
  font-size: 0.9rem;
  margin-top: 0.85rem !important;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.byggeord-search {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.38rem;
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
}

.byggeord-search label {
  color: var(--green-900);
  font-weight: 850;
}

.byggeord-search input {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.16);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.82rem;
  width: 100%;
}

.byggeord-search input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(14, 99, 70, 0.12);
  outline: none;
}

.byggeord-no-results {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.byggeord-categories {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.byggeord-category {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
}

.byggeord-category h2 {
  color: var(--green-900);
  font-size: 1.18rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.byggeord-list {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.byggeord-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.byggeord-item summary {
  align-items: center;
  color: var(--green-900);
  cursor: pointer;
  display: flex;
  font-weight: 850;
  list-style: none;
  min-height: 2.55rem;
  padding: 0.58rem 0.78rem;
}

.byggeord-item summary::-webkit-details-marker {
  display: none;
}

.byggeord-item summary::marker {
  content: "";
}

.byggeord-item summary:hover {
  background: rgba(244, 248, 244, 0.7);
}

.byggeord-item summary:focus-visible {
  outline: 3px solid rgba(14, 99, 70, 0.24);
  outline-offset: -3px;
}

.byggeord-item[open] summary {
  border-bottom: 1px solid rgba(14, 71, 47, 0.1);
}

.byggeord-item p {
  color: var(--muted);
  line-height: 1.52;
  margin: 0;
  padding: 0 0.78rem 0.72rem;
}

.byggeord-item p:first-of-type {
  padding-top: 0.72rem;
}

.byggeord-item p + p {
  padding-top: 0;
}

.byggeord-note {
  margin-top: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.contact-form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-case-notice {
  margin-top: 1.1rem;
}

.contact-form {
  gap: 1rem;
  margin-top: 0.25rem;
}

.contact-form textarea {
  font: inherit;
}

.contact-consent {
  align-items: flex-start;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  gap: 0.7rem;
  line-height: 1.5;
}

.contact-consent input {
  accent-color: var(--green-700);
  flex: 0 0 auto;
  height: 1.15rem;
  margin: 0.18rem 0 0;
  width: 1.15rem;
}

.contact-consent:has(input:focus-visible) {
  border-radius: 8px;
  outline: 3px solid rgba(216, 155, 69, 0.5);
  outline-offset: 4px;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.15rem;
}

.contact-form .button:disabled {
  background: #77827c;
  box-shadow: none;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.tool-card {
  display: grid;
  gap: 0.85rem;
  grid-template-rows: auto 1fr auto;
}

.tool-card .button {
  width: fit-content;
}

.tools-page {
  --tools-page-padding: clamp(1.15rem, 3vw, 1.65rem);
}

.tools-page .info-hero,
.tools-page > .info-grid > .tool-card,
.tools-page > .tools-note,
.tools-page > .tools-explainer {
  padding: var(--tools-page-padding);
}

.tools-explainer {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.tools-explainer .info-section-header {
  margin-bottom: 1rem;
  padding-inline: 0;
}

.tools-explainer .info-grid {
  margin-top: 0;
}

.tools-note {
  background: rgba(244, 248, 244, 0.62);
  box-shadow: none;
}

.guide-cta {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.guide-cta h2,
.guide-cta p {
  margin: 0;
}

.guide-cta h2 {
  color: var(--green-900);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.guide-cta p {
  color: var(--muted);
  margin-top: 0.25rem;
}

.tool-calculator {
  margin-top: 1.1rem;
}

.calculator-flow {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.calculator-group {
  border-top: 1px solid rgba(14, 71, 47, 0.1);
  display: grid;
  gap: 0.7rem;
  padding-top: 0.95rem;
}

.calculator-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.calculator-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.field-help,
.rate-note {
  background: rgba(244, 248, 244, 0.62);
  border: 1px solid rgba(14, 71, 47, 0.08);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  padding: 0.7rem 0.85rem;
}

.field-help {
  background: transparent;
  border: 0;
  padding: 0;
}

.rate-edit-field {
  width: 100%;
}

.rate-edit-field .input-suffix {
  width: 100%;
}

.calculator-result {
  background: var(--green-050);
  border: 1px solid rgba(14, 71, 47, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
}

.calculator-result--warning {
  background: var(--danger-bg);
  border-color: rgba(156, 47, 27, 0.28);
}

.calculator-result-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-result-item {
  display: grid;
  gap: 0.15rem;
}

.calculator-result-item--main {
  border-bottom: 1px solid rgba(14, 71, 47, 0.1);
  padding-bottom: 0.85rem;
}

.calculator-result span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.calculator-result strong {
  color: var(--green-900);
  font-size: 1.05rem;
  line-height: 1.3;
}

.calculator-result--warning strong {
  color: var(--danger);
}

.calculator-result--warning #coverage-status::before {
  content: "Advarsel: ";
}

.calculator-status-detail {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.calculator-result--warning .calculator-status-detail {
  color: var(--danger);
}

.calculator-result-item--main strong {
  font-size: 1.08rem;
}

.calculator-disclaimer {
  background: #fff8e8;
  border: 1px solid rgba(138, 90, 0, 0.2);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  padding: 0.78rem 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field span {
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(14, 71, 47, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  min-height: 48px;
  padding: 0.82rem 0.9rem;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-900) 50%),
    linear-gradient(135deg, var(--green-900) 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) 50%,
    calc(100% - 0.72rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.34rem 0.34rem, 0.34rem 0.34rem;
  padding-right: 2.2rem;
}

.form-field small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.input-suffix {
  align-items: center;
  display: block;
  position: relative;
}

.input-suffix input {
  padding-right: 2.45rem;
}

.input-suffix span {
  color: var(--green-900);
  font-weight: 850;
  pointer-events: none;
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(20, 100, 60, 0.12);
  outline: 0;
}

.form-success {
  background: #e5f2e3;
  border: 1px solid rgba(14, 90, 56, 0.2);
  border-radius: 12px;
  color: var(--success);
  margin: 0;
  padding: 0.8rem 0.9rem;
}

.fuldmagt-privacy {
  margin-top: 1.1rem;
}

.fuldmagt-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.fuldmagt-section.info-card > h2 {
  margin: 0 0 1.15rem;
}

.fuldmagt-section h2 + p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.fuldmagt-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fuldmagt-field-wide {
  grid-column: 1 / -1;
}

.fuldmagt-checkbox-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fuldmagt-checkbox-grid label {
  align-items: center;
  background: rgba(244, 248, 244, 0.62);
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: 12px;
  color: var(--green-900);
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.62rem 0.75rem;
}

.fuldmagt-checkbox-grid input {
  accent-color: var(--green-700);
  height: 1rem;
  width: 1rem;
}

.fuldmagt-other-field {
  margin-top: 0.85rem;
}

.fuldmagt-local-note {
  margin: 0;
}

.fuldmagt-error {
  background: var(--danger-bg);
  border: 1px solid rgba(156, 47, 27, 0.22);
  border-radius: 12px;
  color: var(--danger);
  margin: 0;
  padding: 0.8rem 0.9rem;
}

.field-invalid input,
.field-invalid textarea,
.field-invalid select,
input.field-invalid,
textarea.field-invalid,
select.field-invalid,
.fuldmagt-checkbox-grid.field-invalid,
select.field-invalid {
  border-color: rgba(156, 47, 27, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(156, 47, 27, 0.08);
}

.fuldmagt-preview-section {
  margin-top: 1.25rem;
}

.fuldmagt-document {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  line-height: 1.45;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.fuldmagt-document h2 {
  color: var(--green-900);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.fuldmagt-document p {
  margin: 0 0 0.85rem;
}

.fuldmagt-blanket-lead {
  color: var(--muted);
}

.fuldmagt-blanket-section {
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 8px;
  margin-top: 0.85rem;
  overflow: hidden;
}

.fuldmagt-blanket-section h3 {
  background: #f2f2f2;
  border-bottom: 1px solid rgba(20, 20, 20, 0.14);
  color: #18231d;
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0;
  padding: 0.55rem 0.75rem;
}

.fuldmagt-blanket-section > p,
.fuldmagt-blanket-section > ul,
.fuldmagt-blanket-checks,
.fuldmagt-blanket-field {
  margin-inline: 0.75rem;
}

.fuldmagt-blanket-intro {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.65rem !important;
}

.fuldmagt-blanket-field {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(8.5rem, 0.35fr) 1fr;
  margin-block: 0.55rem;
}

.fuldmagt-blanket-field strong {
  color: #18231d;
}

.fuldmagt-blanket-field span:last-child {
  background: #fafafa;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 6px;
  min-height: 2rem;
  padding: 0.38rem 0.55rem;
}

.fuldmagt-blanket-field--large span:last-child {
  min-height: 4.5rem;
}

.required-star {
  color: #c62828 !important;
  font-weight: 700;
  margin-left: 2px;
}

.fuldmagt-blanket-checks {
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 0.65rem;
}

.fuldmagt-blanket-check {
  align-items: start;
  color: #18231d;
  display: flex;
  gap: 0.45rem;
}

.fuldmagt-checkmark {
  color: #111;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
}

.fuldmagt-blanket-section ul {
  color: var(--muted);
  margin-block: 0.65rem;
  padding-left: 1.1rem;
}

.fuldmagt-blanket-section li + li {
  margin-top: 0.4rem;
}

.fuldmagt-signature-section {
  border-color: rgba(20, 20, 20, 0.35);
  border-width: 2px;
}

.fuldmagt-blanket-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem !important;
}

.fuldmagt-output-actions {
  margin-top: 1rem;
}

.fuldmagt-feedback {
  margin-top: 0.85rem;
}

.info-steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.info-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
}

.info-step span {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-050);
  color: var(--green-900);
  font-weight: 900;
}

.info-step h2 {
  margin: 0 0 0.25rem;
  color: var(--green-900);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.info-step p,
.color-note p {
  margin: 0;
  color: var(--muted);
}

.result-color-guide {
  margin-top: 1.7rem;
}

.result-color-guide--framed {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 2.5vw, 1.45rem);
}

.result-color-guide--framed .info-section-header {
  margin-bottom: 1rem;
}

.result-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.result-color-guide--framed .result-color-grid {
  margin-top: 0;
}

.color-note {
  padding: 1rem;
  border-left-width: 5px;
}

.color-note strong {
  display: block;
  color: var(--green-900);
  margin-bottom: 0.25rem;
}

.color-note-green {
  border-left-color: var(--success);
}

.color-note-yellow {
  border-left-color: var(--warning);
}

.color-note-red {
  border-left-color: var(--danger);
}

.color-note-neutral {
  border-left-color: var(--blue-700);
}

@media (max-width: 900px) {
  .hero-grid,
  .wizard-layout,
  .result-sections {
    grid-template-columns: 1fr;
  }

  .steps {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 71, 47, 0.12);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }

  .step + .step {
    margin-top: 0;
  }

  .trust-strip,
  .trust-panel-grid,
  .answer-card-grid,
  .forbehold-list,
  .info-grid,
  .process-grid,
  .result-color-grid,
  .summary-grid,
  .answer-summary {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .calculator-result-grid {
    grid-template-columns: 1fr;
  }

  .app-header,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .tools-page {
    --tools-page-padding: 1rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem 1rem 0.85rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-mark::before {
    transform: scale(0.88);
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
    margin-top: 0.1rem;
  }

  .site-nav {
    gap: 0.35rem;
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav a {
    border-radius: 999px;
    font-size: 0.86rem;
    line-height: 1.15;
    padding: 0.48rem 0.62rem;
  }

  .hero {
    padding-top: 2.7rem;
  }

  .section {
    padding: 2rem 0;
  }

  .info-page h1 {
    font-size: clamp(2rem, 11vw, 2.45rem);
    margin-bottom: 0.65rem;
  }

  .info-hero {
    padding: 1.1rem;
  }

  .info-hero .eyebrow {
    margin-bottom: 0.25rem;
  }

  .forbehold-summary {
    margin-top: 1.15rem;
  }

  .guide-flow-section {
    margin-top: 1.15rem;
    padding: 1rem;
  }

  .forbehold-summary .info-section-header {
    margin-bottom: 0.9rem;
  }

  .forbehold-list {
    gap: 0.85rem;
  }

  .forbehold-card,
  .info-card,
  .info-card--wide {
    padding: 1rem;
  }

  .byggeord-category,
  .byggeord-search {
    padding: 1rem;
  }

  .byggeord-list {
    grid-template-columns: 1fr;
  }

  .fuldmagt-grid,
  .fuldmagt-checkbox-grid,
  .fuldmagt-blanket-checks,
  .fuldmagt-blanket-field {
    grid-template-columns: 1fr;
  }

  .info-card--warning {
    margin-top: 1.15rem;
    margin-bottom: 0.35rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .wizard-panel,
  .result-card,
  .app-header {
    padding: 1.1rem;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .guide-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-actions .button,
  .hero-actions .button,
  .guide-cta .button,
  .contact-mailbox-row .button,
  .contact-form-actions .button,
  .fuldmagt-output-actions .button,
  .result-actions .button {
    width: 100%;
  }

  .contact-mailbox-row {
    align-items: stretch;
    gap: 0.75rem;
  }

  .feature-pills span {
    width: 100%;
  }

  .caution-note {
    flex-direction: column;
  }

  .status-pill {
    white-space: normal;
  }

  .number-input {
    align-items: flex-start;
    flex-direction: column;
  }

  .numeric-answer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .numeric-answer-input {
    max-width: none;
  }

  .numeric-answer-options {
    grid-template-columns: 1fr;
  }

  .result-color-grid {
    grid-template-columns: 1fr;
  }

  .choice-option {
    align-items: flex-start;
  }

  .choice-content {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .app-shell > .app-header,
  .app-shell .steps {
    display: none;
  }

  .app-shell .wizard-layout {
    min-height: 0;
  }

  .app-shell .wizard-panel {
    padding: 1.1rem;
  }

  .app-shell .wizard-meta {
    margin-bottom: 0.9rem;
  }

  .app-shell .mobile-stage-indicator {
    display: block;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .result-actions,
  .skip-link,
  .steps {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .container {
    max-width: none;
  }

  .result-card,
  .result-hero,
  .info-box,
  .notice {
    box-shadow: none;
    background: #fff !important;
    border-color: #999;
  }

  .result-sections,
  .summary-grid,
  .answer-summary {
    grid-template-columns: 1fr;
  }
}

#byggesvar-footer,
.site-footer {
  display: block !important;
  width: 100%;
  margin-top: 72px;
  padding: 30px 1.25rem 18px;
  background: #f4f8f4 !important;
  border-top: 1px solid rgba(13, 79, 52, 0.08);
  color: #0d4f34;
  box-sizing: border-box;
  text-align: left !important;
}

#byggesvar-footer,
#byggesvar-footer *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.byggesvar-footer-inner,
.site-footer .container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(240px, 1.05fr) minmax(280px, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  justify-content: center;
  text-align: left !important;
}

.byggesvar-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 310px;
}

.byggesvar-footer-left strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0d4f34;
}

.byggesvar-footer-left span {
  color: #65746a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.byggesvar-footer-left p {
  color: #65746a;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.byggesvar-footer-left span {
  color: #65746a;
}

.byggesvar-footer-links {
  display: grid !important;
  align-items: start;
  grid-template-columns: repeat(2, minmax(120px, max-content));
  gap: clamp(1.75rem, 5vw, 3.5rem);
  justify-content: start;
}

.byggesvar-footer-links div {
  display: grid;
  gap: 0.42rem;
}

.byggesvar-footer-links strong {
  color: #0d4f34;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.byggesvar-footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  color: #0d4f34;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0.86;
}

.byggesvar-footer-links a:hover,
.byggesvar-footer-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.byggesvar-footer-bottom {
  max-width: 1180px;
  margin: 24px auto 0;
  padding-top: 13px;
  border-top: 1px solid rgba(13, 79, 52, 0.08);
  font-size: 0.8rem;
  color: #7b897f;
  text-align: center;
}

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1rem, 2.6vw, 1.5rem);
  width: min(1040px, calc(100vw - 2rem));
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  background: #ffffff;
  border: 1px solid rgba(13, 79, 52, 0.13);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(24, 47, 37, 0.18);
  color: #0d4f34;
}

.cookie-notice h2 {
  margin: 0 0 0.45rem;
  color: #0d4f34;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.3;
}

.cookie-notice p {
  margin: 0;
  color: #4f6257;
  font-size: clamp(0.92rem, 1.25vw, 1rem);
  line-height: 1.55;
}

.cookie-notice-text p + p {
  margin-top: 0.55rem;
}

.cookie-notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 0.85rem;
}

.cookie-notice-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0d4f34;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.cookie-notice-inline-link:hover,
.cookie-notice-inline-link:focus-visible {
  color: #0a3f2a;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.cookie-notice-button {
  min-height: 42px;
  padding: 0.76rem 1.06rem;
  border: 1px solid #0d4f34;
  border-radius: 999px;
  background: #0d4f34;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-notice-button:hover,
.cookie-notice-button:focus-visible {
  background: #0a3f2a;
}

.cookie-notice-button-secondary {
  background: #ffffff;
  color: #0d4f34;
}

.cookie-notice-button-secondary:hover,
.cookie-notice-button-secondary:focus-visible {
  background: #edf6f1;
}

.cookie-notice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(13, 79, 52, 0.22);
  border-radius: 999px;
  background: #f7fbf8;
  color: #0d4f34;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-notice-link:hover,
.cookie-notice-link:focus-visible {
  background: #edf6f1;
}

.cookie-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 32, 22, 0.42);
}

.cookie-settings-modal {
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(13, 79, 52, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(24, 47, 37, 0.24);
  color: #183025;
}

.cookie-settings-header,
.cookie-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}

.cookie-settings-header {
  border-bottom: 1px solid rgba(13, 79, 52, 0.1);
}

.cookie-settings-eyebrow {
  margin: 0 0 0.25rem;
  color: #6d7f73;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-settings-header h2 {
  margin: 0;
  color: #0d4f34;
  font-size: 1.35rem;
  line-height: 1.25;
}

.cookie-settings-close {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(13, 79, 52, 0.2);
  border-radius: 999px;
  background: #f7fbf8;
  color: #0d4f34;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-settings-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(13, 79, 52, 0.1);
  background: #f7fbf8;
}

.cookie-settings-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(13, 79, 52, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #0d4f34;
  font-weight: 800;
  text-decoration: none;
}

.cookie-settings-body {
  overflow: auto;
  padding: 1.2rem 1.25rem;
}

.cookie-settings-section + .cookie-settings-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(13, 79, 52, 0.1);
}

.cookie-settings-section h3,
.cookie-category h3 {
  margin: 0;
  color: #0d4f34;
}

.cookie-settings-section > h3 {
  margin-bottom: 0.75rem;
}

.cookie-settings-section p,
.cookie-category p {
  margin: 0;
  color: #4f6257;
  line-height: 1.55;
}

.cookie-category-list {
  display: grid;
  gap: 0.75rem;
}

.cookie-category {
  padding: 0.95rem;
  border: 1px solid rgba(13, 79, 52, 0.12);
  border-radius: 10px;
  background: #fbfdfb;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.cookie-category-status {
  margin-top: 0.2rem !important;
  color: #6d7f73 !important;
  font-size: 0.88rem;
  font-weight: 800;
}

.cookie-toggle {
  display: inline-flex;
  cursor: not-allowed;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle-track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d9e1dc;
}

.cookie-toggle-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(24, 47, 37, 0.22);
}

.cookie-toggle input:checked + .cookie-toggle-track {
  background: #0d4f34;
}

.cookie-toggle input:checked + .cookie-toggle-track::after {
  transform: translateX(20px);
}

.cookie-toggle--interactive {
  cursor: pointer;
}

.cookie-toggle--interactive input {
  pointer-events: auto;
}

.cookie-settings-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid rgba(13, 79, 52, 0.1);
  background: #ffffff;
}

@media (max-width: 760px) {
  #byggesvar-footer,
  .site-footer {
    margin-top: 52px;
    padding: 26px 1rem 18px;
  }

  .byggesvar-footer-inner,
  .site-footer .container {
    grid-template-columns: 1fr;
    gap: 1.55rem;
  }

  .byggesvar-footer-links {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .byggesvar-footer-links div {
    gap: 0.5rem;
  }

  .byggesvar-footer-links a {
    line-height: 1.45;
    padding-block: 0.08rem;
  }

  .byggesvar-footer-bottom {
    margin-top: 22px;
    line-height: 1.45;
  }

  .cookie-notice {
    bottom: 0.85rem;
    grid-template-columns: 1fr;
    align-items: start;
    width: calc(100vw - 1.4rem);
    max-height: calc(100vh - 1.7rem);
    overflow: auto;
    padding: 1.15rem;
  }

  .cookie-notice-actions {
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .cookie-notice-button,
  .cookie-notice-link {
    flex: 1 1 12rem;
    width: 100%;
  }

  .cookie-settings-backdrop {
    align-items: end;
    padding: 0.7rem;
  }

  .cookie-settings-modal {
    max-height: calc(100vh - 1.4rem);
  }

  .cookie-settings-header,
  .cookie-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-settings-tabs {
    flex-wrap: wrap;
  }

  .cookie-settings-tabs a,
  .cookie-settings-actions .cookie-notice-button,
  .cookie-settings-actions .cookie-notice-link,
  .cookie-settings-close {
    width: 100%;
    justify-content: center;
  }
}

/* Cookies page */
.cookies-page {
  max-width: 860px;
  width: 100%;
  padding-top: 0.25rem;
  padding-bottom: 1.5rem;
}

.cookies-page h1 {
  margin: 0 0 0.65rem;
  color: var(--green-900);
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.cookies-intro {
  margin: 0 0 1.35rem;
  max-width: 42rem;
}

.cookies-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.cookies-intro p + p {
  margin-top: 0.75rem;
}

.cookies-content-box {
  background: #ffffff;
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.cookies-content-box > h2,
.cookies-choice h2 {
  margin: 0 0 1rem;
  color: var(--green-900);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.cookies-item h3 {
  margin: 0 0 0.35rem;
  color: var(--green-900);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.cookies-item p,
.cookies-choice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.cookies-item p + p {
  margin-top: 0.65rem;
}

.cookies-divider {
  margin: 1.15rem 0;
  border: 0;
  border-top: 1px solid rgba(14, 71, 47, 0.1);
}

.cookies-choice .button {
  margin-top: 1rem;
}

@media (max-width: 520px) {
  .status-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 18px;
    padding: 0.75rem 0.9rem;
  }
}

@media (max-width: 380px) {
  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
    font-size: 0.8rem;
    padding: 0.44rem 0.48rem;
  }
}

/* Tjek bevaringsværdi */
.preservation-page {
  max-width: var(--max);
}

.preservation-page > .info-hero,
.preservation-page > .preservation-search,
.preservation-page > .preservation-result,
.preservation-page > .preservation-source,
.preservation-page > .info-actions,
.preservation-result > * {
  box-sizing: border-box;
  width: 100%;
}

.preservation-search {
  padding-block: 0.95rem;
}

.preservation-search h2 {
  margin-bottom: 0.4rem;
}

.preservation-search form,
.preservation-search .address-search-row,
.preservation-search .address-combobox,
.preservation-search #preservation-address {
  margin-left: 0;
  padding-left: 0;
}

.preservation-search form,
.preservation-search .address-search-row,
.preservation-search .address-combobox {
  width: 100%;
}

.preservation-search #preservation-address {
  padding-left: 0.9rem;
}

.preservation-search h2,
.preservation-plan-note h2,
.preservation-source h2,
.preservation-result h2 {
  color: var(--green-900);
  margin: 0 0 0.65rem;
}

.address-search-row {
  align-items: end;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.preservation-search .field-help {
  margin-top: 0.4rem;
  padding-left: calc(0.9rem + 1px);
}

.preservation-search .form-message:empty {
  margin: 0;
  min-height: 0;
}

.address-combobox {
  min-width: 0;
  position: relative;
}

.address-combobox > label {
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 800;
}

.address-suggestions {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.22);
  border-radius: 12px;
  box-shadow: var(--shadow);
  left: 0;
  list-style: none;
  margin: 0.35rem 0 0;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
}

.address-suggestions li {
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  overflow-wrap: anywhere;
  padding: 0.7rem 0.75rem 0.7rem 0.55rem;
}

.address-suggestions li:hover,
.address-suggestions li.is-active,
.address-suggestions li[aria-selected="true"] {
  background: var(--green-050);
  color: var(--green-900);
}

.field-help,
.form-message {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.6rem 0 0;
}

.form-message {
  min-height: 1.4em;
}

.form-message--error {
  color: var(--danger);
  font-weight: 700;
}

.save-scale-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.save-scale-card {
  border-top: 4px solid var(--green-700);
}

.save-scale-card--medium {
  border-top-color: #798b62;
}

.save-scale-card--low {
  border-top-color: #9a8764;
}

.save-range {
  color: var(--green-900) !important;
  font-size: 0.9rem;
  font-weight: 850;
  margin-bottom: 0.35rem !important;
}

.preservation-plan-note {
  background: #f4f8f4;
  border-color: rgba(14, 71, 47, 0.18);
}

.preservation-plan-note .button {
  margin-top: 1rem;
}

.preservation-guidance,
.preservation-contact-note {
  background: #f4f8f4;
  border-left: 4px solid var(--green-700);
  border-radius: 10px;
  color: var(--text);
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
}

.preservation-contact-note {
  margin: 0.9rem 0 0;
}

.changes-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--green-900);
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.source-links a {
  font-weight: 750;
  text-underline-offset: 0.15em;
}

.preservation-source {
  padding: 0.9rem 1rem;
}

.preservation-result {
  scroll-margin-top: 8rem;
}

.preservation-result:focus,
.preservation-result-card:focus {
  outline: none;
}

.preservation-result-card {
  border-left: 5px solid var(--green-700);
  box-shadow: 0 14px 36px rgba(14, 71, 47, 0.13);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.preservation-result-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.08;
}

.preservation-result-card .result-description {
  font-size: 1.02rem;
  max-width: 68ch;
}

.preservation-result-card.result-card--medium {
  border-left-color: #798b62;
}

.preservation-result-card.result-card--low {
  border-left-color: #9a8764;
}

.preservation-result-card.result-card--listed {
  border-left-color: var(--warning);
}

.preservation-result-card.result-card--unknown,
.preservation-result--notice .result-message {
  border-left: 5px solid var(--blue-700);
}

.preservation-result--error .result-message {
  border-left: 5px solid var(--warning);
}

.result-category {
  color: var(--green-900) !important;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 850;
  margin-bottom: 0.55rem !important;
}

.preservation-scale {
  background: #fff;
  border: 1px solid rgba(14, 71, 47, 0.16);
  border-radius: 14px;
  margin-top: 0.8rem;
  padding: 0.9rem;
}

.preservation-scale h2 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

.preservation-scale-list {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.preservation-scale-item {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid rgba(14, 71, 47, 0.12);
  border-radius: 9px;
  display: flex;
  font-size: 0.8rem;
  justify-content: center;
  line-height: 1.3;
  min-height: 3rem;
  padding: 0.5rem;
  text-align: center;
}

.preservation-scale-item.is-current {
  background: var(--green-050);
  border-color: var(--green-700);
  box-shadow: inset 0 0 0 1px var(--green-700);
  color: var(--green-900);
  font-weight: 850;
}

.preservation-scale-item--listed.is-current {
  background: #fff8e8;
  border-color: var(--warning);
  box-shadow: inset 0 0 0 1px var(--warning);
}

.preservation-scale-item--unknown.is-current {
  background: #f0f6fb;
  border-color: var(--blue-700);
  box-shadow: inset 0 0 0 1px var(--blue-700);
}

.preservation-scale-note {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0.65rem 0 0 !important;
}

.preservation-dynamic-guidance {
  margin-top: 0.9rem;
}

.preservation-dynamic-guidance h3 {
  color: var(--green-900);
  margin: 0 0 0.45rem;
}

.preservation-dynamic-guidance > p {
  max-width: 72ch;
}

.preservation-guidance-list {
  align-items: start;
  display: grid;
  gap: 0.4rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.85rem 0;
  padding-left: 1.25rem;
}

.preservation-guidance-note,
.preservation-rule-note {
  background: var(--green-050);
  border-left: 4px solid var(--green-700);
  border-radius: 9px;
  padding: 0.7rem 0.8rem;
}

.preservation-rule-note {
  background: transparent;
  border-left: 0;
  border-radius: 0;
  border-top: 1px solid rgba(14, 71, 47, 0.14);
  color: var(--muted) !important;
  font-size: 0.9rem;
  margin-top: 0.9rem !important;
  padding: 0.7rem 0 0;
}

.building-data {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.15rem 0 0;
}

.building-data div {
  background: var(--surface-2);
  border: 1px solid rgba(14, 71, 47, 0.1);
  border-radius: 12px;
  min-width: 0;
  padding: 0.75rem;
}

.building-data dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.building-data dd {
  color: var(--green-900);
  font-weight: 850;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.listed-building-notice {
  background: #fff8e8;
  border: 1px solid rgba(138, 90, 0, 0.24);
  border-radius: 14px;
  margin-top: 1rem;
  padding: 1rem;
}

.listed-building-notice h3 {
  color: #674400;
  margin: 0 0 0.4rem;
}

.listed-building-notice p {
  margin: 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.building-picker > p {
  color: var(--muted);
}

.building-picker > .eyebrow {
  margin-bottom: 11px;
}

.building-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.building-option {
  appearance: none;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid rgba(14, 71, 47, 0.14);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.9rem 1.9rem;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.building-option:not(:disabled):hover {
  background: #f7faf7;
  border-color: rgba(14, 71, 47, 0.28);
  box-shadow: 0 4px 12px rgba(14, 71, 47, 0.06);
}

.building-option-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.building-option-title {
  color: var(--green-900);
  font-weight: 800;
}

.building-option-heading {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-height: 1.5rem;
}

.building-option-bbr,
.building-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.building-status {
  display: block;
  position: relative;
}

.building-status::before {
  background: #737b80;
  border-radius: 50%;
  content: "";
  height: 0.55rem;
  left: -1rem;
  position: absolute;
  top: 0.32rem;
  width: 0.55rem;
}

.building-status--listed::before {
  background: #7f2525;
}

.building-status--high::before {
  background: #b75b32;
}

.building-status--medium::before {
  background: #a17822;
}

.building-status--low::before {
  background: #58758a;
}

.building-status--unknown::before {
  background: #737b80;
}

.building-option.is-selected {
  background: #f7faf7;
  border-color: rgba(14, 71, 47, 0.34);
  box-shadow: 0 5px 14px rgba(14, 71, 47, 0.07);
  color: var(--text);
  cursor: default;
  opacity: 1;
}

.building-option-chevron {
  align-self: center;
  color: var(--green-700);
  flex: 0 0 auto;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.building-selected-status {
  align-items: center;
  background: var(--green-050);
  border: 1px solid rgba(14, 71, 47, 0.24);
  border-radius: 999px;
  color: var(--green-900);
  cursor: default;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.55rem;
}

.building-selected-status[hidden] {
  display: none;
}

.building-meta {
  color: var(--muted) !important;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 0.2rem 0.4rem;
  margin-top: 0.85rem !important;
}

#site-footer,
#byggesvar-footer,
.site-footer {
  bottom: auto !important;
  clear: both;
  inset: auto !important;
  position: static !important;
}

#selected-building-detail .preservation-result-card {
  margin-top: 0.9rem;
}

.lookup-loading {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.lookup-loading p {
  margin: 0;
}

.loading-spinner {
  animation: preservation-spin 0.9s linear infinite;
  border: 3px solid var(--green-100);
  border-radius: 50%;
  border-top-color: var(--green-900);
  flex: 0 0 auto;
  height: 1.4rem;
  width: 1.4rem;
}

@keyframes preservation-spin {
  to {
    transform: rotate(360deg);
  }
}

.preservation-page a:focus-visible,
.preservation-page button:focus-visible,
.preservation-page [role="option"]:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
}

@media (max-width: 900px) {
  .save-scale-grid,
  .building-data {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .address-search-row,
  .changes-grid,
  .preservation-guidance-list,
  .preservation-scale-list {
    grid-template-columns: 1fr;
  }

  .preservation-scale-item {
    justify-content: flex-start;
    min-height: auto;
    text-align: left;
  }

  .address-search-row .button,
  .result-actions .button,
  .preservation-plan-note .button {
    width: 100%;
  }

  .address-suggestions {
    max-height: min(16rem, 45vh);
  }
}
