/* The use cases hub (/use-cases/, scripts/build-use-cases.mjs buildHub; docs/research/use-cases-hub-2026-10-21.md):
   search, pick your type, popular, the line to paste, every case by goal, working apps. /js/uc-hub.js runs the search and
   the goal filter; without JS the page lists everything. */
.uc-top { padding: clamp(28px, 5vw, 56px) 0 var(--s-6); background: var(--bg); border-bottom: 1px solid var(--line); }
.uc-top-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .uc-top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); } }
.uc-top h1 { color: var(--brand); font: 700 var(--fs-h1)/1.1 var(--body); letter-spacing: -0.03em; margin: 0 0 12px; }
.uc-top .lede { margin-bottom: var(--s-5); }
.uc-top-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: var(--s-4) 0 0; }
.uc-top-art { display: none; }
@media (min-width: 720px) {
  .uc-top-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .uc-top-shot { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--line-strong); background: var(--surface); box-shadow: 0 8px 24px rgba(30, 29, 25, 0.10); }
  .uc-top-shot:nth-child(2), .uc-top-shot:nth-child(4) { transform: translateY(18px); }
  .uc-top-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
}
@media (min-width: 720px) and (max-width: 959px) { .uc-top-art { max-width: 560px; } }
/* Search: the box from the templates gallery (gallery.css .tpl-search), shown by uc-hub.js. */
.uc-search { position: relative; max-width: 560px; margin: 0; }
.uc-search[hidden] { display: none; }
.uc-q { width: 100%; min-height: 52px; padding: 12px 52px 12px 46px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 400 17px/1.3 var(--body); -webkit-appearance: none; appearance: none; }
.uc-q::placeholder { color: var(--muted); opacity: 1; }
.uc-q::-webkit-search-cancel-button, .uc-q::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.uc-q:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.uc-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.uc-q-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer; }
.uc-q-clear[hidden] { display: none; }
.uc-q-clear svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.uc-q-clear:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
/* The line to paste */
.uc-chat-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .uc-chat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); } }
.uc-chat h2 { margin: 0 0 var(--s-3); }
.uc-chat .lede { margin-bottom: var(--s-5); }
.uc-chat-demo { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.uc-chat-demo .msg-ai { background: var(--surface); }
/* Every use case, by goal */
.uc-goals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-6); }
.uc-goals[hidden] { display: none; }
.uc-goal { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 var(--fs-sm)/1.2 var(--body); cursor: pointer; }
.uc-goal[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.uc-goal:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.uc-all-group { scroll-margin-top: 80px; }
.uc-all-group + .uc-all-group { margin-top: var(--s-8); }
.uc-all-group[hidden] { display: none; }
.uc-all-head { margin: 0 0 var(--s-5); max-width: 760px; }
.uc-all-h { margin: 0 0 var(--s-2); font: 600 clamp(22px, 1vw + 16px, 26px)/1.2 var(--body); letter-spacing: -0.01em; }
.uc-all-head p { margin: 0; color: var(--muted); }
.uc-all-head .text-link { margin-left: 4px; }
.uc-cards > li[hidden] { display: none; }
.uc-empty { margin: var(--s-5) 0 0; padding: var(--s-5); max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.uc-empty[hidden] { display: none; }
.uc-empty p { margin: 0 0 var(--s-3); }
.uc-empty p:last-child { margin: 0; }
/* While a search is on, only the matching cards show. */
.uc-hub2.is-searching .uc-browse { display: none; }
.uc-hub2.is-searching .uc-allsec { padding-top: var(--s-6); }
.uc-hub2.is-searching .uc-goals { display: none; }
.uc-hub2 .uc-browse + .uc-browse, .uc-hub2 .section { scroll-margin-top: 80px; }
/* Start from your idea: every kind of site, with its templates and the line to paste (owner 2026-11-02). */
.uc-sg { scroll-margin-top: 80px; }
.uc-sg + .uc-sg { margin-top: var(--s-7); }
.uc-sg[hidden] { display: none; }
.uc-sg > .uc-all-h { margin-bottom: var(--s-4); }
.uc-start-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .uc-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .uc-start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.uc-start-item { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.uc-start-name { margin: 0; font-weight: 600; }
.uc-start-tpls { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.uc-start-tpls .text-link { display: inline-block; padding: 2px 0; }
.uc-start-q { display: block; margin: 2px 0 0; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm); font: 400 var(--fs-xs)/1.45 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.uc-start-item .copy-btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 1200px) { .uc-start-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Phones: the group buttons are one row that scrolls sideways, not sixteen stacked ones. */
@media (max-width: 639px) {
  .uc-start-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter, 16px) * -1); padding-inline: var(--gutter, 16px); padding-bottom: 6px; scrollbar-width: thin; }
  .uc-start-chips .uc-goal { flex: none; white-space: nowrap; }
}

/* Find yourself (one picture card per persona page) and What people build (cases by goal). Design pass 2026-11-04, section 4.
   "Pick your type", "Popular right now" and "Start from your idea" are folded into these two blocks. */
.uc-personas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .uc-personas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .uc-personas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.uc-personas > li { margin: 0; min-width: 0; display: flex; }
.uc-persona { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color var(--ease), box-shadow var(--ease); }
.uc-persona:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(30, 29, 25, 0.10); }
.uc-persona:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.uc-persona img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--bg); }
.uc-persona-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.uc-persona-for { font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.uc-persona h3 { margin: 0; font-size: var(--fs-h3); line-height: 1.25; color: var(--brand); }
.uc-persona-ticks { display: grid; gap: 4px; font-size: var(--fs-sm); line-height: 1.35; }
.uc-persona-ticks span { position: relative; padding-left: 22px; }
.uc-persona-ticks span::before { content: ""; position: absolute; left: 2px; top: .35em; width: 10px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.uc-persona-go { margin-top: auto; padding-top: 4px; color: var(--primary); font-weight: 600; font-size: var(--fs-sm); }
.uc-persona-go::after { content: " \2192"; }
.uc-ways-h { margin: var(--s-7) 0 var(--s-3); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.uc-ways { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.uc-ways li { margin: 0; }
.uc-ways a { display: grid; gap: 1px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.uc-ways a:hover { border-color: var(--line-strong); }
.uc-ways b { font-weight: 600; }
.uc-ways b::after { content: " \2192"; color: var(--primary); }
.uc-ways span { color: var(--muted); font-size: var(--fs-sm); }

.uc-bgroup + .uc-bgroup { margin-top: var(--s-7); }
.uc-bhead h3 { margin: 0 0 2px; font-size: var(--fs-h3); }
.uc-bhead p { margin: 0 0 var(--s-4); color: var(--muted); }
.uc-bcards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 720px) { .uc-bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1000px) { .uc-bcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uc-bcards > li { margin: 0; min-width: 0; display: flex; }
.uc-bcard { flex: 1; display: flex; align-items: stretch; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color var(--ease), box-shadow var(--ease); }
.uc-bcard:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(30, 29, 25, 0.10); }
.uc-bcard:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.uc-bcard img { flex: none; display: block; width: 112px; height: auto; object-fit: cover; object-position: top; border-right: 1px solid var(--line); background: var(--bg); }
.uc-bcard-body { display: grid; gap: 3px; align-content: center; min-width: 0; padding: 12px 14px; }
.uc-bcard-body b { font-weight: 600; line-height: 1.25; }
.uc-pop { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--hl); border: 1px solid var(--line-strong); font: 500 var(--fs-xs)/1.3 var(--mono); }
.uc-build .uc-start { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.uc-persona-line { color: var(--muted); font-size: var(--fs-sm); line-height: 1.35; margin-top: -4px; }
