/* ══════════════════════════════════════════════════════════════════════════
   ICE FEED — the components the owner's reference design is made of.

   Doc of record: docs/04 §8. Every value is measured off
   `Documents/Edusanjal Profile Redesign/NCE Profile v2.dc.html`.

   ── Why this file exists ───────────────────────────────────────────────────
   The post, the story rail and its viewer, the gallery mosaic, the icon rows
   and the tab bar were built for the EduLibrary college profile on 2026-09-03
   and their styles were split across `ice-edulibrary.css` and
   `ice-college-profile.css`. The answer library and the guides now render the
   same components (`src/components/profile/`), so the styles moved here and
   both surfaces load one copy.

   ⚠️ THE TOKENS ARE NAMESPACED `--feed-*` ON PURPOSE. The rules used to read
   `var(--pf-line)`, which on `.col--profile` is `1px solid …` and in
   `ice-profile-v1.css` (the library's shell) is a bare COLOUR. Shipping
   `border: var(--pf-line)` into the library would have produced an incomplete
   `border` shorthand and no border at all. Nothing here reads a `--pf-*` name.

   ⚠️ NO ENGAGEMENT NUMBERS ANYWHERE. The reference carries ♥ 412 · 💬 38 ·
   "Seen by 2.1k applicants". Invented engagement reads as evidence other people
   rate the thing, which is the social proof PRODUCT.md forbids and docs/36 §5.3
   bans. The share row keeps the reference's shape with controls that do
   something: a share link and the read date the post actually has.

   Reference values kept verbatim:
     post           #FFFFFF opaque, 1px rgba(4,9,36,.06), radius 24,
                    shadow 0 14px 34px -22px rgba(4,9,36,.35)
     post head      avatar 44px / radius 15 / gradient, name 16px/600,
                    sub 13px, padding 16px 20px 12px
     post body      16px / 1.6 / 68ch, padding 0 20px 18px
     story ring     68px, 3px gradient border, thumbnail inset
     story viewer   overlay rgba(6,10,24,.92) + blur(18px), panel 430px,
                    image at .82 under a four-stop scrim, 3px bars,
                    caption 22px / 600 / -.015em capped at 26ch
     mosaic         3 columns, 3px gap, 1/1 tiles
     icon rows      icon 22px, title 15.5px/600, sub 13.5px, gap 13px
     tab bar        44px rows, radius 14, active in crimson
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --feed-ease: cubic-bezier(.2, .7, .2, 1);
  --feed-border: 1px solid var(--ice-color-border);
  --feed-radius: 24px;
  --feed-radius-in: 18px;
  --feed-lift: 0 14px 34px -22px rgb(4 9 36 / 35%);
}

/* ⚠️ No dark-theme override for `--feed-lift` here. The college profile shipped
   without one and this file may not change how that page renders; the answer
   library gets its dark shadow from `--ice-post-shadow` in `ice-glass.css`,
   which is the sheet that owns the library's surfaces. */

/* ──────────────────────────────── the post ─────────────────────────────── */

.post {
  margin: 0 0 var(--ice-space-5);
  border: var(--feed-border);
  border-radius: var(--feed-radius);
  overflow: hidden;
  background: var(--ice-color-surface);
  box-shadow: var(--feed-lift);
}

.post__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
}

.post__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(180deg, #4A5D8A, var(--ice-color-surface-brand));
  box-shadow: 0 10px 18px -10px rgb(12 26 56 / 65%), inset 0 2px 3px rgb(255 255 255 / 30%);
  overflow: hidden;
}

.post__avatar--warm {
  background: linear-gradient(180deg, #F0A97A, var(--ice-color-terracotta));
  box-shadow: 0 10px 18px -10px rgb(217 112 44 / 65%), inset 0 2px 3px rgb(255 255 255 / 50%);
}

.post__avatar span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ice-color-on-action);
}

/* The crest variant: an image rather than a monogram. Used by the answer
   library, where the author of every post is the college itself.
 *
 * ⚠️ A LIGHT GROUND, AND IT IS A LITERAL ON PURPOSE. This was
 * `var(--ice-color-surface-brand)`, which is navy in light mode and graphite in
 * dark, and `/img/ice-crest.png` is a NAVY seal with navy rim text on a
 * TRANSPARENT ground. Only the shield's red quarters survived, so 30 avatars
 * across 10 pages rendered as dark tiles with two red marks in them. No token
 * fits: the asset needs a light ground in BOTH themes and every surface token
 * inverts. Found 2026-09-04, on the same pass as the stacking bug in
 * `ice-college-profile.css` and `ice-profile-v1.css`.
 *
 * ⚠️ TWO LAYERS, crest first. One background layer takes ONE image, so
 * `linear-gradient(...) url(...)` in a single layer is invalid and drops the
 * whole declaration. */
.post__avatar--crest {
  background: url('/img/ice-crest.png') center / 74% no-repeat, linear-gradient(180deg, #FFFFFF, #F3EFE9);
  box-shadow: 0 10px 18px -10px rgb(12 26 56 / 45%), inset 0 0 0 1px rgb(4 9 36 / 12%);
}

.post__meta { min-width: 0; }

.post__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--ice-color-text);
}

.post__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ice-color-text-muted);
}

.post__body { padding: 0 20px 18px; }

.post__body > :first-child { margin-top: 0; }
.post__body > :last-child { margin-bottom: 0; }

.post__body p {
  max-width: 68ch;
  margin: 0 0 13px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ice-color-text);
}

/* ⚠️ `ul:not([class])`, not a bare `ul`. A bare `.post__body ul` is (0,1,1) and
   beats `.intro{padding:0}`, `.gal{padding:0}` and `.pcards{padding:0}`, all of
   which are (0,1,0) — so every classed list inside a post was indented by
   1.15em and every `li` in it inherited a 68ch cap, a 15.5px size and a 7px
   bottom margin it did not want. Visible on the college profile as an indented
   Intro card and an off-centre gallery mosaic. Fixed 2026-09-03; this is the
   only rendering change that move made to that page. */
.post__body ul:not([class]) { margin: 0 0 13px; padding-left: 1.15em; }
.post__body ul:not([class]) > li { max-width: 68ch; margin-bottom: 7px; font-size: 15.5px; line-height: 1.55; }

/* Headings written INTO a post body, which is what the reference's Admissions
   and Scholarships posts do. Without these they fall back to the UA default —
   2em, weight 400, the inherited body leading — which is the same defect
   `.pf-panel h1` was fixed for. Measured off the reference: h2 25px / 600 /
   -.018em / 1.18, h3 20px / 600 / -.012em / 1.25. */
.post__body :is(h2, h3) { color: var(--ice-color-text); text-wrap: balance; }
.post__body h2 {
  margin: 26px 0 8px;
  max-width: 34ch;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.18;
}
.post__body h3 {
  margin: 22px 0 6px;
  max-width: 38ch;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.25;
}
.post__body > :first-child:is(h2, h3) { margin-top: 0; }

/* ⚠️ A CONTAINER query context, not a viewport one. The feed column sits
   between rails, so at 1180px viewport it is only ~350px wide. What decides a
   card grid's column count is the width of the post, which is what this
   measures. Every `@container` rule in this file and in ice-answers.css
   depends on this declaration. */
.post__body { container-type: inline-size; }

/* ── the post body text and the call to action ── */

.post__lede {
  max-width: 68ch;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ice-color-text);
}

.post__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ice-color-on-action);
  background: linear-gradient(180deg, #E8526A, var(--ice-color-crimson));
  box-shadow:
    0 14px 24px -12px rgb(196 30 58 / 70%),
    inset 0 2px 3px rgb(255 255 255 / 40%),
    inset 0 -5px 8px rgb(168 24 48 / 50%);
  transition: transform 180ms var(--feed-ease);
}

.post__cta:hover { transform: translateY(-2px); text-decoration: none; color: var(--ice-color-on-action); }

/* The quiet sibling of the CTA, for the second action on a post. */
.post__cta--quiet {
  color: var(--ice-color-text);
  background: linear-gradient(180deg, var(--ice-color-surface), var(--ice-color-surface-field));
  box-shadow:
    0 12px 22px -16px rgb(4 9 36 / 50%),
    inset 0 2px 3px rgb(255 255 255 / 60%),
    inset 0 -4px 6px rgb(4 9 36 / 8%);
}

.post__cta--quiet:hover { color: var(--ice-color-text); }

.post__ctarow { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.post__ctarow > .post__cta { margin-top: 14px; }

/* ── the share row ──
   The reference's engagement row, with counts removed. See the file header. */
.post__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--ice-color-border);
}

.post__act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--ice-color-surface-field);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ice-color-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--feed-ease);
}

.post__act:hover { background: color-mix(in srgb, var(--ice-color-text) 8%, var(--ice-color-surface-field)); text-decoration: none; }

.post__act svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.post__seen { margin-left: auto; font-size: 13px; line-height: 1.45; color: var(--ice-color-text-muted); }
.post__pinned { font-weight: 400; color: var(--ice-color-text-muted); }

/* ── the picture at the top of a post ──
   The reference's feed post opens on an image that runs the full width of the
   card, under the author row and above the text. It sits OUTSIDE `.post__body`
   so it keeps the card's own edges. */
.post__media {
  display: block;
  position: relative;
  margin: 0 0 14px;
  background: var(--ice-color-surface-muted);
}

.post__media :is(img, picture) { display: block; width: 100%; }

.post__media img {
  height: 100%;
  object-fit: cover;
  object-position: var(--media-focus, 50% 45%);
}

.post__media--band { aspect-ratio: 40 / 14; }
.post__media--band :is(img, picture) { height: 100%; }

.post__media figcaption {
  padding: 9px 20px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ice-color-text-muted);
}

/* ── cards with a thumbnail, the reference's two-column programme grid ── */

.pcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@container (max-width: 470px) {
  .pcards { grid-template-columns: minmax(0, 1fr); }
}

.pcard {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ice-color-border);
  border-radius: var(--feed-radius-in);
  transition: transform 200ms var(--feed-ease), box-shadow 200ms var(--feed-ease);
}

.pcard:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -22px rgb(4 9 36 / 50%); }
.pcard:focus-within { outline: 3px solid var(--focus-ring, var(--ice-color-crimson)); outline-offset: 3px; }

.pcard__thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--ice-color-surface-muted);
}

.pcard__thumb :is(img, picture) { display: block; width: 100%; height: 100%; }
/* ⚠️ `left top`, not centre. Most of these thumbnails are crops of a printed
   document, and the middle of a printed page is white paper: centring the crop
   rendered a row of blank boxes that read as broken images. The top-left corner
   of a table is its heading, which is the part that identifies it at 72px. */
.pcard__thumb img { object-fit: cover; object-position: left top; }

.pcard__text { min-width: 0; }

/* The LINK is the title, and an overlay makes the whole card clickable. The
   same pattern `.ans-card` uses, and for the same reason: an anchor wrapping
   the title AND the summary announces all of it as the link's name. */
.pcard__q {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.008em;
  line-height: 1.32;
  color: var(--ice-color-text);
  text-decoration: none;
  text-wrap: pretty;
  /* ⚠️ `anywhere`, not `break-word`. These cards hold portal hostnames —
     "entrance.puexam.edu.np" is 22 unbreakable characters, 153px at this size —
     inside a 132px column at 320px, and only `anywhere` reduces the MIN-CONTENT
     size, which is what a grid column measures. `break-word` wraps the glyphs
     and still reports the long width, so the card stays too wide. */
  overflow-wrap: anywhere;
}

.pcard__q::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard__q:focus-visible { outline: none; }

.pcard__a {
  display: block;
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ice-color-text-muted);
  overflow-wrap: anywhere;
}

.pcard__meta {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ice-color-text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   STORIES — the rail and the viewer.
   Mechanics and measurements from the owner's reference: overlay
   rgba(6,10,24,.92) + blur(18px), panel max-width 430px full height, image at
   opacity .82 under a four-stop scrim, 3px progress bars filling on a 110ms
   linear transition, caption 22px/600/-.015em capped at 26ch.
   ══════════════════════════════════════════════════════════════════════════ */

.srail {
  display: flex;
  gap: 14px;
  margin: 0 0 var(--ice-space-5);
  padding: 2px 2px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.srail::-webkit-scrollbar { display: none; }

.srail__item {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 76px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

/* The ring is the story affordance: a gradient border with the thumbnail
   inset, which is the shape a reader already knows. */
.srail__ring {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(150deg, #F0A97A, var(--ice-color-crimson) 55%, #1A2B52);
  box-shadow: 0 10px 20px -12px rgb(4 9 36 / 55%);
  transition: transform 180ms var(--feed-ease);
}

.srail__item:hover .srail__ring { transform: translateY(-2px); }
.srail__item:active .srail__ring { transform: scale(.95); }

.srail__ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ice-color-surface);
}

.srail__label {
  max-width: 76px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: var(--ice-color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── the story rail faces ── */

.srail__face {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ice-color-surface);
}

.srail__face img { width: 100%; height: 100%; object-fit: cover; }
.srail__face picture { display: block; width: 100%; height: 100%; }

.srail__demo {
  margin: -8px 0 var(--ice-space-5);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ice-color-text-muted);
}

/* ── the viewer ── */

.sview {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgb(6 10 24 / 92%);
}

.sview[hidden] { display: none; }

@supports (backdrop-filter: blur(4px)) {
  .sview { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}

.sview__panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 430px;
  max-height: 100vh;
  overflow: hidden;
  background: #0C1A38;
  box-shadow: 0 40px 90px rgb(0 0 0 / 60%);
}

.sview__slide { position: absolute; inset: 0; margin: 0; }
.sview__slide[hidden] { display: none; }

.sview__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.sview__slide picture { display: block; width: 100%; height: 100%; }

/* The caption is in the DOM for a reader without JS and for a crawler; the
   viewer paints its own copy at the foot. */
.sview__slide figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.sview__slide { background-size: cover; background-position: center; }

.sview__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(4 9 36 / 75%),
    rgb(4 9 36 / 8%) 32%,
    rgb(4 9 36 / 12%) 58%,
    rgb(4 9 36 / 86%)
  );
}

.sview__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sview__zone--prev { left: 0; width: 34%; }
.sview__zone--next { right: 0; width: 66%; }

.sview__top { position: relative; z-index: 4; padding: 12px 12px 0; pointer-events: none; }

.sview__bars { display: flex; gap: 4px; }

.sview__bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgb(255 255 255 / 32%);
  overflow: hidden;
}

/* ⚠️ `transform: scaleX()`, NOT `width`. The reference animates width with a
   110ms transition, and it can afford to: its template binding updates the
   value rarely. This viewer drives the fill from `requestAnimationFrame`, so a
   width write is a forced layout on EVERY bar EVERY frame, over a full-screen
   photograph, on the low-cost Android this site is read on. A transform is
   compositor-only and looks identical.

   No transition either, for the same reason: a 110ms ease on a value already
   updated 60 times a second smooths nothing and lags the bar behind the story.
   The discrete 0 and 1 jumps between stories should be instant anyway. */
.sview__bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.sview__head { display: flex; align-items: center; gap: 11px; padding: 14px 4px 0; }

.sview__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #F0A97A, #D9702C);
  box-shadow: inset 0 2px 3px rgb(255 255 255 / 50%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sview__who { min-width: 0; flex: 1; }
.sview__handle { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: #fff; }
.sview__read { margin: 0; font-size: 13px; line-height: 1.4; color: rgb(255 255 255 / 72%); }

.sview__close {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: #fff;
}

.sview__close:active { background: rgb(255 255 255 / 16%); }

.sview__close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.sview__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0 16px 22px;
  pointer-events: none;
}

.sview__cap {
  max-width: 26ch;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 18px rgb(4 9 36 / 60%);
}

.sview__src {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgb(255 255 255 / 72%);
}

/* The story's own link out, for a story that stands for a section rather than
   for a photograph. Below the caption, inside the foot's safe area. */
.sview__go {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 11px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #E8526A, #C41E3A);
  box-shadow:
    0 14px 24px -12px rgb(196 30 58 / 70%),
    inset 0 2px 3px rgb(255 255 255 / 40%),
    inset 0 -5px 8px rgb(168 24 48 / 50%);
}

.sview__go:hover { color: #fff; text-decoration: none; }

/* ── the gallery mosaic ── */

.gal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gal__tile { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ice-color-surface-muted); }
.gal__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__tile picture { display: block; width: 100%; height: 100%; }

/* A linked tile. The label is visually hidden: a mosaic is read as pictures,
   and the accessible name comes from the image's own alt text. */
.gal__tile a { display: block; width: 100%; height: 100%; }
.gal__tile a:focus-visible { outline: 3px solid var(--ice-color-crimson); outline-offset: -3px; }

.gal__tile--none {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  /* A visible dash on a near-white fill, as in the reference. The first version
     put a low-contrast dash on the beige field token, which rendered as a flat
     solid block. */
  border: 1px dashed color-mix(in srgb, var(--ice-color-text) 22%, transparent);
  background: color-mix(in srgb, var(--ice-color-surface) 82%, transparent);
  text-align: center;
}

.gal__tile--none svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ice-color-text-muted);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
}

.gal__tile--none span {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ice-color-text-muted);
}

.gal__wait {
  margin: 13px 0 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ice-color-text-muted);
}

/* ── the Intro card: Facebook's icon-led fact rows ── */

.intro { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }

.intro__row { display: flex; align-items: flex-start; gap: 12px; }

.intro__icon {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  fill: none; stroke: var(--ice-color-text-muted);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.intro__text { min-width: 0; display: grid; gap: 1px; }

.intro__t {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ice-color-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.intro__t { border-bottom: 1px solid var(--ice-color-border); justify-self: start; }
a.intro__t:hover { border-bottom-color: currentColor; }

.intro__s { font-size: 13.5px; line-height: 1.45; color: var(--ice-color-text-muted); overflow-wrap: anywhere; }

/* ── the tab row ── */

.ptabs {
  margin: 0 0 var(--ice-space-5);
  border: var(--feed-border);
  border-radius: 20px;
  background: var(--ice-color-surface);
  box-shadow: var(--feed-lift);
  overflow-x: auto;
  scrollbar-width: none;
}

.ptabs::-webkit-scrollbar { display: none; }

.ptabs ul { display: flex; gap: 2px; margin: 0; padding: 5px 6px; list-style: none; }

.ptabs__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ice-color-text-muted);
  text-decoration: none;
  transition: background 160ms var(--feed-ease), color 160ms var(--feed-ease);
}

.ptabs__tab:hover { background: var(--ice-color-surface-field); color: var(--ice-color-text); text-decoration: none; }

.ptabs__tab.is-current {
  color: var(--ice-color-crimson);
  background: color-mix(in srgb, var(--ice-color-crimson) 9%, transparent);
}

/* ──────────────────────────── narrow screens ──────────────────────────── */

@media (max-width: 640px) {
  .post__body { padding: 0 16px 16px; }
  .post__head { padding: 14px 16px 10px; }
  .post__media figcaption { padding-inline: 16px; }
  .pcards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .gal { gap: 2px; }
}

/* ─────────────────────────── reduced settings ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .srail__ring { transition: none; }
  .srail__item:hover .srail__ring, .srail__item:active .srail__ring { transform: none; }
  .post__cta, .pcard { transition: none; }
  .post__cta:hover, .pcard:hover { transform: none; }
}

@media print {
  .srail, .sview { display: none; }
  .post { box-shadow: none; break-inside: avoid; }
}

/* ── the reaction row ──
   Owner instruction 2026-09-03: the reference's Love / Comment / Share bar,
   with "coming soon" behind the first two. `.post__act` above already carries
   the button shape; this only spaces the row and keeps it from wrapping into a
   column on a phone, where three 44px targets still fit across 320px. */
.post__foot--react { flex-wrap: wrap; row-gap: 8px; }
.post__foot--react .post__act { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
.post__foot--react .post__seen { flex: 1 0 100%; margin-left: 0; }

@media (min-width: 560px) {
  .post__foot--react .post__act { flex: 0 0 auto; }
  .post__foot--react .post__seen { flex: 0 1 auto; margin-left: auto; text-align: right; }
}
