/*
 * Genius DISC: the questionnaire's styles. Modelled on the /discover-disc/ course (Roboto, Mission navy), but its own,
 * so a change to one never breaks the other. Style colours as questions.json: D forest green, I crimson, S royal blue, C amber.
 */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #003764;
  --gold: #ffc451;
  --blue: #0093d0;
  --link: #006ba6;
  --ink: #1d1d1b;
  --muted: #5f6b76;
  --line: #d9dee5;
  --tint: #eef6fb;
  --offwhite: #f4f6f9;
  --d: #1f8f5a; --i: #b9213a; --s: #2b64b4; --c: #e9a422;   /* as questions.json's colours */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(0, 55, 100, .08), 0 6px 20px rgba(0, 55, 100, .08);
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff;
       -webkit-font-smoothing: antialiased; text-wrap: pretty; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible + .gd-scale__box, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .4rem; }
h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
p { margin: 0 0 .9rem; }

.gd-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.gd-narrow { max-width: 760px; }

/* Header and footer */
.gd-header { background: var(--navy); color: #fff; }
.gd-header__inner { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gd-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.gd-brand img { border-radius: 6px; }
.gd-product { font-weight: 700; letter-spacing: .02em; padding: 4px 12px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: .95rem; }
.gd-stripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 5px; }
.gd-stripe span:nth-child(1) { background: var(--d); } .gd-stripe span:nth-child(2) { background: var(--i); }
.gd-stripe span:nth-child(3) { background: var(--s); } .gd-stripe span:nth-child(4) { background: var(--c); }
.gd-main { padding-bottom: 48px; }
.gd-footer { background: var(--offwhite); color: var(--muted); font-size: .9rem; }
.gd-footer__inner { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.gd-footer p { margin: 0; }

/* Shared pieces */
.gd-eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--blue); margin: 0 0 .4rem; }
.gd-lead { font-size: 1.2rem; color: var(--navy); max-width: 46rem; }
.gd-hint { color: var(--muted); font-size: .95rem; }
.gd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 20px; margin: 0 0 22px; }
.gd-card--resume { border-left: 6px solid var(--blue); }
.gd-pilot { background: var(--tint); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin: 22px 0; font-size: .97rem; }
.gd-button { display: inline-flex; align-items: center; gap: .5em; background: var(--navy); color: #fff; border: 2px solid var(--navy);
             border-radius: 999px; padding: .7em 1.5em; font: 700 1rem var(--font); text-decoration: none; cursor: pointer; }
.gd-button:hover { background: #00284a; }
.gd-button--ghost { background: #fff; color: var(--navy); }
.gd-button--ghost:hover { background: var(--tint); }
.gd-error { color: #b3283a; font-weight: 500; margin: 0 0 .5rem; }

/* Start page */
.gd-hero { background: linear-gradient(180deg, var(--tint), #fff); padding: 36px 0 12px; }
.gd-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--navy); }
.gd-facts li::before { content: "\2713"; color: var(--d); font-weight: 700; margin-right: .4em; }
.gd-field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.gd-field > label, .gd-field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; padding: 0; }
.gd-field input[type="text"], .gd-field input[type="email"] { width: 100%; font: inherit; padding: .7em .8em; border: 2px solid #8a97a5; border-radius: var(--radius); }
.gd-field.has-error input[type="text"], .gd-field.has-error input[type="email"] { border-color: #b3283a; }
.gd-optional { font-weight: 400; color: var(--muted); }
.gd-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-choice { display: inline-flex; align-items: center; gap: .4em; border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em; cursor: pointer; }
.gd-field > label.gd-check { display: flex; gap: .7em; align-items: flex-start; cursor: pointer; font-weight: 400; color: var(--ink); }
.gd-check input { width: 1.3em; height: 1.3em; margin-top: .15em; flex: none; }
.gd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The questionnaire */
.gd-progress { background: var(--offwhite); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 22px; }
.gd-progress__text { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.gd-progress__bar { height: 8px; background: #dfe5ec; border-radius: 999px; overflow: hidden; }
.gd-progress__bar span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.gd-intro { background: var(--tint); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 20px; color: var(--navy); font-size: 1.05rem; }
.gd-intro p { margin: 0; }
/* min-width: 0: a fieldset won't otherwise shrink below its widest content, and would push the page wider than a phone. */
.gd-statement { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 14px 14px; margin: 0 0 14px; background: #fff; min-width: 0; }
.gd-statement.has-error { border-color: #b3283a; box-shadow: 0 0 0 2px rgba(179, 40, 58, .15); }
.gd-statement legend { font-weight: 500; font-size: 1.08rem; color: var(--ink); padding: 0 4px; margin-bottom: 10px; float: left; width: 100%; }
.gd-statement__num { display: inline-block; min-width: 1.9em; color: var(--muted); font-weight: 400; font-size: .9rem; }
.gd-scale { clear: both; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gd-scale__option { position: relative; cursor: pointer; display: flex; }
.gd-scale__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gd-scale__box { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 6px 4px;
                 border: 2px solid var(--line); border-radius: var(--radius); background: var(--offwhite); transition: background .12s, border-color .12s; }
.gd-scale__label { font-size: .78rem; line-height: 1.2; color: var(--navy); font-weight: 500; hyphens: auto; }
.gd-scale__option:hover .gd-scale__box { border-color: var(--blue); }
.gd-scale__option input:checked + .gd-scale__box { background: var(--navy); border-color: var(--navy); }
.gd-scale__option input:checked + .gd-scale__box .gd-scale__label { color: #fff; }
@media (min-width: 640px) { .gd-scale__label { font-size: .86rem; } .gd-statement { padding: 18px 18px 16px; } }
.gd-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0; }
.gd-later { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.gd-later summary { cursor: pointer; color: var(--link); font-weight: 500; }
.gd-link { word-break: break-all; background: var(--offwhite); border-radius: var(--radius); padding: 8px 10px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--ink); }

/* Results */
.gd-result-head { background: var(--navy); color: #fff; padding: 28px 0 24px; border-bottom: 6px solid var(--style); }
.gd-result-head h1 { color: #fff; }
.gd-result-head .gd-eyebrow { color: #8fd3f0; }
.gd-style-chip { display: inline-flex; gap: .6em; align-items: baseline; background: var(--style); color: var(--style-ink); padding: .35em 1em;
                 border-radius: 999px; margin: .3rem 0 0; font-size: 1.1rem; }
.gd-result-head .gd-style-chip { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }   /* the deeper blue and green sit close to the navy behind them */
.gd-style-chip strong { font-size: 1.25rem; }
.gd-style-chip--large { font-size: 2.2rem; padding: .3em .9em; margin-bottom: 28px; }   /* the report's map section: twice the size, with room beneath */
.gd-style-chip--large strong { font-size: 2.5rem; }
@media (max-width: 520px) { .gd-style-chip--large { font-size: 1.5rem; } .gd-style-chip--large strong { font-size: 1.7rem; } }
.gd-result-top { display: grid; gap: 22px; margin: 26px 0; }
@media (min-width: 820px) { .gd-result-top { grid-template-columns: minmax(300px, 420px) 1fr; align-items: start; } }
.gd-map-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 10px 16px; box-shadow: var(--shadow); }
.gd-map { width: 100%; height: auto; display: block; }
.gd-map__letter { font: 500 48px var(--font); fill: #fff; }
.gd-map__point { font: 400 8.6px var(--font); letter-spacing: .04em; fill: #a3a3a3; }
.gd-map__point.is-mine { font-weight: 700; fill: #1d1d1b; }
.gd-band { color: var(--navy); font-weight: 500; margin: -10px 0 18px; }
.gd-summary { font-size: 1.3rem; line-height: 1.4; color: var(--navy); border-left: 5px solid var(--style); padding-left: 16px; margin-bottom: 22px; }
.gd-h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .2rem; }
.gd-pills { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gd-pill { background: var(--navy); color: #fff; border-radius: 999px; padding: .35em .95em; font-weight: 700; font-size: .95rem; }
.gd-pill--extra { background: #fff; color: var(--navy); border: 2px dashed var(--navy); }
.gd-pill--extra small { font-weight: 400; color: var(--blue); margin-left: .3em; }
.gd-boxes { display: grid; gap: 16px; }
@media (min-width: 720px) { .gd-boxes { grid-template-columns: 1fr 1fr; } }
.gd-box { border-radius: var(--radius-lg); padding: 18px 20px 10px; border-left: 5px solid var(--accent); background: var(--fill); }
.gd-box h2 { color: var(--accent); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; }
.gd-box ul { margin: 0 0 .6rem; padding-left: 1.2em; }
.gd-box li { margin-bottom: .35rem; }
.gd-box--strengths { --fill: #eaf6ee; --accent: #1e8a3a; }
.gd-box--watch { --fill: #fff4e2; --accent: #a86500; }
.gd-box--motivators { --fill: #e8f4fb; --accent: #0079ad; }
.gd-box--stressors { --fill: #fbecee; --accent: #b3283a; }
.gd-box--working { --fill: #eef1f7; --accent: var(--navy); }
.gd-box--growth { --fill: #f0eef8; --accent: #5b3f9e; }
.gd-less { color: var(--muted); font-size: .88em; }
.gd-card--report { margin: 22px 0 0; padding: 18px 20px; }
.gd-card--report h2 { font-size: 1.15rem; }
.gd-card--report p { font-size: .97rem; }
.gd-after { margin: 22px 0 0; }   /* as wide as the boxes above, so their edges line up */

/* The full report (report.php) */
.gd-report-date { color: #c9dcea; margin: .6rem 0 1rem; }
.gd-button--light { background: #fff; color: var(--navy); border-color: #fff; }
.gd-button--light:hover { background: var(--tint); }
.gd-report-nav { background: var(--offwhite); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.gd-report-nav .gd-wrap { display: flex; gap: 4px 18px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; white-space: nowrap; font-size: .92rem; }
.gd-report-nav a { color: var(--navy); text-decoration: none; font-weight: 500; }
.gd-report-nav a:hover { text-decoration: underline; }
.gd-report-nav a.is-current { font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); }
/* The report is as wide as the page's head (1100px), and its text, figures and grids all fill that width. */
.gd-report-section { padding: 38px 0 14px; border-bottom: 1px solid var(--line); scroll-margin-top: 50px; }
.gd-report-section > h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 1rem; }
.gd-report-section > h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 12px; }
.gd-report-section .gd-h3 { margin-top: 1.4rem; color: var(--navy); }
.gd-report-figure { margin: 18px auto; max-width: 440px; }
.gd-report-figure svg { width: 100%; height: auto; display: block; }
.gd-report-split { display: grid; gap: 26px; margin-top: 14px; }
@media (min-width: 860px) {
  .gd-report-split--map { grid-template-columns: minmax(380px, 460px) 1fr; align-items: center; }
  .gd-report-split--scales { grid-template-columns: minmax(380px, 460px) 1fr; align-items: start; }
  .gd-report-split--priorities { grid-template-columns: minmax(340px, 500px) 1fr; align-items: start; }
  .gd-report-split .gd-report-figure { max-width: none; margin: 0; }
}
.gd-report-figure--bars { max-width: 560px; }
.gd-key { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.gd-key__swatch { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 4px; }
.gd-key__swatch:not(:first-child) { margin-left: 8px; }
.gd-box h3 { color: var(--accent); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .6rem; }
.gd-box .gd-hint { margin-bottom: .5rem; }
.gd-twelve { width: 100%; height: auto; display: block; }
.gd-twelve__key { font: 700 21px var(--font); }
.gd-twelve__key.is-mine { font-size: 24px; }
.gd-twelve-key { display: grid; gap: 14px 24px; grid-template-columns: 1fr 1fr; }
.gd-twelve-key__quarter { border-top: 4px solid var(--style); padding-top: 8px; }
.gd-twelve-key__quarter h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--style); margin: 0 0 .4rem; }
.gd-twelve-key__quarter ul { list-style: none; margin: 0; padding: 0; }
.gd-twelve-key__quarter li { padding: 4px 6px; border-radius: 6px; font-size: .97rem; }
.gd-twelve-key__quarter li strong { display: inline-block; min-width: 2.2em; color: var(--style); }
.gd-twelve-key__quarter li.is-mine { background: var(--offwhite); font-weight: 700; color: var(--navy); }
.gd-twelve-key__quarter li small { font-weight: 400; color: var(--muted); margin-left: .3em; }
.gd-intro-map__letter { font: 700 36px var(--font); }
.gd-intro-map__label { font: 700 10px var(--font); fill: var(--navy); letter-spacing: .03em; }
.gd-umbrella__point { font: 400 9px var(--font); letter-spacing: .04em; fill: #8a8a8a; }
.gd-umbrella__point.is-mine { font-weight: 700; fill: var(--ink); }
.gd-priority { border-left: 4px solid var(--navy); padding: 2px 0 2px 14px; margin: 0 0 16px; }
.gd-priority h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.gd-priority p { margin: 0; }
.gd-priority--extra { border-color: var(--blue); }
.gd-priority--extra h3 { color: #0079ad; }
.gd-priority__phrase { font-weight: 400; color: var(--muted); font-size: .95rem; margin-left: .3em; }
.gd-priority small { font-weight: 400; color: var(--blue); margin-left: .4em; }
.gd-scales { display: grid; gap: 2px 28px; margin: 14px 0 20px; }
@media (min-width: 680px) and (max-width: 859px) { .gd-scales { grid-template-columns: 1fr 1fr; } }
.gd-scales__row { display: grid; grid-template-columns: 1fr minmax(120px, 42%); gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.gd-scales__name { font-weight: 700; }
.gd-scales__row.is-mine .gd-scales__name { color: var(--navy); }
.gd-scales__bar { height: 9px; background: #e2e2e0; border-radius: 999px; overflow: hidden; }
.gd-scales__bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.gd-scales__about { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.gd-lines { display: grid; gap: 0 40px; margin-top: 6px; }
@media (min-width: 860px) { .gd-lines { grid-template-columns: 1fr 1fr; } }
.gd-line { padding: 18px 0 6px; border-top: 1px solid #eef0f3; }
.gd-line h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.gd-line h3 span { color: var(--muted); font-weight: 400; }
.gd-line__track { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--offwhite); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 12px; }
.gd-line__end { font-weight: 700; font-size: .92rem; color: var(--ink); }
.gd-line__rail { position: relative; height: 2px; background: #a0a5aa; margin: 0 8px; }
.gd-line__rail::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1.5px; height: 16px; background: #a0a5aa; }
.gd-line__dot { position: absolute; top: 50%; width: 21px; height: 21px; margin: -10.5px 0 0 -10.5px; border-radius: 50%; background: #000; box-shadow: 0 0 0 3px #fff; }
.gd-line__where { color: var(--navy); }
@media (max-width: 479px) { .gd-line__track { grid-template-columns: 1fr 1fr; } .gd-line__rail { grid-column: 1 / -1; grid-row: 2; margin: 10px 8px; }
                            .gd-line__end:last-child { text-align: right; } }
.gd-stretch { display: grid; gap: 0; margin-top: 10px; }
.gd-stretch__row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; padding: 20px 0; border-top: 1px solid #eef0f3; }
@media (max-width: 599px) { .gd-stretch__row { grid-template-columns: 1fr; gap: 6px; } .gd-stretch__meter { max-width: 220px; } }
.gd-stretch__meter { margin: 0; }
.gd-meter { width: 100%; height: auto; display: block; }
.gd-meter__end { font: 700 11.5px var(--font); }
.gd-stretch__row h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.gd-stretch__band { font-weight: 700; color: var(--ink); margin: 0 0 .4rem; }
.gd-stretch__row p { margin: 0 0 .5rem; }
.gd-stretch__extra { font-weight: 400; color: var(--blue); margin-left: .4em; font-size: .85rem; }
.gd-letters { display: grid; gap: 16px; margin: 18px 0 10px; }
@media (min-width: 640px) { .gd-letters { grid-template-columns: 1fr 1fr; } }
.gd-letter { background: var(--offwhite); border-radius: var(--radius-lg); overflow: hidden; }
.gd-letter h3 { background: var(--style); color: var(--style-ink); margin: 0; padding: 10px 16px; font-size: 1.1rem; font-weight: 500; display: flex; align-items: baseline; gap: .5em; }
.gd-letter h3 span { font-weight: 700; font-size: 1.3rem; }
.gd-letter h3 small { margin-left: auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.gd-letter dl { margin: 0; padding: 12px 16px 14px; }
.gd-letter dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-top: .5rem; }
.gd-letter dd { margin: 0; }
.gd-report-pdf { margin: 30px 0 10px; }

@media print {
  .gd-report-nav, .gd-report-pdf, .gd-result-head .gd-button { display: none; }
  .gd-report-section { break-inside: auto; }
  .gd-line, .gd-letter, .gd-priority { break-inside: avoid; }
  .gd-header, .gd-stripe, .gd-footer, .gd-later, .gd-pilot { display: none; }
  .gd-result-head { background: #fff; color: var(--navy); }
  .gd-result-head h1 { color: var(--navy); }
  .gd-box { break-inside: avoid; }
}
