/* Shared with the report emails and DirectAdmin plugin: Georgia headings, Arial text,
   restrained green accents, and local fonts only. Figures follow the same theme tokens. */
:root {
  --bg: #fff; --surface: #f5f7f5; --text: #252a27; --strong: #141815; --muted: #626963; --line: #dce0dc;
  --accent: #294d38; --ok: #29623d; --warn: #825d16; --fail: #a0362c;
  --note: #f0f5f1;
  --font: Arial, Helvetica, sans-serif;
  --heading: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #242824; --surface: #2c332d; --text: #eeefeb; --strong: #fafbf8; --muted: #b0b7b1; --line: #4c554e;
    --accent: #bfd3c3; --ok: #9cd3ab; --warn: #dfc07f; --fail: #efa59d;
    --note: #2a322c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font);
  border-top: 3px solid var(--accent); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* The bar: the mark and the name as the plugin sets them, the three parts of the site. */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand .mark { display: block; width: 24px; height: 28px; flex: none; }
.brand span { font-family: var(--heading); font-size: 21px; font-weight: 400; line-height: 1; }
.brand small { font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px var(--accent); }

/* A page: its contents beside the text from 1080 px, above it below that. */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; padding-top: 24px; padding-bottom: 48px; }
.content { max-width: 46rem; min-width: 0; }
.toc { font-size: 14px; line-height: 1.45; }
.toc p { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.toc code { background: none; border: 0; padding: 0; font-size: .9em; color: inherit; }
.toc-m { margin: -8px 0 32px; border: 1px solid var(--line); border-radius: 7px; padding: 0 16px; font-size: 15px; }
.toc-m summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--strong); }
.toc-m ul { list-style: none; margin: 0 0 12px; padding: 0; }
.toc-m li { margin: 0; padding: 5px 0; border-top: 1px solid var(--line); }
.toc-m a { text-decoration: none; }
.toc-m code { background: none; border: 0; padding: 0; }
.toc { display: none; }
@media (min-width: 1080px) {
  .doc { padding-top: 40px; }
  .with-toc { grid-template-columns: 200px minmax(0, 1fr); }
  .toc { display: block; position: sticky; top: 24px; align-self: start; margin: 6px 0 0; }
  .toc li { border-left: 2px solid var(--line); padding: 5px 0 5px 12px; }
  .toc-m { display: none; }
}

/* Text. */
h1 { font-family: var(--heading); font-size: 36px; line-height: 1.2; font-weight: 400; margin: 0 0 18px; color: var(--strong); overflow-wrap: anywhere; }
h1 + p { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 32px; }
h2 { font-family: var(--heading); font-size: 26px; line-height: 1.3; font-weight: 400; color: var(--strong); margin: 48px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--strong); margin: 32px 0 8px; scroll-margin-top: 16px; }
h4 { font-size: 16px; font-weight: 600; color: var(--strong); margin: 24px 0 6px; }
p, ul, ol, table, pre, blockquote { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin: 0 0 6px; }
li::marker { color: var(--muted); }
strong { font-weight: 600; color: var(--strong); }
code { font-family: var(--mono); font-size: .875em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: .05em .3em; overflow-wrap: anywhere; }
/* Code wraps rather than scrolls: a whole command stays in view, and nothing runs under the button. */
pre { position: relative; font: 13.5px/1.6 var(--mono); color: var(--strong); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
pre.has-copy { padding-right: 76px; }
.copy { position: absolute; top: 9px; right: 9px; font: 500 12px/1 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; cursor: pointer; }
.copy:hover { border-color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 14px 10px 0; vertical-align: bottom; }
td { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
mark.todo { background: var(--warn); color: var(--bg); font-weight: 600; padding: 0 .3em; border-radius: 3px; }
blockquote { margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--note); border-radius: 0 7px 7px 0; }
blockquote > :last-child { margin-bottom: 0; }

/* Ordered lists are steps, numbered as the plugin's setup steps are. */
.content ol { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 24px; }
.content ol > li { counter-increment: step; position: relative; padding: 2px 0 18px 44px; margin: 0; }
.content ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); color: var(--accent); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.content ol > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; border-left: 1px solid var(--line); }

/* The home page: a larger opening, the three doors. */
.home .content { max-width: none; }
.home .content > :not(.doors) { max-width: 46rem; }
.home h1 { font-size: 44px; margin-top: 24px; }
.home h1 + p { font-size: 20px; }
.docs-overview { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; margin: 16px 0 32px; }
.home .content > .docs-overview { max-width: none; }
.docs-overview h2 { border: 0; padding: 0; margin: 0 0 24px; }
.docs-overview .fig { margin: 0; width: 100%; }
.docs-overview .fig .s, .docs-overview .fig .a { font-size: 14px; }
.docs-overview p { max-width: none; font-size: 17px; line-height: 1.8; margin-bottom: 24px; }
.docs-overview p:last-child { margin-bottom: 0; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 40px; }
.door { display: block; border-top: 1px solid var(--line); padding: 18px 0 12px; color: var(--text); text-decoration: none; }
.door:hover { border-color: var(--accent); }
.door strong { display: block; font-family: var(--heading); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.door span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Figures: portrait drawings at most 440 px wide, so their text stays legible on a phone. */
.fig { margin: 32px 0; }
.fig svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.fig .bx { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.fig .sx { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.fig .gp { fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 5 4; }
.fig .no { fill: var(--bg); stroke: var(--fail); stroke-width: 1.25; }
.fig .ln { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.fig .dl { stroke-dasharray: 4 4; }
.fig .ah { fill: var(--muted); }
.fig .t { fill: var(--strong); font: 600 14px var(--font); }
.fig .s { fill: var(--muted); font: 12.5px var(--font); }
.fig .a { fill: var(--accent); font: 600 12.5px var(--font); }
.fig .r { fill: var(--fail); font: 600 12.5px var(--font); }
.fig .c { text-anchor: middle; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0; }
.foot a { color: var(--muted); }

/* Public landing page: a quiet visual panel beside a short introduction. */
.landing { --bg: #f7f5ef; --surface: #e5ede3; min-height: 100vh; display: flex; flex-direction: column; }
.landing-top, .landing-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 5vw; }
.landing-main { display: grid; grid-template-columns: 1fr 1fr; flex: 1; align-items: stretch; padding: 0 5vw; }
.landing-art { position: relative; min-height: 520px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px; }
.landing-art svg { display: block; width: min(100%, 600px); height: auto; color: var(--accent); }
.landing-art .landing-pattern { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.landing-art .landing-illustration, .landing-art > p { position: relative; z-index: 1; }
.art-grid { color: var(--accent); stroke: currentColor; stroke-width: .6; opacity: .13; }
.art-grid path, #mail-grid path { fill: none; stroke: var(--accent); stroke-width: .6; }
.art-halo { fill: var(--surface); stroke: var(--accent); stroke-width: .5; opacity: .85; }
.art-route, .art-fold { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.art-envelope { fill: var(--bg); stroke: var(--accent); stroke-width: 1.6; }
.art-point, .art-seal { fill: var(--accent); }
.art-check { fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.landing-art > p { font-family: var(--heading); font-size: 20px; color: var(--accent); margin: -24px 0 40px; }
.landing-copy { padding: 64px clamp(32px, 5vw, 88px); align-self: center; max-width: 720px; }
.landing h1 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.16; margin-bottom: 26px; }
.landing .landing-lead { font-size: 19px; line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.landing-copy > p:not(.landing-lead) { color: var(--muted); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 32px 0; }
.landing-button { display: inline-flex; gap: 18px; align-items: center; padding: 12px 18px; background: var(--accent); color: var(--bg); border: 1px solid var(--accent); border-radius: 3px; text-decoration: none; font-size: 14px; }
.landing-button:hover { filter: brightness(.9); }
.landing-contact { font-size: 14px; }
.landing-copy .landing-note { font-size: 12px; line-height: 1.6; }
.landing-foot { font-size: 12px; color: var(--muted); }
.landing-foot p { margin: 0; }
@media (prefers-color-scheme: dark) { .landing { --bg: #202720; --surface: #2b382d; } }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .doc { padding-top: 32px; }
  .nav { gap: 20px; }
  h1, .home h1 { font-size: 30px; }
  h1 + p, .home h1 + p { font-size: 17px; }
  h2 { font-size: 21px; margin-top: 40px; padding-top: 24px; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .docs-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-overview .fig { max-width: 360px; margin: 0 auto; }
  .landing-top, .landing-foot { padding: 22px; flex-wrap: wrap; }
  .landing-top .nav { gap: 16px; font-size: 14px; }
  .landing-main { display: flex; flex-direction: column-reverse; padding: 0 22px; }
  .landing-copy { padding: 40px 0 30px; }
  .landing-art { min-height: 0; }
  .landing-art svg { max-width: 310px; }
  .landing-art > p { margin: -12px 0 28px; font-size: 18px; }
  table { font-size: 14px; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --strong: #000; --muted: #333; --line: #999; --accent: #000; --note: #fff; }
  body { border-top: 0; font-size: 11pt; }
  .nav, .toc, .toc-m, .skip, .copy, .doors { display: none !important; }
  .doc { display: block; }
  pre, blockquote, figure, tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a { text-decoration: none; }
}
