/* Epicycle identity: white background, Arial + Courier New, ink text,
   green and yellow for shapes and rules only, never for text. */
:root {
  --green: #039E4B;
  --yellow: #F4B701;
  --ink: #111111;
  --text-green: #027A3A;
  --rule: #d9d9d9;
  --muted: #555555;
  --pale: #EBEBEB;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
.page { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
a { color: var(--text-green); }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
code, pre, .mono { font-family: 'Courier New', Courier, monospace; }

.watermark { position: fixed; right: -190px; bottom: -190px; width: 540px; height: 540px; z-index: -1; pointer-events: none; }

/* Masthead: site name left, small logo top right. */
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 0; gap: 16px; }
.masthead .site { font-weight: 700; color: var(--ink); text-decoration: none; }
.masthead img { height: 30px; width: auto; display: block; }
nav.sections { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; padding: 0 0 10px; border-bottom: 1px solid var(--rule); }
nav.sections a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
nav.sections a[aria-current="page"] { border-bottom-color: var(--green); }
nav.sections a:hover { border-bottom-color: var(--yellow); }

/* Cover (home only): traced pattern on the left. */
.cover { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 32px; }
.cover img { width: 100%; height: auto; display: block; }
.cover h1 { font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; }
.cover p { margin: 0 0 6px; font-size: 1.08rem; }

h1.page-title { font-weight: 400; font-size: 2.1rem; line-height: 1.15; letter-spacing: -0.01em; margin: 36px 0 8px; }
.lede { font-size: 1.08rem; max-width: 46rem; margin: 0 0 8px; }
h2 { font-size: 1.35rem; line-height: 1.2; margin: 48px 0 12px; padding-top: 16px; border-top: 3px solid var(--green); }
h3 { font-size: 1.05rem; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
.prose { max-width: 46rem; }
.muted, .caption { color: var(--muted); }
.caption { font-size: .85rem; margin-top: 6px; }

/* Caveat box: yellow rule, as the template's "What has been checked". */
.caveat { border-left: 3px solid var(--yellow); padding: 2px 0 2px 18px; margin: 16px 0; font-size: .93rem; max-width: 46rem; }
.caveat strong { display: block; margin-bottom: 4px; }
.caveat ul { margin: 0; padding-left: 1.1em; }

/* Key figures. */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 24px 0 8px; border-top: 1px solid var(--rule); }
.figure { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--rule); }
.figure .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.figure .value { font-size: 1.9rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.figure .note { font-size: .82rem; color: var(--muted); }

/* Tables. */
.table-wrap { overflow-x: auto; margin: 12px 0 8px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th { text-align: left; border-bottom: 2px solid var(--green); padding: 8px 14px 8px 0; vertical-align: bottom; }
td { border-bottom: 1px solid var(--rule); padding: 7px 14px 7px 0; vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.bar { width: 34%; min-width: 120px; }
.not-reported { color: var(--muted); font-style: italic; }
.label-raw { font-family: 'Courier New', Courier, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #FAFAFA; border: 1px solid var(--rule); padding: 0 4px; }

/* Charts are server-rendered SVG. */
.chart { width: 100%; height: auto; display: block; margin: 12px 0 4px; }
.chart text { font-family: Arial, Helvetica, sans-serif; font-size: 11px; fill: var(--muted); }
.chart .axis { stroke: var(--rule); stroke-width: 1; }
.chart .col { fill: var(--green); }
.chart .col-partial { fill: var(--yellow); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); }
.swatch { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 6px; }
.swatch-green { background: var(--green); }
.swatch-yellow { background: var(--yellow); }

/* Filters. */
form.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 16px 0; }
form.filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: 4px; }
form.filters select, form.filters input { font: inherit; font-size: .95rem; padding: 6px 8px; border: 1px solid #999; background: #FFFFFF; color: var(--ink); min-width: 220px; }
form.filters button { font: inherit; padding: 7px 16px; border: 2px solid var(--green); background: #FFFFFF; color: var(--ink); cursor: pointer; }
form.filters button:hover { background: var(--pale); }

/* Look-alike groups on the naming page. */
.group { border-top: 1px solid var(--rule); padding: 12px 0; }
.group ul { list-style: none; padding: 0; margin: 6px 0 0; }
.group li { margin: 3px 0; }

footer { border-top: 1px solid var(--rule); margin-top: 72px; padding: 20px 0 48px; font-size: .85rem; color: var(--muted); }
footer p { margin: 0 0 6px; }

@media (max-width: 720px) {
  .page { padding: 0 16px; }
  .cover { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .cover img { max-width: 200px; }
  .watermark { width: 360px; height: 360px; right: -130px; bottom: -130px; }
  td.bar { display: none; }
}

/* Search, explorer and interactive pieces. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-search { position: relative; display: flex; gap: 8px; margin: 16px 0 0; }
.site-search input { flex: 1; font: inherit; font-size: 1rem; padding: 9px 12px; border: 2px solid var(--green); color: var(--ink); background: #FFFFFF; min-width: 0; }
.site-search button, .filter-actions button { font: inherit; padding: 8px 18px; border: 2px solid var(--green); background: #FFFFFF; color: var(--ink); cursor: pointer; }
.site-search button:hover, .filter-actions button:hover { background: var(--pale); }
form.filters label { position: relative; }
.suggest { position: absolute; z-index: 10; top: 100%; left: 0; right: 0; list-style: none; margin: 2px 0 0; padding: 0; background: #FFFFFF; border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); max-width: 640px; }
.suggest li a { display: flex; flex-direction: column; padding: 8px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--pale); }
.suggest li.active a, .suggest li a:hover { background: var(--pale); }
.suggest-detail { font-size: .8rem; color: var(--muted); }
.chart-tip { position: absolute; z-index: 20; pointer-events: none; background: var(--ink); color: #FFFFFF; font-size: .85rem; padding: 6px 10px; max-width: 280px; }
.chart .col, .chart .col-partial { transition: opacity .1s; }
.chart a.col-link:hover rect, .chart rect:hover { opacity: .75; cursor: pointer; }
.table-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 10px 0 0; }
.table-controls input { font: inherit; font-size: .9rem; padding: 5px 8px; border: 1px solid #999; min-width: 220px; }
.link-button { font: inherit; font-size: .9rem; background: none; border: 0; padding: 0; color: var(--text-green); text-decoration: underline; cursor: pointer; }
.sort-button { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-align: inherit; }
.sort-button::after { content: " ↕"; color: var(--muted); font-weight: 400; }
th[aria-sort="ascending"] .sort-button::after { content: " ↑"; color: var(--ink); }
th[aria-sort="descending"] .sort-button::after { content: " ↓"; color: var(--ink); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.filters-grid select, .filters-grid input { min-width: 0; width: 100%; }
.filter-actions { display: flex; gap: 14px; align-items: center; }
.active-scope { padding: 8px 12px; background: #FAFAFA; border-left: 3px solid var(--green); }
.pager { display: flex; gap: 18px; align-items: center; margin: 14px 0; }
.nowrap { white-space: nowrap; }
.crumb { margin: 28px 0 0; font-size: .9rem; color: var(--muted); }
.crumb + .page-title { margin-top: 6px; }
.value a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.mono-value { font-family: 'Courier New', Courier, monospace; font-size: 1.4rem; }
table.returns td { font-size: .88rem; }
@media (max-width: 720px) {
  .site-search button { padding: 8px 12px; }
  table.returns th:nth-child(3), table.returns td:nth-child(3), table.returns th:nth-child(5), table.returns td:nth-child(5) { display: none; }
}
