:root {
  --navy: #00529B;          /* primary nav / brand blue */
  --navy-dark: #023d72;
  --navy-deep: #0f2747;
  --accent-orange: #ed7d31;
  --text: #1c2733;
  --muted: #5a6b7b;
  --border: #d4dbe3;
  --bg: #eef1f5;
  --grey-bar: #e7eaee;

  /* Company tag colors (sampled from the deck) */
  --tag-dsac-out: #c81ede;  /* DSAC member outside FO AOR */
  --tag-dsac-in:  #1f6fc4;  /* DSAC member within FO AOR */
  --tag-kp:       #1f8a1f;  /* Key Partner */
  --tag-fortune:  #7f7f7f;  /* Fortune # */
  --tag-sp:       #f0b400;  /* S&P 500 */
  --tag-et:       #5f7d95;  /* Emerging Tech */
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}
a { color: var(--navy); }

/* ---------- Classification banner ---------- */
.classification {
  background: #2c5e2e; color: #fff; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; padding: 3px 0;
}

/* ---------- Branding header ---------- */
.brand-header {
  display: flex; align-items: center; gap: 22px;
  padding: 12px 26px; background: #fff;
  border-bottom: 1px solid var(--border);
}
.brand-header .seal { height: 64px; width: auto; }
.brand-header .portal-banner { height: 58px; width: auto; }

/* ---------- Navigation bar ---------- */
nav.main-nav {
  background: var(--navy); color: #fff;
  display: flex; align-items: stretch; padding: 0 14px;
  min-height: 44px; flex-wrap: wrap;
}
nav.main-nav .nav-left, nav.main-nav .nav-right { display: flex; align-items: stretch; }
nav.main-nav .nav-left { flex: 1 1 auto; }
nav.main-nav .nav-right { align-items: center; gap: 4px; }

nav.main-nav a, nav.main-nav .nav-item {
  color: #eaf0f7; text-decoration: none; font-size: 13.5px;
  padding: 0 13px; display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: background .15s, border-color .15s;
}
nav.main-nav a:hover, nav.main-nav .nav-item:hover {
  background: var(--navy-dark); border-bottom-color: var(--accent-orange);
}
nav.main-nav a.active {
  background: #1e6fc0; border-bottom-color: var(--accent-orange); font-weight: 600;
}
nav.main-nav .home-icon { font-size: 16px; }
nav.main-nav .greeting {
  font-size: 13.5px; font-weight: 600; padding: 0 10px; color: #fff; white-space: nowrap;
}
nav.main-nav .icon-btn { font-size: 15px; padding: 0 9px; }
nav.main-nav .badge {
  background: var(--accent-orange); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 10px; padding: 1px 6px; margin-left: 2px;
}

/* ---------- Page sub-header (grey bar) ---------- */
.sub-header {
  background: var(--grey-bar); border-bottom: 1px solid var(--border);
  padding: 10px 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sub-header .page-name { font-size: 17px; font-weight: 600; color: #333; }
.sub-header label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.sub-header select, .sub-header .fake-select {
  min-width: 180px; padding: 6px 10px; border: 1px solid #b9c2cc;
  border-radius: 3px; background: #fff; font-size: 13px; color: var(--text);
}
.sub-header .spacer { flex: 1 1 auto; }

/* ---------- Big landing search ---------- */
.search-section { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 26px; }
.search-wrap { position: relative; max-width: 760px; }
.search-wrap input {
  width: 100%; padding: 11px 44px 11px 16px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 4px; outline: none; color: var(--text);
}
.search-wrap input::placeholder { color: #9aa7b4; }
.search-wrap input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,82,155,0.15); }
.search-wrap .search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; font-size: 18px; color: var(--navy); cursor: pointer; padding: 6px 8px;
}
.search-results {
  list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--border);
  border-radius: 4px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: none; max-width: 760px; overflow: hidden; position: absolute; width: 100%; z-index: 20;
}
.search-results li { padding: 10px 16px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #eef1f5; }
.search-results li:last-child { border-bottom: none; }
.search-results li:hover { background: #f0f4f9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
  font-size: 13px; padding: 7px 14px; border-radius: 4px; text-decoration: none;
}
.btn-blue { background: #2f7fd1; color: #fff; }
.btn-blue:hover { background: #1e6fc0; }
.btn-grey { background: #9aa7b4; color: #fff; }
.btn-grey:hover { background: #7f8c99; }
.btn-ghost { background: #fff; border: 1px solid #b9c2cc; color: var(--text); }

/* ---------- Content shell ---------- */
.content { max-width: 1320px; margin: 0 auto; padding: 22px 26px 48px; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title { font-size: 24px; color: var(--navy); margin: 0 0 4px; }
.page-subtitle { font-size: 14px; color: var(--muted); margin: 0 0 22px; max-width: 780px; line-height: 1.55; }
h2.section-title { color: var(--navy); font-size: 18px; margin: 26px 0 12px; }

/* ---------- Landing overview ---------- */
.content-grid { display: flex; flex-direction: column; gap: 22px; }
.overview {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent-orange);
  border-radius: 6px; padding: 18px 22px;
}
.overview h2 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.overview p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.overview p:last-child { margin-bottom: 0; }
.hero { border-radius: 6px; overflow: hidden; box-shadow: 0 4px 18px rgba(15,31,58,0.18); border: 1px solid var(--border); }
.hero img { display: block; width: 100%; height: auto; }

/* ---------- Listing layout (Explore / Field Office / Countries) ---------- */
.list-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.filter-sidebar {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px;
  font-size: 13px; position: sticky; top: 10px; max-height: calc(100vh - 30px); overflow: auto;
}
.filter-sidebar .ident {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 6px; padding: 10px; margin-bottom: 14px;
}
.filter-sidebar .ident img { max-width: 100%; height: auto; border-radius: 4px; }
.filter-group { margin-bottom: 16px; }
.filter-group h4 { margin: 0 0 8px; font-size: 13px; color: var(--navy); border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.filter-group label { display: flex; align-items: center; gap: 7px; padding: 3px 0; color: var(--text); cursor: pointer; }
.filter-group label .cnt { margin-left: auto; background: #6c7a89; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 7px; }
.filter-group label a { text-decoration: none; }

.list-main { min-width: 0; }
.list-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.list-tabs .tab {
  padding: 8px 18px; font-size: 14px; cursor: pointer; border: 1px solid transparent; border-bottom: none;
  border-radius: 6px 6px 0 0; color: var(--muted); background: transparent;
}
.list-tabs .tab.active { background: #fff; border-color: var(--border); color: var(--navy); font-weight: 600; margin-bottom: -1px; }

.list-toolbar {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.list-toolbar .total { font-size: 13px; }
.list-toolbar .total b { color: var(--navy); }
.list-toolbar .spacer { flex: 1 1 auto; }
.filters-applied { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.filters-applied i { color: #8a96a3; }
.pagination-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: right; }

/* ---------- Company table ---------- */
.company-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; font-size: 13px; }
.company-table th { background: #f4f6f9; color: var(--navy); text-align: left; padding: 9px 12px; font-size: 12.5px; border-bottom: 2px solid var(--border); }
.company-table td { padding: 7px 12px; border-top: 1px solid #eef1f5; vertical-align: middle; }
.company-table tbody tr:nth-child(even) { background: #f7f9fb; }
.company-table tbody tr:hover { background: #eef4fb; }
.company-table a { text-decoration: none; }
.company-table a:hover { text-decoration: underline; }

/* ---------- Tag pills ---------- */
.tag {
  display: inline-block; color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 11px; white-space: nowrap; line-height: 1.5;
}
.tag-dsac-out { background: var(--tag-dsac-out); }
.tag-dsac-in  { background: var(--tag-dsac-in); }
.tag-kp       { background: var(--tag-kp); }
.tag-fortune  { background: var(--tag-fortune); }
.tag-sp       { background: var(--tag-sp); color: #4a3a00; }
.tag-et       { background: var(--tag-et); }

/* ---------- Tag legend ---------- */
.tag-legend { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; }
.tag-legend .tag { justify-self: start; }
.tag-legend p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Generic data table (admin, dashboard lists) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; font-size: 13.5px; }
.data-table th { background: var(--navy); color: #fff; text-align: left; padding: 10px 13px; font-weight: 600; }
.data-table td { padding: 9px 13px; border-top: 1px solid var(--border); }
.data-table tbody tr:hover { background: #eef4fb; }
.data-table .actions a { margin-right: 8px; }

/* ---------- Company Overview layout ---------- */
.overview-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.co-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; font-size: 13px; }
.co-sidebar .logo-box { border: 1px solid var(--border); border-radius: 6px; padding: 14px; text-align: center; margin-bottom: 14px; }
.co-sidebar .logo-box img { max-width: 100%; height: auto; }
.co-sidebar h4 { margin: 14px 0 6px; font-size: 12.5px; color: var(--navy); }
.co-sidebar ul { margin: 0; padding-left: 16px; }
.co-sidebar li { margin: 3px 0; }
.co-sidebar a { text-decoration: none; }

.co-main { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; position: relative; }
.co-main .co-title { font-size: 22px; color: #222; margin: 0 0 12px; }
.co-main .pdf-btn { position: absolute; top: 18px; right: 20px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs .tab { padding: 8px 16px; cursor: pointer; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs .tab.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--accent-orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.co-flex { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.co-body p { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.exec-name { font-size: 16px; color: var(--navy); margin: 0 0 4px; }
.exec-list .exec-row { padding: 8px 0; border-bottom: 1px solid #eef1f5; font-size: 13.5px; }
.exec-list .exec-row b { color: var(--text); }

.info-box { background: #f7f9fb; border: 1px solid var(--border); border-radius: 6px; padding: 14px; font-size: 12.5px; }
.info-box h4 { margin: 0 0 8px; font-size: 13px; color: var(--navy); }
.info-box .row { display: flex; justify-content: space-between; padding: 3px 0; }
.info-box .muted { color: var(--muted); font-style: italic; }

/* ---------- Collapsible sections (Legat) ---------- */
.collapse { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.collapse > summary {
  cursor: pointer; padding: 14px 18px; font-size: 14px; color: var(--text);
  background: #eef2f6; list-style: none; font-weight: 600;
}
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary::before { content: "+"; display: inline-block; width: 18px; color: var(--navy); font-weight: 700; }
.collapse[open] > summary::before { content: "\2212"; }
.collapse .collapse-body { padding: 14px 18px; }

/* ---------- Dashboard ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 6px; padding: 16px 20px; text-align: center; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--navy); display: block; }
.stat-card .stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: block; }

.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; }
.chart-card h3 { margin: 0 0 14px; font-size: 14px; color: var(--navy); text-align: center; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 42px; align-items: center; gap: 8px; margin: 5px 0; font-size: 12px; }
.bar-row .bar-label { color: var(--text); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar-track { background: #eef1f5; border-radius: 3px; height: 14px; }
.bar-row .bar-fill { background: var(--navy); height: 14px; border-radius: 3px; }
.bar-row.alt .bar-fill { background: #2e8b57; }
.bar-row .bar-val { color: var(--muted); font-size: 11px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 6px; padding: 16px 18px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 18px rgba(15,31,58,0.12); transform: translateY(-2px); }
.card .card-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.card h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.card a.card-link { font-size: 13px; font-weight: 600; color: var(--accent-orange); text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

/* ---------- FAQ / accordions ---------- */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.panel summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px; color: var(--navy); list-style: none; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::before { content: "\25B8"; display: inline-block; margin-right: 10px; color: var(--accent-orange); transition: transform .15s; }
.panel[open] summary::before { transform: rotate(90deg); }
.panel .panel-body { padding: 0 18px 16px 40px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Modals ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,31,58,0.45); display: none; align-items: flex-start; justify-content: center; padding-top: 80px; z-index: 100; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; width: 560px; max-width: 92%; border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,0.3); overflow: hidden; }
.modal-header { background: #2f7fd1; color: #fff; padding: 12px 18px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.modal-header .close { cursor: pointer; font-size: 18px; background: none; border: none; color: #fff; }
.modal-body { padding: 18px; font-size: 13.5px; }
.modal-body label { display: block; font-weight: 600; margin: 12px 0 5px; font-size: 13px; }
.modal-body input, .modal-body select, .modal-body textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #b9c2cc; border-radius: 4px; font-size: 13px; font-family: inherit;
}
.modal-body .req { color: var(--muted); font-weight: 400; font-style: italic; }
.modal-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Misc ---------- */
.mock-note { background: #fff8f0; border: 1px dashed var(--accent-orange); border-radius: 6px; padding: 12px 16px; font-size: 12.5px; color: #8a5a2b; margin-top: 28px; }
.bullet-list { font-size: 14px; line-height: 1.7; color: var(--text); }

footer.site-footer { background: var(--navy-deep); color: #c5d2e2; text-align: center; font-size: 12px; padding: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .list-layout, .overview-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; max-height: none; }
  .co-flex { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .brand-header { flex-wrap: wrap; gap: 12px; }
  nav.main-nav .nav-left { flex-wrap: wrap; }
}
