/* Light Shelf refinement, November 6 reference.
   Load after shelf-reference.css, rose-gold-buttons.css and good-news-shimmer.css.
   The existing masked metallic rims and Good News animation remain in use.
   Full-width artwork is supplied by the existing img elements; this file does
   not change their URLs or the approved Shelf animation.
*/
:root[data-theme=heirloom_light] body[data-page=shelf] {
 --polish-paper:#fbf2e5;
 --polish-paper-end:#f4e7d2;
 --polish-ink:#422915;
 --polish-muted:#705538;
 --polish-edge:#b28a49;
 --polish-grain:url('/assets/images/ae3eecc3329110b3/waymark-surface-grain.svg');
 --bg:var(--polish-paper);
 --polish-wisdom-art:url('/assets/images/38263a9f6c270acd/wisdom-frame.png');
 --polish-quote-padding:15% 15% 25%;
 --polish-rim:linear-gradient(118deg,#956528 0%,#d3a85f 9%,#fff1cf 17%,#b2843f 29%,#ecd09b 43%,#976a2e 56%,#fff5dc 72%,#bd914b 84%,#edcf99 94%,#95692f 100%);
 /* Compatibility variables feed the established border and focus rules. */
 --rose-gold-edge:var(--polish-edge);
 --rose-gold-highlight:#fff3db;
 --rose-gold-focus:#855b23;
 --rose-gold-rim:var(--polish-rim);
 --rose-button-shadow:inset 0 0 0 1px #c69e60,inset 0 2px 0 #fff5e5,0 2px 0 #8f632d66,0 3px 5px #69441d26;
}

:root[data-theme=heirloom_light] body[data-page=shelf] :is(.phone-shell,#content,.reference-home .shelf-heading,.reference-home .shelf-actions) {
 background:var(--polish-grain),var(--polish-paper)!important;
}

:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] {
 --reference-card:var(--polish-paper);
 --reference-card-end:var(--polish-paper-end);
 --reference-edge:var(--polish-edge);
 --reference-shadow:#70502521;
 --reference-action:#fff8ed;
 --reference-action-ink:var(--polish-ink);
}

/* Raised ivory actions retain their existing 44px minimum touch area. */
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .shelf-actions {
 gap:7px;
 padding:10px 10px 4px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .shelf-actions .pill,
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .shelf-actions .pill.featured:not(#turn-week) {
 background:var(--polish-grain),linear-gradient(120deg,#fff9ef,var(--polish-paper-end))!important;
 --light-text:var(--polish-ink);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .shelf-actions #turn-week {
 background:var(--polish-grain),linear-gradient(118deg,#fae9c1,#ebca8e)!important;
 --light-text:var(--polish-ink);
}
:root[data-theme=heirloom_light] body[data-page=shelf] .shelf-actions .pill.featured[href="#salvation"] {
 --good-news-shine-tail:#d2a15dbb;
 --good-news-shine-core:#fffaf0;
 --good-news-shine-fade:#f2d9a8cc;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .shelf-settings {
 margin:0 10px 8px;
 border-bottom-color:#b48d55!important;
}

/* Short banners and one paired row keep the page close to the reference
   without adding fixed-height gaps or clipping longer live quotations. */
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards {
 gap:8px;
 margin-inline:9px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards :is(.illustrated-card,.illustrated-wide,.family-card,.shelf-daily-wisdom,.shortcut-card) {
 --light-text:var(--polish-ink);
 --light-muted:var(--polish-muted);
 color:var(--polish-ink);
 background:var(--polish-grain),linear-gradient(125deg,#fff8ed,var(--polish-paper-end));
 border-radius:10px;
 box-shadow:inset 0 1px #fff9,0 2px 0 #9b783d42,0 3px 5px #6c4a2524!important;
}

:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-card {
 min-height:74px;
 padding:11px 14px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-card-art {
 inset:0;
 width:100%;
 height:100%;
 object-fit:contain;
 object-position:right center;
 mask-image:linear-gradient(90deg,transparent 30%,#000 65%);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-card-copy {
 width:76%;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-title {
 font-size:22px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-subtitle {
 max-width:265px;
 font-size:11.5px;
}

:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards {
 gap:8px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards :is(.shelf-daily-wisdom,.waymark-card) {
 min-height:clamp(222px,56cqw,244px);
 padding:9px 8px 7px;
 overflow:hidden;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards :is(.shelf-daily-wisdom,.waymark-card)>h2 {
 font:400 clamp(14.5px,4.25cqw,18px)/1.16 Georgia,serif;
 margin-bottom:7px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .daily-wisdom-frame {
 min-height:160px;
 padding:var(--polish-quote-padding);
 background-color:#fcf0dd;
 background-image:var(--polish-wisdom-art);
 background-position:center;
 background-size:100% 100%;
 background-repeat:no-repeat;
 box-shadow:none;
 --light-text:var(--polish-ink);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .waymark-card {
 padding-bottom:0;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .waymark-card>.reference-art {
 flex:1 1 140px;
 width:calc(100% + 16px);
 height:0;
 min-height:140px;
 max-height:none;
 aspect-ratio:auto;
 margin:0 -8px;
 object-fit:cover;
 object-position:70% 60%;
}
/* Whole cards already navigate; keep the removed inset CTA labels absent. */
:root[data-theme=heirloom_light] body[data-page=shelf] .reference-cards :is(.wisdom-open,.compact-card-action) {
 display:none!important;
}

:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>.illustrated-wide {
 min-height:68px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>.illustrated-wide :is(.reference-art,.shelf-keepsake-art) {
 inset:0;
 width:100%;
 height:100%;
 object-fit:cover;
 object-position:center;
 mask-image:none;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>.illustrated-wide .wide-card-copy {
 width:74%;
 min-height:68px;
 padding:10px 14px;
 background:linear-gradient(90deg,#fbf2e56e,#fbf2e51a 72%,transparent);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>:is(.secret-card,[data-shelf-shortcut=albums]) {
 min-height:82px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>:is(.secret-card,[data-shelf-shortcut=albums]) .wide-card-copy {
 width:72%;
 min-height:82px;
 background:linear-gradient(90deg,#fbf2e56e,#fbf2e51a 72%,transparent);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .wide-card-copy h2 {
 font-size:clamp(19px,5.2cqw,23px);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .wide-card-copy p {
 font-size:12px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>[data-shelf-shortcut=albums] .wide-card-copy p {
 max-width:190px;
}

/* Keep the existing bottom destinations and resource link in normal flow. */
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .shelf-shortcut-links {
 margin:9px 10px 0;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .home-note {
 margin-top:10px;
}
:root[data-theme=heirloom_light] body[data-page=shelf] .family-resources-footer .family-resources-button {
 min-height:44px;
 background:var(--polish-grain),linear-gradient(120deg,#fff9ef,var(--polish-paper-end))!important;
 --light-text:var(--polish-ink);
 font-family:Georgia,serif;
}

@media(max-width:350px) {
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-card-copy {width:78%}
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-subtitle {max-width:180px}
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards :is(.shelf-daily-wisdom,.waymark-card) {padding-inline:6px}
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .waymark-card>.reference-art {width:calc(100% + 12px);margin-inline:-6px}
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>.illustrated-wide .wide-card-copy {width:78%;padding-inline:12px}
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .wide-card-copy p {font-size:11.5px}
}


/* Match the first illustrated cards to the approved supplied Shelf reference.
   Keep live text and whole-card navigation; let longer quotations grow. */
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .shelf-settings summary {
 font-family:Georgia,serif;
 font-size:13px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-card-art {
 inset:-10% 0 auto;
 height:120%;
 object-fit:contain;
 object-position:right center;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-subtitle {
 font-size:13px;
 max-width:280px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards :is(.shelf-daily-wisdom,.waymark-card) {
 min-height:clamp(242px,61cqw,262px);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .daily-wisdom-frame {
 /* Nine-slice the existing artwork so live quotes grow inside its opening. */
 display:flex;
 flex-direction:column;
 justify-content:center;
 min-height:190px;
 border-style:solid;
 border-color:transparent;
 border-width:clamp(22px,7.2cqw,31px) clamp(20px,6.5cqw,28px) clamp(32px,10.7cqw,46px);
 border-image:url('/assets/images/38263a9f6c270acd/wisdom-frame.png') 213 213 314 213 fill / 1 / 0 stretch;
 background:none;
 padding:5px 4px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .daily-wisdom-frame blockquote {
 font-size:clamp(13px,3.2cqw,14px);
 line-height:1.3;
 margin-bottom:6px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .waymark-card>p {
 font-size:13px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .waymark-card>.reference-art {
 min-height:158px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>[data-shelf-shortcut=albums] .wide-card-copy {
 width:68%;
 background:linear-gradient(90deg,#fbf2e5e8,#fbf2e5a6 56%,transparent);
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>[data-shelf-shortcut=albums]>.shelf-keepsake-art {
 object-fit:cover;
 object-position:right center;
}
@container phone (max-width:350px) {
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards .family-subtitle {font-size:12px;max-width:205px}
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .waymark-card>p {font-size:12px}
 :root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>[data-shelf-shortcut=albums] .wide-card-copy {width:74%}
}


/* Original November 6 artwork, not a generated approximation. Nine-slice
   framing keeps the pictured books/candle intact as live quotations grow. */
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .daily-wisdom-frame {
 border-image:url('/assets/images/fd1792cd6085bda8/exact-wisdom-frame.svg') 33 62 112 66 fill / 1 / 0 stretch;
 border-width:calc((100cqw - 64px) * .0528846) calc((100cqw - 64px) * .099359) calc((100cqw - 64px) * .179487) calc((100cqw - 64px) * .105769);
 padding:5px 2px;
 min-height:190px;
 background:none;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .daily-wisdom-frame blockquote {
 font-size:clamp(11.5px,3cqw,13px);
 line-height:1.3;
 margin-bottom:6px;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .daily-wisdom-frame figcaption {
 font-size:clamp(7.5px,2cqw,8.5px);
 line-height:1.3;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-cards .waymark-card>.exact-waymark-art {
 flex:0 0 auto;
 height:auto;
 min-height:0;
 aspect-ratio:311 / 294;
 margin-top:auto;
}

/* Keep the same artwork when customization separates the two cards. */
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>.shelf-daily-wisdom .daily-wisdom-frame {
 width:100%;
 max-width:220px;
 min-height:214px;
 margin-inline:auto;
 border:solid transparent;
 border-width:23px 44px 79px 46px;
 border-image:url('/assets/images/fd1792cd6085bda8/exact-wisdom-frame.svg') 33 62 112 66 fill / 1 / 0 stretch;
 padding:5px 2px;
 background:none;
 box-shadow:none;
}
:root[data-theme=heirloom_light] body[data-page=shelf][data-shelf-layout=reference] .reference-shelf-cards>.shelf-daily-wisdom .daily-wisdom-frame blockquote {font-size:13px;line-height:1.3;margin-bottom:6px}
