﻿/* BizEAC portal styles.
   Bootstrap 4 still provides the grid and utilities; this file sets the design tokens, the fonts,
   the site chrome and the home page, and restyles the Bootstrap components the pages use. */

/* Fonts ------------------------------------------------------------------ */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../lib/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../lib/fonts/bricolage-grotesque-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../lib/fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../lib/fonts/ibm-plex-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../lib/fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../lib/fonts/ibm-plex-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../lib/fonts/ibm-plex-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../lib/fonts/ibm-plex-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../lib/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../lib/fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../lib/fonts/ibm-plex-mono-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../lib/fonts/ibm-plex-mono-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Tokens ----------------------------------------------------------------- */

:root {
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ink: #0E1F1A;
  --ink-muted: #4F5F58;
  --ink-soft: #3D4C45;
  --page: #F3F5F1;
  --surface: #FFFFFF;
  --surface-sunken: #F8FAF8;
  --line: #DDE3DE;
  --line-soft: #EEF2EF;
  --line-strong: #C9D3CD;

  --brand-900: #0A3A2F;
  --brand-700: #0B6B53;
  --brand-100: #E3F0EA;
  --on-brand: #FFFFFF;
  --on-brand-muted: #C4DBD1;

  --accent: #F2B233;
  --accent-100: #FDF3DC;
  --accent-ink: #6A4300;
  --danger: #B42318;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-raised: 0 18px 40px rgba(0, 0, 0, .22);

  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
}

/* Base ------------------------------------------------------------------- */

html {
  font-size: 15px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--ink);
}

h1, .h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); letter-spacing: -.025em; }
h2, .h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.3rem; }
h4, .h4 { font-size: 1.15rem; }

a {
  color: var(--brand-700);
}

a:hover {
  color: var(--brand-900);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

hr {
  border-top-color: var(--line);
}

.text-muted {
  color: var(--ink-muted) !important;
}

.icon {
  flex: none;
  vertical-align: -.2em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

/* Site chrome ------------------------------------------------------------ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.page,
.band__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 32px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.site-nav,
.lang-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav a,
.lang-nav a {
  padding: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.lang-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.lang-nav {
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.lang-nav a {
  padding: 12px 8px;
  font-weight: 600;
}

.lang-nav a[aria-current] {
  color: var(--brand-900);
  box-shadow: inset 0 -2px 0 var(--brand-900);
}

.site-main {
  flex: 1 0 auto;
}

.site-main:focus {
  outline: none;
}

.page {
  padding-top: 32px;
  padding-bottom: 56px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* Shared pieces ---------------------------------------------------------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--line-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.badge-soft--accent {
  background: var(--accent-100);
  color: var(--accent-ink);
  font-weight: 600;
}

.badge-soft--mono {
  font-family: var(--font-mono);
}

.contact-links {
  display: inline-flex;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--ink-muted);
}

.contact-links a:hover {
  background: var(--line-soft);
  color: var(--brand-900);
}

.empty-state {
  padding: 40px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink-muted);
  text-align: center;
}

/* Bootstrap components, restyled ---------------------------------------- */

.btn {
  min-height: 44px;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-sm {
  min-height: 36px;
  padding: .3rem .85rem;
}

.btn-primary,
.btn-secondary {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: var(--on-brand);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-primary:focus,
.btn-secondary:focus {
  border-color: var(--brand-900);
  background: var(--brand-900);
  color: var(--on-brand);
}

.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover,
.btn-accent:focus {
  border-color: #E3A21F;
  background: #E3A21F;
  color: var(--ink);
}

.form-control {
  min-height: 44px;
  border-color: var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
}

.form-control-sm {
  min-height: 38px;
}

.form-control:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(11, 107, 83, .2);
}

.control-label {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
}

.table th,
.table td {
  padding: .7rem 1rem;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
}

.table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody tr:hover {
  background: var(--surface-sunken);
}

.table .contact-links {
  flex-wrap: nowrap;
}

.table .contact-links a {
  width: 36px;
  height: 36px;
}

/* Narrow screens: wide tables scroll inside their own box instead of the whole page */
@media (max-width: 767.98px) {
  .table {
    display: block;
    overflow-x: auto;
  }
}

.card {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header,
.card-footer {
  border-color: var(--line);
  background: var(--surface-sunken);
}

.card .table {
  border: 0;
  border-radius: 0;
}

.bg-light {
  background: var(--surface-sunken) !important;
}

dl.row dt {
  color: var(--ink-muted);
  font-weight: 500;
}

dl.row dd {
  overflow-wrap: anywhere;
}

.img-thumbnail {
  border-color: var(--line);
  border-radius: var(--radius-lg);
}

.text-danger {
  color: var(--danger) !important;
}

/* Home page -------------------------------------------------------------- */

.hero {
  background: var(--brand-900);
  color: var(--on-brand);
}

.hero .band__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 40px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  color: var(--on-brand);
  font-size: clamp(2.2rem, 5vw, 3.85rem);
  line-height: 1.04;
}

.hero__lead {
  max-width: 620px;
  margin: 0;
  color: var(--on-brand-muted);
  font-size: 18px;
}

.search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 920px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  color: var(--ink);
}

.search-box__field {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 10px;
  color: var(--ink-muted);
}

.search-box__field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.search-box__field input::placeholder {
  color: var(--ink-muted);
}

.search-box__field input:focus {
  outline: none;
}

.search-box__field:focus-within {
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--accent);
}

.segmented {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: var(--radius);
  background: var(--line-soft);
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.segmented input:checked + label {
  background: var(--surface);
  color: var(--brand-900);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.search-box .btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #E4EFEA;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--on-brand);
  color: var(--on-brand);
  text-decoration: none;
}

.chip__code {
  color: #9FC4B5;
  font-family: var(--font-mono);
  font-size: 12px;
}

.chip__count {
  color: #9FC4B5;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.home-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.home-body__main {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.home-body__aside {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 20px;
}

.company-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.company-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 14px;
}

.company-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.company-card__head > div:last-child {
  flex: 1;
  min-width: 0;
}

.company-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -.01em;
}

.company-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.company-card h3 a:hover {
  text-decoration: underline;
}

.company-card__meta {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 13px;
}

.company-card__body > .badge-soft {
  align-self: flex-start;
}

.company-card__news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

.company-card__news li {
  display: flex;
  gap: 10px;
}

.company-card__news time {
  flex: none;
  padding-top: 1px;
  white-space: nowrap;
  color: var(--ink-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.company-card__news a {
  color: var(--ink);
}

.company-card__none {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-size: 13px;
}

.company-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 8px;
  min-height: 48px;
  padding: 4px 12px 4px 20px;
  color: var(--ink-muted);
  font-size: 12px;
}

.company-card__foot .contact-links {
  margin-left: auto;
}

.company-card__foot .contact-links a {
  width: 32px;
  height: 32px;
}

.company-card__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line-soft);
}

.company-card__sections a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--surface-sunken);
  color: var(--ink);
  text-decoration: none;
}

.company-card__sections a:hover {
  background: var(--brand-100);
  color: var(--ink);
  text-decoration: none;
}

.company-card__sections strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.company-card__sections span {
  min-width: 0;
  color: var(--ink-muted);
  font-size: 13px;
  overflow-wrap: break-word;
}

.feed {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.feed__title {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.feed__meta {
  color: var(--ink-muted);
  font-size: 13px;
}

.feed__kicker {
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.feed--plain li {
  padding: 14px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

/* Profiles: the header and tabs of company and person pages --------------- */

.btn-outline {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-outline:hover,
.btn-outline:focus {
  border-color: var(--brand-700);
  background: var(--brand-100);
  color: var(--brand-900);
}

.btn .icon {
  vertical-align: -.25em;
}

.avatar {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-900);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.avatar--picture {
  border: 1px solid var(--line);
  background: var(--surface);
}

/* The picture covers the initials, which show again if it fails to load */
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

.avatar--lg {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  font-size: 30px;
}

.avatar--round {
  border-radius: 50%;
}

.avatar--round img {
  object-fit: cover;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 14px;
}

.crumbs li + li::before {
  content: "/";
  padding: 0 8px;
  color: var(--line-strong);
}

.crumbs a {
  color: var(--ink-muted);
}

.crumbs a:hover {
  color: var(--brand-900);
}

.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 500;
}

.profile-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.profile-head .band__inner {
  padding-top: 20px;
  padding-bottom: 28px;
}

.profile-head__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-top: 20px;
}

.profile-head__title {
  flex: 1 1 320px;
  min-width: 0;
}

.profile-head__title h1 {
  margin: 0;
  overflow-wrap: break-word;
}

.profile-head__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.profile-head__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.profile-head__name a {
  color: var(--ink);
}

.profile-head__parent {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
}

.profile-head__meta {
  margin: 6px 0 0;
  color: var(--ink-muted);
}

.profile-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tabs .band__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  color: var(--ink-muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.tabs a:hover {
  color: var(--ink);
}

.tabs a.is-active {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.tabs__count {
  padding: 0 7px;
  border-radius: 99px;
  background: var(--line-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.profile-section > h2,
.profile-section > .section-head {
  margin-bottom: 16px;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
}

.profile-foot {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

/* Profile content -------------------------------------------------------- */

.overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
  gap: 20px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

/* Each cell draws its right and bottom rule; the box clips the ones on its outer edge,
   so a short last row leaves white space rather than a grey gap */
.fact {
  min-width: 0;
  padding: 14px 18px;
  box-shadow: 1px 1px 0 var(--line-soft);
}

.fact--wide {
  grid-column: 1 / -1;
}

.fact dt {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
}

.fact dd {
  margin: 2px 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.identifiers h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.identifiers dl {
  margin: 0;
}

.identifiers dl > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
}

.identifiers dt {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
}

.identifiers dd {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.identifiers__value {
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-muted);
}

.copy-btn:hover {
  background: var(--line-soft);
  color: var(--brand-900);
}

.copy-btn.is-copied {
  color: var(--brand-700);
}

.people-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.people-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.people-list li.is-former {
  background: var(--surface-sunken);
}

.people-list li.is-former .avatar {
  background: var(--line-soft);
  color: var(--ink-muted);
}

.people-list__text {
  min-width: 0;
}

.people-list__name {
  color: var(--ink);
  font-weight: 600;
}

.people-list__name span {
  color: var(--ink-muted);
  font-weight: 500;
}

.people-list__role {
  color: var(--ink-muted);
  font-size: 13px;
}

.people-list__role a {
  color: var(--ink-muted);
}

.ownership-bar {
  display: flex;
  height: 40px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-soft);
}

.ownership-bar__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ownership-bar__segment + .ownership-bar__segment {
  border-left: 2px solid var(--surface);
}

.swatch-0 { background: var(--brand-900); color: var(--on-brand); }
.swatch-1 { background: var(--brand-700); color: var(--on-brand); }
.swatch-2 { background: var(--accent); color: var(--ink); }
.swatch-3 { background: #4E8F78; color: var(--on-brand); }
.swatch-4 { background: #A9CDBE; color: var(--ink); }

.swatch-others,
.ownership-bar__segment--others {
  background: repeating-linear-gradient(135deg, var(--line) 0 6px, var(--line-soft) 6px 12px);
  color: var(--ink-soft);
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 3px;
  vertical-align: -1px;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table tbody th,
.table tfoot th {
  font-weight: 500;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.news-list li:first-child {
  padding-top: 0;
}

.date-block {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 64px;
  padding: 8px 4px;
  border-radius: var(--radius);
  background: var(--brand-100);
  color: var(--brand-900);
  text-align: center;
}

.date-block__day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.date-block__month {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.news-list__text {
  min-width: 0;
}

.news-list__title {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.news-list__summary {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.job-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.job-card.is-closed {
  background: var(--surface-sunken);
}

.job-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.job-card h3 a {
  color: var(--ink);
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--ink-muted);
  font-size: 13px;
}

/* A single record: a news item, a vacancy, a manager, a shareholding */

.record {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 820px;
}

.record h1 {
  margin: 0;
}

.record > .facts {
  align-self: stretch;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
}

.record__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.55;
}

.record__subtitle {
  margin: 0;
  color: var(--ink-muted);
}

.record__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record__person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.name-prefix {
  color: var(--ink-muted);
  font-weight: 500;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat {
  min-width: 160px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat__label {
  color: var(--ink-muted);
  font-size: 13px;
}

/* Lists: companies, people, a country's companies ------------------------- */

.list-head {
  margin-bottom: 20px;
}

.list-head h1 {
  margin: 4px 0 0;
}

.list-head .crumbs {
  margin-bottom: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.filter-bar__search {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-muted);
}

.filter-bar__search:focus-within {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(11, 107, 83, .2);
}

.filter-bar__search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: none;
  color: var(--ink);
}

.filter-bar__search input:focus {
  outline: none;
}

.filter-bar__count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  white-space: nowrap;
}

.filter-bar__count select {
  width: auto;
}

.result-count {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.entity-table tbody th {
  font-weight: 400;
}

.entity-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.entity-cell .avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
}

.entity-cell .avatar--round {
  border-radius: 50%;
}

.entity-cell__name {
  color: var(--ink);
  font-weight: 600;
}

.entity-cell__sub {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.nowrap {
  white-space: nowrap;
}

/* Person profile --------------------------------------------------------- */

.profile-body--split {
  flex-flow: row wrap;
  align-items: flex-start;
}

.profile-body__main {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.profile-body__aside {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 0 0 22px 28px;
}

/* The dot marks the role, the line joins it to the next one */
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--brand-700);
  border-radius: 50%;
  background: var(--surface);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: 2px;
  width: 1px;
  background: var(--line-strong);
}

.timeline li:last-child::after {
  display: none;
}

.timeline li.is-former::before {
  border-color: var(--line-strong);
}

.timeline__text {
  min-width: 0;
}

.timeline__position {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline__period {
  color: var(--ink-muted);
  font-size: 14px;
  white-space: nowrap;
}

.holding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.holding-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.holding-card .entity-cell {
  min-width: 0;
}

.holding-card__stats {
  display: flex;
  gap: 24px;
}

.holding-card__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.holding-card__label,
.holding-card__date {
  color: var(--ink-muted);
  font-size: 13px;
}

.mini-people {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-people li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-people a {
  color: var(--ink);
  font-weight: 600;
}

.mini-people .text-muted {
  font-size: 13px;
}

/* Status page: 404 and other errors -------------------------------------- */

.status-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 0 24px;
  text-align: center;
}

.status-page__code {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 18vw, 9rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--brand-900);
}

/* The amber bar echoes the dot in the logo */
.status-page__code::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin: 18px auto 20px;
  border-radius: 3px;
  background: var(--accent);
}

.status-page h1 {
  margin: 6px 0 0;
}

.status-page__lead {
  margin: 12px auto 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.status-page__search {
  margin-top: 28px;
  text-align: left;
}

.status-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* Print ------------------------------------------------------------------ */

@media print {
  .hidden-print,
  .site-nav,
  .skip-link {
    display: none !important;
  }

  body {
    background: #FFFFFF;
  }
}
