/* The public company pages and their directory (site-worker/public-pages.js).
 *
 * Plain HTML for readers who are not signed in and for search engines, so it
 * carries its own small stylesheet rather than the app's: the app's CSS is
 * written for screens drawn by script. The palette and the type scale are the
 * app's own (design.css), so a reader who signs in from here does not change
 * sites. Light by default, dark when the reader's system asks for it. */

:root {
  --bg: #EDF2F7; --surface: #FAFCFE; --ink: #192C3C; --t2: #455B6E; --faint: #556777;
  --accent: #126B75; --up: #3F6B52; --down: #A3402F;
  --rule: rgba(27, 25, 23, .10); --rule2: rgba(27, 25, 23, .06); --sunk: rgba(27, 25, 23, .035);
  --radius-island: 20px; --radius-control: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111D29; --surface: #1B2B3B; --ink: #EDF4FA; --t2: #BFCDDA; --faint: #9BADBE;
    --accent: #86CFD2; --up: #88BB9F; --down: #E89B85;
    --rule: rgba(240, 235, 229, .13); --rule2: rgba(240, 235, 229, .07); --sunk: rgba(240, 235, 229, .04);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pp-body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px; line-height: 1.6;
}
html[lang="en"] body.pp-body { font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
bdi, .pp-code, time, .pp-fig, .pp-t, .pp-p { font-variant-numeric: tabular-nums; }

.pp-top, .pp, .pp-foot { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 6px; }
.pp-brand { font-size: 17px; font-weight: 600; color: var(--ink); }
.pp-brand span { margin-inline-start: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .14em; color: var(--faint); }
.pp-nav { display: flex; gap: 14px; font-size: 14px; }

.pp { display: grid; gap: 14px; padding-bottom: 24px; }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--faint); margin-top: 6px; }
.pp-crumbs a { color: var(--t2); }

.pp-head, .pp-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-island);
  padding: 22px 24px;
}
.pp-head h1 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.pp-code {
  display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 8px;
  background: var(--sunk); font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500;
  color: var(--t2); vertical-align: middle;
}
.pp-sub, .pp-lead { margin: 8px 0 0; color: var(--t2); }
/* The name in the other language, on its own line and in its own direction,
 * so a separator never lands at the start of a wrapped line. */
.pp-alt { margin: 6px 0 0; color: var(--t2); text-align: start; }
html[dir="rtl"] .pp-alt { text-align: right; }
html[dir="ltr"] .pp-alt { text-align: left; }
.pp-alert { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-control); background: var(--sunk); color: var(--ink); }

.pp-quote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 16px; }
.pp-quote p { margin: 0; }
.pp-close { font-family: 'IBM Plex Mono', monospace; }
.pp-fig { font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.pp-cur { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif; font-size: 14px; color: var(--t2); }
.pp-move { font-family: 'IBM Plex Mono', monospace; font-size: 17px; font-weight: 500; }
.pp-when { flex-basis: 100%; font-size: 12px; color: var(--faint); }
.is-up { color: var(--up); }
.is-down { color: var(--down); }
.is-flat { color: var(--faint); }

.pp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0 0; }
.pp-facts div { padding: 10px 12px; border-radius: var(--radius-control); background: var(--sunk); }
.pp-facts dt { font-size: 12px; color: var(--faint); }
.pp-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; }

.pp-cta {
  display: inline-block; margin-top: 18px; padding: 11px 18px; border-radius: var(--radius-control);
  background: var(--accent); color: var(--surface); font-weight: 600;
}
.pp-cta:hover { text-decoration: none; filter: brightness(1.08); }
.pp-cta-note { margin: 8px 0 0; font-size: 12px; color: var(--faint); max-width: 62ch; }

.pp-card h2 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.pp-card h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.pp-card p { margin: 0; max-width: 70ch; }
.pp-src, .pp-note, .pp-none, .pp-updated { font-size: 12px; color: var(--faint); }
.pp-src { margin-top: 6px !important; }
.pp-note { margin-bottom: 10px !important; }
.pp-updated { text-align: center; }

.pp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pp-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 10px 0; border-top: 1px solid var(--rule2);
}
.pp-list li:first-child { border-top: 0; }
.pp-list time { flex: 0 0 auto; min-width: 7.5em; font-size: 12px; color: var(--faint); }
.pp-kind {
  font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--sunk); color: var(--t2);
}
.pp-title { flex: 1 1 18em; min-width: 0; overflow-wrap: anywhere; }
.pp-role { color: var(--t2); }
.pp-side { font-weight: 600; }
.pp-qty { font-family: 'IBM Plex Mono', monospace; }
.pp-pct { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif; font-size: 12px; color: var(--faint); }
.pp-doc { margin-inline-start: auto; font-size: 12px; }

.pp-peers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-peers a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--sunk); color: var(--ink); }
.pp-peers bdi { margin-inline-start: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--faint); }

.pp-sectors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pp-sectors a { padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--t2); font-size: 12px; }
.pp-sectors span, .pp-count { font-family: 'IBM Plex Mono', monospace; color: var(--faint); font-size: 12px; font-weight: 400; }
.pp-table { list-style: none; margin: 0; padding: 0; }
.pp-table a {
  display: grid; grid-template-columns: minmax(0, 1fr) 4.5em 5.5em 6em; align-items: baseline; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--rule2); color: var(--ink);
}
.pp-table li:first-child a { border-top: 0; }
.pp-table a:hover { text-decoration: none; background: var(--sunk); }
.pp-n { min-width: 0; overflow-wrap: anywhere; }
.pp-t { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--faint); }
.pp-p { font-family: 'IBM Plex Mono', monospace; text-align: end; }
.pp-c { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-align: end; }
.pp-tag { font-size: 11px; color: var(--faint); }

.pp-foot { padding-bottom: 32px; font-size: 12px; color: var(--faint); display: grid; gap: 4px; }
.pp-foot p { margin: 0; }

@media (max-width: 560px) {
  .pp-head, .pp-card { padding: 18px 16px; }
  .pp-head h1 { font-size: 21px; }
  .pp-fig { font-size: 32px; }
  .pp-table a { grid-template-columns: minmax(0, 1fr) 4.5em 5em; }
  .pp-table .pp-c { display: none; }
}
