@charset "UTF-8";
/* CrossDriver — product site (Mac and Windows disk tools, fs.crossdriver.com).
   Design tokens shared with files.crossdriver.com / www.crossdriver.com (primary #3567ff,
   slate greys, lavender hero, orange accent, black header, dark footer). */

:root {
  --blue: #3567ff;
  --blue-dark: #2450d8;
  --blue-soft: #e7eeff;
  --accent-2: #7b5cff;   /* second stop of the accent gradients */
  --orange-1: #ff8a00;
  --orange-2: #ff5a3d;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --footer: #141518;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(15, 35, 95, 0.18), 0 6px 18px rgba(15, 35, 95, 0.08);
  --max: 1200px;
  --l2-h: 104px;   /* height of the product bar (.product-bar below): two rows, one on narrow screens */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* a word longer than its column (German, Dutch, Russian on a phone) breaks instead of widening the page */
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
[id] { scroll-margin-top: calc(var(--l2-h) + 16px); }   /* below the product bar (the brand bar has scrolled away by then) */
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
/* The family's header and footer (cdg.css, loaded after this file: hence the longer selectors and the variable on body) line up
   with the text: the same width and side padding as .wrap. On narrow screens both take cdg.css's 16px, which the brand bar needs. */
body { --cdg-max: var(--max); }
.site-header .cdg-wrap, .cdg-foot .cdg-wrap { padding-left: 28px; padding-right: 28px; }
@media (max-width: 700px) {
  .wrap, .site-header .cdg-wrap, .cdg-foot .cdg-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ---------------------------------------------------------------- header
   Two bars in one sticky header (<header class="site-header cdg-2bars">): the family's brand bar (L1, .cdg-bar, family/cdg.css)
   and this site's product bar (L2, .product-bar). cdg.css (loaded after this file) lets L1 scroll out of the window, so only
   L2 stays; it sets the header's position, top and z-index, which are not set here. */
.product-bar {
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); color: #475569; font-size: 16px;
}
.product-bar .cdg-wrap { display: flex; align-items: center; gap: 4px; }
.product-main { height: 58px; }
.subnav { border-top: 1px solid #eef1f6; }
.subnav .cdg-wrap { height: 44px; overflow-x: auto; scrollbar-width: none; }   /* the longest languages scroll between 981 and 1110px */
.subnav .cdg-wrap::-webkit-scrollbar { display: none; }
.brand { display: flex; flex: none; align-items: center; gap: 10px; margin-right: 22px; color: var(--ink); font-size: 18px; font-weight: 800; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 2px; min-width: 0; }
.site-nav a { padding: 7px 12px; border-radius: 8px; color: #475569; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #eef3ff; color: #2450d8; text-decoration: none; }
.header-download { flex: none; }
.brand + .header-download { margin-left: auto; }
/* This site's language switch sits in the brand bar (dark): a pill, a white list. */
.lang-switch { position: relative; }
.lang-switch.cdg-lang { padding: 0; border: 0; border-radius: 0; }
.lang-switch summary {
  list-style: none; cursor: pointer; color: #dbe3f5; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; font-size: 11px; opacity: .7; }
.lang-switch[open] summary, .lang-switch summary:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 10; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, .18); min-width: 185px; max-height: 70vh; overflow: auto; font-size: 14px; font-weight: 500;
}
.lang-switch li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); white-space: nowrap; }
.lang-switch li a:hover { background: #eef2f7; text-decoration: none; }
.lang-switch li a[aria-current] { background: var(--blue); color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 12px;
  font-weight: 650; font-size: 17px; line-height: 1; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 35%, transparent); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 9px; box-shadow: none; }
.btn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; text-align: center; padding: 72px 0 0;
  background:
    radial-gradient(900px 480px at 85% 0%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 70%),
    radial-gradient(800px 420px at 0% 30%, rgba(255, 138, 0, .10), transparent 70%),
    linear-gradient(180deg, var(--blue-soft) 0%, color-mix(in srgb, var(--blue-soft) 45%, #fff) 62%, #fff 100%);
}
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 100%); box-shadow: 0 6px 16px rgba(255, 90, 61, .3);
}
.hero h1, .hero .h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -1.5px; color: var(--ink); margin: 22px auto 18px; max-width: 980px; }
.hero h1 em, .hero .h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: #475569; max-width: 760px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero .fineprint span + span::before { content: "·"; margin: 0 10px; color: #94a3b8; }
.hero-shot { margin: 56px auto 0; max-width: 1180px; padding: 0 28px; }
.hero-shot img { border-radius: 16px; box-shadow: var(--shadow); }
/* The window's empty lower part fades into the page. */
.hero-shot { max-height: 700px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

/* ---------------------------------------------------------------- the ten highlights at a glance */
.toc { border-bottom: 1px solid var(--line); background: #fff; }
.toc ol { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.toc a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.35; font-weight: 600; color: #334155; transition: background .15s, color .15s;
  overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto;   /* five columns just above 980px: a long word may not push the last one off the page */
}
.toc a:hover { background: color-mix(in srgb, var(--blue) 8%, #fff); color: var(--blue); text-decoration: none; }
.toc b {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, var(--blue) 0%, var(--accent-2) 100%);
}

/* ---------------------------------------------------------------- sections */
section.block { padding: 104px 0; }
section.tint { background: var(--panel); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.eyebrow { display: block; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.8px; color: var(--ink); margin: 0 0 16px; }
.section-head p { color: #475569; font-size: 19px; margin: 0; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.5px; color: var(--ink); margin: 0 0 16px; }
.feature p { color: #475569; margin: 0 0 18px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 30px; margin: 10px 0; color: #334155; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.shot { position: relative; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); }
.shot::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 28px; z-index: -1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 16%, #fff) 0%, color-mix(in srgb, var(--blue) 6%, #fff) 100%);
}
.feature.flip .shot::before { inset: 8% 8% -6% -6%; }
.num {
  display: inline-block; margin-right: 12px; font-size: 15px; font-weight: 800; letter-spacing: .5px; vertical-align: 2px;
  background: linear-gradient(90deg, var(--orange-1) 0%, var(--orange-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head .num { display: block; margin: 0 0 6px; font-size: 18px; }
.feature .aside { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

/* Text panels standing in for a screenshot (03 formats, 09 drives). */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px; box-shadow: 0 12px 40px rgba(15, 35, 95, .07); }
.panel-title { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.fgroup + .fgroup { margin-top: 18px; }
.flabel { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: #334155; }
.formats-panel .formats { justify-content: flex-start; gap: 8px; max-width: none; }
.formats-panel .formats span { padding: 8px 14px; font-size: 15px; }
.drives-panel dl { margin: 0; }
.drives-panel dl div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.drives-panel dl div:first-child { border-top: 0; padding-top: 0; }
.drives-panel dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.drives-panel dd { margin: 0; color: #475569; font-size: 15px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, #fff); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- keyboard */
.keys { background: radial-gradient(1000px 500px at 80% 0%, #1e3a8a 0%, transparent 60%), #0b1022; color: #e2e8f0; }
.keys h2, .keys .section-head p { color: #fff; }
.keys .section-head p { color: #cbd5e1; }
.keygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.key { background: #111a35; border: 1px solid #ffffff14; border-radius: 16px; padding: 22px 22px 20px; }
.key kbd {
  display: inline-block; min-width: 46px; padding: 9px 12px; margin: 0 6px 6px 0; text-align: center;
  font: 650 17px/1 system-ui, -apple-system, sans-serif; color: #0f172a; background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  border-radius: 9px; box-shadow: 0 3px 0 #94a3b8, 0 6px 14px rgba(0, 0, 0, .35);
}
.key span { display: block; margin-top: 12px; color: #cbd5e1; font-size: 15px; }
.keys .note { text-align: center; margin-top: 40px; color: #94a3b8; font-size: 15px; }

/* ---------------------------------------------------------------- format chips */
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.formats span {
  padding: 12px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink);
  box-shadow: 0 4px 10px rgba(15, 35, 95, .05);
}
.formats span.hot { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue) 0%, var(--accent-2) 100%); }

/* ---------------------------------------------------------------- trust cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.card b { display: block; font-size: 30px; color: var(--blue); margin-bottom: 8px; }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------- dark showcase */
.dark-show { background: linear-gradient(180deg, #0b1022 0%, #1b1f4a 100%); color: #fff; text-align: center; padding: 104px 0 0; overflow: hidden; }
.dark-show h2 { color: #fff; }
.dark-show p { color: #cbd5e1; font-size: 19px; margin: 0 0 48px; }
.dark-show img { max-width: 1100px; margin: 0 auto -6px; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 80px color-mix(in srgb, var(--accent-2) 35%, transparent); }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #475569; margin: 12px 0 0; }

/* ---------------------------------------------------------------- final call to action */
.cta { text-align: center; padding: 96px 0; background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 45%, var(--accent-2) 100%); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); font-size: 19px; margin: 0 0 32px; }
.cta .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.cta .meta { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.cta .meta a { color: #fff; }
.cta .stats-note { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .toc ol { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .text { order: 0; }
  .keygrid, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  section.block { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; }
  .keygrid { gap: 10px; }
  .key { padding: 16px 14px 14px; }
  .key kbd { min-width: 32px; padding: 7px 8px; margin: 0 4px 4px 0; font-size: 14px; }
  .toc ol { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .toc a { padding: 8px 10px; }
  .panel { padding: 22px; }
  .drives-panel dl div { grid-template-columns: 1fr; gap: 4px; }
}

/* ================================================================ NAS Rescue additions */
code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef2f7; color: var(--ink); padding: 1px 6px; border-radius: 6px; }
.keys code { background: #ffffff1a; color: #fff; }

/* ---------------------------------------------------------------- mockup-only control bar */
.mock-bar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  padding: 8px 20px; background: #fff7e6; border-bottom: 1px solid #ffd591; color: #874d00; font-size: 13.5px;
}
.mock-lang { display: inline-flex; gap: 6px; align-items: center; }
.mock-lang button { font: inherit; padding: 3px 10px; border-radius: 999px; border: 1px solid #ffd591; background: #fff; color: #874d00; cursor: pointer; }
.mock-lang button[aria-pressed="true"] { background: #fa8c16; border-color: #fa8c16; color: #fff; }

/* ---------------------------------------------------------------- annotated screenshots */
/* A screenshot (production: <img>; mockup: a scaled stand-in) with numbered callouts placed
   in percent of the image, so each language page keeps its own coordinates. */
.annotated { position: relative; margin: 0; }
.hero-annotated { width: min(1124px, calc(100% - 56px)); margin: 56px auto 0; }
.shot-frame {
  position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: var(--w) / var(--h);
  box-shadow: var(--shadow); background: #ececec; outline: 1px solid rgba(15, 23, 42, .12);
}
.shot-frame > img { width: 100%; height: 100%; }
.feature .annotated::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 28px; z-index: -1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 16%, #fff) 0%, color-mix(in srgb, var(--blue) 6%, #fff) 100%);
}
.feature.flip .annotated::before { inset: 8% 8% -6% -6%; }
/* The screenshots' backdrop stays inside the page's side margin (28px, 16px on phones): beyond it, it would widen the page.
   Above 1280px the margin beside .wrap is wider than 6% of a screenshot. */
@media (max-width: 1280px) {
  .shot::before, .feature .annotated::before { inset: 8% max(-6%, -24px) -6% 8%; }
  .feature.flip .shot::before, .feature.flip .annotated::before { inset: 8% 8% -6% max(-6%, -24px); }
}
@media (max-width: 700px) {
  .shot::before, .feature .annotated::before { inset: 8% max(-4%, -12px) -6% 8%; }
  .feature.flip .shot::before, .feature.flip .annotated::before { inset: 8% 8% -6% max(-4%, -12px); }
}
.callout { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -50%); pointer-events: none; }
.callout b {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13.5px; font-weight: 800; color: #fff; border: 2px solid #fff;
  background: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 100%);
  box-shadow: 0 0 0 5px rgba(255, 106, 40, .25), 0 4px 10px rgba(0, 0, 0, .25);
}
.callout span {
  white-space: nowrap; padding: 6px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 650; line-height: 1.3;
  color: #fff; background: rgba(15, 23, 42, .92); box-shadow: 0 8px 20px rgba(15, 23, 42, .3);
}
/* The marker sits on the point; the label goes to one side. */
.callout.c-right { transform: translate(-13px, -50%); }
.callout.c-left { flex-direction: row-reverse; transform: translate(calc(-100% + 13px), -50%); }
.callout.c-bottom { flex-direction: column; transform: translate(-50%, -13px); }
.callout.c-top { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 13px)); }
.nlist li { padding-left: 34px; }
.nlist li::before { display: none; }
.nlist li b {
  position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12.5px; color: #fff; background: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 100%);
}
.feature { grid-template-columns: 4fr 8fr; }
.feature.flip { grid-template-columns: 8fr 4fr; }

/* ---------------------------------------------------------------- supported NAS strip */
.nas-strip { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.strip-title { text-align: center; margin: 0 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.vendors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 28px; }
.vendors span {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; font-size: 13px; color: var(--muted); text-align: center;
}
.vendors b { font-size: 20px; color: var(--ink); letter-spacing: -.3px; }

/* ---------------------------------------------------------------- scenarios & steps */
.scen .card i { display: block; font-style: normal; font-size: 30px; margin-bottom: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps li + li::before {
  content: "→"; position: absolute; left: -17px; top: 34px; width: 14px; text-align: center; color: #94a3b8; font-weight: 700;
}
.steps b {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent-2) 100%);
}
.steps h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------- read-only locks */
.locks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lock { background: #111a35; border: 1px solid #ffffff14; border-radius: 18px; padding: 28px; }
.lock .lk { display: inline-block; font-size: 13px; font-weight: 700; color: #4ade80; background: #4ade801a; border-radius: 999px; padding: 4px 12px; }
.lock h3 { color: #fff; font-size: 22px; margin: 14px 0 8px; }
.lock p { margin: 0; color: #cbd5e1; font-size: 15.5px; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px; }
.plan.pro { border: 2px solid var(--blue); box-shadow: 0 24px 60px color-mix(in srgb, var(--blue) 18%, transparent); }
.plan .tag {
  position: absolute; top: -13px; left: 30px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 100%);
}
.plan h3 { margin: 0; font-size: 20px; color: var(--ink); }
.plan .price { margin: 8px 0 18px; font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li { position: relative; padding-left: 26px; margin: 9px 0; color: #334155; font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.plan .btn { justify-content: center; }
.plans-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 28px 0 0; }

@media (max-width: 980px) {
  .vendors { grid-template-columns: repeat(3, 1fr); }
  .steps, .plans { grid-template-columns: 1fr 1fr; }
  .steps li + li::before { display: none; }
  .locks { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  /* Labels would cover too much of a narrow screenshot; keep only the numbered markers. */
  .callout span { display: none; }
}
/* A feature's screenshot reaches the page margin up to 1320px: a long label on its right side (German, Russian…) would widen
   the page. The numbered list beside the screenshot says the same. */
@media (max-width: 1320px) { .feature .callout span { display: none; } }
@media (max-width: 560px) {
  .steps, .plans { grid-template-columns: 1fr; }
  .vendors { grid-template-columns: 1fr 1fr; }
  .callout b { width: 22px; height: 22px; font-size: 12px; }
  .mock-bar { position: static; }
}

/* ================================================================ fs.crossdriver.com product line */
/* Product colours: those of the app icons (Docs/Design/icons), dark enough for text on white (≥ 4.5:1). */
:root { --ntfs: #1d63e8; --ext4: #0a8060; --xfs: #6d45e0; --omni: #2a3d78; --rescue: #cc3d2a; --recovery: #a86200; }
/* A product's pages in its colours (body class from build.py): accent, gradients, hero, download band. */
.theme-ntfs   { --blue: var(--ntfs);   --blue-dark: #1450d8; --blue-soft: #e4efff; --accent-2: #3d9bff; }
.theme-ext4   { --blue: var(--ext4);   --blue-dark: #07664c; --blue-soft: #e0f5ec; --accent-2: #19b386; }
.theme-xfs    { --blue: var(--xfs);    --blue-dark: #5b33d6; --blue-soft: #eee8ff; --accent-2: #9b7bf7; }
.theme-omni   { --blue: var(--omni);   --blue-dark: #121a3a; --blue-soft: #e6eaf5; --accent-2: #4f68b8; }
.theme-rescue { --blue: var(--rescue); --blue-dark: #a8301f; --blue-soft: #fdebe6; --accent-2: #f2774f; }
.theme-recovery { --blue: var(--recovery); --blue-dark: #8a5000; --blue-soft: #fdf1dc; --accent-2: #f0a52b; }
.ptile {
  flex: none; display: inline-block; width: var(--ps, 48px); height: var(--ps, 48px);
  filter: drop-shadow(0 5px 10px rgba(15, 35, 95, .18));
}
.hero .ptile { --ps: 84px; margin-bottom: 14px; }
.hero .ptitle { display: block; font-size: 15px; font-weight: 700; color: #475569; letter-spacing: .3px; margin-bottom: 14px; }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pcard:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--pc) 45%, #fff); box-shadow: 0 18px 40px rgba(15, 35, 95, .12); }
.pcard h3 { margin: 6px 0 0; font-size: 19px; color: var(--ink); }
.pcard p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.pcard .fs { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .fs span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 12%, #fff); color: color-mix(in srgb, var(--pc) 80%, #000); }
.pcard .more { font-weight: 650; color: var(--pc); font-size: 15px; }
.pcard.featured { border: 2px solid var(--omni); box-shadow: 0 20px 50px rgba(42, 61, 120, .18); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 860px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 14px; color: var(--ink); background: var(--panel); vertical-align: bottom; }
.compare th .ptile { --ps: 40px; display: block; margin: 0 auto 8px; }
.compare td:first-child, .compare th:first-child { text-align: left; color: #334155; font-weight: 600; }
.compare td { color: #475569; }
.compare .y { color: var(--blue); font-weight: 800; font-size: 18px; }
.compare .n { color: #cbd5e1; }
.compare .u { color: #0f766e; font-size: 13px; font-weight: 600; white-space: nowrap; }
.compare .hl { background: #f5f3ff; }

.classic { display: flex; gap: 18px; align-items: flex-start; max-width: 900px; margin: 0 auto; padding: 24px 28px; border-radius: 16px; background: #fff; border: 1px dashed #cbd5e1; }
.classic b { font-size: 26px; line-height: 1; }
.classic h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.classic p { margin: 0; color: #475569; font-size: 15.5px; }

.cross { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cross a { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: inherit; }
.cross a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--pc) 45%, #fff); }
.cross h3 { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.cross p { margin: 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 760px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* three cards with long words (Russian, Dutch) don't fit */
@media (max-width: 980px) { .site-nav { display: none; } .cross { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } .classic { flex-direction: column; } }

/* ================================================================ performance charts */
/* Emphasis form: competitors in de-emphasis gray, our two modes in validated hues
   (gray / #3567ff / #eb6834 pass CVD and normal-vision separation; gray needs the
   relief rule, so every bar is value-labeled and each board has a data table). */
:root { --s-app: #a3acb9; --s-vm: #3567ff; --s-kext: #eb6834; }
.s-app { --sc: var(--s-app); }
.s-vm { --sc: var(--s-vm); }
.s-kext { --sc: var(--s-kext); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 28px; }
.kpi { padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.kpi b { display: block; font-size: 44px; line-height: 1.05; font-weight: 750; color: var(--ink); letter-spacing: -1px; }
.kpi span { display: block; margin-top: 6px; color: #475569; font-size: 15px; }
.perf-board { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.perf-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.perf-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.perf-legend .lg { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; color: var(--text); }
.perf-legend .lg i { width: 14px; height: 10px; border-radius: 3px; background: var(--sc); align-self: center; }
.perf-legend .lg small { color: var(--muted); font-size: 13px; }
.perf-badge { font-size: 13px; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; padding: 4px 12px; border-radius: 999px; }
.perf-pending { padding: 26px 28px; border-radius: 20px; background: #fff; border: 1px dashed #cbd5e1; color: #475569; font-size: 16px; line-height: 1.7; }
.perf-pending p { margin: 0; }
.perf-group + .perf-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.perf-fs { margin: 0 0 14px; font-size: 18px; color: var(--ink); }
.perf-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.perf-chart { margin: 0; }
.perf-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.perf-chart figcaption b { font-size: 15.5px; color: var(--ink); }
.perf-chart figcaption span { font-size: 12.5px; color: var(--muted); }
.perf-row { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 10px; margin: 9px 0; }
.perf-label { font-size: 13px; color: #475569; line-height: 1.25; }
.perf-track { display: flex; align-items: center; gap: 8px; min-width: 0; border-left: 1px solid #e2e8f0; height: 22px; }
.perf-bar { display: block; height: 18px; max-height: 24px; border-radius: 0 4px 4px 0; background: var(--sc); outline-offset: 2px; transition: filter .12s; }
.perf-bar:hover, .perf-bar:focus-visible { filter: brightness(1.12); }
.perf-val { font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.perf-row.s-vm .perf-val { font-size: 15px; }
.perf-na { font-size: 12.5px; color: var(--muted); padding-left: 8px; }
.perf-setup { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.perf-table { margin-top: 14px; }
.perf-table summary { cursor: pointer; font-size: 14px; font-weight: 650; color: var(--blue); }
.perf-table .compare { min-width: 640px; margin-top: 12px; font-size: 14px; }
.perf-more { text-align: center; margin: 24px 0 0; font-weight: 650; }
.viz-tip {
  position: absolute; z-index: 50; transform: translateY(-50%); pointer-events: none; padding: 6px 10px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px rgba(15, 23, 42, .25);
}

/* ---------------------------------------------------------------- data path (architecture) */
.arch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.arch-col { padding: 26px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.arch-col.hl { border: 2px solid var(--s-vm); box-shadow: 0 20px 50px rgba(53, 103, 255, .14); }
.arch-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #475569; }
.arch-tag i { width: 14px; height: 10px; border-radius: 3px; background: var(--sc); }
.arch-col h3 { margin: 8px 0 16px; font-size: 20px; color: var(--ink); }
.arch-stack { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.arch-stack li { position: relative; padding: 9px 12px; border-radius: 10px; font-size: 14px; text-align: center; border: 1px solid transparent; }
.arch-stack li + li { margin-top: 22px; }
.arch-stack li + li::before { content: "↓"; position: absolute; top: -21px; left: 50%; transform: translateX(-50%); color: #94a3b8; font-size: 14px; }
.arch-stack .app { background: #f1f5f9; color: #334155; }
.arch-stack .user { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.arch-stack .kernel { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.arch-stack .vm { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.arch-stack .disk { background: #0f172a; color: #e2e8f0; }
.arch-notes { list-style: none; margin: 0; padding: 0; }
.arch-notes li { position: relative; padding-left: 24px; margin: 8px 0; font-size: 14.5px; color: #334155; }
.arch-notes li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.arch-notes li.good::before { content: "✓"; color: #16a34a; }
.arch-notes li.bad::before { content: "!"; color: #dc2626; left: 4px; }
.arch-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.arch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.arch-legend i { width: 14px; height: 10px; border-radius: 3px; border: 1px solid; }
.arch-legend .user i { background: #fff7ed; border-color: #fed7aa; }
.arch-legend .kernel i { background: #eef2ff; border-color: #c7d2fe; }
.arch-legend .vm i { background: #ecfdf5; border-color: #a7f3d0; }

/* ---------------------------------------------------------------- text comparison table & specs */
.compare.text td { font-size: 14.5px; }
.compare.text td:not(:first-child) { color: #334155; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.spec-card { padding: 24px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.spec-card h3 { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.spec-card dl { margin: 0; }
.spec-card dl div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.spec-card dl div:first-child { border-top: 0; }
.spec-card dt { color: var(--muted); }
.spec-card dd { margin: 0; color: var(--ink); }

@media (max-width: 980px) {
  .perf-charts, .arch { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .perf-board { padding: 18px; }
  .spec-card dl div { grid-template-columns: 1fr; gap: 2px; }
}

.cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .cards.cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards.cards-3 { grid-template-columns: 1fr; } }

/* Download button state set by site.js */
.download-version { font-weight: 400; opacity: .85; }
.btn.btn-disabled { opacity: .55; pointer-events: none; }

/* ================================================================ Windows edition (content_win.py)
   Product colours of the Windows-only app (its icon, src/icons-win), plus the placeholders of an
   edition not on sale yet and the caption of its mockup screenshots (效果图). */
:root { --macdisk: #475569; }
.theme-macdisk { --blue: var(--macdisk); --blue-dark: #334155; --blue-soft: #edf1f7; --accent-2: #64748b; }
.btn.is-soon { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-soon:hover { transform: none; }
.plan .price .tbd { font-size: 28px; letter-spacing: 0; }
.compare td .tbd { font-weight: 700; color: var(--ink); white-space: nowrap; }
.shot-note { margin: 10px 0 0; text-align: right; font-size: 12.5px; color: var(--muted); }
.hero-annotated .shot-note { text-align: center; }
.section-head p code { word-break: break-all; }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ================================================================ Mac / Windows product lines
   data-platform (on <html>, or the site root when embedded in www) says which line is shown;
   blocks of one line are wrapped in [data-only]. Without a choice the Mac line shows. */
[data-only="windows"] { display: none; }
[data-platform="windows"] [data-only="windows"] { display: block; }
[data-platform="windows"] [data-only="mac"] { display: none; }
[data-platform="windows"] .site-nav[data-only="windows"] { display: flex; }
[data-platform="windows"] .btn[data-only="windows"] { display: inline-flex; }

/* Product bar: the Mac / Windows switch (a pill, like the one in the sub-site demo of the design) and, below, the line's apps. */
.platform-tabs { display: inline-flex; margin: 0 auto 0 12px; padding: 3px; border-radius: 999px; background: #eef1f7; }
.platform-tabs a { padding: 5px 14px; border-radius: 999px; white-space: nowrap; color: #475569; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.platform-tabs a:hover { color: var(--ink); }
[data-platform="mac"] .platform-tabs a[data-set-platform="mac"],
[data-platform="windows"] .platform-tabs a[data-set-platform="windows"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15, 35, 95, .12); }

/* A page with both versions: the same switch above its hero. */
.page-platform { display: flex; justify-content: center; gap: 0; width: max-content; margin: 26px auto -8px; padding: 4px;
  border-radius: 999px; background: var(--blue-soft); }
.page-platform a { padding: 8px 26px; border-radius: 999px; white-space: nowrap; color: var(--blue-dark); font-weight: 700; text-decoration: none; }
[data-platform="mac"] .page-platform a[data-set-platform="mac"],
[data-platform="windows"] .page-platform a[data-set-platform="windows"] { background: var(--blue); color: #fff; }

/* Download section with both: the other line's button is outlined. */
.cta .soon-note { font-weight: 500; opacity: .85; }
[data-platform="windows"] .cta a[data-dl="mac"],
[data-platform="mac"] .cta a[data-dl="windows"] { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: none; }
:root { --linuxdisk: #0a8060; }
.theme-linuxdisk { --blue: var(--linuxdisk); --blue-dark: #07664c; --blue-soft: #e0f5ec; --accent-2: #19b386; }
/* Narrow screens: one row (name, Mac / Windows, download, menu); the apps are in the menu. */
@media (max-width: 980px) {
  :root { --l2-h: 57px; }
  .product-main { height: 56px; }
  .subnav { display: none; }
  .platform-tabs { margin-left: 4px; }
}
@media (max-width: 760px) { .header-download { display: none; } }
@media (max-width: 560px) {
  .brand { margin-right: 6px; }
  .brand .product { display: none; }
  .platform-tabs a { padding: 5px 11px; font-size: 13.5px; }
  .page-platform a { padding: 7px 18px; }
}
@media (max-width: 340px) { .platform-tabs a { padding: 5px 8px; } }   /* 320px: "Mac 버전 | Windows 버전" beside the menu */
/* The page's own switch is for www, which embeds the page without this header. */
.site-header ~ main .page-platform { display: none; }

/* Pricing table (b_pricetable): one row per app. */
.pricetable th, .pricetable td { vertical-align: top; text-align: left; }
.pricetable ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.pricetable .pt-app { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 170px; }
.pricetable .pt-app .ptile { width: 36px; height: 36px; }
.pricetable .pt-price { min-width: 220px; }
.pricetable .pt-price .price { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.pricetable .pt-price .price small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* 404.html */
.not-found { min-height: 70vh; display: flex; align-items: center; text-align: center; padding: 60px 0; }
.not-found h1 { font-size: 72px; margin: 0 0 12px; color: var(--ink); }
.not-found p { color: #475569; font-size: 18px; line-height: 1.7; }
.not-found ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }

/* Narrow screens: the apps, pricing and download in a menu (the product row is hidden there). */
.nav-menu { display: none; position: relative; margin-left: 8px; }
.nav-menu summary { list-style: none; cursor: pointer; color: var(--ink); font-size: 20px; line-height: 1; padding: 8px 12px; border-radius: 10px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary, .nav-menu summary:hover { background: #eef3ff; }
.nav-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(2, 6, 23, .18);
  min-width: 220px; max-height: 75vh; overflow: auto;
}
.nav-menu li a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.nav-menu li a:hover, .nav-menu li a[aria-current] { background: #eef2f7; text-decoration: none; }
.nav-menu li[data-only="windows"] { display: none; }
[data-platform="windows"] .nav-menu li[data-only="windows"] { display: list-item; }
[data-platform="windows"] .nav-menu li[data-only="mac"] { display: none; }
@media (max-width: 980px) { .nav-menu { display: block; } }

/* Accessibility: keyboard focus, skip link, reduced motion. */
:focus-visible { outline: 3px solid var(--orange-1, #f59e0b); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ================================================================ user manuals (manual.py): /manual/, /manual/<manual>/, /manual/<manual>/<chapter>/
   Three columns on a chapter page: the manual's chapters (sticky), the text, the headings of the chapter (sticky).
   Wide screens get bigger type and a wider block; below 1360px the right column goes, below 900px the chapter list
   becomes a collapsed <details>. */
.man-wrap { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.man-crumbbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.man-crumb ol { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 15.5px; color: var(--muted); }
.man-crumb li + li::before { content: "›"; margin: 0 10px; color: #94a3b8; }
.man-crumb li[aria-current] { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }

.man-doc { display: grid; grid-template-columns: 270px minmax(0, 1fr) 220px; gap: 48px; padding: 52px 0 120px; }
.man-side-in, .man-toc-in { position: sticky; top: calc(var(--l2-h) + 24px); max-height: calc(100vh - var(--l2-h) - 48px); overflow-y: auto; }
.man-side-in { padding-right: 6px; }
.man-side-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.man-side-head:hover { text-decoration: none; }
.man-side-head img { flex: none; width: 48px; height: 48px; }
.man-side-head b { display: block; font-size: 17.5px; line-height: 1.3; }
.man-side-head i { display: block; margin-top: 2px; font-style: normal; font-size: 14.5px; color: var(--muted); }
.man-chapters { list-style: none; margin: 0; padding: 0; }
.man-chapters a { display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--text); font-size: 16px; font-weight: 550; line-height: 1.4; transition: background .15s, color .15s; }
.man-chapters a:hover { background: var(--panel); color: var(--ink); text-decoration: none; }
.man-chapters .n { flex: none; min-width: 1.6em; font-size: 13.5px; font-weight: 700; color: #94a3b8; font-variant-numeric: tabular-nums; }
.man-chapters .is-on a { background: var(--blue-soft); color: var(--blue-dark); font-weight: 750; }
.man-chapters .is-on .n { color: var(--blue); }
.man-support { display: block; margin-top: 18px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; font-size: 15.5px; font-weight: 650; }
.man-support:hover { border-color: var(--blue); background: var(--blue-soft); text-decoration: none; }
.man-toc-in p { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .6px; color: var(--ink); }
.man-toc-in ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.man-toc-in a { display: block; margin-left: -2px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.man-toc-in a:hover { color: var(--blue-dark); border-left-color: var(--blue); text-decoration: none; }
.man-mobile { display: none; }

.man-article { min-width: 0; max-width: 820px; }
.man-eyebrow { display: block; margin-bottom: 10px; color: var(--blue); font-size: 16px; font-weight: 800; letter-spacing: .4px; }
.man-article h1, .man-head h1 { margin: 0 0 18px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.2; letter-spacing: -.6px; color: var(--ink); }
.man-lead { margin: 0; max-width: none; color: #475569; font-size: 20px; line-height: 1.75; }
.man-body { margin-top: 34px; font-size: 17.5px; line-height: 1.9; color: var(--text); overflow-wrap: break-word; }
.man-body > :first-child { margin-top: 0; }
.man-body p { margin: 0 0 1.05em; }
.man-body h2 { margin: 2.1em 0 .7em; padding-top: .1em; font-size: 29px; line-height: 1.3; letter-spacing: -.3px; color: var(--ink); }
.man-body h3 { margin: 1.8em 0 .5em; font-size: 22px; line-height: 1.35; letter-spacing: -.1px; color: var(--ink); }
.man-body strong { color: var(--ink); font-weight: 700; }
.man-body ul, .man-body ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.man-body li { margin: .3em 0; padding-left: .2em; }
.man-body li > ul, .man-body li > ol { margin: .35em 0 .5em; }
.man-body li > p { margin: .4em 0; }
.man-body li::marker { color: #94a3b8; }
/* The steps of a procedure: numbered discs (nested numbered lists keep plain numbers). */
.man-body > ol { counter-reset: step; list-style: none; padding-left: 0; }
.man-body > ol > li { position: relative; counter-increment: step; margin: 0 0 .8em; padding: 0 0 0 2.6em; }
.man-body > ol > li::before { content: counter(step); position: absolute; left: 0; top: .22em; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: .9em; font-weight: 800; line-height: 1; }
.man-body code { padding: .1em .4em; border-radius: 6px; background: #eef2f7; color: #0f2a5f; font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; word-break: break-word; }
.man-body pre { margin: 0 0 1.2em; padding: 18px 22px; border-radius: 14px; background: #0f172a; color: #e2e8f0; overflow-x: auto; font-size: 15.5px; line-height: 1.7; }
.man-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; word-break: normal; }
.man-body hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.man-xref { white-space: nowrap; }

/* Tables scroll inside their wrapper (never the page); a table of three or more columns keeps a readable width. */
.man-tablewrap { margin: 1.3em 0 1.5em; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) 0 0 / 40px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) 100% 0 / 40px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(15,35,95,.18), rgba(15,35,95,0)) 0 0 / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(15,35,95,.18), rgba(15,35,95,0)) 100% 0 / 14px 100% no-repeat scroll #fff; }
.man-tablewrap:focus-visible { outline-offset: 3px; }
.man-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.65; }
.man-body table[data-cols="3"] { min-width: 600px; }
.man-body table[data-cols="4"], .man-body table[data-cols="5"], .man-body table[data-cols="6"] { min-width: 720px; }
.man-body th, .man-body td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.man-body tr:last-child td { border-bottom: 0; }
.man-body th { background: var(--panel); color: var(--ink); font-size: 15px; font-weight: 750; }
.man-body td:first-child { color: var(--ink); }

/* Callouts: 提示 (blue), 注意 (yellow), Pro (orange, like the site's badge); a plain quote is a grey note. */
.man-callout { margin: 1.5em 0; padding: 18px 24px 18px 22px; border-radius: 16px; border-left: 5px solid var(--blue); background: #eef4ff; font-size: 17px; line-height: 1.8; }
.man-callout-label { margin-bottom: 4px; font-size: 14.5px; font-weight: 800; letter-spacing: .5px; color: var(--blue-dark); }
.man-callout-body > :last-child { margin-bottom: 0; }
.man-callout-body p, .man-callout-body ul, .man-callout-body ol { margin-bottom: .6em; }
.man-warn { border-left-color: #e0a100; background: #fff8df; }
.man-warn .man-callout-label { color: #8a5d00; }
.man-pro { border-left-color: var(--orange-1); background: #fff3e4; }
.man-pro .man-callout-label { display: inline-block; padding: 2px 11px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 100%); font-size: 13.5px; }
.man-note { margin: 1.4em 0; padding: 14px 22px; border-radius: 12px; border-left: 4px solid #cbd5e1; background: var(--panel); color: #475569; font-size: 16.5px; line-height: 1.8; }
.man-note > :last-child { margin-bottom: 0; }

/* Previous / next chapter */
.man-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.man-pn a { display: block; padding: 20px 26px; border: 1.5px solid var(--line); border-radius: 18px; color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .2s; }
.man-pn a:hover { border-color: var(--blue); box-shadow: 0 16px 36px rgba(15, 35, 95, .12); transform: translateY(-2px); text-decoration: none; }
.man-pn span { display: block; margin-bottom: 4px; font-size: 14.5px; font-weight: 650; color: var(--muted); }
.man-pn b { display: block; font-size: 19px; line-height: 1.4; }
.man-pn .is-next { text-align: right; }

/* The hub and a manual's index */
.man-hub { padding-top: 56px; padding-bottom: 120px; max-width: 1180px; }
.man-crumb-hub { max-width: 1180px; }
.man-head { margin-bottom: 14px; }
.man-head .man-lead { max-width: 820px; }
.man-head-product { display: flex; align-items: center; gap: 28px; margin-bottom: 20px; }
.man-head-product > img { flex: none; width: 88px; height: 88px; filter: drop-shadow(0 5px 10px rgba(15, 35, 95, .18)); }
.man-head-product .btn { margin-top: 26px; }
.man-group { margin-top: 44px; }
.man-group h2 { margin: 0 0 22px; font-size: 28px; color: var(--ink); }
.man-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.man-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.man-card:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 45%, #fff); box-shadow: 0 18px 40px rgba(15, 35, 95, .12); }
.man-card img { flex: none; width: 64px; height: 64px; filter: drop-shadow(0 5px 10px rgba(15, 35, 95, .18)); }
.man-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.man-card-tag { font-size: 14px; font-weight: 700; color: var(--blue); }
.man-card b { font-size: 21px; line-height: 1.35; color: var(--ink); }
.man-card-text > span:last-child { font-size: 16px; line-height: 1.7; color: #475569; }
.man-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.man-index li + li { border-top: 1px solid var(--line); }
.man-index a { display: flex; gap: 20px; align-items: baseline; padding: 20px 28px; color: inherit; transition: background .15s; }
.man-index a:hover { background: var(--panel); text-decoration: none; }
.man-index .n { flex: none; min-width: 2em; font-size: 17px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.man-index .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.man-index b { font-size: 19.5px; line-height: 1.4; color: var(--ink); }
.man-index .t > span { font-size: 16px; line-height: 1.7; color: #475569; }

/* Wide monitors: bigger type, a wider block. */
@media (min-width: 1900px) {
  .man-wrap { max-width: 1560px; }
  .man-doc { grid-template-columns: 290px minmax(0, 1fr) 240px; gap: 56px; }
  .man-article { max-width: 860px; }
  .man-body { font-size: 18.5px; }
  .man-lead { font-size: 21px; }
  .man-body h2 { font-size: 31px; }
  .man-chapters a { font-size: 17px; }
  .man-hub, .man-crumb-hub { max-width: 1320px; }
}
@media (min-width: 2300px) {
  .man-wrap { max-width: 1760px; }
  .man-doc { grid-template-columns: 320px minmax(0, 1fr) 260px; gap: 64px; }
  .man-article { max-width: 940px; }
  .man-body { font-size: 20px; }
  .man-lead { font-size: 23px; }
  .man-article h1, .man-head h1 { font-size: 54px; }
  .man-body h2 { font-size: 35px; }
  .man-body h3 { font-size: 25px; }
  .man-body table { font-size: 18px; }
  .man-chapters a { font-size: 18.5px; }
  .man-hub, .man-crumb-hub { max-width: 1500px; }
}
@media (max-width: 1360px) {
  .man-doc { grid-template-columns: 260px minmax(0, 1fr); gap: 44px; }
  .man-toc { display: none; }
}
@media (max-width: 900px) {
  .man-doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .man-side { display: none; }
  .man-mobile { display: block; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
  .man-mobile summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; cursor: pointer; font-weight: 750; color: var(--ink); list-style: none; }
  .man-mobile summary::-webkit-details-marker { display: none; }
  .man-mobile summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
  .man-mobile[open] summary::after { content: "▴"; }
  .man-mobile summary span { flex-basis: 100%; order: 3; font-size: 14.5px; font-weight: 500; color: var(--muted); }
  .man-mobile .man-chapters { padding: 0 8px 10px; max-height: 60vh; overflow-y: auto; }
  .man-head-product { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .man-wrap { padding: 0 16px; }
  .man-crumb ol { font-size: 14.5px; }
  .man-body { font-size: 17px; line-height: 1.85; }
  .man-lead { font-size: 18.5px; }
  .man-body h2 { font-size: 25px; }
  .man-body h3 { font-size: 20px; }
  .man-body th, .man-body td { padding: 10px 12px; }
  .man-callout { padding: 16px 18px; }
  .man-pn, .man-cards { grid-template-columns: minmax(0, 1fr); }
  .man-pn .is-next { text-align: left; }
  .man-card { padding: 22px 20px; gap: 16px; }
  .man-index a { padding: 16px 18px; gap: 14px; }
  .man-hub { padding-top: 36px; }
}
