/* Visual language follows tradeup.com: brand yellow, Quicksand headings, pill buttons, dark footer. */
:root {
  --brand: #ffe100;
  --brand-deep: #f5cf00;
  --brand-tint: #fff8c2;
  --ink: #191919;
  --text: rgba(0, 0, 0, .85);
  --muted: rgba(0, 0, 0, .6);
  --line: #ebebeb;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --radius: 16px;
  --display: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

a { color: var(--ink); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Pills */
.btn, .file {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-family: var(--display); font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn { padding: 8px 18px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3a3a; }

.file { padding: 5px 14px; font-size: 13px; border: 1.5px solid var(--ink); }
.file-pdf { background: var(--ink); color: #fff; }
.file-pdf:hover { background: #3a3a3a; border-color: #3a3a3a; }
.file-xml { background: #fff; color: var(--ink); }
.file-xml:hover { background: var(--brand); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--brand); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { display: block; height: 28px; width: auto; }

/* Hero */
.hero { background: var(--brand); padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: var(--brand);
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; color: var(--ink); font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -.01em;
}
.lede { margin: 14px 0 0; color: var(--ink); font-size: 19px; font-weight: 500; }

.latest {
  padding: 24px 26px; background: #fff; border-radius: 24px;
  box-shadow: 0 18px 40px rgba(120, 95, 0, .18);
}
.latest-kicker { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.latest h2 { margin: 4px 0 0; color: var(--ink); font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.15; }
.latest-period { margin: 2px 0 18px; color: var(--muted); }
.latest-files { display: flex; gap: 10px; }
.latest-files .file { flex: 1; padding: 11px 18px; font-size: 15px; }
.arrow-link {
  display: inline-block; margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 15px;
  text-decoration: none; border-bottom: 2px solid var(--brand-deep);
}
.arrow-link:hover { border-bottom-color: var(--ink); }

/* Sections */
main.wrap { padding-top: 56px; }
main section { margin-bottom: 56px; }
main h2 {
  margin: 0 0 18px; color: var(--ink);
  font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.35;
  text-decoration: underline; text-decoration-color: var(--brand);
  text-decoration-thickness: .32em; text-underline-offset: -.12em; text-decoration-skip-ink: none;
}
main p, main li { color: var(--text); }
sup a { text-decoration: none; font-weight: 700; }

.facts {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.facts li {
  padding: 18px; background: var(--bg-soft); border-radius: var(--radius);
  font-size: 15px; line-height: 1.55;
}
.facts li::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--brand-deep); }
.facts strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--display); font-size: 17px; }

.practices { padding: 28px 32px; background: var(--bg-soft); border-radius: 24px; }
.practices p:last-child { margin-bottom: 0; }

.hint { color: var(--muted); font-size: 15px; margin-top: -4px; }

/* Report table */
.reports { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.reports th, .reports td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.reports thead th {
  background: var(--ink); color: #fff; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.reports thead th:first-child { border-radius: 14px 0 0 14px; }
.reports thead th:last-child { border-radius: 0 14px 14px 0; }
.reports tbody tr:hover th, .reports tbody tr:hover td { background: var(--brand-tint); }
.reports tbody th { color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 700; width: 96px; }
.reports td .q { display: none; }
.reports td .file + .file { margin-left: 6px; }
.reports .na { color: #c4c4c4; font-weight: 700; }

.archive { margin-top: 24px; border-radius: var(--radius); background: var(--bg-soft); }
.archive summary {
  cursor: pointer; padding: 16px 20px; color: var(--ink);
  font-family: var(--display); font-size: 17px; font-weight: 700; list-style: none;
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; }
.archive[open] summary::before { content: "–"; }
.archive .reports { background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.archive .reports thead th { border-radius: 0; }
.archive .reports tr:last-child th, .archive .reports tr:last-child td { border-bottom: 0; }

.footnote { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 64px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); font-size: 14px; border-top: 4px solid var(--brand); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 32px; }
.footer-brand img { display: block; height: 28px; width: auto; }

/* Tablet */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: each year becomes a block with a 2 x 2 quarter grid */
@media (max-width: 640px) {
  .hero { padding: 36px 0 40px; }
  .latest { padding: 20px; }
  main.wrap { padding-top: 40px; }
  main h2 { font-size: 24px; }
  .facts { grid-template-columns: 1fr; }
  .practices { padding: 20px; }
  .reports thead { display: none; }
  .reports, .reports tbody, .reports tr, .reports th, .reports td { display: block; width: auto; }
  .reports tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .reports tbody tr:hover th, .reports tbody tr:hover td { background: transparent; }
  .archive .reports tr { padding: 16px 12px; }
  .archive .reports tr:last-child { border-bottom: 0; }
  .reports tbody th { grid-column: 1 / -1; padding: 0; border: 0; width: auto; }
  .reports td { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .reports td .q { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--display); font-size: 13px; font-weight: 700; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}
