/* Shared styles for the standalone guide pages (/notepad-online and friends).
   The app itself (public/index.html) is deliberately one self-contained file
   with no <link> to anything; these pages are ordinary scrollable documents,
   so they share a stylesheet instead of duplicating it four times. */

:root {
  color-scheme: light;
  --ink: #171b22;
  --ink-soft: #4a5568;
  --rule: #e2e8f0;
  --accent: #2166d1;
  --accent-dark: #174f9f;
  --surface: #ffffff;
  --page-bg: #eef2f8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.masthead {
  background: linear-gradient(135deg, #8ba5c9, #4d6485);
  padding: 22px 0;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.masthead a.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.masthead a.home svg { width: 26px; height: 26px; display: block; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 5px;
  border: 1px solid var(--accent-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.cta:hover, .cta:focus-visible { background: var(--accent-dark); }

main {
  background: var(--surface);
  margin: 28px auto 0;
  max-width: 800px;
  border: 1px solid #d7dee9;
  border-radius: 8px;
  padding: 40px 0 8px;
  box-shadow: 0 2px 10px rgba(23, 27, 34, 0.06);
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.standfirst {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

h2 {
  font-size: 23px;
  margin: 38px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.3px;
}

h3 { font-size: 18px; margin: 24px 0 6px; }

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent-dark); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
}

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { background: #f5f8fc; font-weight: 600; }

kbd {
  display: inline-block;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  padding: 2px 7px;
  border: 1px solid #c3ccd9;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fafcff;
  white-space: nowrap;
}

.callout {
  background: #f5f8fc;
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 0 0 20px;
  border-radius: 0 5px 5px 0;
}

.callout :last-child { margin-bottom: 0; }

.launch {
  margin: 34px 0 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.launch .cta { font-size: 17px; padding: 12px 26px; }

footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 26px 20px 44px;
  font-size: 14px;
  color: var(--ink-soft);
}

footer a { margin-right: 14px; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  main { margin-top: 0; border-radius: 0; border-left: 0; border-right: 0; padding-top: 30px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  .standfirst { font-size: 17px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e6ebf2;
    --ink-soft: #a3aec0;
    --rule: #2c3542;
    --accent: #4b8ef0;
    --accent-dark: #7fb2f7;
    --surface: #171b22;
    --page-bg: #0f1319;
  }

  main { border-color: #2c3542; }
  th { background: #1e242e; }
  kbd { background: #1e242e; border-color: #3a4552; }
  .callout { background: #1a2029; }
  .cta { background: #2166d1; border-color: #174f9f; color: #fff; }
  .cta:hover, .cta:focus-visible { background: #174f9f; }
}
