/*
 * Story components (overview, numbered sections, place items, download, sources).
 * Moved from Customizer → Additional CSS on 2026-10-02 (original kept in
 * docs/archive/customizer-additional-css-2026-10-02.css) and softened with the
 * theme's soft tokens. Loaded on the front end and in the block editor, so the
 * patterns in /patterns look the same while writing.
 */
:root{--wb-line:var(--line-soft,#e7e3dc);--wb-surface:var(--surface-soft,#faf8f4);--wb-green:#286044;--wb-r-card:var(--radius-card,24px);--wb-r-media:var(--radius-media,16px);--wb-r-control:var(--radius-control,12px)}
/* Category name used by auto labels ("WONDER / 01"). */
.category-wonder{--wb-cat:"WONDER";--wb-cat-overview:"WONDER / WONDERBLE"}.category-play{--wb-cat:"PLAY";--wb-cat-overview:"PLAY / WONDERBLE"}.category-grow{--wb-cat:"GROW";--wb-cat-overview:"GROW / WONDERBLE"}.category-style{--wb-cat:"STYLE";--wb-cat-overview:"STYLE / WONDERBLE"}.category-place{--wb-cat:"PLACE";--wb-cat-overview:"PLACE / WONDERBLE"}.category-home{--wb-cat:"HOME";--wb-cat-overview:"HOME / WONDERBLE"}.category-make{--wb-cat:"MAKE";--wb-cat-overview:"MAKE / WONDERBLE"}.category-story{--wb-cat:"STORY";--wb-cat-overview:"STORY / WONDERBLE"}.category-people{--wb-cat:"PEOPLE";--wb-cat-overview:"PEOPLE / WONDERBLE"}.category-pick{--wb-cat:"PICK";--wb-cat-overview:"PICK / WONDERBLE"}

/* Article rhythm */
.story-article .entry-content{margin:clamp(56px,7vw,112px) auto 96px;line-height:1.9;counter-reset:wb-note}
.story-article .entry-content>p,.story-article .entry-content>ul,.story-article .entry-content>ol{max-width:780px;margin:0 0 1.05em clamp(0px,7vw,112px)}
.story-article .entry-content>h2{max-width:900px;margin:72px 0 30px clamp(0px,7vw,112px);padding-top:24px;border-top:1px solid var(--wb-line);font-size:clamp(2rem,3.4vw,3.55rem);line-height:1.2}
.story-article .entry-content p{line-height:1.9}
.story-article .entry-content figure{margin:52px 0 72px}
.story-article .entry-content figure img{display:block;width:100%;height:auto}

/* Labels (written by hand in older stories, generated for .is-auto sections) */
.wb-overview__label,.wb-place-item__number,.wb-note-section__label,.wb-overview.is-auto::before,.wb-note-section.is-auto .wb-note-section__head::before{display:block;margin:0 0 18px;color:var(--wb-green);font-size:.75rem;font-weight:800;letter-spacing:.15em;line-height:1.35;text-transform:uppercase}
.wb-overview.is-auto::before{content:var(--wb-cat-overview,"WONDERBLE")}
.wb-note-section.is-auto:not(.wb-download){counter-increment:wb-note}
.wb-note-section.is-auto .wb-note-section__head::before{content:var(--wb-cat,"WONDERBLE") " / " counter(wb-note,decimal-leading-zero)}
.wb-download.is-auto .wb-note-section__head::before{content:"FREE DOWNLOAD"}
.wb-note-section__head>*:first-child{margin-top:0}

/* Overview box */
.wb-overview{padding:clamp(28px,4vw,56px) 0;background:var(--wb-surface);border-radius:var(--wb-r-card);margin-bottom:clamp(70px,9vw,132px)}
.wb-overview h2{font-size:clamp(2rem,3.8vw,4rem);margin:0 0 32px;max-width:16ch}
.wb-overview__meta{margin:0 0 22px;font-size:.88rem;color:#555}
.wb-overview__label,.wb-overview__meta,.wb-overview>h2,.wb-overview>p,.wb-overview.is-auto::before{margin-left:clamp(28px,4vw,56px);margin-right:clamp(28px,4vw,56px)}
.wb-overview .wp-block-table{width:100%;margin:0;overflow-x:auto}
.wb-overview table{width:100%;min-width:850px;border-collapse:collapse;table-layout:fixed;border-top:1px solid var(--wb-line);border-bottom:1px solid var(--wb-line)}
.wb-overview th,.wb-overview td{padding:17px 14px 17px 0;border:0;border-bottom:1px solid var(--wb-line);font-size:clamp(.9rem,1vw,1.05rem);line-height:1.55;text-align:left;vertical-align:top;word-break:keep-all}
.wb-overview thead th{padding-top:21px;padding-bottom:21px;font-weight:800}
.wb-overview tbody tr:last-child>*{border-bottom:0}
.wb-overview tr>*:first-child{width:220px;padding-left:clamp(28px,4vw,56px);font-weight:800;color:var(--wb-green);white-space:nowrap}
.wb-overview td+td,.wb-overview th+th{padding-left:14px}

/* Place item */
.wb-place-item{display:grid;grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr);gap:clamp(28px,5vw,80px);padding:clamp(38px,5vw,74px) 0;border-top:1px solid var(--wb-line)}
.wb-place-item__heading h2{margin:0;max-width:none;font-size:clamp(2rem,3vw,3.2rem);line-height:1.2}
.wb-place-item__body{padding-top:5px}
.wb-place-item__body p{max-width:770px;margin:0 0 .9em;font-size:1.1rem;line-height:1.85}
.wb-place-item__body p:last-child{margin-bottom:0}
.wb-place-item__detail{padding-top:14px;border-top:1px solid var(--wb-line);font-size:.92rem!important;color:#444}
.wb-place-item__prompt{margin-top:28px!important;padding:18px 22px;background:var(--wb-surface);border-radius:var(--wb-r-media);font-size:1rem!important}
.wb-place-item__image{grid-column:1/-1;max-width:100%;margin:12px 0 0!important}
.wb-place-item__image img{border-radius:var(--wb-r-media)}

/* Numbered section */
.wb-note-section{display:grid;grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr);gap:clamp(28px,5vw,80px);padding:clamp(38px,5vw,74px) 0;border-top:1px solid var(--wb-line)}
.wb-note-section h2{margin:0;font-size:clamp(2rem,3vw,3.2rem);line-height:1.2}
.wb-note-section__body>*:first-child{margin-top:0}
.wb-note-section__body p,.wb-note-section__body li{max-width:770px;font-size:1.1rem;line-height:1.85}
.wb-note-section__body p{margin:0 0 .9em}
.wb-note-section__body ul{margin:0;padding-left:1.2em}
.wb-note-section__body li+li{margin-top:.7em}

/* Download */
.wb-download{background:var(--wb-green);color:#fff;padding:clamp(32px,5vw,70px);border-top:0;border-radius:var(--wb-r-card)}
.wb-download .wb-note-section__label,.wb-download.is-auto .wb-note-section__head::before{color:#f3d84a}
.wb-download a{display:inline-block;margin-top:18px;padding:13px 18px;border:1px solid rgba(255,255,255,.7);border-radius:var(--wb-r-control);color:#fff;text-decoration:none;font-weight:700;transition:background-color .2s,color .2s}
.wb-download a:hover{background:#fff;color:var(--wb-green)}

/* Sources */
.wb-sources{padding:48px 0;border-top:1px solid var(--wb-line)}
.wb-sources h2{font-size:1.15rem;margin:0 0 18px}
.wb-sources ul{margin:0;padding-left:1.2em;color:#555;font-size:.9rem;line-height:1.8}
.wb-sources li+li{margin-top:.35em}

@media(max-width:760px){
 .story-article .entry-content{margin:42px auto 70px}
 .story-article .entry-content>p,.story-article .entry-content>ul,.story-article .entry-content>ol,.story-article .entry-content>h2{margin-left:0}
 .wb-overview{margin-bottom:56px;padding:25px 0;border-radius:20px}
 .wb-overview__label,.wb-overview__meta,.wb-overview>h2,.wb-overview>p,.wb-overview.is-auto::before{margin-left:18px;margin-right:18px}
 .wb-overview table{min-width:760px}.wb-overview th,.wb-overview td{font-size:.9rem}
 .wb-overview tr>*:first-child{width:170px;padding-left:18px}
 .wb-place-item,.wb-note-section{grid-template-columns:1fr;gap:22px;padding:48px 0}
 .wb-place-item__heading h2{font-size:clamp(2rem,7vw,2.8rem)}
 .wb-place-item__body{padding-top:0}.wb-place-item__image{margin-top:8px!important}
 .wb-download{padding:30px 22px;border-radius:20px}.wb-sources{padding:38px 0}
}

/* Block editor: same counters, label fallback and spacing */
.editor-styles-wrapper .is-root-container,.editor-styles-wrapper .wp-block-post-content{counter-reset:wb-note}
.editor-styles-wrapper .wb-note-section,.editor-styles-wrapper .wb-overview,.editor-styles-wrapper .wb-sources{max-width:none}

/* Overview box: one lead sentence, then labelled facts instead of a run-on line. */
.wb-overview .wb-overview__meta{font-size:clamp(1.05rem,1.35vw,1.3rem);line-height:1.7;color:var(--ink,#191919);font-weight:600;margin-bottom:26px;text-wrap:pretty}
.wb-overview__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;margin:0 clamp(28px,4vw,56px);border-top:1px solid var(--wb-line)}
.wb-overview__fact{display:grid;grid-template-columns:6.5em minmax(0,1fr);gap:14px;padding:14px 0;border-bottom:1px solid var(--wb-line)}
.wb-overview__fact dt{color:var(--wb-green);font-size:.82rem;font-weight:800;line-height:1.7}
.wb-overview__fact dd{margin:0;font-size:.98rem;line-height:1.65;word-break:keep-all}
.wb-overview__tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px clamp(28px,4vw,56px) 0;padding:0;list-style:none}
.wb-overview__tags li{padding:6px 14px;border-radius:999px;background:#fff;font-size:.86rem;line-height:1.5}
.wb-overview .wb-overview__note{margin:16px clamp(28px,4vw,56px) 0!important;font-size:.86rem;line-height:1.6;color:#6b675d}
@media(max-width:760px){
 .wb-overview__facts{grid-template-columns:1fr;margin:0 18px}
 .wb-overview__fact{grid-template-columns:5.5em minmax(0,1fr)}
 .wb-overview__tags{margin:16px 18px 0}
 .wb-overview__note{margin:14px 18px 0!important}
}
