/* Building standards handbook and acceptance workspace. */
.standards-page {
  --standards-ink: #12243c;
  --standards-muted: #526680;
  --standards-blue: #1459cb;
  --standards-navy: #0d213b;
  --standards-line: #dce7f4;
  --standards-paper: #f4f8fd;
  --standards-shadow: 0 16px 42px rgb(28 57 108 / 9%);
}

.standards-page .standards-hero.inner-hero {
  padding-block: clamp(35px, 5vw, 76px);
  background: radial-gradient(ellipse at 84% 66%, #dfeafa, transparent 52%), #f7fafd;
}
.standards-page .standards-hero .page-h1 {
  max-width: 13em;
  color: var(--standards-ink);
  font-size: clamp(32px, 3.7vw, 52px);
  letter-spacing: -.035em;
  line-height: 1.28;
  text-wrap: balance;
}
.standards-summary {
  border: 1px solid var(--standards-line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgb(28 57 108 / 13%);
}
.standards-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding: 18px clamp(15px, 2vw, 26px) 22px;
  background: linear-gradient(110deg, var(--standards-navy), #174577);
  color: #bedcf7;
  font-size: 11.5px;
}
.standards-summary-head h2 {
  grid-column: 1 / -1;
  color: #fff;
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 750;
  line-height: 1.35;
}
.standards-summary-list {
  padding: 3px clamp(14px, 1.8vw, 23px);
  list-style: none;
}
.standards-summary-list li + li { border-top: 1px solid var(--standards-line); }
.standards-summary-list a {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 8px 10px;
  min-height: 53px;
  padding: 8px 2px;
  color: var(--standards-ink);
  font-size: 14px;
  line-height: 1.45;
}
.standards-summary-list a:is(:hover, :focus-visible) { color: var(--standards-blue); background: var(--standards-paper); }
.standards-summary-list a:focus-visible { outline-offset: -3px; }
.standards-summary-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eaf3ff;
  color: var(--standards-blue);
  font-size: 13px;
  font-weight: 750;
}
.standards-summary-list small { color: var(--standards-muted); font-size: 11.5px; }
.standards-summary-arrow { color: var(--standards-blue); text-align: right; }
.standards-summary-note {
  padding: 11px clamp(15px, 2vw, 26px);
  border-top: 1px solid var(--standards-line);
  background: #f5f8fd;
  color: var(--standards-muted);
  font-size: 12px;
}
.standards-page .standards-toc {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--standards-line);
}
.standards-toc .toc-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding-block: 11px;
}
.standards-toc .toc-links a {
  background: transparent;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--standards-muted);
}
.standards-toc .toc-links a:hover { background: var(--standards-paper); color: var(--standards-blue); }
.standards-toc .toc-links :is([href="#project-preparation"], [href="#acceptance-workbench"], [href="#handover"]) {
  color: var(--standards-blue);
}

.standards-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px 30px;
  margin-bottom: 27px;
}
.standards-section-head .sec-title { margin-bottom: 0; }
.standards-section-head .sec-lead { max-width: 25em; font-size: 14px; }
.standards-preparation { background: var(--standards-paper); }
.standards-preparation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--standards-line);
  border-radius: 18px;
  background: #fff;
}
.standards-preparation-list > div { padding: clamp(18px, 2.4vw, 31px); }
.standards-preparation-list > div + div { border-left: 1px solid var(--standards-line); }
.standards-preparation-list dt,
.standards-handover-list dt {
  margin-bottom: 6px;
  color: var(--standards-ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
}
.standards-preparation-list dd,
.standards-handover-list dd {
  color: var(--standards-muted);
  font-size: 14px;
}
.standards-page #acceptance .data-table tbody td:nth-child(3) { background-color: #edf5ff; color: #254e80; }

.standards-workbench-section { background: #fff; }
.standards-workbench {
  display: grid;
  grid-template-columns: minmax(225px, .72fr) minmax(0, 1.8fr);
  border: 1px solid var(--standards-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--standards-shadow);
  overflow: hidden;
}
.standards-progress {
  align-self: stretch;
  padding: clamp(22px, 3.4vw, 48px);
  color: #eaf5ff;
  background: linear-gradient(155deg, var(--standards-navy), #173f6d);
}
.standards-progress h3 { font-size: 15px; font-weight: 650; color: #c0daf4; }
.standards-progress output {
  display: block;
  margin: 7px 0;
  font-size: clamp(32px, 3.3vw, 46px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1.25;
}
.standards-progress progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-block: 10px 15px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #41658b;
}
.standards-progress progress::-webkit-progress-bar { background: #41658b; }
.standards-progress progress::-webkit-progress-value { background: #a4e0ff; }
.standards-progress progress::-moz-progress-bar { background: #a4e0ff; }
.standards-progress p { min-height: 2.7em; font-size: 12px; line-height: 1.55; color: #c0d6ed; }
.standards-progress button {
  min-height: 38px;
  margin-top: 10px;
  padding-inline: 13px;
  border: 1px solid #6e91b8;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
}
.standards-progress button:hover { background: #31577d; }

.standards-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: clamp(14px, 2.7vw, 32px);
}
.standards-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--standards-line);
  border-radius: 9px;
  cursor: pointer;
}
.standards-checks label:has(:checked) { border-color: #a6c8f6; background: #f0f6ff; }
.standards-checks input {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: 0 0 17px;
  margin-top: 3px;
  accent-color: var(--standards-blue);
  cursor: pointer;
}
.standards-checks strong,
.standards-checks small { display: block; }
.standards-checks strong { color: var(--standards-ink); font-size: 14px; line-height: 1.5; }
.standards-checks small { margin-top: 3px; color: var(--standards-muted); font-size: 12px; line-height: 1.55; }

.standards-handover { background: var(--standards-paper); }
.standards-handover-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 5vw, 65px);
  align-items: start;
}
.standards-handover-list {
  padding: 6px clamp(18px, 2.9vw, 32px);
  border: 1px solid var(--standards-line);
  border-radius: 17px;
  background: #fff;
}
.standards-handover-list > div { padding-block: 15px; }
.standards-handover-list > div + div { border-top: 1px solid var(--standards-line); }

@media (max-width: 900px) {
  .standards-page .standards-hero .page-h1 { max-width: 17em; }
  .standards-workbench { grid-template-columns: minmax(0, 1fr); }
  .standards-progress progress { max-width: 400px; }
  .standards-progress p { min-height: 0; }
}
@media (max-width: 650px) {
  .standards-section-head { flex-direction: column; align-items: start; }
  .standards-preparation-list, .standards-checks, .standards-handover-layout { grid-template-columns: minmax(0, 1fr); }
  .standards-preparation-list > div + div { border-left: 0; border-top: 1px solid var(--standards-line); }
  .standards-toc .toc-links { gap: 3px 6px; }
  .standards-toc .toc-links a { padding-inline: 6px; }
  .standards-progress button { min-height: 44px; }
}
@media (max-width: 440px) {
  .standards-summary-list a {
    grid-template-columns: 26px minmax(0, 1fr) 16px;
    gap: 2px 8px;
    padding-block: 8px;
  }
  .standards-summary-check, .standards-summary-arrow { grid-row: span 2; }
  .standards-summary-list small { grid-column: 2; }
  .standards-summary-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
