:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-hover: #1e222b;
  --border: #262b35;
  --text: #eef0f3;
  --text-dim: #9aa2b1;
  --text-faint: #6b7280;
  --accent: #5B8DEF;
  --header-h: 56px;
  --filters-h: 52px;
  --row-h: 128px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* ---------- header ---------- */
.topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.brand-count {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------- filters ---------- */
.filters {
  height: var(--filters-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  scrollbar-width: none;
  contain: paint;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { background: var(--surface-hover); color: var(--text); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.chip-icon {
  min-width: 18px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0,0,0,.6);
}
.chip-icon-image {
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid rgba(199, 165, 103, .62);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,.55);
}
.chip .count { opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- virtual list ---------- */
#feedView { height: calc(100vh - var(--header-h) - var(--filters-h)); }
.viewport {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.spacer { position: relative; width: 100%; }
.list { position: relative; }

.card {
  position: absolute;
  left: 0; right: 0;
  height: var(--row-h);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: inherit;
  border-left: none; border-right: none; border-top: none;
  font: inherit;
}
.card:hover { background: var(--surface-hover); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.thumb {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-hover);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 26px;
}

.card-body { min-width: 0; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.card-meta .cat-label { color: var(--text-dim); }
.card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- detail view ---------- */
.detail {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow-y: auto;
  z-index: 20;
}
.detail-inner { max-width: 720px; margin: 0 auto; padding: 16px 20px 64px; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 12px;
}
.back-btn:hover { color: var(--text); }
.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.detail h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.detail-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.detail-meta { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.detail-hero {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 20px;
}
.detail-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}
.detail-body strong { color: #fff; font-weight: 700; }

/* text size: subheadings within the body */
.body-heading { color: var(--text); margin: 28px 0 12px; line-height: 1.3; }
.body-heading-2 { font-size: 21px; font-weight: 700; }
.body-heading-3 { font-size: 17px; font-weight: 700; color: var(--text-dim); }

/* inline images within the body */
.body-image { margin: 20px 0; }
.body-image img { width: 100%; border-radius: 10px; display: block; }
.body-image figcaption { font-size: 13px; color: var(--text-faint); margin-top: 8px; font-style: italic; }

/* code blocks with copy button */
.code-block {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #10131a;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.code-lang {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); }
.copy-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-btn.copied { color: #4ADE80; border-color: #4ADE80; }
.code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
}
.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d6dde8;
  white-space: pre;
}

/* flow charts */
.flowchart {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  --flow-line: #4a5265;
  --flow-edge-label: var(--text-faint);
  --flow-node: #1e222b;
  --flow-node-border: #333a48;
  --flow-node-text: var(--text);
}
.flowchart figcaption {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.flowchart svg { display: block; margin: 0 auto; max-width: 100%; }
.sources {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.sources h2 { font-size: 14px; color: var(--text-dim); margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 8px; font-size: 14px; }
.sources a { color: var(--accent); text-decoration: none; }
.sources a:hover { text-decoration: underline; }
.id-tag { color: var(--text-faint); font-size: 12px; margin-left: 8px; }

@media (max-width: 560px) {
  :root { --row-h: 112px; }
  .thumb { width: 76px; height: 76px; }
  .detail-inner { padding: 12px 16px 48px; }
  .detail h1 { font-size: 22px; }
}

/* ---------- editorial PostCard skin ---------- */
:root {
  --bg: #08110d;
  --surface: #0d1813;
  --surface-hover: #12231b;
  --border: rgba(184, 149, 75, .48);
  --text: #f3ead2;
  --text-dim: #b9bca5;
  --text-faint: #879181;
  --accent: #c6a153;
  --ember: #d9823b;
  --header-h: 68px;
  --filters-h: 64px;
  --row-h: 286px;
}

body {
  background:
    radial-gradient(circle at 82% -10%, rgba(82, 116, 64, .18), transparent 35%),
    linear-gradient(145deg, #050a08, var(--bg) 48%, #07130d);
}

.topbar {
  padding-inline: max(24px, calc((100vw - 1040px) / 2));
  border-color: rgba(184, 149, 75, .34);
  background: rgba(5, 12, 9, .92);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
}
.brand { gap: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.brand-count { color: #a98d52; letter-spacing: .02em; }

.filters {
  padding-inline: max(24px, calc((100vw - 1040px) / 2));
  gap: 10px;
  border-color: rgba(184, 149, 75, .2);
  background: rgba(8, 17, 13, .96);
}
.chip {
  min-height: 38px;
  padding: 8px 15px;
  border-color: rgba(184, 149, 75, .42);
  background: rgba(13, 24, 19, .86);
  color: var(--text-dim);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.chip:hover { background: #17291f; border-color: var(--accent); }
.chip.active {
  border-color: var(--accent);
  background: rgba(184, 149, 75, .15);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 83, .16);
}
.chip:focus-visible { outline: 3px solid #f0c66e; outline-offset: 2px; }

.viewport { padding-top: 18px; scrollbar-color: #6d5b31 #07100c; }

.ad-rail {
  position: fixed;
  z-index: 3;
  top: calc(var(--header-h) + var(--filters-h) + 18px);
  width: 160px;
  color: var(--text-faint);
  text-align: center;
}
.ad-rail[hidden] { display: none; }
.ad-close-countdown,
.ad-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 8px;
}
.ad-close-countdown {
  padding: 4px 7px;
  border: 1px solid rgba(199, 165, 103, .28);
  border-radius: 999px;
  background: rgba(9, 12, 7, .82);
  color: #b9a276;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.ad-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px ridge var(--antique-gold-dim);
  border-radius: 50%;
  background: radial-gradient(circle, #3b2b16, #151008 72%);
  color: #ead5a5;
  font: 22px/1 Georgia, serif;
  cursor: pointer;
  box-shadow: 0 3px 7px rgba(0,0,0,.65);
}
.ad-close:hover { color: #fff1c5; border-color: var(--antique-gold); }
.ad-close:focus-visible { outline: 3px solid #f0c66e; outline-offset: 2px; }
.ad-rail-left { left: max(16px, calc((100vw - 1384px) / 2)); }
.ad-rail-right { right: max(16px, calc((100vw - 1384px) / 2)); }
.ad-label {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ad-slot {
  position: relative;
  height: min(600px, calc(100vh - var(--header-h) - var(--filters-h) - 64px));
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(184, 149, 75, .32);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(198, 161, 83, .13), transparent 25%),
    linear-gradient(180deg, rgba(16, 32, 25, .94), rgba(7, 15, 11, .96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.ad-slot::before,
.ad-slot::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 83, .58), transparent);
}
.ad-slot::before { top: 18px; }
.ad-slot::after { bottom: 18px; }
.ad-ornament { color: var(--accent); font-size: 22px; }
.ad-slot strong {
  color: var(--text-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}
.ad-slot small { color: var(--text-faint); font-size: 10px; letter-spacing: .08em; }

@media (min-width: 1180px) and (max-width: 1419px) {
  .card { width: calc(100% - 376px); }
  .ad-rail { width: 136px; }
  .ad-rail-left { left: 16px; }
  .ad-rail-right { right: 16px; }
}

@media (max-width: 1179px) {
  .ad-rail { display: none; }
}

.card {
  left: 50%;
  right: auto;
  width: min(1024px, calc(100% - 48px));
  height: calc(var(--row-h) - 12px);
  transform: translateX(-50%);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(110deg, #0d1913, #09120e);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: rgba(222, 179, 87, .8);
  background: var(--surface-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .34), 0 0 0 1px rgba(198, 161, 83, .12);
}
.card:focus-visible { outline: 3px solid #f0c66e; outline-offset: 3px; }
.thumb {
  position: relative;
  width: 40%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(135deg, #203a2b, #0c1711 56%, #6e5224);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(6, 13, 10, .46));
  pointer-events: none;
}
.thumb.fallback {
  background:
    radial-gradient(circle at 30% 32%, rgba(224, 164, 65, .58) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 48%, rgba(163, 192, 117, .22), transparent 28%),
    linear-gradient(145deg, #294433, #0b1811 62%, #755426);
  color: rgba(243, 234, 210, .82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  text-shadow: 0 3px 18px #000;
}
.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px 22px;
}
.card-meta { justify-content: space-between; margin-bottom: 14px; }
.cat-label {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--category-color), transparent 58%);
  border-radius: 5px;
  background: color-mix(in srgb, var(--category-color), transparent 86%);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.freshness { color: var(--text-faint); }
.card-title {
  margin-bottom: 9px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 500;
  line-height: 1.15;
}
.card-subtitle {
  max-width: 58ch;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-dates {
  display: flex;
  gap: 0;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(184, 149, 75, .32);
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.card-dates > span { display: grid; gap: 3px; padding-right: 22px; }
.card-dates > span + span { padding-left: 22px; border-left: 1px solid rgba(184, 149, 75, .42); }
.card-dates small { color: var(--accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.detail { background: var(--bg); }
.detail-inner { max-width: 780px; }
.detail h1 { font-family: Georgia, "Times New Roman", serif; color: var(--text); }
.detail-meta { display: flex; gap: 28px; margin: 0 0 18px; }
.detail-meta span { display: grid; gap: 3px; }
.detail-meta strong { color: var(--accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.detail-meta time { color: var(--text-dim); }

@media (max-width: 700px) {
  :root { --header-h: 62px; --filters-h: 66px; --row-h: 458px; }
  .topbar { padding-inline: 14px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-count { font-size: 11px; }
  .filters { padding-inline: 12px; gap: 8px; }
  .chip { min-height: 44px; padding: 9px 12px; }
  .chip .count { display: none; }
  .chip:has(.chip-icon),
  .chip:has(.chip-icon-image) { width: 46px; justify-content: center; padding-inline: 0; }
  .chip:has(.chip-icon) .chip-label,
  .chip:has(.chip-icon-image) .chip-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .chip-icon { font-size: 21px; }
  .chip-icon-image { width: 28px; height: 28px; }
  .viewport { padding-top: 12px; }
  .card {
    width: calc(100% - 24px);
    height: calc(var(--row-h) - 10px);
    flex-direction: column;
    border-radius: 13px;
  }
  .thumb { width: 100%; height: 48%; }
  .thumb::after { background: linear-gradient(180deg, transparent 55%, rgba(6, 13, 10, .64)); }
  .thumb.fallback { font-size: 48px; }
  .card-body { flex: 1; padding: 16px 18px 15px; }
  .card-meta { margin-bottom: 9px; }
  .freshness { display: none; }
  .card-title { margin-bottom: 7px; font-size: clamp(20px, 6vw, 25px); }
  .card-subtitle { font-size: 13px; line-height: 1.4; -webkit-line-clamp: 2; }
  .card-dates { padding-top: 11px; font-size: 12px; }
  .card-dates > span { flex: 1; padding-right: 12px; }
  .card-dates > span + span { padding-left: 12px; }
  .detail-inner { padding: 14px 16px 48px; }
  .detail h1 { font-size: 25px; }
}

@media (max-width: 380px) {
  .brand-count { max-width: 72px; text-align: right; }
  .card-body { padding-inline: 15px; }
  .card-dates { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ---------- carved woodland visual refinement ---------- */
:root {
  --wood-dark: #160f08;
  --wood-mid: #2b1c0f;
  --wood-light: #4a3119;
  --moss-panel: #131a0f;
  --moss-edge: #536126;
  --antique-gold: #c7a567;
  --antique-gold-dim: #846431;
}

body {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(80, 100, 39, .18), transparent 28%),
    radial-gradient(ellipse at 88% 76%, rgba(60, 82, 32, .14), transparent 30%),
    repeating-linear-gradient(92deg, transparent 0 24px, rgba(255, 222, 153, .018) 25px 26px),
    linear-gradient(160deg, #080a06, #0e0d08 52%, #070905);
}

.topbar {
  border-bottom: 3px double rgba(199, 165, 103, .46);
  background:
    linear-gradient(180deg, rgba(255, 224, 160, .045), transparent 24%),
    repeating-linear-gradient(4deg, rgba(255,255,255,.018) 0 1px, transparent 2px 8px),
    linear-gradient(90deg, #1a1008, #2a1b0e 48%, #160e07);
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, .45), 0 7px 18px rgba(0, 0, 0, .5);
}
.brand { color: #ead5a5; text-shadow: 0 2px 2px #000; }
.brand-mark {
  border: 2px ridge var(--antique-gold-dim);
  background: radial-gradient(circle, #35401e, #111609 68%);
  box-shadow: inset 0 0 9px rgba(199, 165, 103, .32), 0 2px 5px #000;
  color: #ead5a5;
}
.brand-count {
  padding: 8px 15px;
  border: 1px solid rgba(199, 165, 103, .32);
  border-radius: 999px;
  background: rgba(18, 18, 10, .55);
  color: #d2b980;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .45);
}

.filters {
  border-bottom: 4px ridge rgba(92, 62, 29, .8);
  background:
    repeating-linear-gradient(1deg, rgba(255,255,255,.02) 0 1px, transparent 2px 7px),
    linear-gradient(180deg, #392515, #25170c 56%, #160e08);
  box-shadow: inset 0 7px 15px rgba(0,0,0,.35), 0 8px 16px rgba(0,0,0,.4);
}
.chip {
  border: 1px solid rgba(172, 136, 72, .42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(54, 43, 23, .9), rgba(25, 22, 12, .94));
  box-shadow: inset 0 1px rgba(255, 230, 170, .07), 0 2px 5px rgba(0,0,0,.45);
  color: #d8c49a;
  font-family: Georgia, "Times New Roman", serif;
}
.chip:hover { background: linear-gradient(180deg, #3c4720, #1b210f); }
.chip.active {
  border-color: #75823d;
  background: linear-gradient(180deg, #53612a, #263314 74%);
  box-shadow: inset 0 0 13px rgba(205, 183, 99, .18), 0 0 9px rgba(91, 111, 45, .3);
}

.viewport {
  background:
    linear-gradient(90deg, rgba(31, 20, 10, .7), transparent 17%, transparent 83%, rgba(31, 20, 10, .7)),
    transparent;
}
.card {
  overflow: visible;
  border: 3px ridge rgba(103, 76, 35, .82);
  border-radius: 10px;
  background:
    radial-gradient(circle at 80% 20%, rgba(82, 101, 42, .10), transparent 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 2px 5px),
    linear-gradient(110deg, #192012, #10150d 72%);
  box-shadow:
    inset 0 0 0 1px rgba(195, 155, 80, .18),
    inset 0 0 24px rgba(0,0,0,.65),
    0 6px 12px rgba(0,0,0,.62);
}
.card::before {
  content: "✦";
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px ridge var(--antique-gold-dim);
  border-radius: 50%;
  background: radial-gradient(circle, #302414, #100d08 72%);
  color: #f0d9a4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-shadow: 0 2px 2px #000;
  box-shadow: 0 3px 7px rgba(0,0,0,.7);
}
.card::after {
  content: "❧";
  position: absolute;
  right: 16px;
  bottom: 8px;
  color: rgba(119, 137, 57, .62);
  font-size: 22px;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(151, 121, 59, .92);
  background: linear-gradient(110deg, #202818, #12180f 72%);
  box-shadow: inset 0 0 24px rgba(0,0,0,.55), 0 9px 18px rgba(0,0,0,.72);
}
.thumb {
  border-right: 3px ridge rgba(92, 69, 32, .76);
  border-radius: 7px 0 0 7px;
  filter: sepia(.12) saturate(.9) contrast(1.04);
  box-shadow: inset -12px 0 18px rgba(0,0,0,.3);
}
.thumb.fallback {
  background:
    radial-gradient(circle at 32% 26%, rgba(220, 164, 69, .32) 0 2px, transparent 3px),
    radial-gradient(ellipse at 46% 62%, rgba(101, 131, 58, .38), transparent 26%),
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(173, 144, 73, .04) 19px 20px),
    linear-gradient(145deg, #344323, #11180e 62%, #60451f);
  color: #e3c990;
}
.card-body { padding-inline: 32px 38px; }
.cat-label {
  border-color: rgba(111, 131, 50, .7);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(77, 93, 33, .52), rgba(29, 39, 13, .72));
  color: #d9d17d;
  box-shadow: inset 0 0 8px rgba(0,0,0,.38);
}
.freshness { color: #af9665; }
.card-title { color: #ead4a6; text-shadow: 0 2px 2px rgba(0,0,0,.7); }
.card-subtitle { color: #c9b991; }
.card-dates { border-color: rgba(111, 131, 50, .42); }
.card-dates small { color: #b7a75a; }
.card-dates time { color: #d5c39a; }

.ad-slot {
  border: 4px ridge rgba(103, 75, 34, .78);
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 50% 23%, rgba(81, 107, 49, .36), transparent 24%),
    repeating-linear-gradient(3deg, rgba(255,255,255,.015) 0 1px, transparent 2px 7px),
    linear-gradient(180deg, #182013, #0c100a 55%, #24170c);
  box-shadow: inset 0 0 24px rgba(0,0,0,.66), 0 7px 14px rgba(0,0,0,.62);
}
.ad-slot::before,
.ad-slot::after { background: linear-gradient(90deg, transparent, var(--antique-gold-dim), transparent); }
.ad-label { color: #a88b54; }
.ad-ornament { color: #8d9b44; }
.ad-slot strong { color: #d7bd82; text-shadow: 0 2px 2px #000; }

.detail-inner {
  margin-top: 18px;
  border-inline: 1px solid rgba(118, 85, 39, .48);
  background: linear-gradient(90deg, rgba(43,28,14,.28), rgba(17,22,13,.66), rgba(43,28,14,.28));
}

@media (max-width: 700px) {
  .topbar { border-bottom-width: 2px; }
  .filters { border-bottom-width: 3px; }
  .card { border-width: 2px; }
  .card::before { top: 8px; left: 8px; width: 30px; height: 30px; font-size: 16px; }
  .card::after { right: 10px; bottom: 5px; font-size: 18px; }
  .thumb { border-right: 0; border-bottom: 3px ridge rgba(92, 69, 32, .76); border-radius: 7px 7px 0 0; }
  .card-body { padding-inline: 18px; }
}

@media (min-width: 1180px) and (max-width: 1419px) {
  .card { width: calc(100% - 376px); }
}
