/* flat.css: small additions for Ghost-rendered pages on top of the post-pages design (posts.css). */
.site nav ul{display:contents;list-style:none;margin:0;padding:0}
.site nav li{display:contents}
/* wide and full-width cards slide over the sticky contents rail instead of under its text */
.content .kg-width-wide,.content .kg-width-full{position:relative;z-index:1}
.post.page .phead h1{margin-bottom:.2em}
.pagination{display:flex;justify-content:center;gap:1.5em;margin:2em 0;font-family:var(--osd);font-size:20px}
/* Ghost's own card assets handle kg-* layout; keep wide/full images inside the reading column's rhythm */
.gh-content .kg-width-wide{max-width:min(1100px,94vw)}
.tt-list .k{text-transform:uppercase}

/* Ghost's custom fonts (Settings → Design → Typography): Ghost adds gh-font-* body classes and the --gh-font-* variables */
body[class*="gh-font-heading"]{--display:var(--gh-font-heading)!important}
body[class*="gh-font-body"]{--body:var(--gh-font-body)!important;--serif:var(--gh-font-body)!important}


.log .cols,.log .rows a{grid-template-columns:minmax(0,1fr) 7ch 8ch}
.log .rows a:hover .r::before,.log .rows a:focus-visible .r::before{content:none}
@media (max-width:640px){.log .rows a{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"d r" "b b"}}
.log-head .dek:empty{display:none}
.nextprev a .n{display:none}
body .nextprev > a,.nextprev a{grid-template-columns:1fr!important}
.deck .ctr{display:none}
/* the author photo from Ghost (Staff → profile picture) */
img.av{object-fit:cover;background:none!important}

.author .alinks{margin-top:8px;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px}
.author .alinks a{color:var(--muted);text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:3px}
.author .alinks a:hover{color:var(--ink);text-decoration-color:currentColor}
/* zoomed pictures open plain: no scanline band, no tracking wobble */
.lb .shot::before{display:none}
.lb.on .shot img{animation:none}

/* the accent colour (Design → Accent), from the room: the VCR's display, the rave-poster blue, the PC's phosphor; "Warm" keeps the
   post pages' own red-orange. It wins over every block that sets its own --accent (the log, the strip, the manuscript sheet). */
html[data-accent="cyan"] body,html[data-accent="cyan"] body *{--accent:#0b6b78!important}
html[data-accent="blue"] body,html[data-accent="blue"] body *{--accent:#2a45c8!important}
html[data-accent="green"] body,html[data-accent="green"] body *{--accent:#1c7038!important}
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"])[data-accent="cyan"] body,html:not([data-theme="light"])[data-accent="cyan"] body *{--accent:#5fd4e0!important}
  html:not([data-theme="light"])[data-accent="blue"] body,html:not([data-theme="light"])[data-accent="blue"] body *{--accent:#8aa4ff!important}
  html:not([data-theme="light"])[data-accent="green"] body,html:not([data-theme="light"])[data-accent="green"] body *{--accent:#6fe08c!important}
}
html[data-theme="dark"][data-accent="cyan"] body,html[data-theme="dark"][data-accent="cyan"] body *{--accent:#5fd4e0!important}
html[data-theme="dark"][data-accent="blue"] body,html[data-theme="dark"][data-accent="blue"] body *{--accent:#8aa4ff!important}
html[data-theme="dark"][data-accent="green"] body,html[data-theme="dark"][data-accent="green"] body *{--accent:#6fe08c!important}

/* the accent reaches Edit's code too (not Warm): keywords, the language label, "more", focus rings, the figure marker.
   Paper code follows light/dark; Screen code is dark glass whatever the theme, so it always takes the dark set. */
html[data-accent="blue"] body[data-read^="edit"] .code{--k:#2a45c8!important;--s:#2d6a3a!important;--n:#8a2360!important;--f:#086858!important;--t:#622dbe!important}
@media (prefers-color-scheme:dark){html:not([data-theme="light"])[data-accent="blue"] body[data-read^="edit"] .code{--k:#8aa4ff!important;--s:#9fd6a6!important;--n:#f0a0c8!important;--f:#79d8c2!important;--t:#d4a8f0!important}}
html[data-theme="dark"][data-accent="blue"] body[data-read^="edit"] .code,html[data-accent="blue"] body[data-read^="edit"][data-code="screen"] .code{--k:#8aa4ff!important;--s:#9fd6a6!important;--n:#f0a0c8!important;--f:#79d8c2!important;--t:#d4a8f0!important}
html[data-accent="blue"] body[data-read^="edit"] .code .lang,html[data-accent="blue"] body[data-read^="edit"] .code .more{color:var(--k)!important}
html[data-accent="blue"] body[data-read^="edit"] .code .acts button:focus-visible,html[data-accent="blue"] body[data-read^="edit"] .code .more:focus-visible{outline-color:var(--k)!important}
html[data-accent="blue"] body[data-read^="edit"] .lb figcaption[data-fig]:not([data-fig=""])::before{color:#8aa4ff!important}
html[data-accent="cyan"] body[data-read^="edit"] .code{--k:#0b6b78!important;--s:#7a5b00!important;--n:#8a2360!important;--f:#24478f!important;--t:#622dbe!important}
@media (prefers-color-scheme:dark){html:not([data-theme="light"])[data-accent="cyan"] body[data-read^="edit"] .code{--k:#5fd4e0!important;--s:#e8d36a!important;--n:#f0a0c8!important;--f:#9cc4ff!important;--t:#d4a8f0!important}}
html[data-theme="dark"][data-accent="cyan"] body[data-read^="edit"] .code,html[data-accent="cyan"] body[data-read^="edit"][data-code="screen"] .code{--k:#5fd4e0!important;--s:#e8d36a!important;--n:#f0a0c8!important;--f:#9cc4ff!important;--t:#d4a8f0!important}
html[data-accent="cyan"] body[data-read^="edit"] .code .lang,html[data-accent="cyan"] body[data-read^="edit"] .code .more{color:var(--k)!important}
html[data-accent="cyan"] body[data-read^="edit"] .code .acts button:focus-visible,html[data-accent="cyan"] body[data-read^="edit"] .code .more:focus-visible{outline-color:var(--k)!important}
html[data-accent="cyan"] body[data-read^="edit"] .lb figcaption[data-fig]:not([data-fig=""])::before{color:#5fd4e0!important}
html[data-accent="green"] body[data-read^="edit"] .code{--k:#1c7038!important;--s:#7a5a12!important;--n:#8a2360!important;--f:#24478f!important;--t:#622dbe!important}
@media (prefers-color-scheme:dark){html:not([data-theme="light"])[data-accent="green"] body[data-read^="edit"] .code{--k:#6fe08c!important;--s:#e2cf9b!important;--n:#f0a0c8!important;--f:#9cc4ff!important;--t:#d4a8f0!important}}
html[data-theme="dark"][data-accent="green"] body[data-read^="edit"] .code,html[data-accent="green"] body[data-read^="edit"][data-code="screen"] .code{--k:#6fe08c!important;--s:#e2cf9b!important;--n:#f0a0c8!important;--f:#9cc4ff!important;--t:#d4a8f0!important}
html[data-accent="green"] body[data-read^="edit"] .code .lang,html[data-accent="green"] body[data-read^="edit"] .code .more{color:var(--k)!important}
html[data-accent="green"] body[data-read^="edit"] .code .acts button:focus-visible,html[data-accent="green"] body[data-read^="edit"] .code .more:focus-visible{outline-color:var(--k)!important}
html[data-accent="green"] body[data-read^="edit"] .lb figcaption[data-fig]:not([data-fig=""])::before{color:#6fe08c!important}


body[data-read] .toc .deck,.resume,#strip #left{display:none!important}
body[data-read] .content > :is(h1,h2)::before{content:none!important}


body > a.skip{display:none!important}

.strip::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:env(safe-area-inset-top,0px);background:inherit}
/* the site header stays above that band while it scrolls away (the strip is z-index 10) */
header.site{z-index:11}
/* page footers' HOME chip: its inline teletext colour (white) made it invisible on the Edit styles' paper */
body[data-read^="edit"] .nextprev .fxrow > *{color:var(--soft)!important}
body[data-read^="edit"] .nextprev .fxrow a:hover{color:var(--ink)!important}


.site{justify-content:flex-start}
.site .name{margin-right:auto}
@media print{.pfoot{display:none}}
.site .ctl{display:flex;align-items:center;gap:6px;margin-left:6px}
.site .ctl .themeb{margin:0}
.site .ctl .ph-room,.pfoot .ph-room{font-family:var(--osd);font-size:17px;letter-spacing:.07em;line-height:inherit;color:var(--muted);text-decoration:none;padding:1px 8px 0;border:1px solid var(--rule);border-radius:3px}
.site .ctl .ph-room:hover,.pfoot .ph-room:hover{color:var(--ink)}
@media (max-width:719px){.site .ctl{position:absolute;top:12px;right:0;margin:0}.site .ctl .themeb{position:static}}
.pfoot{max-width:var(--wrap);margin:clamp(48px,7vw,80px) auto 0;display:flex;justify-content:space-between;align-items:center;gap:10px 18px;flex-wrap:wrap;border-top:1px solid var(--rule);padding-block:16px 22px}
.pfoot nav{display:flex;flex-wrap:wrap;gap:2px;margin-left:-8px}
.pfoot nav a{font-family:var(--osd);font-size:17px;letter-spacing:.07em;color:var(--muted);text-decoration:none;padding:2px 8px 1px}
.pfoot nav a:hover{color:var(--ink)}
/* the posts' MORE POSTS block keeps its Newer / Older / Posts rows; its teletext chips are gone */
.pend .nextprev .fxrow{display:none}


/* posts: nothing boxed above the title. The date, reading time and topics are in the row under it (the other reading
   styles keep their eyebrow line). On pages a label over the title is plain text: boxes are for the two header controls */
body[data-read^="edit"] .post:not(.page) .phead .eyebrow{display:none}
body[data-read^="edit"] .post:not(.page) .phead h1{margin-top:0}
body[data-read^="edit"] .post.page .phead .eyebrow > span:first-child{border:0;background:none;padding:0;letter-spacing:.1em}
/* a page title with nothing over it starts where the home's and the posts' titles start */
body[data-read^="edit"] .post.page .phead h1:first-child{margin-top:0}
.ph-warn-wrap:has(> .ph-warn[hidden]){padding-top:0}
/* the post lists (tag pages, /posts/?view=flat): the pages' 660px column and title size, row text flush with the column
   (the hover tint bleeds outward), and the same footer as everywhere */
.log{max-width:660px;padding-bottom:0}
.log-head{padding-top:clamp(28px,6vw,76px)}
.log-head h1{font-size:clamp(30px,4.2vw,46px);line-height:1.12;letter-spacing:-.012em;margin:0 0 .35em}
.log .cols{padding-inline:0}
.log .rows li{border-bottom:1px solid var(--rule)}
.log .rows a{margin-inline:-10px;border-bottom:0;border-radius:3px}
.log .yr{padding-inline:0}
.log .yr + .rows > li:first-child > a{border-top:0;margin-top:0}
@media (min-width:1100px){.log .yr + .rows > li:first-child{border-top:1px solid var(--ink);margin-top:-1px}}
@media (max-width:640px){.log .rows a{margin-inline:-4px}}


.site .themeb{--ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 3.5a8.5 8.5 0 0 1 0 17z' fill='%23000'/%3E%3C/svg%3E");box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:31px;min-width:0;height:29px;padding:0;font-size:0;letter-spacing:0}
.site .themeb[hidden]{display:none}
.site .themeb::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:var(--ti) center/contain no-repeat;mask:var(--ti) center/contain no-repeat}
html[data-theme="light"] .site .themeb{--ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4'/%3E%3C/svg%3E")}
html[data-theme="dark"] .site .themeb{--ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.4A8.6 8.6 0 1 1 9.6 4a6.9 6.9 0 0 0 10.4 10.4z'/%3E%3C/svg%3E")}

body[data-read^="edit"] .pend .nextprev .lbl{font-size:12px;color:var(--soft);margin-bottom:4px}
body[data-read^="edit"] .pend .nextprev > a{display:block;padding:9px 0 10px}
body[data-read^="edit"] .pend .nextprev > a .tt{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:baseline;gap:24px;font-family:"Fira Sans",sans-serif;font-size:15.5px;font-weight:500;line-height:1.4}
body[data-read^="edit"] .pend .nextprev > a .k{flex:none;margin:0;white-space:nowrap}
