.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.page-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.page-header-nav a {
  color: #566159;
}

.page-header-nav a:hover,
.page-header-nav a[aria-current="page"] {
  color: var(--ink);
}

.breadcrumbs {
  padding: 24px 0 0;
  color: #78827b;
  font-size: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b0b7b2;
}

.standalone-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 68px;
}

.standalone-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: calc(50% - 700px);
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--page-accent), transparent 68%);
  opacity: .42;
}

.standalone-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: 74px;
}

.standalone-hero-copy {
  max-width: 690px;
}

.standalone-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(24, 32, 28, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #5f6962;
  font: 700 10px var(--font-latin);
  letter-spacing: .15em;
}

.standalone-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.07em;
}

.standalone-lead {
  margin: 22px 0 0;
  color: #59645d;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.hero-tool-art {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 32, 28, .08);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.54)),
    var(--page-accent);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-tool-art::before,
.hero-tool-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-tool-art::before {
  width: 70px;
  height: 70px;
  top: 26px;
  right: 28px;
  border: 1px dashed rgba(24, 32, 28, .2);
}

.hero-tool-art::after {
  width: 110px;
  height: 24px;
  bottom: 32px;
  left: 34px;
  border-radius: 999px;
  background: var(--page-accent);
  opacity: .7;
}

.hero-tool-art img {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 18px 28px rgba(24,32,28,.14));
  transform: rotate(-1.5deg);
}

.standalone-main {
  padding-bottom: 90px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: start;
}

.calculator-intro {
  position: sticky;
  top: 106px;
  padding: 26px 6px 0 0;
}

.calculator-intro .section-kicker {
  margin-bottom: 14px;
}

.calculator-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -.055em;
}

.calculator-intro p {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.privacy-inline {
  width: fit-content;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(199, 243, 106, .28);
  font-size: 12px;
  font-weight: 700;
}

.standalone-calculator {
  padding: 38px;
  border: 1px solid rgba(24,32,28,.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.standalone-calculator .calculator-form {
  width: 100%;
}

.standalone-result {
  margin-top: 24px;
  padding: 26px;
  border-radius: 20px;
  background: #18201c;
  color: white;
}

.standalone-result.is-error {
  background: #5a252a;
}

.standalone-result[hidden] {
  display: none;
}

.standalone-result .result-label {
  display: block;
  color: #cdd6d0;
  font-size: 12px;
  font-weight: 700;
}

.standalone-result .result-main {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.standalone-result .result-main strong {
  font: 800 clamp(34px, 5vw, 54px) var(--font-latin);
  letter-spacing: -.04em;
}

.standalone-result .result-main span {
  color: var(--page-accent);
  font-weight: 800;
}

.standalone-result .result-sub {
  margin: 10px 0 0;
  color: #e0e6e2;
  line-height: 1.6;
}

.result-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.result-detail-list li {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #cfd8d2;
  font-size: 11px;
}

.content-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.64);
}

.content-card.is-wide {
  grid-column: 1 / -1;
}

.content-card-number {
  display: block;
  margin-bottom: 13px;
  color: #7c867f;
  font: 700 10px var(--font-latin);
  letter-spacing: .14em;
}

.content-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.045em;
}

.content-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.78;
}

.content-card ol,
.content-card ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #4f5a53;
  line-height: 1.8;
}

.content-card li + li {
  margin-top: 8px;
}

.faq-stack {
  margin-top: 18px;
}

.faq-stack details {
  border-top: 1px solid var(--line);
}

.faq-stack details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-stack summary {
  padding: 17px 2px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
}

.faq-stack details p {
  margin: -3px 0 17px;
  padding-right: 20px;
}

.related-section {
  margin-top: 72px;
}

.related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.related-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.055em;
}

.related-heading a {
  color: #5a655e;
  font-size: 13px;
  font-weight: 700;
}

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

.calculator-link-card {
  min-height: 178px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(24,32,28,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.75);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.calculator-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24,32,28,.18);
  box-shadow: 0 16px 38px rgba(31,42,35,.09);
}

.calculator-link-card img {
  width: 52px;
  height: 52px;
}

.calculator-link-card strong {
  margin-top: 18px;
  font-size: 17px;
  letter-spacing: -.03em;
}

.calculator-link-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.directory-hero {
  padding: 68px 0 48px;
  text-align: center;
}

.directory-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -.07em;
}

.directory-hero p {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.directory-grid {
  padding: 18px 0 86px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.directory-card {
  min-height: 268px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(24,32,28,.08);
  border-radius: 25px;
  background: rgba(255,255,255,.82);
  transition: transform .2s, box-shadow .2s;
}

.directory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.directory-card img {
  width: 70px;
  height: 70px;
}

.directory-card h2 {
  margin: 24px 0 0;
  font-size: 22px;
  letter-spacing: -.045em;
}

.directory-card p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.directory-card .card-arrow {
  margin-top: auto;
  color: #566159;
  font-size: 12px;
  font-weight: 800;
}

.home-directory {
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto 72px;
  padding: 54px 0 0;
  border-top: 1px solid var(--line);
}

.home-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.home-directory-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.055em;
}

.home-directory-heading > a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.home-directory .calculator-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-directory .calculator-link-card {
  min-height: 166px;
}

.page-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.page-source-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #59645d;
  font-size: 11px;
  font-weight: 700;
}

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

  .standalone-hero-grid {
    gap: 38px;
  }

  .hero-tool-art {
    min-height: 260px;
  }

  .calculator-intro {
    position: static;
    padding-top: 0;
  }

  .directory-grid,
  .home-directory .calculator-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .page-header-nav a:nth-child(n + 3) {
    display: none;
  }

  .standalone-hero {
    padding: 42px 0 48px;
  }

  .standalone-hero h1 {
    font-size: 42px;
  }

  .hero-tool-art {
    min-height: 220px;
    border-radius: 26px;
  }

  .hero-tool-art img {
    width: 138px;
    height: 138px;
  }

  .standalone-calculator,
  .content-card {
    padding: 24px;
  }

  .calculator-layout,
  .content-grid {
    gap: 18px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .content-card.is-wide {
    grid-column: auto;
  }

  .calculator-card-grid,
  .directory-grid,
  .home-directory .calculator-card-grid {
    grid-template-columns: 1fr;
  }

  .related-heading,
  .home-directory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-hero {
    padding-top: 48px;
  }

  .directory-card {
    min-height: 230px;
  }

  .home-directory {
    width: min(100% - 28px, 1120px);
  }
}
