/* The practice check (BC-33): the website's look (haldel.com.au, at the
   owner's word of 18 November 2026). Montserrat headings and Raleway text,
   loaded from Google Fonts by the page as the site loads them, with the
   system fonts behind them; navy, gold and slate on white. The buttons keep
   the site's gold with dark text (white on that gold is 2.6:1; #1d2530 on it
   is 6.0:1), and gold words on white or light grey are a darker gold
   (--gold-text, 5.4:1 on white), so every text passes 4.5:1. On its own
   (body.standalone) the page has the site's navy top bar and a footer; in the
   site's embed block (body.embed) it has neither, and sits on the section's
   light grey. Loads nothing itself; no inline style anywhere. */
:root {
  --text: #1d2530; --navy: #173269; --gold: #cb994d; --gold-text: #8a6420; --slate: #3e5674;
  --light: #f3f5f7; --border: #dae0e7; --white: #ffffff; --track: #dae0e7;
  --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --body-font: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/24px var(--body-font); }
body.embed { background: var(--light); }
h1, h2, h3 { font-family: var(--heading-font); color: var(--navy); overflow-wrap: break-word; }
h1 { font-size: 48px; line-height: 1.15; font-weight: 700; letter-spacing: -1.2px; margin: 0 0 16px; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.5px; margin: 32px 0 12px; }
h1:focus, h2:focus { outline: none; }
p { margin: 0 0 14px; }
a { color: var(--navy); }
strong { font-weight: 600; }
a:focus-visible, button:focus-visible, input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The site's top bar (on its own only). */
header.top { background: var(--navy); }
.bar { max-width: 1120px; margin: 0 auto; padding: 18px 24px; }
.brand { font: 700 20px/1 var(--heading-font); letter-spacing: 2px; color: var(--white); text-decoration: none; }

/* The band runs the page's width; the words keep to one readable column. */
main { padding: 0 0 48px; }
body.embed main { padding: 0 0 32px; }
.body { max-width: 760px; margin-left: auto; margin-right: auto; }
.body { padding: 32px 24px 0; }
body.embed .body { padding: 24px 20px 0; }

/* The eyebrow over each heading, as the site's "PRACTICE OPERATIONS SOFTWARE". */
.eyebrow { font: 600 12px/16px var(--body-font); text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold-text); margin: 0 0 10px; }

/* The intro's heading band: navy on its own, the light section in the frame. */
.hero { background: var(--navy); color: var(--white); padding: 56px max(24px, calc((100% - 712px) / 2)) 48px; }
.hero h1 { color: var(--white); margin: 0; }
.hero .eyebrow { color: var(--gold); }
body.embed .hero { background: transparent; color: var(--text); padding: 32px max(20px, calc((100% - 720px) / 2)) 0; }
body.embed .hero h1 { color: var(--navy); font-size: 36px; letter-spacing: -0.9px; }
body.embed .hero .eyebrow { color: var(--gold-text); }
.start-note { color: var(--slate); font-size: 15px; font-style: italic; }
#screen h1, .results-list h1 { font-size: 36px; letter-spacing: -0.9px; }
#screen h1.lead { font-size: 28px; line-height: 1.25; letter-spacing: -0.5px; }

/* Buttons: the site's gold, and its outlined second button. */
button, a.button {
  display: inline-block; margin: 0 8px 10px 0; padding: 14px 24px; border: 1px solid var(--gold); border-radius: 4px;
  background: var(--gold); color: var(--text); font: 600 14px/20px var(--body-font); text-decoration: none; cursor: pointer;
}
button.secondary, a.button.secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
button.link {
  margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--navy); font: 600 14px/20px var(--body-font);
  text-decoration: underline; text-underline-offset: 2px;
}
.actions { margin-top: 24px; }
.nav { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* The progress line and its bar (the words are its text equivalent). */
.progress { margin: 0 0 20px; }
.progress .eyebrow { margin-bottom: 8px; }
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--track); color: var(--navy); -webkit-appearance: none; appearance: none; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--track); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--navy); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--navy); border-radius: 4px; }

/* The questions: real radio groups, each choice a large target. */
.note { color: var(--slate); }
.question-block { margin: 0 0 22px; padding: 18px 20px 8px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
body.standalone .question-block { background: var(--light); }
fieldset { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 12px; font-weight: 600; line-height: 24px; }
.hint { display: block; margin-top: 6px; font-weight: 400; color: var(--slate); }
.codes { font-size: 13px; font-weight: 400; color: var(--slate); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice label {
  display: inline-block; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--white); cursor: pointer; line-height: 22px;
}
.choice input:checked + label { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 600; }
.choice label:hover { border-color: var(--slate); }

/* The halfway screen. */
.sinks { margin: 0 0 20px; padding: 0; list-style: none; }
.sinks li { margin: 0 0 10px; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--light); font-weight: 600; }
body.standalone .sinks li { background: var(--light); }
body.embed .sinks li { background: var(--white); }

/* The results. */
.count { font-size: 17px; line-height: 26px; }
ul.items { margin: 0 0 8px; padding: 0; list-style: none; }
.item { margin: 0 0 16px; padding: 16px 20px 14px; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 6px; background: var(--white); }
.item h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.2px; }
.item p { margin: 0 0 8px; }
.item .question { font-weight: 600; }
.help { padding: 12px 14px; background: var(--light); border-radius: 6px; }
.deeper-items > .help { margin-bottom: 16px; }
.deeper-items h2 { font-size: 20px; }
.clear { margin-top: 24px; }
.clear ul { margin: 0 0 8px; padding: 0 0 0 20px; }
.clear li { margin: 0 0 6px; }
.clear .change { margin-left: 6px; }

/* The close: the two next steps, then the deeper areas as cards. */
.close .body { border-top: 1px solid var(--border); margin-top: 24px; }
.print-note { color: var(--slate); font-size: 15px; }
.pitch { margin-top: 20px; }
.deeper { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--border); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.card { position: relative; }
.card input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.card label {
  display: block; height: 100%; min-height: 72px; padding: 14px 16px 12px 44px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--white); cursor: pointer; position: relative;
}
.card label::before {
  content: ''; position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; border: 2px solid var(--slate); border-radius: 3px; background: var(--white);
}
.card input:checked + label { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.card input:checked + label::before { background: var(--navy); border-color: var(--navy); }
.card input:checked + label::after {
  content: ''; position: absolute; left: 20px; top: 19px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.card label:hover { border-color: var(--slate); }
.card-title { display: block; font-weight: 600; line-height: 22px; }
.card-meta { display: block; margin-top: 4px; font-size: 14px; color: var(--slate); }
.deeper-status { color: var(--navy); font-weight: 600; }
.disclaimer { margin-top: 24px; font-size: 14px; line-height: 21px; color: var(--slate); }
.warning { padding: 12px 16px; border: 1px solid var(--navy); border-radius: 4px; }

/* The footer (on its own only). */
footer.foot { border-top: 1px solid var(--border); background: var(--light); }
footer.foot p { max-width: 760px; margin: 0 auto; padding: 20px 24px; font-size: 14px; }

/* A phone's width. */
@media (max-width: 640px) {
  .body, body.embed .body { padding: 24px 16px 0; }
  .hero { padding: 32px 16px 28px; }
  body.embed .hero { padding: 24px 16px 0; }
  h1, body.embed .hero h1, #screen h1, .results-list h1 { font-size: 30px; letter-spacing: -0.6px; }
  #screen h1.lead { font-size: 24px; }
  .question-block { padding: 14px 14px 4px; }
  .item { padding: 14px 14px 12px; }
  .bar { padding: 16px; }
  button, a.button { display: block; width: 100%; margin: 0 0 10px; text-align: center; }
  button.link { display: inline; width: auto; text-align: left; }
  .cards { grid-template-columns: 1fr; }
}

/* Keeping the list: the results and the disclaimer only, black on white and
   compact, to fit one page where it can, without the buttons, the top bar,
   the footer, the questions or the deeper areas. The browser's own "Save as
   PDF" makes the PDF. */
@page { margin: 12mm; }
@media print {
  body, body.embed { background: #ffffff; color: #000000; font-size: 9.5pt; line-height: 1.3; }
  header.top, footer.foot, #intro, #screen, button, a.button, .actions, .print-note, .pitch, #deeper { display: none !important; }
  main { padding: 0; }
  .body, body.embed .body { max-width: none; padding: 0; margin: 0; border: 0; }
  .eyebrow { color: #000000; margin: 0 0 2pt; }
  h1, .results-list h1 { color: #000000; font-size: 16pt; letter-spacing: 0; margin: 0 0 4pt; }
  h2, .item h2, .deeper-items h2 { color: #000000; font-size: 10.5pt; letter-spacing: 0; margin: 6pt 0 2pt; break-after: avoid; }
  p, .item p { margin: 0 0 3pt; }
  .count { font-size: 10pt; line-height: 1.3; }
  .item { margin: 0 0 5pt; padding: 0 0 4pt; border: 0; border-bottom: 1px solid #999999; border-radius: 0; break-inside: avoid; }
  .help { padding: 0; background: none !important; }
  .clear { margin-top: 6pt; }
  .clear ul { margin: 0; }
  .close .body { margin-top: 6pt; }
  .disclaimer { color: #000000; font-size: 8pt; margin-top: 6pt; }
}
