/* BNN unified site — shared design tokens for Blog + Instagram tabs. */
:root {
  --bg: #ffffff; --fg: #0a0a0a; --muted: #6b7280; --line: #ececec;
  --card: #fafafa; --accent: #d6204a; --accent-fg: #ffffff;
  --maxw: 980px;
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --fg: #f4f4f5; --muted: #9598a1; --line: #232328;
  --card: #141417; --accent: #ff3366; --accent-fg: #ffffff;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Top bar + tabs */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.brand { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .5px; text-decoration: none; }
.tabs { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.tab {
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.tab:hover { color: var(--fg); }
.tab.on { color: var(--accent-fg); background: var(--accent); }
.iconbtn { margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--fg); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 22px 18px 60px; }
.placeholder { color: var(--muted); text-align: center; padding: 80px 20px; border: 1px dashed var(--line); border-radius: 16px; }

/* Instagram grid (ported next) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (max-width: 640px) { .grid { gap: 2px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 18px; text-align: center; }
.fbrand { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 18px; }
.flinks { display: flex; gap: 16px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.flinks a { color: var(--muted); text-decoration: none; font-size: 14px; }
.flinks a:hover { color: var(--fg); }
.fcopy { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* ---- Blog: search ---- */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; margin: 4px 0 18px; }
.search-ic { color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: transparent; color: var(--fg); font-size: 15px; outline: none; }
.searchinfo { color: var(--muted); font-size: 14px; margin: -8px 0 14px; }
.status { color: var(--muted); text-align: center; padding: 18px; font-size: 14px; }
.sentinel { height: 1px; }

/* ---- Blog: feed cards ---- */
.afeed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .afeed { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .afeed { grid-template-columns: 1fr; } }
.acard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .12s, border-color .12s; }
.acard:hover { transform: translateY(-2px); border-color: var(--accent); }
.acard-img { aspect-ratio: 4/5; background: var(--line); overflow: hidden; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--muted); }
.acard-body { padding: 13px 15px 16px; }
.acard-title { font-size: 16px; line-height: 1.35; margin: 0 0 8px; font-weight: 700; }
.acard-date { color: var(--muted); font-size: 13px; }

/* ---- Blog: article page ---- */
.article { max-width: 720px; margin: 6px auto 0; }
.atitle { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: clamp(24px, 4.5vw, 36px); line-height: 1.18; margin: 6px 0 10px; }
.ameta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.afeat { width: 100%; border-radius: 14px; margin: 0 0 22px; display: block; }
.acontent { font-family: "Merriweather", Georgia, serif; font-size: 18px; line-height: 1.75; }
.acontent p { margin: 0 0 1.1em; }
.acontent a { color: var(--accent); text-decoration: underline; }
.acontent img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }
.acontent h2, .acontent h3 { font-family: "Montserrat", sans-serif; line-height: 1.3; margin: 1.4em 0 .5em; }
.acontent figure { margin: 1em 0; }
.acontent blockquote { border-left: 3px solid var(--accent); margin: 1.2em 0; padding: .2em 0 .2em 1em; color: var(--muted); }
.aback { display: inline-block; margin: 26px 0 0; color: var(--accent); font-weight: 600; text-decoration: none; font-family: -apple-system, sans-serif; }
.aback:hover { text-decoration: underline; }

/* Section switcher — long buttons above the content */
.segtabs { display: flex; gap: 8px; margin: 4px 0 16px; }
.segtab { flex: 1; text-align: center; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.segtab:hover { color: var(--fg); }
.segtab.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Article taxonomy, breadcrumbs, related */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.taxtitle { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: clamp(22px, 4vw, 32px); margin: 4px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; }
.chip:hover { color: var(--accent); border-color: var(--accent); }
.related { margin: 44px auto 0; }
.rtitle { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 20px; margin: 0 0 16px; }

/* Bio "links" page */
.biopage { max-width: 480px; margin: 40px auto; text-align: center; }
.bio-head { margin-bottom: 28px; }
.bio-brand { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: 2px; text-decoration: none; }
.bio-tag { color: var(--muted); margin-top: 8px; }
.biolinks { display: flex; flex-direction: column; gap: 12px; }
.biolink { display: block; padding: 16px; border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; transition: opacity .15s; }
.biolink:hover { opacity: .92; }
.biolink.ghost { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.bl-sub { display: block; font-weight: 500; font-size: 13px; opacity: .85; margin-top: 3px; }
.bio-foot { color: var(--muted); font-size: 13px; margin-top: 28px; }
.bio-back { display: inline-block; margin-top: 18px; color: var(--accent); text-decoration: none; font-weight: 600; }

/* Editable header nav links */
.navlinks { display: flex; gap: 16px; align-items: center; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.navlinks a:hover { color: var(--fg); }

/* Collapsible header menu (chevron slides links left↔right) */
.navmenu { display: flex; align-items: center; }
.navchev { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--fg); cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 6px; transition: transform .28s ease; }
.navmenu.open .navchev { transform: rotate(180deg); }
.navlinks { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s ease, opacity .25s ease, margin .35s ease; }
.navmenu.open .navlinks { max-width: 70vw; opacity: 1; margin-left: 10px; }

/* Search-result source badge */
.acard-img { position: relative; }
.acard-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; }

/* Chevron matches the theme icon button */
.navchev { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; color: var(--fg); padding: 0; font-size: 18px; }
.navmenu.open .navlinks { margin-left: 0; margin-right: 10px; }

/* Telegram embed on Blog articles (consistent with Instagram) */
.tgwrap { margin: 32px auto 6px; max-width: 480px; }
.chead-lite { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.tg-embed { margin: 6px 0; width: 100%; }
.tg-embed iframe { width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 auto !important; border: 0; border-radius: 12px; }
.tglink { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.tglink:hover { text-decoration: underline; }

.navchev { font-size: 26px; line-height: 1; }

.navchev { display: flex; align-items: center; justify-content: center; padding: 0; }
