
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-muted: #f7f7f8;
  --surface-contrast: #111111;
  --line: #e6e6e8;
  --line-strong: #cfcfd4;
  --text: #111111;
  --muted: #666b75;
  --accent: #111111;
  --accent-strong: #000000;
  --accent-soft: #f2f2f3;
  --success: #07865f;
  --warning: #b97805;
  --danger: #c73939;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.05);
  --header-bg: rgba(255, 255, 255, 0.94);
  --field-bg: #ffffff;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #050505;
  --surface-strong: #090909;
  --surface-muted: #101010;
  --surface-contrast: #f8fafc;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --muted: #a6adbb;
  --accent: #d8b56f;
  --accent-strong: #f0d08a;
  --accent-soft: rgba(215, 173, 99, 0.13);
  --success: #5ee0a2;
  --warning: #ffd277;
  --danger: #ff8f8f;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(0, 0, 0, 0.88);
  --field-bg: #030303;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body { background: #000000; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  margin: 0 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

.site-topline {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topline-row,
.topline-meta,
.topline-links,
.nav-row,
.nav-links,
.utility-actions,
.meta-row,
.chips,
.stack,
.hero-actions,
.home-tag-cloud {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topline-row { justify-content: space-between; padding: 7px 0; }
.topline-meta span,
.topline-links a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}
.topline-meta span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 12px;
  background: var(--line);
  vertical-align: middle;
}

.nav-row { justify-content: space-between; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #075fc6 0%, #06111f 100%);
  box-shadow: none;
}
:root[data-theme="dark"] .brand-mark {
  color: #060606;
  background: linear-gradient(135deg, #f2d69d 0%, #a67b34 100%);
  box-shadow: none;
}
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; color: var(--accent); font-size: 1.18rem; font-weight: 800; }
.brand-copy span { display: block; color: var(--muted); font-size: 0.78rem; }

.nav-strip { border-top: 1px solid var(--line); background: var(--surface); }
.nav-links-primary { gap: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-links-primary::-webkit-scrollbar { display: none; }
.nav-link,
.menu-summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-link.active,
.nav-link:hover,
.menu-group[open] .menu-summary {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.menu-group { position: relative; }
.menu-summary { gap: 8px; list-style: none; cursor: pointer; }
.menu-summary::-webkit-details-marker { display: none; }
.menu-summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.menu-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 30;
}
.menu-link,
.drawer-link {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
}
.menu-link:hover,
.menu-link.active,
.drawer-link:hover,
.drawer-link.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.btn,
button,
input,
textarea,
select { font: inherit; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--surface-contrast); color: var(--surface); border-color: var(--surface-contrast); }
:root[data-theme="dark"] .btn-primary { color: #050505; background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
:root[data-theme="dark"] .btn-primary:hover { color: #050505; background: var(--accent-strong); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.btn-danger { color: var(--danger); background: rgba(199, 57, 57, 0.1); }

.main-flow { padding: 22px 0 60px; }
.hero { padding: 0 0 24px; }
.hero-panel,
.card,
.panel,
.aside-card,
.table-wrap,
.hero-card,
.metric,
.lead-story,
.topic-panel,
.feature-wide {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .hero-panel,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .aside-card,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .lead-story,
:root[data-theme="dark"] .topic-panel,
:root[data-theme="dark"] .feature-wide {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--surface);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 46px);
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset: auto -15% -35% auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 6px;
  background: var(--accent-soft);
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid,
.two-col,
.article-layout,
.footer-grid,
.dashboard-grid,
.stats-grid,
.profile-grid,
.lead-grid,
.section-columns,
.news-grid,
.feature-grid,
.market-grid,
.form-grid {
  display: grid;
  gap: 18px;
}
.hero-grid { grid-template-columns: 1.25fr 0.95fr; align-items: center; }
.lead-grid { grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr); align-items: start; }
.feature-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.article-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 22px; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid,
.dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: 1.1fr 0.9fr 0.8fr 0.8fr; }
.profile-grid { grid-template-columns: 0.75fr 1.25fr; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hero h1,
.lead-story h1 { font-size: clamp(1.85rem, 4.2vw, 3.2rem); max-width: 14ch; }
.article-meta h1 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); max-width: 19ch; }
.section-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.85rem); }
.hero-copy p,
.lede,
.page-intro p,
.lead-story p,
.headline-item p,
.topic-feature p,
.article-card p,
.card p {
  color: var(--muted);
  line-height: 1.62;
}

.section { margin-top: 24px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { position: relative; padding-left: 16px; }
.section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 6px;
  background: var(--accent);
}
.page-intro { margin-bottom: 22px; }
.page-intro h1 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }

.eyebrow,
.kicker,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kicker { margin-bottom: 12px; }
.tone-success { color: var(--success); }
.tone-warning { color: var(--warning); }
.tone-danger { color: var(--danger); }
.chip.tone-success,
.chip.tone-warning,
.chip.tone-danger { background: var(--surface-muted); }

.card,
.panel,
.aside-card,
.table-wrap,
.hero-card,
.metric,
.topic-panel { padding: 16px; }
.metric strong { display: block; margin-bottom: 4px; font-size: 1.45rem; letter-spacing: -0.02em; }
.metric span,
.muted,
.small,
.meta-row { color: var(--muted); }
.small { font-size: 0.9rem; }
.meta-row { gap: 14px; font-size: 0.9rem; }
.stack { align-items: stretch; }

.lead-story,
.article-card,
.feature-wide { overflow: hidden; padding: 0; }
.lead-story-image,
.article-card img,
.lead-image,
.topic-feature img {
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.lead-story-image { aspect-ratio: 16 / 9; }
.article-card img,
.lead-image,
.topic-feature img { aspect-ratio: 16 / 10; }
.lead-story-content,
.article-card-body,
.feature-wide .topic-feature { padding: 20px; }
.article-card { display: flex; flex-direction: column; min-height: 100%; }
.article-card-body { display: flex; flex-direction: column; min-height: 220px; }
.article-card h3 { font-size: 1.12rem; line-height: 1.35; }
.topic-feature h3 { font-size: 1.16rem; line-height: 1.35; }
.card-media { display: block; }
.lead-image { border-radius: var(--radius-md); border: 1px solid var(--line); margin-bottom: 18px; }

.article-body {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1.72;
}
.article-body h2 { margin-top: 2rem; font-size: 1.62rem; }
.article-body ul { padding-left: 1.15rem; color: var(--muted); }
.article-meta { margin-bottom: 20px; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--accent); }
.aside-card h3 { font-size: 1.14rem; }

.panel-head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 800;
}
.headline-item,
.text-feed-item,
.list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.headline-item:last-child,
.text-feed-item:last-child,
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.headline-item h3,
.text-feed-item h3 { font-size: 1.13rem; line-height: 1.38; margin-bottom: 6px; }
.list-clean,
.inline-list,
.home-sidebar { display: grid; gap: 14px; }
.market-tile {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.market-tile strong { display: block; margin-bottom: 4px; font-size: 1.1rem; }
.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.tag-link:hover { color: var(--accent); border-color: var(--line-strong); }

label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 900; }
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
textarea { min-height: 118px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select option { color: var(--text); background: var(--surface); }

.notice,
.helper {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.notice { background: var(--accent-soft); color: var(--accent-strong); }
.helper { background: var(--surface-muted); color: var(--muted); }

.table-wrap { overflow-x: auto; padding: 8px 14px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tbody tr:hover { background: var(--surface-muted); }
:root[data-theme="dark"] tbody tr:hover { background: rgba(255,255,255,0.035); }

.footer {
  margin-top: 44px;
  padding: 36px 0 54px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer h3 { font-size: 1.05rem; margin-bottom: 10px; }
.footer p,
.footer a { color: var(--muted); line-height: 1.75; }
.footer a:hover { color: var(--accent); }

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 120;
}
.toast {
  min-width: 260px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 11px 12px;
  color: var(--text);
  font-weight: 750;
}
.center { text-align: center; }
.empty,
.empty-state { padding: 42px 24px; text-align: center; color: var(--muted); }
.empty-state h3 { margin-bottom: 10px; color: var(--text); font-size: 1.45rem; }
.empty-state p { max-width: 640px; margin: 0 auto 16px; }

.mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 90;
}
.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}
.mobile-nav-link.active,
.mobile-nav-link:hover { background: var(--accent-soft); color: var(--accent-strong); }
.nav-icon { width: 20px; height: 20px; display: block; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 88;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 76vh;
  overflow: auto;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(102%);
  transition: transform 220ms ease;
  z-index: 89;
}
.mobile-drawer.is-open { transform: translateY(0); }
.drawer-handle { width: 54px; height: 5px; margin: 0 auto 16px; border-radius: 999px; background: var(--line-strong); }
.drawer-group { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }
.drawer-group summary { list-style: none; cursor: pointer; padding: 11px 12px; font-weight: 700; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-links { display: grid; gap: 6px; padding: 0 12px 12px; }


.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.status-pill.tone-success { color: var(--success); }
.status-pill.tone-warning { color: var(--warning); }
.status-pill.tone-danger { color: var(--danger); }
.status-pill.tone-neutral { color: var(--muted); }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.check-row input { width: auto; margin-top: 3px; }
.check-row a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.logo-preview {
  width: 68px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  padding: 6px;
}
.legal-document {
  display: grid;
  gap: 14px;
  max-width: 900px;
}
.legal-document .card h2 { font-size: 1.18rem; }
.legal-document .card ul { margin: 0; padding-left: 1.15rem; color: var(--muted); line-height: 1.62; }
.compact-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 1100px) {
  .hero-grid,
  .lead-grid,
  .feature-grid,
  .article-layout,
  .section-columns,
  .footer-grid,
  .stats-grid,
  .dashboard-grid,
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topline-row,
  .nav-row { flex-direction: column; align-items: stretch; }
  .utility-actions { justify-content: flex-start; }
  .news-grid,
  .section-columns,
  .form-grid { grid-template-columns: 1fr 1fr; }
  .menu-popover { position: static; min-width: 0; margin-bottom: 10px; box-shadow: none; }
  .nav-links-primary { flex-wrap: wrap; overflow: visible; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100%, calc(100% - 20px)); }
  .news-grid,
  .section-columns,
  .form-grid,
  .stats-grid,
  .dashboard-grid,
  .market-grid { grid-template-columns: 1fr; }
  .brand-copy strong { font-size: 1.24rem; }
  .article-meta h1,
  .lead-story h1,
  .hero h1 { max-width: 100%; }
  .btn { width: auto; }
  body { padding-bottom: 96px; }
  .site-topline,
  .nav-strip { display: none; }
  .utility-actions .btn:nth-child(n + 3) { display: none; }
  .mobile-bottom-nav { display: grid; }
}
/* Rich post composer and article media */
.form-helper,
.input-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.preview-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.preview-panel:empty { display: none; }
.preview-card,
.resource-card,
.social-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.preview-card strong,
.resource-card span,
.social-card strong { font-size: 0.9rem; }
.preview-card small,
.resource-card small,
.social-card small { color: var(--muted); overflow-wrap: anywhere; }
.article-resource-block { margin-top: 18px; }
.compact-head { margin-bottom: 12px; padding-bottom: 8px; }
.compact-head h2 { font-size: 1.2rem; }
.resource-grid,
.social-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.media-tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.media-tile figcaption,
.video-card p {
  margin: 0;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.86rem;
}
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.video-card iframe,
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}
.social-card {
  border-left: 3px solid var(--accent);
}
.platform-telegram { border-left-color: #229ed9; }
.platform-instagram { border-left-color: #d62976; }
.platform-facebook { border-left-color: #1877f2; }
.platform-likee { border-left-color: #ff2d55; }
.platform-youtube { border-left-color: #ff0033; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .resource-grid,
  .social-grid,
  .video-grid,
  .media-grid { grid-template-columns: 1fr; }
  .reader-actions .btn { flex: 1 1 140px; }
}

