/* ChildSupportCalculator.xyz — Shared Design System */
:root{
  --blue:#1D4ED8;
  --blue-dark:#1E40AF;
  --blue-light:#EFF6FF;
  --blue-tint:#F3F7FF;
  --amazon-yellow:#FFA41C;
  --amazon-yellow-dark:#E8930A;
  --bg:#F8FAFC;
  --white:#FFFFFF;
  --text:#0F172A;
  --text-muted:#64748B;
  --border:#E2E8F0;
  --radius:12px;
  --shadow:0 2px 12px rgba(15,23,42,0.07);
  --green:#16A34A;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
h1,h2,h3{
  font-family:'Inter',sans-serif;
  color:var(--text);
  margin:0;
  font-weight:800;
  letter-spacing:-0.02em;
}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px;}

/* HEADER */
header{border-bottom:1px solid var(--border);background:var(--white);position:sticky;top:0;z-index:20;}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;row-gap:10px;
  padding:16px 24px;max-width:1180px;margin:0 auto;
}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.logo-icon{width:36px;height:36px;flex-shrink:0;}
.logo-word{font-size:20px;font-weight:800;color:var(--text);white-space:nowrap;}
.logo-word span{color:var(--blue);}
nav{display:flex;gap:20px;font-size:14px;font-weight:600;color:var(--text-muted);align-items:center;flex-wrap:wrap;}
nav a:hover{color:var(--blue);}
.nav-change-state{
  background:var(--blue-light);color:var(--blue);padding:8px 14px;border-radius:8px;font-weight:700;font-size:13.5px;
}
.nav-change-state:hover{background:var(--blue);color:var(--white);}

@media(max-width:640px){
  .logo-word{font-size:17px;}
  .logo-icon{width:30px;height:30px;}
  nav a:not(.nav-change-state){display:none;}
  .header-inner{gap:8px;}
}

/* DIRECTORY-STYLE HERO (homepage) */
.hero-directory{padding:56px 0 64px;text-align:center;background:linear-gradient(180deg,var(--blue-tint) 0%, var(--bg) 100%);}
.hero-directory .eyebrow{
  display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--blue);
  background:var(--blue-light);padding:6px 14px;border-radius:20px;margin-bottom:20px;
}
.hero-directory h1{font-size:40px;line-height:1.18;max-width:16ch;margin:0 auto;}
.hero-directory p.lede{font-size:16.5px;color:var(--text-muted);max-width:52ch;margin:16px auto 0;}

.directory-search{
  max-width:640px;margin:32px auto 0;background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow);padding:10px;display:flex;gap:8px;
}
.directory-search select{
  flex:1;padding:14px 16px;border:none;font-size:15px;font-family:'Inter',sans-serif;color:var(--text);background:transparent;
}
.directory-search select:focus{outline:none;}
.directory-search button{
  background:var(--blue);color:var(--white);border:none;border-radius:8px;padding:14px 26px;
  font-weight:700;font-size:15px;cursor:pointer;white-space:nowrap;
}
.directory-search button:hover{background:var(--blue-dark);}
@media(max-width:520px){ .directory-search{flex-direction:column;} }

.trust-row{display:flex;gap:24px;justify-content:center;margin-top:24px;flex-wrap:wrap;}
.trust-row .item{display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--text-muted);}

/* SPLIT HERO (calculator pages) */
.hero{padding:44px 0 8px;}
.hero .eyebrow{font-size:13px;font-weight:700;color:var(--blue);}
.hero h1{font-size:32px;margin-top:10px;text-align:left;max-width:none;}
.hero p.lede{font-size:15px;color:var(--text-muted);margin-top:10px;text-align:left;max-width:65ch;}

/* CARDS */
.card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px;margin:22px 0;}
.field{margin-bottom:16px;}
.field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px;}
.field select,.field input{
  width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:8px;font-size:14.5px;
  font-family:'Inter',sans-serif;background:var(--white);
}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
button.calc-btn{
  width:100%;padding:14px;background:var(--blue);color:var(--white);border:none;border-radius:8px;
  font-weight:700;font-size:15.5px;cursor:pointer;margin-top:6px;
}
button.calc-btn:hover{background:var(--blue-dark);}
@media(max-width:640px){ .field-row{grid-template-columns:1fr;} }

/* RESULT */
.result-card{background:var(--blue-dark);color:#fff;border-radius:var(--radius);padding:30px;margin:22px 0;}
.result-card .label{font-size:12.5px;opacity:0.8;letter-spacing:0.03em;font-weight:700;}
.result-card .amount{font-size:44px;font-weight:800;margin:8px 0 4px;}
.result-card .sub{font-size:13.5px;opacity:0.9;}
.breakdown{margin-top:18px;border-top:1px solid rgba(255,255,255,0.2);padding-top:14px;}
.breakdown div{display:flex;justify-content:space-between;font-size:13.5px;padding:4px 0;opacity:0.92;}
.note{background:var(--blue-tint);border-left:3px solid var(--blue);padding:14px 18px;border-radius:8px;font-size:13.5px;color:var(--text-muted);margin:20px 0;}

/* CONTENT SECTIONS */
section.content{padding:30px 0;border-top:1px solid var(--border);}
section.content h2{font-size:21px;margin-bottom:12px;}
section.content p{color:var(--text-muted);font-size:14.5px;margin-bottom:12px;}
section.content ul{color:var(--text-muted);font-size:14.5px;padding-left:20px;}
section.content li{margin-bottom:6px;}
.faq-item{border-bottom:1px solid var(--border);padding:16px 0;}
.faq-item h3{font-size:15px;font-weight:700;color:var(--text);margin-bottom:6px;}
.faq-item p{font-size:14px;color:var(--text-muted);margin:0;}
.sources a{color:var(--blue);font-weight:700;font-size:14px;}
.reviewed{font-size:12.5px;color:var(--text-muted);margin-top:6px;}
.byline{font-size:12.5px;color:var(--text-muted);margin-top:4px;}

/* WHY / HOW */
.why{padding:56px 0;border-bottom:1px solid var(--border);}
.why h2{font-size:26px;margin-bottom:8px;text-align:center;}
.why > .wrap > p{color:var(--text-muted);font-size:15px;max-width:60ch;margin:0 auto 32px;text-align:center;}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.why-item{padding:22px 20px;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);}
.why-item h3{font-size:15px;font-weight:700;margin-bottom:8px;}
.why-item p{font-size:13.5px;color:var(--text-muted);margin:0;}

.how{padding:52px 0;border-bottom:1px solid var(--border);background:var(--white);}
.how h2{font-size:24px;margin-bottom:28px;text-align:center;}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.how-step{background:var(--blue-tint);border-radius:var(--radius);padding:20px;}
.how-step .num{font-size:24px;font-weight:800;color:var(--blue);margin-bottom:6px;display:block;}
.how-step h3{font-size:15px;font-weight:700;margin-bottom:6px;}
.how-step p{font-size:13.5px;color:var(--text-muted);margin:0;}

/* STATES GRID */
.states{padding:56px 0;border-bottom:1px solid var(--border);}
.states-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:24px;}
.states-head h2{font-size:24px;}
.states-head a{font-size:14px;font-weight:700;color:var(--blue);}
.state-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;}
.state-cell{
  background:var(--white);padding:16px 12px;border-radius:10px;border:1px solid var(--border);
  display:flex;flex-direction:column;gap:6px;transition:box-shadow .15s,border-color .15s;
}
.state-cell:hover{box-shadow:var(--shadow);border-color:var(--blue);}
.state-cell .abbr{font-size:18px;color:var(--blue);font-weight:800;}
.state-cell .name{font-size:12px;color:var(--text-muted);}

/* AMAZON PRODUCTS */
.products{padding:48px 0;background:var(--white);border-bottom:1px solid var(--border);}
.products-head h2{font-size:22px;}
.products-sub{font-size:13.5px;color:var(--text-muted);margin:6px 0 22px;}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.product-card{border:1px solid var(--border);border-radius:var(--radius);padding:14px;text-align:center;}
.product-thumb{
  width:100%;aspect-ratio:1;background:var(--bg);border-radius:8px;margin-bottom:10px;
  display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:12px;overflow:hidden;
}
.product-thumb img{width:100%;height:100%;object-fit:cover;}
.product-card h4{font-size:13px;font-weight:700;margin:0 0 4px;}
.product-card p{font-size:11.5px;color:var(--text-muted);margin:0 0 10px;}
.product-card .amz-btn{
  display:inline-block;background:var(--amazon-yellow);color:#0F172A;font-weight:700;font-size:12px;
  padding:8px 14px;border-radius:6px;
}
.product-card .amz-btn:hover{background:var(--amazon-yellow-dark);}
.amazon-disclosure{font-size:11.5px;color:var(--text-muted);margin-top:18px;}

@media(max-width:860px){
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .state-grid{grid-template-columns:repeat(3,1fr);}
  .how-grid{grid-template-columns:1fr;}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .hero-directory h1{font-size:30px;}
}

/* FOOTER */
footer{background:#0F172A;color:#94A3B8;padding:40px 0 24px;}
footer .foot-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;padding-bottom:22px;border-bottom:1px solid rgba(255,255,255,0.1);margin-bottom:18px;align-items:center;}
footer .foot-logo{display:flex;align-items:center;gap:10px;}
footer .foot-logo .logo-icon{width:32px;height:32px;}
footer .foot-logo-word{color:var(--white);font-size:18px;font-weight:800;}
footer .foot-logo-word span{color:#60A5FA;}
footer nav{display:flex;gap:18px;font-size:13px;}
footer nav a:hover{color:var(--white);}
footer .legal{font-size:11.5px;color:#64748B;max-width:800px;}
/* Visible links inside page content (2026-10-17) */
section.content a:not(.state-cell):not(.amz-btn),
.faq-item a,
.note a{
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:2px;
  font-weight:600;
}
section.content a:not(.state-cell):not(.amz-btn):hover,
.faq-item a:hover,
.note a:hover{color:var(--blue-dark);}
.sources a{text-decoration:underline;text-underline-offset:2px;}
.field label input[type=checkbox]{width:18px !important;height:18px;flex:0 0 18px !important;margin:3px 0 0 0;padding:0;}
section.products .products-note{font-size:14px!important;color:#64748B!important;margin:16px 0 0;line-height:1.5}