:root {
  --blue: #2563eb;
  --blue-strong: #1749c6;
  --navy: #0d1b2a;
  --navy-soft: #13283e;
  --green: #22c55e;
  --green-dark: #15803d;
  --light-blue: #e8f1ff;
  --cloud: #f3f6fa;
  --slate: #334155;
  --muted: #64748b;
  --line: #dce5ef;
  --white: #fff;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 8px 24px rgba(13, 27, 42, .07);
  --shadow-md: 0 24px 60px rgba(13, 27, 42, .14);
  --sidebar-width: 280px;
  --topbar-height: 78px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --heading-font: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --body-font: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--slate);
  background:
    radial-gradient(circle at 86% 5%, rgba(37, 99, 235, .1), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0, #fff 48rem);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  min-width: 320px;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; transform: translateY(-160%); padding: .7rem 1rem; border-radius: 8px; background: var(--navy); color: #fff; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }

.portal-shell { min-height: 100vh; }

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(260px, 610px) 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem 0 1.15rem;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(220, 229, 239, .9);
  backdrop-filter: blur(18px);
}

.topbar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--blue), var(--green)); }

.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; text-decoration: none; }
.brand img { width: 112px; height: 58px; object-fit: contain; }
.brand-copy { display: grid; min-width: 0; line-height: 1.1; }
.brand-copy strong { color: var(--navy); font-family: var(--heading-font); font-size: 1rem; }
.brand-copy small { color: var(--muted); margin-top: .3rem; white-space: nowrap; font-size: .69rem; }

.global-search-trigger {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cloud);
  color: var(--muted);
  min-height: 46px;
  padding: 0 .7rem 0 1rem;
  display: flex;
  align-items: center;
  gap: .72rem;
  cursor: pointer;
  transition: .2s ease;
}
.global-search-trigger:hover { border-color: #b7cae3; background: #fff; box-shadow: var(--shadow-sm); color: var(--slate); }
.global-search-trigger span { flex: 1; text-align: left; }
kbd { border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--muted); padding: .08rem .42rem; font-size: .72rem; line-height: 1.5; white-space: nowrap; }

.topbar-status { justify-self: end; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.topbar-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(34, 197, 94, .12); }
.mobile-menu-button.icon-button { display: none; }

.sidebar {
  position: fixed;
  z-index: 40;
  left: 0;
  top: var(--topbar-height);
  bottom: 0;
  width: var(--sidebar-width);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--navy);
  color: #cbd5e1;
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: -100px;
  bottom: 80px;
  border-radius: 50%;
  border: 48px solid rgba(37, 99, 235, .13);
  pointer-events: none;
}

.sidebar-scroll { overflow-y: auto; padding: 1.2rem 1rem 2rem; scrollbar-width: thin; }
.nav-group { margin-bottom: 1.3rem; position: relative; z-index: 1; }
.nav-group-title { display: block; padding: 0 .75rem .45rem; color: #72839a; font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .72rem;
  padding: .7rem .78rem;
  margin: .12rem 0;
  border-radius: 10px;
  color: #b9c6d6;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
  transition: .18s ease;
}
.nav-link svg { flex: 0 0 auto; width: 1.12rem; height: 1.12rem; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link.is-active { color: #fff; background: linear-gradient(105deg, rgba(37, 99, 235, .9), rgba(37, 99, 235, .56)); box-shadow: 0 9px 24px rgba(0, 0, 0, .16); }
.nav-link .nav-count { margin-left: auto; min-width: 1.45rem; padding: .05rem .35rem; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #aebed1; text-align: center; font-size: .65rem; }
.nav-link.is-active .nav-count { background: rgba(255, 255, 255, .2); color: #fff; }

.sidebar-help { position: relative; z-index: 1; margin: 2rem .25rem 0; padding: 1.05rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 15px; background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(37, 99, 235, .12)); }
.sidebar-help-kicker { color: #7fa8ff; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.sidebar-help strong { display: block; margin-top: .2rem; color: #fff; font-family: var(--heading-font); font-size: .92rem; }
.sidebar-help p { margin: .45rem 0 .75rem; color: #9cacc0; font-size: .75rem; line-height: 1.5; }
.sidebar-help a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-size: .76rem; font-weight: 750; text-decoration: none; }
.sidebar-help a svg { width: .95rem; height: .95rem; color: var(--green); }

.sidebar-footer { position: relative; z-index: 2; display: grid; padding: 1rem 1.5rem 1.2rem; background: rgba(5, 14, 24, .55); border-top: 1px solid rgba(255, 255, 255, .08); line-height: 1.35; }
.sidebar-footer span { color: #64748b; font-size: .63rem; text-transform: uppercase; letter-spacing: .11em; }
.sidebar-footer strong { color: #dbe5f1; font-size: .78rem; margin-top: .2rem; }
.sidebar-footer small { color: #718198; font-size: .68rem; }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); padding: calc(var(--topbar-height) + 2.3rem) clamp(1.25rem, 4vw, 4.5rem) 5rem; }
.page-container { width: min(1160px, 100%); margin: 0 auto; }

.breadcrumb { display: flex; align-items: center; gap: .35rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .78rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg { width: .85rem; height: .85rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--green); }

h1, h2, h3, h4 { color: var(--navy); font-family: var(--heading-font); line-height: 1.18; }
h1 { margin: .55rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: -.045em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.025em; }
h3 { margin: 0 0 .65rem; font-size: 1.08rem; }
p { margin: 0 0 1rem; }

.page-intro { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
  min-height: 445px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4.6rem); }
.hero .eyebrow { color: #88adff; }
.hero h1 { max-width: 690px; color: #fff; }
.hero p { max-width: 650px; color: #b9c8d8; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 45px;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { background: var(--blue); color: #fff; box-shadow: 0 10px 25px rgba(37, 99, 235, .28); }
.primary-button:hover { background: #3470f4; transform: translateY(-1px); }
.secondary-button { color: #fff; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); }
.secondary-button:hover { background: rgba(255, 255, 255, .12); }
.primary-button svg, .secondary-button svg { width: 1rem; height: 1rem; }

.hero-visual { position: relative; min-height: 380px; }
.hero-orbit { position: absolute; border-radius: 50%; }
.hero-orbit.one { width: 325px; height: 325px; top: 44px; right: -44px; border: 58px solid rgba(37, 99, 235, .72); }
.hero-orbit.two { width: 115px; height: 115px; right: 24px; bottom: 28px; background: var(--green); opacity: .94; }
.hero-dashboard { position: absolute; z-index: 2; width: min(390px, 90%); right: 8%; top: 50%; transform: translateY(-50%) rotate(-2deg); padding: 1rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; background: rgba(255, 255, 255, .95); box-shadow: 0 30px 60px rgba(0, 0, 0, .32); color: var(--navy); }
.mock-top { display: flex; align-items: center; gap: .35rem; margin-bottom: .8rem; }
.mock-top i { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.mock-top i:first-child { background: var(--green); }
.mock-search { flex: 1; height: 9px; margin-left: .4rem; border-radius: 9px; background: var(--cloud); }
.mock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.mock-card { min-height: 80px; padding: .65rem; border-radius: 10px; background: var(--cloud); }
.mock-card strong { display: block; color: var(--navy); font-size: .7rem; }
.mock-card span { display: block; width: 65%; height: 6px; margin-top: .5rem; border-radius: 5px; background: #cfd9e6; }
.mock-card.blue { background: var(--light-blue); }
.mock-card.blue span { background: var(--blue); }
.mock-card.green span { background: var(--green); }

.quick-search-card { margin: -35px auto 0; position: relative; z-index: 4; width: calc(100% - 4rem); max-width: 980px; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
.quick-search-card button { width: 100%; display: flex; align-items: center; gap: .8rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.quick-search-card button svg { color: var(--blue); }
.quick-search-card button span { flex: 1; }

.section { margin-top: clamp(3rem, 7vw, 5.3rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; }
.section-heading p { max-width: 600px; color: var(--muted); margin: .35rem 0 0; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); text-decoration: none; font-size: .84rem; font-weight: 750; }
.text-link svg { width: 1rem; height: 1rem; }

.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.role-card { position: relative; overflow: hidden; min-height: 250px; display: flex; flex-direction: column; padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .9); text-decoration: none; box-shadow: var(--shadow-sm); transition: .22s ease; }
.role-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -68px; top: -66px; border-radius: 50%; background: var(--role-color); opacity: .1; transition: .22s ease; }
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--role-color) 35%, var(--line)); }
.role-card:hover::after { transform: scale(1.25); }
.role-card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--role-color); background: color-mix(in srgb, var(--role-color) 10%, white); }
.role-card-icon svg { width: 1.4rem; height: 1.4rem; }
.role-card h3 { margin: 1.1rem 0 .25rem; }
.role-card small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.role-card p { color: var(--muted); font-size: .84rem; line-height: 1.55; margin: .75rem 0 1.2rem; }
.role-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--slate); font-size: .75rem; font-weight: 700; }
.role-card-footer span { display: flex; align-items: center; gap: .35rem; }
.role-card-footer svg { width: .9rem; height: .9rem; color: var(--role-color); }

.process-band { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; align-items: center; padding: 1.5rem; border-radius: var(--radius); background: var(--light-blue); border: 1px solid #d2e4ff; }
.process-node { position: relative; text-align: center; }
.process-node:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 24px); width: calc(100% - 48px); height: 2px; background: #b5cdf6; }
.process-node b { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; margin: 0 auto .55rem; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-size: .72rem; box-shadow: 0 3px 10px rgba(37, 99, 235, .12); }
.process-node span { display: block; color: var(--navy); font-size: .72rem; font-weight: 750; line-height: 1.25; }

.article-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.article-teaser { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: .18s ease; }
.article-teaser:hover { border-color: #b8ccef; box-shadow: var(--shadow-sm); transform: translateX(3px); }
.article-teaser-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--light-blue); color: var(--blue); font-size: .72rem; font-weight: 800; }
.article-teaser strong { display: block; color: var(--navy); font-size: .88rem; line-height: 1.35; }
.article-teaser small { display: block; color: var(--muted); margin-top: .18rem; font-size: .69rem; }
.article-teaser > svg { color: #9cacc0; width: 1rem; height: 1rem; }

.role-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 330px; gap: 2rem; padding: clamp(2rem, 5vw, 3.8rem); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(125deg, var(--navy), #173554); box-shadow: var(--shadow-md); }
.role-hero::after { content: ""; position: absolute; width: 330px; height: 330px; border: 65px solid var(--role-color); opacity: .14; border-radius: 50%; right: -105px; top: -110px; }
.role-hero h1 { color: #fff; max-width: 680px; }
.role-hero .page-intro { color: #b9c8d8; }
.role-hero .eyebrow { color: color-mix(in srgb, var(--role-color) 75%, white); }
.role-summary-card { position: relative; z-index: 2; align-self: center; padding: 1.25rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .17); background: rgba(255, 255, 255, .08); backdrop-filter: blur(10px); }
.role-summary-card span { display: block; color: #90a3b8; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.role-summary-card strong { display: block; color: #fff; font-family: var(--heading-font); margin: .35rem 0 .65rem; }
.role-summary-card p { margin: 0; color: #c2cfdd; font-size: .8rem; line-height: 1.55; }

.progress-panel { margin-top: 1rem; }
.progress-label { display: flex; justify-content: space-between; color: #cbd5e1; font-size: .7rem; margin-bottom: .35rem; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .13); }
.progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width .3s ease; }

.learning-path { display: grid; gap: .75rem; }
.path-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(13, 27, 42, .035); transition: .18s ease; }
.path-item:hover { border-color: #b6c9e5; box-shadow: var(--shadow-sm); }
.path-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--light-blue); color: var(--blue); font-weight: 800; font-size: .78rem; }
.path-item.is-complete .path-number { background: #dcfce7; color: var(--green-dark); }
.path-item h3 { margin: 0; font-size: .95rem; }
.path-meta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .28rem; color: var(--muted); font-size: .68rem; }
.path-meta span { display: flex; align-items: center; gap: .25rem; }
.path-meta svg { width: .78rem; height: .78rem; }
.path-item > svg { color: #a0afc0; width: 1rem; height: 1rem; }

.exam-card { position: relative; overflow: hidden; padding: 1.6rem; border-radius: var(--radius); background: var(--navy); color: #c7d3df; }
.exam-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -25px; bottom: -35px; border-radius: 50%; background: var(--green); opacity: .85; }
.exam-card .eyebrow { color: #83a9ff; }
.exam-card h2 { color: #fff; margin-top: .6rem; }
.exam-card p { max-width: 850px; }
.exam-pass { position: relative; z-index: 1; margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.exam-pass strong { display: block; color: #fff; font-size: .78rem; margin-bottom: .2rem; }
.exam-pass span { font-size: .8rem; }

.article-header { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.article-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.article-title-row h1 { max-width: 860px; font-size: clamp(2rem, 4vw, 3.2rem); }
.article-actions { display: flex; gap: .45rem; padding-top: .7rem; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--slate); cursor: pointer; transition: .18s ease; }
.icon-button:hover { color: var(--blue); border-color: #b7ccef; background: var(--light-blue); }
.icon-button.is-active { color: var(--blue); background: var(--light-blue); border-color: #a9c5f2; }
.article-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.15rem; }
.meta-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .36rem .68rem; border-radius: 99px; background: var(--cloud); color: var(--muted); font-size: .72rem; font-weight: 700; }
.meta-pill svg { width: .85rem; height: .85rem; }
.status-pill { color: var(--green-dark); background: #dcfce7; }
.status-pill.limited { color: #9a5b06; background: #fef3c7; }
.status-pill.planned { color: var(--muted); background: #e2e8f0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.2rem; }
.article-body { min-width: 0; }
.article-aside { align-self: start; position: sticky; top: calc(var(--topbar-height) + 1.2rem); display: grid; gap: .8rem; }
.aside-card { padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(13, 27, 42, .04); }
.aside-card h3 { font-size: .84rem; margin-bottom: .7rem; }
.outcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.outcome-list li { display: grid; grid-template-columns: auto 1fr; gap: .45rem; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.outcome-list svg { width: .88rem; height: .88rem; margin-top: .08rem; color: var(--green); }
.aside-link { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--slate); text-decoration: none; font-size: .74rem; font-weight: 700; }
.aside-link:first-of-type { border-top: 0; }
.aside-link:hover { color: var(--blue); }
.aside-link svg { width: .85rem; height: .85rem; }

.content-block { margin-bottom: 2.2rem; }
.content-block > h2 { font-size: 1.45rem; }
.step-list { counter-reset: steps; list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.step-list li { counter-increment: steps; display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.step-list li::before { content: counter(steps); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--light-blue); color: var(--blue); font-weight: 850; font-size: .73rem; }
.step-list li span { padding-top: .12rem; }

.checklist { display: grid; gap: .45rem; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; padding: .72rem .8rem; border-radius: 11px; background: var(--cloud); cursor: pointer; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #b7c5d6; border-radius: 7px; background: #fff; color: transparent; transition: .16s ease; }
.check-box svg { width: .82rem; height: .82rem; stroke-width: 2.6; }
.check-row input:checked + .check-box { background: var(--green); border-color: var(--green); color: #fff; }
.check-row:has(input:checked) .check-text { color: var(--muted); text-decoration: line-through; }
.check-text { padding-top: .04rem; font-size: .86rem; }

.bullet-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.bullet-list li { position: relative; padding-left: 1.25rem; }
.bullet-list li::before { content: ""; position: absolute; width: 7px; height: 7px; left: .15rem; top: .62rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--light-blue); }

.note { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid #cfe0f7; background: var(--light-blue); }
.note-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--blue); }
.note-icon svg { width: 1.05rem; height: 1.05rem; }
.note strong { display: block; color: var(--navy); margin-bottom: .18rem; }
.note p { margin: 0; font-size: .84rem; }
.note.warning { border-color: #f7d9a2; background: #fff8e8; }
.note.warning .note-icon { color: var(--warning); }
.note.danger { border-color: #fecaca; background: #fff1f2; }
.note.danger .note-icon { color: var(--danger); }
.note.success { border-color: #bbf7d0; background: #f0fdf4; }
.note.success .note-icon { color: var(--green-dark); }

.content-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.content-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.content-table th, .content-table td { padding: .75rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.content-table th { color: #fff; background: var(--navy); font-size: .72rem; letter-spacing: .02em; }
.content-table tr:nth-child(even) td { background: var(--cloud); }
.content-table tr:last-child td { border-bottom: 0; }

.practice-card { position: relative; overflow: hidden; padding: 1.35rem; border-radius: 16px; background: var(--navy); color: #c6d2de; }
.practice-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -28px; bottom: -32px; border-radius: 50%; background: var(--green); }
.practice-card h3 { color: #fff; }
.practice-card p { position: relative; z-index: 1; }
.practice-card ul { position: relative; z-index: 1; margin: .75rem 0 0; padding-left: 1.1rem; font-size: .82rem; }
.practice-label { display: inline-block; margin-bottom: .45rem; color: #8db0ff; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.flow-block { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem; border-radius: 14px; background: var(--cloud); }
.flow-chip { display: flex; align-items: center; gap: .5rem; }
.flow-chip span { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); font-size: .75rem; font-weight: 750; }
.flow-chip svg { width: .9rem; height: .9rem; color: var(--blue); }

.article-complete { margin-top: 2.5rem; padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 15px; background: linear-gradient(100deg, var(--light-blue), #f3fff7); border: 1px solid #cfe0f7; }
.article-complete strong { display: block; color: var(--navy); }
.article-complete span { color: var(--muted); font-size: .78rem; }
.complete-button { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .55rem .8rem; border: 1px solid var(--green); border-radius: 10px; background: #fff; color: var(--green-dark); font-weight: 750; font-size: .78rem; cursor: pointer; }
.complete-button.is-complete { background: var(--green); color: #fff; }
.complete-button svg { width: .9rem; height: .9rem; }

.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.status-card { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.status-card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 1rem; color: var(--green-dark); background: #dcfce7; }
.status-card.limited .status-card-icon { color: #a16207; background: #fef3c7; }
.status-card.planned .status-card-icon { color: var(--muted); background: #e2e8f0; }
.status-card p { color: var(--muted); font-size: .82rem; }
.status-card strong { display: block; color: var(--navy); margin-bottom: .35rem; }

.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 18px; background: var(--light-blue); color: var(--blue); }
.empty-state-icon svg { width: 1.8rem; height: 1.8rem; }
.empty-state p { color: var(--muted); }

.search-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: min(11vh, 90px) 1rem 1rem; border: 0; background: rgba(8, 20, 33, .62); backdrop-filter: blur(7px); }
.search-dialog::backdrop { background: transparent; }
.search-panel { overflow: hidden; width: min(820px, 100%); max-height: min(720px, 82vh); margin: 0 auto; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; border-radius: 20px; background: #fff; box-shadow: 0 32px 90px rgba(0, 0, 0, .36); }
.search-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.search-header > svg { color: var(--blue); }
.search-header input { width: 100%; border: 0; outline: 0; color: var(--navy); background: transparent; font-size: 1.03rem; }
.search-header input::placeholder { color: #93a2b5; }
.search-filters { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 1rem; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .62rem; background: #fff; color: var(--muted); font-size: .68rem; font-weight: 700; cursor: pointer; }
.filter-chip.is-active { color: var(--blue); border-color: #b4caf0; background: var(--light-blue); }
.search-results { overflow-y: auto; padding: .55rem; }
.search-result { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; padding: .8rem; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.search-result:hover, .search-result.is-selected { background: var(--light-blue); }
.search-result-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--cloud); color: var(--blue); }
.search-result-icon svg { width: 1.05rem; height: 1.05rem; }
.search-result strong { display: block; color: var(--navy); font-size: .86rem; }
.search-result p { margin: .2rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.search-result-meta { display: flex; gap: .4rem; margin-top: .38rem; color: #718198; font-size: .63rem; }
.search-result > svg { align-self: center; width: .9rem; height: .9rem; color: #98a8b9; }
mark { padding: 0 .08em; border-radius: 2px; color: inherit; background: #bbf7d0; }
.search-footer { display: flex; gap: 1.1rem; align-items: center; padding: .65rem 1rem; border-top: 1px solid var(--line); background: var(--cloud); color: var(--muted); font-size: .65rem; }
.search-footer span { display: flex; align-items: center; gap: .25rem; }
.search-footer strong { margin-left: auto; color: var(--slate); }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 1.4rem; transform: translate(-50%, 130%); padding: .7rem 1rem; border-radius: 10px; background: var(--navy); color: #fff; box-shadow: var(--shadow-md); font-size: .8rem; transition: transform .25s ease; }
.toast.is-visible { transform: translate(-50%, 0); }
.noscript { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 2rem; background: var(--navy); color: #fff; text-align: center; }
.sidebar-backdrop { display: none; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: var(--sidebar-width) minmax(250px, 1fr) auto; gap: 1rem; }
  .topbar-status { font-size: 0; }
  .topbar-status span { display: block; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr 340px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 2rem; }
}

@media (max-width: 900px) {
  :root { --topbar-height: 70px; }
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 .8rem; }
  .mobile-menu-button.icon-button { display: grid; }
  .brand img { width: 90px; }
  .brand-copy small { display: none; }
  .global-search-trigger { width: 42px; min-height: 42px; padding: 0; justify-content: center; justify-self: end; }
  .global-search-trigger span, .global-search-trigger kbd { display: none; }
  .topbar-status { display: none; }
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0, 0, 0, .25); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 35; inset: var(--topbar-height) 0 0 0; background: rgba(7, 17, 28, .52); }
  .sidebar-backdrop.is-visible { display: block; }
  .main-content { margin-left: 0; padding-top: calc(var(--topbar-height) + 1.5rem); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { display: none; }
  .quick-search-card { margin-top: -20px; width: calc(100% - 2rem); }
  .role-hero { grid-template-columns: 1fr; }
  .role-summary-card { max-width: 520px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .main-content { padding-inline: .9rem; padding-bottom: 3rem; }
  .brand { gap: .4rem; }
  .brand img { width: 76px; }
  .brand-copy strong { font-size: .82rem; }
  .hero-copy { padding: 2.1rem 1.3rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { display: grid; }
  .role-grid, .article-list-grid, .status-grid { grid-template-columns: 1fr; }
  .process-band { grid-template-columns: 1fr; gap: .65rem; }
  .process-node { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: .7rem; text-align: left; }
  .process-node b { margin: 0; }
  .process-node:not(:last-child)::after { top: 34px; left: 17px; width: 2px; height: calc(100% + .65rem); }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: .8rem; }
  .role-hero { padding: 2rem 1.25rem; }
  .article-title-row { grid-template-columns: 1fr; gap: .5rem; }
  .article-title-row h1 { font-size: 2.15rem; }
  .article-actions { padding-top: 0; }
  .article-aside { grid-template-columns: 1fr; }
  .article-complete { display: grid; }
  .search-dialog { padding: 0; }
  .search-panel { height: 100%; max-height: none; border-radius: 0; }
  .search-footer span { display: none; }
  .search-footer strong { margin-left: 0; }
  .flow-block { display: grid; }
  .flow-chip { display: grid; grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .topbar, .sidebar, .article-actions, .article-aside, .article-complete, .search-dialog, .toast, .breadcrumb { display: none !important; }
  .main-content { margin: 0; padding: 0; }
  .page-container { width: 100%; }
  h1, h2, h3 { color: #000; break-after: avoid; }
  .article-header { padding-bottom: 10mm; }
  .article-layout { display: block; margin-top: 10mm; }
  .content-block, .step-list li, .note, .practice-card, .content-table { break-inside: avoid; }
  .step-list li, .note, .content-table-wrap { border-color: #bbb; }
  .practice-card { background: #eee; color: #111; }
  .practice-card h3 { color: #000; }
}
