/* Page-specific reading layout. Shared navigation and forms retain their styles. */
.standards-guide {
  --std-ink: #162137;
  --std-muted: #516078;
  --std-line: #dce4ed;
  --std-cyan: #007e9c;
  --std-magenta: #b90060;
  color: var(--std-ink);
  background: #f5f7fb;
}
.standards-guide [hidden] { display: none !important; }
.standards-guide section[id] { scroll-margin-top: 110px; }
.standards-guide p, .standards-guide dd, .standards-guide li {
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
}
.standards-guide h1, .standards-guide h2, .standards-guide h3, .standards-guide h4 {
  color: var(--std-ink);
  letter-spacing: -.025em;
  line-height: 1.24;
}
.standards-guide h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.standards-guide h3 { font-size: 1.25rem; }
.standards-guide h4 { font-size: 1.15rem; }
.standards-guide a:not(.btn) { color: var(--std-cyan); text-underline-offset: .2em; }
.standards-guide a:not(.btn):hover { color: var(--std-magenta); }
.standards-guide :is(a, button, input, summary):focus-visible {
  outline: 3px solid #008fb1;
  outline-offset: 5px;
}
.standards-guide .eyebrow { color: var(--std-magenta); font-size: .75rem; letter-spacing: .12em; }
.std-hero { background: #fff; border-bottom: 1px solid var(--std-line); padding: 72px 0 36px; }
.standards-guide .std-hero h1 { font-size: clamp(2.25rem, 4.7vw, 4rem); max-width: 24ch; margin: 18px 0 24px; }
.std-lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 76ch; }
.std-purpose { max-width: 90ch; font-size: .95rem; color: var(--std-muted); margin: 24px 0; }
.std-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.standards-guide .std-jump a { color: var(--std-ink); border: 1px solid var(--std-line); border-radius: 9px; padding: 10px 14px; font-size: .87rem; font-weight: 450; background: #f8fafc; text-decoration: none; }
.standards-guide .std-jump a:hover { background: #eaf8fb; border-color: #94ccdb; }
.std-route-section { padding: 56px 0; }
.std-section-heading { max-width: 86ch; margin: 0 0 26px; }
.std-section-heading h2 { margin: 12px 0 16px; }
.std-section-heading > p { color: var(--std-muted); }
.standards-guide .std-route { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 28px 0 34px; counter-reset: none; }
.standards-guide .std-route > li { position: static; padding: 18px 14px; border: 1px solid var(--std-line); border-radius: 14px; background: #fff; }
.standards-guide .std-route > li::before, .standards-guide .std-workflow > li::before { content: none; }
.std-route > li > span { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf8fc; color: #00657d; font-size: .78rem; }
.std-route h3 { margin: 16px 0 8px; font-size: 1.05rem; }
.std-route p { margin: 0; font-size: .87rem; }
.std-example-panel { background: #fff; border: 1px solid var(--std-line); border-top: 4px solid var(--std-magenta); border-radius: 18px; padding: 30px; }
.std-example-panel > h3 { margin: 0 0 20px; }
.std-scenarios { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.std-scenarios button { background: #fff; border: 1px solid #bbc8d8; padding: 12px 16px; border-radius: 9px; font: inherit; font-size: .9rem; color: var(--std-ink); cursor: pointer; }
.std-scenarios button:hover { border-color: var(--std-magenta); }
.std-scenarios button.is-active { background: var(--std-ink); color: #fff; border-color: var(--std-ink); }
#standard-scenario h4 { margin: 0 0 12px; }
#standard-scenario > p { max-width: 100ch; }
.std-scenario-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.std-scenario-facts > div { border-top: 2px solid #b4dbe5; padding-top: 12px; }
.std-scenario-facts dt { font-weight: 600; color: #00657d; font-size: .88rem; }
.std-scenario-facts dd { margin: 8px 0 0; font-size: .9rem; }
.std-reference-note { margin-top: 28px; border-left: 3px solid #91c8d7; padding: 6px 0 6px 24px; color: var(--std-muted); max-width: 100ch; }
.std-reference-note h3 { margin: 0 0 12px; }
.std-reference-note p { font-size: .95rem; }
.std-reference-note p:last-child { margin-bottom: 0; }
.std-reading-section { padding: 12px 0 60px; }
.std-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; padding: 26px; background: #fff; border: 1px solid var(--std-line); border-radius: 14px; }
.std-tools label { display: block; font-size: .88rem; font-weight: 600; }
.standards-guide .std-tools input { display: block; width: 100%; margin: 10px 0 0; padding: 13px 16px; border: 1px solid #aebed0; border-radius: 8px; background: #fff; color: var(--std-ink); font: inherit; font-weight: 400; min-height: 48px; }
.standards-guide .std-tools .btn { align-self: end; min-height: 48px; background: #f2f6fb; color: var(--std-ink); border: 1px solid #b9c8da; box-shadow: none; font-size: .9rem; white-space: normal; }
#standards-search-status { grid-column: 1 / -1; margin: 0; color: var(--std-muted); font-size: .85rem; }
.std-standard { padding: 54px 0 0; }
.std-source { font-size: .83rem; color: var(--std-muted); line-height: 1.8; margin: 0 0 24px; }
.std-source a { font-weight: 450; }
.std-chapter { background: #fff; border: 1px solid var(--std-line); border-radius: 12px; margin: 12px 0; overflow: clip; }
.std-chapter summary { display: block; padding: 21px 24px; cursor: pointer; list-style: none; }
.std-chapter summary::-webkit-details-marker { display: none; }
.std-chapter summary > h3 { display: flex; align-items: center; gap: 18px; margin: 0; font-weight: 600; }
.std-chapter summary:hover { background: #f2f9fc; }
.std-chapter[open] > summary { background: #eef7fa; border-bottom: 1px solid var(--std-line); }
.std-chapter-number { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 11px 8px; border-radius: 9px; background: #e7f2f6; color: #00627a; flex-shrink: 0; font-size: .94rem; letter-spacing: 0; }
.std-chapter-title { display: block; flex: 1; min-width: 0; }
.std-chapter-note { display: block; color: var(--std-muted); margin-top: 5px; font-size: .84rem; line-height: 1.5; font-weight: 400; letter-spacing: normal; }
.std-expand { margin-left: auto; flex-shrink: 0; color: #006b84; font-size: 1.7rem; font-weight: 400; }
.std-chapter[open] .std-expand { transform: rotate(45deg); }
.std-chapter-body { padding: 0 28px; }
.standards-guide .std-row { padding: 28px 0; border-bottom: 1px solid var(--std-line); }
.std-chapter-body .std-row:last-child { border-bottom: none; }
.std-row h4 { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 14px; }
.std-ref { display: inline-block; flex-shrink: 0; background: #edf5fa; color: #00627a; border: 1px solid #cfdee9; border-radius: 7px; padding: 5px 8px; font-size: .8rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.std-row > p { margin: 12px 0 16px; }
.std-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0; }
.std-field-grid > div { padding: 18px; background: #f8fafc; border-radius: 10px; border: 1px solid #e5ebf2; }
.std-field-grid dt { font-size: .8rem; color: var(--std-magenta); font-weight: 600; margin-bottom: 8px; }
.std-field-grid dd { margin: 0; font-size: .94rem; }
.standards-guide .std-effect { background: #f0f8f6; border-left: 3px solid #4b9984; padding: 12px 16px; margin: 0; color: #254d42; font-size: .9rem; }
.std-effect > span { font-weight: 600; margin-right: 4px; }
.standards-guide .std-annex-list { list-style: none; padding: 0 28px; margin: 0; }
.standards-guide .std-annex-list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--std-line); }
.standards-guide .std-annex-list li:last-child { border-bottom: none; }
.std-annex-list li .std-ref { min-width: 65px; text-align: center; }
.std-annex-list p { margin: 0; font-size: .94rem; }
.std-callout { background: #fff; border: 1px solid var(--std-line); border-left: 4px solid #007e9c; border-radius: 12px; padding: 26px 28px; margin: 28px 0; }
.std-callout h3 { margin: 0 0 16px; }
.std-callout p:last-child { margin-bottom: 0; }
.standards-guide .std-workflow { list-style: none; counter-reset: workflow; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 28px 0 34px; }
.standards-guide .std-workflow li { position: static; padding: 24px; border-radius: 12px; border: 1px solid var(--std-line); background: #fff; }
.std-workflow h3 { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.std-workflow h3::before { counter-increment: workflow; content: counter(workflow, decimal-leading-zero); font-size: .86rem; color: #006a80; line-height: 1.85; font-weight: 500; flex-shrink: 0; }
.std-workflow p { font-size: .95rem; margin: 0; }
.std-table-wrap { overflow-x: auto; border: 1px solid var(--std-line); border-radius: 12px; background: #fff; margin: 24px 0; }
.standards-guide .std-table { width: 100%; border-collapse: collapse; text-align: left; margin: 0; font-size: .92rem; }
.std-table th, .std-table td { padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--std-line); line-height: 1.7; }
.std-table th { font-weight: 600; width: 28%; }
.std-table thead { background: #edf5fa; }
.std-table tbody tr:last-child > * { border-bottom: none; }
.std-mailing-grid, .std-buyer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.standards-guide .std-mailing-grid .std-row, .std-buyer-grid > article { border: 1px solid var(--std-line); border-radius: 12px; background: #fff; padding: 26px; }
.std-mailing-grid h3, .std-buyer-grid h3 { margin: 0 0 16px; }
.std-mailing-grid p, .std-buyer-grid p { font-size: .95rem; }
.standards-guide .std-example { border-top: 1px solid var(--std-line); padding-top: 16px; color: var(--std-muted); }
.std-faq { background: #fff; border: 1px solid var(--std-line); border-radius: 10px; margin: 12px 0; }
.std-faq summary { padding: 20px 24px; cursor: pointer; font-weight: 500; line-height: 1.5; }
.std-faq > p { margin: 0; padding: 0 24px 24px; }
.std-contact { margin: 48px 0 0; background: #152035; border-top: 5px solid #d70069; border-radius: 18px; padding: 36px; }
.std-contact .eyebrow { color: #f6b9d7; }
.standards-guide .std-contact h2, .standards-guide .std-contact p { color: #fff; }
.std-contact > p { max-width: 85ch; color: #e2e9f3; }
.std-contact > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.standards-guide .std-contact .btn-primary { background: #b90060; color: #fff; border: 1px solid #b90060; }
.standards-guide .std-contact .btn-primary:hover { background: #99004e; }
.standards-guide .std-contact .btn-secondary { color: #152035; background: #fff; border: 1px solid #fff; }
.standards-guide .std-contact .btn-secondary:hover { background: #e9f5fa; }
@media (max-width: 1100px) {
  .standards-guide .std-route { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .std-hero { padding: 42px 0 28px; }
  .std-route-section { padding: 36px 0; }
  .standards-guide .std-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std-example-panel { padding: 22px; }
  .std-scenario-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std-tools { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .std-standard { padding-top: 38px; }
  .std-chapter summary { padding: 18px 16px; }
  .std-chapter summary > h3 { gap: 12px; font-size: 1.1rem; }
  .std-chapter-number { min-width: 38px; }
  .std-chapter-body { padding: 0 18px; }
  .std-row h4 { display: block; }
  .std-row h4 .std-ref { display: table; margin: 0 0 12px; }
  .std-field-grid, .standards-guide .std-workflow, .std-mailing-grid, .std-buyer-grid { grid-template-columns: minmax(0, 1fr); }
  .standards-guide .std-annex-list { padding: 0 18px; }
  .standards-guide .std-annex-list li { gap: 12px; }
  .std-table th, .std-table td { padding: 12px; }
  .std-callout { padding: 22px; }
  .std-contact { padding: 26px; }
  .std-contact .btn { width: 100%; text-align: center; justify-content: center; }
}
@media print {
  .std-tools, .std-scenarios, .std-jump, .std-contact { display: none; }
  .std-chapter, .std-row { break-inside: avoid; }
  .standards-guide { background: #fff; }
  .std-chapter::details-content { content-visibility: visible; }
}
