/*
 * skills.raq.com base (Alex, 22 Nov 2026): raq.com's tokens, the floating capsule bar from /marketing-nav, pills,
 * links, the answer checker's status and the footer. keycaps.css adds the subject keys and the home hero;
 * agent.css adds the session stage, the library explorer and the workbench pages.
 */
:root {
  --ink: #191b22;
  --ink-2: #2d323c;
  --muted: #565b66;
  --faint: #6c717a;
  --line: #e6e9ee;
  --edge: #dbe1e6;
  --soft: #eef1f4;
  --ground: #f6f7f8;
  --stage: #e8ecf0;
  --night: #111318;
  --pass: #1f6b47;
  --pass-bg: #e8f3ec;
  --gap: #8a4b0c;
  --gap-bg: #fdf1e1;
  --focus: #5b7fa6;
  --shell: 1320px;
  --gutter: 20px;
  --radius: 22px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
code, pre { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

.shell { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
body > main { padding-top: 108px; }
main [id] { scroll-margin-top: 104px; }

/* ---------- Bar: raq.com's capsule with this site's brand, links and actions ---------- */
.sk-bar .nvo-cap-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; height: 64px; padding: 0 8px 0 22px; }
.sk-bar .nvo-cap-shell, .sk-bar.is-scrolled .nvo-cap-shell { max-width: 1320px; height: 64px; transition: none; }
.sk-bar .nvo-cap-shell::before, .sk-bar.is-scrolled .nvo-cap-shell::before { background: rgb(255 255 255 / 92%); }
.sk-bar .nvo-cap-links { justify-self: center; margin-left: 0; }
.sk-bar .nvo-actions { justify-self: end; margin-left: 0; }
.sk-bar .nvo-cap-link { height: 40px; padding: 0 15px; font-size: 15px; }
.sk-bar .nvo-cap-link { transition: background-color .15s, color .15s; }
.sk-bar .nvo-cap-link:hover, .sk-bar .nvo-cap-link[aria-current="page"] { background: rgb(25 27 34 / 6%); }
.sk-bar .nvo-signin { height: 44px; font-size: 15px; }
.sk-bar .nvo-cta { gap: 8px; height: 46px; padding: 0 18px 0 20px; font-size: 15px; }
.sk-bar .nvo-cta svg, .pill svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.sk-bar .nvo-cta:hover svg, .pill:hover svg { transform: translateX(2px); }
.sk-brand { display: flex; align-items: center; gap: 10px; justify-self: start; min-width: 0; text-decoration: none; }
.sk-brand img { width: auto; height: 24px; }
/* "Skills" sits on a small light key that matches the light header (Alex, 22 Nov 2026). */
.sk-brand span { padding: 0 11px; border-radius: 9px; background: linear-gradient(180deg, #fff 0%, #f1f3f6 100%); color: var(--ink); font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 28px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--edge), 0 2px 0 #d3d9e0, 0 5px 9px -5px rgb(28 31 42 / 30%); }
.sk-menu { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.sk-menu:hover { background: rgb(25 27 34 / 6%); }
.sk-menu svg { width: 22px; height: 22px; }
.sk-sheet { position: fixed; inset: 8px; z-index: 70; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 22px; border: 1px solid rgb(25 27 34 / 9%); border-radius: 26px; background: #fff; box-shadow: 0 30px 80px -30px rgb(28 31 42 / 50%); overflow-y: auto; }
.sk-sheet-head { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 8px; }
.sk-sheet-head .sk-menu { display: grid; }
.sk-sheet nav a { display: flex; align-items: center; min-height: 52px; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; text-decoration: none; border-bottom: 1px solid var(--line); }
.sk-sheet-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 22px; }
@media (max-width: 1023px) {
  body > main { padding-top: 92px; }
  .sk-bar .nvo-cap-shell, .sk-bar.is-scrolled .nvo-cap-shell { display: flex; height: 60px; padding: 0 6px 0 18px; }
  .sk-bar .nvo-cap-links { display: none; }
  .sk-bar .nvo-actions { margin-left: auto; }
  .sk-menu { display: grid; }
}
@media (max-width: 639px) {
  .sk-bar .nvo-signin { display: none; }
  .sk-bar .nvo-cta { height: 44px; padding: 0 14px 0 16px; }
  .sk-brand { gap: 10px; }
  .sk-brand img { height: 21px; }
  .sk-brand span { padding-left: 10px; font-size: 16px; }
}
@media (max-width: 379px) {
  .sk-bar .nvo-cta svg { display: none; }
  .sk-bar .nvo-cta { padding: 0 14px; }
}

/* ---------- Buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 8px 18px -10px rgb(25 27 34 / 70%); transition: background-color .15s, transform .15s; }
.pill:hover { background: #000; }
.pill:active { transform: translateY(1px); }
.pill-quiet { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.pill-quiet:hover { background: var(--ground); }
.pill-light { background: #fff; color: var(--ink); box-shadow: none; }
.pill-light:hover { background: #e9ecf0; }
.pill-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(25 27 34 / 28%); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--ink); }
.copy-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s; }
.copy-btn:hover { background: var(--ground); border-color: #c3cad3; }
.copy-btn svg { width: 15px; height: 15px; }

/* ---------- Breadcrumbs and the answer checker ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs svg { width: 14px; height: 14px; color: #a2a8b3; }

.grade { font-size: 15px; font-weight: 500; }
.grade.is-pass { color: var(--pass); }
.grade.is-fail { color: var(--gap); }

/* ---------- Footer ---------- */
.foot { padding: 88px var(--gutter) 44px; background: var(--night); border-top: 1px solid #23262e; color: #fff; }
.foot-inner { max-width: var(--shell); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 64px; }
.foot-brand img { width: auto; height: 28px; margin-bottom: 22px; }
.foot-brand p { max-width: 280px; font-size: 15px; color: #a1a1aa; }
.foot h2 { margin-bottom: 18px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.foot ul { display: grid; gap: 12px; list-style: none; }
.foot .two { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.foot a { color: #a1a1aa; font-size: 15px; text-decoration: none; transition: color .15s; }
.foot a:hover { color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; border-top: 1px solid #23262e; font-size: 14px; color: #a1a1aa; }

.foot-base a { font-size: 14px; color: #d4d4d8; text-decoration: underline; text-decoration-color: #52525b; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .foot { padding-top: 64px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .foot .two { grid-template-columns: 1fr; }
}
