/* Guided practice tab on a pilot topic page (views/includes/iq-tab-guided.ejs).
 * Loaded only when hub.guided is set. Uses the hub's --iq-* tokens
 * (interview-questions-v2.css) so it reads as the same page. */

.gh { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.gh-lead { margin: 0; font-size: 18px; color: var(--iq-ink2); line-height: 1.5; max-width: 760px; }
.gh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.gh-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.gh-card {
   background: var(--iq-card); border: 1px solid var(--iq-rule); border-radius: 16px; padding: 30px 32px;
   display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.gh-card--example { border-style: dashed; border-color: var(--iq-ink4); }
.gh-label { font-family: 'Fragment Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: 1.15px; text-transform: uppercase; color: var(--iq-ink3); }
.gh-h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.7px; line-height: 1.15; color: var(--iq-ink); }
.gh-h2--q { font-size: 26px; font-weight: 600; }
.gh-h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.3px; color: var(--iq-ink); }
.gh-sub { margin: 0; font-size: 16.5px; color: var(--iq-ink2); line-height: 1.55; }
.gh-note { margin: 0; font-size: 15px; color: var(--iq-ink3); line-height: 1.5; }
.gh-meta { font-family: 'Fragment Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--iq-ink3); }
.gh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gh-link { font-size: 15px; font-weight: 600; color: var(--iq-ink); }
.gh-rule { height: 1px; border: 0; background: var(--iq-divider); margin: 0; }
.gh-stack { display: flex; flex-direction: column; gap: 14px; }
.gh-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gh-btn {
   display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 12px;
   font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.gh-btn--dark { background: var(--iq-ink); color: var(--iq-card); }
.gh-btn--dark:hover { background: #3a3a35; color: var(--iq-card); }
.gh-btn--ghost { background: transparent; color: var(--iq-ink); border-color: transparent; padding: 0 12px; }
.gh-btn--ghost:hover { background: rgba(35,35,32,.05); }
/* Signed-out demo hints (D63) */
.gh-hint { padding: 12px 16px; border-radius: 12px; background: var(--iq-amberS); display: flex; flex-direction: column; gap: 4px; }
.gh-hint .gh-label { color: var(--iq-amber); }
.gh-hint p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--iq-ink); }

/* coverage (D36, D53) */
.gh-bar { display: flex; gap: 5px; }
.gh-seg { flex-grow: 1; height: 12px; border-radius: 3px; box-sizing: border-box; }
.gh-cov--solid { background: var(--iq-green); }
.gh-cov--in_progress { background: #A9CDB6; }
.gh-cov--needs_work { background: var(--iq-amberDot); }
.gh-cov--not_started { border: 1px solid var(--iq-ink4); background: transparent; }
.gh-legend { display: flex; gap: 20px; flex-wrap: wrap; font-family: 'Fragment Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--iq-ink2); }
.gh-legend span { display: inline-flex; align-items: center; gap: 8px; }
.gh-legend i { width: 10px; height: 10px; border-radius: 2px; box-sizing: border-box; display: inline-block; }
.gh-dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 10px; font-size: 16px; }
.gh-dl dt { color: var(--iq-ink3); }
.gh-dl dd { margin: 0; font-weight: 600; }
.gh-section { display: flex; flex-direction: column; gap: 14px; }
.gh-areas { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gh-areas li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--iq-card); border: 1px solid var(--iq-divider); border-radius: 12px; }
.gh-area-n { flex-grow: 1; font-size: 15.5px; font-weight: 600; }
.gh-area-s { font-family: 'Fragment Mono', ui-monospace, monospace; font-size: 12px; color: var(--iq-ink3); white-space: nowrap; }
.gh-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 5px; box-sizing: border-box; display: inline-block; }
.gh-dot--part { background: var(--iq-amberDot); }
.gh-dot--miss { background: var(--iq-roseDot); }
.gh-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.gh-chips li { padding: 9px 14px; border-radius: 20px; background: var(--iq-card); border: 1px solid var(--iq-divider); font-size: 15px; font-weight: 600; }

/* signed-out demo (D41, D39) */
.gh-answerwrap { position: relative; }
.gh-textarea {
   box-sizing: border-box; width: 100%; padding: 16px 62px 16px 18px; border-radius: 12px; border: 1px solid var(--iq-rule2);
   background: #fff; color: var(--iq-ink); font: 400 17px/1.6 'Instrument Sans', system-ui, sans-serif; resize: vertical;
}
.gh-mic {
   position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 22px; border: 0;
   background: var(--iq-ink); color: var(--iq-card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.gh-mic.is-on { background: var(--iq-roseDot); }
.gh-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--iq-roseS); color: var(--iq-rose); font-size: 14.5px; }
.gh-ok { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--iq-greenS); color: var(--iq-green); font-size: 15px; line-height: 1.5; }
.gh-answer { font-size: 16.5px; line-height: 1.7; }
.gh-answer > :first-child { margin-top: 0; }
.gh-answer pre { padding: 16px; border-radius: 10px; overflow-x: auto; }
.gh-rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gh-rate button {
   min-height: 56px; border-radius: 12px; border: 1px solid var(--iq-rule2); background: #fff; color: var(--iq-ink);
   font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
}
.gh-rate button:hover { border-color: var(--iq-ink); }
/* Key points after a reveal (D77), as in the session. */
.gh-kps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gh-kp {
   display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px;
   border: 1px solid var(--iq-rule2); background: #fff; font-size: 15.5px; line-height: 1.5; cursor: pointer;
}
.gh-kp:hover { border-color: var(--iq-ink); }
.gh-kp input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--iq-ink); }
.gh-kp:has(input:checked) { border-color: var(--iq-ink); background: var(--iq-greenS); }
/* The interview countdown (D80). */
.gh-interview { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--iq-ink2); }
.gh-interview strong { color: var(--iq-ink); }
.gh-exq { font-size: 16px; font-weight: 600; }
.gh-quote { margin: 0; padding-left: 16px; border-left: 2px solid var(--iq-rule2); font-size: 15.5px; color: var(--iq-ink2); line-height: 1.6; }
.gh-pill { align-self: flex-start; padding: 6px 12px; border-radius: 8px; font-family: 'Fragment Mono', ui-monospace, monospace; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }
.gh-pill--knew { background: var(--iq-greenS); color: var(--iq-green); }
.gh-pill--shaky { background: var(--iq-amberS); color: var(--iq-amber); }
.gh-pill--unknown { background: var(--iq-roseS); color: var(--iq-rose); }
.gh-coach { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; }
.gh-point { margin: 0; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; }
.gh-point .gh-dot { margin-top: 7px; }
.gh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* every question, collapsed (D11, D45) */
.gh-all { border-top: 1px solid var(--iq-rule); border-bottom: 1px solid var(--iq-rule); }
.gh-all summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 16px; font-weight: 600; }
.gh-all summary::-webkit-details-marker { display: none; }
.gh-all ol { margin: 0 0 18px; padding-left: 24px; font-size: 15.5px; line-height: 1.95; }
.gh-all a { color: var(--iq-ink); }
.gh-lock { font-family: 'Fragment Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .8px; color: var(--iq-ink3); border: 1px solid var(--iq-rule2); border-radius: 5px; padding: 1px 5px; }

@media (max-width: 900px) {
   .gh-grid, .gh-grid--even { grid-template-columns: minmax(0, 1fr); }
   .gh-areas { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
   .gh-card { padding: 20px; }
   .gh-h2 { font-size: 24px; }
   .gh-rate { grid-template-columns: minmax(0, 1fr); }
   .gh-actions .gh-btn { width: 100%; }
}
