/* ISO 42001 guide, restyled to match the LeadAI home page */
:root{--paper:#fff;--panel:#f6f4ef;--line:#dbe2e5;--ink:#122834;--slate:#566d78;--seal:#122834;--seal-soft:#fff3d9;--marker:#a8731d;--marker-soft:#fff8e9;--gold:#f5ad3d;--deep:#0b222d}
article a,.gcta a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.doc-type{display:none}
.clause{color:#8a631f}
.path li:last-child::before{background:var(--gold);border-color:var(--gold)}
.path .num{color:#a8731d}
.path ol{border-top-color:var(--ink)}
.toc a:hover{border-left-color:var(--gold)}
.phase-tag{color:#8a631f;text-transform:uppercase;letter-spacing:.13em;font-size:.78rem;font-weight:800}
.meter i{background:var(--gold)}
.score{color:var(--ink)}
.gcta{border-top-color:var(--gold)}
.gnote{border-radius:0 3px 3px 0}
.checklist,.table-wrap,.roles,.cycle{border-radius:3px}
.gHero h1{font-size:clamp(2.4rem,5vw,4.4rem);line-height:.98}
.gdisclaimer{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:18px 0;color:var(--slate);font-size:.85rem;border-top:1px solid var(--line)}




.gHero {
  width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
}
.gHero h1 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}
.gHero p.lede {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 62ch;
  margin: 0;
}

/* The certification path: the one bold element */
.path {
  width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto 3rem;
  padding: 0;
}
.path ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--ink);
}
.path li {
  padding: 1rem 1.25rem 0 0;
  position: relative;
}
.path li::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--ink);
}
.path li:last-child::before { background: var(--seal); border-color: var(--seal); }
.path .num { font-family: inherit; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--seal); display: block; margin-top: 0.5rem; }
.path a { color: var(--ink); text-decoration: none; }
.path a:hover h2 { text-decoration: underline; }
.path h2 { font-size: 1.1rem; margin: 0.4rem 0 0.25rem; }
.path p { margin: 0; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 760px) {
  .path ol { grid-template-columns: 1fr; border-top: 0; border-left: 4px solid var(--ink); }
  .path li { padding: 0 0 1.5rem 1.5rem; }
  .path li::before { top: 0.6rem; left: -12px; }
  .path .num { margin-top: 0; }
}

/* Body layout */
.layout {
  width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto;
  padding: 0 0 4rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3.5rem;
}
.toc { position: sticky; top: 1.5rem; align-self: start; font-size: 0.92rem; }
.toc p { font-weight: 600; margin: 0 0 0.5rem; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; color: var(--slate); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--seal); }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc { position: static; }
}

article { max-width: 720px; }
article section { margin-bottom: 3.5rem; scroll-margin-top: 1rem; }
article h2 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.phase-tag { color: var(--seal); font-weight: 600; font-size: 0.95rem; margin: 0 0 0.35rem; }
article h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
article p { margin: 0 0 1rem; }
article ul, article ol { padding-left: 1.3rem; margin: 0 0 1rem; }
article li { margin-bottom: 0.4rem; }

.clause {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--seal);
  background: var(--seal-soft);
  padding: 0.05rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.35rem;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.gnote {
  background: var(--marker-soft);
  border-left: 4px solid var(--marker);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.gnote p:last-child { margin-bottom: 0; }
.gnote strong { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 520px; }
th, td { text-align: left; padding: 0.7rem 0.9rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--panel); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; }

.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); margin: 1.25rem 0; }
.roles div { padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.roles h4 { margin: 0 0 0.3rem; font-size: 1rem; }
.roles p { margin: 0; font-size: 0.93rem; color: var(--slate); }

.audit-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.25rem 0; }
.audit-steps div { border-top: 3px solid var(--ink); padding-top: 0.75rem; }
.audit-steps h4 { margin: 0 0 0.35rem; }
.audit-steps p { margin: 0; font-size: 0.95rem; color: var(--slate); }
@media (max-width: 600px) { .audit-steps { grid-template-columns: 1fr; } }

.cycle { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 1.25rem 0; }
.cycle li { padding: 1rem; margin: 0; border-right: 1px solid var(--line); }
.cycle li:last-child { border-right: 0; }
.cycle b { display: block; font-family: inherit; font-weight: 800; font-size: 1.3rem; }
.cycle span { font-size: 0.93rem; color: var(--slate); }
@media (max-width: 600px) {
  .cycle { grid-template-columns: 1fr; }
  .cycle li { border-right: 0; border-bottom: 1px solid var(--line); }
  .cycle li:last-child { border-bottom: 0; }
}

/* Checklist */
.checklist { border: 1px solid var(--line); background: var(--panel); padding: 1.25rem 1.5rem; }
.checklist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.score { font-weight: 600; color: var(--seal); }
.meter { height: 6px; background: var(--line); margin: 0.25rem 0 1rem; }
.meter i { display: block; height: 100%; width: 0; background: var(--seal); transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .meter i { transition: none; } }
.checklist fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.checklist legend { font-weight: 600; padding: 0; margin-bottom: 0.4rem; }
.checklist label { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.35rem 0; cursor: pointer; }
.checklist input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; accent-color: var(--seal); flex: none; }
.checklist input:checked + span { color: var(--slate); text-decoration: line-through; text-decoration-color: var(--line); }
.reset { font: inherit; font-size: 0.9rem; background: none; border: 1px solid var(--line); color: var(--ink); padding: 0.35rem 0.8rem; cursor: pointer; }
.reset:hover { border-color: var(--ink); }

.gcta { border-top: 4px solid var(--seal); padding-top: 1.5rem; }
.gcta h2 { margin-bottom: 0.75rem; }


@media print {
  .toc, .reset { display: none; }
  .layout { grid-template-columns: 1fr; }
}
.path .num{display:block;min-width:0;height:auto;padding:0;border-radius:0;background:none;margin:.5rem 0 0;font-size:2.4rem;font-weight:800;color:#a8731d}
