/* Page components carried over from the previous site design (former /styles.css),
   with neutral colors mapped to the site.css tokens. Restyling lives in subpages.css. */

@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/fonts/sf-pro-display-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/fonts/sf-pro-display-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/fonts/sf-pro-display-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif; }
:any-link { color: var(--link); }
.product-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; max-width: 1151px; margin: 0 auto; padding: 70px 22px 0; }
.product-header h1 { position: relative; display: inline-block; margin: 0; color: var(--ink); font-size: clamp(56px, 6.4vw, 96px); line-height: 1; letter-spacing: -.06em; font-weight: 600; }
.homepage-language-switch { position: relative; width: 86px; margin-top: 10px; font-size: 15px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.homepage-language-switch summary { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 8px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--ink); cursor: pointer; font-weight: 500; list-style: none; }
.homepage-language-switch summary::-webkit-details-marker { display: none; }
.homepage-language-switch summary::after { color: var(--ink-soft); content: "⌄"; font-size: 15px; transform: translateY(-1px); }
.homepage-language-switch[open] summary::after { transform: translateY(1px) rotate(180deg); }
.homepage-language-switch summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.homepage-language-menu { position: absolute; z-index: 2; top: calc(100% + 6px); right: 0; display: grid; min-width: 148px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); box-shadow: 0 8px 20px rgb(0 0 0 / .12); }
.homepage-language-menu > * { display: block; padding: 8px 9px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.homepage-language-menu a { color: var(--link); }
.homepage-language-menu a:hover { background: var(--bg-elevated); text-decoration: none; }
.homepage-language-menu a:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.homepage-language-current { background: var(--bg-elevated); font-weight: 600; }
.homepage-language-upcoming { color: var(--ink-soft); }
.page-language-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
/* Match the standard content column even when demonstrations use a wider page. */
header:has(> .page-language-toolbar) { max-width: 1107px; }
.page-language-toolbar .homepage-language-switch { flex: 0 0 86px; margin: 0; }
.page-language-toolbar .homepage-language-menu { z-index: 10; }
@media (min-width: 1600px) {
  .product-header h1 { font-size: 238px; }
}
.version-pill {
  position: absolute; top: .28em; left: calc(100% + .12em); padding: .18em .4em .22em; border-radius: .42em; background: #ffe58a; color: #5c4600; font-size: .16em; font-weight: 600; letter-spacing: -.025em; line-height: 1; white-space: nowrap; box-shadow: 0 .1em .28em rgb(157 119 21 / .22);
  top: 1.28em;
  left: calc(100% + .62em);
}
.beta-pricing { position: relative; width: 286px; margin-top: 2px; padding: 17px 19px 16px; overflow: hidden; border: 1px solid #d9cff3; border-radius: 18px; background: linear-gradient(135deg, var(--bg-elevated) 0%, #eef5ff 53%, var(--bg-elevated) 100%); box-shadow: 0 12px 30px rgb(85 61 156 / .12); }
.beta-pricing::before { content: ""; position: absolute; right: -27px; top: -38px; width: 104px; height: 104px; border-radius: 50%; background: linear-gradient(135deg, #d8bdff, #8ed9d0); opacity: .64; }
.beta-pricing-label, .beta-pricing-main, .beta-pricing p { position: relative; z-index: 1; }
.beta-pricing-label { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #6e45c5; color: #fff; font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .08em; }
.beta-pricing-main { display: flex; gap: 9px; align-items: baseline; margin-top: 11px; }
.beta-pricing-main strong { color: #2f8d68; font-size: 32px; line-height: 1; letter-spacing: -.045em; }
.beta-pricing-main span { color: #3f3d51; font-size: 14px; font-weight: 600; }
.beta-pricing p { margin: 10px 0 0; color: #696779; font-size: 13px; line-height: 1.3; }
.beta-pricing p b { color: #5d35b1; font-weight: 700; }
.intelligence { overflow: hidden; padding: 59px 0 83px; }
.intro { max-width: 1151px; margin: 0 auto; padding: 0 22px 48px; }
.eyebrow { width: 840px; max-width: 100%; margin: 0 0 12px; color: var(--ink); font-size: 21px; line-height: 21px; font-weight: 600; letter-spacing: .011em; }
/*h2 { width: 840px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }*/
h2 { width: 1020px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
#headline { margin-bottom: 50px; }
.lead { width: 840px; max-width: 100%; margin: 0; color: var(--ink-soft); font-size: 21px; line-height: 29px; font-weight: 400; letter-spacing: .011em; }
.ai-translation-note { display: inline-block; margin: 0; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.35; letter-spacing: .01em; }
.ai-translation-note a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 2px; }
.ai-translation-note a:hover { color: var(--link); }
.ai-translation-note a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.download-alpha-headline { width: 840px; max-width: 100%; margin: 28px 0 0; color: var(--ink); font-size: 30px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.inline-feature-link { color: inherit; cursor: pointer; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-feature-link:hover { color: var(--link); }
.inline-feature-link:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.hero-downloads { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 27px; }
.hero-download { display: inline-grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; min-width: 220px; min-height: 68px; padding: 10px 14px; border: 1px solid #1d1d1f; border-radius: 13px; background: var(--cta-bg); color: var(--cta-ink); line-height: 1; text-decoration: none; box-shadow: inset 0 1px rgb(255 255 255 / .16), 0 2px 5px rgb(0 0 0 / .16); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.apple-logo { display: block; width: 100%; height: 100%; fill: #fff; }
.windows-logo { display: block; width: 100%; height: 100%; }
.hero-download-logo { width: 34px; height: 42px; justify-self: center; }
.hero-download-copy { display: grid; gap: 3px; }
.hero-download-copy small { font-size: 12px; font-weight: 400; letter-spacing: .01em; }
.hero-download-copy strong { font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.download-size { color: var(--ink-faint); }
.hero-download-arrow { padding-left: 5px; font-size: 24px; font-weight: 400; }
.hero-download:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); box-shadow: inset 0 1px rgb(255 255 255 / .18), 0 5px 12px rgb(0 0 0 / .18); transform: translateY(-1px); }
.hero-download:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
.hero-download-secondary { border: 1px solid #1d1d1f; background: var(--cta-bg); color: var(--cta-ink); }
.hero-download-secondary:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); }
.hero-download-unavailable { cursor: default; }
.hero-download-unavailable:hover { background: var(--cta-bg); box-shadow: inset 0 1px rgb(255 255 255 / .16), 0 2px 5px rgb(0 0 0 / .16); transform: none; }
.hero-trust-list { display: flex; flex-wrap: wrap; gap: 0; width: fit-content; max-width: 100%; margin: 14px 0 0; padding: 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; list-style: none; }
.hero-trust-list li { display: inline-flex; align-items: center; }
.hero-trust-list li + li::before { width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: #86868b; content: ""; }
.hero-mailing-list { position: relative; display: grid; flex: 0 0 260px; min-width: 0; gap: 4px; width: 260px; min-height: 68px; margin: 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--ink-2); font-size: 12px; line-height: 1.2; }
.hero-mailing-list-row { display: flex; gap: 7px; align-items: center; }
.hero-mailing-list-row input { min-width: 0; flex: 1; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); font: inherit; font-size: 11px; }
.hero-mailing-list-row button { padding: 7px 10px; border: 0; border-radius: 8px; background: var(--cta-bg); color: var(--cta-ink); cursor: pointer; font: inherit; font-weight: 600; }
.hero-mailing-list-row button:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); }
.hero-mailing-list-row button:disabled { cursor: wait; opacity: .7; }
.hero-mailing-list-consent { display: flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 11px; line-height: 1.2; font-weight: 500; }
.hero-mailing-list-consent input { flex: 0 0 auto; margin: 0; }
.hero-mailing-list-consent .unsubscribe-note { color: var(--ink-faint); }
.hero-mailing-list.has-consent-error .hero-mailing-list-consent { color: #c41e3a; }
.hero-mailing-list.has-consent-error .hero-mailing-list-consent input { outline: 2px solid #c41e3a; outline-offset: 2px; }
.hero-mailing-list.has-consent-error .subscription-message { color: #c41e3a; }
.hero-mailing-list .subscription-message { position: absolute; top: calc(100% + 4px); left: 0; }
.subscription-message { min-height: 14px; color: #218358; font-size: 11px; }
.hero-download-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; }
.hero-download-note + .hero-mailing-list { margin-top: 12px; }
.hero-changelog-link { color: var(--link); font: inherit; text-decoration: none; }
.hero-changelog-link:hover { text-decoration: underline; }
sup { font-size: .55em; color: var(--ink); }
.image-stage { padding: 0; scrollbar-width: none; }
.image-stage::-webkit-scrollbar { display: none; }
.hero-image { width: 1332px; margin: 0 auto; }
.hero-image img { display: block; width: 1332px; height: 806px; border-radius: 24px; box-shadow: 0 16px 36px rgb(0 0 0 / .13); }
.visual-editor-hero { width: 1440px; }
.visual-editor-hero .line-break-video { width: 1440px; max-width: none; }
.hero-editor-text { display: block; width: min(1151px, 100%); margin: 18px auto 0; padding: 0 22px; font-size: 21px; line-height: 1.35; }
.hero-editor-text span { margin-left: 4px; }

.download { max-width: 1151px; margin: 0 auto; padding: 40px 22px 72px; }
.download-card { display: grid; grid-template-columns: .82fr 1.18fr; gap: 0; overflow: hidden; border-radius: 30px; background: var(--bg); box-shadow: 0 18px 50px rgb(0 0 0 / .08); }
.download-copy { grid-row: 1 / 4; display: flex; flex-direction: column; justify-content: center; min-height: 330px; padding: 52px; background: var(--cta-bg); color: var(--cta-ink); }
.download-copy h2 { width: auto; margin-bottom: 17px; font-size: 42px; line-height: 1.08; }
.download-copy .feature-label { color: var(--ink-faint); }
.download-copy > p:last-child { margin: 0; color: var(--ink-faint); font-size: 18px; line-height: 1.42; }
.download-actions { display: grid; gap: 12px; padding: 52px 58px 12px; }
.download-button { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: center; min-height: 82px; padding: 14px 18px; border: 1px solid #1d1d1f; border-radius: 17px; background: var(--cta-bg); color: var(--cta-ink); text-decoration: none; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.download-button:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); box-shadow: 0 12px 25px rgb(0 0 0 / .15); }
.download-button:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
.download-button-unavailable { cursor: default; }
.download-button-unavailable:hover { background: var(--cta-bg); box-shadow: none; transform: none; }
.download-primary { border-color: #1d1d1f; background: var(--cta-bg); color: var(--cta-ink); }
.download-primary:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); }
.chip-icon { display: grid; width: 64px; height: 64px; place-items: center; }
.chip-icon .apple-logo { width: 42px; height: 54px; }
.download-button > span:nth-child(2) { display: grid; gap: 4px; }
.download-button strong { font-size: 17px; }
.download-button small { color: var(--ink-faint); font-size: 13px; }
.download-primary small { color: var(--ink-faint); }
.beta-mailing-list { display: grid; grid-column: 2; gap: 10px; padding: 12px 58px 48px; color: var(--ink-2); font-size: 14px; }
.beta-mailing-list > label:first-child { color: var(--ink); font-weight: 600; }
.beta-mailing-list-row { display: flex; gap: 8px; }
.beta-mailing-list-row input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); font: inherit; }
.beta-mailing-list-row button { padding: 10px 14px; border: 0; border-radius: 9px; background: var(--cta-bg); color: var(--cta-ink); cursor: pointer; font: inherit; font-weight: 600; white-space: nowrap; }
.beta-mailing-list-row button:disabled { cursor: wait; opacity: .7; }
.beta-mailing-list-consent { display: flex; gap: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }
.beta-mailing-list-consent input { flex: 0 0 auto; margin: 2px 0 0; }
.beta-mailing-list-message { min-height: 16px; color: #218358; font-size: 12px; }
.download-note { grid-column: 2; margin: 0; padding: 0 58px 48px; color: var(--ink-soft); font-size: 13px; text-align: center; }

.feature-grid { max-width: 1151px; margin: 0 auto; padding: 72px 22px 96px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 68px; min-height: 390px; padding: 38px 0; }
.feature-row + .feature-row { margin-top: 42px; }
.feature-row-reverse .feature-visual { order: 1; }
.feature-row-reverse .feature-copy { order: 2; }
.feature-copy { max-width: 455px; }
.feature-label { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: .035em; }
.feature-copy h3 { margin: 0 0 14px; font-size: 34px; line-height: 1.08; letter-spacing: -.025em; font-weight: 600; }
.feature-copy > p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.42; }
.feature-copy a { display: inline-block; margin-top: 16px; color: var(--link); font-size: 18px; text-underline-offset: 3px; }
.feature-visual { position: relative; min-height: 340px; overflow: hidden; border-radius: 28px; background: var(--bg); }
.feature-visual::before { content: ""; position: absolute; width: 270px; height: 270px; border-radius: 42%; transform: rotate(18deg); }

.visual-folders { background: #f4eadc; }
.visual-folders::before { right: -30px; top: 26px; background: #ffcf5a; }
.organization-notes-screenshot { position: absolute; z-index: 1; left: 50%; top: 50%; width: min(78%, 360px); border-radius: 15px; box-shadow: 0 20px 45px rgb(55 37 15 / .2); transform: translate(-50%, -50%) rotate(-3deg); }

.visual-editor { background: #f1eafe; }
.visual-editor::before { left: -28px; bottom: 17px; background: #b693ff; }
.capture-thoughts-screenshot { position: absolute; z-index: 1; left: 50%; top: 50%; width: min(78%, 360px); border-radius: 15px; box-shadow: 0 20px 45px rgb(59 38 91 / .2); transform: translate(-50%, -50%) rotate(2.5deg); }
.paper-card { position: absolute; right: 43px; top: 36px; width: 340px; height: 264px; padding: 27px 28px; border-radius: 15px; background: var(--bg); box-shadow: 0 20px 50px rgb(59 38 91 / .2); transform: rotate(2.5deg); }
.paper-date { display: block; margin-bottom: 19px; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.paper-card strong { display: block; margin-bottom: 22px; font-size: 23px; line-height: 1.1; }
.paper-line { display: block; width: 76%; height: 7px; margin-top: 10px; border-radius: 8px; background: var(--surface); }
.paper-line.long { width: 100%; }
.paper-line.short { width: 52%; }
.paper-check { display: block; margin-top: 25px; color: #6d45c6; font-size: 14px; font-weight: 600; }
.edit-badge { position: absolute; left: 31px; top: 79px; padding: 13px 17px; border-radius: 12px; background: var(--cta-bg); color: var(--cta-ink); font-size: 14px; font-weight: 600; box-shadow: 0 12px 28px rgb(0 0 0 / .22); transform: rotate(-5deg); }

.visual-paste { background: var(--surface); }
.visual-paste::before { right: -35px; top: -25px; background: #63d3a5; }
.paste-source-card, .paste-note-card { display: grid; position: absolute; gap: 8px; width: 250px; padding: 20px; border-radius: 16px; background: var(--bg); box-shadow: 0 18px 42px rgb(24 73 54 / .18); }
.paste-source-card { left: 36px; top: 46px; color: var(--ink-2); font-size: 13px; transform: rotate(-4deg); }
.paste-note-card { right: 32px; bottom: 42px; min-height: 182px; transform: rotate(4deg); }
.paste-app { color: var(--ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
.paste-source-card strong, .paste-note-card strong { color: var(--ink); font-size: 17px; }
.paste-selection { padding: 4px 6px; border-radius: 4px; background: #bfdaf8; color: #395d82; }
.paste-command { display: grid; position: absolute; z-index: 1; left: 50%; top: 50%; place-items: center; width: 58px; height: 48px; border-radius: 12px; background: var(--cta-bg); color: var(--cta-ink); font-size: 15px; font-weight: 700; box-shadow: 0 12px 25px rgb(0 0 0 / .2); transform: translate(-50%, -50%); }
.paste-line { display: block; width: 100%; height: 8px; border-radius: 99px; background: var(--surface); }
.paste-line-short { width: 64%; }
.paste-badge { position: absolute; right: 22px; top: 25px; z-index: 2; padding: 10px 13px; border-radius: 11px; background: var(--cta-bg); color: var(--cta-ink); font-size: 12px; font-weight: 600; box-shadow: 0 10px 24px rgb(0 0 0 / .18); transform: rotate(3deg); }

.feature-list { max-width: 1151px; margin: 0 auto; padding: 38px 22px 104px; }
.feature-list-header { max-width: 760px; margin-bottom: 46px; }
.feature-list-header h2 { width: auto; margin-bottom: 16px; }
.feature-list-header > p:last-child { margin: 0; color: var(--ink-soft); font-size: 21px; line-height: 1.35; }
.feature-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-list-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .92fr); gap: 20px; min-height: 252px; overflow: hidden; border-radius: 20px; background: var(--bg); color: var(--ink); text-decoration: none; box-shadow: 0 5px 18px rgb(0 0 0 / .035); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.feature-list-item:hover { transform: translateY(-3px); background: var(--bg-elevated); box-shadow: 0 15px 32px rgb(0 0 0 / .1); }
.feature-list-item:focus-visible { outline: 3px solid #6e45c5; outline-offset: 3px; }
.feature-list-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px 8px 30px 28px; }
.feature-list-number { margin-bottom: 18px; color: var(--ink-soft); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.feature-list-content > strong { font-size: 22px; line-height: 1.15; }
.feature-list-content > small { margin-top: 7px; color: var(--ink-soft); font-size: 15px; line-height: 1.32; }
.feature-list-content em { margin-top: 23px; color: var(--link); font-size: 15px; font-style: normal; font-weight: 600; }
.feature-list-content em b { margin-left: 4px; font-size: 18px; }
.feature-list-preview { display: flex; position: relative; flex-wrap: wrap; align-content: center; justify-content: center; gap: 9px; min-height: 100%; padding: 25px; background: #f0eaff; color: #51406f; font-size: 12px; line-height: 1.3; }
.feature-list-preview i { font-style: normal; }
.feature-list-preview label { position: absolute; right: 12px; bottom: 10px; color: #766f80; font-size: 10px; letter-spacing: .04em; }
.preview-markdown { display: block; padding: 39px 26px; }
.preview-markdown i { display: block; height: 8px; margin-bottom: 10px; border-radius: 5px; background: #cabce8; }
.preview-markdown i:nth-child(1) { width: 44%; height: 13px; background: #7655af; }
.preview-markdown i:nth-child(3) { width: 79%; }
.preview-markdown i:nth-child(4) { width: 58%; }
.preview-folders { display: grid; justify-content: stretch; align-content: center; gap: 6px; background: #f6ebdc; }
.preview-folders i { padding: 8px 10px; border-radius: 7px; background: rgb(255 255 255 / .7); }
.preview-folders i:first-child { background: #ffd367; font-weight: 600; }
.preview-search { display: grid; justify-content: stretch; align-content: center; gap: 7px; background: var(--surface); }
.preview-search i { display: flex; justify-content: space-between; padding: 8px; border-radius: 7px; background: var(--bg); }
.preview-search i:first-child { background: #cde9da; color: #32664e; }
.preview-search small { color: var(--ink-soft); }
.preview-tags { align-content: center; background: #eef0ff; }
.preview-tags i { padding: 8px 10px; border-radius: 99px; background: var(--bg); color: #5d52a5; font-weight: 600; }
.preview-tags i:last-child { width: 100%; margin-top: 5px; border-radius: 8px; color: var(--ink-soft); font-weight: 400; }
.preview-split { flex-wrap: nowrap; gap: 1px; padding: 22px; background: var(--bg-elevated); }
.preview-split i { flex: 1; padding: 13px 10px; background: var(--bg); font-size: 10px; }
.preview-split i:last-child { background: #ede7fb; }
.preview-links { display: grid; justify-content: stretch; align-content: center; gap: 6px; background: #e9efff; }
.preview-links i { padding: 7px 9px; border-radius: 7px; background: var(--bg); }
.preview-links i:first-child { color: #2857ae; font-weight: 600; }
.preview-offline { flex-direction: column; background: var(--surface); }
.preview-offline i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #2d9662; color: #fff; font-size: 26px; font-weight: 700; }
.preview-offline strong { font-size: 16px; }
.preview-offline small { color: #508168; }
.preview-diagram { align-items: center; background: #fff0df; }
.preview-diagram i { padding: 9px 11px; border-radius: 7px; background: var(--bg); font-weight: 600; }
.preview-diagram b { color: #c56d23; font-size: 18px; }
.preview-shortcuts { display: grid; justify-content: stretch; align-content: center; gap: 8px; background: var(--surface); }
.preview-shortcuts i { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 7px; background: var(--bg); font-weight: 700; }
.preview-shortcuts small { color: var(--ink-soft); font-weight: 400; }
.preview-citations { flex-direction: column; align-items: flex-start; background: #f5ecd8; }
.preview-citations i:first-child { font-size: 16px; font-weight: 600; }
.preview-citations i:last-child { padding-top: 10px; border-top: 1px solid #d9c9a8; color: #786945; }
.preview-citations b { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 5px; border-radius: 50%; background: #d8bc76; color: #fff; font-size: 10px; }
.preview-code { display: grid; justify-content: stretch; align-content: center; gap: 0; background: #202124; color: #e8eaed; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.preview-code i { padding: 3px 0; white-space: nowrap; }
.preview-code i b { color: #c792ea; }
.preview-code i em { margin: 0; color: #c3e88d; font: inherit; }
.preview-code i strong { color: #82aaff; }
.preview-code label { color: var(--ink-faint); font-family: "SF Pro Display", "Helvetica Neue", sans-serif; }
.preview-vega { position: relative; align-items: flex-end; gap: 8px; padding: 25px 20px 18px; background: var(--bg); }
.preview-vega::before, .preview-vega::after { content: ""; position: absolute; background: var(--surface); }
.preview-vega::before { right: 20px; bottom: 18px; left: 20px; height: 1px; }
.preview-vega::after { top: 22px; bottom: 18px; left: 20px; width: 1px; }
.preview-vega i { position: relative; z-index: 1; width: 22%; border-radius: 5px 5px 0 0; background: #6e45c5; }
.preview-vega i:nth-of-type(1) { height: 35%; }
.preview-vega i:nth-of-type(2) { height: 58%; background: #4f7cac; }
.preview-vega i:nth-of-type(3) { height: 78%; background: #e28743; }
.preview-vega b { position: absolute; z-index: 2; width: 13px; height: 13px; border-radius: 50%; background: #e45858; }
.preview-vega b:nth-of-type(1) { top: 31%; left: 43%; }
.preview-vega b:nth-of-type(2) { top: 23%; right: 24%; }
.preview-vega b:nth-of-type(3) { top: 45%; right: 11%; }

.comparison { max-width: 1151px; margin: 0 auto; padding: 38px 22px 140px; }
.comparison-header { max-width: 760px; margin-bottom: 46px; }
.comparison-header h2 { width: auto; margin-bottom: 16px; }
.comparison-header > p:last-child { margin: 0; color: var(--ink-soft); font-size: 21px; line-height: 1.35; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--bg); }
.comparison table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.comparison th, .comparison td { padding: 22px 24px; text-align: center; border-bottom: 1px solid var(--line-strong); }
.comparison thead th { height: 86px; font-size: 20px; font-weight: 600; vertical-align: middle; }
.comparison thead th:first-child { width: 31%; }
.comparison tbody th { color: var(--ink); font-size: 17px; font-weight: 600; text-align: left; }
.comparison tbody td { font-size: 23px; font-weight: 600; }
.comparison tbody tr:last-child th, .comparison tbody tr:last-child td { border-bottom: 0; }
.comparison .featured-column { background: #f0eaff; }
.comparison thead .featured-column { position: relative; color: #5d35b1; }
.comparison thead .featured-column::before { content: "EMPFOHLEN"; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); color: #7b57c7; font-size: 10px; letter-spacing: .08em; }
.comparison td small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 12px; line-height: 1.2; font-weight: 400; }
.comparison .yes { color: #218358; }
.comparison .partial { color: #d48806; }
.comparison .no { color: var(--ink-faint); }
.comparison-note { margin: 14px 4px 0; color: var(--ink-soft); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.pricing { max-width: 1151px; margin: 0 auto; padding: 30px 22px 150px; }
.pricing-header { max-width: 760px; margin-bottom: 46px; }
.pricing-header h2 { width: auto; margin-bottom: 16px; }
.pricing-header > p:last-child { margin: 0; color: var(--ink-soft); font-size: 21px; line-height: 1.35; }
.pricing-card { display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border-radius: 30px; background: var(--bg); box-shadow: 0 18px 50px rgb(0 0 0 / .08); }
.pricing-summary { display: flex; flex-direction: column; justify-content: center; min-height: 390px; padding: 52px; background: var(--cta-bg); color: var(--cta-ink); }
.plan-name { margin: 0 0 22px; color: var(--ink-faint); font-size: 18px; font-weight: 600; }
.price { display: flex; align-items: flex-start; font-size: 96px; line-height: .9; letter-spacing: -.065em; font-weight: 600; }
.price span { margin: 8px 7px 0 0; font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.price-note { margin: 20px 0 0; color: var(--ink-faint); font-size: 16px; }
.pricing-details { display: flex; flex-direction: column; justify-content: center; padding: 50px 58px; }
.pricing-details ul { display: grid; gap: 18px; margin: 0 0 34px; padding: 0; list-style: none; }
.pricing-details li { display: flex; gap: 13px; align-items: center; color: var(--ink-2); font-size: 18px; line-height: 1.3; }
.pricing-details li span { display: inline-grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--surface); color: #218358; font-size: 14px; font-weight: 700; }
.buy-button { display: block; width: 100%; padding: 16px 24px; border-radius: 14px; background: #6e45c5; color: #fff; font-size: 18px; font-weight: 600; text-align: center; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.buy-button:hover { background: #5d35b1; transform: translateY(-1px); }
.buy-button:focus-visible { outline: 3px solid #bba2f0; outline-offset: 3px; }
.purchase-note { margin: 13px 0 0; color: var(--ink-soft); font-size: 13px; text-align: center; }

.rendering-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.rendering-header { max-width: 845px; padding: 18px 0 90px; }
.rendering-logo { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 15px; color: var(--ink); font-size: 23px; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
.rendering-logo img { width: 32px; height: 32px; border-radius: 8px; }
.rendering-logo:hover { color: var(--ink-2); }
.subpage-home-link { display: block; width: fit-content; margin-bottom: 52px; color: var(--ink-soft); font-size: 14px; line-height: 1.2; font-weight: 600; text-decoration: none; }
.subpage-home-link:hover { color: var(--link); }
.subpage-home-link:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 3px; }
.subpage-home-link span { margin-right: 5px; font-size: 17px; }
.subpage-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subpage-download { display: inline-flex; gap: 9px; align-items: center; min-height: 42px; padding: 8px 12px 8px 14px; border: 1px solid #1d1d1f; border-radius: 10px; background: var(--cta-bg); color: var(--cta-ink); font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.subpage-download:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); box-shadow: 0 5px 12px rgb(0 0 0 / .14); transform: translateY(-1px); }
.subpage-download:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
.subpage-download-copy { display: grid; gap: 3px; }
.subpage-download-copy small { color: var(--ink-faint); font-size: 11px; font-weight: 400; letter-spacing: .01em; }
.subpage-download-arrow { width: 23px; height: 23px; margin-left: 3px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3v23M5 16l11 11 11-11'/%3E%3C/svg%3E"); }

/* Linux updates */
.platform-updates-body { background: var(--bg-elevated); }
.platform-updates-page { max-width: 1000px; margin: 0 auto; padding: 52px 22px 120px; }
.platform-updates-header { max-width: 780px; padding: 18px 0 54px; }
.platform-updates-logo { display: inline-block; margin-bottom: 15px; color: var(--ink); font-size: 23px; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
.platform-updates-logo:hover { color: var(--ink-2); }
.platform-updates-header h1 { max-width: 760px; margin: 0 0 22px; color: var(--ink); font-size: 52px; line-height: 1.05; letter-spacing: -.04em; font-weight: 400; }
.platform-updates-lead { max-width: 690px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.4; }
.platform-update-options { display: grid; grid-template-columns: minmax(0, 480px); gap: 20px; }
.platform-update-card { padding: 34px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg); box-shadow: 0 10px 30px rgb(0 0 0 / .045); }
.platform-update-name { margin: 0 0 13px; color: #6e45c5; font-size: 13px; line-height: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.platform-update-card h2 { margin: 0 0 28px; color: var(--ink); font-size: 29px; line-height: 1.13; letter-spacing: -.025em; font-weight: 400; }
.platform-update-form { display: grid; gap: 11px; }
.platform-email-label { color: var(--ink); font-size: 14px; font-weight: 600; }
.platform-email-row { display: flex; gap: 8px; }
.platform-email-row input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); font: inherit; font-size: 16px; }
.platform-email-row input:focus { border-color: #6e45c5; outline: 3px solid rgb(110 69 197 / .15); }
.platform-email-row button { padding: 11px 15px; border: 0; border-radius: 9px; background: var(--cta-bg); color: var(--cta-ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; }
.platform-email-row button:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); }
.platform-email-row button:disabled { cursor: wait; opacity: .7; }
.platform-consent { display: flex; gap: 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.38; }
.platform-consent input { flex: 0 0 auto; margin: 3px 0 0; }
.platform-update-form.has-consent-error .platform-consent, .platform-update-form.has-consent-error .platform-form-message { color: #c41e3a; }
.platform-update-form.has-consent-error .platform-consent input { outline: 2px solid #c41e3a; outline-offset: 2px; }
.platform-form-message { min-height: 18px; color: #218358; font-size: 13px; line-height: 1.35; }

.editor-body { overflow-x: hidden; background: var(--bg); }
.editor-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.editor-header { max-width: 880px; padding: 18px 0 56px; }
.editor-header h1 { width: 900px; max-width: 100%; margin: 0 0 24px; color: var(--ink); font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.editor-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.editor-hero-image { width: 1400px; margin: 0 0 72px 50%; transform: translateX(-50%); }
.editor-hero-image img { display: block; width: 1400px; max-width: none; height: auto; }
.editor-examples { border-top: 1px solid var(--line-strong); }
.editor-example { padding: 58px 0 72px; border-bottom: 1px solid var(--line-strong); }
.editor-copy { max-width: 710px; margin-bottom: 30px; }
.editor-copy h2 { width: auto; margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.editor-copy > p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.keyboard-key { display: inline-grid; min-width: 16px; height: 20px; padding: 3px 2px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--bg-elevated); box-shadow: 0 1px 0 var(--line-strong), inset 0 1px rgb(255 255 255 / .9); color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600; line-height: 1; place-items: center; vertical-align: 0; }
.screenshot-note { display: inline-block; margin-top: 12px; padding: 4px 8px; border-radius: 5px; background: var(--bg-elevated); color: #a12a2a; font-size: 12px; line-height: 1.25; }
.editor-demo { width: max-content; margin: 0 0 0 50%; transform: translateX(calc(-50% - 24px)); }
.editor-demo img { display: block; width: auto; max-width: none; height: auto; }

/* Kanban view */
.kanban-body { overflow-x: hidden; background: var(--bg); }
.kanban-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.kanban-header { max-width: 880px; padding: 18px 0 56px; }
.kanban-header h1 { max-width: 850px; margin: 0 0 24px; color: var(--ink); font-size: 52px; line-height: 1.06; letter-spacing: -.04em; font-weight: 400; }
.kanban-lead { max-width: 790px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.38; }
.kanban-showcase { width: 1400px; margin: 0 0 88px 50%; transform: translateX(-50%); }
.kanban-hero-image { margin: 0; }
.kanban-hero-image img { display: block; width: 100%; height: auto; border-radius: 18px; }
.kanban-details { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(450px, 1.22fr); gap: 58px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line-strong); }
.kanban-copy h2, .kanban-contrast h2 { margin: 0 0 17px; color: var(--ink); font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.kanban-copy > p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.48; }
.kanban-copy ul { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; line-height: 1.42; }
.kanban-copy li { position: relative; padding-left: 18px; }
.kanban-copy li::before { position: absolute; left: 0; color: var(--ink); content: "•"; }
.kanban-detail-image { margin: 0; }
.kanban-detail-image img { display: block; width: 100%; height: auto; border-radius: 14px; }
.kanban-audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px; padding: 70px 0; border-top: 1px solid var(--line-strong); }
.kanban-audience-block h2 { margin: 0 0 20px; color: var(--ink); font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.kanban-audience-block ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 17px; line-height: 1.48; }
.kanban-audience-block li { position: relative; padding-left: 18px; }
.kanban-audience-block li::before { position: absolute; left: 0; color: var(--ink); content: "–"; }
.kanban-newsletter-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 12px; }
.kanban-newsletter-input-row { display: inline-flex; gap: 8px; align-items: center; }
.kanban-newsletter-input-row input { width: 170px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.kanban-newsletter-input-row input:focus { border-color: var(--link); outline: none; }
.kanban-newsletter-input-row button { padding: 8px 14px; border: 0; border-radius: 7px; background: var(--cta-bg); color: var(--cta-ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; }
.kanban-newsletter-input-row button:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); }
.kanban-newsletter-input-row button:disabled { cursor: wait; opacity: .7; }
.kanban-newsletter-form label { display: flex; gap: 7px; max-width: 420px; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }
.kanban-newsletter-form label input { flex: 0 0 auto; margin: 2px 0 0; }
.kanban-newsletter-form a { color: var(--link); }
.kanban-newsletter-message { min-height: 16px; font-size: 12px; }
.kanban-contrast { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; padding: 76px 0; border-top: 1px solid var(--line-strong); }
.kanban-contrast dl { margin: 0; border-top: 1px solid var(--line-strong); }
.kanban-contrast dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.kanban-contrast dt { color: var(--ink); font-size: 15px; font-weight: 600; }
.kanban-contrast dd { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.35; }
.kanban-footer { display: flex; justify-content: space-between; gap: 40px; align-items: end; padding: 34px 0 0; border-top: 1px solid var(--line-strong); }
.kanban-footer p { max-width: 610px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.42; }
.kanban-footer a { color: var(--link); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.kanban-footer a:hover { text-decoration: underline; }
.rendering-header h1 { width: 1020px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.rendering-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.rendering-lead a { color: inherit; }
.rendering-lead a.blue-link { color: var(--link); }
.rendering-example { display: grid; grid-template-columns: 1fr; gap: 34px; padding: 58px 0; border-top: 1px solid var(--line-strong); }
.rendering-copy h2 { width: auto; margin-bottom: 18px; font-size: 38px; line-height: 1.08; font-weight: 400; letter-spacing: -.03em; }
.rendering-copy p:not(.feature-label) { margin: 0 0 11px; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
.rendering-toggle { display: inline-flex; gap: 3px; margin-top: 22px; padding: 3px; border-radius: 9px; background: var(--surface); }
.rendering-toggle button { min-width: 60px; padding: 8px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rendering-toggle button.active { background: var(--cta-bg); color: var(--cta-ink); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.rendering-toggle button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.rendering-demo { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: transparent; }
.rendering-demo img { display: block; width: 100%; height: auto; }
.rendering-demo img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.rendering-demo.show-on img + img { opacity: 1; }
.rendering-demo figcaption { position: absolute; top: 14px; left: 50%; z-index: 1; padding: 7px 10px; border-radius: 6px; background: var(--cta-bg); color: var(--cta-ink); font-size: 13px; font-weight: 600; transform: translateX(-50%); }
.rendering-video { margin: 0; border: 0; outline: 0; }
.rendering-video video { display: block; width: 100%; height: auto; border: 0; outline: 0; appearance: none; -webkit-appearance: none; }
.rendering-video video::-webkit-media-controls-enclosure { border: 0; }
.line-breaks-hero-video { position: relative; left: min(553.5px, calc(50vw - 22px)); width: min(135.2%, calc(80vw - 35.2px)); margin-top: 34px; transform: translateX(-50%); overflow: hidden; border-radius: 18px; box-shadow: 0 24px 56px rgb(0 0 0 / .30), 0 8px 20px rgb(0 0 0 / .18); }
.line-breaks-hero-video video { margin-bottom: -1px; }

.mhchem-body { background: var(--bg); overflow-x: auto; }
.mhchem-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.mhchem-header { max-width: 865px; padding: 18px 0 36px; }
.mhchem-header h1 { width: 900px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.mhchem-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.mhchem-lead strong { color: var(--ink-2); font-weight: 600; }
.mhchem-download-note, .pikchr-download-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.4; }
.mhchem-capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 17px; line-height: 1.35; }
.mhchem-capability-list li { position: relative; padding-left: 17px; }
.mhchem-capability-list li::before { content: ""; position: absolute; top: .45em; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #6e45c5; }
.mhchem-example { padding: 0; }
.mhchem-demo { width: 1216px; margin: 0 0 0 50%; transform: translateX(calc(-50% - 24px)); }
.mhchem-demo img { display: block; width: 1216px; height: 923px; }
.mhchem-examples { margin-top: 76px; border-top: 1px solid var(--line-strong); }
.mhchem-example-card { padding: 58px 0 72px; border-bottom: 1px solid var(--line-strong); scroll-margin-top: 28px; }
.mhchem-copy { max-width: 710px; margin-bottom: 30px; }
.mhchem-copy h2 { width: auto; margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.mhchem-heading-anchor { color: inherit; text-decoration: none; }
.mhchem-heading-anchor:hover, .mhchem-heading-anchor:focus-visible { text-decoration: underline; text-underline-offset: .12em; }
.mhchem-copy p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.mhchem-copy code { padding: .12em .34em; border-radius: 4px; background: var(--surface); color: #c5221f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .86em; line-height: inherit; white-space: nowrap; }
.mhchem-example-demo { width: 1100px; margin: 0 0 0 50%; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg); box-shadow: 0 16px 38px rgb(29 29 31 / .16); transform: translateX(calc(-50% - 24px)); }
.mhchem-example-demo img { display: block; width: 1100px; max-width: none; height: auto; }

.asciimath-body { overflow-x: auto; background: var(--bg); }
.asciimath-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.asciimath-header { max-width: 865px; padding: 18px 0 36px; }
.asciimath-header h1 { width: 900px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.asciimath-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.asciimath-capability-list { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 17px; line-height: 1.35; }
.asciimath-capability-list li { position: relative; padding-left: 17px; }
.asciimath-capability-list li::before { content: ""; position: absolute; top: .45em; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #e5a028; }
.asciimath-capability-list code { color: var(--ink-2); font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .91em; }
.asciimath-example { padding: 0; }
.asciimath-demo { width: 1216px; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; transform: translateX(calc(-50% - 24px)); }
.asciimath-demo img { display: block; width: 1216px; height: auto; }
.asciimath-video-note { background: var(--bg-elevated); color: #8a3b3b; padding: 20px;}
.asciimath-video { width: min(1584px, calc(100vw - 44px)); margin: 0 0 0 50%; overflow: hidden; transform: translateX(calc(-50% - 24px)); }
.asciimath-video video { display: block; width: 100%; height: auto; transform: scale(1.003); transform-origin: center; }

.code-body { overflow-x: hidden; background: var(--bg); }
.code-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.code-header { max-width: 900px; padding: 18px 0 56px; }
.code-header h1 { width: 920px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.code-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.code-lead + .code-lead { margin-top: 16px; }
.code-lead strong { color: var(--ink-2); font-weight: 600; }
.code-header sub code { padding: .12em .36em; border-radius: 4px; background: var(--surface); color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; line-height: inherit; white-space: nowrap; }
.code-themes { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 25px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.35; }
.code-themes span { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-elevated); color: var(--ink-2); font-weight: 600; }
.code-example { padding: 58px 0 0; border-top: 1px solid var(--line-strong); }
.code-copy { max-width: 710px; margin-bottom: 28px; }
.code-copy h2 { width: auto; margin: 0 0 13px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.code-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
.code-demo { width: 1592px; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; transform: translateX(calc(-50% - 24px)); }
.code-demo img { display: block; width: 1592px; max-width: none; height: 898px; }

.vega-lite-body { overflow-x: auto; background: var(--bg); }
.vega-lite-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.vega-lite-header { max-width: 880px; padding: 18px 0 56px; }
.vega-lite-header h1 { width: 920px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.vega-lite-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.vega-lite-examples { border-top: 1px solid var(--line-strong); }
.vega-lite-example { padding: 58px 0 70px; border-bottom: 1px solid var(--line-strong); }
.vega-lite-copy { max-width: 680px; margin-bottom: 28px; }
.vega-lite-copy h2 { width: auto; margin: 0 0 13px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.vega-lite-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
.vega-lite-demo { width: max-content; margin: 0 0 0 50%; transform: translateX(calc(-50% - 24px)); }
.vega-lite-demo img, .vega-lite-demo video { display: block; height: auto; }
.vega-lite-demo-revenue img, .vega-lite-demo-revenue video, .vega-lite-demo-profit img { width: 1599px; }
.vega-lite-demo-margin img { width: 1685px; }

.mermaid-body { overflow-x: hidden; background: var(--bg); }
.mermaid-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.mermaid-header { max-width: 890px; padding: 18px 0 56px; }
.mermaid-header h1 { width: 920px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.mermaid-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.mermaid-roadmap { display: grid; gap: 7px; margin: 22px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
.mermaid-roadmap li::marker { color: #6e45c5; }
.mermaid-example { padding: 58px 0 0; border-top: 1px solid var(--line-strong); }
.mermaid-example-secondary { margin-top: 78px; }
.mermaid-copy { max-width: 680px; margin-bottom: 28px; }
.mermaid-copy h2 { width: auto; margin: 0 0 13px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.mermaid-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
.mermaid-demo { width: 1216px; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; transform: translateX(calc(-50% - 24px)); }
.mermaid-demo img { display: block; width: 100%; height: auto; }

.plantuml-body { overflow-x: hidden; background: var(--bg); }
.plantuml-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.plantuml-header { max-width: 900px; padding: 18px 0 56px; }
.plantuml-header h1 { width: 920px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.plantuml-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.plantuml-inline-code { padding: .12em .34em; border-radius: 7px; background: var(--surface); color: #c5221f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .7em; line-height: inherit; white-space: nowrap; }
.plantuml-roadmap { margin: 20px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 17px; line-height: 1.4; }
.plantuml-example { padding: 58px 0 0; border-top: 1px solid var(--line-strong); }
.plantuml-example-secondary { margin-top: 78px; }
.plantuml-copy { max-width: 710px; margin-bottom: 28px; }
.plantuml-copy h2 { width: auto; margin: 0 0 13px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.plantuml-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
.plantuml-demo { width: 1216px; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; background: var(--bg); box-shadow: 0 14px 32px rgb(0 0 0 / .13); transform: translateX(calc(-50% - 24px)); }
.plantuml-demo-plain { background: transparent; box-shadow: none; }
.plantuml-demo img { display: block; width: 100%; height: auto; }

.graphviz-body { overflow-x: hidden; background: var(--bg); }
.graphviz-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.graphviz-header { max-width: 900px; padding: 18px 0 56px; }
.graphviz-header h1 { width: 920px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.graphviz-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.graphviz-lead sup { margin-left: .12em; color: #c5221f; font-size: .6em; font-weight: 600; }
.graphviz-header > sub { display: block; max-width: 710px; margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.42; }
.graphviz-header > sub code, .graphviz-copy code { padding: .12em .34em; border-radius: 4px; background: var(--surface); color: #c5221f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .86em; line-height: inherit; white-space: nowrap; }
.graphviz-example { padding: 58px 0 0; border-top: 1px solid var(--line-strong); }
.graphviz-copy { max-width: 710px; margin-bottom: 28px; }
.graphviz-copy h2 { width: auto; margin: 0 0 13px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.graphviz-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
.graphviz-demo { width: 1216px; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; background: var(--bg); box-shadow: 0 14px 32px rgb(0 0 0 / .13); transform: translateX(calc(-50% - 24px)); }
.graphviz-demo img { display: block; width: 100%; height: auto; }

.excalidraw-body { overflow-x: hidden; background: var(--bg); }
.excalidraw-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.excalidraw-header { max-width: 920px; padding: 18px 0 76px; }
.excalidraw-header h1 { width: 960px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.excalidraw-lead { max-width: 850px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.excalidraw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.excalidraw-chips span { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-elevated); color: #3f6750; font-size: 15px; line-height: 1.15; font-weight: 600; }
.excalidraw-examples { border-top: 1px solid var(--line-strong); }
.excalidraw-example { padding: 58px 0 72px; border-bottom: 1px solid var(--line-strong); }
.excalidraw-copy { max-width: 720px; margin-bottom: 30px; }
.excalidraw-copy h2 { width: auto; margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.excalidraw-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.excalidraw-demo { width: 1216px; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; background: transparent;  transform: translateX(calc(-50% - 24px)); }
.excalidraw-demo img { display: block; width: 100%; height: auto; }

.footnotes-body { overflow-x: hidden; background: var(--bg); }
.footnotes-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.footnotes-header { max-width: 900px; padding: 18px 0 76px; }
.windows-page .footnotes-header { padding-bottom: 42px; }
.footnotes-header h1 { width: 960px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.footnotes-lead { max-width: 820px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.warningtext { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 13px; max-width: 820px; margin: 0 0 20px; padding: 17px 19px; border: 1px solid #f0c36a; border-radius: 14px; background: linear-gradient(135deg, #fff9e9, #fff4d7); color: #6d4a00; box-shadow: 0 5px 16px rgb(133 88 0 / .08); }
.warningtext-icon { display: grid; width: 28px; height: 28px; place-items: center; margin-top: 1px; border-radius: 50%; background: #b87800; color: #fff; font-size: 17px; line-height: 1; font-weight: 700; }
.warningtext strong { display: block; color: #6d4a00; font-size: 16px; line-height: 1.25; font-weight: 700; }
.warningtext p { margin: 4px 0 0; color: #765915; font-size: 16px; line-height: 1.4; }
.pikchr-inline-code { padding: .12em .34em; border-radius: 4px; background: var(--surface); color: #c5221f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .7em; line-height: inherit; white-space: nowrap; }
.footnotes-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.footnotes-chips span { padding: 7px 11px; border: 1px solid #e4d8bc; border-radius: 999px; background: var(--surface); color: #665735; font-size: 15px; line-height: 1.15; font-weight: 600; }
.footnotes-examples { border-top: 1px solid var(--line-strong); }
.windows-page .footnotes-examples { border-top: 0; }
.footnotes-example { padding: 58px 0 72px; border-bottom: 1px solid var(--line-strong); }
.footnotes-copy { max-width: 710px; margin-bottom: 30px; }
.footnotes-copy h2 { width: auto; margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.footnotes-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.footnotes-copy p code { padding: .12em .32em; border-radius: 4px; background: var(--surface); color: #6f591f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .86em; line-height: inherit; white-space: nowrap; }
.footnotes-copy > code { display: inline-block; margin-top: 18px; padding: 7px 10px; border-radius: 7px; background: #f5ecd8; color: #6f591f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 14px; }
.footnotes-demo { width: max-content; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; background: transparent; box-shadow: none; transform: translateX(calc(-50% - 24px)); }
.footnotes-demo img { display: block; width: auto; max-width: none; height: auto; }
.icloud-conflicts { border-bottom: 0; }
/* Align the app window with the text, accounting for the screenshot's 56px side margins. */
.icloud-conflict-demo { width: 109.1131%; margin: 0 0 0 -4.55655%; }
.icloud-conflict-demo img { display: block; width: 100%; height: auto; }
.markdown-callouts-copy { margin-top: 34px; }
.markdown-callouts-examples, .markdown-callouts-examples .footnotes-example { border: 0; }
.markdown-callouts-demo { border: 1px solid var(--line-strong); box-shadow: 0 12px 28px rgba(29, 29, 31, .12); }
.inline-math-demo { box-shadow: 0 16px 36px rgba(29, 29, 31, .16); }
.footnotes-demo.windows-demo { border-radius: 0; }
.windows-demo img { width: 1261px; }
.priority-tags-page .footnotes-example { padding-bottom: 0; border-bottom: 0; }
.priority-tags-demo { border: 1px solid var(--line-strong); box-shadow: 0 16px 36px rgba(29, 29, 31, .16); }
.priority-tags-demo video { display: block; width: 1100px; max-width: 100%; height: auto; }
.chinese-demo img { width: auto; }
.chinese-demo-simplified img { width: 1536px; }
.chinese-demo-traditional {
  width: 1153px;
  aspect-ratio: 2310 / 1474;
}
.chinese-demo-traditional img {
  width: calc(100% + 4px);
  max-width: none;
  transform: translate(-2px, -2px);
}
.chinese-page .footnotes-header { max-width: 1151px; }
.chinese-page .hero-downloads { width: 1072px; max-width: 100%; }
.language-page .footnotes-header { max-width: 1151px; }
.language-page .hero-downloads { width: 1072px; max-width: 100%; }
.footnotes-demo.language-demo { width: 1584px; max-width: calc(100vw - 44px); border-radius: 18px; transform: translateX(-50%); }
.language-demo img { width: 100%; max-width: 100%; }
.language-body .site-footer-brand { min-width: 0; }


/* Markdown table generator */
.table-generator-header { padding-bottom: 62px; }
.table-generator { border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg-elevated); box-shadow: 0 16px 36px rgb(29 29 31 / .08); overflow: hidden; }
.table-generator-controls { display: flex; justify-content: flex-start; padding: 22px 32px; border-bottom: 1px solid var(--line-strong); background: var(--bg); }
.table-generator-controls h2, .table-generator-note h2 { margin: 0 0 9px; color: var(--ink); font-size: 30px; line-height: 1.1; letter-spacing: -.025em; font-weight: 400; }
.table-generator-controls p, .table-generator-note p { max-width: 620px; margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.table-size-controls { display: flex; flex: 0 0 auto; gap: 12px; }
.table-size-controls label { display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.table-size-controls input { width: 72px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.table-size-controls input:focus, .table-editor input:focus, #markdown-output:focus { border-color: var(--link); outline: 3px solid rgb(0 102 204 / .14); }
.table-workspace { display: grid; grid-template-columns: minmax(0, 1fr); }
.table-editor-wrap, .table-output-wrap { min-width: 0; padding: 26px 28px 29px; }
.table-editor-wrap { border-bottom: 1px solid var(--line-strong); }
.table-panel-label { margin: 0 0 12px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); }
.table-editor { width: 100%; min-width: 420px; border-collapse: collapse; }
.table-editor th, .table-editor td { min-width: 120px; padding: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.table-editor tr > *:last-child { border-right: 0; }
.table-editor tbody tr:last-child td { border-bottom: 0; }
.table-editor th { background: var(--surface); }
.table-editor input { width: 100%; min-width: 0; padding: 12px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.table-editor th input { font-weight: 600; }
.table-output-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.table-output-heading button { padding: 7px 10px; border: 0; border-radius: 7px; background: var(--cta-bg); color: var(--cta-ink); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.table-output-heading button:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); }
#markdown-output { display: block; width: 100%; height: 230px; resize: vertical; padding: 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--cta-bg); color: var(--cta-ink); font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
.copy-status { min-height: 20px; margin: 8px 0 0; color: #218358; font-size: 13px; line-height: 1.35; }
.table-generator-note { max-width: 750px; padding: 58px 0 0; }
@media (max-width: 700px) { .table-generator-controls { display: grid; padding: 20px; } .table-editor-wrap, .table-output-wrap { padding: 22px 20px; } .table-generator-note { padding-top: 42px; } }

/* URL to Markdown link converter */
.url-link-header { padding-bottom: 52px; }
.url-link-generator { max-width: 820px; }
.url-link-input-wrap { padding: 28px; border-bottom: 1px solid var(--line-strong); background: var(--bg); }
.url-link-label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.url-link-field + .url-link-field { margin-top: 18px; }
.url-link-input-wrap input { display: block; width: 100%; padding: 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; }
.url-link-input-wrap input::placeholder { color: var(--ink-soft); }
.url-link-input-wrap input:focus { border-color: var(--link); outline: 3px solid rgb(0 102 204 / .14); }
.url-link-help { margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.url-link-help code { padding: .1em .25em; border-radius: 4px; background: var(--surface); color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.url-link-output-wrap { border-bottom: 0; }
#markdown-link-output { display: block; width: 100%; height: 105px; resize: vertical; padding: 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--cta-bg); color: var(--cta-ink); font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
#markdown-link-output:focus { border-color: var(--link); outline: 3px solid rgb(0 102 204 / .14); }
.table-output-heading button:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 700px) { .url-link-input-wrap { padding: 22px 20px; } }

.latex-body { overflow-x: hidden; background: var(--bg); }
.latex-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.latex-header { max-width: 920px; padding: 18px 0 76px; }
.latex-header h1 { width: 980px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.latex-lead { max-width: 840px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.latex-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.latex-chips span { padding: 7px 11px; border: 1px solid #d9d4eb; border-radius: 999px; background: var(--bg-elevated); color: #524b73; font-size: 15px; line-height: 1.15; font-weight: 600; }
.latex-index { margin-top: 34px; }
.latex-index > p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; font-weight: 600; }
.latex-index > div { display: flex; flex-wrap: wrap; gap: 8px; }
.latex-index a { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--ink-2); font-size: 14px; line-height: 1.2; font-weight: 600; text-decoration: none; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.latex-index a:hover { border-color: #9181bd; background: var(--bg-elevated); color: #4c3b76; }
.latex-index a:focus-visible { outline: 3px solid #6e45c5; outline-offset: 3px; }
.latex-examples { border-top: 1px solid var(--line-strong); }
.homepage-feature-showcase { max-width: 1151px; margin: 0 auto; padding: 0 22px; border-top: 1px solid var(--line-strong); }
.homepage-feature { padding: 58px 0 72px; border-bottom: 1px solid var(--line-strong); }
.homepage-feature-copy { max-width: 760px; margin-bottom: 36px; }
.homepage-feature-copy h2 { width: auto; margin-bottom: 16px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.homepage-feature-copy p { margin: 0; color: var(--ink-soft); font-size: 21px; line-height: 1.35; }
.homepage-feature-demo { width: max-content; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; background: transparent; transform: translateX(calc(-50% - 24px)); }
.homepage-feature-demo img { display: block; width: auto; max-width: none; height: auto; }
.latex-example { padding: 58px 0 72px; border-bottom: 1px solid var(--line-strong); scroll-margin-top: 28px; }
.latex-copy { max-width: 710px; margin-bottom: 30px; }
.latex-copy h2 { width: auto; margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.latex-heading-anchor { color: inherit; text-decoration: none; }
.latex-heading-anchor:hover, .latex-heading-anchor:focus-visible { text-decoration: underline; text-underline-offset: .12em; }
.latex-copy p:not(.feature-label) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.latex-inline-code { padding: .12em .34em; border-radius: 4px; background: var(--surface); color: #c5221f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .7em; line-height: inherit; white-space: nowrap; }
.latex-live-formula { width: fit-content; max-width: 100%; margin-top: 22px; padding: 18px 22px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-elevated); color: var(--ink); font-size: 22px; }
.latex-live-formula math { display: block; min-width: max-content; }
.latex-demo { width: max-content; margin: 0 0 0 50%; overflow: hidden; border-radius: 22px; background: transparent; transform: translateX(calc(-50% - 24px)); }
.latex-demo img { display: block; width: auto; max-width: none; height: auto; }

.changelog-body { overflow-x: hidden; background: var(--bg); }
.changelog-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.changelog-header { max-width: 900px; padding: 18px 0 56px; }
.changelog-header h1 { width: 920px; max-width: 100%; margin: 0 0 24px; color: var(--ink); font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.changelog-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.38; }
.changelog-list { border-top: 1px solid var(--line-strong); }
.release { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 40px; padding: 54px 0 60px; border-bottom: 1px solid var(--line-strong); }
.release-meta { display: grid; align-content: start; gap: 10px; padding-top: 5px; }
.release-version { width: fit-content; padding: 7px 10px; border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: -.01em; }
.release-latest .release-version { background: #efe9ff; color: #5d35b1; }
.release-meta time { color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.release-content { max-width: 700px; }
.release-kicker { margin: 0 0 11px; color: #6e45c5; font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .07em; }
.release-content h2 { width: auto; margin: 0 0 14px; font-size: 36px; line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.release-summary { margin: 0 0 31px; color: var(--ink-soft); font-size: 18px; line-height: 1.45; }
.change-group + .change-group { margin-top: 26px; }
.change-group h3 { margin: 0 0 10px; color: var(--ink); font-size: 16px; line-height: 1.2; font-weight: 600; }
.change-group ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.change-group li { position: relative; padding-left: 19px; color: var(--ink-2); font-size: 17px; line-height: 1em; }
.change-group li::before { content: ""; position: absolute; left: 1px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: #a78bdb; }
.change-group li a { color: var(--link); text-decoration: none; }
.change-group li a:hover { text-decoration: underline; }
.change-group li a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.change-group li em { color: var(--ink-soft); font-size: .9em; }
.experimental-notice { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--bg-elevated); color: #a12a2a; font-size: .82em; line-height: 1.25; }
.changelog-footer { max-width: 700px; padding: 42px 0 0 228px; }
.changelog-footer p { margin: 0 0 17px; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.changelog-footer a { color: var(--link); font-size: 17px; font-weight: 600; text-decoration: none; }
.changelog-footer a:hover { text-decoration: underline; }
.changelog-footer a span { margin-left: 4px; font-size: 20px; }
.download-archive-body { overflow-x: hidden; background: var(--bg); }
.download-archive-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.download-archive-header { max-width: 820px; padding: 18px 0 58px; }
.download-archive-header h1 { margin: 0 0 24px; color: var(--ink); font-size: 48px; line-height: 1.08; letter-spacing: -.035em; font-weight: 400; }
.download-archive-lead { margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.38; }
.download-archive-lead a { color: var(--link); text-decoration: none; }
.download-archive-lead a:hover { text-decoration: underline; }
.download-archive-section { max-width: 900px; }
.download-archive-section h2 { margin: 0 0 22px; color: var(--ink); font-size: 32px; line-height: 1.12; letter-spacing: -.03em; font-weight: 400; }
.download-archive-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg); }
.download-archive-table { width: 100%; min-width: 800px; border-collapse: collapse; }
.download-archive-table th, .download-archive-table td { padding: 19px 22px; border-bottom: 1px solid var(--line-strong); text-align: left; vertical-align: middle; }
.download-archive-table thead th { background: var(--bg-elevated); color: var(--ink-soft); font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.download-archive-table tbody th { width: 19%; color: var(--ink); font-size: 16px; font-weight: 600; }
.download-archive-table tbody td { color: var(--ink-soft); font-size: 15px; }
.download-archive-table tbody tr:last-child th, .download-archive-table tbody tr:last-child td { border-bottom: 0; }
.download-archive-table tbody tr:hover { background: var(--bg-elevated); }
.archive-version { display: inline-block; padding: 6px 9px; border-radius: 7px; background: var(--surface); color: var(--ink-2); font-size: 13px; line-height: 1; }
.archive-download { display: inline-flex; gap: 7px; align-items: center; padding: 9px 12px; border-radius: 9px; background: var(--cta-bg); color: var(--cta-ink); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.archive-download:hover { background: color-mix(in oklab, var(--cta-bg) 86%, var(--bg)); transform: translateY(-1px); }
.archive-download:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
.archive-download span { font-size: 17px; }
.archive-changelog { color: var(--link); font-weight: 600; text-decoration: none; }
.archive-changelog:hover { text-decoration: underline; }
.archive-changelog:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.download-archive-note { display: block; width: 100%; margin: 18px 0 0; padding: 8px 11px; border-radius: 6px; background: var(--bg-elevated); color: #a12a2a; font-size: 14px; line-height: 1.45; }
.roadmap-section { padding: 78px 0 0; }
.roadmap-section-header { padding: 0 0 38px; }
.roadmap-eyebrow { margin: 0 0 12px; color: #6e45c5; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.roadmap-section-header h2 { margin: 0 0 16px; color: var(--ink); font-size: 42px; line-height: 1.08; letter-spacing: -.035em; font-weight: 400; }
.roadmap-section-header > p:last-child { margin: 0; color: var(--ink-soft); font-size: 19px; line-height: 1.42; }
.roadmap-section .roadmap-list { border-top: 1px solid var(--line-strong); }
.roadmap-section .roadmap-stage { padding: 48px 0 58px; border-bottom: 1px solid var(--line-strong); }
.roadmap-section .roadmap-stage-content { max-width: none; }
.roadmap-section .roadmap-stage-content h3 { width: auto; margin: 0 0 14px; font-size: 32px; line-height: 1.12; letter-spacing: -.03em; font-weight: 400; }
.roadmap-section .roadmap-stage-content ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.roadmap-section .roadmap-stage-content li { position: relative; padding-left: 19px; color: var(--ink-2); font-size: 17px; line-height: 1em; }
.roadmap-section .roadmap-stage-content li::before { content: ""; position: absolute; left: 1px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: #a78bdb; }
.roadmap-section .roadmap-stage-content strong { color: var(--ink); font-weight: 600; }
.updates-section { max-width: 710px; padding: 78px 0 0; }
.updates-section-header { padding: 0 0 38px; }
.updates-section-header h2 { margin: 0 0 16px; color: var(--ink); font-size: 42px; line-height: 1.08; letter-spacing: -.035em; font-weight: 400; }
.updates-section-header > p:last-child { margin: 0; color: var(--ink-soft); font-size: 19px; line-height: 1.42; }
.roadmap-body { overflow-x: hidden; background: var(--bg); }
.roadmap-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.roadmap-header { max-width: 920px; padding: 18px 0 76px; }
.roadmap-header h1 { width: 980px; max-width: 100%; margin: 0 0 24px; font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.roadmap-lead { max-width: 840px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.roadmap-list { border-top: 1px solid var(--line-strong); }
.roadmap-stage { padding: 58px 0 72px; border-bottom: 1px solid var(--line-strong); }
.roadmap-stage-label { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; }
.roadmap-stage-label span { width: fit-content; padding: 7px 10px; border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 14px; line-height: 1; font-weight: 600; }
.roadmap-stage-now .roadmap-stage-label span { background: #efe9ff; color: #5d35b1; }
.roadmap-stage-label p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.roadmap-stage-content { max-width: 710px; }
.roadmap-stage-content h2 { width: auto; margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.roadmap-stage-content ul { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.roadmap-stage-content li { position: relative; padding-left: 19px; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.roadmap-stage-content li::before { content: ""; position: absolute; left: 1px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: #a78bdb; }
.roadmap-stage-content strong { color: var(--ink); font-weight: 600; }
.roadmap-footer { max-width: 710px; padding: 42px 0 0; }
.roadmap-footer p { margin: 0 0 17px; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.roadmap-footer a { color: var(--link); font-size: 17px; font-weight: 600; text-decoration: none; }
.roadmap-footer a:hover { text-decoration: underline; }
.roadmap-footer a span { margin-left: 4px; font-size: 20px; }
.rendering-showcase { max-width: 1151px; margin: 0 auto; padding: 56px 22px 84px; }
.rendering-showcase header { max-width: 760px; margin-bottom: 36px; }
.rendering-showcase h2 { width: auto; margin-bottom: 16px; }
.rendering-showcase header > p:last-child { margin: 0; color: var(--ink-soft); font-size: 21px; line-height: 1.35; }
.compatibility-link { font-size: 14px; color: var(--ink-soft); }
.rendering-showcase-link { display: inline-block; margin-top: 18px; color: var(--link); font-size: 21px; line-height: 1.35; text-underline-offset: 3px; }
.rendering-showcase-link span { margin-left: 4px; font-size: inherit; }
.keyboard-tutorial-body { overflow-x: hidden; background: var(--bg); }
.keyboard-tutorial-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 130px; }
.keyboard-tutorial-header { max-width: 900px; padding: 18px 0 76px; }
.keyboard-tutorial-header h1 { width: 960px; max-width: 100%; margin: 0 0 24px; color: var(--ink); font-size: 48px; line-height: 52px; letter-spacing: -.003em; font-weight: 400; }
.keyboard-tutorial-header h1 code { padding: .08em .2em; border-radius: 4px; background: var(--bg-elevated); color: #524b73; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .82em; line-height: inherit; white-space: nowrap; }
.keyboard-tutorial-lead { max-width: 820px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.keyboard-os-sections { display: grid; gap: 52px; }
.keyboard-os-section { padding-top: 2px; }
.keyboard-os-heading { max-width: 760px; margin: 0 0 24px; }
.keyboard-os-heading .feature-label { margin-bottom: 9px; }
.keyboard-os-heading h2 { width: auto; margin: 0 0 8px; color: var(--ink); font-size: 32px; line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.keyboard-os-heading > p:not(.keyboard-section-info) { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.45; }
.keyboard-os-heading .keyboard-section-info { max-width: 720px; margin: 15px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.keyboard-section-info strong { color: var(--ink-2); }
.keyboard-section-info em { font-style: normal; font-weight: 600; }
.keyboard-section-info a { display: inline-block; margin-left: 8px; color: #56379c; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.keyboard-layouts { display: grid; gap: 18px; }
.keyboard-additional-layouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.keyboard-additional-layouts-heading { grid-column: 1 / -1; padding: 20px 2px 7px; }
.keyboard-additional-layouts-heading .feature-label { margin: 0 0 8px; }
.keyboard-additional-layouts-heading h3 { margin: 0 0 7px; color: var(--ink-2); font-size: 27px; line-height: 1.16; letter-spacing: -.02em; font-weight: 400; }
.keyboard-additional-layouts-heading p:last-child { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.keyboard-card { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.55fr); gap: 46px; align-items: center; padding: 36px 38px; border: 1px solid var(--line-strong); border-radius: 26px; background: var(--bg); box-shadow: 0 14px 30px rgb(59 38 91 / .045); }
.keyboard-card-compact { display: block; padding: 28px 30px; border-radius: 20px; }
.keyboard-card-compact .keyboard-card-copy h2 { margin-bottom: 11px; font-size: 29px; }
.keyboard-card-compact .keyboard-shortcut { margin-top: 18px; }
.keyboard-card-copy h2 { width: auto; margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.keyboard-card-copy > p:not(.feature-label):not(.keyboard-shortcut) { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.42; }
kbd { display: inline-block; min-width: 1.65em; padding: .12em .36em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-elevated); color: var(--ink-2); font: 600 .88em/1.15 "SF Pro Display", sans-serif; text-align: center; }
.keyboard-shortcut { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 22px 0 0; }
.keyboard-shortcut kbd { padding: 7px 10px; border-color: #bcaaf0; background: #f1ecff; color: #56379c; font-size: 17px; }
.keyboard-shortcut b { color: #867b9d; }
.keyboard-shortcut span { width: 100%; margin-top: 3px; color: var(--ink-soft); font-size: 13px; }
.keyboard-layout-note { margin: 15px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.keyboard-linux-note { margin: 18px 2px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.keyboard-linux-note strong { color: var(--ink-2); }
.keyboard-os-section-macos { padding: 34px 38px 38px; border-radius: 26px; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-elevated)); }
.keyboard-macos-layouts { display: grid; gap: 18px; }
.keyboard-card-copy h3 { margin: 0 0 14px; color: var(--ink-2); font-size: 27px; line-height: 1.16; letter-spacing: -.02em; font-weight: 400; }
.keyboard-visual { min-width: 0; padding: 21px; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, var(--bg-elevated), #eaf3ff); }
.keyboard-function-row, .keyboard-row { display: grid; grid-template-columns: repeat(13, minmax(24px, 1fr)) 1.85fr; gap: 5px; min-width: 560px; }
.keyboard-function-row { margin-bottom: 7px; }
.keyboard-visual .keyboard-key { display: grid; position: relative; min-height: 54px; place-content: center; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 8px; background: var(--bg); color: var(--ink-2); font-size: 14px; box-shadow: 0 2px 0 rgb(78 67 100 / .05); }
.keyboard-visual .keyboard-key small { position: absolute; right: 6px; top: 5px; color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.keyboard-visual .keyboard-key-wide, .keyboard-visual .keyboard-key-backspace { color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.keyboard-visual .keyboard-function-key, .keyboard-visual .keyboard-key-escape { min-height: 31px; color: var(--ink-soft); font-size: 10px; }
.keyboard-visual .keyboard-key-escape { color: var(--ink-2); font-weight: 600; }
.keyboard-visual .keyboard-key-target { border-color: #7251ca; border-bottom-color: #5e3dac; background: #6e45c5; color: #fff; box-shadow: 0 6px 14px rgb(92 59 172 / .27); transform: translateY(-3px); }
.keyboard-visual .keyboard-key-target small { color: #ebe4ff; }
.keyboard-visual .keyboard-key-target b { font-size: 19px; }
.keyboard-caption { margin: 15px 0 0; color: #696779; font-size: 14px; text-align: center; }
.keyboard-caption strong { color: #56379c; }
.keyboard-mac-french-visual { display: grid; place-items: center; min-height: 132px; }
.keyboard-mac-fr-corner { width: min(100%, 420px); }
.keyboard-mac-fr-corner > .keyboard-key-return { width: 108px; min-height: 37px; margin: 0 0 5px auto; font-size: 11px; }
.keyboard-mac-fr-bottom { display: grid; grid-template-columns: minmax(60px, 1fr) 2.2fr 1fr; gap: 5px; }
.keyboard-mac-fr-bottom .keyboard-key { min-height: 54px; }
.keyboard-mac-fr-bottom .keyboard-key-filler { color: var(--ink-faint); }
.keyboard-mac-fr-bottom .keyboard-key-right-shift { color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.keyboard-tutorial-note { margin-top: 34px; padding: 19px 22px; border-radius: 15px; background: var(--bg-elevated); color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.keyboard-tutorial-note strong { color: var(--ink); }
.line-break-demo { width: 1040px; max-width: none; height: 235px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: #e9e1f7; }
.markdown-shortcuts-demo { width: 1044px; max-width: none; height: 242px; margin-top: 24px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: #e9e1f7; }
.copy-paste-showcase, .chatgpt-copy-showcase, .visual-editor-showcase { max-width: 1151px; padding-top: 84px; }
.copy-paste-demo, .chatgpt-copy-demo, .visual-editor-demo { box-sizing: border-box; width: 100%; max-width: 100%; overflow: hidden; border-radius: 24px; background: transparent; }
.visual-editor-showcase { max-width: 1444px; }
.visual-editor-showcase header { max-width: 1151px; }
.visual-editor-showcase .visual-editor-demo { width: 1440px; max-width: none; }
.line-break-video { display: block; width: 100%; height: auto; }

.paste-guide-body { overflow-x: hidden; background: var(--bg); }
.paste-guide-page { max-width: 1844px; margin: 0 auto; padding: 52px 22px 130px; }
.paste-guide-header { max-width: 1107px; margin: 0 auto; padding: 18px 0 56px; }
.paste-guide-header h1 { max-width: 960px; margin: 0 0 24px; font-size: 48px; line-height: 1.08; letter-spacing: -.035em; font-weight: 400; }
.paste-guide-lead { max-width: 820px; margin: 0; color: var(--ink-soft); font-size: 22px; line-height: 1.36; }
.paste-guide-lead a { color: var(--link); text-decoration: none; }
.paste-guide-lead a:hover { text-decoration: underline; }
.paste-guide-lead a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 3px; }
.paste-guide-demo { box-sizing: border-box; width: 100%; max-width: 100%; padding: 24px; overflow: hidden; border-radius: 24px; background: var(--bg); }
.paste-guide-demo-apple { max-width: 1672px; margin-inline: auto; }
.paste-guide-demo-chatgpt { max-width: 1800px; }
.paste-guide-demo-favorites { width: min(100%, 1320px); margin-inline: auto; padding: 0; }
.compatibility-notes { max-width: 760px; margin: 56px auto 0; }
.compatibility-notes h2 { margin: 0 0 8px; color: var(--ink); font-size: 28px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.compatibility-notes > p { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.compatibility-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; }
.compatibility-list { padding: 18px 20px 20px; }
.compatibility-list + .compatibility-list { border-left: 1px solid var(--line-strong); }
.compatibility-list h3 { margin: 0 0 13px; color: var(--ink); font-size: 15px; font-weight: 600; }
.compatibility-list ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.compatibility-list li { padding: 9px 10px; border-radius: 8px; background: var(--bg-elevated); color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.paste-guide-details { max-width: 1107px; margin: 0 auto; padding: 76px 0 0; }
.paste-guide-details > header { max-width: 710px; }
.paste-guide-details h2 { width: auto; margin-bottom: 15px; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.paste-guide-details header > p:last-child { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.paste-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.paste-guide-grid article { min-height: 200px; padding: 28px; border-radius: 20px; background: var(--bg-elevated); }
.paste-guide-grid article:nth-child(2) { background: var(--surface); }
.paste-guide-grid article:nth-child(3) { background: #fff4e8; }
.paste-guide-grid strong { display: block; margin-bottom: 11px; color: var(--ink); font-size: 20px; line-height: 1.18; }
.paste-guide-grid p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.42; }
.paste-guide-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.42; }

@media (min-width: 735px) {
  .copy-paste-showcase .copy-paste-demo { width: min(120%, calc(100vw - 44px)); max-width: none; }
  .chatgpt-copy-showcase .chatgpt-copy-demo { width: min(120%, calc(100vw - 44px)); max-width: none; transform: translateX(-35px); }
  .visual-editor-showcase > header,
  .visual-editor-showcase > .rendering-showcase-link { margin-left: 58px; }
}

/* Keep the desktop layout intact, while allowing wide product shots to breathe
   on laptops and narrower browser windows. */
@media (min-width: 735px) and (max-width: 1200px) {
  .product-header,
  .intro,
  .download,
  .feature-grid,
  .feature-list,
  .comparison,
  .pricing,
  .rendering-page,
  .editor-page,
  .kanban-page,
  .mhchem-page,
  .asciimath-page,
  .code-page,
  .vega-lite-page,
  .mermaid-page,
  .plantuml-page,
  .graphviz-page,
  .excalidraw-page,
  .footnotes-page,
  .latex-page,
  .homepage-feature-showcase,
  .changelog-page,
  .download-archive-page,
  .roadmap-page,
  .rendering-showcase,
  .keyboard-tutorial-page,
  .paste-guide-page { padding-inline: 32px; }

  .product-header { padding-top: 58px; }
  .product-header h1 { font-size: clamp(58px, 6vw, 76px); }
  h2 { font-size: 44px; line-height: 1.08; }
  .lead,
  .editor-lead,
  .kanban-lead,
  .rendering-lead,
  .mhchem-lead,
  .asciimath-lead,
  .code-lead,
  .vega-lite-lead,
  .mermaid-lead,
  .plantuml-lead,
  .graphviz-lead,
  .excalidraw-lead,
  .footnotes-lead,
  .latex-lead,
  .changelog-lead,
  .download-archive-lead,
  .roadmap-lead,
  .keyboard-tutorial-lead,
  .paste-guide-lead { font-size: 20px; }

  .hero-image { width: min(1332px, calc(100vw - 64px)); }
  .hero-image img { width: 100%; height: auto; }
  .visual-editor-hero,
  .visual-editor-hero .line-break-video { width: min(1440px, calc(100vw - 64px)); }

  .feature-row { gap: 48px; min-height: 350px; }
  .feature-visual { min-height: 310px; }
  .feature-list-item { grid-template-columns: minmax(0, 1fr) minmax(160px, .82fr); }
  .download-copy { padding: 44px; }
  .download-actions { padding-inline: 44px; }
  .beta-mailing-list { padding-inline: 44px; }
  .download-note { padding-inline: 44px; }

  .editor-header h1,
  .rendering-header h1,
  .mhchem-header h1,
  .asciimath-header h1,
  .code-header h1,
  .vega-lite-header h1,
  .mermaid-header h1,
  .plantuml-header h1,
  .graphviz-header h1,
  .excalidraw-header h1,
  .footnotes-header h1,
  .latex-header h1,
  .changelog-header h1,
  .download-archive-header h1,
  .roadmap-header h1,
  .keyboard-tutorial-header h1,
  .paste-guide-header h1 { font-size: 44px; line-height: 1.08; }
  .kanban-header h1 { font-size: 46px; }

  .editor-hero-image,
  .kanban-showcase { width: min(1400px, calc(100vw - 64px)); }
  .editor-hero-image img { width: 100%; max-width: 100%; }
  .editor-demo,
  .mhchem-demo,
  .asciimath-demo,
  .mermaid-demo,
  .plantuml-demo,
  .graphviz-demo,
  .excalidraw-demo { width: min(1216px, calc(100vw - 64px)); }
  .code-demo { width: min(1592px, calc(100vw - 64px)); }
  .vega-lite-demo { width: min(1685px, calc(100vw - 64px)); }
  .footnotes-demo,
  .latex-demo,
  .homepage-feature-demo { width: min(1400px, calc(100vw - 64px)); }
  .editor-demo img,
  .mhchem-demo img,
  .asciimath-demo img,
  .code-demo img,
  .vega-lite-demo img,
  .vega-lite-demo video,
  .footnotes-demo img,
  .latex-demo img,
  .homepage-feature-demo img { width: 100%; max-width: 100%; height: auto; }

  .visual-editor-showcase .visual-editor-demo { width: min(1440px, calc(100vw - 64px)); max-width: 100%; }
  .line-break-demo,
  .markdown-shortcuts-demo { width: min(1044px, calc(100vw - 64px)); max-width: 100%; height: auto; }
  .asciimath-video { width: min(1584px, calc(100vw - 64px)); }
}

@media (max-width: 734px) {
  .product-header { display: flex; align-items: flex-start; gap: 12px; padding: 48px 22px 0; }
  .homepage-language-switch { flex: 0 0 auto; margin-top: 2px; margin-left: auto; }
  .platform-updates-page { padding-top: 32px; padding-bottom: 72px; }
  .platform-updates-header { padding-bottom: 38px; }
  .platform-updates-header h1 { font-size: 40px; }
  .platform-updates-lead { font-size: 19px; }
  .platform-update-options { grid-template-columns: 1fr; }
  .platform-update-card { padding: 27px 24px; }
  .platform-email-row { flex-direction: column; }
  .product-header h1 { font-size: 56px; }
  .beta-pricing { width: min(100%, 350px); margin: 0; }
  .intelligence { padding-top: 48px; }
  .intro { padding: 0 22px 43px; }
  .eyebrow { font-size: 17px; margin-bottom: 11px; }
  h2 { font-size: 40px; line-height: 1.1; }
  .lead { margin-top: 21px; font-size: 19px; }
  .download-alpha-headline { font-size: 26px; }
  .hero-downloads { margin-top: 24px; }
  .hero-download { min-width: 100%; min-height: 68px; padding: 10px 14px; }
  .hero-trust-list { display: grid; gap: 5px; margin-top: 15px; font-size: 13px; }
  .hero-trust-list li + li::before { width: 0; height: 0; margin: 0; }
  .hero-trust-list li::before { width: 3px; height: 3px; margin-right: 8px; border-radius: 50%; background: #86868b; content: ""; }
  .hero-mailing-list { min-width: 100%; max-width: none; }
  .hero-mailing-list-row { flex-direction: column; }
  .image-stage { padding: 0 12px 18px; }
  .hero-image { width: 100%; margin: 0; }
  .hero-image img { width: 100%; height: auto; border-radius: 16px; }
  .visual-editor-hero .line-break-video { width: 100%; max-width: 100%; }
  /* Scale wide screenshots and demos with their mobile content column. */
  .homepage-feature-demo,
  .code-demo,
  .vega-lite-demo { width: 100%; margin-left: 0; transform: none; }
  .homepage-feature-demo img,
  .code-demo img,
  .vega-lite-demo img,
  .vega-lite-demo video,
  .footnotes-demo img,
  .latex-demo img { width: 100%; max-width: 100%; height: auto; }
  .line-break-demo,
  .markdown-shortcuts-demo,
  .visual-editor-showcase .visual-editor-demo { width: 100%; max-width: 100%; height: auto; }
  .hero-editor-text { margin-top: 0; font-size: 18px; }
  .download { padding: 30px 22px 48px; }
  .download-card { grid-template-columns: 1fr; gap: 0; border-radius: 24px; }
  .download-copy { grid-row: auto; min-height: auto; padding: 38px 32px; }
  .download-copy h2 { font-size: 36px; }
  .download-copy > p:last-child { font-size: 17px; }
  .download-actions { padding: 32px 28px 12px; }
  .beta-mailing-list { grid-column: auto; padding: 12px 28px 32px; }
  .beta-mailing-list-row { flex-direction: column; }
  .download-note { grid-column: auto; padding: 0 28px 32px; text-align: center; }
  .feature-grid { padding: 48px 22px 90px; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; padding: 24px 0; }
  .feature-row + .feature-row { margin-top: 36px; }
  .feature-row-reverse .feature-copy { order: 1; }
  .feature-row-reverse .feature-visual { order: 2; }
  .feature-copy h3 { font-size: 30px; }
  .feature-copy > p:not(.feature-label), .feature-copy a { font-size: 17px; }
  .feature-visual { min-height: 300px; }
  .demo-window, .search-panel { left: 7%; width: 78%; }
  .paper-card { right: 7%; width: 76%; }
  .feature-list { padding: 24px 22px 82px; }
  .feature-list-header { margin-bottom: 30px; }
  .feature-list-header h2 { font-size: 38px; }
  .feature-list-header > p:last-child { font-size: 18px; }
  .feature-list-grid { grid-template-columns: 1fr; }
  .feature-list-item { min-height: 235px; grid-template-columns: minmax(0, 1fr) minmax(140px, .8fr); gap: 10px; }
  .feature-list-content { padding: 24px 0 24px 20px; }
  .feature-list-content > strong { font-size: 19px; }
  .feature-list-content > small { font-size: 14px; }
  .feature-list-preview { padding: 18px; }
  .comparison { padding: 24px 22px 90px; }
  .comparison-header { margin-bottom: 30px; }
  .comparison-header h2 { font-size: 38px; }
  .comparison-header > p:last-child { font-size: 18px; }
  .comparison-scroll { margin-right: -22px; border-radius: 20px 0 0 20px; border-right: 0; }
  .pricing { padding: 24px 22px 90px; }
  .pricing-header { margin-bottom: 30px; }
  .pricing-header h2 { font-size: 38px; }
  .pricing-header > p:last-child { font-size: 18px; }
  .pricing-card { grid-template-columns: 1fr; border-radius: 24px; }
  .pricing-summary { min-height: auto; padding: 38px 32px; }
  .price { font-size: 78px; }
  .pricing-details { padding: 34px 28px; }
  .pricing-details li { font-size: 17px; }
  .rendering-page { padding-top: 30px; }
  .editor-page { padding-top: 30px; padding-bottom: 76px; }
  .editor-header { padding-bottom: 38px; }
  .editor-header h1 { font-size: 40px; line-height: 1.1; }
  .editor-lead { font-size: 19px; }
  .editor-hero-image { width: 100%; margin: 0 0 52px; transform: none; }
  .editor-hero-image img { width: 100%; max-width: 100%; }
  .editor-example { padding: 42px 0 52px; }
  .editor-copy h2 { font-size: 32px; }
  .editor-demo { width: 100%; margin-left: 0; transform: none; }
  .editor-demo img { width: 100%; max-width: 100%; }
  .kanban-page { padding-top: 30px; padding-bottom: 76px; }
  .kanban-header { padding-bottom: 38px; }
  .kanban-header h1 { font-size: 42px; }
  .kanban-lead { font-size: 19px; }
  .kanban-showcase { width: 100%; margin: 0 0 58px; transform: none; }
  .kanban-hero-image img { border-radius: 12px; }
  .kanban-details, .kanban-audience, .kanban-contrast { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 48px 0; }
  .kanban-copy h2, .kanban-audience-block h2, .kanban-contrast h2 { font-size: 32px; }
  .kanban-footer { display: block; padding-top: 28px; }
  .kanban-footer a { display: inline-block; margin-top: 20px; }
  .rendering-header { padding-bottom: 52px; }
  .rendering-logo { margin-bottom: 13px; }
  .subpage-home-link { margin-bottom: 35px; }
  .subpage-downloads { margin-top: 24px; }
  .rendering-header h1 { font-size: 40px; line-height: 1.1; }
  .rendering-lead { font-size: 19px; }
  .rendering-example, .rendering-example-reverse { gap: 32px; padding: 42px 0; }
  .rendering-showcase { padding: 40px 22px 56px; }
  .keyboard-tutorial-page { padding-top: 30px; padding-bottom: 72px; }
  .keyboard-tutorial-header { padding-top: 8px; padding-bottom: 42px; }
  .keyboard-tutorial-header h1 { font-size: 40px; line-height: 1.1; }
  .keyboard-tutorial-lead { font-size: 19px; }
  .keyboard-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; border-radius: 20px; }
  .keyboard-additional-layouts { grid-template-columns: 1fr; }
  .keyboard-additional-layouts-heading { padding-top: 16px; }
  .keyboard-card-compact { padding: 25px 22px; }
  .keyboard-card-copy h2 { font-size: 34px; }
  .keyboard-os-sections { gap: 42px; }
  .keyboard-os-heading h2 { font-size: 29px; }
  .keyboard-os-section-macos { padding: 28px 22px; border-radius: 20px; }
  .keyboard-card-copy h3 { font-size: 25px; }
  .keyboard-visual { margin: 0 -4px; padding: 15px; }
  .rendering-showcase h2 { font-size: 38px; }
  .rendering-showcase header > p:last-child, .rendering-showcase-link { font-size: 18px; }
  .homepage-feature-copy h2 { font-size: 38px; line-height: 1.1; }
  .homepage-feature-copy p { font-size: 18px; }
  .line-break-demo, .markdown-shortcuts-demo, .copy-paste-demo, .chatgpt-copy-demo { border-radius: 18px; }
  .paste-guide-page { max-width: 1151px; padding-top: 30px; padding-bottom: 76px; }
  .paste-guide-header { padding-bottom: 38px; }
  .paste-guide-header h1 { font-size: 40px; line-height: 1.1; }
  .paste-guide-lead { font-size: 19px; }
  .paste-guide-demo { padding: 12px; border-radius: 16px; }
  .compatibility-notes { margin-top: 42px; }
  .compatibility-lists { grid-template-columns: 1fr; }
  .compatibility-list + .compatibility-list { border-top: 1px solid var(--line-strong); border-left: 0; }
  .paste-guide-details { padding-top: 52px; }
  .paste-guide-details h2 { font-size: 32px; }
  .paste-guide-details header > p:last-child { font-size: 17px; }
  .paste-guide-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .paste-guide-grid article { min-height: 0; padding: 24px; }
  .rendering-copy h2 { font-size: 32px; }
  .mhchem-page { padding-top: 30px; padding-bottom: 76px; }
  .mhchem-header { padding-bottom: 30px; }
  .mhchem-header h1 { font-size: 40px; line-height: 1.1; }
  .mhchem-lead { font-size: 19px; }
  .mhchem-capability-list { grid-template-columns: 1fr; gap: 9px; font-size: 16px; }
  .mhchem-example { padding: 0; }
  .mhchem-demo { width: 100%; margin-left: 0; transform: none; }
  .mhchem-demo img { width: 100%; height: auto; }
  .mhchem-examples { margin-top: 56px; }
  .mhchem-example-card { padding: 42px 0 52px; }
  .mhchem-copy h2 { font-size: 32px; }
  .mhchem-example-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .mhchem-example-demo img { width: 100%; }
  .asciimath-page { padding-top: 30px; padding-bottom: 76px; }
  .asciimath-header { padding-bottom: 30px; }
  .asciimath-header h1 { font-size: 40px; line-height: 1.1; }
  .asciimath-lead { font-size: 19px; }
  .asciimath-capability-list { grid-template-columns: 1fr; gap: 9px; font-size: 16px; }
  .asciimath-example { padding: 0; }
  .asciimath-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .asciimath-demo img { width: 100%; height: auto; }
  .asciimath-video-note { width: 100%; margin-left: 0; transform: none; }
  .asciimath-video { width: 100%; margin-left: 0; transform: none; }
  .code-page { padding-top: 30px; padding-bottom: 76px; }
  .code-header { padding-bottom: 34px; }
  .code-header h1 { font-size: 40px; line-height: 1.1; }
  .code-lead { font-size: 19px; }
  .code-themes { gap: 7px; font-size: 16px; }
  .code-themes span { padding: 6px 9px; }
  .vega-lite-page { padding-top: 30px; padding-bottom: 76px; }
  .vega-lite-header { padding-bottom: 38px; }
  .vega-lite-header h1 { font-size: 40px; line-height: 1.1; }
  .vega-lite-lead { font-size: 19px; }
  .vega-lite-example { padding: 42px 0 52px; }
  .vega-lite-copy h2 { font-size: 32px; }
  .vega-lite-demo { margin-left: 0; transform: none; }
  .mermaid-page { padding-top: 30px; padding-bottom: 76px; }
  .mermaid-header { padding-bottom: 38px; }
  .mermaid-header h1 { font-size: 40px; line-height: 1.1; }
  .mermaid-lead { font-size: 19px; }
  .mermaid-roadmap { font-size: 16px; }
  .mermaid-example { padding-top: 42px; }
  .mermaid-example-secondary { margin-top: 58px; }
  .mermaid-copy h2 { font-size: 32px; }
  .mermaid-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .plantuml-page { padding-top: 30px; padding-bottom: 76px; }
  .plantuml-header { padding-bottom: 38px; }
  .plantuml-header h1 { font-size: 40px; line-height: 1.1; }
  .plantuml-lead { font-size: 19px; }
  .plantuml-example { padding-top: 42px; }
  .plantuml-example-secondary { margin-top: 58px; }
  .plantuml-copy h2 { font-size: 32px; }
  .plantuml-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .graphviz-page { padding-top: 30px; padding-bottom: 76px; }
  .graphviz-header { padding-bottom: 38px; }
  .graphviz-header h1 { font-size: 40px; line-height: 1.1; }
  .graphviz-lead { font-size: 19px; }
  .graphviz-example { padding-top: 42px; }
  .graphviz-copy h2 { font-size: 32px; }
  .graphviz-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .excalidraw-page { padding-top: 30px; padding-bottom: 76px; }
  .excalidraw-header { padding-bottom: 46px; }
  .excalidraw-header h1 { font-size: 40px; line-height: 1.1; }
  .excalidraw-lead { font-size: 19px; }
  .excalidraw-chips { gap: 7px; }
  .excalidraw-chips span { font-size: 14px; }
  .excalidraw-example { padding: 42px 0 52px; }
  .excalidraw-copy h2 { font-size: 32px; }
  .excalidraw-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .footnotes-page { padding-top: 30px; padding-bottom: 76px; }
  .footnotes-header { padding-bottom: 46px; }
  .footnotes-header h1 { font-size: 40px; line-height: 1.1; }
  .footnotes-lead { font-size: 19px; }
  .footnotes-chips { gap: 7px; }
  .footnotes-chips span { font-size: 14px; }
  .footnotes-example { padding: 42px 0 52px; }
  .footnotes-copy h2 { font-size: 32px; }
  .footnotes-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .latex-page { padding-top: 30px; padding-bottom: 76px; }
  .latex-header { padding-bottom: 46px; }
  .latex-header h1 { font-size: 40px; line-height: 1.1; }
  .latex-lead { font-size: 19px; }
  .latex-chips { gap: 7px; }
  .latex-chips span { font-size: 14px; }
  .latex-index { margin-top: 29px; }
  .latex-index > div { gap: 7px; }
  .latex-index a { font-size: 13px; }
  .latex-example { padding: 42px 0 52px; }
  .latex-copy h2 { font-size: 32px; }
  .latex-live-formula { padding: 15px 17px; font-size: 19px; }
  .latex-demo { width: 100%; margin-left: 0; border-radius: 16px; transform: none; }
  .changelog-page { padding-top: 30px; padding-bottom: 76px; }
  .changelog-header { padding-bottom: 46px; }
  .changelog-header h1 { font-size: 40px; line-height: 1.1; }
  .changelog-lead { font-size: 19px; }
  .release { grid-template-columns: 1fr; gap: 20px; padding: 42px 0 47px; }
  .release-meta { display: flex; flex-direction: row; align-items: center; gap: 12px; padding-top: 0; }
  .release-content h2 { font-size: 31px; }
  .release-summary { font-size: 17px; }
  .change-group li { font-size: 16px; }
  .changelog-footer { padding-left: 0; }
  .roadmap-section { padding: 72px 0 0; }
  .roadmap-section-header h2 { font-size: 34px; }
  .roadmap-section .roadmap-stage-content h3 { font-size: 29px; }
  .roadmap-section .roadmap-stage-content li { font-size: 16px; }
  .updates-section { padding-top: 72px; }
  .updates-section-header h2 { font-size: 34px; }
  .download-archive-page { padding-top: 30px; padding-bottom: 76px; }
  .download-archive-header { padding-bottom: 46px; }
  .download-archive-header h1 { font-size: 40px; line-height: 1.1; }
  .download-archive-lead { font-size: 19px; }
  .download-archive-section h2 { font-size: 29px; }
  .download-archive-table-wrap { margin-right: -22px; border-right: 0; border-radius: 18px 0 0 18px; }
  .roadmap-page { padding-top: 30px; padding-bottom: 76px; }
  .roadmap-header { padding-bottom: 46px; }
  .roadmap-header h1 { font-size: 40px; line-height: 1.1; }
  .roadmap-lead { font-size: 19px; }
  .roadmap-stage { padding: 42px 0 52px; }
  .roadmap-stage-content h2 { font-size: 32px; }
  .roadmap-stage-content li { font-size: 16px; }
  .roadmap-footer { padding-left: 0; }
}

@media (max-width: 374px) {
  .product-header h1 { font-size: 48px; }
}

/* Shared footer, rendered by footer.js on every public page. */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line-strong); background: var(--bg-elevated); }
.site-footer-inner { max-width: 1320px; margin: 0 auto; padding: 48px 22px 56px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.site-footer-brand { min-width: 0; }
.site-footer-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 600; text-decoration: none; }
.site-footer-logo img { display: block; }
.site-footer-brand p { margin: 16px 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.site-footer-contact { font-size: 14px; text-underline-offset: 3px; }
.site-footer-feedback { margin-top: 26px; }
.site-footer-feedback h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.site-footer-feedback p { margin: 0; }
.site-footer-feedback a { text-underline-offset: 3px; }
.site-footer-nav { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.site-footer-group { min-width: 0; overflow-wrap: anywhere; }
.site-footer-group h2 { width: auto; margin: 0 0 16px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.site-footer-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer-group a { color: var(--ink-2); font-size: 14px; line-height: 1.5; text-decoration: none; }
.site-footer-group a:hover, .site-footer-group a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px; }
.features-body { background: var(--surface); }
.features-page { max-width: 1151px; margin: 0 auto; padding: 52px 22px 112px; }
.features-home { display: inline-flex; gap: 8px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.features-home:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.features-header { max-width: 760px; margin: 64px 0 48px; }
.features-header h1 { width: auto; margin: 0 0 16px; color: var(--ink); font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.03em; }
.features-header p { margin: 0; color: var(--ink-2); font-size: 20px; line-height: 1.45; }
.features-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.features-group { padding: 28px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--bg); }
.features-group h2 { width: auto; margin: 0 0 20px; color: var(--ink); font-size: 23px; line-height: 1.25; }
.features-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.features-group a { color: #155aad; line-height: 1.4; text-decoration: none; }
.features-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.features-home:focus-visible, .features-group a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.editor-features-link { margin: 44px 0 0; font-size: 18px; }
.editor-features-link a { color: var(--link); text-underline-offset: 3px; }
.editor-features-link a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.related-diagram-link { max-width: 1151px; margin: 48px auto 0; padding: 0 22px; font-size: 18px; }
.related-diagram-link a { color: var(--link); text-underline-offset: 3px; }
.related-diagram-link a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.related-feature-links { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.related-feature-links h2 { width: auto; margin: 0 0 14px; color: var(--ink); font-size: 23px; line-height: 1.3; }
.related-feature-links ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.related-feature-links a { color: var(--link); font-size: 17px; line-height: 1.4; text-underline-offset: 3px; }
.related-feature-links a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
@media (max-width: 700px) {
  .features-page { padding: 32px 22px 72px; }
  .features-header { margin: 44px 0 32px; }
  .features-header p { font-size: 18px; }
  .features-groups, .features-group ul { grid-template-columns: 1fr; }
  .features-group { padding: 24px; }
}
@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 734px) {
  .site-footer { margin-top: 56px; }
    .site-footer-inner { padding: 32px 22px 40px; }
  .site-footer-nav { grid-template-columns: 1fr; gap: 24px; }
  .site-footer-group h2 { margin-bottom: 8px; }
  .site-footer-group ul { display: block; }
  .site-footer-group li { display: inline-block; max-width: 100%; vertical-align: top; }
  .site-footer-group li:not(:last-child)::after { content: " - "; color: var(--ink-soft); white-space: pre; }
  .site-footer-group a { display: inline-block; max-width: 100%; padding-block: 5px; }
}

/* Inline Math reference content. */
.footnotes-copy p.inline-math-paragraph { margin-top: 18px; }
.inline-math-reference { margin-bottom: 0; }
.inline-math-syntax { width: 100%; margin: 24px 0; border-collapse: collapse; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.inline-math-syntax th, .inline-math-syntax td { padding: 12px 10px; border-bottom: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.inline-math-syntax th:first-child, .inline-math-syntax td:first-child { padding-left: 0; }
.inline-math-syntax code { color: #6f591f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
