/* OpenVibe.Work's home page only (server/http/pages.js): counts, fields, places, companies and questions. Theme tokens
   only, so light and dark both read; every grid fits a 320px phone. */
.home-stats { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
.home-stats li { border-radius: 14px; border: 1px solid var(--border, #1f2d47); border-top: 3px solid var(--accent, #3b82f6); background: var(--bg-secondary, #0f1729); }
.home-stats a { display: block; height: 100%; box-sizing: border-box; padding: 14px 16px; color: inherit; text-decoration: none; border-radius: 14px; }
.home-stats a:hover, .home-stats a:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: -2px; }
.home-stats b { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.home-stats span { display: block; margin-top: 4px; font-size: .86rem; color: var(--text-secondary, #96a7c2); }

.home-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.home-cards a { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); color: var(--text-primary, #e6edf7); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.home-cards a:hover, .home-cards a:focus-visible { border-color: var(--accent, #3b82f6); transform: translateY(-1px); outline: 0; }
.home-cards b { font-size: 1rem; overflow-wrap: anywhere; }
.home-cards span { font-size: .85rem; color: var(--text-secondary, #96a7c2); }

.home-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-chips a { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-light, #2c3d5c); background: var(--bg-secondary, #0f1729); color: var(--text-primary, #e6edf7); text-decoration: none; font-size: .92rem; }
.home-chips a:hover, .home-chips a:focus-visible { border-color: var(--accent, #3b82f6); }
.home-chips span { font-size: .78rem; color: var(--text-muted, #7386a3); font-variant-numeric: tabular-nums; }

.home-faq { display: grid; gap: 8px; max-width: 820px; }
.home-faq details { border-radius: 12px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #131c2e); }
.home-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 650; }
.home-faq summary:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: -2px; border-radius: 12px; }
.home-faq details p { margin: 0; padding: 0 16px 14px; color: var(--text-secondary, #96a7c2); line-height: 1.55; }
@media (max-width: 520px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .home-cards a { padding: 10px 12px; } }
html[data-ov-motion=off] .home-cards a:hover{transform: none}

/* Phones (2026-10-29): a taste and a door. The job lists are one sideways row each (every listing is still there), six
   fields, eight cities and six companies show (each list is a link away), the figures are one strip. */
.home-fold { border: 1px solid var(--border, #1f2d47); border-radius: 14px; background: var(--bg-card, #131c2e); }
.home-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; }
.home-fold > summary::-webkit-details-marker { display: none; }
.home-fold > summary h2 { margin: 0; font-size: 1.1rem; }
.home-fold > summary span { color: var(--text-muted, #7386a3); font-weight: 600; font-size: .86rem; text-align: right; }
.home-fold > summary:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: -2px; border-radius: 14px; }
.home-fold-body { padding: 0 16px; overflow-x: auto; }
.home-fold .sc-sec { margin: 0; max-width: none; padding: 0 16px 16px; }
@media (max-width: 599px) {
  .home-cards.short > li:nth-child(n+7), .home-chips > li:nth-child(n+9) { display: none; }
  .home-row .job-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; gap: 10px; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .home-row .job-list::-webkit-scrollbar { display: none; }
  .home-row .job-list > li { flex: 0 0 86%; min-width: 0; margin: 0; scroll-snap-align: start; }
  .home-stats { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .home-stats::-webkit-scrollbar { display: none; }
  .home-stats li { flex: 0 0 auto; width: 136px; }
  .home-fold > summary span { display: none; }
}

/* Pick: on a phone every pane is shown, stacked, each with its own heading; the chips are a row of links that
   jump to a pane (the owner's rule, 2026-10-31: never hide content to shorten). A wide screen shows the panes as
   before, with no chips. */
.pick-head, .pick-row { display: none; }
@media (max-width: 640px) {
  .pick-bar { margin-top: 30px; }
  .pick-head { display: block; }
  .pick-head h2 { margin: 0 0 4px; font: 700 clamp(20px, 2.4vw, 28px)/1.2 var(--ov-font, 'Inter', system-ui, sans-serif); letter-spacing: -.02em; }
  .pick-row { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pick-row::-webkit-scrollbar { display: none; }
  .pick-chip { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border, #1f2d47); color: var(--text-secondary, #96a7c2); font-size: .9rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
  .pick-chip:hover, .pick-chip:focus-visible { color: var(--text-primary, #e6edf7); border-color: var(--accent, #3b82f6); }
  .pick-chip:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; }
  .pick .pick-pane { scroll-margin-top: 72px; }
  .pick .pick-pane + .pick-pane { margin-top: 26px; }
}

/* The fold (the owner's short-pages rule, 2026-10-30): a part a reader rarely needs. On a phone it is closed — the
   title row is a 44 px target that opens it — and where there is room it is open and looks like the section it
   replaces. A checkbox and a label, no script: the part stays in the page for the crawlers. */
.fold { margin-top: 26px; }
.fold-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fold-h { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.fold-h > h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; flex: 1 1 auto; }
.fold-h:focus-within { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; }
.fold-mark { flex: none; }
.fold-n { flex: none; font-size: .82rem; font-weight: 600; color: var(--text-muted, #7386a3); font-variant-numeric: tabular-nums; }
.fold-mark::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--text-muted, #7386a3); }
.fold-toggle:checked ~ .fold-h .fold-mark::after { content: "\2212"; }
.fold-body { display: none; }
.fold-toggle:checked ~ .fold-body { display: block; }
.fold-body > .sc-sec { margin-top: 16px; }
/* The title row names the part, so a part that keeps its own heading gives way to it on a phone (and keeps it where
   there is room). */
@media (max-width: 640px) {
  .fold-bare .fold-body > section > h2, .fold-bare .fold-body > .sc-sec > h2, .fold-bare .fold-body .ov-shipped-home h3 { display: none; }
}
.fold:not(.fold-bare) .fold-body .ov-shipped-home h3 { display: none; }
@media (min-width: 641px) {
  .fold { margin-top: 56px; }
  .fold-toggle { display: none; }
  .fold-h { min-height: 0; margin-bottom: 10px; cursor: default; }
  .fold-mark, .fold-n { display: none; }
  .fold-body { display: block; }
  .fold-bare > .fold-h { display: none; }
  .fold-bare { margin-top: 0; }
  .fold:not(.fold-bare) .fold-body > .sc-sec { margin-top: 0; }
}

/* ── The home's picture (server/http/pages.js sourceScene): the newest listing, leading with its source, on a small
   stack of the next two. The cards behind show only their top edge: enough to read the board and the title. ── */
.wk-scene { width: min(100%, 400px); margin: 0 auto; }
.wk-scene-stack { display: grid; padding-top: 84px; }
.wk-scene-card { grid-area: 1 / 1; display: grid; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border, #1f2d47); color: var(--text-primary, #e6edf7); text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    /* Solid whatever the theme's card colour is (some are see-through): a card must cover the one behind it. */
    background: linear-gradient(var(--bg-card, #131c2e), var(--bg-card, #131c2e)), var(--bg-primary, #0a0f1c); }
.wk-scene-card b { font-size: 1.05rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wk-scene-card.is-second { transform: translateY(-42px) scale(.95); transform-origin: top center; }
.wk-scene-card.is-second > *, .wk-scene-card.is-third > * { opacity: .7; }
.wk-scene-card.is-third { transform: translateY(-84px) scale(.9); transform-origin: top center; }
.wk-scene-card.is-third > * { opacity: .45; }
.wk-scene-card.is-second b, .wk-scene-card.is-third b { -webkit-line-clamp: 1; }
.wk-scene-card.is-front:hover, .wk-scene-card.is-front:focus-visible { border-color: var(--accent, #3b82f6); outline: none; }
.wk-scene-src { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 750; color: var(--accent-light, #60a5fa); background: color-mix(in srgb, var(--accent, #3b82f6) 16%, transparent); }
.wk-scene-src i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-front .wk-scene-src { animation: wkSceneRing 1.4s var(--ov-ease-out, cubic-bezier(.2, .8, .2, 1)) .7s 1 both; }
.wk-scene-meta { color: var(--text-secondary, #96a7c2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-scene-go { margin-top: 6px; color: var(--accent-light, #60a5fa); font-size: .86rem; font-weight: 650; }
.wk-scene figcaption { margin-top: 10px; text-align: center; color: var(--text-muted, #7386a3); font-size: .8rem; }
@keyframes wkSceneRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #3b82f6) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
/* A transformed card paints above a plain one whatever the order in the page: the front card says it is in front. */
.wk-scene-card.is-front { position: relative; z-index: 2; }
