/* Product / Register A. Canonical values: jr-academy-brand/tokens/tokens.css.
   Dark masthead uses the existing AI Circle homepage identity. */
:root {
  --jr-soft-cream: #FFFAF2;
  --jr-soft-surface: #FFFFFF;
  --jr-soft-ink: #17182F;
  --jr-soft-muted: #676273;
  --jr-soft-line: #E9DFD2;
  --jr-soft-coral: #FF6854;
  --jr-soft-radius-lg: 24px;
  --jr-soft-shadow-md: 0 2px 8px rgba(23,24,47,.05), 0 18px 46px rgba(23,24,47,.09);
  --jr-soft-font: Inter, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--jr-soft-ink); background: var(--jr-soft-cream); font-family: var(--jr-soft-font);
  font-synthesis: none; scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.85; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--jr-soft-coral); outline-offset: 5px; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 5; padding: 10px 18px; background: var(--jr-soft-surface); }
.skip:focus { top: 12px; }
.masthead { background: #070a12; color: #f6f7fb; }
.header-inner { width: min(1240px, calc(100% - 48px)); margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner img { display: block; height: auto; }
.header-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.header-inner nav a { font-size: 13px; font-weight: 750; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.header-inner a[aria-current] { color: #ff8a70; }
.header-inner .header-action { padding: 8px 18px; border-radius: 999px; background: #f4f5f8; color: #090b12; }
.language-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid #ffffff24; border-radius: 999px; }
.language-switch[hidden] { display: none; }
.language-switch button { border: 0; border-radius: 999px; background: transparent; color: #a8afbd; min-height: 44px; padding: 8px 13px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: #f4f5f8; color: #090b12; }
.language-switch button:hover { color: #ff8a70; }
.intro, .reader, .footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.intro { padding-block: 40px 48px; }
.back { font-size: 13px; font-weight: 650; text-decoration: none; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; color: var(--jr-soft-muted); margin: 0 0 14px; }
.intro > .eyebrow { margin-top: 38px; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.14; letter-spacing: -.045em; margin: 0 0 24px; }
h1 em { font-style: normal; }
h1 em::after { content: ''; display: block; width: 112px; height: 6px; background: var(--jr-soft-coral); border-radius: 999px; margin-top: 20px; }
.lead { max-width: 720px; font-size: 18px; color: var(--jr-soft-muted); margin-bottom: 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--jr-soft-muted); }
.quick-start { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-start a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--jr-soft-surface); border: 1px solid var(--jr-soft-line); border-radius: var(--jr-soft-radius-lg); text-decoration: none; box-shadow: var(--jr-soft-shadow-md); transition: transform .16s ease; }
.quick-start a:hover { transform: translateY(-3px); }
.quick-start span { font-size: 13px; color: var(--jr-soft-muted); }
.topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-block: 24px; }
.topic-grid article { min-width: 0; }
.topic-grid a { height: 100%; }
.topic-grid h3 { margin: 0; font-size: 21px; }
.topic-grid p { margin: 8px 0 12px; color: var(--jr-soft-muted); font-size: 15px; }
.topic-grid .eyebrow { font-size: 10px; }
.topic-grid b { margin-top: auto; font-size: 13px; }
.topic-intro h1 { font-size: clamp(32px,4vw,48px); }
.reader { display: grid; grid-template-columns: 225px minmax(0,1fr); gap: 48px; align-items: start; }
main { min-width: 0; }
aside { position: sticky; top: 24px; }
.contents { padding: 22px 0; border-top: 1px solid var(--jr-soft-line); }
.contents a { display: block; padding: 9px 0; font-size: 14px; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.contents a[aria-current="page"] { font-weight: 800; text-decoration: underline; text-decoration-color: var(--jr-soft-coral); }
.contents span { display: inline-block; width: 28px; font-size: 11px; color: var(--jr-soft-muted); }
section { padding: 32px 0 36px; border-top: 1px solid var(--jr-soft-line); scroll-margin-top: 24px; }
h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.4; margin: 0 0 20px; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.5; margin: 24px 0 10px; }
p { margin: 0 0 18px; }
li { margin-bottom: 10px; }
ul, ol { padding-left: 24px; }
.note { padding: 16px 20px; border-left: 3px solid var(--jr-soft-coral); font-size: 14px; color: var(--jr-soft-muted); background: var(--jr-soft-surface); border-radius: 0 16px 16px 0; }
.context-list, .funding-paths, .glossary { margin: 24px 0; }
.context-list > div, .funding-paths > div { padding: 18px 0; border-bottom: 1px solid var(--jr-soft-line); }
dt { font-weight: 750; }
dd { margin: 5px 0 0; color: var(--jr-soft-muted); }
.timeline { list-style: none; margin: 24px 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 114px minmax(0,1fr); gap: 18px; padding: 20px 0; margin: 0; border-bottom: 1px solid var(--jr-soft-line); }
.timeline h3 { margin: 0 0 6px; }.timeline p { margin: 0; }
.time { align-self: start; border: 1px solid var(--jr-soft-line); background: var(--jr-soft-surface); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 750; text-align: center; }
.example { padding: 24px; margin: 24px 0; background: var(--jr-soft-surface); border: 1px solid var(--jr-soft-line); border-radius: var(--jr-soft-radius-lg); }
.example h3 { margin: 0 0 12px; }.example p:last-child { margin-bottom: 0; }
.muted { color: var(--jr-soft-muted); font-size: 14px; }
.deck-list li { padding: 10px 0 10px 4px; }.deck-list span { display: block; color: var(--jr-soft-muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--jr-soft-line); border-radius: 18px; margin: 24px 0; background: var(--jr-soft-surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
caption { text-align: left; padding: 18px; color: var(--jr-soft-muted); }
th, td { text-align: left; padding: 16px 18px; border-top: 1px solid var(--jr-soft-line); vertical-align: top; }
th { background: var(--jr-soft-cream); }td:first-child { width: 36%; font-weight: 650; }
details { border-bottom: 1px solid var(--jr-soft-line); padding: 0; }
summary { cursor: pointer; font-weight: 750; padding: 20px 0; min-height: 48px; }
details[open] { padding-bottom: 14px; }details p { padding: 0 0 0 20px; color: var(--jr-soft-muted); }
.glossary > div { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--jr-soft-line); }
.glossary dt { font-size: 15px; }.glossary dd { margin: 0; font-size: 15px; }
.checklist { list-style: none; padding: 0; }.checklist li { position: relative; padding-left: 30px; margin-bottom: 16px; }
.checklist li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }
.next { margin-top: 32px; padding: 24px; border: 1px solid var(--jr-soft-line); border-radius: var(--jr-soft-radius-lg); background: var(--jr-soft-surface); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.next > div { flex-basis: 100%; }.next h3, .next p { margin: 0; }
.button, .secondary { padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 750; font-size: 14px; }
.button { color: var(--jr-soft-ink); background: var(--jr-soft-coral); }.secondary { border: 1px solid var(--jr-soft-line); }
.sources { font-size: 14px; }.sources li { margin-bottom: 16px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 24px 0 36px; border-top: 1px solid var(--jr-soft-line); font-size: 12px; color: var(--jr-soft-muted); }
.footer .footer-contact { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  aside { position: static; }
  .reader { grid-template-columns: 1fr; gap: 12px; }
  .contents { position: static; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 18px; }
  .contents > p { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .header-inner, .intro, .reader, .footer { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; padding-block: 18px; gap: 12px; }.header-inner img { width: 140px; }
  .header-inner nav { gap: 14px; }.header-inner nav a { font-size: 12px; }.header-inner .header-action { padding: 8px 12px; }
  .intro { padding-block: 28px; }.intro > .eyebrow { margin-top: 28px; }.lead { font-size: 16px; }
  .quick-start { grid-template-columns: 1fr; gap: 10px; }.quick-start a { padding: 18px 20px; }
  .contents { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; }.contents a { font-size: 13px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }.time { justify-self: start; }
  .glossary > div { grid-template-columns: 1fr; gap: 6px; }.example, .next { padding: 20px; }
  section { padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; }.quick-start a { transition: none; } }
@media print {
  :root { background: white; }body { font-size: 11pt; }
  .masthead, .skip, aside, .quick-start, .next, .footer, .back { display: none; }
  .intro, .reader { width: 100%; }.reader { display: block; }h1 { font-size: 30pt; }
  section { break-inside: auto; }h2, h3 { break-after: avoid; }.example, .timeline li { break-inside: avoid; }
  .table-wrap { overflow: visible; }table { min-width: 0; }details:not([open]) > p { display: block; }
}

.skill-actions { display:flex;flex-wrap:wrap;gap:12px;align-items:center; }.skill-actions a { min-height:48px;display:inline-flex;align-items:center; }.example code { overflow-wrap:anywhere; }

.mobile-bottom-nav{display:none}@media(max-width:680px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.mobile-bottom-nav{position:fixed;z-index:25;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #ffffff24;background:#070a12f5;backdrop-filter:blur(18px);box-shadow:0 -8px 28px #0003}.mobile-bottom-nav a{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#a8afbe;text-decoration:none;font-size:10px;font-weight:700;border-radius:12px}.mobile-bottom-nav a[aria-current],.mobile-bottom-nav a:hover{color:#ff8a70;background:#ff685410}.mobile-bottom-nav a:focus-visible{outline:2px solid #ff6854;outline-offset:-2px}.mobile-bottom-nav span{line-height:1.4}}@media print{.mobile-bottom-nav{display:none}}

/* Skills promotions reuse the Wiki's Register A surfaces and canonical buttons. */
.skills-promo { width: min(1160px, calc(100% - 48px)); margin: 28px auto 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.skill-promo-card { min-width: 0; padding: 22px 26px; background: var(--jr-soft-surface); border: 1px solid var(--jr-soft-line); border-radius: var(--jr-soft-radius-lg); box-shadow: var(--jr-soft-shadow-md); }
.skill-promo-card .eyebrow { margin-bottom: 8px; color: var(--jr-soft-muted); }
.skill-promo-card h2 { font-size: 24px; margin-bottom: 8px; }
.skill-promo-card > p:not(.eyebrow) { font-size: 14px; line-height: 1.6; color: var(--jr-soft-muted); margin-bottom: 18px; }
.skill-promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.skill-promo-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.skill-promo-details { font-size: 13px; font-weight: 650; text-decoration: none; }
.skill-promo-actions .button:hover { box-shadow: var(--jr-soft-shadow-md); }
@media(max-width:600px) { .skills-promo { width: calc(100% - 32px); grid-template-columns: 1fr; margin-top: 20px; gap: 12px; } .skill-promo-card { padding: 18px 20px; } .skill-promo-card h2 { font-size: 21px; } .skill-promo-card > p:not(.eyebrow) { margin-bottom: 12px; } }
@media print { .skills-promo { display: none; } }
