/*
Theme Name: Romeo Juliet Law SF
Theme URI: https://romeoandjulietlaw.com/
Author: Editorial Team
Author URI: https://romeoandjulietlaw.com/about/
Description: Custom pure-code theme for Romeo and Juliet Law, following the statisticsfundamentals.com design system: white header, dark navy hero and footer, serif headings, blue-to-cyan gradient buttons, and tool-first pages. No page builder dependency.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rjl-sf
Tags: custom, law, education, tools
*/

:root{
  --white:#FFFFFF; --alt:#F8FAFC; --navy:#0F172A; --navy2:#1A294A; --ink:#0F172A;
  --body:#475569; --muted:#64748B; --blue:#2563EB; --sky:#60A5FA; --indigo:#4F46E5;
  --band:#EFF6FF; --lav:#F5F4FD; --lav2:#F6F6FE; --field:#F8FAFC; --border:#E2E8F0;
  --cyan:#12AAC9; --green:#17AD7B; --purple:#8D59F2; --orange:#CF7D14;
  --grad:linear-gradient(90deg,#3D60E0,#2488DB,#0FA7D6);
  --grad2:linear-gradient(90deg,#4F46E5,#2488DB,#0FA7D6);
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);color:var(--body);font-size:16.5px;line-height:1.65;background:var(--white)}
h1,h2,h3.serif{font-family:var(--serif);color:var(--ink);line-height:1.15;margin:0}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
button,[role="button"],select,summary,input:not([type="checkbox"]){min-height:2.25rem}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.eyebrow{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--indigo);background:var(--lav2);border:1px solid #DDD9F7;border-radius:999px;padding:6px 16px}
.sec-head{text-align:center;max-width:760px;margin:0 auto 44px}
.sec-head h2{font-size:34px;font-weight:800;margin:16px 0 12px}
.sec-head p{color:var(--muted);font-size:17px;margin:0}
section{padding:84px 0}
.alt{background:var(--alt)}
/* header */
header.site{position:sticky;top:0;z-index:60;background:var(--white);border-bottom:1px solid var(--border)}
.hbar{display:flex;align-items:center;gap:26px;height:72px}
.logo{display:flex;align-items:center;gap:11px;flex:none}
.logo-mark{width:40px;height:40px;border-radius:11px;background:var(--grad);display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;box-shadow:0 4px 14px rgba(37,99,235,.35)}
.logo-txt{font-weight:800;font-size:19px;color:var(--ink);white-space:nowrap}
.logo-txt b{color:var(--blue);font-weight:800}
nav.main{display:flex;gap:26px;margin-left:8px}
nav.main a{color:#1E293B;font-size:15px;font-weight:500;padding:10px 2px}
nav.main a:hover{color:var(--blue);text-decoration:none}
.hspace{flex:1}
.searchbox{display:flex;align-items:center;gap:8px;background:var(--field);border:1px solid var(--border);border-radius:10px;padding:0 12px;height:42px;width:230px}
.searchbox input{border:0;background:transparent;outline:none;font:inherit;font-size:14px;width:100%;min-height:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;font-family:var(--sans);font-weight:700;font-size:15px;border-radius:10px;padding:11px 22px;color:#fff;background:var(--grad);box-shadow:0 6px 18px rgba(37,99,235,.28)}
.btn:hover{text-decoration:none;filter:brightness(1.06)}
.btn.indigo{background:var(--grad2)}
.btn.ghost{background:transparent;border:1.5px solid rgba(255,255,255,.75);color:#fff;box-shadow:none}
.btn.sm{padding:8px 18px;font-size:14px}
.hbtns{display:flex;gap:10px;flex:none}
.burger{display:none;background:var(--field);border:1px solid var(--border);border-radius:10px;width:44px;height:44px;font-size:20px;cursor:pointer;color:var(--ink)}
.mmenu{display:none;border-top:1px solid var(--border);padding:12px 24px 18px;background:#fff}
.mmenu a{display:block;padding:11px 4px;color:var(--ink);font-weight:600;border-bottom:1px solid var(--alt)}
.mmenu.open{display:block}
/* hero */
.hero{background:var(--navy);color:#CBD5E1;position:relative;overflow:hidden;padding:74px 0 0}
.hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(96,165,250,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(96,165,250,.07) 1px,transparent 1px);background-size:56px 56px}
.hero:after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.4),transparent 65%);top:-200px;left:-120px}
.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.badge{display:inline-flex;gap:8px;align-items:center;border:1px solid rgba(96,165,250,.45);background:rgba(37,99,235,.16);color:#BFDBFE;font-size:11.5px;font-weight:700;letter-spacing:.13em;border-radius:999px;padding:7px 16px}
.badge .star{color:#FBBF24}
.hero h1{color:#fff;font-size:58px;font-weight:800;margin:22px 0 18px}
.hero h1 .sky{color:var(--sky)}
.hero .sub{font-size:18px;color:#A9B8CC;max-width:540px;margin:0 0 30px}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap}
.stats{display:flex;gap:0;margin-top:46px}
.stat{padding:0 30px;border-left:1px solid rgba(148,163,184,.3)}
.stat:first-child{padding-left:0;border-left:0}
.stat .n{font-family:var(--serif);font-weight:800;font-size:30px;color:#fff}
.stat .l{font-size:11px;letter-spacing:.13em;color:#8CA0B8;text-transform:uppercase;font-weight:600}
.hero-card{background:var(--navy2);border:1px solid rgba(96,165,250,.25);border-radius:18px;padding:28px;box-shadow:0 24px 50px rgba(0,0,0,.35)}
.hero-card .hc-t{font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;color:#8CA0B8;margin-bottom:20px}
.hbar-row{display:grid;grid-template-columns:64px 1fr 34px;align-items:center;gap:12px;margin-bottom:14px;font-size:13.5px;color:#CBD5E1}
.hbar-track{height:9px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden}
.hbar-fill{height:100%;border-radius:99px}
.fstrip{background:rgba(37,99,235,.14);border:1px solid rgba(96,165,250,.3);border-radius:9px;padding:11px 14px;font-family:var(--mono);font-size:13px;color:#93C5FD;margin-top:10px}
.jump{position:relative;z-index:2;margin-top:64px;background:rgba(255,255,255,.045);border-top:1px solid rgba(148,163,184,.18);padding:16px 0 22px}
.jump-in{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jump .jl{font-size:11px;letter-spacing:.15em;color:#8CA0B8;font-weight:700;margin-right:4px}
.jpill{background:rgba(255,255,255,.07);border:1px solid rgba(148,163,184,.3);color:#E2E8F0;border-radius:9px;padding:8px 15px;font-size:13.5px;font-weight:600;cursor:pointer;font-family:var(--sans)}
.jpill:hover{border-color:var(--sky);color:#fff}
/* cards grid */
.cards4{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.rcard{background:#fff;border:1px solid var(--border);border-radius:16px;padding:26px 22px;box-shadow:0 8px 24px rgba(15,23,42,.05);position:relative;overflow:hidden}
.rcard:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--stripe,var(--grad))}
.rcard .ic{width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:14px}
.rcard h3{font-size:20px;margin-bottom:8px}
.rcard p{font-size:14.5px;color:var(--muted);margin:0 0 16px;line-height:1.55}
.linkrow{display:flex;justify-content:space-between;align-items:center;background:var(--field);border:1px solid var(--border);border-radius:9px;padding:9px 13px;font-size:13.5px;font-weight:500;color:#1E293B;margin-bottom:8px;cursor:pointer;width:100%;text-align:left;font-family:var(--sans)}
.linkrow:hover{border-color:#BFDBFE;color:var(--blue)}
.linkrow span.arr{color:#94A3B8}
.viewall{font-weight:700;font-size:14px;display:inline-block;margin-top:8px}
/* topics band */
.topics-band{background:var(--navy);color:#CBD5E1}
.topics-grid{display:grid;grid-template-columns:230px 1fr;gap:36px;align-items:start}
.topics-band h2{color:#fff;font-size:32px}
.topics-band .tp{color:#94A3B8;font-size:15px}
.tlinks{display:flex;flex-wrap:wrap;gap:10px}
.tlink{background:rgba(255,255,255,.06);border:1px solid rgba(148,163,184,.28);color:#E2E8F0;border-radius:10px;padding:11px 16px;font-size:14px;font-weight:600;cursor:pointer;font-family:var(--sans);text-align:left}
.tlink small{color:#8CA0B8;font-weight:400;margin-left:6px}
.tlink:hover{border-color:var(--sky)}
/* definition cards */
.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.dcard{background:#fff;border:1px solid var(--border);border-top:4px solid var(--blue);border-radius:14px;padding:26px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.dcard .tag{display:inline-block;background:var(--band);color:var(--blue);font-family:var(--mono);font-size:12px;border-radius:6px;padding:4px 9px;margin-bottom:12px}
.dcard h3{font-size:20px;margin-bottom:10px}
.dcard p{font-size:15px;margin:0 0 14px}
.dcard p b{color:var(--ink)}
/* article */
.article{max-width:860px;margin:0 auto}
.byline{font-size:13.5px;color:var(--muted);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:12px 0;margin:22px 0 30px}
.article h3{font-size:22px;margin:34px 0 10px}
.article p{margin:0 0 14px}
.article ul{margin:0 0 16px;padding-left:22px}
.article li{margin-bottom:6px}
/* tables */
.tblwrap{border:1px solid var(--border);border-radius:14px;overflow:hidden;overflow-x:auto;box-shadow:0 8px 24px rgba(15,23,42,.05)}
table{border-collapse:collapse;width:100%;font-size:14.5px;background:#fff}
thead th{background:var(--navy);color:#fff;text-transform:uppercase;letter-spacing:.08em;font-size:12px;text-align:left;padding:13px 16px}
tbody td{padding:12px 16px;border-top:1px solid var(--border);color:var(--body);vertical-align:top}
tbody tr:nth-child(even){background:var(--alt)}
td .mono, .mono{font-family:var(--mono);color:var(--indigo);font-size:13.5px}
/* tabs */
.tabrow{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin-bottom:0}
.tab{border:1px solid var(--border);background:#fff;border-radius:999px;padding:10px 20px;font-weight:600;font-size:14.5px;color:var(--ink);cursor:pointer;font-family:var(--sans)}
.tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.tabpanel{background:#fff;border:1px solid var(--border);border-radius:16px;padding:30px;margin-top:22px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.tabpanel .cols2{display:grid;grid-template-columns:1fr 1fr;gap:6px 34px}
.tabpanel .cols2 a{display:block;padding:7px 0;border-bottom:1px dashed var(--border);font-weight:500}
/* steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.step{background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px}
.step .num{width:38px;height:38px;border-radius:50%;background:var(--grad);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.step h3{font-size:18px;margin-bottom:7px}
.step p{font-size:14.5px;color:var(--muted);margin:0}
/* faq */
.faq{max-width:860px;margin:0 auto}
.faq-item{background:#fff;border:1px solid var(--border);border-radius:12px;margin-bottom:12px;overflow:hidden}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:14px;background:none;border:0;padding:18px 22px;font-family:var(--sans);font-size:16px;font-weight:700;color:var(--ink);cursor:pointer;text-align:left}
.faq-q .pm{color:var(--blue);font-size:20px;flex:none}
.faq-a{display:none;padding:0 22px 18px;font-size:15px}
.faq-item.open .faq-a{display:block}
/* team */
.team-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:28px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.mono-av{width:58px;height:58px;border-radius:50%;background:var(--grad);color:#fff;font-family:var(--serif);font-weight:800;font-size:21px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.skill{display:inline-block;background:var(--field);border:1px solid var(--border);border-radius:999px;padding:4px 12px;font-size:12.5px;font-weight:600;color:var(--muted);margin:0 6px 6px 0}
/* directory */
.dir{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}
.dir h3{font-size:18px;margin-bottom:12px}
.dir a{display:block;padding:4px 0;font-size:14.5px}
/* citations */
.cite{background:var(--field);border:1px solid var(--border);border-radius:12px;padding:18px 20px;font-size:14px;margin-bottom:14px}
.cite b{display:block;color:var(--ink);margin-bottom:5px;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.greenpill{display:inline-block;background:#ECFDF5;color:#047857;border:1px solid #A7F3D0;border-radius:999px;padding:8px 18px;font-weight:700;font-size:14px}
/* footer */
footer.site{background:var(--navy);color:#94A3B8;padding:70px 0 0;margin-top:0}
.fgrid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:40px}
footer.site h4{color:#fff;font-size:15.5px;margin:0 0 14px;font-family:var(--sans)}
footer.site a{display:block;color:#A9B8CC;font-size:14px;padding:4px 0}
footer.site a:hover{color:#fff}
.fsub{display:flex;gap:8px;margin-top:12px}
.fsub input{flex:1;background:rgba(255,255,255,.07);border:1px solid rgba(148,163,184,.35);border-radius:9px;color:#fff;padding:10px 13px;font:inherit;font-size:14px;min-width:0}
.fbot{border-top:1px solid rgba(148,163,184,.2);margin-top:52px;padding:20px 0;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13.5px}
/* tool pages */
.crumb{font-size:13.5px;color:var(--muted);padding:20px 0 0}
.crumb a{color:var(--muted)}
.introband{background:var(--band);border-bottom:1px solid #DBEAFE;padding:34px 0 40px;margin-top:14px}
.toolpill{display:inline-block;border:1.5px solid #C7C2F5;color:var(--indigo);background:#fff;border-radius:999px;font-size:11.5px;font-weight:700;letter-spacing:.13em;padding:6px 15px}
.introband h1{font-size:42px;font-weight:800;margin:16px 0 12px;max-width:820px}
.introband .lead{font-size:17px;max-width:760px;color:var(--body)}
.checks{list-style:none;padding:0;margin:16px 0 0;display:flex;gap:8px 30px;flex-wrap:wrap}
.checks li{font-weight:600;color:var(--ink);font-size:15px}
.checks li:before{content:"✓";color:var(--indigo);font-weight:800;margin-right:8px}
.toolgrid{display:grid;grid-template-columns:2fr 1fr;gap:26px;align-items:start;padding:36px 0 10px}
.toolcard{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 12px 32px rgba(15,23,42,.07);overflow:hidden}
.toolcard .ttabs{display:flex;border-bottom:1px solid var(--border)}
.toolcard .ttabs button{flex:1;background:var(--alt);border:0;border-right:1px solid var(--border);padding:14px;font-family:var(--sans);font-weight:700;font-size:14.5px;color:var(--muted);cursor:pointer}
.toolcard .ttabs button.active{background:#fff;color:var(--ink);box-shadow:inset 0 -3px 0 var(--indigo)}
.toolbody{padding:26px}
.rulebox{background:var(--lav);border:1px solid #E3E0F8;border-radius:12px;padding:16px 18px;font-family:var(--mono);font-size:13.5px;color:var(--indigo);margin-bottom:22px;line-height:1.7}
.fgrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.fld label{display:block;font-size:12.5px;font-weight:700;color:var(--ink);margin-bottom:6px;letter-spacing:.02em}
.fld input,.fld select{width:100%;background:var(--field);border:1px solid var(--border);border-radius:10px;padding:11px 13px;font:inherit;font-size:15px;color:var(--ink)}
.ctlrow{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}
.btn.light{background:var(--field);color:var(--ink);border:1px solid var(--border);box-shadow:none}
.result{border-radius:12px;padding:20px 22px;font-size:15.5px}
.result.good{background:#ECFDF5;border:1px solid #A7F3D0;color:#065F46}
.result.bad{background:#FEF2F2;border:1px solid #FECACA;color:#991B1B}
.result.mid{background:#FFFBEB;border:1px solid #FDE68A;color:#92400E}
.result h3{font-family:var(--serif);font-size:21px;margin-bottom:6px;color:inherit}
.side .scard{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px;margin-bottom:20px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.side h3{font-size:18px;margin-bottom:12px}
.cta-card{background:var(--grad);border-radius:14px;padding:24px;color:#fff;margin-bottom:20px}
.cta-card h3{color:#fff}
.cta-card .btn{background:#fff;color:var(--blue);box-shadow:none;margin-top:10px}
.rellink{display:block;padding:7px 0;font-weight:600;font-size:14.5px}
.rellink:before{content:"›";color:var(--blue);font-weight:800;margin-right:8px}
.chips{display:flex;flex-wrap:wrap;gap:9px}
.chip{background:var(--lav2);border:1px solid #DDD9F7;color:var(--indigo);border-radius:999px;padding:8px 16px;font-size:13.5px;font-weight:600;cursor:pointer;font-family:var(--sans)}
.chip:hover{background:#ECEAFC}
.killer{display:flex;gap:12px;align-items:flex-start;background:var(--field);border:1px solid var(--border);border-radius:11px;padding:14px 16px;margin-bottom:10px;cursor:pointer;font-size:15px;color:var(--ink);font-weight:500}
.killer input{width:20px;height:20px;margin-top:2px;accent-color:var(--indigo);flex:none}
input[type=range]{width:100%;accent-color:var(--blue)}
.presetrow{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.mapgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
.maptile{border-radius:10px;padding:12px 6px;text-align:center;cursor:pointer;border:1px solid var(--border);font-family:var(--sans)}
.maptile .ab{font-weight:800;font-size:16px;color:var(--ink);display:block}
.maptile .ag{font-size:12px;color:var(--muted)}
.maptile.sel{outline:3px solid var(--indigo)}
.gapbar-row{display:grid;grid-template-columns:110px 1fr 90px;gap:14px;align-items:center;margin-bottom:16px;font-size:14.5px}
.gapbar-track{height:22px;background:var(--alt);border-radius:7px;overflow:hidden;border:1px solid var(--border)}
.gapbar-fill{height:100%}
.view{display:none}
.view.on{display:block}
.toast{background:#ECFDF5;border:1px solid #A7F3D0;color:#065F46;border-radius:10px;padding:12px 16px;font-weight:600;font-size:14.5px;margin-top:12px}
@media (max-width:1020px){
  .cards4{grid-template-columns:repeat(2,1fr)} .cards3,.steps{grid-template-columns:1fr 1fr}
  .hero-grid{grid-template-columns:1fr} .toolgrid{grid-template-columns:1fr}
  .dir{grid-template-columns:1fr 1fr} .fgrid{grid-template-columns:1fr 1fr}
  nav.main,.searchbox{display:none} .burger{display:block}
  .hero h1{font-size:42px} .topics-grid{grid-template-columns:1fr}
}
@media (max-width:620px){
  .cards4,.cards3,.steps,.fgrid3,.tabpanel .cols2{grid-template-columns:1fr}
  .hbtns{display:none} section{padding:56px 0} .hero h1{font-size:34px}
  .introband h1{font-size:31px} .stat{padding:0 16px} .gapbar-row{grid-template-columns:84px 1fr 70px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ============ WordPress adaptation (theme only, demo CSS above untouched) ============ */
/* Primary nav: never wrap to multiple lines (the old theme's header wrapped). */
.hbar{flex-wrap:nowrap}
nav.main{flex-wrap:nowrap;white-space:nowrap}
nav.main ul{list-style:none;margin:0;padding:0;display:flex;gap:26px;align-items:center;flex-wrap:nowrap}
nav.main li{margin:0;padding:0}
nav.main a{white-space:nowrap}
@media (max-width:1240px){
  .hbar{gap:16px}
  nav.main ul,nav.main{gap:16px}
  .searchbox{width:180px}
}
@media (max-width:1020px){ .searchbox{width:150px} }
/* Page / post chrome */
.page-main{padding:0 0 84px}
.page-head{padding:30px 0 6px}
.page-head h1{font-size:40px;font-weight:800}
.page-note{font-size:13.5px;color:var(--muted);margin:10px 0 0}
.entry-content{max-width:1200px;margin:0 auto}
.entry-content.page-wide{padding:0 24px}
.entry-narrow{max-width:820px;margin:0 auto;padding:0 24px}
.entry-content h2,.entry-content h3{font-family:var(--serif);color:var(--ink)}
.entry-content h2{font-size:28px;margin:28px 0 12px}
.entry-content h3{font-size:22px;margin:24px 0 10px}
.entry-content p{margin:0 0 16px}
.entry-content img{max-width:100%;height:auto}
.entry-content ul,.entry-content ol{margin:0 0 16px;padding-left:22px}
.byline{font-size:14px;color:var(--muted);margin:12px 0 0}
.byline b{color:var(--ink)}
/* Blog listing cards reuse the demo .rcard style; pagination below */
.pagination{margin-top:44px;text-align:center}
.pagination .page-numbers{display:inline-block;padding:9px 15px;border:1px solid var(--border);border-radius:9px;margin:0 3px;color:var(--ink);font-weight:600}
.pagination .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* v1.5: Gap Comparison Chart bars (page content, /gap-comparison-chart/).
   The bars are inline-styled divs with border-radius: 4px — the only such
   divs on the site (verified: zero matches on the other tool/guide pages
   sampled). The Arizona bar is only 40% wide, so its label wrapped to 3
   lines while the other bars fit in 1–2. Smaller text keeps every bar label
   to at most 2 lines on desktop without changing the words or the bar widths
   (width encodes the gap value, so it must not change). On phones the
   labels are stacked above the bars by the theme JS (v1.5 mobile patch). */
.page-main div[style*="border-radius: 4px"]{font-size:13px;line-height:1.4}

/* ============ v1.5 mobile patch: phone widths (320-620px) ============
   Phone pass (Customizer mobile preview, ~320 CSS px) found: page-level
   horizontal overflow on every page (header logo is nowrap + flex:none,
   ~241px, pushing the burger off-screen; hero .stats flex row is wider
   than 320px), raw page-content tables with no scroll container, the
   Timeline Visualizer markers clipping at the right edge, and the Arizona
   gap-chart label wrapping inside its 40% bar. Desktop is untouched: all
   layout rules live in the 620px media query, except the overflow-x safety
   net and the .rjl-scroll wrapper, which are inert at desktop widths. */
html,body{overflow-x:hidden;overflow-x:clip} /* SAFETY NET ONLY: the wrappers/header/hero fixes below do the real work. clip (unlike hidden) creates no scroll container, so the sticky header keeps working. */
.tblwrap{max-width:100%;-webkit-overflow-scrolling:touch}
/* (a) Scroll container for every table (theme.js wraps tables not already
   in .tblwrap). The wrapper scrolls internally; the page never does. */
.rjl-scroll{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 16px}
/* (d) Timeline Visualizer: the graphic's container (class added by
   theme.js) can never spill outside the tool card; the JS clamp keeps the
   marker chips fully inside it. */
.rjl-timeline-box{max-width:100%;overflow:hidden}
.rjl-timeline-box #consentLabel,.rjl-timeline-box #yMark,.rjl-timeline-box #oMark{max-width:100%}
/* (e) Gap-chart bar labels stacked above their bars on phones (the label
   div is created by theme.js); the bar keeps its width (width encodes the
   gap value). */
.rjl-bar-label{font-size:13.5px;line-height:1.5;color:var(--ink);margin:0 0 6px}
.page-main div[style*="border-radius: 4px"].rjl-stacked{min-height:22px}
@media (max-width:620px){
  .wrap{padding:0 16px}
  /* (a) tables keep a readable width and scroll inside their wrapper
     instead of squeezing into tall rows */
  .rjl-scroll table,.tblwrap table{min-width:560px}
  /* (c) header: let the logo shrink/wrap so the burger stays in view */
  .hbar{gap:12px}
  .logo{gap:8px;min-width:0}
  .logo-mark{width:36px;height:36px}
  .logo-txt{font-size:16px;white-space:normal;line-height:1.15}
  .burger{flex:none}
  .mmenu{padding:12px 16px 18px}
  /* (b) hero: badge wraps, stats become 3 equal columns, tighter card */
  .badge{white-space:normal;text-align:left;line-height:1.5;max-width:100%}
  .hero-card{padding:20px}
  .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:36px}
  .stat{padding:0;border-left:0}
  .stat .n{font-size:24px}
  .stat .l{font-size:10px;letter-spacing:.06em;line-height:1.4}
  /* (b) page chrome: single-column directory/footer, tighter padding */
  .dir{grid-template-columns:1fr}
  .fgrid{grid-template-columns:1fr}
  .entry-content.page-wide,.entry-narrow{padding:0 16px}
}

/* v1.6: Timeline Visualizer chips/label must never wrap or clip. The v1.5
   left-clamp alone could not fix phones: at ~320px the box is ~180px wide,
   so a marker at 96% leaves the chip no room and its text wraps to a
   second line clipped at the box bottom. Chips now anchor their right edge
   to the marker when they would overflow (translateX(-100%) via theme.js)
   and never wrap; the consent label is placed clear of the brass line. */
.rjl-timeline-box #yMark,.rjl-timeline-box #oMark,.rjl-timeline-box #consentLabel{white-space:nowrap}
@media (max-width:620px){
  /* !important: the page-content markup sets font-size/padding inline
     (13px/4px 8px chips, 12px label), which beats any stylesheet rule.
     The shrink buys slack at phone widths so chips/labels fit inside the
     ~180px box; desktop is untouched. */
  .rjl-timeline-box #yMark,.rjl-timeline-box #oMark{font-size:12px !important;padding:3px 6px !important}
  .rjl-timeline-box #consentLabel{font-size:11px !important}
}
