/* Compoundfolio guides: shared styles for /guides/ pages. Tokens match the calculator. */
:root {
  --bg: #f3f4f6; --surface: #ffffff; --surface-2: #f6f7f9; --border: #e3e6ea;
  --text: #14181f; --text-2: #5b6472; --text-3: #667085;
  --accent: #2a78d6; --accent-ink: #1d4ed8; --accent-bg: #eaf2fd; --accent-border: #a9c8f2;
  --amber-bg: #fff7e0; --amber-border: #f1d98a; --amber-ink: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --surface: #171b22; --surface-2: #1f242d; --border: #2b323d;
    --text: #eceff4; --text-2: #a4adbb; --text-3: #8f99a8;
    --accent: #5b9bf0; --accent-ink: #8db8f7; --accent-bg: #19283d; --accent-border: #2f4d78;
    --amber-bg: #2a2310; --amber-border: #5a4a1d; --amber-ink: #e8c46a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65; -webkit-text-size-adjust: 100%;
}
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.site { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-inner { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 15px; min-height: 40px; }
.brand img { display: block; height: 28px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 6px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current=page] { color: var(--text); background: var(--surface-2); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.lang button { min-height: 36px; min-width: 44px; border: none; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--border); }
.lang button[aria-pressed=true] { background: var(--accent-bg); color: var(--accent-ink); }

.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; }
.crumbs { font-size: 13px; color: var(--text-3); margin: 0 0 12px; }
.crumbs a { color: var(--text-2); }
article h1, .index h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
.meta { color: var(--text-3); font-size: 14px; margin: 0 0 20px; }
.lede { font-size: 1.12rem; color: var(--text); margin: 0 0 24px; }
article h2 { font-size: 1.25rem; margin: 36px 0 8px; line-height: 1.3; text-wrap: balance; }
article h3 { font-size: 1.05rem; margin: 24px 0 6px; }
article p, article li { font-size: 16.5px; max-width: 68ch; }
article ul, article ol { padding-left: 22px; }
article li { margin: 4px 0; }

.keypoints { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 0 0 28px; }
.keypoints h2 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.keypoints ul { margin: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; color: var(--text-2); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; white-space: nowrap; }

.note { background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--text); border-radius: 10px; padding: 12px 16px; margin: 20px 0; font-size: 15px; }
.note strong { color: var(--amber-ink); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; background: var(--accent-bg); border: 1px solid var(--accent-border); border-radius: 12px; padding: 16px 20px; margin: 32px 0; }
.cta p { margin: 0; font-size: 15.5px; flex: 1 1 260px; min-width: 0; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }

.sources { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.sources h2 { font-size: 1rem; margin: 0 0 6px; }
.sources li, .sources p { font-size: 14px; color: var(--text-2); }
.disclaimer { font-size: 13px; color: var(--text-3); margin-top: 20px; }

.cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.cards a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.cards a:hover { border-color: var(--accent-border); }
.cards strong { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--accent-ink); }
.cards span { color: var(--text-2); font-size: 15px; }

.foot { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.foot a { color: var(--text-2); min-height: 40px; display: inline-flex; align-items: center; }
