/* RPL me Australia site styles. Every colour, radius and spacing value comes from tokens.css. Mobile first.
   Colours are scoped: light by default, .hero/.page-hero are Midnight bands (tokens.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--s-6)); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 640px) { .wrap { padding: 0 var(--s-6); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -100px; background: var(--cta); color: var(--cta-text); padding: var(--s-2) var(--s-4); border-radius: var(--r-md); z-index: 100; font-weight: 700; }
.skip:focus { top: var(--s-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- type (Manrope display, Inter reading) ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.09; font-family: var(--display); color: var(--text); }
h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: var(--s-2) 0 var(--s-3); }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.lead { font-size: 17px; color: var(--text-2); max-width: 640px; margin: 0 0 var(--s-8); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; margin: var(--s-3) 0 0; }

/* ---------- buttons, badges, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-6);
  border-radius: var(--r-btn); font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-hover-text); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 var(--s-5); font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.reassure { text-align: center; font-size: 13px; color: var(--muted); margin: var(--s-2) 0 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-sm); white-space: nowrap; line-height: 1.4; }
.badge-now, .badge-code { background: var(--mint); color: var(--midnight); }
.badge-ri { border: 1px solid var(--line-2); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: 14px; color: var(--text-2); text-decoration: none; background: transparent; cursor: pointer; font-family: var(--font); }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip-hot { background: var(--midnight); color: var(--offwhite); border-color: var(--midnight); font-weight: 700; }
.chip-hot:hover { color: var(--offwhite); background: var(--slate); }

/* ---------- header (light, colour logo) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--offwhite); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.logo { display: block; text-decoration: none; flex: 0 0 auto; }
.logo img { width: 156px; height: auto; } /* brand minimum 140px */
.site-nav { display: none; gap: var(--s-6); align-items: center; }
.site-nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px; padding: var(--s-2) 0; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.site-nav a.trades, .menu-panel a.trades { color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.header-cta { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 var(--s-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); font-weight: 600; font-size: 15px; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; right: 0; top: 52px; min-width: 220px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: var(--s-2); box-shadow: var(--shadow-card); }
.menu-panel a { text-decoration: none; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); color: var(--text-2); }
.menu-panel a:hover { background: var(--hover-row); color: var(--text); }
.menu-panel a.trades { box-shadow: inset 3px 0 0 var(--accent); }
@media (min-width: 900px) {
  .menu { display: none; }
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
  /* CRO: logo only at the top; nav and CTA appear once the page scrolls (only when JS can reveal them) */
  .js .site-header:not(.scrolled) .site-nav, .js .site-header:not(.scrolled) .header-cta { visibility: hidden; opacity: 0; }
  .site-nav, .header-cta { transition: opacity .2s var(--ease); }
}

/* ---------- sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: 40; box-shadow: var(--shadow-card); }
.js .sticky-cta { transform: translateY(160%); transition: transform .3s var(--ease); }
.js .sticky-cta.show { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body { padding-bottom: 84px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- sections: white and Offwhite alternate ---------- */
.section { padding: var(--s-11) 0; background: var(--white); }
@media (min-width: 900px) { .section { padding: var(--s-14) 0; } }
.light { background: var(--offwhite); }
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- hero (Midnight band, progress symbol as the graphic) ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-9) 0 var(--s-11); background: var(--bg); color: var(--text); }
.hero::after { content: ""; position: absolute; left: -40px; bottom: -60px; width: 300px; height: 300px; pointer-events: none; opacity: .07;
  background: linear-gradient(var(--mint), var(--mint)) 0 100% / 26% 34% no-repeat,
              linear-gradient(var(--mint), var(--mint)) 37% 100% / 26% 66% no-repeat,
              linear-gradient(var(--mint), var(--mint)) 100% 100% / 26% 100% no-repeat; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 900px) { .hero { padding: var(--s-12) 0 var(--s-14); } .hero-grid { grid-template-columns: 1fr minmax(380px, 480px); gap: var(--s-11); } }
.hero h1 { margin: var(--s-4) 0 var(--s-5); }
.hero-lead { font-size: 18px; color: var(--text-2); max-width: 34rem; margin: 0 0 var(--s-8); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.facts li { display: flex; gap: var(--s-4); align-items: flex-start; }
.facts .ico { flex: 0 0 40px; height: 40px; border-radius: var(--r-md); background: var(--panel); color: var(--accent);
  display: flex; align-items: center; justify-content: center; }
.facts b { display: block; font-size: 16.5px; }
.facts span.t { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 899px) { .hero .facts, .hero-lead { display: none; } .hero .facts.show-mobile { display: grid; margin-top: var(--s-6); } }

/* ---------- review card (white, light scope) ---------- */
.review { background: var(--panel); color: var(--text); border-radius: var(--r-xl); padding: var(--s-5); box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .review { padding: var(--s-7); } }
.review-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.review-top b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; }
.review-top span { font-size: 13px; color: var(--muted); }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: var(--s-3) 0 6px; }
.prog i { height: 5px; border-radius: 3px; background: var(--line); }
.prog i.on { background: var(--accent); }
.prog-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: var(--s-5); }
.prog-l .on { color: var(--text); font-weight: 700; }
.q { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 var(--s-1); line-height: 1.25; }
.q:focus { outline: none; }
.help { font-size: 14px; color: var(--text-2); margin: 0 0 var(--s-3); }
.field { display: block; width: 100%; min-height: 48px; background: var(--field); border: 1.5px solid var(--line-2); border-radius: var(--r-btn);
  padding: var(--s-3) var(--s-4); font: 16px/1.4 var(--font); color: var(--text); }
.field::placeholder { color: var(--muted); }
.field:hover { border-color: var(--text); }
.field:focus-visible { outline-offset: 0; border-color: var(--focus); }
.field[aria-invalid="true"] { border-color: var(--error); }
label.lbl { display: block; font-size: 14px; font-weight: 700; margin: var(--s-3) 0 6px; }
label.lbl small { font-weight: 400; color: var(--muted); }
.err { color: var(--error); font-size: 13.5px; margin: 6px 0 0; }
.row2 { display: grid; gap: var(--s-3); }
@media (min-width: 480px) { .row2 { grid-template-columns: 1fr 1fr; } }
.phone { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-2); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-4) 0 0; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--electric); }
.results { margin: var(--s-2) 0 0; border: 1px solid var(--line-2); border-radius: var(--r-btn); overflow: hidden; list-style: none; padding: 0; }
.results:empty { display: none; }
.results li + li { border-top: 1px solid var(--line); }
.results button, .results a.res { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); text-align: left;
  padding: var(--s-3) var(--s-4); background: transparent; border: 0; color: var(--text); font: inherit; cursor: pointer; text-decoration: none; min-height: 52px; }
.results button:hover, .results a.res:hover, .results button:focus-visible { background: var(--hover-row); }
.results b { display: block; font-size: 14.5px; line-height: 1.3; }
.results small { font-size: 12.5px; color: var(--muted); }
.results .more { justify-content: center; color: var(--text-2); font-weight: 600; font-size: 14px; }
.empty { font-size: 14px; color: var(--text-2); margin: var(--s-3) 0 0; }
.pop { font-size: 13px; color: var(--muted); margin: var(--s-4) 0 var(--s-2); }
.review .btn-primary.btn-block { margin-top: var(--s-5); }
.for { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 4px var(--s-3); margin: 0 0 var(--s-4); }
.for button { background: none; border: 0; color: var(--accent-text); font: 700 13px var(--font); cursor: pointer; padding: 2px; text-decoration: underline; }
.picked { border: 1.5px solid var(--accent); background: var(--tint); border-radius: var(--r-btn); padding: var(--s-4); }
.picked b { display: block; }
.opts { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.opt { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  background: transparent; border: 1.5px solid var(--line-2); border-radius: var(--r-md); color: var(--text); font: 600 15.5px var(--font); text-align: left; cursor: pointer; }
.opt:hover { border-color: var(--text); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.dock { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.dock .count { font-size: 13px; color: var(--muted); }
.match { background: var(--mint); color: var(--midnight); border-radius: var(--r-btn); padding: var(--s-4); margin: var(--s-3) 0; }
.match b { color: var(--midnight); }
.next { margin: var(--s-2) 0 0; padding-left: var(--s-5); color: var(--text-2); font-size: 14.5px; }
.next li { margin-bottom: var(--s-1); }
.subhead { font-size: 13.5px; font-weight: 700; margin: var(--s-4) 0 0; }
.formerr { background: var(--hover-row); border-left: 3px solid var(--error); padding: var(--s-3); border-radius: var(--r-sm); font-size: 14px; margin-top: var(--s-3); }
[hidden] { display: none !important; }

/* ---------- cards ---------- */
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); }
.box p, .box li { color: var(--text-2); font-size: 15.5px; }
.box ul { margin: var(--s-2) 0 0; padding-left: var(--s-5); }
.box h3 { margin-bottom: var(--s-2); }
.card { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); }
.card p { margin: var(--s-2) 0 0; color: var(--text-2); font-size: 15px; }
.num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--accent-text); margin-bottom: var(--s-5); }
.num::before { content: "0"; }
a.link-card { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); text-decoration: none; transition: border-color .2s var(--ease);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); color: var(--text); }
a.link-card:hover { border-color: var(--text); }
a.link-card.trade { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.link-card small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.goal a { display: inline-block; margin-top: var(--s-3); color: var(--accent-text); font-weight: 700; font-size: 15px; }

/* ---------- photos (generated stand-ins, docs/design/PHOTO_PROMPTS.md) ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--r-card); }
.photo figcaption { font-size: 13px; color: var(--muted); margin-top: var(--s-2); }
.prose .photo { margin: var(--s-8) 0; }
.split { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr minmax(320px, 420px); gap: var(--s-12); } }
.photo.tall img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .photo.tall img { aspect-ratio: 4 / 3; object-position: 50% 30%; } }
a.link-card:has(img) { flex-wrap: wrap; padding-top: 0; overflow: hidden; align-items: center; align-content: flex-start; }
a.link-card:has(img) > span:not([aria-hidden]) { flex: 1 1 0; min-width: 0; }
a.link-card img { flex: 0 0 calc(100% + 2 * var(--s-5)); max-width: none; margin: 0 calc(-1 * var(--s-5)) var(--s-2);
  height: 170px; object-fit: cover; }
.page-hero.photo-trades { background: var(--overlay-photo-mobile), url('/img/photos/trades.webp') 70% 30% / cover no-repeat, var(--bg); }
@media (min-width: 900px) { .page-hero.photo-trades { background: var(--overlay-photo), url('/img/photos/trades.webp') right 30% / cover no-repeat, var(--bg);
  padding: var(--s-14) 0; } }

/* ---------- FAQ ---------- */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3); }
details.faq summary { font-weight: 700; cursor: pointer; min-height: 28px; }
details.faq p { color: var(--text-2); margin: var(--s-3) 0 0; }

/* ---------- lists of qualifications ---------- */
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.qlist a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 52px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn); text-decoration: none; }
.qlist a:hover { border-color: var(--text); background: var(--hover-row); }
.qlist b { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; }
.qlist small { color: var(--muted); font-size: 12.5px; }
.ind-head { margin: var(--s-10) 0 var(--s-4); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.ind-head a { color: var(--accent-text); font-size: 14.5px; font-weight: 700; }
.searchbar { display: grid; gap: var(--s-3); margin: var(--s-6) 0 0; max-width: 720px; }

/* ---------- page heroes (Midnight band) ---------- */
.page-hero { padding: var(--s-10) 0 var(--s-11); background: var(--bg); color: var(--text); }
.page-hero .row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: var(--s-4); }
.page-hero h1 { font-size: clamp(30px, 5vw, 52px); max-width: 860px; margin-top: var(--s-2); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .actions { margin-top: var(--s-6); max-width: 360px; }
.page-hero .results { background: var(--field); }
.overview { display: grid; gap: var(--s-3); margin: 0; }
@media (min-width: 640px) { .overview { grid-template-columns: repeat(2, 1fr); } }
.overview div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn); padding: var(--s-4); }
.overview dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.overview dd { margin: var(--s-1) 0 0; color: var(--text); }
.overview a { color: var(--text); font-weight: 600; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--text-2); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: var(--text-2); }

/* ---------- footer (light, colour logo) ---------- */
.site-footer { background: var(--offwhite); border-top: 1px solid var(--line); padding: var(--s-10) 0 var(--s-12); font-size: 13px; color: var(--muted); line-height: 1.6; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer nav a { color: var(--text-2); font-size: 14px; text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { max-width: 70ch; }
.placeholder { color: var(--accent-text); background: var(--tint); padding: 0 4px; border-radius: 4px; }

/* /trades/ short list and folded industry lists (2026-11-16) */
.chips-label { margin: var(--s-5) 0 var(--s-2); font-size: 14px; color: var(--muted); }
.trade-chips .chip { color: var(--text); }
.see-all { margin: var(--s-3) 0 0; }
.see-all a { color: var(--accent-text); font-weight: 700; font-size: 14.5px; }
details.more-quals { margin-top: var(--s-4); }
details.more-quals summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--accent-text); }
details.more-quals[open] summary { margin-bottom: var(--s-3); }

/* SEO pages: guides, licensing, qualification hubs (2026-11-16) */
.page-hero .answer { margin: var(--s-5) 0 0; padding: var(--s-4) var(--s-5); border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 var(--r-btn) var(--r-btn) 0; color: var(--text); font-size: 17px; line-height: 1.55; max-width: 760px; }
.page-hero .reassure { margin: var(--s-2) 0 0; font-size: 13.5px; color: var(--muted); text-align: left; }
.table-wrap { overflow-x: auto; margin: var(--s-5) 0; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); }
.seo table { width: 100%; border-collapse: collapse; font-size: 15px; }
.seo th, .seo td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.seo th { background: var(--bg); font-weight: 700; }
.seo tr:last-child td { border-bottom: 0; }
.seo caption { caption-side: bottom; text-align: left; padding: var(--s-2) var(--s-4); font-size: 13px; color: var(--muted); }
.disclosure-seo { margin: var(--s-8) 0; padding: var(--s-4) var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 14.5px; color: var(--text-2); }
.sources { font-size: 14px; }
.sources a { word-break: break-word; }
