/*
 * What an editor writes in a Jev News article or a page: WordPress's blocks in JevMade's lab-ledger look.
 * Loaded on single posts and pages after WordPress's own block library (functions.php), and in the block
 * editor (add_editor_style), so what is typed looks like what is published. .prose is the published page and
 * .is-root-container the editor's canvas; every rule names both.
 *
 * Rules that name .prose alone draw markup only the published page has: inc/blocks.php wraps tables and
 * galleries in rows that scroll sideways, a panorama in a scroller, and a file in a card with its first page.
 * assets/js/article.js adds Back and Next to those rows; without it they still scroll by touch.
 *
 * The site has one colour scheme (paper and ink); there is no dark look to follow.
 */

.written-notes{--notes-pad:clamp(1.5rem,4vw,2.5rem)}
:is(.prose,.is-root-container){font-size:1.05rem;line-height:1.75}
:is(.prose,.is-root-container)>*{margin-top:0;margin-bottom:1.45rem}
:is(.prose,.is-root-container)>:first-child{margin-top:0}
:is(.prose,.is-root-container)>:last-child{margin-bottom:0}
:is(.prose,.is-root-container) :is(h2,h3,h4){font-family:var(--sans);line-height:1.15;color:var(--ink)}
:is(.prose,.is-root-container) h2{font-size:clamp(1.5rem,3vw,1.9rem);margin:2.4rem 0 .8rem;letter-spacing:-.03em}
:is(.prose,.is-root-container) h3{font-size:1.25rem;margin:1.9rem 0 .6rem;letter-spacing:-.02em}
:is(.prose,.is-root-container) h4{font-size:1.05rem;margin:1.6rem 0 .5rem;letter-spacing:-.01em}
:is(.prose,.is-root-container) h2+h3,:is(.prose,.is-root-container) h3+h4{margin-top:1.1rem}
:is(.prose,.is-root-container) :is(ul,ol){padding-left:1.4rem}
:is(.prose,.is-root-container) li+li,:is(.prose,.is-root-container) li>:is(ul,ol){margin-top:.4rem}
:is(.prose,.is-root-container) li::marker{color:var(--amber)}
:is(.prose,.is-root-container) a{color:var(--amber);text-underline-offset:3px;text-decoration-thickness:1px}
:is(.prose,.is-root-container) a:hover{color:var(--ink)}
:is(.prose,.is-root-container) img{max-width:100%;height:auto}
/* Long addresses and words in a narrow column break rather than push the page sideways. */
:is(.prose,.is-root-container) :is(p,li,dd,figcaption,cite){overflow-wrap:anywhere}

/* A list of terms and what each means (a dl in a Custom HTML block). */
:is(.prose,.is-root-container) dl{margin:0 0 1.45rem;padding:1rem 1.15rem;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:.95rem;line-height:1.55}
:is(.prose,.is-root-container) dt{font:500 .8rem/1.4 var(--mono);color:var(--ink);letter-spacing:.02em}
:is(.prose,.is-root-container) dd{margin:.2rem 0 0;color:var(--ink-2)}
:is(.prose,.is-root-container) dd+dt{margin-top:.9rem;padding-top:.9rem;border-top:1px dashed var(--line)}

/* Quote: someone's words in the run of the story. Pull quote: one line lifted out, between rules. */
:is(.prose,.is-root-container) :is(blockquote,.wp-block-quote){margin:2rem 0;padding:.9rem 1.25rem;border:0;border-left:4px solid var(--amber);border-radius:0 8px 8px 0;background:var(--paper);color:var(--ink)}
:is(.prose,.is-root-container) blockquote p{margin:0}
:is(.prose,.is-root-container) blockquote p+p{margin-top:.65rem}
:is(.prose,.is-root-container) :is(blockquote,.wp-block-pullquote) cite{display:block;margin-top:.7rem;font:.74rem/1.45 var(--mono);font-style:normal;color:var(--ink-2)}
:is(.prose,.is-root-container) .wp-block-quote.is-style-large{padding:1.3rem 0;border:0;border-top:2px solid var(--ink);border-bottom:1px solid var(--line);border-radius:0;background:none}
:is(.prose,.is-root-container) .wp-block-pullquote{margin:2.4rem 0;padding:1.4rem 0;border:0;border-top:3px solid var(--ink);border-bottom:1px solid var(--line);text-align:left;font-size:inherit;line-height:inherit}
:is(.prose,.is-root-container) .wp-block-pullquote blockquote{margin:0;padding:0;border:0;background:none}
:is(.prose,.is-root-container) .wp-block-pullquote blockquote p{color:var(--ink);text-wrap:balance}
:is(.prose,.is-root-container) .wp-block-pullquote cite{text-transform:uppercase;letter-spacing:.06em;color:var(--amber)}

/* Pictures, video, audio, embeds and covers, each with its caption. */
:is(.prose,.is-root-container) :is(.wp-block-image,.wp-block-video,.wp-block-audio,.wp-block-embed,.wp-block-cover,.wp-block-media-text,.wp-block-table,.wp-block-gallery,.wp-block-file){margin-block:2rem}
:is(.prose,.is-root-container) .wp-block-image img{display:block;border:1px solid var(--line);border-radius:8px;background:var(--paper-2)}
:is(.prose,.is-root-container) figcaption,:is(.prose,.is-root-container) .wp-element-caption{margin:.6rem 0 0;font:.76rem/1.5 var(--mono);color:var(--ink-2);text-align:left}
:is(.prose,.is-root-container) .wp-block-image.aligncenter{display:table;margin-inline:auto}
:is(.prose,.is-root-container) .wp-block-image.aligncenter>figcaption{display:table-caption;caption-side:bottom}

/* An upright video stops short of the screen's height; WordPress would crop a video with a poster to its frame. */
:is(.prose,.is-root-container) .wp-block-video video{display:block;width:100%;max-height:min(70svh,40rem);border:1px solid var(--line);border-radius:9px;background:#171613;object-fit:contain}
:is(.prose,.is-root-container) .wp-block-audio{padding:.9rem 1rem;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
:is(.prose,.is-root-container) .wp-block-audio audio{display:block;width:100%;min-width:0}
:is(.prose,.is-root-container) .wp-block-audio figcaption{margin-top:.55rem}

/* Embeds. A website that says its player's shape gets wp-has-aspect-ratio from WordPress; others need one here. */
:is(.prose,.is-root-container) .wp-block-embed iframe{display:block;max-width:100%;border:0}
:is(.prose,.is-root-container) .wp-block-embed.is-type-video .wp-block-embed__wrapper,:is(.prose,.is-root-container) .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#171613}
:is(.prose,.is-root-container) .wp-block-embed.is-type-video:not(.wp-has-aspect-ratio,.is-provider-tiktok) .wp-block-embed__wrapper>iframe{width:100%;height:auto;aspect-ratio:16/9}
/* TikTok's player is upright: 325 by 578, and its frame is left to its own black. */
:is(.prose,.is-root-container) .wp-block-embed.is-provider-tiktok .wp-block-embed__wrapper{width:min(100%,20.3125rem);margin-inline:auto;border:0;background:none}
:is(.prose,.is-root-container) .wp-block-embed.is-provider-tiktok .wp-block-embed__wrapper>iframe{width:100%;height:auto;aspect-ratio:325/578;border-radius:9px}
/* Audio players: Spotify says 352 tall, Pocket Casts and SoundCloud need a height of their own. */
:is(.prose,.is-root-container) .wp-block-embed.is-provider-spotify iframe{width:100%;border-radius:12px}
:is(.prose,.is-root-container) .wp-block-embed.is-provider-pocket-casts iframe{width:100%;height:200px}
:is(.prose,.is-root-container) .wp-block-embed.is-provider-soundcloud iframe{width:100%;height:400px}
/* A map from OpenStreetMap (includes/embeds.php gives the frame its 4:3 shape). */
:is(.prose,.is-root-container) .jevmade-map{border:1px solid var(--line)!important;border-radius:9px}
/* Posts from X, Bluesky, Reddit, Mastodon and the rest sit centred at the width their networks draw them. */
:is(.prose,.is-root-container) .wp-block-embed.is-social-embed .wp-block-embed__wrapper{display:flex;flex-direction:column;align-items:center}
:is(.prose,.is-root-container) .wp-block-embed.is-social-embed figcaption{text-align:center}
:is(.prose,.is-root-container) :is(.twitter-tweet,.twitter-tweet-rendered,.bluesky-embed){width:100%!important;max-width:550px!important;margin-inline:auto!important}
/*
 * A post is a quotation until its network's script draws it, and stays one when the script is blocked: then it
 * reads as a plain card with the words and the link, not as the article's own quote.
 */
:is(.prose,.is-root-container) .wp-block-embed blockquote:is(.twitter-tweet,.bluesky-embed,.reddit-embed-bq,.mastodon-embed,.tiktok-embed,.instagram-media){box-sizing:border-box;width:100%;max-width:550px;margin:0 auto;padding:1rem 1.15rem;border:1px solid var(--line);border-left:4px solid var(--ink);border-radius:10px;background:var(--card);font:.92rem/1.55 var(--sans);font-style:normal;color:var(--ink)}
:is(.prose,.is-root-container) .wp-block-embed blockquote:is(.twitter-tweet,.bluesky-embed,.reddit-embed-bq,.mastodon-embed) p{font:inherit}
.prose .wp-block-embed :is(.twitter-tweet,.bluesky-embed) iframe{color-scheme:light}
:is(.prose,.is-root-container) .social-embed{width:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:.45rem}
:is(.prose,.is-root-container) .social-embed iframe{display:block;width:100%;border:1px solid var(--line);border-radius:10px;background:#fff}
:is(.prose,.is-root-container) .social-embed-linkedin iframe{height:min(760px,90svh)}
:is(.prose,.is-root-container) .social-embed-facebook iframe{height:540px}
:is(.prose,.is-root-container) .social-embed-facebook.social-embed-video iframe{height:380px}
:is(.prose,.is-root-container) .social-embed-instagram iframe{height:640px;max-width:540px}
:is(.prose,.is-root-container) .social-embed-threads iframe{height:520px;max-width:540px}
:is(.prose,.is-root-container) .social-embed-mastodon iframe{min-height:360px;max-width:540px}
:is(.prose,.is-root-container) .social-embed-link{margin:0;font:.74rem/1.4 var(--mono);color:var(--ink-2)}
:is(.prose,.is-root-container) .social-embed-link a{text-decoration:none}
:is(.prose,.is-root-container) .social-embed-fallback{align-items:flex-start;padding:1.1rem 1.3rem;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
:is(.prose,.is-root-container) .social-embed-fallback p{margin:0}

/* One of JevMade's own pages, linked on a line of its own (parts/entry-card.php). */
.entry-card{position:relative;display:grid;grid-template-columns:6.5rem minmax(0,1fr);gap:.9rem;align-items:start;width:100%;padding:.75rem;border:1px solid var(--line);border-left:4px solid var(--type-color,var(--ink));border-radius:10px;background:var(--card);font-family:var(--sans);text-align:left}
.entry-card[data-type=news]{--type-color:var(--ink)}
.entry-card-image{display:block;overflow:hidden;border-radius:6px;background:var(--paper-2)}
.entry-card-image img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border:0;border-radius:0}
.entry-card-text{display:grid;gap:.25rem;min-width:0}
.entry-card-label{font:500 .68rem/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--type-color,var(--amber))}
.prose .entry-card-title{font-weight:700;font-size:1rem;line-height:1.3;letter-spacing:-.01em;color:var(--ink);text-decoration:none;text-wrap:balance}
.prose .entry-card-title::after{content:"";position:absolute;inset:0;border-radius:inherit}
.prose .entry-card-title:focus-visible{outline:none}
.entry-card:has(a:focus-visible){outline:3px solid var(--amber-hot);outline-offset:2px}
.entry-card:hover{border-color:var(--ink)}
.entry-card-summary{font-size:.86rem;line-height:1.45;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prose .wp-block-embed:has(.entry-card)+.wp-block-embed:has(.entry-card){margin-top:-1.2rem}

/* Cover: words over a dimmed picture. White words, whatever WordPress guessed about the picture's lightness. */
:is(.prose,.is-root-container) .wp-block-cover{min-height:240px;padding:1.5rem;overflow:hidden;border-radius:10px;color:#fff}
:is(.prose,.is-root-container) .wp-block-cover.is-light .wp-block-cover__inner-container{color:#fff}
:is(.prose,.is-root-container) .wp-block-cover__inner-container{max-width:44ch;text-shadow:0 1px 12px rgba(0,0,0,.45)}
:is(.prose,.is-root-container) .wp-block-cover__inner-container>*{margin:0;color:#fff;font-family:var(--sans)}
:is(.prose,.is-root-container) .wp-block-cover__inner-container>*+*{margin-top:.5rem}
:is(.prose,.is-root-container) .wp-block-cover__inner-container :is(h2,h3){font-size:clamp(1.5rem,4vw,2.2rem);letter-spacing:-.03em;text-wrap:balance}
:is(.prose,.is-root-container) .wp-block-cover__inner-container p{font-size:clamp(1rem,2vw,1.15rem);line-height:1.45}
:is(.prose,.is-root-container) .wp-block-cover__image-background{border:0;border-radius:0}

/* Media and text: a picture beside a few paragraphs; on a phone, above them, a portrait kept to a height. */
:is(.prose,.is-root-container) .wp-block-media-text{gap:1rem 1.5rem;padding:1rem;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
:is(.prose,.is-root-container) .wp-block-media-text>:is(.wp-block-media-text__media,.wp-block-media-text__content){align-self:start;padding:0}
:is(.prose,.is-root-container) .wp-block-media-text__media img{border:1px solid var(--line);border-radius:7px}
:is(.prose,.is-root-container) .wp-block-media-text__content>*{margin:0}
:is(.prose,.is-root-container) .wp-block-media-text__content>*+*{margin-top:.9rem}
@media (max-width:600px){
  .prose .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media img{width:auto;max-width:100%;max-height:18rem;margin-inline:auto}
}

/* Columns are cards side by side; the \"Figures\" style draws each column's first line as a large number. */
:is(.prose,.is-root-container) .wp-block-columns{gap:1rem}
:is(.prose,.is-root-container) .wp-block-column{min-width:0;padding:1rem 1.15rem;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
:is(.prose,.is-root-container) .wp-block-column>*{margin:0}
:is(.prose,.is-root-container) .wp-block-column>*+*{margin-top:.75rem}
:is(.prose,.is-root-container) .wp-block-columns.is-style-figures{display:grid;gap:.6rem;margin-block:2rem}
:is(.prose,.is-root-container) .is-style-figures>.wp-block-column{padding:.9rem 1rem 1rem;border-top:3px solid var(--amber);background:var(--card)}
:is(.prose,.is-root-container) .is-style-figures>.wp-block-column>*{margin:.3rem 0 0;font:.85rem/1.4 var(--sans);color:var(--ink-2)}
:is(.prose,.is-root-container) .is-style-figures>.wp-block-column>:first-child{margin:0;font:700 clamp(1.6rem,4vw,2rem)/1.05 var(--sans);letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
@media (min-width:40rem){
  :is(.prose,.is-root-container) .wp-block-columns.is-style-figures{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
}
:is(.prose,.is-root-container) .wp-block-group{padding:1.2rem 1.35rem;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
:is(.prose,.is-root-container) .wp-block-group>*{margin-top:0;margin-bottom:0}
:is(.prose,.is-root-container) .wp-block-group>*+*{margin-top:.9rem}

/* A row that scrolls sideways inside an article: a table's columns or a gallery's pictures, on a phone. */
.swipe-track{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.swipe-track:focus-visible{outline-offset:-3px}
.swipe-controls{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem .85rem;font-family:var(--mono)}
.swipe-controls[hidden]{display:none}
.swipe-counter{margin:0;font-size:.74rem;color:var(--ink-2);font-variant-numeric:tabular-nums}
.swipe-buttons{display:flex;gap:.4rem}
.swipe-step{display:inline-flex;align-items:center;gap:.35rem;min-height:40px;padding:0 .8rem;border:1px solid var(--ink);border-radius:6px;background:var(--card);color:var(--ink);font:500 .78rem var(--mono);cursor:pointer}
.swipe-step:hover:not(:disabled){background:var(--ink);color:var(--paper)}
.swipe-step:disabled{border-color:var(--line);color:var(--ink-2);opacity:.6;cursor:default}

/* Table: a card with a ruled head; on a phone the first column names the row and the others pass behind it. */
:is(.prose,.is-root-container) .wp-block-table{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:var(--card)}
.prose .wp-block-table[data-swipe]{overflow:hidden}
:is(.prose,.is-root-container) .wp-block-table table{width:100%;margin:0;border-collapse:separate;border-spacing:0;font:.9rem/1.45 var(--sans);font-variant-numeric:tabular-nums}
:is(.prose,.is-root-container) .wp-block-table :is(th,td){padding:.7rem .85rem;border:0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;word-break:normal;overflow-wrap:normal;color:var(--ink)}
:is(.prose,.is-root-container) .wp-block-table :is(th,td):first-child{font-weight:700}
:is(.prose,.is-root-container) .wp-block-table thead :is(th,td){border-bottom:2px solid var(--ink);background:var(--paper-2);font:500 .72rem/1.3 var(--mono);text-transform:uppercase;letter-spacing:.06em;vertical-align:bottom}
:is(.prose,.is-root-container) .wp-block-table tbody tr:last-child>*{border-bottom:0}
:is(.prose,.is-root-container) .wp-block-table tfoot :is(th,td){border-top:1px solid var(--ink);border-bottom:0;color:var(--ink-2)}
:is(.prose,.is-root-container) .wp-block-table.is-style-stripes{border-bottom:1px solid var(--line)}
:is(.prose,.is-root-container) .wp-block-table.is-style-stripes tbody tr:nth-child(odd)>*{background-color:var(--paper)}
:is(.prose,.is-root-container) .wp-block-table.is-style-stripes tbody tr:nth-child(even)>*{background-color:var(--card)}
:is(.prose,.is-root-container) .wp-block-table figcaption{margin:0;padding:.6rem .85rem;border-top:1px solid var(--line);background:var(--paper)}
.prose .wp-block-table .swipe-controls{border-top:1px solid var(--line)}
.prose .swipe-track:has(>table){--first-column:7rem;container-type:inline-size;scroll-padding-left:var(--first-column)}
/*
 * Narrower than 34rem, a table of three columns or more would squeeze its words into broken stubs. Its first
 * column stays put and each other column is four fifths of the space left, so the next one shows at the edge.
 * A two-column table works out no wider than its space and is drawn whole. --columns: inc/blocks.php.
 */
@container (max-width:34rem){
  .prose .swipe-track>table{--column:calc((100cqw - var(--first-column))*.8);width:max(100%,calc(var(--first-column) + (var(--columns) - 1)*var(--column)));table-layout:fixed;hyphens:auto}
  .prose .swipe-track>table tr:first-child>:first-child{width:var(--first-column)}
  .prose .swipe-track>table :is(th,td){scroll-snap-align:start}
  .prose .swipe-track>table :is(th,td):first-child{position:sticky;left:0;z-index:1;border-right:1px solid var(--ink);background-color:var(--card);scroll-snap-align:none}
  .prose .swipe-track>table thead :is(th,td):first-child{background-color:var(--paper-2)}
  .prose .wp-block-table.is-style-stripes .swipe-track>table tbody tr:nth-child(odd)>:first-child{background-color:var(--paper)}
}

/* Gallery: a row to swipe on a phone, each caption under its picture; a grid from 40rem. */
.prose .wp-block-gallery.has-nested-images{display:block;padding:0}
.prose .wp-block-gallery>.swipe-track{display:flex;gap:.75rem}
/* WordPress sizes a gallery's pictures with :not(#individual-image) in its selectors; these rules carry it to win. */
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){display:block;flex:0 0 80%;width:auto;margin:0;scroll-snap-align:start}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):only-child{flex-basis:100%}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img{width:100%;height:auto;border:1px solid var(--line);border-radius:7px}
.prose .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{aspect-ratio:var(--gallery-shape,16/10);object-fit:cover}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)::before{content:none}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption{position:static;max-height:none;margin:.45rem 0 0;padding:0;overflow:visible;background:none;color:var(--ink-2);font:.72rem/1.45 var(--mono);text-align:left;text-shadow:none}
.prose .wp-block-gallery.has-nested-images>figcaption{margin-top:.75rem}
.prose .wp-block-gallery .swipe-controls{padding-inline:0}
.is-root-container .wp-block-gallery figcaption{position:static;background:none;color:var(--ink-2)}
@media (min-width:40rem){
  .prose .wp-block-gallery>.swipe-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem .9rem;overflow:visible}
  .prose .wp-block-gallery>.swipe-track>.wp-block-image{min-width:100%}
  .prose .wp-block-gallery:is(.columns-1,.columns-default:has(.wp-block-image:only-child))>.swipe-track{grid-template-columns:minmax(0,1fr)}
  .prose .wp-block-gallery:is(.columns-2,.columns-default:has(.wp-block-image:nth-child(2):last-child,.wp-block-image:nth-child(4):last-child))>.swipe-track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .prose .wp-block-gallery:is(.columns-4,.columns-5,.columns-6,.columns-7,.columns-8)>.swipe-track{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Panorama: three times as wide as tall or more (inc/blocks.php). Never shorter than --panorama-height; it scrolls. */
.panorama{container-type:inline-size;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:8px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.panorama:focus-visible{outline-offset:-3px}
.panorama[tabindex]{cursor:grab}
.panorama[data-dragging]{cursor:grabbing;user-select:none}
.prose .wp-block-image .panorama img{--panorama-height:clamp(11rem,25cqw,15rem);display:block;width:max(100cqw,var(--panorama-height)*var(--ratio));max-width:none;height:auto;border:0;border-radius:0}

/* File: a picture of its first page (documents.php) or a tile naming its kind, then its name, facts and button. */
:is(.prose,.is-root-container) .wp-block-file{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35rem 1rem;align-items:start;justify-items:start;padding:.9rem;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-family:var(--sans)}
.prose .wp-block-file>:not(.file-preview,.wp-block-file__embed){grid-column:2}
:is(.prose,.is-root-container) .wp-block-file>a:not(.wp-block-file__button){font:700 .98rem/1.35 var(--sans);color:var(--ink);text-decoration-color:var(--line)}
.file-preview{grid-row:1/span 3;width:4.75rem;height:auto;border:1px solid var(--line);border-radius:3px;background:#fff;box-shadow:0 2px 0 var(--line)}
.file-kind{display:grid;place-items:center;aspect-ratio:1/1.294;background:var(--amber-soft);color:var(--amber);font:700 .78rem var(--mono);letter-spacing:.05em}
.file-facts{display:flex;flex-wrap:wrap;gap:.2rem .9rem;margin:0;font:.72rem/1.4 var(--mono);color:var(--ink-2)}
.file-facts>span+span::before{content:"·";margin:0 .45rem 0 -.45rem}
.file-facts>span:empty{display:none}
:is(.prose,.is-root-container) .wp-block-file .wp-block-file__button{display:inline-flex;align-items:center;min-height:40px;margin:.3rem 0 0;padding:0 .95rem;border-radius:6px;background:var(--ink);color:var(--paper);font:500 .78rem var(--mono);text-decoration:none}
:is(.prose,.is-root-container) .wp-block-file .wp-block-file__button:hover{background:var(--amber);color:#fff}
@media (min-width:40rem){.file-preview{width:5.5rem}}

/* Buttons: the site's own; \"Outline\" is the secondary one. */
:is(.prose,.is-root-container) .wp-block-buttons{display:flex;flex-wrap:wrap;gap:.65rem}
:is(.prose,.is-root-container) .wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem 1.1rem;border:2px solid var(--ink);border-radius:8px;background:var(--ink);color:var(--paper);font:600 .9rem/1.2 var(--sans);text-decoration:none;transition:transform .12s,box-shadow .12s}
:is(.prose,.is-root-container) .wp-block-button__link:hover{color:var(--paper);transform:translateY(-2px);box-shadow:0 4px 0 var(--amber)}
:is(.prose,.is-root-container) .wp-block-button.is-style-outline>.wp-block-button__link{background:var(--card);color:var(--ink)}
:is(.prose,.is-root-container) .wp-block-button.is-style-outline>.wp-block-button__link:hover{color:var(--ink);box-shadow:0 4px 0 var(--ink)}
@media (prefers-reduced-motion:reduce){:is(.prose,.is-root-container) .wp-block-button__link:hover{transform:none}}

/* Details: a question that opens to show its answer. */
:is(.prose,.is-root-container) .wp-block-details{padding:0;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
:is(.prose,.is-root-container) .wp-block-details>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:48px;padding:.6rem 1.1rem;font:700 1rem/1.35 var(--sans);color:var(--ink);cursor:pointer;list-style:none}
:is(.prose,.is-root-container) .wp-block-details>summary::-webkit-details-marker{display:none}
:is(.prose,.is-root-container) .wp-block-details>summary::after{content:"+";flex:none;font:500 1.1rem/1 var(--mono);color:var(--amber)}
:is(.prose,.is-root-container) .wp-block-details[open]>summary::after{content:"−"}
:is(.prose,.is-root-container) .wp-block-details[open]>summary{border-bottom:1px solid var(--line)}
:is(.prose,.is-root-container) .wp-block-details>:not(summary){margin:.9rem 1.1rem}

:is(.prose,.is-root-container) .wp-block-separator{height:0;margin:2.4rem 0;border:0;border-top:1px solid var(--line);background:none;opacity:1}
:is(.prose,.is-root-container) .wp-block-separator.is-style-wide{border-top:2px solid var(--ink)}
:is(.prose,.is-root-container) .wp-block-separator.is-style-dots{border:0;text-align:center}
:is(.prose,.is-root-container) .wp-block-separator.is-style-dots::before{color:var(--amber)}

/* Code keeps its lines and scrolls sideways; Preformatted (words quoted with their line breaks) wraps. */
:is(.prose,.is-root-container) code{padding:.12em .35em;border:1px solid var(--line);border-radius:4px;background:#f2ece1;font:.86em var(--mono)}
:is(.prose,.is-root-container) pre{padding:1.1rem 1.25rem;overflow-x:auto;border:1px solid var(--ink);border-radius:8px;background:#211f1b;color:#f9f6f0;font:.82rem/1.6 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;scrollbar-width:thin}
:is(.prose,.is-root-container) pre code{padding:0;border:0;background:none;color:inherit;font:inherit}
:is(.prose,.is-root-container) pre.wp-block-code,:is(.prose,.is-root-container) pre.wp-block-code code{white-space:pre;overflow-wrap:normal}
:is(.prose,.is-root-container) pre.wp-block-preformatted{border-color:var(--line);background:var(--paper);color:var(--ink)}

/* Footnotes: the marks in the story and the numbered notes after the sources. */
:is(.prose,.is-root-container) sup.fn{font:600 .7em/0 var(--mono)}
:is(.prose,.is-root-container) sup.fn a{padding:0 .15em;text-decoration:none}
:is(.prose,.is-root-container) .wp-block-footnotes{margin-top:1.8rem;padding:1.2rem 0 0 1.4rem;border-top:1px solid var(--line);font:.85rem/1.55 var(--sans);color:var(--ink-2)}
:is(.prose,.is-root-container) .wp-block-footnotes a{text-decoration:none}

/* The \"Sources\" heading and list that end an article: compact, after a rule. */
.prose>h2:has(+ul:last-child),.prose>h2:has(+ul+.wp-block-footnotes:last-child){margin-top:2.8rem;padding-top:1.8rem;border-top:2px solid var(--ink);font-size:1.15rem;letter-spacing:-.01em}
.prose>h2+ul:last-child,.prose>h2+ul:has(+.wp-block-footnotes:last-child){display:grid;gap:.5rem;font:.85rem/1.5 var(--sans);color:var(--ink-2)}
.prose>h2+ul:last-child li,.prose>h2+ul:has(+.wp-block-footnotes:last-child) li{margin:0;font:inherit}

/* Where an editor placed a block to one side, centred it, or made it wide or full. */
:is(.prose,.is-root-container) .aligncenter{margin-inline:auto;text-align:center}
:is(.prose,.is-root-container) :is(.alignleft,.alignright){max-width:100%}
@media (min-width:40rem){
  .prose .alignleft{float:left;max-width:45%;margin:.35rem 1.5rem 1rem 0}
  .prose .alignright{float:right;max-width:45%;margin:.35rem 0 1rem 1.5rem}
  /* Words run beside a picture placed to one side; a new section and anything wide start beneath it. */
  .prose>:is(h2,h3,figure,pre,details,hr,.wp-block-columns,.wp-block-cover,.wp-block-file,.wp-block-buttons,.wp-block-media-text,.wp-block-group,.wp-block-table,.wp-block-gallery,.wp-block-footnotes):not(.alignleft,.alignright){clear:both}
}
/* On a phone \"wide\" and \"full\" reach the screen's edges, lose their corners, and keep their caption in line with the words. */
@media (max-width:39.9375rem){
  .prose>:is(.alignwide,.alignfull){width:100vw;max-width:none;margin-inline:calc(50% - 50vw)}
  .prose>:is(.alignwide,.alignfull):is(.wp-block-image,.wp-block-cover,.wp-block-video,.wp-block-embed) :is(img,video,iframe,.panorama,.wp-block-embed__wrapper),
  .prose>.wp-block-cover:is(.alignwide,.alignfull),.prose>.wp-block-table:is(.alignwide,.alignfull){border-inline:0;border-radius:0}
  .prose>:is(.alignwide,.alignfull)>figcaption{padding-inline:clamp(1rem,4vw,2rem)}
}
/* Wider, they reach the card's edges through its padding. */
@media (min-width:40rem){
  .prose>:is(.alignwide,.alignfull),.prose>.wp-block-table.has-many-columns,.prose>.wp-block-gallery:has(.wp-block-image:nth-child(3)){width:calc(100% + 2*var(--notes-pad));max-width:none;margin-inline:calc(-1*var(--notes-pad))}
  .prose>:is(.alignwide,.alignfull)>figcaption{padding-inline:var(--notes-pad)}
  .prose>.wp-block-gallery:has(.wp-block-image:nth-child(3))>:is(.swipe-track,.swipe-controls,figcaption){padding-inline:var(--notes-pad)}
}

/* The editor's canvas: blocks the published page wraps are shown as WordPress draws them, kept inside the column. */
.is-root-container{max-width:840px;margin-inline:auto;padding:1.5rem;font-family:var(--serif)}
/* The headline as a news article draws it (styles.css .news-article h1), over the column rather than at the canvas's edge. */
.editor-post-title{box-sizing:border-box;max-width:840px;margin-inline:auto;padding:2rem 1.5rem 0;font-size:clamp(2.1rem,4.4vw,3.4rem);line-height:1.08}
.is-root-container .wp-block-gallery.has-nested-images{display:flex;gap:.75rem}
