/*
   Estate Sales Near Me This Weekend: the look in docs/DESIGN.md.
   For one weekend the whole house is open and everything in it has a tag. Milk-white pages, walnut, manila tags on
   string, house green, the four bowls (sunflower, leaf, tomato, sky). Words sit on flat colour at 7:1 or better, 16 px or
   larger, in one plain face; pictures are lit from the top left and every shadow falls right and down. Light only.
*/

/* ---- The type: one plain face for everything, the site's own file (OFL, tools/fonts/build.py), preloaded ----------- */
@font-face { font-family: "Libre Franklin"; src: url("../fonts/sans.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
	/* The palette: the grounds and the inks (parts/heads.json holds the same values). */
	--milk: #FAF6EC; --white: #FFFFFF; --ink: #1E1712; --walnut: #4A2E1E; --walnut-deep: #2B1A11; --manila: #E9CE9C; --kraft: #C9A26B;
	--sunflower: #E8A61C; --leaf: #2C7A4B; --leaf-deep: #1D5834; --tomato: #B9321F; --tomato-deep: #8E2414; --sky: #235F93; --sky-deep: #17446B; --plum: #6A2C49;
	--house: #064C41; --house-deep: #04362E; --ticket: #A9CBDD; --newsprint: #EDE8DC;
	--ink-2: #4B3F36; --line: #E4DACA; --line-2: #C9BBA5;
	--cream: var(--milk); --paper: var(--milk);
	/* One light, top left: shadows fall right and down. */
	--sh-1: 1px 2px 3px rgba(43, 26, 17, .16); --sh-2: 2px 5px 14px rgba(43, 26, 17, .16); --sh-3: 5px 14px 34px rgba(43, 26, 17, .24);
	--f-ui: "Libre Franklin", "Franklin Gothic Medium", "Arial", sans-serif; --f-disp: var(--f-ui); --f-text: var(--f-ui); --f-mono: var(--f-ui);
	--max: 1180px; --text: 700px; --gut: 16px;
}
@media (min-width: 768px) { :root { --gut: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--milk); color: var(--ink); font: 400 20px/1.58 var(--f-text); font-feature-settings: "kern", "liga", "lnum"; overflow-x: clip; }
@media (min-width: 768px) { body { font-size: 21px; } }
img, svg, video, iframe { max-width: 100%; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.hs :focus-visible, .ahead--dark :focus-visible, .lhead :focus-visible, .foot :focus-visible { outline-color: var(--sunflower); }
h1, h2, h3, h4 { font-family: var(--f-disp); overflow-wrap: break-word; }
em, i, cite, dfn, address { font-style: normal; }
em, i, dfn { font-weight: 600; }
h1, h2 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--ink); color: var(--milk); padding: 10px 14px; font: 700 18px/1 var(--f-ui); }
.skip:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- The tag: the site's button and label. A clipped manila tag with its reinforced hole ----------------------------- */
.tagbtn { --tb: var(--manila); --ti: var(--ink); display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px 10px 38px; border: 0; cursor: pointer; text-decoration: none; color: var(--ti); font: 700 19px/1.2 var(--f-ui); position: relative; background: var(--tb); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); transition: transform .18s ease; }
.tagbtn::before { content: ""; position: absolute; left: 13px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: radial-gradient(circle, var(--walnut-deep) 0 3px, var(--tomato-deep) 3.4px 6px, transparent 6.4px); }
.tagbtn:hover { transform: rotate(-1.2deg); text-decoration: none; }
.tagbtn:focus-visible { outline-offset: -5px; outline-color: var(--ink); }
.tagbtn--dark { --tb: var(--walnut-deep); --ti: var(--milk); }
.tagbtn--dark::before { background: radial-gradient(circle, var(--milk) 0 3px, var(--sunflower) 3.4px 6px, transparent 6.4px); }

/* ---- The masthead: the mark, the name, what the site is; a walnut shelf under it, and the menu hangs from the shelf --- */
.mast { background: var(--white); position: relative; z-index: 4; }
.mast__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 12px; padding-bottom: 10px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; justify-self: start; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 46px; height: 46px; flex: none; }
.brand__word { display: block; font: 800 26px/1 var(--f-disp); letter-spacing: -.012em; }
.brand__open { display: block; margin-top: 3px; font: 700 17px/1.1 var(--f-ui); letter-spacing: 0; color: var(--tomato-deep); }
.mast__indep { margin: 0; font: 500 17px/1.35 var(--f-ui); color: var(--ink-2); }
.shelf { height: 12px; background: var(--walnut) url("../img/walnut.webp") 0 0 / 2400px 48px repeat-x; box-shadow: 0 3px 6px rgba(43, 26, 17, .35), inset 0 1px 0 rgba(255, 255, 255, .22); position: relative; z-index: 3; }
.nav { background: var(--white); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 0 8px; color: var(--ink); text-decoration: none; font: 700 18px/1.2 var(--f-ui); }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--sunflower); }
@media (max-width: 699px) { .nav ul { gap: 0 14px; } .nav a { font-size: 17px; } .mast__row { gap: 2px; padding-bottom: 2px; } .mast__indep { font-size: 16px; } }
@media (min-width: 1200px) {
	.mast__row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; padding-top: 14px; padding-bottom: 14px; }
	.brand .mark { width: 54px; height: 54px; }
	.brand__word { font-size: 34px; }
	.brand__open { font-size: 18px; }
	.mast__indep { max-width: 17em; padding-left: 22px; border-left: 1px solid var(--line-2); }
	.nav ul { flex-wrap: nowrap; gap: 24px; }
	.nav a { font-size: 19px; }
}

/* ---- Breadcrumbs ---------------------------------------------------------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 9px; font: 600 17px/1.35 var(--f-ui); }
.crumbs li { display: flex; gap: 9px; }
.crumbs li + li::before { content: "›"; }
.crumbs a { color: inherit; display: inline-block; padding: 11px 0; margin: -11px 0; }

/* ---- An article's head: band, split, stack, column (parts/heads.json). --hg ground, --hi ink, --ha accent ---------- */
.ahead { color: var(--hi); }
.ahead__grid { display: grid; grid-template-columns: [full-start] minmax(var(--gut), 1fr) [main-start] minmax(0, var(--max)) [main-end] minmax(var(--gut), 1fr) [full-end]; }
.ahead__grid > * { grid-column: main; min-width: 0; position: relative; }
.ahead h1 { margin: 0; font: 800 37px/1.08 var(--f-disp); letter-spacing: -.016em; color: var(--hi); }
.ahead__kick { margin: 0 0 14px; }
.ahead__kick a { display: inline-block; color: var(--hi); font: 700 18px/1.2 var(--f-ui); text-decoration: none; padding: 0 0 5px; border-bottom: 4px solid var(--ha); }
.ahead .crumbs { color: var(--hi); }
.ahead__dek { margin: 0; font: 400 21px/1.5 var(--f-text); color: var(--hi); max-width: 42em; }
.feat .esn-figure { margin: 0; }
.feat img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--hp); background: var(--newsprint); }
.feat figcaption { margin: 10px 0 0; font: 400 17px/1.45 var(--f-ui); color: var(--ink-2); max-width: 64em; }
@media (min-width: 700px) { .ahead h1 { font-size: 50px; line-height: 1.04; } .ahead__dek { font-size: 23px; } }
@media (min-width: 1100px) { .ahead h1 { font-size: 60px; } }

/* band: the ground behind the titles runs on under the top of the picture; the summary follows it on the page */
.ahead--band .ahead__grid { --lip: 44px; grid-template-rows: auto var(--lip) auto auto; }
.ahead--band .ahead__grid::before { content: ""; grid-column: full; grid-row: 1 / 3; background: var(--hg); }
.ahead--band .ahead__titles { grid-row: 1; padding: 20px 0 24px; background: var(--hg); }
.ahead--band .ahead__dek { grid-row: 4; padding: 18px 0 0; color: var(--ink); }
.ahead--band .feat { grid-row: 2 / 4; }
.ahead--band .feat img { box-shadow: var(--sh-3); }
@media (min-width: 700px) {
	.ahead--band .ahead__grid { --lip: 130px; }
	.ahead--band .ahead__titles { padding-top: 30px; padding-bottom: 34px; }
	.ahead--band h1 { max-width: 27ch; }
}
/* split: the title and summary on the left, the picture to the window's right edge; a phone: title, picture, summary */
.ahead--split .ahead__grid { background: var(--hg); padding: 20px 0 26px; }
.ahead--split .feat { margin: 18px 0; }
.ahead--split .feat figcaption { color: var(--hi); }
@media (min-width: 1000px) {
	.ahead--split .ahead__grid { grid-template-columns: [full-start] minmax(var(--gut), 1fr) [main-start] minmax(0, 500px) [gap-start] 44px [pic-start] minmax(0, 636px) [main-end] minmax(0, 1fr) [full-end]; grid-template-rows: 1fr auto auto 1fr; padding: 0; min-height: 470px; }
	.ahead--split .ahead__titles { grid-column: main-start / gap-start; grid-row: 2; padding-top: 34px; }
	.ahead--split .ahead__dek { grid-column: main-start / gap-start; grid-row: 3; margin-top: 20px; padding-bottom: 34px; }
	.ahead--split .feat { grid-column: pic-start / full-end; grid-row: 1 / 5; margin: 0; align-self: stretch; }
	.ahead--split .feat .esn-figure { height: 100%; position: relative; }
	.ahead--split .feat img { height: 100%; min-height: 470px; aspect-ratio: auto; }
	.ahead--split .feat figcaption { position: absolute; right: 12px; bottom: 12px; left: auto; max-width: 24em; margin: 0; padding: 7px 11px; background: var(--hg); }
	.ahead--split h1 { font-size: clamp(38px, 3.4vw, 48px); }
}
/* stack: the title on a slip of the ground from the window's left edge, the summary beside it, then a full-width picture
   whose top left corner the slip overlaps */
.ahead--stack .ahead__grid { padding-top: 14px; }
.ahead--stack .ahead__titles { background: var(--hg); padding: 18px 18px 22px; margin: 0 calc(-1 * var(--gut)); }
.ahead--stack .feat { grid-column: full; }
.ahead--stack .feat figcaption { width: calc(100% - 2 * var(--gut)); max-width: var(--max); margin: 10px auto 0; }
.ahead--stack .ahead__dek { color: var(--ink); padding: 14px 0 6px; }
@media (min-width: 900px) {
	.ahead--stack .ahead__grid { padding-top: 0; grid-template-columns: [full-start] minmax(var(--gut), 1fr) [main-start] minmax(0, 744px) [gap-start] 40px [dek-start] minmax(250px, 396px) [main-end] minmax(var(--gut), 1fr) [full-end]; grid-template-rows: auto auto; }
	.ahead--stack .ahead__titles { grid-column: main-start / gap-start; grid-row: 1; z-index: 2; margin: 0 0 -54px; padding: 24px 34px 28px 0; background: none; }
	.ahead--stack .ahead__titles::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; left: -100vw; background: var(--hg); }
	.ahead--stack h1 { font-size: clamp(38px, 3.9vw, 52px); }
	.ahead--stack .ahead__dek { grid-column: dek-start / main-end; grid-row: 1; align-self: end; padding: 24px 0 26px; }
	.ahead--stack .feat { grid-row: 2; }
	.ahead--stack .feat img { aspect-ratio: 21 / 9; }
	.ahead--stack .feat figcaption { position: absolute; right: max(var(--gut), calc((100% - var(--max)) / 2)); top: 12px; bottom: auto; width: auto; max-width: 22em; margin: 0; padding: 7px 11px; background: var(--white); }
}
/* column: a narrow, tall title column on the ground, beside a tall 4:3 crop; a phone: the title, the whole picture */
.ahead--column .ahead__grid { padding-top: 0; }
.ahead--column .ahead__titles { background: var(--hg); padding: 18px 18px 24px; margin: 0 calc(-1 * var(--gut)); }
.ahead--column .ahead__dek { color: var(--ink); padding-top: 14px; }
@media (min-width: 1000px) {
	.ahead--column .ahead__grid { grid-template-columns: [full-start] minmax(var(--gut), 1fr) [main-start] minmax(0, 440px) [pic-start] minmax(0, 740px) [main-end] minmax(var(--gut), 1fr) [full-end]; grid-template-rows: auto auto; padding-top: 26px; }
	.ahead--column .ahead__titles { grid-column: main-start / pic-start; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 30px 32px; margin: 0; }
	.ahead--column .ahead__titles .crumbs { margin-bottom: auto; padding-bottom: 28px; }
	.ahead--column .ahead__dek { grid-column: main; grid-row: 2; padding: 20px 0 0; max-width: 46em; }
	.ahead--column .feat { grid-column: pic-start / main-end; grid-row: 1; margin: 0; }
	.ahead--column .feat img { aspect-ratio: 4 / 3; }
	.ahead--column .feat figcaption { margin-left: 16px; }
	.ahead--column h1 { font-size: clamp(36px, 3.3vw, 47px); }
}

/* ---- The white sheet: the byline, the text column (about 700 px), wide pieces, the side rail --------------------- */
.sheet { position: relative; background: var(--white); margin: 26px auto 0; max-width: var(--max); box-shadow: var(--sh-2); }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 18px; max-width: calc(var(--text) + 2 * var(--gut)); margin: 0 auto; padding: 20px var(--gut) 14px; font: 500 17px/1.5 var(--f-ui); color: var(--ink-2); }
.byline::after { content: ""; flex: 0 0 100%; height: 0; border-bottom: 2px solid var(--ink); margin-top: 10px; }
.byline p { margin: 0; }
.byline__by { font: 700 18px/1.4 var(--f-ui); width: 100%; color: var(--ink); }
.byline__by a { color: var(--ink); }
.byline time, .byline .page-meta span { white-space: nowrap; }
.byline__more { display: flex; flex-wrap: wrap; gap: 0 18px; }
.byline__checked { font-weight: 700; color: var(--leaf-deep); }

.read { display: grid; grid-template-columns: [full-start] var(--gut) [wide-start] minmax(0, 1fr) [text-start] minmax(0, var(--text)) [text-end] minmax(0, 1fr) [wide-end] var(--gut) [full-end]; padding: 24px 0 36px; }
.read > * { grid-column: text; min-width: 0; }
/* An article's own wide piece: class "wide" runs the sheet's whole width (about 1180 px on a desktop, edge to edge on a
   phone), above the rail; "inset" keeps it inside the gutters. */
.read > .wide, .read > .full, .read > .alignwide, .read > .alignfull { grid-column: full; position: relative; z-index: 2; }
.read > .wide.inset, .read > .alignwide.inset { grid-column: wide; }
.read > p, .read > ul, .read > ol, .read > dl { margin: 0 0 1.05em; overflow-wrap: anywhere; }
.read > p:first-child, .read > .rail + p { font-size: 1.12em; line-height: 1.56; }
.read h2 { margin: 1.7em 0 .5em; font: 800 30px/1.14 var(--f-disp); letter-spacing: -.012em; scroll-margin-top: 20px; }
.read h3 { margin: 1.45em 0 .4em; font: 700 23px/1.24 var(--f-disp); letter-spacing: -.006em; scroll-margin-top: 20px; }
.read h4 { margin: 1.3em 0 .3em; font: 700 20px/1.3 var(--f-ui); }
@media (min-width: 768px) { .read h2 { font-size: 40px; } .read h3 { font-size: 26px; } }
.read ul { list-style: none; padding: 0; }
.read ul > li { position: relative; padding-left: 26px; margin: 0 0 .5em; }
.read ul > li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 12px; height: 9px; background: var(--hr, var(--sunflower)); clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%); }
.read ol { list-style: none; padding: 0; counter-reset: li; }
.read ol > li { position: relative; padding-left: 44px; margin: 0 0 .65em; counter-increment: li; }
.read ol > li::before { content: counter(li); position: absolute; left: 0; top: .08em; width: 30px; text-align: center; font: 800 20px/1.5 var(--f-disp); color: var(--ink); border-bottom: 3px solid var(--hr, var(--sunflower)); }
.read li > ul, .read li > ol { margin: .45em 0 0; }
.read blockquote { margin: 1.4em 0; padding: 2px 0 2px 22px; border-left: 5px solid var(--hr, var(--sunflower)); font-size: 1.06em; font-weight: 600; }
.read blockquote p:last-child { margin-bottom: 0; }
.read blockquote cite, .read blockquote footer { display: block; margin-top: 8px; font: 500 17px/1.5 var(--f-ui); color: var(--ink-2); }
.read hr { border: 0; border-top: 2px dashed var(--line-2); margin: 2em 0; }
.read code { font: 600 .92em/1 var(--f-ui); background: var(--milk); padding: 1px 5px; }
.read figure { margin: 1.7em 0; }
.read figure img { display: block; }
.read figcaption, .read .wp-element-caption { margin-top: 9px; font: 400 17px/1.5 var(--f-ui); color: var(--ink-2); }
.read .table-title { margin: 1.6em 0 .5em; font: 700 20px/1.3 var(--f-ui); }
/* Tables: they scroll sideways in their own box on a phone, never the page */
.table-scroll, .wp-block-table { margin: 1.5em 0; overflow-x: auto; background: var(--white); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.read table, .data-table { border-collapse: collapse; width: 100%; font: 400 18px/1.45 var(--f-ui); font-variant-numeric: tabular-nums lining-nums; }
.read th, .read td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; min-width: 7.5em; }
.read > .table-scroll th, .read > .table-scroll td { min-width: 4.9em; }
.read > .table-scroll th:first-child, .read > .table-scroll td:first-child { min-width: 7.5em; }
.read th { font: 700 18px/1.3 var(--f-ui); border-bottom: 1px solid var(--ink); }
.read td { border-top: 1px solid var(--line); }
.read td:first-child { font-weight: 600; }
.table-scroll:focus-visible { outline-offset: 2px; }

/* The side rail: an article's own minimap may use it (filter esn_reading_map); the theme draws none of its own */
.rail { display: none; }
@media (min-width: 1100px) {
	.read--rail { grid-template-columns: [full-start] var(--gut) [wide-start] minmax(0, 1fr) [text-start] minmax(0, var(--text)) [text-end] 48px [rail-start] minmax(0, 262px) [rail-end wide-end] var(--gut) [full-end]; position: relative; }
	.read--rail > .rail { display: block; position: absolute; grid-column: rail; top: 26px; bottom: 36px; z-index: 1; }
	/* The byline stands on the text's own left edge, which the rail pushes over. */
	.sheet:has(> .read--rail) > .byline { max-width: none; margin: 0; padding-left: calc(100% - var(--gut) - 1010px); padding-right: calc(var(--gut) + 310px); }
	.rail__in { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s; }
	/* While a wide piece crosses the rail's band (assets/js/article.js), the rail steps aside, and comes back after. */
	.rail--away .rail__in { opacity: 0; transform: translateX(14px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
	/* Without script it stays at the top of the text instead of travelling down beside it. */
	html:not(.js) .rail__in { position: static; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .rail__in, .rail--away .rail__in { transition: none; transform: none; } }

/* The closing "Questions people ask" section, and the closing sources slip */
.read > .qa { grid-column: text; margin: 2.2em 0 .6em; padding: 0; border-top: 2px solid var(--ink); }
.qa h2 { margin-top: .7em; }
.qa h3 { margin: 1.05em 0 .3em; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 22px; }
.qa h2 + h3 { border-top: 0; padding-top: 0; }
@media (min-width: 768px) { .qa h3 { font-size: 24px; } }
.read > .endnote { overflow-wrap: anywhere; margin: 1.6em 0 0; padding: 14px 0 0; border-top: 2px solid var(--ink); font: 400 17px/1.6 var(--f-ui); }
.endnote p { margin: 0 0 .5em; }
.endnote p:last-child { margin: 0; font-weight: 600; }

/* ---- The end matter: how the guide was made (a manila folder), what to read next ------------------------------------- */
.made { max-width: calc(var(--text) + 2 * var(--gut)); margin: 40px auto 0; padding: 0 var(--gut); }
.made__card { position: relative; padding: 0 20px 14px; background: var(--manila); box-shadow: var(--sh-2); }
.made__card::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 210px; height: 20px; background: var(--manila); clip-path: polygon(0 100%, 0 30%, 8px 0, 168px 0, 210px 100%); }
.made h2 { margin: 0; padding: 18px 0 10px; font: 800 26px/1.2 var(--f-disp); }
.made__list { margin: 0; padding: 0; }
.made__list > div { padding: 9px 0; border-top: 1px solid rgba(74, 46, 30, .38); }
.made dt { font: 700 17px/1.5 var(--f-ui); }
.made dd { margin: 0; font: 400 18px/1.55 var(--f-ui); min-width: 0; overflow-wrap: anywhere; }
.made a { color: var(--ink); }
.made__hosts summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .made__list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: baseline; } }

.next { margin-top: 44px; }
.band-h { margin: 0 0 20px; font: 800 34px/1.08 var(--f-disp); letter-spacing: -.014em; }
@media (min-width: 768px) { .band-h { font-size: 46px; } }

/* ---- Guide cards: the picture is the card; the words are under it, on the page --------------------------------------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards--next, .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--home { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cards--home .card { grid-column: span 2; } .cards--r2 .card:nth-child(-n+2), .cards--r1 .card:nth-child(-n+4), .cards--r0 .card:nth-child(n+2):nth-child(-n+3) { grid-column: span 3; } .cards--r2 .card:nth-child(-n+2) .card__title, .cards--r1 .card:nth-child(-n+4) .card__title, .cards--r0 .card:nth-child(n+2):nth-child(-n+3) .card__title { font-size: 30px; }
	.cards--r0 .card:first-child { grid-column: 1 / -1; } .cards--r0 .card:first-child .card__link { flex-direction: row; align-items: center; gap: 38px; } .cards--r0 .card:first-child .card__pic { flex: 0 0 58%; } .cards--r0 .card:first-child .card__title { font-size: 38px; line-height: 1.12; } .cards--r0 .card:first-child .card__text { font-size: 20px; } .cards--r0 .card:first-child .card__meta { margin-top: 6px; } }
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card__link:hover { text-decoration: none; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--tomato); }
.card__pic { display: block; overflow: hidden; background: var(--newsprint); box-shadow: var(--sh-2); }
.card__pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.card__link:hover .card__pic img { transform: scale(1.025); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex: 1; padding: 13px 0 0; }
.card__cat { font: 700 17px/1.2 var(--f-ui); padding-bottom: 3px; border-bottom: 4px solid var(--c, var(--sunflower)); }
.card__title { font: 700 24px/1.2 var(--f-disp); letter-spacing: -.008em; }
.card__text { font: 400 18px/1.5 var(--f-text); color: var(--ink-2); }
.card__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: auto; padding-top: 4px; font: 500 17px/1.4 var(--f-ui); color: var(--ink-2); }
.card--nopic .card__link { border-top: 6px solid var(--c, var(--sunflower)); }

/* Section links as tags */
.plates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.plates a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: var(--c, var(--manila)); color: var(--ci, var(--ink)); font: 700 18px/1.2 var(--f-ui); padding: 9px 16px 9px 26px; text-decoration: none; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.plates a:hover { text-decoration: underline; }
.plates a span { font: 700 17px/1 var(--f-ui); opacity: 1; }

/* ---- Homepage frame (its working parts bring their own styles: assets/home.css in the plugin) ------------------------ */
.region { padding: 44px 0 10px; }
@media (min-width: 768px) { .region { padding: 64px 0 16px; } }
.region__lede { max-width: 44em; margin: -8px 0 22px; font-size: 1.04em; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 34px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.how a, .how div { display: block; height: 100%; padding: 14px 0 0; border-top: 3px solid var(--ink); color: var(--ink); text-decoration: none; }
.how__t { display: block; font: 700 23px/1.25 var(--f-disp); }
.how__x { display: block; margin-top: 6px; font: 400 18px/1.55 var(--f-text); color: var(--ink-2); }
.how a:hover .how__t { text-decoration: underline; }

/* ---- A page made in the dashboard ------------------------------------------------------------------------------------ */
.pg__head { padding: 26px 0 0; }
.pg__head h1 { margin: 0 0 10px; font: 800 40px/1.06 var(--f-disp); letter-spacing: -.016em; max-width: 22ch; }
.pg__lede { margin: 0; max-width: 38em; font: 400 22px/1.5 var(--f-text); color: var(--ink-2); overflow-wrap: anywhere; }
@media (min-width: 768px) { .pg__head h1 { font-size: 56px; } .pg__lede { font-size: 23px; } }
.pg__updated { margin-top: 2em; padding-top: 12px; border-top: 1px solid var(--line-2); font: 500 17px/1.5 var(--f-ui); color: var(--ink-2); }

/* A phone's homepage: the first three guides as they are (only the first with its summary), the rest one to a row beside their picture. */
@media (max-width: 699px) {
	.cards--home .card:nth-child(n+2) .card__text { display: none; }
	.cards--home .card:nth-child(n+4) .card__link { flex-direction: row; align-items: flex-start; gap: 15px; }
	.cards--home .card:nth-child(n+4) .card__pic { flex: 0 0 41%; }
	.cards--home .card:nth-child(n+4) .card__pic img { aspect-ratio: 4 / 3; }
	.cards--home .card:nth-child(n+4) .card__body { gap: 5px; padding: 0; }
	.cards--home .card:nth-child(n+4) .card__title { font-size: 19px; line-height: 1.24; overflow-wrap: anywhere; }
	.cards--home .card:nth-child(n+4) .card__meta { display: none; }
}

/* ---- Lists: a section's band (with its room's picture), search, cards ------------------------------------------------ */
.lhead { background: var(--c, var(--house)); color: var(--ci, var(--milk)); position: relative; overflow: hidden; }
.lhead > .wrap { padding-top: 24px; padding-bottom: 26px; position: relative; z-index: 1; }
.lhead .crumbs, .lhead a { color: var(--ci, var(--milk)); }
.lhead h1 { margin: 0 0 8px; font: 800 44px/1.04 var(--f-disp); letter-spacing: -.016em; }
.lhead__count { margin: 0; font: 600 18px/1.4 var(--f-ui); }
.lhead__lede { max-width: 34em; margin-top: 10px; font: 400 20px/1.5 var(--f-text); }
.lhead__lede p { margin: 0; }
.lhead__room { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .lhead h1 { font-size: 60px; } .lhead--room > .wrap { min-height: 340px; padding-top: 34px; padding-right: 54%; } .lhead__room { position: absolute; right: 0; top: 0; width: 50%; height: 100%; aspect-ratio: auto; } }
.list__body { padding-top: 34px; }
.empty { padding: 10px 0 20px; }
.empty__big { font: 700 28px/1.2 var(--f-disp); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.page-numbers { display: inline-block; padding: 12px 15px; font: 600 18px/1 var(--f-ui); color: var(--ink); background: var(--white); border: 1px solid var(--line-2); text-decoration: none; }
.page-numbers.current { background: var(--walnut-deep); color: var(--white); border-color: var(--walnut-deep); }

/* The search form */
.sform { margin: 18px 0; }
.sform label { display: block; margin: 0 0 6px; font: 700 18px/1.3 var(--f-ui); }
.sform__row { display: flex; gap: 8px; max-width: 34rem; }
.sform input[type="search"] { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; font: 400 19px/1.3 var(--f-ui); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 0; }
.sform input[type="search"]::placeholder { color: var(--ink-2); opacity: 1; }
.sform button { flex: none; min-height: 46px; padding: 0 18px; border: 0; cursor: pointer; font: 700 18px/1 var(--f-ui); color: var(--milk); background: var(--walnut-deep); }
.sform button:hover { background: var(--walnut); }

/* ---- "Not found": the empty room, one tag left behind ---------------------------------------------------------------- */
.nf { background: var(--house); color: var(--milk); }
.nf__in { padding-top: 40px; padding-bottom: 56px; }
.nf h1 { margin: 0 0 10px; font: 800 46px/1.05 var(--f-disp); letter-spacing: -.016em; max-width: 16ch; }
.nf p { max-width: 36em; }
.nf a { color: var(--milk); }
.nf .sform label { color: var(--milk); }
.nf .plates a { color: var(--ci, var(--ink)); }
@media (min-width: 768px) { .nf h1 { font-size: 66px; } .nf__in { padding-top: 70px; padding-bottom: 90px; } }

/* ---- The footer: the table's front edge, then its walnut side --------------------------------------------------------- */
.foot { position: relative; margin-top: 70px; background: var(--walnut-deep); color: #F3E8D6; }
.foot::before { content: ""; display: block; height: 26px; background: var(--walnut) url("../img/walnut.webp") 0 0 / 2400px 48px repeat-x; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .16), 0 6px 14px rgba(0, 0, 0, .4); }
.foot a { color: #F3E8D6; }
.foot .brand__open { color: var(--sunflower); }
.foot__in { display: grid; gap: 30px 48px; padding-top: 34px; padding-bottom: 30px; }
@media (min-width: 900px) { .foot__in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); } }
.foot__indep { margin: 16px 0 0; max-width: 32em; font: 400 18px/1.6 var(--f-text); }
.receipt__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.receipt__lines { list-style: none; margin: 14px 0 0; padding: 0; font: 500 17px/1.5 var(--f-ui); }
.receipt__lines li { padding: 5px 0; border-top: 1px solid rgba(243, 232, 214, .3); max-width: 30em; }
.foot__h { margin: 0 0 10px; font: 700 22px/1.2 var(--f-disp); }
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; font: 500 18px/1.3 var(--f-ui); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 16px; padding-bottom: 26px; font: 500 17px/1.5 var(--f-ui); }
.foot__base p { margin: 0; }

/* ---- Pieces the plugin prints: figures, tables, the reading map shortcode, mind maps, embeds, downloads ------------- */
.esn-figure { margin: 1.5em 0; }
.esn-figure img { display: block; }
.download { font: 500 17px/1.5 var(--f-ui); }
.toc { margin: 1.4em 0; padding: 14px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.toc__title { margin: 0 0 6px; font: 700 19px/1.2 var(--f-ui); }
.read .toc ol > li { margin-bottom: .3em; }
.mindmap { margin: 1.6em 0; padding: 16px; background: var(--milk); }
.mindmap__root { margin: 0 0 12px; font: 800 22px/1.2 var(--f-disp); }
.read .mindmap__branches { display: grid; gap: 10px; margin: 0; }
@media (min-width: 700px) { .read .mindmap__branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.read .mindmap__branch { margin: 0; padding: 12px 14px; background: var(--white); border-top: 5px solid var(--hr, var(--sunflower)); }
.read .mindmap__branch::before { display: none; }
.mindmap__branch > b { display: block; font: 700 20px/1.2 var(--f-disp); margin-bottom: 6px; }
.esn-embed { margin: 1.5em 0; padding: 14px; max-width: 36rem; background: var(--milk); border: 1px solid var(--line-2); }
.esn-embed__note, .esn-embed__net, .esn-embed__why, .esn-embed__x { font: 400 17px/1.5 var(--f-ui); color: var(--ink-2); }
.esn-embed__video iframe { max-width: 100%; }
.link-later { color: var(--ink); }
.sitemap { list-style: none; padding: 0; }
.sitemap__what { color: var(--ink-2); }

/* ---- A photograph of a real sale ([esn_photo]) ----------------------------------------------------------------------- */
.ph { margin: 30px 0; }
.ph img { display: block; width: 100%; height: auto; background: var(--newsprint); }
.ph figcaption { margin: 9px 0 0; font: 500 17px/1.45 var(--f-ui); color: var(--ink-2); }
.ph--tall { max-width: 440px; }
@media (min-width: 760px) { .ph--tall { margin-left: auto; margin-right: auto; } }


/* A piece folded away on a phone: its title on a tag, and a plus. */
.read > figure[hidden] { display: none !important; }
.fold { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; margin: 1.5em 0; padding: 12px 18px; border: 0; background: var(--manila); color: var(--ink); box-shadow: var(--sh-2); text-align: left; font: 700 19px/1.3 var(--f-ui); cursor: pointer; }
.fold::after { content: "Open"; flex: none; font: 700 18px/1 var(--f-ui); text-decoration: underline; text-underline-offset: 3px; }
.made__how { margin: 0 0 12px; font: 400 18px/1.5 var(--f-text); }
