/* Shared visual language for the public knowledge library. */
:where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--ice); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.main-nav { gap: 22px; }
#knowledge, .article-section, .source-section, #categories { scroll-margin-top: 110px; }
.knowledge-intro { max-width: 390px; color: #455f67; }
.knowledge-intro p { margin: 0; }
.knowledge-intro .text-link { color: #174f60; border-color: #72949d; }
.home-guide-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.home-guide { grid-column: span 2; display: flex; flex-direction: column; background: #0c1c27; color: var(--text); padding: 24px; border: 1px solid #284652; border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s; }
.home-guide:hover { border-color: #66b8cc; transform: translateY(-4px); }
.home-guide img { width: calc(100% + 48px); max-width: none; height: auto; margin: 18px -24px 12px; }
.home-guide h3 { margin: 9px 0 0; font-size: 1.24rem; font-weight: 500; }
.home-guide p { margin: 9px 0 24px; color: #aac0c8; font-size: .9rem; }
.home-guide .guide-link { margin-top: auto; }
.home-guide-compact { grid-column: span 3; padding-block: 28px; }
.guide-index { display: block; font-size: .72rem; color: #a2bec7; letter-spacing: .02em; }
.guide-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ice); font-size: .87rem; }
.guide-link > span { font-size: 1.3rem; transition: transform .2s; }
a:hover .guide-link > span { transform: translateX(-4px); }
.knowledge-page { background: radial-gradient(ellipse at 10% 5%, #102a38 0, transparent 28%), var(--ink); }
.knowledge-page .site-header { background: rgba(7,16,24,.94); border-color: var(--line); }
.knowledge-page .main-nav a[aria-current] { color: var(--ice-bright); }
.library-top, .article-top { padding-top: 124px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: .76rem; color: #9fb7bf; margin-bottom: 46px; }
.breadcrumbs > span[aria-hidden] { color: #54727e; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: #3b5e6e; text-underline-offset: 5px; }
.breadcrumbs [aria-current] { color: #d5e2e7; }
.library-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 60px; padding-bottom: 70px; }
.library-heading h1, .article-heading h1 { margin: 0; font-size: clamp(3.2rem, 6.4vw, 5.8rem); font-weight: 400; line-height: 1.1; letter-spacing: -.05em; }
.library-heading h1 em { color: var(--ice); font-style: normal; }
.library-lead { color: #b0c3ca; font-size: 1.15rem; line-height: 1.9; margin: 28px 0 24px; }
.audience-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.audience-tags span { color: #b4cbd2; font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }
.library-note { padding: 24px 35px; border-inline-start: 1px solid var(--line-strong); display: flex; flex-direction: column; align-items: flex-start; }
.large-five { font-size: 7.5rem; line-height: 1; font-weight: 400; letter-spacing: -.09em; color: #89c8d7; direction: ltr; }
.library-note > span:not(.large-five) { margin-top: 16px; color: #d4e7ed; }
.library-note p { color: #9eb5be; font-size: .9rem; line-height: 1.9; margin-bottom: 0; }
.library-note .text-link { font-size: .8rem; }
.library-categories { padding-bottom: 70px; }
.library-section-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 25px; margin-bottom: 28px; }
.library-section-label h2 { font-size: 1.3rem; margin: 0; font-weight: 400; }
.library-section-label > span, .library-section-label > a { font-size: .75rem; color: #a5bdc5; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.topic-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: linear-gradient(135deg, #0f2330, #0c1b26); border: 1px solid var(--line); border-radius: 20px; transition: border-color .25s, transform .25s; }
.topic-card:hover { border-color: #6aa6b8; transform: translateY(-4px); }
.topic-art { overflow: hidden; background: #0a1923; }
.topic-art img { width: 100%; height: auto; display: block; transition: transform .4s; }
.topic-card:hover .topic-art img { transform: scale(1.025); }
.topic-card-copy { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.topic-card h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 400; margin: 13px 0; letter-spacing: -.035em; }
.topic-card-copy > p { color: #acc2ca; font-size: .95rem; line-height: 1.85; margin: 0 0 22px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tags span { font-size: .72rem; color: #b5d4de; padding: 4px 9px; background: rgba(157,220,232,.055); border: 1px solid rgba(157,220,232,.12); border-radius: 5px; }
.topic-card .topic-tags { margin-bottom: 26px; }
.topic-card .guide-link { margin-top: auto; }
.topic-featured { grid-column: 1 / -1; flex-direction: row; }
.topic-featured .topic-art { order: 2; width: 55%; display: flex; align-items: center; }
.topic-featured .topic-card-copy { width: 45%; padding: 40px; }
.topic-featured h2 { font-size: 2.3rem; }
.knowledge-contact { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 42px; margin-block: 20px 50px; background: radial-gradient(ellipse at left bottom, rgba(101,182,209,.12), transparent 75%), #0d202b; border: 1px solid var(--line); border-radius: 20px; }
.knowledge-contact .eyebrow { margin-bottom: 18px; }
.knowledge-contact h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 400; margin: 0 0 10px; letter-spacing: -.035em; }
.knowledge-contact p:not(.eyebrow) { color: #abc2ca; margin: 0; }
.knowledge-contact .button { flex-shrink: 0; gap: 20px; }
.article-heading { max-width: 900px; padding-bottom: 54px; }
.article-heading h1 { font-size: clamp(2.8rem, 5.1vw, 4.6rem); }
.article-heading > p:not(.eyebrow) { font-size: 1.15rem; max-width: 820px; color: #b0c5ce; line-height: 1.9; margin: 24px 0; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
.article-sidebar { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; padding: 5px 5px 15px; }
.article-toc > p { font-size: .85rem; color: #d3e4ea; margin: 0 0 20px; }
.article-toc a { display: flex; gap: 12px; align-items: baseline; color: #a2bbc6; font-size: .8rem; padding: 13px 0; border-bottom: 1px solid var(--line); }
.article-toc a > span { font-size: .67rem; color: #779fae; flex-shrink: 0; }
.article-toc a:hover, .article-toc a[aria-current] { color: var(--ice-bright); }
.all-guides { display: flex; justify-content: space-between; gap: 15px; color: var(--ice); font-size: .8rem; margin-top: 28px; }
.article-body { min-width: 0; }
.article-figure { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0c1c27; }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { padding: 16px 22px; color: #a8c0ca; font-size: .78rem; border-top: 1px solid var(--line); }
.article-lead { font-size: 1.23rem; line-height: 1.9; margin: 34px 0 45px; color: #d3e2e8; }
.article-section { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.mini-index { font-size: .73rem; color: #81adbc; display: block; margin-bottom: 10px; letter-spacing: .13em; }
.article-section > h2 { font-size: clamp(1.55rem, 2.7vw, 2.1rem); font-weight: 400; line-height: 1.3; letter-spacing: -.03em; margin: 0 0 27px; }
.section-intro { color: #b5cbd3; font-size: 1rem; line-height: 1.9; margin: 0 0 26px; }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); gap: 13px; }
.concept-card { padding: 24px; background: #0f2330; border: 1px solid var(--line); border-radius: 12px; }
.concept-card h3 { color: #d1eff6; font-size: 1.04rem; font-weight: 500; margin: 0 0 12px; }
.concept-card p { font-size: .92rem; color: #adc5ce; margin: 0; line-height: 1.85; }
.technical-note { margin: 24px 0 0; padding: 19px 23px; border-inline-start: 2px solid #76b3c5; background: rgba(134,204,225,.045); color: #b6d1db; font-size: .9rem; line-height: 1.85; border-radius: 5px 0 0 5px; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; text-align: start; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: start; padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead { background: #15303e; color: #d6edf4; font-size: .8rem; }
.table-wrap thead th { font-weight: 400; }
.table-wrap tbody th { width: 29%; min-width: 125px; color: #c8e2ec; font-weight: 400; background: rgba(135,209,232,.035); }
.table-wrap td { color: #aec6d0; line-height: 1.85; }
.table-wrap tr:last-child > * { border-bottom: 0; }
.planning-steps { list-style: none; padding: 0; counter-reset: steps; }
.planning-steps li { position: relative; padding: 0 58px 26px 0; margin-top: 24px; border-bottom: 1px solid var(--line); counter-increment: steps; }
.planning-steps li:last-child { border: 0; padding-bottom: 0; }
.planning-steps li::before { content: '0' counter(steps); position: absolute; right: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; background: #16303d; border-radius: 9px; color: var(--ice); font-size: .8rem; }
.planning-steps h3 { font-size: 1.05rem; font-weight: 500; margin: 0 0 9px; color: #c9e5ed; }
.planning-steps p { margin: 0; color: #adc5ce; line-height: 1.85; font-size: .94rem; }
.source-section { padding: 30px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #0b1c27; }
.source-section h2 { font-size: 1.12rem; font-weight: 500; margin: 0 0 13px; }
.source-section p, .source-section li { font-size: .88rem; color: #a9c1cb; line-height: 1.85; }
.source-section ul { padding-right: 18px; }
.source-section li { margin: 10px 0; }
.source-section a { color: var(--ice); text-decoration: underline; text-decoration-color: #3b687a; text-underline-offset: 4px; overflow-wrap: anywhere; }
.source-section small { font-size: .72rem; color: #9bb9c5; }
.related-section { margin-top: 90px; margin-bottom: 65px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.related-grid .topic-art img { max-height: 210px; object-fit: contain; }
.related-grid .topic-card-copy { padding: 26px; }
.related-grid .topic-card-copy > p { font-size: .88rem; }
.related-grid .topic-card h2 { font-size: 1.55rem; }
.explorer { border: 1px solid var(--line-strong); border-radius: 15px; overflow: hidden; background: #0b1d28; }
.explorer fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.explorer legend { color: #b1cbd5; font-size: .78rem; margin-bottom: 10px; }
.explorer-controls { display: flex; gap: 30px; flex-wrap: wrap; padding: 24px; border-bottom: 1px solid var(--line); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #395966; border-radius: 8px; color: #c5dde6; cursor: pointer; font-size: .83rem; }
.choice-row label:has(input:checked) { background: #244454; border-color: #9ddce8; color: #e5f8fd; }
.choice-row input { accent-color: #86d4e8; width: 15px; height: 15px; margin: 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid #7a969f; border-radius: 50%; }
.white { background: #e7eced; }.black { background: #1d2429; }.silver { background: #9caeb4; }
.grille-stage { height: 280px; direction: ltr; display: flex; justify-content: center; align-items: center; padding: 30px 50px 30px 25px; gap: 18px; background: radial-gradient(ellipse at center, #1c3442, #0a1923 80%); --grille-color: #e6e9e8; }
.grille-stage[data-finish="black"] { --grille-color: #333d43; }
.grille-stage[data-finish="silver"] { --grille-color: #9eafb6; }
.sample-grille { width: min(460px, 85%); height: 100px; padding: 9px; background: var(--grille-color); box-shadow: 6px -6px 0 #52636b, 0 28px 30px #020a0e; border-radius: 3px; transition: height .3s, background .2s; }
.sample-grille > div { height: 100%; background: repeating-linear-gradient(to bottom, #071018 0 8px, var(--grille-color) 8px 15px); border: 1px solid #677982; }
.grille-stage[data-height="15"] .sample-grille { height: 150px; }
.dimension-height { direction: rtl; writing-mode: vertical-rl; color: #c8eaf3; font-size: .85rem; height: 100px; border-inline: 1px solid #729eae; padding-block: 8px; text-align: center; transition: height .3s; }
.grille-stage[data-height="15"] .dimension-height { height: 150px; }
.explorer-status { text-align: center; margin: 0; padding: 17px 20px; border-top: 1px solid var(--line); color: #c9e5ef; font-size: .85rem; }
.fine-print { font-size: .72rem; color: #9ab9c5; text-align: center; margin: 0; padding: 0 20px 18px; }
.explorer-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.explorer-toolbar > span { font-size: .85rem; color: #b9d2dd; }
.explorer-toolbar .button { min-height: 42px; font-size: .8rem; padding-inline: 15px; }
.technical-svg { display: block; width: 100%; height: auto; }
.cabinet-cover { opacity: 1; transition: opacity .35s; }
.is-open .cabinet-cover { opacity: 0; }
.explorer .room-selector { padding: 24px; border-bottom: 1px solid var(--line); }
.knowledge-interactive [data-vrf] .vrf-branch { opacity: .15; }
.knowledge-interactive [data-vrf] .vrf-branch.is-active { opacity: 1; stroke-width: 5px; }
.knowledge-interactive [data-vrf] .vrf-room { opacity: .5; }
.knowledge-interactive [data-vrf] .vrf-room.is-active { opacity: 1; }
.knowledge-interactive [data-vrf] .vrf-room.is-active .room-wall { stroke: #b9edcf; stroke-width: 2px; }
.explorer-controls, .explorer .room-selector, .explorer-toolbar button { display: none; }
.knowledge-interactive .explorer-controls { display: flex; }
.knowledge-interactive .explorer .room-selector { display: block; }
.knowledge-interactive .explorer-toolbar button { display: inline-flex; }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
  .main-nav { gap: 15px; }
  .header-inner { gap: 20px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 0; }
  .library-top, .article-top { padding-top: 105px; }
  .library-heading { grid-template-columns: 1fr .5fr; gap: 30px; }
  .library-note { padding-inline: 25px 0; }
  .large-five { font-size: 6rem; }
  .topic-featured { flex-direction: column; }
  .topic-featured .topic-art { order: 0; width: 100%; }
  .topic-featured .topic-art img { max-height: 340px; object-fit: contain; }
  .topic-featured .topic-card-copy { width: 100%; padding: 30px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-sidebar { position: static; max-height: none; padding: 0; }
  .article-toc { background: #0d202c; padding: 20px; border-radius: 12px; border: 1px solid var(--line); }
  .article-toc > p { margin-bottom: 8px; }
  .article-toc a { display: inline-flex; padding: 9px 0; margin-inline-end: 22px; border: 0; }
  .all-guides { margin-top: 16px; }
  .article-heading { padding-bottom: 32px; }
  .knowledge-contact { padding: 30px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 9px; }
  .knowledge-preview .heading-row { gap: 25px; }
  .home-guide-grid { grid-template-columns: 1fr; }
  .home-guide, .home-guide-compact { grid-column: auto; }
  .home-guide img { max-height: 215px; object-fit: contain; background: #0a1923; }
  .breadcrumbs { margin-bottom: 30px; font-size: .72rem; }
  .library-heading { grid-template-columns: 1fr; gap: 28px; padding-bottom: 42px; }
  .library-heading h1 { font-size: 3.4rem; }
  .library-lead { font-size: 1rem; }
  .library-note { padding: 20px 0 0; border-inline-start: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: center; }
  .large-five { font-size: 4.3rem; grid-row: span 2; }
  .library-note > span:not(.large-five) { margin: 0; font-size: .9rem; }
  .library-note p { font-size: .78rem; margin: 3px 0 0; }
  .library-note .text-link { display: none; }
  .library-section-label > span { display: none; }
  .library-section-label h2 { font-size: 1.2rem; }
  .topic-grid, .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .topic-featured { grid-column: auto; }
  .topic-card-copy, .topic-featured .topic-card-copy { padding: 24px; }
  .topic-featured h2 { font-size: 1.7rem; }
  .topic-card h2 { font-size: 1.6rem; }
  .topic-card-copy > p { font-size: .9rem; }
  .library-categories { padding-bottom: 35px; }
  .knowledge-contact { flex-direction: column; align-items: stretch; padding: 26px; gap: 24px; }
  .article-heading h1 { font-size: 2.9rem; }
  .article-heading > p:not(.eyebrow) { font-size: 1rem; }
  .article-toc { padding: 17px; }
  .article-toc a { display: flex; margin: 0; font-size: .81rem; }
  .article-figure figcaption { padding: 14px 17px; font-size: .73rem; }
  .article-lead { font-size: 1.1rem; margin-block: 25px 34px; }
  .article-section { padding-block: 30px 36px; }
  .article-section > h2 { font-size: 1.7rem; margin-bottom: 22px; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-card { padding: 21px; }
  .table-wrap th, .table-wrap td { padding: 14px 12px; font-size: .84rem; }
  .table-wrap tbody th { min-width: 91px; width: 30%; }
  .technical-note { padding: 16px 18px; font-size: .86rem; }
  .planning-steps li { padding-right: 48px; }
  .source-section { padding: 22px; }
  .related-section { margin-top: 55px; margin-bottom: 35px; }
  .related-grid .topic-art img { max-height: 180px; }
  .explorer-controls { padding: 18px; gap: 20px; }
  .choice-row { gap: 6px; }
  .choice-row label { font-size: .77rem; padding: 9px; gap: 6px; }
  .grille-stage { height: 240px; padding: 30px 26px 30px 15px; gap: 14px; }
  .explorer .room-selector { padding: 17px; }
  .explorer-toolbar { padding: 17px; }
  .explorer-status { font-size: .78rem; }
}
@media print {
  .site-header, .site-footer, .article-sidebar, .related-section, .knowledge-contact, .skip-link { display: none; }
  .knowledge-page { background: white; color: black; }
  .article-top { padding-top: 0; }
  .article-layout { display: block; }
  .article-heading h1 { font-size: 28pt; }
  .article-section { break-inside: avoid; }
  .knowledge-page p, .knowledge-page h2, .knowledge-page h3, .knowledge-page td, .knowledge-page th { color: #111; }
  .concept-card, .table-wrap thead, .table-wrap tbody th, .source-section, .technical-note { background: #f3f3f3; }
  .explorer-controls, .explorer-toolbar, .room-selector { display: none !important; }
}
