/* nickybay.com — site stylesheet (hand-written, no framework).
   Sections: 1 tokens · 2 fonts · 3 base · 4 header · 5 nav · 6 search · 7 layout/home · 8 post · 9 content
   (prose, journal, checklist, review, video) · 10 post footer · 11 comments · 12 widgets · 13 footer
   · 14 mail prompt · 15 misc pages · 16 motion. Content markup reference: docs/theme-content-markup.md */

/* ---------- 1. Tokens ---------- */
:root {
  --accent: #fce600;
  --accent-hi: #fff27a;
  --accent-tint: #1f1d08;
  --head: #ffffff;
  --text: #ececec;
  --t2: #cccccc;          /* secondary text */
  --t3: #a7a7a7;          /* muted text */
  --t4: #929292;          /* faint text, labels (6.4:1 on --bg) */
  --deco: #616161;        /* decorative only (separators) */
  --bg: #0a0a0a;
  --foot: #000000;
  --s1: #121212;          /* surfaces, lightest last */
  --s2: #151515;
  --s3: #181818;
  --s4: #1d1d1d;          /* image placeholders, tags */
  --hover: #202020;
  --line: #262626;
  --line-2: #393939;      /* control borders */
  --font-h: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 54px;
  --max: 1200px;
  --gut: 24px;
  --shadow: 0 24px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- 2. Fonts (latin subset, self-hosted) ---------- */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 18px; line-height: 1.65; overflow-x: hidden; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-h); font-weight: 600; color: var(--head); }
p, ul, ol, figure, blockquote { margin: 0; }
b, strong { font-weight: 600; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.vh-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #000; font-family: var(--font-h); font-weight: 700; font-size: 13px; }
.skip:focus { top: 12px; color: #000; }
.ico { width: 16px; height: 16px; flex: none; fill: currentColor; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.kicker { font-family: var(--font-h); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--t4); }
.kicker a { color: var(--accent); }
.label { font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--head); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: var(--accent); color: #000; border: 0; font-family: var(--font-h); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.btn:hover { color: #000; filter: brightness(1.08); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border: 1px solid var(--line-2); color: var(--text); background: none; font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.btn-ghost:hover { border-color: var(--accent); color: var(--head); }
.field { width: 100%; min-width: 0; height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; border-radius: 0; }
textarea.field { height: auto; min-height: 150px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.field:focus { border-color: var(--accent); outline: none; }
.field::placeholder { color: #8a8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose a, .entry a { color: var(--head); text-decoration: underline; text-decoration-color: rgba(252, 230, 0, .6); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.prose a:hover, .entry a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 20px; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider--sm { font-size: 13px; letter-spacing: .26em; color: var(--t2); }

/* ---------- 4. Site header ---------- */
.st { background: var(--foot); padding: 30px var(--gut) 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
/* Post/page strip: a still from the home header clip under a dark wash (owner, 2026-11-22).
   Files come from media/header-strip-*.webp (copied to /assets/video/ by the build). */
.st {
  background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .74)), var(--foot) url("/assets/video/header-strip-1920.webp") center 55% / cover no-repeat;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.st .st-dot { color: #8a8a8a; }
.st .st-by { color: #d0d0d0; }
@media (max-width: 960px) {
  .st { background-image: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .74)), url("/assets/video/header-strip-960.webp"); }
}
.st-title, .vh-title { margin: 0; font-family: var(--font-h); font-weight: 700; text-transform: uppercase; }
.st-title { font-size: 30px; line-height: 1.1; letter-spacing: .12em; }
.st-title a, .vh-title a { color: var(--head); }
.st-title a:hover, .vh-title a:hover { color: var(--head); }
.st-sub { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; }
.st-by, .vh-by { font-family: var(--font-h); font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #bdbdbd; }
.st-by b, .vh-by b { font-weight: 700; color: var(--accent); }
.st-dot { color: #5f5f5f; }
.st-tag { font-size: 16px; font-style: italic; color: var(--t2); }

.vh { position: relative; height: 420px; overflow: hidden; background: var(--foot); isolation: isolate; }
.vh-media { position: absolute; inset: 0; z-index: 0; }
.vh-media img, .vh-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vh-media video { opacity: 0; transition: opacity .6s ease; }
.vh.is-playing .vh-media video { opacity: 1; }
.vh-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.66) 34%, rgba(0,0,0,.08) 66%), linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 38%); }
.vh-t { position: absolute; z-index: 2; top: 0; bottom: 0; left: max(var(--gut), calc(50% - 600px)); width: min(520px, 46%); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.vh-title { font-size: 52px; line-height: 1.02; letter-spacing: .1em; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.vh-by { margin: 0; font-size: 13px; }
.vh-rule { width: 48px; height: 2px; background: var(--accent); margin: 8px 0 2px; }
.vh-tag { font-size: 18px; line-height: 1.45; font-style: italic; color: #e2e2e2; }
.vh-btn { position: absolute; z-index: 3; right: 20px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); border: 1px solid #444; color: var(--head); }
.vh-btn:hover { border-color: var(--accent); }
.vh-btn svg { width: 14px; height: 14px; fill: currentColor; }
.vh-btn .i-play, .vh.is-paused .vh-btn .i-pause { display: none; }
.vh.is-paused .vh-btn .i-play { display: block; }

/* ---------- 5. Site nav (sticky bar, desktop dropdowns, phone drawer) ---------- */
.sn-wrap { position: sticky; top: 0; z-index: 50; transition: transform .25s ease; }
.sn { position: relative; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.sn-bar { display: flex; align-items: center; justify-content: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sn-burger, .sn-x, .sn-brand, .sn-msearch, .sn-socials { display: none; }
.sn-menu { display: flex; align-items: center; }
.sn-top { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 30px; font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.sn-top > li { position: relative; }
.mi { display: flex; align-items: stretch; }
.mi-l { display: flex; align-items: center; gap: 6px; color: var(--t2); background: none; border: 0; padding: 0; text-align: left; letter-spacing: inherit; text-transform: inherit; font-weight: inherit; }
.mi-l:hover { color: var(--head); }
.sn-top > li > .mi > .mi-l { min-height: 52px; border-bottom: 2px solid transparent; }
.sn-top > li.is-open > .mi > .mi-l, .sn-top > li > .mi > .mi-l[aria-current="page"] { color: var(--head); border-bottom-color: var(--accent); }
.mi-c { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.mi-x { width: 10px; height: 10px; fill: none; stroke: var(--t4); stroke-width: 2.6; stroke-linecap: round; flex: none; }
.mi-tg { display: none; }
.sub { list-style: none; margin: 0; padding: 0; display: none; }
html:not(.js) .sn-top > li:hover > .sub, html:not(.js) .sn-top > li:focus-within > .sub { display: block; position: absolute; top: 100%; left: -18px; z-index: 5; width: 280px; padding: 8px 0; background: var(--s3); border: 1px solid #292929; }
html:not(.js) .sub .sub { display: none; }
html:not(.js) .sub a { display: block; padding: 8px 18px; color: #d4d4d4; font-family: var(--font-b); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sn-search-btn { display: flex; align-items: center; min-height: 52px; margin-left: 30px; padding: 0 2px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--t2); }
.sn-search-btn:hover, .sn-search-btn[aria-expanded="true"] { color: var(--head); }
.sn-search-btn[aria-expanded="true"] { border-bottom-color: var(--accent); }
.sn-search-btn svg, .sp-field svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Desktop cascading dropdown (built by site.js from the menu tree): one column per open level */
.dd { position: absolute; top: 100%; left: -18px; z-index: 5; display: flex; align-items: flex-start; }
.dd.is-flip { left: auto; right: -18px; flex-direction: row-reverse; }
.dd-col { list-style: none; margin: var(--y, 0) 0 0; padding: 8px 0; width: 280px; max-height: var(--avail, 70vh); overflow-y: auto; overscroll-behavior: contain; background: var(--s3); border: 1px solid #292929; box-shadow: var(--shadow); scrollbar-width: thin; scrollbar-color: #3f3f3f transparent; font-family: var(--font-b); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.dd-col + .dd-col { margin-left: -1px; }
.dd.is-flip .dd-col + .dd-col { margin-left: 0; margin-right: -1px; }
.dd-col::-webkit-scrollbar { width: 6px; }
.dd-col::-webkit-scrollbar-thumb { background: #3f3f3f; border-radius: 3px; }
.dd-i { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 40px; padding: 0 18px; color: #d4d4d4; background: none; border: 0; white-space: nowrap; text-align: left; }
.dd-i span { overflow: hidden; text-overflow: ellipsis; }
.dd-i:hover, .dd-i:focus-visible, .dd-i.is-on { background: var(--hover); color: var(--head); }
.dd-i:focus-visible { outline-offset: -2px; }

/* Phones and small tablets: bar with menu + search buttons; full-screen drawer */
@media (max-width: 819px) {
  .sn-bar { justify-content: space-between; padding: 0 8px 0 12px; min-height: 52px; }
  .sn-burger, .sn-msearch { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px; background: none; border: 0; color: var(--text); font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
  .sn-burger svg, .sn-msearch svg, .sn-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .sn-search-btn { display: none; }
  .sn-menu { display: none; position: fixed; inset: 0; z-index: 70; flex-direction: column; align-items: stretch; background: var(--bg); }
  html.menu-open { overflow: hidden; }
  html.menu-open .sn-menu { display: flex; }
  .sn-dhead { flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); }
  .sn-brand { display: block; font-family: var(--font-h); font-weight: 700; font-size: 16px; letter-spacing: .3em; text-transform: uppercase; color: var(--head); }
  .sn-x { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); }
  .sn-dbody { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3f3f3f transparent; }
  .sn-msearchf { display: block; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .sn-top { display: block; letter-spacing: 0; text-transform: none; font-weight: 400; font-family: var(--font-b); font-size: 17px; }
  .sn-top li { background: var(--bg); border-bottom: 1px solid var(--line); }
  .sn-top .sub li { border-bottom-color: #222; }
  .sub .mi-l { flex: 1; min-height: 46px; padding: 6px 12px 6px 36px; line-height: 1.3; color: var(--text); }
  .sub .sub .mi-l { padding-left: 52px; font-size: 16px; color: #c7c7c7; }
  .sub .sub .sub .mi-l { padding-left: 68px; font-size: 15px; color: var(--t3); }
  .sn-top > li > .mi > .mi-l { flex: 1; min-height: 52px; padding-left: 20px; border: 0; font-family: var(--font-h); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
  .sn-top > li > .mi > a.mi-l .mi-c { display: none; }
  .mi-l:active { color: var(--accent); }
  a.mi-l[data-ext]::after { content: "\2197"; margin-left: 7px; font-size: 12px; color: var(--t4); }
  button.mi-l { justify-content: space-between; padding-right: 19px !important; font-weight: 600 !important; }
  .mi-tg { display: flex; flex: 0 0 52px; min-height: 50px; align-items: center; justify-content: center; background: none; border: 0; border-left: 1px solid #222; color: var(--t2); }
  button.mi-l svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .2s; }
  .is-open > .mi > button.mi-l svg { transform: rotate(180deg); stroke: var(--accent); }
  .mi-tg::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2.4px 2.4px 0; border-radius: 1px; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .is-open > .mi > .mi-tg { color: var(--accent); }
  .is-open > .mi > .mi-tg::before { transform: translateY(2px) rotate(-135deg); }
  .sub { background: #171717; }
  .sub .sub { background: #1b1b1b; }
  .sub .sub .sub { background: #1e1e1e; }
  .sn-top li.is-open > .sub { display: block; }
  .sn-socials { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 24px 20px 32px; font-size: 15px; }
}
/* Phones: the bar slides away on scroll down (site.js sets html.nav-hidden) */
@media (max-width: 699px) { html.nav-hidden .sn-wrap { transform: translateY(-100%); } }
@media (min-width: 820px) {
  .sn-dhead, .sn-msearchf { display: none; }
  .sn-dbody { display: contents; }
  .sn-top button.mi-l .mi-c { display: block; }
}
@media (min-width: 820px) and (max-width: 1000px) { .sn-top { gap: 4px 16px; font-size: 11px; letter-spacing: .1em; } .sn-search-btn { margin-left: 16px; } }

/* ---------- 6. Search panel (Pagefind placeholder) ---------- */
.sp { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,.6); }
.sp-in { max-width: 760px; margin: 0 auto; padding: 20px var(--gut) 24px; display: flex; flex-direction: column; gap: 14px; }
.sp-field { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; background: var(--s2); border: 1px solid #3a3a3a; color: var(--t4); }
.sn-msearchf .sp-field { height: 46px; padding: 0 14px; }
.sp-field:focus-within { border-color: var(--accent); }
.sp-field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: var(--text); font-size: 17px; outline: none; }
.sp-close { display: flex; padding: 6px; background: none; border: 0; color: var(--t2); }
.sp-close:hover { color: var(--head); }
.sp-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sp-status { font-size: 14px; color: var(--t4); }
.sp-results { list-style: none; margin: 0; padding: 0; }
.sp-results li { border-top: 1px solid #1e1e1e; }
.sp-results a { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; color: #d4d4d4; }
.sp-results a:hover { background: var(--hover); }
.sp-results .kicker { color: var(--accent); font-size: 10px; letter-spacing: .2em; }
.sp-results strong { font-family: var(--font-h); font-size: 15px; color: var(--head); }
.sp-results span { font-size: 15px; color: var(--t3); }
.sp-results mark { background: none; color: var(--accent); }

/* ---------- 7. Layout: home grid, cards, pagination, archive head ---------- */
.home { padding: 48px var(--gut) 24px; max-width: var(--max); margin: 0 auto; }
.home .divider { margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 48px 32px; }
@media (min-width: 761px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1151px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card--big { grid-column: span 2; grid-row: span 2; } }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-img { display: block; aspect-ratio: 40 / 21; overflow: hidden; background: var(--s4); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.card-img:hover img { opacity: .85; }
.card h3 { font-size: 19px; line-height: 1.35; letter-spacing: .01em; }
.card h3 a { color: #f5f5f5; }
.card h3 a:hover { color: var(--accent); }
.card-ex { color: #b4b4b4; font-size: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .btn-ghost { align-self: flex-start; margin-top: 4px; }
@media (min-width: 900px) {
  .card--big h3 { font-size: 30px; line-height: 1.25; }
  .card--big .card-ex { font-size: 19px; -webkit-line-clamp: 8; }
}
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 64px 0 0; font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pager-n { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pager-n a, .pager-n span { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); color: var(--t2); letter-spacing: .05em; }
.pager-n a:hover { border-color: var(--accent); color: var(--head); }
.pager-n [aria-current] { border-color: var(--accent); color: #000; background: var(--accent); }
.pager-n .gap { border: 0; min-width: 20px; }
.arch-head { max-width: 900px; margin: 0 auto; padding: 56px var(--gut) 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.arch-head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; letter-spacing: .02em; }
.arch-head .prose { color: var(--t3); font-size: 17px; }
.arch { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 24px; }

/* ---------- 8. Post: title block, feature image ---------- */
.post-head { max-width: 900px; margin: 0 auto; padding: 56px var(--gut) 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.post-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.18; letter-spacing: .02em; overflow-wrap: anywhere; }
.byline { font-size: 16px; color: var(--t3); }
.feat { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
/* Post feature image: never cropped (owner, 2026-11-22) — shown at its own ratio; very tall images are capped
   at 80% of the screen height and centred. Cards elsewhere keep the 40:21 crop. */
.feat-frame { display: flex; justify-content: center; }
.feat-frame img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.feat-frame img.is-tall { width: auto; max-width: 100%; }

/* ---------- 9. Post content (contentHtml) ---------- */
.entry { counter-reset: pic; padding: 48px var(--gut) 0; font-size: 19px; line-height: 1.7; overflow-wrap: break-word; }
.entry > * { max-width: 672px; margin-left: auto; margin-right: auto; }
.entry > * + * { margin-top: 22px; }
/* Section headings: larger and bolder than the 19px body, with a short yellow rule (owner, 2026-11-22:
   the mockup's 18px/600 blended into the text). */
.entry > h2 { margin-top: 56px; font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.entry > h2:not(.sec):not(.divider)::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 12px; background: var(--accent); }
.entry > h2 + * { margin-top: 20px; }
@media (max-width: 700px) { .entry > h2 { margin-top: 44px; font-size: 20px; } }
.entry > h2.sec { margin-top: 62px; display: flex; align-items: center; gap: 16px; }
.entry > h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.entry > h2.sec + * { margin-top: 22px; }
.entry > h3, .entry h3.sub { font-size: 17px; line-height: 1.4; }
.entry > h3 { margin-top: 40px; }
.entry > h3 + * { margin-top: 12px; }
.entry > h4 { font-size: 16px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry li + li { margin-top: 6px; }
.entry ul.dot li::marker { color: var(--accent); }
.entry .refs { font-size: 17px; color: #c7c7c7; }
.entry .note { font-size: 17px; color: #bcbcbc; }
.entry hr { border: 0; height: 1px; background: var(--line); }
.entry code { font-size: .9em; background: var(--s3); padding: 1px 5px; }
.entry blockquote { margin-top: 30px; margin-bottom: 8px; text-align: center; font-size: 22px; line-height: 1.55; color: #d4d4d4; font-style: italic; }
.entry blockquote::before, .entry blockquote::after { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); margin: 0 auto 18px; }
.entry blockquote::after { margin: 18px auto 0; }
.entry blockquote p + p { margin-top: 12px; }
.entry > .wide { max-width: 1024px; }
.ph { background: #000; }
.ph a, .ph img { display: block; width: 100%; }
.ph figcaption, .video figcaption { margin-top: 10px; font-size: 15px; color: var(--t3); text-align: center; }

/* Video embed (YouTube nocookie / Vimeo), 16:9 */
.video-frame { aspect-ratio: 16 / 9; background: #1b1b1b; border: 1px solid #292929; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Photo journal: numbered photo lists (CSS counter across the whole post) */
.entry > .pj { max-width: 1024px; margin-top: 72px; }
.pj-intro { max-width: 672px; margin: 28px auto 0; color: #bcbcbc; text-align: center; font-size: 17px; }
.pj-nav { position: sticky; top: var(--nav-h); z-index: 40; margin: 24px calc(-1 * var(--gut)) 0; padding: 12px var(--gut); background: rgba(10,10,10,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; transition: top .25s ease; }
.entry .pj-nav a { padding: 9px 16px; border: 1px solid var(--line-2); color: var(--t2); text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.entry .pj-nav a:hover { color: var(--head); border-color: var(--accent); }
.entry .pj-nav a[aria-current="true"] { border-color: var(--accent); color: var(--head); background: var(--accent-tint); }
@media (max-width: 699px) {
  .pj-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pj-nav::-webkit-scrollbar { display: none; }
  .pj-nav a { flex: none; white-space: nowrap; }
  html.nav-hidden .pj-nav { top: 0; }
}
.pj-sec { padding-top: 72px; scroll-margin-top: 150px; }
.pj-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 40px; }
.pj-kicker { font-family: var(--font-h); font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.pj-head h3 { font-size: 26px; letter-spacing: .04em; line-height: 1.3; }
.pj-note { font-size: 15px; color: var(--t4); }
.entry .pics, .pics { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 64px; }
.entry > .pics { max-width: 1024px; margin-top: 56px; }
.entry .pics > li { counter-increment: pic; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pic { display: flex; justify-content: center; width: 100%; background: #000; }
/* Photos shown together (the old theme's div.collage with collage-col-N cells, photo tables): a 12-column grid,
   N columns per cell; on phones 2 -> 3, 3 -> 4, 4 -> 6, 6 -> 12 (as the old theme: 4, 3, 2 and 1 per row). */
.collage { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; }
.collage .cg { grid-column: span 3; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.collage .cg-1 { grid-column: span 1; } .collage .cg-2 { grid-column: span 2; } .collage .cg-4 { grid-column: span 4; }
.collage .cg-5 { grid-column: span 5; } .collage .cg-6 { grid-column: span 6; } .collage .cg-8 { grid-column: span 8; }
.collage .cg-12 { grid-column: span 12; }
.collage .cg > a { display: block; background: #000; }
.collage img { display: block; width: 100%; height: auto; }
.collage img.flip { transform: scaleX(-1); }
.collage.team-member img { aspect-ratio: 3 / 4; object-fit: cover; }
.collage figcaption { font-family: var(--font-b); font-size: 13px; line-height: 1.35; color: var(--t3); text-align: center; }
.collage .cg-note { align-self: center; font-size: 14px; color: var(--t3); text-align: center; }
.entry .pics > li.no-cap { gap: 0; }
@media (max-width: 640px) {
  .collage .cg, .collage .cg-3 { grid-column: span 4; } .collage .cg-2 { grid-column: span 3; } .collage .cg-4 { grid-column: span 6; }
  .collage .cg-5, .collage .cg-6, .collage .cg-8, .collage .cg-12 { grid-column: span 12; }
}
.pic img { width: 100%; }
.pic img.portrait { width: auto; max-width: 100%; height: min(860px, 120vw); }
.cap { max-width: 672px; width: 100%; display: flex; gap: 18px; align-items: baseline; }
.cap::before { content: counter(pic) "."; flex: none; min-width: 44px; text-align: right; font-family: var(--font-h); font-size: 20px; font-weight: 600; color: var(--head); }
.cap-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cap h4 { font-size: 18px; font-weight: 500; letter-spacing: .01em; line-height: 1.45; }
.cap h4 b { font-weight: 700; }
.cap .sci { color: #bcbcbc; }
.cap .sci i { font-family: var(--font-b); font-size: 19px; }
.cap p { color: #c7c7c7; }
.cap p + p { margin-top: 0; }
@media (max-width: 520px) { .cap { gap: 12px; } .cap::before { min-width: 30px; font-size: 18px; } }

/* Species checklist */
.entry > .ck { max-width: 1040px; margin-top: 72px; }
.ck-filter { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ck-hint { font-size: 15px; color: var(--t4); }
.ck-regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ck-reg { position: relative; }
.chip { min-height: 50px; padding: 6px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: transparent; color: var(--t2); border: 1px solid var(--line-2); font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.chip:hover { border-color: var(--accent); color: var(--head); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.chip-l { display: flex; align-items: center; gap: 8px; }
.chip-l svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.chip-n { font-size: 10px; font-weight: 500; letter-spacing: .08em; opacity: .75; }
.ck-drop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 6px; z-index: 30; }
.ck-drop ul { list-style: none; margin: 0; padding: 6px 0; min-width: 250px; background: var(--s3); border: 1px solid #323232; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.ck-drop li + li { margin: 0; }
.dropi { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 18px; background: transparent; border: 0; border-left: 2px solid transparent; color: var(--text); font-size: 16px; font-weight: 600; text-align: left; line-height: 1.4; }
.dropi.is-state { padding-left: 36px; font-size: 15px; font-weight: 400; color: var(--t3); }
.dropi:hover { background: var(--hover); color: var(--head); }
.dropi[aria-pressed="true"] { background: var(--hover); border-left-color: var(--accent); color: var(--head); }
.dropi span + span { font-size: 13px; font-weight: 400; color: var(--t4); }
.ck-sum { font-size: 15px; color: var(--t3); }
.ck-lineage { list-style: none; margin: 48px auto 0 !important; padding: 14px 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 16px; color: var(--t3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ck-lineage li { margin: 0 !important; }
.ck-lineage li + li::before { content: "›"; margin-right: 14px; color: #4f4f4f; }
.rank { font-family: var(--font-h); font-size: 11px; font-weight: 600; font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: var(--t4); }
.ck-lineage .rank { font-size: 10px; letter-spacing: .2em; }
.tx { color: var(--text); }
.ck-howto { margin-top: 20px; font-size: 15px; color: var(--t4); }
.taxon { margin-top: 36px; }
.ck > .taxon, .ck-howto + .taxon { margin-top: 28px; }
.taxon > .taxon:nth-child(2), .taxon-inner > .taxon:first-child { margin-top: 20px; }
.taxon-title { --pt: 12px; --pb: 12px; position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: var(--pt) 0 var(--pb); border-bottom: 1px solid var(--line); font-size: 30px; letter-spacing: .02em; line-height: 1.3; }
.taxon .taxon > .taxon-title { font-size: 23px; --pt: 10px; --pb: 10px; }
.taxon .taxon .taxon > .taxon-title { font-size: 19px; --pt: 8px; --pb: 8px; }
.taxon-title .tx { color: var(--head); }
.taxon-title .auth { font-family: var(--font-b); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--t3); }
.taxon[data-rank="genus"], .taxon[data-rank="subgenus"], .taxon[data-rank="species"] { padding-left: 20px; border-left: 1px solid var(--line); margin-top: 20px; }
.taxon[data-rank="genus"] > .taxon-title, .taxon[data-rank="subgenus"] > .taxon-title, .taxon[data-rank="species"] > .taxon-title { border-bottom-color: transparent; --pt: 4px; --pb: 8px; }
.taxon[data-rank="genus"] > .taxon-title .tx, .taxon[data-rank="subgenus"] > .taxon-title .tx, .taxon[data-rank="species"] > .taxon-title .tx { font-family: var(--font-b); font-size: 21px; font-style: italic; letter-spacing: 0; }
.taxon.is-bucket > .taxon-title .tx { font-style: normal; }   /* "Unidentified Metapterini" is not a genus name */
.taxon-btn { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; margin: calc(-1 * var(--pt)) -14px calc(-1 * var(--pb)); padding: var(--pt) 14px var(--pb); background: none; border: 0; border-radius: 4px; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; transition: background-color .15s ease; }
.taxon-btn:hover { background-color: rgba(255,255,255,.05); }
.taxon-btn:focus-visible { outline-offset: 0; }
.taxon-names { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.taxon-chain { display: none; flex-basis: 100%; font-family: var(--font-b); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--t4); }
.taxon-n { margin-left: auto; flex: none; display: flex; align-items: center; gap: 12px; font-family: var(--font-h); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--t4); }
.taxon-n svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .3s ease; }
.taxon.is-folded > .taxon-title .taxon-n svg { transform: rotate(-90deg); }
.tt { visibility: hidden; opacity: 0; transition: opacity .12s ease 0s, visibility 0s linear .12s; position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 280px; max-width: min(560px, 100%); padding: 12px 18px 14px; background: #050505; border: 1px solid #323232; box-shadow: 0 18px 40px rgba(0,0,0,.6); font-family: var(--font-b); font-size: 15px; font-style: normal; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; color: #c7c7c7; pointer-events: none; }
.taxon-btn:hover .tt, .taxon-btn:focus-visible .tt { visibility: visible; opacity: 1; transition: opacity .12s ease .25s, visibility 0s linear .25s; }
.tt-r { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.tt-r::before { content: ""; flex: none; width: 7px; height: 7px; margin-bottom: 5px; border-left: 1px solid #717171; border-bottom: 1px solid #717171; }
.tt-r[data-d="1"] { padding-left: 14px; } .tt-r[data-d="2"] { padding-left: 28px; } .tt-r[data-d="3"] { padding-left: 42px; } .tt-r[data-d="4"] { padding-left: 56px; } .tt-r[data-d="5"] { padding-left: 70px; } .tt-r[data-d="6"] { padding-left: 84px; } .tt-r[data-d="7"] { padding-left: 98px; } .tt-r[data-d="8"] { padding-left: 112px; }
.tt-r .rank { font-family: var(--font-b); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.tt-r .tt-n { color: var(--text); }
.tt-r.is-kid .tt-n { color: #c7c7c7; }
.tt-r.is-cur > span:last-child { font-weight: 600; border: 1px dotted #717171; border-radius: 4px; padding: 0 8px; }
.tt-r.is-cur .tt-n { color: var(--head); }
.tt-r.is-more .tt-n { font-style: italic; color: var(--t3); }
.tt-n.it { font-style: italic; }
@media (hover: none) { .taxon-chain { display: block; } .tt { display: none; } }
.taxon-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.taxon-inner { min-height: 0; min-width: 0; opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s linear 0s; }
.taxon.is-folded > .taxon-body { grid-template-rows: 0fr; }
.taxon.is-folded > .taxon-body > .taxon-inner { overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.taxon.is-moving > .taxon-body > .taxon-inner { overflow: hidden; }
.recs { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 32px 28px; }
@media (min-width: 861px) { .recs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rec { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rec { container-type: inline-size; }
.rec > a { display: block; overflow: hidden; background: var(--s4); }
.rec img { width: 100%; transition: transform .35s ease; }
/* portrait records: no taller than the column is wide, centred (owner, 2026-11-22) */
.rec > a:has(> img.portrait) { align-self: center; max-width: 100%; }
.rec img.portrait { width: auto; max-width: 100%; height: auto; max-height: 100cqw; }
.rec > a:hover img, .rec > a:focus-visible img { transform: scale(1.05); }
.rec figcaption { font-size: 16px; line-height: 1.5; color: #c7c7c7; }
.rec-loc { color: var(--text); font-weight: 600; }
.rec-sp { color: var(--head); }
.rec-sex { color: var(--accent); }
.rec-host { display: block; margin-top: 2px; font-size: 15px; color: var(--t3); }
.rec-host b { font-weight: 600; color: var(--t2); }
.rec-host::before { content: "\2766\00a0"; color: #6f8f5f; }

/* Equipment review: tables, pros/cons, FAQ */
.tw { overflow-x: auto; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; }
.tbl th, .tbl td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #222; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th { background: var(--s2); border-bottom: 1px solid #333; font-family: var(--font-h); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.tbl tbody th { width: 40%; font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }
.tbl td { color: var(--text); }
.tbl tbody tr:nth-child(even) { background: #101010; }
.tbl tbody tr:hover { background: #171717; }
.tbl.num td, .tbl.num thead th:last-child, .tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .tbl { font-size: 16px; } .tbl th, .tbl td { padding: 10px 12px; } .tbl tbody th { width: 46%; letter-spacing: .06em; } }
.pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.pc > section { background: var(--s2); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.pc > .pc-cons { border-top-color: #5f5f5f; }
.pc h3 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.entry .pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.entry .pc li { margin: 0; display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.45; }
.pc li::before { flex: none; width: 14px; font-family: var(--font-h); font-size: 20px; font-weight: 700; line-height: 1; text-align: center; }
.pc-pros li::before { content: "+"; color: var(--accent); }
.pc-cons li::before { content: "\2212"; color: var(--t4); }
.pc-cons li { color: var(--t2); }
.faq { display: flex; flex-direction: column; gap: 26px; border-left: 2px solid var(--accent); padding-left: 22px; }
.faq-q { display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font-size: 17px; line-height: 1.4; }

/* ---------- 10. Post footer: tags, previous/next ---------- */
.post-foot { max-width: 1088px; margin: 0 auto; padding: 88px var(--gut) 0; display: flex; flex-direction: column; gap: 40px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-h); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tags a { display: block; color: var(--t2); background: var(--s4); padding: 9px 14px; }
.tags a:hover { color: var(--head); background: var(--hover); }
.updated { font-size: 15px; color: var(--t3); }
.pn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.pn a { display: flex; align-items: center; gap: 18px; color: #f5f5f5; }
.pn a:hover { color: var(--accent); }
.pn .pn-next { flex-direction: row-reverse; text-align: right; grid-column: -2; }
.pn .pn-prev + .pn-next { grid-column: auto; }
.pnt { flex: none; width: 168px; aspect-ratio: 40 / 21; overflow: hidden; background: var(--s4); }
.pnt img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pn a:hover .pnt img { transform: scale(1.05); }
.pn-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pn-t strong { font-family: var(--font-h); font-size: 17px; font-weight: 600; line-height: 1.35; }
@media (max-width: 520px) { .pnt { width: 112px; } }

/* ---------- 11. Comments ---------- */
.comments { max-width: 768px; margin: 0 auto; padding: 72px var(--gut) 0; }
.comments > h2 { margin-bottom: 28px; }
.c-list, .c-list ol { list-style: none; margin: 0; padding: 0; }
.c-list ol { margin-left: 28px; padding-left: 20px; border-left: 1px solid var(--line); }
.c-list ol ol ol { margin-left: 0; }
.comment { margin-top: 24px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.c-body { padding: 18px 20px; background: var(--s1); border: 1px solid var(--line); }
.comment:target > .c-body { border-color: var(--accent); }
.c-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.c-author { font-family: var(--font-h); font-size: 15px; font-weight: 600; color: var(--head); }
a.c-author { color: var(--head); text-decoration: underline; text-decoration-color: rgba(252,230,0,.6); text-underline-offset: 3px; }
.c-date { font-size: 14px; color: var(--t4); }
.c-date:hover { color: var(--accent); }
.c-text { font-size: 17px; color: var(--t2); }
.c-text p + p { margin-top: 12px; }
.c-reply { display: inline-block; margin-top: 10px; font-family: var(--font-h); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--t3); }
.c-reply:hover { color: var(--accent); }
.c-closed { color: var(--t3); font-size: 16px; margin-top: 24px; }
.c-form { margin-top: 40px; padding: 28px; background: var(--s3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.comment .c-form { margin-top: 16px; }
.c-form h3 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.c-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.c-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--t2); }
.c-form .lt { display: block; }
.c-form .opt { margin-left: 4px; font-size: 13px; color: var(--t4); }
.c-form .fine { font-size: 14px; color: var(--t4); }
.c-form .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.c-cancel { background: none; border: 0; padding: 0; color: var(--t3); text-decoration: underline; font-size: 15px; }
.c-cancel:hover { color: var(--accent); }
.c-status { font-size: 16px; color: var(--text); }

/* ---------- 12. Widget band (after posts and on Home) ---------- */
.widgets { max-width: var(--max); margin: 0 auto; padding: 88px var(--gut) 0; display: flex; flex-direction: column; gap: 48px; }
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 32px; background: var(--s1); border: 1px solid var(--line); }
.about-photo { flex: none; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.about-b { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.about-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.about-h h2 { font-size: 18px; letter-spacing: .2em; text-transform: uppercase; }
.about-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--t3); }
.about-loc svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.about-bio { font-size: 17px; line-height: 1.6; color: var(--t2); }
.about-bio p + p { margin-top: 10px; }
.soc-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; list-style: none; padding: 0; font-family: var(--font-h); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.soc { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); border: 1px solid var(--line-2); padding: 8px 12px; transition: border-color .15s, color .15s; }
.soc:hover { color: var(--head); border-color: var(--accent); }
.ml { background: var(--s3); border: 1px solid var(--line); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.ml-t { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.ml-t label { font-size: 17px; color: #c7c7c7; }
.ml-f { flex: 1 1 360px; display: flex; gap: 8px; flex-wrap: wrap; }
.ml-f .field { flex: 1 1 200px; width: auto; }
.ml-msg { flex-basis: 100%; font-size: 16px; }
.wcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 48px 40px; }
.w { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.w > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.w .prose { font-size: 15px; line-height: 1.6; color: var(--t3); }
.w .prose p + p { margin-top: 10px; }
.w-cats { list-style: none; margin: -8px 0 0; padding: 0; font-size: 16px; }
.w-cats li { border-bottom: 1px solid #1f1f1f; }
.w-cats a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: #d4d4d4; }
.w-cats a::after { content: "›"; color: var(--deco); }
.w-cats a:hover { color: var(--accent); }
.w-posts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.w-posts a { display: flex; gap: 14px; align-items: flex-start; }
.w-thumb { flex: 0 0 104px; aspect-ratio: 40 / 21; background: var(--s4); overflow: hidden; }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-posts .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w-posts strong { font-family: var(--font-h); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text); }
.w-posts a:hover strong { color: var(--accent); }
.w-posts .d { font-size: 13px; color: var(--t4); }

/* ---------- 13. Footer ---------- */
.foot { margin-top: 96px; background: var(--foot); border-top: 1px solid var(--line); font-size: 16px; }
.foot-cols { max-width: var(--max); margin: 0 auto; padding: 56px var(--gut) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 12px; }
.foot h2 { color: var(--t2); }
.foot p { color: var(--t3); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--t2); }
.foot-links a:hover { color: var(--accent); }
.foot-base { border-top: 1px solid #202020; }
.foot-base p { max-width: var(--max); margin: 0 auto; padding: 20px var(--gut); font-size: 14px; color: var(--t4); }

/* ---------- 14. Mailing-list slide-in prompt ---------- */
@keyframes mpIn { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.mp { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 360px; max-width: calc(100vw - 32px); background: var(--s2); border: 1px solid #333; border-top: 3px solid var(--accent); box-shadow: 0 24px 60px rgba(0,0,0,.65); animation: mpIn .35s ease both; }
.mp-top { position: relative; }
@media (max-width: 560px) { .mp { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; } .mp-img { display: none; } .mp-top { position: static; } }
.mp-img { width: 100%; }
.mp-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.65); color: #dadada; border: 0; border-radius: 50%; }
.mp-x:hover { background: #000; color: var(--head); }
.mp-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mp-b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.mp-top:not(:has(img)) { position: static; }
.mp-b h2 { color: var(--accent); padding-right: 40px; line-height: 34px; }
.mp-b p { font-size: 16px; line-height: 1.5; color: var(--t2); }
.mp-b form { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 15. Glossary, page, 404 ---------- */
.gl-cats ul { list-style: none; margin: 0 auto 18px; padding: 0 var(--gut); max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gl-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--t2); font: 600 13px/1.2 var(--font-h); text-decoration: none; }
.gl-cats a span { color: var(--t3, var(--t2)); font-weight: 400; }
.gl-cats a:hover { border-color: var(--accent); color: var(--head); }
.gl-cats a[aria-current] { background: var(--accent); border-color: var(--accent); color: #111; }
.gl-cats a[aria-current] span { color: #111; }
.gl-letters { list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-family: var(--font-h); font-weight: 600; }
.gl-letters a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--t2); }
.gl-letters a:hover { border-color: var(--accent); color: var(--head); }
.gl { max-width: 900px; margin: 0 auto; padding: 24px var(--gut) 0; }
.gl section { padding-top: 40px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.gl h2 { font-size: 24px; color: var(--accent); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.gl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px; }
.gl li a { display: block; padding: 10px 0; border-bottom: 1px solid #1f1f1f; color: #d4d4d4; }
.gl li a:hover { color: var(--accent); }
.back { max-width: 720px; margin: 48px auto 0; padding: 0 var(--gut); font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nf { max-width: 720px; margin: 0 auto; padding: 96px var(--gut) 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.nf .big { font-family: var(--font-h); font-size: 96px; font-weight: 700; line-height: 1; color: var(--accent); }
.nf h1 { font-size: 28px; }
.nf p { color: var(--t2); }
.nf .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- Phone tweaks ---------- */
@media (max-width: 700px) {
  .st { padding: 22px 16px 18px; }
  .st-title { font-size: 22px; }
  .st-dot { display: none; }
  .vh { height: 340px; }
  .vh-fade { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.82) 42%, rgba(0,0,0,.12) 80%); }
  .vh-t { top: auto; bottom: 22px; left: 16px; right: 16px; width: auto; gap: 8px; }
  .vh-title { font-size: 32px; }
  .vh-tag { font-size: 16px; }
  .vh-btn { top: 12px; bottom: auto; right: 12px; }
  .about, .ml, .c-form { padding: 24px 20px; }
  .post-head { padding-top: 40px; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .rec > a:hover img, .rec > a:focus-visible img, .pn a:hover .pnt img { transform: none; }
}
/* old posts link to #mailinglist (the widget strip); keep it clear of the sticky menu */
#mailinglist { scroll-margin-top: 90px; }
/* the first block of a post never adds its own top margin (e.g. an h2 right under a title with no feature image) */
.entry > :first-child { margin-top: 0; }

/* ---- Timeline (ol.tl; e.g. Moths of Borneo: 1986-2024). Centre line, staggered alternating entries: a 2-column
   grid where entry n spans rows n and n+1, so each starts halfway down the previous one. Left rail on phones. ---- */
.entry > .tl { list-style: none; margin: 48px auto 0; padding: 0; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 88px; }
.tl::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--accent), var(--line) 10%, var(--line) 90%, var(--accent)); }
.tl-i { position: relative; grid-column: 1; padding-bottom: 28px; text-align: right; }
.tl-i:nth-child(even) { grid-column: 2; text-align: left; }
.tl-i:nth-child(1) { grid-row: 1 / span 2; }
.tl-i:nth-child(2) { grid-row: 2 / span 2; }
.tl-i:nth-child(3) { grid-row: 3 / span 2; }
.tl-i:nth-child(4) { grid-row: 4 / span 2; }
.tl-i:nth-child(5) { grid-row: 5 / span 2; }
.tl-i:nth-child(6) { grid-row: 6 / span 2; }
.tl-i:nth-child(7) { grid-row: 7 / span 2; }
.tl-i:nth-child(8) { grid-row: 8 / span 2; }
.tl-i:nth-child(9) { grid-row: 9 / span 2; }
.tl-i:nth-child(10) { grid-row: 10 / span 2; }
.tl-i:nth-child(11) { grid-row: 11 / span 2; }
.tl-i:nth-child(12) { grid-row: 12 / span 2; }
.tl-i:nth-child(13) { grid-row: 13 / span 2; }
.tl-i:nth-child(14) { grid-row: 14 / span 2; }
.tl-i:nth-child(15) { grid-row: 15 / span 2; }
.tl-i:nth-child(16) { grid-row: 16 / span 2; }
.tl-i:nth-child(17) { grid-row: 17 / span 2; }
.tl-i:nth-child(18) { grid-row: 18 / span 2; }
.tl-i:nth-child(19) { grid-row: 19 / span 2; }
.tl-i:nth-child(20) { grid-row: 20 / span 2; }
.tl-i:nth-child(21) { grid-row: 21 / span 2; }
.tl-i:nth-child(22) { grid-row: 22 / span 2; }
.tl-i:nth-child(23) { grid-row: 23 / span 2; }
.tl-i:nth-child(24) { grid-row: 24 / span 2; }
.tl-i:nth-child(25) { grid-row: 25 / span 2; }
.tl-i:nth-child(26) { grid-row: 26 / span 2; }
.tl-i:nth-child(27) { grid-row: 27 / span 2; }
.tl-i:nth-child(28) { grid-row: 28 / span 2; }
.tl-i:nth-child(29) { grid-row: 29 / span 2; }
.tl-i:nth-child(30) { grid-row: 30 / span 2; }
.tl-i::after { content: ""; position: absolute; top: 9px; right: -51px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.tl-i:nth-child(even)::after { right: auto; left: -51px; }
.tl-y { margin: 0 0 10px; font-family: var(--font-h); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: .08em; color: var(--accent); }
.tl-b { text-align: left; padding: 18px 22px; background: var(--s1); border: 1px solid var(--line); }
.tl-b h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: .02em; }
.tl-b p { margin: 0; font-size: 17px; line-height: 1.6; color: #c7c7c7; }
@media (max-width: 760px) {
  .entry > .tl { display: block; }
  .tl::before { left: 7px; }
  .tl-i, .tl-i:nth-child(even) { padding: 0 0 32px 36px; text-align: left; }
  .tl-i::after, .tl-i:nth-child(even)::after { left: 0; right: auto; }
  .tl-y { font-size: 24px; }
}

/* ---- glossary tooltips (a.gt from GlossaryLinker; js/site.js) */
.entry a.gt, .prose a.gt { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--t3); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }
.entry a.gt:hover, .prose a.gt:hover, .entry a.gt:focus-visible, .prose a.gt:focus-visible { color: var(--accent); text-decoration-color: var(--accent); }
.gl-tip { position: absolute; z-index: 60; width: max-content; max-width: min(340px, calc(100vw - 16px)); padding: 12px 14px; background: var(--s3); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 6px; box-shadow: var(--shadow); color: var(--t2); font-size: 14px; line-height: 1.5; }
.gl-tip.is-above { border-top: 1px solid var(--line); border-bottom: 2px solid var(--accent); }
.gl-tip[hidden] { display: none; }
.gl-tip strong { display: block; margin-bottom: 4px; color: var(--accent); font: 600 15px/1.3 Montserrat, system-ui, sans-serif; }
.gl-tip strong::first-letter { text-transform: uppercase; }
.gl-tip p { margin: 0; }
.gl-tip .gl-pl { display: block; margin: -2px 0 6px; color: var(--t3, var(--t2)); font-size: 13px; font-style: italic; }
.gl-tip .gl-pl[hidden] { display: none; }
.gl-tip.has-img { width: min(320px, calc(100vw - 16px)); }
.gl-tip .gl-img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: contain; margin: 0 0 10px; border-radius: 4px; background: var(--s2, rgba(127,127,127,.15)); }
.gl-tip .gl-img[hidden] { display: none; }
.post--glossary .gl-figure { margin: 24px auto 8px; max-width: 720px; }
.post--glossary .gl-figure img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 4px; }
.post--glossary .gl-plural { margin: 6px 0 0; color: var(--t3, var(--t2)); font-style: italic; }
.gl-tip .gl-more { display: inline-block; margin-top: 8px; color: var(--head); font-size: 13px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.gl-tip .gl-more[hidden] { display: none; }
@media print { .gl-tip { display: none; } .entry a.gt { text-decoration: none; } }

/* ---- notice pages (mailing list) */
.nf--notice { padding-top: 72px; }
.nf--notice h1 { font-size: 30px; color: var(--head); }
.nf--notice .kicker a { color: var(--accent); }
.nf--notice strong { color: var(--head); }
.is-notice main { min-height: 100vh; }
