:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #111318;
  --muted: #30313a;
  --soft: #718096;
  --border: #cfd5dd;
  --border-light: #dde3eb;
  --green: #067a50;
  --green-dark: #046b46;
  --green-pale: #e8f5ef;
  --navy: #14213d;
  --blue-soft: #d8e7ff;
  --mint-soft: #6ff0bb;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.01em;
}
.ad-slot {
  width: min(970px, calc(100vw - 32px));
  min-height: 90px;
  margin: 42px auto 0;
  display: block;
}
button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}

.brand {
  color: #090b12;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  margin-left: 120px;
}

.nav button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
  position: relative;
  padding: 0 2px;
}

.nav button.active {
  color: var(--green);
  font-weight: 600;
}

.nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
}

.account {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy);
  font-size: 15px;
}

.help-icon {
  width: 23px;
  height: 23px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}

.signin {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 15px;
  cursor: pointer;
}

main {
  flex: 1;
}

.hero {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px 0;
}

h1 {
  font-size: 35px;
  line-height: 1.16;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin-bottom: 10px;
}

.subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: #2b2d36;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.converter-card {
  width: min(610px, calc(100vw - 48px));
  margin: 52px auto 0;
  background: var(--surface);
  border: 1px solid #c4cad2;
  border-radius: 8px;
  padding: 25px 25px 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  text-align: left;
}

label {
  display: block;
  color: #272935;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.days-input {
  width: 100%;
  height: 68px;
  border: 1px solid #c8ced7;
  background: #f8fafc;
  color: #111318;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  outline: none;
  transition:
    border 160ms ease,
    box-shadow 160ms ease;
}

.days-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 122, 80, 0.12);
}

.convert-btn {
  width: 100%;
  height: 45px;
  margin-top: 25px;
  border: 0;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.convert-btn:hover {
  background: var(--green-dark);
}

.convert-btn:active {
  transform: translateY(1px);
}

.result-wrap {
  margin-top: 34px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.result-label {
  color: #353744;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.result {
  min-height: 54px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 9px;
  color: #111318;
  line-height: 1;
  flex-wrap: wrap;
}

.result .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.result .unit {
  font-size: 16px;
  color: #20222b;
  margin-right: 10px;
}

.result-note {
  margin-top: 8px;
  color: #343742;
  font-size: 14px;
  line-height: 1.45;
}

.result-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
}

.action-btn {
  border: 0;
  background: transparent;
  color: #1f232c;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  cursor: pointer;
}

.action-btn svg,
.convert-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.content-section {
  width: min(950px, calc(100vw - 48px));
  margin: 72px auto 0;
  text-align: left;
}

.content-section .container {
  width: 100%;
}

.section-kicker,
.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.content-section h2 {
  color: #111318;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.content-section h3 {
  color: #161923;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 30px 0 14px;
}

.section-lead,
.content-section p {
  color: #343742;
  font-size: 16px;
  line-height: 1.65;
}

.content-section p + p {
  margin-top: 14px;
}

.formula-block {
  margin: 22px 0 18px;
  background: #ffffff;
  border: 1px solid #c4cad2;
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.formula-block.reverse {
  border-left-color: var(--navy);
}

.formula-main {
  display: block;
  color: var(--green);
  font-style: normal;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.formula-block.reverse .formula-main {
  color: var(--navy);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.example-card,
.grid-item {
  background: #ffffff;
  border: 1px solid #c4cad2;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.example-card .label {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.example-card .calc {
  color: #20222b;
  font-size: 14px;
  line-height: 1.5;
}

.reverse-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.reverse-link:hover {
  text-decoration: underline;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #c4cad2;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(6, 122, 80, 0.1);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.step-body {
  color: #343742;
  font-size: 15px;
  line-height: 1.58;
}

.step-body strong {
  display: block;
  color: #111318;
  margin-bottom: 6px;
}

.step-code {
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid #c4cad2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: #20222b;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.highlight td {
  background: rgba(6, 122, 80, 0.05);
  font-weight: 700;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.grid-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #2b2d36;
  font-size: 15px;
  line-height: 1.45;
}

.grid-item .val {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}

.grid-item strong {
  color: var(--green);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #c4cad2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111318;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(6, 122, 80, 0.1);
  color: var(--green);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: #343742;
  font-size: 15px;
  line-height: 1.58;
  padding: 0 18px;
  transition:
    max-height 220ms ease,
    padding 220ms ease;
}

.faq-item.open .faq-a {
  max-height: 160px;
  padding: 0 18px 18px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.facts {
  width: min(950px, calc(100vw - 48px));
  margin: 78px auto 52px;
}

.facts h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04em;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.fact-card {
  min-height: 184px;
  background: transparent;
  border: 1px solid #c4cad2;
  border-radius: 8px;
  padding: 14px 13px 16px;
}

.fact-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.fact-icon.blue {
  background: var(--blue-soft);
}

.fact-icon.mint {
  background: var(--mint-soft);
}

.fact-icon svg {
  width: 18px;
  height: 18px;
  stroke: #0f172a;
}

.fact-card h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin-bottom: 8px;
}

.fact-card p {
  color: #343742;
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: 0.01em;
}

.panel {
  display: none;
  width: min(800px, calc(100vw - 48px));
  margin: 52px auto 0;
  background: #ffffff;
  border: 1px solid #c4cad2;
  border-radius: 8px;
  padding: 24px;
  color: #2b2d36;
  line-height: 1.55;
}

.panel.active {
  display: block;
}

.panel h2 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.history-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.history-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

footer {
  min-height: 158px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
}

.footer-brand {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  min-width: 160px;
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  max-width: 500px;
}

.footer-links a {
  color: #7b8aa3;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.copyright {
  color: #5d708f;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: right;
  max-width: 520px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #111318;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 20px;
  }

  .nav {
    margin-left: 0;
    gap: 18px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .copyright {
    text-align: center;
  }
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

@media (max-width: 720px) {
  .topbar {
    position: relative;
    height: 68px;
    min-height: 68px;
    padding: 0 18px;
    flex-wrap: nowrap;
  }

  .brand {
    font-size: 20px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      visibility 0s linear 220ms;
  }

  .topbar.open .nav-panel {
    max-height: 340px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      visibility 0s linear 0s;
  }

  .nav {
    width: 100%;
    height: auto;
    margin-left: 0;
    padding: 14px 18px 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
  }

  .nav button {
    width: 100%;
    height: 44px;
    text-align: left;
    padding: 0 12px;
    border-radius: 7px;
  }

  .nav button.active {
    background: rgba(6, 122, 80, 0.08);
  }

  .nav button.active::after {
    display: none;
  }

  .account {
    width: 100%;
    justify-content: space-between;
    padding: 10px 18px 18px;
    border-top: 1px solid var(--border-light);
  }

  .topbar.open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: 30px;
  }

  .subtitle {
    font-size: 16px;
  }

  .converter-card {
    width: calc(100vw - 32px);
    margin-top: 36px;
    padding: 20px;
  }

  .content-section {
    width: calc(100vw - 32px);
    margin-top: 52px;
  }

  .content-section h2 {
    font-size: 24px;
  }

  .examples-grid,
  .conversion-grid {
    grid-template-columns: 1fr;
  }

  .formula-main {
    font-size: 21px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-num {
    width: 36px;
    height: 36px;
  }

  .faq-q {
    font-size: 15px;
    padding: 16px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .facts {
    width: calc(100vw - 32px);
    margin-top: 52px;
  }
}

/* UtilityEra shell, breadcrumb, related links, and footer */
.container {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

.masthead-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
}

.masthead {
  width: min(1180px, calc(100vw - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #090b12;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.main-nav .nav-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 10px 0;
  position: relative;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus-visible {
  color: var(--green);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.masthead .menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.masthead .menu-toggle span {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  transition: none;
}

.breadcrumb {
}

.breadcrumb-list {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  color: #667085;
  font-size: 14px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: #98a2b3;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #344054;
  font-weight: 700;
}

.related-tools {
  padding: 76px 0 64px;
  background:
    radial-gradient(
      circle at top left,
      rgba(6, 122, 80, 0.08),
      transparent 32%
    ),
    #f8fafc;
  border-top: 1px solid var(--border-light);
}

.link-container {
  background: #ffffff;
  border: 1px solid #c4cad2;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.link-container h2 {
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #111318;
}

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

.tool-link {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.tool-link::after {
  content: "→";
  color: var(--green);
  font-weight: 900;
}

.tool-link:hover,
.tool-link:focus-visible {
  border-color: rgba(6, 122, 80, 0.42);
  background: rgba(6, 122, 80, 0.06);
  transform: translateY(-1px);
}

.site-footer {
  background: #101828;
  color: #d0d5dd;
  border-top: 0;
  padding: 58px 0 26px;
  display: block;
  min-height: 0;
}

.site-footer .container {
  width: min(1120px, calc(100vw - 48px));
}

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

.footer-column h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-column p {
  color: #d0d5dd;
  font-size: 14px;
  line-height: 1.65;
  max-width: 360px;
}

.site-footer .footer-links {
  max-width: none;
  display: grid;
  gap: 9px;
  list-style: none;
  justify-content: stretch;
  flex: initial;
}

.site-footer .footer-links a {
  color: #d0d5dd;
  text-decoration: none;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
}

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

.site-footer .copyright {
  max-width: none;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #98a2b3;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.site-footer .copyright p {
  margin: 0;
}

@media (max-width: 980px) {
  .main-nav {
    gap: 14px;
  }

  .main-nav .nav-link {
    font-size: 13px;
  }

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

@media (max-width: 760px) {
  .container,
  .masthead,
  .site-footer .container {
    width: calc(100vw - 32px);
  }

  .masthead {
    min-height: 68px;
  }

  .masthead .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      visibility 0s linear 220ms;
  }

  .masthead-top.open .main-nav {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      visibility 0s linear 0s;
  }

  .main-nav .nav-link {
    padding: 15px 24px;
    border-top: 1px solid var(--border-light);
    font-size: 15px;
  }

  .main-nav .nav-link::after {
    display: none;
  }

  .breadcrumb-list {
    min-height: 44px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .related-tools {
    padding: 52px 0;
  }

  .link-container {
    padding: 22px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.formula-small {
  display: block;
  margin-top: 7px;
  color: #343742;
  font-size: 14px;
  line-height: 1.5;
}

.result-note strong {
  color: var(--green);
}

.example-card .calc strong,
.content-section strong {
  color: #111318;
}

.mini-note {
  margin-top: 14px;
  color: #343742;
  font-size: 15px;
  line-height: 1.6;
}
