/* chq-tools.css — one definition of the free-tools layout.
 *
 * The four tools used to carry four copies of their own styling, which is how the tab bar,
 * the nav script and the register panel all drifted apart earlier. This is the single copy.
 * Change the look here and all four follow.
 *
 * The layout rule the whole file exists to enforce: INPUTS LEFT, ANSWER RIGHT, and the
 * answer panel on screen from the moment the page loads. A result that appears below the
 * fold reads as a broken tool, because you never see it happen.
 */

/* ---------- the tool bar (rendered by chq-tools.js) ---------- */
.chqt-bar{background:#fff;border-bottom:1px solid #E8DFF5;display:flex;align-items:center;gap:4px;
  padding:0 1.5rem;height:46px;overflow-x:auto;position:sticky;top:60px;z-index:90}
.chqt-bar .chqt-lbl{font-size:0.66rem;text-transform:uppercase;letter-spacing:0.06em;color:#aaa;
  font-weight:700;margin-right:10px;white-space:nowrap}
.chqt-bar a{font-size:0.8rem;color:#555;text-decoration:none;padding:0.35rem 0.7rem;border-radius:7px;
  white-space:nowrap;font-weight:500}
.chqt-bar a:hover{background:#F8F6FC;text-decoration:none}
.chqt-bar a.on{background:#F3EFF9;color:#401588;font-weight:700}
.chqt-bar .chqt-sp{flex:1}
.chqt-bar a.chqt-acct{background:#401588;color:#fff;font-weight:700;font-size:0.76rem;padding:0.4rem 0.85rem}
.chqt-bar a.chqt-acct:hover{background:#6B3FA0;color:#fff}

/* ---------- page shell ---------- */
.chqt-page{max-width:1120px;margin:0 auto;padding:1.1rem 1.5rem 2.5rem}
.chqt-head{margin-bottom:0.9rem}
.chqt-head h1{font-family:'DM Serif Display',Georgia,serif;color:#401588;font-size:1.5rem;font-weight:400;margin:0}
.chqt-head p{margin:0.15rem 0 0;font-size:0.85rem;color:#8b8b98;max-width:70ch}

.chqt-cols{display:grid;grid-template-columns:1.12fr 0.88fr;gap:1rem;align-items:start}
@media(max-width:900px){.chqt-cols{grid-template-columns:1fr}}

.chqt-panel{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(64,21,136,0.06);padding:1.1rem 1.2rem}
.chqt-panel h2{font-family:'DM Serif Display',Georgia,serif;color:#401588;font-size:1rem;font-weight:400;margin:0 0 0.1rem}
.chqt-panel .chqt-sub{font-size:0.72rem;color:#aaa;margin:0 0 0.8rem;line-height:1.5}
.chqt-panel .chqt-sub a{color:#401588;font-weight:600}
.chqt-result{background:linear-gradient(180deg,#fbfaff,#fff)}
@media(min-width:901px){.chqt-result{position:sticky;top:118px}}

/* ---------- fields ---------- */
.chqt-grid{display:grid;grid-template-columns:1fr 1fr;gap:0.6rem 0.8rem}
.chqt-grid.three{grid-template-columns:1fr 1fr 1fr}
@media(max-width:560px){.chqt-grid,.chqt-grid.three{grid-template-columns:1fr}}
.chqt-f label{display:block;font-size:0.66rem;text-transform:uppercase;letter-spacing:0.05em;color:#401588;
  font-weight:700;margin-bottom:3px}
.chqt-f input,.chqt-f select{width:100%;font-family:'DM Sans',sans-serif;font-size:0.85rem;padding:0.45rem 0.6rem;
  border:1px solid #E8DFF5;border-radius:7px;background:#fff;color:#1A1A2E;outline:none}
.chqt-f input:focus,.chqt-f select:focus{border-color:#401588;box-shadow:0 0 0 3px rgba(64,21,136,0.08)}
.chqt-f .chqt-hint{font-size:0.65rem;color:#b3b3bd;margin-top:2px;line-height:1.35}
.chqt-rowlab{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}
.chqt-rowlab label{margin:0}

/* the MoM / YoY toggle — replaces the QoQ field nobody reports on */
.chqt-unit{display:flex;border:1px solid #E8DFF5;border-radius:7px;overflow:hidden}
.chqt-unit button{font-family:'DM Sans',sans-serif;border:0;background:#fff;color:#888;font-size:0.63rem;
  font-weight:700;padding:0.18rem 0.45rem;cursor:pointer}
.chqt-unit button.on{background:#401588;color:#fff}

/* ---------- actions ---------- */
.chqt-actions{display:flex;align-items:center;gap:0.7rem;margin-top:0.9rem;padding-top:0.8rem;
  border-top:1px solid #F3EFF9;flex-wrap:wrap}
.chqt-btn{font-family:'DM Sans',sans-serif;border:0;background:#401588;color:#fff;font-weight:700;
  font-size:0.88rem;padding:0.62rem 1.5rem;border-radius:9px;cursor:pointer;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center}
.chqt-btn:hover{background:#6B3FA0;color:#fff;text-decoration:none}
.chqt-btn:focus-visible{outline:3px solid #cbb8e8;outline-offset:2px}
.chqt-warn{font-size:0.72rem;color:#E74C3C;font-weight:600}
.chqt-ok{font-size:0.72rem;color:#16a34a;font-weight:600}

/* ---------- result ---------- */
.chqt-empty{text-align:center;color:#c0bccd;padding:2.2rem 1rem}
.chqt-empty .ic{font-size:1.9rem;opacity:0.5;display:block;margin-bottom:0.4rem}
.chqt-empty p{font-size:0.8rem;line-height:1.6;margin:0 auto;max-width:28ch}
.chqt-hero{text-align:center;padding:0.2rem 0 0.4rem}
.chqt-hero .n{font-family:'DM Serif Display',Georgia,serif;font-size:2.1rem;color:#401588;line-height:1.05}
.chqt-hero .n small{font-size:1rem;color:#8b8b98;font-family:'DM Sans',sans-serif}
.chqt-hero .cap{font-size:0.66rem;text-transform:uppercase;letter-spacing:0.06em;color:#aaa;font-weight:700;margin-top:2px}
.chqt-rangebar{height:10px;border-radius:5px;background:#F3EFF9;position:relative;margin:0.7rem 0 0.3rem}
.chqt-rangebar i{position:absolute;top:0;bottom:0;background:#401588;border-radius:5px;opacity:0.28}
.chqt-rangebar b{position:absolute;top:-4px;width:4px;height:18px;border-radius:2px;background:#401588}
.chqt-rangelbl{display:flex;justify-content:space-between;font-size:0.66rem;color:#aaa}
.chqt-kv{display:flex;justify-content:space-between;gap:10px;font-size:0.78rem;padding:0.3rem 0;border-bottom:1px solid #F6F3FB}
.chqt-kv span:first-child{color:#777}
.chqt-kv span:last-child{font-weight:700;color:#1A1A2E;font-variant-numeric:tabular-nums;text-align:right}
.chqt-caption{font-size:0.7rem;text-transform:uppercase;letter-spacing:0.05em;color:#aaa;font-weight:700;margin:0.7rem 0 0.2rem}
.chqt-d{display:flex;align-items:flex-start;gap:7px;font-size:0.75rem;padding:0.2rem 0;color:#555;line-height:1.4}
.chqt-pillup{background:#E7F6EC;color:#16a34a;font-size:0.62rem;font-weight:700;padding:1px 6px;border-radius:20px;white-space:nowrap;flex:none}
.chqt-pilldn{background:#FDECEA;color:#E74C3C;font-size:0.62rem;font-weight:700;padding:1px 6px;border-radius:20px;white-space:nowrap;flex:none}

/* the account prompt — no gate, just an offer once you have your answer */
.chqt-cta{margin-top:0.9rem;background:#F3EFF9;border-radius:9px;padding:0.7rem 0.85rem;font-size:0.74rem;
  color:#5a4a75;line-height:1.55}
.chqt-cta b{color:#401588}
.chqt-cta .chqt-btn{margin-top:0.5rem;width:100%;padding:0.5rem;font-size:0.8rem}

/* ---------- bars ---------- */
.chqt-bar-row{display:flex;align-items:center;gap:10px;margin-bottom:7px}
.chqt-bar-lab{width:150px;font-size:0.8rem;color:#333;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none}
.chqt-bar-lab em{display:block;font-style:normal;font-size:0.66rem;color:#b3b3bd;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chqt-bar-track{flex:1;background:#F3EFF9;border-radius:5px;height:12px;overflow:hidden}
.chqt-bar-track>i{display:block;height:100%;border-radius:5px}
.chqt-bar-n{width:46px;text-align:right;font-size:0.78rem;color:#888;font-variant-numeric:tabular-nums;flex:none}
.chqt-bar-x{width:62px;text-align:right;font-size:0.72rem;color:#aaa;flex:none}

/* stacked ownership */
.chqt-own{margin-bottom:8px}
.chqt-own .lab{display:flex;justify-content:space-between;font-size:0.7rem;color:#888;margin-bottom:2px}
.chqt-own .bar{display:flex;height:20px;border-radius:5px;overflow:hidden;background:#F3EFF9}
.chqt-own .bar div{display:flex;align-items:center;justify-content:center;font-size:0.63rem;color:#fff;font-weight:700}
.chqt-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.chqt-legend span{font-size:0.65rem;color:#888;display:inline-flex;align-items:center;gap:4px}
.chqt-legend i{width:9px;height:9px;border-radius:2px;display:inline-block}

/* ---------- readiness rows ---------- */
/* 0.28rem, not 0.34rem: measured, not guessed. At 0.34 the Get-my-score button landed at
   722px on a 720px screen — two pixels below the fold, which is the whole bug this
   redesign exists to fix. Ten rows x 6px of trim buys the room. */
.chqt-q{display:flex;align-items:center;gap:10px;padding:0.28rem 0;border-bottom:1px solid #F8F6FC}
.chqt-q .qn{width:16px;font-size:0.66rem;color:#c9c3d8;font-weight:800;flex:none}
.chqt-q .qt{flex:1;font-size:0.79rem;color:#444;line-height:1.25;min-width:0}
.chqt-q .qt em{display:block;font-style:normal;font-size:0.66rem;color:#b3b3bd}
.chqt-seg{display:flex;gap:3px;flex:none}
.chqt-seg button{font-family:'DM Sans',sans-serif;width:26px;height:26px;border-radius:6px;border:1px solid #E8DFF5;
  background:#fff;color:#999;font-size:0.74rem;font-weight:700;cursor:pointer}
.chqt-seg button:hover{border-color:#401588;color:#401588}
.chqt-seg button.on{background:#401588;border-color:#401588;color:#fff}
.chqt-scorebar{height:11px;border-radius:6px;background:#F3EFF9;overflow:hidden;margin:0.5rem 0 0.25rem}
.chqt-scorebar i{display:block;height:100%;border-radius:6px}

/* ---------- timeline ---------- */
.chqt-tl{position:relative;padding-left:17px;margin-top:0.3rem}
.chqt-tl:before{content:"";position:absolute;left:4px;top:6px;bottom:6px;width:2px;background:#F3EFF9}
.chqt-tli{position:relative;padding:0 0 0.6rem}
.chqt-tli:before{content:"";position:absolute;left:-16px;top:5px;width:9px;height:9px;border-radius:50%;background:#401588}
.chqt-tli.next:before{background:#F39C12}
.chqt-tli .w{font-size:0.67rem;color:#401588;font-weight:800;text-transform:uppercase;letter-spacing:0.04em}
.chqt-tli .t{font-size:0.79rem;color:#444;line-height:1.3}
.chqt-tli .t em{font-style:normal;color:#b3b3bd;font-size:0.67rem;display:block}
.chqt-bigdate{background:#F3EFF9;border-radius:9px;padding:0.55rem 0.7rem;text-align:center;margin-bottom:0.6rem}
.chqt-bigdate .d{font-family:'DM Serif Display',Georgia,serif;color:#401588;font-size:1.15rem}
.chqt-bigdate .l{font-size:0.64rem;color:#8b7aa8;text-transform:uppercase;letter-spacing:0.05em;font-weight:700}

.chqt-disc{font-size:0.7rem;color:#999;text-align:center;margin-top:1.2rem;line-height:1.6}
