/* ============================================================
   Zelo Digital — Industry Insights
   Temporary Site CSS | Phase 1
   ============================================================ */



:root {
  --color-primary:      #0052cc;
  --color-primary-dark: #003d99;
  --color-accent:       #06b6d4;
  --color-dark:         #0d1b2a;
  --color-dark-2:       #1a2f45;
  --color-text:         #1e293b;
  --color-text-muted:   #64748b;
  --color-border:       #e2e8f0;
  --color-bg:           #ffffff;
  --color-bg-alt:       #f8fafc;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--color-text); }
h1 { font-size: clamp(1.875rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }
.section--alt { background: var(--color-bg-alt); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--color-dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-text {
  font-size: 1.2rem; font-weight: 800;
  color: #fff; letter-spacing: -.02em;
}
.nav-logo-text span { color: var(--color-accent); }
.nav-logo-tagline {
  font-size: .6rem; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .12em;
  display: block; line-height: 1; margin-top: 3px;
}
.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-menu a {
  color: rgba(255,255,255,.78); font-size: .875rem; font-weight: 500;
  padding: .5rem .875rem; border-radius: 4px;
  transition: color .15s, background .15s; text-decoration: none; display: block;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta { background: var(--color-primary) !important; color: #fff !important; }
.nav-cta:hover { background: var(--color-primary-dark) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: #fff; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--color-dark-2); flex-direction: column;
    align-items: stretch; padding: .75rem 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: .75rem 1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(140deg, var(--color-dark) 0%, #142d4c 60%, #0d3060 100%);
  color: #fff; padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(6,182,212,.15); color: var(--color-accent);
  border: 1px solid rgba(6,182,212,.35);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; padding: .3rem .8rem; border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; max-width: 720px; margin-bottom: 1.25rem; }
.hero-sub { color: rgba(255,255,255,.72); font-size: 1.125rem; max-width: 580px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; }
.hero-meta { margin-top: 3.5rem; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-meta-item { border-left: 2px solid var(--color-accent); padding-left: .875rem; }
.hero-meta-item strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-meta-item span { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all .2s; line-height: 1;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.38); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); text-decoration: none; color: #fff; }
.btn-ghost { background: rgba(0,82,204,.08); color: var(--color-primary); }
.btn-ghost:hover { background: rgba(0,82,204,.15); text-decoration: none; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 2.5rem; }
.section-label {
  display: inline-block; color: var(--color-primary);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--color-text-muted); font-size: 1.0625rem; max-width: 560px; }
.section-header--center { text-align: center; }
.section-header--center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-thumb {
  background: linear-gradient(135deg, #1a3050 0%, #0d4080 100%);
  height: 180px; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.card-thumb-icon { display: flex; align-items: center; justify-content: center; opacity: .6; color: #fff; }
.card-thumb-icon svg { width: 3rem; height: 3rem; }
.card-body { padding: 1.5rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.card-tag {
  background: rgba(0,82,204,.08); color: var(--color-primary);
  font-size: .7rem; font-weight: 700; padding: .25rem .6rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .06em;
}
.card-date { font-size: .8125rem; color: var(--color-text-muted); }
.card-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.card-title a { color: var(--color-text); text-decoration: none; }
.card-title a:hover { color: var(--color-primary); }
.card-excerpt { color: var(--color-text-muted); font-size: .9375rem; line-height: 1.6; margin-bottom: 1rem; }
.card-footer {
  padding: .875rem 1.5rem; border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8125rem; color: var(--color-text-muted);
}
.read-more {
  color: var(--color-primary); font-weight: 600; font-size: .8125rem;
  display: inline-flex; align-items: center; gap: .25rem; text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* ---- Featured card (larger) ---- */
.card-featured .card-thumb { height: 240px; }
.card-featured .card-title { font-size: 1.25rem; }

/* ============================================================
   GRID
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip { background: var(--color-primary); color: #fff; padding: 2.5rem 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-number { font-size: 2.25rem; font-weight: 800; margin-bottom: .2rem; }
.stat-label  { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   PAGE HEADER (generic)
   ============================================================ */
.page-header {
  background: linear-gradient(140deg, var(--color-dark) 0%, #142d4c 100%);
  color: #fff; padding: 4rem 0 3rem;
}
.page-header h1 { color: #fff; margin-bottom: .75rem; }
.page-header p { color: rgba(255,255,255,.72); font-size: 1.125rem; max-width: 640px; }
.page-breadcrumb { font-size: .8125rem; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.page-breadcrumb a { color: rgba(255,255,255,.65); }
.page-breadcrumb a:hover { color: #fff; text-decoration: none; }
.page-breadcrumb span { margin: 0 .4rem; }

/* ============================================================
   ARTICLE HEADER
   ============================================================ */
.post-header {
  background: linear-gradient(140deg, var(--color-dark) 0%, #142d4c 100%);
  color: #fff; padding: 4.5rem 0 3.5rem;
}
.post-category {
  display: inline-block;
  background: rgba(6,182,212,.18); color: var(--color-accent);
  border: 1px solid rgba(6,182,212,.35);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; padding: .25rem .65rem; border-radius: 20px;
  margin-bottom: 1.1rem;
}
.post-header h1 { color: #fff; margin-bottom: 1rem; max-width: 820px; }
.post-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; color: rgba(255,255,255,.55); font-size: .875rem; }
.post-meta-divider { opacity: .3; }

/* ---- Article Body ---- */
.post-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; padding: 3rem 0; }
@media (max-width: 900px) { .post-wrap { grid-template-columns: 1fr; } }

.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.post-content h3 { margin-top: 1.75rem; margin-bottom: .75rem; font-size: 1.2rem; }
.post-content p  { font-size: 1.0625rem; line-height: 1.8; color: #374151; margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: .75rem 0 1.25rem 1.5rem; }
.post-content li { font-size: 1.0625rem; line-height: 1.7; color: #374151; margin-bottom: .5rem; }
.post-content blockquote {
  border-left: 4px solid var(--color-primary); padding: 1rem 1.5rem;
  margin: 1.75rem 0; background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p { font-style: italic; color: var(--color-text-muted); font-size: 1.125rem; margin: 0; }
.post-divider { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.post-tag {
  background: var(--color-bg-alt); color: var(--color-text-muted);
  border: 1px solid var(--color-border); font-size: .8rem;
  padding: .3rem .75rem; border-radius: 20px;
}

/* ---- Sidebar ---- */
.post-sidebar {}
.sidebar-box { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); margin-bottom: 1rem; }
.sidebar-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.sidebar-list li { padding-bottom: .75rem; border-bottom: 1px solid var(--color-border); }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list a { font-size: .9375rem; font-weight: 600; color: var(--color-text); text-decoration: none; line-height: 1.4; }
.sidebar-list a:hover { color: var(--color-primary); }
.sidebar-list small { display: block; font-size: .78rem; color: var(--color-text-muted); margin-top: .2rem; }

/* ============================================================
   FEATURES / SERVICES
   ============================================================ */
.feature-item { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--color-border); }
.feature-item:last-child { border-bottom: none; }
.feature-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(0,82,204,.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; color: var(--color-primary); }
.feature-body h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.feature-body p { color: var(--color-text-muted); font-size: .9375rem; margin: 0; }

/* ============================================================
   SECTOR CARDS
   ============================================================ */
.sector-card {
  border: 1px solid var(--color-border); border-radius: 12px; padding: 2rem;
  transition: border-color .2s, box-shadow .2s;
}
.sector-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.sector-icon { display: flex; align-items: center; margin-bottom: 1rem; }
.sector-icon svg { width: 2.25rem; height: 2.25rem; color: var(--color-accent); }
.sector-card h3 { margin-bottom: .5rem; }
.sector-card p { color: var(--color-text-muted); font-size: .9375rem; margin: 0; }

/* ============================================================
   NEWSLETTER BOX
   ============================================================ */
.newsletter-box {
  background: linear-gradient(135deg, #0052cc, #0d1b2a);
  border-radius: 12px; padding: 3rem; text-align: center; color: #fff;
}
.newsletter-box h2 { color: #fff; margin-bottom: .75rem; font-size: 1.75rem; }
.newsletter-box p { color: rgba(255,255,255,.72); margin-bottom: 1.75rem; font-size: 1.0625rem; }
.newsletter-form { display: flex; max-width: 440px; margin: 0 auto; gap: .5rem; }
.newsletter-form input {
  flex: 1; padding: .75rem 1rem; border: none; border-radius: var(--radius);
  font-size: .9375rem; font-family: var(--font-sans);
}
.newsletter-form input:focus { outline: 2px solid var(--color-accent); }
.newsletter-note { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: .75rem; }
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-box { padding: 2rem 1.5rem; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .65rem .875rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: .9375rem; font-family: var(--font-sans);
  color: var(--color-text); background: var(--color-bg); transition: border-color .2s, background-color .25s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,82,204,.1); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(0,82,204,.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 1.375rem; height: 1.375rem; color: var(--color-primary); }
.contact-info-item h4 { font-size: .875rem; font-weight: 700; margin-bottom: .2rem; }
.contact-info-item p { color: var(--color-text-muted); font-size: .9375rem; margin: 0; }

/* ============================================================
   JOBS
   ============================================================ */
.trend-card {
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.trend-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow); }
.trend-card h3 { margin-bottom: .5rem; }
.trend-card p { color: var(--color-text-muted); font-size: .9375rem; margin: 0; }
.salary-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.salary-table th {
  background: var(--color-bg-alt); font-weight: 700; text-align: left;
  padding: .75rem 1rem; border-bottom: 2px solid var(--color-border);
}
.salary-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); }
.salary-table tr:last-child td { border-bottom: none; }
.salary-table tr:hover td { background: var(--color-bg-alt); }

/* ============================================================
   INLINE HIGHLIGHTS
   ============================================================ */
.highlight-box {
  background: rgba(0,82,204,.06); border: 1px solid rgba(0,82,204,.2);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.highlight-box p { margin: 0; font-size: .9375rem; color: var(--color-text); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  background: var(--color-bg-alt);
  padding: 3rem 0 5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,.55); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .875rem; margin-top: .875rem; max-width: 280px; line-height: 1.65; }
.footer-heading {
  color: #fff; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.52); font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8125rem;
}
@media (max-width: 540px) { .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; } }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.text-accent  { color: var(--color-accent); }
.fw-700       { font-weight: 700; }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }  .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   LAYOUT UTILITIES (replaces inline styles)
   ============================================================ */
.grid-2fr-1fr  { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.grid-3fr-2fr  { display: grid; grid-template-columns: 3fr 2fr; gap: 3.5rem; align-items: start; }
.grid-2-center { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-services { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.blog-featured { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; margin-bottom: 3rem; }
.stack-lg      { display: flex; flex-direction: column; gap: 1.5rem; }
.sector-row    { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; align-items: start; }
.sector-block        { margin-bottom: 3rem; }
.sector-block-inner  { margin-bottom: 3rem; margin-top: 2rem; }
.sector-emoji  { display: flex; align-items: center; }
.sector-emoji svg { width: 3.5rem; height: 3.5rem; color: var(--color-accent); }
.demand-dot { width: .875rem; height: .875rem; vertical-align: middle; display: inline-block; }
.table-wrap    { overflow-x: auto; margin-top: 1.25rem; }
.mw-800        { max-width: 800px; }

.sector-card--sm        { padding: 1.25rem; }
.sector-card--sm h4     { margin-bottom: .35rem; }
.sector-card--sm p      { font-size: .875rem; }

@media (max-width: 768px) {
  .grid-2fr-1fr, .grid-3fr-2fr, .grid-2-center, .grid-services { grid-template-columns: 1fr; }
  .blog-featured  { grid-template-columns: 1fr; }
  .sector-row     { grid-template-columns: 60px 1fr; gap: 1rem; }
}

/* ============================================================
   TYPOGRAPHY UTILITIES (replaces inline styles)
   ============================================================ */
.text-primary   { color: var(--color-primary); }
.text-danger    { color: #ef4444; }
.text-caption   { font-size: .875rem; color: var(--color-text-muted); }
.text-body-sm   { font-size: .9375rem; color: var(--color-text-muted); }
.sidebar-desc   { font-size: .9rem; color: var(--color-text-muted); margin-bottom: .75rem; }
.card-title--lg { font-size: 1.375rem; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.check-item { font-size: .9375rem; color: var(--color-text-muted); display: flex; gap: .5rem; }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7); padding: .4rem;
  border-radius: 6px; line-height: 0;
  transition: color .15s, background .15s;
  margin-left: .25rem; flex-shrink: 0;
}
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ============================================================
   DARK THEME
   ============================================================ */

/* Auto: follows system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:         #111827;
    --color-bg-alt:     #1e2535;
    --color-text:       #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border:     #2d3748;
    --shadow:    0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  }
}

/* Manual override: data-theme="dark" */
[data-theme="dark"] {
  --color-bg:         #111827;
  --color-bg-alt:     #1e2535;
  --color-text:       #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border:     #2d3748;
  --shadow:    0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
}

/* Manual override: data-theme="light" (force light even if system is dark) */
[data-theme="light"] {
  --color-bg:         #ffffff;
  --color-bg-alt:     #f8fafc;
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-border:     #e2e8f0;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
}

/* ---- Component overrides (dark) ---- */

/* sidebar-box: нет явного bg — нужна переменная */
.sidebar-box { background: var(--color-bg); }

/* sector-card / trend-card */
.sector-card, .trend-card { background: var(--color-bg); }

/* newsletter form input */
.newsletter-form input { background: var(--color-bg); color: var(--color-text); }

/* select dropdown в тёмной теме */
[data-theme="dark"] select.form-control option { background: #1e2535; }

/* Salary table */
[data-theme="dark"] .salary-table th { background: #252f42; }
[data-theme="dark"] .salary-table tr:hover td { background: rgba(255,255,255,.04); }

/* Post / card tags */
[data-theme="dark"] .post-tag { background: #252f42; }
[data-theme="dark"] .card-tag { background: rgba(0,82,204,.22); }

/* Highlight box */
[data-theme="dark"] .highlight-box {
  background: rgba(0,82,204,.15);
  border-color: rgba(0,82,204,.4);
}

/* Плавный переход при смене темы */
body, .card, .sidebar-box, .sector-card, .trend-card,
.form-control, .highlight-box, .post-tag, .card-tag {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

/* То же для @media auto-dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select.form-control option { background: #1e2535; }
  :root:not([data-theme="light"]) .salary-table th { background: #252f42; }
  :root:not([data-theme="light"]) .salary-table tr:hover td { background: rgba(255,255,255,.04); }
  :root:not([data-theme="light"]) .post-tag { background: #252f42; }
  :root:not([data-theme="light"]) .card-tag { background: rgba(0,82,204,.22); }
  :root:not([data-theme="light"]) .highlight-box {
    background: rgba(0,82,204,.15);
    border-color: rgba(0,82,204,.4);
  }
}
