/* Public Dubskool brand, shared with the reference at localhost:5180.
   Layout and workspace identifiers remain in styles.css. */
@font-face {
  font-family: 'DM Sans';
  src: url('./assets/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('./assets/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #1d201a;
  background: #fafbf7;
  --paper: #fafbf7;
  --text: #1d201a;
  --muted: #686c62;
  --line: #dce0d5;
  --ink: #1d201a;
  --surface: #efefe8;
  --lime: #d7fa73;
  --purple: #7653b9;
}
body { font-size: 1rem; line-height: 1.6; }
h1, h2, h3 { font-family: Manrope, system-ui, sans-serif; }
::selection { background: var(--lime); color: var(--text); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.site-header { height: 100px; }
.brand { gap: 10px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--text); }
.brand > b { font-family: Manrope, sans-serif; font-size: 29px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; }
.brand-period { color: var(--purple); }
.brand > span:last-child { font-size: 14px; color: var(--muted); }
.brand-divider { background: var(--line); }
.site-header nav a { font-size: 14px; font-weight: 550; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
.os-link, .button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  transition: background-color 180ms, transform 180ms;
}
.os-link:hover, .button:hover { background: #343730; }
.os-link:active, .button:active, .resource-search button:active { transform: scale(.96); }
.os-link > span { font-size: 21px; line-height: 1; }
.eyebrow { font-size: 12px; letter-spacing: 1.9px; font-weight: 650; color: var(--muted); }
.library-heading h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -1.7px; font-weight: 600; }
.library-heading p:not(.eyebrow) { font-size: 16px; line-height: 1.6; }
.resource-search { border-color: var(--line); border-radius: 12px; box-shadow: 0 2px 4px #1c1e1b06; }
.resource-search input { font-size: 14px; }
.resource-search kbd { font: 12px 'DM Sans', sans-serif; color: var(--muted); border-color: var(--line); }
.resource-search button { border-radius: 8px; background: var(--text); transition: background-color 180ms, transform 180ms; }
.resource-search button:hover { background: #343730; }
.resource-search:focus-within { border-color: #81857b; box-shadow: 0 0 0 3px #1c1e1b0d; }
.topic-nav nav a { font-size: 14px; color: var(--muted); }
.topic-nav nav a:hover, .topic-nav nav a[aria-current] { background: var(--surface); color: var(--text); }
.dictionary-shortcut { background: #f1f1eb; border-color: var(--line); border-radius: 16px; }
.dictionary-shortcut b { font-size: 16px; font-weight: 550; }
.dictionary-shortcut > span { font-size: 14px; color: var(--muted); max-width: 145px; }
.start-feature { background: var(--text); border-color: var(--text); border-radius: 24px; }
.start-feature:hover { background: #292d26; }
.start-feature .eyebrow { font-size: 12px; color: #d6d9ce; letter-spacing: 1.3px; }
.start-feature h2 { font-size: 30px; font-weight: 550; letter-spacing: -1px; line-height: 1.2; }
.start-feature p { font-size: 16px; color: #b5b8ae; max-width: 300px; line-height: 1.6; }
.feature-cta { font-size: 14px; color: var(--lime); line-height: 1.5; }
.session-visual { background: var(--paper); color: var(--text); border-radius: 16px; }
.session-label { font-size: 12px; letter-spacing: 1.3px; color: var(--muted); }
.session-visual > div { font-size: 14px; border-color: var(--line); }
.session-visual i { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.results-heading h2 { font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.results-heading > span { font-size: 13px; color: var(--muted); }
.resource-card { border-color: var(--line); border-radius: 20px; }
.resource-card:hover { background: #f7f7f1; border-color: #b9bcb2; }
.resource-type { font-size: 12px; color: var(--muted); }
.resource-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.5px; line-height: 1.4; }
.resource-card > p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.resource-card footer { font-size: 12px; color: var(--muted); }
.resource-card footer svg { color: var(--text); }
.dictionary-banner { background: #efefe8; border-radius: 24px; }
.dictionary-banner h2 { font-size: 30px; font-weight: 550; letter-spacing: -1px; line-height: 1.2; }
.dictionary-banner p:not(.eyebrow) { font-size: 16px; line-height: 1.6; color: var(--muted); }
.text-link { font-size: 14px; min-height: 44px; }
.word-cloud span { font-size: 14px; color: var(--muted); border-color: #d6d8cd; }
.word-cloud span:nth-child(2), .word-cloud span:nth-child(4) { background: #e4e6db; color: #52574a; }
.dictionary-search-link { font-size: 14px; background: var(--surface); }
.site-footer { font-size: 13px; color: var(--muted); }
.breadcrumbs { font-size: 13px; color: var(--muted); }
.article-nav > a { font-size: 14px; }
.article-nav button { font-size: 14px; color: var(--muted); border-color: var(--line); }
.article-nav button:hover { background: var(--surface); }
.article-meta { font-size: 13px; color: var(--muted); }
.article h1 { font-size: 42px; letter-spacing: -1.6px; font-weight: 600; line-height: 1.15; }
.article-lead { font-size: 18px; line-height: 1.7; color: var(--muted); }
.article section h2 { font-size: 24px; font-weight: 600; letter-spacing: -.7px; }
.article section > p { font-size: 16px; line-height: 1.8; color: #50544c; }
.article-note { background: var(--surface); color: var(--muted); }
.article-note p { font-size: 14px; }
.article-end { font-size: 12px; color: var(--muted); }
.related small { font-size: 12px; color: var(--muted); }
.related b { font-size: 14px; line-height: 1.6; }
.related > a { border-color: var(--line); }
.checklist-tools { font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.checklist { border-color: var(--line); }
.checklist label { font-size: 16px; }
.checklist label + label { border-color: var(--line); }
.dictionary-categories button { font-size: 14px; color: var(--muted); }
.dictionary-categories button span { font-size: 12px; color: var(--muted); }
.dictionary-categories button:hover, .dictionary-categories button[aria-pressed=true] { background: var(--surface); color: var(--text); }
.dictionary-tools h2 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.dictionary-tools h2 span { font-size: 12px; color: var(--muted); }
.dictionary-tools > a { font-size: 14px; color: var(--muted); }
.alphabet button { font-size: 14px; color: var(--muted); }
.alphabet button[aria-pressed=true] { background: var(--text); color: white; }
.dictionary-caption { font-size: 13px; color: var(--muted); }
.term summary b { font-size: 16px; }
.term summary > span { font-size: 12px; color: var(--muted); }
.term summary i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: transform 180ms, background-color 180ms; }
.term[open] summary, .term > div { background: #f3f3ee; }
.term[open] summary i { background: #e4e6db; }
.term > div > p:nth-child(2), .term-context { font-size: 14px; }
.term-context { color: var(--muted); }
.search-terms > a { font-size: 16px; }
.search-terms > a > span { font-size: 12px; color: var(--muted); }
.empty h2 { font-size: 24px; }
.empty p { font-size: 16px; color: var(--muted); }
@media (max-width: 1050px) {
  .site-header { gap: 20px; }
  .start-feature h2 { font-size: 27px; }
  .session-visual > div { font-size: 12px; }
  .article h1 { font-size: 36px; }
}
@media (max-width: 700px) {
  .site-header { height: auto; min-height: 80px; gap: 14px; }
  .brand > b { font-size: 25px; letter-spacing: -1.3px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .brand > span:last-child { font-size: 12px; }
  .os-link { min-height: 42px; padding: 9px 13px; font-size: 13px; }
  .site-header nav a { font-size: 14px; }
  .library-heading h1 { font-size: 34px; letter-spacing: -1.3px; }
  .library-heading p:not(.eyebrow) { font-size: 16px; }
  .topic-nav nav a { font-size: 14px; min-height: 40px; }
  .start-feature { gap: 22px; grid-template-columns: 1fr; }
  .start-feature h2 { font-size: 28px; }
  .start-feature .eyebrow { font-size: 12px; }
  .session-visual { max-width: 300px; width: 100%; justify-self: center; margin: 10px 0; }
  .session-label { font-size: 12px; }
  .session-visual > div { font-size: 14px; }
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-card h3 { font-size: 18px; }
  .resource-card > p { font-size: 16px; }
  .dictionary-banner h2 { font-size: 27px; }
  .word-cloud span { font-size: 12px; }
  .article h1 { font-size: 34px; }
  .article-lead { font-size: 18px; }
  .article section > p { font-size: 16px; }
  .dictionary-categories button { font-size: 14px; }
  .dictionary-tools { flex-wrap: wrap; }
  .dictionary-tools > a { max-width: none; text-align: left; }
  .term summary { gap: 12px; }
  .term summary b { font-size: 16px; }
  .site-footer { font-size: 12px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .brand-divider, .brand > span:last-child { display: none; }
  .resource-grid, .dictionary-banner { grid-template-columns: 1fr; }
  .word-cloud { display: none; }
  .term summary > span { max-width: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Keep the universal tools visible without changing the library's grid. */
:root { --header-height: 96px; }
[hidden] { display: none !important; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: none;
  height: auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(230px, 1fr) auto auto;
  column-gap: 28px;
  padding: 16px max(32px, calc((100vw - 1192px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { gap: 6px; }
.brand-mark {
  width: 36px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 0;
  background: currentColor;
  mask: url('./assets/dubskool-logo.png') center / 56px 56px no-repeat;
  -webkit-mask: url('./assets/dubskool-logo.png') center / 56px 56px no-repeat;
}
.brand-period { color: inherit; }
.brand-divider, .brand > span:last-child { display: none; }
.site-header nav { margin: 0; gap: 22px; justify-content: center; }
.site-header nav a { white-space: nowrap; }
.site-header nav a[aria-current] { box-shadow: inset 0 -2px var(--text); }
.universal-search { width: 100%; max-width: 480px; justify-self: center; min-width: 0; border-radius: 10px; padding-block: 5px; }
.universal-search kbd { white-space: nowrap; }
.universal-search input { font-size: 14px; }
.os-link { white-space: nowrap; margin: 0; }
.library-heading { padding: 38px 0 32px; display: block; }
.library-heading p:not(.eyebrow) { max-width: 650px; }
.library-layout, .dictionary-layout { align-items: start; }
.library-content, .dictionary-results, .article, .article-layout > * { min-width: 0; }
.filtered-content, .dictionary-results { min-height: calc(100dvh - var(--header-height)); }
.topic-nav, .dictionary-categories, .article-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100dvh - var(--header-height) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}
#topic-results, #dictionary-results, #main, .article section { scroll-margin-top: calc(var(--header-height) + 24px); }
#topic-results:focus, #dictionary-results:focus { outline: none; }
.start-feature { border-radius: 18px; }
.resource-card { border-radius: 16px; }
.resource-card footer > svg { width: 34px; height: 34px; padding: 7px; border: 1px solid var(--line); border-radius: 50%; transition: background-color 180ms, color 180ms; }
.resource-card:hover footer > svg { background: var(--text); color: white; border-color: var(--text); }
.dictionary-banner { border-radius: 18px; }
.site-footer { padding-bottom: 100px; }
.back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #ffffff25;
  border-radius: 24px;
  background: #252525;
  color: white;
  font-size: 14px;
  box-shadow: 0 2px 5px #00000012, 0 8px 24px #00000014;
  transition: background-color 180ms, transform 180ms;
}
.back-to-top:hover { background: #444; }
.back-to-top:active { transform: scale(.96); }
@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto minmax(200px,1fr) auto; gap: 4px 24px; padding-block: 10px 0; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 28px; }
  .site-header nav a { padding: 8px 0 12px; }
  .site-header .os-link { grid-column: 3; grid-row: 1; }
}
@media (max-width: 700px) {
  .site-header { padding-inline: 22px; column-gap: 16px; }
  .brand > b { font-size: 25px; }
  .library-heading { padding-top: 28px; }
  .topic-nav, .dictionary-categories, .article-nav { position: static; max-height: none; overflow: visible; }
  .resource-card { padding: 20px; }
  .start-feature { grid-template-columns: 1.15fr 1fr; }
  .session-visual { min-width: 0; }
  .session-visual > div { font-size: 12px; }
}
@media (max-width: 600px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .os-link { grid-column: 2; }
  .universal-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .site-header nav { grid-row: 3; gap: 26px; }
  .site-header nav a { padding-block: 9px; }
  .resource-grid { grid-template-columns: 1fr; }
  .start-feature { grid-template-columns: 1fr; }
  .session-visual { display: block; max-width: none; transform: none; margin: 0; }
  .session-visual > div { font-size: 14px; }
  .resource-card { min-height: 0; }
  .dictionary-banner { grid-template-columns: 1fr; }
  .word-cloud { display: none; }
  .back-to-top { right: 18px; bottom: max(18px,env(safe-area-inset-bottom)); }
}
