/* v20: v19 look on inner pages + mobile scrolled search */
/* cards */
html body section.card[data-tab],html body .tic-wrap{border-radius:20px;padding:clamp(16px,2.4vw,28px);box-shadow:0 6px 22px rgba(15,40,80,.08)}
html body section.card[data-tab] .sec-title{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:700;border:0;padding:0}
html body section.card[data-tab] .sec-title::before{content:"";width:5px;height:24px;border-radius:3px;background:#c99b43;flex:none}
html body section.card[data-tab] .tool-desc{font-size:13.5px;line-height:1.85;color:var(--mut,#5d6b80)}
/* filter chips (cases and others) */
html body .cs-bar{gap:8px;padding:8px 0}
html body .cs-chip{border-radius:999px;padding:7px 14px;font-weight:700;font-size:13px;border:1.5px solid var(--ln,#d7deea);background:var(--card2,#fff);color:var(--ink,#16263d)}
html body .cs-chip.on{background:#14284b;color:#fff;border-color:#14284b}
html[data-theme="dark"] body .cs-chip.on,html[data-theme="dark"] .cs-chip.on{background:#c99b43;color:#10233c;border-color:#c99b43}
/* list rows as cards with arrow */
html body .cs-item{position:relative;border-radius:14px;padding:14px 46px 14px 16px;border:1px solid var(--ln,#e1e7f0);background:var(--card,#fff);margin-bottom:10px}
html body .cs-item::after{content:"←";position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#8a6410;font-weight:700;font-size:18px;transition:left .15s}
html[data-theme="dark"] .cs-item::after{color:#f3d58a}
html body .cs-item:hover::after{left:10px}
html body .cs-t{font-weight:700;line-height:1.75}
/* offices */
html body #offices-card .of-stat b{color:#f3d58a!important;font-size:30px}
html body #offices-card .of-stat span{color:#dbe6f7!important}
html body .of-card{border-radius:16px;border:1px solid var(--ln,#e1e7f0);padding:14px 16px;box-shadow:0 3px 12px rgba(15,40,80,.06)}
html body .of-card:hover{border-color:#c99b43}
html body .of-btn{border-radius:10px;font-weight:700}
/* tax library cards */
html body .taxlib-card{border-radius:16px;box-shadow:0 3px 14px rgba(15,40,80,.07);transition:border-color .15s,transform .15s}
html body .taxlib-card:hover{border-color:#c99b43;transform:translateY(-2px)}
/* calculators inputs */
html body section.card[data-tab] input,html body section.card[data-tab] select{border-radius:12px}
/* mobile: search stays in scrolled header, crumb hidden to save height */
@media(max-width:700px){
 html body #bn-gnav.gn-min .gn-sw{display:flex!important;order:6;flex:1 1 100%!important;height:38px;max-width:none!important}
 html body #bn-gnav.gn-min .gn-crumb{display:none}
 html body section.card[data-tab]{padding:14px 12px;border-radius:16px}
 html body section.card[data-tab] .sec-title{font-size:18px}
 html body .cs-item{padding:12px 38px 12px 12px}
}
/* contrast fixes found by the page audit */
html:not([data-theme="dark"]) body #offices-card summary,html:not([data-theme="dark"]) body .of-det summary{color:#8a6410!important}
html:not([data-theme="dark"]) body #of-status,html:not([data-theme="dark"]) body #offices-card .of-det div{color:#4a5870!important}
html body .lib-chip.on small{color:#fff!important}
html[data-theme="dark"] body .lib-chip.on small{color:#10233c!important}
html[data-theme="dark"] body .lib-chip.on{background:#c99b43!important;color:#10233c!important;border-color:#c99b43!important}
html[data-theme="dark"] body .cs-m,html[data-theme="dark"] body .cs-m span{color:#b8c4d8!important}
html[data-theme="dark"] body .cs-w{color:#f3d58a!important}
#bn-home2 .h2-gold{color:#e9c46a}
html[data-theme] body button.lib-chip.on small,html[data-theme] body .lib-chip.on small,html[data-theme] body .lib-chip.on>small{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
html[data-theme="dark"] body button.lib-chip.on small,html[data-theme="dark"] body .lib-chip.on small,html[data-theme="dark"] body .lib-chip.on>small{color:#10233c!important;-webkit-text-fill-color:#10233c!important}
a.cs-ta,a.pb-a,a.tl-a{color:inherit;text-decoration:none;font:inherit}
a.cs-ta:hover,a.pb-a:hover,a.tl-a:hover{text-decoration:underline;text-underline-offset:3px}
