:root {
  /* ICHOM brand palette — the Pantone-referenced values, taken from
     vista-site's stylesheet so the two apps sit on one brand rather than two
     approximations of it. Do not eyeball these. */
  --navy:        #003865;   /* ICHOM Blue, PMS 2955 C */
  --navy-deep:   #002845;   /* derived: footers and the deepest panels */
  --navy-line:   #2A567B;   /* derived: hairlines on navy */
  --navy-ink:    #001B2E;   /* derived: the landing page's darkest ground */
  --navy-alt:    #0A4270;   /* derived: the landing page's alternating panel */
  --green:       #36BC45;   /* ICHOM Green, PMS 361 C */
  --green-deep:  #2AA139;
  --sage:        #C2E4BA;   /* ICHOM Light Green, PMS 2260 C — the Commitment level */
  --orange:      #FD5000;   /* ICHOM Orange, PMS 021 C */
  --stone:       #E2DCD5;   /* ICHOM Gray, PMS 4281 C */
  --mist:        #C8D6E2;   /* body text on navy */
  --mist-dim:    #A3BBCC;   /* muted labels on navy: 5.2:1 on --navy-alt */

  /* Green as type: --green-deep is 3.4:1 on white, short of the 4.5:1 WCAG
     2.1 AA asks for, so small green type uses this instead. Fills and the
     mark artwork keep the brand values. Brand orange is also short as small
     type (3.3:1 on white, 3.1 to 3.6:1 on the navy panels) and is kept as it
     is; the accessibility statement says so. */
  --green-ink:   #1B7A28;   /* green type on light grounds: 5.4:1 on white */

  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-300: #c9d0da;
  --gray-500: #6b7380;
  --gray-700: #3a414d;
  --gray-900: #1b2028;
  --max-w: 760px;
  --landing-w: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.55;
}

a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--orange); }

/* One header everywhere: flat navy, the plain ICHOM wordmark, and the
   programme name set quietly beside it. It sits above a white document on the
   inner pages and above the navy landing page, so it is deliberately plain
   enough to do both. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Slightly transparent with a blur, so content passing beneath reads as
     passing beneath rather than disappearing. The hairline is what keeps the
     header distinct from the navy panel scrolling under it. */
  background: rgba(0, 56, 101, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--navy-line);
}
/* Anchored jumps have to clear the sticky header. */
[id] { scroll-margin-top: 5rem; }
@supports not (backdrop-filter: blur(8px)) {
  .site-header { background: var(--navy); }
}
.site-header .wrap {
  max-width: var(--landing-w);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo { height: 21px; width: auto; display: block; }
.brand-sep { width: 1px; height: 20px; background: var(--navy-line); display: block; }
.brand-program {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; color: var(--mist);
}
.brand:hover .brand-program { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  color: var(--mist); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }
/* On a narrow screen the staff shortcuts run the header off the edge. Sign
   out is the one that has to stay reachable; the others have their own pages
   a tap away. */
@media (max-width: 640px) {
  .site-header { padding: 0 1rem; }
  .site-nav .nav-wide { display: none; }
  .brand { gap: 0.55rem; }
  .brand-program { font-size: 0.9rem; }
}

main.wrap {
  max-width: var(--max-w);
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
}

.card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(27,54,93,0.04);
  margin-bottom: 1.25rem;
}

h1.page-title, h2.page-title { font-size: 1.8rem; margin: 0 0 0.5rem; color: var(--navy); letter-spacing: -0.02em; }
h2 { color: var(--navy); font-size: 1.25rem; margin-top: 1.5rem; }
h3 { color: var(--navy); font-size: 1.05rem; }

p.lead { font-size: 1.05rem; color: var(--gray-700); }

.progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-500);
  font-size: 0.85rem;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.3s ease;
}

label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=url] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font: inherit;
  background: white;
}
input:focus { outline: 2px solid var(--green); outline-offset: 1px; }

/* Keyboard users land here first. Off-screen until focused, then pinned
   over the header. */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 6px 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; outline: 2px solid var(--green); outline-offset: 2px; }

/* Text for assistive technology only. */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* A set of choice cards is a radio group, so it is a fieldset whose legend
   is the question. The legend may wrap a heading where the question is also
   the section heading. */
fieldset.choice-group { border: none; padding: 0; margin: 0; min-width: 0; }
fieldset.choice-group > legend { padding: 0; margin: 0; display: block; }
fieldset.choice-group > legend.q { font-weight: 600; margin: 1rem 0 0.35rem; color: var(--navy); }
fieldset.choice-group > legend > h2 { margin-bottom: 0.5rem; }

.privacy {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  /* Navy with a green hairline rather than a green fill: white on brand
     green is 2.5:1, and no green dark enough for white type is the brand's.
     White on navy is 12:1, and the hairline keeps the green on the action. */
  background: var(--navy);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--green);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--navy-deep); color: white; box-shadow: 0 0 0 1px var(--green); }
.btn.secondary { background: transparent; color: var(--navy); border: 1px solid var(--gray-300); }
.btn.secondary:hover { background: var(--gray-50); color: var(--navy); }
.btn.orange { background: var(--orange); border-color: var(--orange); }
.btn.orange:hover { background: #d75616; border-color: #d75616; color: white; }

/* Per-level color tokens (match the HTML prototype) */
.level-0 { --level-color: #C4384B; --level-tint: rgba(196,56,75,0.08); }
.level-1 { --level-color: var(--orange); --level-tint: rgba(253,80,0,0.08); }
.level-2 { --level-color: #E8A317; --level-tint: rgba(232,163,23,0.10); }
.level-3 { --level-color: var(--green); --level-tint: rgba(54,188,69,0.10); }

.levels { display: flex; flex-direction: column; gap: 0.65rem; margin: 1rem 0; }
.level-option {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  align-items: start;
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: white;
  position: relative;
}
.level-option:hover { border-color: var(--level-color, var(--navy)); }
.level-option.selected {
  border: 2px solid var(--level-color);
  background: var(--level-tint);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--level-color) 20%, transparent);
  padding: calc(0.9rem - 0.5px) calc(1rem - 0.5px);
}
.level-option input { position: absolute; opacity: 0; pointer-events: none; }

.level-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.level-option.selected .level-num {
  background: var(--level-color);
  color: white;
}

.level-body { min-width: 0; }
.level-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--navy);
  flex-wrap: wrap;
}
.level-header .short {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
}
.level-option.selected .level-header .short { color: var(--level-color); font-weight: 600; }
.level-desc { font-size: 0.92rem; color: var(--gray-700); margin-top: 0.35rem; }
.level-ex { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.3rem; font-style: italic; }

.error { color: #b00020; background: #fde8ec; padding: 0.6rem 0.9rem; border-radius: 5px; margin: 0.75rem 0; }
.notice { padding: 0.6rem 0.9rem; border-radius: 8px; margin: 0.75rem 0; border: 1px solid; }
.notice-success { color: #1e5e27; background: #e8f6ea; border-color: #36BC45; }
.notice-info { color: #6b4e00; background: #fff6da; border-color: #e0b100; }

/* A required question, and one left empty on the way past it. The asterisk
   carries a title, and the message below the field says the same thing in
   words — the colour is not the only thing marking the field. */
/* Staff users screen: the one-time password, and the small inline forms
   that sit inside a table row. */
.secret-card { border: 1px solid var(--sage); }
.ok-note { font-weight: 600; color: var(--navy); margin-top: 0; }
.secret {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  background: var(--gray-50); border: 1px solid var(--gray-300);
  border-radius: 6px; padding: 0.7rem 0.85rem;
}
.secret code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem; letter-spacing: 0.06em; user-select: all;
}
.inline-form { display: inline-block; margin: 0 0 0.25rem; }
.inline-form select { width: auto; padding: 0.4rem 0.5rem; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
.btn.danger { color: #b00020; border-color: #f0c2cc; }

/* Files already attached to a question, with the control to remove one. */
.attached { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.attached li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.6rem; border: 1px solid var(--gray-300);
  border-radius: 6px; background: var(--gray-50); margin-bottom: 0.35rem;
}
.attached .hint { margin: 0; }
.attached .file-actions { margin-left: auto; font-size: 0.85rem; }

/* An evidence file opened under its question on the review screen. The
   file loads from S3's origin, so this is only the frame around it. */
.evidence-viewer {
  margin-top: 0.5rem; border: 1px solid var(--gray-300);
  border-radius: 6px; overflow: hidden;
}
.evidence-viewer-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.45rem 0.6rem; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-300); font-size: 0.85rem;
}
.evidence-viewer-bar strong { margin-right: auto; overflow-wrap: anywhere; }
.evidence-viewer-bar button {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--navy); text-decoration: underline; cursor: pointer;
}
.evidence-viewer iframe { display: block; width: 100%; height: 75vh; border: 0; }

/* The review screen's sections, as jump links or as steps shown one at a
   time. A chip turns green once that principle has a staff verdict. */
.review-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.step-chip {
  padding: 0.3rem 0.65rem; border: 1px solid var(--gray-300); border-radius: 999px;
  background: white; color: var(--navy); font-size: 0.85rem; text-decoration: none;
}
.step-chip:hover { background: var(--gray-50); }
.step-chip.reviewed { border-color: var(--green); color: var(--green-ink); }
.step-chip[aria-current="step"] { background: var(--navy); border-color: var(--navy); color: white; }
.step-mode {
  margin-left: auto; background: none; border: none; padding: 0;
  font: inherit; font-size: 0.85rem; color: var(--navy);
  text-decoration: underline; cursor: pointer;
}
[data-step] { scroll-margin-top: 80px; }
.review-paged [data-step]:not(.is-current) { display: none; }
.review-pager { margin-top: 0; }
.review-pager [data-step-go="1"] { margin-left: auto; }
.evidence-viewer img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.linklike {
  margin-left: auto; background: none; border: none; padding: 0;
  color: #b00020; font: inherit; font-size: 0.85rem; cursor: pointer;
  text-decoration: underline;
}

.optional {
  margin-left: 0.4rem; font-size: 0.75rem; font-weight: 500;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em;
}

/* Two fields that belong together — first/last name. Stacks below 30rem. */
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-pair label { margin-top: 1rem; }
@media (max-width: 30rem) { .field-pair { grid-template-columns: 1fr; gap: 0; } }
.field-error { color: #b00020; font-size: 0.85rem; margin: 0.3rem 0 0; font-weight: 500; }
.field-missing, .field-missing:focus { border-color: #b00020; }

.nav-buttons { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 0.5rem; }

.pill {
  display: inline-block; padding: 0.25rem 0.6rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--gray-100); color: var(--navy);
}
.pill.green { background: #e6f6e8; color: var(--green-ink); }
.pill.orange { background: #fdece0; color: var(--orange); }

.summary-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-ink));
  color: white; padding: 2rem; border-radius: 10px; text-align: center;
  position: relative;
  overflow: hidden;
}
.summary-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--level-color, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.summary-hero.level-0::before,
.summary-hero.level-1::before,
.summary-hero.level-2::before,
.summary-hero.level-3::before { opacity: 0.10; }
.summary-hero > * { position: relative; z-index: 1; }
.summary-hero .score {
  font-size: 3rem; font-weight: 700;
  color: var(--level-color, white);
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.summary-hero .score small { font-size: 1.25rem; opacity: 0.7; color: white; text-shadow: none; }
.summary-hero .label {
  font-size: 1.2rem; margin: 0.5rem 0; font-weight: 600;
  color: var(--level-color, var(--green));
}
.summary-hero .desc { opacity: 0.85; font-size: 0.95rem; }

.porter-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin: 1rem 0;
}
.porter-box {
  background: var(--level-tint, var(--gray-50));
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--level-color, var(--gray-300));
  border-radius: 8px; padding: 1rem; text-align: center;
  transition: box-shadow 0.15s;
}
.porter-box .big {
  font-size: 1.75rem; font-weight: 700;
  color: var(--level-color, var(--navy));
}
.porter-box .lbl { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

.dim-bar-row { display: grid; grid-template-columns: 200px 1fr 3rem; gap: 0.75rem; align-items: center; margin: 0.55rem 0; font-size: 0.9rem; }
.dim-bar { height: 10px; background: var(--gray-100); border-radius: 5px; overflow: hidden; }
.dim-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--level-color, var(--green)) 75%, transparent), var(--level-color, var(--green)));
  border-radius: 5px;
}
.dim-bar-row strong { color: var(--level-color, var(--navy)); }

.resources { display: grid; gap: 0.75rem; margin-top: 1rem; }
.resource {
  position: relative;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.resource:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(27,54,93,0.08);
  transform: translateY(-1px);
}
.resource .t {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: -0.005em;
}
.resource .d {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.resource-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.resource-cta .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.resource-cta:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.resource-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 540px) {
  .resource { grid-template-columns: 1fr; }
  .resource-cta { justify-self: start; }
}

.foot-motif {
  position: absolute; right: -9rem; bottom: -7rem;
  width: 24rem; height: 24rem;
  opacity: 0.05;
}
footer.site-footer {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
  color: var(--mist);
  padding: 2.5rem 1.5rem 2.75rem;
  margin-top: 3rem;
}
footer.site-footer .wrap {
  position: relative;
  max-width: var(--landing-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
footer.site-footer .foot-brand { display: flex; flex-direction: column; gap: 1rem; }
/* .brand is defined once for the header and reused here unchanged. */
footer.site-footer .brand-logo { height: 21px; }
footer.site-footer .fine {
  margin: 0; font-size: 0.8rem; color: var(--mist-dim); max-width: 34ch;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.55rem 2.25rem;
  margin: 0;
  justify-content: start;
}
.footer-links a {
  color: var(--mist); font-size: 0.85rem; text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .porter-grid { grid-template-columns: 1fr; }
  .dim-bar-row { grid-template-columns: 1fr; }
}

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .card { box-shadow: none; border: none; padding: 0; }
}

/* ------------------------------------------------------------------ */
/* TechMark additions — application form, review, registry            */
/* ------------------------------------------------------------------ */

textarea {
  width: 100%;
  min-height: 96px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font: inherit;
  background: white;
  resize: vertical;
}
textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font: inherit;
  background: white;
}

.hint { font-size: 0.85rem; color: var(--gray-500); margin: 0.25rem 0 0; font-weight: 400; }

.check-row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.6rem 0; font-weight: 400; }
.check-row input { margin-top: 0.3rem; flex-shrink: 0; }

.choice-cards { display: flex; flex-direction: column; gap: 0.65rem; margin: 1rem 0; }
.choice-card {
  display: grid; grid-template-columns: 24px 1fr; gap: 0.85rem; align-items: start;
  border: 1.5px solid var(--gray-300); border-radius: 12px; padding: 0.9rem 1rem;
  cursor: pointer; background: white; font-weight: 400;
  transition: border-color 0.15s, background 0.15s;
}
.choice-card:hover { border-color: var(--navy); }
.choice-card.selected { border: 2px solid var(--green); background: rgba(59,181,74,0.06); }
.choice-card input { margin-top: 0.25rem; }
.choice-card .t { font-weight: 600; color: var(--navy); }
.choice-card .d { font-size: 0.9rem; color: var(--gray-700); margin-top: 0.2rem; }

.step-list { list-style: none; margin: 1rem 0; padding: 0; }
.step-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--gray-100);
}
.step-list li:last-child { border-bottom: none; }
.step-list a { font-weight: 600; text-decoration: none; }

.pill.gray { background: var(--gray-100); color: var(--gray-500); }
.pill.red { background: #fde8ec; color: #b00020; }
.pill.navy { background: #e8edf5; color: var(--navy); }

/* The award, in words: the mark, or the mark in the Circle of Leadership. */
.award-pill {
  display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  background: #e6f6e8; color: var(--green-ink); border: 1px solid var(--green);
}
.award-pill--circle { background: #e8edf5; color: var(--navy); border-color: var(--navy); }

.principle-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.core-flag { color: var(--orange); font-weight: 700; font-size: 0.85rem; }

.bar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.85rem 0; }
.bar-box {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.9rem;
}
.bar-box .lbl { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bar-box.tier1 .lbl { color: var(--navy); }
.bar-box.tier2 .lbl { color: var(--green-ink); }

/* Asides (an example, a note for the reviewer): a plain rounded tint with a
   short label led by a small disc, the brand's circle, rather than a colored
   bar down one side. */
.example-note {
  background: var(--gray-50); border-radius: 10px;
  padding: 0.8rem 1rem 0.85rem; font-size: 0.9rem;
  color: var(--gray-700); margin: 0.85rem 0;
}
.note-label {
  display: flex; align-items: center; gap: 0.45rem;
  margin: 0 0 0.3rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-ink);
}
.note-label::before {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem;
  border-radius: 50%; background: var(--green);
}
.example-note--reviewer .note-label { color: #b33a00; }
.example-note--reviewer .note-label::before { background: var(--orange); }

.notfit-box {
  border: 1px dashed var(--gray-300); border-radius: 8px;
  padding: 0.9rem 1rem; margin-top: 1.25rem; background: var(--gray-50);
}

table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
table.data th { color: var(--navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
/* Row headers read as the first cell of the row, not as a column heading. */
table.data th[scope=row] { font-size: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; color: inherit; }
@media (max-width: 400px) {
  table.data { font-size: 0.85rem; }
  table.data th, table.data td { padding: 0.5rem 0.4rem; }
}

.answer-block { margin: 0.85rem 0; }
.answer-block .q { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.answer-block .a { margin-top: 0.25rem; white-space: pre-wrap; color: var(--gray-900); }
.answer-block .a.empty { color: var(--gray-500); font-style: italic; }

.review-form { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 8px; padding: 1rem; margin-top: 0.85rem; }
.review-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.verdict-met { color: var(--green-ink); font-weight: 700; }
.verdict-partial { color: #E8A317; font-weight: 700; }
.verdict-not_met { color: #C4384B; font-weight: 700; }
.verdict-not_fit { color: var(--gray-500); font-weight: 600; }
.verdict-not_assessed { color: var(--gray-500); }

.hero-cta { text-align: center; margin: 1.5rem 0 0.5rem; }

/* Pricing page. Two charges shown side by side is the whole argument of the
   page, so they get boxes; everything below is a document. */
.fee-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.fee-box {
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  background: var(--gray-50);
}
.fee-when {
  margin: 0; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gray-500);
}
.fee-amount {
  margin: 0.35rem 0 0.5rem; font-size: 1.9rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.02em; line-height: 1.1;
}
.fee-note { margin: 0; font-size: 0.9rem; color: var(--gray-700); }
.buys { margin: 0.75rem 0; padding-left: 1.1rem; }

/* Application terms. A long document read straight through, so it gets a
   slightly narrower measure and clear section breaks. */
.terms-version { margin: 0; font-size: 0.88rem; color: var(--gray-500); }
.terms-body h2:first-child { margin-top: 0; }
.terms-body h2 {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}
.terms-body ul { padding-left: 1.1rem; }

/* The printable application. Blank rules to write on, and tick boxes that
   survive a black-and-white print. */
.q-prompt { font-weight: 600; color: var(--navy); margin: 1.1rem 0 0.2rem; }
.answer-rule { border-bottom: 1px solid var(--gray-300); height: 1.6rem; margin-bottom: 0.6rem; }
.tickbox { list-style: none; padding: 0; margin: 0.5rem 0; }
.tickbox li { position: relative; padding-left: 1.6rem; margin: 0.4rem 0; }
.tickbox li::before {
  content: ""; position: absolute; left: 0; top: 0.25rem;
  width: 0.85rem; height: 0.85rem;
  border: 1px solid var(--gray-500); border-radius: 2px;
}
table.data.form-preview th { width: 42%; text-transform: none; font-size: 0.9rem; font-weight: 600; }
table.data.form-preview td { height: 1.8rem; border-left: 1px solid var(--gray-100); }
.preview-questions { padding-left: 1.2rem; margin: 0.75rem 0 0; }
.preview-questions > li { margin: 0.9rem 0; }
.preview-questions .hint { margin: 0.2rem 0 0.35rem; }
.req { color: var(--orange); font-weight: 700; }
.terms-body li { margin: 0.45rem 0; }
.buys li { margin: 0.5rem 0; }
.pay-seq { margin: 0.75rem 0 0; padding-left: 1.4rem; }
.pay-seq li { margin: 0.4rem 0; }

@media (max-width: 600px) {
  .fee-pair { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .bar-grid, .review-form .row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* File upload (evidence attachments)                                 */
/* ------------------------------------------------------------------ */
.upload {
  margin: 0.5rem 0 0.35rem;
}
.upload input[type=file] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
  clip: rect(0 0 0 0);
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1.5px dashed var(--gray-300);
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.upload-btn:hover { border-color: var(--green); background: #fff; }
/* The real control is the hidden input; the ring goes on the button people see. */
.upload input[type=file]:focus + .upload-btn { outline: 2px solid var(--green); outline-offset: 2px; border-color: var(--green); }
.upload-btn svg { flex-shrink: 0; }

.upload-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.upload-file {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  background: #fff;
  font-size: 0.85rem;
  color: var(--gray-900);
}
.upload-file .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file .fsize { color: var(--gray-500); font-size: 0.78rem; flex-shrink: 0; }
.upload-file .fico { color: var(--green-deep); flex-shrink: 0; }
.upload-file .fremove {
  border: none; background: none; color: var(--gray-500);
  cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 0.15rem; flex-shrink: 0;
}
.upload-file .fremove:hover { color: #b00020; }

/* ==========================================================================
   The ICHOM Aligned lockup (Design.pdf)

   Everything derives from --lw, the wordmark's width, so one number sets the
   whole lockup. The proportions are measured off the design sheet: ALIGNED
   sits at 0.088 of the wordmark width, tracked out and right-aligned to the
   wordmark's edge.
   ========================================================================== */
.lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--lw);
  gap: calc(var(--lw) * 0.028);
  line-height: 1;
}
.lockup-mark { display: block; width: 100%; height: auto; }
.lockup-line { display: flex; align-items: center; justify-content: flex-end; gap: calc(var(--lw) * 0.05); }
.lockup-word {
  font-size: calc(var(--lw) * 0.088);
  font-weight: 600;
  letter-spacing: 0.135em;
  text-transform: uppercase;
  /* The tracking is added to the right of the last letter too, so pull it
     back or ALIGNED sits short of the wordmark's edge it is meant to align to. */
  margin-right: -0.135em;
}
.lockup--navy .lockup-word,
.lockup--green .lockup-word { color: #fff; }
.lockup--white .lockup-word { color: var(--green); }


/* ==========================================================================
   Landing page — the only full-bleed, dark page in the app.

   Everything past the front door stays on the white document layout: the
   application and the review screens are worked through, not read, and a dark
   field behind a long form is a different job from a dark field behind a
   pitch. Scoped under main.landing so none of it can leak into those.
   ========================================================================== */
main.landing {
  margin: 0;
  max-width: none;
  background: var(--navy);
  color: var(--mist);
}
.ld-wrap { max-width: var(--landing-w); margin: 0 auto; padding: 0 1.5rem; }
.ld-above { position: relative; }
.landing-flash { max-width: var(--landing-w); margin: 1.25rem auto 0; padding: 0 1.5rem; }

main.landing h1, main.landing h2, main.landing h3 { color: #fff; }
main.landing a { color: #fff; }
main.landing a:hover { color: var(--sage); }

/* Orange is the punctuation, not the accent: section eyebrows and the one
   kicker above the headline. Green stays the primary and does the heavier
   work — buttons, bullets, the marks themselves. */
.ld-eyebrow, main.landing .ld-eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange);
  margin: 0 0 1.5rem;
}
.ld-kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange);
  margin: 0 0 1.6rem;
}

/* ---- Hero ---------------------------------------------------------------- */
.ld-hero {
  padding: 4rem 0 4.5rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
}
/* The house shape, oversized and barely there. It gives a column something to
   sit against; anything brighter would compete with the copy it exists to
   support.

   Offset rather than centred in its panel — sitting dead centre made the
   shapes look placed, and off-axis reads better. They run past the panel
   edge, which the hairline divider now bounds: with a rule there the clip
   reads as the shape passing behind the next panel rather than as a mistake. */
.spool { fill: #fff; pointer-events: none; }
.ld-motif {
  position: absolute;
  width: 30rem; height: 30rem;
  opacity: 0.032;
}
.ld-motif--hero   { left: -13rem; top: -7rem; }
.ld-motif--claims { right: -13rem; bottom: -8rem; width: 24rem; height: 24rem; opacity: 0.028; }
.ld-hero-grid {
  /* The copy column carries a two-sentence headline; the badges need far less
     room than an even split gives them. */
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 3.25rem; align-items: center;
  position: relative;
}
.ld-hero h1 {
  font-size: clamp(1.95rem, 3.7vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 1.9rem 0 0;
  text-wrap: balance;
}
.ld-hero h1 em { font-style: normal; color: var(--green); }
.ld-lead {
  font-size: 1.12rem; line-height: 1.6; color: var(--mist);
  max-width: 46ch; margin: 1.1rem 0 0;
}
.ld-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
/* On the navy page the primary sits a step darker than its ground, with the
   same green hairline. Text stays white on hover: main.landing a:hover would
   otherwise turn it sage. */
main.landing .btn { background: var(--navy-deep); color: #fff; }
main.landing .btn:hover { background: var(--navy-ink); color: #fff; }
main.landing .btn.ghost {
  background: transparent; color: #fff;
  border: 1px solid var(--navy-line);
}
main.landing .btn.ghost:hover { border-color: var(--mist); background: rgba(255,255,255,0.06); }

/* Side by side, because the pair is the point — "two marks, one scale" does
   not read off a stack. */
.ld-hero-badges {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ---- The badge -----------------------------------------------------------
   Generated SVG (app/badges.py), carrying its own ground and corners; this
   gives it its lift on the page. Sized off --bs.
   -------------------------------------------------------------------------- */
.gen-badge {
  display: inline-block; flex: none; line-height: 0;
  width: var(--bs); max-width: 100%;
  border-radius: calc(var(--bs) * 0.025);
  box-shadow: 0 10px 28px rgba(0, 20, 40, 0.28);
}
.gen-badge svg { max-width: 100%; }

/* ---- The two marks, described ------------------------------------------- */
/* The panels alternate from the second one down: hero, marks, claims, how,
   start — base, alt, base, alt, deep. The motif appears only on the darker
   panels, so the alternation stays readable rather than being two effects
   fighting over the same seam. */
.ld-marks-sec {
  padding: 3.75rem 0; background: var(--navy-alt);
  border-bottom: 1px solid var(--navy-line);
}
.ld-mark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
/* The two levels of evidence as labels: Commitment on the pale green,
   Track record on the full green. Navy type on both: white on brand green
   is 2.5:1. */
.ld-mark h3 {
  display: inline-block;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin: 0 0 0.9rem;
  padding: 0.4rem 0.85rem;
  padding-right: calc(0.85rem + 0.2em);   /* absorb the trailing letter-space */
  border-radius: 4px;
}
.ld-mark:nth-child(1) h3 { background: var(--sage); color: var(--navy); }
.ld-mark:nth-child(2) h3 { background: var(--green); color: var(--navy); }
.ld-mark p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--mist); }

/* ---- Claims -------------------------------------------------------------- */
.ld-claims {
  padding: 3.75rem 0;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
}
/* Four items, so two by two — auto-fit put three on the first row and one
   stranded on the second at most ordinary window widths. */
.ld-claim-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3rem;
}
.ld-claim h3 { font-size: 1.05rem; margin: 0 0 0.55rem; letter-spacing: -0.01em; }
.ld-claim p { margin: 0; font-size: 0.93rem; line-height: 1.6; }

/* ---- Before / after ------------------------------------------------------ */
.ld-how {
  padding: 3.75rem 0 4.25rem; background: var(--navy-alt);
  border-bottom: 1px solid var(--navy-line);
}
.ld-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.ld-list, .ld-steps {
  margin: 0; padding-left: 1.15rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.ld-list { list-style: none; padding-left: 0; }
.ld-list li { position: relative; padding-left: 1.15rem; font-size: 0.93rem; line-height: 1.6; }
.ld-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.ld-steps li { font-size: 0.93rem; line-height: 1.6; padding-left: 0.35rem; }
.ld-steps li::marker { color: var(--green); font-weight: 700; }
.ld-list b, .ld-steps b { color: #fff; font-weight: 600; }
.ld-fine { font-size: 0.85rem; color: var(--mist-dim); margin: 1.5rem 0 0; line-height: 1.6; }

/* ---- Start --------------------------------------------------------------- */
.ld-start { background: var(--navy-deep); padding: 3.75rem 0 4.25rem; }
.ld-start-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start;
  position: relative;
}
.ld-start h2 { font-size: 1.9rem; margin: 0 0 0.85rem; letter-spacing: -0.02em; }
.ld-start-copy p { margin: 0; line-height: 1.6; }
/* The form keeps the white document treatment: it is the one thing on this
   page you fill in, and it should look like the application it leads to. */
.ld-form-card {
  background: #fff; color: var(--gray-900);
  border-radius: 12px; padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.ld-form-card label { color: var(--navy); }
/* The card is white inside a dark page, so main.landing's white links would
   vanish in it. Qualified with main.landing because that is the rule being
   overridden and it is the more specific of the two. */
main.landing .ld-form-card a { color: var(--navy); }
main.landing .ld-form-card a:hover { color: var(--orange); }
.ld-form-card .hint { color: var(--gray-500); }
.ld-form-card .check-row { font-size: 0.9rem; color: var(--gray-700); }
.ld-form-card .nav-buttons { margin-top: 1.25rem; }

/* The footer's top margin is breathing room after a white document. After the
   landing page it would be a white band between two dark sections. */
main.landing + footer.site-footer { margin-top: 0; }

@media (max-width: 860px) {
  .ld-hero-grid, .ld-how-grid, .ld-start-grid,
  .ld-claim-grid, .ld-mark-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ld-hero { padding: 3rem 0; }
  .ld-motif { display: none; }
}

/* ==========================================================================
   One mark: the two levels of evidence, and the Circle of Leadership.
   ========================================================================== */
.ld-circle-note {
  position: relative;
  margin: 2rem 0 0; padding: 1rem 1.15rem 1rem 2.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem; line-height: 1.6; color: var(--mist);
}
.ld-circle-note::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.45rem;
  width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--green);
}
.ld-circle-note b { color: #fff; }
.level-qs { margin: 0.9rem 0 0.3rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.level-qs .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.circle-card h2 { display: flex; align-items: center; gap: 0.6rem; }
.circle-card h2::before {
  content: ""; flex: none; width: 0.8rem; height: 0.8rem;
  border-radius: 50%; background: var(--navy);
}
.circle-note { font-size: 0.88rem; color: var(--gray-700); margin: 0.6rem 0 0; }

.circle-layout { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.circle-copy { flex: 1 1 22rem; }
.gen-badge--shape { box-shadow: none; border-radius: 0; }

/* The applicant's section list. Each row is one link with a verb on the
   right, so the list itself is clearly where the work starts; the next
   section to do is marked. */
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.next-step .hint { margin: 0; }
.step-list li.step-row { padding: 0; }
.step-list li.step-row > a {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 0.5rem; color: var(--navy); border-radius: 6px;
}
.step-list li.step-row > a:hover { background: var(--gray-50); }
.step-list li.step-sub > a { padding-left: 1.5rem; }
.step-list li.is-next > a { background: var(--gray-50); }
.step-list li.is-next .step-action {
  background: var(--navy); color: white; padding: 0.3rem 0.7rem; border-radius: 6px;
}
.step-list li.step-group { font-weight: 600; color: var(--gray-700); padding-top: 1rem; }
.step-meta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.step-action { font-size: 0.85rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.step-list li.step-row:not(.is-next) > a:hover .step-action { text-decoration: underline; }
.step-list li.is-next > a:hover .step-action { background: var(--navy-deep); }
.step-preview { margin-top: 1rem; }
.nav-buttons-end { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-buttons > a.btn.secondary { flex-shrink: 0; align-self: flex-start; white-space: nowrap; }
.outstanding li { margin: 0.3rem 0; }
