/* The reading design of the phenomenon pages (Maarten, 18 Nov 2026: design F of the reading mock-ups,
   "F. Update the entire website"). The live styles (style.css and each page's own block) sit in a
   layer called base. This file has no layer, so every rule here wins over them. The markup it styles
   is made by builders/reading.py: short paragraphs (.pg), folded sources (details.srcs), the second
   paragraph folded behind its first sentence (details.more), and four tabs (.tabs, .tab-p, .tab-next). */

/* sources folded behind their count */
details.srcs{margin:8px 0 0}
details.srcs>summary{display:inline-flex;align-items:baseline;gap:4px;cursor:pointer;list-style:none;font:600 13px/1.2 var(--sans);padding:5px 0;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;opacity:.72}
details.srcs>summary::-webkit-details-marker,details.more>summary::-webkit-details-marker{display:none}
details.srcs>summary::after{content:"+";text-decoration:none;display:inline-block;margin-left:2px;font-weight:700}
details.srcs[open]>summary::after{content:"\2212"}
details.srcs[open]>summary{opacity:1}
details.srcs>summary b{font-weight:800}
details.srcs>summary:focus-visible,details.more>summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:3px}
details.srcs .rfs{margin-top:4px}
.ph-link details.srcs{grid-column:2/-1}
.ph-tree li .rf{display:block}

/* a paragraph folded behind its first sentence */
.pg{display:block}
details.more>summary{cursor:pointer;list-style:none;display:block;position:relative;padding-right:34px}
details.more>summary::after{content:"+";position:absolute;right:0;top:0;width:24px;height:24px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:50%;font:700 17px/20px var(--sans);text-align:center}
details.more[open]>summary::after{content:"\2212"}
details.more>.more-r{margin-top:.6em}

/* the look */
:root{--parchment:#fbf3e2;--cream:#fbf3e2}
html,body{background:#fbf3e2;color:#3a1218}
body{font:400 16px/1.5 var(--serif)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--teal)}
.cb-in{padding:12px 16px 14px}
.cb-h{font-size:19px;gap:8px}.cb-h .rings{width:20px;height:20px}
.cb-t{font:500 13.5px/1.45 var(--sans);margin-top:7px;color:rgba(255,246,228,.88)}
.cb-go{margin-top:9px}.cb-btn{font-size:13px;padding:7px 12px 6px}

.ph-hd{padding:18px 0 0}
.ph-wri{font-size:18px;margin-bottom:4px}
.ph-hd h1{font-size:33px!important;line-height:1}
.ph-wrap h2{font-size:21px;margin-bottom:12px}
.ph-tg{width:19px;height:19px;line-height:16px;font-size:14px;opacity:.4;margin-left:7px}

.tabs{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:16px -16px 0;background:var(--teal);padding:5px 5px 0}
.tab-b{display:block;text-align:center;text-decoration:none;border:0;background:none;color:#fff6e4;font:700 12.5px/1.12 var(--sans);padding:9px 4px 10px;cursor:pointer;text-wrap:balance;border-radius:5px 5px 0 0;opacity:.85}
.tab-b[aria-selected="true"]{background:#fbf3e2;color:#3a1218;opacity:1}
.tab-b:focus-visible,.tab-next:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.tab-p{padding-top:20px}
.tab-next{display:block;box-sizing:border-box;text-decoration:none;width:100%;margin:30px 0 0;padding:15px 14px;border:0;border-radius:4px;background:var(--teal);color:#fff;font:800 17px/1.15 var(--sans);letter-spacing:-.01em;text-align:left;cursor:pointer}
.tab-next span{display:block;font:600 12.5px/1 var(--sans);opacity:.8;margin-bottom:4px;letter-spacing:0}

.ph-verdict{background:none;color:#3a1218;box-shadow:none;border-radius:0;padding:0}
.ph-verdict .ph-lab{display:none}
.ph-big{font-size:33px;line-height:1.01;margin-bottom:14px}
.ph-rest{font:400 16.5px/1.52 var(--serif)}
.ph-rest .pg{margin:0 0 .7em}
.pow{background:linear-gradient(transparent 58%,rgba(255,106,92,.45) 58%)}
.mk-para{font:400 16px/1.52 var(--serif);margin:14px 0 0;padding:12px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.mk-para summary{font:600 16.5px/1.38 var(--serif)}
.ph-verdict details.srcs>summary,.ph-verdict .rf,.ph-verdict .rf a{color:#3a1218}
.ph-verdict .rf a{text-decoration-color:rgba(58,18,24,.32)}.ph-verdict .rf .gl{color:var(--teal)}

.mk-isnt{margin-top:30px;background:none;border:0;border-top:2px solid #3a1218;border-radius:0;box-shadow:none;padding:14px 0 0}
.mk-isnt>.ph-lab{font:800 21px/1.1 var(--sans);letter-spacing:-.012em;color:#3a1218;margin-bottom:6px}
.mk-myth{padding:10px 32px 10px 0}
.mk-myth .t{font-size:18.5px}
.mk-myth .w{font-size:16px;line-height:1.5}
.mk-myth::after{width:21px;height:21px;line-height:18px;font-size:15px;top:10px}
.ph-line{margin-top:30px}

.ph-chain{padding-top:4px}
.ph-chain .ph-link{grid-template-columns:32px minmax(0,1fr) 54px;column-gap:11px;padding-bottom:22px}
.ph-link::before{left:15px;top:32px;background:var(--teal)}
.ph-n{width:32px;height:32px;font-size:16px;line-height:32px;background:var(--teal);color:#fff}
.ph-so{width:32px;top:-20px;font-size:14px;background:#fbf3e2}
.ph-chain .ph-s{font-size:18.5px;line-height:1.2;margin-top:4px}
.ph-g{width:54px;height:54px}
.ph-loop{font-size:13px;margin-top:7px}
details.ph-cor{grid-column:2/-1;margin-top:4px}
details.ph-cor summary{font-size:13px}
details.ph-cor[open]{grid-column:1/-1;margin-top:8px;padding:5px 12px 10px;background:#fff}
.mk-full{font:700 15.5px/1.35 var(--sans)}
.ph-says{font:400 15.5px/1.5 var(--serif)}
.ph-link details.srcs{margin-top:0}

.mk-sec,.ph-cases{padding-top:30px}
.ph-now{padding-top:4px}
.mk-sell b{font-size:16px}.mk-sell .p{font:400 16px/1.45 var(--serif)}
.ph-sub{font-size:16px;line-height:1.35}
.ph-case blockquote{font-size:18.5px;padding:12px 14px}
.ph-now li{font:400 15.5px/1.48 var(--serif);letter-spacing:0;padding:12px 0 12px 42px}
.ph-now li::before{width:29px;height:29px;line-height:29px;font-size:15px;top:12px}
.ph-now li .sn:first-child{display:block;font:700 16.5px/1.28 var(--sans);letter-spacing:-.006em;margin-bottom:3px}
.mk-not{font:400 15px/1.5 var(--serif);margin-top:14px;padding:11px 13px;background:#fff;border-left:3px solid var(--red)}
.mk-not .sn:first-child{font-weight:600}
.mk-send{font-size:18.5px}
.mk-sendsec{padding-top:22px}

.ph-cor2{margin-top:0}
.ph-bw{margin-top:0;border-top:0;padding-top:0}
.ph-bw h2,.sys h2,.how h2{font-size:21px}
.ph-tree{background:#fff}
.how{margin-top:30px}
.sys .dek,.ph-against p,.mx p{font-size:16px;line-height:1.5}
.sys .why{font:500 16px/1.45 var(--serif)}
.ph-wrong{box-shadow:none;background:#fff;padding:15px}
.ph-test{font-size:16.5px;line-height:1.45}
.ph-obj{font:400 16px/1.5 var(--serif)}
.s-next{padding-top:34px}

/* the numbers, then and now: the big figures fit their half of the box (a long word ran into the other half) */
.mk-nums{padding-top:30px}
.mk-num b{font-size:21px;line-height:1.1;overflow-wrap:break-word}
.mk-num details.srcs>summary b{display:inline;font:inherit;font-weight:800;letter-spacing:0;color:inherit}
