/* ═══════════════════════════════════════════════════
   CalStack — main.css
   Single stylesheet for all pages.
   https://calstack.pro
   Updated: 2025
═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
:root {
  --cream:   #F5EFE8;
  --cream2:  #EDE4D8;
  --cream3:  #FDECD8;
  --brown:   #2A1F1A;
  --brown2:  #5C4A3A;
  --brown3:  #9C7E6A;
  --terra:   #C4603A;
  --terra2:  #A04828;
  --terra3:  #F5D8C0;
  --border:  #DFD0C0;
  --white:   #FFFDF9;
  --green:   #15803D;
  --gl:      #F0FDF4;
  --gb:      #86EFAC;
  --amber:   #D97706;
  --red:     #DC2626;
  --blue:    #1D4ED8;
  --sand:    #E8DDD2;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--sand);
  color: var(--brown);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
* { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terra) !important;
  box-shadow: 0 0 0 3px rgba(196, 96, 58, 0.1);
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }
button { cursor: pointer; }
.serif { font-family: 'Playfair Display', Georgia, serif; }
.mono  { font-family: 'DM Mono', 'Courier New', monospace; }

/* ─────────────────────────────────────────
   PAGE SHELL
───────────────────────────────────────── */
.page-wrapper {
  max-width: 1112px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}
.page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: visible; /* NEVER hidden — clips search dropdown */
  box-shadow: 0 2px 24px rgba(42, 31, 26, 0.07);
  position: relative;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.nav {
  background: var(--brown);
  border-radius: 14px 14px 0 0; /* matches card exactly */
  padding: 0 28px;
  height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 100;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0; text-decoration: none;
}
.logo-mark {
  width: 26px; height: 26px;
  background: var(--terra);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.logo-name {
  color: #FAF6F1; font-weight: 700; font-size: 15px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.nav-search { display: flex; justify-content: center; align-items: center; }
.sw { position: relative; width: 100%; max-width: 400px; }
.s-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: 0.45; }
.s-in {
  width: 100%; padding: 8px 12px 8px 33px;
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  color: #FAF6F1; background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px; outline: none;
  transition: all 0.2s; caret-color: var(--terra);
}
.s-in::placeholder { color: var(--brown3); }
.s-in:focus { background: rgba(255,255,255,0.13); border-color: rgba(196,96,58,0.6); box-shadow: none; }
.sdrop {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0;
  background: #1E1510; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; display: none; z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35); overflow: hidden;
}
.sdrop.open { display: block; }
.sd-sec { padding: 8px 0 4px; }
.sd-lbl { font-size: 10px; font-weight: 700; color: var(--brown3); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 14px 6px; display: block; }
.sd-item { display: flex; align-items: center; gap: 9px; padding: 7px 14px; cursor: pointer; transition: background 0.1s; }
.sd-item:hover { background: rgba(255,255,255,0.06); }
.sd-em { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }
.sd-name { font-size: 12px; color: #FAF6F1; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-cat { font-size: 10px; color: var(--brown3); flex-shrink: 0; margin-left: 8px; }
.sd-div { height: 1px; background: rgba(255,255,255,0.06); margin: 2px 0; }
.sd-foot { padding: 9px 14px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 5px; }
.sd-foot p { font-size: 10px; color: var(--brown3); }
.sd-foot kbd { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--brown3); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 1px 5px; }
.nav-btns { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.btn-ghost { padding: 6px 14px; background: transparent; border: 1px solid #4A3828; color: var(--brown3); border-radius: 7px; font-size: 12px; font-weight: 500; font-family: 'DM Sans', sans-serif; transition: all 0.15s; white-space: nowrap; }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }
.btn-prim { padding: 6px 14px; background: var(--terra); border: none; color: #fff; border-radius: 7px; font-size: 12px; font-weight: 700; font-family: 'DM Sans', sans-serif; transition: all 0.15s; white-space: nowrap; }
.btn-prim:hover { background: var(--terra2); }
.nav-mob-btn { display: none; width: 32px; height: 32px; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 7px; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-mob-btn:hover { background: rgba(255,255,255,0.14); }
.mob-search-bar { display: none; background: #1E1510; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mob-search-bar.open { display: block; }
.mob-search-inner { position: relative; }
.mob-search-inner .s-ico { pointer-events: none; }
.mob-search-inner input { width: 100%; padding: 10px 12px 10px 34px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: #FAF6F1; background: rgba(255,255,255,0.09); border: 1.5px solid rgba(255,255,255,0.15); border-radius: 9px; outline: none; caret-color: var(--terra); }
.mob-search-inner input::placeholder { color: var(--brown3); }

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.crumb { background: var(--cream2); border-bottom: 1px solid var(--border); padding: 9px 28px; font-size: 12px; color: var(--brown3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb span { cursor: pointer; }
.crumb span:hover { color: var(--terra); }

/* ─────────────────────────────────────────
   CONTENT AREA
───────────────────────────────────────── */
.content { padding: 40px 40px 56px; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-terra { padding: 10px 20px; background: var(--terra); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.btn-terra:hover { background: var(--terra2); }
.btn-outline { padding: 10px 20px; background: transparent; color: var(--brown2); border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.btn-outline:hover { border-color: var(--terra); color: var(--terra); }

/* ─────────────────────────────────────────
   TAGS / BADGES
───────────────────────────────────────── */
.tag { background: var(--cream3); color: var(--terra); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.07em; text-transform: uppercase; }
.calc-badge { position: absolute; top: 11px; right: 11px; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.b-pop { background: var(--cream3); color: var(--terra2); }
.b-new { background: #EFF6FF; color: var(--blue); }
.b-ess { background: var(--gl); color: var(--green); }

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.sec-hdr { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.sec-hdr-left h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--brown); letter-spacing: -0.01em; margin-bottom: 3px; }
.sec-hdr-left p { font-size: 13px; color: var(--brown3); }
.sec-see-all { font-size: 12px; color: var(--terra); font-weight: 600; text-decoration: none; white-space: nowrap; margin-bottom: 2px; }
.sec-see-all:hover { text-decoration: underline; }
.dv { height: 1px; background: var(--border); margin: 40px 0; }

/* ─────────────────────────────────────────
   CALCULATOR CARDS (grid cards)
───────────────────────────────────────── */
.calcs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.calc-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 11px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; transition: all 0.15s; position: relative; }
.calc-card:hover { border-color: var(--terra); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(196,96,58,0.09); }
.cc-em { font-size: 22px; display: block; margin-bottom: 8px; line-height: 1; }
.cc-name { font-size: 13px; font-weight: 700; color: var(--brown); margin-bottom: 4px; line-height: 1.3; padding-right: 36px; }
.cc-desc { font-size: 11px; color: var(--brown3); line-height: 1.5; flex: 1; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); }
.cc-meta { font-size: 10px; color: var(--brown3); font-family: 'DM Mono', monospace; }
.cc-arr { font-size: 12px; color: var(--terra); opacity: 0; transition: opacity 0.15s; }
.calc-card:hover .cc-arr { opacity: 1; }

/* ─────────────────────────────────────────
   CATEGORY CARDS
───────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 13px; padding: 22px 18px; text-decoration: none; display: flex; flex-direction: column; transition: all 0.18s; position: relative; overflow: hidden; }
.cat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 13px 13px 0 0; opacity: 0; transition: opacity 0.18s; }
.cat-card:hover { transform: translateY(-2px); border-color: transparent; }
.cat-card:hover::after { opacity: 1; }
.cat-restaurant::after  { background: #C4603A; } .cat-restaurant:hover  { box-shadow: 0 6px 20px rgba(196,96,58,0.12); }
.cat-construction::after{ background: #5B8A5F; } .cat-construction:hover{ box-shadow: 0 6px 20px rgba(91,138,95,0.12); }
.cat-freelance::after   { background: #5B7FA6; } .cat-freelance:hover   { box-shadow: 0 6px 20px rgba(91,127,166,0.12); }
.cat-realestate::after  { background: #8A6B5B; } .cat-realestate:hover  { box-shadow: 0 6px 20px rgba(138,107,91,0.12); }
.cat-fitness::after     { background: #7A5B8A; } .cat-fitness:hover     { box-shadow: 0 6px 20px rgba(122,91,138,0.12); }
.cat-finance::after     { background: #8A7A5B; } .cat-finance:hover     { box-shadow: 0 6px 20px rgba(138,122,91,0.12); }
.cat-agriculture::after { background: #5B8A7A; } .cat-agriculture:hover { box-shadow: 0 6px 20px rgba(91,138,122,0.12); }
.cat-healthcare::after  { background: #8A5B6A; } .cat-healthcare:hover  { box-shadow: 0 6px 20px rgba(138,91,106,0.12); }
.cat-em   { font-size: 28px; display: block; margin-bottom: 10px; line-height: 1; }
.cat-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 4px; }
.cat-desc { font-size: 12px; color: var(--brown3); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.cat-count { font-size: 11px; font-weight: 700; color: var(--brown3); font-family: 'DM Mono', monospace; background: var(--cream2); padding: 2px 8px; border-radius: 10px; }
.cat-arr { font-size: 13px; color: var(--terra); opacity: 0; transition: opacity 0.18s; }
.cat-card:hover .cat-arr { opacity: 1; }

/* ─────────────────────────────────────────
   TRENDING CARDS
───────────────────────────────────────── */
.trending-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trending-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; transition: all 0.18s; position: relative; }
.trending-card:hover { border-color: var(--terra); box-shadow: 0 4px 16px rgba(196,96,58,0.1); transform: translateY(-1px); }
.trending-badge { position: absolute; top: 14px; right: 14px; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.tb-hot { background: var(--cream3); color: var(--terra2); }
.tb-new { background: #EFF6FF; color: var(--blue); }
.tb-top { background: var(--gl); color: var(--green); }
.trending-cat-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: var(--brown3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.trending-cat-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.trending-em { font-size: 24px; display: block; margin-bottom: 9px; line-height: 1; }
.trending-name { font-size: 14px; font-weight: 700; color: var(--brown); margin-bottom: 5px; line-height: 1.3; padding-right: 50px; }
.trending-desc { font-size: 12px; color: var(--brown3); line-height: 1.5; flex: 1; }
.trending-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); }
.trending-meta { font-size: 10px; color: var(--brown3); font-family: 'DM Mono', monospace; }
.trending-arr { font-size: 13px; color: var(--terra); opacity: 0; transition: opacity 0.15s; }
.trending-card:hover .trending-arr { opacity: 1; }

/* ─────────────────────────────────────────
   HEADER META ROW (calculator page)
───────────────────────────────────────── */
.hdr-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.mdiv { width: 1px; height: 12px; background: var(--border); flex-shrink: 0; }
.mi { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mico { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.5; }
.mlbl { font-size: 10px; font-weight: 700; color: var(--brown3); letter-spacing: 0.05em; text-transform: uppercase; }
.mval { font-size: 12px; color: var(--brown3); }
.mval a { color: var(--terra); text-decoration: none; font-weight: 600; }
.mval a:hover { text-decoration: underline; }
.meta-hide-mob { }
.updated-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--gl); border: 1px solid var(--gb); color: var(--green); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* ─────────────────────────────────────────
   PAGE TITLE
───────────────────────────────────────── */
h1.page-h1 { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.8vw, 40px); font-weight: 800; color: var(--brown); line-height: 1.12; margin-bottom: 14px; letter-spacing: -0.02em; }
h1.page-h1 em { color: var(--terra); font-style: normal; }
.page-desc { font-size: 15px; color: var(--brown2); line-height: 1.72; max-width: 640px; margin-bottom: 28px; }

/* ─────────────────────────────────────────
   JUMP CTA
───────────────────────────────────────── */
.jump-cta { display: flex; align-items: stretch; margin-bottom: 28px; border: 1.5px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--cream); }
.jump-accent { width: 4px; background: var(--terra); flex-shrink: 0; }
.jump-body { display: flex; align-items: center; gap: 20px; padding: 14px 18px; flex: 1; }
.jump-txt { flex: 1; font-size: 13px; color: var(--brown2); line-height: 1.5; }
.jump-txt strong { color: var(--brown); }
.jump-btn { padding: 9px 18px; background: var(--terra); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; }
.jump-btn:hover { background: var(--terra2); }

/* ─────────────────────────────────────────
   TABLE OF CONTENTS
───────────────────────────────────────── */
.toc-wrap { margin-bottom: 28px; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.toc-hdr { display: flex; align-items: center; justify-content: space-between; padding: 11px 17px; cursor: pointer; background: var(--cream); user-select: none; transition: background 0.15s; }
.toc-hdr:hover { background: var(--cream2); }
.toc-hl { display: flex; align-items: center; gap: 9px; overflow: hidden; }
.toc-ico { width: 18px; height: 18px; border-radius: 5px; background: var(--terra); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toc-ttl { font-size: 11px; font-weight: 700; color: var(--brown2); letter-spacing: 0.08em; text-transform: uppercase; flex-shrink: 0; }
.toc-hnt { font-size: 11px; color: var(--brown3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-chv { width: 14px; height: 14px; transition: transform 0.22s; color: var(--brown3); flex-shrink: 0; }
.toc-chv.open { transform: rotate(180deg); }
.toc-body { display: none; padding: 4px 0 14px; background: var(--white); }
.toc-body.open { display: block; }
.toc-list { list-style: none; padding: 0 17px; columns: 2; column-gap: 0; }
.toc-list li { break-inside: avoid; display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--cream2); }
.toc-list li:last-child { border-bottom: none; }
.toc-num { font-size: 10px; font-weight: 700; color: var(--terra); font-family: 'DM Mono', monospace; min-width: 18px; flex-shrink: 0; }
.toc-list a { font-size: 13px; color: var(--brown2); text-decoration: none; font-weight: 500; }
.toc-list a:hover { color: var(--terra); }

/* ─────────────────────────────────────────
   CALCULATOR GRID LAYOUT
───────────────────────────────────────── */
.cg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.ic { background: var(--cream); border: 1px solid var(--border); border-radius: 13px; padding: 24px; }
.fg { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.fg:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.flbl { display: block; font-size: 11px; font-weight: 700; color: var(--brown3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.frel { position: relative; }
.fpfx { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--brown3); font-size: 14px; font-family: 'DM Mono', monospace; pointer-events: none; }
.fin { width: 100%; padding: 10px 11px 10px 24px; font-size: 15px; font-family: 'DM Mono', monospace; color: var(--brown); background: var(--white); border: 1.5px solid var(--border); border-radius: 9px; transition: border-color 0.2s; }
.fhnt { font-size: 11px; color: var(--brown3); margin-top: 5px; }
.fsel { width: 100%; padding: 10px 32px 10px 12px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--brown); background: var(--white); border: 1.5px solid var(--border); border-radius: 9px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239C7E6A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; transition: border-color 0.2s; }
.seg { display: flex; gap: 5px; margin-top: 8px; }
.sb { flex: 1; padding: 8px 4px; font-size: 11px; font-weight: 700; font-family: 'DM Sans', sans-serif; border-radius: 7px; border: 1.5px solid var(--border); background: var(--white); color: var(--brown3); cursor: pointer; transition: all 0.15s; }
.sb.on { border-color: var(--terra); background: var(--cream3); color: var(--terra); }
.mw { display: flex; background: var(--cream2); border-radius: 8px; padding: 3px; gap: 2px; margin-top: 8px; }
.mb { flex: 1; padding: 7px 4px; font-size: 11px; font-weight: 700; font-family: 'DM Sans', sans-serif; border-radius: 6px; border: none; background: transparent; color: var(--brown3); cursor: pointer; transition: all 0.15s; }
.mb.on { background: var(--white); color: var(--terra); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.cat-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 7px; transition: background 0.1s; margin-bottom: 3px; }
.cat-row:hover { background: var(--cream2); }
.cat-em { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.cat-lbl { flex: 1; font-size: 13px; color: var(--brown2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-iw { position: relative; width: 100px; flex-shrink: 0; }
.cat-pfx { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--brown3); font-size: 12px; font-family: 'DM Mono', monospace; pointer-events: none; }
.cat-in { width: 100%; padding: 6px 6px 6px 18px; font-size: 12px; font-family: 'DM Mono', monospace; color: var(--brown); background: var(--white); border: 1.5px solid var(--border); border-radius: 7px; transition: border-color 0.2s; }
.cat-total { display: flex; justify-content: space-between; padding: 8px 6px 0; border-top: 1px dashed var(--border); margin-top: 5px; }
.tip-box { background: var(--gl); border: 1px solid var(--gb); border-radius: 8px; padding: 10px 13px; margin-top: 14px; }
.tip-box p { font-size: 12px; font-weight: 600; color: var(--green); }

/* ─────────────────────────────────────────
   RESULT CARD
───────────────────────────────────────── */
.rs { display: flex; flex-direction: column; gap: 14px; }
.res-main { background: var(--brown); border-radius: 13px; padding: 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.res-empty { text-align: center; padding: 12px; }
.res-ei { width: 44px; height: 44px; background: #3D2E26; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 19px; }
.res-et { color: var(--brown3); font-size: 13px; font-weight: 500; }
.res-lbl { color: var(--brown3); font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 3px; }
.res-pct { font-family: 'Playfair Display', serif; font-size: clamp(44px, 9vw, 66px); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.sbadge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.g-track { height: 8px; background: #3D2E26; border-radius: 4px; overflow: visible; position: relative; margin: 14px 0 5px; }
.g-fill { height: 100%; border-radius: 4px; transition: width 0.65s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; }
.g-dot { position: absolute; right: -1px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); }
.g-lbl { display: flex; justify-content: space-between; font-size: 9px; color: var(--brown3); letter-spacing: 0.03em; }
.mini-row { display: flex; gap: 7px; margin-top: 14px; }
.mini { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 11px; flex: 1; }
.mini-lbl { color: var(--brown3); font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.mini-val { color: #FAF6F1; font-size: 17px; font-weight: 700; font-family: 'DM Mono', monospace; }
.mini-sub { color: var(--brown3); font-size: 9px; margin-top: 1px; }
.share-row { display: flex; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap; }
.share-btn { display: flex; align-items: center; gap: 5px; padding: 6px 11px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 7px; color: #FAF6F1; font-size: 11px; font-weight: 600; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.share-btn:hover { background: rgba(255,255,255,0.12); }
.share-msg { font-size: 11px; color: var(--green); align-self: center; display: none; }
.profit-card { background: var(--gl); border: 1px solid var(--gb); border-radius: 12px; padding: 18px; }
.profit-lbl { font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.profit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profit-val { font-family: 'DM Mono', monospace; font-size: 20px; font-weight: 700; color: var(--green); }
.break-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.break-lbl { font-size: 10px; font-weight: 700; color: var(--brown3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.b-row { margin-bottom: 8px; }
.b-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; gap: 8px; }
.b-track { height: 4px; background: var(--cream2); border-radius: 2px; overflow: hidden; }
.b-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }

/* ─────────────────────────────────────────
   EMAIL CAPTURE & PREMIUM
───────────────────────────────────────── */
.email-card { background: var(--white); border: 2px solid var(--terra); border-radius: 12px; padding: 18px; animation: slideUp 0.35s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.email-row { display: flex; gap: 7px; margin-top: 12px; }
.email-in { flex: 1; padding: 9px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--brown); background: var(--cream); border: 1.5px solid var(--border); border-radius: 8px; transition: border-color 0.2s; outline: none; }
.btn-send { padding: 9px 14px; background: var(--terra); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 700; font-family: 'DM Sans', sans-serif; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; }
.btn-send:hover { background: var(--terra2); }
.prem-card { background: linear-gradient(135deg, #2A1F1A 0%, #3D2418 100%); border-radius: 12px; padding: 20px; border: 2px solid var(--terra); }
.prem-tag { font-size: 10px; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 5px; }
.prem-h { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.prem-p { font-size: 11px; color: var(--brown3); line-height: 1.6; margin-bottom: 10px; }
.prem-proof { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.prem-proof-dots { display: flex; }
.prem-proof-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.15); background: var(--terra2); display: flex; align-items: center; justify-content: center; font-size: 8px; color: rgba(255,255,255,0.7); font-weight: 700; margin-left: -6px; }
.prem-proof-dot:first-child { margin-left: 0; }
.prem-proof-txt { font-size: 11px; color: var(--brown3); }
.prem-proof-txt strong { color: #C8A898; }
.prem-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-upgrade { padding: 10px 18px; background: var(--terra); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.btn-upgrade:hover { background: var(--terra2); }

/* ─────────────────────────────────────────
   AFFILIATE CARDS
───────────────────────────────────────── */
.aff-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.aff-lbl { font-size: 10px; color: var(--brown3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 10px; }
.aff-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; background: var(--cream); border-radius: 9px; cursor: pointer; margin-bottom: 6px; transition: background 0.15s; text-decoration: none; }
.aff-item:last-child { margin-bottom: 0; }
.aff-item:hover { background: var(--cream2); }
.aff-ico { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.aff-info { flex: 1; overflow: hidden; }
.aff-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.aff-name { font-size: 12px; font-weight: 700; color: var(--brown); }
.aff-desc { font-size: 11px; color: var(--brown3); line-height: 1.4; margin-top: 2px; }
.aff-badge { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.aff-arr { font-size: 12px; color: var(--terra); flex-shrink: 0; margin-top: 2px; }

/* ─────────────────────────────────────────
   RELATED CALCULATORS (sidebar list style)
───────────────────────────────────────── */
.rel-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.rel-sidebar-hdr { background: var(--cream2); padding: 10px 15px; border-bottom: 1px solid var(--border); }
.rel-sidebar-ttl { font-size: 11px; font-weight: 700; color: var(--brown2); text-transform: uppercase; letter-spacing: 0.07em; }
.rel-sidebar-item { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-bottom: 1px solid var(--cream2); text-decoration: none; transition: background 0.1s; }
.rel-sidebar-item:last-child { border-bottom: none; }
.rel-sidebar-item:hover { background: var(--cream); }
.rel-sidebar-em { font-size: 14px; flex-shrink: 0; }
.rel-sidebar-name { font-size: 12px; color: var(--brown2); font-weight: 500; line-height: 1.3; flex: 1; }
.rel-sidebar-arr { font-size: 11px; color: var(--terra); flex-shrink: 0; }

/* ─────────────────────────────────────────
   ARTICLE
───────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 40px; align-items: start; }
.art h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--brown); margin: 40px 0 12px; letter-spacing: -0.01em; }
.art h2:first-child { margin-top: 0; }
.art h3 { font-size: 15px; font-weight: 700; color: var(--brown); margin: 24px 0 8px; }
.art p, .art .lead { font-size: 15px; color: var(--brown2); line-height: 1.78; margin-bottom: 12px; }
.art .lead { font-size: 16px; }
.art ul, .art ol { padding-left: 20px; margin-bottom: 14px; }
.art li { font-size: 15px; color: var(--brown2); line-height: 1.72; margin-bottom: 6px; }
.art a.il { color: var(--terra); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--terra3); }
.art a.il:hover { border-bottom-color: var(--terra); }
.formula-box { background: var(--cream3); border: 1px solid var(--terra3); border-radius: 10px; padding: 14px 18px; margin: 12px 0 18px; }
.formula-lbl { font-size: 10px; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.formula-txt { font-family: 'DM Mono', monospace; font-size: 14px; color: var(--brown); word-break: break-word; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 20px; border: 1px solid var(--border); border-radius: 10px; }
.bench-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.bench-tbl caption { font-size: 11px; color: var(--brown3); text-align: left; padding: 8px 10px 6px; font-style: italic; background: var(--cream); border-bottom: 1px solid var(--border); display: block; }
.bench-tbl th { padding: 9px 10px; text-align: left; background: var(--cream2); font-weight: 700; color: var(--brown2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.bench-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--brown2); }
.bench-tbl tr:last-child td { border-bottom: none; }
.bench-tbl tr:nth-child(even) td { background: var(--cream); }
.good { color: #16A34A; font-weight: 600; }
.warn { color: var(--amber); font-weight: 600; }
.bad  { color: var(--red); font-weight: 600; }
.tip-inline { background: var(--cream2); border-left: 3px solid var(--terra); border-radius: 0 9px 9px 0; padding: 12px 15px; margin: 12px 0; font-size: 14px; color: var(--brown2); line-height: 1.68; }
.tip-inline strong { color: var(--terra); font-weight: 700; }
.faq-section { margin-top: 40px; }
.faq-section h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--brown); margin-bottom: 24px; letter-spacing: -0.01em; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 700; color: var(--brown); margin-bottom: 7px; line-height: 1.4; }
.faq-a { font-size: 14px; color: var(--brown2); line-height: 1.75; }
.refs { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.refs-title { font-size: 11px; font-weight: 700; color: var(--brown3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.ref-item { font-size: 11px; color: var(--brown3); margin-bottom: 5px; padding-left: 15px; position: relative; }
.ref-item::before { content: '↑'; position: absolute; left: 0; color: var(--terra); }

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.kb-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kb-hdr { background: var(--cream2); padding: 11px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.kb-h { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--brown); }
.kb-type { font-size: 11px; color: var(--terra); font-weight: 600; }
.kb-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; border-bottom: 1px solid var(--cream2); gap: 8px; }
.kb-row:last-child { border-bottom: none; }
.kb-label { font-size: 12px; color: var(--brown2); font-weight: 500; }
.kb-value { font-size: 12px; font-weight: 700; font-family: 'DM Mono', monospace; text-align: right; flex-shrink: 0; }

/* ─────────────────────────────────────────
   RELATED POSTS GRID
───────────────────────────────────────── */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.rel-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; transition: all 0.15s; text-decoration: none; display: block; }
.rel-card:hover { border-color: var(--terra); }
.rel-em { font-size: 20px; display: block; margin-bottom: 7px; }
.rel-name { font-size: 13px; font-weight: 700; color: var(--brown); margin-bottom: 2px; line-height: 1.3; }
.rel-desc { font-size: 11px; color: var(--brown3); }
.rp-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; transition: all 0.15s; }
.rp-card:hover { border-color: var(--terra); transform: translateY(-1px); }
.rp-card-cat { font-size: 10px; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.rp-card-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.rp-card-h { font-size: 14px; font-weight: 700; color: var(--brown); line-height: 1.35; margin-bottom: 6px; flex: 1; }
.rp-card-desc { font-size: 12px; color: var(--brown3); line-height: 1.5; margin-bottom: 12px; }
.rp-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.rp-card-meta { font-size: 10px; color: var(--brown3); }
.rp-card-arr { font-size: 12px; color: var(--terra); opacity: 0; transition: opacity 0.15s; }
.rp-card:hover .rp-card-arr { opacity: 1; }

/* ─────────────────────────────────────────
   BLOG POST CARDS
───────────────────────────────────────── */
.post-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: all 0.18s; }
.post-card:hover { border-color: var(--terra); box-shadow: 0 4px 16px rgba(196,96,58,0.09); transform: translateY(-1px); }
.pc-img { height: 120px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pc-img-icon { font-size: 32px; line-height: 1; }
.pc-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.pc-badges { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; flex-wrap: wrap; }
.pc-cat { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 0; }
.pc-type { font-size: 10px; color: var(--brown3); font-weight: 600; padding: 2px 7px; background: var(--cream2); border-radius: 10px; }
.pc-new { font-size: 9px; font-weight: 700; padding: 2px 7px; background: #EFF6FF; color: var(--blue); border-radius: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.pc-h { font-size: 14px; font-weight: 700; color: var(--brown); line-height: 1.35; margin-bottom: 7px; flex: 1; }
.pc-desc { font-size: 12px; color: var(--brown3); line-height: 1.55; margin-bottom: 12px; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto; }
.pc-meta { font-size: 10px; color: var(--brown3); font-family: 'DM Mono', monospace; }
.pc-arr { font-size: 12px; color: var(--terra); opacity: 0; transition: opacity 0.15s; }
.post-card:hover .pc-arr { opacity: 1; }

/* ─────────────────────────────────────────
   FILTER BARS
───────────────────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-lbl { font-size: 11px; font-weight: 700; color: var(--brown3); text-transform: uppercase; letter-spacing: 0.07em; flex-shrink: 0; margin-right: 2px; }
.filter-bar > span { display: contents; } /* make span wrapper transparent to flexbox */
.fb { padding: 6px 13px; background: var(--white); border: 1.5px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--brown3); font-family: 'DM Sans', sans-serif; transition: all 0.15s; white-space: nowrap; }
.fb:hover { border-color: var(--terra); color: var(--terra); }
.fb.on { background: var(--cream3); border-color: var(--terra); color: var(--terra); }
.fb-count { font-size: 10px; font-weight: 700; background: var(--cream2); color: var(--brown3); padding: 1px 5px; border-radius: 10px; margin-left: 4px; font-family: 'DM Mono', monospace; }
.fb.on .fb-count { background: rgba(196,96,58,0.15); color: var(--terra); }

/* ─────────────────────────────────────────
   PAGE STATS BAR (calculators index)
   Desktop: single row. Mobile: 2×2 grid.
───────────────────────────────────────── */
.page-stats-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 20px;
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.page-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px 8px;
  text-align: center;
}
.page-stat-val {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}
.page-stat-lbl {
  font-size: 10px;
  color: var(--brown3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
@media(max-width:640px) {
  .page-stats-bar { flex-wrap: wrap; }
  .page-stat-item {
    flex: 1 1 50%;
    min-width: 50%;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }
  /* Remove right border from even items, bottom border from last 2 */
  .page-stat-item:nth-child(even) { border-right: none !important; }
  .page-stat-item:nth-child(odd)  { border-right: 1px solid var(--border) !important; }
  .page-stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer { background: var(--brown); border-radius: 0 0 14px 14px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 40px 40px 32px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.f-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.f-desc { font-size: 12px; color: #6B5548; line-height: 1.68; max-width: 220px; margin-bottom: 16px; }
.f-soc { display: flex; gap: 7px; }
.f-sb { width: 29px; height: 29px; background: rgba(255,255,255,0.06); border-radius: 7px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; text-decoration: none; }
.f-sb:hover { background: rgba(255,255,255,0.12); }
.f-col-ttl { font-size: 10px; font-weight: 700; color: #4A3828; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 13px; }
.f-links { list-style: none; }
.f-links li { margin-bottom: 9px; }
.f-links a { font-size: 13px; color: #6B5548; text-decoration: none; transition: color 0.15s; display: flex; align-items: center; gap: 6px; }
.f-links a:hover { color: #C8A898; }
.cdot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 40px; flex-wrap: wrap; gap: 8px; }
.f-copy { font-size: 11px; color: #4A3428; }
.f-built { font-size: 11px; color: #4A3428; }
.f-built a { color: #7A5A4A; text-decoration: none; font-weight: 600; }
.f-built a:hover { color: #C8A898; }

/* ─────────────────────────────────────────
   OTHER CATEGORY NAV (sidebar)
───────────────────────────────────────── */
.other-cat-item { display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-bottom: 1px solid var(--cream2); text-decoration: none; transition: background 0.1s; }
.other-cat-item:last-child { border-bottom: none; }
.other-cat-item:hover, .other-cat-item.active { background: var(--cream); }
.other-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.other-cat-name { font-size: 13px; color: var(--brown2); font-weight: 500; flex: 1; }
.other-cat-count { font-size: 10px; color: var(--brown3); font-family: 'DM Mono', monospace; background: var(--cream2); padding: 1px 7px; border-radius: 10px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 36px; padding: 36px 36px 28px; }
  .f-desc { max-width: 100%; }
  .footer-bottom { padding: 12px 36px; }
}
@media (max-width: 880px) {
  .article-grid { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav { grid-template-columns: auto 1fr auto auto; padding: 0 20px; gap: 12px; }
  .nav-search { display: none; }
  .nav-mob-btn { display: flex; }
  .content { padding: 28px 24px 40px; }
  .crumb { padding: 9px 20px; }
  .mdiv { display: none; }
  .mi { background: var(--cream); border-radius: 20px; padding: 3px 9px; gap: 4px; }
  .mico { display: none; }
  .mlbl { display: none; }
  .meta-hide-mob { display: none !important; }
  .jump-body { flex-direction: column; align-items: stretch; gap: 12px; }
  .jump-btn { text-align: center; }
  .cg { grid-template-columns: 1fr; gap: 16px; }
  .toc-list { columns: 1; }
  .rel-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-desc { display: none; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { padding: 28px 24px 20px; gap: 24px 28px; }
  .footer-bottom { padding: 12px 24px; }
}
@media (max-width: 640px) {
  .btn-ghost { display: none; }
  .content { padding: 20px 18px 36px; }
  .crumb { padding: 8px 18px; font-size: 11px; }
  h1.page-h1 { font-size: clamp(22px, 7.5vw, 32px); }
  .page-desc { font-size: 14px; }
  .jump-body { padding: 12px 14px; }
  .jump-txt { font-size: 12px; }
  .jump-btn { font-size: 12px; padding: 9px 16px; }
  .ic { padding: 18px; }
  .fg { margin-bottom: 18px; padding-bottom: 18px; }
  .email-row { flex-direction: column; gap: 8px; }
  .email-in { width: 100%; }
  .btn-send { width: 100%; padding: 11px; text-align: center; }
  .prem-actions { flex-direction: column; align-items: flex-start; }
  .btn-upgrade { width: 100%; text-align: center; }
  .art h2 { font-size: 19px; margin: 28px 0 10px; }
  .art h3 { font-size: 14px; }
  .art p, .art li { font-size: 14px; }
  .art .lead { font-size: 15px; }
  .faq-q { font-size: 14px; }
  .trending-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; padding: 24px 18px 16px; }
  .footer-bottom { padding: 12px 18px; flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 480px) {
  .page-wrapper { padding: 12px 10px 24px; }
  .calcs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .calc-card { padding: 12px; }
  .cc-em { font-size: 18px; }
  .cc-name { font-size: 12px; }
  .cc-desc { display: none; }
  .trending-grid { grid-template-columns: 1fr; }
  .profit-grid { gap: 8px; }
  .profit-val { font-size: 18px; }
  .footer-top { padding: 20px 14px 12px; }
  .footer-bottom { padding: 10px 14px; }
}
@media (max-width: 360px) {
  .logo-name { font-size: 12px; }
  .btn-prim { padding: 5px 10px; font-size: 11px; }
  .nav-mob-btn { width: 28px; height: 28px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .calcs-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   UTILITY
───────────────────────────────────────── */
.hidden { display: none !important; }
.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; }

/* ─────────────────────────────────────────
   BLOG POST — EMAIL CAPTURE SIDEBAR
───────────────────────────────────────── */
.nl-sidebar {
  background: var(--brown);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nl-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--terra3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0;
}
.nl-h {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #FAF6F1;
  line-height: 1.25;
  margin: 0;
}
.nl-p {
  font-size: 12px;
  color: #9C7E6A;
  line-height: 1.6;
  margin: 0 0 4px;
}
.nl-in {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: #FAF6F1;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.nl-in::placeholder { color: #6B5548; }
.nl-in:focus { border-color: var(--terra); }
.nl-btn {
  width: 100%;
  padding: 10px;
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.nl-btn:hover { background: var(--terra2); }
