/* THX Biblioteki 10.8 — one structural rule, no stacked dividers.
   This layer applies to the offer site, not independent library demos.
   Control outlines, active tabs and keyboard focus are deliberately untouched. */
.thx-library { --thx-divider: #d3d3ca; --thx-row-divider: #d3d3ca; }
/* Section boundary belongs to the next section, not both neighbours. */
.thx-library .sub-intro { border-bottom:0; }
.thx-library :is(.editorial-feature,.pricing-section,.price86-index,.buyer-scale,.buyer-brief,.edition-photo-story,.cms96,.trust107,.philosophy98,.purchase97,.mini-contact) { border-top:1px solid var(--thx-divider); }
.thx-library .edition-intro .service-nav83 { border-top:0; border-bottom:1px solid var(--thx-divider); }
/* A list has separators between entries, not an additional frame. */
.thx-library :is(.service-list,.task-list,.ed-services,.price86-links,.scale-rows,.buyer-rows,.cms96-points,.extra-rows,.access85-nav) { border-block:0; }
.thx-library :is(.service-list,.task-list) > details.service-item { border-top:0; border-bottom:1px solid var(--thx-row-divider); }
.thx-library :is(.service-list,.task-list) > details.service-item:last-child { border-bottom:0; }
.thx-library :is(.scale-rows>div,.buyer-rows>article,.cms96-points>article,.extra-rows>.extra-row,.access-offer>.access-row) { border-top:1px solid var(--thx-row-divider); border-bottom:0; }
.thx-library :is(.scale-rows>div:first-child,.buyer-rows>article:first-child,.cms96-points>article:first-child,.extra-rows>.extra-row:first-child,.access-offer>.access-row:first-of-type) { border-top:0; }
.thx-library :is(.scale-rows>div:last-child,.buyer-rows>article:last-child,.cms96-points>article:last-child) { border-bottom:0; }
.thx-library .price86-links>a { border-bottom:1px solid var(--thx-row-divider); }
.thx-library .price86-links>a:last-child { border-bottom:0; }
.thx-library .ed-more { border-bottom:0; }
.thx-library .ed-link { border-top:1px solid var(--thx-row-divider); }
/* Pricing: extra services and full-audit note must not form a double frame. */
.thx-library .extra-pricing { border-top:1px solid var(--thx-divider); border-bottom:0; margin-top:clamp(26px,3vw,44px); }
.thx-library .extra-pricing .extra-offer { border:0; }
.thx-library .extra-pricing .extra-rows { border-bottom:0; }
.thx-library .price86-audit { border-top:0; border-bottom:0; background:#f5f5ef; padding:clamp(18px,2.5vw,30px); margin-top:clamp(26px,3vw,44px); }
/* WCAG: typography and numbered labels, not heavy 8px bars. */
.thx-library .law-grid article:nth-child(n) { border-top:1px solid var(--thx-row-divider); box-shadow:none; }
.thx-library .access-standard { border:0; }
.thx-library .access-offer { border:0; }
.thx-library .access85 { border-top:1px solid var(--thx-divider); border-bottom:0; }
.thx-library .access85-nav button { border-bottom:1px solid var(--thx-row-divider); }
.thx-library .access85-nav button:last-child { border-bottom:0; }
.thx-library .editorial-photo { border-block:0; }
.thx-library .access85-explain { border-top:1px solid var(--thx-row-divider); }
/* FAQ and other disclosures: one separator; nested containers have no extra closing rule. */
.thx-library .faq-outer { border-bottom:0; }
.thx-library .faq-inner>details { border-top:0; border-bottom:1px solid var(--thx-row-divider); }
.thx-library .faq-inner>details:last-child { border-bottom:0; }
.thx-library .purchase97-faq { border-top:1px solid var(--thx-divider); border-bottom:0; }
.thx-library .ph98-sources { border-top:1px solid var(--thx-divider); border-bottom:0; }
.thx-library .ph98-principles { border-top:1px solid var(--thx-divider); border-bottom:0; }
.thx-library .cost107 :is(.cost107-rows,.trust107-rows)>div { border-color:var(--thx-row-divider); }
.thx-library .foot.foot-soft { border-top:1px solid var(--thx-divider); }
.thx-library .foot.foot-soft .footer-bottom { border-top:1px solid var(--thx-divider); }
.thx-library .foot.foot-soft .footer-links { border-top:0; }
/* Studio: one owner of each boundary; the demo controls retain their outlines. */
.thx-library #library-lab .lab-tabs { border-top:0; }
.thx-library #library-lab .lib-nav { border-top:0; }
.thx-library #library-lab .lab84-compare { border-bottom:0; }
.thx-library #library-lab .lib-branch { border-bottom:0; }
.thx-library hr:has(+ .cms96) { display:none; }
.thx-library .studio-preview85 .demo87-link { border-top:1px solid var(--thx-divider); border-bottom:0; }
/* High-contrast mode remains opt-in and does not use pale dividers. */
html.thx-high .thx-library { --thx-divider:#fff; --thx-row-divider:#fff; }
html.thx-high .thx-library .price86-audit { background:#000!important; color:#fff!important; border:1px solid #fff; }
