:root {
  --ink: #17151b;
  --muted: #6f6572;
  --paper: #fffaf2;
  --paper-strong: #fff3df;
  --night: #11131f;
  --night-soft: #202136;
  --gold: #d7aa54;
  --gold-light: #f5d58d;
  --coral: #e56b5f;
  --teal: #2bb8aa;
  --violet: #7161b8;
  --green: #74b47c;
  --line: rgba(23, 21, 27, 0.12);
  --shadow: 0 24px 80px rgba(17, 19, 31, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(229, 107, 95, 0.13), transparent 24rem),
    radial-gradient(circle at 92% 42%, rgba(43, 184, 170, 0.16), transparent 25rem),
    linear-gradient(180deg, #fffaf2 0%, #fff3df 47%, #f8eee1 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
summary {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--night);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px clamp(16px, 4vw, 40px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  color: #fffaf2;
  background: rgba(17, 19, 31, 0.62);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold-light), var(--coral));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 6px;
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255, 250, 242, 0.12);
  outline: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(430px, 0.9fr) auto;
  align-items: end;
  overflow: hidden;
  padding: 110px clamp(16px, 4vw, 40px) 28px;
  color: #fffaf2;
  background: var(--night);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("../images/hero/hero-celestial.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 213, 141, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(17, 19, 31, 0.28) 0%, rgba(17, 19, 31, 0.76) 63%, rgba(17, 19, 31, 0.96) 100%);
}

.hero-content,
.calculator {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(100%, var(--max));
  max-width: 100%;
  margin: 0 auto;
}

.hero-content {
  padding: clamp(28px, 6vw, 70px) 0 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 250, 242, 0.84);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 6px;
  color: rgba(255, 250, 242, 0.86);
  background: rgba(255, 250, 242, 0.08);
}

.hero-metrics strong {
  color: #fff;
}

.calculator {
  margin-bottom: clamp(4px, 2vw, 20px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 243, 223, 0.9)),
    rgba(255, 250, 242, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.calculator-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.calculator .section-kicker,
.quick-section .section-kicker,
.matrix-section .section-kicker,
.guide-section .section-kicker,
.faq-section .section-kicker {
  color: #9a6632;
}

.calculator h2,
.section-heading h2,
.editorial-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold-light), var(--coral));
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(229, 107, 95, 0.22);
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(43, 184, 170, 0.5);
  outline-offset: 3px;
}

.selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.selectors label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 42px 0 14px;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 18px top 22px / 7px 7px no-repeat,
    linear-gradient(135deg, #fff, #fff8ee);
  appearance: none;
  cursor: pointer;
}

select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(43, 184, 170, 0.18);
}

.result {
  display: grid;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.score-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.score-ring {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fffaf2 70%, transparent 72% 100%),
    conic-gradient(var(--teal) calc(var(--score) * 1%), rgba(23, 21, 27, 0.12) 0);
}

.score-ring span {
  font-size: 2.45rem;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  position: absolute;
  right: 24px;
  bottom: 30px;
  color: var(--muted);
  font-weight: 800;
}

.result h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.result p {
  color: var(--muted);
}

.result-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.result-details article {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.result-details span {
  display: block;
  margin-bottom: 8px;
  color: #8f6840;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-details strong {
  display: block;
  line-height: 1.35;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p,
.editorial-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(76px, 1fr));
  gap: 8px;
}

.sign-chip {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.74);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(17, 19, 31, 0.06);
}

.sign-chip:hover,
.sign-chip:focus-visible {
  border-color: rgba(215, 170, 84, 0.75);
  background: #fff;
  outline: none;
  transform: translateY(-2px);
}

.sign-chip .chip-glyph {
  color: var(--coral);
  font-size: 1.7rem;
  line-height: 1;
}

.sign-chip .chip-name {
  font-size: 0.84rem;
  font-weight: 800;
}

.element-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.element-panel,
.methodology-card,
.sign-card,
.bond-list article,
.quote-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 16px 48px rgba(17, 19, 31, 0.07);
}

.element-panel {
  position: relative;
  overflow: hidden;
  min-height: 298px;
  padding: 22px;
}

.element-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: radial-gradient(circle at 80% 16%, currentColor, transparent 9rem);
}

.element-panel > * {
  position: relative;
}

.element-panel.fire {
  color: #d45443;
}

.element-panel.earth {
  color: #7f7b42;
}

.element-panel.air {
  color: #4b77b7;
}

.element-panel.water {
  color: #258b94;
}

.element-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 1.3rem;
}

.element-panel h3 {
  color: var(--ink);
  font-size: 1.45rem;
}

.element-panel p {
  color: var(--muted);
}

.methodology-card {
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(255, 243, 223, 0.78)),
    rgba(255, 250, 242, 0.84);
}

.methodology-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold-light), rgba(43, 184, 170, 0.55));
  font-weight: 900;
}

.methodology-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.methodology-card p {
  color: var(--muted);
}

.matrix-section {
  width: min(100% - 24px, 1280px);
}

.matrix-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: var(--shadow);
}

.compatibility-matrix {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
}

.compatibility-matrix th,
.compatibility-matrix td {
  border-bottom: 1px solid rgba(23, 21, 27, 0.09);
  border-right: 1px solid rgba(23, 21, 27, 0.08);
  text-align: center;
}

.compatibility-matrix th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 8px;
  color: var(--ink);
  background: #fff5e7;
  font-size: 0.8rem;
}

.compatibility-matrix th:first-child {
  left: 0;
  z-index: 2;
}

.compatibility-matrix tbody th {
  left: 0;
  z-index: 1;
  min-width: 98px;
}

.compatibility-matrix td button {
  width: 100%;
  min-height: 48px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.compatibility-matrix td button:hover,
.compatibility-matrix td button:focus-visible {
  outline: 3px solid rgba(43, 184, 170, 0.38);
  outline-offset: -3px;
}

.cell-high {
  background: rgba(116, 180, 124, 0.34);
}

.cell-mid {
  background: rgba(245, 213, 141, 0.44);
}

.cell-low {
  background: rgba(229, 107, 95, 0.25);
}

.bond-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bond-list article {
  min-height: 210px;
  padding: 22px;
}

.bond-list span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: var(--night);
  background: var(--gold-light);
  font-weight: 900;
}

.bond-list h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.bond-list p {
  color: var(--muted);
}

.sign-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sign-card {
  min-height: 282px;
  padding: 22px;
}

.sign-card .glyph {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 2.3rem;
  line-height: 1;
}

.sign-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.sign-card p {
  color: var(--muted);
}

.sign-card strong {
  color: var(--ink);
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.editorial-copy {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(17, 19, 31, 0.94), rgba(32, 33, 54, 0.94)),
    var(--night);
}

.editorial-copy .section-kicker {
  color: var(--gold-light);
}

.editorial-copy p {
  color: rgba(255, 250, 242, 0.76);
}

.quote-panel {
  display: grid;
  align-content: center;
  min-height: 320px;
  padding: 30px;
  color: var(--night);
  background:
    radial-gradient(circle at 22% 14%, rgba(43, 184, 170, 0.22), transparent 10rem),
    linear-gradient(135deg, #fffaf2, #ffe0bd);
}

.quote-panel span {
  display: block;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 2rem;
}

.quote-panel p {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.12;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 18px;
  background: rgba(255, 250, 242, 0.82);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  cursor: pointer;
  font-weight: 900;
}

.faq-list summary::after {
  content: "+";
  color: var(--coral);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin-bottom: 18px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
  gap: 24px;
  padding: 34px clamp(16px, 4vw, 40px);
  color: rgba(255, 250, 242, 0.76);
  background: var(--night);
}

.site-footer > * {
  width: min(100%, var(--max));
}

.footer-brand {
  margin-bottom: 10px;
  color: #fffaf2;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}

.footer-links a {
  color: rgba(255, 250, 242, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-light);
  outline: none;
}

.footer-note {
  align-self: end;
  margin: 0;
}

.legal-main,
.utility-page {
  min-height: 100svh;
  padding: 122px clamp(16px, 4vw, 40px) 64px;
  background:
    radial-gradient(circle at 18% 12%, rgba(43, 184, 170, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 20%, rgba(229, 107, 95, 0.14), transparent 22rem),
    linear-gradient(180deg, #fffaf2 0%, #fff3df 100%);
}

.legal-hero,
.legal-document,
.utility-panel {
  width: min(100%, 880px);
  margin: 0 auto;
}

.legal-hero {
  padding: clamp(28px, 5vw, 54px) 0 26px;
}

.legal-hero h1,
.utility-panel h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.98;
}

.legal-hero p,
.utility-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-document {
  padding-bottom: 22px;
}

.legal-document section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.12;
}

.legal-document p {
  max-width: 760px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(100%, 880px);
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumb a {
  color: #8f6840;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  color: var(--coral);
  outline: none;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(23, 21, 27, 0.32);
}

.content-page .legal-document ul {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.inline-link {
  color: #8f6840;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.fact-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 880px);
  margin: 0 auto 28px;
}

.fact-card,
.related-card,
.pair-score {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 16px 48px rgba(17, 19, 31, 0.07);
}

.fact-card {
  min-height: 112px;
  padding: 16px;
}

.fact-card span,
.related-card span,
.pair-score span {
  display: block;
  margin-bottom: 6px;
  color: #8f6840;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.15;
}

.fact-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.sign-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sign-pill-list a,
.sign-pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
}

.sign-pill-list a:hover,
.sign-pill-list a:focus-visible {
  border-color: rgba(229, 107, 95, 0.48);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.compatibility-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  width: min(100%, 880px);
  margin: 0 auto 28px;
  align-items: stretch;
}

.compatibility-hero-grid .legal-hero {
  width: 100%;
  margin: 0;
}

.pair-score {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 220px;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 22% 16%, rgba(43, 184, 170, 0.22), transparent 10rem),
    linear-gradient(135deg, #fffaf2, #ffe0bd);
}

.pair-score strong {
  display: block;
  color: var(--night);
  font-size: 4rem;
  line-height: 0.95;
}

.pair-score p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.related-card {
  min-height: 154px;
  padding: 18px;
}

.related-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.related-card p {
  color: var(--muted);
}

.sign-card .text-button,
.related-card .text-button {
  margin-top: 4px;
}

.utility-page {
  display: grid;
  place-items: center;
}

.utility-panel {
  padding: clamp(28px, 5vw, 54px) 0;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.7);
  font-weight: 900;
}

.text-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--coral));
}

.text-button:hover,
.text-button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(43, 184, 170, 0.2);
}

@media (max-width: 1080px) {
  .sign-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .element-panels,
  .methodology-grid,
  .bond-list,
  .sign-cards,
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compatibility-hero-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  [id] {
    scroll-margin-top: 76px;
  }

  .site-header {
    padding: 10px;
  }

  .nav {
    gap: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    display: flex;
    min-width: 0;
    justify-content: flex-end;
    gap: 0;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero {
    grid-template-rows: auto auto;
    padding: 92px 14px 18px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .calculator {
    padding: 16px;
  }

  .selectors,
  .score-block,
    .result-details,
    .element-panels,
    .methodology-grid,
    .bond-list,
    .sign-cards,
    .fact-grid,
  .editorial-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 96px;
    height: 96px;
  }

  .score-ring span {
    font-size: 2rem;
  }

  .score-ring small {
    right: 20px;
    bottom: 25px;
  }

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

  .section {
    width: min(100% - 24px, var(--max));
    padding: 48px 0;
  }

  .legal-main,
  .utility-page {
    padding: 98px 16px 48px;
  }

  .legal-actions {
    display: grid;
  }
}

@media (max-width: 430px) {
  .nav {
    padding-inline: 8px;
  }

  .nav-links a {
    padding-inline: 5px;
    font-size: 0.78rem;
  }

  .hero-metrics {
    display: grid;
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

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

  .calculator-top {
    align-items: center;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.25rem;
  }
}
