/* The Body Language Method™ — Trust Rituals, The Collections + the approved Homepage.
 *
 * ISOLATION CONTRACT — read before editing.
 * 1. This file is loaded AFTER screen.css and BEFORE any page's own <style> block,
 *    so the cascade order inherited by /membership/ is unchanged.
 * 2. Every Trust Rituals / Collections rule is prefixed with `.lib`, a wrapper class
 *    emitted only by page-trust-rituals, page-collections, page-the-table,
 *    page-the-apothecary, page-the-sanctuary, custom-table-resource,
 *    custom-apothecary-resource and custom-sanctuary-practice.
 * 3. Every Homepage rule is scoped to `.home-template`, Ghost's own body class for
 *    the index route only.
 * 4. There are NO bare element selectors, no :root redefinitions, no !important.
 *    /membership/ renders through page.hbs, which emits neither `.lib` nor
 *    `.home-template`, so nothing here can reach it.
 * Tokens come from screen.css (--ink, --bone, --rose, --rose-deep, --rule, --s*).
 */

/* ============ 1. Homepage — the only two class-based rules it needs ============ */
.home-template .blm-plate{width:100%}
.home-template .blm-plate img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.home-template .blm-door:hover{background:rgba(26,26,28,.03)}

/* ============ 2. Library shell ============ */
.lib{background:#FFFFFF;color:#1A1A1C;font-family:'Jost','Helvetica Neue',Arial,sans-serif;font-weight:300;font-size:17px;line-height:1.75;-webkit-font-smoothing:antialiased}
@media(min-width:900px){.lib{font-size:18px}}
.lib-wrap{max-width:72rem;margin:0 auto;padding-left:clamp(1.25rem,5vw,3rem);padding-right:clamp(1.25rem,5vw,3rem)}
.lib-section{padding:clamp(5rem,10vw,9rem) 0}
.lib-section--tight{padding:clamp(3rem,6vw,5rem) 0}
.lib-section--ink{background:#1A1A1C;color:#F4EFE9}
.lib-section--top{border-top:1px solid rgba(26,26,28,.12)}
.lib-divider{height:1px;background:rgba(26,26,28,.12);border:0;margin:0}

/* ============ 3. Library typography ============ */
.lib-eyebrow{font-size:.7rem;font-weight:400;letter-spacing:.32em;text-transform:uppercase;color:#9C6F5F;margin:0}
.lib-section--ink .lib-eyebrow{color:#B78A7A}
.lib-eyebrow a{color:inherit;text-decoration:none}
.lib-rule{height:1px;background:rgba(26,26,28,.12);border:0;margin:0;width:72px}
.lib-section--ink .lib-rule{background:rgba(244,239,233,.25)}
.lib-h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:clamp(3rem,6.8vw,5.3rem);line-height:1.02;letter-spacing:.012em;text-transform:uppercase;margin:0;text-wrap:balance;color:inherit}
.lib-h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:clamp(2.4rem,5.1vw,3.8rem);line-height:1.04;letter-spacing:.012em;text-transform:uppercase;margin:0;color:inherit}
.lib-lede{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:500;font-size:clamp(1.35rem,2.2vw,1.75rem);line-height:1.4;color:#9C6F5F;margin:0}
.lib-section--ink .lib-lede{color:#B78A7A}
.lib-p{font-size:1.02rem;line-height:1.8;color:#5a544c;margin:0;text-wrap:pretty}
.lib-section--ink .lib-p{color:rgba(244,239,233,.85)}
.lib-p--measure{max-width:52ch}
.lib-statement{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:clamp(1.58rem,2.6vw,1.95rem);line-height:1.3;margin:0;max-width:38ch;color:inherit}
.lib-meta{font-size:.66rem;letter-spacing:.28em;text-transform:uppercase;color:#8a8177;margin:0}
.lib-section-label{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:.92rem;letter-spacing:.34em;text-indent:.34em;text-transform:uppercase;color:#9C6F5F;margin:0}
.lib-descriptor{font-size:.94rem;line-height:1.8;color:#5a544c;margin:0}

/* ============ 4. Library stacks + grids ============ */
.lib-stack{display:flex;flex-direction:column;gap:clamp(18px,2.2vw,28px)}
.lib-stack--tight{gap:16px}
.lib-stack--copy{gap:18px;max-width:56ch}
.lib-split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:clamp(32px,5vw,72px);align-items:end}
.lib-split--centre{align-items:center;gap:clamp(40px,5vw,80px)}
.lib-split--media-second .lib-media{order:2}
.lib-head{display:flex;flex-wrap:wrap;gap:12px 32px;align-items:baseline;justify-content:space-between;margin-bottom:clamp(32px,4vw,48px)}
.lib-head .lib-divider{flex:1 1 120px}
.lib-foot{display:flex;flex-wrap:wrap;gap:20px 48px;align-items:baseline;justify-content:space-between}
.lib-foot__links{display:flex;flex-wrap:wrap;gap:28px}
.lib-numbered{display:flex;align-items:baseline;gap:20px}
.lib-numbered__n{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:500;font-size:1.25rem;color:#9C6F5F}
.lib-section--ink .lib-numbered__n{color:#B78A7A}

/* ============ 5. Actions — approved treatments, preserved ============ */
.lib-btn{align-self:start;margin-top:2.6rem;display:inline-flex;align-items:center;min-height:44px;background:#9C6F5F;border:0;border-radius:0;padding:1.02rem 2.4rem;font-family:'Jost','Helvetica Neue',Arial,sans-serif;font-size:.7rem;font-weight:400;letter-spacing:.26em;text-indent:.26em;text-transform:uppercase;text-decoration:none;color:#F4EFE9;transition:background .35s}
.lib-btn:hover{background:#8a6153;color:#F4EFE9}
.lib-link{align-self:start;display:inline-flex;align-items:flex-end;min-height:44px;font-size:.7rem;font-weight:400;letter-spacing:.26em;text-transform:uppercase;text-decoration:none;color:#9C6F5F;border-bottom:1px solid #B78A7A;padding-bottom:.35rem}
.lib-link:hover{color:#1A1A1C;border-bottom-color:#1A1A1C}
.lib-section--ink .lib-link{color:#B78A7A;border-bottom-color:rgba(183,138,122,.7)}
.lib-section--ink .lib-link:hover{color:#F4EFE9;border-bottom-color:#F4EFE9}
.lib-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:8px}
.lib-actions .lib-btn{margin-top:0}
.lib-actions .lib-link{margin-top:0}

/* ============ 6. Category index — static, never sticky ============
 * Deliberately not position:sticky: the masthead is the only fixed
 * furniture on the site and a second sticky bar collides with it.
 */
.lib-index{border-top:1px solid rgba(26,26,28,.12);border-bottom:1px solid rgba(26,26,28,.12)}
.lib-index__inner{max-width:72rem;margin:0 auto;padding:0 clamp(1.25rem,5vw,3rem);display:flex;flex-wrap:wrap;gap:4px 32px}
.lib-index a{min-height:44px;display:inline-flex;align-items:center;font-size:.66rem;font-weight:400;letter-spacing:.22em;text-transform:uppercase;text-decoration:none;color:rgba(26,26,28,.65);transition:color .3s}
.lib-index a:hover{color:#9C6F5F}
.lib-strip{border-top:1px solid rgba(26,26,28,.12);border-bottom:1px solid rgba(26,26,28,.12)}
.lib-strip__inner{max-width:72rem;margin:0 auto;padding:1.6rem clamp(1.25rem,5vw,3rem);display:flex;flex-wrap:wrap;gap:12px 28px;align-items:baseline;justify-content:space-between}
.lib-anchor{scroll-margin-top:clamp(96px,14vw,140px)}

/* ============ 7. Rose keyline image frame — approved, do not remove ============ */
.rose-frame{position:relative;margin:0;padding:0 18px 18px 0;display:block;text-decoration:none}
.rose-frame::after{content:"";position:absolute;top:18px;left:18px;width:calc(100% - 18px);height:calc(100% - 18px);border:1px solid rgba(183,138,122,.7);z-index:0}
.rose-frame > img,.rose-frame > .photo-slot,.rose-frame > .lib-embed{position:relative;z-index:1;display:block;width:100%}
.rose-frame > img{object-fit:cover;object-position:center}
.rose-frame--4-5 > img,.rose-frame--4-5 > .photo-slot{aspect-ratio:4/5}
.rose-frame--3-4 > img,.rose-frame--3-4 > .photo-slot{aspect-ratio:3/4}
.rose-frame--4-3 > img,.rose-frame--4-3 > .photo-slot{aspect-ratio:4/3}
.rose-frame--16-9 > img,.rose-frame--16-9 > .photo-slot{aspect-ratio:16/9}
.rose-frame--16-10 > img,.rose-frame--16-10 > .photo-slot{aspect-ratio:16/10}
.lib-caption{font-size:.66rem;letter-spacing:.28em;text-transform:uppercase;color:#8a8177;margin:0;padding:1.4rem 0 0}

/* ============ 7b. Full-bleed editorial plate + four-up category strip ============ */
.lib-bleed{width:100%;margin:0;line-height:0}
.lib-bleed > img{display:block;width:100%;height:clamp(320px,62vh,760px);object-fit:cover;object-position:center}
.lib-bleed > .photo-slot{width:100%;height:clamp(320px,62vh,760px);aspect-ratio:auto;line-height:1.75}
.lib-strip4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.8vw,26px)}
.lib-strip4 > figure,.lib-strip4 > a{margin:0;display:flex;flex-direction:column;gap:14px;text-decoration:none}
.lib-strip4 .lib-caption{padding:0}
.lib-strip4 a .lib-caption{color:#8a8177;transition:color .3s}
.lib-strip4 a:hover .lib-caption{color:#9C6F5F}
@media(max-width:820px){.lib-strip4{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,3.5vw,22px)}}

/* ============ 8. Photo slot — designed production placeholder ============ */
.photo-slot{background:#F4EFE9;border:1px solid rgba(26,26,28,.16);display:flex;flex-direction:column;justify-content:center;gap:1rem;padding:clamp(1.5rem,5%,2.6rem)}
.photo-slot--sm{gap:.7rem;padding:clamp(1rem,7%,1.6rem)}
.photo-slot__label{font-size:.66rem;font-weight:400;letter-spacing:.3em;text-transform:uppercase;color:#9C6F5F;margin:0}
.photo-slot__rule{height:1px;background:rgba(26,26,28,.16);border:0;margin:0;width:48px}
.photo-slot__depict{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:1.25rem;line-height:1.4;color:#1A1A1C;margin:0;max-width:30ch;text-wrap:pretty}
.photo-slot--sm .photo-slot__depict{font-size:1rem;line-height:1.35;max-width:none}
.photo-slot--sm .photo-slot__spec{letter-spacing:.16em;line-height:1.7}
.photo-slot__spec{font-size:.62rem;letter-spacing:.24em;text-transform:uppercase;color:rgba(26,26,28,.72);margin:0;line-height:1.9}

/* ============ 9. Resource + ritual cards ============ */
.lib-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:clamp(40px,5vw,68px) clamp(24px,3vw,44px)}
.lib-cards--wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:clamp(44px,5vw,76px) clamp(24px,3vw,48px)}
.lib-cards--related{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:32px}
.lib-card{display:flex;flex-direction:column;gap:16px}
.lib-cards--wide .lib-card{gap:18px}
.lib-card__title{font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:1.62rem;line-height:1.12;letter-spacing:.018em;text-transform:uppercase;margin:0}
.lib-cards--wide .lib-card__title{font-size:1.72rem}
.lib-cards--related .lib-card__title{font-size:1.38rem;line-height:1.14}
.lib-card__title a{color:#1A1A1C;text-decoration:none}
.lib-card__title a:hover{color:#9C6F5F}
.lib-empty{font-size:.94rem;line-height:1.8;color:#5a544c;margin:0;max-width:48ch}

/* ============ 10. Three-image mosaic — approved, do not remove ============ */
.mosaic{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mosaic__lead{grid-column:1/-1}

/* ============ 11. Resource detail pages ============ */
.lib-article{max-width:72rem;margin:0 auto;padding:clamp(5rem,10vw,9rem) clamp(1.25rem,5vw,3rem)}
.lib-article--narrow{max-width:920px}
.lib-media--lead{margin:clamp(32px,4vw,56px) 0 0}
.lib-embed{aspect-ratio:16/9;background:#1A1A1C;overflow:hidden;position:relative}
.lib-embed__note{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px}
.lib-embed iframe,.lib-embed video,.lib-embed audio{position:absolute;inset:0;width:100%;height:100%;border:0}
.lib-note{margin-top:clamp(40px,5vw,72px);border-top:1px solid rgba(26,26,28,.12);padding-top:clamp(28px,3vw,40px)}
.lib-note h2,.lib-note .lib-section-label{margin:0 0 20px}
.lib-aside{margin-top:clamp(44px,5vw,80px);background:#1A1A1C;color:#F4EFE9;padding:clamp(28px,4vw,48px);display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center;justify-content:space-between}
.lib-aside__title{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:clamp(1.58rem,2.6vw,1.95rem);line-height:1.3;margin:0;color:#F4EFE9}
.lib-aside .lib-link{color:#B78A7A;border-bottom-color:rgba(183,138,122,.7);margin:0}
.lib-aside .lib-link:hover{color:#F4EFE9;border-bottom-color:#F4EFE9}

/* Editor-authored resource bodies. Ingredients / Method / Notes are H2s written
 * in the Ghost editor; no HTML editing and no maintained data file. */
.lib-content{font-size:1.02rem;line-height:1.8;color:#5a544c;margin-top:clamp(40px,5vw,72px)}
.lib-content > *{max-width:100%}
.lib-content p{margin:0 0 1.5rem;text-wrap:pretty}
.lib-content h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:.92rem;letter-spacing:.34em;text-indent:.34em;text-transform:uppercase;color:#9C6F5F;margin:clamp(40px,5vw,64px) 0 0;padding-bottom:24px;border-bottom:1px solid rgba(26,26,28,.12)}
.lib-content h2 + *{margin-top:24px}
.lib-content h3{font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:1.38rem;line-height:1.2;letter-spacing:.018em;text-transform:uppercase;color:#1A1A1C;margin:clamp(28px,3vw,40px) 0 12px}
.lib-content ul,.lib-content ol{list-style:none;margin:0 0 1.5rem;padding:0;display:flex;flex-direction:column;gap:14px}
.lib-content ol{gap:20px;counter-reset:libstep}
.lib-content li{margin:0;padding-left:32px;position:relative}
.lib-content ul > li::before{content:"\2013";position:absolute;left:0;color:#B78A7A}
.lib-content ol > li{counter-increment:libstep}
.lib-content ol > li::before{content:counter(libstep,upper-roman);position:absolute;left:0;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:500;font-size:1.25rem;color:#9C6F5F}
.lib-content blockquote{margin:clamp(2.2rem,4vw,3rem) 0;padding-left:clamp(1.2rem,3vw,2.2rem);border-left:1px solid rgba(183,138,122,.7);font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:clamp(1.3rem,2.4vw,1.75rem);line-height:1.45;color:#9C6F5F}
.lib-content figure{margin:clamp(2.2rem,4vw,3rem) 0}
.lib-content figure img{display:block;width:100%;height:auto}
.lib-content figcaption{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;color:#8a8177;margin-top:.9rem}
.lib-content a{color:#9C6F5F;text-decoration:none;border-bottom:1px solid rgba(156,111,95,.4)}
.lib-content a:hover{color:#1A1A1C;border-bottom-color:rgba(26,26,28,.56)}
.lib-content hr{height:1px;background:rgba(26,26,28,.16);border:0;margin:clamp(2.5rem,5vw,3.5rem) 0}
.lib-content .kg-card{margin:clamp(2.2rem,4vw,3rem) 0}

/* ============ 12. Compact resource gallery — horizontal, scroll-snap, no autoplay ============
 * Populated from Ghost posts by partials/collection-gallery.hbs. Roughly four cards
 * visible on desktop, native swipe on touch, manual arrows for pointer users. */
.gal-nav{display:flex;gap:8px;flex:0 0 auto}
.gal-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid rgba(26,26,28,.2);color:#1A1A1C;font-size:.9rem;cursor:pointer;transition:background .3s,color .3s,border-color .3s}
.gal-btn:hover:not(:disabled){background:rgba(26,26,28,.06);color:#9C6F5F}
.gal-btn:disabled{opacity:.4;cursor:default}
.gal{position:relative}
.gal-track{list-style:none;margin:0;padding:0 0 12px;display:flex;gap:clamp(16px,2vw,28px);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.gal-item{flex:0 0 clamp(210px,calc(25% - 24px),300px);scroll-snap-align:start}
.gal-card{display:flex;flex-direction:column;gap:14px;text-decoration:none}
.gal-card__media{width:100%}
.gal-card__title{font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:1.32rem;line-height:1.14;letter-spacing:.018em;text-transform:uppercase;color:#1A1A1C;margin:0;transition:color .3s}
.gal-card:hover .gal-card__title{color:#9C6F5F}
.gal-card__note{font-size:.88rem;line-height:1.7;color:#5a544c;margin:0;text-wrap:pretty}
.gal-card__cta{font-size:.64rem;font-weight:400;letter-spacing:.26em;text-transform:uppercase;color:#9C6F5F}
@media(max-width:820px){.gal-item{flex:0 0 min(72vw,260px)}}

/* ============ 13. Universal Collections search ============
 * Indexes title, custom excerpt, public tags and Collection identity only.
 * The index is rendered server-side inside the member gate. */
.csearch__form{margin:0;display:flex;flex-direction:column;gap:10px;max-width:38rem}
.csearch__label{font-size:.66rem;font-weight:400;letter-spacing:.26em;text-transform:uppercase;color:#8a8177}
.csearch__input{width:100%;background:none;border:0;border-bottom:1px solid rgba(26,26,28,.28);border-radius:0;padding:.7rem 0;font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2;color:#1A1A1C;-webkit-appearance:none;appearance:none}
.csearch__input::placeholder{color:rgba(26,26,28,.4)}
.csearch__input:focus{outline:0;border-bottom-color:#9C6F5F}
.csearch__note{font-size:.88rem;line-height:1.7;color:#5a544c;margin:1.1rem 0 0;max-width:48ch}
.csearch__count{font-size:.64rem;letter-spacing:.26em;text-transform:uppercase;color:#8a8177;margin:1.1rem 0 0}
.csearch__results{list-style:none;margin:clamp(28px,3.5vw,44px) 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:clamp(28px,3.5vw,44px)}
.csearch__card{display:grid;grid-template-columns:104px 1fr;gap:20px;align-items:start;text-decoration:none}
.csearch__media{width:100%}
.csearch__body{display:flex;flex-direction:column;gap:10px}
.csearch__label-tag{font-size:.6rem;letter-spacing:.28em;text-transform:uppercase;color:#9C6F5F;margin:0}
.csearch__title{font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:1.32rem;line-height:1.14;letter-spacing:.018em;text-transform:uppercase;color:#1A1A1C;margin:0;transition:color .3s}
.csearch__card:hover .csearch__title{color:#9C6F5F}
.csearch__excerpt{font-size:.88rem;line-height:1.7;color:#5a544c;margin:0;text-wrap:pretty}
.csearch__cta{font-size:.62rem;letter-spacing:.26em;text-transform:uppercase;color:#9C6F5F}
@media(max-width:480px){.csearch__card{grid-template-columns:84px 1fr;gap:16px}}

/* ============ 14. Mobile ============ */
@media(max-width:600px){
  .rose-frame{padding:0 12px 12px 0}
  .rose-frame::after{top:12px;left:12px;width:calc(100% - 12px);height:calc(100% - 12px)}
  .mosaic{grid-template-columns:1fr}
  .mosaic__lead{grid-column:auto}
  .lib-aside{align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .lib-btn,.lib-index a{transition:none}
}

/* ============ 15. Local Collection nav ============ */
.col-nav .lib-index__inner{align-items:center;gap:4px clamp(18px,3vw,32px)}
.col-nav__label{font-size:.62rem;letter-spacing:.28em;text-transform:uppercase;color:#9C6F5F;padding-right:clamp(4px,1vw,12px)}
.col-nav a.is-current{color:#1A1A1C}

/* ============ 16. Trust Rituals — three Collection doorways ============ */
.tr-doors{margin-top:clamp(36px,4.5vw,64px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,28px)}
.tr-doors > a{display:flex;flex-direction:column;gap:14px;text-decoration:none}
.tr-doors .lib-divider{background:rgba(244,239,233,.28)}
.tr-doors .lib-caption{color:rgba(244,239,233,.72);padding:0;transition:color .3s}
.tr-doors > a:hover .lib-caption{color:#B78A7A}
@media(max-width:600px){.tr-doors{grid-template-columns:1fr;gap:clamp(24px,6vw,32px)}}

/* ============ 17. Work With Us — scoped vertical rhythm ============
 * Tightens the lower half of one page only. screen.css is untouched. */
.wwu .page-content{padding:var(--s6) 0 var(--s7)}
.wwu .section{padding:var(--s8) 0}
@media(min-width:900px){.wwu .section{padding:80px 0}}
.wwu .section-head{margin-bottom:var(--s6)}
.wwu .paths__item{padding:var(--s5) 0 var(--s5)}
.wwu .mt-8{margin-top:var(--s6)}
.wwu .member-actions{margin-top:var(--s5)}


/* ============ 15. Collections page — image composition parity with the approved canvas ============
 * Scoped to .lib-collections (page-collections.hbs only). Matches the canvas exactly:
 * 300px column floor, 32-80px gutter, 18px rose offset on every breakpoint, and the
 * 1px ink keyline + bone mat around each photograph. The three Collection photographs
 * carry no pan/zoom in the canvas, so cover framing is centred there and centred here. */
.lib-collections .lib-split{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:clamp(32px,5vw,80px)}
.lib-collections .lib-split--centre{align-items:center;gap:clamp(32px,5vw,80px)}
.lib-collections .lib-media{padding:0 18px 18px 0}
.lib-collections .lib-media::after{top:18px;left:18px;width:calc(100% - 18px);height:calc(100% - 18px)}
.lib-collections .lib-media > img{background:#F4EFE9;border:1px solid rgba(26,26,28,.16);object-fit:cover;object-position:center}
@media(max-width:600px){
  .lib-collections .lib-media{padding:0 18px 18px 0}
  .lib-collections .lib-media::after{top:18px;left:18px;width:calc(100% - 18px);height:calc(100% - 18px)}
}

/* ============================================================================
 * Trust Ritual article (custom-trust-ritual.hbs, Ghost Post). v1.8.0
 * Permanent template. Six modules; layout follows card type, never position.
 *  01 Opening ......... title, excerpt (deck), date, feature image
 *  02 Story ........... everything above the first divider, one reading column
 *  03 Break ........... Wide/Full image card, gallery card, video card
 *  04 Turn ............ alternate quote (kg-blockquote-alt) above the divider
 *  05 Principle ....... first divider, then a quote (principle) + paragraphs (note)
 *  06 From this ritual  second divider, then heading, intro, bookmarks, credits (H4 + lines)
 * Photographs keep their own ratio: width and height are capped, never cropped.
 * js/trust-ritual.js adds is-portrait / is-landscape / is-square and groups
 * bookmarks by caption. Without it the page still reads correctly.
 * ========================================================================== */
.ritual{--pad:20px;--col:640px;--gut:0px;--maxh:min(78vh,760px);--maxh-break:min(84vh,900px);--wide:calc(var(--col) + var(--gut) * 2);overflow-x:clip}
@media(min-width:720px){.ritual{--pad:40px;--col:600px;--gut:40px}}
@media(min-width:1100px){.ritual{--pad:56px;--col:640px;--gut:200px}}

/* ---- 01 Opening ---- */
.ritual-open{display:grid;grid-template-columns:minmax(0,1fr)}
.ritual-open__text{display:flex;flex-direction:column;gap:18px;padding:28px var(--pad) 32px;min-width:0}
.ritual-open__folio{margin:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-family:var(--font-sans);font-size:10px;font-weight:var(--w-medium);letter-spacing:.3em;text-transform:uppercase;color:var(--rose-deep)}
.ritual-open__folio time{color:var(--ink-mute);font-weight:var(--w-regular)}
.ritual-open__title{margin:0;font-family:var(--font-display);font-weight:300;text-transform:uppercase;letter-spacing:.02em;line-height:.9;font-size:clamp(2.6rem,12vw,4rem);color:var(--ink);max-width:11ch;text-wrap:balance}
.ritual-open__head{display:flex;flex-direction:column;gap:18px}
.ritual-open__deck{margin:0;font-family:var(--font-display);font-style:italic;font-weight:var(--w-regular);font-size:1.25rem;line-height:1.45;color:var(--ink-soft);max-width:34ch;text-wrap:pretty}
.ritual-open__media{margin:0;display:flex;flex-direction:column;align-items:center}
.ritual-open__media img{width:auto;height:auto;max-width:100%;max-height:85svh}
.ritual-open__media figcaption{align-self:stretch;padding:8px var(--pad) 0;font-family:var(--font-sans);font-size:11px;line-height:1.5;color:var(--ink-mute)}
@media(min-width:720px){.ritual-open__text{padding:48px var(--pad) 40px}.ritual-open__title{font-size:clamp(3.4rem,8vw,5rem)}}
@media(min-width:1100px){
  /* one composition on one container: folio top-aligns with the photograph, title + deck
     bottom-align with it, and the photograph's right edge mirrors the title's left edge */
  .ritual-open{--hero-w:min(1320px,calc(100% - var(--pad) * 2));grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(48px,5vw,80px);width:var(--hero-w);margin:0 auto;box-sizing:border-box;padding:56px 0 0;height:min(calc(100svh - 72px),980px);min-height:620px}
  .ritual-open__text{justify-content:space-between;gap:22px;padding:0;container-type:inline-size}
  .ritual-open__head{display:flex;flex-direction:column;gap:22px}
  /* title fills its own grid column (never the photograph's): scales with the column, shorter titles set larger */
  .ritual-open__title{max-width:100%;font-size:clamp(4rem,15cqi,8.75rem);line-height:.88}
  .ritual-open.is-long-title .ritual-open__title{font-size:clamp(3.6rem,11.5cqi,7.25rem)}
  .ritual-open__deck{font-size:1.4rem}
  .ritual-open__media{height:100%;min-height:0;align-items:flex-end;justify-content:flex-start}
  .ritual-open__media img{height:100%;max-height:none;width:auto;max-width:min(56vw,760px);object-fit:contain;object-position:right top}
  .ritual-open__media figcaption{padding:8px 0 0;text-align:right;max-width:40ch}
  .ritual-open:has(.ritual-open__media figcaption) .ritual-open__media img{height:calc(100% - 28px)}
  /* landscape hero: type above, photograph on the wide grid */
  .ritual-open.is-landscape{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;width:min(var(--wide),calc(100% - var(--pad) * 2));padding-top:72px}
  .ritual-open.is-landscape .ritual-open__text{padding:0 0 48px}
  .ritual-open.is-landscape .ritual-open__title{font-size:clamp(4rem,9cqi,8.75rem);max-width:16ch}
  .ritual-open.is-landscape .ritual-open__media{height:auto;padding:0}
  .ritual-open.is-landscape .ritual-open__media img{height:auto;width:auto;max-width:min(100%,var(--wide));max-height:82vh}
  .ritual-open.is-landscape .ritual-open__media figcaption{width:min(var(--wide),100%);padding:8px 0 0;text-align:left}
}

/* ---- 02 Story: one reading column on a shared axis ---- */
.ritual-story{display:grid;grid-template-columns:[full-start] minmax(var(--pad),1fr) [wide-start] minmax(0,var(--gut)) [col-start] minmax(0,var(--col)) [col-end] minmax(0,var(--gut)) [wide-end] minmax(var(--pad),1fr) [full-end];margin:64px 0 0;padding-bottom:96px;font-family:var(--font-sans);font-weight:300;font-size:17px;line-height:1.65;color:var(--ink-soft)}
@media(min-width:1100px){.ritual-story{margin-top:120px;font-size:19px;line-height:1.7;padding-bottom:128px}}
.ritual-story > *{grid-column:col;min-width:0;margin:1.1em 0 0;max-width:none}
.ritual-story > :first-child{margin-top:0}
.ritual-story p{margin-bottom:0}
.ritual-story strong{font-weight:var(--w-medium);color:var(--ink)}
.ritual-story a{color:var(--rose-deep);text-decoration:none;border-bottom:1px solid var(--rose);transition:color var(--dur-fade,.35s),border-color var(--dur-fade,.35s)}
.ritual-story a:hover{color:var(--ink);border-bottom-color:var(--ink)}
.ritual-story > h2,.ritual-story > h3{margin-top:88px;font-family:var(--font-display);font-weight:var(--w-regular);text-transform:uppercase;letter-spacing:.04em;font-size:1.55rem;line-height:1.14;color:var(--ink);text-wrap:balance}
.ritual-story > h2 strong,.ritual-story > h3 strong,.ritual-story > h4 strong{font-weight:inherit;color:inherit}
.ritual-story > :is(h2,h3) + *{margin-top:24px}
.ritual-story > h4{margin-top:88px;font-family:var(--font-sans);font-size:10.5px;font-weight:var(--w-medium);letter-spacing:.3em;line-height:1.5;text-transform:uppercase;color:var(--rose-deep)}
.ritual-story > h4 + :is(h2,h3){margin-top:12px}
@media(min-width:1100px){.ritual-story > h2,.ritual-story > h3{margin-top:120px;font-size:2.05rem}.ritual-story > h4{margin-top:120px}}

/* small in-story quote */
.ritual-story > blockquote{margin-top:48px;padding:0;border:0;font-family:var(--font-display);font-style:italic;font-weight:var(--w-regular);font-size:1.75rem;line-height:1.2;color:var(--ink);text-align:left;text-wrap:balance}
.ritual-story > blockquote + *{margin-top:40px}
@media(min-width:1100px){.ritual-story > blockquote{margin-top:56px;font-size:2.1rem}.ritual-story > blockquote + *{margin-top:48px}}

/* in-story photographs: column width, own ratio, never taller than the screen */
.ritual-story > .kg-card{margin-top:48px}
.ritual-story > .kg-card + *{margin-top:48px}
.ritual-story > .kg-image-card{display:flex;flex-direction:column;align-items:flex-start;width:auto;transform:none}
.ritual-story .kg-image{display:block;margin:0;width:auto;height:auto;max-width:100%;max-height:var(--maxh)}
.ritual-story figcaption{margin-top:10px;font-family:var(--font-sans);font-weight:var(--w-regular);font-size:12px;line-height:1.55;letter-spacing:.02em;color:var(--ink-mute);text-align:left;max-width:44ch}
.ritual-story figcaption p{margin:0}
@media(min-width:720px){
  .ritual-story > .kg-image-card.is-portrait.kg-card-hascaption:not(.kg-width-wide,.kg-width-full){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:24px;align-items:end}
  .ritual-story > .kg-image-card.is-portrait.kg-card-hascaption:not(.kg-width-wide,.kg-width-full) figcaption{margin:0;max-width:26ch}
}
@media(min-width:1100px){.ritual-story > .kg-card{margin-top:64px}.ritual-story > .kg-card + *{margin-top:64px}}

/* ---- 03 Documentary Break ---- */
.ritual-story > :is(.kg-width-wide,.kg-width-full),.ritual-story > .kg-gallery-card,.ritual-story > .kg-video-card{grid-column:wide;width:auto;max-width:none;margin-left:0;margin-right:0;transform:none;margin-top:72px}
.ritual-story > :is(.kg-width-wide,.kg-width-full,.kg-gallery-card,.kg-video-card) + *{margin-top:72px}
.ritual-story > :is(.kg-width-wide,.kg-width-full).kg-image-card{align-items:center}
.ritual-story > :is(.kg-width-wide,.kg-width-full) .kg-image{max-height:var(--maxh-break)}
.ritual-story > :is(.kg-width-wide,.kg-width-full).kg-image-card figcaption{align-self:flex-start}
/* pair: equal heights, natural widths (Ghost sets flex from each photo's ratio) */
.ritual-story > .kg-gallery-card .kg-gallery-container{display:flex;flex-direction:column;gap:12px}
.ritual-story > .kg-gallery-card .kg-gallery-row{display:flex;flex-direction:row;gap:12px;width:100%;max-width:calc(var(--sum,99) * var(--maxh-break));margin:0 auto}
.ritual-story > .kg-gallery-card .kg-gallery-image{min-width:0}
.ritual-story > .kg-gallery-card .kg-gallery-image img{display:block;width:100%;height:100%;margin:0;max-height:none}
/* video: never wider than its own ratio allows at the height cap */
.ritual-story > .kg-video-card{display:flex;flex-direction:column;align-items:center}
.ritual-story > .kg-video-card .kg-video-container{width:min(100%,calc(var(--maxh-break) * var(--ar,1.7778)))}
.ritual-story > .kg-video-card video{display:block;width:100%;height:auto}
.ritual-story > .kg-video-card figcaption{align-self:center;width:min(100%,calc(var(--maxh-break) * var(--ar,1.7778)))}
@media(max-width:719px){
  .ritual-story > :is(.kg-width-wide,.kg-width-full).is-landscape,.ritual-story > .kg-gallery-card{grid-column:full}
  .ritual-story > :is(.kg-width-wide,.kg-width-full).is-landscape .kg-image{width:100%;max-height:none}
  .ritual-story > :is(.kg-width-wide,.kg-width-full).is-landscape figcaption,.ritual-story > .kg-gallery-card figcaption{padding:0 var(--pad)}
  .ritual-story > .kg-gallery-card .kg-gallery-row,.ritual-story > .kg-gallery-card .kg-gallery-container{gap:4px}
  .ritual-story > .kg-video-card .kg-video-container,.ritual-story > .kg-video-card figcaption{width:min(100%,calc(74svh * var(--ar,1.7778)))}
}
@media(min-width:1100px){
  .ritual-story > :is(.kg-width-wide,.kg-width-full,.kg-gallery-card,.kg-video-card){margin-top:112px}
  .ritual-story > :is(.kg-width-wide,.kg-width-full,.kg-gallery-card,.kg-video-card) + *{margin-top:112px}
  /* portrait photograph or film: sits on the wide grid's left edge, caption in the space it leaves */
  .ritual-story > :is(.kg-width-wide,.kg-width-full).kg-image-card.is-portrait,.ritual-story > .kg-video-card.is-portrait{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:0}
  .ritual-story > .kg-video-card.is-portrait{grid-column:col-start / wide-end;column-gap:48px}
  .ritual-story > .kg-video-card.is-portrait .kg-video-container{width:calc(min(72vh,720px) * var(--ar,.5625));max-width:420px}
  .ritual-story > :is(.kg-width-wide,.kg-width-full).kg-image-card.is-portrait figcaption{align-self:end;width:auto;margin:0 0 0 calc(var(--gut) * .5);max-width:30ch}
  .ritual-story > .kg-video-card.is-portrait figcaption{align-self:end;width:auto;margin:0;max-width:30ch}
}

/* Full-bleed environment: Full card + landscape photograph only. Height capped at 88vh by
   cropping top and bottom of the original (object-fit), never by extending it.
   A portrait or square photo set to Full stays on the wide grid. */
.ritual-story > .kg-width-full.kg-image-card.is-landscape{grid-column:full}
.ritual-story > .kg-width-full.kg-image-card.is-landscape .kg-image{width:100%;height:auto;max-width:none;max-height:88vh;object-fit:cover;object-position:center}
.ritual-story > .kg-width-full.kg-image-card.is-landscape figcaption{align-self:center;width:min(var(--wide),calc(100% - var(--pad) * 2));max-width:none}
@media(max-width:719px){.ritual-story > .kg-width-full.kg-image-card.is-landscape .kg-image{max-height:none}}

/* Detail + Note: a portrait photograph whose caption is set in italics becomes a larger
   photograph with a margin note beside it. The note is existing story copy. */
.ritual-story > .kg-image-card.has-note{grid-column:wide;display:flex;flex-direction:column;align-items:flex-start}
.ritual-story > .kg-image-card.has-note figcaption{margin-top:18px;max-width:30ch;font-family:var(--font-display);font-size:1.3rem;line-height:1.3;letter-spacing:0;color:var(--ink)}
.ritual-story > .kg-image-card.has-note figcaption :is(em,i){font-style:italic}
.ritual-story > .kg-image-card.has-note figcaption::before{content:"";display:block;width:32px;margin-bottom:14px;border-top:1px solid rgba(26,26,28,.35)}
@media(min-width:720px){
  .ritual-story > .kg-image-card.has-note.is-portrait{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:40px;align-items:end}
  .ritual-story > .kg-image-card.has-note.is-portrait .kg-image{max-height:var(--maxh-break)}
  .ritual-story > .kg-image-card.has-note.is-portrait figcaption{margin:0;max-width:24ch;font-size:1.4rem}
}
@media(min-width:1100px){
  .ritual-story > .kg-image-card.has-note.is-portrait{column-gap:56px}
  .ritual-story > .kg-image-card.has-note.is-portrait figcaption{font-size:1.6rem;padding-bottom:8px}
}

/* Matched pair: a two-photo gallery of like orientation is shown at identical size.
   The common frame is the wider of the two ratios, so only height is ever trimmed. */
.ritual-story > .kg-gallery-card.is-pair .kg-gallery-row{max-width:calc(2 * var(--maxh-break) * var(--pair-ar) + 12px)}
.ritual-story > .kg-gallery-card.is-pair .kg-gallery-image{flex:1 1 0% !important;aspect-ratio:var(--pair-ar);overflow:hidden}
.ritual-story > .kg-gallery-card.is-pair .kg-gallery-image img{width:100%;height:100%;object-fit:cover;object-position:center}
@media(max-width:719px){
  .ritual-story > .kg-gallery-card.is-pair{grid-column:col}
  .ritual-story > .kg-gallery-card.is-pair .kg-gallery-row{flex-direction:column;gap:8px;max-width:none}
}

/* embeds (Spotify, YouTube) sit in the column */
.ritual-story > .kg-embed-card{display:block}
.ritual-story > .kg-embed-card iframe{display:block;width:100%;border:0}

/* ---- 04 The Turn: one sentence, one step wider than the column ---- */
.ritual-story > blockquote.kg-blockquote-alt:not(hr ~ *){grid-column:wide-start / col-end;margin-top:96px;padding-top:32px;border-top:1px solid rgba(26,26,28,.2);font-weight:300;font-size:clamp(2.2rem,8vw,2.75rem);line-height:1.06;letter-spacing:-.005em;max-width:18ch;text-align:left}
.ritual-story > blockquote.kg-blockquote-alt:not(hr ~ *) + *{margin-top:56px}
@media(min-width:1100px){
  .ritual-story > blockquote.kg-blockquote-alt:not(hr ~ *){margin-top:144px;padding-top:40px;font-size:clamp(3rem,4.4vw,4.25rem)}
  .ritual-story > blockquote.kg-blockquote-alt:not(hr ~ *) + *{margin-top:88px}
}

/* ---- 05 Principle + A Note from the Method: the story settling, not a block ---- */
.ritual-story > hr{grid-column:col;justify-self:start;width:48px;height:0;margin:112px 0 0;border:0;border-top:1px solid rgba(26,26,28,.35)}
.ritual-story > hr + *{margin-top:36px}
.ritual-story > hr ~ blockquote:not(hr ~ hr ~ *){grid-column:col;margin-top:36px;padding:0;border:0;font-style:normal;font-weight:var(--w-regular);font-size:1.6rem;line-height:1.28;letter-spacing:0;max-width:28ch;text-align:left}
.ritual-story > hr ~ blockquote:not(hr ~ hr ~ *)::before{content:"The principle";display:block;margin-bottom:16px;font-family:var(--font-sans);font-style:normal;font-size:10.5px;font-weight:var(--w-medium);letter-spacing:.3em;line-height:1.5;text-transform:uppercase;color:var(--rose-deep)}
.ritual-story > hr ~ blockquote:not(hr ~ hr ~ *) + p:not(.ritual-seq){margin-top:44px}
.ritual-story > hr ~ blockquote:not(hr ~ hr ~ *) + p:not(.ritual-seq)::before{content:"A note from the Method";display:block;margin-bottom:12px;font-size:10.5px;font-weight:var(--w-medium);letter-spacing:.3em;line-height:1.5;text-transform:uppercase;color:var(--rose-deep)}
.ritual-story > .ritual-seq{order:1;grid-column:col;margin:48px 0 0;font-family:var(--font-sans);font-size:10.5px;font-weight:var(--w-regular);letter-spacing:.32em;line-height:1.6;text-transform:uppercase;color:var(--ink-mute)}
@media(min-width:1100px){.ritual-story > hr{margin-top:144px}.ritual-story > hr ~ blockquote:not(hr ~ hr ~ *){font-size:2rem}.ritual-story > .ritual-seq{margin-top:56px}}

/* ---- 06 From this ritual ---- */
.ritual-story > hr ~ hr,.ritual-story > hr ~ hr ~ *{order:2}
.ritual-story > hr ~ hr{grid-column:wide;justify-self:stretch;width:auto;margin-top:96px;border-top-color:rgba(26,26,28,.18)}
.ritual-story > hr ~ hr + *{margin-top:56px}
.ritual-story > hr ~ hr ~ :is(h2,h3){font-size:1.5rem}
.ritual-story > hr ~ hr ~ :is(h2,h3)::before{content:"From this ritual";display:block;margin-bottom:14px;font-family:var(--font-sans);font-size:10.5px;font-weight:var(--w-medium);letter-spacing:.3em;line-height:1.5;text-transform:uppercase;color:var(--rose-deep)}
@media(min-width:1100px){.ritual-story > hr ~ hr{margin-top:120px}.ritual-story > hr ~ hr ~ :is(h2,h3){font-size:1.8rem}}
.ritual-story > .ritual-resources{grid-column:wide;margin-top:48px;display:flex;flex-direction:column;gap:36px}
.ritual-resources__label{margin:0 0 14px;font-family:var(--font-sans);font-size:10.5px;font-weight:var(--w-medium);letter-spacing:.3em;line-height:1.5;text-transform:uppercase;color:var(--rose-deep)}
.ritual-resources__cards{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
@media(min-width:620px){.ritual-resources__cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.ritual-resources__cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
.ritual-resources .kg-bookmark-card{margin:0}
.ritual-resources .kg-bookmark-card > figcaption{display:none}
.ritual-story > .kg-bookmark-card{display:flex;flex-direction:column-reverse;gap:10px}
.ritual-story > .kg-bookmark-card > figcaption{margin:0;font-size:10.5px;font-weight:var(--w-medium);letter-spacing:.3em;text-transform:uppercase;color:var(--rose-deep)}
.ritual-story .kg-bookmark-card a.kg-bookmark-container{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:center;min-height:72px;height:100%;box-sizing:border-box;padding:12px 16px 12px 12px;background:var(--white);border:1px solid rgba(26,26,28,.2);border-radius:0;color:var(--ink);text-decoration:none;transition:background var(--dur-fade,.35s)}
.ritual-story .kg-bookmark-card a.kg-bookmark-container:has(.kg-bookmark-thumbnail){grid-template-columns:72px minmax(0,1fr)}
.ritual-story .kg-bookmark-card a.kg-bookmark-container:hover{background:rgba(26,26,28,.03);border-bottom-color:rgba(26,26,28,.2)}
.ritual-story .kg-bookmark-card a.kg-bookmark-container:hover .kg-bookmark-title{color:var(--rose-deep)}
.ritual-story .kg-bookmark-thumbnail{order:-1;position:relative;width:72px;height:72px;min-height:0;margin:0}
.ritual-story .kg-bookmark-thumbnail img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;border-radius:0}
.ritual-story .kg-bookmark-content{padding:0;display:flex;flex-direction:column;gap:4px;min-width:0}
.ritual-story .kg-bookmark-title{font-family:var(--font-display);font-size:1.2rem;font-weight:var(--w-regular);line-height:1.2;color:var(--ink);transition:color var(--dur-fade,.35s)}
.ritual-story .kg-bookmark-description{margin:0;font-family:var(--font-sans);font-weight:300;font-size:13px;line-height:1.45;color:var(--ink-mute);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:none}
.ritual-story .kg-bookmark-metadata{display:none}
/* credits: label (H4) then lines, quiet */
.ritual-story > hr ~ hr ~ h4{margin-top:22px;font-size:10px;letter-spacing:.28em;color:var(--ink)}
.ritual-story > hr ~ hr ~ h4:not(hr ~ hr ~ h4 ~ h4){margin-top:64px;padding-top:28px;border-top:1px solid rgba(26,26,28,.14)}
.ritual-story > hr ~ hr ~ h4 + *{margin-top:4px}
.ritual-story > hr ~ hr ~ h4 ~ p{margin-top:2px;font-size:13.5px;line-height:1.6;color:var(--ink-mute)}

/* ============ Proof mode: unpublished drafts only ============ */
.ritual-proof{display:none}
.ritual--proof .ritual-proof{display:block;position:sticky;top:0;z-index:50;background:var(--bone-deep);border-bottom:1px solid rgba(26,26,28,.2);padding:10px var(--pad);font-family:var(--font-sans);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.ritual-proof p,.ritual-proof ul{margin:0;padding:0;list-style:none}
.ritual-proof__title{font-weight:var(--w-medium)}
.ritual-proof .tr-err{display:none;margin:4px 0 0;text-transform:none;letter-spacing:.04em;font-size:13px;color:var(--rose-deep)}
.ritual-proof .tr-err-on{display:block}
.ritual--proof:not(:has(.ritual-story > hr)) .tr-err-close{display:block}
.ritual--proof:has(.ritual-story > hr):not(:has(.ritual-story > hr ~ blockquote)) .tr-err-principle{display:block}
.ritual--proof:has(.ritual-story > blockquote.kg-blockquote-alt:not(hr ~ *) ~ blockquote.kg-blockquote-alt:not(hr ~ *)) .tr-err-turn{display:block}
.ritual--proof:has(.ritual-story :is(.kg-image-card,.kg-gallery-card) img:is([alt=""],:not([alt]))) .tr-err-alt{display:block}
.ritual--proof:has(.ritual-story .kg-bookmark-card:not(.kg-card-hascaption)) .tr-err-lib{display:block}
.ritual--proof:has(.ritual-story .tr-zone) .tr-err-zone{display:block}
.ritual--proof:has(.ritual-story > .kg-width-full.is-landscape ~ .kg-width-full.is-landscape ~ .kg-width-full.is-landscape) .tr-err-full{display:block}
.ritual--proof .ritual-story :is(.kg-image-card,.kg-gallery-card) img:is([alt=""],:not([alt])){outline:3px dashed var(--rose-deep);outline-offset:-3px}

/* ============ 18. Apothecary resource (custom-apothecary-resource.hbs). v1.8.0 ============
 * Body = eight section markers, each an HTML card that IS its heading:
 *   <h2 class="ap-zone ap-z01">What it is</h2> ... <h2 class="ap-zone ap-z08">A note from the Method</h2>
 * Content sits directly under its marker as ordinary Ghost blocks. From 900px the page reads
 * as a reference sheet: numbered label column left, content right. PART OF is generated by
 * partials/resource-part-of.hbs. Drafts get the structure check. No JavaScript.
 * ========================================================================== */
.ap .ap-body{counter-reset:apzone}
.ap .ap-body > .ap-zone{counter-increment:apzone;display:flex;align-items:baseline;gap:14px;font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:.92rem;letter-spacing:.34em;text-indent:0;text-transform:uppercase;color:#9C6F5F;margin:clamp(40px,5vw,64px) 0 0;padding:28px 0 0;border-top:1px solid rgba(26,26,28,.12);border-bottom:0}
.ap .ap-body > .ap-zone::before{content:counter(apzone,decimal-leading-zero);font-style:italic;font-weight:500;font-size:1.25rem;letter-spacing:0;color:#B78A7A}
.ap .ap-body > .ap-z01{margin-top:0}
.ap .ap-body > .ap-zone + *{margin-top:20px}
/* Sub-labels inside a section (e.g. "For one use") are ordinary Heading 3 blocks */
.ap .ap-body > h3{font-family:'Jost','Helvetica Neue',Arial,sans-serif;font-size:.7rem;font-weight:400;letter-spacing:.26em;line-height:1.6;text-transform:uppercase;color:#1A1A1C;margin:28px 0 12px}
.ap .ap-body > .ap-zone + h3{margin-top:20px}
/* What you need: a measured list on hairlines */
.ap .ap-body > .ap-z03 ~ ul:not(.ap-z04, .ap-z04 ~ *){gap:0;border-top:1px solid rgba(26,26,28,.1)}
.ap .ap-body > .ap-z03 ~ ul:not(.ap-z04, .ap-z04 ~ *) > li{padding:12px 0 12px 28px;border-bottom:1px solid rgba(26,26,28,.1);color:#1A1A1C}
.ap .ap-body > .ap-z03 ~ ul:not(.ap-z04, .ap-z04 ~ *) > li::before{top:12px}
/* Storage + Safety: factual, set apart on a rose keyline */
.ap .ap-body > .ap-z07 ~ :is(p, ul, ol):not(.ap-z08, .ap-z08 ~ *){border-left:1px solid rgba(183,138,122,.7);padding-left:clamp(18px,2.4vw,28px);margin-bottom:0;padding-bottom:1.5rem}
.ap .ap-body > .ap-z07 ~ ul:not(.ap-z08, .ap-z08 ~ *) > li{padding-left:24px}
/* A note from the Method: the one serif moment */
.ap .ap-body > .ap-z08 ~ p{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:clamp(1.4rem,2.4vw,1.75rem);line-height:1.38;color:#1A1A1C;max-width:36ch;margin-bottom:1.1rem}
@media(min-width:900px){
  .ap .ap-body{display:grid;grid-template-columns:minmax(0,15rem) minmax(0,44rem);column-gap:clamp(40px,5vw,80px);justify-content:start}
  .ap .ap-body > *{grid-column:2}
  .ap .ap-body > .ap-zone{grid-column:1;flex-direction:column;gap:10px;margin-top:clamp(48px,5vw,72px);align-self:start}
  .ap .ap-body > .ap-zone + *{margin-top:clamp(48px,5vw,72px);padding-top:28px;border-top:1px solid rgba(26,26,28,.12)}
  .ap .ap-body > .ap-zone + h3{margin-top:clamp(48px,5vw,72px);padding-top:32px}
  .ap .ap-body > .ap-z01 + h3{margin-top:0}
  .ap .ap-body > .ap-z01,.ap .ap-body > .ap-z01 + *{margin-top:0}
}
/* PART OF */
.ap .ap-partof .lib-aside{margin-top:clamp(56px,6vw,96px)}
.ap .ap-partof__title{color:#F4EFE9;text-decoration:none}
.ap .ap-partof__title:hover{color:#B78A7A}
.ap .lib-card .lib-eyebrow{font-size:.62rem}

/* ---- Structure check (drafts only) ---- */
.ap-proof{display:none}
.ap--proof .ap-proof{display:block;position:sticky;top:0;z-index:50;background:#EDE5DB;border:1px solid rgba(26,26,28,.2);padding:12px 16px;margin-bottom:40px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#1A1A1C;line-height:1.5}
.ap-proof p,.ap-proof ul{margin:0;padding:0;list-style:none}
.ap-proof__title{font-weight:500}
.ap-proof__ok{color:#8a8177;margin-top:2px}
.ap-proof .ap-err{display:none}
.ap-proof .ap-err,.ap-proof__settings li{margin:4px 0 0;text-transform:none;letter-spacing:.04em;font-size:13px;color:#9C6F5F}
.ap--proof .ap-body img:not([alt]),.ap--proof .ap-body img[alt=""]{outline:3px solid #9C6F5F;outline-offset:2px}
.ap--proof:has(.ap-body img:not([alt]), .ap-body img[alt=""]) .ap-err-alt{display:block}
.ap--proof:has(.ap-body > :first-child:not(.ap-zone)) .ap-err-lead{display:block}
.ap--proof:not(:has(.ap-body > .ap-z01)) .ap-err-m01{display:block}
.ap--proof:has(.ap-body > .ap-z01 ~ .ap-z01) .ap-err-d01{display:block}
.ap--proof:has(.ap-body > .ap-z02 ~ .ap-z01, .ap-body > .ap-z03 ~ .ap-z01, .ap-body > .ap-z04 ~ .ap-z01, .ap-body > .ap-z05 ~ .ap-z01, .ap-body > .ap-z06 ~ .ap-z01, .ap-body > .ap-z07 ~ .ap-z01, .ap-body > .ap-z08 ~ .ap-z01) .ap-err-o01{display:block}
.ap--proof:has(.ap-body > .ap-z01 + .ap-zone, .ap-body > .ap-z01:last-child) .ap-err-e01{display:block}
.ap--proof:not(:has(.ap-body > .ap-z02)) .ap-err-m02{display:block}
.ap--proof:has(.ap-body > .ap-z02 ~ .ap-z02) .ap-err-d02{display:block}
.ap--proof:has(.ap-body > .ap-z03 ~ .ap-z02, .ap-body > .ap-z04 ~ .ap-z02, .ap-body > .ap-z05 ~ .ap-z02, .ap-body > .ap-z06 ~ .ap-z02, .ap-body > .ap-z07 ~ .ap-z02, .ap-body > .ap-z08 ~ .ap-z02) .ap-err-o02{display:block}
.ap--proof:has(.ap-body > .ap-z02 + .ap-zone, .ap-body > .ap-z02:last-child) .ap-err-e02{display:block}
.ap--proof:not(:has(.ap-body > .ap-z03)) .ap-err-m03{display:block}
.ap--proof:has(.ap-body > .ap-z03 ~ .ap-z03) .ap-err-d03{display:block}
.ap--proof:has(.ap-body > .ap-z04 ~ .ap-z03, .ap-body > .ap-z05 ~ .ap-z03, .ap-body > .ap-z06 ~ .ap-z03, .ap-body > .ap-z07 ~ .ap-z03, .ap-body > .ap-z08 ~ .ap-z03) .ap-err-o03{display:block}
.ap--proof:has(.ap-body > .ap-z03 + .ap-zone, .ap-body > .ap-z03:last-child) .ap-err-e03{display:block}
.ap--proof:not(:has(.ap-body > .ap-z04)) .ap-err-m04{display:block}
.ap--proof:has(.ap-body > .ap-z04 ~ .ap-z04) .ap-err-d04{display:block}
.ap--proof:has(.ap-body > .ap-z05 ~ .ap-z04, .ap-body > .ap-z06 ~ .ap-z04, .ap-body > .ap-z07 ~ .ap-z04, .ap-body > .ap-z08 ~ .ap-z04) .ap-err-o04{display:block}
.ap--proof:has(.ap-body > .ap-z04 + .ap-zone, .ap-body > .ap-z04:last-child) .ap-err-e04{display:block}
.ap--proof:not(:has(.ap-body > .ap-z05)) .ap-err-m05{display:block}
.ap--proof:has(.ap-body > .ap-z05 ~ .ap-z05) .ap-err-d05{display:block}
.ap--proof:has(.ap-body > .ap-z06 ~ .ap-z05, .ap-body > .ap-z07 ~ .ap-z05, .ap-body > .ap-z08 ~ .ap-z05) .ap-err-o05{display:block}
.ap--proof:has(.ap-body > .ap-z05 + .ap-zone, .ap-body > .ap-z05:last-child) .ap-err-e05{display:block}
.ap--proof:not(:has(.ap-body > .ap-z06)) .ap-err-m06{display:block}
.ap--proof:has(.ap-body > .ap-z06 ~ .ap-z06) .ap-err-d06{display:block}
.ap--proof:has(.ap-body > .ap-z07 ~ .ap-z06, .ap-body > .ap-z08 ~ .ap-z06) .ap-err-o06{display:block}
.ap--proof:has(.ap-body > .ap-z06 + .ap-zone, .ap-body > .ap-z06:last-child) .ap-err-e06{display:block}
.ap--proof:not(:has(.ap-body > .ap-z07)) .ap-err-m07{display:block}
.ap--proof:has(.ap-body > .ap-z07 ~ .ap-z07) .ap-err-d07{display:block}
.ap--proof:has(.ap-body > .ap-z08 ~ .ap-z07) .ap-err-o07{display:block}
.ap--proof:has(.ap-body > .ap-z07 + .ap-zone, .ap-body > .ap-z07:last-child) .ap-err-e07{display:block}
.ap--proof:not(:has(.ap-body > .ap-z08)) .ap-err-m08{display:block}
.ap--proof:has(.ap-body > .ap-z08 ~ .ap-z08) .ap-err-d08{display:block}
.ap--proof:has(.ap-body > .ap-z08 + .ap-zone, .ap-body > .ap-z08:last-child) .ap-err-e08{display:block}
.ap--proof:has(.ap-body > :first-child:not(.ap-zone), .ap-body img:not([alt]), .ap-body img[alt=""], .ap-body > .ap-z01 ~ .ap-z01, .ap-body > .ap-z01 + .ap-zone, .ap-body > .ap-z01:last-child, .ap-body > .ap-z02 ~ .ap-z01, .ap-body > .ap-z03 ~ .ap-z01, .ap-body > .ap-z04 ~ .ap-z01, .ap-body > .ap-z05 ~ .ap-z01, .ap-body > .ap-z06 ~ .ap-z01, .ap-body > .ap-z07 ~ .ap-z01, .ap-body > .ap-z08 ~ .ap-z01, .ap-body > .ap-z02 ~ .ap-z02, .ap-body > .ap-z02 + .ap-zone, .ap-body > .ap-z02:last-child, .ap-body > .ap-z03 ~ .ap-z02, .ap-body > .ap-z04 ~ .ap-z02, .ap-body > .ap-z05 ~ .ap-z02, .ap-body > .ap-z06 ~ .ap-z02, .ap-body > .ap-z07 ~ .ap-z02, .ap-body > .ap-z08 ~ .ap-z02, .ap-body > .ap-z03 ~ .ap-z03, .ap-body > .ap-z03 + .ap-zone, .ap-body > .ap-z03:last-child, .ap-body > .ap-z04 ~ .ap-z03, .ap-body > .ap-z05 ~ .ap-z03, .ap-body > .ap-z06 ~ .ap-z03, .ap-body > .ap-z07 ~ .ap-z03, .ap-body > .ap-z08 ~ .ap-z03, .ap-body > .ap-z04 ~ .ap-z04, .ap-body > .ap-z04 + .ap-zone, .ap-body > .ap-z04:last-child, .ap-body > .ap-z05 ~ .ap-z04, .ap-body > .ap-z06 ~ .ap-z04, .ap-body > .ap-z07 ~ .ap-z04, .ap-body > .ap-z08 ~ .ap-z04, .ap-body > .ap-z05 ~ .ap-z05, .ap-body > .ap-z05 + .ap-zone, .ap-body > .ap-z05:last-child, .ap-body > .ap-z06 ~ .ap-z05, .ap-body > .ap-z07 ~ .ap-z05, .ap-body > .ap-z08 ~ .ap-z05, .ap-body > .ap-z06 ~ .ap-z06, .ap-body > .ap-z06 + .ap-zone, .ap-body > .ap-z06:last-child, .ap-body > .ap-z07 ~ .ap-z06, .ap-body > .ap-z08 ~ .ap-z06, .ap-body > .ap-z07 ~ .ap-z07, .ap-body > .ap-z07 + .ap-zone, .ap-body > .ap-z07:last-child, .ap-body > .ap-z08 ~ .ap-z07, .ap-body > .ap-z08 ~ .ap-z08, .ap-body > .ap-z08 + .ap-zone, .ap-body > .ap-z08:last-child) .ap-proof__ok{display:none}
.ap--proof:is(:not(:has(.ap-body > .ap-z01)), :not(:has(.ap-body > .ap-z02)), :not(:has(.ap-body > .ap-z03)), :not(:has(.ap-body > .ap-z04)), :not(:has(.ap-body > .ap-z05)), :not(:has(.ap-body > .ap-z06)), :not(:has(.ap-body > .ap-z07)), :not(:has(.ap-body > .ap-z08))) .ap-proof__ok{display:none}
.ap--proof .ap-body > .ap-zone{outline:1px dashed rgba(156,111,95,.5);outline-offset:6px}


/* ---- The Apothecary landing: category anchors + By Trust Ritual shelves (v1.8.0) ---- */
.lib .gal-after{margin-top:28px}
.lib .ap-shelves{padding-top:clamp(3rem,6vw,5rem);border-top:1px solid rgba(26,26,28,.12)}
.lib .ap-shelves .lib-section--tight{padding-top:clamp(1.5rem,3vw,2.5rem)}
.lib .ap-shelves__head .lib-head{margin-bottom:0}
.lib .ap-shelves:not(:has(.gal)){display:none}
.lib .lib-section[id]{scroll-margin-top:24px}
.ap-proof .ap-err-norel{display:none}
.ap-proof__settings:not(:has(.ap-has-rel)) .ap-err-norel{display:block}
/* Library member gate inside a gated resource (partials/content-cta.hbs) */
.lib .lib-gate{grid-column:1 / -1;background:#1A1A1C;color:#F4EFE9;padding:clamp(40px,6vw,80px);margin-top:clamp(24px,3vw,40px)}
.lib .lib-gate .lib-eyebrow{color:#B78A7A}
.lib .lib-gate .lib-rule{background:rgba(244,239,233,.25)}
.lib .lib-gate .lib-h2{color:#F4EFE9;font-size:clamp(2rem,4.2vw,3rem)}
.lib .lib-gate .lib-p{color:rgba(244,239,233,.85)}
.lib .lib-gate .lib-link{color:#B78A7A;border-bottom-color:rgba(183,138,122,.7)}
.lib .lib-gate .lib-link:hover{color:#F4EFE9;border-bottom-color:#F4EFE9}
.lib .lib-gate .lib-btn{color:#F4EFE9}
.lib .lib-gate{text-align:left}
.lib .lib-gate .lib-rule{margin:0;height:1px}
.lib .lib-gate .lib-h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;line-height:1.04;letter-spacing:.012em;text-indent:0;border:0;padding:0;margin:0}
.lib .lib-gate .lib-p{margin:0}
.lib .lib-gate .lib-btn{border-bottom:0}

/* ============ 19. Table resource (custom-table-resource.hbs). v1.9.0 ============
 * Body = nine section markers, each an HTML card that IS its heading:
 *   <h2 class="tb-zone tb-z01">What it is</h2> ... <h2 class="tb-zone tb-z09">A note from the Method</h2>
 * The Table reads as a recipe: one measured column, Yield and What you need set on a Bone
 * recipe card, documentary photographs inside the section they belong to. Any empty section
 * (e.g. an unused Storage + Safety) collapses. PART OF is shared with The Apothecary.
 * ========================================================================== */
.tb .tb-hero{width:fit-content;max-width:100%}
.tb .tb-hero > img{width:auto;max-width:100%;height:auto;max-height:min(86vh,980px);aspect-ratio:auto}
.tb .tb-hero .lib-caption{padding-top:1.1rem}
.tb .tb-body{max-width:46rem}
.tb .tb-body > .tb-zone{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:.92rem;letter-spacing:.34em;text-indent:0;text-transform:uppercase;color:#9C6F5F;margin:clamp(44px,5vw,68px) 0 0;padding:26px 0 0;border-top:1px solid rgba(26,26,28,.12);border-bottom:0}
.tb .tb-body > .tb-z01{margin-top:0}
.tb .tb-body > .tb-zone + *{margin-top:18px}
/* empty sections never render (an unused optional section, or a stray marker) */
.tb:not(.tb--proof) .tb-body > .tb-zone:has(+ .tb-zone),.tb:not(.tb--proof) .tb-body > .tb-zone:last-child{display:none}
.tb .tb-body > h3{font-family:'Jost','Helvetica Neue',Arial,sans-serif;font-size:.7rem;font-weight:400;letter-spacing:.26em;line-height:1.6;text-transform:uppercase;color:#1A1A1C;margin:26px 0 10px}
.tb .tb-body > .tb-zone + h3{margin-top:18px}
/* The recipe card: Yield + What you need on Bone */
.tb .tb-body > .tb-z03,.tb .tb-body > .tb-z03 ~ *:not(.tb-z05, .tb-z05 ~ *){background:#F4EFE9;padding-left:clamp(22px,3.4vw,40px);padding-right:clamp(22px,3.4vw,40px);margin-top:0;margin-bottom:0}
.tb .tb-body > .tb-z03{margin-top:clamp(44px,5vw,68px);padding-top:30px;border-top:0}
.tb .tb-body > .tb-z03 + p{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:500;font-size:1.5rem;line-height:1.3;color:#1A1A1C;padding-top:10px;padding-bottom:6px}
.tb .tb-body > .tb-z04{border-top:1px solid rgba(26,26,28,.12);margin-top:0;padding-top:26px}
.tb .tb-body > .tb-z03 ~ *:not(.tb-z05, .tb-z05 ~ *) + *:not(.tb-z05, .tb-z05 ~ *){padding-top:14px}
.tb .tb-body > .tb-z04 + *{padding-top:18px}
.tb .tb-body > .tb-z03 ~ *:not(.tb-z05, .tb-z05 ~ *):has(+ .tb-z05){padding-bottom:32px}
.tb .tb-body > .tb-z04 ~ ul:not(.tb-z05, .tb-z05 ~ *){gap:0}
.tb .tb-body > .tb-z04 ~ ul:not(.tb-z05, .tb-z05 ~ *) > li{padding:9px 0 9px 26px;border-bottom:1px solid rgba(26,26,28,.1);color:#1A1A1C}
.tb .tb-body > .tb-z04 ~ ul:not(.tb-z05, .tb-z05 ~ *) > li::before{top:9px}
.tb .tb-body > .tb-z04 ~ ul:not(.tb-z05, .tb-z05 ~ *) > li:last-child{border-bottom:0}
.tb .tb-body > .tb-z03 ~ .kg-card:not(.tb-z05, .tb-z05 ~ *){padding-top:18px;padding-bottom:18px}
.tb .tb-body > .tb-z05{margin-top:clamp(52px,6vw,80px)}
/* Storage + Safety: the shared factual keyline */
.tb .tb-body > .tb-z08 ~ :is(p, ul, ol):not(.tb-z09, .tb-z09 ~ *){border-left:1px solid rgba(183,138,122,.7);padding-left:clamp(18px,2.4vw,28px);margin-bottom:0;padding-bottom:1.5rem}
/* A note from the Method: the one serif moment */
.tb .tb-body > .tb-z09 ~ p{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:clamp(1.4rem,2.4vw,1.75rem);line-height:1.38;color:#1A1A1C;max-width:36ch;margin-bottom:1.1rem}
/* Documentary photographs (MATERIALS, PROCESS, DETAIL, USE, LIFE / AFTER) */
.tb .tb-body > .kg-image-card{margin:28px 0}
.tb .tb-body > .kg-image-card img{display:block;width:auto;max-width:100%;height:auto;max-height:80vh}
.tb .tb-body > .kg-gallery-card{margin:28px 0}
.tb .tb-body > .tb-zone + .kg-card{margin-top:22px}
.tb .ap-partof .lib-aside{margin-top:clamp(56px,6vw,96px)}
.tb .ap-partof__title{color:#F4EFE9;text-decoration:none}
.tb .ap-partof__title:hover{color:#B78A7A}
@media print{.tb .tb-proof,.tb .ap-partof__family,.tb .lib-note{display:none}.tb .tb-body{max-width:100%}}

/* ---- Structure check (drafts only) ---- */
.tb-proof{display:none}
.tb--proof .tb-proof{display:block;position:sticky;top:0;z-index:50;background:#EDE5DB;border:1px solid rgba(26,26,28,.2);padding:12px 16px;margin-bottom:40px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#1A1A1C;line-height:1.5}
.tb-proof p,.tb-proof ul{margin:0;padding:0;list-style:none}
.tb-proof__title{font-weight:500}
.tb-proof__ok{color:#8a8177;margin-top:2px}
.tb-proof .tb-err,.tb-proof .tb-note,.tb-proof .tb-err-norel{display:none}
.tb-proof .tb-err,.tb-proof .tb-note,.tb-proof__settings li{margin:4px 0 0;text-transform:none;letter-spacing:.04em;font-size:13px;color:#9C6F5F}
.tb-proof .tb-note{color:#8a8177}
.tb-proof__settings:not(:has(.tb-has-rel)) .tb-err-norel{display:block}
.tb--proof .tb-body img:not([alt]),.tb--proof .tb-body img[alt=""]{outline:3px solid #9C6F5F;outline-offset:2px}
.tb--proof:has(.tb-body img:not([alt]), .tb-body img[alt=""]) .tb-err-alt{display:block}
.tb--proof:has(.tb-body > :first-child:not(.tb-zone)) .tb-err-lead{display:block}
.tb--proof .tb-body > .tb-zone{outline:1px dashed rgba(156,111,95,.5);outline-offset:6px}
.tb--proof:not(:has(.tb-body > .tb-z01)) .tb-err-m01{display:block}
.tb--proof:has(.tb-body > .tb-z01 ~ .tb-z01) .tb-err-d01{display:block}
.tb--proof:has(.tb-body > .tb-z02 ~ .tb-z01, .tb-body > .tb-z03 ~ .tb-z01, .tb-body > .tb-z04 ~ .tb-z01, .tb-body > .tb-z05 ~ .tb-z01, .tb-body > .tb-z06 ~ .tb-z01, .tb-body > .tb-z07 ~ .tb-z01, .tb-body > .tb-z08 ~ .tb-z01, .tb-body > .tb-z09 ~ .tb-z01) .tb-err-o01{display:block}
.tb--proof:has(.tb-body > .tb-z01 + .tb-zone, .tb-body > .tb-z01:last-child) .tb-err-e01{display:block}
.tb--proof:not(:has(.tb-body > .tb-z02)) .tb-err-m02{display:block}
.tb--proof:has(.tb-body > .tb-z02 ~ .tb-z02) .tb-err-d02{display:block}
.tb--proof:has(.tb-body > .tb-z03 ~ .tb-z02, .tb-body > .tb-z04 ~ .tb-z02, .tb-body > .tb-z05 ~ .tb-z02, .tb-body > .tb-z06 ~ .tb-z02, .tb-body > .tb-z07 ~ .tb-z02, .tb-body > .tb-z08 ~ .tb-z02, .tb-body > .tb-z09 ~ .tb-z02) .tb-err-o02{display:block}
.tb--proof:has(.tb-body > .tb-z02 + .tb-zone, .tb-body > .tb-z02:last-child) .tb-err-e02{display:block}
.tb--proof:not(:has(.tb-body > .tb-z03)) .tb-err-m03{display:block}
.tb--proof:has(.tb-body > .tb-z03 ~ .tb-z03) .tb-err-d03{display:block}
.tb--proof:has(.tb-body > .tb-z04 ~ .tb-z03, .tb-body > .tb-z05 ~ .tb-z03, .tb-body > .tb-z06 ~ .tb-z03, .tb-body > .tb-z07 ~ .tb-z03, .tb-body > .tb-z08 ~ .tb-z03, .tb-body > .tb-z09 ~ .tb-z03) .tb-err-o03{display:block}
.tb--proof:has(.tb-body > .tb-z03 + .tb-zone, .tb-body > .tb-z03:last-child) .tb-err-e03{display:block}
.tb--proof:not(:has(.tb-body > .tb-z04)) .tb-err-m04{display:block}
.tb--proof:has(.tb-body > .tb-z04 ~ .tb-z04) .tb-err-d04{display:block}
.tb--proof:has(.tb-body > .tb-z05 ~ .tb-z04, .tb-body > .tb-z06 ~ .tb-z04, .tb-body > .tb-z07 ~ .tb-z04, .tb-body > .tb-z08 ~ .tb-z04, .tb-body > .tb-z09 ~ .tb-z04) .tb-err-o04{display:block}
.tb--proof:has(.tb-body > .tb-z04 + .tb-zone, .tb-body > .tb-z04:last-child) .tb-err-e04{display:block}
.tb--proof:not(:has(.tb-body > .tb-z05)) .tb-err-m05{display:block}
.tb--proof:has(.tb-body > .tb-z05 ~ .tb-z05) .tb-err-d05{display:block}
.tb--proof:has(.tb-body > .tb-z06 ~ .tb-z05, .tb-body > .tb-z07 ~ .tb-z05, .tb-body > .tb-z08 ~ .tb-z05, .tb-body > .tb-z09 ~ .tb-z05) .tb-err-o05{display:block}
.tb--proof:has(.tb-body > .tb-z05 + .tb-zone, .tb-body > .tb-z05:last-child) .tb-err-e05{display:block}
.tb--proof:not(:has(.tb-body > .tb-z06)) .tb-err-m06{display:block}
.tb--proof:has(.tb-body > .tb-z06 ~ .tb-z06) .tb-err-d06{display:block}
.tb--proof:has(.tb-body > .tb-z07 ~ .tb-z06, .tb-body > .tb-z08 ~ .tb-z06, .tb-body > .tb-z09 ~ .tb-z06) .tb-err-o06{display:block}
.tb--proof:has(.tb-body > .tb-z06 + .tb-zone, .tb-body > .tb-z06:last-child) .tb-err-e06{display:block}
.tb--proof:has(.tb-body > .tb-z07 ~ .tb-z07) .tb-err-d07{display:block}
.tb--proof:has(.tb-body > .tb-z08 ~ .tb-z07, .tb-body > .tb-z09 ~ .tb-z07) .tb-err-o07{display:block}
.tb--proof:has(.tb-body > .tb-z07 + .tb-zone, .tb-body > .tb-z07:last-child) .tb-note-e07{display:block}
.tb--proof:has(.tb-body > .tb-z08 ~ .tb-z08) .tb-err-d08{display:block}
.tb--proof:has(.tb-body > .tb-z09 ~ .tb-z08) .tb-err-o08{display:block}
.tb--proof:has(.tb-body > .tb-z08 + .tb-zone, .tb-body > .tb-z08:last-child) .tb-note-e08{display:block}
.tb--proof:not(:has(.tb-body > .tb-z09)) .tb-err-m09{display:block}
.tb--proof:has(.tb-body > .tb-z09 ~ .tb-z09) .tb-err-d09{display:block}
.tb--proof:has(.tb-body > .tb-z09 + .tb-zone, .tb-body > .tb-z09:last-child) .tb-err-e09{display:block}
.tb--proof:has(.tb-body > :first-child:not(.tb-zone), .tb-body img:not([alt]), .tb-body img[alt=""], .tb-body > .tb-z01 ~ .tb-z01, .tb-body > .tb-z02 ~ .tb-z01, .tb-body > .tb-z03 ~ .tb-z01, .tb-body > .tb-z04 ~ .tb-z01, .tb-body > .tb-z05 ~ .tb-z01, .tb-body > .tb-z06 ~ .tb-z01, .tb-body > .tb-z07 ~ .tb-z01, .tb-body > .tb-z08 ~ .tb-z01, .tb-body > .tb-z09 ~ .tb-z01, .tb-body > .tb-z01 + .tb-zone, .tb-body > .tb-z01:last-child, .tb-body > .tb-z02 ~ .tb-z02, .tb-body > .tb-z03 ~ .tb-z02, .tb-body > .tb-z04 ~ .tb-z02, .tb-body > .tb-z05 ~ .tb-z02, .tb-body > .tb-z06 ~ .tb-z02, .tb-body > .tb-z07 ~ .tb-z02, .tb-body > .tb-z08 ~ .tb-z02, .tb-body > .tb-z09 ~ .tb-z02, .tb-body > .tb-z02 + .tb-zone, .tb-body > .tb-z02:last-child, .tb-body > .tb-z03 ~ .tb-z03, .tb-body > .tb-z04 ~ .tb-z03, .tb-body > .tb-z05 ~ .tb-z03, .tb-body > .tb-z06 ~ .tb-z03, .tb-body > .tb-z07 ~ .tb-z03, .tb-body > .tb-z08 ~ .tb-z03, .tb-body > .tb-z09 ~ .tb-z03, .tb-body > .tb-z03 + .tb-zone, .tb-body > .tb-z03:last-child, .tb-body > .tb-z04 ~ .tb-z04, .tb-body > .tb-z05 ~ .tb-z04, .tb-body > .tb-z06 ~ .tb-z04, .tb-body > .tb-z07 ~ .tb-z04, .tb-body > .tb-z08 ~ .tb-z04, .tb-body > .tb-z09 ~ .tb-z04, .tb-body > .tb-z04 + .tb-zone, .tb-body > .tb-z04:last-child, .tb-body > .tb-z05 ~ .tb-z05, .tb-body > .tb-z06 ~ .tb-z05, .tb-body > .tb-z07 ~ .tb-z05, .tb-body > .tb-z08 ~ .tb-z05, .tb-body > .tb-z09 ~ .tb-z05, .tb-body > .tb-z05 + .tb-zone, .tb-body > .tb-z05:last-child, .tb-body > .tb-z06 ~ .tb-z06, .tb-body > .tb-z07 ~ .tb-z06, .tb-body > .tb-z08 ~ .tb-z06, .tb-body > .tb-z09 ~ .tb-z06, .tb-body > .tb-z06 + .tb-zone, .tb-body > .tb-z06:last-child, .tb-body > .tb-z07 ~ .tb-z07, .tb-body > .tb-z08 ~ .tb-z07, .tb-body > .tb-z09 ~ .tb-z07, .tb-body > .tb-z08 ~ .tb-z08, .tb-body > .tb-z09 ~ .tb-z08, .tb-body > .tb-z09 ~ .tb-z09, .tb-body > .tb-z09 + .tb-zone, .tb-body > .tb-z09:last-child) .tb-proof__ok{display:none}
.tb--proof:is(:not(:has(.tb-body > .tb-z01)), :not(:has(.tb-body > .tb-z02)), :not(:has(.tb-body > .tb-z03)), :not(:has(.tb-body > .tb-z04)), :not(:has(.tb-body > .tb-z05)), :not(:has(.tb-body > .tb-z06)), :not(:has(.tb-body > .tb-z09))) .tb-proof__ok{display:none}

/* ============ 20. Sanctuary practice (custom-sanctuary-practice.hbs). v2.0.0 ============
 * Body = seven section markers, each an HTML card that IS its heading:
 *   <h2 class="sc-zone sc-z01">What it is</h2> ... <h2 class="sc-zone sc-z07">A note from the Method</h2>
 * The quietest page in the system: one narrow centred column, a short rule over each
 * section label, and THE PRACTICE (the video, audio or written practice) given the width.
 * An empty section collapses. PART OF is shared with The Apothecary and The Table.
 * ========================================================================== */
.sc .sc-hero{width:fit-content;max-width:100%}
.sc .sc-hero > img{width:auto;max-width:100%;height:auto;max-height:min(86vh,980px);aspect-ratio:auto}
.sc .sc-hero .lib-caption{padding-top:1.1rem}
.sc .sc-body{max-width:40rem;margin-left:auto;margin-right:auto;margin-top:clamp(64px,8vw,120px)}
.sc .sc-body > .sc-zone{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:.92rem;letter-spacing:.34em;text-indent:0;text-transform:uppercase;color:#9C6F5F;margin:clamp(64px,7vw,104px) 0 0;padding:0;border:0}
.sc .sc-body > .sc-zone::before{content:"";display:block;width:72px;height:1px;background:rgba(26,26,28,.2);margin-bottom:22px}
.sc .sc-body > .sc-z01{margin-top:0}
.sc .sc-body > .sc-zone + *{margin-top:22px}
.sc:not(.sc--proof) .sc-body > .sc-zone:has(+ .sc-zone),.sc:not(.sc--proof) .sc-body > .sc-zone:last-child{display:none}
.sc .sc-body > h3{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:clamp(1.5rem,2.6vw,1.9rem);line-height:1.2;letter-spacing:.012em;text-transform:none;color:#1A1A1C;margin:24px 0 0}
.sc .sc-body > h3 strong{font-weight:inherit}
/* THE PRACTICE: the resource itself, given the full article width, in the rose frame */
.sc .sc-body > .sc-z03 ~ :is(.kg-embed-card, .kg-video-card, .kg-audio-card):not(.sc-z04, .sc-z04 ~ *){display:block;position:relative;width:min(64rem, calc(100vw - 2.5rem));max-width:none;margin:clamp(32px,4vw,56px) 0 clamp(40px,5vw,64px) 50%;transform:translateX(-50%);padding:0 18px 18px 0}
.sc .sc-body > .sc-z03 ~ :is(.kg-embed-card, .kg-video-card, .kg-audio-card):not(.sc-z04, .sc-z04 ~ *)::after{content:"";position:absolute;top:18px;left:18px;width:calc(100% - 18px);height:calc(100% - 18px);border:1px solid rgba(183,138,122,.7);z-index:0;pointer-events:none}
.sc .sc-body > .sc-z03 ~ :is(.kg-embed-card, .kg-video-card, .kg-audio-card):not(.sc-z04, .sc-z04 ~ *) > *{position:relative;z-index:1}
.sc .sc-body .kg-embed-card iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;background:#1A1A1C}
.sc .sc-body .kg-video-card video{display:block;width:100%}
.sc .sc-body .kg-embed-card figcaption,.sc .sc-body .kg-video-card figcaption{text-align:left}
/* WHAT I NOTICED: first-person observation, set apart on a quiet keyline */
.sc .sc-body > .sc-z05 ~ :is(p, ul, ol):not(.sc-z06, .sc-z06 ~ *, .sc-z07, .sc-z07 ~ *){border-left:1px solid rgba(26,26,28,.18);padding-left:clamp(18px,2.4vw,28px);margin-bottom:0;padding-bottom:1.25rem;color:#1A1A1C}
/* A NOTE FROM THE METHOD: the one serif moment */
.sc .sc-body > .sc-z07 ~ p{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:clamp(1.4rem,2.4vw,1.75rem);line-height:1.38;color:#1A1A1C;max-width:36ch;margin-bottom:1.1rem}
.sc .sc-body > .sc-z07 ~ p strong{font-weight:500;color:#9C6F5F}
/* Documentary photographs (ENVIRONMENT, PROCESS, DETAIL, USE, LIFE / AFTER), never cropped */
.sc .sc-body > .kg-image-card{margin:32px 0}
.sc .sc-body > .kg-image-card img{display:block;width:auto;max-width:100%;height:auto;max-height:80vh}
.sc .ap-partof .lib-aside{margin-top:clamp(72px,8vw,120px)}
.sc .ap-partof__title{color:#F4EFE9;text-decoration:none}
.sc .ap-partof__title:hover{color:#B78A7A}

/* ---- Structure check (drafts only) ---- */
.sc-proof{display:none}
.sc--proof .sc-proof{display:block;position:sticky;top:0;z-index:50;background:#EDE5DB;border:1px solid rgba(26,26,28,.2);padding:12px 16px;margin-bottom:40px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#1A1A1C;line-height:1.5}
.sc-proof p,.sc-proof ul{margin:0;padding:0;list-style:none}
.sc-proof__title{font-weight:500}
.sc-proof__ok{color:#8a8177;margin-top:2px}
.sc-proof .sc-err,.sc-proof .sc-note,.sc-proof .sc-err-norel{display:none}
.sc-proof .sc-err,.sc-proof .sc-note,.sc-proof__settings li{margin:4px 0 0;text-transform:none;letter-spacing:.04em;font-size:13px;color:#9C6F5F}
.sc-proof .sc-note{color:#8a8177}
.sc-proof__settings:not(:has(.sc-has-rel)) .sc-err-norel{display:block}
.sc--proof:has(.sc-body > .sc-z03):not(:has(.sc-body > .sc-z03 ~ :is(.kg-embed-card, .kg-video-card, .kg-audio-card):not(.sc-z04, .sc-z04 ~ *))) .sc-note-media{display:block}
.sc--proof .sc-body img:not([alt]),.sc--proof .sc-body img[alt=""]{outline:3px solid #9C6F5F;outline-offset:2px}
.sc--proof:has(.sc-body img:not([alt]), .sc-body img[alt=""]) .sc-err-alt{display:block}
.sc--proof:has(.sc-body > :first-child:not(.sc-zone)) .sc-err-lead{display:block}
.sc--proof .sc-body > .sc-zone{outline:1px dashed rgba(156,111,95,.5);outline-offset:6px}
.sc--proof:not(:has(.sc-body > .sc-z01)) .sc-err-m01{display:block}
.sc--proof:has(.sc-body > .sc-z01 ~ .sc-z01) .sc-err-d01{display:block}
.sc--proof:has(.sc-body > .sc-z02 ~ .sc-z01, .sc-body > .sc-z03 ~ .sc-z01, .sc-body > .sc-z04 ~ .sc-z01, .sc-body > .sc-z05 ~ .sc-z01, .sc-body > .sc-z06 ~ .sc-z01, .sc-body > .sc-z07 ~ .sc-z01) .sc-err-o01{display:block}
.sc--proof:has(.sc-body > .sc-z01 + .sc-zone, .sc-body > .sc-z01:last-child) .sc-err-e01{display:block}
.sc--proof:not(:has(.sc-body > .sc-z02)) .sc-err-m02{display:block}
.sc--proof:has(.sc-body > .sc-z02 ~ .sc-z02) .sc-err-d02{display:block}
.sc--proof:has(.sc-body > .sc-z03 ~ .sc-z02, .sc-body > .sc-z04 ~ .sc-z02, .sc-body > .sc-z05 ~ .sc-z02, .sc-body > .sc-z06 ~ .sc-z02, .sc-body > .sc-z07 ~ .sc-z02) .sc-err-o02{display:block}
.sc--proof:has(.sc-body > .sc-z02 + .sc-zone, .sc-body > .sc-z02:last-child) .sc-err-e02{display:block}
.sc--proof:not(:has(.sc-body > .sc-z03)) .sc-err-m03{display:block}
.sc--proof:has(.sc-body > .sc-z03 ~ .sc-z03) .sc-err-d03{display:block}
.sc--proof:has(.sc-body > .sc-z04 ~ .sc-z03, .sc-body > .sc-z05 ~ .sc-z03, .sc-body > .sc-z06 ~ .sc-z03, .sc-body > .sc-z07 ~ .sc-z03) .sc-err-o03{display:block}
.sc--proof:has(.sc-body > .sc-z03 + .sc-zone, .sc-body > .sc-z03:last-child) .sc-err-e03{display:block}
.sc--proof:not(:has(.sc-body > .sc-z04)) .sc-err-m04{display:block}
.sc--proof:has(.sc-body > .sc-z04 ~ .sc-z04) .sc-err-d04{display:block}
.sc--proof:has(.sc-body > .sc-z05 ~ .sc-z04, .sc-body > .sc-z06 ~ .sc-z04, .sc-body > .sc-z07 ~ .sc-z04) .sc-err-o04{display:block}
.sc--proof:has(.sc-body > .sc-z04 + .sc-zone, .sc-body > .sc-z04:last-child) .sc-err-e04{display:block}
.sc--proof:not(:has(.sc-body > .sc-z05)) .sc-err-m05{display:block}
.sc--proof:has(.sc-body > .sc-z05 ~ .sc-z05) .sc-err-d05{display:block}
.sc--proof:has(.sc-body > .sc-z06 ~ .sc-z05, .sc-body > .sc-z07 ~ .sc-z05) .sc-err-o05{display:block}
.sc--proof:has(.sc-body > .sc-z05 + .sc-zone, .sc-body > .sc-z05:last-child) .sc-err-e05{display:block}
.sc--proof:has(.sc-body > .sc-z06 ~ .sc-z06) .sc-err-d06{display:block}
.sc--proof:has(.sc-body > .sc-z07 ~ .sc-z06) .sc-err-o06{display:block}
.sc--proof:has(.sc-body > .sc-z06 + .sc-zone, .sc-body > .sc-z06:last-child) .sc-note-e06{display:block}
.sc--proof:not(:has(.sc-body > .sc-z07)) .sc-err-m07{display:block}
.sc--proof:has(.sc-body > .sc-z07 ~ .sc-z07) .sc-err-d07{display:block}
.sc--proof:has(.sc-body > .sc-z07 + .sc-zone, .sc-body > .sc-z07:last-child) .sc-err-e07{display:block}
.sc--proof:has(.sc-body > :first-child:not(.sc-zone), .sc-body img:not([alt]), .sc-body img[alt=""], .sc-body > .sc-z01 ~ .sc-z01, .sc-body > .sc-z02 ~ .sc-z01, .sc-body > .sc-z03 ~ .sc-z01, .sc-body > .sc-z04 ~ .sc-z01, .sc-body > .sc-z05 ~ .sc-z01, .sc-body > .sc-z06 ~ .sc-z01, .sc-body > .sc-z07 ~ .sc-z01, .sc-body > .sc-z01 + .sc-zone, .sc-body > .sc-z01:last-child, .sc-body > .sc-z02 ~ .sc-z02, .sc-body > .sc-z03 ~ .sc-z02, .sc-body > .sc-z04 ~ .sc-z02, .sc-body > .sc-z05 ~ .sc-z02, .sc-body > .sc-z06 ~ .sc-z02, .sc-body > .sc-z07 ~ .sc-z02, .sc-body > .sc-z02 + .sc-zone, .sc-body > .sc-z02:last-child, .sc-body > .sc-z03 ~ .sc-z03, .sc-body > .sc-z04 ~ .sc-z03, .sc-body > .sc-z05 ~ .sc-z03, .sc-body > .sc-z06 ~ .sc-z03, .sc-body > .sc-z07 ~ .sc-z03, .sc-body > .sc-z03 + .sc-zone, .sc-body > .sc-z03:last-child, .sc-body > .sc-z04 ~ .sc-z04, .sc-body > .sc-z05 ~ .sc-z04, .sc-body > .sc-z06 ~ .sc-z04, .sc-body > .sc-z07 ~ .sc-z04, .sc-body > .sc-z04 + .sc-zone, .sc-body > .sc-z04:last-child, .sc-body > .sc-z05 ~ .sc-z05, .sc-body > .sc-z06 ~ .sc-z05, .sc-body > .sc-z07 ~ .sc-z05, .sc-body > .sc-z05 + .sc-zone, .sc-body > .sc-z05:last-child, .sc-body > .sc-z06 ~ .sc-z06, .sc-body > .sc-z07 ~ .sc-z06, .sc-body > .sc-z07 ~ .sc-z07, .sc-body > .sc-z07 + .sc-zone, .sc-body > .sc-z07:last-child) .sc-proof__ok{display:none}
.sc--proof:is(:not(:has(.sc-body > .sc-z01)), :not(:has(.sc-body > .sc-z02)), :not(:has(.sc-body > .sc-z03)), :not(:has(.sc-body > .sc-z04)), :not(:has(.sc-body > .sc-z05)), :not(:has(.sc-body > .sc-z07))) .sc-proof__ok{display:none}

/* v2.0.1: Apothecary resource Hero at its natural proportions (same principle as The Table
   and The Sanctuary). A published resource with no photograph keeps the quiet 4:5 tile. */
.ap .ap-hero{width:fit-content;max-width:100%}
.ap .ap-hero > img{width:auto;max-width:100%;height:auto;max-height:min(86vh,980px);aspect-ratio:auto}

/* v2.0.2: collection landing pages. Quiet bridge to the Trust Ritual Library
   (partials/trust-ritual-bridge.hbs), set on the same hairline the shelves used. */
.lib .lib-bridge{border-top:1px solid rgba(26,26,28,.12)}
.lib .lib-bridge__body{max-width:41rem}

/* ============ 21. v2.1.0: shelf arrows + five-category strip ============
 * Shelf arrows: the gallery script sets [hidden] on both buttons when the shelf has nothing
 * to scroll. .gal-btn's display rule overrode the attribute, so the arrows stayed on screen;
 * this restores it and collapses the empty nav. A strip with a fifth category (Sanctuary,
 * once Reflection is populated) sets five across instead of wrapping a single tile. */
.gal-btn[hidden]{display:none}
.gal-nav:not(:has(.gal-btn:not([hidden]))){display:none}
@media(min-width:821px){.lib-strip4:has(> :nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}}
