/* Growth tools: /career-quiz/, /tools/salary-calculator/, /scholarship/, /events/, /refer/.
   Builds on style.css tokens and lead-capture.css (.iss-lead*). Mobile-first; 44px targets. */

.g-page { background: var(--off-white, #FAFAF8); }

.g-hero, .g-page .g-hero { padding: 40px 0 32px; background: var(--white, #fff); border-bottom: 1px solid var(--border, #E2DDD8); }
.g-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 16px; }
.g-lede { font-size: 17px; line-height: 1.7; color: var(--ink-mid, #3D3530); max-width: 640px; margin: 0 0 20px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted, #7A726C); }
.g-meta li { display: flex; align-items: center; gap: 6px; }
.g-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson, #8B1A1A); }

.g-main, .g-page .g-main { padding: 32px 0 72px; }
.g-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .g-wrap { padding: 0 24px; } }

.g-card {
  background: var(--white, #fff); border: 1px solid var(--border, #E2DDD8); border-radius: 12px;
  padding: 24px 20px; margin: 0 0 20px;
}
@media (min-width: 640px) { .g-card { padding: 32px; } }
.g-card h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.2; margin: 0 0 12px; }
.g-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 24px 0 10px; }
.g-card p { line-height: 1.7; }
.g-card--tint { background: var(--crimson-tint, #FDF5F5); border-color: var(--crimson-pale, #F9EDED); }
.g-muted { color: var(--muted, #7A726C); font-size: 14px; line-height: 1.6; }
.g-fine { color: var(--muted, #7A726C); font-size: 13px; line-height: 1.6; margin: 12px 0 0; }

.g-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.g-actions .btn { min-height: 44px; justify-content: center; }
@media (max-width: 480px) { .g-actions .btn { width: 100%; white-space: normal; } }
.g-btn-wa { background: #1F8F4E; border-color: #1F8F4E; color: #fff; }
.g-btn-wa:hover { background: #17753F; border-color: #17753F; color: #fff; }
.btn:focus-visible, .g-option input:focus-visible + span { outline: 3px solid var(--crimson, #8B1A1A); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Progress */
.g-progress { margin: 0 0 20px; }
.g-progress__label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted, #7A726C); margin-bottom: 8px; }
.g-progress__bar { height: 6px; background: var(--stone, #EAE7E2); border-radius: 3px; overflow: hidden; }
.g-progress__fill { height: 100%; background: var(--crimson, #8B1A1A); transition: width .2s ease; }

/* Radio options */
.g-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.g-fieldset legend { font-family: var(--serif, Georgia, serif); font-size: clamp(1.3rem, 3.4vw, 1.7rem); line-height: 1.25; color: var(--ink, #1C1410); margin: 0 0 16px; padding: 0; }
.g-options { display: grid; gap: 10px; }
.g-option { position: relative; display: block; cursor: pointer; }
.g-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-option span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--border, #E2DDD8); border-radius: 8px; background: var(--white, #fff);
  font-size: 15px; line-height: 1.45; color: var(--ink, #1C1410); transition: border-color .15s ease, background .15s ease;
}
.g-option span::before {
  content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted, #7A726C); background: #fff;
}
.g-option:hover span { border-color: var(--crimson-soft, #B52020); }
.g-option input:checked + span { border-color: var(--crimson, #8B1A1A); background: var(--crimson-tint, #FDF5F5); }
.g-option input:checked + span::before { border: 5px solid var(--crimson, #8B1A1A); }

.g-steps-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.g-steps-nav .btn { min-height: 44px; }

/* Result */
.g-result-top { font-family: var(--serif, Georgia, serif); font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.15; color: var(--crimson, #8B1A1A); margin: 4px 0 8px; }
.g-bars { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.g-bar__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.g-bar__row strong { font-weight: 600; }
.g-bar__track { height: 10px; background: var(--stone, #EAE7E2); border-radius: 5px; overflow: hidden; }
.g-bar__fill { height: 100%; background: var(--ink-mid, #3D3530); border-radius: 5px; }
.g-bar--top .g-bar__fill { background: var(--crimson, #8B1A1A); }

.g-list { margin: 0; padding-left: 22px; line-height: 1.7; }
ul.g-list { list-style: disc; }
ol.g-list { list-style: decimal; }
.g-list li { margin-bottom: 6px; }
.g-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border, #E2DDD8); border-radius: 8px; color: var(--ink, #1C1410); text-decoration: none; font-size: 15px; background: #fff; }
.g-links a:hover { border-color: var(--crimson, #8B1A1A); color: var(--crimson, #8B1A1A); }
.g-links a::after { content: "→"; margin-left: auto; padding-left: 12px; color: var(--crimson, #8B1A1A); }

.g-locked { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.g-locked li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-mid, #3D3530); }
.g-locked li::before { content: ""; flex: 0 0 16px; height: 16px; margin-top: 3px; background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }

/* Form cards inside growth pages reuse .iss-lead; keep them flush */
.g-card .iss-lead, .g-card.iss-lead { margin: 0; }
.iss-lead label.g-label, .g-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink, #1C1410); margin: 0 0 6px; }
.g-field { display: grid; gap: 0; }
.g-field + .g-field { margin-top: 2px; }
.g-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .g-grid--2 { grid-template-columns: 1fr 1fr; } .g-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.g-form-note { font-size: 13px; color: var(--muted, #7A726C); margin: 0; }
.g-status { font-weight: 600; color: #2F7D45; margin: 0 0 8px; }

/* Salary calculator */
.g-select, .g-input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border, #E2DDD8); border-radius: 8px;
  background: #fff; color: var(--ink, #1C1410); font: inherit; font-size: 16px;
}
.g-select:focus-visible, .g-input:focus-visible { outline: 2px solid var(--crimson, #8B1A1A); outline-offset: 1px; border-color: var(--crimson, #8B1A1A); }
.g-range { font-family: var(--serif, Georgia, serif); font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.05; color: var(--ink, #1C1410); margin: 4px 0 8px; }
.g-range small { font-family: var(--sans, system-ui, sans-serif); font-size: 15px; color: var(--muted, #7A726C); }
.g-scale { position: relative; height: 12px; background: var(--stone, #EAE7E2); border-radius: 6px; margin: 20px 0 8px; }
.g-scale__band { position: absolute; top: 0; bottom: 0; background: var(--crimson, #8B1A1A); border-radius: 6px; }
.g-scale__legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted, #7A726C); }
.g-kv { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0 0; }
@media (min-width: 640px) { .g-kv { grid-template-columns: 1fr 1fr; } }
.g-kv div { background: var(--off-white, #FAFAF8); border: 1px solid var(--border, #E2DDD8); border-radius: 8px; padding: 12px 14px; }
.g-kv dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #7A726C); margin: 0 0 4px; }
.g-kv dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink, #1C1410); }
.g-method { font-size: 13px; line-height: 1.65; color: var(--muted, #7A726C); border-left: 3px solid var(--border, #E2DDD8); padding: 4px 0 4px 14px; margin: 20px 0 0; }

/* Scholarship */
.g-timer {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; margin: 0 0 16px; background: var(--ink, #1C1410); color: #fff; border-radius: 8px; font-size: 14px;
}
.g-timer strong { font-variant-numeric: tabular-nums; font-size: 18px; }
.g-timer--low { background: var(--crimson, #8B1A1A); }
.g-question { padding: 20px 0; border-top: 1px solid var(--border, #E2DDD8); }
.g-question:first-of-type { border-top: 0; padding-top: 0; }
.g-question .g-fieldset legend { font-family: var(--sans, system-ui, sans-serif); font-size: 16px; font-weight: 600; line-height: 1.5; }
.g-qnum { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson, #8B1A1A); margin-bottom: 4px; }
.g-score { font-family: var(--serif, Georgia, serif); font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1; margin: 8px 0; }

/* Events */
.g-sessions { display: grid; gap: 16px; }
.g-session { background: #fff; border: 1px solid var(--border, #E2DDD8); border-radius: 12px; padding: 20px; }
.g-session__time { font-size: 13px; font-weight: 700; color: var(--crimson, #8B1A1A); letter-spacing: .02em; margin: 0 0 6px; }
.g-session h3 { font-size: 1.25rem; margin: 0 0 8px; }
.g-session p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-mid, #3D3530); }
.g-topics { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .g-topics { grid-template-columns: 1fr 1fr; } }
.g-topics li { background: #fff; border: 1px solid var(--border, #E2DDD8); border-radius: 10px; padding: 16px; }
.g-topics strong { display: block; font-size: 15px; margin-bottom: 4px; }
.g-topics span { font-size: 14px; color: var(--muted, #7A726C); line-height: 1.5; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .g-progress__fill, .g-option span { transition: none; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Salary table */
.g-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border, #E2DDD8); border-radius: 8px; }
.g-table-wrap:focus-visible { outline: 2px solid var(--crimson, #8B1A1A); outline-offset: 2px; }
.g-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.g-table th, .g-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border, #E2DDD8); white-space: nowrap; }
.g-table thead th { background: var(--warm-gray, #F4F2EF); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-mid, #3D3530); }
.g-table tbody th { font-weight: 600; color: var(--ink, #1C1410); }
.g-table tbody tr:last-child th, .g-table tbody tr:last-child td { border-bottom: 0; }

/* Checkbox variant of .g-option */
.g-option input[type="checkbox"] + span::before { border-radius: 4px; }
.g-option input[type="checkbox"]:checked + span::before {
  border: 1.5px solid var(--crimson, #8B1A1A);
  background: var(--crimson, #8B1A1A) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.g-fine:empty { display: none; }
