:root {
  --bg: #f7f3ec;
  --bg-soft: #fffaf4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #20302b;
  --text-soft: #51645c;
  --heading: #173229;
  --line: rgba(39, 84, 70, 0.14);
  --primary: #2d7b67;
  --primary-dark: #1d5d4c;
  --accent: #f0b76b;
  --shadow: 0 18px 48px rgba(26, 49, 42, 0.09);
  --radius: 22px;
  --radius-sm: 14px;
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(240, 183, 107, 0.22), transparent 26rem),
    radial-gradient(circle at top right, rgba(45, 123, 103, 0.14), transparent 24rem),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 55%, #f5efe5 100%);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 1rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--heading);
  color: #fff;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

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

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(250, 246, 238, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-shell,
.footer-bottom-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-shell {
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--heading);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--primary) 0%, #4f9d86 100%);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(45, 123, 103, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--heading);
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  inset: calc(100% + 0.6rem) 1rem auto 1rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a,
.lang-pill {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  list-style: none;
  cursor: pointer;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher-menu {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.language-switcher-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.6rem;
}

.language-switcher-menu small,
.language-switcher-title {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.language-switcher-title {
  margin: 0;
  padding: 0.2rem 0.25rem 0.4rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(45, 123, 103, 0.08);
}

.lang-pill {
  color: var(--text-soft);
  background: rgba(45, 123, 103, 0.08);
}

#main-content {
  min-height: 60vh;
}

.hero {
  padding: 2.6rem 0 1.6rem;
}

.hero-grid,
.hero-home,
.trust-grid,
.tool-header-shell,
.tool-layout,
.footer-shell {
  display: grid;
  gap: 1.25rem;
}

.hero-grid {
  align-items: start;
}

.hero-copy,
.feature-panel,
.tool-card,
.trust-card,
.calculator-shell-panel,
.result-actions-panel,
.history-panel,
.unit-toggle-panel,
.calculator-card,
.result-card,
.content-block,
.sidebar-card,
.page-shell,
.language-card,
.disclaimer-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-shell,
.language-card {
  padding: 1.4rem;
}

.calculator-shell-panel,
.result-actions-panel,
.history-panel,
.unit-toggle-panel {
  padding: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 5vw, 2.3rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.hero-summary,
.section-heading p,
.category-copy p,
.tool-card p,
.content-block p,
.result-copy p,
.history-item-text,
.prose p,
.footer-intro p {
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.jump-links,
.category-links,
.tool-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.jump-links {
  margin-top: 1rem;
}

.jump-links a,
.category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(39, 84, 70, 0.12);
  text-decoration: none;
}

.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.85rem;
  padding: 0.85rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(33, 89, 73, 0.22);
  cursor: pointer;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-dark);
  border: 1px solid rgba(45, 123, 103, 0.2);
  box-shadow: none;
}

.hero-stack,
.trust-list,
.tool-grid,
.mini-tool-list,
.faq-list,
.history-list,
.sidebar-facts {
  display: grid;
  gap: 1rem;
}

.feature-panel,
.trust-card,
.tool-card,
.content-block,
.sidebar-card,
.disclaimer-box,
.calculator-card,
.result-card {
  padding: 1.2rem;
}

.feature-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.section-block {
  padding: 1rem 0 2.2rem;
}

.section-soft {
  padding-bottom: 3rem;
}

.tool-header {
  padding: 1.25rem 0 1rem;
}

.tool-header-shell {
  align-items: start;
}

.tool-header-aside {
  display: grid;
}

.tool-page-shell .disclaimer-box {
  margin-top: 1rem;
}

.section-heading {
  margin-bottom: 1.35rem;
}

.category-section {
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid var(--line);
}

.tool-grid {
  margin-top: 1rem;
}

.tool-card-kicker,
.meta-row,
.result-meta,
.breadcrumbs a,
.breadcrumbs span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.tool-card h3 a,
.text-link {
  color: var(--heading);
}

.tool-card-meta {
  margin-bottom: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  background: rgba(45, 123, 103, 0.1);
  color: var(--primary-dark);
}

.status-planned {
  background: rgba(240, 183, 107, 0.22);
  color: #7c5320;
}

.status-published {
  background: rgba(45, 123, 103, 0.13);
}

.status-risk-high {
  background: rgba(190, 73, 70, 0.16);
  color: #7c2f2c;
}

.status-risk-medium {
  background: rgba(240, 183, 107, 0.22);
  color: #7c5320;
}

.status-risk-low {
  background: rgba(63, 146, 99, 0.16);
  color: #265d40;
}

.tool-card h3 a {
  text-decoration: none;
}

.tool-card a:hover,
.tool-card a:focus-visible {
  color: var(--primary-dark);
}

.text-link {
  font-weight: 700;
}

.text-link-muted {
  color: var(--text-soft);
}

.breadcrumbs {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
  padding: 1rem 0 0.6rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(81, 100, 92, 0.6);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-panel .trust-card,
.tool-sidebar .sidebar-card {
  height: 100%;
}

.tool-layout {
  margin-top: 1rem;
  padding-bottom: 3rem;
}

.tool-main,
.tool-sidebar {
  display: grid;
  gap: 1rem;
}

.calculator-shell-panel {
  margin-top: 1rem;
}

/* Tool pages: collapse the supporting reference content into accordions so the
   calculator stays the focus instead of a long article-style stack of sections. */
.guide-stack {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.guide-stack-label {
  margin: 0.4rem 0 0.1rem;
  color: var(--primary-dark);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

details.accordion {
  padding: 0;
  overflow: hidden;
}

details.accordion > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
}

details.accordion > summary::-webkit-details-marker {
  display: none;
}

details.accordion > summary h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

details.accordion > summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-dark);
  transition: transform 0.15s ease;
}

details.accordion[open] > summary::after {
  content: "\2013";
}

details.accordion[open] > summary {
  border-bottom: 1px solid var(--line);
}

details.accordion > summary:hover h2 {
  color: var(--primary-dark);
}

details.accordion > :not(summary) {
  margin: 0.9rem 1.2rem;
}

details.accordion > :last-child {
  margin-bottom: 1.1rem;
}

.calculator-shell-head,
.history-panel-head,
.result-actions,
.result-actions-meta,
.unit-toggle-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calculator-shell-head {
  margin-bottom: 1rem;
}

.calculator-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.unit-toggle-panel {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.unit-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(45, 123, 103, 0.08);
  border: 1px solid rgba(39, 84, 70, 0.14);
}

.unit-toggle-button {
  min-height: 2.4rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.unit-toggle-button.is-active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(26, 49, 42, 0.1);
}

.unit-static-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(45, 123, 103, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
}

.calculator-grid {
  display: grid;
  gap: 1rem;
}

.calculator-form {
  display: grid;
  gap: 0.95rem;
}

.field-grid {
  display: grid;
  gap: 0.95rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--heading);
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(39, 84, 70, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.unit-toggle-button:focus,
.button:focus {
  outline: 2px solid rgba(45, 123, 103, 0.3);
  outline-offset: 2px;
}

.field hint,
.field small {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-soft);
}

.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-checkbox fieldset {
  display: grid;
  gap: 0.7rem;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.4rem;
}

.check-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.inline-note {
  margin-top: 0.8rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.form-feedback {
  min-height: 1.3rem;
  margin: 0;
  color: #9f3b35;
  font-size: 0.94rem;
  font-weight: 700;
}

.result-value {
  margin: 0.15rem 0 0.7rem;
  color: var(--primary-dark);
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
}

.result-breakdown {
  display: grid;
  gap: 0.8rem;
}

.result-detail-list {
  color: var(--text-soft);
}

.result-detail-list p {
  margin: 0;
}

.result-detail-list p + p {
  margin-top: 0.45rem;
}

.result-actions-panel {
  margin-top: 1rem;
}

.warning-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(190, 73, 70, 0.22);
  border-radius: 16px;
  background: rgba(190, 73, 70, 0.08);
}

.emergency-callout {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(190, 73, 70, 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 232, 226, 0.94), rgba(255, 247, 244, 0.98));
}

.emergency-callout h2 {
  margin-bottom: 0.55rem;
}

.emergency-callout p {
  margin: 0;
  color: #6d3836;
}

.emergency-callout p + p {
  margin-top: 0.7rem;
}

.warning-box strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #8d302d;
}

.warning-box p {
  margin: 0;
  color: #744240;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.result-actions .button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.result-actions-meta {
  justify-content: flex-start;
}

.result-actions-meta .inline-note {
  margin-top: 0;
}

.history-panel {
  margin-top: 1rem;
}

.history-panel-head h2 {
  margin-bottom: 0;
}

.history-panel-actions,
.cookie-banner-actions,
.cookie-preferences-actions,
.cookie-preferences-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.history-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.history-item-time {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.result-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(45, 123, 103, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
}

.risk-low { background: rgba(63, 146, 99, 0.16); }
.risk-medium { background: rgba(240, 183, 107, 0.22); }
.risk-high { background: rgba(239, 137, 88, 0.22); }
.risk-extreme { background: rgba(190, 73, 70, 0.2); }

.steps-list {
  margin: 0;
  padding-left: 1.2rem;
}

.info-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.info-list li + li {
  margin-top: 0.55rem;
}

.table-wrap {
  overflow-x: auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

.info-table th,
.info-table td {
  padding: 0.85rem 0.8rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table thead th {
  border-top: 0;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq-list details:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
}

.faq-list p {
  margin: 0.7rem 0 0;
}

.page-shell {
  margin: 2rem auto 3rem;
}

.home-faq {
  max-width: 52rem;
}

.tool-grid-compact {
  margin-top: 1rem;
}

.prose h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 1rem;
}

.disclaimer-box {
  background: linear-gradient(180deg, rgba(240, 183, 107, 0.12), rgba(255, 255, 255, 0.9));
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.84);
}

.footer-shell {
  padding: 2rem 0 1.6rem;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-preferences-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom-shell {
  min-height: 3.8rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 1rem;
  z-index: 30;
}

.cookie-banner-shell,
.cookie-preferences-card {
  width: min(calc(100% - 2rem), 70rem);
  margin: 0 auto;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 46px rgba(22, 44, 38, 0.18);
}

.cookie-banner-shell {
  display: grid;
  gap: 1rem;
}

.cookie-banner-copy p:last-child {
  margin-bottom: 0;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(22, 35, 31, 0.34);
}

.cookie-preferences[hidden],
.cookie-banner[hidden] {
  display: none;
}

.cookie-preferences-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 243, 236, 0.72);
}

.consent-option strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--heading);
}

.consent-option small {
  color: var(--text-soft);
}

.consent-option input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
}

.language-redirect {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.language-card {
  width: min(100%, 32rem);
  text-align: center;
}

.locale-preview-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.locale-preview-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    flex-direction: row;
    inset: auto;
    padding: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .language-switcher-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
    margin-top: 0;
  }

  .hero-grid,
  .trust-grid,
  .tool-layout,
  .footer-shell {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr);
  }

  .hero-home .shell,
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.95fr);
  }

  .tool-grid,
  .trust-list,
  .mini-tool-list,
  .calculator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tool-sidebar {
    align-content: start;
  }

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

  .cookie-banner-shell {
    grid-template-columns: minmax(0, 1.5fr) auto;
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
  }

  .calculator-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
  }
}
