/* ============================================================
   Calculentra Design System — "Precision Instrument"
   Light, grid-paper background. Single ink accent. No gradients,
   no card shadows — structure comes from thin rules, not blur.
   Headings/numbers in JetBrains Mono (precision feel),
   body copy in Inter (readable at length).
   ============================================================ */

:root {
  --bg: #F5F7FC;
  --grid-line: transparent;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --card2: #F8FAFF;
  --border: #E2E8F3;
  --border-strong: #C9D5E6;
  --text: #16243B;
  --muted: #63728B;
  --accent: #2459C5;
  --accent-tint: rgba(36,89,197,0.065);
  --accent-tint-strong: rgba(36,89,197,0.14);
  --good: #147D61;
  --warn: #996323;
  --bad: #C33A3A;
  --border-light: rgba(22,36,59,0.09);
  --blue: #2459C5;
  --purple: #7353A6;
  --green: #147D61;
  --orange: #A8621B;
  --yellow: #8C7A1F;
  --red: #C33A3A;
  --radius-sm: 10px;
  --radius-md: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

h1, h2, h3, h4, .nav-logo, .page-header h1, .card h2, .footer-logo {
  font-family: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

a { color: inherit; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(246,244,238,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1250px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-logo {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo::before { content: "#/ "; color: var(--accent); }
.nav-sep { color: var(--border-strong); }
.nav-crumb { color: var(--muted); font-size: 0.83rem; }
.nav-crumb span { color: var(--accent); font-weight: 600; }
.nav-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.nav-inner .nav-links {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.nav-inner .nav-links::-webkit-scrollbar { display: none; }
.nav-more { position: relative; flex-shrink: 0; }
.nav-more-btn { background: none; border: none; font-family: 'Inter', sans-serif; color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 0; white-space: nowrap; }
.nav-more-btn:hover { color: var(--accent); }
.nav-more-menu { display: none; position: absolute; top: 140%; left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.4rem; min-width: 200px; box-shadow: 0 10px 30px rgba(26,29,30,0.12); z-index: 60; list-style: none; }
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu li { display: block; }
.nav-more-menu a { display: block; padding: 0.5rem 0.7rem; white-space: nowrap; color: var(--text); text-decoration: none; font-size: 0.85rem; border-radius: var(--radius-sm); }
.nav-more-menu a:hover { background: var(--accent-tint); color: var(--accent); }
.nav-inner .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-inner .nav-links a:hover { color: var(--accent); }
.nav-more-mobile { display: none; }
@media(max-width: 700px) {
  .nav-inner .nav-links { display: none; }
  .nav-more-desktop { display: none; }
  .nav-more-mobile { display: block; }
  .nav-logo { font-size: 1.15rem; white-space: nowrap; }
  .nav-inner { gap: 0.5rem; padding: 0 1rem; }
  .nav-btn { padding: 0.6rem 0.8rem; font-size: 0.8rem; min-height: 40px; display: inline-flex; align-items: center; }
  .nav-more-btn { font-size: 0.85rem; padding: 0.6rem 0.4rem; min-height: 40px; display: inline-flex; align-items: center; }
}
.nav-btn:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.breadcrumb-center { text-align: center; margin-top: 20px; }

/* LAYOUT */
.page-wrap { max-width: 1250px; margin: 0 auto; padding: 2.5rem 2rem 6rem; display: grid; grid-template-columns: 1fr 290px; gap: 2rem; align-items: start; }
@media(max-width:900px){ .page-wrap{grid-template-columns:1fr;} .sidebar{display:none;} .page-wrap .contact-sidebar{display:block;} }
@media(max-width:600px){ .page-wrap{padding:1.5rem 1rem 4rem;} }

/* PAGE HEADER */
.page-header { grid-column:1/-1; margin-bottom: 0.5rem; }
.tag-row { display:flex; gap:0.5rem; flex-wrap:wrap; margin-bottom:0.8rem; }
.tag { background:var(--accent-tint); border:1px solid var(--accent-tint-strong); color:var(--accent); font-size:0.7rem; font-weight:700; padding:0.2rem 0.7rem; border-radius:20px; letter-spacing:0.3px; font-family:'Inter',sans-serif; }
.page-header h1 { font-size:clamp(1.6rem,4vw,2.4rem); font-weight:700; letter-spacing:-0.5px; line-height:1.15; margin-bottom:0.6rem; }
.page-header h1 .grad { color: var(--accent); }
.page-header p { color:var(--muted); font-size:0.97rem; line-height:1.65; max-width:864px; }

/* TABS */
.tab-nav { grid-column:1/-1; display:flex; gap:0.2rem; border-bottom:1px solid var(--border); margin-bottom:1.5rem; overflow-x:auto; }
.tab-btn { background:transparent; border:none; border-bottom:2px solid transparent; color:var(--muted); padding:0.7rem 1.1rem; font-family:'Inter',sans-serif; font-size:0.86rem; font-weight:600; cursor:pointer; white-space:nowrap; transition:color 0.15s, border-color 0.15s; margin-bottom:-1px; display:flex; align-items:center; gap:0.4rem; }
.tab-btn:hover { color:var(--text); }
.tab-btn.active { color:var(--accent); border-bottom-color:var(--accent); }
.tab-btn .soon-badge { background:var(--accent-tint); border:1px solid var(--accent-tint-strong); color:var(--warn); font-size:0.6rem; font-weight:800; padding:0.1rem 0.45rem; border-radius:10px; letter-spacing:0.5px; }
.tab-content { display:none; }
.tab-content.active { display:block; }

/* CARD */
.card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:1.8rem; margin-bottom:1.5rem; }
.card h2 { font-size:1rem; font-weight:600; margin-bottom:1.2rem; display:flex; align-items:center; gap:0.5rem; }

/* INPUTS */
.input-row { display:grid; grid-template-columns:1fr 1fr 1fr; gap:0.8rem; margin-bottom:1rem; }
@media(max-width:500px){ .input-row{grid-template-columns:1fr 1fr;} }
.field-group { display:flex; flex-direction:column; gap:0.4rem; }
.field-group label { font-size:0.7rem; font-weight:700; color:var(--muted); letter-spacing:0.8px; text-transform:uppercase; }
.field-group select, .field-group input { background:var(--surface); border:1.5px solid var(--border-strong); color:var(--text); padding:0.75rem 0.9rem; border-radius:var(--radius-sm); font-family:'Inter',sans-serif; font-size:0.95rem; outline:none; transition:border-color 0.15s; width:100%; }
.field-group select:focus, .field-group input:focus { border-color:var(--accent); }
.calc-btn { width:100%; background:var(--accent); color:#fff; border:none; padding:0.95rem; border-radius:var(--radius-sm); font-family:'Inter',sans-serif; font-size:1rem; font-weight:700; cursor:pointer; transition:opacity 0.15s; margin-top:0.4rem; }
.calc-btn:hover { opacity:0.88; }

/* RESULTS */
.result-section { display:none; }
.result-section.show { display:block; }
.result-top { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-bottom:1.2rem; }
.result-stat { background:var(--card2); border:1px solid var(--border); border-radius:var(--radius-md); padding:1.4rem 1rem; text-align:center; border-top:2px solid var(--accent); }
.result-stat .big { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:1.9rem; font-weight:700; color:var(--accent); line-height:1; }
.result-stat .unit { font-size:0.75rem; color:var(--muted); font-weight:600; margin-top:4px; text-transform:uppercase; letter-spacing:0.5px; }
.result-summary { background:var(--accent-tint); border:1px solid var(--accent-tint-strong); border-radius:var(--radius-md); padding:1rem 1.2rem; font-size:0.95rem; line-height:1.6; margin-bottom:1.2rem; }

/* COUNTDOWN */
.countdown-title { font-size:0.75rem; font-weight:700; color:var(--muted); letter-spacing:1.2px; text-transform:uppercase; margin-bottom:1rem; }
.countdown-circles { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.circle { width:86px; height:86px; border-radius:50%; border:2px solid var(--border-strong); background:var(--card2); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.c-num { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:1.5rem; font-weight:700; color:var(--text); line-height:1; }
.c-lbl { font-size:0.6rem; color:var(--muted); font-weight:600; text-transform:uppercase; margin-top:2px; letter-spacing:0.5px; }

/* PILLS */
.pills { display:flex; flex-wrap:wrap; gap:0.6rem; }
.pill { background:var(--card2); border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:0.55rem 1rem; font-size:0.88rem; font-weight:500; }
.pill b { color:var(--accent); }

/* BIRTH INFO */
.birth-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.5rem; }
@media(max-width:500px){ .birth-info-grid{grid-template-columns:1fr;} }
.info-row { display:flex; justify-content:space-between; align-items:center; padding:0.65rem 0.9rem; background:var(--card2); border-radius:var(--radius-sm); gap:0.5rem; }
.info-row .lbl { font-size:0.76rem; color:var(--muted); flex-shrink:0; }
.info-row .val { font-size:0.86rem; font-weight:600; color:var(--text); text-align:right; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }

/* MILESTONES */
.milestone-table { width:100%; border-collapse:collapse; font-size:0.87rem; }
.milestone-table thead tr { background:var(--accent-tint); }
.milestone-table th { padding:0.7rem 1rem; text-align:left; font-weight:700; color:var(--accent); font-size:0.72rem; letter-spacing:0.5px; text-transform:uppercase; }
.milestone-table td { padding:0.65rem 1rem; border-bottom:1px solid var(--border); }
.milestone-table tr:last-child td { border-bottom:none; }
.milestone-table tr:hover td { background:var(--card2); }
.passed { color:var(--good) !important; font-weight:600; }
.future { color:var(--muted); }

/* FUN FACTS */
.facts-section { margin-bottom:1.5rem; }
.facts-section-title { font-size:1rem; font-weight:600; margin-bottom:1rem; display:flex; align-items:center; gap:0.5rem; padding-bottom:0.6rem; border-bottom:1px solid var(--border); }
.fact-card { background:var(--card2); border:1px solid var(--border); border-radius:var(--radius-md); padding:1rem 1.2rem; margin-bottom:0.7rem; display:flex; align-items:flex-start; gap:0.9rem; transition:border-color 0.15s; }
.fact-card:hover { border-color:var(--border-strong); }
.fact-icon { font-size:1.4rem; flex-shrink:0; margin-top:1px; }
.fact-body { flex:1; }
.fact-label { font-size:0.7rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.6px; margin-bottom:0.3rem; }
.fact-text { font-size:0.9rem; line-height:1.6; color:var(--text); }
.fact-text b { color:var(--accent); }
.fact-text .highlight { color:var(--warn); font-weight:700; }
.fact-text .green { color:var(--good); font-weight:700; }
.fact-text .pink { color:var(--accent); font-weight:700; }

/* COMING SOON TAB */
.coming-soon-box { background:var(--card2); border:1px dashed var(--border-strong); border-radius:var(--radius-md); padding:3rem 2rem; text-align:center; }
.cs-icon { font-size:3.5rem; margin-bottom:1rem; }
.cs-title { font-size:1.4rem; font-weight:700; color:var(--warn); margin-bottom:0.6rem; }
.cs-desc { color:var(--muted); font-size:0.95rem; line-height:1.7; max-width:400px; margin:0 auto 1.5rem; }
.cs-badge { display:inline-flex; align-items:center; gap:0.5rem; background:var(--accent-tint); border:1px solid var(--accent-tint-strong); color:var(--warn); padding:0.5rem 1.2rem; border-radius:50px; font-size:0.85rem; font-weight:700; }

/* FORMULA */
.formula-block { background:var(--card2); border:1px solid var(--border); border-radius:var(--radius-md); padding:1.2rem 1.4rem; margin-bottom:1rem; }
.formula-block h4 { color:var(--accent); font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; margin-bottom:0.5rem; font-family:'Inter',sans-serif; }
.formula-block p { color:var(--muted); font-size:0.87rem; line-height:1.7; }
.formula-code { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; background:var(--accent-tint); border:1px solid var(--accent-tint-strong); border-radius:var(--radius-sm); padding:0.8rem 1rem; color:var(--accent); font-size:0.85rem; margin-top:0.5rem; overflow-x:auto; line-height:1.7; }

/* FAQ */
.faq-item { border-bottom:1px solid var(--border); }
.faq-item:last-child { border-bottom:none; }
.faq-q { width:100%; background:transparent; border:none; color:var(--text); font-family:'Inter',sans-serif; font-size:0.93rem; font-weight:600; padding:1rem 0; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:1rem; transition:color 0.15s; }
.faq-q:hover { color:var(--accent); }
.faq-icon { font-size:1.1rem; flex-shrink:0; transition:transform 0.25s; color:var(--muted); }
.faq-item.open .faq-icon { transform:rotate(45deg); color:var(--accent); }
.faq-a { color:var(--muted); font-size:0.88rem; line-height:1.7; max-height:0; overflow:hidden; transition:max-height 0.3s ease, padding 0.25s; }
.faq-item.open .faq-a { max-height:400px; padding-bottom:1rem; }

/* EXAMPLES */
.example-card { background:var(--card2); border:1px solid var(--border); border-radius:var(--radius-md); padding:1rem 1.2rem; margin-bottom:0.7rem; cursor:pointer; transition:border-color 0.15s, background 0.15s; display:flex; justify-content:space-between; align-items:center; }
.example-card:hover { border-color:var(--accent); background:var(--accent-tint); }
.ex-label { font-size:0.9rem; font-weight:600; }
.ex-sub { font-size:0.76rem; color:var(--muted); margin-top:2px; }
.ex-arrow { color:var(--accent); font-size:1.1rem; flex-shrink:0; }

/* SIDEBAR */
.sidebar { position:sticky; top:75px; }
.sidebar-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:1.2rem; margin-bottom:1rem; }
.sidebar-card h4 { font-size:0.72rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:0.8rem; font-family:'Inter',sans-serif; }
.related-link { display:flex; align-items:center; gap:0.6rem; padding:0.5rem 0.6rem; border-radius:var(--radius-sm); text-decoration:none; color:var(--text); font-size:0.87rem; transition:background 0.15s; margin-bottom:0.1rem; }
.related-link:hover { background:var(--accent-tint); color:var(--accent); }
.share-mini { display:flex; gap:0.5rem; flex-wrap:wrap; }
.share-mini button { flex:1; padding:0.5rem; border-radius:var(--radius-sm); border:1px solid var(--border-strong); font-size:0.76rem; font-weight:700; cursor:pointer; transition:background 0.15s; color:#ffffff; background:var(--surface); font-family:'Inter',sans-serif; }
.share-mini button:hover { background:var(--accent-tint); border-color:var(--accent); }

/* PROGRESS BAR */
.progress-wrap { margin:1rem 0 0.3rem; }
.progress-label { display:flex; justify-content:space-between; font-size:0.78rem; color:var(--muted); margin-bottom:0.4rem; }
.progress-bar { height:8px; background:var(--border); border-radius:4px; overflow:hidden; }
.progress-fill { height:100%; border-radius:4px; background:var(--accent); transition:width 1s ease; }

/* PLANET TABLE */
.planet-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:0.6rem; }
.planet-card { background:var(--card2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:0.8rem; text-align:center; }
.planet-card .p-icon { font-size:1.5rem; margin-bottom:0.3rem; }
.planet-card .p-name { font-size:0.72rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.planet-card .p-age { font-size:1rem; font-weight:700; color:var(--accent); margin-top:0.2rem; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.planet-card .p-unit { font-size:0.68rem; color:var(--muted); }

/* FOOTER */
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; position: relative; z-index: 1; background: var(--card2); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; text-align: left; }
.footer-logo { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 0.7rem; }
.footer-logo::before { content: "#/ "; color: var(--accent); }
.footer-tagline { color: var(--muted); font-size: 0.85rem; line-height: 1.6; max-width: 320px; margin-bottom: 1.3rem; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all 0.15s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col-title { color: var(--text); font-size: 0.92rem; font-weight: 700; margin-bottom: 1.1rem; font-family:'Inter',sans-serif; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem 2rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copyright { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* HOMEPAGE - CATEGORY PREVIEW SECTIONS */
.home-intro { text-align:center; max-width:680px; margin:0 auto 2.5rem; }
.home-cat-section { margin-bottom:2.8rem; }
.home-cat-header { display:flex; align-items:center; gap:0.9rem; margin-bottom:0.6rem; flex-wrap:wrap; }
.home-cat-icon { width:44px; height:44px; border-radius:var(--radius-md); background:var(--accent-tint); border:1px solid var(--accent-tint-strong); display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; }
.home-cat-title-wrap { display:flex; align-items:baseline; gap:0.7rem; flex-wrap:wrap; }
.home-cat-title { font-size:1.25rem; font-weight:700; letter-spacing:-0.3px; text-decoration:none; color:var(--text); }
.home-cat-title:hover { color:var(--accent); }
.home-cat-count { color:var(--muted); font-size:0.78rem; }
.home-cat-viewall { border:1px solid var(--border-strong); border-radius:20px; padding:0.4rem 1rem; font-size:0.8rem; font-weight:600; text-decoration:none; color:var(--text); white-space:nowrap; transition:border-color 0.15s, color 0.15s; }
.home-cat-viewall:hover { border-color:var(--accent); color:var(--accent); }
.home-cat-desc { color:var(--muted); font-size:0.88rem; line-height:1.6; margin-bottom:1rem; max-width:800px; }
.home-tool-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:0.9rem; }
@media(max-width:600px){ .home-tool-grid{grid-template-columns:repeat(2,1fr);gap:0.6rem;} }

/* HOMEPAGE NAV */
main#mainContent { max-width:1250px; margin:0 auto; padding:2rem 2rem 4rem; }
.logo { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:1.5rem; font-weight:700; color:var(--text); }
.logo::before { content: "#/ "; color: var(--accent); }
.nav-links { display:flex; list-style:none; gap:1.6rem; margin:0 auto 0 2.2rem; overflow-x:auto; white-space:nowrap; scrollbar-width:none; flex:1; min-width:0; }
.nav-links::-webkit-scrollbar { display:none; }
.nav-links li { display:inline; }
.nav-links a { color:var(--muted); text-decoration:none; font-size:0.88rem; font-weight:600; transition:color 0.15s; }
.nav-links a:hover { color:var(--accent); }
.nav-search { display:flex; align-items:center; gap:0.5rem; background:var(--surface); border:1px solid var(--border-strong); border-radius:20px; padding:0.45rem 1rem; width:220px; }
.nav-search input { border:none; outline:none; background:transparent; font-family:'Inter',sans-serif; font-size:0.85rem; color:var(--text); width:100%; }
.nav-search .search-icon { font-size:0.85rem; opacity:0.6; }
@media(max-width:800px){
  .nav-links{display:none;}
  .nav-more-desktop{display:none;}
  .nav-more-mobile{display:block;}
  .nav-search{width:auto;flex:1;margin-left:0.6rem;}
  .logo{font-size:1.15rem;white-space:nowrap;}
}

/* HOMEPAGE HERO */
.hero { max-width:1250px; margin:0 auto; padding:3.5rem 2rem 2rem; text-align:center; position:relative; }
.hero-glow { display:none; }
.hero h1 { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:clamp(1.6rem,4vw,2.4rem); font-weight:700; letter-spacing:-1px; line-height:1.15; margin-bottom:1rem; }
.hero .gradient-text { color:var(--accent); }
.hero > p { color:var(--muted); font-size:1.05rem; max-width:600px; margin:0 auto 2rem; line-height:1.6; }
.hero-search { position:relative; max-width:520px; margin:0 auto 2.5rem; display:flex; align-items:center; gap:0.6rem; background:var(--surface); border:1.5px solid var(--border-strong); border-radius:var(--radius-md); padding:0.9rem 1.2rem; }
.hero-search .search-ico { opacity:0.6; }
.hero-search input { flex:1; border:none; outline:none; background:transparent; font-family:'Inter',sans-serif; font-size:1rem; color:var(--text); }
.search-results-drop { position:absolute; top:105%; left:0; right:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); text-align:left; max-height:340px; overflow-y:auto; z-index:50; display:none; }
.search-results-drop:not(:empty) { display:block; }
.search-result-item { display:flex; align-items:center; gap:0.7rem; padding:0.7rem 1rem; text-decoration:none; color:var(--text); font-size:0.9rem; border-bottom:1px solid var(--border); }
.search-result-item:last-child { border-bottom:none; }
.search-result-item:hover { background:var(--accent-tint); }
.stats-bar { display:flex; justify-content:center; gap:2.5rem; flex-wrap:wrap; }
.stat-item { text-align:center; }
.stat-num { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:1.6rem; font-weight:700; color:var(--accent); line-height:1; }
.stat-label { font-size:0.68rem; color:var(--muted); font-weight:700; letter-spacing:0.8px; margin-top:0.3rem; }
@media(max-width:500px){ .stats-bar{gap:1.4rem;} }

/* CATEGORY PAGE */
.cat-hero { grid-column:1/-1; display:flex; align-items:flex-start; gap:1.2rem; margin-bottom:0.5rem; }
.cat-hero-icon { width:56px; height:56px; border-radius:var(--radius-md); background:var(--accent-tint); border:1px solid var(--accent-tint-strong); display:flex; align-items:center; justify-content:center; font-size:1.8rem; flex-shrink:0; }
.cat-hero h1 { font-size:clamp(1.6rem,4vw,2.2rem); font-weight:700; letter-spacing:-0.5px; margin-bottom:0.4rem; }
.cat-hero p { color:var(--muted); font-size:0.95rem; line-height:1.65; max-width:1200px; }
.cat-count { color:var(--muted); font-size:0.8rem; margin-top:0.4rem; }
.tool-grid { grid-column:1/-1; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-top:1rem; }
.tool-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:1.1rem 1.2rem; text-decoration:none; color:var(--text); display:flex; flex-direction:column; gap:0.4rem; transition:border-color 0.15s, transform 0.15s; position:relative; }
.tool-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.tool-card-top { display:flex; align-items:center; gap:0.6rem; }
.tool-card-emoji { font-size:1.4rem; }
.tool-card-name { font-weight:600; font-size:0.95rem; }
.tool-card-desc { color:var(--muted); font-size:0.82rem; line-height:1.5; }
.tool-card-hot { position:absolute; top:0.7rem; right:0.7rem; font-size:0.6rem; font-weight:800; text-transform:uppercase; letter-spacing:0.5px; color:var(--warn); background:var(--accent-tint); border:1px solid var(--accent-tint-strong); padding:0.1rem 0.4rem; border-radius:10px; }
.cat-nav-list { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:0.5rem; margin:1.5rem 0 0.5rem; padding-top:1.5rem; border-top:1px solid var(--border); }
.cat-nav-pill { border:1px solid var(--border-strong); border-radius:20px; padding:0.4rem 0.9rem; font-size:0.8rem; text-decoration:none; color:var(--muted); transition:border-color 0.15s, color 0.15s; }
.cat-nav-pill:hover, .cat-nav-pill.active { border-color:var(--accent); color:var(--accent); }

/* SEO CONTENT */
.seo-section{margin-top:2rem;grid-column:1/-1;}
.seo-section h2{font-size:1.25rem;font-weight:700;margin-bottom:0.9rem;color:var(--text);letter-spacing:-0.3px;}
.seo-section h3{font-size:1rem;font-weight:600;margin:1.5rem 0 0.6rem;color:var(--text);font-family:'Inter',sans-serif;}
.seo-section p{color:var(--muted);font-size:0.95rem;line-height:1.75;margin-bottom:0.85rem;}
.seo-section ul,.seo-section ol{color:var(--muted);font-size:0.95rem;line-height:1.75;padding-left:1.4rem;margin-bottom:0.85rem;}
.seo-section li{margin-bottom:0.35rem;}
.seo-section strong{color:var(--text);}
.seo-highlight{background:var(--card2);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:0 var(--radius-md) var(--radius-md) 0;padding:1rem 1.2rem;margin:1rem 0 1.2rem;font-size:0.91rem;color:var(--muted);line-height:1.7;}
.seo-highlight strong{color:var(--text);}
.seo-two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin:1rem 0 1.4rem;}
@media(max-width:600px){.seo-two-col{grid-template-columns:1fr;}}
.seo-info-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);padding:1.1rem 1.2rem;}
.seo-info-card h4{font-size:0.75rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:0.5px;margin-bottom:0.6rem;font-family:'Inter',sans-serif;}
.seo-info-card ul{padding-left:1.1rem;margin:0;}

/* TEXTAREA - opt-in styling */
textarea.app-textarea {
  width: 100%;
  min-height: 220px;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
textarea.app-textarea:focus {
  border-color: var(--accent);
}
textarea.app-textarea::placeholder {
  color: var(--muted);
}
@media(max-width:600px){
  textarea.app-textarea{ min-height: 160px; }
}
.seo-info-card li{font-size:0.85rem;color:var(--muted);margin-bottom:0.3rem;}
/* ==========================================================================
   Icon system — replaces emoji throughout the site with SVG icons
   (sprite at /assets/icons.svg, referenced via <use>).
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  color: currentColor;
  flex-shrink: 0;
}
.icon-lg { width: 1.6em; height: 1.6em; }
.icon-sm { width: 0.9em; height: 0.9em; }
.icon-accent { color: var(--accent); }
.icon-muted { color: var(--muted); }

/* Buyer-uploaded branding: constrained to navigation and footer heights */
.cs-brand-logo{max-width:185px;max-height:44px;width:auto;height:auto;vertical-align:middle;object-fit:contain}


/* ============================================================
   Commercial common theme v0.2.3 — consistent across all tools
   The same tokens/components are used by homepage, category,
   and calculator pages. No promotional/tag badge headers.
   ============================================================ */
:root { color-scheme:light; }
body { line-height:1.5; }
nav { height:72px; background:rgba(255,255,255,.96); box-shadow:0 2px 14px rgba(16,38,72,.035); }
.nav-inner { max-width:1180px; }
.nav-logo,.logo { font-weight:800; letter-spacing:-.5px; font-size:1.24rem; }
.nav-logo::before,.logo::before,.footer-logo::before { content:""; }
.nav-inner .nav-links a,.nav-links a { font-size:.84rem; font-weight:600; }
.nav-search { border-radius:11px; background:#f8faff; border:1px solid var(--border); }
.nav-search:focus-within { background:#fff; border-color:var(--accent); box-shadow:0 0 0 3px rgba(36,89,197,.11); }
.breadcrumb-center { max-width:1180px; margin:14px auto 0; padding:0 20px; text-align:left; font-size:.8rem; }
.page-wrap { max-width:1180px; padding-top:2rem; }
.page-header { margin-bottom:.4rem; }
.page-header h1 { font-size:clamp(1.85rem,3.1vw,2.65rem); letter-spacing:-.8px; line-height:1.2; }
.tag-row { display:none !important; }
.card,.sidebar-card,.tool-card,.seo-info-card,.example-card { background:#fff; box-shadow:0 5px 18px rgba(31,56,97,.035); }
.card { padding:1.7rem; }
.tool-card { border-radius:15px; }
.tool-card:hover { box-shadow:0 10px 24px rgba(31,56,97,.085); }
.tab-btn { border-radius:6px 6px 0 0; }
.cat-hero-icon { background:#eaf0fc; border-radius:14px; }
.cat-nav-pill { border-radius:9px; }
.calc-btn { border-radius:10px; }
footer { background:#fff; }
.footer-logo { letter-spacing:-.4px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(36,89,197,.4); outline-offset:2px; }

/* Redesigned directory homepage */
.cs-home-container { max-width:1180px; margin:0 auto; padding-left:24px; padding-right:24px; }
.cs-home-hero { background:linear-gradient(135deg,#eff4ff 0%,#f5f7fc 65%,#edf4fa 100%); border-bottom:1px solid var(--border); }
.cs-hero-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr); gap:56px; align-items:center; padding-top:78px; padding-bottom:80px; }
.cs-eyebrow { font-size:.76rem; font-weight:800; letter-spacing:2px; color:var(--accent); margin-bottom:22px; }
.cs-hero-copy h1 { font-size:clamp(2.3rem,4.4vw,4.15rem); letter-spacing:-2px; line-height:1.11; font-weight:800; margin-bottom:22px; max-width:720px; }
.cs-hero-copy h1 span { color:var(--accent); }
.cs-hero-subtitle { color:var(--muted); max-width:610px; font-size:1.06rem; line-height:1.75; margin-bottom:25px; }
.cs-hero-search-box { position:relative; display:flex; align-items:center; background:#fff; border:1px solid var(--border-strong); border-radius:14px; height:64px; max-width:630px; padding:0 18px; box-shadow:0 12px 32px rgba(32,67,121,.07); }
.cs-hero-search-box:focus-within { border-color:var(--accent); box-shadow:0 0 0 4px rgba(36,89,197,.11); }
.cs-search-svg { width:21px; height:21px; color:var(--accent); margin-right:13px; }
.cs-hero-search-box input { background:none; border:0; outline:none; font:500 .96rem/1.4 'Inter',sans-serif; min-width:0; flex:1; color:var(--text); }
.cs-hero-search-box input::placeholder { color:#8290a5; }
.cs-hero-search-note { color:var(--muted); font-size:.82rem; margin-top:13px; }
.cs-visually-hidden { position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.cs-home-search-results { position:absolute; top:calc(100% + 7px); left:0; right:0; background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:0 20px 46px rgba(22,36,59,.15); z-index:70; overflow-y:auto; max-height:425px; padding:6px; }
.cs-home-search-results[hidden] { display:none; }
.cs-home-search-results a { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; text-decoration:none; border-radius:9px; }
.cs-home-search-results a:hover,.cs-home-search-results a:focus-visible { background:var(--accent-tint); }
.cs-home-search-results strong { font-size:.88rem; font-weight:650; }
.cs-home-search-results small { color:var(--muted); font-size:.76rem; text-align:right; }
.cs-search-empty { padding:14px; color:var(--muted); }
.cs-quick-panel { background:#fff; border:1px solid var(--border); border-radius:20px; padding:27px; box-shadow:0 18px 50px rgba(32,67,121,.07); }
.cs-quick-top { margin-bottom:13px; }
.cs-quick-top h2 { font-size:1.23rem; font-weight:750; letter-spacing:-.4px; margin-bottom:3px; }
.cs-quick-top p { font-size:.82rem; color:var(--muted); }
.cs-quick-links a { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 4px; border-bottom:1px solid var(--border); text-decoration:none; font-size:.9rem; font-weight:600; }
.cs-quick-links a:last-child { border-bottom:none; }
.cs-quick-links a .icon { color:var(--accent); }
.cs-quick-links a:hover span { color:var(--accent); }
.cs-home-main { padding-top:62px; padding-bottom:85px; }
.cs-section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:25px; }
.cs-section-heading h2 { font-size:clamp(1.4rem,2.5vw,1.93rem); font-weight:780; letter-spacing:-.8px; margin-bottom:4px; }
.cs-section-heading p { color:var(--muted); font-size:.95rem; }
.cs-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.cs-category-card { display:flex; align-items:center; gap:14px; padding:21px; background:#fff; border:1px solid var(--border); border-radius:15px; text-decoration:none; min-height:94px; transition:border-color .16s,transform .16s,box-shadow .16s; }
.cs-category-card:hover { border-color:#a8bee9; transform:translateY(-2px); box-shadow:0 10px 22px rgba(31,56,97,.07); }
.cs-category-symbol { width:43px; height:43px; flex:0 0 43px; display:flex; align-items:center; justify-content:center; border-radius:11px; background:#eef3fd; color:var(--accent); font-size:1.27rem; }
.cs-category-symbol .icon { width:24px;height:24px; }
.cs-category-details { min-width:0; display:flex; flex-direction:column; gap:3px; }
.cs-category-details strong { font-size:.91rem; line-height:1.35; font-weight:700; }
.cs-category-details small { color:var(--muted); font-size:.76rem; }
.cs-category-arrow { margin-left:auto; color:#93a3bd; }
.cs-explore-directory { margin-top:70px; }
.cs-explore-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.cs-explore-group { background:#fff; border:1px solid var(--border); border-radius:16px; padding:22px 21px 14px; min-width:0; }
.cs-explore-group-head { display:flex; justify-content:space-between; align-items:start; gap:12px; padding-bottom:12px; margin-bottom:5px; border-bottom:1px solid var(--border); }
.cs-explore-group-head h3 { font-size:1.02rem; line-height:1.35; font-weight:750; letter-spacing:-.2px; }
.cs-explore-group-head a { font-size:.78rem; color:var(--accent); text-decoration:none; white-space:nowrap; font-weight:700; }
.cs-explore-group ul { list-style:none; }
.cs-explore-group li a { padding:11px 0; text-decoration:none; font-size:.84rem; line-height:1.35; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.cs-explore-group li a:hover { color:var(--accent); }
.cs-explore-group li a span:last-child { color:#a5b2c6; font-size:1.3rem; }
@media(max-width:1040px) {
  .cs-hero-layout { grid-template-columns:minmax(0,1fr) 320px; gap:30px; }
  .cs-category-grid,.cs-explore-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .cs-hero-layout { grid-template-columns:1fr; padding-top:46px;padding-bottom:45px; }
  .cs-quick-panel { max-width:none; }
  .cs-hero-copy h1 { font-size:clamp(2.15rem,8vw,3.4rem);letter-spacing:-1.5px; }
  .cs-home-main { padding-top:42px; }
}
@media(max-width:530px) {
  .cs-home-container { padding-left:16px;padding-right:16px; }
  .cs-hero-layout { gap:27px; }
  .cs-hero-search-box { height:58px; padding:0 13px; }
  .cs-hero-search-box input { font-size:.83rem; }
  .cs-home-search-results a { align-items:start;flex-direction:column;gap:3px; }
  .cs-quick-panel { padding:20px; }
  .cs-category-grid,.cs-explore-grid { grid-template-columns:1fr; }
  .cs-category-card { min-height:80px; padding:15px; }
  .cs-section-heading { margin-bottom:18px; }
  .cs-explore-directory { margin-top:48px; }
  .cs-home-main { padding-bottom:50px; }
}
@media(prefers-reduced-motion:reduce) { .cs-category-card,.tool-card { transition:none; } }

/* Keep search usable on narrow calculator and category pages too. */
@media(max-width:530px) {
  nav { height:auto; min-height:70px; }
  nav .nav-inner { flex-wrap:wrap; row-gap:10px; padding-top:12px; padding-bottom:12px; }
  nav .nav-logo { flex:1; font-size:1.08rem; }
  nav .nav-more-mobile { order:2; }
  nav .nav-search { order:3; flex:0 0 100%; width:100%; margin:0; min-height:40px; }
  nav .nav-search input { font-size:.85rem; }
}


/* ================================================================
   COMMON THEME v0.2.5 — One visual language on ALL public pages.
   Loaded last inside each public page to override legacy page CSS.
   Scope: home, 12 categories, 179 calculators and legal pages.
   ================================================================ */
:root {
  color-scheme: light;
  --bg:#f5f7fc; --surface:#ffffff; --card:#ffffff; --card2:#f8faff;
  --border:#e0e6f1; --border-strong:#bdcbe0; --border-light:#e7edf6;
  --text:#15243e; --muted:#5c6d85; --accent:#245aca;
  --blue:#245aca; --good:#0e8066; --warn:#936017; --bad:#ba354e;
  --accent-tint:rgba(36,90,202,.065);
  --accent-tint-strong:rgba(36,90,202,.18);
  --radius-sm:10px; --radius-md:16px;
  --cs-shadow:0 5px 22px rgba(24,54,98,.045);
}
html {font-size:16px;scroll-behavior:smooth}
body {margin:0;background:var(--bg);color:var(--text);font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.55}
body,main,article,section,.page-wrap {min-width:0}
img,svg,video,canvas {max-width:100%}
a {text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #98b8f5;outline-offset:3px;
}
nav {height:72px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);box-shadow:0 1px 10px rgba(20,48,90,.035)}
.nav-inner {max-width:1220px;padding:0 22px;gap:17px}
.nav-logo {font-size:1.15rem;line-height:1.35;letter-spacing:-.45px;color:var(--text);white-space:nowrap}
.nav-logo::before {content:'▦';font-weight:900;font-size:1.16rem;vertical-align:-.03em;margin-right:8px;color:var(--accent)}
.nav-inner .nav-links {align-items:center;gap:1.1rem}
.nav-inner .nav-links a,.nav-more-btn {font-size:.82rem;font-weight:650}
.nav-more-menu {border-radius:14px;box-shadow:0 20px 60px rgba(20,48,90,.15)}
.nav-search {border-radius:11px;min-width:145px;height:39px}
.nav-search input {min-width:0}
.nav-btn {border-radius:10px}
.page-wrap {max-width:1220px;gap:24px;padding:36px 22px 80px;grid-template-columns:minmax(0,1fr) 268px}
.page-header {margin-bottom:4px}
.page-header h1,.cat-hero h1 {font-size:clamp(1.68rem,3.3vw,2.45rem);letter-spacing:-.9px;font-weight:800;line-height:1.2}
.page-header p,.cat-hero p {font-size:.94rem;color:var(--muted)}
.page-header .tag-row {display:none !important} /* remove legacy category/free/popular badges */
.tab-nav {gap:6px;max-width:100%;margin-bottom:20px;border-bottom:1px solid var(--border)}
.tab-btn {min-height:44px;padding:10px 16px;border-radius:10px 10px 0 0;font-size:.88rem}
.tab-btn.active {background:#edf3ff;border-bottom-color:var(--accent);color:#1c4daa}
.card,.tool-card,.cs-category-card,.cs-explore-group,.cs-quick-panel,.sidebar .card {
  border:1px solid var(--border);background:#fff;border-radius:16px;box-shadow:var(--cs-shadow)
}
.card {padding:clamp(18px,2.5vw,29px);margin-bottom:18px}
.card h2 {font-size:1.07rem;font-weight:760;line-height:1.4;color:var(--text);letter-spacing:-.2px}
.field-group {min-width:0}
.field-group label {color:#435771;font-size:.74rem;font-weight:700;letter-spacing:.32px;text-transform:none}
.field-group input,.field-group select,.field-group textarea,
.card input:not([type=radio]):not([type=checkbox]):not([type=range]),.card select,.card textarea {
  background:#fff;border:1px solid #c5d2e5;border-radius:10px;color:var(--text);font-family:inherit;
  min-height:43px;max-width:100%;font-size:.95rem
}
.card input:focus,.card select:focus,.card textarea:focus,.field-group input:focus,.field-group select:focus {
  border-color:var(--accent);box-shadow:0 0 0 3px rgba(36,90,202,.10)
}
.calc-btn,.btn-primary,.btn-calc,button.primary {border-radius:10px;background:var(--accent);color:#fff;font-family:inherit;font-weight:720;box-shadow:0 3px 9px rgba(36,90,202,.13)}
.calc-btn:hover,.btn-primary:hover,.btn-calc:hover {background:#194ba9;opacity:1}
.result-stat,.info-row,.pill,.fact-card,.formula-block,.result-summary {border-radius:12px}
.result-stat {background:#f6f9ff}
.result-stat .big {color:var(--accent)}
.result-summary {background:#ecf3ff;border-color:#c6d8f7}
.milestone-table {display:table;max-width:100%}
.milestone-table th {color:#244b99}
.tool-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:16px}
.tool-card {padding:22px;min-height:140px;transition:transform .15s,box-shadow .15s,border-color .15s}
.tool-card:hover,.cs-category-card:hover {border-color:#acc4ef;box-shadow:0 12px 28px rgba(32,68,130,.11)}
.tool-card-name {font-size:.98rem;font-weight:750}
.tool-card-desc {line-height:1.55;font-size:.84rem}
.cat-hero {background:#fff;border:1px solid var(--border);border-radius:18px;padding:25px;box-shadow:var(--cs-shadow);align-items:center;gap:17px}
.cat-hero-icon {width:60px;height:60px;background:#eaf1ff;border-color:#dce8fb;border-radius:14px}
.cat-nav-pill {background:#fff;border-radius:10px;min-height:37px;display:inline-flex;align-items:center}
.cat-nav-pill.active {background:#eaf1ff}
.cs-home-hero {background:linear-gradient(115deg,#eef4ff 0%,#f5f7fc 72%);border-bottom:1px solid var(--border)}
.cs-hero-layout {max-width:1180px;padding-top:68px;padding-bottom:70px;gap:42px}
.cs-hero-copy h1 {font-size:clamp(2.15rem,4.7vw,4.2rem);line-height:1.09;letter-spacing:-2px}
.cs-hero-search-box {border-color:#bdcde6}
.cs-quick-panel {border-radius:18px;padding:24px}
.cs-home-main {padding-top:57px}
.cs-category-grid {gap:14px}
.cs-category-card {min-height:100px;border-radius:15px}
.cs-category-symbol {border-radius:12px}
.cs-explore-group {border-radius:16px}
footer {background:#fff;border-top:1px solid var(--border)}
.footer-logo {color:var(--text)}
@media(max-width:1050px) {
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-wrap{grid-template-columns:minmax(0,1fr) 235px}
}
@media(max-width:900px){
  .page-wrap {grid-template-columns:minmax(0,1fr)}
  .sidebar {display:none}
  .page-wrap .contact-sidebar {display:block}
  .cs-hero-layout {gap:24px}
}
@media(max-width:760px){
  nav {height:auto;min-height:68px}
  .nav-inner {min-height:68px;gap:8px;padding:9px 16px}
  .nav-logo {font-size:1rem;white-space:normal}
  .nav-inner .nav-links {display:none}
  .nav-more-desktop {display:none}
  .nav-more-mobile {display:block}
  .cs-hero-layout {padding-top:48px;padding-bottom:55px;grid-template-columns:minmax(0,1fr)}
  .cs-home-main {padding-top:40px}
  .cs-category-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-explore-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-wrap {padding:27px 16px 60px}
}
@media(max-width:530px){
  .nav-inner {flex-wrap:wrap}
  .nav-search {width:100%;order:4;flex:1 0 100%;max-width:none;margin-bottom:3px}
  .nav-more-mobile {margin-left:auto}
  .cs-home-container {padding-left:16px;padding-right:16px}
  .cs-hero-copy h1 {font-size:clamp(2rem,9vw,2.7rem);letter-spacing:-1.2px}
  .cs-category-grid,.cs-explore-grid,.tool-grid {grid-template-columns:minmax(0,1fr)}
  .cs-category-card{padding:17px;min-height:84px}
  .cat-hero {padding:17px;align-items:flex-start}
  .cat-hero-icon {width:48px;height:48px}
  .card {padding:18px}
  .input-row {grid-template-columns:repeat(2,minmax(0,1fr))}
  .result-top {grid-template-columns:repeat(2,minmax(0,1fr))}
  .result-stat {min-width:0;padding:13px 8px}
  .result-stat .big {font-size:1.45rem}
  table:not(.no-responsive) {max-width:100%}
  .milestone-table {font-size:.77rem}
  .milestone-table th,.milestone-table td {padding:.55rem .45rem}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}


/* ===================================================================
   v0.2.6 — Reference-inspired blue-gradient storefront theme.
   Preserves original calculator forms/results and content-clean work.
   =================================================================== */
:root {
  --bg:#f8fafc; --surface:#fff; --card:#fff; --card2:#f7faff;
  --border:#e2e7ed; --border-strong:#c7d3e3;
  --text:#242a33; --muted:#66717f; --accent:#246fe9; --blue:#246fe9;
  --accent-tint:rgba(36,111,233,.065); --accent-tint-strong:rgba(36,111,233,.18);
  --cs-shadow:0 4px 17px rgba(20,42,79,.048);
}
body {background:#f8fafc;color:var(--text)}
nav {height:70px;background:#fff;border-bottom:1px solid #e6eaf1;box-shadow:0 2px 10px rgba(29,58,100,.035)}
.nav-inner {max-width:1240px}
.nav-logo {color:#1e2834}
.nav-logo::before {color:#246fe9}
.nav-inner .nav-links a:hover,.nav-more-btn:hover {color:#216be4}
.nav-search {background:#f9fbff}
.nav-crumb {color:#65748b}
.cs-premium-hero {background:linear-gradient(119deg,#266ee7 0%,#2b8de9 49%,#23b0e0 100%);color:#fff;border:0}
.cs-premium-hero-inner {max-width:1080px;padding-top:70px;padding-bottom:70px;display:flex;flex-direction:column;align-items:center;text-align:center}
.cs-premium-hero h1 {max-width:950px;color:#fff;font-size:clamp(2.2rem,4.55vw,3rem);font-weight:800;letter-spacing:-1.65px;line-height:1.13;margin:0 auto 18px;text-wrap:balance}
.cs-premium-hero .cs-hero-subtitle {color:rgba(255,255,255,.91);font-size:clamp(.97rem,1.35vw,1.16rem);font-weight:450;line-height:1.65;max-width:750px;margin:0 auto 23px;text-wrap:pretty}
.cs-premium-hero .cs-hero-search-box {width:min(100%,570px);max-width:570px;height:56px;margin:0 auto 22px;border:1px solid rgba(255,255,255,.74);border-radius:12px;box-shadow:0 10px 23px rgba(19,57,112,.14);text-align:left;padding:0 16px;background:#fff}
.cs-premium-hero .cs-hero-search-box input {min-width:0;color:#1b314f;font-size:.93rem}
.cs-premium-hero .cs-hero-search-box input::placeholder {color:#7b8a9b}
.cs-premium-hero .cs-home-search-results {text-align:left;color:#21324a}
.cs-premium-hero .cs-home-search-results a:hover {color:#216be4}
.cs-hero-sharing {display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;margin:0 0 24px}
.cs-hero-sharing > span {color:rgba(255,255,255,.87);font-size:.81rem;margin-right:3px}
.cs-hero-sharing a,.cs-hero-sharing button {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:7px 13px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.17);color:#fff;text-decoration:none;font:600 .78rem/1.25 'Inter',sans-serif;cursor:pointer;transition:background .2s}
.cs-hero-sharing a:hover,.cs-hero-sharing button:hover {background:rgba(255,255,255,.28)}
.cs-hero-facts {display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.cs-hero-facts span {background:rgba(255,255,255,.96);color:#27313d;border:1px solid rgba(235,240,249,.8);box-shadow:0 3px 6px rgba(18,64,129,.08);padding:7px 15px;border-radius:999px;font-size:.82rem;font-weight:750}
.cs-home-main {max-width:1220px;padding-top:52px;padding-bottom:82px}
.cs-featured-section {margin-bottom:68px}
.cs-featured-intro {max-width:680px;margin:0 auto 34px;text-align:center}
.cs-featured-intro h2 {color:#252a31;font-size:clamp(1.85rem,2.7vw,2.55rem);line-height:1.15;letter-spacing:-.75px;font-weight:800;margin-bottom:12px}
.cs-featured-intro p {color:#68727e;font-size:.98rem;line-height:1.65}
.cs-featured-subheading {font-size:1.25rem;font-weight:760;letter-spacing:-.35px;margin:0 0 17px}
.cs-featured-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.cs-featured-card {min-width:0;display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #dce2ea;border-radius:12px;padding:23px;box-shadow:0 2px 7px rgba(36,58,98,.055);transition:box-shadow .18s,border-color .18s}
.cs-featured-card:hover {border-color:#a9c9ff;box-shadow:0 9px 25px rgba(34,78,144,.10)}
.cs-featured-card-top {display:flex;align-items:center;gap:12px}
.cs-featured-icon {display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:10px;background:#ecf3ff;color:#276fdf;font-size:1.25rem;font-weight:800}
.cs-featured-card h4 {font-size:.99rem;font-weight:750;line-height:1.3;margin:0}
.cs-featured-card p {flex:1;margin:0 0 3px;color:#68727e;font-size:.85rem;line-height:1.5}
.cs-featured-open {display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:8px;background:#2671e8;color:#fff;text-decoration:none;font-weight:700;font-size:.83rem;padding:10px 15px}
.cs-featured-open:hover {background:#165dc9;color:#fff}
.cs-section-heading h2 {font-size:clamp(1.35rem,2.2vw,1.75rem);color:var(--text)}
.cs-category-card,.cs-explore-group,.tool-card,.card,.sidebar-card {background:#fff;border:1px solid #dde5ef;border-radius:12px;box-shadow:0 2px 9px rgba(30,61,112,.05)}
.cs-category-card:hover,.tool-card:hover {border-color:#a1c3fa;box-shadow:0 9px 22px rgba(24,65,129,.10)}
.cs-category-symbol {background:#edf4ff;color:#2671e8}
.cs-explore-group {border-radius:12px}
.page-header h1,.cat-hero h1 {font-weight:800;color:#26303b}
.cat-hero {border-color:#dee6f1;box-shadow:0 3px 13px rgba(20,58,113,.06)}
.calc-btn,.btn-primary,.btn-calc,button.primary {background:#2472ea;border-radius:8px}
.calc-btn:hover,.btn-primary:hover,.btn-calc:hover {background:#185fc7}
.tab-btn.active {background:#eaf2ff;color:#1b5cc4}
.result-stat {border-top-color:#2472ea}
footer {background:#fff}
@media(max-width:930px) {.cs-featured-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px) {
 .cs-premium-hero-inner {padding-top:55px;padding-bottom:59px}
 .cs-premium-hero h1 {letter-spacing:-1px}
 .cs-home-main {padding-top:43px}
}
@media(max-width:600px) {
 .cs-premium-hero-inner {padding-top:46px;padding-bottom:49px}
 .cs-premium-hero h1 {font-size:clamp(2rem,8.5vw,2.65rem)}
 .cs-premium-hero .cs-hero-subtitle {font-size:.93rem}
 .cs-featured-grid {grid-template-columns:minmax(0,1fr);gap:13px}
 .cs-featured-card {padding:18px}
 .cs-hero-sharing {gap:6px}
 .cs-hero-sharing a,.cs-hero-sharing button {padding:7px 10px;font-size:.73rem}
 .cs-hero-facts span {font-size:.73rem;padding:7px 11px}
 .cs-featured-section {margin-bottom:45px}
 .cs-featured-intro {margin-bottom:24px}
 .cs-home-main {padding-bottom:54px}
}
