/* /var/www/pharmacology.tips/assets/css/home-redesign.css
 * Phase-3 redesign: light editorial style (CeraVe-inspired) + thumbnail richness.
 *
 * Layout:  utility strip → sticky white header (brand, primary nav, large centered
 *          search, user pod) → page-head (date eyebrow + dynamic h1 + page-meta
 *          on right) → featured anchor banner → recently-added grid (real thumbs)
 *          → category sections (Pharmacy, Audio, Books, Entertainment, Tools).
 *
 * Typography:  Fraunces (self-hosted woff2 VF) for headings + Inter for body.
 * Palette:     Warm off-white background, navy header, gold accent, color-coded
 *              tag pills (audio=purple, audiobook/text=green, video=orange,
 *              tool=blue, chess=amber).
 * Light theme only. No dark-mode toggle. Selectors scoped to body.pharmacist-body.
 */

/* ── Self-hosted Fraunces (variable) ───────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/fraunces-vf.woff2') format('woff2-variations'),
       url('/assets/fonts/fraunces-vf.woff2') format('woff2');
}

/* ── Tokens ─────────────────────────────────────────────────────────── */
body.pharmacist-body {
  --ink:      #0B1220;
  --ink-2:    #2A3142;
  --muted:    #5B6275;          /* darker than CeraVe's #6B7385 for contrast */
  --muted-2:  #8A92A5;
  --line:     #E3E5EA;
  --line-2:   #D8DAE0;
  --bg:       #FAFAF7;
  --card:     #FFFFFF;
  --navy:     #0E2A47;
  --navy-2:   #163C66;
  --accent:   #C8A461;          /* warm gold */
  --accent-2: #8A6A2D;

  /* Category tag colors (used in tag pills + tile accent bars) */
  --tag-audio:    #4F3FB8;      --tag-audio-bg:    #ECE8FD;
  --tag-book:     #0F6E55;      --tag-book-bg:     #DBF1E8;
  --tag-video:    #9C4520;      --tag-video-bg:    #FBE6DA;
  --tag-pharma:   #1F567F;      --tag-pharma-bg:   #DCEAF5;
  --tag-chess:    #8A6A2D;      --tag-chess-bg:    #F4ECDA;
  --tag-tool:     #2A3142;      --tag-tool-bg:     #ECEEEA;
  --tag-other:    #5B6275;      --tag-other-bg:    #F2F3F0;

  --shadow-sm:  0 1px 2px rgba(11,18,32,.04), 0 1px 1px rgba(11,18,32,.03);
  --shadow-md:  0 8px 24px -10px rgba(11,18,32,.14), 0 2px 6px -2px rgba(11,18,32,.06);
  --shadow-lg:  0 26px 60px -22px rgba(11,18,32,.30), 0 8px 18px -8px rgba(11,18,32,.12);
}

/* ── Base ───────────────────────────────────────────────────────────── */
body.pharmacist-body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.pharmacist-body * { box-sizing: border-box; }
body.pharmacist-body a { color: inherit; text-decoration: none; }

/* ── Utility strip ──────────────────────────────────────────────────── */
.home-util {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  letter-spacing: .4px;
}
.home-util-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 7px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.home-util a {
  color: rgba(255,255,255,.78);
  transition: color .15s;
}
.home-util a:hover { color: #fff; }
.home-util-right { display: flex; align-items: center; gap: 14px; }
.home-util-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  display: inline-block;
}

/* ── Header ── slim, single brand color, centered search ───────────── */
.home-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.home-header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.home-brand {
  display: flex; align-items: center; gap: 12px;
}
.home-brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
  flex-shrink: 0;
}
.home-brand-mark svg { width: 17px; height: 17px; }
.home-brand-name {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 600;
  font-size: 21px; letter-spacing: -.5px; line-height: 1;
  color: var(--ink);
}
.home-brand-sub {
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; font-weight: 500;
}

/* Impfung shortcut — sits right next to the brand and is always visible. */
.home-shortcut-group {
  display: flex; align-items: center; gap: 8px;
}
.home-impfung-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  background: #15803D;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.home-impfung-pill:hover {
  background: #166534;
  transform: translateY(-1px);
}
.home-impfung-pill svg { width: 17px; height: 17px; }
/* Mobile: hide labels, keep icons */
@media (max-width: 700px) {
  .home-impfung-pill { padding: 7px 10px; }
  .home-impfung-label { display: none; }
}

.home-nav-primary {
  display: flex; align-items: center; gap: 2px;
}
.home-nav-primary a {
  color: var(--ink-2);
  font-size: 13.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 7px;
  position: relative;
  transition: background .15s, color .15s;
}
.home-nav-primary a:hover { background: #F1F2EF; color: var(--ink); }
.home-nav-primary a.active { color: var(--ink); font-weight: 600; }
.home-nav-primary a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: -16px;
  height: 2px;
  background: var(--ink);
}

/* Large centered search bar */
.home-search-wrap {
  display: flex; justify-content: center;
}
.home-search {
  width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  background: #F2F3F0;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: all .18s;
}
.home-search:hover {
  background: #ECEEEA;
  border-color: var(--line);
}
.home-search:focus-within {
  background: #fff;
  border-color: var(--ink-2);
  box-shadow: 0 6px 14px -4px rgba(11,18,32,.10);
}
.home-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.home-search input {
  border: none; outline: none; background: transparent;
  flex: 1;
  font-family: inherit; font-size: 13.5px; color: var(--ink);
}
.home-search input::placeholder { color: var(--muted); }
.home-search kbd {
  margin-left: auto;
  font-family: 'Inter', sans-serif; font-size: 10.5px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; color: var(--ink-2);
}

.home-user-pod {
  display: flex; align-items: center; gap: 6px;
}
.home-icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}
.home-icon-btn:hover { background: #F1F2EF; }
.home-icon-btn svg, .home-icon-btn i { width: 17px; height: 17px; font-size: 16px; }
.home-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; margin-right: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.home-user-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  line-height: 1.1;
}
.home-user-role {
  font-size: 9px; letter-spacing: 1.4px; color: var(--muted);
  text-transform: uppercase; font-weight: 600;
}
.home-user-meta { display: flex; flex-direction: column; }
.home-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: #2563EB; color: #fff;
  border-radius: 8px; border: none;
  font-size: 14px; font-weight: 600; letter-spacing: .2px;
  text-decoration: none;
  transition: background .15s, transform .12s;
  white-space: nowrap;
  line-height: 1;
}
.home-btn-ghost:hover { background: #1D4ED8; color: #fff; transform: translateY(-1px); }
.home-btn-ghost svg { width: 17px; height: 17px; }

/* ── Synthesized poster covers (.pst) ───────────────────────────────── */
.pst {
  width: 100%; height: 100%;
  min-height: inherit;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.pst-pad {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 20px;
  gap: 8px;
}
.pst-title {
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.pst-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .7;
}
.pst-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.pst-rule { height: 1px; width: 100%; }
.pst-year { font-size: 11px; letter-spacing: 1.5px; opacity: .6; text-transform: uppercase; }
.pst-year-tag { font-size: 11px; letter-spacing: 1.5px; opacity: .75; text-transform: uppercase; }
.pst-bar { height: 3px; width: 40px; border-radius: 2px; margin-top: 8px; }
.pst-dot { width: 8px; height: 8px; border-radius: 50%; }
.pst-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.pst-footer { display: flex; justify-content: space-between; font-size: 11px; opacity: .65; }
/* layout-bignumeral: huge year watermark behind content */
.pst-bg-year {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; pointer-events: none;
}
.pst-bg-year span {
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 900; opacity: .12; line-height: 1;
  white-space: nowrap;
}
/* layout-stripes: diagonal stripe background */
.pst-stripes {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; gap: 0; overflow: hidden;
}
.pst-stripes > div { flex: 1; opacity: .06; }
.pst-band { padding: 10px 14px; border-radius: 4px; }
/* layout-stacked: big word stack */
.pst-words {
  display: flex; flex-direction: column; gap: 2px;
  font-size: clamp(18px, 3vw, 28px); font-weight: 900; line-height: 1.1;
  text-transform: uppercase; letter-spacing: -.5px;
}
.pst-words .italic { font-style: italic; }
/* small thumbnail context — scale text down */
.home-recent-thumb-wrap .pst-pad { padding: 6px 8px; }
.home-recent-thumb-wrap .pst-title { font-size: 9px; -webkit-line-clamp: 3; }
/* Stacked layout uses .pst-words (giant uppercase) — without this rule it
   stays at 18–28px and overflows tiny thumbs as "WIL / SHA / MAC". */
.home-recent-thumb-wrap .pst-words {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  -webkit-line-clamp: 4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-recent-thumb-wrap .pst-words.has-many { font-size: 7px; }
.home-recent-thumb-wrap .pst-head,
.home-recent-thumb-wrap .pst-year,
.home-recent-thumb-wrap .pst-year-tag,
.home-recent-thumb-wrap .pst-footer,
.home-recent-thumb-wrap .pst-bar,
.home-recent-thumb-wrap .pst-dot,
.home-recent-thumb-wrap .pst-bg-year { display: none; }

/* list-card thumbnail context — same idea, less aggressive (cards are
   ~280px wide vs the carousel's ~140px). Without this, .pst-title at
   18px swamps small cards (e.g. "William Shakespeare: Macbeth"). */
.article-list-card .thumb .pst-pad { padding: 10px 12px; gap: 6px; }
.article-list-card .thumb .pst-title { font-size: 12px; -webkit-line-clamp: 3; }
.article-list-card .thumb .pst-words { font-size: 14px; }
.article-list-card .thumb .pst-bg-year span { font-size: 56px; }
.article-list-card .thumb .pst-head,
.article-list-card .thumb .pst-year-tag,
.article-list-card .thumb .pst-footer { font-size: 9px; }

/* layout-article-hero — used on the single-article view page when no
   image. Same palette as the synthesized covers but includes an excerpt
   of the article body so the hero box has something to read instead of
   a tiny center dot. */
.pst.layout-article-hero .pst-pad {
  justify-content: flex-start;
  gap: 14px;
  padding: 28px 32px;
}
.pst.layout-article-hero .pst-hero-title {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -.5px;
  text-wrap: balance;
  margin-top: 4px;
}
.pst.layout-article-hero .pst-bar {
  height: 3px; width: 56px; border-radius: 2px;
}
.pst.layout-article-hero .pst-hero-dek {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: .9;
  max-width: 560px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pst.layout-article-hero .pst-footer {
  font-size: 11px; opacity: .65;
  letter-spacing: .5px; text-transform: uppercase;
}

/* ── Page container ─────────────────────────────────────────────────── */
.home-page {
  max-width: 1280px; margin: 0 auto;
  padding: 36px 28px 72px;
}

/* ── Page head ── editorial eyebrow + serif title + right-aligned meta ─ */
.home-page-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  gap: 18px;
}
.home-eyebrow {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-bottom: 10px;
}
.home-page-title {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05; letter-spacing: -1px;
  color: var(--ink);
  margin: 0; max-width: 720px;
}
.home-page-title em {
  font-style: italic; font-weight: 500;
  color: var(--navy-2);
}
.home-page-meta {
  text-align: right;
  font-size: 12.5px; color: var(--muted);
  line-height: 1.4;
}
.home-page-meta strong {
  color: var(--ink); font-weight: 600; font-size: 14.5px;
  display: block; margin-bottom: 2px;
}

/* ── Featured banner (single, large, magazine-style) ─────────────────── */
.home-featured-textcard {
  width: 100%; height: 100%;
  min-height: 280px;
  display: flex; align-items: stretch;
}
.home-featured-textcard-inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 32px;
  gap: 16px;
}
.home-featured-textcard-label {
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 700;
}
.home-featured-textcard-rule {
  height: 2px; width: 36px; border-radius: 2px; opacity: .7;
}
.home-featured-textcard-text {
  font-size: 15px; line-height: 1.7;
  opacity: .88;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-featured-textcard-foot {
  font-size: 11.5px; letter-spacing: .5px; opacity: .55;
  text-transform: uppercase; font-weight: 500;
}

.home-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
}
/* legacy alias — older home.php variants used .home-featured-img */
.home-featured-img,
.home-featured-media {
  position: relative;
  width: 100%; height: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.home-featured-img img,
.home-featured-media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-featured-video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
  /* Fill the whole left panel, even if aspect ratios disagree */
  object-fit: contain;
}
.home-featured-audio-wrap {
  width: 100%; height: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: flex-end; justify-content: stretch;
  padding: 18px;
}
.home-featured-audio-wrap .home-featured-audio {
  width: 100%;
  background: rgba(0,0,0,.6);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.home-featured-body {
  padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.home-featured-eyebrow {
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700;
  margin-bottom: 14px;
}
.home-featured-title {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1; letter-spacing: -.5px;
  color: var(--ink);
  margin: 0 0 12px 0;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-featured-sub {
  font-size: 14px; color: var(--muted);
  margin: 0 0 22px 0; line-height: 1.45;
}
.home-featured-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy);
  color: #fff !important;
  font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.home-featured-cta:hover {
  background: var(--navy-2);
  transform: translateX(2px);
}
.home-featured-cta svg { width: 14px; height: 14px; }
@media (max-width: 800px) {
  .home-featured { grid-template-columns: 1fr; }
  .home-featured-img,
  .home-featured-media,
  .home-featured-audio-wrap { min-height: 200px; aspect-ratio: 16/9; }
  .home-featured-body { padding: 24px 24px; }
}

/* ── Section row ────────────────────────────────────────────────────── */
.home-row { margin-bottom: 56px; }
.home-row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.home-row-title {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  font-size: 26px; letter-spacing: -.5px;
  margin: 0; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.home-row-title .home-row-count {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px; letter-spacing: .4px;
  color: var(--muted); font-weight: 500;
  padding: 3px 8px; background: #F1F2EF; border-radius: 999px;
}
.home-row-actions {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: color .15s;
}
.home-row-actions:hover { color: var(--ink); }
.home-row-actions svg { width: 14px; height: 14px; }

/* ── Recently added (52px + real thumb + meta + tag pill) ───────────── */
.home-recent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.home-recent-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px;
  display: grid; grid-template-columns: 56px 1fr; gap: 13px;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.home-recent-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.home-recent-thumb-wrap {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--tag-bg, #F1F2EF);
  display: flex; align-items: center; justify-content: center;
}
.home-recent-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-recent-thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--tag-color, var(--muted));
  font-size: 22px;
  opacity: .5;
  pointer-events: none;
}
.home-recent-body { min-width: 0; }
.home-recent-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.home-recent-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  flex-wrap: wrap;
}
.home-recent-meta-dot {
  width: 3px; height: 3px; background: var(--muted);
  border-radius: 50%; opacity: .7;
}
.home-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  display: inline-block;
}
.home-tag-audio  { background: var(--tag-audio-bg);  color: var(--tag-audio); }
.home-tag-book   { background: var(--tag-book-bg);   color: var(--tag-book); }
.home-tag-video  { background: var(--tag-video-bg);  color: var(--tag-video); }
.home-tag-pharma { background: var(--tag-pharma-bg); color: var(--tag-pharma); }
.home-tag-chess  { background: var(--tag-chess-bg);  color: var(--tag-chess); }
.home-tag-tool   { background: var(--tag-tool-bg);   color: var(--tag-tool); }
.home-tag-other  { background: var(--tag-other-bg);  color: var(--tag-other); }

/* ── Category cards (larger, with arrow CTA) ──────────────────────── */
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.home-cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px;
}
.home-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.home-cat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #F2F4F0; color: var(--navy-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.home-cat-icon i { font-size: 20px; }
.home-cat-title {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  font-size: 21px; letter-spacing: -.4px;
  margin: 0 0 6px 0; color: var(--ink);
}
.home-cat-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  margin: 0; max-width: 32ch;
}
.home-cat-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
}
.home-cat-count {
  font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.home-cat-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s, background .18s;
  flex-shrink: 0;
}
.home-cat-arrow svg { width: 13px; height: 13px; }
.home-cat:hover .home-cat-arrow { transform: translateX(3px); background: var(--navy-2); }

/* Hero variant — first card per row gets the deep navy wash */
.home-cat.is-hero {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.home-cat.is-hero .home-cat-icon { background: rgba(255,255,255,.10); color: #fff; }
.home-cat.is-hero .home-cat-title { color: #fff; }
.home-cat.is-hero .home-cat-desc { color: rgba(255,255,255,.72); }
.home-cat.is-hero .home-cat-count { color: rgba(255,255,255,.55); }
.home-cat.is-hero .home-cat-arrow {
  background: var(--accent); color: var(--navy);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.home-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 16px;
  font-size: 12px; color: var(--muted);
}
.home-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.home-footer-links { display: flex; gap: 18px; }
.home-footer a { color: inherit; transition: color .15s; }
.home-footer a:hover { color: var(--ink); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .home-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
  .home-nav-primary { display: none; }
}
@media (max-width: 700px) {
  .home-util { display: none; }
  .home-header-inner { padding: 12px 18px; }
  .home-brand-name { font-size: 18px; }
  .home-brand-sub { display: none; }
  .home-search { max-width: none; }
  .home-search kbd { display: none; }
  .home-user-meta { display: none; }
  .home-icon-btn { display: none; }
  .home-page { padding: 26px 18px 56px; }
  .home-page-head { grid-template-columns: 1fr; }
  .home-page-meta { text-align: left; }
  .home-page-title { font-size: 24px; }
  .home-row { margin-bottom: 40px; }
  .home-row-title { font-size: 20px; }
  .home-recent { grid-template-columns: 1fr; }
}

/* Hidden-state used by category-chip filter (legacy, kept for compat) */
.home-row.is-hidden { display: none; }
