/* mattkenyon.net blog drafts (Nov 18 2026).
   Tokens, base, buttons, header, footer and focus styles are copied from drafts/home/index.html so the blog sits in the navy look.
   Everything under "blog" below is new for the blog index and the article template. */
:root {
  --ground: #FFFFFF; --ink: #1A2744; --text: #3D475C; --muted: #566074; --line: #E2E6EE; --soft: #F3F5FA;
  --panel: #1A2744; --on-panel: #FFFFFF; --on-panel-soft: #D9DFEE; --pop: #FF8A3D;
  --mark: #FF8A3D; --focus: #1A2744; --note-orange: #D9661A; --video: #D7262E;
  --btn: #2346E8; --btn-hover: #1B38C4; --btn-ink: #FFFFFF; --btn-panel: #8FA4F5; --btn-panel-hover: #A9B9F8; --btn-panel-ink: #1A2744;
  --radius: 18px; --radius-s: 10px;
  --display: 'Rethink Sans', system-ui, -apple-system, sans-serif;
  --body: 'Rethink Sans', system-ui, -apple-system, sans-serif;
  --h-weight: 720; --h-track: -0.028em; --h-lh: 1.04;
  --measure: 41rem;   /* the reading column: about 70 characters of 18px body text */
}
.btn:not(.btn-ghost):hover { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .07); }
.on-panel .btn { background: var(--btn-panel); color: var(--btn-panel-ink); border-color: var(--btn-panel); }
.on-panel .btn:hover { background: var(--btn-panel-hover); border-color: var(--btn-panel-hover); }
.on-panel :focus-visible { outline-color: var(--pop); }
* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: #A3ABBC #F3F5FA; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; caret-color: var(--ink); }
::selection { background: var(--pop); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); color: var(--ink); line-height: var(--h-lh); margin: 0; text-wrap: balance; }
p { margin: 0; }
.ico { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* buttons (homepage) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-s); background: var(--btn); color: var(--btn-ink); font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid var(--btn); transition: background .2s ease, border-color .2s ease; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn .ico { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--soft); border-color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 1rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.text-link:hover { border-color: var(--ink); }
.text-link .ico { transition: transform .2s ease; }
.text-link:hover .ico { transform: translateX(3px); }

/* header (homepage) */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: var(--h-weight); color: var(--ink); font-size: 1.15rem; letter-spacing: var(--h-track); white-space: nowrap; }
.brand-tag { color: var(--muted); font-size: .92rem; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font: 500 1rem/1 var(--body); color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 8px; }
.nav-link:hover { background: var(--soft); }
.nav-link .chev { width: .7em; height: .7em; transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--ground); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(20, 24, 40, .35); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); border-radius: 8px; font-weight: 500; white-space: nowrap; }   /* one line per item: the panel widens to fit "Brand Visibility Partnership" */
.menu a:hover { background: var(--soft); }
.menu a[aria-current="page"] { background: var(--soft); font-weight: 600; }
.menu .ico { color: var(--ink); width: 1.15em; height: 1.15em; }
.menu-toggle { display: none; }
.nav .btn-small { margin-left: 8px; }

/* footer (homepage) */
.site-footer { padding-top: 56px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .9fr)) minmax(0, 1.3fr) minmax(0, .8fr); gap: 32px; }
.foot-brand { display: grid; gap: 8px; align-content: start; min-width: 0; }
.foot-brand .brand-tag { border: 0; padding: 0; white-space: normal; text-wrap: balance; }   /* wraps in the narrower brand column, so it never runs into Tools */
.foot-col h2 { font-family: var(--body); letter-spacing: 0; font-size: .92rem; font-weight: 700; line-height: 1.6; color: var(--ink); margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; color: var(--text); }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

/* ---------- blog ---------- */

/* video thumbnails: Matt's published YouTube thumbnails, a red play button (the hero's video colour) and the run time */
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-s); background: var(--soft); text-decoration: none; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.vthumb:hover img { transform: scale(1.03); }
.v-dur { position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: #fff; font: 600 .82rem/1 var(--body); padding: 5px 7px; border-radius: 5px; font-variant-numeric: tabular-nums; }
/* the play disc sits in the bottom-left corner, across from the run time, so it never covers the thumbnail's own words;
   it keeps YouTube's deep red in both themes (white on the dark theme's lighter red is too faint) */
.v-play { position: absolute; left: 10px; bottom: 10px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #D7262E; color: #fff; transition: scale .2s cubic-bezier(.22, 1, .36, 1); }
.v-play svg { width: 22px; height: 22px; margin-left: 2px; }
.vthumb:hover .v-play { scale: 1.07; }
.watch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.watch .yt { width: 1.3em; height: 1.3em; color: #D7262E; align-self: flex-start; margin-top: .12em; }
.watch-text { line-height: 1.4; }
.watch:hover .watch-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.watch .dur { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* blog index: page head */
.index-main { padding-bottom: clamp(72px, 9vw, 120px); }
.page-head { display: grid; gap: 18px; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(32px, 4.5vw, 52px); }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.page-intro { font-size: 1.15rem; max-width: 38em; text-wrap: pretty; }

/* blog index: the latest post on a flat navy panel, its video beside it */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 52px); background: var(--panel); color: var(--on-panel); border-radius: var(--radius); }
.featured-copy { position: relative; display: grid; gap: 18px; align-content: center; }
.featured .post-meta { color: var(--on-panel-soft); }
.featured h2 { color: var(--on-panel); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.06; }
.featured h2 a { color: inherit; text-decoration: none; }
.featured h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-s); }   /* the whole copy column opens the post */
.featured-copy:hover h2 a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.featured-sum { color: var(--on-panel-soft); font-size: 1.15rem; line-height: 1.55; max-width: 32em; text-wrap: pretty; }
.featured .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--on-panel); }
.featured .go .ico { transition: transform .2s ease; }
.featured-copy:hover .go .ico { transform: translateX(4px); }
.featured-video { display: grid; gap: 14px; }
.featured .watch { color: var(--on-panel); }
.featured .watch .dur { color: var(--on-panel-soft); }
.featured .vthumb { background: transparent; }

/* blog index: ruled list of the other posts */
.post-list { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.post-list > li { border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 200px; gap: 12px 32px; align-items: start; padding: 28px 8px; transition: background .2s ease; }
.row:hover { background: var(--soft); }
.row-date { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; padding-top: 4px; white-space: nowrap; }
.row-main { display: grid; gap: 8px; min-width: 0; }
.row-title { font-family: var(--body); font-weight: 650; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.row-title a { text-decoration: none; color: inherit; }
.row-title a::after { content: ""; position: absolute; inset: 0; }   /* the row opens the post */
.row:hover .row-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.row-sum { color: var(--text); max-width: 40em; text-wrap: pretty; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 4px; font-size: .92rem; color: var(--muted); }
.row-meta .watch, .row .vthumb { position: relative; z-index: 1; }   /* the video links sit above the row link */
.row .vthumb { align-self: start; }

/* article: the reading column with a contents list in the left margin on wide screens */
.post-grid { display: grid; grid-template-columns: minmax(0, var(--measure)); justify-content: center; padding-top: clamp(36px, 5vw, 72px); }
.post-grid > * { min-width: 0; }
.post-head { display: grid; gap: 22px; }
.post-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.06; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; background: var(--panel); flex: none; }
.byline-text { display: grid; gap: 2px; line-height: 1.35; }
.byline-name { color: var(--ink); font-weight: 600; }
a.byline-name { justify-self: start; text-decoration: none; }   /* the name links to the About page */
a.byline-name:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-meta { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.post-meta .sep { padding: 0 .45em; }
.post-video { margin: 32px 0 0; display: grid; gap: 12px; }
.post-video figcaption { font-size: .95rem; }
.date-todo { background: #FFF1E6; color: var(--ink); padding: 0 .3em; border-radius: 5px; }   /* draft-only marker for facts still to confirm */

.toc { grid-row: 2; justify-self: start; align-self: start; position: sticky; top: 108px; width: min(100%, 214px); margin-top: 6px; display: none; }
.toc-title { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 9px 0; font-size: .92rem; line-height: 1.35; color: var(--muted); text-decoration: none; text-wrap: pretty; transition: color .15s ease; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 600; }
@media (min-width: 1180px) {
  .post-grid { grid-template-columns: minmax(0, 1fr) var(--measure) minmax(0, 1fr); column-gap: 40px; justify-content: stretch; }
  .post-grid > * { grid-column: 2; }
  .post-grid > .toc { grid-column: 1; display: block; }
}

/* article body */
.prose { grid-row: 2; padding-top: 40px; font-size: 1.125rem; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.15; letter-spacing: -.022em; margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.016em; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(26, 39, 68, .4); transition: text-decoration-color .15s ease; }
.prose a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 3px; }
.prose a.zoom { text-decoration: none; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin-top: .4em; }
.prose li::marker { color: var(--ink); font-weight: 600; }
.prose ol { font-variant-numeric: tabular-nums; }
.prose code { font: inherit; font-size: .94em; color: var(--ink); background: var(--soft); padding: .08em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.prose pre { margin-top: 1.6em; margin-bottom: 1.6em; padding: 22px 24px; background: var(--soft); border-radius: var(--radius-s); white-space: pre-wrap; overflow-wrap: anywhere; font: 400 1rem/1.6 var(--body); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
/* quotes: the homepage quote mark in the note ink, the quote in navy */
.prose blockquote { position: relative; margin: 1.8em 0; padding-left: 52px; color: var(--ink); font-weight: 500; }
.prose blockquote::before { content: ""; position: absolute; left: 0; top: .35em; width: 32px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M0 48V28C0 12 8 2 24 0l3 7C18 10 14 16 14 23h12v25zm36 0V28c0-16 8-26 24-28l3 7c-9 3-13 9-13 16h12v25z' fill='%23D9661A'/%3E%3C/svg%3E") no-repeat center / contain; }
.prose blockquote p + p { margin-top: .7em; }
.prose blockquote + blockquote { margin-top: 1.2em; }
/* prompts readers paste: the same soft panel as the prompt in the software article */
.prose blockquote.prompt { padding: 20px 24px; background: var(--soft); border-radius: var(--radius-s); font-size: 1.0625rem; line-height: 1.6; }
.prose blockquote.prompt::before { content: none; }
.prose blockquote.prompt code { background: var(--ground); }
/* figures: 10px corners, a hairline, no shadow; click opens the full image */
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--soft); }
.prose .fig-narrow img { max-width: 440px; margin-inline: auto; }
.prose .fig-medium img { max-width: 560px; margin-inline: auto; }
.prose figcaption { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.zoom { display: block; cursor: zoom-in; border-radius: var(--radius-s); }
.fig-missing { display: grid; gap: 8px; place-items: center; text-align: center; padding: 40px 24px; border: 2px dashed #A3ABBC; border-radius: var(--radius-s); background: var(--soft); color: var(--ink); font-size: .95rem; line-height: 1.5; }
.fig-missing strong { font-weight: 700; }
/* tables: a 2px navy rule on top and hairlines between rows, like the ruled lists */
.table-wrap { margin: 1.8em 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); }
.prose th { text-align: left; vertical-align: bottom; padding: 12px 18px 12px 0; color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--ink); }
.prose td { vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); }
.prose th:last-child, .prose td:last-child { padding-right: 0; }
.prose .num { text-align: right; }
.prose td.num { white-space: nowrap; }
/* the companion video inside a post body (SEO post) */
.prose .inline-video { display: grid; gap: 10px; }

/* end of article: Matt on a flat navy panel with his head over the top edge, the homepage lede and two doors */
.post-end { padding-top: clamp(72px, 9vw, 120px); }
.end-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); min-height: 360px; padding: clamp(32px, 4.5vw, 56px); background: var(--panel); color: var(--on-panel); border-radius: var(--radius); }
.end-copy { display: grid; gap: 18px; align-content: center; max-width: 34em; }
.end-copy h2 { color: var(--on-panel); font-size: clamp(1.9rem, 3.6vw, 3rem); }
.end-copy p { color: var(--on-panel-soft); font-size: 1.15rem; line-height: 1.55; text-wrap: pretty; }
.end-copy .actions { margin-top: 6px; }
.on-panel .btn-ghost { background: transparent; color: var(--on-panel); border-color: var(--on-panel-soft); }
.on-panel .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--on-panel); }
.end-photo { position: absolute; right: clamp(16px, 5vw, 64px); bottom: 0; height: calc(100% + 72px); width: auto; pointer-events: none; }
.end-photo img { height: 100%; width: auto; max-width: none; }

/* end of article: more posts, the homepage's ruled post rows */
.more { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.posts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.posts li { border-bottom: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 24px 8px; text-decoration: none; color: var(--ink); transition: background .2s ease; }
.post:hover { background: var(--soft); }
.post-date { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.post-title { font-weight: 600; font-size: 1.15rem; line-height: 1.35; text-wrap: pretty; }
.post:hover .post-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-read { color: var(--muted); font-size: .92rem; white-space: nowrap; }

/* lightbox for figures */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(11, 18, 34, .86); }
.lightbox img { max-width: min(96vw, 1400px); max-height: 90vh; width: auto; height: auto; border-radius: var(--radius-s); background: #fff; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--ground); color: var(--ink); cursor: pointer; }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-close:focus-visible { outline-color: var(--pop); }

/* the header tagline goes below 1100px: with the theme toggle in the header, "Work with Matt" wrapped onto two lines from 1021 to 1052px (2026-11-25) */
@media (max-width: 1100px) {
  .brand-tag { display: none; }
  .foot-brand .brand-tag { display: block; }
}
/* narrow screens (homepage breakpoints) */
@media (max-width: 1020px) {
  .row { grid-template-columns: 112px minmax(0, 1fr) 168px; gap: 12px 24px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--body); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: var(--radius-s); padding: 10px 14px; cursor: pointer; }
  .nav .btn-small { display: none; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); background: var(--ground); border-bottom: 1px solid var(--line); }
  .nav-list.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 17px; }
  .menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .menu a { white-space: normal; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-video { order: -1; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 4px; }
  .row .vthumb { display: none; }
  .row-date { padding-top: 0; }
  .post { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sec-head .text-link { justify-self: start; }
  .end-panel { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .end-photo { position: relative; right: auto; height: auto; justify-self: center; margin-top: 28px; }
  .end-photo img { width: min(76vw, 300px); height: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .prose { font-size: 1.0625rem; line-height: 1.68; }
  .prose blockquote { padding-left: 40px; }
  .prose blockquote::before { width: 26px; height: 20px; }
  .prose pre { padding: 18px; }
  .prose .fig-narrow img, .prose .fig-medium img { max-width: 100%; }
  .row-title { font-size: 1.15rem; }
  .actions > .btn { flex: 1 1 0; min-width: max-content; justify-content: center; }   /* button pairs: equal widths side by side, full width once they stack */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vthumb img, .v-play, .btn .ico, .text-link .ico, .featured .go .ico, .nav-link .chev, .toc a { transition: none; }
}

/* keeps a hyphenated term such as E-E-A-T on one line */
.nw { white-space: nowrap; }
