/* Grow your company (public/growth.js, BAC-352): the gap ledger, the ranked recommendations and the tracked actions.
   The application's palette; logical properties only, so the page mirrors under dir="rtl"; ids, codes, ISO dates and
   URLs stay left-to-right (dir="ltr" on those elements). */
.growth{position:fixed;inset:var(--hdr-h,64px) 0 0;z-index:18;background:#0a0f1c;color:var(--fg);overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--border) transparent}
.growth[hidden]{display:none}
.gr-page{max-width:1180px;margin:auto;padding:22px 36px 48px}
.gr-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block-end:26px}
.gr-back{color:var(--muted);font:500 12px var(--font-b);padding:4px 0;text-align:start}
.gr-back:hover{color:var(--teal)}
.gr-eyebrow{font:600 11px var(--font-h);letter-spacing:.18em;color:var(--teal);border:1px solid #2b4d49;padding:4px 9px;border-radius:5px}
.gr-hero{display:flex;align-items:flex-start;gap:18px;background:none;border:0;height:auto;padding:0;position:static}
.gr-hero>div{min-width:0;flex:1;white-space:normal}
.gr-hero-icon{width:54px;height:54px;display:grid;place-items:center;flex:none;border:1px solid #2d5b55;border-radius:15px;background:linear-gradient(135deg,#173e37,#11202b);color:var(--teal)}
.gr-hero h2{font:600 clamp(25px,3vw,34px)/1.2 var(--font-h);letter-spacing:-.035em;margin:0 0 10px}
.gr-hero p{font-size:14px;line-height:1.65;color:var(--muted);max-width:760px;margin:0}
.gr-muted{color:var(--muted);font-size:12px;line-height:1.6}
.gr-score{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin:24px 0 18px;padding:18px 20px;border:1px solid #29453f;border-radius:14px;background:linear-gradient(150deg,#112522,#101827)}
.gr-ring{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;flex:none;background:conic-gradient(var(--teal) calc(var(--pct,0)*1%),#1c2638 0);position:relative}
.gr-ring::after{content:"";position:absolute;inset:8px;border-radius:50%;background:#0f1a24}
.gr-ring b{position:relative;z-index:1;font:600 24px var(--font-h);color:#d8e3ee}   /* above the ring's inner disc (::after painted over the score) */
.gr-ring b small{font-size:12px;color:var(--muted);margin-inline-start:2px}
.gr-score-text{flex:1 1 320px;min-width:0}
.gr-score-text h3{font:600 15px var(--font-h);margin:0 0 6px;color:#d8e3ee}
.gr-score-text p{margin:0}
.gr-stats{display:flex;flex-wrap:wrap;gap:10px}
.gr-stat{border:1px solid #2c384d;border-radius:10px;padding:8px 12px;min-width:96px;background:#0b1320}
.gr-stat b{display:block;font:600 18px var(--font-h);color:#d8e3ee}
.gr-stat span{font-size:11px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.gr-actions-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 18px}
.gr-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #364158;border-radius:8px;background:#172033;color:var(--fg);padding:9px 14px;font:500 12px var(--font-b);white-space:nowrap}
.gr-button:hover:not(:disabled){border-color:var(--teal);background:#1b2b3c}
.gr-button:disabled{opacity:.55;cursor:default}
.gr-primary{background:#123a34;border-color:#2f6b5f;color:#c8f3e9}
.gr-note{font-size:12px;color:var(--muted);line-height:1.5;padding:8px 11px;border:1px dashed #2c384d;border-radius:8px}
.gr-section{margin:26px 0 0}
.gr-section h3{display:flex;align-items:center;gap:8px;font:600 15px var(--font-h);margin:0 0 6px;color:#d8e3ee}
.gr-section>p{margin:0 0 12px}
.gr-head,.gr-row{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(90px,.7fr) minmax(160px,1.2fr) minmax(100px,.8fr) minmax(90px,.7fr);gap:14px;align-items:start}
.gr-head{padding:0 14px 8px;font:600 10.5px var(--font-h);letter-spacing:.12em;text-transform:uppercase;color:var(--label,#94a9b5);border-block-end:1px solid var(--border)}
.gr-list{list-style:none;margin:0;padding:0}
.gr-row{padding:12px 14px;border-block-end:1px solid #1c2638;font-size:12.5px;line-height:1.45}
.gr-row:hover{background:#0f1726}
.gr-row.is-closed{opacity:.88}   /* BAC-376: a closed row reads quieter but its muted text keeps 4.5:1 (at .72 it fell to 3.8:1) */
.gr-row>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.gr-row small{color:var(--muted);font-size:11px}
.gr-row code,.gr-card code{font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#93a4bb}
.gr-req{font-weight:500;color:#d8e3ee}
.gr-chip{display:inline-flex;align-items:center;gap:5px;width:max-content;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;border:1px solid}
.gr-chip.is-open{color:#fecaca;border-color:rgba(239,68,68,.55);background:rgba(127,29,29,.3)}
.gr-chip.is-closed{color:#9fe3d3;border-color:#2f6b5f;background:#10302a}
.gr-chip.is-gate{color:#fcd34d;border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.12)}
.gr-chip.is-requirement{color:#c5cfdf;border-color:#35425a;background:#0b1320}
.gr-chip.is-partial{color:#fcd34d;border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.12)}
.gr-chip.is-not_met{color:#fecaca;border-color:rgba(239,68,68,.55);background:rgba(127,29,29,.3)}
.gr-value{display:flex;flex-direction:column;gap:2px}
.gr-value bdi{unicode-bidi:isolate}
.gr-cards{display:grid;gap:14px;margin:0}
.gr-card{border:1px solid #29453f;border-radius:14px;padding:16px 18px;background:linear-gradient(150deg,#0f1c1c,#0f1626)}
.gr-card.is-closed{border-color:#2c384d;background:#0d1320;opacity:.85}
.gr-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-block-end:8px}
.gr-rank{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;font:600 14px var(--font-h);background:#123a34;border:1px solid #2f6b5f;color:#c8f3e9}
.gr-card h4{font:600 15px var(--font-h);margin:0;color:#d8e3ee;flex:1 1 240px;min-width:0}
.gr-card-facts{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12.5px;color:#c5cfdf;margin:4px 0 10px}
.gr-card-facts b{color:#d8e3ee}
.gr-block{margin:10px 0 0;padding:10px 12px;border:1px solid #1e2b3a;border-radius:10px;background:#0b1320}
.gr-block h5{font:600 10.5px var(--font-h);letter-spacing:.12em;text-transform:uppercase;color:var(--label,#94a9b5);margin:0 0 6px}
.gr-block ul{margin:0;padding-inline-start:18px;font-size:12.5px;line-height:1.55}
.gr-block li{margin:0 0 3px}
.gr-block a{color:var(--teal);text-decoration:none;word-break:break-all}
.gr-block a:hover{text-decoration:underline}
.gr-ref-name{font-weight:600;color:#d8e3ee}
.gr-ref-meta{font-size:12px;color:var(--muted);line-height:1.55}
.gr-warn{color:#fcd34d}
.gr-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-block-start:10px}
.gr-field{display:flex;flex-direction:column;gap:5px;font-size:11.5px;color:#c5cfdf;min-width:140px;flex:1 1 140px}
.gr-field input,.gr-field select{padding:8px 10px;font:12px var(--font-b);background:#0b1320;border:1px solid #35425a;border-radius:7px;color:var(--fg);outline:none;min-width:0;width:100%}
.gr-field input:focus,.gr-field select:focus{border-color:var(--teal)}
.gr-field input[type="date"]{direction:ltr}
.gr-form .gr-button{flex:0 0 auto}
.gr-saved{font-size:12px;color:#9fe3d3}
.gr-error{font-size:12px;color:#fecaca}
.gr-state{padding:38px 18px;text-align:center;color:var(--muted);font-size:13px;border:1px dashed #2c384d;border-radius:12px}
.gr-state.is-error{color:#fecaca;border-color:rgba(239,68,68,.45)}
.gr-state p{margin:0 0 12px}
/* phones and tablets: the page is a full-screen sheet (like Activity and Saved results); the tables fold to two columns */
@media (max-width:960px){ .growth{inset:0;z-index:19} }
@media (max-width:860px){
  .gr-page{padding:16px 16px 40px}
  .gr-head{display:none}
  .gr-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 14px}
  .gr-row>div:first-child{grid-column:1 / -1}
  .gr-score{flex-direction:column;align-items:flex-start}
  .gr-field{flex-basis:100%}
}
/* light-theme:begin — generated by tools/light-theme.mjs from the rules above; do not edit by hand (hand-tuned light rules go after the end marker) */
html[data-theme="light"] .growth{background:#f4f5f9}
html[data-theme="light"] .gr-eyebrow{border:1px solid #dfe9e8}
html[data-theme="light"] .gr-hero-icon{border:1px solid #dae7e5;background:linear-gradient(135deg,#e7f1ef,#eef2f5)}
html[data-theme="light"] .gr-score{border:1px solid #e2eae8;background:linear-gradient(150deg,#f0f6f5,#f0f2f6)}
html[data-theme="light"] .gr-ring{background:conic-gradient(var(--teal) calc(var(--pct,0)*1%),#e8ebf0 0)}
html[data-theme="light"] .gr-ring::after{background:#f1f4f6}
html[data-theme="light"] .gr-ring b{color:#243d56}
html[data-theme="light"] .gr-score-text h3{color:#243d56}
html[data-theme="light"] .gr-stat{border:1px solid #dfe3e8;background:#f2f5f8}
html[data-theme="light"] .gr-stat b{color:#243d56}
html[data-theme="light"] .gr-button{border:1px solid #dadde4;background:#ebedf2}
html[data-theme="light"] .gr-button:hover:not(:disabled){background:#e7ebf0}
html[data-theme="light"] .gr-primary{background:#e9f3f2;border-color:#d4e4e1;color:#146653}
html[data-theme="light"] .gr-note{border:1px dashed #dfe3e8}
html[data-theme="light"] .gr-section h3{color:#243d56}
html[data-theme="light"] .gr-head{color:var(--label,#566973)}
html[data-theme="light"] .gr-row{border-block-end:1px solid #e8ebf0}
html[data-theme="light"] .gr-row:hover{background:#f0f2f6}
html[data-theme="light"] .gr-row code,html[data-theme="light"] .gr-card code{color:#506074}
html[data-theme="light"] .gr-req{color:#243d56}
html[data-theme="light"] .gr-chip.is-open{color:#7a0000;border-color:rgba(239,68,68,.55);background:rgba(236,203,203,.3)}
html[data-theme="light"] .gr-chip.is-closed{color:#1f725e;border-color:#d4e4e1;background:#ecf5f3}
html[data-theme="light"] .gr-chip.is-gate{color:#997500;border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.12)}
html[data-theme="light"] .gr-chip.is-requirement{color:#2a3444;border-color:#dadde4;background:#f2f5f8}
html[data-theme="light"] .gr-chip.is-partial{color:#997500;border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.12)}
html[data-theme="light"] .gr-chip.is-not_met{color:#7a0000;border-color:rgba(239,68,68,.55);background:rgba(236,203,203,.3)}
html[data-theme="light"] .gr-card{border:1px solid #e2eae8;background:linear-gradient(150deg,#f4f7f7,#f0f2f6)}
html[data-theme="light"] .gr-card.is-closed{border-color:#dfe3e8;background:#f2f4f7}
html[data-theme="light"] .gr-rank{background:#e9f3f2;border:1px solid #d4e4e1;color:#146653}
html[data-theme="light"] .gr-card h4{color:#243d56}
html[data-theme="light"] .gr-card-facts{color:#2a3444}
html[data-theme="light"] .gr-card-facts b{color:#243d56}
html[data-theme="light"] .gr-block{border:1px solid #e7ebef;background:#f2f5f8}
html[data-theme="light"] .gr-block h5{color:var(--label,#566973)}
html[data-theme="light"] .gr-ref-name{color:#243d56}
html[data-theme="light"] .gr-warn{color:#997500}
html[data-theme="light"] .gr-field{color:#2a3444}
html[data-theme="light"] .gr-field input,html[data-theme="light"] .gr-field select{background:#f2f5f8;border:1px solid #dadde4}
html[data-theme="light"] .gr-saved{color:#1f725e}
html[data-theme="light"] .gr-error{color:#7a0000}
html[data-theme="light"] .gr-state{border:1px dashed #dfe3e8}
html[data-theme="light"] .gr-state.is-error{color:#7a0000;border-color:rgba(239,68,68,.45)}
/* light-theme:end */
