/* Shared reading layout for Apex service pages and Insights guides. */
:root {
  color-scheme: dark;
  --bg: #10140b;
  --surface: #191f12;
  --line: #394130;
  --ink: #ede8db;
  --muted: #bfbcaa;
  --accent: #ebd9a6;
  --gold: #c99a3b;
  font-family: "Inter Tight", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: white; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; transform: translateY(-200%); background: var(--bg); padding: .5rem; }
.skip:focus { transform: none; }
header, footer { max-width: 71rem; margin: auto; padding: 1rem; }
.mast, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mast { min-height: 3.6rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 650; line-height: 1.2; text-decoration: none; }
main { max-width: 55rem; margin: auto; padding: clamp(1.5rem,5vw,4rem) clamp(1rem,4vw,3rem) 3rem; }
.trail ol, footer nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; }
.trail ol { margin: 0 0 1.5rem; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.trail li + li::before { content: "/"; margin-right: .8rem; color: var(--muted); }
h1, h2 { line-height: 1.14; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.25rem,6vw,4rem); letter-spacing: -.045em; }
.intro { margin: 1rem 0; font-size: clamp(1.15rem,2.5vw,1.45rem); color: var(--muted); }
.byline { color: var(--accent); font-size: .92rem; }
.copy { margin-top: 2rem; font-size: 1.1rem; }
h2 { margin: 2rem 0 .75rem; font-size: clamp(1.4rem,3vw,1.9rem); letter-spacing: -.025em; }
.copy p { margin: .85rem 0; }
.copy ul, .next ul { padding-left: 1.25rem; }
.copy li + li, .next li + li { margin-top: .5rem; }
table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: 1rem; }
th, td { padding: .7rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
thead { color: var(--accent); background: var(--surface); }
tbody th { width: 32%; }
.numbers th:not(:first-child), .numbers td { text-align: right; font-variant-numeric: tabular-nums; }
.source { font-size: .92rem; }
.next { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }
.cta { display: inline-block; max-width: 100%; padding: .7rem 1.2rem; border-radius: 1.6rem; background: linear-gradient(100deg,var(--gold),var(--accent)); color: #17130c; text-decoration: none; font-weight: 700; line-height: 1.35; }
.cta:hover { color: #17130c; text-decoration: underline; }
footer { flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 420px) { .mast { gap: .4rem; padding: .45rem .65rem; } .brand { font-size: .92rem; } th, td { padding: .5rem .35rem; } }
