/* Shelf-specific reading layer. Enqueued only for the existing 168 shelf posts.
   No article markup edits, new prose, hidden content or character colour changes.
   Decorative grid/rules are confined to headings, never behind maths or prose. */
.shippo-v4.v4-shelf-article{--reader-line:#d6d0c0;--reader-ink:#303a30;--reader-link:#3f6045}
.shippo-v4.v4-shelf-article.v4-room-sh{--shelf-color:#6b7751;--shelf-paper:#f5f1df}
.shippo-v4.v4-shelf-article.v4-room-st{--shelf-color:#526e7c;--shelf-paper:#edf2ef;--reader-link:#3d6170;--reader-line:#c8d3d4}
.shippo-v4.v4-shelf-article.v4-room-de{--shelf-color:#7b7086;--shelf-paper:#f3eff1;--reader-link:#6c547b;--reader-line:#d8cedb}
.shippo-v4.v4-shelf-article.v4-room-ph{--shelf-color:#8e713a;--shelf-paper:#faf2da;--reader-link:#795b25;--reader-line:#d9cba9}
.shippo-v4.v4-shelf-article.v4-room-yk{--shelf-color:#607ba0;--shelf-paper:#eff3f7;--reader-link:#41658e;--reader-line:#c9d3e1}
.shippo-v4.v4-shelf-article #primary .inside-article{background:#fffdf7;border-top:5px solid var(--shelf-color);box-shadow:2px 3px 0 #dad3bf}
.shippo-v4.v4-shelf-article #primary .entry-header{padding:1.4rem 1.5rem;background:var(--shelf-paper);border-bottom:1px solid var(--reader-line);margin-bottom:1.3rem}
.shippo-v4.v4-shelf-article #primary .entry-title{font-size:clamp(26px,3.1vw,36px);line-height:1.65;letter-spacing:.025em;margin:0 0 .5rem;padding:0;color:var(--reader-ink);overflow-wrap:anywhere}
.shippo-v4.v4-shelf-article #primary .entry-header .entry-meta{font-size:.8rem;line-height:1.8;margin-top:.8rem}
.shippo-v4.v4-shelf-article .v4-breadcrumbs{font-size:.78rem;margin-bottom:1rem}
.shippo-v4.v4-shelf-article .v4-article-orientation{border-block:1px solid var(--reader-line);background:var(--shelf-paper);padding:.85rem 1rem;margin:0 0 1.3rem}
.shippo-v4.v4-shelf-article .v4-article-shelf-label{margin:0 0 .7rem;font-size:.8rem;line-height:1.7;font-weight:600;letter-spacing:.05em}
.shippo-v4.v4-shelf-article .v4-article-shelf-label a{color:var(--reader-link);text-underline-offset:.2em}
.shippo-v4.v4-shelf-article .v4-article-orientation .v4-shelf-guide{max-width:none;border:0;background:none;padding:0;margin:0;gap:1rem}
.shippo-v4.v4-shelf-article .v4-article-orientation .v4-shelf-guide>img{width:66px;height:86px;flex:0 0 66px;object-fit:contain;margin:0}
.shippo-v4.v4-shelf-article .v4-article-orientation .v4-guide-label{font-size:.7rem;margin:0 0 .2rem}
.shippo-v4.v4-shelf-article .v4-article-orientation .v4-guide-name{font-size:1.15rem;line-height:1.6;margin:0 0 .2rem}
.shippo-v4.v4-shelf-article .v4-article-orientation .v4-shelf-guide p:not(.v4-guide-name):not(.v4-guide-label){font-size:.85rem;line-height:1.8;margin:0}
.shippo-v4.v4-shelf-article .v4-article-orientation .v4-guide-link{font-size:.8rem;color:var(--reader-link);padding:.4rem 0;min-height:44px}
.shippo-v4.v4-shelf-article .v4-reading-context{font-size:.85rem;line-height:1.9;border-left-color:var(--shelf-color);color:#53604f;background:#f8f6ee;padding:.65rem 1rem}
.shippo-v4.v4-shelf-article .v4-toc{background:#fbfaf4;border:1px solid var(--reader-line);border-left:4px solid var(--shelf-color);border-radius:2px;padding:.75rem 1rem}
.shippo-v4.v4-shelf-article .v4-toc a{color:var(--reader-link);text-underline-offset:.2em;line-height:1.9}
.shippo-v4.v4-shelf-article .v4-progress::-webkit-progress-value{background:var(--shelf-color)}
.shippo-v4.v4-shelf-article .v4-progress::-moz-progress-bar{background:var(--shelf-color)}
.shippo-v4.v4-shelf-article .entry-content .section{margin-block:2.8rem}
.shippo-v4.v4-shelf-article .entry-content .section__head{margin-bottom:1.3rem;text-align:left}
.shippo-v4.v4-shelf-article .entry-content h2{display:block;max-width:100%;box-sizing:border-box;color:var(--reader-ink);font-size:clamp(20px,2.3vw,24px);line-height:1.8;text-align:left;letter-spacing:.025em;margin:2rem 0 1.1rem;padding:.6rem 1rem;border:0;border-left:4px solid var(--shelf-color);border-bottom:1px solid var(--reader-line);background:var(--shelf-paper);border-radius:0;box-shadow:none}
.shippo-v4.v4-shelf-article .entry-content .section__title::before,.shippo-v4.v4-shelf-article .entry-content .section__title::after{content:none}
.shippo-v4.v4-shelf-article .entry-content h3{color:var(--reader-ink);border-left:3px solid var(--shelf-color);padding-left:.8rem;line-height:1.8;font-size:1.15rem}
.shippo-v4.v4-shelf-article .entry-content p.intro-core{font-size:clamp(20px,2.2vw,23px);line-height:1.95;font-weight:600;padding:1.1rem 1.2rem;margin:1.1rem 0 1.6rem;background:var(--shelf-paper);border-block:1px solid var(--reader-line);text-align:center}
.shippo-v4.v4-shelf-article .entry-content .hero__nav a{color:var(--reader-link);border-color:var(--reader-line);background:#fbfaf4;text-underline-offset:.25em}
.shippo-v4.v4-shelf-article .v4-next a{border-top:3px solid var(--shelf-color);border-bottom:1px solid var(--reader-line);background:var(--shelf-paper);color:var(--reader-link);padding:1rem;line-height:1.85;min-height:44px}
.shippo-v4.v4-shelf-article .v4-next small{color:#586251;margin-bottom:.4rem}
.shippo-v4.v4-shelf-article .v4-series-return a{display:inline-block;min-height:44px;padding:.75rem 0;color:var(--reader-link);font-weight:600;text-underline-offset:.25em}
.shippo-v4.v4-shelf-article :is(a,summary,button):focus-visible{outline:3px solid var(--reader-link);outline-offset:4px}
/* SH: a ruled editorial index, with an unambiguous hierarchy. */
.shippo-v4.v4-shelf-article.v4-room-sh #primary .entry-header{border-bottom:4px double var(--reader-line)}
.shippo-v4.v4-shelf-article.v4-room-sh .entry-content h2{background:none;border-bottom:3px double var(--reader-line)}
.shippo-v4.v4-shelf-article.v4-room-sh .entry-content p.intro-core{border-left:4px solid var(--shelf-color)}
/* ST: square-edged engineering notebook; the grid stays off the body text. */
.shippo-v4.v4-shelf-article.v4-room-st #primary .entry-header,.shippo-v4.v4-shelf-article.v4-room-st .entry-content h2{background-color:var(--shelf-paper);background-image:linear-gradient(#526e7c0c 1px,transparent 1px),linear-gradient(90deg,#526e7c0c 1px,transparent 1px);background-size:18px 18px}
.shippo-v4.v4-shelf-article.v4-room-st .entry-content h2{border:1px solid var(--reader-line);border-left:4px solid var(--shelf-color)}
.shippo-v4.v4-shelf-article.v4-room-st .entry-content p.intro-core{border:1px solid var(--reader-line)}
.shippo-v4.v4-shelf-article.v4-room-st .v4-next a{border-bottom-style:dashed}
/* DE: soft turns and additional breathing room, without changing dialogue. */
.shippo-v4.v4-shelf-article.v4-room-de #primary .entry-header{border-radius:0 24px 0 24px}
.shippo-v4.v4-shelf-article.v4-room-de .entry-content h2{border-radius:0 18px 18px 0;border-bottom-style:dotted}
.shippo-v4.v4-shelf-article.v4-room-de .entry-content p.intro-core{border-radius:18px;border-block-style:dotted}
.shippo-v4.v4-shelf-article.v4-room-de .entry-content .section{margin-block:3.5rem}
.shippo-v4.v4-shelf-article.v4-room-de .v4-toc{border-radius:0 15px 15px 0}
/* PH: a travel journal. Existing photographs and explanatory figures are untouched. */
.shippo-v4.v4-shelf-article.v4-room-ph #primary .entry-header{border-bottom:1px dashed var(--shelf-color)}
.shippo-v4.v4-shelf-article.v4-room-ph .entry-content h2{border-left:0;border-top:1px dashed var(--reader-line);border-bottom:1px dashed var(--shelf-color)}
.shippo-v4.v4-shelf-article.v4-room-ph .entry-content p.intro-core{border:1px solid var(--reader-line);box-shadow:3px 3px 0 #eae2cf}
.shippo-v4.v4-shelf-article.v4-room-ph .v4-toc,.shippo-v4.v4-shelf-article.v4-room-ph .v4-next a{border-bottom-style:dashed}
/* YK: a study notebook, with a margin rule rather than invented lesson numbers. */
.shippo-v4.v4-shelf-article.v4-room-yk #primary .entry-header{border-left:2px solid #b6c6d7}
.shippo-v4.v4-shelf-article.v4-room-yk .entry-content h2{border-left:2px solid var(--shelf-color);border-bottom:2px solid var(--reader-line);box-shadow:inset 6px 0 0 #fffdf7}
.shippo-v4.v4-shelf-article.v4-room-yk .entry-content p.intro-core{border-left:2px solid var(--shelf-color);border-bottom:3px double var(--reader-line)}
@media(max-width:600px){.shippo-v4.v4-shelf-article #primary .entry-header{padding:1rem}.shippo-v4.v4-shelf-article #primary .entry-title{font-size:25px;line-height:1.7}.shippo-v4.v4-shelf-article .v4-article-orientation{padding:.75rem}.shippo-v4.v4-shelf-article .entry-content h2{font-size:20px;padding:.65rem .8rem}.shippo-v4.v4-shelf-article .entry-content h3{font-size:18px}.shippo-v4.v4-shelf-article .entry-content p.intro-core{font-size:20px;padding:1rem .8rem}.shippo-v4.v4-shelf-article .entry-content .section{margin-block:2.5rem}}
