/* ==========================================================================
   D&S India Communication Hub — shared theme

   Dark is the default. Light is available via the ☀/☾ toggle in the top bar
   and is remembered in localStorage. Both themes are just variable sets, so
   markup never needs to know which one is active — use the variables below
   rather than hard-coded hex values.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0b0e14;
  --bg-2: #11151f;
  --card: #161b27;
  --panel: #11151f;
  --border: #232a3a;
  --border-2: #34405c;

  /* type */
  --text: #e8eaf0;
  --text-2: #9aa3b5;
  --text-3: #626b7f;

  /* accents — *-ink variants are the readable-on-background versions */
  --accent: #f97316;
  --accent-ink: #fdba74;
  --blue: #38bdf8;
  --blue-ink: #7dd3fc;
  --green: #34d399;
  --purple: #a78bfa;
  --pink: #f472b6;
  --amber: #fbbf24;

  /* tag / note tints */
  --tint-green: rgba(52, 211, 153, 0.13);
  --tint-amber: rgba(251, 191, 36, 0.14);
  --tint-blue: rgba(56, 189, 248, 0.13);
  --tint-purple: rgba(167, 139, 250, 0.15);
  --tint-red: rgba(244, 114, 182, 0.13);

  --note-info-bg: rgba(56, 189, 248, 0.10);
  --note-info-bd: rgba(56, 189, 248, 0.34);
  --note-info-fg: #bae6fd;
  --note-warn-bg: rgba(251, 191, 36, 0.10);
  --note-warn-bd: rgba(251, 191, 36, 0.34);
  --note-warn-fg: #fde68a;
  --note-ok-bg: rgba(52, 211, 153, 0.10);
  --note-ok-bd: rgba(52, 211, 153, 0.34);
  --note-ok-fg: #a7f3d0;
  --note-bad-bg: rgba(244, 114, 182, 0.10);
  --note-bad-bd: rgba(244, 114, 182, 0.34);
  --note-bad-fg: #fbcfe8;

  --nav-bg: rgba(11, 14, 20, 0.86);
  --input-bg: #11151f;
  --btn-ink: #0b0e14;          /* text on a solid --accent button */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.28);
  --lift: 0 4px 18px rgba(0, 0, 0, 0.34);

  --radius: 13px;
  --page: 980px;
  --left: 240px;
}

[data-theme="light"] {
  --bg: #EDEFF2;
  --bg-2: #F5F7FA;
  --card: #ffffff;
  --panel: #F5F7FA;
  --border: #DCE2EA;
  --border-2: #C4D0DE;

  --text: #0F1B2D;
  --text-2: #5B6B80;
  --text-3: #8A99AC;

  --accent: #FF9900;
  --accent-ink: #B26800;
  --blue: #00A8E1;
  --blue-ink: #0A66C2;
  --green: #067D62;
  --purple: #7A3EBF;
  --pink: #D6336C;
  --amber: #B26800;

  --tint-green: #F0F9F3;
  --tint-amber: #FFF7E6;
  --tint-blue: #E6F6FC;
  --tint-purple: #F3EEFA;
  --tint-red: #FDEDEA;

  --note-info-bg: #E6F6FC; --note-info-bd: #B9E3F4; --note-info-fg: #0B4A63;
  --note-warn-bg: #FFF7E6; --note-warn-bd: #F3D9A4; --note-warn-fg: #7A4A00;
  --note-ok-bg: #F0F9F3;   --note-ok-bd: #B7E3D2;   --note-ok-fg: #04594A;
  --note-bad-bg: #FDEDEA;  --note-bad-bd: #F5C6BE;  --note-bad-fg: #97291B;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --input-bg: #ffffff;
  --btn-ink: #0F1B2D;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 6px 20px rgba(15, 27, 45, 0.06);
  --lift: 0 4px 18px rgba(15, 27, 45, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.hidden { display: none !important; }

body {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1000px 520px at 82% -12%, rgba(249, 115, 22, 0.07), transparent 60%),
    radial-gradient(900px 520px at -12% 18%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.62;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[data-theme="light"] body { background: var(--bg); }

a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 22px; }

/* ---------- Top nav — every control is 34px tall and centred ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(13px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: var(--page); margin: 0 auto;
  display: flex; align-items: center; gap: 13px;
  padding: 0 22px; height: 60px;
  flex-wrap: nowrap;
}
/* Height is pinned to 34px so the brand shares an edge with the tabs, search
   and buttons — otherwise it centres 1px low and the row looks crooked. */
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; height: 34px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #E1483C);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11.5px; color: #fff; letter-spacing: -0.3px;
}
.brand-name {
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1;
}
.brand-name span { color: var(--text-3); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; flex-wrap: nowrap; }
.nav-link {
  border: none; background: none; cursor: pointer;
  color: var(--text-2); font-size: 13.5px; font-weight: 600;
  height: 34px; padding: 0 13px; border-radius: 17px; font-family: inherit;
  display: inline-flex; align-items: center; line-height: 1;
  white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-link.active { color: var(--btn-ink); background: var(--accent); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.nav-right .btn { height: 34px; padding: 0 15px; }
.search {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 17px;
  height: 34px; padding: 0 14px; width: 168px; font-size: 13px;
  color: var(--text); font-family: inherit; line-height: 1;
}
.search::placeholder { color: var(--text-3); }
.search:focus { outline: none; border-color: var(--accent); }

.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--border); color: var(--text-2);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.theme-btn:hover { color: var(--text); border-color: var(--border-2); }

/* Shed the least important pieces before the bar can ever wrap. */
@media (max-width: 1040px) { .brand-name span { display: none; } }
@media (max-width: 880px)  { .search { display: none; } }
@media (max-width: 700px)  { .brand-name { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 4px; }
.hero-kicker {
  font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 800; margin-bottom: 7px;
}
.hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-sub { color: var(--text-2); font-size: 13.5px; margin-top: 7px; }

/* ---------- Two-column layout: left panel + feed ---------- */
.container {
  max-width: var(--page); margin: 0 auto 40px; padding: 0 22px;
  display: grid; grid-template-columns: var(--left) 1fr; gap: 26px;
  align-items: start;
}
.left-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
  .left-col { position: static; }
}

/* ---------- Left panel ---------- */
.profile-banner { height: 58px; background: linear-gradient(120deg, var(--accent), #E1483C, var(--purple)); }
.profile-body { padding: 0 16px 15px; text-align: center; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 17px;
  background: var(--bg-2); color: var(--accent-ink);
  border: 3px solid var(--card); margin: -32px auto 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.profile-name { font-size: 15px; font-weight: 800; }
.profile-sub { font-size: 11.5px; color: var(--text-2); margin-top: 5px; line-height: 1.55; }
.profile-stats { border-top: 1px solid var(--border); padding: 10px 16px; }
.pstat { display: flex; justify-content: space-between; font-size: 12.5px; padding: 2px 0; }
.pstat span:first-child { color: var(--text-2); }
.pstat span:last-child { color: var(--accent-ink); font-weight: 800; }

.side-card { padding: 15px 17px; }
.side-about { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.side-links { display: flex; flex-direction: column; gap: 1px; }
.side-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 7px 9px; border-radius: 7px; margin: 0 -9px;
}
.side-link:hover { background: var(--panel); color: var(--text); text-decoration: none; }

/* ---------- Horizontal scroller (Upcoming) ---------- */
.scroller { position: relative; margin-bottom: 24px; }
.scroll-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; padding: 2px 0 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-card {
  flex: 0 0 208px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; box-shadow: var(--shadow);
}
.scroll-date { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-ink); }
.scroll-name { font-size: 12.5px; font-weight: 700; line-height: 1.35; margin-top: 4px; }
.scroll-loc { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: var(--card); border: 1px solid var(--border-2); color: var(--text);
  font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--lift); transition: opacity .15s, background .15s;
}
.scroll-btn:hover { background: var(--panel); }
.scroll-btn:disabled { opacity: 0; pointer-events: none; }
.scroll-btn.prev { left: -12px; }
.scroll-btn.next { right: -12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.section-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
}

/* ---------- Feed posts — generously separated ---------- */
.feed { display: flex; flex-direction: column; gap: 26px; }
.post { transition: border-color .15s, box-shadow .15s, transform .15s; }
.post:hover { border-color: var(--border-2); box-shadow: var(--lift); }
.post-strip { height: 4px; }
.post-head {
  display: flex; gap: 11px; padding: 13px 19px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.post-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.post-meta { flex: 1; min-width: 0; }
.post-author { font-size: 13.5px; font-weight: 700; }

.post-body { padding: 15px 19px 17px; }
.post-title { font-size: 17px; font-weight: 800; margin-bottom: 5px; letter-spacing: -0.35px; line-height: 1.32; }

/* Attribution sits directly under the headline. */
.post-byline {
  font-size: 12px; color: var(--text-3); margin: 0 0 10px;
  padding-bottom: 9px; border-bottom: 1px dashed var(--border);
}
.post-byline b { color: var(--text-2); font-weight: 700; }

.post-text { font-size: 13.5px; line-height: 1.66; color: var(--text-2); }
.post-text strong { color: var(--text); }

.post-teaser { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn {
  border: none; background: none; color: var(--blue-ink); font-weight: 700;
  font-size: 12.5px; cursor: pointer; padding: 3px 0; font-family: inherit;
}
.more-btn:hover { text-decoration: underline; }
.post-full { display: none; }
.post.expanded .post-full { display: block; }
.post.expanded .post-teaser { -webkit-line-clamp: unset; }
.post.expanded .teaser-more { display: none; }

/* ---------- Media (compact) ---------- */
.media-grid {
  display: grid; gap: 3px; margin: 12px 0 4px;
  border-radius: 9px; overflow: hidden; cursor: pointer;
}
.media-grid.cols-2 { grid-template-columns: 1.4fr 1fr; }
.media-cell { position: relative; overflow: hidden; background: var(--panel); }
.media-cell img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 142px; max-height: 196px; }
.media-cell .ph {
  width: 100%; min-height: 142px; max-height: 196px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; color: var(--text-2); font-size: 11.5px; font-weight: 600;
  background: linear-gradient(135deg, var(--bg-2), var(--panel));
}
.ph-emoji { font-size: 24px; }
.media-overlay {
  position: absolute; inset: 0; background: rgba(4, 8, 16, 0.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 800;
}
.gallery { display: none; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 12px 0; }
.post.expanded .gallery { display: grid; }
.post.expanded .media-grid { display: none; }
.gallery .gcell { border-radius: 7px; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.gallery img { width: 100%; height: 78px; object-fit: cover; display: block; }
.gallery .ph { height: 78px; min-height: 0; font-size: 9.5px; gap: 2px; }
.gallery .ph .ph-emoji { font-size: 16px; }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.cover {
  margin: 12px 0 4px; border-radius: 9px; overflow: hidden; position: relative;
  min-height: 116px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 3px; cursor: pointer; text-align: center; padding: 15px;
}
.cover-emoji { font-size: 26px; }
.cover-text { font-weight: 800; font-size: 15.5px; color: #fff; letter-spacing: -0.3px; }
.cover-sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.78); }

/* ---------- Tags ---------- */
.tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase; flex-shrink: 0;
}
.tag-event    { background: var(--tint-purple); color: var(--purple); }
.tag-launch   { background: var(--tint-amber);  color: var(--accent-ink); }
.tag-shipped  { background: var(--tint-green);  color: var(--green); }
.tag-highlight{ background: var(--tint-amber);  color: var(--amber); }
.tag-watch    { background: var(--tint-blue);   color: var(--blue); }
.tag-new      { background: var(--tint-green);  color: var(--green); }

/* ---------- Inner boxes (compact) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 13px 0; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 6px; text-align: center;
}
.stat-num { font-size: 16.5px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 9.5px; color: var(--text-3); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.4px; }
@media (max-width: 620px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.theme-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; }
.theme-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.theme-table td:last-child { text-align: right; font-weight: 800; color: var(--text); }
.theme-table tr:last-child td { border-bottom: none; font-weight: 800; color: var(--text); }
.theme-bar { height: 4px; border-radius: 2px; background: var(--border); margin-top: 4px; overflow: hidden; }
.theme-bar i { display: block; height: 100%; border-radius: 2px; }

.badge-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 4px; }
.badge {
  font-size: 11px; background: var(--panel); color: var(--text-2);
  border: 1px solid var(--border); padding: 4px 9px; border-radius: 12px;
}
.post-credit { font-size: 11.5px; color: var(--text-3); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.post-link { display: inline-block; margin-top: 9px; font-weight: 700; font-size: 12.5px; color: var(--accent-ink); }
ul.hl { margin: 12px 0 0 18px; line-height: 1.7; font-size: 13px; color: var(--text-2); }
ul.hl li::marker { color: var(--accent); }

/* ---------- LinkedIn video card (compact) ---------- */
.li-card {
  display: flex; gap: 14px; margin: 12px 0 4px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 9px; overflow: hidden; color: inherit;
}
.li-card:hover { text-decoration: none; border-color: var(--border-2); }
.li-thumb { width: 112px; flex-shrink: 0; background: #0F1B2D; position: relative; min-height: 120px; }
.li-thumb.wide { width: 178px; }   /* 16:9 stills need more room than portrait */
.li-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.li-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.li-play i {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(4, 8, 16, 0.45); border: 2px solid rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-style: normal;
}
.li-body { padding: 13px 15px 13px 0; flex: 1; min-width: 0; }
.li-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.li-mark {
  width: 18px; height: 18px; border-radius: 3px; background: #0A66C2;
  color: #fff; font-weight: 800; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.li-mark.bc { background: var(--accent); color: var(--btn-ink); }   /* Amazon Broadcast */
.li-label { font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
.li-cta {
  display: inline-block; margin-top: 10px; background: #0A66C2; color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 7px 13px; border-radius: 6px;
}
.li-cta:hover { text-decoration: none; }
.li-cta.bc { background: var(--accent); color: var(--btn-ink); }   /* Amazon Broadcast */
@media (max-width: 620px) {
  .li-card { flex-direction: column; }
  .li-thumb { width: 100%; height: 160px; }
  .li-body { padding: 0 15px 15px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.2px; line-height: 1;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
[data-theme="light"] .btn:hover { filter: brightness(0.96); }
.btn-primary { background: var(--accent); color: var(--btn-ink); }
.btn-blue { background: #0A66C2; color: #fff; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border-2); }
.btn-danger { background: var(--tint-red); color: var(--pink); border-color: var(--note-bad-bd); }
.btn-green { background: var(--green); color: #06281f; }
[data-theme="light"] .btn-green { color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

/* ---------- Search feedback ---------- */
.search-banner { display: none; align-items: center; gap: 12px; margin: 0 0 16px; }
.search-banner.on { display: flex; }
.search-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--accent);
  border-radius: 22px; padding: 7px 17px; font-size: 12.5px;
}
.search-pill svg { width: 15px; height: 15px; stroke: var(--accent-ink); fill: none; }
.search-pill b { color: var(--accent-ink); }
.search-count { color: var(--text-3); font-size: 12px; }
.search-empty { display: none; text-align: center; padding: 50px 20px; }
.search-empty.on { display: block; }
.search-empty svg { width: 104px; height: 104px; }
.search-empty h3 { margin-top: 12px; font-size: 16.5px; }
.search-empty p { color: var(--text-3); margin-top: 6px; font-size: 13px; }

/* ---------- Pages / tabs ---------- */
.page { display: none; }
.page.active { display: block; }

/* ---------- Bytes ---------- */
.bytes-wrap { max-width: 600px; margin: 28px auto 60px; padding: 0 22px; }
.byte-card { margin-bottom: 20px; }
.video-bg-wrap { background: #05070b; display: flex; justify-content: center; }
.byte-video { display: flex; align-items: center; justify-content: center; color: #fff; position: relative; text-decoration: none; }
.byte-video.vertical { aspect-ratio: 9/16; max-height: 360px; min-width: 202px; }
.byte-video.wide { aspect-ratio: 16/9; width: 100%; }
/* Matches the Palani still's own 756x924 ratio, so cover-cropping doesn't clip
   the caption baked into the bottom of the frame. */
.byte-video.tall { aspect-ratio: 756/924; max-height: 400px; min-width: 240px; }
.byte-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); border: 2px solid rgba(255, 255, 255, 0.88);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; backdrop-filter: blur(3px); transition: transform .15s;
}
.byte-play:hover { transform: scale(1.08); }
.byte-aspect { position: absolute; top: 11px; right: 11px; font-size: 10px; background: rgba(4,8,16,0.6); color: #cbd5e1; padding: 3px 8px; border-radius: 10px; letter-spacing: 0.5px; }
.byte-dur { position: absolute; bottom: 11px; right: 11px; font-size: 10.5px; background: rgba(4,8,16,0.72); color: #fff; padding: 3px 8px; border-radius: 5px; font-weight: 700; }
.byte-info { padding: 14px 18px; }
.byte-title { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.byte-desc { font-size: 13px; color: var(--text-2); margin-top: 5px; line-height: 1.58; }
.byte-author { font-size: 11.5px; color: var(--text-3); margin-top: 9px; }

/* ---------- Events ---------- */
.events-wrap { max-width: 700px; margin: 28px auto 60px; padding: 0 22px; }
.eventp { display: flex; gap: 15px; padding: 18px 20px; }
.eventp + .eventp { border-top: 1px solid var(--border); }
.eventp-icon { font-size: 24px; }
.eventp-title { font-size: 15px; font-weight: 800; }
.eventp-meta { font-size: 12px; color: var(--accent-ink); font-weight: 800; margin: 3px 0 5px; }
.eventp-desc { font-size: 13px; color: var(--text-2); line-height: 1.58; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); margin-top: 6px;
  padding: 22px 0 44px; font-size: 12.5px; color: var(--text-3); line-height: 1.8;
}
.footer strong { color: var(--text-2); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 8, 16, 0.92); align-items: center; justify-content: center;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 8px; }
.lb-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 30px; cursor: pointer; background: none; border: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; font-size: 22px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
}
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: 13px; }

/* ==========================================================================
   Forms — submit.html / moderate.html
   ========================================================================== */
.form-wrap { max-width: 740px; margin: 26px auto 60px; padding: 0 22px; }
.form-card { padding: 24px 26px; }
.form-intro { font-size: 13.5px; color: var(--text-2); margin-bottom: 20px; }

.field { margin-bottom: 17px; }
.field label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 4px; }
.field .req { color: var(--pink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }

input[type=text], input[type=url], input[type=password], select, textarea {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 9px 12px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}
textarea { resize: vertical; min-height: 86px; line-height: 1.6; }
input.bad, textarea.bad, select.bad { border-color: var(--pink); }

.drop {
  border: 2px dashed var(--border-2); border-radius: 10px; background: var(--panel);
  padding: 22px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--bg-2); }
.drop-emoji { font-size: 26px; }
.drop-title { font-weight: 800; font-size: 13.5px; margin-top: 7px; }
.drop-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 12px; }
@media (max-width: 620px) { .thumbs { grid-template-columns: repeat(4, 1fr); } }
.thumb { position: relative; border-radius: 7px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); }
.thumb img { width: 100%; height: 62px; object-fit: cover; display: block; }
.thumb-x {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(4, 8, 16, 0.74); color: #fff; border: none; cursor: pointer;
  font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.thumb-x:hover { background: #C0392B; }
.img-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 9px; }

.form-actions { display: flex; align-items: center; gap: 11px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.note {
  border-radius: 9px; padding: 12px 15px; font-size: 12.5px; line-height: 1.6;
  border: 1px solid; margin-bottom: 17px;
}
.note-info { background: var(--note-info-bg); border-color: var(--note-info-bd); color: var(--note-info-fg); }
.note-warn { background: var(--note-warn-bg); border-color: var(--note-warn-bd); color: var(--note-warn-fg); }
.note-ok   { background: var(--note-ok-bg);   border-color: var(--note-ok-bd);   color: var(--note-ok-fg); }
.note-bad  { background: var(--note-bad-bg);  border-color: var(--note-bad-bd);  color: var(--note-bad-fg); }
.note b { font-weight: 800; }

/* Moderator */
.gate { max-width: 410px; margin: 56px auto; }
.gate-card { padding: 26px; text-align: center; }
.gate-emoji { font-size: 34px; }
.gate h2 { font-size: 19px; margin: 9px 0 6px; letter-spacing: -0.3px; }
.gate p { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.gate input { text-align: center; }
.gate .btn { width: 100%; margin-top: 11px; }

.mod-bar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 18px; }
.mod-tabs { display: flex; gap: 4px; }
.pill {
  border: 1px solid var(--border-2); background: var(--panel); color: var(--text-2);
  font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 13px;
  border-radius: 17px; cursor: pointer;
}
.pill.active { background: var(--accent); color: var(--btn-ink); border-color: var(--accent); }
.pill .n { opacity: 0.65; font-weight: 600; }

.sub { margin-bottom: 17px; }
.sub-head { display: flex; gap: 11px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sub-head .grow { flex: 1; min-width: 0; }
.sub-title { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.sub-meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.sub-body { padding: 14px 18px; }
.sub-body h4 { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); margin: 13px 0 5px; }
.sub-body h4:first-child { margin-top: 0; }
.sub-body p { font-size: 13px; color: var(--text-2); line-height: 1.62; white-space: pre-wrap; }
.sub-imgs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 7px; }
@media (max-width: 620px) { .sub-imgs { grid-template-columns: repeat(4, 1fr); } }
.sub-imgs img { width: 100%; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: zoom-in; display: block; }
.sub-actions { display: flex; gap: 9px; padding: 12px 18px; background: var(--panel); border-top: 1px solid var(--border); flex-wrap: wrap; }
.status { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.status-pending  { background: var(--tint-amber); color: var(--amber); }
.status-approved { background: var(--tint-green); color: var(--green); }
.status-rejected { background: var(--tint-red);   color: var(--pink); }

.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty-emoji { font-size: 36px; }
.empty h3 { font-size: 15.5px; color: var(--text); margin-top: 11px; }
.empty p { font-size: 13px; margin-top: 5px; }
