/* The home task index. Scoped so workspaces and reading pages keep their layout. */
body.tbi-ui.home-page {
  --home-bg:#f3f6f3; --home-ink:#123d32; --home-body:#465e54;
  --home-line:#cbd8cf; --home-line-soft:#dde6df;
  background:var(--home-bg); color:var(--home-ink); line-height:1.6;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
}
body.tbi-ui.home-page .home-shell,
body.tbi-ui.home-page > .language-switch { width:min(100% - 80px,1280px); }
body.tbi-ui.home-page > .language-switch { margin:0 auto;padding:8px 0;border:0;justify-content:flex-end;gap:4px 14px; }
body.tbi-ui.home-page > .language-switch a { font-size:.75rem;min-height:28px;padding:2px 0;color:#52695c; }
body.tbi-ui.home-page .home-topbar { top:0;background:#f3f6f3f5;border-block:1px solid var(--home-line);backdrop-filter:blur(16px); }
body.tbi-ui.home-page .home-topbar-inner { min-height:72px; }
body.tbi-ui.home-page .home-brand { font-size:1.125rem;font-weight:750;letter-spacing:-.04em;gap:16px; }
.discovery-brand-symbol { font:500 1.65rem/1 Georgia,serif;letter-spacing:-.13em;background:#123d32;color:#e4f1b8;width:42px;height:42px;display:grid;place-items:center; }
body.tbi-ui.home-page .home-nav a { font:500 .875rem/1.4 system-ui;letter-spacing:0;min-height:44px;padding:8px 0; }
body.tbi-ui.home-page .home-nav ul { gap:28px; }
body.tbi-ui.home-page .home-hero { display:grid;grid-template-columns:1.1fr 1fr;gap:56px;padding:48px 0 42px;overflow:visible;align-items:center; }
.discovery-kicker { font-size:.75rem;font-weight:600;letter-spacing:.08em;margin:0 0 14px;color:#52695c; }
body.tbi-ui.home-page .home-hero h1 { font-size:clamp(2rem,3.6vw,3.5rem);font-weight:650;line-height:1.3;letter-spacing:-.055em;margin:0 0 16px;max-width:18ch; }
body.tbi-ui.home-page .home-hero-copy { margin:0;max-width:46ch;font-size:1rem;line-height:1.85; }
body.tbi-ui.home-page .home-finder { grid-column:auto;grid-row:auto;align-self:center;border:0;border-radius:0;background:transparent;padding:0; }
body.tbi-ui.home-page .home-finder label { font-size:.875rem;letter-spacing:.01em;margin:0 0 10px; }
body.tbi-ui.home-page .home-search-row { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;background:#fff;border:1px solid #91a899;border-radius:0; }
body.tbi-ui.home-page #home-search { border:0;border-radius:0;min-height:60px;padding:16px;box-shadow:none;font-size:1rem; }
body.tbi-ui.home-page #home-search::placeholder { font-size:.875rem;color:#5a7063; }
body.tbi-ui.home-page #home-reset { max-width:none;background:#fff;border:0;border-left:1px solid var(--home-line);border-radius:0;font:500 .875rem/1.4 system-ui;padding:8px 14px;text-decoration:none;color:var(--home-ink); }
body.tbi-ui.home-page #home-reset:hover { background:#edf4e6; }
.discovery-examples { display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px; }
.discovery-examples button { font:500 .875rem/1.5 system-ui;color:#52695c;background:none;border:0;border-bottom:1px solid #aebdb1;padding:6px 0;cursor:pointer; }
.discovery-examples button:hover { color:#123d32;border-color:#123d32; }
.discovery-layout { display:grid;grid-template-columns:280px minmax(0,1fr);gap:48px;border-top:1px solid var(--home-line);padding-top:30px;align-items:start; }
.discovery-tasks { position:sticky;top:102px; }
.discovery-tasks h2 { font-size:.875rem;font-weight:600;margin:0 0 16px; }
#home-purpose-toggle { display:none; }
body.tbi-ui.home-page .home-purpose-filters { display:flex;flex-direction:column;gap:0;margin:0; }
body.tbi-ui.home-page .home-purpose-filters button { display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--home-line-soft);border-radius:0;min-height:84px;padding:15px 12px;background:transparent;color:var(--home-ink);font:inherit;transition:background 160ms ease,color 160ms ease; }
body.tbi-ui.home-page .home-purpose-filters button strong { display:block;font-size:.9375rem;font-weight:650;line-height:1.55; }
body.tbi-ui.home-page .home-purpose-filters button small { display:block;font-size:.75rem;line-height:1.65;font-weight:400;color:#52695c;margin-top:4px; }
body.tbi-ui.home-page .home-purpose-filters button[aria-pressed=true] { background:#123d32;color:#fff; }
body.tbi-ui.home-page .home-purpose-filters button[aria-pressed=true] small { color:#d9e6dc; }
.discovery-task-number,.discovery-task-count { font:500 .75rem/1.6 ui-monospace,monospace;margin-top:4px; }
.discovery-task-number { opacity:.8; }
.discovery-task-count { min-width:20px;text-align:right; }
body.tbi-ui.home-page .home-purpose-filters button:hover:not([aria-pressed=true]) { background:#e8eee7; }
body.tbi-ui.home-page .home-purpose-filters .discovery-all { grid-template-columns:1fr auto;min-height:52px;padding-inline:14px;font-size:.875rem;margin-top:12px;border:1px solid var(--home-line); }
.discovery-results { min-width:0; }
.discovery-results-head { display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:22px; }
.discovery-results-head .discovery-kicker { margin-bottom:4px;letter-spacing:.06em; }
.discovery-results-head h2 { margin:0;font-size:clamp(1.25rem,2vw,1.6rem);line-height:1.5;font-weight:650;letter-spacing:-.035em;scroll-margin-top:100px; }
body.tbi-ui.home-page #home-search-status { margin:0;white-space:nowrap;font-size:.875rem;color:#52695c; }
.discovery-context { margin:0 0 20px;font-size:.875rem;color:#52695c;line-height:1.8; }
body.tbi-ui.home-page .home-section { margin:0 0 16px;scroll-margin-top:100px; }
body.tbi-ui.home-page .home-tool-grid,
body.tbi-ui.home-page .home-detail-grid,
.discovery-learning-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
body.tbi-ui.home-page a.home-tool-card,
body.tbi-ui.home-page a.home-detail-card,
body.tbi-ui.home-page a.home-experiment { display:block;position:relative;min-height:0;margin:0;padding:22px 24px 24px;border:1px solid var(--home-line);border-radius:0;background:#fff;color:var(--home-ink);text-decoration:none;box-shadow:none;transform:none;transition:background 180ms ease,border-color 180ms ease; }
body.tbi-ui.home-page a.home-detail-card::after { content:none; }
body.tbi-ui.home-page a.home-tool-card:hover,
body.tbi-ui.home-page a.home-detail-card:hover,
body.tbi-ui.home-page a.home-experiment:hover { background:#eef4e8;border-color:#547563;transform:none;box-shadow:none; }
.discovery-card-meta { display:flex;justify-content:space-between;gap:16px;font-size:.75rem;color:#52695c;line-height:1.5;margin-bottom:22px; }
.discovery-index { font-family:ui-monospace,monospace;color:#52695c; }
body.tbi-ui.home-page :is(.home-tool-card,.home-detail-card,.home-experiment) h3 { margin:0 0 12px;font-size:1.0625rem;font-weight:650;line-height:1.6;letter-spacing:-.02em;color:inherit; }
body.tbi-ui.home-page :is(.home-tool-card,.home-detail-card,.home-experiment) .discovery-description { margin:0;color:#465e54;font-size:1rem;line-height:1.8; }
body.tbi-ui.home-page a.discovery-featured { grid-column:1 / -1;min-height:180px;background:#123d32;color:#fff;border-color:#123d32;padding:24px 28px; }
body.tbi-ui.home-page a.discovery-featured .discovery-card-meta,
body.tbi-ui.home-page a.discovery-featured .discovery-index { color:#c8de85; }
body.tbi-ui.home-page a.discovery-featured h3 { font-size:1.4rem; }
body.tbi-ui.home-page a.discovery-featured .discovery-description { color:#e5ede7;max-width:58ch; }
body.tbi-ui.home-page a.discovery-featured:hover { background:#1d5040;border-color:#1d5040; }
body.tbi-ui.home-page .home-empty { background:#fff;padding:32px;border:1px solid var(--home-line); }
.home-empty h3 { margin:0 0 12px;font-size:1.125rem; }
.home-empty p { font-size:1rem;line-height:1.8; }
#home-empty-reset { cursor:pointer;font:600 .9375rem/1.5 system-ui;padding:12px 18px;border:1px solid #123d32;background:#123d32;color:white; }
body.tbi-ui.home-page .home-footer { margin-top:56px;padding:24px 0;border-top:1px solid var(--home-line); }
body.tbi-ui.home-page .home-footer p { font-size:.875rem;color:#52695c; }
body.tbi-ui.home-page .home-footer a { font-size:.875rem;min-height:44px;display:inline-flex;align-items:center; }
@media(min-width:1000px) { body.tbi-ui.home-page :is(.home-tool-card,.home-detail-card,.home-experiment):focus-visible { outline-offset:5px; } }
@media(max-width:1000px) {
  body.tbi-ui.home-page .home-shell,body.tbi-ui.home-page > .language-switch { width:calc(100% - 48px); }
  .discovery-layout { grid-template-columns:240px minmax(0,1fr);gap:24px; }
  body.tbi-ui.home-page .home-hero { gap:28px; }
  body.tbi-ui.home-page .home-tool-grid,body.tbi-ui.home-page .home-detail-grid,.discovery-learning-grid { display:block; }
  body.tbi-ui.home-page a.home-tool-card,body.tbi-ui.home-page a.home-detail-card,body.tbi-ui.home-page a.home-experiment { margin-bottom:16px; }
}
@media(max-width:720px) {
  body.tbi-ui.home-page .home-shell,body.tbi-ui.home-page > .language-switch { width:calc(100% - 32px); }
  body.tbi-ui.home-page > .language-switch { justify-content:flex-start;gap:2px 12px; }
  body.tbi-ui.home-page > .language-switch a { font-size:.75rem;min-height:28px; }
  body.tbi-ui.home-page .home-topbar-inner { min-height:62px;gap:12px; }
  body.tbi-ui.home-page .home-brand { font-size:1rem;gap:10px; }
  .discovery-brand-symbol { width:34px;height:34px;font-size:1.4rem; }
  body.tbi-ui.home-page .home-nav li:nth-child(2) { display:none; }
  body.tbi-ui.home-page .home-nav a { font-size:.875rem; }
  body.tbi-ui.home-page .home-hero { grid-template-columns:1fr;gap:22px;padding:28px 0 26px; }
  .discovery-kicker { margin-bottom:8px; }
  body.tbi-ui.home-page .home-hero h1 { font-size:2rem;margin-bottom:12px;max-width:none;line-height:1.4; }
  body.tbi-ui.home-page .home-hero-copy { font-size:1rem;line-height:1.8; }
  body.tbi-ui.home-page .home-finder { margin:0; }
  body.tbi-ui.home-page .home-search-row { grid-template-columns:minmax(0,1fr) auto; }
  body.tbi-ui.home-page #home-search { min-height:52px;padding:12px; }
  body.tbi-ui.home-page #home-reset { max-width:90px;font-size:.75rem;padding:8px; }
  .discovery-examples { margin-top:4px; }
  .discovery-layout { grid-template-columns:1fr;gap:24px;padding-top:22px; }
  .discovery-tasks { position:static; }
  .discovery-tasks h2 { margin-bottom:12px; }
  #home-purpose-toggle { display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;min-height:56px;padding:12px 16px;border:1px solid #123d32;border-radius:0;background:#123d32;color:white;font:600 .9375rem/1.6 system-ui;cursor:pointer; }
  #home-purpose-toggle > span:last-child { font-size:.75rem;white-space:nowrap;color:#d9e6dc; }
  body.tbi-ui.home-page .home-purpose-filters[data-expanded=false] { display:none; }
  body.tbi-ui.home-page .home-purpose-filters { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
  body.tbi-ui.home-page .home-purpose-filters[data-expanded=true] { margin-top:8px; }
  body.tbi-ui.home-page .home-purpose-filters button { grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:64px;padding:12px;border:1px solid var(--home-line); }
  body.tbi-ui.home-page .home-purpose-filters button strong { font-size:.875rem;line-height:1.6; }
  body.tbi-ui.home-page .home-purpose-filters button small,.discovery-task-number { display:none; }
  .discovery-task-count { align-self:center;margin:0; }
  body.tbi-ui.home-page .home-purpose-filters .discovery-all { margin:0;min-height:64px; }
  .discovery-results-head { margin-bottom:16px;align-items:center; }
  .discovery-results-head h2 { font-size:1.25rem; }
  body.tbi-ui.home-page a.home-tool-card,body.tbi-ui.home-page a.home-detail-card,body.tbi-ui.home-page a.home-experiment { padding:20px; }
  .discovery-card-meta { margin-bottom:16px; }
  body.tbi-ui.home-page a.discovery-featured h3 { font-size:1.2rem; }
  body.tbi-ui.home-page .home-footer { margin-top:32px; }
}
@media(max-width:360px) {
  body.tbi-ui.home-page .home-brand { gap:8px;font-size:.9375rem; }
  body.tbi-ui.home-page .home-nav a { font-size:.8125rem; }
  body.tbi-ui.home-page .home-purpose-filters button { padding:10px; }
  .discovery-task-count { display:none; }
  body.tbi-ui.home-page .home-purpose-filters button { grid-template-columns:1fr; }
  body.tbi-ui.home-page .home-purpose-filters .discovery-all { grid-template-columns:1fr auto; }
}
@media(prefers-reduced-motion:reduce) { body.tbi-ui.home-page :is(a,button) { transition:none; } }
@media print { .discovery-layout { display:block; }.discovery-tasks,.home-nav,.discovery-examples { display:none!important; } }
