/* ── Win Central Careers Help Center — CSS v2 (1440px · Nunito · Walmart-width)
   Brand: Navy #0A2540 · Gold #D4AF37
   Layout: 280px sidebar + ~940px main + 220px TOC = 1440px
   Features: Follow/Share/Print · Autocomplete · Attachments · Prev/Next · Filter pills · Lang toggle
   ──────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy:    #0A2540;
  --navy-dk: #071A2E;
  --gold:    #D4AF37;
  --gold-lt: rgba(212,175,55,0.12);
  --border:  #E5E7EB;
  --bg:      #F9FAFB;
  --text:    #1F2937;
  --muted:   #4B5563;
  --font:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Pyidaungsu', sans-serif;
  --max-w:   1440px;
  --radius:  6px;
  --sb-w:    280px;
  --toc-w:   220px;
  --hdr-h:   64px;
  --shadow:  0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
#app { flex: 1; display: flex; flex-direction: column; }

/* ── Loading ─────────────────────────────────────────────────────────────────── */

.initial-loading,
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  flex: 1;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero ─────────────────────────────────────────────────────────────────────── */

.hero {
  background-color: var(--navy);
  background-image: url(/assets/images/careers-hero.png);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  position: relative;
}

.hero-lang-wrap {
  position: absolute;
  top: 20px;
  right: 28px;
}

.hero-inner {
  max-width: 680px;
  width: 100%;
}

.hero h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.65;
}

/* Hero search + autocomplete */
.hero-search-wrap {
  position: relative;
}

.hero-search-wrap input {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 10px;
  padding: 0 20px 0 54px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-search-wrap input::placeholder { color: #9CA3AF; }
.hero-search-wrap input:focus { box-shadow: 0 0 0 3px rgba(212,175,55,0.5), 0 4px 20px rgba(0,0,0,0.2); }

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

/* Autocomplete dropdown */
.hero-ac {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
}

.hero-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.1s;
}

.hero-ac-item:hover,
.hero-ac-item:focus {
  background: var(--bg);
  color: var(--navy);
  outline: none;
}

.hero-ac-icon { color: #9CA3AF; font-size: 14px; flex-shrink: 0; }
.hero-ac-title { flex: 1; text-align: left; }

/* ── Language selector ───────────────────────────────────────────────────────── */

.lang-sel {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 2px 3px;
  gap: 2px;
}

.inner-sidebar .lang-sel {
  background: var(--bg);
  border-color: var(--border);
}

.lang-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  background: transparent;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.lang-btn.active {
  background: #fff;
  color: var(--navy);
}

.inner-sidebar .lang-btn {
  color: var(--muted);
}

.inner-sidebar .lang-btn.active {
  background: var(--navy);
  color: #fff;
}

/* ── Home content wrapper ─────────────────────────────────────────────────────── */

.cw {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sect-heading {
  margin: 40px 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Category blocks (homepage) ──────────────────────────────────────────────── */

.blocks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  list-style: none;
  margin-bottom: 48px;
}

.block-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  height: 100%;
}

.block-link:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(10,37,64,0.12);
  transform: translateY(-1px);
}

.block-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.block-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.block-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.block-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
}

/* ── Featured / recent articles (home) ──────────────────────────────────────── */

.feat-list {
  list-style: none;
  border-top: 1px solid var(--border);
  margin-bottom: 48px;
}

.feat-item { border-bottom: 1px solid var(--border); }

.feat-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s;
}

.feat-item a:hover { color: var(--navy); }

.feat-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.feat-title { flex: 1; }
.feat-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }

/* View count badge */
.pop-v {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
  flex-shrink: 0;
}

/* ── Contact HR CTA ───────────────────────────────────────────────────────────── */

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 26px 28px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.contact-cta-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}

.contact-cta-sub {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}

.contact-cta-btn {
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.contact-cta-btn:hover { background: var(--navy-dk); transform: translateY(-1px); }

/* ── Breadcrumb ───────────────────────────────────────────────────────────────── */

.breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb a { color: var(--gold); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #D1D5DB; }

/* ═══════════════════════════════════════════════════════════════════════════════
   INNER PAGE LAYOUT — 280px sidebar + flex main + 220px TOC
   ═══════════════════════════════════════════════════════════════════════════════ */

.inner-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: calc(100vh - var(--hdr-h));
}

/* ── Left sidebar ─────────────────────────────────────────────────────────────── */

.inner-sidebar {
  flex: 0 0 var(--sb-w);
  width: var(--sb-w);
  border-right: 1px solid var(--border);
  padding: 24px 0 32px;
  position: sticky;
  top: var(--hdr-h);
  max-height: calc(100vh - var(--hdr-h));
  overflow-y: auto;
  background: #fff;
  scrollbar-width: thin;
}

.sb-top {
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.sb-section-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 20px 10px;
}

.sb-nav { list-style: none; }

.sb-nav > li { position: relative; }

.sb-nav > li > a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 9px 20px;
  border-left: 3px solid transparent;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  line-height: 1.35;
}

.sb-nav > li > a:hover {
  color: var(--navy);
  background: rgba(10,37,64,0.04);
}

.sb-nav > li > a.active {
  color: var(--navy);
  border-left-color: var(--gold);
  background: var(--gold-lt);
}

.sb-cat-icon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1;
}

/* Sidebar Level 2 */
.sb-sec-nav {
  list-style: none;
  margin: 0 0 4px 20px;
  border-left: 1px solid var(--border);
}

.sb-sec-nav a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.4;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.sb-sec-nav a:hover { color: var(--navy); background: rgba(10,37,64,0.03); }
.sb-sec-nav a.active { color: var(--navy); font-weight: 700; border-left-color: var(--gold); background: rgba(212,175,55,0.07); }

/* Sidebar Level 3 */
.sb-art-nav {
  list-style: none;
  margin: 0 0 4px 12px;
  border-left: 1px solid var(--border);
}

.sb-art-nav a {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.4;
  transition: color 0.12s, border-color 0.12s;
}

.sb-art-nav a:hover { color: var(--navy); }
.sb-art-nav a.active { color: var(--navy); font-weight: 700; border-left-color: var(--gold); }

/* ── Main content area ────────────────────────────────────────────────────────── */

.inner-main {
  flex: 1;
  min-width: 0;
  padding: 36px 40px 72px;
  background: #fff;
}

/* ── Right TOC column ─────────────────────────────────────────────────────────── */

.toc-col {
  flex: 0 0 var(--toc-w);
  width: var(--toc-w);
  border-left: 1px solid var(--border);
  padding: 36px 20px 36px 22px;
  position: sticky;
  top: var(--hdr-h);
  max-height: calc(100vh - var(--hdr-h));
  overflow-y: auto;
  background: #fff;
  scrollbar-width: thin;
}

.toc-heading {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc-list { list-style: none; }

.toc-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
  line-height: 1.45;
  transition: color 0.12s, border-color 0.12s;
}

.toc-link:hover { color: var(--navy); border-left-color: var(--gold); }
.toc-link.active { color: var(--navy); font-weight: 700; border-left-color: var(--gold); }
.toc-link.h3 { padding-left: 22px; font-size: 12px; }

/* ── Category page ────────────────────────────────────────────────────────────── */

.cat-h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.cat-desc {
  font-size: 15.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
}

.section-cards { display: flex; flex-direction: column; gap: 12px; }

.section-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}

.section-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.section-card-header a {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
}

.section-card-header a:hover { text-decoration: underline; }
.section-art-count { font-size: 13px; color: var(--muted); font-weight: 600; flex-shrink: 0; }

.section-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
  font-weight: 500;
}

.section-art-list { list-style: none; padding: 4px 0; }

.section-art-item a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.12s, background 0.12s;
}

.section-art-item a:hover { color: var(--navy); background: rgba(10,37,64,0.03); }
.section-art-item .art-file-icon { color: #C4CAD4; font-size: 13px; flex-shrink: 0; }

.sec-see-all {
  display: block;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  border-top: 1px solid var(--border);
  transition: color 0.12s;
}

.sec-see-all:hover { color: #8B6914; }

/* ── Section page ─────────────────────────────────────────────────────────────── */

.page-h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-meta {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-desc {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

.art-link-list { list-style: none; border-top: 1px solid var(--border); }
.art-link-item { border-bottom: 1px solid var(--border); }

.art-link-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  color: var(--text);
  transition: color 0.15s;
}

.art-link-item a:hover { color: var(--navy); }
.art-link-item a:hover .art-link-excerpt { color: var(--navy); }

.art-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
}

.art-link-title { flex: 1; }
.art-link-icon { color: #C4CAD4; font-size: 14px; flex-shrink: 0; }

.art-link-row .pop-v { margin-left: auto; }

.art-link-excerpt {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 24px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

/* ── Article page ─────────────────────────────────────────────────────────────── */

.art-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.art-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.art-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}

.art-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.art-meta-sep { color: #D1D5DB; }

/* Article action bar (Follow / Share / Print) */
.act-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.act-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.act-btn--active {
  border-color: var(--gold);
  color: #8B6914;
  background: var(--gold-lt);
}

/* Article body */
.art-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  font-weight: 400;
}

.art-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 14px;
  line-height: 1.3;
}

.art-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 26px 0 12px;
  line-height: 1.3;
}

.art-body p { margin-bottom: 16px; }
.art-body ul, .art-body ol { margin: 14px 0 16px 22px; }
.art-body li { margin-bottom: 7px; }
.art-body a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.art-body a:hover { color: var(--gold); }

.art-body code {
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 13.5px;
  font-family: monospace;
}

.art-body pre {
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
  margin: 16px 0;
}

.art-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 10px 18px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}

.art-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 18px 0; }

.art-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.art-body th, .art-body td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; }
.art-body th { background: var(--bg); font-weight: 800; color: var(--navy); }

/* Attachments */
.att-box {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.att-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.att-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.att-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.att-link:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.att-size {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 7px;
}

/* Article labels */
.art-labels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.art-label {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: #F3F4F6;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Prev / Next navigation */
.art-pn {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.art-pn-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 46%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
  flex: 1;
}

.art-pn-item:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.art-pn-prev { align-items: flex-start; }
.art-pn-next { align-items: flex-end; }

.art-pn-dir {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.art-pn-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  text-align: inherit;
}

/* Vote */
.art-vote {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  text-align: center;
}

.art-vote p { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.vote-btns { display: flex; gap: 10px; justify-content: center; }

.vote-btn {
  height: 40px;
  padding: 0 24px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vote-btn:hover { border-color: var(--navy); color: var(--navy); }
.vote-btn.voted-yes { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.vote-btn.voted-no  { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }
.vote-thanks { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }

.art-back {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.art-back:hover { text-decoration: underline; }

/* ── Related articles ─────────────────────────────────────────────────────────── */

.related-articles {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 2px solid var(--border);
}

.related-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.related-list { list-style: none; }
.related-item { border-bottom: 1px solid var(--border); }

.related-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.12s;
}

.related-item a:hover { color: var(--navy); }
.related-item-icon { color: #C4CAD4; font-size: 13px; flex-shrink: 0; }

/* ── AI Answer box ────────────────────────────────────────────────────────────── */

.ai-answer-box {
  background: #FFFBF0;
  border: 1px solid rgba(212,175,55,0.35);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.ai-answer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 4px;
}

.ai-answer-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ai-answer-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
}

.ai-sources {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
}

.ai-sources-label { color: var(--muted); flex-shrink: 0; padding-top: 1px; }

.ai-source-link {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px dotted var(--navy);
}

.ai-source-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.ai-loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
}

.ai-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(212,175,55,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── Search page ──────────────────────────────────────────────────────────────── */

.srh-header { margin-bottom: 18px; }

.srh-header h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}

.srh-count { font-size: 14.5px; font-weight: 500; color: var(--muted); }

.srh-input-wrap {
  position: relative;
  margin-bottom: 20px;
}

.srh-input-wrap input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 18px 0 50px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
}

.srh-input-wrap input:focus { border-color: var(--navy); }

.srh-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

/* Category filter pills */
.srh-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.srh-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.srh-filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.srh-filter-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.srh-filter-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
}

.srh-filter-btn:not(.active) .srh-filter-count {
  background: var(--bg);
  color: var(--muted);
}

/* Promoted badge in search */
.srh-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #8B6914;
  background: var(--gold-lt);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 4px;
}

.srh-results { border-top: 1px solid var(--border); }
.srh-result { border-bottom: 1px solid var(--border); padding: 4px 0; }

.srh-result a { display: block; padding: 14px 0; transition: color 0.15s; }
.srh-result a:hover .srh-result-title { color: var(--navy); text-decoration: underline; }

.srh-result-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.srh-result-snippet {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.srh-result-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Empty / error states ──────────────────────────────────────────────────────── */

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  flex: 1;
}

.empty-state-icon { font-size: 40px; margin-bottom: 16px; }
.empty-state p { font-size: 15.5px; font-weight: 500; line-height: 1.65; }
.err-page { max-width: var(--max-w); margin: 0 auto; padding: 64px 5%; }

/* ── Print styles ──────────────────────────────────────────────────────────────── */

@media print {
  .inner-sidebar, .toc-col, .wc-header, .wc-footer, .act-bar, .art-vote, .art-pn, .related-articles { display: none !important; }
  .inner-main { padding: 0 !important; }
  .art-body { font-size: 12pt; line-height: 1.6; }
  .art-header h1 { font-size: 20pt; }
}

/* ── Responsive ────────────────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  :root { --sb-w: 240px; --toc-w: 180px; }
  .inner-main { padding: 32px 32px 64px; }
}

@media (max-width: 1080px) {
  :root { --sb-w: 210px; --toc-w: 0; }
  .toc-col { display: none; }
  .inner-main { padding: 28px 28px 56px; }
}

@media (max-width: 860px) {
  :root { --sb-w: 180px; }
  .hero h1 { font-size: 36px; }
  .inner-main { padding: 24px 24px 48px; }
  .blocks-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 640px) {
  .inner-wrap { flex-direction: column; }
  .inner-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0 12px;
    overflow: visible;
  }
  .inner-main { padding: 24px 20px 48px; }
  .hero h1 { font-size: 28px; }
  .hero { min-height: 260px; padding: 48px 20px; }
  .hero p { font-size: 15px; }
  .cw { padding: 0 16px; }
  .contact-cta { flex-direction: column; align-items: flex-start; }
  .art-header h1 { font-size: 24px; }
  .blocks-list { grid-template-columns: 1fr 1fr; }
  .hero-lang-wrap { top: 12px; right: 16px; }
  .art-pn { flex-direction: column; }
  .art-pn-item { max-width: 100%; }
}

@media (max-width: 400px) {
  .blocks-list { grid-template-columns: 1fr; }
}
