/* Alia Growth /learn. Brand values match Ai.Alia.Asia/public/business-review.css
   (paper #fbfaf7, ink #292631, indigo #342d75, kicker #514777, gold #ffe18d).
   Mobile-first, large type for older readers, WCAG AA contrast throughout. */
:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #292631;
  --muted: #4f4b58;
  --indigo: #342d75;
  --indigo-hover: #493f92;
  --kicker: #514777;
  --gold: #ffe18d;
  --line: #dedbe5;
  --answer-bg: #f1effa;
  --draft: #8a1c1c;
  --measure: 42rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.1875rem/1.7 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
@media (min-width: 48rem) { body { font-size: 1.25rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--indigo-hover); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--indigo); color: #fff; padding: 0.75rem 1rem; z-index: 20; border-radius: 0.5rem; }
.skip:focus { top: 1rem; }

.draft-banner { background: var(--draft); color: #fff; text-align: center; padding: 0.75rem 1rem; font-size: 1rem; line-height: 1.5; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; height: auto; }
.brand span { font-weight: 650; font-size: 1.125rem; line-height: 1.1; }
.brand small { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--kicker); font-weight: 700; }
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { font-weight: 600; font-size: 1.0625rem; text-decoration: none; padding: 0.5rem 0; }
.site-header nav a:hover { text-decoration: underline; }

main { padding: 0 1rem 3rem; }
.crumbs { max-width: var(--measure); margin: 1.25rem auto 0; font-size: 1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.crumbs li + li::before { content: "\203A"; color: var(--muted); margin-right: 0.5rem; }
.crumbs [aria-current] { color: var(--muted); }

.page, .hub { max-width: var(--measure); margin: 0 auto; }
.page-head { padding-top: 1.5rem; }
.kicker { font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--kicker); margin: 0 0 0.75rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 2.875rem); font-weight: 650; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 4vw, 1.875rem); font-weight: 650; margin: 2.75rem 0 1rem; }
h3 { font-size: 1.3125rem; font-weight: 650; margin: 2rem 0 0.75rem; }
p, ul, ol, dl, table, blockquote, pre { margin: 0 0 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li > ul, .prose li > ol { margin: 0.5rem 0 0; }

.answer { background: var(--answer-bg); border-left: 6px solid var(--indigo); border-radius: 0 0.75rem 0.75rem 0; padding: 1.125rem 1.25rem; margin: 0 0 1.25rem; }
.answer-label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kicker); margin: 0 0 0.375rem; }
.answer-text { font-size: 1.1875rem; line-height: 1.6; margin: 0; }
@media (min-width: 48rem) { .answer-text { font-size: 1.3125rem; } }
.byline { font-size: 1rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 0.5rem; }

.checklist { list-style: none; padding-left: 0 !important; }
.check-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.625rem 0.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; }
.check-box { font-size: 1.375rem; line-height: 1.2; color: var(--indigo); flex: none; }
.check-text > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--card); }
table { border-collapse: collapse; width: 100%; margin: 0; font-size: 1.0625rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--indigo); color: #fff; font-weight: 650; }
tbody th { font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
.align-center { text-align: center; } .align-right { text-align: right; }
/* Narrow screens: each row becomes a card with its column labels, so nothing scrolls sideways. */
@media (max-width: 40rem) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tr { background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; margin-bottom: 0.875rem; }
  .table-wrap tbody th { background: var(--answer-bg); border-radius: 0.5rem 0.5rem 0 0; }
  .table-wrap td { border-bottom: 1px solid var(--line); }
  .table-wrap td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.9375rem; color: var(--kicker); }
  .table-wrap tr > :last-child { border-bottom: 0; }
}

blockquote { border-left: 4px solid var(--gold); padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.9em; background: #efedf3; padding: 0.1em 0.3em; border-radius: 0.25rem; }
pre { overflow-x: auto; background: #efedf3; padding: 1rem; border-radius: 0.5rem; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.sources { margin-top: 3rem; border-top: 1px solid var(--line); }
.sources ol { padding-left: 1.5rem; font-size: 1.0625rem; }
.sources li { margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.related ul { padding-left: 1.25rem; }
.related li { margin-bottom: 0.5rem; }
.rel-kind { color: var(--muted); font-size: 0.9375rem; }

.cta-block { margin-top: 3rem; background: var(--indigo); color: #fff; border-radius: 1rem; padding: 1.75rem 1.25rem; }
.cta-block h2 { color: #fff; margin-top: 0.25rem; }
.cta-kicker { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0; }
.cta-button { display: inline-block; background: var(--gold); color: #1f1a44; font-weight: 700; font-size: 1.125rem; text-decoration: none; padding: 0.95rem 1.4rem; border-radius: 0.75rem; min-height: 48px; }
.cta-button:hover { background: #fff; color: #1f1a44; }
.cta-block :focus-visible { outline-color: var(--gold); }

.hub-intro { font-size: 1.25rem; color: var(--muted); }
.hub-section { margin-top: 2.5rem; }
.hub-desc { color: var(--muted); }
.hub h2 a { text-decoration: none; color: var(--ink); }
.hub h2 a:hover { text-decoration: underline; }
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.125rem 1.25rem; }
.card h3 { margin: 0 0 0.375rem; font-size: 1.25rem; }
.card p { margin: 0 0 0.5rem; }
.card-kind { font-size: 0.9375rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.glossary .term { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 650; font-size: 1.25rem; }
.glossary dd { margin: 0.25rem 0 0; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 1rem 2.5rem; font-size: 1rem; color: var(--muted); display: grid; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--ink); }
.footer-brand { font-weight: 700; text-decoration: none; font-size: 1.125rem; }
.footer-note { margin: 0; }
@media (min-width: 64rem) {
  .site-header, .site-footer { padding-left: max(1.5rem, calc((100vw - 72rem) / 2)); padding-right: max(1.5rem, calc((100vw - 72rem) / 2)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .site-header nav, .cta-block, .skip, .draft-banner { display: none; }
  body { background: #fff; font-size: 12pt; }
  a { color: inherit; }
}
