/* Go Beyond the Bedside job board (brand: teal #71C7BA, navy #0B3F51, peach #F9AF8F, Montserrat).
   The light teal can't carry white text, so buttons and pay use deep teal #0E6F62 (WCAG AA). */
:root { --gbb-teal: #71c7ba; --gbb-teal-dark: #0e6f62; --gbb-navy: #0b3f51; --gbb-peach: #f9af8f; --gbb-ink: #1e1f21; --gbb-muted: #54595f; --gbb-line: #e3e9ec; --gbb-soft: #f1f9f7; }
.gbb-wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; font-family: Montserrat, system-ui, sans-serif; color: var(--gbb-ink); }
.gbb-wrap-wide { max-width: 1160px; }
.gbb-noscroll, .gbb-noscroll body { overflow: hidden; }

/* Page header */
.gbb-page-header { padding: 8px 0 0; text-align: center; }
.gbb-page-header .title { font-size: clamp(26px, 5vw, 38px); margin: 0 0 8px; color: var(--gbb-navy); }
.gbb-sub { color: var(--gbb-muted); font-size: 15px; margin: 0 auto; max-width: 560px; }
.gbb-board.ptb80 { padding-top: 20px; }

/* Toolbar: search, role chips, Filters button, List/Cards switch */
.gbb-toolbar { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--gbb-line); }
.gbb-search { display: block; margin: 0; }
.gbb-search input { width: 100%; height: 48px; border: 1px solid #cfd8dc; border-radius: 24px; padding: 0 18px; font: 16px Montserrat, sans-serif; background: #fff; }
.gbb-search input:focus, .gbb-panel select:focus { outline: 2px solid var(--gbb-teal-dark); outline-offset: 1px; }
.gbb-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gbb-chips::-webkit-scrollbar { display: none; }
.gbb-chip, .gbb-filters-btn, .gbb-view button { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #cfd8dc; background: #fff; color: var(--gbb-ink); font: 600 14px Montserrat, sans-serif; cursor: pointer; }
.gbb-chip[aria-pressed="true"] { background: var(--gbb-teal-dark); border-color: var(--gbb-teal-dark); color: #fff; }
.gbb-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gbb-filters-btn { display: inline-flex; align-items: center; gap: 8px; }
.gbb-filters-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--gbb-teal-dark); color: #fff; font-size: 12px; }
.gbb-view { display: inline-flex; border: 1px solid #cfd8dc; border-radius: 22px; padding: 2px; }
/* View toggle: icon group after cnippet-dev "View Mode Toggle Group" (21st.dev, MIT license). */
.gbb-view button { display: inline-flex; align-items: center; justify-content: center; border: 0; width: 44px; min-height: 44px; padding: 0; border-radius: 20px; }
.gbb-view button[aria-pressed="true"] { background: var(--gbb-soft); color: var(--gbb-teal-dark); }
.gbb-count { margin: 14px 0 4px; color: var(--gbb-muted); font-size: 14px; }

/* Results: rows (default) */
.gbb-list { list-style: none; margin: 0; padding: 0; }
.gbb-row { border-bottom: 1px solid var(--gbb-line); }
.gbb-row a { display: flex; gap: 14px; padding: 16px 4px; color: inherit; text-decoration: none; }
.gbb-row a:hover .gbb-row-title, .gbb-row a:focus-visible .gbb-row-title { color: var(--gbb-teal-dark); text-decoration: underline; }
.gbb-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gbb-row-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--gbb-ink); overflow-wrap: anywhere; }
.gbb-row-employer { font-size: 14px; color: var(--gbb-ink); }
.gbb-row-meta, .gbb-row-foot { font-size: 13px; color: var(--gbb-muted); overflow-wrap: anywhere; }
.gbb-row-pay { font-size: 14px; font-weight: 700; color: var(--gbb-teal-dark); }
.gbb-list[data-view="rows"] .gbb-row-pay-none { display: none; }
.gbb-row-pay-none { color: var(--gbb-muted); font-weight: 500; }
.gbb-badge { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 8px; border-radius: 10px; background: #fdeee6; color: #8a3f1c; font-size: 11px; font-weight: 700; letter-spacing: .02em; }

/* Results: cards (pay first) */
.gbb-list[data-view="cards"] { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 8px; }
.gbb-list[data-view="cards"] .gbb-row { border: 1px solid var(--gbb-line); border-radius: 14px; background: #fff; }
.gbb-list[data-view="cards"] .gbb-row a { flex-direction: column; gap: 10px; padding: 16px; height: 100%; }
.gbb-list[data-view="cards"] .gbb-row-pay { order: -1; font-size: 20px; }
.gbb-list[data-view="cards"] .gbb-row-pay-none { font-size: 15px; }
.gbb-list[data-view="cards"] .gbb-logo { flex-basis: 40px; width: 40px; height: 40px; }
@media (min-width: 640px) { .gbb-list[data-view="cards"] { grid-template-columns: 1fr 1fr; } }

.gbb-logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--gbb-line); }
.gbb-logo-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--gbb-soft); color: var(--gbb-teal-dark); font-weight: 700; font-size: 16px; }
.gbb-logo-lg { flex-basis: 64px; width: 64px; height: 64px; font-size: 20px; }

/* Filter panel: a bottom sheet on phones, a side column on computers */
.gbb-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; max-height: 85vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(11,63,81,.18); transform: translateY(105%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); }
.gbb-panel.is-open { transform: translateY(0); }
.gbb-scrim { position: fixed; inset: 0; z-index: 999; background: rgba(11,63,81,.35); }
.gbb-panel-inner { padding: 16px 20px 24px; }
.gbb-panel-head { display: flex; justify-content: space-between; align-items: center; }
.gbb-panel h2 { margin: 0; font-size: 18px; color: var(--gbb-navy); }
.gbb-panel-close { min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--gbb-teal-dark); color: #fff; font: 700 14px Montserrat, sans-serif; cursor: pointer; }
.gbb-panel fieldset { border: 0; margin: 18px 0 0; padding: 0; }
.gbb-panel legend { font-size: 13px; font-weight: 700; color: var(--gbb-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.gbb-panel select { width: 100%; height: 46px; border: 1px solid #cfd8dc; border-radius: 10px; padding: 0 12px; font: 15px Montserrat, sans-serif; background: #fff; }
.gbb-hint { margin: 6px 0 0; font-size: 12px; color: var(--gbb-muted); }
.gbb-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gbb-check input { width: 20px; height: 20px; accent-color: var(--gbb-teal-dark); }
.gbb-clear { margin-top: 16px; background: none; border: 0; padding: 10px 0; color: var(--gbb-teal-dark); font: 700 14px Montserrat, sans-serif; text-decoration: underline; cursor: pointer; }

.gbb-more, .gbb-apply { display: block; width: 100%; min-height: 50px; margin: 20px 0; border: 0; border-radius: 25px; background: var(--gbb-teal-dark); color: #fff !important; font: 700 16px Montserrat, sans-serif; text-align: center; line-height: 50px; text-decoration: none; cursor: pointer; }
.gbb-more { background: #fff; color: var(--gbb-teal-dark) !important; border: 2px solid var(--gbb-teal-dark); line-height: 46px; }
/* Empty state after arihantcodes_1f7b8c4d "Search Empty State" (21st.dev, Apache-2.0): echo the search, offer ways forward. */
.gbb-empty { padding: 32px 8px; text-align: center; color: var(--gbb-muted); animation: gbb-rise .25s ease both; }
.gbb-empty[hidden] { display: none; }
.gbb-empty svg { color: var(--gbb-teal-dark); }
.gbb-empty-title { margin: 8px 0 4px; font-size: 20px; color: var(--gbb-navy); }
.gbb-empty-echo { margin: 0 0 6px; font-size: 15px; color: var(--gbb-ink); overflow-wrap: anywhere; }
.gbb-empty-text { margin: 0 0 16px; font-size: 14px; }
.gbb-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gbb-empty-actions button { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--gbb-teal-dark); background: #fff; color: var(--gbb-teal-dark); font: 600 14px Montserrat, sans-serif; cursor: pointer; }
@keyframes gbb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Phone filter sheet: grabber and drag-to-close after adit-firdaus "Adaptive Sheet" (21st.dev, MIT license). */
.gbb-grabber { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; cursor: grab; }
.gbb-grabber span { width: 40px; height: 5px; border-radius: 3px; background: #c4ced3; }
.gbb-panel.is-dragging { transition: none; }

/* Job page: head, details card, description; Apply pinned to the bottom on phones */
.gbb-job { padding: 20px 0 110px; }
.gbb-back a { font-size: 14px; color: var(--gbb-teal-dark); }
.gbb-job-grid { display: grid; grid-template-columns: 1fr; grid-template-areas: "head" "side" "desc"; gap: 8px 40px; }
.gbb-job-head { grid-area: head; display: flex; gap: 16px; align-items: flex-start; margin: 12px 0 4px; }
.gbb-job-employer { margin: 0; font-size: 15px; color: var(--gbb-muted); }
.gbb-job-title { margin: 2px 0 0; font-size: clamp(22px, 5vw, 30px); line-height: 1.25; color: var(--gbb-ink); overflow-wrap: anywhere; }
.gbb-job-side { grid-area: side; }
.gbb-side-card { border: 1px solid var(--gbb-line); border-radius: 14px; padding: 16px; }
.gbb-side-pay { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: var(--gbb-teal-dark); }
.gbb-side-pay.gbb-row-pay-none { font-size: 16px; }
.gbb-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.gbb-facts dt { font-size: 12px; color: var(--gbb-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gbb-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.gbb-side-apply { display: none; }
.gbb-checked { margin: 12px 0 0; display: inline-block; padding: 2px 10px; border-radius: 10px; background: var(--gbb-soft); color: var(--gbb-teal-dark); font-size: 12px; font-weight: 700; }
.gbb-apply-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(11,63,81,.12); }
.gbb-apply-fixed .gbb-apply { margin: 0; }
.gbb-desc { grid-area: desc; font-size: 16px; line-height: 1.65; padding-top: 8px; overflow-wrap: anywhere; }
.gbb-desc h3, .gbb-desc h4 { font-size: 17px; margin: 22px 0 8px; color: var(--gbb-navy); }
.gbb-desc p { margin: 0 0 12px; }
.gbb-desc ul, .gbb-desc ol { margin: 0 0 14px 20px; padding: 0; }
.gbb-desc li { margin-bottom: 6px; }
.gbb-desc a { color: var(--gbb-teal-dark); }
.gbb-similar { margin-top: 36px; }
.gbb-similar h2 { font-size: 20px; color: var(--gbb-navy); margin: 0 0 4px; }
.gbb-similar .gbb-row-pay-none, .gbb-home-list .gbb-row-pay-none { display: none; }
.gbb-more-link { display: inline-block; margin-top: 12px; color: var(--gbb-teal-dark); font-weight: 700; }
.gbb-closed { margin: 16px 0 8px; padding: 20px; border-radius: 12px; background: var(--gbb-soft); border: 1px solid #cfe3e0; }
.gbb-closed h1 { font-size: 24px; margin: 0 0 8px; color: var(--gbb-navy); }
.gbb-closed p { margin: 0 0 6px; font-size: 15px; }
.gbb-home-list { text-align: left; max-width: 820px; margin: 0 auto; }
.gbb-home-list .gbb-badge { display: none; }

/* Computers: filters become a right-hand column, Apply sits in the sticky details card */
@media (min-width: 960px) {
  .gbb-toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .gbb-search { flex: 1 1 360px; }
  .gbb-filters-btn { display: none; }
  .gbb-board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
  .gbb-panel { position: sticky; top: 16px; transform: none; box-shadow: none; border: 1px solid var(--gbb-line); border-radius: 14px; max-height: none; transition: none; margin-top: 14px; }
  .gbb-panel-close, .gbb-grabber { display: none; }
  .gbb-scrim { display: none; }
  .gbb-job { padding-bottom: 40px; }
  .gbb-job-grid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "head side" "desc side"; }
  .gbb-job-side { align-self: start; position: sticky; top: 16px; }
  .gbb-side-apply { display: block; }
  .gbb-side-apply .gbb-apply { margin: 16px 0 0; }
  .gbb-apply-fixed { display: none; }
  .gbb-more { max-width: 320px; margin: 24px auto; }
}
@media (prefers-reduced-motion: reduce) { .gbb-panel { transition: none; } .gbb-empty { animation: none; } }
