/* LunaTerminal content pages (cloud/site-pages.mjs): readable without JavaScript, light and dark. */
:root {
  --bg: #f7f9fc; --surface: #ffffff; --ink: #0d1b3e; --muted: #4a5878; --line: #e2e8f2;
  --brand: #0a1f5c; --accent: #0b6fb8; --accent-soft: #e9f3fb; --on-brand: #ffffff;
  --head: 'Stock Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Stock Google Sans Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Stock PPLX Sans Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1124; --surface: #101a33; --ink: #e8edf7; --muted: #a7b3cc; --line: #233052;
    --brand: #1d3b8f; --accent: #6cc4ff; --accent-soft: #13284b; --on-brand: #ffffff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--text); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18px/1 var(--head); letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.site-head nav { display: flex; gap: 20px; margin-right: auto; }
.site-head nav a { color: var(--muted); text-decoration: none; font: 500 15px/1 var(--head); white-space: nowrap; }
.site-head nav a:hover { color: var(--ink); }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 600 15px/1 var(--head); text-decoration: none; white-space: nowrap; }
.cta:hover { filter: brightness(1.15); }

/* Article */
main { padding-block: 40px 72px; }
article { max-width: 760px; margin-inline: auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 46px); font-weight: 650; }
h2 { margin: 48px 0 12px; font-size: 26px; font-weight: 600; }
h3 { margin: 28px 0 6px; font-size: 19px; font-weight: 600; }
.lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.updated { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
p, li { text-wrap: pretty; }
/* The text face ships 400 and 500 only; bold runs use the heading face, which has real weights up to 700. */
strong, b, tbody th, .tools dt { font-family: var(--head); font-weight: 600; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }
code { font: 0.88em var(--mono); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; }
pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: #0d1530; color: #e8edf7; font-size: 14px; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { font: 600 14px/1.3 var(--head); color: var(--muted); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
tbody th { font-weight: 600; min-width: 9em; }

/* Cards, plans, tools */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 32px 0; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card strong { font: 600 17px/1.3 var(--head); }
.card span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 32px 0 8px; }
.plan { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.plan h2 { margin: 0; font-size: 20px; }
.plan .price { margin: 8px 0 0; font: 650 36px/1 var(--head); }
.plan-note { margin: 6px 0 12px; color: var(--muted); font-size: 15px; }
.plan ul { margin: 0; font-size: 15px; }
.tools { display: grid; gap: 10px; margin: 16px 0; }
.tools > div { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tools dt { font-weight: 600; }
.tools dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.faq h3 { margin-top: 24px; }
.related ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.related li { margin: 0; }
.related a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 15px; }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding: 22px 24px; border-radius: 16px; background: var(--brand); color: var(--on-brand); }
.band p { margin: 0; }
.band .cta { background: var(--on-brand); color: #0a1f5c; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 40px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.foot-cols h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.foot-cols ul { margin: 0; padding: 0; list-style: none; }
.foot-cols li { margin: 6px 0; }
.foot-cols a { color: var(--ink); text-decoration: none; }
.foot-cols a:hover { color: var(--accent); }
.fine { margin: 28px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; min-height: 0; }
  .site-head nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  .site-head nav::-webkit-scrollbar { display: none; }
  table { min-width: 520px; }
  .site-head .cta { margin-left: auto; min-height: 36px; padding: 0 14px; font-size: 14px; }
  main { padding-block: 28px 56px; }
  h2 { margin-top: 40px; font-size: 23px; }
  .lede { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
