.page .entry-content > .hcc-tools,
.page .entry-content > p:has(+ .hcc-tools) {
  max-width: 1120px;
  margin-inline: auto;
}

.hcc-tools {
  --hcc-blue: #002fa7;
  --hcc-ink: #101828;
  --hcc-muted: #586174;
  --hcc-line: #d8dde8;
  --hcc-soft: #f7f7f8;
  --hcc-white: #ffffff;
  color: var(--hcc-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

.hcc-tools h2,
.hcc-tools p {
  margin-top: 0;
}

.hcc-tools h2 {
  font-family: inherit;
}

.hcc-intro,
.hcc-hub > header {
  display: grid;
  grid-template-columns: minmax(90px, 0.25fr) minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 0;
  margin: 0 0 34px;
  border-top: 1px solid var(--hcc-ink);
  border-bottom: 1px solid var(--hcc-ink);
  background: var(--hcc-white);
}

.hcc-hub > header {
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1.75fr);
}

.hcc-index {
  margin: 0;
  padding: 24px 22px;
  border-right: 1px solid var(--hcc-line);
  color: var(--hcc-blue);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hcc-lead {
  margin: 0;
  padding: 24px 28px;
  color: var(--hcc-ink);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.hcc-formula {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px 28px;
  border-left: 1px solid var(--hcc-line);
  background: var(--hcc-soft);
}

.hcc-formula span,
.hcc-result-primary > span,
.hcc-result-row span,
.hcc-tool-card > p:first-child,
.hcc-section-number {
  color: var(--hcc-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hcc-formula strong {
  color: var(--hcc-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.hcc-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--hcc-ink);
  background: var(--hcc-white);
}

.hcc-panel {
  padding: clamp(24px, 4vw, 46px);
}

.hcc-inputs {
  border-right: 1px solid var(--hcc-ink);
}

.hcc-panel h2,
.hcc-explainer h2,
.hcc-source h2,
.hcc-related h2 {
  margin: 0 0 24px;
  color: var(--hcc-ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hcc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hcc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.hcc-field > span {
  color: var(--hcc-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.hcc-field small {
  color: var(--hcc-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.hcc-field input,
.hcc-field select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #9da6b6;
  border-radius: 0;
  background: var(--hcc-white);
  color: var(--hcc-ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  outline: 0;
}

.hcc-field input:focus,
.hcc-field select:focus {
  border-color: var(--hcc-blue);
  box-shadow: 0 0 0 2px var(--hcc-blue);
}

.hcc-button,
.hcc-reset {
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid var(--hcc-blue);
  border-radius: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.hcc-button {
  background: var(--hcc-blue);
  color: var(--hcc-white) !important;
}

.hcc-button:hover,
.hcc-button:focus-visible {
  background: #001f70;
  border-color: #001f70;
}

.hcc-reset {
  margin-left: 8px;
  background: var(--hcc-white);
  color: var(--hcc-blue) !important;
}

.hcc-reset:hover,
.hcc-reset:focus-visible {
  background: var(--hcc-soft);
}

.hcc-results {
  display: flex;
  flex-direction: column;
  background: var(--hcc-soft);
}

.hcc-result-primary {
  min-height: 205px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--hcc-line);
  border-bottom: 1px solid var(--hcc-ink);
}

.hcc-result-primary strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--hcc-blue);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.96;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.hcc-result-primary small {
  display: block;
  color: var(--hcc-muted);
  font-size: 0.9rem;
}

.hcc-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--hcc-line);
  border-left: 1px solid var(--hcc-line);
}

.hcc-result-row {
  min-height: 94px;
  padding: 16px;
  border-right: 1px solid var(--hcc-line);
  border-bottom: 1px solid var(--hcc-line);
  background: var(--hcc-white);
}

.hcc-result-row strong {
  display: block;
  margin-top: 8px;
  color: var(--hcc-ink);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.hcc-result-row.hcc-wide {
  grid-column: 1 / -1;
}

.hcc-result-row[data-status="low"],
.hcc-result-row[data-status="high"] {
  border-left: 4px solid #a63d00;
}

.hcc-result-row[data-status="within"] {
  border-left: 4px solid var(--hcc-blue);
}

.hcc-error {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #a63d00;
  background: #fff4eb;
  color: #702600;
  font-size: 0.88rem;
  font-weight: 700;
}

.hcc-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--hcc-ink);
  border-bottom: 1px solid var(--hcc-ink);
}

.hcc-explainer > div {
  padding: 30px;
}

.hcc-explainer > div + div {
  border-left: 1px solid var(--hcc-line);
}

.hcc-section-number {
  margin-bottom: 30px;
}

.hcc-explainer p:last-child,
.hcc-source p,
.hcc-notice {
  color: var(--hcc-muted);
  font-size: 0.96rem;
}

.hcc-notice {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 6px solid var(--hcc-blue);
  background: var(--hcc-soft);
}

.hcc-notice strong {
  color: var(--hcc-ink);
}

.hcc-source {
  display: grid;
  grid-template-columns: 0.55fr 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--hcc-line);
  border-bottom: 1px solid var(--hcc-line);
}

.hcc-source h2,
.hcc-source p {
  margin: 0;
}

.hcc-source a,
.hcc-card-link,
.hcc-related a {
  color: var(--hcc-blue) !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hcc-related {
  margin-top: 42px;
}

.hcc-related > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--hcc-ink);
  border-left: 1px solid var(--hcc-line);
}

.hcc-related a {
  min-height: 116px;
  padding: 18px;
  border-right: 1px solid var(--hcc-line);
  border-bottom: 1px solid var(--hcc-ink);
  background: var(--hcc-white);
  text-decoration: none;
}

.hcc-related a:hover {
  background: var(--hcc-blue);
  color: var(--hcc-white) !important;
}

.hcc-related a span {
  display: block;
  margin-bottom: 22px;
  font-size: 0.72rem;
}

.hcc-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hcc-ink);
  border-left: 1px solid var(--hcc-ink);
}

.hcc-tool-card {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid var(--hcc-ink);
  border-bottom: 1px solid var(--hcc-ink);
  background: var(--hcc-white);
}

.hcc-tool-card h2 {
  margin: 28px 0 14px;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: -0.045em;
}

.hcc-tool-card h2 a {
  color: var(--hcc-ink) !important;
  text-decoration: none;
}

.hcc-tool-card h2 a:hover {
  color: var(--hcc-blue) !important;
}

.hcc-tool-card > span {
  display: block;
  min-height: 45px;
  margin-bottom: 20px;
  color: var(--hcc-blue);
  font-size: 0.8rem;
  font-weight: 700;
}

.hcc-tool-card > p:not(:first-child) {
  color: var(--hcc-muted);
  font-size: 0.92rem;
}

.hcc-card-link {
  display: inline-block;
  margin-top: 16px;
}

@media (max-width: 920px) {
  .hcc-intro,
  .hcc-hub > header {
    grid-template-columns: 100px 1fr;
  }

  .hcc-formula {
    grid-column: 1 / -1;
    border-top: 1px solid var(--hcc-line);
    border-left: 0;
  }

  .hcc-workbench,
  .hcc-explainer {
    grid-template-columns: 1fr;
  }

  .hcc-inputs,
  .hcc-explainer > div + div {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--hcc-ink);
  }

  .hcc-source {
    grid-template-columns: 1fr;
  }

  .hcc-related > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hcc-intro,
  .hcc-hub > header,
  .hcc-tool-grid,
  .hcc-fields,
  .hcc-result-details,
  .hcc-related > div {
    grid-template-columns: 1fr;
  }

  .hcc-index {
    border-right: 0;
    border-bottom: 1px solid var(--hcc-line);
  }

  .hcc-panel,
  .hcc-explainer > div,
  .hcc-tool-card {
    padding: 22px 18px;
  }

  .hcc-reset {
    margin-left: 0;
  }

  .hcc-button,
  .hcc-reset {
    width: 100%;
  }

  .hcc-result-primary strong {
    font-size: clamp(2.2rem, 15vw, 4rem);
  }

  .hcc-result-row.hcc-wide {
    grid-column: auto;
  }
}
