/* ════════════════════════════════════════════════════════════════════
   SACRED MINIMALIST / DIGITAL ASHRAM — shared design system
   ────────────────────────────────────────────────────────────────────
   The single source of truth for the editorial "ashram" look first
   explored on /today, /oracle, /self, /the-way, /letter.

   Those five reference pages still carry their own scoped <style> blocks
   (intentionally, for now). This file is what NEW / converted pages use
   instead of copy-pasting a 200-line block — it ends the drift.

   HOW TO USE
   ----------
   Wrap a page in the opt-in root class:

       <div class="ashram <page>-page">   <%# e.g. community-page %>
         <%= render "shared/plan_top_nav", active: "..." %>  (optional)
         <main class="ash-column"> ... </main>
         <footer class="ash-foot"> ... </footer>
       </div>

   Everything below is scoped under `.ashram` so it cannot leak into the
   rest of the app, and so it never overrides the reference pages (they
   are NOT `.ashram`). When a reference page is later de-duped, swap its
   root class to `.ashram` and delete its inline block — verifying the
   look against the locked mockup first.

   Page-specific tweaks still go in a small per-page block, but they
   OVERRIDE these tokens rather than redeclaring the whole vocabulary,
   e.g.  `.letter-page { --accent: var(--gold); }`
   ════════════════════════════════════════════════════════════════════ */

/* ── GLOBAL (NOT .ashram-scoped) · monastery flash toast ────────────
   The flash renders in the layout, outside any `.ashram` wrapper, so it
   can't use the editorial tokens. It uses the global --cream-* tokens
   (application.tailwind.css, theme-aware) for a paper toast with a gold
   top rule instead of the old DaisyUI alert. */
.ds-flash {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 32rem;
  padding: 14px 22px;
  background: var(--cream-soft, #FDFAF3);
  color: var(--cream-ink, #2A2419);
  border: 1px solid var(--cream-border, #E8DFC9);
  border-top: 2px solid #c9a227;
  box-shadow: 0 8px 30px -12px rgba(42, 36, 25, 0.35);
  font-family: 'EB Garamond', Garamond, serif;
}
.ds-flash-mark { color: #c9a227; font-size: 18px; line-height: 1; }
.ds-flash-msg  { font-size: 16px; font-style: italic; }
.ds-flash[data-flash-type="alert"] { border-top-color: #a13d2d; }
.ds-flash[data-flash-type="alert"] .ds-flash-mark { color: #a13d2d; }

/* ── Palette + type tokens (light) ──────────────────────────────────
   These are the editorial "paper" tokens, distinct from the global
   --cream-* tokens in application.tailwind.css. Canonical values are
   the consensus of the five reference pages; the divergences they had
   (accent sage-vs-gold, 17px-vs-19px body, 720-vs-767 breakpoint) are
   resolved here into one set. A page may still override any single
   token in its own block. */
.ashram {
  --serif: 'EB Garamond', 'Garamond', serif;
  --sans:  'Inter', system-ui, sans-serif;
  --dev:   'Tiro Devanagari Sanskrit', serif;

  --paper:     #f4efe6;
  --paper-2:   #ece6d8;
  --paper-3:   #e1d9c5;
  --ink:       #1f1d18;
  --ink-soft:  #4a463d;
  --ink-faded: #7d7666;
  --rule:      rgba(31, 29, 24, 0.18);
  --rule-soft: rgba(31, 29, 24, 0.10);
  --accent:    #3d4c32;   /* sage — primary editorial accent */
  --accent-2:  #b8881c;   /* gold — secondary / rules / dates  */
  --gold:      #c9a227;

  /* Painted-coin avatar disc gradient (the gold member glyphs). */
  --gold-bright: #f7e6ba;
  --gold-mid:    #c89c4a;
  --gold-deep:   #5e4220;
  --wax-ink:     #3a2a08;

  /* Aliases so handoff CSS using --font-serif/sans/dev resolves here. */
  --font-serif: var(--serif);
  --font-sans:  var(--sans);
  --font-dev:   var(--dev);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  min-height: 100vh;
  /* Render EB Garamond light & smooth (matches /oracle, /today) rather
     than the heavier default subpixel weight. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Palette tokens (dark) ──────────────────────────────────────────
   Honors the user's theme preference set on html[data-theme]. Sage and
   gold swap roles because sage doesn't read on near-black. */
html[data-theme="dark"]   .ashram,
html[data-theme="night"]  .ashram,
html[data-theme="black"]  .ashram,
html[data-theme="forest"] .ashram {
  --paper:     #0f1410;
  --paper-2:   #16140e;
  --paper-3:   #22281e;
  --ink:       #e9e2d2;
  --ink-soft:  #a8a193;
  --ink-faded: #76705f;
  --rule:      rgba(233, 226, 210, 0.22);
  --rule-soft: rgba(233, 226, 210, 0.10);
  --accent:    #c9a227;
  --accent-2:  #6f8c5a;
  --gold:      #d4a93f;   /* gold leads at night */
}

/* ════ LAYOUT ════════════════════════════════════════════════════ */

/* Centered reading/content column. Default is the wide 1280px editorial
   column; add `.ash-column--narrow` for the 720px long-form reading
   measure used by /letter and prose pages. */
.ashram .ash-column {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
}
.ashram .ash-column--narrow { max-width: 720px; }

/* ════ TYPOGRAPHY ROLES ══════════════════════════════════════════ */

/* Eyebrow — uppercase, letterspaced, sans. The label above a title or
   section ("V · YOUR CONSTITUTION"). */
.ashram .ash-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* Date / location line — italic serif, gold. */
.ashram .ash-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--accent-2);
  margin: 0;
}

/* Page title — large italic serif. */
.ashram .ash-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}

/* Descriptor / subtitle under a title — smaller italic serif. */
.ashram .ash-descriptor {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* Section heading — italic serif, mid size. */
.ashram .ash-heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

/* Body prose — readable serif measure. */
.ashram .ash-prose {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .012em;
  color: var(--ink);
}
.ashram .ash-prose p { margin: 0 0 1.1em; }
.ashram .ash-prose p:last-child { margin-bottom: 0; }
.ashram .ash-prose h2 {
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 1.8em 0 .6em;
}
.ashram .ash-prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.6em 0 .5em;
}
.ashram .ash-prose ul,
.ashram .ash-prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}
.ashram .ash-prose li { margin: 0 0 .35em; }
.ashram .ash-prose strong { font-weight: 600; color: var(--ink); }
.ashram .ash-prose hr {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 1.8em 0;
}
.ashram .ash-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Callout — a quiet paper-2 block for emphasis/acknowledgment notes. */
.ashram .ash-callout {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 20px 24px;
  margin: 1.6em 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

/* ════ ATOMS ═════════════════════════════════════════════════════ */

/* Short centered gold accent rule (the 60px line under a crown). */
.ashram .ash-gold-rule {
  width: 60px;
  height: 1px;
  background: var(--accent-2);
  margin: 22px auto 18px;
  opacity: .9;
  border: 0;
}

/* Full-width dashed section divider. */
.ashram .ash-rule {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 0;
}

/* Full-width solid hairline. */
.ashram .ash-hairline {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Diamond ornament — small rotated square in the accent color. */
.ashram .ash-diamond {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  display: inline-block;
}

/* ════ COMPONENTS ════════════════════════════════════════════════ */

/* Crown — centered page header block. */
.ashram .ash-crown {
  text-align: center;
  padding: 64px 0 56px;
}
.ashram .ash-crown .ash-eyebrow  { margin-bottom: 14px; }
.ashram .ash-crown .ash-date     { margin-bottom: 30px; }
.ashram .ash-crown .ash-descriptor { margin-top: 18px; }

/* Section band — paper-2 panel with a hairline border. */
.ashram .ash-band {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 36px 40px;
}

/* Generic responsive two-column row — collapses to one column on mobile.
   Use for side-by-side bands (contact cards, FAQ pairs, etc.). */
.ashram .ash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Two-column list rows (factor grid). */
.ashram .ash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 0;
  padding: 32px 0;
}
.ashram .ash-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.ashram .ash-row-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.ashram .ash-row-value {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  text-align: right;
}
.ashram .ash-row-value.missing {
  color: var(--ink-faded);
  font-style: italic;
}

/* Section subheading — smaller italic serif heading inside a page. */
.ashram .ash-subheading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
}

/* Clickable card — a paper-2 band that lifts on hover. Use as a link. */
.ashram .ash-card {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .12s ease;
}
.ashram .ash-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.ashram .ash-card.is-disabled {
  opacity: .55;
  pointer-events: none;
}

/* Pill — rounded outline link/tag, italic serif. */
.ashram .ash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.ashram a.ash-pill:hover { border-color: var(--accent); color: var(--ink); }
.ashram .ash-pill.is-disabled { opacity: .45; pointer-events: none; }

/* Badge — tiny uppercase sans label with hairline outline. */
.ashram .ash-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 2px;
}
.ashram .ash-badge--muted { color: var(--ink-faded); }

/* Primary CTA — dark ink block with uppercase serif label. */
.ashram .ash-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: opacity .15s ease;
}
.ashram .ash-cta:hover { opacity: .85; }

/* Quiet link — italic serif, used in footers and inline. */
.ashram .ash-link {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: none;
}
.ashram .ash-link:hover { color: var(--ink); }

/* Tag / footer meta — sans, uppercase, letterspaced. */
.ashram .ash-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.ashram a.ash-tag:hover { color: var(--ink); }

/* Page footer strip — left tag / right link. */
.ashram .ash-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 26px 36px 28px;
  border-top: 1px solid var(--rule);
}

/* The top nav (.ld-*) is defined once, in shared.css. (Was duplicated here
   scoped to .ashram, but no .ashram page renders the top nav — it was dead.) */

/* The bottom nav (.bnav) is defined once, in shared.css — desktop-hidden +
   mobile sticky row. (Was duplicated here scoped to .ashram; removed.) */

/* ════ RESPONSIVE ════════════════════════════════════════════════
   One canonical breakpoint (767px) — resolves the 720/767 drift. */
@media (max-width: 767px) {
  .ashram .ash-column      { padding: 0 18px; }
  .ashram .ash-title       { font-size: 40px; }
  .ashram .ash-crown       { padding: 48px 0 40px; }
  .ashram .ash-two-col     { grid-template-columns: 1fr; }
  .ashram .ash-grid        { grid-template-columns: 1fr; column-gap: 0; padding: 16px 0; }
  .ashram .ash-band        { padding: 22px 20px; }
  .ashram .ash-foot        { padding: 22px 18px 24px; }

  .ashram .ld-top { display: none; }   /* mobile uses the bottom nav (.bnav — styled in shared.css) */
}

/* ════════════════════════════════════════════════════════════════════
   THE ORDER — community feed ("the-order-feed" handoff)
   ────────────────────────────────────────────────────────────────────
   The members-only social surface: profile rail · feed · widget rail,
   in the monastery vocabulary. Root element carries `ashram feed-page`,
   so palette/type tokens resolve from `.ashram` and every selector here
   is scoped under `.feed-page` (generic names like .post/.disc/.tag must
   not leak into the rest of the app). Ported from feed.css; measurements
   are the source of truth.
   ════════════════════════════════════════════════════════════════════ */
/* Base size matches the editorial/ashram prose scale (was 16px) so the feed
   reads at the same density as /today. */
.feed-page { background: var(--paper); color: var(--ink); font-family: var(--font-serif); min-height: 100vh; font-size: 17px; }

/* The top bar now renders the shared _plan_top_nav (.ld-top) partial, same as
   every other page — the old .feed-top / .feed-nav / .feed-menu rules that used
   to live here were removed when the nav was unified. */

/* ── Shell ── */
/* Widened to the .ash-column measure (1280px) with roomier rails + gap so the
   center column isn't squeezed — the main cause of the "scaled-down" feel. */
.feed-page .feed-shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 36px 96px; box-sizing: border-box; display: grid; grid-template-columns: 212px 1fr 300px; gap: 56px; align-items: start; }
/* Lean honest-MVP feed: profile + posts only, no right rail. The full
   3-column "Order" design lives on /community/v2 until its widgets are real. */
.feed-page .feed-shell--lean { max-width: 880px; grid-template-columns: 200px 1fr; }
.feed-page .you-place { margin-top: 7px; }
.feed-page .feed-col-l { position: sticky; top: 65px; padding-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.feed-page .feed-col-c { min-width: 0; padding-top: 40px; }
.feed-page .feed-col-r { position: sticky; top: 65px; padding-top: 40px; display: flex; flex-direction: column; gap: 36px; }

/* ── Shared atoms ── */
.feed-page .disc { border-radius: 50%; flex-shrink: 0; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 38% 32%, var(--gold-bright), var(--gold-mid) 58%, var(--gold-deep)); color: var(--wax-ink); font-family: var(--font-serif); font-style: italic; line-height: 1; overflow: hidden; text-decoration: none; }
.feed-page .disc img { width: 100%; height: 100%; object-fit: cover; }
.feed-page .disc.dev { font-family: var(--font-dev); font-style: normal; }
.feed-page .disc.dim { background: var(--paper-3); color: var(--ink-faded); border-color: var(--rule); }
.feed-page .eyebrow { font-family: var(--font-sans); font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faded); margin: 0; }
.feed-page .tag { font-family: var(--font-sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faded); }

/* ── Left rail · your profile ── */
.feed-page .you-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.feed-page .you-name { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--ink); margin: 14px 0 0; text-decoration: none; }
.feed-page .you-tag { margin-top: 7px; }
.feed-page .you-state { width: 100%; margin-top: 22px; text-align: left; display: flex; flex-direction: column; }
.feed-page .ys-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.feed-page .ys-row:first-child { border-top: 0; padding-top: 0; }
.feed-page .ys-l { font-family: var(--font-sans); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faded); white-space: nowrap; }
.feed-page .ys-v { font-family: var(--font-serif); font-style: italic; font-size: 15.5px; color: var(--ink); text-align: right; }
.feed-page .ys-dev { font-family: var(--font-dev); font-style: normal; color: var(--gold); margin-right: 6px; }
.feed-page .ys-ojas { margin-top: 2px; padding-top: 13px; border-top: 1px solid var(--rule); }
.feed-page .yo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.feed-page .yo-word { font-family: var(--font-serif); font-style: italic; font-size: 15.5px; color: var(--gold); }
.feed-page .yo-pips { display: flex; gap: 7px; }
.feed-page .yo-pip { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 5px color-mix(in srgb, var(--gold) 55%, transparent); }
.feed-page .yo-pip.off { background: transparent; border: 1px solid var(--rule); box-shadow: none; }
.feed-page .rail-nav { display: flex; flex-direction: column; gap: 1px; }
.feed-page .rail-nav a { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ink-soft); text-decoration: none; padding: 8px 0 8px 14px; border-left: 2px solid transparent; display: flex; align-items: center; gap: 10px; transition: color .14s, border-color .14s; cursor: pointer; }
.feed-page .rail-nav a:hover { color: var(--ink); }
.feed-page .rail-nav a.on { color: var(--ink); border-left-color: var(--accent); }
.feed-page .rail-foot { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink-faded); line-height: 1.55; margin: 0; padding-top: 22px; border-top: 1px solid var(--rule); }

/* ── Presence strip ── */
.feed-page .presence { display: flex; align-items: center; gap: 16px; padding: 4px 0 18px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.feed-page .presence-discs { display: flex; }
.feed-page .presence-discs .disc { margin-right: -9px; box-shadow: 0 0 0 2px var(--paper); }
.feed-page .presence-discs .more { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 9px; letter-spacing: .04em; color: var(--ink-faded); box-shadow: 0 0 0 2px var(--paper); margin-left: -9px; }
.feed-page .presence-txt { flex: 1 1 auto; min-width: 0; }
.feed-page .presence-txt .pn { font-family: var(--font-serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--ink); margin: 0; }
.feed-page .presence-txt .pn b { color: var(--gold); font-weight: 500; font-style: normal; }
.feed-page .presence-txt .ps { font-family: var(--font-sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faded); margin: 4px 0 0; }
.feed-page .presence-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faded); white-space: nowrap; }
.feed-page .presence-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── Composer ── */
.feed-page .composer { border: 1px solid var(--gold); background: var(--paper-2); padding: 16px 18px; display: flex; gap: 14px; align-items: center; margin-bottom: 8px; cursor: text; }
.feed-page .composer .ph { flex: 1; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--ink-faded); }
.feed-page .composer .go { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--gold); border: 1px solid var(--gold); padding: 8px 18px; white-space: nowrap; background: transparent; cursor: pointer; transition: background .16s, color .16s; }
.feed-page .composer:hover .go { background: var(--gold); color: var(--paper); }
.feed-page .feed-sort { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 4px; }
.feed-page .feed-sort .lbl { font-family: var(--font-sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faded); }
.feed-page .feed-sort .sel { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink-soft); cursor: pointer; }

/* ── Post (base) ── */
.feed-page .post { padding: 28px 0; border-top: 1px solid var(--rule); }
.feed-page .post-head { display: flex; align-items: center; gap: 13px; }
.feed-page .post-by { min-width: 0; }
.feed-page .post-name { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink); margin: 0; text-decoration: none; }
.feed-page .post-name.teacher { color: var(--gold); }
.feed-page .post-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.feed-page .post-time { margin-left: auto; font-family: var(--font-sans); font-size: 10px; letter-spacing: .04em; color: var(--ink-faded); white-space: nowrap; align-self: flex-start; padding-top: 4px; }
.feed-page .post-text { font-family: var(--font-serif); font-size: 17px; line-height: 1.66; color: var(--ink); margin: 16px 0 0; text-wrap: pretty; }
.feed-page .post-text .lead { font-style: italic; color: var(--ink-soft); }
.feed-page .post-text p { margin: 0 0 .8em; }
.feed-page .post-text p:last-child { margin-bottom: 0; }
.feed-page .post-text img { max-width: 100%; height: auto; margin-top: 10px; border: 1px solid var(--rule); }

/* action row */
.feed-page .acts { display: flex; gap: 4px; align-items: center; margin-top: 16px; }
.feed-page .act { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: transparent; border: 0; padding: 6px 12px 6px 0; font-family: var(--font-sans); font-size: 11px; letter-spacing: .04em; color: var(--ink-faded); cursor: pointer; transition: color .14s; }
.feed-page .act:hover { color: var(--ink); }
.feed-page .act .gl { font-family: var(--font-serif); font-size: 16px; line-height: 1; }
.feed-page .act.resonate .gl { color: var(--gold); }
.feed-page .act.resonate.on { color: var(--gold); }
.feed-page .act.kept.on { color: var(--accent); }

/* comment preview */
.feed-page .comments { margin: 18px 0 0; padding-left: 16px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.feed-page .cmt { display: flex; gap: 11px; }
.feed-page .cmt-by { display: flex; align-items: baseline; gap: 8px; }
.feed-page .cmt-name { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink); text-decoration: none; }
.feed-page .cmt-name.teacher { color: var(--gold); }
.feed-page .cmt-text { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 4px 0 0; text-wrap: pretty; }
.feed-page .cmt-more { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--gold); text-decoration: none; cursor: pointer; }

/* ── Post variant · milestone ── */
.feed-page .milestone { border: 1px solid var(--gold); background: linear-gradient(180deg, var(--paper-2), var(--paper)); padding: 26px 28px; margin: 16px 0 0; display: flex; align-items: center; gap: 22px; text-align: left; }
.feed-page .milestone .numeral { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-dev); font-size: 30px; color: var(--gold); flex-shrink: 0; }
.feed-page .milestone .ms-eyebrow { font-family: var(--font-sans); font-size: 9px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faded); margin: 0 0 8px; }
.feed-page .milestone .ms-title { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 22px; color: var(--ink); margin: 0; line-height: 1.3; }
.feed-page .milestone .ms-sub { font-family: var(--font-serif); font-size: 15px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.5; }

/* ── Post variant · photo ── */
.feed-page .post-photo { margin: 16px 0 0; border: 1px solid var(--rule); overflow: hidden; background: var(--paper-2); }
.feed-page .post-photo img { display: block; width: 100%; height: auto; }
.feed-page .post-photo .cap { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink-soft); padding: 12px 16px; border-top: 1px solid var(--rule); margin: 0; line-height: 1.5; }

/* ── Post variant · kept teaching (quote tablet) ── */
.feed-page .kept-tablet { margin: 16px 0 0; border: 1px solid var(--rule); background: var(--paper-2); padding: 28px 32px; text-align: center; position: relative; }
.feed-page .kept-tablet .mark { font-family: var(--font-serif); font-size: 22px; color: var(--gold); line-height: 1; }
.feed-page .kept-tablet .quote { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.42; color: var(--ink); margin: 14px auto 0; max-width: 460px; text-wrap: balance; }
.feed-page .kept-tablet .attrib { font-family: var(--font-sans); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faded); margin: 18px 0 0; }

/* ── Right rail widgets ── */
.feed-page .widget .w-eyebrow { font-family: var(--font-sans); font-size: 9px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faded); margin: 0 0 16px; }
.feed-page .satsang { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); background: var(--paper-2); padding: 22px 22px; text-align: center; }
.feed-page .satsang .s-when { font-family: var(--font-dev); font-size: 18px; color: var(--gold); margin: 0; }
.feed-page .satsang .s-eyebrow { font-family: var(--font-sans); font-size: 9px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faded); margin: 0 0 14px; }
.feed-page .satsang .s-title { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--ink); margin: 12px 0 4px; line-height: 1.35; }
.feed-page .satsang .s-meta { font-family: var(--font-sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faded); margin: 0; }
.feed-page .satsang .s-join { display: inline-block; margin-top: 18px; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--gold); border: 1px solid var(--gold); padding: 8px 22px; text-decoration: none; cursor: pointer; transition: background .16s, color .16s; }
.feed-page .satsang .s-join:hover { background: var(--gold); color: var(--paper); }
.feed-page .walk-list { display: flex; flex-direction: column; gap: 16px; }
.feed-page .walk { display: flex; align-items: center; gap: 11px; }
.feed-page .walk-by { min-width: 0; flex: 1; }
.feed-page .walk-name { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--ink); margin: 0; text-decoration: none; }
.feed-page .walk-tag { font-family: var(--font-sans); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faded); margin: 2px 0 0; }
.feed-page .walk-add { font-family: var(--font-sans); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); cursor: pointer; white-space: nowrap; background: transparent; border: 0; padding: 0; transition: opacity .14s; }
.feed-page .walk-add:hover { opacity: .68; }

/* ── The archive · classroom gallery ── */
.feed-page .w-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 16px; }
.feed-page .w-head .w-eyebrow { margin: 0; }
.feed-page .w-lock { font-family: var(--font-sans); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faded); display: inline-flex; align-items: center; gap: 5px; }
.feed-page .w-lock::before { content: '◇'; color: var(--gold); font-size: 9px; }
.feed-page .archive { display: flex; flex-direction: column; gap: 12px; }
.feed-page .arch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feed-page .arch-card { position: relative; overflow: hidden; border: 1px solid var(--rule); cursor: pointer; background: var(--paper-3); transition: border-color .16s; }
.feed-page .arch-card.feat { aspect-ratio: 16 / 9; }
.feed-page .arch-card.mini { aspect-ratio: 4 / 3; }
.feed-page .arch-card:hover { border-color: var(--gold); }
.feed-page .arch-card .image-area { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(150deg, var(--paper-3), color-mix(in srgb, var(--gold) 24%, var(--paper-2))); transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.feed-page .arch-card .image-area img { width: 100%; height: 100%; object-fit: cover; }
.feed-page .arch-card:hover .image-area { transform: scale(1.05); }
.feed-page .arch-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(28,21,13,.82) 0%, rgba(28,21,13,.30) 34%, transparent 62%); display: flex; flex-direction: column; justify-content: flex-end; }
.feed-page .arch-tag { position: absolute; top: 9px; left: 10px; font-family: var(--font-sans); font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); background: rgba(28,21,13,.42); backdrop-filter: blur(2px); padding: 4px 7px; }
.feed-page .arch-body { padding: 10px 11px; }
.feed-page .arch-card.feat .arch-body { padding: 13px 14px; }
.feed-page .arch-title { font-family: var(--font-serif); font-style: italic; color: var(--paper); margin: 0; line-height: 1.28; text-wrap: pretty; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.feed-page .arch-card.mini .arch-title { font-size: 13px; }
.feed-page .arch-card.feat .arch-title { font-size: 18px; }
.feed-page .arch-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-family: var(--font-sans); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.feed-page .arch-play { width: 16px; height: 16px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--paper) 72%, transparent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .16s, border-color .16s; }
.feed-page .arch-card.feat .arch-play { width: 20px; height: 20px; }
.feed-page .arch-play::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 3px 0 3px 5px; border-color: transparent transparent transparent var(--paper); margin-left: 1px; }
.feed-page .arch-card:hover .arch-play { background: var(--gold); border-color: var(--gold); }
.feed-page .arch-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.feed-page .arch-foot .af-link { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--gold); text-decoration: none; cursor: pointer; }
.feed-page .arch-foot .af-count { font-family: var(--font-sans); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faded); }
.feed-page .rail-note { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--ink-faded); line-height: 1.55; margin: 0; padding-top: 22px; border-top: 1px solid var(--rule); }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .feed-page .feed-shell { grid-template-columns: 1fr 300px; }
  .feed-page .feed-shell--lean { grid-template-columns: 1fr; }
  .feed-page .feed-col-l { display: none; }
}
@media (max-width: 820px) {
  .feed-page .feed-shell { grid-template-columns: 1fr; gap: 0; padding: 0 20px 72px; }
  .feed-page .feed-col-r { display: none; }
}
