/* Notes Plus — subpage layer.
   Loaded after pages-base.css (older page components) and site.css (shared
   layout). Restyles the older page components to the current look. */

:root {
  --ink-2: #515154;
  --line-strong: #d2d2d7;
  --link: #0066cc;
}

/* Full-bleed demo figures are wider than the viewport by design; v2 cropped
   them with body { overflow-x: hidden }, which still lets the page scroll
   sideways. Clip at the root and keep the body out of the scrolling chain
   so the shared sticky nav follows the viewport. */
html:has(> body.v3-sub) { overflow-x: clip; }

.v3-sub { overflow: visible; background: var(--bg); color: var(--ink); font-family: var(--font); }
.v3-sub main { font-family: var(--font); }

/* ---------- Page hero ---------- */
.v3-sub main > .page-hero,
.v3-sub .page-hero {
  width: auto;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 24px clamp(40px, 5vw, 64px);
  text-align: center;
}
.v3-sub .page-hero > * { margin-left: auto; margin-right: auto; }

.crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  font-size: 14px; line-height: 20px; color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs-sep { color: var(--ink-faint); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.v3-sub .page-hero .page-eyebrow {
  width: auto;
  margin: 0 auto 18px;
  font-size: 14px; line-height: 20px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.v3-sub .page-hero h1 {
  width: auto;
  max-width: 14em;
  margin: 0 auto;
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.v3-sub .page-hero > p,
.v3-sub .page-hero > sub {
  width: auto;
  max-width: 40em;
  margin: 24px auto 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.v3-sub .page-hero > p + p { margin-top: 16px; }
.v3-sub .page-hero > p strong { color: var(--ink); }
.v3-sub .page-hero > sub { display: block; font-size: 15px; }
.v3-sub .page-hero ul,
.v3-sub .page-hero aside { max-width: 40em; text-align: left; }

/* Hero download block reuses the homepage pieces */
.page-download { margin-top: 40px; }
.page-download .dl-row {
  --row: min(1240px, calc(100vw - 48px));
  width: var(--row);
  margin: 0 0 0 calc((100% - var(--row)) / 2);
}
.v3-sub .page-hero [class$="-index"] > div,
.v3-sub .page-hero [class$="-index"] { justify-content: center; }

/* ---------- Content typography ---------- */
.v3-sub main h2 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.v3-sub main p a:not([class*="button"]):not([class*="download"]),
.v3-sub main li a:not([class*="button"]):not([class*="download"]),
.v3-sub main .inline-feature-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.v3-sub main p a:hover,
.v3-sub main li a:hover,
.v3-sub main .inline-feature-link:hover { text-decoration-thickness: 2px; }

/* "Download Markdown source file" lines under example descriptions: same text as the paragraph above */
.v3-sub main sub:has(> a[download]) {
  display: block;
  margin-top: 10px;
  vertical-align: baseline;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.v3-sub main sub > a[download] {
  color: var(--ink);
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.v3-sub main sub > a[download]:hover { text-decoration-thickness: 2px; }

/* ---------- Page-specific fixes ---------- */
/* Changelog & roadmap: neutral bullets instead of the v2 purple */
.v3-sub main .change-group li::before,
.v3-sub main .roadmap-stage-content li::before { top: calc(.5lh - 3.5px); background: var(--ink); }
.v3-sub.platform-updates-body,
.v3-sub.features-body { background: var(--bg); }
/* Linux page: center the signup card; minmax(0) stops the global h2 width from widening it on phones */
.v3-sub .platform-update-options { grid-template-columns: minmax(0, 480px); justify-content: center; }
.v3-sub .platform-update-card { text-align: left; }

/* The final download section sits after <main> on subpages */
.v3-sub > .final { margin-top: clamp(120px, 14vw, 180px); }

@media (max-width: 640px) {
  .v3-sub .page-hero { padding: 20px 16px 40px; }
  .crumbs { margin-bottom: 24px; font-size: 13px; }
  .v3-sub .page-hero > p { font-size: 18px; }
  .page-download { margin-top: 32px; }
  .page-download .dl-row { --row: calc(100vw - 32px); }
}

/* ---------- Legal pages (privacy policy) ---------- */
.legal-content { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.legal-section + .legal-section { margin-top: 40px; }
.v3-sub .legal-section h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; }
.legal-section p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.legal-updated { margin: 56px 0 0; font-size: 14px; color: var(--ink-faint); }
@media (max-width: 640px) { .legal-content { padding: 0 16px; } .legal-section p { font-size: 17px; } }
.legal-section p + p { margin-top: 12px; }
.legal-section p.legal-basis { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.legal-section ul { margin: 12px 0; padding-left: 1.2em; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.legal-section li + li { margin-top: 4px; }
.legal-address a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-address { margin-top: 12px; font-style: normal; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 640px) { .legal-section ul, .legal-address { font-size: 17px; } }
