/* Ingram Ltd - site styles */

:root {
  --black: #000;
  --text: #1f1f1f;
  --grey-1: #595959;
  --grey-2: #8c8c8c;
  --line: #d9d9d9;
  --bg-grey: #f4f4f4;
  --blue: #00548f;
  --neg: #b3261e;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--black); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; margin-top: 32px; }
p { margin: 0 0 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Utility bar */
.utility-bar { background: var(--black); color: #fff; font-size: 13px; }
.utility-bar__inner { display: flex; justify-content: flex-end; gap: 20px; padding-top: 7px; padding-bottom: 7px; }
.utility-bar__investor { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--black); text-decoration: none; font-weight: 700; font-size: 22px; }
.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 24px 0 22px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--black); }

.btn { display: inline-block; padding: 9px 18px; font: 600 15px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn--outline { border: 1px solid var(--black); color: var(--black); background: #fff; }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--solid { border: 1px solid var(--black); background: var(--black); color: #fff; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; padding: 16px 0 0; margin: 0; font-size: 14px; color: var(--grey-1); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--grey-2); }
.breadcrumb a { color: var(--grey-1); }

/* Index header */
.index-header { padding: 28px 0 32px; }
.index-header__type { font-size: 14px; color: var(--grey-1); margin-bottom: 6px; }
.index-header__desc { max-width: 760px; font-size: 18px; color: var(--grey-1); }
.key-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 28px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.key-stats div { padding: 16px 16px 16px 0; }
.key-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.key-stats dt { font-size: 14px; color: var(--grey-1); }
.key-stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 600; color: var(--black); }
.as-of { font-size: 13px; color: var(--grey-1); }

/* Tabs */
.tabs { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.tabs__inner { display: flex; gap: 28px; overflow-x: auto; }
.tabs a { color: var(--text); text-decoration: none; padding: 14px 0 12px; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; font-size: 15px; }
.tabs a.is-active { border-bottom-color: var(--black); color: var(--black); }

/* Sections */
.section { padding: 48px 0; }
.section--grey { background: var(--bg-grey); }
.section__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Chart */
.range button { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin-left: -1px; }
.range button.is-active { background: var(--black); border-color: var(--black); color: #fff; }
.chart-title { margin-top: 20px; font-size: 16px; }
.chart { position: relative; height: 340px; border-bottom: 1px solid var(--line); }
.chart svg { width: 100%; height: 100%; display: block; }
.chart__tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.12); padding: 6px 10px; font-size: 13px; white-space: nowrap; display: none; }
.chart-legend { font-size: 14px; color: var(--grey-1); margin-top: 10px; }
.swatch { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin: 0 6px 0 0; }
.swatch--index { background: var(--black); }
.swatch--ds { background: var(--grey-2); margin-left: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { font-weight: 600; color: var(--grey-1); font-size: 14px; border-bottom: 2px solid var(--black); }
.data-table tbody th { font-weight: 600; }
.data-table .neg { color: var(--neg); }
.data-table--compact { font-size: 14px; }
.data-table--compact th, .data-table--compact td { padding: 8px 6px; }
.footnote { font-size: 13px; color: var(--grey-1); margin-top: 14px; max-width: 900px; }

.facts-table { border-collapse: collapse; width: 100%; max-width: 820px; background: #fff; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 260px; font-weight: 600; }

.doc-list { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.doc-list li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc-list span { font-size: 13px; color: var(--grey-1); }

/* Footer */
.site-footer { background: var(--black); color: #d9d9d9; padding: 48px 0 32px; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer a { display: block; color: #d9d9d9; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 200px); gap: 32px; }
.site-footer__legal { border-top: 1px solid #333; margin-top: 36px; padding-top: 24px; max-width: 900px; color: #a6a6a6; font-size: 13px; }
.site-footer__legal strong { color: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal[hidden] { display: none; }
.modal__box { background: #fff; max-width: 520px; padding: 32px; }
.modal__small { font-size: 14px; color: var(--grey-1); }

@media (max-width: 900px) {
  h1 { font-size: 30px; }
  .main-nav, .site-header__cta { display: none; }
  .key-stats { grid-template-columns: repeat(2, 1fr); }
  .key-stats div + div { border-left: 0; padding-left: 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .facts-table th { width: 45%; }
}
