/* Yieldvyn — financial news, dark mobile-first */
:root {
  --surface: #1a1a1a;
  --text: #ffffff;
  --muted: #a0a0a0;
  --line: #2a2a2a;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.18);
  --green: #34d399;
  --purple: #a78bfa;
  --coral: #fb7185;
  --orange: #fbbf24;
  --header-h: 52px;
  --nav-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --max: 720px;
  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.header-back, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
}
.header-back:hover, .icon-btn:hover { background: var(--accent); color: var(--blue); }
.brand {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.header-actions { display: flex; align-items: center; gap: 2px; }

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.brand-icon {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.brand-icon img { display: block; width: 28px; height: 28px; }
.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom nav — screenshot style */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.is-active,
.bottom-nav a:hover { color: var(--blue); }

/* Menu page nav */
.menu-page-nav ul { display: flex; flex-direction: column; gap: 6px; }
.menu-page-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}
.menu-page-nav a:hover { border-color: var(--blue); color: var(--blue); }
.search-box__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
}

/* Main shell */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 14px 28px;
}

/* Featured hero — text focus like screenshot */
.feature-hero {
  display: block;
  padding: 8px 2px 20px;
  margin-bottom: 8px;
  position: relative;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 12px;
}
.feature-hero h1 {
  font-size: clamp(20px, 5.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #fff;
}
.feature-hero .feature-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.feature-hero .feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-bar {
  height: 3px;
  width: 100%;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 38%, #2a2a2a 38%, #2a2a2a 100%);
}

/* Pills / tags */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  width: fit-content;
}
.tag-blue { background: var(--blue); color: #fff; }
.tag-orange { background: #d97706; color: #fff; }
.tag-purple { background: #7c3aed; color: #fff; }
.tag-green { background: #059669; color: #fff; }
.tag-coral { background: #e11d48; color: #fff; }

/* Home category chips */
.home-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-cats::-webkit-scrollbar { display: none; }
.home-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid transparent;
}
.home-cat.tag-blue { background: #2563eb; }
.home-cat.tag-orange { background: #d97706; }
.home-cat.tag-purple { background: #7c3aed; }
.home-cat.tag-green { background: #059669; }
.home-cat.tag-coral { background: #e11d48; }
.home-cat:hover { filter: brightness(1.12); }
.home-cat-block {
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.home-cat-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}
.home-cat-block__title { margin: 0; }
.home-cat-block__more {
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  flex-shrink: 0;
}
.home-cat-block__more:hover { color: #fff; }
.section-more {
  display: block;
  text-align: center;
  margin: 4px 0 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--accent);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
}
.section-more:hover { color: #fff; border-color: var(--blue); }

/* Section title */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* List cards — horizontal like screenshot */
.list-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: start;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: border-color .15s ease;
}
.list-card:hover { border-color: #333; }
.list-card__thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: #2a2a2a;
}
.list-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-card__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.list-card__body .card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card__body .excerpt {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.list-card__footer .comments {
  font-size: 11px;
  color: #6b6b6b;
}
.list-card__more {
  color: var(--muted);
  padding: 4px 2px;
  align-self: center;
  opacity: 0.7;
}
.list-card__more svg { display: block; }

/* Hot topics */
.hot-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hot-scroll::-webkit-scrollbar { display: none; }
.hot-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}
.hot-card img { width: 100%; height: 100%; object-fit: cover; }
.hot-card span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 8px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

/* Category page */
.cat-banner { margin-bottom: 18px; }
.cat-banner h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.cat-banner p { color: var(--muted); font-size: 14px; }
.cat-list .list-card { grid-template-columns: 110px 1fr; }
.cat-list .list-card__more { display: none; }

/* Article detail */
article {
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px 22px;
  box-shadow: var(--shadow);
}
.article-hero {
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 18px;
  aspect-ratio: 16 / 9;
  background: #2a2a2a;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.article-meta-row time,
.article-meta-row span:not(.pill) {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}
.article-meta-row time::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #555;
  margin-right: 10px;
  display: inline-block;
}
.article-title {
  font-size: clamp(22px, 5.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin-bottom: 12px;
  color: #fff;
}
.article-summary {
  font-size: 15.5px;
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 0 12px 12px 0;
}
.article-body {
  padding-top: 4px;
}
.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.article-body p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #d6d6d6;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.article-body p.lead {
  font-size: 16.5px;
  color: #e8e8e8;
  line-height: 1.75;
}
.article-body p.lead::first-letter {
  font-size: 1.35em;
  font-weight: 700;
  color: #fff;
}
.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  color: #d6d6d6;
}
.article-body li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
  line-height: 1.65;
  font-size: 15.5px;
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.article-figure {
  margin: 22px 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #2a2a2a;
  border: 1px solid var(--line);
}
.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related {
  margin-top: 24px;
  padding-top: 8px;
}
.related .section-head { margin-top: 0; }
.related .list-card { grid-template-columns: 96px 1fr; }
.related .list-card__more { display: none; }

/* Privacy / legal */
.legal h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.legal h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
}
.legal p { margin-bottom: 12px; color: #d4d4d4; line-height: 1.7; }
.legal a { color: var(--blue); text-decoration: underline; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 14px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.footer-links a:hover { color: var(--blue); }
.page-top {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.back-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow);
}
.back-top:hover { border-color: var(--blue); color: var(--blue); }
.copyright { font-size: 12px; color: #6b6b6b; }

/* Search */
.search-box {
  margin-bottom: 16px;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.search-box__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.search-box__row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #161616;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 4px 4px 4px 12px;
}
.search-box__icon { flex-shrink: 0; color: var(--muted); }
.search-box__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 10px 4px;
  outline: none;
  color: var(--text);
}
.search-box__row input::placeholder { color: #666; }
.search-box__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.search-chip:hover { background: var(--blue); color: #fff; }
.search-section { margin-bottom: 8px; scroll-margin-top: calc(var(--header-h) + 12px); }
.search-section .list-card { grid-template-columns: 96px 1fr; }
.search-section .list-card__more { display: none; }

.page-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop */
@media (min-width: 768px) {
  :root { --max: 980px; --header-h: 60px; }
  .page { padding: 24px 24px 40px; }
  .brand-name { font-size: 19px; }
  .brand-logo { height: 32px; }
  .feature-hero { padding: 16px 8px 28px; }
  .feature-hero h1 { max-width: 85%; }
  .list-card { grid-template-columns: 120px 1fr auto; padding: 16px; gap: 16px; }
  .list-card__body .card-title { font-size: 16px; }
  .list-card__body .excerpt { font-size: 13.5px; }
  .hot-card { flex-basis: 180px; }
  article { padding: 28px 28px 32px; border-radius: 22px; }
  .article-title { font-size: 34px; }
  .article-summary { font-size: 17px; padding: 14px 18px; }
  .article-body p { font-size: 17px; }
  .article-body p.lead { font-size: 18px; }
  .article-body h2 { font-size: 22px; }
  .cat-list .list-card,
  .related .list-card,
  .search-section .list-card {
    grid-template-columns: 140px 1fr;
  }
}

@media (min-width: 1024px) {
  :root { --max: 1080px; }
}
