/* Article page on the main site (2026-10-29).
   Loads after the rough's article.css and the 2026-10-22 reference.css, and styles the stored
   post body (WordPress blocks and the l-* parts) to the same reading rules as the reference. */

.nj-article .ledger.no-rail{grid-template-columns:minmax(0,1fr);max-width:880px}
.nj-article .ledger .sheet{min-width:0}

/* ---------- reading column ---------- */
.nj-entry{max-width:var(--measure);margin:0 auto;color:var(--ink-2);font-size:16px;line-height:1.95;overflow-wrap:anywhere}
.nj-entry>:first-child{margin-top:0}
.nj-entry p{margin:0 0 1em}
.nj-entry a{color:var(--accent);text-decoration:underline;text-underline-offset:.22em}
.nj-entry a[data-local-external]{cursor:default}
.nj-entry b,.nj-entry strong{color:var(--ink)}
.nj-entry mark{background:#e3ead2;color:inherit;padding:0 .15em}
.nj-entry small{font-size:12px;color:var(--ink-mute)}
.nj-entry font{color:inherit!important;font-size:inherit!important}

.nj-entry h2{position:relative;margin:56px 0 20px;padding-top:16px;font:500 22px/1.5 var(--heading);letter-spacing:.04em;color:var(--ink)}
.nj-entry h2.nj-sec-h::before{content:"";position:absolute;top:0;left:0;width:38px;border-top:1px solid var(--accent)}
.nj-entry h2.nj-sec-h[data-no]{padding-top:34px}
.nj-entry h2.nj-sec-h[data-no]::after{content:attr(data-no);content:attr(data-no) / "";position:absolute;top:13px;left:0;font:11px/1.4 var(--sans);letter-spacing:.16em;color:var(--ink-mute)}
.nj-entry h3{margin:38px 0 12px;font:500 18px/1.55 var(--heading);letter-spacing:.03em;color:var(--ink)}
.nj-entry h4{margin:28px 0 8px;font-size:15px;font-weight:700;line-height:1.7;color:var(--ink)}
.nj-entry :is(h2,h3,h4){scroll-margin-top:24px}
.nj-entry h2:focus,.nj-entry h3:focus{outline:none}

.nj-entry ul,.nj-entry ol{margin:0 0 1em;padding-left:1.3em}
.nj-entry li{margin:.2em 0}
.nj-entry hr{height:0;margin:40px 0;border:0;border-top:1px solid var(--rule)}
.nj-entry blockquote{margin:24px 0;padding:4px 0 4px 18px;border-left:2px solid var(--rule);color:var(--ink-soft)}
.nj-entry pre,.nj-entry code{font-family:var(--mono)}
.nj-entry pre{overflow-x:auto;margin:18px 0;padding:12px 14px;border-radius:4px;background:#1c2622;color:#e3e8dc;font-size:13px;line-height:1.7}
.nj-entry :not(pre)>code{padding:.1em .35em;border-radius:3px;background:var(--paper-2);font-size:.9em}

/* images and media */
.nj-entry img,.nj-entry video{max-width:100%;height:auto}
.nj-entry figure{margin:26px 0 28px}
.nj-entry figure img{display:block;border-radius:3px;background:var(--paper)}
/* F10: one quiet rule below photo prints, including white-background products.
   Keep the source pixels, intrinsic width and captions; quotation icons are separate. */
.nj-entry :is(figure,.wp-block-image,.l-photo,.l-gallery) img:not(.l-quotation-icon){border-bottom:1px solid var(--rule);box-sizing:border-box}
.nj-entry .wp-block-image img{width:auto;max-width:100%}
.nj-entry .aligncenter,.nj-entry .aligncenter img{margin-left:auto;margin-right:auto}
.nj-entry figcaption{margin-top:8px;font-size:12px;line-height:1.6;color:var(--ink-mute);text-align:left}
.nj-entry .wp-block-embed{margin:26px 0}
.nj-entry .wp-block-embed__wrapper:empty{display:none}

/* Video embeds: wp-block-embed__wrapper is the aspect-ratio stage. Core block
   CSS is not loaded in this theme, so the sizing half of the embed contract
   lives here: the wrapper reserves the ratio box and the iframe fills it.
   Without this the iframe renders at its width/height attributes (640x360)
   and overflows the article column. */
.nj-entry .wp-block-embed__wrapper{position:relative}
.nj-entry .wp-has-aspect-ratio .wp-block-embed__wrapper::before{content:"";display:block;padding-top:50%}
.nj-entry .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before{padding-top:42.85%}
.nj-entry .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before{padding-top:50%}
.nj-entry .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before{padding-top:56.25%}
.nj-entry .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before{padding-top:75%}
.nj-entry .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before{padding-top:100%}
.nj-entry .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before{padding-top:177.78%}
.nj-entry .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before{padding-top:200%}
.nj-entry .wp-has-aspect-ratio iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}
.nj-entry .wp-block-embed:not(.wp-has-aspect-ratio) iframe{max-width:100%}

/* tables scroll inside the column instead of widening the page */
.nj-entry .wp-block-table,.nj-entry .nj-table{overflow-x:auto;margin:18px 0}
.nj-entry table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.6;font-variant-numeric:tabular-nums}
.nj-entry th,.nj-entry td{padding:9px 12px 9px 0;border:0;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top}
.nj-entry thead th,.nj-entry tr:first-child th{border-bottom-color:var(--ink-soft);color:var(--ink)}

/* block layouts */
.nj-entry .wp-block-columns{display:flex;flex-wrap:wrap;gap:18px;margin:24px 0}
.nj-entry .wp-block-column{flex:1 1 220px;min-width:0}
.nj-entry .wp-block-media-text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:18px;align-items:center;margin:24px 0}
.nj-entry .wp-block-media-text__media img{width:100%;border-radius:3px}
.nj-entry .wp-block-media-text__content{padding:0}
.nj-entry .wp-block-group.has-background,.nj-entry p.has-background{padding:14px 16px;border-radius:4px}
.nj-entry .has-text-align-center{text-align:center}
.nj-entry .wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}

/* buttons: one quiet style for every link button in old and new posts */
.nj-entry :is(.wp-block-button__link,.l-button){display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border:1px solid #c9cfc2;border-radius:3px;background:none!important;color:var(--ink)!important;font-size:13px;line-height:1.5;text-decoration:none}
.nj-entry :is(.wp-block-button__link,.l-button):hover{border-color:var(--accent);color:var(--accent)!important}

/* the l-* parts used by newer posts */
.nj-entry .l-eyebrow{display:block;margin:0 0 4px;font:11px/1.6 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ink-mute)}
.nj-entry .l-intro{margin-bottom:28px}
.nj-entry .l-note{margin:26px 0;padding:14px 16px;border-radius:4px;background:var(--paper-2);font-size:14px;line-height:1.85}
.nj-entry .l-note>:last-child{margin-bottom:0}
.nj-entry .l-note-title{display:block;margin:0 0 6px;font-weight:700;color:var(--ink)}
.nj-entry .l-note :is(h2,h3){margin:0 0 8px;padding:0;font-size:16px}
.nj-entry .l-emphasis{font-weight:700;color:var(--ink)}
.nj-entry .l-purchase{margin:30px 0;padding:18px 20px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--rule)}
.nj-entry .l-purchase .l-purchase{margin:16px 0 0;padding:0;box-shadow:none}
.nj-entry .l-purchase :is(h2,h3){margin:0 0 10px;padding:0;font-size:17px}
.nj-entry .l-product{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start;margin:0 0 12px}
.nj-entry .l-product-image img{width:96px;height:auto;border-radius:3px}
.nj-entry .l-product-name{display:block;font:500 16px/1.5 var(--heading);color:var(--ink)}
.nj-entry .l-product-info{font-size:13px;line-height:1.75}
.nj-entry .l-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.nj-entry .l-status{font-size:13px;color:var(--ink-soft)}
.nj-entry .l-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px 18px;margin:20px 0;padding:14px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);font-size:13px;line-height:1.7}
.nj-entry .l-steps{counter-reset:step;margin:20px 0;padding:0;list-style:none}
.nj-entry .l-step{margin:0 0 18px}
.nj-entry .l-gallery,.nj-entry .l-columns{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0}
.nj-entry :is(.l-gallery,.l-columns)>*{flex:1 1 200px;min-width:0;margin:0}
.nj-entry .l-photo-note,.nj-entry .l-sources{font-size:12px;line-height:1.7;color:var(--ink-mute)}
.nj-entry .l-sources{margin-top:40px;padding-top:16px;border-top:1px solid var(--rule)}
.nj-entry .l-related,.nj-entry .l-related-card{font-size:14px}
.nj-entry .l-archive{color:var(--ink-mute)}
.nj-entry .fas{display:none}
/* Old posts mark single/multi player with icon-font people; the font is not loaded, so draw the same people. */
.nj-entry .fas:is(.fa-user-alt,.fa-user-friends){display:inline-block;width:1em;height:1em;margin-left:.2em;vertical-align:-.12em;background:var(--ink-soft);-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.nj-entry .fas.fa-user-alt{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%225%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M2.5%2015c0-3.3%202.5-5.5%205.5-5.5s5.5%202.2%205.5%205.5z%22/%3E%3C/svg%3E")}
.nj-entry .fas.fa-user-friends{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2020%2016%22%3E%3Ccircle%20cx%3D%227%22%20cy%3D%225%22%20r%3D%222.8%22/%3E%3Cpath%20d%3D%22M1.5%2015c0-3.1%202.4-5.2%205.5-5.2s5.5%202.1%205.5%205.2z%22/%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%225.5%22%20r%3D%222.4%22/%3E%3Cpath%20d%3D%22M13.6%209.9c2.8.1%204.9%202%204.9%205.1h-4.3c0-1.9-.3-3.6-1.6-5z%22/%3E%3C/svg%3E");width:1.25em}

/* small labelled blocks: <small> label, <b>/<strong> value, <span> note */
.nj-entry .l-status{margin:0 0 22px;font-size:13px;line-height:1.7;color:var(--ink-mute)}
.nj-entry .l-status>b{font-weight:600;color:var(--ink-soft)}
.nj-entry .l-status>span{margin-left:.5em}
.nj-entry .l-facts>div,.nj-entry .l-check,.nj-entry .l-step{display:grid;align-content:start;gap:2px}
.nj-entry :is(.l-facts>div,.l-check,.l-step)>small{font-size:11px;letter-spacing:.04em;color:var(--ink-mute)}
.nj-entry .l-facts>div>strong{font:500 18px/1.4 var(--heading);color:var(--ink)}
.nj-entry :is(.l-facts>div,.l-check,.l-step)>span{font-size:12px;line-height:1.6;color:var(--ink-soft)}
.nj-entry .l-check,.nj-entry .l-step{padding:10px 0;border-top:1px solid var(--rule);font-size:14px;line-height:1.7}
.nj-entry :is(.l-check,.l-step)>b{color:var(--ink)}
.nj-entry .l-step>a{justify-self:start;font-size:12px}
.nj-entry .l-related{display:grid;gap:10px;margin:18px 0 26px}
.nj-entry .l-related-card{display:grid;gap:2px;padding:12px 14px;border:1px solid var(--rule);border-radius:4px;color:var(--ink);text-decoration:none;line-height:1.7}
.nj-entry .l-related-card:hover{border-color:var(--accent)}
.nj-entry .l-related-card>small{font-size:11px;letter-spacing:.04em}
.nj-entry .l-related-card>b{font:500 16px/1.5 var(--heading)}
.nj-entry .l-related-card>span{font-size:13px;color:var(--ink-soft)}
.nj-entry .l-related-card>i{font-style:normal;font-size:12px;color:var(--accent)}
.nj-entry section.l-section-part,.nj-entry .l-archive{margin:26px 0;padding:14px 16px;border-radius:4px;background:var(--paper-2);font-size:14px;line-height:1.85}
.nj-entry section.l-section-part>:last-child,.nj-entry .l-archive>:last-child{margin-bottom:0}
.nj-entry .l-archive{color:var(--ink-soft)}
.nj-entry hr{background:none!important;color:var(--rule)!important;border-top-color:var(--rule)!important}

/* ---------- rail ---------- */
.nj-article .nj-facts{display:grid;gap:0;margin:0 0 4px;font-size:13px;line-height:1.6}
.nj-article .nj-facts div{display:grid;grid-template-columns:5.5em minmax(0,1fr);gap:10px;padding:7px 0;border-top:1px solid var(--rule)}
.nj-article .nj-facts dt{color:var(--ink-mute)}
.nj-article .nj-facts dd{margin:0;color:var(--ink)}
.nj-article .reference-toc a[aria-current]{color:var(--ink);font-weight:700}
.nj-article .reference-end{flex-wrap:wrap;gap:6px 18px}
.nj-article .reference-end img{flex:none}

/* long titles without a separator get a smaller cover heading */
.nj-article .cover-side h1.is-long .t{font-size:24px;line-height:1.6}
@media(max-width:760px){.nj-article .cover-side h1.is-long .t{font-size:20px}}
/* the cover card label must not crowd long product names */
.nj-article .cover-card .mcard-t .t{overflow-wrap:anywhere;text-wrap:balance}

/* From 1240px hang section numbers. F10: photos stay within the text column. */
@media(min-width:1240px){
 .nj-entry h2.nj-sec-h,.nj-entry h2.nj-sec-h[data-no]{padding-top:0}
 .nj-entry h2.nj-sec-h::before{top:.78em;left:-64px;width:44px}
 .nj-entry h2.nj-sec-h[data-no]::after{left:-64px;top:-.2em}
}
@media(max-width:1239px) and (min-width:1001px){.nj-article .ledger .sheet{padding-left:28px;padding-right:28px}}
@media(max-width:1000px){.nj-article .ledger .sheet{padding-left:24px;padding-right:24px}}
@media(max-width:760px){
 .nj-article .ledger .sheet{padding-left:18px;padding-right:18px}
 .nj-entry h2{margin-top:44px;font-size:19px}
 .nj-entry h3{font-size:17px}
 .nj-entry .wp-block-media-text{grid-template-columns:1fr}
 .nj-entry .l-product{grid-template-columns:72px minmax(0,1fr)}
 .nj-entry .l-product-image img{width:72px}
 .nj-entry .l-purchase{padding:16px}
}

/* "次に読む": heading lines up with the cards (the reference's padding calc was missing a space) */
.nj-article .reference-related{padding-left:max(35px,calc((100% - 970px)/2));padding-right:max(35px,calc((100% - 970px)/2))}
.nj-article .reference-related>h2,.nj-article .reference-related>ul{max-width:750px;margin-left:auto;margin-right:auto}
.nj-article .reference-related>ul{justify-content:flex-start}
@media(max-width:760px){.nj-article .reference-related{padding-left:25px;padding-right:25px}}

/* Old post bodies, tidied at display time (nj_tidy_legacy) */
.nj-entry ul.nj-dots{margin:0 0 1em;padding-left:1.3em;list-style:disc}
.nj-entry ul.nj-dots li{margin:.15em 0}
.nj-entry ul.nj-dots li::marker{color:var(--ink-mute)}
.nj-entry p.nj-p-head{margin:26px 0 8px;font-size:15px;line-height:1.7;color:var(--ink)}
.nj-entry u{text-decoration:none;background:linear-gradient(transparent 62%,#e3ead2 62%)}
.nj-entry :is(.has-background,[class*="-background-color"]){background:var(--paper-2)!important;color:inherit!important}
.nj-entry [class*="has-"][class*="-color"]:not([class*="background"]){color:inherit!important}
.nj-entry .has-medium-font-size,.nj-entry .has-large-font-size{font-size:inherit!important}
.nj-entry .l-note>.l-note-title,.nj-entry .l-section-part>.l-note-title{display:block;margin:0 0 6px;font-weight:700;color:var(--ink)}

/* While the body is being read, mist settles over the background photo; it comes back at the cover and at the end.
   --calm (0–1) is set by article.js from the scroll position. Without the script the photo stays as it is. */
/* Mist rather than a tinted glass: the same pale fog the landscape already fades into at the top, and a little less colour. No blur. */
.nj-article .nj-calm{position:fixed;inset:0;z-index:-1;pointer-events:none;background:rgb(233 236 228 / .58);-webkit-backdrop-filter:saturate(.6);backdrop-filter:saturate(.6);opacity:var(--calm,0);will-change:opacity}

/* Status at the top of the article (cover) — the same words as the rail and the list card. */
.nj-article .cover-side .nj-cover-status{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--rule);font-size:13px;line-height:1.6;color:var(--ink-soft)}
.nj-article .nj-cover-status b{font-weight:700;color:var(--ink)}
.nj-article .nj-cover-status.nj-st-open b{color:var(--accent)}
.nj-article .nj-cover-status span{font-variant-numeric:tabular-nums}
.nj-article .nj-next-step{display:flex;justify-content:space-between;gap:8px;min-height:40px;align-items:center;margin-top:10px;padding:8px 0;border-top:1px solid var(--rule);font-size:13px;line-height:1.6;color:var(--accent);text-decoration:none}
.nj-article .nj-next-step:hover{text-decoration:underline;text-underline-offset:4px}
.nj-article .cover-side h1{word-break:auto-phrase}

/* "次に読む": the same cards as the category lists, on the photo (no tinted band), so the end of an article
   flows into the next one. Values follow the list card (cf-concepts hybrid, rounds 17–20). */
.nj-next{margin:64px 0 0;padding:0 max(24px,calc((100% - 1040px)/2)) 64px}
/* The heading is a small paper label: readable on any part of the photo. */
.nj-next h2{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:0 0 20px;padding:7px 16px 8px;border-radius:3px;background:var(--paper);box-shadow:0 6px 20px #0d101b55;font:500 19px/1.5 var(--heading);letter-spacing:.04em;color:var(--ink)}
.nj-next h2 small{font:400 12px/1.5 "Yu Gothic","Meiryo",sans-serif;letter-spacing:.04em;color:var(--ink-mute)}
.nj-next-cards{display:grid;grid-template-columns:repeat(3,minmax(0,230px));gap:30px}
.nj-next a.card{position:relative;display:flex;flex-direction:column;aspect-ratio:300/510;overflow:clip;border-radius:8px;background:var(--sunk);color:var(--ink);text-decoration:none;box-shadow:0 1px 2px #080e10b0,2px 3px 0 #101a1a88,0 20px 30px -9px #10191da8;transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.nj-next a.card::after{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit;border:1px solid #ffffff30;box-shadow:inset 0 0 0 1px #0c14146b;pointer-events:none}
.nj-next a.card:hover{transform:translateY(-8px)}
.nj-next a.card:hover .name{text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:1px}
.nj-next a.card:focus-visible{outline:2px solid #e3e8dc;outline-offset:5px}
.nj-next a.card>img{position:relative;flex:1 1 0;min-height:0;width:100%;object-fit:cover;filter:saturate(.9) contrast(1.03)}
.nj-next a.card .grain{position:absolute;inset:0;z-index:2;pointer-events:none;background:url('/wp-content/themes/nichejour-mist/assets/source/assets/mist-cards/grain.svg') repeat;opacity:.13;mix-blend-mode:soft-light}
.nj-next a.card .chip{position:absolute;top:10px;left:10px;z-index:3;padding:2px 8px;border-radius:2px;background:#e9efd9d9;color:#1f3a2c;font-size:11px;font-weight:700;line-height:1.5;letter-spacing:.04em}
.nj-next a.card .topic{position:absolute;top:36px;left:10px;z-index:3;max-width:72%;padding:2px 8px;border-radius:2px;background:#161b19cc;border:1px solid #eef0e655;color:#e3e8da;font-size:11px;line-height:1.5;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nj-next a.card .label{position:relative;z-index:3;flex:none;display:flex;flex-direction:column;padding:3px 12px 11px;background:var(--sunk)}
.nj-next a.card .label::before{content:"";position:absolute;left:0;right:0;top:-32px;height:32px;background:linear-gradient(#ecebe400,#ecebe440 40%,#ecebe4b3 75%,var(--sunk));pointer-events:none}
.nj-next a.card .maker{display:flex;gap:6px;overflow:hidden;white-space:nowrap;font:11px/1.4 var(--mincho);letter-spacing:.06em;color:var(--ink-mute)}
.nj-next a.card .mk{overflow:hidden;text-overflow:ellipsis}
.nj-next a.card .mk+.pf::before{content:"·";margin-right:6px}
.nj-next a.card .name{margin:3px 0 0;min-height:2.4em;font:500 18px/1.2 var(--mincho);letter-spacing:.01em;color:var(--ink)}
.nj-next a.card .sub{margin:4px 0 8px;display:block;font-size:12px;line-height:1.4;color:var(--ink-soft)}
.nj-next a.card .facts{display:flex;flex-wrap:wrap;column-gap:4px;align-items:baseline;padding-top:6px;border-top:1px solid #1f2e2733;font-size:12px;line-height:1.35}
.nj-next a.card .k{flex:1 1 auto;display:flex;align-items:baseline;white-space:nowrap;font-size:11px;letter-spacing:.08em;color:var(--ink-mute)}
.nj-next a.card .k::after{content:"";flex:1;min-width:6px;margin:0 6px;border-bottom:1px dotted #1f2e2759;transform:translateY(-3px)}
.nj-next a.card .v{margin-left:auto;font:700 12px/1.35 var(--mincho);color:var(--ink);white-space:nowrap}
.nj-next a.card .v.open{color:var(--accent)}
@media(max-width:760px){
 .nj-next{margin-top:48px;padding:0 0 48px}
 .nj-next h2{margin-left:18px;font-size:17px}
 .nj-next-cards{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(150px,46vw);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 18px 14px;scroll-padding:0 18px;scrollbar-width:none}
 .nj-next-cards::-webkit-scrollbar{display:none}
 .nj-next a.card{scroll-snap-align:start}
 .nj-next a.card .name{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.nj-next a.card{transition:none}.nj-next a.card:hover{transform:none}}
/* The end of the article reads as an ending, not as small print. */
.nj-article .reference-end{font-size:13px}
.nj-article .reference-end a{color:var(--ink-soft)}

/* Product names repaired in old roundups: a heading of their own, listed under their section in the contents. */
.nj-entry h3.nj-item-h{margin:34px 0 10px;font:500 18px/1.5 var(--heading);color:var(--ink)}
.nj-article .reference-toc li.nj-toc-item a{grid-template-columns:minmax(0,1fr);padding-left:26px;font-size:12px;color:var(--ink-mute)}
.nj-article .reference-toc li.nj-toc-item a .no{display:none}
.nj-article .reference-toc li.nj-toc-item a[aria-current]{color:var(--ink)}

/* Phone bottom bar: 44px targets, and a faint scrim behind an open panel so the body does not show through. */
@media(max-width:1000px){
 .nj-article .reference-dock button,.nj-article .reference-dock>a{min-height:44px;padding:0 6px}
 .nj-article .reference-dock .nj-sign{display:inline-block;min-width:1em;text-align:center}
 html.nj-panel-open .nj-article::after{content:"";position:fixed;inset:0;z-index:24;background:rgb(20 32 27 / .28);pointer-events:none}
 html.nj-panel-open .nj-article .reference-dock{z-index:26}
}

/* Small fixes from the critique (2026-10-29). */
/* Buy buttons in old posts sit in stray wrappers next to empty links: line them up on one grid. */
/* Buy actions: one row that wraps, each as wide as its label, all in the same button style. */
.nj-entry .l-links{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.nj-entry .l-links>div{display:contents}
.nj-entry .l-links :is(.l-button,a){flex:0 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:6px 14px;border:1px solid #c9cfc2;border-radius:3px;background:none;color:var(--ink);font-size:13px;line-height:1.5;text-align:center;text-decoration:none}
.nj-entry .l-links :is(.l-button,a):hover{border-color:var(--accent);color:var(--accent)}
/* A product box without a photo gives the name the full width instead of a 72–96px gap. */
.nj-entry .l-product:not(:has(.l-product-image img)){grid-template-columns:minmax(0,1fr)}
.nj-entry .l-product-image:not(:has(img)){display:none}
/* An English label right above a heading repeats it: the heading speaks for itself (craft floor). */
.nj-entry .l-eyebrow:is(:has(+ :is(h2,h3,h4,.l-note-title,b,strong)),:has(+ p:empty + :is(h2,h3,h4,.l-note-title))){display:none}

/* The next-read card's facts row has no bottom rule (the sample stylesheet's .facts rule leaked one in). */
.nj-next a.card .facts{border-bottom:0;padding-bottom:0}

/* Keep body status bands visible. A cover/rail status (including nj-has-status)
   is not proof of complete duplication; see design-book section 7. */
/* The rail's way forward reads as an action, quietly. */
.nj-article .nj-next-step{justify-content:center;gap:8px;margin-top:12px;padding:8px 12px;border:1px solid var(--rule);border-radius:3px;text-align:center}
.nj-article .nj-next-step:hover{border-color:var(--accent);text-decoration:none}
.nj-article .nj-facts dd{font-variant-numeric:tabular-nums}

/* Cover: the photo at 3:2 beside the paper title card (user decision 10-29; the 10-21 "small 3:2").
   A real gap instead of a fake overlap, the paper at least as tall as the photo, no hard offset shadow. */
/* The rough's CSS sets gap:0!important on the cover (.art-c:not(.cover-low) .cover-card) for its card overlap,
   so these rules carry one more level of weight. */
body.nj-article:not(.cover-low) .cover-card{grid-template-columns:minmax(0,440px) minmax(0,30em);gap:14px 28px!important;align-items:stretch}
.nj-article .nj-cover-photo{margin:0;width:440px;max-width:100%;aspect-ratio:3/2;align-self:center;overflow:hidden;border-radius:6px;box-shadow:0 1px 2px #080e10b0,0 26px 40px -9px #10191dc0}
.nj-article .nj-cover-photo img{display:block;width:100%;height:100%;object-fit:cover}
.nj-article .cover-card .cover-side{min-height:calc(440px / 1.5);display:flex;flex-direction:column;justify-content:center;padding-left:28px!important}
.nj-article .cover-card .cover-side .down{align-self:flex-start}
/* The rail's small photo keeps the photo as it is (no dark fade). */
.nj-article .rc-shade{display:none}
@media(max-width:1000px){
 body.nj-article:not(.cover-low) .cover-card{grid-template-columns:minmax(0,1fr);justify-items:center}
 .nj-article .nj-cover-photo{width:min(560px,86vw)}
 .nj-article .cover-card .cover-side{min-height:0;width:min(560px,100%)}
}
@media(max-width:760px){
 .nj-article .nj-cover-photo{width:86vw}
 body.nj-article .cover-card .cover-side{padding:20px 18px 18px!important}
}

/* Step navigation at the top of guide posts (nav.l-steps): tiles with number, step and what it covers. */
.nj-entry nav.l-steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:20px 0 26px}
.nj-entry nav.l-steps a{display:grid;align-content:start;gap:2px;min-height:44px;padding:10px 12px;border:1px solid var(--rule);border-radius:4px;color:var(--ink);text-decoration:none;line-height:1.5}
.nj-entry nav.l-steps a:hover{border-color:var(--accent)}
.nj-entry nav.l-steps i{font:normal 11px/1.4 var(--sans);letter-spacing:.12em;color:var(--accent)}
.nj-entry nav.l-steps strong{font-size:14px;font-weight:600}
.nj-entry nav.l-steps small{font-size:11px;color:var(--ink-mute)}
