/* Tradvolt organic hub — shared stylesheet (Worker 1 owned).
   Contract classes: og-shell og-header og-brand og-nav og-main
   og-prose og-footer og-tool og-result og-grid.
   Worker 2 guide pages link this file only. */
:root{
  --paper:#fbfcff; --navy:#173149; --slate:#506477; --blue:#1767d8;
  --yellow:#f2c94c; --line:#d8e2ec; --field:#ffffff; --bad:#b3261e;
  --radius:10px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--navy);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:1.0625rem;line-height:1.6}
.og-shell{max-width:72rem;margin:0 auto;padding:0 1.25rem}
.og-header{border-bottom:3px solid var(--navy);padding:1rem 0 .9rem;margin-bottom:1.5rem}
.og-brand{font-size:1.5rem;font-weight:750;letter-spacing:-.01em;color:var(--navy);text-decoration:none}
.og-brand:hover{text-decoration:underline}
.og-nav{display:flex;flex-wrap:wrap;gap:.35rem 1.4rem;margin-top:.55rem}
.og-nav a{color:var(--blue);font-weight:600;text-decoration:none;padding:.35rem 0;min-height:44px;display:inline-flex;align-items:center}
.og-nav a:hover{text-decoration:underline}
.og-nav a[aria-current="page"]{color:var(--navy);text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:4px}
.og-crumbs{font-size:.92rem;color:var(--slate);margin:0 0 1rem}
.og-crumbs a{color:var(--blue)}
.og-main{padding-bottom:2.5rem}
.og-main h1{font-size:2rem;line-height:1.2;font-weight:750;letter-spacing:-.015em;margin:.2rem 0 1rem;max-width:44rem}
.og-main h2{font-size:1.3rem;font-weight:680;margin:2rem 0 .6rem}
.og-main h3{font-size:1.08rem;font-weight:650;margin:1.4rem 0 .4rem}
.og-prose{max-width:44rem;color:#2c4356}
.og-prose p{margin:.6rem 0}
.og-prose a,.og-result a{color:var(--blue)}
.og-prose ul,.og-prose ol{padding-left:1.4rem}
.og-lede{font-size:1.15rem;color:var(--navy)}
.og-meta{font-size:.9rem;color:var(--slate)}
.og-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(16rem,100%),1fr));gap:1rem;margin:1.25rem 0;max-width:72rem}
.og-card{border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:var(--radius);background:#fff;padding:1rem 1.1rem}
.og-card h2,.og-card h3{margin:.1rem 0 .4rem;font-size:1.1rem}
.og-card p{margin:.3rem 0 .6rem;color:#2c4356;font-size:.98rem}
.og-card a{color:var(--blue);font-weight:650}
.og-tool{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:1.1rem 1.2rem 1.3rem;margin:1.5rem 0;max-width:52rem}
.og-tool fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 1.1rem;padding:.9rem 1rem 1rem;min-width:0}
.og-tool legend{font-weight:700;color:var(--navy);padding:0 .4rem}
.og-field{margin:.7rem 0}
.og-field label{display:block;font-weight:600;color:var(--navy);margin-bottom:.25rem}
.og-help{display:block;font-size:.9rem;color:var(--slate);font-weight:400;margin-top:.15rem}
.og-tool input[type="number"],.og-tool input[type="text"],.og-tool select{
  width:100%;max-width:20rem;min-height:44px;padding:.55rem .7rem;font-size:1.05rem;
  border:1.5px solid #9db2c6;border-radius:8px;background:var(--field);color:var(--navy);
  font-variant-numeric:tabular-nums}
.og-tool input[aria-invalid="true"],.og-tool select[aria-invalid="true"]{border-color:var(--bad)}
.og-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(13rem,100%),1fr));gap:.4rem 1.2rem}
.og-error{color:var(--bad);font-weight:600;font-size:.95rem;margin:.35rem 0 0}
.og-tool button{min-height:44px;padding:.6rem 1.2rem;font-size:1rem;font-weight:650;border-radius:8px;cursor:pointer}
.og-btn{background:var(--blue);color:#fff;border:1.5px solid var(--blue)}
.og-btn:hover{background:#1256b4}
.og-btn-quiet{background:#fff;color:var(--blue);border:1.5px solid var(--blue)}
.og-btn-quiet:hover{background:#eaf2fd}
.og-load{border-top:1px dashed var(--line);padding-top:.6rem;margin-top:.6rem}
.og-result{border:1px solid var(--line);border-left:6px solid var(--yellow);border-radius:var(--radius);background:#fff;padding:1rem 1.2rem;margin:1.25rem 0;max-width:52rem}
.og-result:empty{display:none}
.og-result .og-figure{font-size:1.7rem;font-weight:750;color:var(--navy);font-variant-numeric:tabular-nums;margin:.2rem 0}
.og-result dl{display:grid;grid-template-columns:auto 1fr;gap:.15rem 1.2rem;margin:.6rem 0;font-variant-numeric:tabular-nums}
.og-result dt{color:var(--slate)} .og-result dd{margin:0;font-weight:600}
.og-assump{background:#f2f6fb;border:1px solid var(--line);border-radius:8px;padding:.8rem 1rem;font-size:.95rem}
.og-table{border-collapse:collapse;width:100%;max-width:52rem;margin:1rem 0;font-variant-numeric:tabular-nums}
.og-table th,.og-table td{border:1px solid var(--line);padding:.5rem .7rem;text-align:left}
.og-table th{background:var(--navy);color:#fff;font-weight:650}
.og-table-wrap{overflow-x:auto;max-width:100%}
.og-footer{border-top:1px solid var(--line);padding:1.4rem 0 2rem;margin-top:2rem;color:var(--slate);font-size:.95rem}
.og-footer nav{display:flex;flex-wrap:wrap;gap:.3rem 1.4rem;margin-bottom:.6rem}
.og-footer a{color:var(--blue);padding:.3rem 0;display:inline-flex;align-items:center;min-height:44px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.og-skip{position:absolute;left:-9999px;top:0;background:var(--navy);color:#fff;padding:.7rem 1rem;z-index:10}
.og-skip:focus{left:0}
@media (max-width:480px){
  .og-main h1{font-size:1.6rem}
  .og-shell{padding:0 1rem}
  .og-result dl{grid-template-columns:1fr}
  .og-result dd{margin-bottom:.4rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{
  .og-header nav,.og-footer nav,.og-tool button,.og-skip{display:none!important}
  body{background:#fff;font-size:11pt}
  .og-tool,.og-result,.og-card{border-color:#999;break-inside:avoid}
  a{color:#000;text-decoration:none}
}
