/* ==========================================================================
   CalcWrench — construction calculators
   Design tokens
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --ink-muted: #6b6b6b;
  --paper: #fbfaf7;
  --paper-raise: #ffffff;
  --line: #e2ded6;
  --line-strong: #cdc7bb;
  --accent: #e8590c;
  --accent-deep: #c2410c;
  --accent-soft: #fff1e8;
  --ok: #2b8a3e;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(26, 26, 26, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(26, 26, 26, 0.3);
  --radius: 10px;
  --radius-lg: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  --measure: 68ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #f0ede6;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.35em;
  white-space: nowrap;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-top: 2.2em;
}

h3 {
  font-size: 1.12rem;
  margin-top: 1.6em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

strong {
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--ink-muted);
}

.accent {
  color: var(--accent);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.brand-text {
  font-weight: 750;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-text em {
  font-style: normal;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: #efeadf;
  color: var(--ink);
}

.nav-link.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .nav-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 400px at 85% -10%, #fde6d6 0%, transparent 60%),
    radial-gradient(800px 300px at 5% 110%, #f4efe4 0%, transparent 60%);
}

.hero h1 {
  max-width: 26ch;
  margin-bottom: 0.4em;
}

.hero .lede {
  max-width: 58ch;
  font-size: 1.14rem;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid #f7cdb2;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 1.1em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-ghost,
.btn-calc,
.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  font-size: 0.98rem;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--paper-raise);
  color: var(--ink);
  padding: 12px 20px;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.wrap > .section-head {
  margin: 56px 0 24px;
}

.section-head h2 {
  margin: 0 0 0.2em;
}

.section-head p {
  color: var(--ink-muted);
  margin: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.tool-card h2,
.tool-card h3 {
  font-size: 1.06rem;
  margin: 0 0 0.35em;
  letter-spacing: -0.015em;
}

.tool-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 14px;
  flex: 1;
}

.tool-link {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--accent-deep);
}

.tool-card:hover .tool-link {
  color: var(--accent);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.category-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.category-card h3 {
  margin: 0.4em 0 0.3em;
  font-size: 1.15rem;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

.pitch-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.pitch-grid h2 {
  margin-top: 0;
}

.pitch-points p {
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  margin-bottom: 1em;
}

@media (max-width: 820px) {
  .pitch-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   Breadcrumbs + article header
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--ink-muted);
  padding: 20px 0 0;
}

.crumbs a {
  color: var(--ink-muted);
}

.crumbs span[aria-current] {
  color: var(--ink-soft);
  font-weight: 550;
}

.article-header {
  padding: 18px 0 26px;
  max-width: 820px;
}

.article-header h1 {
  margin-bottom: 0.3em;
}

.article-header .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Calculator shell
   -------------------------------------------------------------------------- */

.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--paper-raise);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 8px 0 44px;
}

.calc-panel {
  padding: 28px 30px 30px;
  background: #fff;
}

.calc-results {
  padding: 28px 30px 30px;
  background: linear-gradient(165deg, #1f1d1a 0%, #262320 100%);
  color: #f6f4ef;
  display: flex;
  flex-direction: column;
}

.calc-results .calc-heading + .results-grid {
  margin-top: 0;
}

.calc-heading {
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink-muted);
}

.calc-results .calc-heading {
  color: #a8a29a;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.control {
  position: relative;
}

.control input,
.control select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.control select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b6b6b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.control.has-suffix input,
.control.has-suffix select {
  padding-right: 56px;
  font-family: var(--mono);
  font-size: 0.97rem;
}

.control select {
  font-family: var(--font);
}

.control input:focus,
.control select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.16);
}

.control input[aria-invalid='true'] {
  border-color: #c92a2a;
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.14);
}

.suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--ink-muted);
  pointer-events: none;
  letter-spacing: 0.02em;
}

.hint {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin: 5px 0 0;
}

.hint code {
  background: #f4f1ea;
}

.calc-form .btn-calc {
  margin-top: 6px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 13px 20px;
  font-size: 1rem;
  width: 100%;
}

.calc-form .btn-calc:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.calc-form .btn-reset {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 0.85rem;
  align-self: center;
}

.calc-form .btn-reset:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.result {
  background: #262320;
  padding: 13px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.result-primary {
  background: #332e29;
  padding: 18px 16px;
}

.result-label {
  font-size: 0.78rem;
  color: #b8b1a7;
  flex: 1 1 100%;
  margin-bottom: 2px;
}

.result-value {
  font-family: var(--mono);
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.result-primary .result-value {
  font-size: 2rem;
  color: #ffb27a;
}

.result-unit {
  font-size: 0.8rem;
  font-weight: 650;
  color: #a8a29a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-note {
  font-size: 0.79rem;
  line-height: 1.5;
  color: #a8a29a;
  margin: 0 0 16px;
}

.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  padding-top: 4px;
}

.calc-steps {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.calc-steps-title {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8a29a;
  margin: 0 0 10px;
}

.calc-steps ol {
  margin: 0;
  padding-left: 1.15em;
  color: #d9d4cb;
  font-size: 0.86rem;
  line-height: 1.55;
}

.calc-steps li {
  margin-bottom: 0.45em;
}

.calc-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.mobile-summary {
  display: none;
}

.calc-results .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f6f4ef;
  font-size: 0.82rem;
  padding: 9px 14px;
}

.calc-results .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

@media (max-width: 860px) {
  .calc-shell {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .calc-results .calc-heading {
    display: none;
  }
  .results-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 12px;
  }
  .result-primary {
    grid-column: 1 / -1;
  }
  .result-primary .result-value {
    font-size: 1.7rem;
  }
  .calc-panel {
    padding: 24px 20px 26px;
  }
  .calc-results {
    padding: 20px;
  }
  .result-note {
    display: none;
  }
  .mobile-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    font: inherit;
    text-align: left;
    background: var(--ink);
    color: #fff;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    cursor: pointer;
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.5);
  }
  body.has-mobile-summary {
    padding-bottom: 62px;
  }
  .mobile-summary-label {
    font-size: 0.78rem;
    font-weight: 650;
    color: #a8a29a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .mobile-summary-value {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffb27a;
    font-variant-numeric: tabular-nums;
  }
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.article {
  max-width: 900px;
}

.prose {
  max-width: var(--measure);
  padding-bottom: 8px;
}

.prose .intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.prose h2 {
  margin-top: 2.4em;
}

.prose h3 {
  margin-top: 1.8em;
}

.formula-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.4em 0 1.6em;
}

.formula-title {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 8px;
}

.formula-list {
  margin: 0;
  padding-left: 1.1em;
}

.formula-list li {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 0.4em;
  color: var(--ink-soft);
}

.qa {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.qa h3 {
  margin: 0 0 0.35em;
  font-size: 1rem;
}

.qa p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.2em 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: #f4f1ea;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 10px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section-block {
  margin: 34px 0;
}

.section-block > h2 {
  margin-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0 40px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-title {
  font-weight: 650;
  font-size: 0.92rem;
}

.related-tag {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}

.section-space {
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Filter bar (all tools page)
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 4px;
}

.filter-bar input[type='search'] {
  width: 100%;
  max-width: 480px;
  font: inherit;
  font-size: 0.98rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.filter-bar input[type='search']:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.16);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tool-card[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #f4f1ea;
  margin-top: 48px;
  padding: 48px 0 32px;
  font-size: 0.87rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand .brand-text {
  display: block;
  margin-bottom: 0.5em;
}

.footer-brand p {
  max-width: 30ch;
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.footer-heading {
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}

.footer-fine {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-muted);
  max-width: 80ch;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 18px;
  }
  .hero {
    padding: 46px 0 40px;
  }
  .article-header {
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .calc-form,
  .result-actions,
  .crumbs,
  .related-grid {
    display: none;
  }
  .calc-shell {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .calc-results {
    background: #fff;
    color: #000;
  }
  .result-value,
  .result-primary .result-value {
    color: #000;
  }
  body {
    background: #fff;
  }
}
