/* ==========================================================================
   AmortGrid — Design System
   A dependency-free, mobile-first design system for financial calculators.
   Performance is a ranking factor: no web fonts, no frameworks, no layout shift.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f4;
  --surface-invert: #0d1b2a;

  /* Text */
  --text: #16202b;
  --text-muted: #5b6b7c;
  --text-faint: #8494a4;
  --text-invert: #ffffff;
  --text-invert-muted: #a8b8c8;

  /* Lines */
  --border: #e0e4ea;
  --border-strong: #c8d0da;
  --border-invert: #22344a;

  /* Brand — deep navy carries trust, gold carries "money" */
  --brand: #0d1b2a;
  --brand-2: #16324f;
  --accent: #b08d2e;
  --accent-hover: #96771f;
  --accent-soft: #fbf4e2;

  /* Semantic */
  --success: #0f7b52;
  --success-soft: #e6f5ef;
  --warning: #a86a00;
  --warning-soft: #fdf3e2;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --info: #1c5d99;
  --info-soft: #eaf2fa;

  /* Chart series — distinguishable in grayscale and for common CVD types */
  --series-1: #16324f;
  --series-2: #b08d2e;
  --series-3: #2f8f6f;
  --series-4: #8a5a9e;
  --series-5: #c4622d;

  /* Spacing scale (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  /* Type scale (fluid, no CLS) */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --t-3xl: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);

  /* Radius */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --r-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow: 0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 8px 24px rgba(13, 27, 42, 0.12);

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 760px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 var(--s-3);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); margin-top: var(--s-6); }
h3 { font-size: var(--t-xl); margin-top: var(--s-5); }
h4 { font-size: var(--t-lg); margin-top: var(--s-4); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--info); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

img, svg, canvas { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }
li:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-6) 0;
}

/* Visible focus for keyboard users — accessibility is a quality signal */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: var(--text-invert);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

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

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--s-7); }
.section-tight { padding-block: var(--s-5); }

.stack > * + * { margin-top: var(--s-4); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: var(--text-invert);
  border-bottom: 1px solid var(--border-invert);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 800;
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  color: var(--text-invert);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--text-invert); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--brand);
  font-size: var(--t-sm);
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--t-sm);
}
.site-nav a {
  color: var(--text-invert-muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text-invert); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-invert);
  border-radius: var(--r-full);
  overflow: hidden;
}
.lang-switch a {
  padding: 2px var(--s-3);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-invert-muted);
}
.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: var(--brand);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--brand);
  color: var(--text-invert-muted);
  padding-block: var(--s-6);
  margin-top: var(--s-8);
  font-size: var(--t-sm);
}
.site-footer a { color: var(--text-invert-muted); }
.site-footer a:hover { color: var(--text-invert); }
.site-footer__cols {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: var(--s-5);
}
.site-footer h4 {
  color: var(--text-invert);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer__legal {
  border-top: 1px solid var(--border-invert);
  padding-top: var(--s-4);
  font-size: var(--t-xs);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* --- Breadcrumbs --------------------------------------------------------- */
.breadcrumbs {
  font-size: var(--t-sm);
  color: var(--text-faint);
  padding-block: var(--s-3);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 0;
  margin: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: var(--s-2);
  color: var(--border-strong);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--text-invert);
  padding-block: var(--s-7);
}
.hero h1 { color: var(--text-invert); max-width: 20ch; }
.hero p {
  color: var(--text-invert-muted);
  font-size: var(--t-lg);
  max-width: 62ch;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  font-size: var(--t-sm);
  color: var(--text-invert-muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__trust span::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* --- Calculator tool shell ---------------------------------------------- */
.tool {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .tool { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.panel--muted { background: var(--surface-2); }

.panel__title {
  font-size: var(--t-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 var(--s-4);
}

/* --- Forms --------------------------------------------------------------- */
.field { margin-bottom: var(--s-4); }
.field:last-of-type { margin-bottom: 0; }

.field__label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--text);
}

.field__hint {
  display: block;
  font-size: var(--t-xs);
  color: var(--text-faint);
  margin-top: var(--s-1);
  font-weight: 400;
}

.input-group { position: relative; display: flex; align-items: center; }

.input-group__affix {
  position: absolute;
  color: var(--text-faint);
  font-size: var(--t-sm);
  font-weight: 600;
  pointer-events: none;
}
.input-group__affix--prefix { left: var(--s-3); }
.input-group__affix--suffix { right: var(--s-3); }

input[type="number"],
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--t-base);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: var(--s-3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  /* 16px minimum prevents iOS zoom-on-focus */
  min-height: 44px;
}

.input-group--prefix input { padding-left: 2rem; }
.input-group--suffix input { padding-right: 2.5rem; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b7c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  background-size: 12px;
  padding-right: var(--s-6);
}

.field__error {
  display: none;
  font-size: var(--t-xs);
  color: var(--danger);
  margin-top: var(--s-1);
  font-weight: 600;
}
.field__error[data-visible="true"] { display: block; }

/* Range slider paired with a number input */
.range-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: var(--s-3);
  align-items: center;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 44px;
  margin: 0;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: inherit;
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1;
  padding: var(--s-3) var(--s-5);
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--brand); }
.btn--primary:hover { background: var(--accent-hover); color: var(--brand); }
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--block { width: 100%; }
.btn--sm { font-size: var(--t-sm); padding: var(--s-2) var(--s-3); min-height: 36px; }

.btn-row {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

/* --- Result cards -------------------------------------------------------- */
.result-hero {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--text-invert);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
}
.result-hero__label {
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-invert-muted);
  margin-bottom: var(--s-1);
}
.result-hero__value {
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  /* Reserve space so digit changes never shift layout */
  font-variant-numeric: tabular-nums;
}
.result-hero__sub {
  font-size: var(--t-sm);
  color: var(--text-invert-muted);
  margin-top: var(--s-2);
}

.metrics {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: var(--s-4);
}
.metric {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-3) var(--s-4);
}
.metric__label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
}
.metric__value {
  font-size: var(--t-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.metric__note { font-size: var(--t-xs); color: var(--text-faint); }

.metric--highlight { background: var(--accent-soft); border-color: var(--accent); }

/* --- Charts (pure CSS/SVG, no library) ----------------------------------- */
.chart { margin-top: var(--s-5); }
.chart__title {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

.stacked-bar {
  display: flex;
  height: 28px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-3);
}
.stacked-bar__seg { height: 100%; transition: width 0.3s ease; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-3);
  font-size: var(--t-sm);
}
.legend__item { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend__swatch {
  width: 12px; height: 12px;
  border-radius: 2px;
  flex: none;
}
.legend__value { font-variant-numeric: tabular-nums; font-weight: 600; }

/* --- Tables -------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-top: var(--s-5);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
th, td {
  padding: var(--s-2) var(--s-4);
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
thead th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-muted);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

/* --- Cards / grids ------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card__title {
  font-size: var(--t-lg);
  font-weight: 700;
  margin: 0 0 var(--s-2);
  color: var(--text);
}
.card__desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.card__tag {
  align-self: flex-start;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 2px var(--s-2);
  border-radius: var(--r-full);
  margin-bottom: var(--s-3);
}

/* --- Prose (content pages) ----------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s-6); }
.prose h3 { font-size: var(--t-lg); margin-top: var(--s-5); }
.prose table { font-size: var(--t-sm); }
.prose > table { margin-block: var(--s-4); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: var(--r-sm);
}

/* --- Callouts ------------------------------------------------------------ */
.callout {
  border-left: 4px solid var(--info);
  background: var(--info-soft);
  padding: var(--s-4);
  border-radius: 0 var(--r) var(--r) 0;
  margin-block: var(--s-4);
  font-size: var(--t-sm);
}
.callout--warning { border-color: var(--warning); background: var(--warning-soft); }
.callout--success { border-color: var(--success); background: var(--success-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: var(--s-1); }

/* --- FAQ (native details, no JS, no CLS) --------------------------------- */
.faq { margin-top: var(--s-5); }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: var(--s-2);
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  padding: var(--s-3) var(--s-4);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: var(--t-xl);
  color: var(--accent);
  font-weight: 400;
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq__body { padding: var(--s-4); font-size: var(--t-sm); color: var(--text-muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* --- Ad slots ------------------------------------------------------------
   Reserved height prevents the layout shift that hurts Core Web Vitals
   (and therefore rankings). Never remove the min-height.                  */
.ad-slot {
  margin-block: var(--s-5);
  min-height: 90px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  color: var(--text-faint);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (min-width: 768px) {
  .ad-slot--leaderboard { min-height: 90px; }
  .ad-slot--rectangle { min-height: 250px; }
}

/* --- Lead magnet --------------------------------------------------------- */
.lead {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-block: var(--s-6);
}
.lead h3 { margin-top: 0; }
.lead__form {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
.lead__form input { flex: 1 1 220px; }
.lead__note { font-size: var(--t-xs); color: var(--text-muted); margin-top: var(--s-2); }

/* --- Related calculators ------------------------------------------------- */
.related { margin-top: var(--s-7); }
.related h2 { font-size: var(--t-xl); }

/* --- Table of contents --------------------------------------------------- */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-4);
  font-size: var(--t-sm);
  margin-block: var(--s-5);
}
.toc h2 { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 0 0 var(--s-3); }
.toc ol { margin: 0; padding-left: var(--s-5); }
.toc a { text-decoration: none; color: var(--text-muted); }
.toc a:hover { color: var(--brand); text-decoration: underline; }

/* --- Status / toast ------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-5);
  transform: translateX(-50%) translateY(150%);
  background: var(--brand);
  color: var(--text-invert);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  font-size: var(--t-sm);
  font-weight: 600;
  z-index: 200;
  transition: transform 0.25s ease;
  max-width: calc(100vw - 2rem);
}
.toast[data-visible="true"] { transform: translateX(-50%) translateY(0); }

/* --- Utilities ----------------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: var(--t-sm); }
.text-xs { font-size: var(--t-xs); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.numeric { font-variant-numeric: tabular-nums; }

.updated {
  font-size: var(--t-xs);
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
  margin-top: var(--s-6);
}

/* --- Print: users print amortization schedules --------------------------- */
@media print {
  .site-header, .site-footer, .ad-slot, .lead, .btn-row,
  .related, .lang-switch, .skip-link, .toc { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .panel, .result-hero, .table-scroll { box-shadow: none; border: 1px solid #999; }
  .result-hero { background: #fff !important; color: #000 !important; }
  .result-hero__label, .result-hero__sub { color: #333 !important; }
  .tool { display: block; }
  table { font-size: 9pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  thead th { position: static; }
}
