/* Job Feed. Phone first (design 1a to 1d); desktop board (3b) from 900px. Tokens come from tokens.css. */
@keyframes skel { 0% { background-position: -200px 0 } 100% { background-position: 200px 0 } }
@keyframes growY { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes tlIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

a:focus-visible, button:focus-visible { outline: 3px solid var(--cobalt-glow); outline-offset: 2px; border-radius: 8px; }
body { min-height: 100vh; padding-bottom: 120px; }
.shell-in { max-width: 640px; margin: 0 auto; position: relative; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mark { position: relative; width: 22px; height: 22px; background: var(--cobalt); border-radius: 50%; flex: none; }
.mark::after { content: ""; position: absolute; left: 21%; top: 27%; width: 29%; height: 29%; background: var(--paper); border-radius: 50%; }
.brand-name { font: 700 17px var(--font-display); letter-spacing: -.02em; }
.top-actions { display: flex; align-items: center; gap: 22px; }
.signin { font-size: 14px; font-weight: 600; color: var(--cobalt); text-decoration: none; }
.btn-sm { display: none; }

/* hero */
.hero { padding: 28px 20px 18px; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 8px; }
h1 { margin: 0; font: 800 44px/.95 var(--font-display); letter-spacing: -.035em; }
.lede { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.lede-desk, .hero-cta, .insight-host { display: none; }

/* buttons */
.btn { display: inline-block; background: var(--cobalt); color: #fff; border-radius: var(--r-btn); padding: 15px 24px; text-align: center; font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-press); transition: transform .12s, box-shadow .12s; }
.btn:active, .btn-sm:active { transform: translateY(4px); box-shadow: 0 0 0 var(--cobalt-deep); }
.btn-block { display: block; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 30px 16px 26px; background: linear-gradient(180deg, rgba(245,243,238,0) 0, var(--paper) 36%); z-index: 15; pointer-events: none; }
.cta-bar .btn { max-width: 608px; margin: 0 auto; pointer-events: auto; }

/* filters */
.filters { position: relative; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 13.5px; font-weight: 600; padding: 8px 13px; border-radius: 999px; cursor: pointer; border: 0; background: var(--card); color: var(--ink); transition: background .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.more { position: absolute; right: 0; top: 0; border: 0; background: linear-gradient(90deg, rgba(245,243,238,0), var(--paper) 30%); padding: 8px 20px 8px 28px; font-size: 13.5px; font-weight: 600; color: var(--cobalt); cursor: pointer; }
.chips { padding-right: 84px; }
.panel { margin: 10px 20px 0; background: var(--card); border-radius: var(--r-btn); padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 18px -12px rgba(30,28,25,.25); }
.panel[hidden] { display: none; }
.chips-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-wrap .chip { font-size: 12.5px; padding: 6px 10px; background: var(--paper); color: var(--ink-2); }
.chips-wrap .chip[aria-pressed="true"] { background: var(--cobalt-tint); color: var(--cobalt); }
.switch-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: 0; border-top: 1px solid #EFEBE4; background: none; padding: 10px 0 0; font-size: 13.5px; font-weight: 600; width: 100%; text-align: left; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #CFCAC0; transition: background .2s; flex: none; }
.knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.switch-row[aria-checked="true"] .switch { background: var(--cobalt); }
.switch-row[aria-checked="true"] .knob { left: 18px; }

/* groups (phone) */
main { display: block; }
.groups { display: flex; flex-direction: column; gap: 22px; padding: 18px 20px 0; }
.group { display: flex; flex-direction: column; gap: 8px; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.g-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.g-count { display: none; }
.g-label { margin: 0; }
@media (max-width: 899.98px) { .group.is-empty { display: none; } }
.rows { background: var(--card); border-radius: 20px; padding: 0 16px; box-shadow: var(--shadow-card); list-style: none; margin: 0; }
.group.is-closed .rows { background: var(--sunken); box-shadow: none; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "org days" "title days" "chip days"; column-gap: 12px; row-gap: 3px; align-items: center; padding: 13px 0; border-top: 1px solid #F0EDE7; }
.row:first-child { border-top: 0; }
.r-top { grid-area: org; display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.r-org { font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.r-org::after { content: ""; position: absolute; inset: 0; }
.r-org:hover { text-decoration: underline; }
.is-closed .r-org { color: var(--muted); }
.r-title { grid-area: title; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-chip { grid-area: chip; position: relative; z-index: 1; justify-self: start; display: inline-flex; align-items: center; gap: 5px; font: 400 9.5px var(--font-mono); color: var(--muted); text-decoration: none; max-width: 100%; }
a.r-chip:hover { text-decoration: underline; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.ring { background: transparent; border: 1.25px solid var(--muted); }
.dot.dashed { background: transparent; border: 1.25px dashed var(--muted); }
.r-days { grid-area: days; display: flex; flex-direction: column; align-items: flex-end; }
.r-num { font: 800 26px/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.r-num.soon { color: var(--soon-ink); }
.r-unit { font-size: 11px; color: var(--muted); }
.r-side { font-size: 12.5px; font-weight: 600; color: var(--muted); max-width: 110px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-pill { display: none; }
.empty-col { display: none; }

/* phone insight card */
.insight { background: var(--cobalt); color: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-press); }
.group .insight { margin-top: 12px; }
.ins-label { font-size: 12px; font-weight: 600; color: var(--on-cobalt); letter-spacing: .06em; text-transform: uppercase; }
.ins-phone-line { font: 700 21px/1.15 var(--font-display); margin: 0; animation: tlIn .45s var(--ease-reveal) both; }
.ins-src { font: 400 9.5px var(--font-mono); color: var(--on-cobalt); text-decoration: none; }
a.ins-src:hover { text-decoration: underline; }
.ins-note { font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.16); border-radius: 8px; padding: 6px 10px; align-self: flex-start; }
.ins-desk, .ins-dots { display: none; }

/* states */
.card { margin: 18px 20px 0; background: var(--card); border-radius: 20px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card h2 { margin: 0; font: 700 22px/1.1 var(--font-display); }
.card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.btn-ghost { margin-top: 4px; color: var(--cobalt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 0 var(--line); cursor: pointer; background: #fff; }
.btn-ghost:active { transform: translateY(3px); box-shadow: none; }
.skel { margin: 18px 20px 0; background: var(--card); border-radius: 20px; padding: 4px 16px; }
.skel-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #F0EDE7; }
.skel-row:last-child { border-bottom: 0; }
.skel-l { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.skel-a { height: 12px; width: 45%; border-radius: 6px; background: linear-gradient(90deg, #ECE9E2 0, #F5F3EE 50%, #ECE9E2 100%); background-size: 400px 100%; animation: skel 1.2s linear infinite; }
.skel-b { height: 9px; width: 65%; border-radius: 5px; background: var(--sunken); }
.skel-r { width: 34px; height: 22px; border-radius: 6px; background: var(--sunken); }

/* ------------- desktop board (3b) ------------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .shell { position: relative; overflow: hidden; }
  .shell-in::before, .shell-in::after { content: ""; position: absolute; right: -260px; top: -300px; width: 820px; height: 820px; border-radius: 50%; z-index: -1; pointer-events: none; }
  .shell-in::before { background: var(--cobalt-tint); }
  .shell-in::after { background: radial-gradient(circle at 35.5% 41.5%, var(--paper) 0, var(--paper) 118px, transparent 119px); }
  .shell-in { max-width: 1280px; padding: 0 56px 56px; z-index: 1; }
  .top { padding: 24px 0; }
  .mark { width: 28px; height: 28px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 21px; }
  .signin { font-size: 15px; color: var(--ink); }
  .btn-sm { display: inline-block; background: var(--cobalt); color: #fff; border-radius: var(--r-sm); padding: 10px 18px; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--cobalt-deep); transition: transform .12s, box-shadow .12s; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: end; padding: 40px 0 44px; }
  .hero-copy { gap: 18px; }
  h1 { font-size: 104px; line-height: .86; letter-spacing: -.05em; }
  .lede { font-size: 20px; max-width: 520px; }
  .lede-phone { display: none; }
  .lede-desk { display: block; }
  .hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
  .hero-cta .btn { padding: 16px 24px; font-size: 17px; }
  .hint { font-size: 13px; color: var(--muted); }
  .insight-host { display: block; }
  .group .insight { display: none; }

  .insight { position: relative; border-radius: 26px; padding: 24px; min-height: 268px; gap: 0; box-shadow: 0 5px 0 var(--cobalt-deep), 0 30px 50px -20px rgba(46,85,217,.5); overflow: hidden; }
  .ins-head { display: flex; justify-content: space-between; align-items: center; }
  .ins-dots { display: flex; gap: 4px; }
  .ins-dots i { display: block; height: 6px; width: 6px; border-radius: 3px; background: rgba(255,255,255,.4); transition: width .3s; }
  .ins-dots i.on { width: 18px; background: #fff; }
  .ins-phone-line { display: none; }
  .ins-desk { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; animation: tlIn .45s var(--ease-reveal) both; }
  .ins-big-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .ins-big { font: 800 72px/.9 var(--font-display); letter-spacing: -.05em; }
  .ins-unit { font-size: 18px; }
  .ins-line { font-size: 17px; font-weight: 600; }
  .ins-sq { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
  .ins-sq i { height: 22px; border-radius: 3px; background: rgba(255,255,255,.22); transform-origin: bottom; animation: growY .4s var(--ease-reveal) both; }
  .ins-sq i.on { background: #fff; }
  .ins-src { font-size: 10px; }
  .ins-note { margin-top: 12px; }

  .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 22px; }
  .chips { padding: 0; flex-wrap: wrap; overflow: visible; }
  .chip { font-size: 14px; padding: 9px 15px; }
  .more { display: none; }
  .panel, .panel[hidden] { display: flex; flex-direction: row; align-items: center; gap: 20px; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .switch-row { border: 0; padding: 0; width: auto; gap: 10px; }
  .chips-wrap .chip { padding: 7px 12px; font-size: 13px; }

  .groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; padding: 0; }
  .groups.no-closed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group { gap: 10px; }
  .g-head { padding: 0 4px 8px; border-bottom: 2px solid var(--ink); }
  .group.is-soon .g-head { border-color: var(--soon-ink); }
  .group.is-closed .g-head { border-color: #CFCAC0; }
  .g-label { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0; text-transform: none; }
  .group.is-closed .g-label { color: var(--muted); }
  .g-count { display: block; font: 800 24px var(--font-display); }
  .group.is-soon .g-count { color: var(--soon-ink); }
  .group.is-closed .g-count { color: var(--muted); }
  .empty-col { display: block; border: 1.5px dashed #D9D4CA; border-radius: var(--r-card); padding: 14px; font-size: 13px; color: var(--muted); }
  .rows { background: none; box-shadow: none; padding: 2px 6px 14px 2px; margin: 0 -6px 0 -2px; border-radius: 0; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
  .group.is-closed .rows { background: none; }
  .row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px; border: 0; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); flex: none; }
  .is-closed .row { background: var(--sunken); box-shadow: none; }
  .r-top { align-items: flex-start; }
  .r-title { white-space: normal; font-size: 13px; line-height: 1.35; color: var(--ink-2); overflow: visible; }
  .is-closed .r-title { color: var(--muted); }
  .is-closed .r-org { color: var(--ink-2); }
  .r-days { display: none; }
  .r-pill { display: block; flex: none; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sunken); border-radius: 999px; padding: 2px 8px; }
  .is-soon .r-pill { color: var(--soon-ink); background: var(--soon-bg); }
  .r-pill.plain { background: none; padding: 0; font-weight: 600; color: var(--muted); }
  .r-chip { font-size: 9.5px; }
  .card, .skel { margin-left: 0; margin-right: 0; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .groups, .groups.no-closed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 360px; }
  h1 { font-size: 84px; }
}
