/* the pages of pronoia.my in the style of montana.one (the store page of the Messenger): black, the gold of the sign of time, the system face,
   a warm head, grouped cards, thin separators, the language pill at the right corner */
:root{--gold:#d0a04c;--gold-hi:#ecc77e;--gold-lo:#9a7432;--gold-rim:rgba(208,160,76,.34);--ink:#fff;--ink-2:rgba(255,255,255,.72);--ink-3:rgba(255,255,255,.48);--line:rgba(208,160,76,.16);--blue:#0A84FF;
--warm-a:#5d5648;--warm-b:#a99164;--card:#1c1c1e;--sec:rgba(235,235,245,.6);--sep:rgba(84,84,88,.65);--fs:1;
--sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",system-ui,sans-serif;--disp:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,sans-serif;--serif:ui-serif,"New York",Georgia,"Times New Roman",serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:#000;-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;position:relative;overflow-x:clip;background:#000;color:var(--ink);font:17px/1.4 var(--sans);-webkit-font-smoothing:antialiased;min-height:100svh}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(90% 45% at 50% 115%,rgba(208,160,76,.08),transparent 70%)}
main.tf{position:relative;margin:0 auto;width:100%;max-width:560px;padding:0 16px calc(32px + env(safe-area-inset-bottom))}
main.tf.wide{max-width:720px}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
.js-only{display:none}.js .js-only{display:inline-flex}
#bar{position:fixed;top:0;left:0;height:2px;width:0;background:linear-gradient(90deg,var(--gold-lo),var(--gold-hi));z-index:60}
/* the bar that appears once the head has scrolled away */
.top{position:fixed;z-index:50;top:0;left:0;right:0;height:calc(54px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;display:flex;align-items:center;justify-content:center;gap:10px;background:rgba(3,2,1,.95);border-bottom:.5px solid var(--line);opacity:0;pointer-events:none;transition:opacity .22s ease;-webkit-backdrop-filter:blur(24px) saturate(1.4);backdrop-filter:blur(24px) saturate(1.4)}
.top.on{opacity:1;pointer-events:auto}
.top .sign{height:30px;width:auto;flex:none}
.top .tt{min-width:0;max-width:60%;font:600 15px/1.2 var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top button{width:34px;height:34px;flex:none;border-radius:50%;border:1px solid var(--gold-rim);background:rgba(26,20,11,.55);color:#fff;font:15px/1 var(--sans);cursor:pointer;align-items:center;justify-content:center}
/* round button at the left corner, as in the store */
.tf-round{position:absolute;z-index:30;top:calc(10px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:50%;border:1px solid rgba(208,160,76,.5);background:rgba(26,20,11,.18);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(24px) saturate(1.4);backdrop-filter:blur(24px) saturate(1.4)}
.tf-round:hover{text-decoration:none;border-color:var(--gold)}
.tf-round svg{width:23px;height:23px}
.tf-round.js-only{display:none}.js .tf-round.js-only{display:flex}
/* language pill (the store's own) */
.lang{position:absolute;z-index:40;top:calc(10px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right))}
.lang summary{list-style:none;display:flex;align-items:center;gap:7px;height:40px;padding:0 13px 0 11px;border-radius:20px;border:1px solid rgba(208,160,76,.42);background:rgba(26,20,11,.55);color:rgba(255,255,255,.8);font:600 15px/1 var(--sans);cursor:pointer;-webkit-backdrop-filter:blur(24px) saturate(1.4);backdrop-filter:blur(24px) saturate(1.4)}
.lang summary::-webkit-details-marker{display:none}.lang summary::marker{content:""}
.lang summary:hover{border-color:rgba(208,160,76,.75)}.lang summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.lang .mt-lang-flag{font-size:21px;line-height:1}
.lang summary svg{width:10px;height:6px;transition:transform .2s ease}.lang[open] summary svg{transform:rotate(180deg)}
.lang ul{position:absolute;top:calc(100% + 6px);right:0;min-width:176px;margin:0;padding:6px;list-style:none;border-radius:14px;border:1px solid rgba(208,160,76,.32);background:rgba(20,15,8,.94);box-shadow:0 14px 36px rgba(0,0,0,.55);-webkit-backdrop-filter:blur(24px) saturate(1.4);backdrop-filter:blur(24px) saturate(1.4)}
.lang li a,.lang li .dis{display:flex;align-items:center;gap:11px;height:44px;padding:0 12px;border-radius:9px;color:rgba(255,255,255,.86);font:600 15px/1 var(--sans)}
.lang li a:hover{background:rgba(255,255,255,.07);text-decoration:none}
.lang li a.on{color:#fff;background:rgba(10,132,255,.2)}
.lang .mt-lang-name{flex:1}.lang .mt-lang-tick{color:var(--blue);visibility:hidden}.lang li a.on .mt-lang-tick{visibility:visible}
.lang li .dis{opacity:.5;cursor:default}.lang li .dis small{font-weight:400;font-size:12px}
/* the warm head */
.tf-hero{display:flex;flex-direction:column;align-items:center;margin:0 -16px;padding:calc(84px + env(safe-area-inset-top)) 16px 28px;border-image:linear-gradient(180deg,var(--warm-a),var(--warm-b)) fill 0//0 100vw;text-align:center}
.tf-icon{display:block;width:128px;height:128px;border-radius:22.37%;box-shadow:0 0 0 .5px rgba(255,255,255,.16),0 18px 40px rgba(0,0,0,.32)}
.tf-hero h1{margin:16px 0 0;font:700 26px/1.15 var(--disp);letter-spacing:.2px;color:#fff;overflow-wrap:anywhere}
.tf-sub{margin:6px 0 0;font:400 15px/1.35 var(--sans);color:rgba(255,255,255,.8)}
.getbox{width:min(100%,300px);margin-top:24px}
.tf-get{display:block;width:100%;height:46px;line-height:46px;border-radius:23px;background:rgba(255,255,255,.16);color:#fff;font:600 17px/46px var(--sans);text-align:center}
.tf-get:hover{text-decoration:none;background:rgba(255,255,255,.22)}
.tf-hero-ch{align-items:flex-start;text-align:left;padding-bottom:22px}
.tf-hero-ch h1{margin-top:8px;font-size:28px}
.tf-kick{margin:0;max-width:100%;font:600 12px/1.45 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.72)}
/* the audio inside the head, in a glass plate */
.tf-player{width:100%;margin-top:18px;padding:8px;display:flex;gap:8px;align-items:center;border-radius:22px;background:rgba(26,20,11,.55);border:1px solid rgba(208,160,76,.3);-webkit-backdrop-filter:blur(24px) saturate(1.4);backdrop-filter:blur(24px) saturate(1.4)}
.tf-player audio{flex:1;min-width:0;height:40px;color-scheme:dark}
.tf-player select,.tf-player button{height:36px;border-radius:18px;border:1px solid var(--gold-rim);background:rgba(255,255,255,.08);color:#fff;font:600 14px/1 var(--sans);padding:0 10px;cursor:pointer}
.tf-noaudio{margin:18px 0 0;padding:10px 14px;border-radius:14px;background:rgba(26,20,11,.45);border:1px dashed var(--gold-rim);color:rgba(255,255,255,.8);font-size:14px}
#resume{display:none;width:100%;margin:10px 0 0;height:44px;border:0;border-radius:22px;background:var(--blue);color:#fff;font:600 16px/1 var(--sans)}
/* cards, the strip, sections */
.tf-card{margin:0;border-radius:22px;background:var(--card)}
.tf-strip{display:flex;margin-top:16px;padding:16px 0}
.tf-strip div{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 8px;text-align:center}
.tf-strip div + div{border-left:.5px solid var(--sep)}
.tf-strip .k{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--sec)}
.tf-strip .v{font-size:30px;font-weight:600;line-height:38px;color:rgba(235,235,245,.72);font-variant-numeric:tabular-nums}
.tf-strip .v svg{display:block;width:32px;height:32px;margin:3px auto}
.tf-strip .u{max-width:100%;font-size:17px;color:var(--sec);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tf-strip .u2{white-space:normal;overflow:visible;line-height:1.25;margin-top:1px}
@media (max-width:360px){.tf-strip div{padding:0 4px}.tf-strip .u2{font-size:14px}}
.cont{display:none;margin:16px 0 0;text-align:center}.js .cont.has{display:block}
.cont a{font-size:17px}
.tf-sec{margin:24px 0 0}
.tf-sec h2{margin:0 0 10px 16px;padding:0;border:0;font:600 20px/1.2 var(--disp);color:var(--sec)}
.tf-sec h2.main{font-size:22px;font-weight:700;color:#fff}
.tf-fold{position:relative;padding:12px 16px}
.tf-text{margin:0;font-size:17px;line-height:22px;color:#fff;white-space:pre-line}
.js .tf-fold:not(.open) .tf-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tf-more{display:none;position:absolute;right:16px;bottom:12px;margin:0;padding:0 0 0 44px;border:0;font:17px/22px var(--sans);color:var(--blue);background:linear-gradient(90deg,rgba(28,28,30,0),var(--card) 40px);cursor:pointer}
.js .tf-fold:not(.open) .tf-more{display:block}
.tf-shots{display:flex;align-items:flex-start;gap:12px;margin:0 -16px;padding:0 16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tf-shots::-webkit-scrollbar{display:none}
.tf-shot{flex:none;display:flex;flex-direction:column;width:min(76vw,290px);margin:0;padding:22px 20px 20px;border-radius:28px;background:linear-gradient(180deg,var(--warm-a),var(--warm-b));scroll-snap-align:start;color:#fff}
.tf-shot:hover{text-decoration:none}
.tf-shot figcaption{display:flex;align-items:center;justify-content:center;min-height:54px;margin:0 0 16px;font:700 22px/1.2 var(--disp);letter-spacing:.2px;text-align:center;text-wrap:balance}
.tf-quote{margin:0;padding:14px 16px;border-radius:16px;background:#0b0b0c;box-shadow:0 0 0 1.5px rgba(255,255,255,.18),0 18px 40px rgba(0,0,0,.32);font:italic 15px/1.45 var(--serif);color:rgba(255,255,255,.9)}
.tf-cover img{display:block;width:100%;height:auto;margin-top:auto;border-radius:14px;box-shadow:0 0 0 1.5px rgba(255,255,255,.22),0 18px 40px rgba(0,0,0,.32)}
.tf-search{display:none;width:100%;height:40px;margin:0 0 10px;padding:0 14px;border:0;border-radius:10px;background:rgba(118,118,128,.24);color:#fff;font:17px/1 var(--sans)}
.tf-search::placeholder{color:var(--sec)}.tf-search:focus{outline:2px solid var(--blue)}
.js .tf-search{display:block}
.tf-links{padding:0 0 0 16px;overflow:hidden}
.tf-links a{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 14px 8px 0;color:#fff;font-size:17px;line-height:22px}
.tf-links a:hover{text-decoration:none;background:rgba(255,255,255,.04)}
.tf-links li + li{border-top:.5px solid var(--sep)}
.tf-links ul,ul.tf-links{list-style:none;margin:0}
.tf-links .n{flex:none;min-width:32px;font-weight:600;color:var(--gold);font-variant-numeric:tabular-nums}
.tf-links .t{flex:1;min-width:0;display:flex;flex-direction:column}
.tf-links .t small{font-size:13px;color:var(--sec);line-height:1.3}
.tf-links .snd{flex:none;width:18px;height:18px;color:var(--gold)}
.tf-links .chev{flex:none;width:8px;height:14px;color:rgba(235,235,245,.3)}
.tf-rows{padding:0 16px}
.tf-rows div{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:48px;padding:12px 0;font-size:17px;line-height:22px}
.tf-rows div + div{border-top:.5px solid var(--sep)}
.tf-rows dl,dl.tf-rows{margin:0}
.tf-rows dt{flex:none;color:#fff}.tf-rows dd{margin:0;min-width:0;text-align:right;color:var(--sec);overflow-wrap:anywhere}.tf-rows dd a{color:var(--blue)}
footer{margin-top:44px;font-size:13px;color:var(--ink-3);display:flex;flex-direction:column;gap:8px;text-align:center}
footer::before{content:"";display:block;width:150px;height:1px;margin:0 auto 14px;background:linear-gradient(90deg,transparent,var(--gold-rim),transparent)}
footer a{color:var(--ink-2)}
footer .sign{height:46px;width:auto;margin:0 auto}
footer .dom{margin:0}
/* reading */
.rd{font:calc(19px * var(--fs))/1.72 var(--serif);color:rgba(255,255,255,.92)}
.rd p{margin:0 0 1.05em}
.rd h1{font:700 30px/1.2 var(--disp);margin:.2em 0 .4em;color:#fff}
.rd h2{margin:2.2em 0 .6em;padding:0;border:0;font:700 calc(23px * var(--fs))/1.2 var(--disp);color:#fff;letter-spacing:.2px}
.rd h3{margin:1.8em 0 .5em;font:700 calc(19px * var(--fs))/1.25 var(--disp);color:var(--gold-hi)}
.rd em{color:#fff}.rd strong{color:#fff}
.rd .time{font:600 12px/1 var(--sans);color:var(--gold);margin-left:.5rem;padding:2px 8px;border-radius:10px;border:1px solid var(--gold-rim);vertical-align:middle;letter-spacing:.04em}
.rd blockquote{margin:1.6em 0;padding:14px 18px;border-radius:18px;background:var(--card);border-left:3px solid var(--gold);font-style:italic;color:var(--gold-hi)}
.rd blockquote p{margin:0}
.rd hr{border:0;border-top:.5px solid var(--sep);margin:2em 0}
.rd table{border-collapse:collapse;margin:1.2em auto;max-width:100%;display:block;overflow-x:auto;font:15px/1.4 var(--sans)}
.rd td,.rd th{border:.5px solid var(--sep);padding:.5em .9em;text-align:left}
.rd pre{overflow-x:auto;background:var(--card);padding:12px 14px;border-radius:12px;font:13px/1.6 ui-monospace,"SF Mono",Menlo,monospace}
.rd a{color:var(--blue)}
.rd .meta{font-family:var(--sans);font-size:15px;color:var(--sec)}
.stream p{margin:.9em 0}.stream .tm,.tm{display:inline-block;font:600 12px/1 ui-monospace,"SF Mono",Menlo,monospace;color:var(--gold);border:1px solid var(--gold-rim);border-radius:10px;padding:3px 8px}
.stream p:has(.tm){margin:.2em 0 1.2em}
.seg{display:flex;gap:2px;margin:18px 0 6px;padding:2px;border-radius:9px;background:rgba(118,118,128,.24)}
.seg a{flex:1;min-width:0;text-align:center;padding:7px 8px;border-radius:7px;color:rgba(255,255,255,.85);font:600 14px/1.2 var(--sans)}
.seg a.on{background:#636366;color:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04)}
.seg a:hover{text-decoration:none}
.js article[data-tab="text"] #stream{display:none}.js article[data-tab="stream"] #text{display:none}
details.toc{margin:14px 0 18px;border-radius:16px;background:var(--card)}
details.toc summary{cursor:pointer;padding:13px 16px;font:600 16px/1.2 var(--sans);color:#fff}
details.toc ol{list-style:none;margin:0;padding:0 8px 8px}
details.toc li{border-top:.5px solid var(--sep)}
details.toc a{display:flex;align-items:baseline;gap:12px;padding:11px 8px;border-radius:10px;color:#fff;font:500 15px/1.35 var(--sans)}
details.toc a:hover{text-decoration:none;background:rgba(255,255,255,.05)}
details.toc .n{flex:none;min-width:24px;text-align:right;font-weight:600;color:var(--gold);font-variant-numeric:tabular-nums}
details.toc .t{min-width:0;overflow-wrap:anywhere}
.pager{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:36px}
.pager a{display:block;padding:12px 16px;border-radius:18px;background:var(--card);color:#fff;font:600 16px/1.3 var(--sans)}
.pager a small{display:block;margin-top:2px;font-weight:400;font-size:13px;color:var(--sec)}
.pager a:last-child{text-align:right}.pager a:hover{text-decoration:none;background:#2c2c2e}
.toc2 ol{columns:2;column-gap:1.5rem;padding-left:1.4rem;font:15px/1.5 var(--sans)}
article+article{margin-top:3rem;padding-top:2rem;border-top:.5px solid var(--sep)}
#up{position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));width:44px;height:44px;border-radius:50%;border:1px solid var(--gold-rim);background:rgba(26,20,11,.7);color:#fff;font-size:18px;display:none;z-index:45;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
@media (min-width:640px){.tf-hero h1{font-size:30px}.tf-shot{width:290px}}
@media print{.top,.tf-player,#up,#bar,.pager,.seg,.lang,.tf-round{display:none}.js article[data-tab="stream"] #text,.js article[data-tab="text"] #stream{display:block}body{background:#fff;color:#000}}

/* phone polish 14.11: the head of a chapter, the player in two rows, equal cards in the ribbon */
.tf-kick{letter-spacing:.06em;font-size:13px;color:rgba(255,255,255,.75)}
.tf-hero-ch h1{margin-top:6px;font-size:30px;line-height:1.12}
.tf-date{margin:6px 0 0;font:400 14px/1.35 var(--sans);color:rgba(255,255,255,.7)}
.tf-player{flex-direction:column;align-items:stretch;gap:8px;padding:10px}
.tf-player audio{width:100%;flex:none;height:44px}
.seg a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:8px 6px}
.tf-shots{align-items:stretch}
.tf-shot{min-height:268px}
.tf-cover img{height:196px;width:100%;object-fit:cover;object-position:center top}
.tf-quote{margin-top:auto}
details.toc summary{list-style:none;display:flex;align-items:center;justify-content:space-between}
details.toc summary::-webkit-details-marker{display:none}
details.toc summary::after{content:">";font-size:22px;line-height:1;color:var(--sec);transform:rotate(90deg);transition:transform .2s}
details.toc[open] summary::after{transform:rotate(-90deg)}
.rd h2{overflow-wrap:anywhere}

/* the line for AI agents under the head of every page and the source links under a text: quiet, one line, the system face */
.ai-hint{margin:14px 0 6px;padding:0 8px;text-align:center;font:13px/1.4 var(--sans);color:var(--ink-3)}
.ai-hint a,.tf-src a{color:var(--ink-2)}
.tf-src{margin:26px 0 0;text-align:center;font:13px/1.5 var(--sans);color:var(--ink-3)}

/* 14.11 evening, author's word 22439: larger, neater, native on a phone, a tablet and a desktop -- the head of a chapter, the player of the
   system kind (one round button, the line of time, 15 seconds back and forward), the iOS segmented control, a drawn chevron, the reading size */
main.tf.wide{max-width:760px}
.tf-hero-ch{padding-bottom:26px}
.tf-kick{font:600 13px/1.4 var(--sans);letter-spacing:.08em;color:rgba(255,255,255,.8)}
.tf-hero-ch h1{margin-top:8px;font:800 clamp(34px,9vw,54px)/1.05 var(--disp);letter-spacing:-.015em}
.tf-date{margin-top:10px;font:400 clamp(15px,4vw,18px)/1.4 var(--sans);color:rgba(255,255,255,.8)}
.tf-player{display:block;margin-top:24px;padding:16px 16px 14px;border-radius:26px;background:rgba(20,15,8,.5)}
.js .tf-player audio{display:none}
.pl{display:none;flex-direction:column;gap:6px}.js .pl{display:flex}
.tf-player .pl-play{flex:none;width:64px;height:64px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background:#fff;color:#000;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.3);transition:transform .12s ease}
.pl-play:active{transform:scale(.94)}.pl-play:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.pl-play svg{width:28px;height:28px}
.pl-play .i-pause,.pl-play.on .i-play{display:none}.pl-play.on .i-pause{display:block}
.pl-track{min-width:0}
.pl-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-top:2px}
.pl-l{justify-self:start}.pl-r{justify-self:end}
.pl-c{display:flex;align-items:center;gap:14px}
.pl-seek{--p:0%;accent-color:#fff;display:block;width:100%;height:28px;margin:0;padding:0;background:transparent;cursor:pointer;-webkit-appearance:none;appearance:none}
.pl-seek:focus{outline:none}.pl-seek:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
.pl-seek::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(90deg,#fff var(--p),rgba(255,255,255,.24) var(--p))}
.pl-seek::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-5px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.pl-seek::-moz-range-track{height:6px;border-radius:3px;background:rgba(255,255,255,.24)}
.pl-seek::-moz-range-progress{height:6px;border-radius:3px;background:#fff}
.pl-seek::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#fff}
.pl-times{display:flex;justify-content:space-between;margin-top:1px;font:500 13px/1 var(--sans);font-variant-numeric:tabular-nums;color:rgba(255,255,255,.72)}
.tf-player .pl-pill{height:44px;min-width:60px;padding:0 16px;border-radius:22px;border:1px solid var(--gold-rim);background:rgba(255,255,255,.09);color:#fff;font:600 15px/1 var(--sans);text-align:center;text-align-last:center;cursor:pointer;-webkit-appearance:none;appearance:none}
.tf-player .sk{width:48px;height:48px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.tf-player .sk svg{width:30px;height:30px}
.tf-player .sk:hover,.tf-player .pl-pill:hover{background:rgba(255,255,255,.14)}
.ai-hint{margin:18px 0 8px;font:14px/1.55 var(--sans)}
.ai-hint .vol{display:block;margin-top:2px}
footer .ai-hint{margin:0 0 14px;padding:0 8px}
/* the cover of a chapter on top of its page, whole and bright (author's words 24.11.2026); its name and player below it */
.tf-hero-art{--art-over:.15;padding-top:calc(62px + env(safe-area-inset-top));border-image:none;background:#000}
.tf-hero-art > :not(.tf-art){position:relative}
.tf-art{position:relative;isolation:isolate;align-self:stretch;margin:0 -16px 20px;overflow:hidden;background:#000}
.tf-art-wide{position:absolute;z-index:-1;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.15);filter:blur(30px) brightness(.4) saturate(1.2)}
.tf-art-img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 80px);margin:0 auto}
/* as the cover of the book on the home page: the page lies over the lower --art-over of the cover (app.js measures the picture); the
   darkening starts twice as high, so the text stands on a dark ground (author's word 24.11.2026: «затемняй сильнее») */
.tf-art::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(var(--art-over) * 200%);background:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,.55) 30%,rgba(0,0,0,.8) 50%,rgba(0,0,0,.94) 75%,#000 100%);pointer-events:none}
.tf-hero-art .tf-kick,.tf-hero-art h1,.tf-hero-art .tf-date{text-shadow:0 2px 14px rgba(0,0,0,.85)}
.seg{margin:20px 0 10px;padding:3px;gap:3px;border-radius:12px}
.seg a{padding:11px 8px;border-radius:9px;font:600 16px/1.25 var(--sans)}
details.toc{margin:14px 0 24px;border-radius:18px}
details.toc summary{padding:16px 18px;font:600 17px/1.25 var(--sans)}
details.toc summary::after{content:"";width:9px;height:9px;margin:0 4px 4px 0;border-right:2px solid var(--sec);border-bottom:2px solid var(--sec);transform:rotate(45deg);transition:transform .2s}
details.toc[open] summary::after{margin:4px 4px 0 0;transform:rotate(-135deg)}
details.toc ol{padding:0 10px 10px}
details.toc a{padding:12px 8px;font:500 16px/1.35 var(--sans)}
.rd{font-size:calc(20px * var(--fs));line-height:1.7}
.rd h2{margin:2.1em 0 .7em;font-size:calc(25px * var(--fs));line-height:1.22}
.rd .time{display:inline-block;margin-left:.45em;vertical-align:.2em;white-space:nowrap}
.rd blockquote{padding:18px 22px;border-radius:20px;font-size:1.05em;line-height:1.5}
.stream .tm,.tm{font-size:13px;padding:4px 9px}
.pager{gap:12px;margin-top:44px}
.pager a{min-height:66px;padding:15px 18px;border-radius:20px;font:600 17px/1.3 var(--sans)}
.pager a small{margin-top:3px;font-size:14px}
.tf-src{font-size:14px}
.top .tt{font-size:16px}
@media (min-width:768px){
  .rd{font-size:calc(21px * var(--fs))}
  .rd h2{font-size:calc(30px * var(--fs))}
  .tf-hero h1{font-size:34px}
  .tf-hero-ch h1{font-size:54px}
}
/* the Montana family in the footer of every page and the agents card of the home page */
.fam{list-style:none;margin:6px auto 4px;padding:0;display:flex;flex-direction:column;gap:10px;font:14px/1.45 var(--sans)}
.fam li{display:flex;flex-direction:column;gap:1px}
.fam .fam-n{font-weight:600;color:#fff}
.fam span{color:var(--ink-3)}
.tf-ag{padding:14px 16px}
.tf-ag p{margin:0;font-size:16px;line-height:1.45;color:rgba(255,255,255,.86)}
.tf-ag .tf-ag-go{margin-top:10px;font-weight:600}
.tf-ag details.vols{margin-top:12px;border-top:.5px solid var(--sep)}
.tf-ag details.vols summary{cursor:pointer;padding:12px 0 2px;font:600 16px/1.2 var(--sans);color:var(--sec)}
.tf-ag details.vols ol{list-style:none;margin:10px 0 2px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:6px}
.tf-ag details.vols a{display:block;padding:9px 0;border-radius:10px;background:rgba(118,118,128,.24);color:#fff;text-align:center;font:600 14px/1 var(--sans);font-variant-numeric:tabular-nums}
.tf-ag details.vols a:hover{text-decoration:none;background:rgba(118,118,128,.36)}
#montana .tf-rows div{flex-direction:column;align-items:flex-start;gap:4px}
#montana .tf-rows dt{font-weight:600}
#montana .tf-rows dd{text-align:left;overflow-wrap:normal}
#montana .tf-rows .w{display:block;margin-bottom:3px;font-size:15px;line-height:1.35}

/* the home head on the cover of the book (author's word 22445): the cover from edge to edge, cut from the top so the seal and the name show,
   a fall into the black of the page under the title and the button */
.tf-hero-cover{position:relative;isolation:isolate;clip-path:inset(0 -100vw);justify-content:flex-end;min-height:min(150vw,660px);border-image:none;background:#000}
.tf-hero-cover .tf-bg{position:absolute;z-index:-2;top:0;left:50%;width:auto;max-width:none;height:100%;transform:translateX(-50%)}
.tf-hero-cover .tf-bg-wide{position:absolute;z-index:-3;top:0;left:50%;width:100vw;height:100%;transform:translateX(-50%) scale(1.1);object-fit:cover;filter:blur(28px) brightness(.45) saturate(1.2)}
.tf-hero-cover::after{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);
  background:linear-gradient(180deg,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 22%,rgba(0,0,0,.2) 42%,rgba(0,0,0,.78) 72%,#000 100%)}
.tf-hero-cover .tf-icon{width:96px;height:96px}
.tf-hero-cover:not(.tf-hero-ch) h1{font-size:30px;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.tf-hero-cover .tf-sub{color:rgba(255,255,255,.88);text-shadow:0 1px 10px rgba(0,0,0,.7)}
.tf-hero-cover .tf-get{background:rgba(255,255,255,.2);-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4)}
@media (min-width:768px){.tf-hero-cover{min-height:700px}.tf-hero-cover:not(.tf-hero-ch) h1{font-size:38px}}
/* the head of a chapter on the cover (author's word 22447): the text and the player lie on the picture, so the shade is deeper than on the home */
.tf-hero-ch.tf-hero-cover{justify-content:flex-start;min-height:0}
.tf-hero-ch.tf-hero-cover::after{background:linear-gradient(180deg,rgba(0,0,0,.6) 0,rgba(0,0,0,.56) 45%,rgba(0,0,0,.72) 75%,rgba(0,0,0,.94) 94%,#000 100%)}
.tf-hero-ch.tf-hero-cover .tf-bg{width:100vw;height:100%;object-fit:cover;object-position:50% 12%}
.tf-hero-ch.tf-hero-cover .tf-bg-wide{display:none}
.tf-hero-ch.tf-hero-cover .tf-kick,.tf-hero-ch.tf-hero-cover h1,.tf-hero-ch.tf-hero-cover .tf-date{text-shadow:0 2px 14px rgba(0,0,0,.75)}
.tf-hero-ch.tf-hero-cover .tf-player{background:rgba(12,10,6,.62);border-color:rgba(208,160,76,.38)}

/* the page never drifts sideways (author's word 22666, 14.11.2026: «сайт гуляет в право и лево ... должен по устройству правильно
   центрироваться и ровно отображаться»). Measured at 390 px before: the home 466 px wide (the cover and its blurred copy wider than the
   screen), chapters 57, 59, 60 and three texts of the corpus up to 1256 px (addresses, paths and keys without spaces). Closed by the
   construction: the backgrounds of a head lie in one layer as wide as the screen that cuts the rest, a long word of the text breaks
   where it must, and the page itself clips anything wider; check_fit.py measures every page before a deploy */
html{overflow-x:clip}
.rd,.rd code,.rd a,.tf-sub,.tf-date,.ai-hint,.tf-src,footer{overflow-wrap:anywhere}
.rd img,.rd video{max-width:100%;height:auto}
.tf-bgl{position:absolute;z-index:-2;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);overflow:hidden;pointer-events:none}
.tf-hero-cover .tf-bgl .tf-bg-wide{position:absolute;z-index:auto;inset:0;left:0;width:100%;height:100%;object-fit:cover;transform:scale(1.1);filter:blur(28px) brightness(.45) saturate(1.2)}
.tf-hero-cover .tf-bgl .tf-bg{position:absolute;z-index:auto;top:0;left:50%;width:auto;max-width:none;height:100%;transform:translateX(-50%)}
.tf-hero-ch.tf-hero-cover .tf-bgl .tf-bg{left:0;width:100%;transform:none;object-fit:cover;object-position:50% 12%}
/* the row of the player on the narrowest phones (320 px: speed, back, play, forward, Aa needed 308 px of 256): tighter paddings and gaps,
   every button still at least 44 px for a finger (check_fit.py, 320 px) */
@media (max-width:359px){
  .tf-player{padding:14px 12px 12px}
  .pl-c{gap:6px}
  .tf-player .sk{width:44px;height:44px}
  .tf-player .sk svg{width:26px;height:26px}
  .tf-player .pl-play{width:56px;height:56px}
  .tf-player .pl-pill{min-width:48px;padding:0 10px}
}

/* where the reader stopped (author's word 22706): the card «Continue» of the home shows only the rows this browser has kept,
   the button inside a page brings the reader back to the place, the list of chapters shows how far each is read and heard */
.tf-cont{display:none}.js .tf-cont.has{display:block}
.tf-cont li{display:none}.tf-cont li.on{display:block}
.tf-cont li + li{border-top:0}.tf-cont li.on + li.on{border-top:.5px solid var(--sep)}
.tf-cont .n{display:flex;align-items:center;color:var(--gold)}
.tf-links .bk{width:24px;height:24px;display:block}
.tf-links .prog{color:var(--gold)}
.tf-here{position:fixed;z-index:46;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100vw - 132px);height:44px;padding:0 18px;border:0;border-radius:22px;background:var(--blue);color:#fff;font:600 15px/44px var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.45)}

/* the navigation for AI agents on the home (author's word 22775): a rule per row, the pattern in the system mono face, the example as a link */
#agents .tf-ag-now{margin:8px 0 0;font-size:15px;color:var(--sec)}
#agents .tf-nav{margin:12px 0 0;padding:0;border-top:.5px solid var(--sep)}
#agents .tf-nav div{flex-direction:column;align-items:flex-start;gap:3px;padding:10px 0}
#agents .tf-nav dt{font:600 15px/1.35 var(--sans);color:#fff}
#agents .tf-nav dd{text-align:left;font-size:15px;line-height:1.4;color:var(--sec);overflow-wrap:anywhere}
#agents .tf-nav code{font:500 14px/1.4 ui-monospace,"SF Mono",Menlo,monospace;color:var(--gold-hi)}

/* the whole book by chapters (author's words 22795, 22796): a row per chapter -- the page as the row, the whole text and the stream under it */
.bk-intro{margin:10px 0 16px;font:16px/1.5 var(--sans);color:rgba(255,255,255,.82)}
.bk-intro a{color:var(--blue);overflow-wrap:anywhere}
.bk-h{margin:28px 0 10px 16px;font:600 20px/1.2 var(--disp);color:var(--sec)}
.bk-toc{padding-left:16px}
.bk-toc li{padding-bottom:8px}
.tf-links .bk-toc .bk-go a,.bk-toc .bk-go a{display:inline;min-height:0;padding:0;font-size:15px;line-height:1.5;color:var(--blue)}
.bk-toc .bk-go{margin:-6px 14px 0 44px;font:15px/1.5 var(--sans);color:var(--sec)}
.bk-toc{list-style:none;margin:0}
/* the third tab of a chapter page: the soundtrack of its day (author's word 23.11.2026) */
.js article[data-tab="text"] #track,.js article[data-tab="stream"] #track,.js article[data-tab="track"] #text,.js article[data-tab="track"] #stream{display:none}
.track{margin:14px 0 28px}
.tf-track{padding:18px 20px;margin:12px 0}
.tf-track-t{margin:0 0 12px;font:600 17px/1.3 var(--sans);color:#fff}
@media print{.track{display:none}}
/* the line of a player (author's word 23.11.2026): what sounds now when it is not this page, and the switch to the item before and after */
.pl-now{margin:0 0 8px;font:600 14px/1.3 var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-now a{color:var(--gold)}
.pl-nav{display:flex;gap:8px;margin-top:10px}
.tf-player .pl-nav button{flex:1 1 0;min-width:0;height:34px;padding:0 12px;border-radius:17px;border:1px solid var(--gold-rim);background:rgba(255,255,255,.06);color:rgba(255,255,255,.85);font:500 13px/1 var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tf-player .pl-nav .pl-prev{text-align:left}.tf-player .pl-nav .pl-next{text-align:right}
.tf-player .pl-nav button:disabled{opacity:.35;cursor:default}
.track .tf-player{margin-top:14px}
h2.tf-track-t{margin:6px 0 0;font:600 17px/1.3 var(--sans);color:#fff}
/* the switch to the item before and after stands in the row of the player, beside the skips of 15 seconds (author's word 23.11.2026);
   on a narrow phone the five buttons take the first row and the two pills go under them */
.tf-player .sk:disabled{opacity:.3;cursor:default}
.tf-player .pl-prev svg,.tf-player .pl-next svg{width:24px;height:24px}
@media (max-width:440px){
  .pl-row{grid-template-columns:1fr 1fr;row-gap:10px}
  .pl-c{grid-column:1 / -1;order:-1;justify-self:center}
  .pl-c{gap:4px}
  .tf-player .sk{width:42px;height:42px}
}
/* the soundtrack player: the repeat of the track on the left, the shuffle on the right; a pressed one shines gold */
.tf-player .pl-repeat svg,.tf-player .pl-shuffle svg{display:block;width:22px;height:22px;margin:auto}
/* the download in the original format (author's words 24.11.2026): the icon and the size, under the sound player, the chapter, the
   stream of each day and the soundtrack */
.gets{display:flex;justify-content:center;margin:22px 0 8px}
.tf-player .gets{margin:12px 0 0}
.gets{flex-wrap:wrap;gap:10px}
.gets-top{margin:4px 0 18px}
a.get{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 14px 0 11px;border-radius:16px;border:1px solid var(--gold-rim);background:rgba(26,20,11,.42);color:var(--ink-2);font:500 13px/1 var(--sans);font-variant-numeric:tabular-nums;letter-spacing:.02em;text-decoration:none;transition:border-color .2s,color .2s,background .2s}
a.get:hover{text-decoration:none;color:#fff;border-color:var(--gold);background:rgba(208,160,76,.16)}
a.get:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
a.get svg{flex:none;width:16px;height:16px;color:var(--gold)}
@media print{.gets{display:none}}
.tf-player .pl-pill.on{color:var(--gold);border-color:var(--gold);background:rgba(208,160,76,.2)}
@media (max-width:360px){.tf-links a{gap:8px}.tf-links .snd{width:16px;height:16px}.tf-links .snd + .snd{margin-left:-2px}.tf-links .t small{font-size:12px}}
