/*
Theme Name: US Paycheck Calculator
Theme URI: https://uspaycheckcalculator.com/
Author: US Paycheck Calculator
Description: Fast, dependency-free theme for a paycheck/payroll calculator site.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uspc
*/

/* US Paycheck Calculator
   Brand: deep green + radiant lime. Surfaces in mint tint.
   003332 ink · 004D43 deep · D0FF71 lime · 27EAA6 mint-green · EBFFF5 / E0F7F1 tints */

:root {
  --ink: #003332;
  --ink-2: #33514c;
  --muted: #556F6A;
  --deep: #004D43;
  --deep-hover: #00382f;
  --lime: #D0FF71;
  --mint: #27EAA6;
  --violet: #BF93FF;

  --bg: #F4FBF7;
  --surface: #ffffff;
  --surface-2: #EBFFF5;
  --surface-3: #E0F7F1;
  --line: #d7ece3;
  --line-2: #e9f5ef;
  --field: #c6ded5;

  --accent: var(--deep);
  --deduct: #a3453a;

  --panel: #003332;
  --panel-2: #04413a;
  --panel-line: #1a4f47;
  --panel-ink: #d7ece3;
  --panel-muted: #8bada5;
  --net: var(--lime);

  --r: 22px;
  --r-sm: 14px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(0, 51, 50, .05), 0 8px 24px -12px rgba(0, 51, 50, .12);
  --shadow-lift: 0 2px 4px rgba(0, 51, 50, .06), 0 18px 40px -16px rgba(0, 51, 50, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EBFFF5; --ink-2: #c3ded5; --muted: #8bada5;
    --bg: #002322; --surface: #033330; --surface-2: #043c36; --surface-3: #04443c;
    --line: #10514a; --line-2: #0a413b; --field: #176056;
    --accent: var(--lime); --deep: #D0FF71; --deep-hover: #e3ff9c; --deduct: #f0a79a;
    --panel: #001d1c; --panel-2: #04302c; --panel-line: #0d443e;
    --shadow: none; --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .5);
  }
  .btn, a.btn { color: #003332 !important; }
  .hero-cta { color: #003332 !important; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); transition: color .18s var(--ease), border-color .18s var(--ease); }
a:hover { color: var(--deep-hover); border-bottom-color: currentColor; }
a.plain, nav a, footer a, .card, .chip, .tile, .brand, .crumbs a, table a { border-bottom: 0; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 14px; }
h2 { font-size: clamp(25px, 3vw, 33px); margin: 44px 0 12px; }
h3 { font-size: 20px; margin: 22px 0 6px; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
.prose p, .prose li { line-height: 1.68; }
.prose > p, .prose > ul, .prose > ol, .prose > dl { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 7px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.prose { max-width: none; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin: 0 0 18px; max-width: 68ch; line-height: 1.5; }
.freshness { font-size: 14px; color: var(--muted); margin: 0 0 26px; }
.small { font-size: 15px; color: var(--muted); }

/* ---------- entrance animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.reveal { opacity: 0; will-change: opacity, transform; }
.reveal.in { animation: rise .7s var(--ease) both; }
.reveal.in.d1 { animation-delay: .07s; }
.reveal.in.d2 { animation-delay: .14s; }
.reveal.in.d3 { animation-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; animation: none !important; }
  * { transition: none !important; }
}

/* ---------- header ---------- */
.site-header {
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.035em; white-space: nowrap; min-width: 0; }
.brand img { display: block; width: 34px; height: 34px; flex-shrink: 0; transition: transform .35s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b { color: var(--deep); font-weight: 800; }
.brand span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > div { position: relative; }
.nav a, .nav button {
  display: block; padding: 10px 14px; border: 0; background: transparent;
  border-radius: var(--r-pill); color: var(--ink-2); font-weight: 600; font-size: 15.5px;
  font-family: inherit; cursor: pointer; min-height: 44px; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover, .nav button:hover, .nav > div:hover > button { background: var(--surface-2); color: var(--ink); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 262px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lift); padding: 9px; display: none;
  animation: rise .22s var(--ease) both;
}
/* Only the dropdown belonging to the hovered/focused top-level item opens;
   a nested .submenu is shown by its own rule below, not this one, so
   opening "Calculators" does not also fan out every flyout inside it. */
.nav > div:hover > .menu, .nav > div:focus-within > .menu { display: block; }
.menu a, .menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; font-weight: 500; font-size: 15.5px;
  padding: 9px 12px; border-radius: 10px; min-height: 40px;
}
.menu .menu-head { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 9px 12px 3px; font-weight: 700; }

/* A right-caret marks an item inside a dropdown that opens its own flyout
   submenu (e.g. "Paycheck" inside "Calculators") — not the top-level
   buttons themselves, which open a plain dropdown below them. */
.submenu-parent { position: relative; }
.submenu-parent > button::after { content: "\203A"; opacity: .55; font-size: 17px; line-height: 1; }
.menu .submenu {
  top: -9px; left: 100%; margin-left: 6px; min-width: 240px;
}
/* Added by app.js when the flyout would otherwise run off the right edge
   of the screen: opens to the left of its parent instead. */
.menu .submenu.flip { left: auto; right: 100%; margin-left: 0; margin-right: 6px; }
.submenu-parent:hover > .submenu, .submenu-parent:focus-within > .submenu { display: block; }

/* menu-accordion items (opt in per item, see nav-walker.php): a down-caret,
   and the children open inline below instead of flying out to the side.
   Click to open/close (app.js), not hover: hover would mean moving the
   mouse toward a sibling below it drags that sibling upward first, which
   breaks the hover it's relying on to stay open. */
.accordion-parent { position: relative; }
.accordion-parent > button::after { content: "\25BE"; opacity: .55; font-size: 12px; transition: transform .2s var(--ease); }
.accordion-parent.open > button::after { transform: rotate(180deg); }
.accordion-parent > .menu.submenu.accordion {
  position: static; display: none; margin: 2px 0 6px 14px; padding: 0;
  min-width: 0; border: 0; box-shadow: none; background: transparent; animation: none;
}
.accordion-parent.open > .menu.submenu.accordion { display: block; }

.nav-toggle { display: none; font-weight: 700 !important; flex-shrink: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 14px 18px; gap: 0;
    max-height: 78vh; overflow-y: auto; box-shadow: var(--shadow-lift);
  }
  .site-header.open .nav { display: flex; animation: rise .25s var(--ease) both; }
  .site-header .wrap { position: relative; }
  .menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; animation: none; background: transparent; }
  /* No room to fly out sideways on a phone: a nested submenu just becomes
     another indented, always-visible block in the stacked list. */
  .menu .submenu { position: static; display: block; margin-left: 0; padding-left: 10px; }
  .accordion-parent > .menu.submenu.accordion { margin-left: 10px; }
  .submenu-parent > button::after { display: none; }
}

.crumbs { font-size: 14px; color: var(--muted); padding: 20px 0 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { padding: 0 7px; }

main { padding-bottom: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--panel); color: #fff;
  border-radius: 30px; padding: clamp(30px, 5vw, 62px);
  margin: 24px 0 26px;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(208, 255, 113, .22), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -220px; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(39, 234, 166, .16), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(208, 255, 113, .13); border: 1px solid rgba(208, 255, 113, .3);
  color: var(--lime); border-radius: var(--r-pill); padding: 7px 15px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em; margin: 0 0 20px; white-space: nowrap;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(39, 234, 166, .2); }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 62px); letter-spacing: -0.04em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .sub { font-size: clamp(17px, 1.9vw, 20px); color: #cfe3dc; max-width: 58ch; margin: 0 0 26px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px;
  background: var(--lime); color: #003332; border: 0; border-radius: var(--r-pill);
  padding: 0 28px; font-size: 17px; font-weight: 800; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.hero-cta:hover { background: #e3ff9c; color: #003332; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(208, 255, 113, .6); }
.hero-ghost {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: var(--r-pill);
  color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.hero-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .5); color: #fff; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--panel-line); }
.hero-stats div strong { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
.hero-stats div span { font-size: 13.5px; color: var(--panel-muted); white-space: nowrap; }

.hero-card {
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px; padding: 24px; animation: floaty 7s ease-in-out infinite;
}
.hero-card p { margin: 0 0 3px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--panel-muted); }
.hero-card .big { font-size: clamp(38px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; color: var(--lime); font-variant-numeric: tabular-nums; line-height: 1.05; }
.hero-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.hero-card li { display: flex; justify-content: space-between; gap: 14px; font-size: 15.5px; color: #cfe3dc; font-variant-numeric: tabular-nums; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.hero-card li > span { flex: 1 1 auto; text-wrap: nowrap; white-space: nowrap; }
.hero-card li b { flex: 0 0 auto; white-space: nowrap; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none; } }

/* ---------- calculator ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.calc-grid > * { min-width: 0; }
@media (min-width: 920px) { .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 17px; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; letter-spacing: -0.01em; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px; }

input[type="text"], input[type="time"], select {
  width: 100%; min-height: 52px; padding: 0 15px;
  border: 1px solid var(--field); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: 16.5px;
  font-variant-numeric: tabular-nums; font-family: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:hover, select:hover { border-color: var(--muted); }
input:focus, select:focus { outline: 0; border-color: var(--deep); box-shadow: 0 0 0 4px color-mix(in oklch, var(--deep) 16%, transparent); }

.field > .money, .money { display: flex; align-items: center; gap: 9px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--surface); padding: 0 15px; min-height: 58px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.money > span { display: inline; color: var(--muted); font-size: 20px; margin: 0; font-weight: 600; }
.money input { flex: 1 1 auto; width: auto; min-width: 0; border: 0; padding: 0; min-height: 56px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; background: transparent; }
.money input:focus { outline: 0; box-shadow: none; }
.money:focus-within { border-color: var(--deep); box-shadow: 0 0 0 4px color-mix(in oklch, var(--deep) 16%, transparent); }

.tabs { display: flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 5px; gap: 5px; margin-bottom: 20px; }
.tabs button {
  flex: 1; min-height: 46px; border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--ink-2); font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.disclose { border-top: 1px solid var(--line-2); }
.disclose > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; font-size: 16.5px; font-weight: 700; cursor: pointer; list-style: none; min-height: 48px; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after { content: "+"; font-size: 21px; font-weight: 600; color: var(--muted); transition: transform .25s var(--ease); }
.disclose[open] > summary::after { transform: rotate(45deg); }
.disclose > summary .hint { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-left: auto; white-space: nowrap; }
@media (max-width: 460px) { .disclose > summary .hint { display: none; } }
.disclose[open] > summary .hint { visibility: hidden; }
.disclose > div { animation: fade .3s var(--ease) both; }
.unit-wrap { display: flex; gap: 7px; }
.unit-wrap button { width: 56px; min-height: 52px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font-weight: 800; font-family: inherit; cursor: pointer; font-size: 17px; transition: background .18s var(--ease); }
.unit-wrap button:hover { background: var(--surface-3); }

/* ---------- results ---------- */
.results { background: var(--panel); color: var(--panel-ink); border-radius: var(--r); padding: 26px; position: relative; overflow: hidden; }
.results::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(208, 255, 113, .13), transparent 65%); pointer-events: none; }
.results > * { position: relative; }
.results .label { margin: 0 0 4px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-muted); font-weight: 700; }
.net-row { display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; }
.net { font-size: clamp(40px, 5.4vw, 54px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; color: var(--net); font-variant-numeric: tabular-nums; }
.net-annual { font-size: 16.5px; color: #b6cfc8; font-variant-numeric: tabular-nums; }
.results .note { margin: 8px 0 18px; font-size: 13.5px; color: var(--panel-muted); }
.line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.line > span:first-child { flex: 1 1 auto; text-wrap: nowrap; white-space: nowrap; }
.line .amt, .line > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.freq .line > span:first-child, .rates p { white-space: nowrap; }
.line.total { border-top: 1px solid var(--panel-line); padding-top: 14px; font-size: 17px; font-weight: 700; }
.group { padding: 12px 0 5px; border-top: 1px solid var(--panel-line); }
.group h3 { margin: 0 0 5px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--panel-muted); font-weight: 700; }
.line.tax .amt { color: #f0a79a; }
.rates { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--panel-line); }
.rates div { flex: 1; background: var(--panel-2); border-radius: var(--r-sm); padding: 14px; }
.rates p { margin: 0 0 2px; font-size: 12.5px; color: var(--panel-muted); }
.rates strong { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.freq { margin-top: 16px; background: var(--panel-2); border-radius: var(--r-sm); padding: 7px 16px; }
.freq .line { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.freq .line:last-child { border-bottom: 0; }
.warn { margin: 14px 0 0; font-size: 13.5px; color: #ffe0ad; background: rgba(242, 169, 59, .12); border: 1px solid rgba(242, 169, 59, .26); border-radius: var(--r-sm); padding: 12px 14px; }
.warn a { color: var(--lime) !important; }

.btn {
  display: block; width: 100%; margin-top: 16px; text-align: center;
  background: var(--lime); color: #003332; border: 0; border-radius: var(--r-pill);
  padding: 17px; font-weight: 800; font-size: 16.5px; font-family: inherit; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { background: #e3ff9c; color: #003332; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(208, 255, 113, .55); }

/* ---------- chips, cards, tables ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  padding: 11px 16px; min-height: 50px; display: flex; flex-direction: column; justify-content: center;
  color: var(--ink); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover { border-color: var(--deep); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.chip b { font-variant-numeric: tabular-nums; font-weight: 700; }
button.chip { font-family: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; align-items: center; flex-direction: row; border-radius: var(--r-pill); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
.card {
  display: block; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); padding: 19px; color: var(--ink); position: relative;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { border-color: var(--deep); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card b { display: block; font-size: 16.5px; letter-spacing: -0.02em; margin-bottom: 3px; }
.card span { display: block; font-size: 14.5px; color: var(--muted); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
thead th { text-align: left; background: var(--surface-2); padding: 14px 18px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
thead th:hover { color: var(--deep); }
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tbody th { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-weight: 700; }

.callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 24px 0; }
.callout p { margin: 0 0 11px; font-size: 16px; color: var(--ink-2); }
.callout p:last-child { margin: 0; }

.faq { display: grid; gap: 13px; }
.faq > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; transition: border-color .2s var(--ease); }
.faq > div:hover { border-color: var(--deep); }
.faq h3 { margin: 0 0 7px; font-size: 18.5px; }
.faq p { margin: 0; color: var(--ink-2); }

dl.defs { display: grid; gap: 15px; margin: 20px 0; }
dl.defs > div { padding-left: 17px; border-left: 3px solid var(--mint); }
dl.defs dt { font-weight: 700; letter-spacing: -0.01em; }
dl.defs dd { margin: 0; color: var(--ink-2); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin: 22px 0; }
.toc p { margin: 0 0 9px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { padding: 3px 0; }

.byline { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--panel); color: var(--panel-ink); margin-top: 40px; }
.site-footer .wrap { padding: 42px 22px 30px; display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 26px; align-items: start; }
@media (max-width: 1000px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h2 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); margin: 0 0 9px; font-weight: 700; }
.site-footer a { color: var(--panel-ink); display: block; padding: 3px 0; font-size: 14.5px; transition: color .16s var(--ease), transform .16s var(--ease); }
.site-footer a:hover { color: var(--lime); transform: translateX(3px); }
.site-footer .brand { color: #fff; font-size: 18px; }
.site-footer .brand b { color: var(--lime); }
.site-footer .colophon { border-top: 1px solid var(--panel-line); }
.site-footer .colophon p { max-width: 1140px; margin: 0 auto; padding: 18px 22px; font-size: 13.5px; color: var(--panel-muted); }

.disclaimer { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 32px 0 0; }
.disclaimer p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- pay stub ---------- */
.stub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin-top: 22px; box-shadow: var(--shadow); animation: rise .45s var(--ease) both; }
.stub-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 16px; }
.stub > .btn { margin: 0 0 20px; max-width: 340px; }
.stub h2 { margin: 0; font-size: 22px; }
.stub table { font-size: 15.5px; }
.stub td:last-child, .stub th:last-child { text-align: right; }
.stub .table-wrap, .stub table { box-shadow: none; border: 0; }

#stub-print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

@media print {
  /* The pay stub prints from its own document in a hidden iframe, so nothing
     here needs to hide the page. These rules only tidy a direct browser print. */
  .site-header, .site-footer, .nav, .crumbs, .btn, .no-print, .hero, #stub-print-frame { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .stub { border: 0; padding: 0; box-shadow: none; }
  .reveal { opacity: 1 !important; animation: none !important; }
  @page { margin: 16mm; }
}

@media (max-width: 620px) {
  .rates { flex-direction: column; }
  .hero { border-radius: 22px; }
  .site-header .wrap { padding: 11px 16px; }
  .wrap { padding: 0 16px; }
}

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 26px 0 0; }
.post {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.post:hover { transform: translateY(-4px); border-color: var(--deep); box-shadow: var(--shadow-lift); color: var(--ink); }
.post img { display: block; width: 100%; height: 172px; object-fit: cover; background: var(--panel); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-kicker { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); font-weight: 700; }
.post h3 { margin: 0; font-size: 19.5px; line-height: 1.25; }
.post p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.post-meta { margin-top: auto; padding-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.post-hero { width: 100%; max-width: 780px; height: auto; border-radius: var(--r); display: block; margin: 0 0 26px; background: var(--panel); }

@media (max-width: 560px) {
  h1 { letter-spacing: -0.03em; }
  .panel, .results { padding: 18px; }
  .hero { padding: 26px 20px; margin: 16px 0 22px; }
  .hero-stats { gap: 20px; }
  .hero-actions { gap: 10px; }
  .hero-cta, .hero-ghost { width: 100%; justify-content: center; }
  .table-wrap { border-radius: var(--r-sm); }
  thead th, tbody td, tbody th { padding: 11px 13px; font-size: 14.5px; }
  .cards, .posts { grid-template-columns: 1fr; }
  .faq > div, .callout, .toc, .disclaimer { padding: 17px 18px; }
  .money input { font-size: 21px; }
  .net { font-size: 38px; }
  .post img { height: 150px; }
}

/* ---------- WordPress core compatibility ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto;
  padding: 12px 18px; margin: 0; clip: auto; z-index: 100000;
  background: var(--surface); color: var(--ink); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lift); font-weight: 700;
}
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose img, main img, .entry-content img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.prose .wp-block-table table, main .wp-block-table table { width: 100%; }
main a:not(.card):not(.chip):not(.post):not(.btn) { word-break: break-word; }
