/* Shared styles for every ai-sites site. Each site sets --accent, --accent-dark and --tint (in the layout) and can
   add its own /site.css. Text on --accent is always white, so the accent must be dark enough (tested). */
:root {
  --bg: #ffffff;
  --text: #1c2024;
  --muted: #5a636d;
  --line: #dde2e7;
  --card: #f6f8fa;
  --link: var(--accent-dark);
  --on-accent: #ffffff;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --text: #e9edf1;
    --muted: #a3adb8;
    --line: #2e353c;
    --card: #1d2227;
    --link: color-mix(in srgb, var(--accent) 40%, #ffffff);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand svg { display: block; height: 32px; width: auto; flex: none; }
.main-nav { display: flex; gap: 4px 20px; font-size: 0.95rem; align-items: center; }
.main-nav a { color: var(--text); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 6px; }
.main-nav .nav-cta { background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--accent-dark); color: var(--on-accent); text-decoration: none; }
@media (max-width: 760px) {
  /* phones: the menu scrolls sideways under the logo instead of wrapping into a wall of links */
  .main-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav .nav-cta { order: -1; }
}

main { min-height: 60vh; }
.article-wrap { padding-top: 24px; padding-bottom: 56px; }
.page-body { max-width: 720px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0.1em 0 0.35em; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 1.8em 0 0.5em; scroll-margin-top: 16px; }
h3 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }
.page-head { max-width: 760px; margin-bottom: 8px; }
.page-head .lede { font-size: 1.2rem; color: var(--text); margin: 0 0 12px; }
.byline { color: var(--muted); font-size: 0.85rem; margin: 0 0 24px; }
.byline a { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--text); }
.disclosure { font-size: 0.85rem; color: var(--muted); }
.muted, small { color: var(--muted); }
.toc { max-width: 720px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 28px; font-size: 0.95rem; }
.toc-title { font-weight: 650; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 2px 0; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
/* Wide screens: the contents box becomes a sticky column beside the text */
@media (min-width: 1100px) {
  .page.has-toc { display: grid; grid-template-columns: minmax(0, 720px) 250px; column-gap: 64px; }
  .page.has-toc .page-head { grid-column: 1 / -1; }
  .page.has-toc .toc { grid-column: 2; grid-row: 2; position: sticky; top: 20px; align-self: start; margin: 0; max-height: calc(100vh - 40px); overflow: auto; }
  .page.has-toc .toc ol { columns: 1; }
  .page.has-toc .page-body { grid-column: 1; grid-row: 2; }
}

.callout { background: var(--tint); color: #1c2024; border-radius: var(--radius); padding: 14px 18px; margin: 1.2em 0; }
.callout a { color: #14304d; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.warning { background: #fff4d6; color: #3d2e00; border-radius: var(--radius); padding: 14px 18px; margin: 1.2em 0; }
.warning a { color: #3d2e00; }

.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650;
  padding: 11px 18px; border-radius: 8px; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.3;
}
.btn:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--link); border: 2px solid currentColor; }
.btn-outline:hover { background: transparent; color: var(--link); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 1.2em 0; padding: 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
a.card { color: var(--text); text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); }
a.card h3 { color: var(--link); }

.table-scroll { overflow-x: auto; margin: 1.2em 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--card); font-weight: 650; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons ul { padding-left: 1.2em; }

.faqs details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faqs summary { cursor: pointer; font-weight: 650; }
.faqs details p { margin: 8px 0 0; }

/* Calculators and tools */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 1.4em 0; }
.tool .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tool label { display: block; font-weight: 600; font-size: 0.95rem; }
.tool .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.tool input, .tool select {
  width: 100%; font: inherit; padding: 9px 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text);
}
.tool input:focus, .tool select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.results { margin-top: 18px; }
.results .big { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.result-grid div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.result-grid dt { font-size: 0.85rem; color: var(--muted); }
.result-grid dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 36px 0 44px; margin-top: 40px; }
.site-footer a { color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.footer-brand { flex: 2 1 260px; }
.footer-col { flex: 1 1 150px; }
.footer-brand .brand { color: var(--text); }
.footer-brand p { max-width: 340px; }
.footer-col h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 6px 0; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 0.82rem; }
.footer-legal p { margin: 6px 0; max-width: 900px; }
@media (max-width: 600px) { .footer-brand { flex-basis: 100%; } .footer-col { flex-basis: 40%; } }

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; z-index: 20;
  background: #1c2024; color: #ffffff; border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  font-size: 0.95rem;
}
.cookie-banner a { color: #cfe3ff; }
.cookie-banner .row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cookie-banner button { font: inherit; padding: 8px 14px; border-radius: 8px; border: 0; cursor: pointer; }
.cookie-banner .accept { background: #ffffff; color: #1c2024; font-weight: 650; }
.cookie-banner .decline { background: transparent; color: #ffffff; border: 1px solid #8a949e; }
