/* ToolHub 2.0 – all rules are scoped to .th-app so the theme is not affected */
.th-app{--th-blue:#1260e0;--th-blue-dark:#0c46a8;--th-ink:#14233b;--th-muted:#5a6b82;--th-line:#dce4ef;--th-soft:#f3f7fc;--th-ok:#0f7a43;--th-okbg:#ecf8f1;--th-bad:#a4261d;--th-badbg:#fdeeec;
  color:var(--th-ink);font-family:inherit;line-height:1.6;max-width:1040px;margin:0 auto 32px;box-sizing:border-box}
.th-app *,.th-app *::before,.th-app *::after{box-sizing:border-box}
.th-app h2,.th-app h3{color:var(--th-ink);font-family:inherit;text-transform:none;letter-spacing:normal;line-height:1.25}
.th-app h2{font-size:1.45rem;margin:1.8em 0 .6em}
.th-app p{margin:0 0 1em}
.th-app a{color:var(--th-blue)}
.th-app .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.th-app button,.th-app input,.th-app select{font-family:inherit;font-size:16px;margin:0;text-transform:none;letter-spacing:normal;box-shadow:none}

/* Hero (tools home) */
.th-app .th-hero{background:linear-gradient(125deg,var(--th-blue),#2f4fd4);color:#fff;border-radius:18px;padding:40px 28px}
.th-app .th-hero h2{color:#fff;font-size:clamp(1.7rem,4vw,2.6rem);margin:0 0 .4em}
.th-app .th-hero p{color:#e6eeff;max-width:620px;font-size:1.05rem}
.th-app .th-search{width:100%;max-width:560px;border:0;border-radius:999px;padding:14px 20px;background:#fff;color:var(--th-ink);outline-offset:3px}

/* Tool cards */
.th-app .th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.th-app .th-card{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid var(--th-line);border-radius:14px;background:#fff;color:var(--th-ink);text-decoration:none;transition:border-color .15s,transform .15s}
.th-app .th-card:hover,.th-app .th-card:focus-visible{border-color:var(--th-blue);transform:translateY(-2px);color:var(--th-ink)}
.th-app .th-card[hidden]{display:none}
.th-app .th-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#e8f0ff;color:var(--th-blue);font-weight:800;font-size:18px}
.th-app .th-card-name{font-weight:700;font-size:1.02rem}
.th-app .th-card-desc{color:var(--th-muted);font-size:.93rem}
.th-app .th-empty{color:var(--th-muted);margin-top:12px}

/* Calculator */
.th-app .th-crumbs{font-size:.9rem;color:var(--th-muted);display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.th-app .th-crumbs a{text-decoration:none}
.th-app .th-lead{font-size:1.1rem;color:var(--th-muted)}
.th-app .th-tool{background:#fff;border:1px solid var(--th-line);border-radius:16px;padding:22px;box-shadow:0 10px 28px -20px rgba(20,35,59,.45)}
.th-app .th-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px 16px}
.th-app .th-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95rem;margin:0}
.th-app .th-form input,.th-app .th-form select{width:100%;padding:12px 13px;border:1px solid #c5d1e0;border-radius:10px;background:#fff;color:var(--th-ink);min-height:48px}
.th-app .th-form input:focus,.th-app .th-form select:focus{border-color:var(--th-blue);outline:3px solid rgba(18,96,224,.18)}
.th-app .th-buttons{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}
.th-app .th-primary,.th-app .th-secondary{border-radius:10px;padding:12px 22px;font-weight:700;cursor:pointer;border:2px solid var(--th-blue);line-height:1.2}
.th-app .th-primary{background:var(--th-blue);color:#fff;flex:1 1 180px}
.th-app .th-primary:hover{background:var(--th-blue-dark);border-color:var(--th-blue-dark);color:#fff}
.th-app .th-secondary{background:#fff;color:var(--th-blue)}
.th-app .th-secondary:hover{background:var(--th-soft);color:var(--th-blue)}
.th-app .th-result{margin-top:16px;padding:16px 18px;border-radius:12px;background:var(--th-soft);color:var(--th-muted);min-height:56px}
.th-app .th-result:has(.th-line){background:var(--th-okbg);color:var(--th-ink)}
.th-app .th-result.th-error{background:var(--th-badbg);color:var(--th-bad)}
.th-app .th-line{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px dashed rgba(15,122,67,.25)}
.th-app .th-line:last-child{border-bottom:0}
.th-app .th-line b{text-align:right}
.th-app .th-line.th-main{font-size:1.2rem}
.th-app .th-line.th-main b{color:var(--th-ok)}

/* Article + FAQ */
.th-app .th-article{max-width:760px}
.th-app .th-article ol{padding-left:1.3em;margin:0 0 1em}
.th-app .th-article li{margin:.3em 0}
.th-app .th-formula{background:var(--th-soft);border-left:4px solid var(--th-blue);padding:12px 16px;border-radius:0 10px 10px 0}
.th-app .th-faq details{border:1px solid var(--th-line);border-radius:12px;padding:0 16px;margin-bottom:10px;background:#fff}
.th-app .th-faq summary{cursor:pointer;font-weight:700;padding:14px 0;list-style-position:outside}
.th-app .th-faq details p{margin:0 0 14px;color:#33445c}

/* Sections, ads, footer links */
.th-app .th-section{margin-top:8px}
.th-app .th-ad{margin:24px 0;min-height:1px;text-align:center}
.th-app .th-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:36px;padding-top:18px;border-top:1px solid var(--th-line);font-size:.93rem}
.th-app .th-links a{text-decoration:none;color:var(--th-muted)}
.th-app .th-links a:hover{color:var(--th-blue)}
.th-app .th-note{color:var(--th-bad);margin-top:10px}

@media (max-width:600px){
  .th-app .th-hero{padding:28px 18px;border-radius:14px}
  .th-app .th-tool{padding:16px}
  .th-app .th-grid{grid-template-columns:1fr 1fr;gap:10px}
  .th-app .th-card{padding:14px}
  .th-app .th-card-desc{display:none}
}
@media (prefers-reduced-motion:reduce){.th-app .th-card{transition:none}}

/* ================= Site layout (header, footer, pages) ================= */
body.th-layout{margin:0;background:#f6f8fb}
.th-site{--th-blue:#1260e0;--th-blue-dark:#0c46a8;--th-ink:#14233b;--th-muted:#5a6b82;--th-line:#dfe6ef;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--th-ink);font-size:17px;line-height:1.65;min-height:100vh;display:flex;flex-direction:column;background:#f6f8fb}
.th-site *,.th-site *::before,.th-site *::after{box-sizing:border-box}
.th-site a{color:var(--th-blue)}
.th-site .th-app{font-family:inherit}
.th-container{width:100%;max-width:1160px;margin:0 auto;padding:0 20px}
.th-skip{position:absolute;left:-9999px;top:8px;background:#fff;padding:8px 14px;z-index:1000;border-radius:8px}
.th-skip:focus{left:12px}

/* Header */
.th-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--th-line)}
body.admin-bar .th-header{top:32px}
.th-header-in{display:flex;align-items:center;gap:20px;min-height:72px}
.th-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--th-ink)!important;margin-right:auto}
.th-logo-badge{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--th-blue);color:#fff;font-weight:800;font-size:20px;box-shadow:0 6px 14px -8px var(--th-blue)}
.th-logo-img{width:42px;height:42px;object-fit:contain;border-radius:10px}
.th-logo-text{display:flex;flex-direction:column;line-height:1.15}
.th-logo-name{font-weight:800;font-size:1.2rem;letter-spacing:-.01em}
.th-logo-tag{font-size:.78rem;color:var(--th-muted)}
.th-nav{display:flex;align-items:center;gap:18px}
.th-menu{display:flex;gap:4px;list-style:none;margin:0;padding:0}
.th-menu>li{position:relative;display:flex;align-items:center}
.th-menu a{display:block;padding:10px 12px;border-radius:8px;color:var(--th-ink)!important;text-decoration:none;font-weight:600;font-size:.97rem}
.th-menu a:hover,.th-menu a:focus-visible{background:#eef3fc;color:var(--th-blue)!important}
.th-sub-btn{background:none;border:0;padding:6px;margin-left:-8px;cursor:pointer;color:var(--th-muted);font-size:14px}
.th-sub{display:none;position:absolute;top:100%;left:0;min-width:250px;list-style:none;margin:6px 0 0;padding:8px;background:#fff;border:1px solid var(--th-line);border-radius:12px;box-shadow:0 18px 40px -18px rgba(20,35,59,.35)}
.th-sub a{font-weight:500}
.th-has-sub:hover>.th-sub,.th-has-sub:focus-within>.th-sub,.th-has-sub.th-sub-open>.th-sub{display:block}
.th-menu-btn{display:none;align-items:center;gap:8px;background:#fff;border:1px solid var(--th-line);border-radius:10px;padding:10px 14px;font:inherit;font-weight:600;color:var(--th-ink);cursor:pointer}
.th-burger,.th-burger::before,.th-burger::after{display:block;width:18px;height:2px;background:currentColor;border-radius:2px;position:relative}
.th-burger::before,.th-burger::after{content:"";position:absolute;left:0}
.th-burger::before{top:-6px}.th-burger::after{top:6px}

/* Social icons */
.th-social{display:flex;gap:8px;list-style:none;margin:0;padding:0}
.th-social a{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#eef3fc;color:var(--th-blue)!important;text-decoration:none;transition:background .15s,color .15s}
.th-social a:hover{background:var(--th-blue);color:#fff!important}
.th-social .dashicons{font-size:19px;width:19px;height:19px;line-height:1}

/* Title band */
.th-main{flex:1}
.th-band{background:linear-gradient(135deg,#eef4ff 0%,#f7f9fd 60%);border-bottom:1px solid var(--th-line);padding:34px 0 30px}
.th-band-crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:.88rem;color:var(--th-muted);margin-bottom:10px}
.th-band-crumbs a{text-decoration:none}
.th-site h1.th-band-title{font-size:clamp(1.9rem,4.2vw,2.8rem);line-height:1.15;margin:0;letter-spacing:-.02em;color:var(--th-ink);font-weight:800}
.th-band-lead{margin:10px 0 0;color:var(--th-muted);font-size:1.1rem;max-width:720px}
.th-content{padding-top:30px;padding-bottom:56px}
.th-content-hub{padding-top:26px}

/* Hub hero inside the layout */
.th-site .th-hero h1{color:#fff;font-size:clamp(1.9rem,4.6vw,3rem);line-height:1.1;margin:0 0 .45em;letter-spacing:-.02em;font-weight:800}
.th-site .th-hero .th-eyebrow{color:#cfe0ff;font-size:.8rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:10px}

/* Normal pages & posts */
.th-entry{background:#fff;border:1px solid var(--th-line);border-radius:16px;padding:clamp(20px,4vw,40px);max-width:860px}
.th-content-hub .th-entry,.th-entry:has(> .th-app){background:none;border:0;padding:0;max-width:none}
.th-entry h2{font-size:1.5rem;margin:1.6em 0 .5em;line-height:1.25}
.th-entry h2:first-child{margin-top:0}
.th-entry img{max-width:100%;height:auto;border-radius:12px}
.th-featured{margin:0 0 20px}

/* Blog list */
.th-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.th-post-card a{display:flex;flex-direction:column;gap:8px;height:100%;padding:20px;background:#fff;border:1px solid var(--th-line);border-radius:16px;text-decoration:none;color:var(--th-ink)!important;transition:transform .15s,border-color .15s}
.th-post-card a:hover{transform:translateY(-2px);border-color:var(--th-blue)}
.th-post-img{width:100%;height:170px;object-fit:cover;border-radius:10px}
.th-post-date{font-size:.82rem;color:var(--th-muted)}
.th-post-title{font-weight:800;font-size:1.15rem;line-height:1.3}
.th-post-excerpt{color:#3c4d65;font-size:.95rem}
.th-post-more{margin-top:auto;color:var(--th-blue);font-weight:700;font-size:.93rem}
.th-noposts{background:#fff;border:1px dashed var(--th-line);border-radius:14px;padding:24px;color:var(--th-muted)}
.th-site .nav-links{display:flex;gap:8px;margin-top:26px;flex-wrap:wrap}
.th-site .page-numbers{padding:8px 14px;border:1px solid var(--th-line);border-radius:8px;background:#fff;text-decoration:none}
.th-site .page-numbers.current{background:var(--th-blue);color:#fff;border-color:var(--th-blue)}

/* Footer */
.th-footer{background:#0f1b2d;color:#c3cedd;margin-top:auto;font-size:.95rem}
.th-footer a{color:#dfe7f2!important;text-decoration:none}
.th-footer a:hover{color:#fff!important;text-decoration:underline}
.th-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px;padding-top:52px;padding-bottom:40px}
.th-footer-brand p{margin:14px 0 18px;max-width:340px}
.th-footer .th-logo{color:#fff!important}
.th-footer .th-logo-tag{color:#9fb0c7}
.th-foot-title{color:#fff;font-weight:800;margin:4px 0 14px;font-size:1rem}
.th-footer ul{list-style:none;margin:0;padding:0}
.th-footer li{margin:0 0 9px}
.th-footer .th-social a{background:rgba(255,255,255,.08);color:#fff!important}
.th-footer .th-social a:hover{background:var(--th-blue);text-decoration:none}
.th-footer-bottom{border-top:1px solid rgba(255,255,255,.1)}
.th-footer-bottom-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;padding-top:18px;padding-bottom:22px;font-size:.87rem;color:#9fb0c7}

@media (max-width:960px){
  .th-footer-grid{grid-template-columns:1fr 1fr}
  .th-footer-brand{grid-column:1/-1}
}
@media (max-width:860px){
  body.admin-bar .th-header{top:46px}
  .th-menu-btn{display:inline-flex}
  .th-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--th-line);flex-direction:column;align-items:stretch;padding:10px 20px 20px;box-shadow:0 18px 30px -20px rgba(20,35,59,.4)}
  .th-nav.th-open{display:flex}
  .th-menu{flex-direction:column}
  .th-menu>li{flex-wrap:wrap}
  .th-menu>li>a{flex:1}
  .th-sub-btn{margin:0;padding:10px 14px;font-size:16px}
  .th-sub{position:static;width:100%;box-shadow:none;margin:0 0 6px;border:0;background:#f5f8fd}
  .th-has-sub:hover>.th-sub,.th-has-sub:focus-within>.th-sub{display:none}
  .th-has-sub.th-sub-open>.th-sub{display:block}
  .th-social-nav{padding-top:12px;border-top:1px solid var(--th-line)}
  .th-header-in{position:relative}
}
@media (max-width:600px){
  .th-site{font-size:16px}
  .th-footer-grid{grid-template-columns:1fr;gap:26px}
  .th-logo-tag{display:none}
}
@media (max-width:782px){ body.admin-bar .th-header{top:46px} }
@media (max-width:600px){ body.admin-bar .th-header{top:0} }

/* Layout polish: consistent typography regardless of theme */
.th-site .th-app{max-width:none;margin-bottom:0;color:var(--th-ink)}
.th-site h1,.th-site h2,.th-site h3{font-family:inherit;color:var(--th-ink);letter-spacing:-.01em}
.th-site h2{font-weight:800;font-size:1.5rem;line-height:1.25}
.th-site h3{font-weight:700}
.th-site p,.th-site li{color:#2b3b52;font-size:1rem}
.th-site .th-hero p{color:#e6eeff}
.th-site .th-footer p,.th-site .th-footer li{color:#c3cedd}
.th-site .th-footer-brand p{color:#aebbd0}
.th-site .th-article{margin-top:34px}
.th-site .th-article h2:first-child{margin-top:0}
.th-site .th-section h2{margin-top:36px}
.th-site .th-related{margin-top:40px}
.th-site .th-tool{max-width:none}
.th-site .th-card-desc{color:var(--th-muted)}
.th-site,.th-site p,.th-site li,.th-site input,.th-site select,.th-site summary{font-weight:400}
.th-site .th-faq summary,.th-site .th-card-name,.th-site .th-form label{font-weight:700}
.th-site .th-footer .th-foot-title{font-weight:800;color:#fff}

/* ================= v2.2 professional colour theme ================= */
.th-app,.th-site{--th-blue:#047857;--th-blue-dark:#065f46;--th-navy:#0b1f3a;--th-gold:#fbbf24;--th-ink:#0f172a;--th-muted:#5b6b80;--th-line:#e3e8f0;--th-soft:#f3f6fa;--th-ok:#047857;--th-okbg:#ecfdf5}
.th-site,body.th-layout{background:#f5f7fb}

/* Logo */
.th-logo-name{color:var(--th-navy)}
.th-logo-accent{color:var(--th-blue)}
.th-footer .th-logo-name{color:#fff}
.th-footer .th-logo-accent{color:#34d399}
.th-logo-img{border-radius:12px;box-shadow:0 6px 16px -8px rgba(11,31,58,.6)}

/* Black & white hover on every button and menu item */
.th-menu a{transition:background .15s,color .15s}
.th-menu a:hover,.th-menu a:focus-visible{background:#000!important;color:#fff!important}
.th-sub a:hover,.th-sub a:focus-visible{background:#000!important;color:#fff!important}
.th-app .th-primary{background:var(--th-blue);border-color:var(--th-blue);color:#fff;transition:background .15s,border-color .15s,transform .1s}
.th-app .th-primary:hover,.th-app .th-primary:focus-visible{background:#000;border-color:#000;color:#fff}
.th-app .th-primary:active{transform:scale(.98)}
.th-app .th-secondary{background:#fff;color:#000;border-color:#000;transition:background .15s,color .15s}
.th-app .th-secondary:hover,.th-app .th-secondary:focus-visible{background:#000;color:#fff;border-color:#000}
.th-menu-btn{transition:background .15s,color .15s}
.th-menu-btn:hover,.th-menu-btn[aria-expanded="true"]{background:#000;color:#fff;border-color:#000}
.th-footer .th-social a:hover{background:#fff!important;color:#000!important}
.th-post-card a:hover{border-color:#000}
.th-post-card a:hover .th-post-more{color:#000}
.th-site .page-numbers:hover{background:#000;color:#fff;border-color:#000}

/* Hero */
.th-app .th-hero{position:relative;overflow:hidden;background:
  radial-gradient(600px 300px at 90% -10%,rgba(16,185,129,.35),transparent 60%),
  radial-gradient(500px 260px at -10% 110%,rgba(251,191,36,.18),transparent 60%),
  linear-gradient(135deg,#0b1f3a 0%,#123a66 100%);padding:48px clamp(20px,4vw,48px)}
.th-app .th-hero .th-hl{color:var(--th-gold)}
.th-app .th-hero .th-eyebrow{color:#6ee7b7}
.th-app .th-search{box-shadow:0 10px 30px -12px rgba(0,0,0,.5);border:2px solid transparent}
.th-app .th-search:focus{border-color:var(--th-gold);outline:none}
.th-app .th-badges{display:flex;flex-wrap:wrap;gap:8px 10px;list-style:none;margin:20px 0 0;padding:0}
.th-app .th-badges li{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:#e8f0ff;border-radius:999px;padding:6px 14px 6px 12px;font-size:.88rem;margin:0}
.th-app .th-badges li::before{content:"✓";color:#34d399;font-weight:800;margin-right:6px}

/* Tool cards */
.th-app .th-card{border-color:var(--th-line);box-shadow:0 1px 2px rgba(15,23,42,.04);transition:border-color .15s,transform .15s,box-shadow .15s}
.th-app .th-card:hover,.th-app .th-card:focus-visible{border-color:#000;transform:translateY(-3px);box-shadow:0 14px 28px -18px rgba(0,0,0,.45)}
.th-app .th-card:hover .th-card-name{color:#000}
.th-app .th-icon{background:#ecfdf5;color:#047857}
.th-app .th-icon.th-cat-shopping{background:#fff7ed;color:#c2410c}
.th-app .th-icon.th-cat-money{background:#ecfdf5;color:#047857}
.th-app .th-icon.th-cat-finance{background:#eff6ff;color:#1d4ed8}
.th-app .th-icon.th-cat-math{background:#f5f3ff;color:#6d28d9}
.th-app .th-icon.th-cat-date-time{background:#f0fdfa;color:#0f766e}

/* Title band: navy */
.th-band{background:radial-gradient(500px 220px at 95% 0,rgba(16,185,129,.28),transparent 60%),linear-gradient(135deg,#0b1f3a,#123a66);border-bottom:0;padding:38px 0 34px}
.th-site h1.th-band-title{color:#fff}
.th-band-lead{color:#c9d6ea}
.th-band-crumbs,.th-band-crumbs span{color:#9fb3cf}
.th-band-crumbs a{color:#6ee7b7}

/* Calculator card */
.th-app .th-tool{border-top:4px solid var(--th-blue)}
.th-app .th-form input:focus,.th-app .th-form select:focus{border-color:var(--th-blue);outline:3px solid rgba(4,120,87,.18)}
.th-app .th-result:has(.th-line){background:var(--th-okbg)}
.th-app .th-line{border-bottom-color:rgba(4,120,87,.2)}
.th-app .th-formula{border-left-color:var(--th-blue)}
.th-app .th-copy{margin-top:10px;background:#fff;border:1px solid #000;color:#000;border-radius:8px;padding:6px 12px;font-size:.88rem;font-weight:700;cursor:pointer}
.th-app .th-copy:hover{background:#000;color:#fff}

/* Footer */
.th-footer{background:#0b1220}
.th-site a:focus-visible,.th-app a:focus-visible,.th-app button:focus-visible{outline:3px solid var(--th-gold);outline-offset:2px}
.th-site .th-band-lead{color:#c9d6ea}
.th-site .th-hero .th-badges li{color:#e8f0ff}
/* Touch screens: no "stuck" hover after tapping; show black while pressing instead */
@media (hover:none){
  .th-app .th-primary:hover{background:var(--th-blue);border-color:var(--th-blue)}
  .th-app .th-secondary:hover{background:#fff;color:#000}
  .th-app .th-card:hover{border-color:var(--th-line);transform:none;box-shadow:none}
  .th-app .th-primary:active,.th-app .th-secondary:active{background:#000;color:#fff;border-color:#000}
  .th-app .th-card:active{border-color:#000}
}

/* v2.2.1 Calculators dropdown: opens on tap/click and stays open (no flicker) */
.th-sub-toggle{display:flex;align-items:center;gap:6px;background:none;border:0;margin:0;padding:10px 12px;border-radius:8px;font:inherit;font-weight:600;font-size:.97rem;color:var(--th-ink);cursor:pointer;line-height:1.6;transition:background .15s,color .15s}
.th-sub-toggle:hover,.th-sub-toggle:focus-visible,.th-has-sub.th-sub-open>.th-sub-toggle{background:#000;color:#fff}
.th-caret{font-size:.75em;transition:transform .2s}
.th-has-sub.th-sub-open .th-caret{transform:rotate(180deg)}
.th-has-sub:hover>.th-sub,.th-has-sub:focus-within>.th-sub{display:none}
.th-has-sub.th-sub-open>.th-sub{display:block!important}
.th-sub{margin-top:0;z-index:60}
.th-sub-all a{font-weight:700!important;color:var(--th-blue)!important;border-bottom:1px solid var(--th-line);border-radius:8px 8px 0 0;margin-bottom:4px}
@media (hover:hover) and (pointer:fine) and (min-width:861px){
  .th-has-sub:hover>.th-sub{display:block}
  .th-has-sub::after{content:"";position:absolute;left:0;right:0;top:100%;height:8px}
}
@media (max-width:860px){
  .th-sub-toggle{width:100%;justify-content:space-between;padding:12px}
}

/* ===== 2.3: hints, charts, trading results ===== */
.th-app .th-form .th-hint{font-weight:400;font-size:.82rem;color:var(--th-muted);line-height:1.35}
.th-app .th-icon.th-cat-tax{background:#fff7ed;color:#c2410c}
.th-app .th-icon.th-cat-loans{background:#eff6ff;color:#1d4ed8}
.th-app .th-icon.th-cat-investing{background:#ecfdf5;color:#047857}
.th-app .th-icon.th-cat-trading{background:#0b1f3a;color:#fbbf24}
.th-app .th-line.th-neg b,.th-app .th-line.th-main.th-neg b{color:#b91c1c}
.th-app .th-line.th-pos b{color:var(--th-ok)}
.th-app .th-result:has(.th-main.th-neg){background:#fef2f2}
.th-app .th-warn{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:10px;padding:10px 12px;margin:0 0 10px;font-size:.93rem}
.th-app .th-mini{margin-top:8px;font-size:.93rem}
.th-app .th-mini summary{cursor:pointer;font-weight:700;color:var(--th-blue);padding:4px 0}
.th-app .th-viz:empty{display:none}
.th-app .th-viz{display:grid;gap:14px;margin-top:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr));align-items:start}
.th-app .th-viz .th-table-wrap{grid-column:1/-1}
.th-app .th-fig{margin:0;background:#fff;border:1px solid var(--th-line);border-radius:14px;padding:14px 14px 12px}
.th-app .th-fig figcaption{font-weight:700;font-size:.98rem;margin:0 0 10px;color:var(--th-ink)}
.th-app .th-fig svg{display:block;width:100%;height:auto;overflow:visible}
.th-app .th-fig-note{margin:8px 0 0;font-size:.84rem;color:var(--th-muted)}
.th-app .th-ax{font-size:12px;fill:#64748b;font-family:inherit}
.th-app .th-mk{font-size:12px;font-weight:700;font-family:inherit}
.th-app .th-donut-wrap{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.th-app .th-donut{width:180px!important;max-width:48%;flex:0 0 auto}
.th-app .th-ring .th-donut{width:200px!important;max-width:70%;margin:0 auto}
.th-app .th-d-big{font-size:22px;font-weight:800;fill:var(--th-ink);font-family:inherit}
.th-app .th-d-small{font-size:12px;fill:#64748b;font-family:inherit}
.th-app .th-legend{list-style:none;margin:0;padding:0;display:grid;gap:8px;flex:1 1 180px;font-size:.93rem}
.th-app .th-fig > .th-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}
.th-app .th-legend li{display:flex;align-items:center;gap:8px;margin:0}
.th-app .th-legend i{width:12px;height:12px;border-radius:3px;flex:0 0 12px}
.th-app .th-legend b{margin-left:auto;padding-left:10px;font-weight:700;white-space:nowrap}
.th-app .th-fig > .th-legend b{margin-left:4px}
.th-app .th-stack{display:flex;height:38px;border-radius:10px;overflow:hidden;background:var(--th-line)}
.th-app .th-stack span{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.85rem;min-width:2px}
.th-app .th-bars{display:grid;gap:10px}
.th-app .th-bar{display:grid;grid-template-columns:84px 1fr auto;align-items:center;gap:4px 10px;padding:4px 6px;border-radius:8px}
.th-app .th-bar-hi{background:#fffbeb;outline:1px solid #fde68a}
.th-app .th-bar-l{font-weight:700;font-size:.9rem}
.th-app .th-bar-t{position:relative;height:18px;background:#f1f5f9;border-radius:6px;overflow:hidden}
.th-app .th-bar-f{position:absolute;top:0;bottom:0;border-radius:6px}
.th-app .th-bar-zero{position:absolute;left:50%;top:-2px;bottom:-2px;width:2px;background:#0b1f3a;z-index:1}
.th-app .th-bar-v{font-size:.9rem;white-space:nowrap;color:var(--th-ok)}
.th-app .th-bar-v.th-neg{color:#b91c1c}
.th-app .th-bar-s{grid-column:2/-1;font-size:.78rem;color:var(--th-muted)}
.th-app .th-chart{position:relative;touch-action:pan-y}
.th-app .th-tip{position:absolute;top:0;z-index:3;background:#0b1f3a;color:#fff;border-radius:8px;padding:7px 10px;font-size:.8rem;line-height:1.45;pointer-events:none;white-space:nowrap;box-shadow:0 8px 20px -10px rgba(0,0,0,.5)}
.th-app .th-tip b{display:block}
.th-app .th-tip span{display:flex;align-items:center;gap:6px}
.th-app .th-tip i{width:8px;height:8px;border-radius:50%}
.th-app .th-people{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px}
.th-app .th-people li{display:flex;flex-direction:column;align-items:center;gap:4px;width:74px;margin:0;font-size:.8rem}
.th-app .th-people svg{width:34px!important}
.th-app .th-people b{font-size:.8rem;text-align:center;word-break:break-all}
.th-app .th-people .th-more{justify-content:center;color:var(--th-muted);font-weight:700}
.th-app .th-table-wrap{background:#fff;border:1px solid var(--th-line);border-radius:14px;padding:4px 14px}
.th-app .th-table-wrap summary{cursor:pointer;font-weight:700;padding:10px 0}
.th-app .th-scroll{overflow-x:auto;margin-bottom:10px}
.th-app .th-table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:420px}
.th-app .th-table th,.th-app .th-table td{padding:7px 8px;border-bottom:1px solid var(--th-line);text-align:right}
.th-app .th-table th:first-child,.th-app .th-table td:first-child{text-align:left}
.th-app .th-table thead th{background:var(--th-soft);font-weight:700}
@media (prefers-reduced-motion:no-preference){
  .th-app .th-viz.th-anim .th-fig{animation:th-rise .35s ease-out}
  @keyframes th-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
@media (max-width:520px){
  .th-app .th-donut{max-width:100%;margin:0 auto}
  .th-app .th-donut-wrap{justify-content:center}
  .th-app .th-line.th-main{flex-wrap:wrap}
}

/* 2.3.1: big total box + conditional fields */
.th-app .th-form label[hidden]{display:none}
.th-app .th-big{display:flex;flex-direction:column;gap:2px;border-radius:14px;padding:16px 16px 12px;margin:0 0 12px;color:#fff;background:#0b1f3a}
.th-app .th-big-pos{background:linear-gradient(135deg,#065f46,#047857)}
.th-app .th-big-neg{background:linear-gradient(135deg,#7f1d1d,#b91c1c)}
.th-app .th-big-l{font-size:.95rem;font-weight:600;opacity:.9}
.th-app .th-big strong{font-size:clamp(1.8rem,7vw,2.4rem);line-height:1.15;font-weight:800;color:#fff}
.th-app .th-big-u{font-size:1rem;font-weight:600;opacity:.95}
.th-app .th-big-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.25)}
.th-app .th-big-row em{font-style:normal;font-size:.8rem;opacity:.85;display:flex;flex-direction:column}
.th-app .th-big-row b{font-size:.98rem;opacity:1;color:#fff}

/* 2.3.4: redesigned footer */
.th-footer-v2{position:relative;background:#0b1626!important}
.th-footer-v2::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#047857,#34d399 45%,#fbbf24)}
.th-foot-top{display:grid;grid-template-columns:minmax(240px,1.15fr) 3fr;gap:44px;padding-top:54px;padding-bottom:30px}
.th-footer-v2 .th-footer-brand p{margin:14px 0 16px;max-width:330px;line-height:1.6;color:#aebbd0}
.th-foot-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px!important}
.th-footer-v2 .th-foot-chips li{margin:0;padding:4px 11px;border-radius:999px;background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.28);color:#a7f3d0;font-size:.82rem;font-weight:600}
.th-foot-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.th-footer-v2 .th-foot-title{display:flex;align-items:center;gap:8px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#fff;margin:4px 0 14px}
.th-footer-v2 .th-foot-title::before{content:"";width:8px;height:8px;border-radius:2px;background:#34d399}
.th-foot-tax .th-foot-title::before{background:#fb923c}
.th-foot-invest .th-foot-title::before{background:#34d399}
.th-foot-trade .th-foot-title::before{background:#fbbf24}
.th-foot-daily .th-foot-title::before{background:#60a5fa}
.th-footer-v2 li{margin:0 0 10px;line-height:1.35}
.th-footer-v2 .th-foot-col a{color:#c9d4e3!important;font-size:.93rem}
.th-footer-v2 .th-foot-col a:hover{color:#fff!important}
.th-foot-note{margin:0;padding:16px 0 22px;border-top:1px solid rgba(255,255,255,.08);font-size:.82rem;line-height:1.55;color:#7f90a8!important}
.th-footer-v2 .th-footer-bottom{background:#08111e}
.th-footer-v2 .th-footer-bottom-in{align-items:center}
.th-foot-links{display:flex;flex-wrap:wrap;gap:6px 18px}
.th-footer-v2 .th-foot-links a,.th-footer-v2 .th-top{color:#9fb0c7!important;font-size:.87rem}
.th-footer-v2 .th-top{white-space:nowrap}
@media (max-width:900px){
  .th-foot-top{grid-template-columns:1fr;gap:30px;padding-top:44px}
  .th-foot-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
}
@media (max-width:560px){
  .th-footer-v2 .th-footer-bottom-in{flex-direction:column;align-items:flex-start;gap:12px}
}

/* 2.3.5: calmer, more professional footer */
.th-footer-v2{background:#0f1a2b!important}
.th-footer-v2::before{display:none}
.th-foot-top{grid-template-columns:minmax(220px,1fr) 3fr;gap:48px;padding-top:48px;padding-bottom:28px}
.th-footer-v2 .th-footer-brand p{margin:12px 0 14px;max-width:280px;font-size:.9rem;color:#94a3b8}
.th-footer-v2 .th-foot-title{font-size:.95rem;letter-spacing:0;text-transform:none;font-weight:600;color:#f1f5f9;margin:2px 0 14px}
.th-footer-v2 .th-foot-title::before{display:none}
.th-footer-v2 li{margin:0 0 9px}
.th-footer-v2 .th-foot-col a{color:#94a3b8!important;font-size:.9rem}
.th-footer-v2 .th-foot-col a:hover{color:#fff!important;text-decoration:none}
.th-foot-note{font-size:.8rem;color:#64748b!important;padding:16px 0 18px}
.th-footer-v2 .th-footer-bottom{background:transparent;border-top:1px solid rgba(255,255,255,.08)}
.th-footer-v2 .th-footer-bottom-in{justify-content:space-between;font-size:.84rem;color:#64748b}
.th-footer-v2 .th-foot-links{gap:6px 22px}
.th-footer-v2 .th-foot-links a{color:#94a3b8!important;font-size:.84rem}
.th-footer-v2 .th-foot-links a:hover{color:#fff!important;text-decoration:none}
@media (max-width:560px){.th-footer-v2 .th-footer-bottom-in{flex-direction:column-reverse;align-items:flex-start}}
@media (max-width:900px){.th-foot-top{grid-template-columns:1fr;gap:30px;padding-top:40px}}

/* 2.3.6: gradient footer colours */
.th-footer-v2.th-fg-ocean{background:linear-gradient(135deg,#0b1f3a 0%,#0d3350 50%,#065f46 100%)!important}
.th-footer-v2.th-fg-royal{background:linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#6d28d9 100%)!important}
.th-footer-v2.th-fg-sunset{background:linear-gradient(135deg,#1f1235 0%,#4a1942 50%,#9a3412 100%)!important}
.th-footer-v2.th-fg-emerald{background:linear-gradient(135deg,#052e2b 0%,#065f46 55%,#059669 100%)!important}
.th-footer-v2.th-fg-plain{background:#0f1a2b!important}
.th-footer-v2:not(.th-fg-plain) .th-footer-brand p,.th-footer-v2:not(.th-fg-plain) .th-foot-col a,.th-footer-v2:not(.th-fg-plain) .th-foot-links a{color:#d5dde8!important}
.th-footer-v2:not(.th-fg-plain) .th-foot-note{color:#a9b6c8!important;border-top-color:rgba(255,255,255,.14)}
.th-footer-v2:not(.th-fg-plain) .th-footer-bottom{background:rgba(0,0,0,.2);border-top-color:rgba(255,255,255,.1)}
.th-footer-v2:not(.th-fg-plain) .th-footer-bottom-in{color:#b8c3d3}

/* 2.3.7: bigger, crisper card icons */
.th-app .th-card .th-icon{width:54px;height:54px;border-radius:14px;font-size:24px;margin-bottom:4px}
.th-app .th-card .th-icon svg{width:28px;height:28px;display:block}
.th-app .th-card:hover .th-icon{transform:scale(1.05)}
.th-app .th-icon{transition:transform .15s ease}
@media (max-width:560px){.th-app .th-card .th-icon{width:48px;height:48px}.th-app .th-card .th-icon svg{width:25px;height:25px}}

/* 2.3.8: logo designs */
.th-logo-img{box-shadow:0 6px 16px -8px rgba(11,31,58,.55)}
