/* Shared styles for Prodmail's secondary pages (docs, status, legal). The landing page keeps its own inline styles. */
:root {
  --ink: #18202A; --muted: #66717F; --steel: #EEF1F4; --line: #DEE3E8; --obsidian: #0C1016;
  --teal: #1FE3C2; --teal-deep: #0FA98F; --teal-deeper: #0B8C76; --teal-soft: #D6F7F0;
  --amber: #D98B1F; --amber-soft: #FBF0DC; --red: #C73E3E; --red-soft: #FBE7E7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--teal-deeper); }
a:hover { text-decoration: underline; }
code, pre { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
code { background: var(--steel); border-radius: 4px; padding: 1px 6px; }
pre { background: var(--obsidian); color: #C3C9D6; border-radius: 10px; padding: 16px 18px; overflow-x: auto; line-height: 1.6; }
pre code { background: transparent; padding: 0; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.2em; font-size: 20px; color: var(--c, var(--teal-deep)); --ko: #fff; text-decoration: none; }
.logo svg { width: 1.32em; height: 1.32em; display: block; overflow: visible; }
.logo .word { font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--w, var(--ink)); }
.logo:hover { text-decoration: none; }

/* Nav (dark strip, same as the landing hero) */
.top { background: var(--obsidian); color: #E7EAF0; }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .links { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.nav .links a { color: #8A92A3; text-decoration: none; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: #E7EAF0; }
.nav .links .signin { color: #E7EAF0; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 14px; border: 1px solid transparent; white-space: nowrap; text-decoration: none; }
.btn.teal { background: var(--teal); color: var(--obsidian); }
.btn.deep { background: var(--teal-deep); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

/* Page header */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 10px; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 640px; }
.page-head .meta { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Prose */
.prose { max-width: 720px; padding: 36px 0 80px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; margin: 40px 0 10px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 6px; scroll-margin-top: 24px; }
.prose p, .prose li { color: #2E3A48; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.prose .note { background: var(--teal-soft); border-radius: 8px; padding: 12px 16px; color: var(--teal-deeper); font-weight: 500; }
.prose kbd { display: inline-block; min-width: 22px; text-align: center; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 13px "IBM Plex Mono", monospace; }

/* Docs layout */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 36px 0 80px; }
.docs .prose { padding: 0; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14.5px; }
.toc h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.toc a { display: block; color: var(--ink); text-decoration: none; padding: 5px 0; border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px; }
.toc a:hover { color: var(--teal-deeper); }
.toc a.on { border-left-color: var(--teal-deep); color: var(--teal-deeper); font-weight: 500; }

/* Status */
.banner { display: flex; align-items: center; gap: 14px; margin: 36px 0 28px; padding: 18px 22px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deeper); font-weight: 600; font-size: 18px; }
.banner.degraded { background: var(--amber-soft); color: #8A5A0E; }
.banner.down { background: var(--red-soft); color: var(--red); }
.banner svg { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.banner small { margin-left: auto; font-weight: 400; font-size: 14px; }
.components { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 40px; }
.component { padding: 16px 22px; border-top: 1px solid var(--line); }
.component:first-child { border-top: 0; }
.component .row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.component .name { font-weight: 600; }
.component .desc { color: var(--muted); font-size: 14px; }
.component .state { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--teal-deeper); display: inline-flex; align-items: center; gap: 6px; }
.component .state i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-deep); display: inline-block; }
.component .state.degraded { color: #8A5A0E; } .component .state.degraded i { background: var(--amber); }
.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 30px; }
.bars i { display: block; background: var(--teal-deep); border-radius: 2px; }
.bars i.degraded { background: var(--amber); }
.bars i.down { background: var(--red); }
.bars-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.incident { padding: 18px 0; border-top: 1px solid var(--line); }
.incident h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.incident .when { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.incident .update { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 15px; padding: 6px 0; }
.incident .update b { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.incident .update .tag { font-weight: 600; margin-right: 6px; }
.status-section h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }

/* Footer */
.foot { display: flex; gap: 26px; padding: 28px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .right { margin-left: auto; }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav .links { gap: 16px; }
  .nav .links a:not(.signin) { display: none; }
  .page-head h1 { font-size: 30px; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .toc h4 { width: 100%; }
  .toc a { margin-left: 0; padding-left: 0; border-left: 0; }
  .incident .update { grid-template-columns: 1fr; gap: 2px; }
  .bars { height: 22px; }
}
