:root {
  color-scheme: light;
  --ink: #182235;
  --muted: #66738a;
  --soft: #f5f8ff;
  --panel: #ffffff;
  --line: #dfe7f4;
  --blue: #2d6bff;
  --blue-strong: #0f56ff;
  --green: #0aa887;
  --navy: #07172f;
  --shadow: 0 18px 48px rgba(34, 77, 140, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, #f8fbff 0%, #ffffff 42%, #edf8ff 100%);
  letter-spacing: 0;
}

a {
  color: var(--blue-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 0;
  border-bottom: 1px solid rgba(222, 232, 246, 0.82);
  border-top: 0;
  border-radius: 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent;
  background:
    radial-gradient(circle at 78% 18%, #7dd3ff 0 3px, transparent 4px),
    linear-gradient(135deg, #2d6bff 0%, #0f56ff 100%);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(45, 107, 255, 0.28);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 14px;
  width: 4px;
  height: 17px;
  background: #ffffff;
  border-radius: 999px;
  transform-origin: center;
}

.brand-mark::before {
  transform: rotate(-43deg);
}

.brand-mark::after {
  transform: rotate(43deg);
}

.top-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
}

.top-nav a,
.nav-menu summary {
  color: #43516a;
  font-weight: 700;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu[open] summary {
  color: var(--blue-strong);
}

.nav-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 22px;
  width: min(94vw, 1120px);
  max-height: min(76vh, 720px);
  padding: 18px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dce7f5;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(34, 77, 140, 0.18);
  transform: translateX(-50%);
}

.nav-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--nav-arrow-left, 50%);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-left: 1px solid #dce7f5;
  border-top: 1px solid #dce7f5;
  transform: translateX(-50%) rotate(45deg);
}

.nav-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

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

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

.nav-category-groups {
  display: grid;
  gap: 14px;
}

.nav-category-group {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3fb;
}

.nav-category-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nav-category-group h3 {
  margin: 0 0 8px;
  color: #6c7b95;
  font-size: 11px;
  text-transform: uppercase;
}

.nav-panel-grid a {
  display: block;
  min-height: 58px;
  padding: 11px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #e1eaf6;
  border-radius: 8px;
}

.nav-panel-grid a:hover {
  color: var(--blue-strong);
  background: #ffffff;
  text-decoration: none;
}

.nav-panel-grid strong {
  display: block;
  font-size: 13px;
}

.nav-panel-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue-strong);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 86, 255, 0.24);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta:hover {
  text-decoration: none;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 34px;
  align-items: center;
  width: min(96vw, 1360px);
  max-width: none;
  margin: 0 auto;
  padding: 72px 18px 42px;
}

.home-page .tool-hero {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  text-align: center;
  padding-top: 42px;
  padding-bottom: 28px;
}

.simple-hero {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  text-align: center;
  padding-bottom: 22px;
}

.home-page .converter-card {
  margin-inline: auto;
}

.home-page h1 {
  margin-top: 12px;
  font-size: 52px;
}

.home-page .lead {
  max-width: 760px;
  margin-top: 12px;
  line-height: 1.5;
}

.home-page .search-panel {
  margin-top: 18px;
}

.home-page .converter-card {
  margin-top: 18px;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.notice-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  color: #24588c;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dbe9fb;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.eyebrow,
.mini-label {
  margin: 0 0 9px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: 18px;
  font-size: 58px;
}

h2 {
  margin-top: 38px;
  font-size: 32px;
}

h3 {
  margin-top: 24px;
  font-size: 20px;
}

.lead {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.search-panel {
  position: relative;
  width: min(100%, 860px);
  margin-top: 26px;
  text-align: left;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(34, 77, 140, 0.1);
}

.search-input-wrap input {
  height: 48px;
  border: 0;
  background: transparent;
}

.search-input-wrap button {
  height: 48px;
  color: #fff;
  background: var(--blue-strong);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.search-results {
  display: none;
  position: absolute;
  z-index: 6;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(34, 77, 140, 0.16);
}

.search-results[data-open="true"] {
  display: grid;
  gap: 6px;
}

.search-results a,
.search-results p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
}

.search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.search-results a:hover {
  background: #f3f7ff;
  text-decoration: none;
}

.search-results span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.converter-card {
  width: 100%;
  max-width: 1180px;
  margin-top: 24px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.converter-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 16px;
}

.converter-card-head h2 {
  margin-top: 3px;
  font-size: 24px;
}

.status-pill {
  color: #087f6d;
  border-color: #bcefe4;
  background: #effdfa;
  white-space: nowrap;
}

.category-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 8px;
  padding: 6px;
  background: #f2f6fc;
  border: 1px solid #e0e9f6;
  border-radius: 8px;
}

.category-tabs button {
  min-height: 40px;
  padding: 0 10px;
  color: #4a5a73;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.category-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--blue-strong);
  box-shadow: 0 10px 22px rgba(15, 86, 255, 0.22);
}

.category-select-wrap {
  display: grid;
  align-content: end;
  margin: 0;
}

.category-select-wrap span {
  margin-bottom: 7px;
}

.category-select-wrap select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #d5e1f2;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.converter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: end;
}

.unit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.tool-hero > .converter-card .unit-grid {
  grid-template-columns: minmax(0, 1fr);
}

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

label span {
  display: block;
  margin-bottom: 7px;
  color: #6b7890;
  font-size: 12px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #d2deed;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.number-stepper {
  position: relative;
  width: 100%;
}

.number-stepper input {
  padding-right: 48px;
}

.stepper-buttons {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 38px;
  height: calc(100% - 2px);
  overflow: hidden;
  background: #f7faff;
  border-left: 1px solid #d2deed;
  border-radius: 0 7px 7px 0;
}

.stepper-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: #7c8798;
  background: transparent;
  border: 0;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}

.stepper-button + .stepper-button {
  border-top: 1px solid #e1e8f2;
}

.stepper-button:hover {
  color: var(--blue-strong);
  background: #edf4ff;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(45, 107, 255, 0.22);
  outline-offset: 2px;
}

.icon-button {
  width: 46px;
  height: 48px;
  color: #fff;
  background: #172a4d;
  border: 0;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

.result-panel {
  position: relative;
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #ecf5ff 0%, #f7fbff 100%);
  border: 1px solid #c8defd;
  border-radius: 8px;
}

.result-label {
  display: block;
  margin-bottom: 6px;
  color: #1e63d5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-panel strong {
  display: block;
  padding-right: 76px;
  font-size: 28px;
  overflow-wrap: anywhere;
}

.copy-button {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--blue-strong);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.formula-line {
  margin: 13px 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #60708b;
  font-size: 12px;
  font-weight: 750;
}

.trust-row span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e2ebf7;
  border-radius: 8px;
}

.blue-band {
  margin-top: 22px;
  padding: 58px 18px 64px;
  color: #fff;
  background:
    linear-gradient(120deg, #315cff 0%, #0877f2 62%, #0a93dd 100%);
}

.blue-band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: min(96vw, 1360px);
  max-width: none;
  margin: 0 auto;
}

.light-heading {
  text-align: center;
}

.light-heading .eyebrow {
  color: #cfe4ff;
}

.light-heading h2 {
  margin-top: 0;
  color: #fff;
  font-size: 34px;
}

.category-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-module-grid a {
  min-height: 132px;
  padding: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  line-height: 1.35;
}

.category-module-grid a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.category-module-grid span,
.card-index {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.category-module-grid strong {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.category-module-grid small {
  display: block;
  margin-top: 10px;
  color: #dceaff;
  font-size: 13px;
  line-height: 1.45;
}

.popular-band {
  padding: 54px 18px 20px;
  background: #ffffff;
}

.popular-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(96vw, 1360px);
  max-width: none;
  margin: 26px auto 0;
}

.popular-link-grid a {
  min-height: 74px;
  padding: 18px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(41, 75, 120, 0.04);
}

.popular-link-grid a strong,
.related-links a strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.popular-link-grid a small,
.related-links a small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.wiki-article h2 {
  line-height: 1.14;
}

.wiki-article h2 + p,
.hub-blocks h2 + p {
  margin-top: 8px;
}

.popular-link-grid a:hover {
  color: var(--blue-strong);
  background: #ffffff;
  text-decoration: none;
}

.category-band {
  padding: 44px 18px 58px;
  background: #ffffff;
  border-bottom: 1px solid #e7edf7;
}

.section-heading,
.category-grid,
.seo-article {
  width: min(96vw, 1360px);
  max-width: none;
  margin-inline: auto;
}

.section-heading {
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.category-grid article {
  min-height: 190px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e0e8f4;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(41, 75, 120, 0.05);
}

.category-grid .card-index {
  color: #b2bfd1;
}

.category-grid h3 {
  margin-top: 0;
}

.category-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.category-grid a {
  font-weight: 850;
}

.seo-article {
  max-width: 980px;
  padding: 58px 18px 84px;
  font-size: 16px;
  line-height: 1.82;
}

.wiki-article {
  max-width: 1100px;
}

.wiki-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin: 28px 0 34px;
}

.wiki-fact-card,
.wiki-visual,
.wiki-panel {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(41, 75, 120, 0.05);
}

.wiki-fact-card h2,
.wiki-visual h2,
.wiki-panel h2 {
  margin-top: 0;
}

.wiki-fact-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.wiki-fact-grid div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
}

.wiki-fact-grid div:last-child {
  border-bottom: 0;
}

.wiki-fact-grid dt {
  color: #64728a;
  font-weight: 850;
}

.wiki-fact-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.unit-ladder {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.unit-ladder-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
}

.unit-ladder-row span:first-child {
  color: var(--ink);
  font-weight: 850;
}

.unit-ladder-row span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.unit-bar {
  height: 12px;
  min-width: 4px;
  background: linear-gradient(90deg, #0f56ff 0%, #2d9cff 100%);
  border-radius: 999px;
}

.scale-strip {
  position: relative;
  height: 72px;
  margin: 20px 0 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, #d8e4f3 0 1px, transparent 1px 10%),
    linear-gradient(180deg, #f8fbff, #eef5ff);
  border: 1px solid #dbe7f5;
  border-radius: 8px;
}

.scale-strip::before {
  content: "0 cm";
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: #5d6c84;
  font-size: 12px;
  font-weight: 850;
}

.scale-strip::after {
  content: "10 cm";
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: #5d6c84;
  font-size: 12px;
  font-weight: 850;
}

.scale-marker {
  position: absolute;
  top: 12px;
  bottom: 28px;
  width: 2px;
  background: var(--blue-strong);
}

.scale-marker strong {
  position: absolute;
  top: -4px;
  left: 8px;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.comparison-cards article {
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
}

.comparison-cards h3 {
  margin-top: 0;
}

.wiki-callout {
  padding: 18px;
  color: #183052;
  background: #edf7ff;
  border: 1px solid #cfe5ff;
  border-radius: 8px;
}

.wiki-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.wiki-two-column section,
.wiki-mini-card {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(41, 75, 120, 0.04);
}

.wiki-mini-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.wiki-mini-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.comparison-bar {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.comparison-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
}

.comparison-bar-row strong {
  color: var(--ink);
}

.comparison-bar-row small {
  color: var(--muted);
  text-align: right;
  font-weight: 800;
}

.seo-article p,
.seo-article li {
  color: #3e4a5f;
}

.updated {
  color: var(--muted);
  font-size: 12px;
}

.table-of-contents {
  display: grid;
  gap: 8px;
  margin: 28px 0 34px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dde7f4;
  border-radius: 8px;
}

.table-of-contents strong {
  color: var(--ink);
}

.table-of-contents a {
  line-height: 1.35;
}

.note-box {
  margin: 20px 0;
  padding: 15px 18px;
  color: #785117;
  background: #fff8e8;
  border: 1px solid #efd39c;
  border-radius: 8px;
  font-weight: 850;
}

.quick-answer-box {
  margin: 0 0 26px;
  padding: 20px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 72%);
  border: 1px solid #bfd8ff;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(38, 91, 168, 0.08);
}

.quick-answer-box h2 {
  margin: 4px 0 12px;
  font-size: 26px;
}

.quick-answer-box p {
  margin: 10px 0 0;
}

.quick-answer-result {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

table {
  width: 100%;
  margin: 22px 0 12px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 13px;
  text-align: left;
  border-bottom: 1px solid #dfe7f2;
}

th {
  color: var(--ink);
  background: #eef4fb;
  font-size: 13px;
  text-transform: uppercase;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.related-links a {
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  font-weight: 800;
}

.related-links a:hover {
  color: var(--blue-strong);
  background: #fff;
  text-decoration: none;
}

.internal-link-hub {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.internal-link-hub section,
.hub-blocks section {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(41, 75, 120, 0.04);
}

.internal-link-hub h3,
.hub-blocks h3 {
  margin-top: 0;
}

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

.hub-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hub-blocks p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.compact-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-link-list a {
  padding: 8px 11px;
  color: #26344d;
  background: #f7fbff;
  border: 1px solid #dfe8f5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.compact-link-list a:hover {
  color: var(--blue-strong);
  background: #ffffff;
  text-decoration: none;
}

.all-page-links {
  max-height: 420px;
  padding: 16px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
}

.site-index-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.site-index-stats div {
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
}

.site-index-stats strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
}

.site-index-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-index-groups {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.site-index-group {
  padding-top: 8px;
}

.site-index-group-head {
  margin-bottom: 14px;
}

.site-index-group-head h2 {
  margin-bottom: 6px;
}

.site-index-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-index-category-grid article {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(41, 75, 120, 0.04);
}

.site-index-category-grid h3 {
  margin-top: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(96vw, 1360px);
  margin: 24px auto 0;
  padding: 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.breadcrumb a {
  color: #43516a;
}

.breadcrumb span {
  color: #7c8aa2;
}

.site-footer {
  color: #9fb0c8;
  background: #07172f;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  width: min(96vw, 1360px);
  margin: 0 auto;
  padding: 48px 18px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin-top: 9px;
  color: #d9e8ff;
  font-weight: 700;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-brand p {
  max-width: 360px;
  color: #9fb0c8;
  line-height: 1.7;
}

.footer-logo {
  color: #ffffff;
  font-size: 15px;
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 0;
  }

  .top-nav > a {
    display: none;
  }

  .nav-panel {
    grid-template-columns: 1fr;
    left: auto;
    right: -96px;
    width: min(92vw, 560px);
    transform: none;
  }

  .nav-panel::before {
    left: var(--nav-arrow-left, 50%);
    right: auto;
  }

  .tool-hero,
  .blue-band-inner {
    grid-template-columns: 1fr;
  }

  .category-picker {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid,
  .category-module-grid,
  .popular-link-grid,
  .wiki-summary,
  .comparison-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dense-links,
  .hub-blocks,
  .site-index-category-grid,
  .wiki-summary,
  .comparison-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-inline: 2px;
  }

  body * {
    max-width: 100%;
  }

  img,
  svg,
  video,
  canvas,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .site-header {
    width: 100%;
    margin-inline: 0;
    padding: 10px 12px;
    gap: 10px;
  }

  .header-cta {
    display: none;
  }

  .nav-panel {
    position: fixed;
    top: 58px;
    left: 2px;
    right: 2px;
    width: auto;
    max-width: none;
    max-height: 76vh;
    overflow: auto;
    transform: none;
  }

  .nav-panel-grid,
  .nav-panel-grid.compact {
    grid-template-columns: 1fr;
  }

  .site-index-stats,
  .site-index-category-grid {
    grid-template-columns: 1fr;
  }

  .nav-panel::before {
    left: var(--nav-arrow-left, calc(100% - 78px));
    right: auto;
  }

  .tool-hero,
  .home-page .tool-hero {
    padding-top: 48px;
  }

  .tool-hero,
  .blue-band-inner,
  .popular-link-grid,
  .section-heading,
  .category-grid,
  .seo-article,
  .breadcrumb,
  .footer-inner {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .tool-hero,
  .home-page .tool-hero,
  .simple-hero {
    padding-right: 2px;
    padding-left: 2px;
  }

  .blue-band,
  .popular-band,
  .category-band {
    padding-right: 2px;
    padding-left: 2px;
  }

  h1 {
    font-size: 38px;
  }

  .home-page h1 {
    margin-top: 10px;
    font-size: 38px;
  }

  .home-page .tool-hero {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .home-page .lead,
  .home-page .search-panel,
  .home-page .converter-card {
    margin-top: 14px;
  }

  h2,
  .light-heading h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 16px;
  }

  .search-input-wrap {
    grid-template-columns: 1fr;
  }

  .converter-card {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .converter-card-head {
    display: grid;
  }

  .unit-grid,
  .category-grid,
  .category-module-grid,
  .popular-link-grid,
  .related-links,
  .wiki-summary,
  .comparison-cards {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    max-width: 100%;
    display: flex;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tabs button {
    flex: 0 0 auto;
    min-width: 82px;
    min-height: 36px;
    padding: 0 9px;
    font-size: 12px;
  }

  .category-select-wrap span {
    margin-bottom: 5px;
  }

  .category-select-wrap select {
    min-height: 50px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .converter-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .result-panel strong {
    padding-right: 0;
    margin-bottom: 12px;
    font-size: 22px;
  }

  .copy-button {
    position: static;
  }

  .seo-article {
    padding: 44px 2px 64px;
  }

  .table-of-contents,
  .note-box,
  .wiki-fact-card,
  .wiki-visual,
  .wiki-panel,
  .wiki-callout,
  .internal-link-hub section,
  .hub-blocks section,
  .all-page-links {
    padding-right: 12px;
    padding-left: 12px;
  }

  table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .converter-card,
  .search-panel,
  .search-input-wrap,
  .result-panel,
  .category-picker,
  .unit-grid,
  .converter-row,
  .category-module-grid,
  .popular-link-grid,
  .category-grid,
  .related-links,
  .wiki-summary,
  .comparison-cards,
  .wiki-fact-card,
  .wiki-visual,
  .wiki-panel,
  .wiki-callout,
  .internal-link-hub,
  .hub-blocks,
  .table-of-contents,
  .note-box,
  .all-page-links,
  .site-footer,
  .blue-band,
  .popular-band,
  .category-band {
    min-width: 0;
    max-width: 100%;
  }

  .popular-link-grid a,
  .category-grid article,
  .category-module-grid a,
  .related-links a,
  .compact-link-list a,
  .internal-link-hub section,
  .hub-blocks section,
  .note-box,
  .wiki-fact-card,
  .wiki-visual,
  .wiki-panel,
  .wiki-callout,
  .formula-line,
  .table-of-contents a,
  .wiki-fact-grid dd,
  td,
  th {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .wiki-fact-grid div,
  .unit-ladder-row,
  .comparison-bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .unit-ladder-row span:last-child,
  .comparison-bar-row small {
    text-align: left;
  }
}
