/* Look modelled on the public TAFE NSW site: Public Sans, charcoal header and footer,
   navy and blue actions, 8px corners, cyan underline on headings. Not a copy of it. */
:root {
  --charcoal: #22272b;
  --navy: #002664;
  --blue: #0053dc;
  --cyan: #8ce0ff;
  --red: #b11030;
  --grey-text: #495054;
  --grey-mid: #747a7e;
  --grey-line: #e7e7e8;
  --grey-bg: #f2f2f2;
  --white: #fff;
  --ring: rgba(194, 130, 255, .6);
  --radius: 8px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }

body {
  margin: 0;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--charcoal);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ring);
}

.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 0; top: -60px; z-index: 50;
  background: var(--red); color: var(--white);
  padding: 4px 12px; border-radius: 0 0 4px 0; font-size: 14px;
}
.skip:focus { top: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--charcoal); color: var(--white); }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 960px; margin: 0 auto; padding: 10px var(--gutter);
  min-height: 56px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 22px; }
.brand:hover { color: var(--white); }
.mark { width: 28px; height: 28px; border-radius: 6px; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M7 14.5l5 5 9-10' fill='none' stroke='%2322272b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; flex: none; }

.restart {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--white);
  background: transparent; border: 2px solid rgba(255,255,255,.5); border-radius: var(--radius);
  padding: 4px 12px; cursor: pointer; min-height: 36px; white-space: nowrap;
}
.restart:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.subnav {
  display: flex; gap: 4px; flex-wrap: wrap;
  max-width: 960px; margin: 0 auto; padding: 0 calc(var(--gutter) - 8px);
  border-top: 1px solid rgba(255,255,255,.18);
}
.subnav a {
  color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 11px 8px 9px; border-bottom: 4px solid transparent;
}
.subnav a:hover { border-bottom-color: rgba(255,255,255,.5); color: var(--white); }
.subnav a[aria-current="true"] { border-bottom-color: var(--cyan); }

.progress { height: 4px; background: rgba(255,255,255,.18); }
.progress span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .3s ease; }

/* screen */
main { flex: 1; outline: none; }
h1:focus, h1:focus-visible { outline: none; box-shadow: none; }

.hero { background: var(--charcoal); color: var(--white); }
.hero .wrap { padding-top: 32px; padding-bottom: 36px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 28px var(--gutter) 56px; }

.chip {
  display: inline-block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--white); background: var(--navy);
  padding: 4px 10px; border-radius: 4px; margin: 0 0 14px;
}
.chip.enrol { background: var(--blue); }
.chip.day { background: var(--charcoal); }
.chip.issue { background: var(--red); }
.chip.teacher { background: var(--grey-text); }

.stepline { font-size: 14px; color: var(--grey-text); font-weight: 600; margin: 0 0 6px; }

h1 {
  margin: 0 0 20px;
  font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: .25px;
  text-decoration: underline; text-decoration-thickness: 4px; text-decoration-color: var(--cyan);
  text-underline-offset: 8px;
}
.hero h1 { font-size: 32px; line-height: 40px; text-decoration: none; margin-bottom: 14px; color: var(--white); }
.hero p { color: #e7e7e8; font-size: 18px; line-height: 28px; margin: 0; max-width: 56ch; }

p { margin: 0 0 16px; max-width: 62ch; }
.hero + .wrap p { max-width: 62ch; }

ul, ol { margin: 0 0 16px; padding-left: 24px; max-width: 62ch; }
li { margin-bottom: 6px; }

strong { font-weight: 700; }

.note {
  background: var(--grey-bg); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px; margin: 0 0 16px; max-width: 62ch;
}
.note p { margin: 0; }
.shot { margin: 0 0 20px; max-width: 720px; }
.shot a { display: block; border: 2px solid var(--grey-line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.shot a:hover { border-color: var(--navy); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 14px; line-height: 20px; color: var(--grey-text); margin-top: 6px; }

/* options */
.options { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }

.opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: left; font: inherit; color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); border-radius: var(--radius);
  padding: 12px 16px; min-height: 60px; cursor: pointer;
}
.opt:hover { background: var(--grey-bg); border-color: var(--blue); }
.opt:active { background: #e3e3e4; }

.opt .key {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px;
  font-size: 14px; font-weight: 700; color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); border-radius: 6px;
}
.opt:hover .key { background: var(--navy); color: var(--white); }
.opt .txt { display: block; font-size: 18px; line-height: 24px; font-weight: 700; }
.opt .sub { display: block; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--grey-text); margin-top: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

.btn {
  font: inherit; font-size: 18px; font-weight: 700; line-height: 24px;
  color: var(--white); background: var(--navy); border: 2px solid var(--navy);
  border-radius: var(--radius); padding: 12px 24px; min-height: 52px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--navy); }
.btn.secondary:hover { background: var(--grey-bg); color: var(--navy); border-color: var(--blue); }

.back {
  font: inherit; font-size: 16px; font-weight: 700; color: var(--navy);
  background: none; border: 0; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.back:hover { color: var(--blue); }
.back[hidden] { display: none; }

/* checklist */
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; max-width: 62ch; }
.checks label {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 2px solid var(--grey-line); border-radius: var(--radius); padding: 12px 14px;
}
.checks label:hover { border-color: var(--navy); }
.checks input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--navy); }
.checks input:checked + span { color: var(--grey-text); text-decoration: line-through; text-decoration-thickness: 1px; }

/* links list */
.links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.links a {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 700;
  border: 2px solid var(--blue); border-radius: var(--radius); padding: 10px 14px; text-decoration: none; color: var(--blue);
}
.links a:hover { background: var(--blue); color: var(--white); }
.links a::after { content: "\2197"; font-size: 14px; }

/* contact + copy */
.contact { border: 2px solid var(--grey-line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; max-width: 62ch; }
.contact p { margin: 0 0 4px; }
.contact p:last-child { margin: 0; }

.copybox {
  white-space: pre-wrap; background: var(--grey-bg); border: 2px solid var(--grey-line);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; max-width: 62ch; font-size: 15px; line-height: 22px;
}

/* sample certificate */
.cert-wrap { display: grid; gap: 16px; margin: 0 0 16px; }
@media (min-width: 760px) { .cert-wrap { grid-template-columns: 1.2fr 1fr; align-items: start; } .wrap.wide { max-width: 960px; } }

.cert {
  position: relative; background: #fdfcf7; border: 1px solid #c9c4b2; border-radius: 4px;
  padding: 18px 16px 16px; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12); color: #2b2b2b;
}
.cert::before { content: "SAMPLE"; position: absolute; right: 12px; top: 8px; font: 700 11px/1 "Public Sans", Arial, sans-serif; letter-spacing: 2px; color: var(--red); }
.cert h2 { margin: 0 0 12px; font-size: 16px; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; text-align: center; text-decoration: none; }
.cert dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.cert .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 4px; border: 2px solid transparent; font: inherit; }
.cert dt { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #666; }
.cert dd { margin: 0; font-weight: 700; }
.cert .hot { cursor: pointer; background: #fff8c9; border-color: #e8c600; width: 100%; text-align: left; color: inherit; }
.cert .hot:hover, .cert .hot.on { background: #ffec6b; border-color: var(--charcoal); }
.cert .plain { opacity: .55; }
.cert .num { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--charcoal); color: var(--white); font: 700 12px/1 "Public Sans", Arial, sans-serif; margin-right: 8px; }
.cert .lbl { display: flex; align-items: center; }

.map { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.map li { margin: 0; display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--grey-line); border-radius: var(--radius); padding: 8px 10px; font-size: 15px; line-height: 21px; }
.map li.on { border-color: var(--charcoal); background: #fff8c9; }
.map .num { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--charcoal); color: var(--white); font-size: 12px; font-weight: 700; }
.map b { display: block; }
.small { font-size: 14px; line-height: 20px; color: var(--grey-text); }

/* resume banner */
.resume { background: var(--grey-bg); border: 2px solid var(--navy); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; max-width: 62ch; }
.resume p { margin: 0 0 10px; color: var(--charcoal); font-size: 16px; line-height: 24px; }
.resume .actions { margin-top: 0; }
.resume .btn { font-size: 16px; min-height: 44px; padding: 8px 18px; }

/* footer */
.site-footer { background: var(--charcoal); color: #e7e7e8; font-size: 14px; line-height: 20px; }
.site-footer p { max-width: 960px; margin: 0 auto; padding: 14px var(--gutter) 0; }
.site-footer p:last-child { padding-bottom: 18px; }
.site-footer a { color: var(--cyan); }

.noscript { padding: 24px var(--gutter); }

@media (max-width: 480px) {
  .brand { font-size: 15px; line-height: 20px; }
  .mark { width: 24px; height: 24px; }
  h1 { font-size: 24px; line-height: 32px; }
  .hero h1 { font-size: 28px; line-height: 36px; }
  .opt .txt { font-size: 17px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .back { align-self: flex-start; }
}

@media print {
  .site-header, .actions, .options { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* plain summary shown before the script runs, and to web filters */
#static-summary h2 { font-size: 20px; line-height: 28px; margin: 24px 0 8px; }
