/* cards.css: the one card system, Updated side only (Gino, Oct 23 8:19 PM: "a weird share button ... some empty room").
   Every post in a feed = byline row / edge-to-edge body / one action row (♡ ⇄ ⇧, Share always the rightmost icon).
   An event (one-off, recurring, a person's, an update, a Classic event) is the same post with a ticket as its body.
   Loaded last; every rule is scoped to the Updated side so the Original is untouched. */

/* 1. byline: one row, one height (52 pt) for every kind; the kind line never wraps */
body[data-mk-side=updated] .feed-card.ev .feed-card-head{padding:4px 8px 4px 14px}
body[data-mk-side=updated] .feed-card .feed-card-head .feed-source :is(small,b){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-mk-side=updated] .feed-card .feed-card-head .feed-source>span:last-child{min-width:0}
/* an event's face is the same 44 pt circle as every other post's */
body[data-mk-side=updated] .feed-card .feed-card-head span.feed-source>.av{width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--sand);display:grid;place-items:center;flex:0 0 44px}
body[data-mk-side=updated] .feed-card .feed-card-head span.feed-source>.av>span{font-family:var(--f-display);font-weight:600;font-size:12px;color:var(--cactus-ink);letter-spacing:0}

/* 2. body: the ticket is the media. It starts right under the byline and ends at the action row, edge to edge,
      like a photo: no extra band above or below, no notches biting into the byline */
body[data-mk-side=updated] .feed-card.ev .ev-body{padding:0;position:static;margin:0}
body[data-mk-side=updated] .feed-card.ev .tk-feed .nt{display:none}
/* the perforation between stub and ticket is the one ticket cue left: drawn as a dashed hairline that renders the same in WebKit and Chromium
   (the old dashed border showed as a single stray dot in Safari) */
body[data-mk-side=updated] .feed-card.ev .tk3 .db-col:before{display:block;top:12px;bottom:12px;width:1.5px;height:auto;border:0;background:repeating-linear-gradient(to bottom,color-mix(in srgb,var(--brand-ink) 32%,transparent) 0 4px,transparent 4px 8px)}
body[data-mk-side=updated] .feed-card.ev .tk3.has-bg .db-col:before{background:repeating-linear-gradient(to bottom,rgba(255,255,255,.45) 0 4px,transparent 4px 8px)}
body[data-mk-side=updated] .feed-card.ev .tk-feed .tk-row:last-child{padding-right:0}
body[data-mk-side=updated] .feed-card.ev .ev-share{display:none}
/* the update post: its small ticket is edge to edge too (was an inset rounded card with a shadow) */
body[data-mk-side=updated] .rec-upd .rec-mini{grid-template-columns:84px minmax(0,1fr);margin:0;width:auto;border-radius:0;box-shadow:none;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-height:96px}
body[data-mk-side=updated] .rec-upd .rec-upd-tx{padding:2px 14px 12px}

/* 3. a long band ("OCT–NOV") tightens its tracking so it fits inside the tile instead of spilling past the stub */
body[data-mk-side=updated] .db-band.lng{letter-spacing:.02em}

/* 4. action row: the same 44 pt row on every card, Share last. A person's item shows ♡ and Share (followers only) */
body[data-mk-side=updated] .feed-card .feed-footer{min-height:44px}

/* 5. the opened post: its photos run edge to edge like the feed (were inset 16 pt with rounded corners) */
body[data-mk-side=updated] .publication-viewer-content .editorial-title-card:has(.media,.publication-content-hero){margin-left:-16px;margin-right:-16px;border-radius:0}
body[data-mk-side=updated] .publication-viewer-content :is(.media.grid,.publication-content-hero),body[data-mk-side=updated] .publication-viewer-content :is(.media.grid,.publication-content-hero) :is(.cell,.photo-open,img){border-radius:0}

/* ======================= Round 2 (Council round 13 + Gino 9:23 PM) ======================= */
/* 6. byline time: one fixed 80 pt box, right-aligned on the ⋯ edge, on the name's baseline, a 44 pt tap target */
body[data-mk-side=updated] .feed-card-head .feed-time{flex:0 0 80px;width:80px;min-height:44px;margin:0;padding:6px 0 0;align-self:flex-start;display:flex;justify-content:flex-end;align-items:flex-start;text-align:right;font-size:12px;color:var(--u-mut)}
body[data-mk-side=updated] .feed-card-head .feed-time .dl-rw{justify-items:end}
body[data-mk-side=updated] .feed-card-head .dl-roll.feed-time:after{inset:0}

/* 7. text posters hug their words (min 120 pt) instead of a fixed 16:9 slab; the tap on the card opens it, no "Open post" link */
body[data-mk-side=updated] .authored-story.text-only .feed-story:before{display:none}
body[data-mk-side=updated] .authored-story.text-only .feed-story{min-height:120px;display:grid;align-content:end}
body[data-mk-side=updated] .feed-card .feed-open{display:none}

/* 8. dark mode: one surface per card. The poster panel is a lifted tint of the card (not the black of the gaps);
      faces are a disc ~20% lighter than the card with a hairline ring (1.6:1 against the card) */
html:not([data-theme=light]) body[data-mk-side=updated] .authored-story.text-only .feed-story{background:#252A27}
html:not([data-theme=light]) body[data-mk-side=updated] :is(.feed-card,.u-app,.u-sheet) .av{background:#3A403C!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
html:not([data-theme=light]) body[data-mk-side=updated] :is(.feed-card,.u-app,.u-sheet) .av>span{color:#EDE5D3!important}
html:not([data-theme=light]) body[data-mk-side=updated] .u-face{background:#3A403C;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);color:#EDE5D3}
html[data-theme=light] body[data-mk-side=updated] .feed-card .av{box-shadow:inset 0 0 0 1px rgba(29,33,31,.08)}

/* 9. a ticket flows into its action row like a photo: no hairline between them */
body[data-mk-side=updated] .feed-card.ev .tk-feed:after{border-bottom:0}
/* the update post's headline sits on the same gutter and size as every other headline */
body[data-mk-side=updated] .rec-upd .rec-upd-tx{padding:4px 18px 12px}
body[data-mk-side=updated] .rec-upd .rec-upd-tx h3{font-size:22px}

/* 10. the opened post = the feed card, opened. Same page colour as the feed behind it */
body[data-mk-side=updated] .u-app[data-u=post] .u-opvp{background:var(--u-page)}
body[data-mk-side=updated] .u-opwrap{margin:0;padding:0}
body[data-mk-side=updated] .u-opened .u-op-prose{padding:2px 18px 6px;font:400 16px/1.5 var(--u-f-b);color:var(--u-ink)}
body[data-mk-side=updated] .u-opened .u-op-prose p{margin:0 0 10px}
body[data-mk-side=updated] .u-opened .u-op-prose h3{margin:6px 0 6px;font:500 19px/1.25 var(--u-f-d)}
body[data-mk-side=updated] .u-opened .feed-copy p{display:block;-webkit-line-clamp:unset;overflow:visible}
body[data-mk-side=updated] .u-app[data-u=post] .u-next{background:var(--u-page);padding-bottom:16px}
body[data-mk-side=updated] .u-next-h{margin:0;padding:18px 18px 10px;font:600 13px/1.2 var(--u-f-b);letter-spacing:.02em;color:var(--u-mut)}

/* 11. the date tile is the classic calendar icon (Gino 9:23 PM; Council 22, Oct 24): white rounded square, slim red band with the month,
       big bold day number, the small note INSIDE. A date and nothing else: status words, the dot and clock times live in the line beside it.
       Stays white in dark mode and on photos, like the system icon (?tiledark=1 below is the charcoal alternative for Gino to compare).
       One band red everywhere (--db-band, events.css); grey means not open yet. Only loaded weights (400–700): no 800 anywhere. */
body[data-mk-side=updated] .db.cal{width:60px;height:72px}
body[data-mk-side=updated] .db.cal .db-f{border-radius:13px;background:#FFFFFF;box-shadow:0 0 0 .5px rgba(29,33,31,.20),0 1px 2px rgba(29,33,31,.10)}
body[data-mk-side=updated] .db.cal .db-band{height:17px;font:700 11px/1 var(--f-body);letter-spacing:.06em}
body[data-mk-side=updated] .db.cal .db-band.lng{letter-spacing:.01em}
body[data-mk-side=updated] .db.cal .db-d{flex:1 1 auto;min-height:0;display:grid;place-items:center;font:700 29px/1 var(--f-body);letter-spacing:-.02em;font-variant-numeric:tabular-nums lining-nums;color:#1D211F;padding-top:1px;white-space:nowrap}
body[data-mk-side=updated] .db.cal .db-d.rng{font-size:18px;letter-spacing:-.03em;font-variant-numeric:proportional-nums lining-nums} /* ranges are proportional and 18px, not 19: ruling 5 fit limit (54px big slot) wins; at 19px the widest range "20–30" measured 55.8px (MU_TILEFIT, WebKit), 18px brings it to ~52.9px */
body[data-mk-side=updated] .db.cal.off .db-d{color:#565E59}
body[data-mk-side=updated] .db.cal .db-w.in{flex:none;display:flex;align-items:center;justify-content:center;height:17px;padding-bottom:3px;font:600 11px/1 var(--f-body);letter-spacing:.06em;color:#565E59;white-space:nowrap}
body[data-mk-side=updated] .db.cal .db-w.in.now{color:#C42E46}
body[data-mk-side=updated] .db.cal .rec-dots{flex:none;height:17px;display:flex;justify-content:center;align-items:center;padding-bottom:3px;margin:0}
body[data-mk-side=updated] .db-col>.db-w,body[data-mk-side=updated] .db-col>.rec-dots{display:none}
body[data-mk-side=updated] .one-top .db.cal{width:66px;height:80px}
body[data-mk-side=updated] .one-top .db.cal .db-band{height:19px;font-size:12px}
body[data-mk-side=updated] .one-top .db.cal .db-d{font-size:33px}
body[data-mk-side=updated] .one-top .db.cal .db-d.rng{font-size:21px}
/* ?tiledark=1 (Council 22 question 1; variant A, dark theme only): a charcoal tile with the same red band, so Gino can compare it with the white one on his phone */
html:not([data-theme=light])[data-tile=A][data-tiledark="1"] body[data-mk-side=updated] .db.cal .db-f{background:#2A2F2C;box-shadow:0 0 0 .5px rgba(255,255,255,.14),0 1px 2px rgba(0,0,0,.30)}
html:not([data-theme=light])[data-tile=A][data-tiledark="1"] body[data-mk-side=updated] .db.cal .db-d{color:#F1EDE4}
html:not([data-theme=light])[data-tile=A][data-tiledark="1"] body[data-mk-side=updated] .db.cal .db-w.in{color:#B9BFBA}
html:not([data-theme=light])[data-tile=A][data-tiledark="1"] body[data-mk-side=updated] .db.cal .db-w.in.now{color:#FF8A9A}

/* ======================= Council 22 (Oct 24): tile variants B and C behind ?tile=, one system on the feed ticket, the shelf and the page =======================
   B: a 2-line date chip, no band. Light: white with an inset hairline; dark: #222724 with a faint hairline. One label 11px/700 red (grey = not open yet)
   over a 26px/700 tabular number; ranges 15px proportional (16 overflows 46 in at least one engine, see the .rng rule below). Fit limit 46px every row. */
html[data-tile=B] body[data-mk-side=updated] .db.cal{width:56px;height:64px}
html[data-tile=B] body[data-mk-side=updated] .db.cal .db-f{border-radius:14px;background:#FFFFFF;box-shadow:inset 0 0 0 1px #E4DED2;justify-content:center;gap:3px}
html:not([data-theme=light])[data-tile=B] body[data-mk-side=updated] .db.cal .db-f{background:#222724;box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)}
html[data-tile=B] body[data-mk-side=updated] .db.cal .db-band{height:auto;background:none;color:#C42E46;font:700 11px/1 var(--f-body);letter-spacing:.06em}
html:not([data-theme=light])[data-tile=B] body[data-mk-side=updated] .db.cal .db-band{color:#FF8A9A}
html[data-tile=B] body[data-mk-side=updated] .db.cal:is(.opens,.off) .db-band{color:#5B6660}
html:not([data-theme=light])[data-tile=B] body[data-mk-side=updated] .db.cal:is(.opens,.off) .db-band{color:#AEB7B1}
html[data-tile=B] body[data-mk-side=updated] .db.cal .db-d{flex:none;font-size:26px;letter-spacing:-.02em;padding-top:0}
html:not([data-theme=light])[data-tile=B] body[data-mk-side=updated] .db.cal .db-d{color:#F1EDE4}
/* B ranges: ruling 5 fit limit 46px wins over the Council's 16px. Measured (MU_TILEFIT) at 16px, both overflow 46 in at least one engine:
   tabular WebKit 45.7 / Chromium 47.6 ("10–11"); proportional WebKit 47.0 / Chromium 46.6 ("20–30"). 15px proportional ≈ 44.1 WebKit / 43.7 Chromium. */
html[data-tile=B] body[data-mk-side=updated] .db.cal .db-d.rng{font-size:15px;letter-spacing:-.03em;font-variant-numeric:proportional-nums lining-nums}
/* C: no tile. The type sits on the stub's own tint: one label 11px/700 red (grey = not open yet) over a Fraunces 28px/500 lining number; ranges 18px.
   Fit limit 56px (64 − 2×4). dateBlock adds .txt when ?tile=C. */
html[data-tile=C] body[data-mk-side=updated] .db.cal.txt .db-f{border-radius:0;background:none;box-shadow:none;overflow:visible;justify-content:center;gap:2px}
html[data-tile=C] body[data-mk-side=updated] .db.cal.txt .db-band{height:auto;background:none;color:#C42E46;font:700 11px/1 var(--f-body);letter-spacing:.06em}
html:not([data-theme=light])[data-tile=C] body[data-mk-side=updated] .db.cal.txt .db-band{color:#FF7A8C}
html[data-tile=C] body[data-mk-side=updated] .db.cal.txt:is(.opens,.off) .db-band{color:#565E59}
html:not([data-theme=light])[data-tile=C] body[data-mk-side=updated] .db.cal.txt:is(.opens,.off) .db-band{color:#AEB7B1}
html[data-tile=C] body[data-mk-side=updated] .db.cal.txt .db-d{flex:none;font:500 28px/1 var(--f-display);letter-spacing:-.01em;font-variant-numeric:lining-nums;color:#1D211F;padding-top:0}
html:not([data-theme=light])[data-tile=C] body[data-mk-side=updated] .db.cal.txt .db-d{color:#F1EDE4}
html[data-tile=C] body[data-mk-side=updated] .db.cal.txt .db-d.rng{font-size:18px;letter-spacing:-.01em}

/* 12. a leaner tab bar (Gino 9:23 PM): 49 pt + the safe area, like iOS; smaller icons and labels; a smaller Post pill; 44 pt targets kept */
body[data-mk-side=updated] .u-nav{min-height:0;height:calc(49px + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);align-items:stretch;box-sizing:border-box}
body[data-mk-side=updated] .u-nav a{min-height:44px;height:49px;justify-content:center;gap:2px;padding:0;font-size:11px;line-height:1.1}
body[data-mk-side=updated] .u-nav a svg{width:22px;height:22px}
body[data-mk-side=updated] .u-nav a.post{padding-top:0}
body[data-mk-side=updated] .u-nav a.post .pp{width:42px;height:24px;border-radius:12px}
body[data-mk-side=updated] .u-nav a.post .pp svg{width:15px;height:15px}

/* ======================= one-handed back (?back=A|B|C), Gino 9:25 PM: app/backnav.js ======================= */
body[data-mk-side=updated] #screen{position:relative}
body[data-mk-side=updated] .bk-under{position:absolute;inset:0;z-index:0;overflow:hidden;background:var(--u-page,#000);display:flex;flex-direction:column;pointer-events:none}
body[data-mk-side=updated] .bk-under>.bk-prev{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}
body[data-mk-side=updated] .bk-under .bk-dim{position:absolute;inset:0;background:#000;opacity:.28}
body[data-mk-side=updated] .bk-under-hint{margin:auto;color:var(--u-mut)}
body[data-mk-side=updated] .u-app.bk-drag{position:absolute;inset:0;z-index:2;box-shadow:-8px 0 24px rgba(0,0,0,.22);will-change:transform}
/* A (default): a quiet teaching line above the tab bar, no fill and no rule, shown only until the edge swipe is learned (in the flow: never covers content) */
body[data-mk-side=updated] .bk-strip{flex:none;display:flex;align-items:center;gap:3px;height:48px;margin:0;padding:0 14px 0 8px;border:0;background:transparent;color:var(--u-mut);font:500 13px/1 var(--u-f-b);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
body[data-mk-side=updated] .bk-strip em{font-style:normal;font-weight:400;opacity:.8;margin-left:4px}
body[data-mk-side=updated] .bk-strip svg{width:16px;height:16px}
/* B: floating pill, bottom-left (thumb zone); the scroller is padded so the last line clears it */
body[data-mk-side=updated] .bk-pill{position:absolute;left:12px;z-index:5;display:flex;align-items:center;gap:2px;height:44px;padding:0 16px 0 10px;border:0;border-radius:22px;background:rgba(29,33,31,.86);color:#fff;font:600 15px/1 var(--u-f-b);box-shadow:0 2px 10px rgba(0,0,0,.22);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:transform 220ms cubic-bezier(.2,.7,.2,1),opacity 220ms;cursor:pointer}
html:not([data-theme=light]) body[data-mk-side=updated] .bk-pill{background:rgba(58,64,60,.9);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 2px 10px rgba(0,0,0,.4)}
body[data-mk-side=updated] .bk-pill.bk-off{transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}
/* C: bars as overlays that slide away */
body[data-mk-side=updated] .u-app.bk-hos>.bk-ovt{position:absolute;top:0;left:0;right:0;z-index:4;transition:transform 220ms cubic-bezier(.2,.7,.2,1)}
body[data-mk-side=updated] .u-app.bk-hos .bk-ovb{position:absolute;bottom:0;left:0;right:0;z-index:4;transition:transform 220ms cubic-bezier(.2,.7,.2,1)}
body[data-mk-side=updated] .u-app.bk-bars-off>.bk-ovt{transform:translateY(-100%)}
body[data-mk-side=updated] .u-app.bk-bars-off .bk-ovb{transform:translateY(100%)}
body[data-mk-side=updated] .bk-cbar{display:flex;align-items:center;gap:6px;height:calc(44px + env(safe-area-inset-bottom));padding:0 12px env(safe-area-inset-bottom) 4px;box-sizing:border-box;background:var(--u-bg);border-top:1px solid var(--u-line)}
body[data-mk-side=updated] .bk-cb{display:flex;align-items:center;gap:2px;height:44px;min-width:44px;padding:0 10px 0 6px;border:0;background:none;color:var(--u-ink);font:600 15px/1 var(--u-f-b);cursor:pointer}
body[data-mk-side=updated] .bk-cb-t{flex:1;min-width:0;text-align:center;margin-right:64px;font:500 13px/1 var(--u-f-b);color:var(--u-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the event page (one screen, its own action bar): Back is the bar's first button */
body[data-mk-side=updated] .pg-bar .bk-slot{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer;padding:0}
@media (prefers-reduced-motion:reduce){
  body[data-mk-side=updated] .bk-pill,body[data-mk-side=updated] .u-app.bk-hos>.bk-ovt,body[data-mk-side=updated] .u-app.bk-hos .bk-ovb{transition:none}
  body[data-mk-side=updated] .bk-pill.bk-off{transform:none}
}

/* Council table: the "More like this" fold is a quiet line on the page, not a card-coloured bar */
body[data-mk-side=updated] .md-fold{background:transparent;border-bottom:0;min-height:44px;padding:4px 18px;font-size:13px;font-weight:500;gap:8px}
body[data-mk-side=updated] .md-fold svg{width:16px;height:16px}
/* Council table: the prototype's review pencil (not part of Marla) is smaller and quieter, and moves to the empty top-right of a pushed screen's bar */
body[data-mk-side=updated] .mk-fab{width:38px;height:38px;opacity:.72;bottom:calc(64px + env(safe-area-inset-bottom))}
body[data-mk-side=updated] .mk-fab svg{width:19px;height:19px}
body[data-mk-side=updated]:is([data-mk-screen=post],[data-mk-screen=x-hidden]) .mk-fab{bottom:auto;top:calc(9px + env(safe-area-inset-top))}
/* "More from <Circle>" (Gino 6:31 AM): a real section with a horizontal row of that Circle's posts, only on an opened post and a shop's page */
body[data-mk-side=updated] .u-mf{background:var(--u-page);padding:4px 0 18px}
body[data-mk-side=updated] .u-mf-hd{margin:0;padding:14px 18px 8px;font:600 17px/1.25 var(--u-f-b);color:var(--u-ink);letter-spacing:-.01em}
body[data-mk-side=updated] .u-mf-h{display:inline-flex;align-items:center;gap:2px;min-height:44px;color:inherit;text-decoration:none}
body[data-mk-side=updated] .u-mf-h svg{width:18px;height:18px;color:var(--u-mut)}
body[data-mk-side=updated] .u-mf-row{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:0 18px;padding:0 18px 2px;scrollbar-width:none}
body[data-mk-side=updated] .u-mf-row::-webkit-scrollbar{display:none}
body[data-mk-side=updated] .u-mf-t{flex:none;width:148px;scroll-snap-align:start;display:flex;flex-direction:column;color:var(--u-ink);text-decoration:none;border-radius:12px}
body[data-mk-side=updated] .u-mf-im{display:block;width:148px;height:185px;border-radius:12px;overflow:hidden;background:var(--u-post)}
body[data-mk-side=updated] .u-mf-im img{width:100%;height:100%;object-fit:cover;display:block}
body[data-mk-side=updated] .u-mf-im.txt{display:flex;align-items:flex-end;padding:14px;box-shadow:inset 0 0 0 1px var(--u-hair)}
body[data-mk-side=updated] .u-mf-im.txt span{font:500 17px/1.25 var(--u-f-d);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
body[data-mk-side=updated] .u-mf-t b{margin-top:8px;font:600 14px/1.3 var(--u-f-b);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body[data-mk-side=updated] .u-mf-t small{margin-top:2px;font:500 12px/1.3 var(--u-f-b);color:var(--u-mut)}
body[data-mk-side=updated] .u-mf-t:focus-visible,body[data-mk-side=updated] .u-mf-h:focus-visible{outline:2px solid #D93350;outline-offset:2px}
body[data-mk-side=updated] .u-circle .u-mf{padding-top:0}
