/* SocialClub Plus Online (online.html, issue #39). The colours and type are
   the site's own (site.css); the shapes follow the app's pages. It is a
   thing of its own, not a page of the site: its own bar, no site menu. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- The bar and the footer ---------- */
.ol-bar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 10px 24px; background: rgba(17,17,18,.86); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
}
.ol-bar .brand em { font-style: italic; font-weight: 500; color: var(--text-2); }
.ol-bar .wa-tabs { margin: 0 auto 0 0; }
.ol-app { padding: 9px 16px; font-size: 14px; }
.ol-foot { max-width: 1400px; margin: 56px auto 0; padding: 22px 24px 30px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.ol-foot p { margin: 0 0 6px; }
.ol-foot a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.ol-foot a:hover { color: var(--text); border-color: var(--amber); }

.wa { max-width: 1400px; margin: 0 auto; padding: 24px 24px 0; min-height: 70vh; }

.wa-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.wa-tabs a { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s; }
.wa-tabs a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.wa-tabs a[aria-current="page"] { color: #1A1A1B; background: var(--amber); }

/* ---------- Shared pieces ---------- */
.notice { padding: 18px 22px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; margin: 0; }
.notice.error { border-color: rgba(241,96,93,.45); color: #f3b0ae; }
.loading { display: flex; align-items: center; gap: 12px; padding: 28px 4px; color: var(--text-3); font-size: 15px; }
.loading span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--amber); animation: wa-spin .8s linear infinite; }
@keyframes wa-spin { to { transform: rotate(360deg); } }
.count { margin: 0 0 14px; font-size: 14px; color: var(--text-3); }
.more { display: flex; justify-content: center; padding: 26px 0 0; }
.noimg { background: var(--bg-3); }

.wa label, .wa .lbl { display: block; font: 600 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.wa select, .wa input[type="text"], .wa input[type="search"], .wa input[type="date"] {
  width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); font: 15px/1.3 var(--body); color-scheme: dark; min-width: 0;
}
.wa select:focus-visible, .wa input:focus-visible, .wa button:focus-visible, .wa a:focus-visible, .ol-bar a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.wa input::placeholder { color: var(--text-3); }
.field-note { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------- Jobs ---------- */
.jobs { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.searchbar { display: flex; gap: 8px; margin-bottom: 16px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); }
.wa .searchbar input { flex: 1; border: 0; background: none; padding: 8px 0; font-size: 16px; }
.wa .searchbar input:focus-visible { outline: 0; }
.searchbar:focus-within { border-color: var(--amber); }
.searchbar .btn { padding: 10px 18px; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.jc { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.jc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.jc-pic { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); }
.jc-pic img, .jc-pic .noimg { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; right: 8px; padding: 3px 7px; border-radius: 6px; border: 1px solid; background: rgba(17,17,18,.82); font: 700 10px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.jc-when { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(17,17,18,.78); font-size: 11.5px; color: var(--text-2); }
.jc-body { padding: 12px 14px 13px; display: grid; gap: 5px; }
.jc-body h3 { margin: 0; font: 700 16px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by { margin: 0; font-size: 13.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by b { color: var(--text-2); font-weight: 600; }
.tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 5px; border: 1px solid; font: 700 11px/1.5 var(--body); letter-spacing: .04em; vertical-align: 1px; }
.stats { display: flex; gap: 14px; margin-top: 3px; font-size: 13px; color: var(--text-3); }
.stats span { display: inline-flex; align-items: center; gap: 5px; }
.stats svg { width: 13px; height: 13px; fill: currentColor; }

.filters { border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.filters summary { padding: 16px 20px; font: 700 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters-body { display: grid; gap: 18px; padding: 4px 20px 20px; }
.types { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.types button { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text-3); cursor: pointer; padding: 0; transition: color .2s, background .2s; }
.types button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.types button[aria-pressed="true"] { color: var(--amber); background: rgba(252,175,23,.1); border-color: rgba(252,175,23,.4); }
.types svg { width: 20px; height: 20px; fill: currentColor; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-actions { display: grid; gap: 8px; }
.filter-actions .btn { width: 100%; }

.filters .pick { width: 100%; margin-top: 8px; padding: 9px 14px; font-size: 14px; }

/* ---------- The other searches ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.toolbar > div { flex: 1 1 160px; max-width: 240px; }
.block-list { margin-top: 32px; }
.block-list h3 { font-size: 22px; margin: 0 0 12px; }

.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.cc { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--line-2); min-width: 0; }
.cc-emblem { flex: none; width: 64px; height: 64px; }
.cc-emblem img, .cc-emblem .noimg { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.cc-body { min-width: 0; display: grid; gap: 5px; align-content: start; }
.cc-body h3 { margin: 0; font: 700 17px/1.25 var(--body); overflow-wrap: anywhere; }
.motto { margin: 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.cc-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-3); }
.cc-facts .primary { color: var(--amber); font-weight: 600; }
.cc-links { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.cc-links a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.cc-links a:hover { border-color: var(--amber); }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pc { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; transition: border-color .2s; }
.pc:hover { border-color: var(--line-2); }
.pc > div { min-width: 0; }
.pc h3 { margin: 0; font: 700 16px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bg-3); }
.avatar.big { width: 96px; height: 96px; }

.profile { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.profile-head { display: flex; align-items: center; gap: 22px; min-width: 0; }
.profile-head h2 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 38px); overflow-wrap: anywhere; }
.job h2.first { margin-top: 0; }
.results > .notice + .notice { margin-top: 10px; }
#view > .notice { margin-top: 18px; }

/* ---------- Lobbies ---------- */
.lobby-list { display: grid; gap: 8px; }
.lobby { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s; }
a.lobby:hover { border-color: var(--line-2); }
.lobby-pic { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.lobby-pic img, .lobby-pic .noimg { width: 100%; height: 100%; object-fit: cover; }
.lobby-body { min-width: 0; }
.lobby-body h3 { margin: 0 0 2px; font: 700 16px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-facts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 13px; color: var(--text-3); max-width: 420px; }
.lobby-facts .started { color: var(--amber); font-weight: 600; }

/* ---------- Map ---------- */
.map { height: 460px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-3); font-family: var(--body); z-index: 0; }
.map.route { height: min(70vh, 560px); }
.map-style { display: flex; }
.map-style button { border: 0; background: #fff; color: #333; padding: 6px 10px; font: 600 12px var(--body); cursor: pointer; }
.map-style button[aria-pressed="true"] { background: var(--amber); color: #1A1A1B; }

.map-dialog { width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); overflow: hidden; }
.map-dialog::backdrop { background: rgba(8,8,9,.8); }
.map-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.map-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.map-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.map-dialog .map { height: min(62vh, 620px); border-radius: 0; border-width: 1px 0; }
.map-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; }
.map-info { margin: 0 0 6px; font-weight: 600; min-height: 1.6em; }
.legend { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.legend i { width: 22px; height: 10px; border-radius: 2px; }
.legend span { margin: 0 5px; }
.legend .counted { margin-left: 10px; }
.map-actions { display: flex; gap: 8px; }
.wa .btn:disabled, .map-dialog .btn:disabled { opacity: .45; cursor: default; }

/* ---------- One job ---------- */
.back { margin: 0 0 14px; font-size: 15px; }
.back a { color: var(--text-2); }
.back a:hover { color: var(--text); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.job-pic { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-3); max-width: 720px; }
.job-pic img, .job-pic .noimg { width: 100%; height: 100%; object-fit: cover; }
.job h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 20px 0 6px; overflow-wrap: anywhere; }
.job .by { font-size: 15px; white-space: normal; }
.job .by a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.job .by a:hover { border-color: var(--amber); }
.desc { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; max-width: 720px; margin: 14px 0 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; }
.tags a { font-size: 13px; color: var(--text-2); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.tags a:hover { color: var(--text); border-color: var(--amber); }
.out { margin: 18px 0 0; font-size: 15px; }
.out a { color: var(--amber); }
.facts { margin: 0; padding: 6px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; }
.facts dt, .facts dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.facts dt { color: var(--text-3); padding-right: 18px; }
.facts dd { text-align: right; font-weight: 600; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.job-route { margin-top: 32px; }
.job-route h3 { font-size: 22px; margin: 0 0 12px; }

@media (max-width: 1000px) {
  .job, .profile { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; order: -1; }
  .filters summary::after { content: "+"; float: right; color: var(--text-3); }
  .filters[open] summary::after { content: "\2212"; }
}
@media (min-width: 1001px) {
  .filters summary { pointer-events: none; }
}
/* On a narrow screen the sections go on a line of their own, scrolled
   sideways rather than wrapped. */
@media (max-width: 760px) {
  .ol-bar { padding: 10px 16px 0; gap: 8px 12px; }
  .ol-bar .brand { margin-right: auto; }
  .ol-bar .wa-tabs { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ol-bar .wa-tabs a { flex: none; }
  .ol-foot { padding: 20px 16px 26px; }
}
@media (max-width: 480px) {
  .wa { padding: 18px 16px 0; }
  /* site.css hides the name beside the logo here; this bar has room for it. */
  .ol-bar .brand span { display: inline; font-size: 15px; }
  .job-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .types { grid-template-columns: repeat(4, 1fr); }
  .crew-grid { grid-template-columns: minmax(0, 1fr); }
  .lobby { grid-template-columns: 84px minmax(0, 1fr); padding-right: 12px; }
  .lobby-facts { grid-column: 1 / -1; justify-content: flex-start; }
  .toolbar > div { flex-basis: 130px; max-width: none; }
  .profile-head { gap: 14px; }
  .avatar.big { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .loading span { animation: none; }
  .jc:hover { transform: none; }
}
