/* Microsoft 365 Migration Guide — CSP Geeks */
:root {
  --navy: #031c31;
  --ink: #142236;
  --ink-2: #44546a;
  --muted: #66758a;
  --blue: #0068ad;
  --blue-d: #005391;
  --blue-50: #eef6fd;
  --blue-100: #d9ecff;
  --accent: #f4a340;
  --old: #8a5a00;
  --old-bg: #fff4e0;
  --old-bd: #f2cf8d;
  --new: #0a6640;
  --new-bg: #e6f6ee;
  --new-bd: #9fd8bb;
  --red: #b3261e;
  --red-bg: #fdecea;
  --amber: #8a5300;
  --amber-bg: #fff6e5;
  --green: #14803c;
  --green-bg: #e9f7ef;
  --violet: #4b3fb0;
  --violet-bg: #f0eeff;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --line: #e3e9f0;
  --line-2: #d3dce6;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(3, 28, 49, .06), 0 8px 24px rgba(3, 28, 49, .06);
  --shadow-lg: 0 24px 64px rgba(3, 28, 49, .22);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --top: 64px;
  --side: 284px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); padding: .1em .4em; border-radius: 5px; word-break: break-word; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; color: var(--muted); }
.print-only { display: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 36px; width: auto; }
.brand-div { width: 1px; height: 30px; background: var(--line-2); }
.brand-text { font: 600 .78rem/1.15 var(--font-d); letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.brand-text strong { font-size: 1.02rem; letter-spacing: 0; text-transform: none; color: var(--navy); }
.search-trigger { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(380px, 40vw); padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-soft); color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.search-trigger:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.search-trigger span { flex: 1; text-align: left; }
kbd { font: 600 .72rem/1 var(--font); padding: 4px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: #fff; color: var(--ink-2); white-space: nowrap; }
.plus { margin: 0 2px; color: var(--muted); font-size: .8em; }
.icon-btn { display: none; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.icon-btn .ic { width: 22px; height: 22px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) 240px; }
.sidebar { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 24px 14px 32px; border-right: 1px solid var(--line); background: var(--bg-soft); }
.nav-group + .nav-group { margin-top: 18px; }
.nav-head { margin: 0 10px 6px; font: 700 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.sidebar li a .ic { color: var(--muted); }
.sidebar li a:hover { background: #fff; color: var(--ink); }
.sidebar li a.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue), var(--shadow); }
.sidebar li a.on .ic { color: var(--blue); }
.nav-badge { margin-left: auto; font: 600 .66rem/1 var(--font); font-style: normal; padding: 4px 6px; border-radius: 99px; background: var(--new-bg); color: var(--new); white-space: nowrap; }
.nav-foot { margin-top: 24px; padding: 0 4px; }
.nav-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-cta:hover { border-color: var(--blue); color: var(--blue); }
.scrim { display: none; }

.main { min-width: 0; }
.content { max-width: 800px; margin: 0 auto; padding: 40px 48px 24px; }
.content-home { max-width: 960px; padding-top: 8px; }
.crumbs { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-d); color: var(--navy); line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 1.5rem; margin: 2.6em 0 .6em; padding-top: .2em; font-weight: 700; position: relative; }
h3 { font-size: 1.18rem; margin: 2em 0 .5em; font-weight: 650; position: relative; }
.content > h2:first-child, .content > .callout:first-child + h2 { margin-top: 1.2em; }
.anchor { position: absolute; left: -1.1em; opacity: 0; color: var(--line-2); text-decoration: none; font-weight: 400; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.lede { font-size: 1.16rem; color: var(--ink-2); margin: 0 0 1.6em; max-width: 46em; }
p, ul, ol, dl { margin: 0 0 1em; }
li + li { margin-top: .3em; }
strong { font-weight: 650; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 56px 48px 40px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -1; background: radial-gradient(900px 400px at 85% 20%, var(--blue-100), transparent 70%), linear-gradient(180deg, var(--blue-50), #fff 92%); }
.eyebrow { display: inline-flex; margin: 0 0 14px; padding: 5px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--blue-100); color: var(--blue); font: 700 .76rem/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; }
.hero-lede { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(0, 104, 173, .28); }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.hero-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--muted); font: inherit; font-size: .95rem; cursor: pointer; box-shadow: var(--shadow); text-align: left; }
.hero-search .hs-text { flex: 1; }
.hero-search:hover { border-color: var(--blue); }

.transit { display: grid; grid-template-columns: 1fr 92px 1fr; align-items: center; gap: 0; }
.acct { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.acct-head { display: flex; align-items: center; gap: 8px; font: 700 .92rem/1.2 var(--font-d); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.acct-old .acct-head { color: var(--old); }
.acct-new .acct-head { color: var(--new); }
.acct-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-2); padding: 6px 8px; border-radius: 8px; background: var(--bg-soft); }
.acct-row + .acct-row { margin-top: 6px; }
.acct-row .ic { color: var(--blue); }
.acct-foot { margin-top: 12px; font: 600 .74rem/1.2 var(--font); color: var(--old); background: var(--old-bg); border-radius: 6px; padding: 6px 8px; text-align: center; }
.acct-foot-ok { color: var(--new); background: var(--new-bg); display: flex; align-items: center; justify-content: center; gap: 6px; }
.transit-lane { position: relative; height: 150px; }
.lane-line { position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dashed var(--blue-100); }
.lane-label { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 600 .68rem/1.2 var(--font); color: var(--blue); }
.chip { position: absolute; top: calc(50% - 17px); left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(0,104,173,.3); animation: lane 4.5s ease-in-out infinite; }
.chip .ic { width: 18px; height: 18px; }
.chip-b { animation-delay: 1.5s; background: #2f7fc1; }
.chip-c { animation-delay: 3s; background: var(--accent); }
@keyframes lane { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(58px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; opacity: 1; } .chip-b { left: 28px; } .chip-c { left: 56px; } }

/* ---------- home blocks ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 1em; }
.pair-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid; }
.pair-card > .ic { width: 28px; height: 28px; margin-top: 2px; }
.pair-card p { margin: 0; font-size: .95rem; }
.pair-title { font: 700 1.05rem/1.3 var(--font-d) !important; margin-bottom: 4px !important; }
.pair-title span { font-weight: 500; color: var(--muted); font-size: .9rem; }
.pair-old { background: var(--old-bg); border-color: var(--old-bd); }
.pair-old > .ic, .pair-old .pair-title { color: var(--old); }
.pair-new { background: var(--new-bg); border-color: var(--new-bd); }
.pair-new > .ic, .pair-new .pair-title { color: var(--new); }
.tag { display: inline-block; padding: 0 8px; border-radius: 99px; font-size: .82em; font-weight: 650; border: 1px solid; white-space: nowrap; line-height: 1.6; }
.tag-old { color: var(--old); background: var(--old-bg); border-color: var(--old-bd); }
.tag-new { color: var(--new); background: var(--new-bg); border-color: var(--new-bd); }

.journey { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: j; }
.journey li { margin: 0; }
.journey a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.journey a:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.j-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; }
.j-text { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.j-text strong { color: var(--navy); font-size: .98rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 1.4em; }
.cards-two { grid-template-columns: 1fr 1fr; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: .92rem; line-height: 1.5; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink-2); }
.card strong { color: var(--navy); font: 700 1.02rem/1.3 var(--font-d); }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); margin-bottom: 6px; }
.card-icon .ic { width: 22px; height: 22px; }
.card-static { background: var(--bg-soft); }
.cards-tight .card { padding: 16px; }
.badge { position: absolute; top: 18px; right: 16px; font: 700 .68rem/1 var(--font); padding: 5px 8px; border-radius: 99px; }
.badge-rec { background: var(--new-bg); color: var(--new); }

.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 1em; }
.scope-col { border-radius: var(--r); padding: 18px 20px 6px; border: 1px solid var(--line); }
.scope-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.scope-in { background: var(--green-bg); border-color: #bfe3cd; }
.scope-in .scope-title { color: var(--green); }
.scope-out { background: var(--bg-soft); }
.scope-out .scope-title { color: var(--ink-2); }
.scope ul { padding-left: 1.2em; font-size: .95rem; }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 14px; margin: 1.4em 0; padding: 16px 18px; border-radius: var(--r); border: 1px solid; border-left-width: 5px; background: var(--blue-50); border-color: #c4def3; }
.callout-icon { width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.callout-body { min-width: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-body p, .callout-body li { font-size: .96rem; }
.callout-title { font-weight: 700; margin: 0 0 .3em; color: var(--navy); }
.callout-body ul { padding-left: 1.2em; }
.callout-warn { background: var(--amber-bg); border-color: #f1d19a; }
.callout-warn .callout-icon { color: var(--amber); }
.callout-danger { background: var(--red-bg); border-color: #f2bab5; }
.callout-danger .callout-icon, .callout-danger .callout-title { color: var(--red); }
.callout-tip { background: var(--green-bg); border-color: #bfe3cd; }
.callout-tip .callout-icon { color: var(--green); }
.callout-verify { background: var(--violet-bg); border-color: #cfc9f5; }
.callout-verify .callout-icon, .callout-verify .callout-title { color: var(--violet); }
.callout-deadline { background: linear-gradient(90deg, #fff4e0, #fffaf1); border-color: var(--old-bd); border-left-color: var(--accent); padding: 20px 22px; }
.callout-deadline .callout-icon { color: #c77a12; width: 28px; height: 28px; }
.callout-deadline .callout-title { font-size: 1.12rem; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--violet); background: #fff; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: s; margin: 1.2em 0 1.4em; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 50px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 700; font-size: .92rem; }
.steps > li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--blue-100); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.step-title { margin: 0 0 .3em; font-weight: 600; color: var(--ink); }
.steps li p:not(.step-title) { color: var(--ink-2); font-size: .97rem; margin-bottom: .5em; }
.steps li ul { padding-left: 1.2em; font-size: .97rem; color: var(--ink-2); }
.ui { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; font-weight: 600; color: var(--navy); }
.ui > span:not(.sep) { padding: 0 6px; border-radius: 5px; background: var(--blue-50); border: 1px solid var(--blue-100); font-size: .92em; line-height: 1.55; }
.ui .sep { color: var(--muted); font-weight: 400; padding: 0 1px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -.6em 0 1.8em; padding: 12px 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .ic { color: var(--blue); }

/* ---------- MS links ---------- */
.mslinks { margin: 1.2em 0 1.6em; padding: 14px 18px; border-radius: var(--r); border: 1px dashed var(--line-2); background: #fff; }
.mslinks-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 .78rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mslinks ul { list-style: none; padding: 0; margin: 0; }
.mslinks li { margin: 4px 0; font-size: .95rem; }
.mslinks a { display: inline-flex; align-items: center; gap: 6px; }
.ext { width: .85em; height: .85em; opacity: .7; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); font: 700 .78rem/1.3 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--navy); }
tbody th .ic { color: var(--blue); margin-right: 6px; }
tbody tr:hover { background: #fbfdff; }
.cmp-table td { white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 99px; font-size: .86rem; font-weight: 600; white-space: normal; }
.pill .ic { width: 14px; height: 14px; }
.pill-yes { background: var(--green-bg); color: var(--green); }
.pill-no { background: var(--red-bg); color: var(--red); }
.pill-maybe { background: var(--amber-bg); color: var(--amber); padding-left: 10px; }
.res-table th { width: 42%; }
code.url { font-size: .78rem; background: none; border: 0; padding: 0; color: var(--ink-2); word-break: break-all; }

/* ---------- figures / illustrations ---------- */
.fig { margin: 1.6em 0 1.8em; }
.fig-art { padding: 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, #f3f8fd, #eaf2fa); border: 1px solid var(--line); overflow-x: auto; }
.fig figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.fig-label { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--line); font: 700 .68rem/1.5 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.mock { max-width: 560px; margin: 0 auto; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(3,28,49,.10); overflow: hidden; font-size: .86rem; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f1f4f8; border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbe5; }
.mock-title { font-weight: 600; font-size: .78rem; color: var(--ink-2); }
.mock-body { padding: 14px; position: relative; }
.mock-dialog { max-width: 420px; }
.pin { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: var(--accent); color: #2a1a00; font: 800 .7rem/1 var(--font); box-shadow: 0 0 0 3px rgba(244,163,64,.28); vertical-align: middle; flex: none; }
.fig-legend { list-style: none; padding: 0; margin: 18px auto 0; max-width: 560px; display: grid; gap: 6px; }
.fig-legend li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .9rem; color: var(--ink-2); }
.fig-legend .pin { margin: 1px 0 0; }
.tree { list-style: none; padding: 0; margin: 0; }
.tree li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; margin: 0; border-radius: 6px; color: var(--ink-2); }
.tree li .ic { color: #7a8aa0; }
.tree .d1 { padding-left: 30px; } .tree .d2 { padding-left: 52px; }
.tree .t-old { font-weight: 700; color: var(--old); } .tree .t-old .ic { color: var(--old); }
.tree .t-new { font-weight: 700; color: var(--new); } .tree .t-new .ic { color: var(--new); }
.tree .t-hl { background: var(--blue-50); color: var(--blue); font-weight: 650; box-shadow: inset 0 0 0 1px var(--blue-100); } .tree .t-hl .ic { color: var(--blue); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rt { padding: 3px 8px; border-radius: 5px; font-size: .78rem; color: var(--ink-2); display: inline-flex; align-items: center; }
.rt.on { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.rt-file { background: var(--blue); color: #fff; font-weight: 700; }
.toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink-2); }
.toggle i { position: relative; width: 26px; height: 14px; border-radius: 99px; background: #c9d2dd; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.toggle.on i { background: var(--blue); } .toggle.on i::after { left: 14px; }
.mock-lines { padding-top: 10px; display: grid; gap: 7px; }
.mock-lines i { height: 8px; border-radius: 4px; background: #edf1f6; } .mock-lines i:nth-child(2) { width: 80%; } .mock-lines i:nth-child(3) { width: 60%; }
.dlg-q { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.dlg-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.b { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 6px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; background: #fff; color: var(--ink-2); }
.b-pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.dlg-sec { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.dlg-lbl { margin: 0 0 8px; font-weight: 700; font-size: .8rem; color: var(--navy); }
.dlg-check { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.cb { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid #9aa8b8; background: #fff; flex: none; display: inline-block; }
.cb.on { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 2px #fff; }
.slider { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: .8rem; color: var(--ink-2); }
.slider-track { flex: 1; min-width: 100px; height: 4px; border-radius: 2px; background: var(--blue); position: relative; }
.slider-track i { position: absolute; right: -6px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.slider strong { display: inline-flex; align-items: center; color: var(--navy); }
.wizard { display: flex; align-items: stretch; gap: 8px; }
.wz-step { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.wz-step p { margin: 6px 0; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wz-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .78rem; }
.wz-opt { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.wz-new { border-color: var(--new-bd); background: var(--new-bg); }
.wz-arr { display: grid; place-items: center; color: var(--blue); }
.tabs-v { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs-v span { padding: 4px 10px; border-radius: 6px; font-size: .78rem; color: var(--ink-2); }
.tabs-v .on { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.acct-list { display: grid; gap: 8px; justify-items: start; }
.acct-li { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.acct-li .ic { color: var(--blue); }
.acct-li div { display: flex; flex-direction: column; line-height: 1.3; } .acct-li span { font-size: .76rem; color: var(--muted); }
.ctx-wrap { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ctx-file { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: var(--blue-50); color: var(--navy); font-weight: 600; }
.ctx-menu { list-style: none; margin: 0; padding: 6px; min-width: 230px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(3,28,49,.14); }
.ctx-menu li { margin: 0; padding: 5px 10px; border-radius: 5px; font-size: .82rem; color: var(--ink-2); display: flex; align-items: center; }
.ctx-menu li.hl { background: var(--blue-50); color: var(--blue); font-weight: 650; }
.ctx-menu .sepline { padding: 0; height: 1px; background: var(--line); margin: 4px 0; }
.ctx-float { max-width: 240px; margin: 8px 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.toolbar span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: .8rem; color: var(--ink-2); }
.toolbar span.hl { background: var(--blue-50); color: var(--blue); font-weight: 650; box-shadow: inset 0 0 0 1px var(--blue-100); }
.toolbar-sub { border-bottom: 0; margin-bottom: 0; }
.rows .row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); font-size: .82rem; }
.rows .row .ic { color: #7a8aa0; }
.rows .row.sel { background: var(--blue-50); }
.crumb { font-size: .8rem; color: var(--muted); }
.xfer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.xfer-side { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; border: 1px solid; background: #fff; font-size: .85rem; }
.xfer-side > .ic { width: 24px; height: 24px; }
.xfer-side strong { font-size: .88rem; }
.xfer-side span { padding: 4px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); }
.xfer-side span.sub { margin-left: 16px; }
.xfer-old { border-color: var(--old-bd); } .xfer-old > .ic, .xfer-old strong { color: var(--old); }
.xfer-new { border-color: var(--new-bd); } .xfer-new > .ic, .xfer-new strong { color: var(--new); }
.xfer-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--blue); }
.od-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.od { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.od div { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.od strong { color: var(--navy); font-size: .9rem; }
.od em { font-style: normal; font-weight: 650; color: var(--blue); }
.od-err em { color: var(--red); }
.odi { width: 30px; height: 30px; flex: none; }

/* method flow */
.flow { display: grid; grid-template-columns: 1fr auto 1.6fr auto 1fr auto 1fr; gap: 10px; align-items: center; min-width: 640px; }
.flow-col { display: flex; flex-direction: column; gap: 8px; }
.flow-head { margin: 0; font: 700 .7rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); text-align: center; font-size: .84rem; font-weight: 650; box-shadow: var(--shadow); }
.flow-node .ic { width: 26px; height: 26px; }
.node-old { color: var(--old); border-color: var(--old-bd); }
.node-new { color: var(--new); border-color: var(--new-bd); }
.node-ok { color: var(--violet); border-color: #cfc9f5; }
.flow-arrow { color: var(--blue); }
.flow-group { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow); }
.flow-group p { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .82rem; color: var(--blue); }
.flow-group span { font-size: .8rem; padding: 4px 8px; border-radius: 6px; background: var(--blue-50); color: var(--navy); }

/* picker */
.picker { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-soft); }
.picker fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.picker legend { font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.picker label { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 9px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); cursor: pointer; font-size: .93rem; }
.picker label:hover { border-color: var(--blue); }
.picker label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue); font-weight: 600; }
.picker input { accent-color: var(--blue); }
.picker-result:empty { display: none; }
.picker-result { padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--new-bd); box-shadow: var(--shadow); }
.picker-result p { margin: 0 0 8px; }
.picker-result .rec { font: 700 1.1rem/1.3 var(--font-d); color: var(--new); }

/* do/dont */
.dodont { list-style: none; padding: 0; }
.dodont li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; margin: 0 0 6px; }
.dodont .ic { margin-top: .25em; }
.dodont.do li { background: var(--green-bg); } .dodont.do .ic { color: var(--green); }
.dodont.dont li { background: var(--red-bg); } .dodont.dont .ic { color: var(--red); }

/* faq */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4em 0 1em; }
.chip-btn { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font: 600 .88rem/1 var(--font); color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.chip-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.faq { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.faq-item[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { color: var(--muted); transition: transform .2s; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 18px 14px; color: var(--ink-2); }
.faq-body p { margin: 0; }
.faq-item:target { border-color: var(--accent); }

/* checklist */
.cl-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); position: sticky; top: calc(var(--top) + 10px); z-index: 5; }
.cl-progress { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.cl-track { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cl-track i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width .3s; }
.cl-actions { display: flex; gap: 8px; }
.cl-group ul { list-style: none; padding: 0; }
.cl-group li { margin: 0 0 6px; }
.cl-group label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.cl-group label:hover { border-color: var(--blue-100); background: #fbfdff; }
.cl-group input { position: absolute; opacity: 0; pointer-events: none; }
.cl-box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 6px; border: 2px solid var(--line-2); background: #fff; color: transparent; }
.cl-box .ic { width: 14px; height: 14px; }
.cl-group input:checked + .cl-box { background: var(--green); border-color: var(--green); color: #fff; }
.cl-group input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; }
.cl-group input:focus-visible + .cl-box { outline: 3px solid var(--accent); outline-offset: 2px; }

/* glossary & about */
.glossary { display: grid; gap: 10px; }
.glossary > div { padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); }
.glossary > div:target { border-color: var(--accent); background: #fffaf1; }
.glossary dt { font-weight: 700; color: var(--navy); }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); }
.about { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.about > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.about > div:last-child { border-bottom: 0; }
.about dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.about dd { margin: 0; }

/* pager & footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 3.5em; }
.pg { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pg:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.pg span { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.pg strong { color: var(--blue); }
.pg-next { text-align: right; align-items: flex-end; grid-column: 2; }
.footer { max-width: 800px; margin: 32px auto 0; padding: 28px 48px 40px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .84rem; color: var(--muted); }
.is-home .footer { max-width: 960px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 30px; width: auto; }
.footer p { margin: 0; }

/* toc */
.toc { position: sticky; top: var(--top); align-self: start; max-height: calc(100vh - var(--top)); overflow-y: auto; padding: 40px 20px 20px 4px; font-size: .84rem; }
.toc-head { margin: 0 0 10px; font: 700 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ul { list-style: none; padding: 0; margin: 0 0 16px; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--blue); }
.toc a.on { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.toc-top { color: var(--muted); text-decoration: none; font-size: .8rem; }

/* ---------- search modal ---------- */
.search[hidden] { display: none; }
.search { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: rgba(3, 28, 49, .45); backdrop-filter: blur(3px); }
.search-panel { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-box > .ic { width: 22px; height: 22px; color: var(--blue); }
.search-box input { flex: 1; border: 0; outline: 0; font: 400 1.1rem/1.4 var(--font); color: var(--ink); background: none; min-width: 0; }
.search-box input::-webkit-search-cancel-button { display: none; }
.esc { border: 1px solid var(--line-2); background: var(--bg-soft); border-radius: 6px; font: 600 .74rem/1 var(--font); padding: 6px 8px; color: var(--muted); cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results li { margin: 0; }
.search-results a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--blue-50); }
.sr-path { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sr-title { display: block; font-weight: 650; color: var(--navy); margin: 2px 0; }
.sr-snip { display: block; font-size: .86rem; line-height: 1.45; }
.search-results mark { background: #ffe8b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.sr-empty strong { color: var(--ink); }
.sr-sugg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.sr-sugg button { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 6px 12px; font: 500 .84rem/1 var(--font); color: var(--ink-2); cursor: pointer; }
.sr-sugg button:hover { border-color: var(--blue); color: var(--blue); }
.search-foot { display: flex; gap: 16px; margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .76rem; color: var(--muted); }
.search-foot span { display: inline-flex; align-items: center; gap: 4px; }
mark.hit { background: #ffe8b8; border-radius: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .shell { grid-template-columns: var(--side) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 40px 32px 24px; }
  .hero-art { max-width: 560px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --top: 58px; }
  .icon-btn { display: inline-flex; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: var(--top); left: 0; bottom: 0; height: auto; width: min(320px, 86vw); z-index: 60; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--top) 0 0 0; background: rgba(3,28,49,.35); z-index: 55; }
  .content, .footer { padding-left: 22px; padding-right: 22px; }
  .content { padding-top: 28px; }
  .hero { padding: 32px 22px 16px; }
  .brand-div, .brand-text { display: none; }
  .search-trigger { width: auto; flex: 1; max-width: 320px; }
  .search-trigger kbd { display: none; }
  .anchor { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .cards-two, .pair, .scope, .cmp, .journey { grid-template-columns: 1fr; }
  .transit { grid-template-columns: 1fr; gap: 6px; }
  .transit-lane { height: 60px; transform: rotate(90deg); width: 60px; margin: 0 auto; }
  .lane-label { display: none; }
  .wizard { flex-direction: column; }
  .wz-arr { transform: rotate(90deg); }
  .xfer { grid-template-columns: 1fr; }
  .xfer-mid { flex-direction: row; justify-content: center; }
  .about > div { grid-template-columns: 1fr; gap: 2px; }
  .fig-art { padding: 14px; }
  .pager { grid-template-columns: 1fr; }
  .pg-next { grid-column: 1; }
  .search { padding-top: 12px; }
  .search-foot { display: none; }
  .cmp-table td { white-space: normal; }
  .search-trigger span { font-size: .85rem; }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; color: #000; }
  .topbar, .sidebar, .toc, .pager, .search, .skip, .no-print, .hero-actions, .hero-search, .anchor, .filters, .scrim, .nav-toggle { display: none !important; }
  .shell { display: block; }
  .content { max-width: none; padding: 0; }
  .hero { display: block; padding: 0 0 12px; }
  .hero::before { display: none; }
  .hero-art { display: none; }
  .print-only { display: block; }
  .print-head p { border: 1px solid #999; padding: 10px; border-radius: 6px; }
  a { color: #000; }
  .mslinks a::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; word-break: break-all; }
  h2, h3 { break-after: avoid; }
  .callout, .fig, .steps > li, .faq-item, .cl-group label, tr, .card { break-inside: avoid; }
  .faq-item:not([open]) .faq-body { display: block; }
  .fig-art { background: #fff; }
  .mock, .card, .flow-node, .flow-group, .wz-step, .acct, .od { box-shadow: none !important; }
  .cl-group label { border-color: #999; padding: 8px 10px; }
  .cl-box { border-color: #555; }
  .cl-group input:checked ~ span:last-child { text-decoration: none; color: #000; }
  .footer { padding: 12px 0 0; max-width: none; }
}

/* layout refinements */
.shell.no-toc { grid-template-columns: var(--side) minmax(0, 1fr); }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1120px; }
.hero h1 { font-size: clamp(2rem, 3.3vw, 2.75rem); }
.transit { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); }
.acct { padding: 14px 12px; }
.acct-row { font-size: .8rem; padding: 6px 7px; }
@keyframes lane { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(36px); opacity: 0; } }
@media (max-width: 900px) { .shell.no-toc { grid-template-columns: minmax(0, 1fr); } }
.main { overflow-x: clip; }
.hero { max-width: 1056px; }
@media (max-width: 1080px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .transit { grid-template-columns: 1fr; }
  .hero-search kbd, .hero-search .plus { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .callout { padding: 14px; gap: 10px; }
}
@media (max-width: 900px) { .sidebar { box-shadow: none; visibility: hidden; transition: transform .25s ease, visibility .25s; } body.nav-open .sidebar { box-shadow: var(--shadow-lg); visibility: visible; } }
