/* ══ MTB FLOW POST CARD — the ONE stylesheet for every post listing ══
   Archives, search, related posts and the frame/post-card · post-cards · related-posts · share-button
   blocks.  Rendered by mtb-frame/includes/post-card.php.  Buttons inside (pager, share, search) are the
   Flow Button and take blocks/button/style.css.

   Values: DESIGN.md only — Ink #0A0A0A · Bone #EDE7D8 (1 / .72 / .56 alphas for type; .56 is the floor,
   5.6:1 on ink) · Ember #FF5B04 fill/hairline · Ember text #FF7D11 · Deep Petrol #1A4E50 · Dusk Violet
   #7C6BA6 · Alpine Teal #34978F · Hanken Grotesk / Instrument Sans · --ease cubic-bezier(.16,1,.3,1) ·
   --dur-s 180 / -m 320 / -l 600, exits one step faster · --r-ctl 999px · --r-panel 14px.
   Laws: D1 photos radius 0 · D2 chips/pager/search field are dark glass · D3 no grain on photos/type/
   controls · D4 one ease, three durations · D6 no counts · D7 no mono · D8 no text on a photo. */

.mf-scope, .mf-related, .mf-cards {
  --mf-ink: #0A0A0A;
  --mf-bone: #EDE7D8;
  --mf-bone-2: rgba(237, 231, 216, .72);
  --mf-bone-3: rgba(237, 231, 216, .56);
  --mf-hair: rgba(237, 231, 216, .16);
  --mf-ember: #FF5B04;
  --mf-ember-t: #FF7D11;
  --mf-ease: var(--ease, cubic-bezier(.16, 1, .3, 1));
  --mf-disp: "Hanken Grotesk", system-ui, sans-serif;
  --mf-body: "Instrument Sans", "Hanken Grotesk", system-ui, sans-serif;
}

/* ── the page scope: an ink ground painted edge to edge (the site chrome's body carries a blue cast) ── */
.mf-scope {
  /* ONE content gutter + measure, shared with the site footer's content edge (site-chrome.css --site-gut /
     --site-max, critic r1 2026-11-02: header 30 · footer 60 · grid 108 at 1440).  The fallbacks are the
     same numbers, so the element still renders on a site without the token. */
  --mf-gut: max(var(--site-gut, clamp(16px, 4.2vw, 72px)), calc((100% - var(--site-max, 1480px)) / 2));
  position: relative; isolation: isolate; box-sizing: border-box;
  margin: 0; padding: 0 var(--mf-gut) 120px; min-height: calc(100svh - 60px);
  background: var(--mf-ink); box-shadow: 0 0 0 100vmax var(--mf-ink); clip-path: inset(0 -100vmax);
  color: var(--mf-bone); font-family: var(--mf-body);
}
/* the field behind the title band: one Ember leak pinned to the hot corner, Deep Petrol on the quiet
   side, grading into ink.  Inside the scope's own box, so it never widens the page. */
.mf-scope::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: min(760px, 100%); pointer-events: none;
  background:
    radial-gradient(42% 70% at 8% 0%, rgba(255, 91, 4, .16), transparent 70%),
    radial-gradient(40% 64% at 94% 4%, rgba(26, 78, 80, .42), transparent 72%);
}

/* ── title band: eyebrow · colossal title · one line · chips ── */
.mf-band { position: relative; padding: clamp(120px, 13vw, 176px) 0 clamp(40px, 5vw, 64px); }
.mf-band__eyebrow, .mf-related .mf-band__eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 11px/1 var(--mf-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--mf-ember-t);
}
.mf-band__rule { display: inline-block; width: 32px; height: 1px; background: var(--mf-ember); }
.mf-band__title {
  margin: 0; max-width: 14ch; color: var(--mf-bone) !important;
  font: 800 clamp(46px, 7.2vw, 120px)/.94 var(--mf-disp); letter-spacing: -.03em; text-wrap: balance;
}
.mf-band__desc {
  margin: 22px 0 0; max-width: 56ch; color: var(--mf-bone-2);
  font: 400 clamp(16px, 1.25vw, 18px)/1.55 var(--mf-body);
}

/* ── chips: dark glass capsules; wrap on wide screens, ONE scrolling row on a phone ── */
.mf-chips { margin: 32px 0 0; }
.mf-chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mf-chips li { flex: none; margin: 0; }
.mf-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; box-sizing: border-box;
  border-radius: var(--r-ctl, 999px); text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, rgba(26, 26, 26, .34), rgba(10, 10, 10, .46));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .18), inset 0 1px 0 rgba(237, 231, 216, .12);
  color: var(--mf-bone-2); font: 600 12px/1 var(--mf-disp); letter-spacing: .12em; text-transform: uppercase;
  transition: color 180ms var(--mf-ease), box-shadow 180ms var(--mf-ease);
}
.mf-chip:hover { color: var(--mf-bone); box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .38), inset 0 1px 0 rgba(237, 231, 216, .2); transition-duration: 320ms; }
.mf-chip.is-active { color: var(--mf-bone); box-shadow: inset 0 0 0 1px var(--mf-ember), inset 0 1px 0 rgba(237, 231, 216, .16); }
.mf-chip:focus-visible { outline: 2px solid var(--mf-bone); outline-offset: 2px; }
@media (max-width: 599px) {
  .mf-chips { margin-left: calc(-1 * var(--mf-gut, 16px)); margin-right: calc(-1 * var(--mf-gut, 16px)); }
  .mf-chips ul {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 2px var(--mf-gut, 16px); scroll-padding-inline: var(--mf-gut, 16px);
    -webkit-mask-image: linear-gradient(90deg, black calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, black calc(100% - 40px), transparent);
  }
  .mf-chips ul::-webkit-scrollbar { display: none; }
}

/* ── the card: a photograph (radius 0, nothing on it) and its words beneath ── */
.mf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; margin: 0; }
.mf-cards--c1 { grid-template-columns: minmax(0, 1fr); }
.mf-cards--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-cards--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .mf-cards:not(.mf-cards--c1):not(.mf-cards--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; } }
@media (max-width: 599px)  { .mf-cards:not(.mf-cards--c1):not(.mf-cards--compact) { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

.mf-card { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; }
.mf-card__photo, .mf-card__plate {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0; background: rgba(237, 231, 216, .05);
}
.mf-card__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; max-width: none;
  transform: scale(1.0001); transition: transform 320ms var(--mf-ease), filter 180ms var(--mf-ease);
}
.mf-card:hover .mf-card__photo img { transform: scale(1.035); filter: brightness(1.06); transition-duration: 600ms, 320ms; }
/* a post with no photograph: a field, its place set large on it (type on a FIELD, never a photo — D8) */
.mf-card__plate { display: flex; align-items: flex-end; padding: 22px; box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .08); }
.mf-card__plate--0 { background: radial-gradient(farthest-corner at 0% 100%, rgba(255, 91, 4, .34), transparent 62%), linear-gradient(200deg, #1A4E50, #0A0A0A 78%); }
.mf-card__plate--1 { background: radial-gradient(farthest-corner at 100% 100%, rgba(255, 91, 4, .22), transparent 58%), linear-gradient(160deg, #7C6BA6, #0A0A0A 72%); }
.mf-card__plate--2 { background: radial-gradient(farthest-corner at 0% 0%, rgba(52, 151, 143, .40), transparent 62%), linear-gradient(20deg, #0A0A0A 30%, #1A4E50); }
.mf-card__plate--3 { background: radial-gradient(farthest-corner at 100% 0%, rgba(224, 170, 55, .30), transparent 60%), linear-gradient(340deg, #0A0A0A 35%, #7F9080); }
.mf-card__plateword {
  color: var(--mf-bone); font: 800 clamp(30px, 3.2vw, 46px)/.95 var(--mf-disp); letter-spacing: -.03em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.mf-card__body { display: flex; flex-direction: column; padding-top: 18px; }
.mf-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px;
  font: 600 11px/1.3 var(--mf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bone-3);
}
.mf-card__act { color: var(--mf-bone-2); }
.mf-card__act + .mf-card__place::before {
  content: ""; display: inline-block; width: 14px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--mf-hair);
}
.mf-card__title {
  margin: 0; color: var(--mf-bone); font: 700 clamp(19px, 1.45vw, 23px)/1.2 var(--mf-disp); letter-spacing: -.012em; text-wrap: pretty;
}
.mf-card__link { color: inherit !important; text-decoration: none !important; outline: none; }
.mf-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole card is the hit area */
.mf-card__link {
  background: linear-gradient(var(--mf-bone-3), var(--mf-bone-3)) 0 100% / 0 1px no-repeat;
  transition: background-size 180ms var(--mf-ease);
}
.mf-card:hover .mf-card__link { background-size: 100% 1px; transition-duration: 320ms; }
.mf-card:has(.mf-card__link:focus-visible) { outline: 2px solid var(--mf-bone); outline-offset: 6px; }
.mf-card__date { margin-top: 12px; font: 600 11px/1 var(--mf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bone-3); }

/* compact — the related band at 720 px: three across, and a list of rows on a phone */
.mf-cards--compact { gap: 20px; }
.mf-cards--compact .mf-card__title { font-size: 17px; }
.mf-cards--compact .mf-card__meta { flex-wrap: nowrap; gap: 8px; font-size: 10px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; }
.mf-cards--compact .mf-card__place { overflow: hidden; text-overflow: ellipsis; }
.mf-cards--compact .mf-card__act + .mf-card__place::before { width: 10px; margin-right: 8px; }
.mf-cards--compact .mf-card__plateword { font-size: 22px; }
.mf-cards--compact .mf-card__plate { padding: 14px; }
@media (max-width: 599px) {
  .mf-cards--compact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mf-cards--compact .mf-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 16px; align-items: center; }
  .mf-cards--compact .mf-card__body { padding-top: 0; }
  .mf-cards--compact .mf-card__plateword { font-size: 16px; }
}

/* ── S7 section label: tracked caps riding a full hairline ── */
.mf-label {
  display: flex; align-items: center; gap: 16px; margin: 0 0 32px;
  font: 600 12px/1 var(--mf-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--mf-bone-2);
}
.mf-label::after { content: ""; flex: 1; height: 1px; background: var(--mf-hair); }
.mf-group { margin-top: clamp(56px, 7vw, 96px); }
.mf-group:first-of-type { margin-top: 8px; }

/* ── pager: Newer · Page n of N · Older ── */
.mf-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(64px, 7vw, 96px); }
.mf-pager > :first-child { justify-self: start; }
.mf-pager > :last-child { justify-self: end; }
.mf-pager__idx { font: 600 11px/1 var(--mf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bone-3); white-space: nowrap; }

/* ── search: the field (dark glass) + the Flow Button ── */
.mf-search { display: flex; gap: 10px; margin: 32px 0 0; max-width: 560px; }
.mf-search__field {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; box-sizing: border-box; border: 0; outline: none;
  border-radius: var(--r-ctl, 999px); color: var(--mf-bone); font: 400 16px/1 var(--mf-body);
  background: linear-gradient(180deg, rgba(26, 26, 26, .34), rgba(10, 10, 10, .46));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .2), inset 0 1px 0 rgba(237, 231, 216, .12);
  transition: box-shadow 180ms var(--mf-ease);
}
.mf-search__field::placeholder { color: var(--mf-bone-3); }
.mf-search__field:focus-visible { box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .5), 0 0 0 2px var(--mf-ink), 0 0 0 3px var(--mf-bone); }
.mf-search .mf-btn { min-height: 48px; }

/* places (critic r1, 2026-11-02 — was a flat dark text box on black).  WITH a photograph: a photo card,
   the place's lead-post photograph on top (radius 0, nothing on it — law D8), name + kind + Map below on the
   page's ink.  WITHOUT one: a hairline glass chip, no fill. */
.mf-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1199px) { .mf-places { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .mf-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.mf-place { position: relative; box-sizing: border-box; }
.mf-place--photo { display: flex; flex-direction: column; gap: 12px; }
.mf-place__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0; background: rgba(237, 231, 216, .05); }
.mf-place__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 320ms var(--mf-ease), filter 180ms var(--mf-ease); }
.mf-place--photo:hover .mf-place__photo img { transform: scale(1.04); filter: brightness(1.06); transition-duration: 600ms, 320ms; }
.mf-place__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mf-place-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mf-places + .mf-place-chips { margin-top: 24px; }
.mf-place--chip {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 6px 0 22px;
  border-radius: var(--r-ctl, 999px); background: transparent;
  box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .24);
  transition: box-shadow 180ms var(--mf-ease);
}
.mf-place--chip:not(:has(.mf-btn)) { padding-right: 22px; }
.mf-place--chip:hover { box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .5); transition-duration: 320ms; }
.mf-place--chip .mf-place__name { font-size: 16px; }
.mf-place--chip .mf-place__kind { margin-top: 0; }
.mf-place:has(.mf-place__link:focus-visible) { outline: 2px solid var(--mf-bone); outline-offset: 3px; }
.mf-place__name { display: block; margin: 0; color: var(--mf-bone); font: 700 20px/1.15 var(--mf-disp); letter-spacing: -.01em; }
.mf-place__kind { display: block; margin-top: 6px; font: 600 11px/1 var(--mf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bone-3); }
.mf-place__link { color: inherit !important; text-decoration: none !important; outline: none; }
.mf-place__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mf-place .mf-btn { position: relative; z-index: 1; flex: none; }
@media (max-width: 599px) {
  .mf-place--photo .mf-place__row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .mf-place__name { font-size: 17px; }
}

/* photos: a square mosaic, radius 0, nothing written on them */
.mf-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1023px) { .mf-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .mf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }
.mf-tile { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 0; background: rgba(237, 231, 216, .05); outline: none; }
.mf-tile img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 320ms var(--mf-ease), filter 180ms var(--mf-ease); }
.mf-tile:hover img { transform: scale(1.04); filter: brightness(1.06); transition-duration: 600ms, 320ms; }
.mf-tile:focus-visible { outline: 2px solid var(--mf-bone); outline-offset: 2px; }
.mf-more { margin-top: 24px; }
.mf-empty { margin: 0; max-width: 52ch; color: var(--mf-bone-2); font: 400 18px/1.55 var(--mf-body); }

/* ── beta: a timestamped log, not a grid ── */
.mf-log { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mf-hair); }
.mf-log__row { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 128px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--mf-hair); }
.mf-log__when { font: 600 11px/1.4 var(--mf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bone-3); }
.mf-log__when b { display: block; font: 800 20px/1.05 var(--mf-disp); letter-spacing: -.01em; text-transform: none; color: var(--mf-bone); }
.mf-log__title { margin: 0; font: 700 20px/1.2 var(--mf-disp); color: var(--mf-bone); }
.mf-log__note { margin: 6px 0 0; font: 400 15px/1.55 var(--mf-body); color: var(--mf-bone-2); }
.mf-log__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0; background: rgba(237, 231, 216, .05); }
.mf-log__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mf-log__row:hover .mf-card__link { background-size: 100% 1px; }
@media (max-width: 599px) { .mf-log__row { grid-template-columns: 56px minmax(0, 1fr); } .mf-log__photo { grid-column: 1 / -1; } }

/* ── related band: the post's column; in the chapters view it IS the 720 box, ink painted outside it ── */
.mf-related { box-sizing: border-box; max-width: 1320px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 96px; color: var(--mf-bone); font-family: var(--mf-body); }
.omtb-vc .mf-related, .mf-related--column {
  max-width: 720px; margin-left: auto; margin-right: auto;
  padding: 200px clamp(20px, 5vw, 48px) 96px;
  background: var(--ink, #0A0A0A); box-shadow: 0 0 0 100vmax var(--ink, #0A0A0A); clip-path: inset(0 -100vmax);
}
.mf-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.mf-related__title { margin: 0; color: var(--mf-bone); font: 800 clamp(28px, 3vw, 40px)/1 var(--mf-disp); letter-spacing: -.025em; }
.mf-related .mf-share { flex: none; }
@media (max-width: 599px) { .mf-related__head { flex-direction: column; align-items: flex-start; } }

/* share: the label swaps to "Link copied" for two seconds (assets/share.js) */
.mf-share.is-copied .mf-btn__t { color: var(--mf-bone); }

@media (prefers-reduced-motion: reduce) {
  .mf-card__photo img, .mf-tile img, .mf-place__photo img, .mf-chip, .mf-place, .mf-card__link { transition: none !important; }
  .mf-card:hover .mf-card__photo img, .mf-tile:hover img, .mf-place--photo:hover .mf-place__photo img { transform: none; }
}
