.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: #526074; font-size: 14px; font-weight: 750; text-decoration: none; }
.header-nav a:hover { color: var(--blue); }

.hero-badges {
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.hero-badges li {
  padding: 8px 12px;
  border: 1px solid rgba(1,98,247,.12);
  border-radius: 999px;
  color: #0759b5;
  background: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
}

.card-heading,
.result-top,
.period-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.card-heading { margin-bottom: 22px; }
.card-heading .section-title { margin: 0; font-size: 24px; }
.card-heading > span { padding-top: 3px; color: #7a8494; font-size: 11px; }
.result-top > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #d9eaff;
  background: rgba(121,189,246,.2);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field-range {
  --range-progress: 10%;
  width: calc(100% - 6px);
  height: 4px;
  margin: 2px 3px 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(to right, var(--sky) 0 var(--range-progress), #cbd1d9 var(--range-progress) 100%);
  cursor: pointer;
}
.field-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  appearance: none;
  background: var(--sky);
  box-shadow: 0 1px 5px rgba(8,29,59,.22);
}
.field-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 1px 5px rgba(8,29,59,.22);
}
.range-meta { display: flex; justify-content: space-between; gap: 12px; color: #778195; font-size: 10px; }
.range-meta strong { color: var(--ink); }

.calculation-options {
  margin-top: 2px;
  border: 1px solid #d9dee5;
  border-radius: 16px;
  background: #fff;
}
.calculation-options summary {
  min-height: 54px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.calculation-options summary::-webkit-details-marker { display: none; }
.calculation-options summary::after { content: "⌄"; color: var(--blue); font-size: 18px; transition: transform .18s ease; }
.calculation-options[open] summary::after { transform: rotate(180deg); }
.calculation-options summary small { margin-left: auto; color: #7a8494; font-size: 10px; font-weight: 650; }
.option-list { padding: 0 16px 16px; display: grid; gap: 10px; }
.option-list .check-row {
  padding: 13px;
  border-radius: 13px;
  background: #f4f7fb;
}
.option-list .check-row span { display: grid; gap: 3px; }
.option-list .check-row strong { color: var(--ink); font-size: 12px; }

.delay-balance { margin-top: 24px; }
.delay-bar { height: 10px; border-radius: 999px; display: flex; overflow: hidden; background: rgba(255,255,255,.1); }
.delay-bar span,
.delay-bar i { display: block; min-width: 0; height: 100%; transition: width .4s ease; }
.delay-bar span { background: var(--sky); }
.delay-bar i { background: #ffb56b; }
.delay-legend { margin-top: 10px; display: flex; gap: 18px; color: #aebdce; font-size: 10px; }
.delay-legend span { display: inline-flex; align-items: center; gap: 6px; }
.charged-dot,
.excluded-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.charged-dot { background: var(--sky); }
.excluded-dot { background: #ffb56b; }

.period-breakdown,
.claim-map {
  margin-top: 24px;
  padding: 36px;
  border: 1px solid #e0e5eb;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(8,29,59,.05);
}
.period-head h2,
.claim-map h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.period-head p:not(.eyebrow),
.claim-map-head > p:not(.eyebrow) { max-width: 720px; margin: 10px 0 0; color: #5c6879; font-size: 14px; line-height: 1.55; }
.period-summary { min-width: 180px; padding: 16px 18px; border-radius: 17px; display: grid; gap: 5px; color: #b9c7d8; background: var(--navy); }
.period-summary span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.period-summary strong { color: #fff; font-size: 22px; }

.timeline {
  min-height: 64px;
  margin-top: 28px;
  padding: 13px;
  border-radius: 18px;
  display: flex;
  gap: 3px;
  background: #f2f4f7;
}
.timeline-segment {
  position: relative;
  min-width: 4px;
  border-radius: 8px;
  display: block;
  cursor: help;
  transition: transform .18s ease, filter .18s ease;
}
.timeline-segment:hover { z-index: 2; transform: translateY(-3px); filter: brightness(.96); }
.timeline-segment.charged { background: linear-gradient(180deg, #4bafff, #1687ef); }
.timeline-segment.excluded { background: repeating-linear-gradient(135deg, #ffd3a4 0 7px, #ffb56b 7px 14px); }
.timeline-segment::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 5px);
  color: #fff;
  background: var(--navy);
  font-size: 10px;
  line-height: 1.35;
  pointer-events: none;
  transition: .15s ease;
}
.timeline-segment:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.period-table-wrap { margin-top: 18px; overflow-x: auto; }
.period-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #dde2e8; border-radius: 17px; overflow: hidden; font-size: 12px; }
.period-table th,
.period-table td { padding: 13px 14px; border-bottom: 1px solid #e3e7ec; text-align: right; white-space: nowrap; }
.period-table th:first-child,
.period-table td:first-child,
.period-table th:nth-child(2),
.period-table td:nth-child(2) { text-align: left; }
.period-table thead th { color: #5d687a; background: #f4f6f8; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.period-table tbody tr:last-child td { border-bottom: 1px solid #e3e7ec; }
.period-table tfoot th { border-bottom: 0; color: var(--ink); background: #edf5ff; font-size: 12px; }
.period-table .status-chip { padding: 5px 8px; border-radius: 999px; display: inline-flex; color: #0a6dcf; background: #e4f2ff; font-size: 9px; font-weight: 800; }
.period-table .status-chip.excluded { color: #995512; background: #fff0df; }

.calculation-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.calculation-actions button,
.calculation-actions a {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d5dbe3;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #536074;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.calculation-actions button:hover,
.calculation-actions a:hover { border-color: var(--sky); color: var(--blue); }
.calculation-actions .report-error { color: #e94f4f; }
.action-status { min-height: 17px; margin: 8px 0 0; color: #687486; font-size: 10px; text-align: center; }

.claim-map {
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(41,152,255,.34), transparent 20rem),
    linear-gradient(145deg, #071b38, #0b2d55);
}
.claim-map .eyebrow { color: #7ebfff; }
.claim-map h2 { color: #fff; }
.claim-map-head > p:not(.eyebrow) { color: #bac7d6; }
.claim-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.claim-grid article { min-height: 210px; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.06); }
.claim-grid article > span { color: #7ebfff; font-size: 11px; font-weight: 850; }
.claim-grid h3 { margin: 25px 0 8px; font-size: 16px; }
.claim-grid p { margin: 0 0 18px; color: #b9c7d7; font-size: 11px; line-height: 1.5; }
.claim-grid strong { color: #fff; font-size: 11px; }

.seo-content { padding: 0; border: 0; background: transparent; }
.seo-content .content-inner { max-width: none; display: grid; gap: 14px; }
.seo-content .content-inner > section,
.guide-intro,
.seo-content .legal-note,
.seo-content .sources {
  margin: 0;
  padding: 34px 36px;
  border: 1px solid #e1e5ea;
  border-radius: 26px;
  background: #fff;
}
.guide-intro h2,
.seo-content section > h2,
.important-section h2 { margin: 0 0 14px; font-size: 30px; letter-spacing: -.04em; }
.guide-intro p:not(.eyebrow) { max-width: 850px; }
.content-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.content-columns > section { margin: 0; padding: 30px 32px; border: 1px solid #e1e5ea; border-radius: 24px; background: #fff; }
.content-columns h2 { margin: 0 0 12px; font-size: 25px; }
.moratorium-grid { margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.moratorium-grid div { min-height: 100px; padding: 17px; border-radius: 16px; display: grid; align-content: center; gap: 7px; background: #f3f6fa; }
.moratorium-grid strong { font-size: 13px; }
.moratorium-grid span { color: #788395; font-size: 11px; }
.seo-content .important-section {
  border: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: linear-gradient(135deg, #071b38, #0f477d);
}
.important-section h2 { color: #fff; }
.important-section p:not(.eyebrow) { max-width: 780px; color: #bdc9d8; }
.important-section a { flex: 0 0 auto; padding: 12px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.document-list { padding: 0 !important; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; }
.document-list li { min-height: 145px; padding: 17px; border-radius: 16px; display: grid; align-content: start; gap: 8px; background: #f3f6fa; }
.document-list strong { color: var(--ink); font-size: 12px; }
.document-list span { color: #6a7586; font-size: 11px; line-height: 1.5; }
.seo-content .faq { padding-top: 34px; }
.seo-content .faq h2 { margin-top: 0; }
.seo-content .legal-note,
.seo-content .sources { padding: 19px 24px; font-size: 11px !important; }
.sources { color: #707b8b; line-height: 1.55; }

@media (max-width: 900px) {
  .claim-grid { grid-template-columns: 1fr 1fr; }
  .document-list { grid-template-columns: 1fr 1fr; }
  .calculation-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-nav a:first-child { display: none; }
  .header-nav a:last-child { font-size: 0; }
  .header-nav a:last-child::after { content: "GID.HOUSE →"; font-size: 12px; }
  .hero-badges { gap: 6px; }
  .hero-badges li { padding: 7px 9px; font-size: 9px; }
  .card-heading { align-items: center; }
  .period-breakdown,
  .claim-map { padding: 24px 20px; border-radius: 24px; }
  .period-head { display: block; }
  .period-head h2,
  .claim-map h2 { font-size: 28px; }
  .period-summary { margin-top: 18px; }
  .period-table { border: 0; }
  .period-table thead { display: none; }
  .period-table tbody { display: grid; gap: 9px; }
  .period-table tbody tr { padding: 14px; border: 1px solid #dde2e8; border-radius: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #fff; }
  .period-table tbody td { padding: 0; border: 0; display: grid; gap: 4px; text-align: left !important; white-space: normal; }
  .period-table tbody td::before { content: attr(data-label); color: #7a8494; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .period-table tfoot { display: table; width: 100%; margin-top: 9px; }
  .period-table tfoot tr { display: table-row; }
  .period-table tfoot th { padding: 12px 7px; font-size: 10px; white-space: normal; }
  .content-columns,
  .moratorium-grid { grid-template-columns: 1fr; }
  .seo-content .content-inner > section,
  .guide-intro,
  .content-columns > section { padding: 26px 22px; border-radius: 23px; }
  .guide-intro h2,
  .seo-content section > h2,
  .important-section h2 { font-size: 25px; }
  .seo-content .important-section { display: block; }
  .important-section a { margin-top: 18px; display: inline-flex; }
}

@media (max-width: 500px) {
  .card-heading > span { display: none; }
  .field-range::-webkit-slider-thumb { width: 19px; height: 19px; }
  .result-top { align-items: center; }
  .result-value { font-size: 45px; }
  .delay-legend { justify-content: space-between; }
  .timeline { min-height: 54px; padding: 9px; }
  .claim-grid,
  .document-list,
  .calculation-actions { grid-template-columns: 1fr; }
  .claim-grid article { min-height: 0; }
  .claim-grid h3 { margin-top: 14px; }
  .period-table tfoot { display: block; }
  .period-table tfoot tr { padding: 13px; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; background: #edf5ff; }
  .period-table tfoot th { padding: 0; background: transparent; text-align: left; }
  .period-table tfoot th[colspan] { grid-column: 1 / -1; }
}

@media print {
  .site-header,
  .breadcrumbs,
  .hero,
  .input-card,
  .result-actions,
  .calculation-actions,
  .claim-map,
  .seo-content,
  .site-footer { display: none !important; }
  body { background: #fff; }
  .page { width: 100%; }
  .calculator-shell { display: block; }
  .result-card { position: static; color: #000; background: #fff; box-shadow: none; }
  .result-card * { color: #000 !important; }
  .period-breakdown { padding: 0; border: 0; box-shadow: none; }
}
