/* ============================================================
   TownVue — /community feed, "Immersive" build.
   Loads ALONGSIDE state-immersive.css (design tokens, tv-btn,
   serif/sans). Everything is scoped under .state-immersive.comm-page
   so it can't leak site-wide. Bootstrap (from _BaseLayout) still
   loads but we don't lean on its grid here.
   ============================================================ */

/* Full-bleed inside _CommunityLayout's .content--inner shell. */
.page__main{ padding-block:0 !important; }
.content--inner{ max-width:none !important; width:100% !important; padding:0 !important; margin:0 !important; }

.state-immersive.comm-page{ background:var(--beige); color:var(--ink); min-height:60vh; }
.state-immersive .comm-wrap{ max-width:var(--maxw); margin-inline:auto; padding:34px 28px 64px; }

/* ── Heading ── */
.state-immersive .comm-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.state-immersive .comm-head-l{ display:flex; align-items:center; gap:16px; }
.state-immersive .comm-head-ico{ flex:none; width:50px; height:50px; border-radius:13px; background:var(--clay-soft); color:var(--clay-700); display:flex; align-items:center; justify-content:center; }
.state-immersive .comm-head-ico svg{ width:26px; height:26px; }
.state-immersive .comm-h1{ font-family:var(--serif); font-weight:600; font-size:clamp(32px,4.4vw,52px); line-height:1.02; letter-spacing:-.02em; color:var(--navy); }
.state-immersive .comm-sub{ display:flex; align-items:center; gap:9px; margin-top:13px; font-size:15.5px; color:var(--ink-soft); }
.state-immersive .comm-sub b{ color:var(--navy); font-weight:800; }

/* ── Toolbar (sort / industry / geo / following / saved / search) ── */
.state-immersive .comm-toolbar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:22px; }
.state-immersive .comm-field{ display:inline-flex; align-items:center; gap:8px; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-pill); box-shadow:var(--shadow-sm); padding:0 16px; height:46px; }
.state-immersive .comm-field label{ font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.state-immersive .comm-field select{ border:0; background:transparent; outline:none; font-family:var(--sans); font-size:14.5px; font-weight:700; color:var(--navy); cursor:pointer; padding-right:4px; }
.state-immersive .comm-geo{ display:inline-flex; align-items:center; gap:7px; height:46px; padding:0 16px; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-pill); box-shadow:var(--shadow-sm); font-size:13.5px; color:var(--ink-soft); }
.state-immersive .comm-geo svg{ color:var(--clay); flex:none; }
.state-immersive .comm-geo b{ color:var(--navy); font-weight:800; }
.state-immersive .comm-geo a{ color:var(--clay-700); font-weight:700; margin-left:4px; white-space:nowrap; }

/* Following / Saved toggle pills */
.state-immersive .comm-toggle{ display:inline-flex; align-items:center; gap:8px; height:46px; padding:0 18px; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-pill); box-shadow:var(--shadow-sm); font-size:14.5px; font-weight:700; color:var(--ink-soft); cursor:pointer; transition:all .15s; }
.state-immersive .comm-toggle svg{ width:16px; height:16px; }
.state-immersive .comm-toggle:hover{ border-color:var(--navy); color:var(--navy); }
.state-immersive .comm-toggle.on{ background:var(--navy); border-color:var(--navy); color:#fff; }
.state-immersive .comm-toggle.on svg{ color:var(--gold); }

/* Search box pushes to the right */
.state-immersive .comm-search{ flex:1; min-width:200px; display:flex; align-items:center; gap:10px; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-pill); box-shadow:var(--shadow-sm); padding:0 18px; height:46px; }
.state-immersive .comm-search svg{ flex:none; color:var(--muted); }
.state-immersive .comm-search input{ flex:1; min-width:0; border:0; background:transparent; outline:none; font-family:var(--sans); font-size:15px; color:var(--navy); }
.state-immersive .comm-search input::placeholder{ color:var(--muted); }
.state-immersive .comm-clear{ font-size:13.5px; font-weight:700; color:var(--muted); white-space:nowrap; }
.state-immersive .comm-clear:hover{ color:var(--clay-700); }

/* ── Section pill row ── */
.state-immersive .comm-pills{ display:flex; gap:9px; margin-top:18px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
.state-immersive .comm-pill{ flex:none; padding:9px 17px; border-radius:var(--r-pill); border:1px solid var(--line); background:var(--paper); color:var(--ink-soft); font-size:14px; font-weight:700; white-space:nowrap; box-shadow:var(--shadow-sm); transition:all .15s; }
.state-immersive .comm-pill:hover{ border-color:var(--navy); color:var(--navy); }
.state-immersive .comm-pill.on{ background:var(--navy); color:#fff; border-color:var(--navy); }
.state-immersive .comm-pill .ct{ margin-left:7px; font-size:11.5px; font-weight:800; opacity:.7; }

/* ── Two-column body ── */
.state-immersive .comm-body{ display:grid; grid-template-columns:1fr 320px; gap:34px; margin-top:26px; align-items:start; }
.state-immersive .comm-main{ min-width:0; }
.state-immersive .comm-aside{ display:flex; flex-direction:column; gap:20px; position:sticky; top:18px; }

/* ── Featured band (hero + up to two side cards) ── */
.state-immersive .comm-featured{ display:grid; grid-template-columns:1.6fr 1fr; gap:18px; margin-bottom:26px; }
.state-immersive .comm-featured .comm-side{ display:flex; flex-direction:column; gap:18px; }

/* ── Grid ── */
.state-immersive .comm-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }

/* ── Card ── */
.state-immersive .pc{ background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); overflow:hidden; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease; }
.state-immersive .pc:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }

/* Header band: image, or a colored fallback keyed to the industry */
.state-immersive .pc-head{ position:relative; height:180px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.state-immersive .pc-head .pc-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.state-immersive .pc-head-link{ position:absolute; inset:0; z-index:1; }
.state-immersive .pc-head .pc-mark{ font-family:var(--serif); font-size:46px; font-weight:600; color:rgba(255,255,255,.9); line-height:1; }
.state-immersive .pc-badge{ position:absolute; top:11px; left:11px; z-index:2; display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; padding:5px 11px; border-radius:var(--r-pill); background:var(--gold); color:var(--navy); }
.state-immersive .pc-badge svg{ width:12px; height:12px; }
.state-immersive .pc-geo{ position:absolute; top:11px; right:11px; z-index:2; font-size:11px; font-weight:800; padding:5px 10px; border-radius:var(--r-pill); background:rgba(11,45,57,.72); color:#fff; backdrop-filter:blur(2px); }
.state-immersive .pc-geo.anywhere{ background:rgba(108,117,125,.82); }
/* Section pill overlay (bottom-left of the image) */
.state-immersive .pc-tag{ position:absolute; left:11px; bottom:11px; z-index:2; font-size:11px; font-weight:800; letter-spacing:.02em; padding:5px 12px; border-radius:var(--r-pill); background:var(--paper); color:var(--navy); box-shadow:0 2px 8px rgba(11,45,57,.22); }

/* Industry-keyed fallback band colors */
.state-immersive .pc-head--food{ background:linear-gradient(135deg,#C96E4A,#a8552f); }
.state-immersive .pc-head--shop{ background:linear-gradient(135deg,#0B2D39,#06222b); }
.state-immersive .pc-head--home{ background:linear-gradient(135deg,#8FAE91,#6f8e72); }
.state-immersive .pc-head--health{ background:linear-gradient(135deg,#5a8f8f,#3f6f6f); }
.state-immersive .pc-head--beauty{ background:linear-gradient(135deg,#b56b86,#8f4f68); }
.state-immersive .pc-head--pro{ background:linear-gradient(135deg,#3d5a73,#27405a); }
.state-immersive .pc-head--arts{ background:linear-gradient(135deg,#9a7bb5,#74578f); }
.state-immersive .pc-head--pets{ background:linear-gradient(135deg,#c79a4a,#a8772f); }
.state-immersive .pc-head--local{ background:linear-gradient(135deg,#4a6b73,#2f4f57); }

/* Body */
.state-immersive .pc-body{ padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.state-immersive .pc-cat{ font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--clay-700); }
.state-immersive .pc-title{ font-family:var(--serif); font-size:19px; font-weight:600; line-height:1.18; margin-top:7px; }
.state-immersive .pc-title a{ color:var(--navy); }
.state-immersive .pc-title a:hover{ color:var(--clay-700); }
.state-immersive .pc-excerpt{ font-size:13.5px; line-height:1.5; color:var(--ink-soft); margin-top:9px; }

/* Byline + Follow. margin-top:auto pushes the byline (and the footer below it)
   to the bottom of the card body, so byline/Follow/actions line up across every
   card in a row regardless of title or excerpt length. */
.state-immersive .pc-byline{ display:flex; align-items:center; gap:9px; margin-top:auto; padding-top:14px; }
.state-immersive .pc-avatar{ flex:none; width:30px; height:30px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; }
.state-immersive .pc-by{ min-width:0; flex:1; }
.state-immersive .pc-byname{ font-size:13px; font-weight:800; color:var(--navy); line-height:1.1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.state-immersive .pc-byname a{ color:var(--navy); }
.state-immersive .pc-bydate{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.state-immersive .pc-follow{ flex:none; display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:800; padding:6px 13px; border-radius:var(--r-pill); border:1.5px solid var(--navy); background:transparent; color:var(--navy); cursor:pointer; transition:all .15s; white-space:nowrap; }
.state-immersive .pc-follow:hover{ background:var(--navy); color:#fff; }
.state-immersive .pc-follow.on{ background:var(--sage-soft); border-color:var(--sage); color:var(--sage-700); }
.state-immersive .pc-follow.on:hover{ background:var(--clay-soft); border-color:var(--clay); color:var(--clay-700); }

/* Footer actions */
.state-immersive .pc-foot{ display:flex; align-items:center; gap:4px; margin-top:14px; padding-top:13px; border-top:1px solid var(--line); }
.state-immersive .pc-act{ display:inline-flex; align-items:center; gap:6px; padding:6px 9px; font-size:13px; font-weight:700; color:var(--muted); background:transparent; border:0; border-radius:var(--r-md); cursor:pointer; text-decoration:none; transition:all .15s; }
.state-immersive .pc-act:hover{ background:var(--beige-2); color:var(--navy); }
.state-immersive .pc-act.liked{ color:var(--clay-700); }
.state-immersive .pc-act.liked i{ font-weight:900; }
.state-immersive .pc-act.saved{ color:var(--navy); }
.state-immersive .pc-act--share{ margin-left:auto; }

/* Hero variant (taller header, bigger title) */
.state-immersive .pc--hero .pc-head{ height:300px; }
.state-immersive .pc--hero .pc-mark{ font-size:64px; }
.state-immersive .pc--hero .pc-title{ font-size:26px; }
.state-immersive .pc--hero .pc-excerpt{ font-size:14.5px; }
/* Side variant (compact, image left optional) */
.state-immersive .pc--side .pc-head{ height:128px; }
.state-immersive .pc--side .pc-title{ font-size:17px; }

/* ── Sidebar widgets ── */
.state-immersive .comm-widget{ background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); overflow:hidden; }
.state-immersive .comm-widget-h{ font-size:12px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); padding:16px 18px 10px; }
.state-immersive .comm-wlist{ display:flex; flex-direction:column; padding:0 8px 10px; }
.state-immersive .comm-wlist a{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 12px; border-radius:var(--r-md); font-size:14px; font-weight:700; color:var(--ink-soft); }
.state-immersive .comm-wlist a:hover{ background:var(--beige); color:var(--navy); }
.state-immersive .comm-wlist a.on{ background:var(--navy); color:#fff; }
.state-immersive .comm-wlist a .ct{ font-size:12.5px; font-weight:800; color:var(--muted); }
.state-immersive .comm-wlist a:hover .ct{ color:var(--clay-700); }
.state-immersive .comm-wlist a.on .ct{ color:var(--gold); }

/* Popular this week (numbered) */
.state-immersive .comm-pop{ display:flex; flex-direction:column; padding:4px 8px 12px; }
.state-immersive .comm-pop a{ display:flex; gap:12px; padding:10px 12px; border-radius:var(--r-md); }
.state-immersive .comm-pop a:hover{ background:var(--beige); }
.state-immersive .comm-pop .rank{ flex:none; font-family:var(--serif); font-size:20px; font-weight:600; color:var(--clay); width:20px; line-height:1.2; }
.state-immersive .comm-pop .pt{ font-size:13.5px; font-weight:700; color:var(--navy); line-height:1.3; }
.state-immersive .comm-pop .pm{ font-size:11.5px; color:var(--muted); margin-top:3px; }

/* CTA widget cards */
.state-immersive .comm-cta{ padding:20px 18px; }
.state-immersive .comm-cta--gold{ background:var(--beige-2); }
.state-immersive .comm-cta--navy{ background:var(--navy); color:#fff; }
.state-immersive .comm-cta .ey{ font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--clay-700); }
.state-immersive .comm-cta--navy .ey{ color:var(--gold); }
.state-immersive .comm-cta h3{ font-family:var(--serif); font-size:20px; font-weight:600; line-height:1.15; margin-top:8px; color:var(--navy); }
.state-immersive .comm-cta--navy h3{ color:#fff; }
.state-immersive .comm-cta p{ font-size:13.5px; line-height:1.5; color:var(--ink-soft); margin-top:8px; }
.state-immersive .comm-cta--navy p{ color:var(--muted-navy); }
.state-immersive .comm-cta .tv-btn{ margin-top:14px; width:100%; justify-content:center; }

/* ── "Get it in your inbox" signup card (anonymous only) ── */
.state-immersive .comm-inbox{ background:var(--navy); color:#fff; padding:22px 20px; }
.state-immersive .comm-inbox-eyebrow{ font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); }
.state-immersive .comm-inbox-title{ font-family:var(--serif); font-size:23px; font-weight:600; color:#fff; margin-top:8px; line-height:1.12; }
.state-immersive .comm-inbox-lead{ font-size:13.5px; line-height:1.5; color:var(--muted-navy); margin-top:9px; }
.state-immersive .comm-inbox-feat{ display:flex; align-items:flex-start; gap:12px; margin-top:14px; padding:12px 14px; border-radius:var(--r-md); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); }
.state-immersive .comm-inbox-feat.is-on{ background:rgba(244,180,0,.12); border-color:rgba(244,180,0,.42); }
.state-immersive .comm-inbox-feat .ic{ flex:none; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.1); color:var(--gold); display:flex; align-items:center; justify-content:center; }
.state-immersive .comm-inbox-feat.is-on .ic{ background:var(--gold); color:var(--navy); }
.state-immersive .comm-inbox-feat .ic svg{ width:15px; height:15px; }
.state-immersive .comm-inbox-feat strong{ display:block; font-size:13.5px; font-weight:800; color:#fff; }
.state-immersive .comm-inbox-feat span{ display:block; font-size:12px; line-height:1.4; color:var(--muted-navy); margin-top:2px; }
.state-immersive .comm-inbox .tv-btn{ width:100%; justify-content:center; margin-top:16px; }
.state-immersive .comm-inbox-foot{ display:block; text-align:center; margin-top:12px; font-size:12.5px; color:var(--muted-navy); text-decoration:underline; }
.state-immersive .comm-inbox-foot:hover{ color:#fff; }

/* ── Empty state ── */
.state-immersive .comm-empty{ text-align:center; padding:64px 20px; }
.state-immersive .comm-empty .ic{ font-size:40px; color:var(--sage); }
.state-immersive .comm-empty h4{ font-family:var(--serif); font-size:23px; font-weight:600; color:var(--navy); margin-top:14px; }
.state-immersive .comm-empty p{ color:var(--ink-soft); margin-top:8px; }

/* ── Pagination ── */
.state-immersive .comm-pager{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:30px; flex-wrap:wrap; }
.state-immersive .comm-pager .note{ font-size:13.5px; color:var(--muted); }
.state-immersive .comm-pager .pages{ display:flex; gap:6px; }
.state-immersive .comm-pager .pages a, .state-immersive .comm-pager .pages span{ min-width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border-radius:var(--r-md); border:1px solid var(--line); background:var(--paper); font-size:14px; font-weight:700; color:var(--navy); }
.state-immersive .comm-pager .pages a:hover{ border-color:var(--navy); }
.state-immersive .comm-pager .pages .cur{ background:var(--navy); color:#fff; border-color:var(--navy); }
.state-immersive .comm-pager .pages .disabled{ color:var(--muted); opacity:.5; }

/* ── Owner CTA band ── */
.state-immersive .comm-ownercta{ background:var(--navy); color:#fff; }
.state-immersive .comm-ownercta-in{ max-width:var(--maxw); margin-inline:auto; padding:60px 28px; display:grid; grid-template-columns:1.2fr .8fr; gap:40px; align-items:center; }
.state-immersive .comm-ownercta .ey{ font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); }
.state-immersive .comm-ownercta h2{ font-family:var(--serif); font-weight:600; font-size:clamp(28px,3.6vw,46px); line-height:1.05; letter-spacing:-.02em; margin-top:14px; }
.state-immersive .comm-ownercta p{ font-size:16px; line-height:1.55; color:var(--muted-navy); margin-top:16px; max-width:48ch; }
.state-immersive .comm-ownercta .cta-side{ display:flex; gap:12px; justify-content:flex-end; flex-wrap:wrap; }

/* ── Responsive ── */
@media (max-width:980px){
  .state-immersive .comm-body{ grid-template-columns:1fr; }
  .state-immersive .comm-aside{ position:static; flex-direction:row; flex-wrap:wrap; }
  .state-immersive .comm-aside > *{ flex:1 1 280px; }
  .state-immersive .comm-ownercta-in{ grid-template-columns:1fr; gap:22px; }
  .state-immersive .comm-ownercta .cta-side{ justify-content:flex-start; }
}
@media (max-width:680px){
  .state-immersive .comm-featured{ grid-template-columns:1fr; }
  .state-immersive .comm-grid{ grid-template-columns:1fr; }
  .state-immersive .comm-search{ order:5; flex-basis:100%; }
}
