/* ==========================================================================
   Sector guide pages (guides/*)
   Visual-first pillar content. Every diagram here is HTML + CSS: text stays in
   the DOM, reflows at any width, and never scales down as a picture. Inline SVG
   is used only for icon glyphs. No JavaScript.

   Written against the design tokens in css/style.css.
   ========================================================================== */

.g-ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: -4px;
}
.g-ic--sm { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Hero ---------- */
.g-hero {
  --g-accent: #FF9933;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 153, 51, .18), transparent 65%),
    radial-gradient(760px 380px at 92% 8%, rgba(19, 136, 8, .16), transparent 62%),
    linear-gradient(135deg, #0a1128 0%, #142346 100%);
  color: #eef2fb;
  padding: 24px 0 28px;
  border-bottom: 3px solid var(--g-accent);
}
.g-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  opacity: .55;
}
/* Lightweight animated WebP ambient layer: real motion, no video request.
   Hidden entirely when the visitor prefers reduced motion. */
.g-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../assets/motion/guides-ambient.webp') center / cover no-repeat;
  opacity: .15;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) { .g-hero::after { display: none; } }

.g-hero .container { position: relative; z-index: 1; }
.g-crumbs { font-size: .82rem; letter-spacing: .01em; color: #b9c6e2; margin-bottom: 14px; }
.g-crumbs a { color: #dce5f7; text-decoration: none; font-weight: 600; }
.g-crumbs a:hover { color: var(--g-accent); }
.g-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: .8125rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: #0a1128; background: var(--g-accent);
  padding: 6px 13px; border-radius: 999px;
}
.g-hero-ic { width: 15px; height: 15px; vertical-align: -2px; }
.g-hero h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.09;
  letter-spacing: -.03em;
  text-wrap: balance;
  margin: 0 0 14px; max-width: 21ch; color: #fff;
}
.g-lede { font-size: .95rem; line-height: 1.55; color: #ccd7ec; max-width: 60ch; margin: 0 0 18px; }
.g-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 16px; max-width: 500px; }
.g-pictograms { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.g-picto { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 6px 12px; }
.g-picto-icon { color: var(--g-accent); width: 16px; height: 16px; }
.g-picto-label { font-size: .78rem; font-weight: 600; color: #ccd7ec; }
.g-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 14px 16px;
}
.g-stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.g-stat-label { display: block; font-size: .8125rem; color: #b9c6e2; margin-top: 4px; }
.g-hero-note { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: #a9b8d6; margin: 0; max-width: 70ch; }
.g-hero-logo { display: block; width: clamp(100px, 15vw, 150px); height: auto; margin: 0 0 10px; }

/* Real official marks (self-hosted under assets/) when a sector declares one. */
.g-card-icon img,
.g-card-icon .g-card-logo { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 8px; display: block; }

/* ---------- Section jump ---------- */
.g-jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px; padding-bottom: 4px;
}
.g-jump a {
  font-size: .84rem; font-weight: 600; text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #d8e0ef; color: var(--text-dark);
  transition: border-color .18s, color .18s, transform .18s;
}
.g-jump a:hover { border-color: var(--saffron); color: #965000; transform: translateY(-1px); }

/* ---------- Blocks ---------- */
.g-block { padding-top: 34px; }
.g-h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25;
  margin: 0 0 8px; color: var(--text-dark);
}
.g-h2-ic { color: var(--saffron-dark); width: 22px; height: 22px; }
.g-sub { font-size: .95rem; line-height: 1.6; color: var(--text-grey); margin: 0 0 20px; max-width: 70ch; }

/* ---------- 3.4 Matrix: qualification → post ---------- */
.g-matrix {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}
.g-col {
  background: #fff; border: 1px solid #e2e8f3; border-radius: 16px;
  padding: 16px 16px 14px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(10, 17, 40, .04);
}
.g-col-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid #f0f3f9; }
.g-col-head .g-ic { color: var(--saffron-dark); }
.g-col-head h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.g-posts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 9px; }
.g-post { display: block; background: var(--off-white); border-radius: 10px; padding: 9px 11px; }
.g-post-name { display: block; font-size: .9rem; font-weight: 700; color: var(--text-dark); line-height: 1.35; }
.g-post-code {
  display: inline-block; margin-top: 5px;
  font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-dark); background: rgba(19, 136, 8, .1);
  padding: 2px 7px; border-radius: 999px;
}
.g-post-note { display: block; font-size: .8125rem; color: var(--text-grey); margin-top: 5px; line-height: 1.45; }
.g-col-note { margin: auto 0 0; font-size: .8125rem; line-height: 1.55; color: var(--text-grey); }

/* ---------- 3.1 Flow / stepper ---------- */
.g-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.g-step { position: relative; padding-left: 62px; }
/* The rail is one pseudo-element on the list container, so wrapping never
   breaks it. */
.g-flow::before {
  content: ''; position: absolute; left: 23px; top: 14px; bottom: 14px;
  width: 2px; background: linear-gradient(180deg, var(--saffron), var(--green));
  opacity: .3;
}
.g-flow { position: relative; }
.g-step-num {
  position: absolute; left: 0; top: 2px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--saffron);
  color: var(--saffron-dark); font-weight: 800; font-size: 1.05rem;
  z-index: 1;
}
.g-step-body { background: #fff; border: 1px solid #e2e8f3; border-radius: 14px; padding: 14px 16px; }
.g-step-name { margin: 0 0 5px; font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.g-step-tests { margin: 0 0 6px; font-size: .9rem; line-height: 1.55; color: var(--text-dark); }
.g-step-note { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--text-grey); }

/* ---------- 3.3 Ladder ---------- */
.g-ladder { list-style: none; margin: 0; padding: 0 0 0 6px; display: grid; gap: 10px; }
.g-rung { position: relative; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e8f3; border-radius: 12px; padding: 12px 16px; }
/* Each rung steps a little further right on wide screens, so the progression is
   visible without a single absolute coordinate. */
.g-rung:nth-child(1) { margin-right: 0; }
.g-rung:nth-child(2) { margin-right: 8%; }
.g-rung:nth-child(3) { margin-right: 16%; }
.g-rung:nth-child(4) { margin-right: 24%; }
.g-rung:nth-child(5) { margin-right: 32%; }
.g-rung-index {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 153, 51, .14); color: var(--saffron-dark);
  font-weight: 800; font-size: .88rem;
}
.g-rung-text { font-size: .93rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }

/* ---------- Reality check ---------- */
.g-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.g-point {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid #e2e8f3; border-left: 3px solid var(--saffron);
  border-radius: 12px; padding: 14px 16px;
}
.g-point-ic { color: var(--saffron-dark); margin-top: 2px; width: 18px; height: 18px; }
.g-point p { margin: 0; font-size: .89rem; line-height: 1.58; color: var(--text-dark); }

/* ---------- Live listings ---------- */
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-list-row {
  display: grid; gap: 4px 14px;
  grid-template-columns: 28px minmax(140px, auto) 1fr auto;
  align-items: center;
  background: #fff; border: 1px solid #e2e8f3; border-radius: 12px;
  padding: 12px 16px;
  transition: border-color .18s, box-shadow .18s;
}
.g-list-row:hover { border-color: var(--saffron); box-shadow: 0 8px 18px rgba(10, 17, 40, .07); }
.g-list-mark {
  width: 28px; height: 28px; object-fit: contain;
  border-radius: 6px; background: #fff;
}
.g-list-mark--none {
  display: grid; place-items: center;
  background: #f1f5fb; color: #94a3b8;
}
.g-list-mark--none .g-ic { width: 14px; height: 14px; }
/* Authorities with no verified logo get a monogram of their own name. It is
   deliberately not an emblem: two initials on a colour derived from the name,
   so every row is recognisable without pretending to be an official seal. */
.g-list-mark--mono {
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; letter-spacing: .02em;
  color: hsl(var(--mono-h, 30) 52% 27%);
  background: hsl(var(--mono-h, 30) 70% 93%);
  border: 1px solid hsl(var(--mono-h, 30) 60% 84%);
}
.g-list-mark--mono[data-len="3"] { font-size: .52rem; letter-spacing: 0; }
.g-list-mark--mono[data-len="4"] { font-size: .46rem; letter-spacing: 0; }
.g-list-type {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-grey);
}
.g-list-type .g-ic { width: 14px; height: 14px; vertical-align: -2px; }
.g-list-type--job .g-ic { color: var(--saffron-dark); }
.g-list-type--admit .g-ic { color: #7a4bd6; }
.g-list-type--result .g-ic { color: var(--green-dark); }
.g-list-title { font-size: .93rem; font-weight: 600; color: var(--text-dark); text-decoration: none; line-height: 1.4; }
.g-list-title:hover { color: #965000; text-decoration: underline; }
.g-list-date { font-size: .8125rem; color: var(--text-grey); white-space: nowrap; }
.g-list-more { margin: 12px 0 0; text-align: center; font-size: .9rem; }
.g-list-more a { color: #965000; font-weight: 700; text-decoration: none; }
.g-list-more a:hover { text-decoration: underline; }
.g-empty a { color: #965000; font-weight: 600; }

/* ---------- FAQ (native, always in the DOM) ---------- */
.g-faq-item { background: #fff; border: 1px solid #e2e8f3; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.g-faq-item summary {
  cursor: pointer; padding: 14px 18px; font-size: .95rem; font-weight: 700;
  color: var(--text-dark); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.g-faq-item summary::-webkit-details-marker { display: none; }
.g-faq-item summary::after {
  content: '+'; font-size: 1.2rem; font-weight: 700; color: var(--saffron-dark); line-height: 1;
}
.g-faq-item[open] summary::after { content: '–'; }
.g-faq-item p { margin: 0; padding: 0 18px 16px; font-size: .91rem; line-height: 1.62; color: var(--text-grey); }
.g-faq-item summary:focus-visible { outline: 3px solid rgba(255, 153, 51, .55); outline-offset: -3px; }

/* ---------- Syllabus ---------- */
.g-syllabus { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-syl-card { background: #fff; border: 1px solid #e2e8f3; border-radius: 12px; padding: 16px 18px; }
.g-syl-card h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; color: var(--text-dark); }
.g-syl-card p { margin: 0 0 8px; font-size: .85rem; line-height: 1.55; color: var(--text-grey); }
.g-syl-card a { font-size: .82rem; font-weight: 700; color: #965000; text-decoration: none; }
.g-syl-card a:hover { text-decoration: underline; }
.g-syl-books { margin-top: 8px; font-size: .8rem; line-height: 1.5; color: var(--text-grey); }
.g-syl-books-label { font-weight: 700; color: var(--text-dark); }
.g-syl-books a { color: #2f7fd4; font-weight: 600; }
.g-syl-books a:hover { text-decoration: underline; }
.g-syl-topics { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.g-syl-topics li { font-size: .78rem; line-height: 1.5; color: var(--text-grey); padding-left: 12px; position: relative; }
.g-syl-topics li::before { content: '▸'; position: absolute; left: 0; color: var(--saffron); }
.g-syl-topics b { color: var(--text-dark); }
@media (max-width: 520px) {
  .g-syl-topics li { font-size: .75rem; }
}
.g-plan { background: #fff; border: 1px solid #e2e8f3; border-left: 3px solid var(--saffron); border-radius: 12px; padding: 18px 20px; margin-top: 14px; }
.g-plan-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .95rem; font-weight: 800; color: var(--text-dark); }
.g-plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: plan; }
.g-plan-step { display: flex; align-items: flex-start; gap: 12px; }
.g-plan-num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: #fff; font-weight: 800; font-size: .8rem; }
.g-plan-body b { display: block; font-size: .88rem; color: var(--text-dark); }
.g-plan-body p { margin: 2px 0 0; font-size: .82rem; line-height: 1.55; color: var(--text-grey); }

/* ---------- Apply flow + document checklist ---------- */
.g-apply { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); }
.g-apply-step { position: relative; background: #fff; border: 1px solid #e2e8f3; border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(10, 17, 40, .04); }
.g-apply-num {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--saffron); color: #fff; font-weight: 800; font-size: .8rem;
}
.g-apply-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 153, 51, .13); color: var(--saffron-dark); margin-bottom: 10px; }
.g-apply-step h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; color: var(--text-dark); line-height: 1.3; padding-right: 24px; }
.g-apply-step p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--text-grey); }

.g-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g-doc { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: start; background: #fff; border: 1px solid #e2e8f3; border-radius: 12px; padding: 14px; }
.g-doc-ic { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(19, 136, 8, .1); color: var(--green-dark); }
.g-doc b { font-size: .88rem; font-weight: 800; color: var(--text-dark); line-height: 1.35; }
.g-doc p { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--text-grey); }
@media (max-width: 520px) {
  .g-apply { grid-template-columns: 1fr; }
  .g-docs { grid-template-columns: 1fr; }
}

/* ---------- Attribution ---------- */
.g-attrib { background: #fff; border: 1px solid #e2e8f3; border-radius: 16px; padding: 22px 24px; margin-bottom: 40px; }
.g-attrib p { font-size: .87rem; line-height: 1.65; color: var(--text-grey); margin: 0 0 10px; }
.g-attrib-links a { color: #965000; font-weight: 600; text-decoration: none; }
.g-attrib-links a:hover { text-decoration: underline; }

/* ---------- Hub cards: image-led, text stays live HTML ---------- */
.g-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.g-card {
  --g-accent: #FF9933;
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 59, .14);
  border-radius: 20px;
  padding: 20px;
  background: #14213b;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(10, 17, 40, .08);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.g-card::before {
  content: '';
  position: absolute; z-index: 3; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--g-accent) 0 52%, rgba(255, 255, 255, .7) 52%);
}
.g-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 14, 32, .04) 8%, rgba(6, 14, 32, .52) 58%, rgba(6, 14, 32, .88) 100%),
              radial-gradient(420px 240px at 80% -10%, rgba(255, 255, 255, .12), transparent 64%);
}
.g-card-art, .g-card-art img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.g-card-art img { object-fit: cover; object-position: center; transition: transform .4s ease; }
.g-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(10, 17, 40, .16); border-color: var(--g-accent); }
.g-card:hover .g-card-art img { transform: scale(1.05); }
.g-card > :not(.g-card-art) { position: relative; z-index: 2; }
.g-card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--saffron-dark); margin-bottom: 4px;
  box-shadow: 0 6px 16px rgba(6, 14, 32, .2);
}
.g-card-icon .g-ic { width: 22px; height: 22px; vertical-align: 0; }
.g-card-name { font-size: 1.12rem; font-weight: 850; color: #fff; line-height: 1.25; text-wrap: balance; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 14px rgba(0,0,0,.45); }
.g-card-meta { font-size: .82rem; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.g-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .85rem; font-weight: 750; color: #fff; }
.g-card-cta .g-ic { color: var(--g-accent); }

/* ---------- Footer ---------- */
.g-foot { background: var(--bg-dark); color: #c3cfe6; padding: 40px 0 0; margin-top: 20px; }
.g-foot .foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-bottom: 26px; }
.g-foot h3 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.g-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.g-foot a { color: #c3cfe6; text-decoration: none; font-size: .88rem; }
.g-foot a:hover { color: var(--saffron); }
.g-foot .foot-note { font-size: .85rem; line-height: 1.6; color: #9dabc8; margin: 10px 0 0; }
.g-foot-note { font-size: .8125rem; line-height: 1.65; max-width: 760px; margin: 0 auto; padding: 0 20px 22px; color: #8f9db9; text-align: center; }
.g-nav-cta { padding: 9px 18px; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .g-step { padding-left: 56px; }
  .g-step-num { width: 40px; height: 40px; font-size: .95rem; }
  .g-flow::before { left: 19px; }
  .g-rung:nth-child(n) { margin-right: 0; }
  .g-list-row { grid-template-columns: 28px 1fr; align-items: start; }
  .g-list-mark { grid-row: 1 / span 3; align-self: start; margin-top: 2px; }
  .g-list-type, .g-list-title, .g-list-date { grid-column: 2; }
  .g-list-date { white-space: normal; }
}
@media (max-width: 520px) {
  .g-hero { padding: 26px 0 30px; }
  .g-block { padding-top: 26px; }
  .g-attrib { padding: 18px; margin-bottom: 28px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .g-card, .g-jump a, .g-list-row { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Illustrated process diagrams (content-first) ---------- */
.diagram-band { margin: 26px 0 8px; }
.diagram-frame {
  overflow: hidden;
  border: 1px solid #e6ecf6;
  border-radius: 18px;
  background: #FFF8EE;
  box-shadow: 0 6px 22px rgba(10,17,40,.06);
}
.diagram-frame img { display: block; width: 100%; height: auto; }
.diagram-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: dstep;
}
.diagram-steps li {
  position: relative;
  padding: 11px 12px 11px 36px;
  background: #fff;
  border: 1px solid #e6ecf6;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}
.diagram-steps li::before {
  counter-increment: dstep;
  content: counter(dstep);
  position: absolute;
  left: 10px;
  top: 11px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.diagram-heading { font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin: 18px 2px 0; color: var(--navy); }
.diagram-caption { color: var(--text-grey); font-size: .86rem; line-height: 1.65; margin: 14px 2px 0; }
.diagram-caption b { color: var(--navy); }

/* Topic-specific artwork for each sector guide */
.g-sector-art {
  margin: 22px 0 0;
  border: 1px solid #e6ecf6;
  border-radius: 18px;
  overflow: hidden;
  background: #FFF8EE;
  box-shadow: 0 6px 22px rgba(10,17,40,.06);
}
.g-sector-art img { display: block; width: 100%; height: auto; }
.g-sector-art figcaption {
  padding: 12px 16px 14px;
  color: var(--text-grey);
  font-size: .82rem;
  line-height: 1.6;
  border-top: 1px solid #e6ecf6;
  background: #fff;
}
.g-sector-art figcaption b { color: var(--navy); }
@media (max-width: 640px) {
  .diagram-frame { border-radius: 12px; }
  .diagram-steps { grid-template-columns: 1fr; }
  .g-sector-art { border-radius: 12px; }
}

/* ---------- Local redesign preview: photo-led sector guide hub ---------- */
.g-hero--hub { padding: clamp(34px, 5vw, 64px) 0; }
.g-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}
.g-hub-hero-copy { min-width: 0; }
.g-hero--hub h1 { max-width: 13ch; font-size: clamp(2.2rem, 4.8vw, 4rem); }
.g-hero--hub .g-lede { max-width: 54ch; font-size: 1.02rem; line-height: 1.7; }
.g-hub-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}
.g-hub-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #dce5f7;
  font-size: .78rem;
}
.g-hub-facts b { color: #fff; }
.g-hub-hero-art {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.48;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: #15233d;
  box-shadow: 0 28px 72px rgba(0,0,0,.28);
}
.g-hub-hero-art::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(7,17,37,.82), transparent);
  pointer-events: none;
}
.g-hub-hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.g-hub-hero-art figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-shadow: 0 2px 9px rgba(0,0,0,.55);
}
.g-guide-index { padding-top: 48px; }
.g-index-heading { margin: 0 0 24px; }
.g-index-eyebrow {
  margin: 0 0 7px;
  color: #a85a00;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.g-index-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.g-index-heading > p:last-child { margin: 10px 0 0; color: var(--text-grey); line-height: 1.6; }
.g-guide-index .g-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g-guide-index .g-card { min-height: 282px; padding: 18px; border-radius: 18px; }
.g-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.g-guide-index .g-card-icon { width: 58px; height: 44px; padding: 5px; margin: 0; border-radius: 11px; }
.g-guide-index .g-card-icon img,
.g-guide-index .g-card-icon .g-card-logo { width: 100%; height: 100%; object-fit: contain; }
.g-card-count {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(7,17,37,.55);
  color: #fff;
  font-size: .72rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}
.g-guide-index .g-card-name { font-size: 1.28rem; }
.g-guide-index .g-card-meta { max-width: 30ch; line-height: 1.5; }
.g-guide-index .g-card-cta { justify-content: space-between; margin-top: 11px; color: #fff; }
.g-card:focus-visible { outline: 3px solid #ffb45e; outline-offset: 3px; }
.g-sector-art img { max-height: 430px; object-fit: cover; }

@media (max-width: 920px) {
  .g-hub-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .g-hub-hero-art { width: 100%; aspect-ratio: 1.9; }
  .g-guide-index .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .g-hero--hub { padding: 25px 0 30px; }
  .g-hero--hub h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .g-hub-facts { gap: 7px; }
  .g-hub-facts span { font-size: .72rem; padding: 8px 10px; }
  .g-hub-hero-art { aspect-ratio: 1.28; border-radius: 17px; }
  .g-guide-index { padding-top: 30px; }
  .g-guide-index .g-cards { grid-template-columns: 1fr; }
  .g-guide-index .g-card { min-height: 250px; }
}

/* ---------- Sector pages: shorter, guided, and interactive ---------- */
.g-hero--sector { padding: 28px 0 34px; }
.g-sector-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
}
.g-sector-hero-copy { min-width: 0; }
.g-hero--sector h1 { max-width: 18ch; font-size: clamp(1.9rem, 3.6vw, 3.05rem); }
.g-hero--sector .g-lede { max-width: 58ch; }
.g-hero--sector .g-sector-art {
  min-width: 0;
  margin: 0;
  border-color: rgba(255,255,255,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 22px 52px rgba(0,0,0,.24);
}
.g-hero--sector .g-sector-art img {
  width: 100%;
  height: clamp(260px, 31vw, 390px);
  max-height: none;
  object-fit: cover;
}
.g-hero--sector .g-sector-art figcaption { padding: 10px 13px; font-size: .76rem; }
.g-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.g-hero-action-primary,
.g-hero-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}
.g-hero-action-primary { background: linear-gradient(135deg, var(--saffron), #f0a43e); color: #1b2334; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.g-hero-action-primary:hover { background: #ffc46b; transform: translateY(-1px); }
.g-hero-action-secondary { border: 1px solid rgba(255,255,255,.28); color: #eef2fb; }
.g-hero-action-secondary:hover { background: rgba(255,255,255,.1); }
.g-hero-actions a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.g-jump {
  position: sticky;
  top: 76px;
  z-index: 30;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 9px max(4vw, calc((100% - 1240px) / 2));
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid #dfe6f1;
  background: rgba(248,250,253,.95);
  box-shadow: 0 5px 18px rgba(10,17,40,.05);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}
.g-jump-label {
  flex: 0 0 auto;
  align-self: center;
  color: #66748d;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.g-jump a { flex: 0 0 auto; white-space: nowrap; }
#who-can-apply, #selection, #live, #apply, #more-guides { scroll-margin-top: 138px; }
.g-block { padding-top: 28px; }

.g-role-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(190px, .8fr) auto minmax(170px, auto);
  align-items: end;
  gap: 10px;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid #e1e8f2;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #f8fafc);
}
.g-role-tools label { display: grid; gap: 5px; color: #40506a; font-size: .74rem; font-weight: 800; }
.g-role-tools input,
.g-role-tools select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
  font-size: .86rem;
}
.g-role-tools input:focus-visible,
.g-role-tools select:focus-visible,
.g-role-reset:focus-visible { outline: 3px solid rgba(255,153,51,.48); outline-offset: 2px; }
.g-role-reset {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.g-role-reset:hover { border-color: #965000; color: #965000; }
.g-role-count { margin: 0; align-self: center; color: #53627a; font-size: .78rem; font-weight: 700; }
.g-role-empty {
  margin: 0 0 14px;
  padding: 15px;
  border: 1px dashed #d5deeb;
  border-radius: 12px;
  background: #fff;
  color: var(--text-grey);
  font-size: .88rem;
}
.g-role-empty[hidden], [hidden] { display: none !important; }

.g-stage-detail {
  overflow: hidden;
  border: 1px solid #e2e8f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10,17,40,.04);
}
.g-stage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
}
.g-stage-summary::-webkit-details-marker { display: none; }
.g-stage-summary:focus-visible { outline: 3px solid rgba(255,153,51,.5); outline-offset: -3px; }
.g-step-name { margin: 0; font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.g-stage-toggle,
.g-disclosure-mark,
.g-more-toggle > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,153,51,.14);
  color: var(--saffron-dark);
  font-size: 1.1rem;
  font-weight: 800;
}
.g-stage-toggle::before,
.g-disclosure-mark::before,
.g-more-toggle > span::before { content: '+'; }
.g-stage-detail[open] .g-stage-toggle::before,
.g-disclosure[open] .g-disclosure-mark::before,
.g-more-card[open] .g-more-toggle > span::before { content: '−'; }
.g-stage-body { padding: 0 17px 15px; }
.g-stage-body .g-step-tests { margin: 0 0 6px; font-size: .9rem; line-height: 1.55; color: var(--text-dark); }
.g-stage-body .g-step-note { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--text-grey); }

.g-more-card,
.g-disclosure {
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(10,17,40,.04);
}
.g-more-card { margin-bottom: 0; }
.g-more-summary,
.g-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.g-more-summary { min-height: 76px; padding: 14px 19px; }
.g-more-summary::-webkit-details-marker,
.g-disclosure > summary::-webkit-details-marker { display: none; }
.g-more-summary:focus-visible,
.g-disclosure > summary:focus-visible { outline: 3px solid rgba(255,153,51,.5); outline-offset: -3px; }
.g-more-title { display: grid; gap: 3px; }
.g-more-kicker { color: #9a5a08; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.g-more-heading { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--navy); font-size: 1.08rem; line-height: 1.25; }
.g-more-toggle { display: inline-flex; align-items: center; gap: 9px; color: #56647b; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.g-more-content { padding: 0 19px 19px; }
.g-more-content .g-sub { margin-bottom: 14px; }
.g-more-guide { padding-bottom: 40px; }
.g-more-guide-heading { margin: 0 0 15px; }
.g-more-guide-heading .g-h2 { margin-bottom: 5px; }
.g-more-guide-heading .g-sub { margin-bottom: 0; }
.g-disclosure { margin: 9px 0; }
.g-disclosure > summary { min-height: 54px; padding: 12px 16px; }
.g-disclosure > summary h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text-dark);
  font-size: .93rem;
  font-weight: 800;
}
.g-disclosure > summary h3 .g-ic { color: var(--saffron-dark); }
.g-disclosure > summary:hover { background: #fbfcfe; }
.g-disclosure[open] > summary { border-bottom: 1px solid #e8edf4; }
.g-disclosure-content { padding: 15px 16px 17px; }
.g-disclosure-content .g-sub { margin-bottom: 13px; }
.g-disclosure-content > p { color: var(--text-grey); font-size: .87rem; line-height: 1.65; }
.g-disclosure-content .g-faq-item { margin-bottom: 8px; }

@media (max-width: 900px) {
  .g-sector-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .g-hero--sector .g-sector-art { max-width: 760px; }
  .g-hero--sector .g-sector-art img { height: clamp(240px, 42vw, 370px); }
  .g-role-tools { grid-template-columns: minmax(190px, 1fr) minmax(180px, .8fr) auto; }
  .g-role-count { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .g-hero--sector { padding: 22px 0 28px; }
  .g-hero--sector h1 { font-size: clamp(1.8rem, 8.3vw, 2.6rem); }
  .g-hero--sector .g-sector-art img { height: 230px; }
  .g-jump { top: 70px; padding-top: 8px; padding-bottom: 8px; }
  .g-jump-label { display: none; }
  .g-role-tools { grid-template-columns: 1fr; align-items: stretch; }
  .g-role-count { grid-column: auto; }
  .g-more-summary { align-items: flex-start; padding: 14px; }
  .g-more-toggle { font-size: 0; }
  .g-more-toggle > span { font-size: 1.1rem; }
  .g-more-content, .g-disclosure-content { padding-right: 13px; padding-left: 13px; }
}
