/* Training section (doc 173) — same tokens, nav and footer as the home page (www/home/index.html). */
:root {
  color-scheme: dark;
  --bg: #0b1a2a;
  --bg-2: #081421;
  --fg: #f4f7fb;
  --accent: #00c1d4;
  --accent-ink: #04222a;
  --warm: #ffd166;
  --muted: rgba(244, 247, 251, 0.72);
  --line: rgba(0, 193, 212, 0.35);
  --surface: rgba(255, 255, 255, 0.03);
  --card: rgba(8, 20, 33, 0.72);
  --hairline: rgba(255, 255, 255, 0.08);
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--fg);
  background: radial-gradient(120% 60% at 50% -10%, rgba(0,193,212,0.18), rgba(11,26,42,0) 60%), var(--bg);
  font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: var(--accent); background: rgba(0,193,212,0.10); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.32rem 0.85rem;
}
.lede { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.15rem); margin: 0.8rem 0 0; max-width: 640px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; padding: 0.8rem 1.4rem; border-radius: 12px; font-size: 0.98rem;
  border: 1px solid var(--accent); transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--warm); border: 1px solid rgba(255,209,102,0.4); border-radius: 999px; padding: 0.2rem 0.7rem; }

/* ---- Nav (as home) ---- */
header { position: sticky; top: 0; z-index: 50; background: rgba(11,26,42,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); text-decoration: none; }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.nav-links .btn { padding: 0.55rem 1.05rem; font-size: 0.9rem; color: var(--accent-ink); }
@media (max-width: 720px) { .nav-links a:not(.btn):not(.active) { display: none; } }

/* ---- Breadcrumb + language ---- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0 0; font-size: 0.95rem; }
.crumbs { color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: 0.5; }
.crumbs > span:last-child { color: var(--fg); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.3rem 0.8rem; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { color: var(--fg); border-color: var(--line); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 0.35rem; list-style: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; min-width: 150px; z-index: 20; box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.lang li a { display: block; padding: 0.45rem 0.7rem; border-radius: 8px; color: var(--fg); }
.lang li a:hover { background: rgba(0,193,212,0.12); text-decoration: none; }
.lang li a[aria-current] { color: var(--accent); font-weight: 700; }

/* ---- Hub ---- */
.hub-hero { text-align: center; padding: clamp(2.2rem, 6vw, 4rem) 0 2rem; }
.hub-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-top: 0.8rem; }
.hub-hero .lede { margin-left: auto; margin-right: auto; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; padding-bottom: 1rem; }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }
.role-card {
  display: flex; flex-direction: column; gap: 0.55rem; padding: 1.6rem;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 20px; color: var(--fg);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.role-card:hover { border-color: var(--line); transform: translateY(-2px); text-decoration: none; box-shadow: 0 18px 40px rgba(0,193,212,0.12); }
.role-card h2 { font-size: 1.45rem; }
.p-head { display: flex; align-items: center; gap: 0.55rem; }
.p-icon { font-size: 1.5rem; line-height: 1; }
.role-head .p-icon { font-size: 0.85em; }
.role-card p { margin: 0; color: var(--muted); font-size: 1.05rem; flex: 1; }
.role-card .role-meta { color: var(--accent); font-weight: 700; font-size: 1rem; }
.role-card.soon { opacity: 0.72; }
.role-card.soon .pill { align-self: flex-start; }

/* ---- Role page ---- */
.role-head { padding: clamp(1.8rem, 5vw, 3rem) 0 1.4rem; }
.role-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-top: 0.7rem; }
.section-title { font-size: 1.35rem; margin: 2.2rem 0 0.4rem; }
.section-title:first-of-type { margin-top: 0.4rem; }
.section-note { margin: 0 0 0.9rem; color: var(--warm); font-size: 0.97rem; }
.section-title + .guide-list { margin-top: 0.9rem; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.guide-list a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1.2rem 1.4rem; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; color: var(--fg);
  transition: border-color .15s ease, transform .15s ease;
}
.guide-list a:hover { border-color: var(--line); transform: translateY(-1px); text-decoration: none; }
.guide-list .gl-text { display: flex; flex-direction: column; }
.guide-list .gl-text strong { font-size: 1.22rem; }
.guide-list .gl-text span { color: var(--muted); font-size: 1.04rem; margin-top: 0.15rem; }
.guide-list .gl-meta { color: var(--accent); font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .guide-list a { grid-template-columns: auto 1fr; } .guide-list .gl-meta { grid-column: 2; } }
.num {
  flex: none; display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: rgba(0,193,212,0.14); border: 1px solid var(--line); color: var(--accent); font-weight: 700; font-size: 1.05rem;
}

/* ---- Guide page ---- */
.notice { margin: 1.2rem 0 0; padding: 0.75rem 1rem; border: 1px solid rgba(255,209,102,0.4); background: rgba(255,209,102,0.08); color: var(--warm); border-radius: 12px; font-size: 0.92rem; }
.guide-head { padding: clamp(1.6rem, 4.5vw, 2.8rem) 0 1.2rem; }
.guide-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.guide-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 1rem 0 1.4rem; color: var(--muted); font-size: 0.97rem; }
.guide-meta b { color: var(--fg); font-weight: 600; }
.steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  display: flex; flex-direction: column; gap: 1.3rem;
  padding: 1.4rem 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--hairline); border-radius: 20px;
}
.step-text { display: flex; gap: 0.9rem; align-items: flex-start; min-height: 4.6rem; }
.step-text p { margin: 0.2rem 0 0; font-size: 1.14rem; line-height: 1.55; }
.step-text strong { color: var(--fg); }
.step-shot { margin: auto auto 0; width: 100%; max-width: 210px; }
.phone {
  position: relative; aspect-ratio: 9 / 19.5; border: 8px solid #13293d; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, #0f2335, #0a1827); box-shadow: 0 20px 45px rgba(0,0,0,0.45), 0 0 0 1px var(--hairline);
}
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40%; height: 14px; background: #0e2233; border-radius: 0 0 10px 10px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1.2rem; text-align: center; border: 1.5px dashed rgba(0,193,212,0.35); border-radius: 22px; margin: 10px;
}
.ph-icon { width: 34px; height: 34px; background: var(--accent); opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 3A1.5 1.5 0 0 0 0 4.5v8A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 14.5 3h-2.3l-.9-1.3A1.5 1.5 0 0 0 10.1 1H5.9a1.5 1.5 0 0 0-1.2.7L3.8 3zM8 5.5a3 3 0 1 1 0 6 3 3 0 0 1 0-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 3A1.5 1.5 0 0 0 0 4.5v8A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 14.5 3h-2.3l-.9-1.3A1.5 1.5 0 0 0 10.1 1H5.9a1.5 1.5 0 0 0-1.2.7L3.8 3zM8 5.5a3 3 0 1 1 0 6 3 3 0 0 1 0-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-title { font-weight: 700; font-size: 0.9rem; }
.placeholder code { font-size: 0.72rem; color: var(--accent); background: rgba(0,193,212,0.1); padding: 0.15rem 0.45rem; border-radius: 6px; }
.ph-note { color: var(--muted); font-size: 0.74rem; line-height: 1.35; }
.know { margin-top: 2rem; padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(0,193,212,0.05); }
.know h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.know ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: 1.08rem; }
.know li { margin: 0.45rem 0; }
.know strong { color: var(--fg); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 2rem 0 0; }
.pager .prev, .pager .next { display: flex; flex-direction: column; padding: 0.9rem 1.1rem; border: 1px solid var(--hairline); border-radius: 14px; color: var(--fg); }
.pager .next { text-align: right; }
.pager .prev:hover, .pager .next:hover { border-color: var(--line); text-decoration: none; }
.pager span { color: var(--muted); font-size: 0.9rem; }
.pager .all { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr 1fr; } .pager .all { grid-column: 1 / -1; grid-row: 2; text-align: center; } }

/* ---- Search (Pagefind UI) ---- */
.search {
  max-width: 640px; margin: 0 auto 2rem;
  --pagefind-ui-scale: 0.95; --pagefind-ui-primary: #00c1d4; --pagefind-ui-text: #f4f7fb;
  --pagefind-ui-background: #081421; --pagefind-ui-border: rgba(0,193,212,0.35);
  --pagefind-ui-tag: rgba(0,193,212,0.12); --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 12px;
  --pagefind-ui-font: "DM Sans", "Inter", -apple-system, sans-serif;
}
.role-head + .search { margin: 0 0 1.6rem; }
.search .pagefind-ui__result-link { color: var(--fg); }
.search .pagefind-ui__result-excerpt { color: var(--muted); }
.search mark { background: rgba(0,193,212,0.25); color: var(--fg); }
.search .pagefind-ui__search-clear {
  background: transparent; border: 0; box-shadow: none; color: var(--muted);
  font-size: 0.88rem; font-weight: 600; padding: 0 1rem; height: calc(100% - 4px); top: 2px; right: 2px;
  border-radius: 0 10px 10px 0; cursor: pointer;
}
.search .pagefind-ui__search-clear:hover, .search .pagefind-ui__search-clear:focus-visible { color: var(--accent); outline: none; }

/* ---- Computer-size steps + laptop frame (Match Group setup) ---- */
.steps.desktop { grid-template-columns: 1fr; }
.steps .step.wide { grid-column: 1 / -1; }
.steps .step.wide .step-shot { max-width: 100%; }
.steps.desktop .step-shot { max-width: 100%; }
.laptop {
  position: relative; aspect-ratio: 16 / 10; border: 10px solid #13293d; border-bottom-width: 14px; border-radius: 14px;
  overflow: hidden; background: linear-gradient(180deg, #0f2335, #0a1827);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45), 0 0 0 1px var(--hairline);
}
.laptop img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.laptop .placeholder { border-radius: 8px; }

/* ---- Key setting marker ---- */
.key-pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 700;
  color: var(--warm); background: rgba(255,209,102,0.10); border: 1px solid rgba(255,209,102,0.45);
  border-radius: 999px; padding: 0.22rem 0.7rem; margin-bottom: 0.7rem; vertical-align: middle; }
.key-pill.sm { font-size: 0.72rem; padding: 0.1rem 0.5rem; margin: 0 0 0 0.4rem; }
.key-note { margin: 0.5rem 0 0; color: var(--warm); font-size: 1rem; }

/* ---- Fields table ---- */
.fields { margin-top: 2rem; }
.fields h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.fields table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card);
  border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; font-size: 1.02rem; }
.fields th, .fields td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-top: 1px solid var(--hairline); }
.fields thead th { border-top: 0; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.fields tbody th { color: var(--fg); white-space: nowrap; width: 1%; }
.fields td { color: var(--muted); }
.fields td strong { color: var(--fg); }
@media (max-width: 560px) { .fields tbody th { white-space: normal; } .fields th, .fields td { padding: 0.65rem 0.7rem; } }

/* ---- Get the app band ---- */
.get-app {
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin: 3rem 0 3.5rem; padding: 1.5rem 1.7rem; border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,193,212,0.14), rgba(0,193,212,0.03)); border: 1px solid var(--line);
}
.get-app h2 { font-size: 1.25rem; }
.get-app p { margin: 0.3rem 0 0; color: var(--muted); }
.get-app-cta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 50px; width: auto; }

/* ---- Footer (as home) ---- */
footer { border-top: 1px solid var(--hairline); padding: 2.25rem 0; color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot .brand span { color: var(--muted); font-weight: 600; }
.foot-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--fg); }
