/* Original Calculators.buzz visual system: local assets, no font requests. */
:root {
  --bg: #f7f9fa;
  --ink: #142d3b;
  --muted: #526674;
  --border: #dce5e9;
  --brand: #153c48;
  --link: #087065;
  --accent: #caf2dc;
  --shadow: 0 12px 36px #16344108;
}
body {
  font-family: "Segoe UI", system-ui, sans-serif;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.header {
  box-shadow: 0 4px 22px #153c4805;
}
.header-top {
  min-height: 82px;
}
.logo-mark {
  border-radius: 12px;
  background: #153c48;
  color: #caf2dc;
}
.nav {
  gap: 0.25rem;
  border-color: var(--border);
}
.nav a {
  border-radius: 8px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--link);
  background: var(--bg);
}
.theme select {
  border-radius: 9px;
}
.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.modern-hero {
  gap: 3.5rem;
  padding: 2rem 0 3rem;
  grid-template-columns: 1.2fr 1fr;
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 4.6vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 1.1rem 0 1.4rem;
}
.hero-copy h1 span {
  color: var(--link);
}
.hero-copy > p {
  font-size: 1.08rem;
  max-width: 560px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #087065;
  margin-right: 8px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 1.2rem;
}
.button-link {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
}
.button-link.primary {
  color: #fff;
  background: #153c48;
}
.text-link {
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-proof span::before {
  content: "✓";
  color: var(--link);
  margin-right: 0.4rem;
}
.hero-board {
  padding: 1.6rem;
  border-radius: 24px;
  background: #153c48;
  color: #fff;
  position: relative;
  box-shadow: 0 18px 45px #153c4814;
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff25;
  padding-bottom: 0.9rem;
}
.board-brand {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: #d1e5e9;
}
.board-dot {
  color: #caf2dc;
  font-size: 1.6rem;
}
.board-total {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1rem 0;
}
.board-total strong {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1.2;
  color: #caf2dc;
}
.board-total > span {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #d1e5e9;
}
.board-tools {
  display: grid;
  gap: 0.55rem;
}
.board-tools a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff0e;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  padding: 0.85rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.board-tools a:hover {
  background: #ffffff1a;
}
.board-tools svg {
  color: #caf2dc;
  flex-shrink: 0;
}
.board-tools small {
  display: block;
  color: #c1d7db;
  font-size: 0.72rem;
  margin-top: 0.1rem;
}
.board-tools b {
  margin-left: auto;
  color: #caf2dc;
}
.board-bottom {
  font-size: 0.75rem;
  margin-top: 1rem;
  color: #d1e5e9;
}
.board-bottom span {
  margin-right: 0.4rem;
}
.home-search {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.home-search h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.home-search .search-panel {
  border: 0;
  box-shadow: none;
  padding: 0;
}
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}
.quick-links > span {
  color: var(--muted);
  margin-right: 0.3rem;
}
.quick-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  background: var(--bg);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
}
main > section {
  margin-bottom: 2.3rem;
}
.section-heading {
  margin: 0.5rem 0 1rem;
}
.section-heading h2 {
  margin: 0.6rem 0;
}
.tool-icon {
  display: inline-grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--link) !important;
}
.card,
.search-card {
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 2px 5px #16344103;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.card:hover,
.search-card:hover {
  box-shadow: 0 10px 24px #1634410b;
  border-color: var(--link);
}
.card .card-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.card .category {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.075em;
}
.card .card-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--muted);
}
.card strong {
  font-size: 1.06rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.card > span:last-child {
  font-size: 0.85rem;
}
.category-card {
  border-top: 1px solid var(--border);
}
.category-card .count {
  margin: 1rem 0 0.4rem;
  font-size: 1.75rem;
  color: var(--ink);
}
.category-card .count small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}
.journey-card {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.journey-number {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--link);
}
.journey-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.85rem 0;
}
.journey-card p {
  font-size: 0.9rem;
  color: var(--muted);
}
.journey-card a {
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}
.method-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.method-strip h2 {
  margin: 0.7rem 0 1rem;
}
.method-strip p {
  color: var(--muted);
}
.method-steps p {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
}
.method-steps b {
  color: var(--link);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.65rem;
  font-size: 0.8rem;
}
.method-steps span {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}
.method-steps small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}
.method-steps a {
  font-size: 0.85rem;
  font-weight: 650;
}
.calculator-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.calculator-title h1 {
  margin: 0.6rem 0;
}
.calculator-title .tool-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.calculator-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.calculator-context span::before {
  content: "✓";
  color: var(--link);
  margin-right: 0.35rem;
}
.calculator-context a {
  text-decoration: none;
  font-weight: 650;
}
.calculator-panel,
.result-panel {
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.result-panel {
  border-top: 4px solid var(--link);
  background: var(--surface);
}
.result-grid > div {
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem;
}
.result-grid dd {
  color: var(--link);
  font-variant-numeric: tabular-nums;
}
input:not([type="checkbox"]),
select,
textarea {
  border-radius: 9px;
  background: var(--surface);
  border-color: var(--border);
}
button {
  border-radius: 9px;
  font-size: 0.9rem;
}
.actions .primary {
  padding-inline: 1.8rem;
  background: #153c48;
  border-color: #153c48;
  color: #fff;
}
.preferences {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}
.related {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.related h2:first-child {
  margin-top: 0;
}
.related a {
  text-decoration: none;
  font-size: 0.9rem;
}
.formula {
  border-left: 3px solid var(--link);
  border-radius: 10px;
}
.notice {
  border-radius: 0 12px 12px 0;
}
.footer {
  margin-top: 1rem;
  background: var(--surface);
}
:root[data-theme="dark"] {
  --bg: #0d1b25;
  --surface: #142632;
  --ink: #e7eff4;
  --muted: #b1c3cf;
  --border: #304553;
  --brand: #153c48;
  --link: #91dec3;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0d1b25;
    --surface: #142632;
    --ink: #e7eff4;
    --muted: #b1c3cf;
    --border: #304553;
    --brand: #153c48;
    --link: #91dec3;
    --shadow: none;
  }
}
@media (max-width: 900px) {
  .modern-hero {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }
  .hero-copy h1 {
    font-size: 2.7rem;
  }
  .hero-copy > p {
    font-size: 0.95rem;
  }
  .board-total strong {
    font-size: 3.8rem;
  }
  .hero-board {
    padding: 1.2rem;
  }
  .method-strip {
    gap: 1.5rem;
    padding: 1.6rem;
  }
}
@media (max-width: 600px) {
  .modern-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.7rem 0 1.4rem;
  }
  .hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }
  .hero-copy > p {
    font-size: 1rem;
  }
  .hero-actions {
    gap: 1rem;
  }
  .hero-proof {
    gap: 0.5rem 1rem;
  }
  .hero-board {
    padding: 1.3rem;
  }
  .board-total strong {
    font-size: 4rem;
  }
  .home-search {
    padding: 1.1rem;
  }
  .method-strip {
    grid-template-columns: 1fr;
    padding: 1.3rem;
  }
  .calculator-title {
    align-items: flex-start;
    gap: 0.7rem;
  }
  .calculator-title h1 {
    font-size: 1.9rem;
    margin: 0.2rem 0 0.8rem;
  }
  .calculator-title .tool-icon {
    width: 42px;
    height: 42px;
  }
  .calculator-panel,
  .result-panel {
    padding: 1.2rem;
  }
  .category-card {
    padding: 1.1rem;
  }
  .category-card strong {
    font-size: 0.95rem;
  }
  .category-card > span:last-child {
    font-size: 0.8rem;
  }
  main > section {
    margin-bottom: 1.8rem;
  }
}
@media print {
  .hero-board,
  .calculator-context,
  .quick-links {
    display: none;
  }
  .calculator-panel,
  .result-panel,
  .related {
    box-shadow: none;
  }
}
