/* ============ ISO detail page ============ */
html { scroll-padding-top: 140px; }
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night); padding: 0; }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: -2; pointer-events: none;
  background: url("guilloche-wave.svg") center bottom / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 680px; height: 680px; right: -140px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, oklch(0.5 0.16 262 / .4) 0%, transparent 65%); }
.page-hero .wrap { align-items: center; row-gap: 3rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.crumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--on-night-muted); margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs [aria-current] { color: var(--on-night); }
.ph-copy { grid-column: 1 / 7; }
.ph-copy .label { color: var(--sun); }
.ph-copy h1 { margin-top: 1.1rem; font-size: clamp(2.3rem, 1.2rem + 3.4vw, 3.9rem); }
.ph-copy h1 span { display: block; color: var(--sun); font-size: .52em; letter-spacing: -0.01em; margin-top: .5rem; font-variation-settings: "wdth" 100; }
.ph-copy .lead { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-night-muted); max-width: 33em; }
.ph-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.spec { grid-column: 8 / -1; position: relative; z-index: 0; }
.spec-box { background: var(--white); color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px oklch(0.1 0.08 266 / .8); }
.spec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--rule); }
.spec-head p { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec-head b { font-size: 1.35rem; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.01em; }
.spec dl { margin: 0; }
.spec dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .8rem 1.4rem; border-bottom: 1px solid var(--rule); font-size: .93rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 650; line-height: 1.45; }
.spec dd small { display: block; font-weight: 450; color: var(--muted); font-size: .82rem; }
.spec-foot { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.4rem; background: var(--paper-2); font-size: .85rem; color: var(--muted); }
.spec-foot svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.spec-foot a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }

/* Sticky in-page navigation */
.subnav { position: sticky; top: 72px; z-index: 40; background: oklch(0.997 0.002 266 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.subnav ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; flex: 1; margin-left: -.8rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul a { display: block; padding: .5rem .8rem; border-radius: var(--radius); text-decoration: none; font-size: .93rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.subnav ul a:hover { color: var(--ink); background: var(--paper-2); }
.subnav ul a[aria-current="true"] { color: var(--brand); background: oklch(0.46 0.13 266 / .08); }
.subnav .btn { min-height: 42px; padding: .5rem 1rem; font-size: .92rem; }
@media (max-width: 640px) { .subnav { top: 64px; } .subnav .btn { display: none; } .subnav ul { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); padding-right: 2.5rem; } }

/* 01 Overview */
.need-list { border-top: 1.5px solid var(--ink); }
.need-list li { display: grid; grid-template-columns: 2.75rem 1fr; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.need-list li span { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.need-list b { display: block; font-size: 1.05rem; }
.need-list p { color: var(--muted); font-size: .96rem; margin-top: .15rem; }
.overview .wrap > .g { row-gap: 3rem; }
.ov-need { grid-column: 1 / 7; }
.ov-benefit { grid-column: 8 / -1; }
.ov-col-title { font-size: var(--fs-label); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.benefits li { background: var(--white); padding: 1.25rem; }
.benefits b { display: block; font-size: 1.02rem; }
.benefits p { color: var(--muted); font-size: .93rem; margin-top: .3rem; line-height: 1.5; }
.benefits svg { width: 22px; height: 22px; color: var(--brand); margin-bottom: .75rem; }

/* 02 Requirements: clause list + PDCA */
.reqs { background: var(--white); border-block: 1px solid var(--rule); }
.reqs .wrap > .g { align-items: start; row-gap: 3rem; }
.clauses { grid-column: 1 / 8; border-top: 1.5px solid var(--ink); }
.clauses li { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: baseline; padding-block: 1.05rem; border-bottom: 1px solid var(--rule); }
.clauses .no { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink); font-variation-settings: "wdth" 108; }
.clauses b { display: block; font-size: 1.04rem; }
.clauses p { color: var(--muted); font-size: .94rem; margin-top: .15rem; line-height: 1.5; }
.phase { font-size: .72rem; font-weight: 750; letter-spacing: .08em; padding: .2rem .5rem; border-radius: 4px; white-space: nowrap; }
.phase.p { background: oklch(0.46 0.13 266 / .1); color: var(--brand); }
.phase.d { background: oklch(0.85 0.15 92 / .3); color: oklch(0.42 0.09 85); }
.phase.c { background: oklch(0.62 0.15 155 / .14); color: oklch(0.4 0.1 155); }
.phase.a { background: oklch(0.6 0.15 30 / .12); color: oklch(0.45 0.13 30); }
.pdca { grid-column: 9 / -1; position: sticky; top: 156px; }
.pdca svg { width: 100%; height: auto; display: block; }
.pdca figcaption { margin-top: 1rem; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.amd { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 10px; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.amd b { color: var(--ink); display: block; margin-bottom: .2rem; }
@media (max-width: 960px) { .clauses, .pdca { grid-column: 1 / -1; } .pdca { position: static; max-width: 26rem; } }

/* 03 Process + prep checklist */
.prep { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); row-gap: 2rem; align-items: start; }
.prep-intro { grid-column: 1 / 6; }
.prep-intro h3 { font-size: var(--fs-h3); }
.prep-intro p { color: var(--muted); margin-top: .6rem; }
.checklist { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); border-top: 1.5px solid var(--ink); }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; padding-block: .85rem; border-bottom: 1px solid var(--rule); font-size: .96rem; line-height: 1.5; }
.checklist svg { width: 18px; height: 18px; color: var(--ok, oklch(0.52 0.12 155)); margin-top: .2rem; }
@media (max-width: 900px) { .prep-intro, .checklist { grid-column: 1 / -1; } }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

.incl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.incl-list li { background: var(--white); padding: .8rem .95rem; }
.incl-list b { display: block; font-size: .93rem; }
.incl-list span { display: block; color: var(--muted); font-size: .84rem; margin-top: .1rem; line-height: 1.45; }
@media (max-width: 520px) { .incl-list { grid-template-columns: 1fr; } }

/* 05 FAQ */
.faq .wrap > .g { align-items: start; row-gap: 2rem; }
.faq-side { grid-column: 1 / 6; position: sticky; top: 156px; }
.faq-side h2 { margin-top: 1rem; }
.faq-side p { margin-top: 1.25rem; color: var(--muted); }
.faq-side .btn { margin-top: 1.75rem; }
.faq-list { grid-column: 7 / -1; border-top: 1.5px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding-block: 1.25rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--paper-2); }
.faq-list summary:hover { color: var(--brand); }
.faq-list .ans { padding-bottom: 1.35rem; color: var(--muted); max-width: 62ch; }
.faq-list .ans p + p { margin-top: .6rem; }
.faq-list .ans .ans-more { margin-top: .75rem; font-size: .94rem; }

/* Contextual links from pillar sections to their in-depth articles (rendered only when the article is live) */
.more-link { margin-top: 1.25rem; font-size: .94rem; line-height: 1.5; }
.sec-head > .more-link { grid-column: 8 / -1; margin-top: -.5rem; }
@media (max-width: 900px) { .sec-head > .more-link { grid-column: 1 / -1; } }
.amd .more-link { margin-top: .6rem; font-size: inherit; }
.steps-more { margin-top: 1.5rem; }
.spec dd small a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .faq-side, .faq-list { grid-column: 1 / -1; } .faq-side { position: static; } }

/* 06 Related + closing */
.related { background: var(--paper-2); border-top: 1px solid var(--rule); }
.closing { background: var(--white); border-top: 1px solid var(--rule); }
.closing .wrap { align-items: start; row-gap: 2.5rem; }
.closing-copy { grid-column: 1 / 7; }
.closing-copy h2 { margin-top: 1rem; }
.closing-copy > p:not(.label) { margin-top: 1.25rem; color: var(--muted); max-width: 32em; }
.closing-facts { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.closing-facts li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: var(--paper-2); font-size: .86rem; font-weight: 600; }
.closing-facts svg { width: 15px; height: 15px; color: var(--brand); }
.paths { grid-column: 8 / -1; border-top: 1.5px solid var(--ink); }
.paths a { display: grid; grid-template-columns: 2.75rem 1fr 42px; gap: 1rem; align-items: center; padding-block: 1.3rem; border-bottom: 1px solid var(--rule); text-decoration: none; position: relative; }
.paths a::before { content: ""; position: absolute; inset: 0 calc(var(--col-gap) * -0.5); background: var(--paper-2); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; border-radius: var(--radius); }
.paths { position: relative; z-index: 0; }
.paths a:hover::before { opacity: 1; }
.paths .n { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; align-self: start; padding-top: .1rem; }
.paths b { display: block; font-size: 1.08rem; }
.paths span.d { display: block; color: var(--muted); font-size: .94rem; margin-top: .2rem; line-height: 1.5; }
.paths .go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-strong); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.paths .go svg { width: 18px; height: 18px; }
.paths a:hover .go { background: var(--brand); border-color: var(--brand); color: var(--white); }
.paths a.primary .go { background: var(--sun); border-color: var(--sun); color: var(--night); }
.paths a.primary:hover .go { background: var(--sun-strong); border-color: var(--sun-strong); }
@media (max-width: 900px) { .closing-copy, .paths { grid-column: 1 / -1; } }
@media (max-width: 520px) { .paths a { grid-template-columns: 2rem 1fr 40px; gap: .75rem; } }

@media (max-width: 1180px) { .ph-copy { grid-column: 1 / 7; } .spec { grid-column: 7 / -1; } }
@media (max-width: 900px) {
  .ph-copy, .spec { grid-column: 1 / -1; }
  .ov-need, .ov-benefit { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .spec dl div { grid-template-columns: 1fr; gap: .15rem; }
  .benefits li { padding: 1rem; }
  .benefits svg { margin-bottom: .5rem; }
  .benefits p { font-size: .88rem; }
  .clauses li { grid-template-columns: 2.25rem 1fr auto; gap: .75rem; }
  .clauses .no { font-size: 1.25rem; }
  .ph-cta .btn { flex: 1 1 100%; }
}

/* Sources under the pillar FAQ */
.sources-box { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.sources-title { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.sources-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sources-box li { font-size: .92rem; line-height: 1.5; padding-left: 1.1rem; position: relative; }
.sources-box li::before { content: "↗"; position: absolute; left: 0; color: var(--muted); font-size: .8rem; }
.sources-box a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.sources-box a:hover { color: var(--brand); text-decoration-color: currentColor; }

/* Tài liệu & Kiến thức ISO (pillar, last section) */
.docs-iso { border-top: 1px solid var(--rule); }
.docs-iso .doc-list a:hover { background: var(--paper-2); }
.docs-grid { align-items: start; row-gap: 2.5rem; }
.docs-col { grid-column: 1 / 8; }
.guides-col { grid-column: 9 / -1; }
.docs-h { font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.doc-list, .guide-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.doc-list li, .guide-list li { border-bottom: 1px solid var(--rule); }
.doc-list a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; gap: 1rem; align-items: center; padding: .9rem .5rem; text-decoration: none; color: var(--ink); border-radius: 6px; transition: background-color .2s var(--ease); }
.doc-list a:hover { background: var(--white); }
.doc-list a:focus-visible, .guide-list a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.doc-list .ft { display: grid; place-items: center; height: 2.25rem; border-radius: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; background: oklch(0.46 0.13 266 / .1); color: var(--brand); }
.doc-list a[href$=".pdf"] .ft { background: oklch(0.55 0.16 28 / .12); color: oklch(0.48 0.16 28); }
.doc-list .dt b { display: block; font-weight: 650; line-height: 1.4; }
.doc-list .dt small { display: block; margin-top: .15rem; font-size: .82rem; color: var(--muted); }
.doc-list .dl { width: 1.25rem; height: 1.25rem; color: var(--muted); transition: color .2s var(--ease), transform .2s var(--ease); }
.doc-list a:hover .dl { color: var(--brand); transform: translateY(2px); }
.docs-note { margin-top: 1rem; font-size: .92rem; color: var(--muted); }
.docs-note a { color: var(--brand); font-weight: 650; }
.guide-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .9rem 0; text-decoration: none; color: var(--ink); }
.guide-list a b { font-weight: 650; line-height: 1.4; }
.guide-list a:hover b { color: var(--brand); }
.guide-list small { flex: none; font-size: .82rem; color: var(--muted); }
.guides-col .text-link { display: inline-block; margin-top: 1.1rem; font-size: .95rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .docs-col, .guides-col { grid-column: 1 / -1; } }
