:root {
  color-scheme: light;
  --bg: #f6fbfa;
  --surface: #ffffff;
  --surface-strong: #e8f5f2;
  --text: #1f2933;
  --muted: #5d6b73;
  --brand: #0d5c63;
  --brand-2: #128078;
  --accent: #f59e0b;
  --border: #d7e6e2;
  --shadow: 0 16px 40px rgba(13, 92, 99, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.header-grid { display: grid; grid-template-columns: auto 1fr minmax(230px, 320px); align-items: center; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--brand); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .86rem; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; }
.nav a, .footer-grid a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: .92rem; }
.nav a:hover, .footer-grid a:hover { color: var(--brand); }
.header-search, .hero-search { position: relative; }
.header-search { display: flex; gap: 8px; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 8px; padding: 10px 16px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; }
button:hover, .button:hover { background: var(--brand-2); }
.text-button { background: transparent; color: var(--brand); border: 1px solid var(--border); }
.home-hero { padding: 44px 0 34px; background: linear-gradient(135deg, #f6fbfa 0%, #e4f5f0 100%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.5fr .75fr; gap: 24px; align-items: stretch; }
.hero-copy h1, .page-intro h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: 0; color: #12333a; max-width: 820px; }
.hero-copy p, .page-intro p, .lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.hero-search label, label span { display: block; font-weight: 800; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; max-width: 720px; }
.hero-card, .side-panel, .article-side, .cms-output { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px; box-shadow: var(--shadow); }
.hero-card { display: flex; flex-direction: column; justify-content: center; }
.hero-card strong { font-size: 1.35rem; }
.section { padding: 42px 0; }
.section-muted { background: var(--surface-strong); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.18; color: #14343a; letter-spacing: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 16px; }
h3 { margin-bottom: 6px; }
.card-grid, .article-grid, .pillar-grid { display: grid; gap: 16px; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-card, .article-card, .pillar-card { display: block; min-height: 150px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; box-shadow: 0 8px 24px rgba(13, 92, 99, .06); }
.tool-card:hover, .article-card:hover, .pillar-card:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.tool-card span, .article-card span, .pillar-card span { display: block; color: var(--brand); font-weight: 800; font-size: .82rem; margin-bottom: 8px; }
.tool-card strong, .article-card strong, .pillar-card strong { display: block; font-size: 1.1rem; line-height: 1.25; }
.tool-card p, .article-card p, .pillar-card p { color: var(--muted); margin-bottom: 0; }
.page-intro { padding: 36px 0 20px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; padding-top: 18px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--brand); text-decoration: none; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; padding: 22px 0 42px; align-items: start; }
.calculator-main { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.result-box { margin-top: 18px; border: 1px solid var(--border); border-radius: 8px; padding: 18px; background: #fafdff; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.result-grid div { padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.result-grid span { display: block; color: var(--muted); font-size: .88rem; }
.result-grid b { color: var(--brand); font-size: 1.15rem; }
.note, .callout { border-left: 4px solid var(--accent); background: #fff8ea; padding: 12px 14px; border-radius: 8px; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
summary { cursor: pointer; font-weight: 800; }
.article-layout { padding-bottom: 42px; }
.article-header { max-width: 840px; padding: 18px 0; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.content { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.content p, .content li { color: #34434b; }
.article-side { position: sticky; top: 92px; display: grid; gap: 12px; }
.article-side a { color: var(--brand); font-weight: 750; text-decoration: none; }
.side-cta { display: block; background: var(--brand); color: #fff !important; padding: 16px; border-radius: 8px; }
.side-cta span { display: block; opacity: .82; font-size: .85rem; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #edf7f4; color: #12333a; }
.table-wrap { overflow-x: auto; }
.ad-slot { margin: 18px 0; min-height: 88px; display: grid; place-items: center; border: 1px dashed #b8ccc7; border-radius: 8px; color: #73817f; background: #fbfefd; font-size: .86rem; }
.ad-slot.compact { min-height: 220px; }
.search-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); z-index: 20; }
.search-panel.is-open { display: grid; gap: 6px; }
.search-hit { display: block; text-decoration: none; padding: 10px; border-radius: 8px; }
.search-hit:hover { background: var(--surface-strong); }
.search-hit span, .search-hit small { display: block; color: var(--muted); }
.search-hit strong { color: var(--brand); }
.cms-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; padding-bottom: 48px; }
.cms-form { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px; display: grid; gap: 14px; }
.draft-item { border-bottom: 1px solid var(--border); padding: 10px 0; display: grid; gap: 4px; }
.draft-item span { color: var(--muted); font-size: .9rem; }
.draft-item button { justify-self: start; min-height: 34px; padding: 6px 10px; background: #f1f7f5; color: var(--brand); }
.site-footer { background: #12333a; color: #edf8f5; padding: 36px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-grid a { display: block; color: #c7ddd8; margin-top: 8px; }
.footer-grid p { color: #c7ddd8; margin-bottom: 0; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body {
  background: linear-gradient(180deg, #eefbf8 0%, #f7fbfa 34%, #f9fcfb 100%);
}
.site-header {
  background: rgba(248, 253, 252, .92);
  box-shadow: 0 10px 30px rgba(15, 118, 110, .08);
}
.header-grid { min-height: 76px; }
.brand { font-size: 1.08rem; color: #0f4f4a; }
.brand b { color: #0d9488; }
.brand-mark {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid #cdebe5;
  box-shadow: 0 8px 20px rgba(13, 148, 136, .12);
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.nav a {
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover {
  background: #e3f8f4;
  color: #0f766e;
}
.header-search input {
  border-color: #cce7e2;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .06);
}
.header-search button { background: #0f766e; }
.home-hero {
  padding: 62px 0 44px;
  background: linear-gradient(135deg, rgba(13, 148, 136, .16) 0%, rgba(232, 250, 246, 1) 46%, rgba(255, 255, 255, .92) 100%);
  border-bottom: 1px solid #d5eee9;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 34px;
}
.hero-copy h1 {
  max-width: 720px;
  color: #0f2f33;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
}
.hero-copy > p {
  max-width: 680px;
  color: #3f5960;
}
.hero-search {
  max-width: 780px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid #cfe9e4;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 118, 110, .12);
}
.hero-search input {
  min-height: 54px;
  border-color: #b9dfd8;
}
.hero-search button {
  min-height: 54px;
  padding-inline: 22px;
  background: #0f766e;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hero-tags a {
  text-decoration: none;
  color: #0f766e;
  background: #ffffff;
  border: 1px solid #cdebe5;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(15, 118, 110, .08);
}
.hero-dashboard {
  gap: 14px;
  background: #0f3f46;
  color: #eafdf9;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 28px 70px rgba(15, 63, 70, .22);
}
.hero-dashboard p { color: #d3efeb; margin: 0; }
.dashboard-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.dashboard-head span {
  display: block;
  color: #91f0df;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.dashboard-head strong {
  display: block;
  font-size: 1.45rem;
  color: #ffffff;
}
.mini-result {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.mini-result span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #13b8a6;
  color: #062b2e;
  font-weight: 900;
}
.mini-result b { color: #fff; }
.hero-dashboard .button {
  margin-top: 4px;
  background: #16c7b5;
  color: #063337;
}
.trust-strip {
  background: #0f766e;
  color: #eafffb;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}
.trust-grid span {
  padding: 16px 20px;
  text-align: center;
  background: rgba(255,255,255,.07);
}
.trust-grid b { color: #ffffff; }
.section { padding: 52px 0; }
.section-head a {
  color: #0f766e;
  font-weight: 850;
  text-decoration: none;
}
.tool-card, .article-card, .pillar-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffe 100%);
  border: 1px solid #d1ebe6;
  box-shadow: 0 12px 35px rgba(15, 118, 110, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-card::after, .article-card::after, .pillar-card::after {
  content: ">";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #0d9488;
  font-weight: 900;
}
.tool-card:hover, .article-card:hover, .pillar-card:hover {
  transform: translateY(-4px);
  border-color: #0d9488;
  box-shadow: 0 22px 50px rgba(15, 118, 110, .14);
}
.card-badge, .tool-card span, .article-card span {
  align-self: flex-start;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e1f8f4;
  color: #0f766e;
  font-size: .78rem;
}
.tool-card strong, .article-card strong, .pillar-card strong {
  font-size: 1.18rem;
  color: #17383c;
}
.tool-card p, .article-card p, .pillar-card p {
  margin: 0;
  color: #50666c;
}
.tool-card em, .article-card em {
  margin-top: auto;
  color: #0f766e;
  font-style: normal;
  font-weight: 850;
}
.pillar-card {
  min-height: 210px;
  padding-left: 86px;
}
.pillar-icon {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #0d9488;
  color: #ffffff !important;
  font-weight: 900;
}
.pillar-meta {
  margin-top: auto;
  color: #0f766e !important;
  font-weight: 850;
}
.page-intro { padding: 48px 0 24px; }
.page-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff, #e9fbf7);
  border: 1px solid #d1ebe6;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 118, 110, .10);
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #bfe4dd;
  background: #ffffff;
  color: #0f766e;
  text-decoration: none;
  font-weight: 850;
}
.intro-meter {
  text-align: center;
  padding: 18px;
  border-radius: 8px;
  background: #0f766e;
  color: #dcfff8;
}
.intro-meter strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
  color: #ffffff;
}
.calculator-layout { gap: 28px; }
.calculator-main {
  padding: 30px;
  border-color: #cce7e2;
  box-shadow: 0 24px 64px rgba(15, 118, 110, .12);
}
.calculator-title {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}
.tool-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #dff8f3;
  color: #0f766e;
  font-size: 1.5rem;
  font-weight: 900;
}
.calculator-form { margin-top: 8px; }
.calculator-form label {
  padding: 12px;
  border-radius: 8px;
  background: #f7fcfb;
  border: 1px solid #e0efec;
}
.calculator-form label span { color: #2e474c; }
.result-box {
  background: linear-gradient(180deg, #f2fffc, #ffffff);
  border-color: #bde5dd;
}
.result-box > strong {
  color: #0f766e;
  font-size: 1.1rem;
}
.side-panel, .article-side {
  border-color: #cce7e2;
  box-shadow: 0 18px 45px rgba(15, 118, 110, .10);
}
.content {
  border-color: #d1ebe6;
  box-shadow: 0 18px 45px rgba(15, 118, 110, .07);
}
.article-header { max-width: 900px; }
.article-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.ad-slot {
  background: #f7fcfb;
  border-color: #bddfd8;
}
.site-footer {
  background: linear-gradient(135deg, #0f3338, #0b5f58);
}
@media (max-width: 900px) {
  .header-grid, .hero-grid, .calculator-layout, .article-body, .cms-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 20px; }
  .trust-grid, .page-intro-card { grid-template-columns: 1fr; }
  .nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .header-search { max-width: 100%; }
  .card-grid, .article-grid, .pillar-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1120px); }
  .home-hero { padding-top: 28px; }
  .search-row, .header-search { flex-direction: column; }
  .form-grid, .result-grid { grid-template-columns: 1fr; }
  .calculator-main, .content, .side-panel, .article-side, .cms-form, .cms-output { padding: 18px; }
  .hero-copy h1, .page-intro h1 { font-size: 2rem; }
  .trust-grid span { text-align: left; }
  .pillar-card { padding-left: 20px; padding-top: 84px; }
  .pillar-icon { left: 20px; }
  .calculator-title { grid-template-columns: 1fr; }
}