:root{
  --bg:#f4f7fb;
  --bg2:#0b1020;
  --panel:#ffffff;
  --panel2:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);
  --text:#183042;
  --muted:#5f7385;
  --muted2:#7d89a3;
  --blue:#6da7ff;
  --blue2:#8ec5ff;
  --cyan:#6af0ff;
  --green:#6effb9;
  --danger:#ff7d7d;
  --shadow:0 10px 30px rgba(28,52,84,.08);
  --radius:20px;
  --radiusLg:28px;
  --wrap:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(109,167,255,.12), transparent 30%),
    radial-gradient(circle at top right, rgba(106,240,255,.08), transparent 28%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.wrap{width:min(var(--wrap),calc(100% - 32px));margin:0 auto}
.glass{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.045));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(6,10,19,.75);
  border-bottom:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(16px);
}
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  min-height:72px;
}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:1.05rem}
.brand-badge{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:14px;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:#06111a;font-weight:800;box-shadow:0 12px 30px rgba(109,167,255,.35);
}
.nav{display:flex;gap:20px;flex-wrap:wrap}
.nav a{color:var(--muted)}
.nav a:hover{color:var(--text)}

.hero,.tool-hero{padding:72px 0 30px}
.hero-grid{
  display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:start;
}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:999px;
  background:rgba(109,167,255,.12);
  border:1px solid rgba(109,167,255,.22);
  color:var(--blue2);font-weight:700;font-size:.86rem;
}
h1{
  margin:18px 0 14px;
  font-size:clamp(2.2rem,5vw,4.2rem);
  line-height:1.02;letter-spacing:-.03em;
}
.hero-copy,.tool-copy{
  color:var(--muted);
  max-width:68ch;
  font-size:1.06rem;
}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:50px;padding:0 20px;border-radius:16px;font-weight:800;
  border:1px solid transparent;
}
.btn-primary{
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:#07131f;
  box-shadow:0 18px 40px rgba(109,167,255,.25);
}
.btn-secondary{
  background:rgba(255,255,255,.05);
  border-color:var(--line);
}
.trust-row{
  display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;color:var(--muted2);font-size:.94rem
}
.trust-row span,.search-chip{
  padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--line)
}

.hero-search{
  margin-top:26px;
  padding:18px;
  border-radius:24px;
}
.hero-search-grid{
  display:grid;
  grid-template-columns:220px 1fr auto;
  gap:12px;
}
.hero-search select,
.hero-search input{
  width:100%;
  min-height:56px;
  border-radius:16px;
  border:1px solid var(--line2);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:0 16px;
  font-size:1rem;
  outline:none;
}
.hero-search button[type="submit"]{
  min-height:56px;
  padding:0 22px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:#07131f;
  font-weight:800;
  cursor:pointer;
}
.hero-search-help{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color:var(--muted);
}

.hero-card{
  padding:24px;border-radius:var(--radiusLg)
}
.hero-card-top{font-size:.9rem;color:var(--blue2);font-weight:700;margin-bottom:14px}
.mini-tool-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:14px
}
.mini-tool{
  display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:18px;
  background:rgba(255,255,255,.035);border:1px solid var(--line)
}
.mini-tool strong{font-size:1rem}
.mini-tool span{color:var(--muted);font-size:.92rem}

.section{padding:30px 0}
.section.alt{padding-top:8px}
.section-head{margin-bottom:18px}
.section-head h2{margin:0 0 8px;font-size:clamp(1.4rem,2vw,2rem)}
.section-head p{margin:0;color:var(--muted)}
.cards{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px
}
.cards.cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{
  padding:22px;border-radius:24px
}
.card h3{margin:0 0 10px;font-size:1.1rem}
.card p{margin:0;color:var(--muted)}
.card-meta{margin-top:14px;color:var(--muted2);font-size:.9rem}
.text-link{display:inline-block;margin-top:14px;color:var(--blue2);font-weight:700}

.tool-shell,.intro-prose,.tool-form{
  display:grid;grid-template-columns:1fr auto;gap:14px
}
.tool-form input{
  width:100%;min-height:58px;border-radius:18px;
  background:rgba(255,255,255,.05);border:1px solid var(--line2);
  color:var(--text);padding:0 18px;font-size:1rem;outline:none;
}
.tool-form input:focus,
.hero-search select:focus,
.hero-search input:focus{
  border-color:rgba(109,167,255,.45);
  box-shadow:0 0 0 4px rgba(109,167,255,.10)
}
.tool-form button{
  min-height:58px;padding:0 20px;border:0;border-radius:18px;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:#07131f;font-weight:800;cursor:pointer
}
.tool-helper,.search-chip-wrap{
  margin-top:14px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap;align-items:center
}
.example-chip,.copy-btn{
  border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);
  border-radius:999px;padding:8px 12px;cursor:pointer
}
.result-panel{margin-top:22px}
.empty-state,.loading,.result-error{
  padding:18px;border-radius:20px;background:rgba(255,255,255,.04);border:1px solid var(--line);color:var(--muted)
}
.result-error{color:#ffd0d0;border-color:rgba(255,125,125,.24);background:rgba(255,125,125,.10)}
.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.summary-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px
}
.summary-card{
  padding:16px;border-radius:20px;background:rgba(255,255,255,.045);border:1px solid var(--line)
}
.summary-card span{display:block;color:var(--muted2);font-size:.85rem;margin-bottom:8px}
.summary-card strong{display:block;font-size:1rem;word-break:break-word}
.result-section{
  margin-top:16px;padding:18px;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid var(--line)
}
.result-section h3{margin:0 0 12px;font-size:1.02rem}
.result-list{margin:0;padding-left:18px}
.result-list li{margin:0 0 8px;color:var(--muted)}
.result-dl{display:grid;gap:10px}
.result-dl div{
  display:grid;grid-template-columns:minmax(160px,220px) 1fr;gap:12px;
  padding-bottom:10px;border-bottom:1px dashed rgba(255,255,255,.08)
}
.result-dl dt{color:var(--muted2)}
.result-dl dd{margin:0;word-break:break-word}
.raw-wrap{margin-top:18px}
.raw-wrap summary{cursor:pointer;color:var(--blue2);font-weight:700}
.raw-pre,.mini-pre{
  margin:12px 0 0;padding:14px;border-radius:18px;background:#050811;border:1px solid var(--line);
  color:#cfe1ff;overflow:auto;font-size:.9rem
}
.mini-pre{margin:0}

.content-grid{
  display:grid;grid-template-columns:1fr .8fr;gap:18px;margin-top:22px
}
.content-card,.faq-wrap,.article{
  padding:24px;border-radius:24px
}
.related-links{margin:0;padding-left:18px}
.related-links li{margin:0 0 8px}
.faq-wrap details{
  border-top:1px solid rgba(255,255,255,.08);padding:14px 0
}
.faq-wrap details:first-of-type{border-top:0;padding-top:0}
.faq-wrap summary{cursor:pointer;font-weight:700}
.article-prose h2{margin-top:26px}
.article-prose p,.article-prose li,.intro-prose p{color:var(--muted)}

.site-footer{
  margin-top:40px;padding:36px 0 18px;border-top:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.18)
}
.footer-grid{
  display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:20px
}
.footer-brand{font-weight:800;font-size:1.1rem;margin-bottom:8px}
.footer-list{margin:0;padding-left:18px}
.footer-bottom{margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08);color:var(--muted2)}
.muted{color:var(--muted)}
.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
}

@media (max-width: 1100px){
  .hero-grid,.content-grid,.footer-grid{grid-template-columns:1fr}
  .cards.cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 860px){
  .cards,.cards.cards-4,.summary-grid,.mini-tool-grid{grid-template-columns:1fr}
  .tool-form,.hero-search-grid{grid-template-columns:1fr}
  .result-dl div{grid-template-columns:1fr}
  .nav{display:none}
  .topbar{min-height:64px}
  .hero,.tool-hero{padding-top:42px}
}

.affiliate-wrap{margin-top:22px}
.affiliate-section{
  padding:24px;
  border-radius:24px;
}
.affiliate-head h2{
  margin:0 0 8px;
  font-size:clamp(1.35rem,2vw,1.9rem);
}
.affiliate-head p{
  margin:0 0 10px;
  color:var(--muted);
}
.affiliate-kicker{
  color:var(--blue2);
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:10px;
  font-weight:800;
}
.affiliate-disclosure{
  color:var(--muted2);
  font-size:.95rem;
}
.affiliate-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.affiliate-card{
  padding:22px;
  border-radius:24px;
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  display:flex;
  flex-direction:column;
  min-height:100%;
  position:relative;
  overflow:hidden;
}
.affiliate-card::before{
  content:"";
  position:absolute;
  inset:auto -40px -60px auto;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(96,165,250,.20), rgba(96,165,250,0));
  pointer-events:none;
}
.affiliate-card-nord{
  box-shadow:0 18px 40px rgba(30,58,138,.14);
}
.affiliate-card-surf{
  box-shadow:0 18px 40px rgba(96,165,250,.10);
}
.affiliate-pill{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--blue2);
  font-size:.8rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:14px;
}
.affiliate-logo-text{
  font-size:1.35rem;
  font-weight:800;
  margin-bottom:10px;
  letter-spacing:-.02em;
}
.affiliate-card p{
  color:var(--muted);
  margin:0 0 14px;
}
.affiliate-points{
  margin:0 0 18px;
  padding-left:18px;
  color:var(--text);
}
.affiliate-points li{
  margin:0 0 8px;
}
.affiliate-cta{
  margin-top:auto;
  width:100%;
  text-align:center;
}
@media (max-width: 860px){
  .affiliate-grid{
    grid-template-columns:1fr;
  }
}
}

.article-prose strong{color:var(--text)}

.footer-credit{
  display:inline-block;
  margin-left:10px;
}
.footer-credit a{
  color:var(--blue2);
}
.footer-credit a:hover{
  color:var(--text);
}

.cluster-block{
  padding:22px;
  border-radius:24px;
  margin-top:18px;
}
.cluster-head h3{
  margin:0 0 14px;
  font-size:1.15rem;
}
.cluster-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.cluster-links-learn{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.cluster-link{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.cluster-link strong{
  font-size:1rem;
}
.cluster-link span{
  color:var(--muted);
  font-size:.94rem;
}
.seo-copy-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

@media (max-width: 1100px){
  .cluster-links,
  .cluster-links-learn,
  .seo-copy-grid{
    grid-template-columns:1fr;
  }
}

.contact-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:18px;
}
.contact-form{
  display:grid;
  gap:12px;
}
.contact-form label{
  font-weight:700;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  border-radius:16px;
  border:1px solid var(--line2);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:14px 16px;
  font:inherit;
  outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color:rgba(109,167,255,.45);
  box-shadow:0 0 0 4px rgba(109,167,255,.10);
}
.contact-form button{
  min-height:54px;
  padding:0 20px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:#07131f;
  font-weight:800;
  cursor:pointer;
}
.contact-success,
.contact-error{
  margin-bottom:14px;
  padding:14px 16px;
  border-radius:16px;
}
.contact-success{
  background:rgba(60,180,120,.12);
  border:1px solid rgba(60,180,120,.25);
  color:#d8ffe7;
}
.contact-error{
  background:rgba(255,125,125,.10);
  border:1px solid rgba(255,125,125,.24);
  color:#ffd0d0;
}
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
@media (max-width: 960px){
  .contact-grid{
    grid-template-columns:1fr;
  }
}

.lookup-page-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}
.lookup-main{
  padding:22px;
  border-radius:24px;
}
.lookup-sidebar{
  display:grid;
  gap:18px;
}
.lookup-actions{
  margin-bottom:16px;
}
.lookup-embed{
  width:100%;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
}
.lookup-embed iframe{
  display:block;
  width:100%;
  min-height:980px;
  border:0;
  background:transparent;
}
.lookup-next-links{
  display:grid;
  gap:12px;
}
@media (max-width: 1100px){
  .lookup-page-grid{
    grid-template-columns:1fr;
  }
}

.cards.cards-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media (max-width: 1100px){
  .cards.cards-3{
    grid-template-columns:1fr;
  }
}

.lookup-next-links .cluster-link{
  word-break:break-word;
}

.stats-login-wrap{
  display:flex;
  justify-content:center;
}
.stats-login-card{
  width:min(560px,100%);
}
.stats-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
@media (max-width: 700px){
  .stats-topbar{
    flex-direction:column;
    align-items:flex-start;
  }
}

.cards.cards-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media (max-width: 1100px){
  .cards.cards-3{
    grid-template-columns:1fr;
  }
}

.cards.cards-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media (max-width: 1100px){
  .cards.cards-3{
    grid-template-columns:1fr;
  }
}

/* Phase 22 SEO content block */

.lookup-seo{
margin-top:40px;
padding:28px;
border-radius:10px;
background:#0f172a;
border:1px solid rgba(255,255,255,0.08);
line-height:1.6;
}

.lookup-seo h2{
font-size:1.6rem;
margin-bottom:12px;
}

.lookup-seo h3{
margin-top:20px;
font-size:1.2rem;
}

.lookup-seo p{
margin-top:10px;
opacity:.9;
}

.lookup-seo ul{
margin-top:10px;
padding-left:18px;
}

.lookup-seo li{
margin-top:6px;
}

.lookup-seo a{
color:#4da3ff;
text-decoration:none;
}

.lookup-seo a:hover{
text-decoration:underline;
}

/* Phase 23 interpretation blocks */
.lookup-insight-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.lookup-insight-card,
.lookup-workflow-card{
  padding:22px;
}
.lookup-bullets{
  margin:12px 0 0;
  padding-left:20px;
}
.lookup-bullets li{
  margin:8px 0;
}
.lookup-flow-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
@media (max-width: 1100px){
  .lookup-insight-grid,
  .lookup-flow-grid{
    grid-template-columns:1fr;
  }
}

/* Phase 24 collection enrichment */
.collection-seo-card{
  padding:22px;
}
.collection-seo-card p{
  margin-top:12px;
}

/* Phase 28 safe enrichment */
.collection-seo-card ul.lookup-bullets{
  margin:12px 0 0;
  padding-left:20px;
}
.collection-seo-card ul.lookup-bullets li{
  margin:8px 0;
}

/* PHASE3_ADSENSE_CONTENT */
.ilh-content-wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.ilh-editorial-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;margin:36px 0}
.ilh-main-copy{grid-column:span 8;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:28px}
.ilh-side-copy{grid-column:span 4;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:24px}
.ilh-main-copy h2,.ilh-main-copy h3,.ilh-side-copy h2,.ilh-side-copy h3{margin-top:0}
.ilh-main-copy p,.ilh-main-copy li,.ilh-side-copy p,.ilh-side-copy li{line-height:1.8}
.ilh-guide-list,.ilh-faq-list,.ilh-trust-list{display:grid;gap:14px;padding-left:20px}
.ilh-guide-card{display:block;padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.025);text-decoration:none;color:inherit}
.ilh-guide-card strong{display:block;margin-bottom:8px}
.ilh-mini-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.ilh-mini-links a{display:inline-block;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.1);text-decoration:none}
.ilh-note-box{padding:18px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);margin:18px 0}
.ilh-faq-item{padding:18px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);margin-bottom:14px}
.ilh-section-title{margin:0 0 14px}
.ilh-footer-trust{margin:34px 0 18px;padding:20px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025)}
@media (max-width: 900px){
  .ilh-main-copy,.ilh-side-copy{grid-column:span 12}
}

/* PHASE5_ADSENSE_POLISH */
:root{
  --ilh-panel: rgba(255,255,255,.035);
  --ilh-panel-strong: rgba(255,255,255,.05);
  --ilh-line: rgba(255,255,255,.09);
  --ilh-line-strong: rgba(255,255,255,.14);
  --ilh-text: #eaf2f8;
  --ilh-muted: #a8b8c7;
  --ilh-accent: #7dd3fc;
  --ilh-accent-2: #93c5fd;
  --ilh-shadow: 0 18px 50px rgba(0,0,0,.28);
  --ilh-radius-xl: 24px;
  --ilh-radius-lg: 18px;
  --ilh-radius-pill: 999px;
}

.ilh-content-wrap{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.ilh-editorial-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:24px;
  align-items:start;
  margin:38px 0;
}

.ilh-main-copy,
.ilh-side-copy{
  position:relative;
  overflow:hidden;
  border:1px solid var(--ilh-line);
  border-radius:var(--ilh-radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    var(--ilh-panel);
  box-shadow:var(--ilh-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ilh-main-copy{
  grid-column:span 8;
  padding:30px;
}

.ilh-side-copy{
  grid-column:span 4;
  padding:24px;
}

.ilh-main-copy::before,
.ilh-side-copy::before,
.ilh-note-box::before,
.ilh-faq-item::before,
.ilh-footer-trust::before,
.box::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg, rgba(125,211,252,.45), rgba(147,197,253,.1), transparent);
  pointer-events:none;
}

.ilh-section-title,
.ilh-main-copy h2,
.ilh-side-copy h2,
.ilh-main-copy h3,
.ilh-side-copy h3{
  color:var(--ilh-text);
  letter-spacing:-0.02em;
}

.ilh-main-copy h2,
.ilh-side-copy h2{
  font-size:clamp(1.35rem, 2vw, 1.9rem);
  margin:0 0 14px;
}

.ilh-main-copy h3,
.ilh-side-copy h3{
  font-size:clamp(1.05rem, 1.4vw, 1.25rem);
  margin:24px 0 10px;
}

.ilh-main-copy p,
.ilh-side-copy p,
.ilh-main-copy li,
.ilh-side-copy li,
.phase4b-contact-expansion p,
.phase4b-contact-expansion li,
.phase4b-terms-expansion p,
.phase4b-methodology-expansion p,
.box p,
.box li{
  color:var(--ilh-muted);
  line-height:1.82;
  font-size:1rem;
}

.ilh-guide-list,
.ilh-faq-list,
.ilh-trust-list{
  display:grid;
  gap:10px;
  padding-left:20px;
  margin:14px 0 0;
}

.ilh-guide-list li,
.ilh-faq-list li,
.ilh-trust-list li{
  padding-left:2px;
}

.ilh-note-box,
.ilh-footer-trust,
.ilh-faq-item,
.box{
  position:relative;
  overflow:hidden;
  border:1px solid var(--ilh-line);
  border-radius:var(--ilh-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)),
    var(--ilh-panel-strong);
  box-shadow:0 12px 34px rgba(0,0,0,.18);
}

.ilh-note-box,
.ilh-footer-trust,
.box{
  padding:18px 18px 16px;
  margin:18px 0;
}

.ilh-faq-item{
  padding:18px 18px 14px;
  margin:0 0 14px;
}

.ilh-note-box strong,
.ilh-guide-card strong,
.ilh-footer-trust h3,
.box strong{
  color:var(--ilh-text);
}

.ilh-guide-card{
  display:block;
  position:relative;
  overflow:hidden;
  padding:18px;
  margin:0 0 14px;
  border:1px solid var(--ilh-line);
  border-radius:var(--ilh-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025)),
    var(--ilh-panel);
  color:inherit;
  text-decoration:none;
  box-shadow:0 10px 30px rgba(0,0,0,.14);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ilh-guide-card:hover{
  transform:translateY(-2px);
  border-color:var(--ilh-line-strong);
  box-shadow:0 16px 36px rgba(0,0,0,.22);
}

.ilh-guide-card span{
  display:block;
  color:var(--ilh-muted);
  line-height:1.7;
}

.ilh-mini-links,
.mini-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.ilh-mini-links a,
.mini-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border:1px solid var(--ilh-line);
  border-radius:var(--ilh-radius-pill);
  background:rgba(255,255,255,.03);
  color:var(--ilh-text);
  text-decoration:none;
  font-weight:600;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.ilh-mini-links a:hover,
.mini-links a:hover{
  transform:translateY(-1px);
  border-color:var(--ilh-line-strong);
  background:rgba(255,255,255,.05);
}

.ilh-home-editorial-block,
.ilh-lookup-interpretation-block,
.ilh-page-support-block,
.ilh-contact-support-block{
  margin-top:30px;
  margin-bottom:34px;
}

.phase4b-contact-expansion,
.phase4b-terms-expansion,
.phase4b-methodology-expansion{
  margin-top:28px;
  padding-top:6px;
}

.phase4b-contact-expansion h2,
.phase4b-terms-expansion h2,
.phase4b-methodology-expansion h2{
  color:var(--ilh-text);
  font-size:1.15rem;
  margin:22px 0 10px;
}

.phase4b-contact-expansion ul,
.phase4b-terms-expansion ul,
.phase4b-methodology-expansion ul{
  padding-left:22px;
}

.ilh-contact-support-block .ilh-main-copy{
  grid-column:1 / -1;
}

.ilh-contact-support-block .ilh-main-copy,
.phase4b-contact-expansion,
.phase4b-terms-expansion,
.phase4b-methodology-expansion{
  max-width:900px;
}

.ilh-main-copy a,
.ilh-side-copy a,
.phase4b-contact-expansion a,
.phase4b-terms-expansion a,
.phase4b-methodology-expansion a,
.box a{
  color:var(--ilh-accent-2);
}

.ilh-main-copy a:hover,
.ilh-side-copy a:hover,
.phase4b-contact-expansion a:hover,
.phase4b-terms-expansion a:hover,
.phase4b-methodology-expansion a:hover,
.box a:hover{
  color:#c7e8ff;
}

body > h1:first-of-type,
body > p,
body > h2,
body > h3,
body > ul,
body > .box,
body > .mini-links{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

body > h1:first-of-type{
  color:var(--ilh-text);
  font-size:clamp(2rem, 3.4vw, 3rem);
  letter-spacing:-0.03em;
  margin-top:8px;
  margin-bottom:16px;
}

body > h2{
  color:var(--ilh-text);
  font-size:clamp(1.2rem, 2vw, 1.65rem);
  margin-top:30px;
  margin-bottom:10px;
}

body > h3{
  color:var(--ilh-text);
  font-size:1.08rem;
  margin-top:24px;
  margin-bottom:10px;
}

body > p,
body > ul li{
  color:var(--ilh-muted);
}

body > .box{
  position:relative;
  overflow:hidden;
}

body > .mini-links{
  margin-top:22px;
  margin-bottom:10px;
}

@media (max-width: 960px){
  .ilh-main-copy,
  .ilh-side-copy{
    grid-column:span 12;
  }

  .ilh-main-copy,
  .ilh-side-copy{
    padding:22px;
  }

  .ilh-content-wrap{
    width:min(100%, calc(100% - 22px));
  }
}

@media (max-width: 640px){
  .ilh-editorial-grid{
    gap:18px;
    margin:24px 0;
  }

  .ilh-main-copy,
  .ilh-side-copy,
  .ilh-note-box,
  .ilh-footer-trust,
  .ilh-faq-item,
  .box{
    border-radius:16px;
  }

  .ilh-mini-links a,
  .mini-links a{
    width:100%;
    justify-content:flex-start;
  }
}

/* CONTACT_BOTTOM_LAYOUT_FIX */
.ilh-contact-bottom-wrap{
  margin-top: 0;
  margin-bottom: 34px;
}

.ilh-contact-bottom-card{
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 30px;
}

.phase4b-contact-expansion{
  margin: 0;
  padding: 0;
}

.phase4b-contact-expansion h2:first-child{
  margin-top: 0;
}

.phase4b-contact-expansion p,
.phase4b-contact-expansion li{
  color: var(--ilh-muted);
  line-height: 1.82;
}

.phase4b-contact-expansion ul{
  margin: 10px 0 0;
  padding-left: 22px;
}

.phase4b-contact-expansion .mini-links{
  margin-top: 18px;
}

.contact-shell + .ilh-content-wrap.ilh-contact-bottom-wrap,
.ilh-contact-support-block + .ilh-content-wrap.ilh-contact-bottom-wrap{
  margin-top: -6px;
}

@media (max-width: 640px){
  .ilh-contact-bottom-card{
    padding: 22px;
  }
}

/* GUIDE_PAGE_POLISH */
body{
  background:#06090c;
  color:#eaf2f8;
}

main.ilh-content-wrap{
  padding-top: 8px;
  padding-bottom: 28px;
}

.ilh-main-copy h1{
  color: var(--ilh-text);
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.ilh-main-copy > p:first-of-type{
  font-size: 1.04rem;
  color: var(--ilh-muted);
}

.ilh-main-copy strong{
  color: var(--ilh-text);
}

.ilh-main-copy ul{
  margin: 10px 0 0;
  padding-left: 22px;
}

.ilh-main-copy li{
  margin-bottom: 8px;
}

.ilh-main-copy .ilh-mini-links{
  margin-top: 24px;
}

/* SITE_CHROME_DRAWER_UPGRADE */
.nav-desktop{display:flex}
.drawer-toggle{
  display:none;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid var(--ilh-line, rgba(255,255,255,.12));
  border-radius:14px;
  background:rgba(255,255,255,.04);
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column;
  cursor:pointer;
}
.drawer-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:99px;
  background:currentColor;
}

.mobile-drawer[hidden]{display:none !important}
.mobile-drawer{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(3,8,20,.58);
  backdrop-filter:blur(8px);
}
.mobile-drawer-panel{
  position:absolute;
  top:0;
  right:0;
  width:min(88vw, 360px);
  height:100%;
  background:linear-gradient(180deg, rgba(10,16,24,.98), rgba(8,12,20,.98));
  border-left:1px solid rgba(255,255,255,.08);
  box-shadow:-20px 0 60px rgba(0,0,0,.35);
  padding:18px 18px 24px;
  overflow:auto;
}
.mobile-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
  color:var(--ilh-text, #eef6fb);
}
.drawer-close{
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:inherit;
  font-size:1.5rem;
  cursor:pointer;
}
.mobile-drawer-nav{
  display:grid;
  gap:8px;
}
.mobile-drawer-nav a{
  display:block;
  padding:14px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  text-decoration:none;
  color:var(--ilh-text, #eef6fb);
  background:rgba(255,255,255,.03);
}
.mobile-drawer-nav a:hover{
  background:rgba(255,255,255,.06);
}

.guide-shell{
  min-height:calc(100vh - 220px);
}

@media (max-width: 860px){
  .nav-desktop{display:none !important}
  .drawer-toggle{display:flex}
}

/* CONTACT_RUNTIME_POLISH */
.contact-shell-page{
  min-height: calc(100vh - 220px);
}

.contact-shell-page .ilh-content-wrap,
.contact-shell-page .ilh-contact-bottom-wrap{
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.contact-shell-page .ilh-contact-support-block{
  margin-top: 28px;
}

.contact-shell-page .ilh-contact-bottom-card{
  width: 100%;
}

.contact-shell-page .ilh-mini-links,
.contact-shell-page .mini-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px){
  .contact-shell-page .ilh-content-wrap,
  .contact-shell-page .ilh-contact-bottom-wrap{
    width: min(100%, calc(100% - 18px));
  }
}

/* COMPARISON_PAGES_POLISH */
.article-prose h2 + p,
.article-prose h3 + p{
  margin-top:8px;
}

.article-prose h2{
  margin-top:30px;
}

.article-prose ul,
.article-prose ol{
  padding-left:22px;
  color:var(--ilh-muted, #b8c0cc);
}

.article-prose p,
.article-prose li{
  line-height:1.82;
}

.article-prose{
  max-width:920px;
  margin:0 auto;
}

@media (max-width: 640px){
  .article-prose{
    padding:22px;
  }
}

/* PHASE 8 FOOTER NETWORK ROW */
.footer-network-row{
  padding:0 0 28px;
}
.footer-network-note{
  margin:0;
  font-size:.95rem;
  opacity:.92;
  text-align:center;
}
.footer-network-note a{
  font-weight:600;
}

/* PHASE 9 INTENT + FOOTER POLISH */
.footer-credit{
  margin-left: 8px;
}
.footer-credit a{
  font-weight: 600;
}
.lookup-next-links{
  display: grid;
  gap: 12px;
}

/* PHASE 10 DESKTOP NAV POLISH */
@media (min-width: 1100px) {
  .site-header .wrap,
  .header-inner,
  .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .site-header nav,
  .site-nav,
  .top-nav,
  .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: auto;
  }

  .site-header nav a,
  .site-nav a,
  .top-nav a,
  .main-nav a {
    white-space: nowrap;
    line-height: 1.1;
  }

  .site-header .logo,
  .site-header .brand,
  .site-brand {
    flex: 0 0 auto;
  }
}

/* Slightly tighter desktop range before full mobile drawer kicks in */
@media (min-width: 1100px) and (max-width: 1320px) {
  .site-header nav,
  .site-nav,
  .top-nav,
  .main-nav {
    gap: 8px;
  }

  .site-header nav a,
  .site-nav a,
  .top-nav a,
  .main-nav a {
    font-size: 0.95rem;
  }
}


/* PHASE19_BREADCRUMBS */
.section-breadcrumbs{padding:18px 0 0}
.page-breadcrumbs{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
.page-breadcrumbs a{color:var(--muted);text-decoration:none}
.page-breadcrumbs a:hover{color:var(--text)}

/* PHASE11C_DESKTOP_NAV_POLISH */
@media (min-width: 1025px){
  .site-header{
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .site-header .wrap,
  .header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
  }

  .nav-desktop,
  .site-header nav,
  .site-nav,
  .top-nav,
  .main-nav,
  .nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:nowrap;
    gap:10px;
    min-width:0;
  }

  .site-header nav a,
  .site-nav a,
  .top-nav a,
  .main-nav a,
  .nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    line-height:1;
    padding:10px 14px;
    border-radius:999px;
    font-size:14px;
  }

  .site-header .logo,
  .site-header .brand{
    flex:0 0 auto;
    white-space:nowrap;
  }
}

/* Slightly tighter desktop range before mobile drawer */
@media (min-width: 1025px) and (max-width: 1320px){
  .nav-desktop,
  .site-header nav,
  .site-nav,
  .top-nav,
  .main-nav,
  .nav{
    gap:8px;
  }

  .site-header nav a,
  .site-nav a,
  .top-nav a,
  .main-nav a,
  .nav a{
    padding:9px 11px;
    font-size:13px;
  }
}


/* PHASE11D_DESKTOP_NAV_REFINEMENT */
@media (min-width: 1025px){
  .nav-desktop,
  .site-header nav,
  .site-nav,
  .top-nav,
  .main-nav,
  .nav{
    gap:12px;
  }

  .site-header nav a,
  .site-nav a,
  .top-nav a,
  .main-nav a,
  .nav a{
    font-weight:600;
    letter-spacing:.01em;
    padding:10px 15px;
  }
}

@media (min-width: 1025px) and (max-width: 1320px){
  .site-header nav a,
  .site-nav a,
  .top-nav a,
  .main-nav a,
  .nav a{
    padding:9px 12px;
    font-size:13px;
  }
}


/* PHASE21_BREADCRUMB_POLISH */
.section-breadcrumbs{
  padding:18px 0 0;
}
.page-breadcrumbs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
}
.page-breadcrumbs a{
  color:var(--muted);
  text-decoration:none;
}
.page-breadcrumbs a:hover{
  color:var(--text);
}


/* PHASE22_BREADCRUMB_TWEAK */
.page-breadcrumbs span:last-child{
  color:var(--text);
  font-weight:600;
}


/* PHASE24_EDITORIAL_HOME_SUPPORT */
.section-intro{
  max-width: 78ch;
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-card.glass p + p{
  margin-top: 14px;
}

@media (max-width: 768px){
  .section-intro{
    font-size: .98rem;
    line-height: 1.7;
    margin: 10px 0 22px;
  }
}



/* PHASE26_HOMEPAGE_DENSITY_REDUCTION */
.phase26-next-steps{
  padding-top:24px;
}

.homepage main section + section{
  margin-top:0;
}

.homepage .card-grid,
.homepage .grid,
.homepage .two-col,
.homepage .three-col,
.homepage .four-col{
  gap:16px;
}

.homepage .section{
  padding-top:36px;
  padding-bottom:36px;
}

.homepage h2{
  margin-bottom:14px;
}

.homepage p{
  margin-bottom:12px;
}

@media (max-width: 768px){
  .homepage .section{
    padding-top:24px;
    padding-bottom:24px;
  }

  .homepage .card-grid,
  .homepage .grid,
  .homepage .two-col,
  .homepage .three-col,
  .homepage .four-col{
    gap:12px;
  }
}



/* PHASE28_TIGHTER_HOME_AND_CARD_BALANCE */
.section-intro,
.section > p,
.section > .lede{
  max-width:72ch;
}

.card,
.glass,
.panel,
.lookup-form,
.result-card,
.table-card,
.metric-card,
.hero-card,
.hero-panel{
  padding:clamp(16px, 2.2vw, 24px);
}

.card p,
.glass p,
.panel p{
  line-height:1.62;
}

.card-grid,
.grid,
.two-col,
.three-col,
.four-col,
.hero-grid{
  gap:16px;
}

.section h2{
  margin-bottom:10px;
}

.section h3{
  margin-bottom:8px;
}

.section .text-link{
  font-weight:600;
}

.hero .lookup-form,
.hero .hero-card,
.hero .hero-panel{
  margin-top:6px;
}

@media (max-width: 768px){
  .card,
  .glass,
  .panel,
  .lookup-form,
  .result-card,
  .table-card,
  .metric-card,
  .hero-card,
  .hero-panel{
    padding:14px;
  }

  .card-grid,
  .grid,
  .two-col,
  .three-col,
  .four-col,
  .hero-grid{
    gap:12px;
  }

  .section h2{
    margin-bottom:8px;
  }
}


/* PHASE29_HOME_COPY_POLISH_SUPPORT */
.hero h1,
.hero .hero-title,
.hero-copy h1{
  max-width: 12ch;
  letter-spacing:-0.02em;
}

.hero p,
.hero .lede,
.hero-copy p{
  max-width: 66ch;
}

.section .card h3,
.section .glass h3{
  line-height:1.22;
}

.section .card p,
.section .glass p{
  color:var(--muted);
}

.section .text-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

@media (max-width: 768px){
  .hero h1,
  .hero .hero-title,
  .hero-copy h1{
    max-width:none;
  }

  .hero p,
  .hero .lede,
  .hero-copy p{
    max-width:none;
  }
}


/* PHASE30_META_AND_HUB_CLEANUP */
.hero p,
.hero-copy p,
.section-intro,
.lede{
  text-wrap: pretty;
}

.page-breadcrumbs{
  margin-bottom: 18px;
}

.card h3,
.glass h3{
  text-wrap: balance;
}

table,
pre,
code,
.lookup-form,
.result-card,
.table-card{
  max-width:100%;
}

pre,
code{
  overflow-x:auto;
}


/* PHASE36_ADSENSE_QUALITY_PASS */
.editorial-note,
.calm-note{
  margin-top:18px;
  padding:18px 20px;
  border:1px solid rgba(79,137,179,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(242,248,252,.95));
  border-radius:18px;
  box-shadow:0 8px 24px rgba(33,49,64,.05);
}

.editorial-note h3,
.calm-note h3{
  margin:0 0 8px;
  font-size:1rem;
}

.editorial-note p,
.calm-note p{
  margin:0;
  color:var(--muted);
}

.page-breadcrumbs{
  margin-bottom:16px;
}

.card p,
.glass p,
.panel p{
  max-width:70ch;
}

@media (max-width: 768px){
  .editorial-note,
  .calm-note{
    padding:16px;
    border-radius:16px;
  }
}


/* PHASE37_FORM_VISIBILITY_AND_THIN_PAGE_UPGRADE */
:root{
  --field-bg:#ffffff;
  --field-bg-focus:#ffffff;
  --field-border:#b8c8d6;
  --field-border-strong:#86a9c4;
  --field-text:#213140;
  --field-placeholder:#64798d;
  --field-shadow:0 6px 18px rgba(40,68,95,.06);
  --field-shadow-focus:0 0 0 4px rgba(98,181,232,.16);
}

input,
select,
textarea,
button{
  font:inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
textarea,
select,
.lookup-form input,
.lookup-form textarea,
.lookup-form select,
.hero input,
.hero textarea,
.hero select,
.generator input,
.generator textarea,
.generator select,
form input[type="text"],
form input[type="search"],
form textarea,
form select{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  background:var(--field-bg);
  color:var(--field-text);
  border:1.5px solid var(--field-border);
  border-radius:16px;
  padding:16px 18px;
  line-height:1.45;
  box-shadow:var(--field-shadow);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

input::placeholder,
textarea::placeholder,
.lookup-form input::placeholder,
.lookup-form textarea::placeholder{
  color:var(--field-placeholder);
  opacity:1;
}

input:focus,
textarea:focus,
select:focus,
.lookup-form input:focus,
.lookup-form textarea:focus,
.lookup-form select:focus,
.hero input:focus,
.hero textarea:focus,
.hero select:focus{
  outline:none;
  background:var(--field-bg-focus);
  border-color:var(--field-border-strong);
  box-shadow:var(--field-shadow), var(--field-shadow-focus);
}

label{
  display:inline-block;
  margin-bottom:8px;
  font-weight:600;
  color:var(--text);
}

.lookup-form,
.generator,
.hero form,
.section form{
  width:100%;
  max-width:100%;
  min-width:0;
}

.lookup-form > *,
.generator > *,
.hero form > *,
.section form > *{
  min-width:0;
}

.lookup-form .row,
.lookup-form .grid,
.lookup-form .form-row,
.generator .row,
.generator .grid,
.generator .form-row{
  width:100%;
  max-width:100%;
  min-width:0;
}

.lookup-form button,
.generator button,
.hero button,
form button{
  white-space:nowrap;
}

pre,
code,
table,
.result-card,
.table-card,
.lookup-form,
.generator,
.hero-card,
.hero-panel{
  max-width:100%;
  overflow-x:auto;
}

@media (max-width: 768px){
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="url"],
  input[type="number"],
  input[type="tel"],
  textarea,
  select,
  .lookup-form input,
  .lookup-form textarea,
  .lookup-form select,
  .hero input,
  .hero textarea,
  .hero select,
  .generator input,
  .generator textarea,
  .generator select,
  form input[type="text"],
  form input[type="search"],
  form textarea,
  form select{
    padding:15px 16px;
    border-radius:14px;
  }

  .lookup-form .row,
  .lookup-form .grid,
  .lookup-form .form-row,
  .generator .row,
  .generator .grid,
  .generator .form-row,
  .hero-grid,
  .two-col,
  .three-col,
  .four-col{
    grid-template-columns:1fr !important;
  }

  .lookup-form button,
  .generator button,
  .hero button,
  form button{
    width:100%;
  }
}


/* PHASE38_TRUST_AND_POLICY_POLISH */
.editorial-note,
.calm-note{
  background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(247,251,253,.96) 100%);
  border:1px solid var(--line);
  border-radius:20px;
  padding:clamp(18px, 2.5vw, 28px);
  box-shadow:var(--shadow-soft);
}

.editorial-note h3,
.calm-note h3{
  margin:0 0 10px;
}

.editorial-note p:last-child,
.calm-note p:last-child{
  margin-bottom:0;
}

.page-breadcrumbs{
  font-size:14px;
  color:var(--muted);
}

.page-breadcrumbs a{
  color:var(--accent-strong);
  text-decoration:none;
}

.page-breadcrumbs a:hover{
  text-decoration:underline;
}



/* PHASE40B_CONSOLIDATED_THEME_AND_LEGAL_FIX */
:root{
  --bg:#eef3f7;
  --bg-soft:#f7fafc;
  --surface:#ffffff;
  --surface-soft:#f8fbfd;
  --text:#223545;
  --muted:#5a6f81;
  --line:#d6e0e8;
  --line-strong:#c4d2dd;
  --accent:#5c93ba;
  --accent-strong:#44789e;
  --accent-soft:#e8f2f8;
  --success-soft:#edf7f2;
  --field-bg:#ffffff;
  --field-bg-focus:#ffffff;
  --field-border:#b8c8d6;
  --field-border-strong:#86a9c4;
  --field-text:#213140;
  --field-placeholder:#64798d;
  --field-shadow:0 6px 18px rgba(40,68,95,.06);
  --field-shadow-focus:0 0 0 4px rgba(98,181,232,.16);
  --shadow-soft:0 12px 34px rgba(39,62,84,.07);
  --shadow-card:0 10px 26px rgba(36,58,79,.06);
}

html{
  background:var(--bg);
  overflow-x:hidden;
  scrollbar-gutter:stable;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(114,170,205,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(170,201,224,.08), transparent 24%),
    linear-gradient(180deg, #f7fbfd 0%, #eef3f7 100%);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}

*{
  box-sizing:border-box;
}

.wrap{
  width:min(1180px, calc(100% - 32px));
  margin-inline:auto;
}

.site-header{
  background:rgba(248,251,253,.90);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(199,214,225,.78);
  box-shadow:0 6px 18px rgba(38,63,87,.05);
}

.card,
.glass,
.panel,
.lookup-form,
.result-card,
.table-card,
.metric-card,
.hero-card,
.hero-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,251,253,.98) 100%);
  border:1px solid var(--line);
  box-shadow:var(--shadow-card);
}

input,
select,
textarea,
button{
  font:inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
textarea,
select,
.lookup-form input,
.lookup-form textarea,
.lookup-form select,
.hero input,
.hero textarea,
.hero select,
.generator input,
.generator textarea,
.generator select,
form input[type="text"],
form input[type="search"],
form textarea,
form select{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  background:var(--field-bg);
  color:var(--field-text);
  border:1.5px solid var(--field-border);
  border-radius:16px;
  padding:16px 18px;
  line-height:1.45;
  box-shadow:var(--field-shadow);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

input::placeholder,
textarea::placeholder,
.lookup-form input::placeholder,
.lookup-form textarea::placeholder{
  color:var(--field-placeholder);
  opacity:1;
}

input:focus,
textarea:focus,
select:focus,
.lookup-form input:focus,
.lookup-form textarea:focus,
.lookup-form select:focus,
.hero input:focus,
.hero textarea:focus,
.hero select:focus{
  outline:none;
  background:var(--field-bg-focus);
  border-color:var(--field-border-strong);
  box-shadow:var(--field-shadow), var(--field-shadow-focus);
}

label{
  display:inline-block;
  margin-bottom:8px;
  font-weight:600;
  color:var(--text);
}

/* Legal / trust page readability */
body:has(main .page-breadcrumbs),
body:has(.static-page),
body:has(.page-shell){
  color:var(--text);
}

.page-shell .wrap,
.static-page .wrap,
main .wrap{
  width:min(1040px, calc(100% - 32px));
}

.page-shell article,
.page-shell .article-card,
.page-shell .content-card,
.page-shell .legal-card,
.static-page article,
.static-page .article-card,
.static-page .content-card,
.static-page .legal-card{
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,252,254,.99) 100%);
  border:1px solid rgba(193,208,220,.95);
  border-radius:24px;
  box-shadow:0 16px 44px rgba(33,49,64,.08);
  padding:clamp(24px, 3vw, 40px);
}

.page-shell h1,
.static-page h1,
main h1{
  color:#243746;
  font-size:clamp(34px, 5vw, 54px);
  line-height:1.05;
  letter-spacing:-0.03em;
  margin-bottom:18px;
}

.page-shell h2,
.static-page h2,
main h2{
  color:#2d4354;
  font-size:clamp(24px, 3vw, 32px);
  line-height:1.15;
  margin-top:34px;
  margin-bottom:14px;
}

.page-shell h3,
.static-page h3,
main h3{
  color:#355062;
  line-height:1.2;
  margin-top:24px;
  margin-bottom:10px;
}

.page-shell p,
.page-shell li,
.static-page p,
.static-page li,
main p,
main li{
  color:#465d6f;
  font-size:18px;
  line-height:1.78;
}

.page-shell p,
.static-page p,
main p{
  max-width:74ch;
}

.page-shell .section-intro,
.static-page .section-intro,
main .section-intro{
  color:#536b7c;
  font-size:20px;
  line-height:1.72;
  max-width:72ch;
  margin-bottom:20px;
}

.page-shell .page-breadcrumbs,
.static-page .page-breadcrumbs,
main .page-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color:#5c7486;
  font-size:14px;
  margin-bottom:18px;
}

.page-shell .page-breadcrumbs a,
.static-page .page-breadcrumbs a,
main .page-breadcrumbs a{
  color:#46789d;
  text-decoration:none;
  font-weight:600;
}

.page-shell .page-breadcrumbs a:hover,
.static-page .page-breadcrumbs a:hover,
main .page-breadcrumbs a:hover{
  text-decoration:underline;
}

@media (max-width: 900px){
  .wrap{
    width:min(100%, calc(100% - 22px));
  }

  .page-shell article,
  .page-shell .article-card,
  .page-shell .content-card,
  .page-shell .legal-card,
  .static-page article,
  .static-page .article-card,
  .static-page .content-card,
  .static-page .legal-card{
    padding:20px 16px;
    border-radius:20px;
  }

  .page-shell p,
  .page-shell li,
  .static-page p,
  .static-page li,
  main p,
  main li{
    font-size:16px;
    line-height:1.72;
  }

  .page-shell .section-intro,
  .static-page .section-intro,
  main .section-intro{
    font-size:18px;
  }
}


/* PHASE41_MOBILE_RESULT_OVERFLOW_FIX */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

main,
section,
article,
.wrap,
.card,
.glass,
.panel,
.lookup-form,
.result-card,
.table-card,
.metric-card,
.hero-card,
.hero-panel,
.hero-grid,
.card-grid,
.grid,
.two-col,
.three-col,
.four-col{
  min-width:0;
}

.card *,
.glass *,
.panel *,
.lookup-form *,
.result-card *,
.table-card *,
.metric-card *,
.hero-card *,
.hero-panel *{
  min-width:0;
}

p,
li,
dd,
dt,
td,
th,
span,
small,
strong,
em,
a,
code,
pre,
samp,
kbd{
  overflow-wrap:anywhere;
  word-wrap:break-word;
  word-break:break-word;
}

pre,
code,
samp,
kbd{
  white-space:pre-wrap;
}

table{
  width:100%;
  max-width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}

td,
th{
  vertical-align:top;
}

img,
svg,
canvas,
iframe{
  max-width:100%;
  height:auto;
}

.result-card,
.table-card,
.lookup-form,
.card,
.glass,
.panel{
  overflow-x:hidden;
}

@media (max-width: 768px){
  .wrap{
    width:min(100%, calc(100% - 18px));
  }

  table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  pre{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .hero-grid,
  .card-grid,
  .grid,
  .two-col,
  .three-col,
  .four-col{
    grid-template-columns:minmax(0,1fr) !important;
  }

  .lookup-form,
  .result-card,
  .table-card,
  .card,
  .glass,
  .panel{
    padding:14px;
  }

  input,
  textarea,
  select,
  button{
    max-width:100%;
  }
}



/* PHASE42_MOBILE_LOOKUP_UI_FIX */

/* Safer defaults for tool forms and result actions */
.lookup-form,
.tool-form,
.hero-search,
.hero-search-form,
.result-actions,
.tool-actions,
.copy-actions,
.example-chips,
.examples,
.hero-search-input-wrap{
  min-width:0;
}

.lookup-form button,
.tool-form button,
.hero-search button,
.hero-search-form button,
.result-actions button,
.tool-actions button,
.copy-actions button{
  white-space:normal;
  line-height:1.2;
}

/* Mobile-first repair for stacked lookup UI */
@media (max-width: 768px){

  .hero h1,
  .hero .hero-title,
  .hero-copy h1{
    max-width:none !important;
    font-size:clamp(2.1rem, 9vw, 3.2rem) !important;
    line-height:1.02 !important;
  }

  .hero p,
  .hero .lede,
  .hero-copy p,
  .section-intro{
    max-width:none !important;
  }

  .lookup-form,
  .tool-form,
  .hero-search,
  .hero-search-form{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
  }

  .hero-search-input-wrap,
  .lookup-form .input-wrap,
  .tool-form .input-wrap{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    order:2;
  }

  .hero-search input,
  .hero-search textarea,
  .hero-search select,
  .hero-search-input-wrap input,
  .lookup-form input,
  .tool-form input{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    font-size:16px !important;
    padding:16px 16px !important;
  }

  .hero-search button[type="submit"],
  .lookup-form button[type="submit"],
  .tool-form button[type="submit"],
  .hero-search .btn,
  .lookup-form .btn,
  .tool-form .btn{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    justify-content:center !important;
    padding:14px 16px !important;
    order:3;
  }

  .examples,
  .example-chips,
  .hero-search .examples{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    order:1;
    margin:0 0 2px 0 !important;
  }

  .examples strong,
  .examples-label,
  .example-chips-label{
    width:100% !important;
    display:block !important;
    margin:0 0 2px 0 !important;
  }

  .examples a,
  .examples button,
  .example-chips a,
  .example-chips button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    max-width:100% !important;
    min-height:42px !important;
    padding:10px 14px !important;
    border-radius:999px !important;
  }

  .result-actions,
  .tool-actions,
  .copy-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    margin-top:14px !important;
  }

  .result-actions > *,
  .tool-actions > *,
  .copy-actions > *{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .result-actions button,
  .tool-actions button,
  .copy-actions button,
  .result-actions a,
  .tool-actions a,
  .copy-actions a{
    display:flex !important;
    width:100% !important;
    justify-content:center !important;
    align-items:center !important;
    min-height:46px !important;
    padding:12px 14px !important;
    text-align:center !important;
  }

  .result-card,
  .table-card,
  .panel,
  .glass,
  .card{
    overflow:hidden !important;
  }

  .result-card table,
  .table-card table{
    display:block !important;
    width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .result-card pre,
  .table-card pre,
  .result-card code,
  .table-card code{
    white-space:pre-wrap !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }

  /* Common vertical pill/stack bug fix */
  .result-card .pill,
  .result-card .chip,
  .result-card .badge,
  .table-card .pill,
  .table-card .chip,
  .table-card .badge{
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    white-space:normal !important;
    height:auto !important;
    min-height:0 !important;
  }

  /* Prevent weird left-floating controls */
  .result-actions *,
  .tool-actions *,
  .copy-actions *,
  .examples *,
  .example-chips *{
    float:none !important;
  }
}



/* PHASE42B_TARGETED_TOOL_MOBILE_FIX */
@media (max-width: 768px){

  /* Common tool hero search layouts */
  .hero form,
  .tool-hero form,
  .lookup-hero form,
  .hero .lookup-form,
  .hero .tool-form,
  .hero .hero-search-form,
  .hero .hero-search{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    align-items:stretch !important;
  }

  .hero form > *,
  .tool-hero form > *,
  .lookup-hero form > *,
  .hero .lookup-form > *,
  .hero .tool-form > *,
  .hero .hero-search-form > *,
  .hero .hero-search > *{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  /* input always first full row */
  .hero input[type="text"],
  .hero input[type="search"],
  .hero input[type="url"],
  .hero input[type="email"],
  .tool-hero input[type="text"],
  .lookup-hero input[type="text"],
  .lookup-form input[type="text"],
  .lookup-form input[type="search"],
  .tool-form input[type="text"],
  .tool-form input[type="search"]{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  /* buttons full width and no absolute positioning */
  .hero button,
  .tool-hero button,
  .lookup-hero button,
  .lookup-form button,
  .tool-form button,
  .hero .btn,
  .lookup-form .btn,
  .tool-form .btn{
    position:static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    width:100% !important;
    max-width:100% !important;
    min-height:46px !important;
    margin:0 !important;
  }

  /* examples block */
  .hero .examples,
  .tool-hero .examples,
  .lookup-hero .examples,
  .lookup-form .examples,
  .tool-form .examples,
  .hero .example-chips,
  .lookup-form .example-chips,
  .tool-form .example-chips{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    margin:0 !important;
  }

  .hero .examples > strong,
  .hero .examples > span,
  .tool-hero .examples > strong,
  .tool-hero .examples > span,
  .lookup-form .examples > strong,
  .lookup-form .examples > span,
  .tool-form .examples > strong,
  .tool-form .examples > span{
    display:block !important;
    width:100% !important;
    flex:0 0 100% !important;
    margin:0 !important;
  }

  .hero .examples a,
  .hero .examples button,
  .tool-hero .examples a,
  .tool-hero .examples button,
  .lookup-form .examples a,
  .lookup-form .examples button,
  .tool-form .examples a,
  .tool-form .examples button,
  .hero .example-chips a,
  .hero .example-chips button,
  .lookup-form .example-chips a,
  .lookup-form .example-chips button,
  .tool-form .example-chips a,
  .tool-form .example-chips button{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    white-space:nowrap !important;
    padding:10px 14px !important;
    border-radius:999px !important;
  }

  /* result action buttons and copy buttons */
  .result-actions,
  .copy-actions,
  .tool-actions,
  .json-actions,
  .raw-actions,
  .summary-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    margin-top:14px !important;
  }

  .result-actions a,
  .result-actions button,
  .copy-actions a,
  .copy-actions button,
  .tool-actions a,
  .tool-actions button,
  .json-actions a,
  .json-actions button,
  .raw-actions a,
  .raw-actions button,
  .summary-actions a,
  .summary-actions button{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:46px !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    white-space:normal !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    border-radius:14px !important;
    padding:12px 14px !important;
  }

  /* kill pill-like vertical stacks from generic button/chip classes inside results */
  .result-card .pill,
  .result-card .chip,
  .result-card .badge,
  .result-card .btn,
  .result-card .button,
  .table-card .pill,
  .table-card .chip,
  .table-card .badge,
  .table-card .btn,
  .table-card .button{
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    white-space:normal !important;
    width:100% !important;
    max-width:100% !important;
    min-height:46px !important;
    height:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  /* result data blocks */
  .result-card,
  .table-card,
  .metric-card,
  .lookup-results,
  .lookup-output,
  .tool-output,
  .json-output,
  .raw-output{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  .lookup-results *,
  .lookup-output *,
  .tool-output *,
  .json-output *,
  .raw-output *{
    min-width:0 !important;
  }

  .lookup-results pre,
  .lookup-output pre,
  .tool-output pre,
  .json-output pre,
  .raw-output pre,
  .lookup-results code,
  .lookup-output code,
  .tool-output code,
  .json-output code,
  .raw-output code{
    white-space:pre-wrap !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }
}





/* PHASE44_REAL_TOOL_MOBILE_LAYOUT_FIX */

/* Base tool page layout hardening */
.tool-shell,
.tool-form,
.tool-helper,
.result-panel,
.result-actions,
.summary-grid,
.result-section,
.result-list,
.result-dl,
.raw-wrap,
.copy-btn,
.example-chip{
  min-width:0;
}

.tool-form input,
.tool-form button,
.example-chip,
.copy-btn{
  font:inherit;
}

/* Desktop/tablet sane defaults */
.tool-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}

.tool-form input{
  min-width:0;
  width:100%;
}

.tool-form button[type="submit"]{
  white-space:nowrap;
}

.tool-helper{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:14px;
}

.tool-helper strong{
  flex:0 0 auto;
  margin-right:4px;
}

.example-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  max-width:100%;
  white-space:nowrap;
}

.result-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.copy-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  max-width:100%;
  white-space:nowrap;
}

.summary-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.summary-card,
.result-section,
.result-panel .empty-state,
.raw-wrap{
  min-width:0;
}

.result-section pre,
.result-panel pre,
.raw-pre,
.result-list pre,
.result-dl dd,
.result-dl dt,
.result-section code,
.result-panel code{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.raw-pre,
.result-list pre,
.result-panel pre{
  white-space:pre-wrap;
}

/* Mobile exact fix for the real tool page */
@media (max-width: 768px){

  .tool-shell{
    overflow:hidden;
  }

  .tool-form{
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    align-items:stretch !important;
  }

  .tool-form input{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    font-size:16px !important;
    padding:16px 16px !important;
    margin:0 !important;
  }

  .tool-form button[type="submit"]{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    white-space:normal !important;
    margin:0 !important;
    justify-self:stretch !important;
  }

  .tool-helper{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    align-items:center !important;
    width:100% !important;
    margin-top:14px !important;
  }

  .tool-helper strong{
    width:100% !important;
    flex:0 0 100% !important;
    margin:0 !important;
  }

  .example-chip{
    flex:0 1 auto !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    white-space:nowrap !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    min-height:42px !important;
    padding:10px 14px !important;
  }

  .result-actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
    width:100% !important;
    margin-bottom:14px !important;
  }

  .result-actions > *{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .copy-btn{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:46px !important;
    white-space:normal !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    padding:12px 14px !important;
  }

  .summary-grid{
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
  }

  .summary-card{
    min-width:0 !important;
    overflow:hidden !important;
  }

  .summary-card strong,
  .summary-card span,
  .result-dl dd,
  .result-dl dt,
  .result-section li,
  .result-section p,
  .result-panel p,
  .result-panel a,
  .result-panel code,
  .result-panel pre{
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }

  .raw-wrap{
    overflow:hidden !important;
  }

  .raw-pre,
  .result-list pre,
  .result-panel pre{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow:auto !important;
    white-space:pre-wrap !important;
    -webkit-overflow-scrolling:touch;
  }
}



/* PHASE45_RESTRUCTURE_TOOL_MARKUP */
.tool-query-block{
  display:grid;
  gap:14px;
  margin-bottom:18px;
}

.tool-helper{
  display:grid;
  gap:10px;
}

.tool-helper strong{
  display:block;
  margin:0;
  color:var(--text);
}

.tool-helper-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

@media (max-width: 768px){
  .tool-query-block{
    gap:12px;
    margin-bottom:16px;
  }

  .tool-helper{
    gap:8px;
  }

  .tool-helper-chips{
    gap:8px;
  }

  .tool-helper-chips .example-chip{
    flex:0 1 auto;
    width:auto;
    max-width:100%;
  }
}



/* PHASE46_FIX_MOBILE_ACTION_STRIP */
@media (max-width: 768px){

  /* Entire query area becomes a simple vertical stack */
  .tool-query-block{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .tool-form{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .tool-form > *{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 12px 0 !important;
  }

  .tool-form > *:last-child{
    margin-bottom:0 !important;
  }

  .tool-form input[type="text"],
  .tool-form input[type="search"],
  .tool-form input[name="q"]{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .tool-form button[type="submit"]{
    display:block !important;
    position:static !important;
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    box-sizing:border-box !important;
    margin:0 !important;
  }

  .tool-helper{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-top:12px !important;
  }

  .tool-helper strong{
    display:block !important;
    width:100% !important;
    margin:0 0 10px 0 !important;
    padding:0 !important;
    border:0 !important;
    background:none !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }

  .tool-helper-chips{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
  }

  .tool-helper-chips .example-chip,
  .tool-helper .example-chip{
    display:inline-flex !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:40px !important;
    margin:0 !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
  }

  /* Result actions must stack cleanly */
  .result-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:10px !important;
    margin:0 0 14px 0 !important;
    padding:0 !important;
  }

  .result-actions::before,
  .result-actions::after{
    content:none !important;
    display:none !important;
  }

  .result-actions > *{
    display:flex !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    float:none !important;
    position:static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
  }

  .copy-btn,
  .result-actions .copy-btn,
  .result-actions button,
  .result-actions a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:46px !important;
    margin:0 !important;
    text-align:center !important;
    white-space:normal !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
  }

  /* Kill any hidden narrow column/pill leftovers */
  .tool-shell [style*="width:"],
  .tool-shell [style*="left:"],
  .tool-shell [style*="right:"],
  .tool-shell [style*="transform:"]{
    max-width:100% !important;
  }
}



/* PHASE47_FORCE_TOOL_SHELL_SINGLE_COLUMN_MOBILE */
@media (max-width: 768px){

  /* The real fix: collapse the whole tool shell to one column */
  .tool-shell{
    display:block !important;
    grid-template-columns:none !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:0 !important;
    overflow:hidden !important;
  }

  .tool-shell > *{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .tool-query-block{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 16px 0 !important;
    padding:0 !important;
  }

  .result-panel{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    clear:both !important;
  }

  /* Kill any column/span rules inherited from older layouts */
  .tool-shell,
  .tool-query-block,
  .result-panel,
  .tool-form,
  .tool-helper,
  .result-actions,
  .summary-grid{
    grid-column:auto !important;
    grid-row:auto !important;
    place-self:auto !important;
    align-self:auto !important;
    justify-self:auto !important;
  }

  /* Make sure form stays above results */
  .tool-form{
    display:block !important;
    width:100% !important;
    margin:0 !important;
  }

  .tool-form > *{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 12px 0 !important;
  }

  .tool-form > *:last-child{
    margin-bottom:0 !important;
  }

  .tool-form input[type="text"],
  .tool-form input[type="search"],
  .tool-form input[name="q"]{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    font-size:16px !important;
  }

  .tool-form button[type="submit"]{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    position:static !important;
    float:none !important;
    transform:none !important;
  }

  .tool-helper{
    display:block !important;
    width:100% !important;
    margin-top:12px !important;
  }

  .tool-helper-chips{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    width:100% !important;
  }

  .result-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:10px !important;
    margin:0 0 14px 0 !important;
  }

  .result-actions > *{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  .copy-btn{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    min-height:46px !important;
    white-space:normal !important;
  }
}



/* PHASE49_HOMEPAGE_COMPRESSION_AND_HEADING_CLEANUP */
.section .content-card + .content-card{
  margin-top: 0;
}

.section h2{
  text-wrap: balance;
}

.section .tool-copy,
.section .section-intro,
.hero .tool-copy,
.hero .section-intro{
  max-width: 66ch;
}

.lookup-next-links{
  gap: 12px;
}

@media (max-width: 768px){
  .section{
    padding: clamp(34px, 5vw, 56px) 0;
  }

  .lookup-next-links{
    gap: 10px;
  }

  .content-card,
  .glass,
  .card{
    padding: 16px !important;
  }
}



/* PHASE50_ADSENSE_READINESS_SWEEP */
.article-prose,
.content-card p,
.content-card li,
.content-card dd,
.content-card dt{
  line-height:1.72;
}

.affiliate-disclosure{
  color:var(--muted);
  font-size:.96rem;
}

.ad-label{
  font-weight:700;
  letter-spacing:.01em;
}

.ad-box{
  line-height:1.65;
}

@media (max-width: 768px){
  .article-prose,
  .content-card p,
  .content-card li,
  .content-card dd,
  .content-card dt{
    line-height:1.68;
  }
}



/* PHASE52_LOW_VALUE_CLEANUP_FIXES */
.lookup-next-links .cluster-link span{
  line-height:1.5;
}

.lookup-next-links .cluster-link strong{
  line-height:1.25;
}

.content-card p + p,
.article-prose p + p{
  margin-top:0.95em;
}

.tool-helper strong,
.result-section h3,
.content-card h2,
.content-card h3{
  text-wrap:balance;
}

@media (max-width: 768px){
  .lookup-next-links .cluster-link{
    padding:14px !important;
  }
}



/* PHASE53_TARGETED_QUALITY_SWEEP */
.lookup-next-links .cluster-link{
  align-items:flex-start;
}

.lookup-next-links .cluster-link span{
  max-width:58ch;
}

.content-grid .content-card p,
.article-prose p,
.content-card p{
  max-width:72ch;
}

@media (max-width: 768px){
  .lookup-next-links .cluster-link span{
    max-width:none;
  }
}



/* PHASE54_MANUAL_HOME_AND_HUB_SIMPLIFICATION */
.section-intro{
  max-width: 74ch;
  line-height: 1.7;
}

.lookup-next-links{
  align-items: stretch;
}

.lookup-next-links .cluster-link{
  min-height: 100%;
}

.content-card p,
.article-prose p{
  text-wrap: pretty;
}

@media (max-width: 768px){
  .section-intro{
    max-width: none;
  }
}



/* PHASE56_EXPAND_TRUST_PAGES */
.article-prose,
.article,
.content-card{
  hyphens:auto;
}

.article-prose p,
.article p,
.content-card p{
  max-width:74ch;
}

@media (max-width: 768px){
  .article-prose p,
  .article p,
  .content-card p{
    max-width:none;
  }
}



/* PHASE57_REINDEX_TRUST_AND_EXPAND_REMAINING_THIN_PAGES */
.article-prose p,
.content-card p,
.lookup-next-links .cluster-link span{
  text-wrap:pretty;
}

.lookup-next-links .cluster-link{
  align-items:flex-start;
}



/* PHASE58_FINAL_ADSENSE_POLISH */
.section-intro,
.tool-copy,
.article-prose p,
.content-card p{
  line-height:1.74;
}

.article-prose h2,
.article-prose h3,
.content-card h2,
.content-card h3{
  letter-spacing:-0.01em;
}

.affiliate-section .affiliate-head p,
.affiliate-disclosure{
  max-width:72ch;
}

@media (max-width: 768px){
  .section-intro,
  .tool-copy,
  .article-prose p,
  .content-card p{
    line-height:1.68;
  }
}

