/* ==========================================================================
   CalculatorsSpot — Design Brief 2026
   Loaded after tailwind.css. Palette, typography and every new component.
   ========================================================================== */

:root{
  --cream:#FAF8F3;
  --beige:#F2EDE4;
  --beige-dark:#E8E0D4;
  --border:#DDD5C8;
  --border-strong:#C9BFAE;
  --green:#2D6A4F;
  --green-mid:#40916C;
  --green-deep:#1B3A2D;
  --gold:#E8B400;
  --gold-dark:#C9963F;
  --ink:#2C2C2C;
  --grey:#6B6459;
  --white:#FFFFFF;

  --f-display:"Playfair Display",Georgia,"Times New Roman",serif;
  --f-body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"DM Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --section-pad:80px;
}

@media (max-width:768px){ :root{ --section-pad:48px; } }

/* ---------------------------------------------------------------- base --- */

html{ scroll-behavior:smooth; }

body,body[class]{
  background-color:var(--cream);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:15px;
  line-height:1.7;
}

h1,h2,h3,h4,.font-outfit,.cs-display{
  font-family:var(--f-display);
  font-weight:700;
  line-height:1.25;
}

h1{ font-size:32px; }
h2{ font-size:24px; }
h3{ font-size:18px; }

@media (max-width:768px){
  h1{ font-size:26px; }
  h2{ font-size:21px; }
}

a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--green);
  outline-offset:2px;
}

::selection{ background:var(--green); color:#fff; }

aside img{ filter:none; }

.cs-wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
@media (max-width:768px){ .cs-wrap{ padding:0 16px; } }

.cs-section{ padding-top:var(--section-pad); padding-bottom:var(--section-pad); }

.cs-h2{ font-family:var(--f-display); font-weight:700; font-size:28px; color:var(--green); text-align:center; }
.cs-sub{ font-family:var(--f-body); font-size:15px; color:var(--grey); text-align:center; margin-top:8px; }
@media (max-width:768px){ .cs-h2{ font-size:23px; } }

/* -------------------------------------------------------------- buttons -- */

.cs-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--f-body); font-weight:500; font-size:14px;
  border-radius:8px; padding:12px 24px; border:1.5px solid transparent;
  cursor:pointer; transition:all 150ms ease-out; text-decoration:none;
  min-height:48px;
}
.cs-btn-primary{ background:var(--green); color:#fff; }
.cs-btn-primary:hover{ background:var(--green-mid); color:#fff; }
.cs-btn-secondary{ background:transparent; color:var(--green); border-color:var(--green); }
.cs-btn-secondary:hover{ background:var(--green); color:#fff; }
@media (max-width:768px){ .cs-btn{ padding:14px 24px; } }

/* --------------------------------------------------------------- header -- */
/* Point 02 — floating "dynamic island" pill nav */

.cs-header{
  position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:1000;
  width:calc(100% - 48px); max-width:900px; height:56px;
  background:var(--green); color:#fff;
  border-radius:50px; box-shadow:0 8px 32px rgba(0,0,0,.18);
  transition:box-shadow 200ms ease-out;
}
.cs-header.scrolled{ box-shadow:0 12px 40px rgba(0,0,0,.25); }

.cs-header-inner{
  position:relative; height:100%; display:flex; align-items:center;
  justify-content:space-between; gap:12px; padding:0 10px 0 14px;
  max-width:none; margin:0;
}

/* left — gold circle mark + wordmark */
.cs-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff; white-space:nowrap; }
.cs-logo-mark{
  width:32px; height:32px; flex:none; border-radius:50%;
  background:var(--gold); color:#fff;
  display:grid; place-items:center;
  font-family:var(--f-display); font-weight:700; font-size:18px; line-height:1;
}
.cs-logo-text{ font-family:var(--f-display); font-weight:700; font-size:16px; color:#fff; }
.cs-logo-text .dot{ color:var(--gold); }

/* centre — truly centred nav */
.cs-nav{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  display:flex; align-items:center; gap:4px;
}
.cs-nav a,.cs-nav button{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--f-body); font-size:14px; font-weight:500;
  color:rgba(255,255,255,.9); text-decoration:none;
  background:transparent; border:0; cursor:pointer;
  padding:8px 14px; border-radius:50px;
  transition:background 150ms ease-out, color 150ms ease-out;
}
.cs-nav a:hover,.cs-nav button:hover{ background:rgba(255,255,255,.12); color:#fff; }
.cs-nav a[aria-current="page"]{ background:rgba(255,255,255,.15); color:#fff; }
.cs-nav-chev{ transition:transform 200ms ease; }
.cs-nav-chev.open{ transform:rotate(180deg); }

/* tools dropdown */
.cs-dd-wrap{ position:relative; }
.cs-dd{
  position:absolute; top:calc(100% + 12px); left:50%; transform:translateX(-50%) translateY(-8px);
  width:min(320px,80vw); background:var(--white);
  border-radius:16px; border-top:2px solid var(--gold);
  box-shadow:0 8px 32px rgba(0,0,0,.14);
  padding:8px; opacity:0; pointer-events:none;
  transition:opacity 180ms ease, transform 180ms ease;
  max-height:min(60vh,420px); overflow-y:auto;
}
.cs-dd.on{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
.cs-dd a{
  display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px;
  font-family:var(--f-body); font-size:13px; font-weight:500; color:var(--ink);
  text-decoration:none; background:transparent;
  transition:background 120ms ease-out;
}
.cs-dd a:hover{ background:var(--beige); color:var(--ink); }
.cs-dd a svg{ width:16px; height:16px; flex:none; color:var(--green); }

/* right — social + burger */
.cs-header-actions{ display:flex; align-items:center; gap:4px; }
.cs-social{
  width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  color:rgba(255,255,255,.8); background:transparent; border:0;
  transition:background 150ms ease-out, color 150ms ease-out;
}
a.cs-social:hover{ background:rgba(255,255,255,.12); color:#fff; }
.cs-social svg{ width:18px; height:18px; }
.cs-social[data-nourl]{ cursor:default; }

.cs-icon-btn{
  /* 48px inside the 56px pill on desktop, 44px inside the 52px pill on mobile */
  width:48px; height:48px; display:grid; place-items:center;
  background:transparent; border:0; color:#fff; cursor:pointer; border-radius:50%;
}
.cs-icon-btn:hover{ background:rgba(255,255,255,.12); }
.cs-burger{ display:none; }

body{ padding-top:88px; }

@media (max-width:900px){
  .cs-header{ top:12px; width:calc(100% - 32px); height:52px; }
  body{ padding-top:76px; }
  .cs-nav{ display:none; }
  .cs-social{ display:none; }
  .cs-burger{ display:grid; }
  .cs-icon-btn{ width:44px; height:44px; }
  .cs-drawer{
    position:fixed; top:76px; right:16px; width:min(78vw,300px);
    background:var(--green); border-radius:16px; padding:8px;
    box-shadow:0 12px 40px rgba(0,0,0,.28);
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity 180ms ease, transform 180ms ease;
    z-index:999; max-height:70vh; overflow-y:auto;
  }
  .cs-drawer.on{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .cs-drawer a{
    display:flex; align-items:center; min-height:48px; padding:10px 14px;
    color:#fff; text-decoration:none; font-family:var(--f-body); font-size:14px;
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .cs-drawer a:last-child{ border-bottom:0; }
  .cs-drawer a:hover{ background:rgba(255,255,255,.12); }
}
.cs-drawer{ display:none; }
@media (max-width:900px){ .cs-drawer{ display:block; } }

/* ---------------------------------------------------------- search bar --- */

.cs-search-wrap{ position:relative; z-index:200; display:flex; justify-content:center; }

.cs-search{
  position:relative; width:600px; max-width:100%;
  transition:width 200ms ease-out, box-shadow 200ms ease-out;
}
.cs-search.expanded{ width:680px; }
@media (max-width:768px){ .cs-search,.cs-search.expanded{ width:90vw; } }

.cs-search input{
  width:100%; height:56px; border-radius:28px; border:1.5px solid var(--border);
  background:var(--white); color:var(--ink);
  font-family:var(--f-body); font-size:15px;
  padding:0 108px 0 48px; outline:none;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:box-shadow 200ms ease-out, border-color 150ms ease-out;
}
.cs-search input::placeholder{ color:var(--grey); }
.cs-search.expanded input{ box-shadow:0 4px 20px rgba(45,106,79,.15); border-color:var(--green); }

.cs-search-icon{ position:absolute; left:16px; top:50%; transform:translateY(-50%);
  width:20px; height:20px; color:var(--green); pointer-events:none; }
.cs-search-hint{ position:absolute; right:18px; top:50%; transform:translateY(-50%);
  font-family:var(--f-body); font-size:11px; color:var(--border-strong); pointer-events:none; }
@media (max-width:768px){ .cs-search-hint{ display:none; } .cs-search input{ padding-right:20px; } }

.cs-blur{
  position:fixed; inset:0; z-index:100;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  background:rgba(250,248,243,.75);
  opacity:0; pointer-events:none; transition:opacity 200ms ease-out;
}
.cs-blur.on{ opacity:1; pointer-events:auto; }

.cs-panel{
  position:absolute; top:calc(100% + 10px); left:0; right:0; z-index:200;
  background:var(--white); border-radius:16px; border-top:2px solid var(--gold);
  box-shadow:0 8px 32px rgba(0,0,0,.12);
  max-height:420px; overflow-y:auto;
  opacity:0; transform:translateY(-8px); pointer-events:none;
  transition:opacity 150ms ease-out, transform 150ms ease-out;
  text-align:left;
}
.cs-panel.on{ opacity:1; transform:translateY(0); pointer-events:auto; }

.cs-panel-label{
  font-family:var(--f-body); font-size:10px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--gold); padding:12px 16px 4px;
}
.cs-chips{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; padding:8px 16px 16px; }
@media (max-width:560px){ .cs-chips{ grid-template-columns:1fr; } }
.cs-chip{
  display:flex; align-items:center; gap:8px; padding:8px 14px; border-radius:20px;
  background:var(--beige); color:var(--ink); text-decoration:none;
  font-family:var(--f-body); font-size:12px; font-weight:500;
  transition:background 100ms ease-out, color 100ms ease-out;
}
.cs-chip svg{ width:16px; height:16px; color:var(--green); flex:none; transition:color 100ms; }
.cs-chip:hover,.cs-chip.active{ background:var(--green); color:#fff; }
.cs-chip:hover svg,.cs-chip.active svg{ color:#fff; }

.cs-results{ padding:8px; }
.cs-result{
  display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px;
  text-decoration:none; color:var(--ink); transition:background 80ms ease-out;
}
.cs-result:hover,.cs-result.active{ background:var(--beige); }
.cs-result .ico{ width:32px; height:32px; border-radius:50%; background:var(--beige);
  display:grid; place-items:center; color:var(--green); flex:none; }
.cs-result:hover .ico,.cs-result.active .ico{ background:var(--white); }
.cs-result .nm{ font-family:var(--f-body); font-size:14px; font-weight:700; flex:1; }
.cs-result .cat{ font-family:var(--f-body); font-size:10px; font-weight:700; color:var(--green);
  background:var(--beige); border-radius:10px; padding:3px 8px; white-space:nowrap; }
.cs-result:hover .cat,.cs-result.active .cat{ background:var(--white); }
.cs-result .arw{ color:var(--grey); flex:none; transition:color 80ms; }
.cs-result:hover .arw,.cs-result.active .arw{ color:var(--green); }
.cs-empty{ padding:20px 16px; font-family:var(--f-body); font-size:14px; color:var(--grey); }
.cs-empty a{ color:var(--green); font-weight:600; }

/* ------------------------------------------------------------ hero copy -- */
/* Point 01 — two column: text left, calculator right */

.cs-hero{ padding-top:48px; }
.cs-hero-search{ margin-bottom:8px; }

.hero-section{
  display:flex; flex-direction:row; align-items:center; gap:60px;
  max-width:1200px; margin:0 auto; padding:60px 0;
}
.hero-left{ flex:1; text-align:left; min-width:0; }
.hero-left h1{ text-align:left; font-size:32px; color:var(--green); margin:0; }
.hero-left p{ text-align:left; max-width:540px; margin-top:16px;
  font-family:var(--f-body); font-size:15px; line-height:1.7; color:var(--ink); }
.hero-right{ flex:0 0 380px; width:380px; }
.hero-right .cs-calc{ margin:0; width:100%; }

@media (max-width:768px){
  .hero-section{ flex-direction:column; gap:32px; padding:40px 0; }
  .hero-right{ width:100%; flex:unset; }
  .hero-left h1,.hero-left p{ text-align:center; }
  .hero-left p{ margin-left:auto; margin-right:auto; }
  .hero-left h1{ font-size:26px; }
}

/* --------------------------------------------------- scientific calc ----- */

.cs-calc{ outline:2px solid transparent;
  width:380px; max-width:100%; margin:40px auto 0;
  background:var(--beige); border:1px solid var(--border);
  border-radius:16px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.07);
}
@media (max-width:768px){ .cs-calc{ width:100%; padding:16px; } }

.cs-calc-display{
  background:var(--green-deep); border-radius:8px; padding:16px; text-align:right;
  overflow:hidden;
}
.cs-calc-expr{
  font-family:var(--f-mono); font-size:16px; color:var(--cream); opacity:.75;
  min-height:22px; word-break:break-all;
}
.cs-calc-result{
  font-family:var(--f-mono); font-size:36px; font-weight:500; color:var(--cream);
  line-height:1.2; word-break:break-all;
}
@media (max-width:400px){ .cs-calc-result{ font-size:30px; } }

.cs-calc-modes{ display:flex; gap:8px; margin-top:16px; }
.cs-mode{
  flex:1; min-height:48px; border-radius:8px; border:1.5px solid var(--green);
  background:transparent; color:var(--green); cursor:pointer;
  font-family:var(--f-body); font-size:13px; font-weight:600;
  transition:all 150ms ease-out;
}
.cs-mode.on{ background:var(--green); color:#fff; }

.cs-sci{ max-height:0; overflow:hidden; transition:max-height 200ms ease-out; }
.cs-sci.open{ max-height:400px; }

.cs-keys{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:12px; }
.cs-keys.sci{ grid-template-columns:repeat(6,minmax(0,1fr)); }

.cs-key{
  min-height:48px; border-radius:8px; border:0; cursor:pointer;
  font-family:var(--f-mono); font-size:16px;
  background:var(--cream); color:var(--ink);
  transition:filter 120ms ease-out, background 120ms ease-out;
}
.cs-key:hover{ filter:brightness(.96); }
.cs-key.op{ background:var(--green); color:#fff; }
.cs-key.op:hover{ background:var(--green-mid); }
.cs-key.fn{ background:var(--beige-dark); color:var(--green); font-size:13px; }
.cs-key.util{ background:var(--beige-dark); color:var(--ink); font-size:14px; }
.cs-key.eq{ background:var(--gold); color:#fff; }
.cs-key.eq:hover{ background:var(--gold-dark); }
.cs-key.wide{ grid-column:span 2; }
.cs-key.on{ background:var(--green); color:#fff; }
@media (max-width:400px){ .cs-keys.sci{ gap:5px; } .cs-keys.sci .cs-key.fn{ font-size:12px; } }

/* ------------------------------------------------------------- tool grid - */

.cs-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin-top:40px; }
@media (max-width:900px){ .cs-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px){ .cs-grid{ grid-template-columns:1fr; } }

.cs-card{
  position:relative; min-width:0; display:flex; flex-direction:column; justify-content:space-between;
  aspect-ratio:1/1; background:var(--beige); border:1px solid var(--border);
  border-radius:16px; padding:16px; text-align:center;
  box-shadow:0 2px 12px rgba(0,0,0,.07);
  transition:transform 180ms ease-out, box-shadow 180ms ease-out;
}
.cs-card:hover{ transform:translateY(-3px); box-shadow:0 8px 24px rgba(45,106,79,.14); }
@media (max-width:520px){ .cs-card{ aspect-ratio:auto; padding:12px; } }

.cs-card-tag{
  position:absolute; top:12px; left:12px;
  background:var(--green); color:#fff; border-radius:20px;
  font-family:var(--f-body); font-size:9px; font-weight:700; padding:4px 10px;
  letter-spacing:.03em;
}
.cs-card-top{ margin-top:20px; min-width:0; }
.cs-card-icon{ width:32px; height:32px; color:var(--green); margin:0 auto; }
.cs-card-name{ font-family:var(--f-display); font-weight:700; font-size:16px; color:var(--ink); margin-top:12px; }
.cs-card-desc{
  font-family:var(--f-body); font-size:12px; color:var(--grey); margin-top:6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cs-card-btn{
  display:block; width:100%; margin-top:auto; padding:10px 8px; border-radius:8px;
  background:var(--green); color:#fff; text-decoration:none;
  font-family:var(--f-body); font-size:13px; font-weight:500;
  transition:background 150ms ease-out;
}
.cs-card-btn:hover{ background:var(--green-mid); }
@media (max-width:520px){ .cs-card-btn{ margin-top:16px; min-height:48px; line-height:28px; } }

.cs-more-rows{ max-height:0; overflow:hidden; transition:max-height 600ms ease-out; }
.cs-more-rows.open{ max-height:none; }
.cs-more-wrap{ text-align:center; margin-top:24px; }
.cs-more-arrow{ transition:transform 300ms ease-in-out; }
.cs-more-arrow.up{ transform:rotate(180deg); }

@keyframes csSlideInUp{ from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:translateY(0); } }
.cs-more-rows.open .cs-card{ animation:csSlideInUp 320ms ease-out both; }

/* ------------------------------------------------------ why choose ------- */

.cs-why{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px 60px; margin-top:40px; }
@media (max-width:768px){ .cs-why{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px 60px; margin-top:40px; } }
.cs-why-block .stripe{ width:24px; height:2px; background:var(--gold); margin:0 auto 12px auto; }
.cs-why-block .ico{ width:28px; height:28px; color:var(--green); }
.cs-why-block h3{ font-family:var(--f-display); font-weight:700; font-size:18px; color:var(--ink); margin-top:10px; }
.cs-why-block p{ font-family:var(--f-body); font-size:14px; color:var(--grey); margin:8px auto 0; max-width:320px; }

/* ------------------------------------------------- content + read more --- */

.cs-content{ position:relative; margin-top:32px; }
.cs-content h2{ font-family:var(--f-display); font-weight:700; font-size:22px; color:var(--green); margin-top:32px; }
.cs-content h2:first-child{ margin-top:0; }
.cs-content p{ font-family:var(--f-body); font-size:15px; line-height:1.7; color:var(--ink); margin-top:12px; }
.cs-content a{ color:var(--green); font-weight:600; text-decoration:underline; text-underline-offset:.18em; }

.cs-content-hidden{ max-height:0; overflow:hidden; transition:max-height 400ms ease-out; }
.cs-content-hidden.open{ max-height:none; }

.cs-visible-wrap{ position:relative; }
.cs-fade{
  position:absolute; bottom:0; left:0; right:0; height:80px; pointer-events:none;
  background:linear-gradient(transparent,var(--cream));
  transition:opacity 300ms ease-out;
}
.cs-fade.hidden{ opacity:0; }

/* ---------------------------------------------------------- suggestions -- */

.cs-form-card{
  width:560px; max-width:100%; margin:32px auto 0;
  background:var(--white); border-radius:16px; border-top:2px solid var(--gold);
  box-shadow:0 4px 20px rgba(0,0,0,.08); padding:32px;
}
@media (max-width:768px){ .cs-form-card{ width:90%; padding:24px; } }
.cs-field{ margin-top:20px; }
.cs-field:first-child{ margin-top:0; }
.cs-field label{ display:block; font-family:var(--f-body); font-size:13px; font-weight:700; color:var(--green); margin-bottom:8px; }
.cs-field input,.cs-field textarea{
  width:100%; border:1px solid var(--border); border-radius:8px;
  font-family:var(--f-body); font-size:14px; color:var(--ink); background:var(--white);
  padding:12px 14px; outline:none; transition:border-color 150ms, box-shadow 150ms;
}
.cs-field input{ height:48px; }
.cs-field textarea{ min-height:96px; resize:vertical; }
.cs-field input:focus,.cs-field textarea:focus{ border-color:var(--green); box-shadow:0 0 0 4px rgba(45,106,79,.12); }
.cs-submit{ width:100%; height:52px; margin-top:24px; }
.cs-form-msg{ margin-top:14px; font-family:var(--f-body); font-size:13px; color:var(--grey); }
.cs-form-msg.err{ color:#A4453A; }

.cs-success{ display:none; text-align:center; }
.cs-success.on{ display:block; }
.cs-success .tick{ width:32px; height:32px; color:var(--gold); margin:0 auto; }
.cs-success p{ font-family:var(--f-display); font-weight:700; font-size:18px; color:var(--green); margin-top:12px; }
.cs-fields.gone{ display:none; }

.cs-proof{ text-align:center; margin-top:20px; font-family:var(--f-body); font-size:13px; color:var(--grey); }

/* ------------------------------------------------------ category counts -- */

.cs-counts{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin-top:40px; }
@media (max-width:900px){ .cs-counts{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
@media (max-width:520px){ .cs-counts{ grid-template-columns:1fr; } }






/* --------------------------------------------------------------- footer -- */

.cs-footer{ background:var(--green); color:#fff; padding-top:56px; margin-top:var(--section-pad); }
.cs-footer-cols{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:40px; padding-bottom:40px; }
@media (max-width:900px){ .cs-footer-cols{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
@media (max-width:560px){ .cs-footer-cols{ grid-template-columns:1fr; gap:32px; } }

.cs-footer-brand{ font-family:var(--f-display); font-weight:700; font-size:20px; color:#fff; text-decoration:none; display:inline-block; }
.cs-footer-brand .dot{ color:var(--gold); }
.cs-footer-desc{ font-family:var(--f-body); font-size:13px; color:rgba(250,248,243,.7); margin-top:16px; }
.cs-footer-social{ display:flex; gap:8px; margin-top:16px; }
.cs-footer-social a{ color:#fff; display:grid; place-items:center; width:32px; height:32px; transition:color 150ms; }
.cs-footer-social a:hover{ color:var(--gold); }

.cs-footer-head{
  font-family:var(--f-body); font-size:11px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--gold);
}
.cs-footer-links{ list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.cs-footer-links a{
  font-family:var(--f-body); font-size:13px; color:rgba(250,248,243,.8);
  text-decoration:none; transition:color 100ms;
}
.cs-footer-links a:hover{ color:#fff; text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:3px; }

.cs-footer-bar{ background:var(--green-deep); border-top:1px solid rgba(255,255,255,.15); }
.cs-footer-bar-inner{
  display:flex; justify-content:space-between; gap:12px; padding:16px 0;
  font-family:var(--f-body); font-size:12px; color:rgba(250,248,243,.6);
}
@media (max-width:768px){ .cs-footer-bar-inner{ flex-direction:column; text-align:center; } }

/* -------------------------------------------------- inner-page niceties -- */

.cs-inner-head{ padding-top:40px; }
.cs-inner-head .crumb{ font-family:var(--f-body); font-size:13px; font-weight:600; color:var(--grey); }
.cs-inner-head .crumb a{ color:var(--green); text-decoration:none; }
.cs-inner-head .crumb a:hover{ text-decoration:underline; }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------------------------------------------------------- category tabs - */

.cs-tabs{
  position:relative; display:flex; flex-wrap:wrap; justify-content:center; gap:4px;
  margin-top:28px; border-bottom:1px solid var(--border);
}
.cs-tab{
  background:transparent; border:0; cursor:pointer;
  font-family:var(--f-body); font-size:14px; font-weight:600; color:var(--grey);
  padding:12px 16px; min-height:48px; transition:color 150ms ease-out;
}
.cs-tab:hover{ color:var(--green); }
.cs-tab.on{ color:var(--green); }
.cs-tab-underline{
  position:absolute; bottom:-1px; left:0; height:2px; width:0;
  background:var(--green); transition:transform 200ms ease-in-out, width 200ms ease-in-out;
}
.cs-card.filtered{ display:none; }

/* ------------------------------------------------- mobile type floor ------ */
/* The brief specifies 9px card tags and 12px descriptions (Point 02/06) but
   also states "font size never below 14px on mobile" (Mobile-First Rules).
   On mobile the readability rule wins for anything carrying content; the two
   uppercase micro-badges stay smaller so the square cards still hold together. */
@media (max-width:768px){
  .cs-card-desc,
  .cs-card-btn,
  .cs-chip,
  .cs-result .nm,
  .cs-count .lbl,
  .cs-why-block p,
  .cs-footer-desc,
  .cs-footer-links a,
  .cs-footer-bar-inner,
  .cs-form-msg,
  .cs-proof,
  .cs-field label,
  .cs-field input,
  .cs-field textarea,
  .cs-content p,
  .cs-sub{ font-size:14px; }

  .cs-card-tag,
  .cs-panel-label,
  .cs-result .cat,
  .cs-footer-head{ font-size:11px; }

  .cs-card-name{ font-size:17px; }

  /* brief: scientific calculator button font 14px on mobile */
  .cs-key,.cs-key.fn,.cs-key.util,.cs-mode{ font-size:14px; }
}

/* ------------------------------------------------- point 07 calc focus --- */
.cs-calc{ transition:box-shadow 200ms ease, outline 200ms ease; }
.cs-calc.is-focused{
  outline:2px solid var(--gold);
  box-shadow:0 8px 32px rgba(232,180,0,.20);
}
.cs-calc-hint{
  text-align:center; font-size:12px; color:var(--grey);
  margin-top:8px; transition:opacity 400ms ease;
}

/* ------------------------------------------------ point 03 why centred --- */
.why-section{ max-width:900px; margin:0 auto; text-align:center; }
.why-section h2,.why-section .cs-sub{ text-align:center; }
.cs-why-block{ display:flex; flex-direction:column; align-items:center; text-align:center; }
@media (max-width:640px){ .cs-why{ grid-template-columns:1fr; gap:40px; } }

/* ------------------------------- point 09 counter cards — LOCKED SPEC ---- */
/* Habib locked these values. Do not change any of them. */
.cs-count{
  background:#1B4332;                 /* Dark Forest Green — LOCKED */
  border:none; border-radius:16px; padding:32px 24px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  transition:transform 180ms ease, box-shadow 180ms ease;
}
.cs-count:hover{ transform:translateY(-3px); box-shadow:0 12px 32px rgba(27,67,50,.25); }
.cs-count .ico{ color:#E8B400; width:28px; height:28px; margin-bottom:12px; }
.cs-count .num{
  font-family:"Playfair Display",Georgia,serif; font-size:52px; font-weight:700;
  color:#E8B400; line-height:1; margin-bottom:6px;
}
.cs-count .stripe{ width:24px; height:2px; background:#E8B400; margin:0 auto 10px auto; }
.cs-count .lbl{
  font-family:"Inter",sans-serif; font-size:14px; font-weight:600;
  color:#FFFFFF; letter-spacing:.3px;
}

/* --------------------------------------- point 08 extended gold usage ---- */
/* Finance category card icons only */
.cs-card[data-cat="finance"] .cs-card-icon{ color:#E8B400; }

/* Links inside the article content section */
.cs-content a{
  color:#E8B400;
  text-decoration-line:underline;
  text-decoration-color:rgba(232,180,0,.4);
  text-underline-offset:3px;
  font-weight:500;
}
.cs-content a:hover{ color:#C9963F; }

/* Active category tab gets a gold underline */
.cs-tab-underline{ background:#E8B400; }
.cs-tab.on{ color:var(--green); }

/* Section H2 gold accent line */
.cs-h2::after{
  content:""; display:block; width:40px; height:3px;
  background:#E8B400; margin:10px auto 0 auto;
}
