/* uOS public pages: one visual language for Market, Jobs and Profiles (ADR-028 §9,
   docs/design/2026-11-17/ujob/design-notes.md). System fonts, nothing from elsewhere, no script. */

:root {
  color-scheme: light;
  /* surfaces */
  --bg: #f5f6f8;
  --card: #ffffff;
  --raised: #fafbfc;
  --sunken: #eef0f4;
  /* text */
  --text: #14161b;
  --muted: #576071;
  /* lines */
  --border: #e2e5eb;
  --border-strong: #cdd2da;
  /* brand */
  --accent: #5a3df0;          /* links, icons, focus: 6.2:1 on white */
  --accent-fill: #6d4aff;     /* primary buttons: white text 5.1:1 */
  --accent-fill-hover: #5a3df0;
  --accent-soft: #efebff;
  --on-accent: #ffffff;
  /* states */
  --positive: #0e7a49;
  --positive-soft: #e5f5ec;
  --notice-bg: #fff4d6;
  --notice-text: #573f00;
  --notice-border: #f1dfa6;
  --error: #c0292b;
  --focus: #6d4aff;
  --focus-halo: rgba(109, 74, 255, .22);
  /* depth */
  --shadow-1: 0 1px 2px rgba(17, 20, 28, .05), 0 1px 3px rgba(17, 20, 28, .05);
  --shadow-2: 0 6px 20px rgba(17, 20, 28, .08), 0 2px 6px rgba(17, 20, 28, .05);
  /* shape */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-pill: 999px;
  /* type scale: 13 / 15 / 16 / 18 / 22 / 28 / 36 */
  --fs-1: .8125rem;
  --fs-2: .9375rem;
  --fs-3: 1rem;
  --fs-4: 1.125rem;
  --fs-5: 1.375rem;
  --fs-6: 1.75rem;
  --fs-7: 2.25rem;
  /* spacing: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --gutter: 16px;
  --maxw: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1015;
    --card: #161a21;
    --raised: #1a1f27;
    --sunken: #222833;
    --text: #edf0f4;
    --muted: #a4acb9;
    --border: #272d37;
    --border-strong: #3a414d;
    --accent: #ae99ff;
    --accent-fill: #6d4aff;
    --accent-fill-hover: #5a3df0;
    --accent-soft: #231c44;
    --on-accent: #ffffff;
    --positive: #5ad49a;
    --positive-soft: #10281d;
    --notice-bg: #2a2210;
    --notice-text: #f2d68c;
    --notice-border: #463813;
    --error: #ff7a7a;
    --focus: #ae99ff;
    --focus-halo: rgba(174, 153, 255, .25);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 8px 24px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1015; --card: #161a21; --raised: #1a1f27; --sunken: #222833;
  --text: #edf0f4; --muted: #a4acb9; --border: #272d37; --border-strong: #3a414d;
  --accent: #ae99ff; --accent-fill: #6d4aff; --accent-fill-hover: #5a3df0; --accent-soft: #231c44; --on-accent: #fff;
  --positive: #5ad49a; --positive-soft: #10281d; --notice-bg: #2a2210; --notice-text: #f2d68c; --notice-border: #463813;
  --error: #ff7a7a; --focus: #ae99ff; --focus-halo: rgba(174, 153, 255, .25);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 8px 24px rgba(0, 0, 0, .45);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-3)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: var(--fs-6); font-weight: 700; }
h2 { font-size: var(--fs-5); font-weight: 650; }
h3 { font-size: var(--fs-4); font-weight: 600; }
@media (min-width: 900px) { h1 { font-size: var(--fs-7); } }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:where(a, button, input, select, summary, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-halo);
  border-radius: 6px;
}

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--s { width: 16px; height: 16px; }
.icon--l { width: 22px; height: 22px; }

.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 100; padding: var(--s-2) var(--s-4); background: var(--card); color: var(--text); border-radius: var(--r-s); box-shadow: var(--shadow-2); }
.skip:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-m);
  border: 1px solid transparent; font: 600 var(--fs-2)/1.2 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--accent-fill); color: var(--on-accent); }
.btn--ghost { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn--quiet { background: transparent; color: var(--accent); padding-inline: 10px; }
.btn--sm { min-height: 36px; padding: 7px 14px; border-radius: var(--r-s); }
.btn--lg { min-height: 52px; padding: 14px 22px; font-size: var(--fs-3); }
.btn--block { display: flex; width: 100%; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-fill-hover); }
  .btn--ghost:hover { border-color: var(--text); }
  .btn--quiet:hover { background: var(--accent-soft); }
}

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--sunken); color: var(--text);
  font: 500 var(--fs-1)/1.3 var(--font); text-decoration: none; white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; }
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.chip--positive { background: var(--positive-soft); color: var(--positive); }
.chip--outline { background: transparent; border: 1px solid var(--border-strong); }
.chip--solid { background: var(--text); color: var(--bg); }
a.chip, button.chip { min-height: 36px; padding: 6px 14px; font-size: var(--fs-2); border: 1px solid var(--border); background: var(--card); cursor: pointer; }
a.chip[aria-current="true"], a.chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
@media (hover: hover) { a.chip:hover { border-color: var(--border-strong); } }

/* ---------- top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.topbar__row { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--fs-4); letter-spacing: -.01em; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-fill); color: #fff; display: grid; place-items: center; }
.brand__mark svg { width: 18px; height: 18px; }
.brand__section { color: var(--muted); font-weight: 500; }
.sections { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-m); background: var(--sunken); }
.sections a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--fs-2); }
.sections a[aria-current="page"] { background: var(--card); color: var(--text); box-shadow: var(--shadow-1); }
.topbar__search { flex: 1 1 auto; max-width: 460px; display: flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg); color: var(--muted); }
.topbar__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-2); padding: 9px 0; }
.topbar__search input:focus { outline: none; }
.topbar__search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
.spacer { flex: 1; }
.topbar__row--sub { display: none; }
@media (max-width: 759px) {
  .topbar .sections, .topbar .topbar__search { display: none; }
  .topbar__row--sub { display: flex; min-height: 0; padding-bottom: var(--s-3); }
  .topbar__row--sub .sections { display: flex; flex: 1; }
  .topbar__row--sub .sections a { flex: 1; justify-content: center; }
  .btn-join__long { display: none; }
}
@media (min-width: 760px) { .btn-join__short { display: none; } }

/* language menu: <details>, no script */
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: var(--r-s); color: var(--text); cursor: pointer; font-size: var(--fs-2); font-weight: 500; }
.lang > summary::-webkit-details-marker { display: none; }
.lang[open] > summary { background: var(--sunken); }
@media (hover: hover) { .lang > summary:hover { background: var(--sunken); } }
.lang__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(340px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; padding: var(--s-2); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow-2); list-style: none; }
.lang__list a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: var(--fs-2); }
.lang__list a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (hover: hover) { .lang__list a:hover { background: var(--sunken); } }
@media (max-width: 759px) { .lang__name { display: none; } }

/* ---------- alpha notice ---------- */
.notice { background: var(--notice-bg); color: var(--notice-text); border-bottom: 1px solid var(--notice-border); font-size: var(--fs-1); }
.notice .wrap { display: flex; align-items: flex-start; gap: var(--s-2); padding-top: 9px; padding-bottom: 9px; }
.notice .icon { width: 16px; height: 16px; margin-top: 1px; }
.notice a { color: inherit; font-weight: 600; }

/* ---------- hero (start pages) ---------- */
.hero { padding: var(--s-6) 0 var(--s-5); }
@media (min-width: 900px) { .hero { padding: var(--s-8) 0 var(--s-6); } }
.hero h1 { max-width: 18ch; }
.hero__lead { margin-top: var(--s-3); max-width: 58ch; color: var(--muted); font-size: var(--fs-4); }
.bigsearch { margin-top: var(--s-5); display: grid; grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-2); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); box-shadow: var(--shadow-2); max-width: 860px; }
@media (min-width: 700px) { .bigsearch { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; } }
.field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: var(--r-m); background: var(--bg); color: var(--muted); }
.field input, .field select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 12px 0; }
.field input:focus, .field select:focus { outline: none; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.field label { position: absolute; }
.hero__chips { margin-top: var(--s-4); }
.hero__stats { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-1); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.hero__stats span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- section heads, toolbars ---------- */
.block { padding: var(--s-5) 0; }
@media (min-width: 900px) { .block { padding: var(--s-6) 0; } }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.block__head a { font-weight: 600; font-size: var(--fs-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.toolbar__count { color: var(--muted); font-size: var(--fs-2); }
.sort { display: inline-flex; gap: 4px; font-size: var(--fs-2); color: var(--muted); align-items: center; flex-wrap: wrap; }
.sort a { padding: 4px 10px; border-radius: var(--r-pill); color: var(--muted); text-decoration: none; }
.sort a[aria-current="true"] { background: var(--sunken); color: var(--text); font-weight: 600; }

/* ---------- placeholder images ---------- */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(255, 255, 255, .9);
  background: radial-gradient(120% 90% at 20% 15%, rgba(255,255,255,.35), transparent 55%), linear-gradient(140deg, var(--ph-a, #b9a7f6), var(--ph-b, #6a55c8)); }
.ph svg { width: 34%; height: auto; max-width: 140px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: .9; filter: drop-shadow(0 6px 14px rgba(0,0,0,.15)); }

/* ---------- listing card ---------- */
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 379px) { .grid { gap: var(--s-3); } }
/* cards inside the narrower text column: never four across */
@media (min-width: 700px) { .section--cards .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .section--cards .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); overflow: hidden; transition: box-shadow .15s, transform .15s, border-color .15s; }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); transform: translateY(-1px); } }
.card__media { position: relative; aspect-ratio: 4 / 3; }
.card__media .ph { position: absolute; inset: 0; }
.card__badge { position: absolute; left: 10px; top: 10px; z-index: 1; }
.card__badge .chip { background: rgba(255,255,255,.92); color: #14161b; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: var(--s-3) var(--s-3) var(--s-4); flex: 1; }
.card__price { font-size: var(--fs-4); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card__price small { font-size: var(--fs-1); font-weight: 500; color: var(--muted); }
.card__title { font-size: var(--fs-2); font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card__meta { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--fs-1); min-width: 0; }
.card__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta .icon { width: 14px; height: 14px; }
.card__seller { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-1); color: var(--muted); }
@media (min-width: 700px) { .card__body { padding: var(--s-4); } }

/* ---------- job card ---------- */
.joblist { display: grid; gap: var(--s-3); list-style: none; }
@media (min-width: 900px) { .joblist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
.jobcard { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-3) var(--s-4); padding: var(--s-4); color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); height: 100%; transition: box-shadow .15s, border-color .15s; }
@media (hover: hover) { .jobcard:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); } }
@media (min-width: 700px) { .jobcard { padding: var(--s-5); grid-template-columns: 56px minmax(0, 1fr); } }
.logo { width: 48px; height: 48px; border-radius: var(--r-m); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-3); color: #fff; letter-spacing: .02em; background: linear-gradient(140deg, var(--lg-a, #7d63ff), var(--lg-b, #4a33c9)); flex: none; }
@media (min-width: 700px) { .jobcard .logo { width: 56px; height: 56px; font-size: var(--fs-4); } }
.logo--xl { width: 72px; height: 72px; border-radius: var(--r-l); font-size: var(--fs-5); }
.jobcard__title { font-size: var(--fs-3); font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 700px) { .jobcard__title { font-size: var(--fs-4); } }
.jobcard__org { margin-top: 2px; color: var(--muted); font-size: var(--fs-2); overflow-wrap: anywhere; }
.jobcard__chips { grid-column: 1 / -1; }
@media (min-width: 700px) { .jobcard__chips, .jobcard__foot { grid-column: 2; } }
.jobcard__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.pay { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-3); letter-spacing: -.01em; }
.pay small { font-weight: 500; color: var(--muted); font-size: var(--fs-1); }
.jobcard__when { color: var(--muted); font-size: var(--fs-1); display: inline-flex; gap: 4px; align-items: center; }
.jobcard__when .icon { width: 14px; height: 14px; }

/* ---------- person line (name on top, handle beneath in mono) ---------- */
.person { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: var(--fs-3); background: var(--av, #2f8f83); }
.avatar--s { width: 32px; height: 32px; font-size: var(--fs-1); }
.avatar--xl { width: 112px; height: 112px; font-size: 2.5rem; }
.person__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.person__name { font-weight: 600; overflow-wrap: anywhere; }
.person__label { font-weight: 600; color: var(--text); }
.handle { font-family: var(--mono); font-size: var(--fs-1); color: var(--muted); overflow-wrap: anywhere; }
a.handle { color: var(--muted); text-decoration: none; }
@media (hover: hover) { a.handle:hover { color: var(--accent); text-decoration: underline; } }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: var(--s-4) 0 var(--s-3); list-style: none; font-size: var(--fs-1); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--accent); text-decoration: underline; } }
.crumbs .icon { width: 14px; height: 14px; }

/* ---------- detail layout ---------- */
.detail { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); padding-bottom: var(--s-6); }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); align-items: start; } }
.detail__side { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .detail__side { position: sticky; top: 84px; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); padding: var(--s-5); }
.panel--tight { padding: var(--s-4); }
.panel h2 { font-size: var(--fs-4); }
.panel + .panel { margin-top: 0; }
.stack > * + * { margin-top: var(--s-4); }
.stack-s > * + * { margin-top: var(--s-2); }
.section { padding-top: var(--s-5); }
.section > h2 { margin-bottom: var(--s-3); font-size: var(--fs-4); }
@media (min-width: 900px) { .section > h2 { font-size: var(--fs-5); } }
.prose { max-width: 68ch; white-space: pre-line; overflow-wrap: anywhere; }
.prose--list { white-space: normal; }
.prose--list ul { padding-left: 1.2em; display: grid; gap: 6px; }
.note { color: var(--muted); font-size: var(--fs-1); display: flex; gap: 6px; align-items: flex-start; }
.note .icon { width: 14px; height: 14px; margin-top: 2px; }
.divider { height: 1px; background: var(--border); border: 0; margin: var(--s-4) 0; }

/* masked contact details, rendered as a quiet inline token */
.masked { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: var(--r-pill); background: var(--sunken); color: var(--muted); font-size: .85em; white-space: nowrap; vertical-align: baseline; }
.masked .icon { width: 12px; height: 12px; }

/* ---------- headline block on a detail page ---------- */
.headline { display: grid; gap: var(--s-3); }
.headline__price { font-size: var(--fs-6); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.headline__price small { font-size: var(--fs-2); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.headline__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); color: var(--muted); font-size: var(--fs-2); }
.headline__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- gallery: scroll-snap strip + thumbnails (no script) ---------- */
.gallery { display: grid; gap: var(--s-2); }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-l); scrollbar-width: none; background: var(--sunken); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.gallery__slide .ph { position: absolute; inset: 0; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(10, 12, 16, .66); color: #fff; font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); list-style: none; }
.gallery__thumbs a { display: block; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; border: 2px solid transparent; }
.gallery__thumbs a .ph { width: 100%; height: 100%; }
.gallery__thumbs a .ph svg { width: 46%; }
.gallery__thumbs a[aria-current="true"] { border-color: var(--accent); }
@media (max-width: 599px) { .gallery__thumbs { display: none; } .gallery__track { border-radius: 0; margin: 0 calc(-1 * var(--gutter)); } }

/* ---------- facts (icon, label, value) ---------- */
.facts { display: grid; gap: var(--s-3) var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.fact__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--muted); }
.fact__icon .icon { width: 18px; height: 18px; }
.fact dt { font-size: var(--fs-1); color: var(--muted); }
.fact dd { font-weight: 600; overflow-wrap: anywhere; }
/* parameter table (many values) */
.values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; background: var(--card); }
.values dt, .values dd { padding: 10px 14px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.values dt { color: var(--muted); font-size: var(--fs-2); }
.values dd { font-weight: 500; }
.values dt:nth-of-type(1), .values dd:nth-of-type(1) { border-top: 0; }
@media (min-width: 700px) { .values--2 { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); } .values--2 dt:nth-of-type(2), .values--2 dd:nth-of-type(2) { border-top: 0; } }

/* ---------- action panel (desktop) and action bar (phone) ---------- */
.action { display: grid; gap: var(--s-3); }
.action__price { font-size: var(--fs-6); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.action__price small { display: block; margin-top: 4px; font-size: var(--fs-2); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.trust { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-m); background: var(--raised); border: 1px solid var(--border); font-size: var(--fs-1); color: var(--muted); }
.trust strong { color: var(--text); font-weight: 600; }
.trust__row { display: flex; gap: var(--s-2); align-items: flex-start; }
.trust__row .icon { width: 16px; height: 16px; color: var(--positive); margin-top: 1px; }
.actionbar { display: none; }
@media (max-width: 959px) {
  .actionbar { display: flex; align-items: center; gap: var(--s-3); position: sticky; bottom: 0; z-index: 25; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(17, 20, 28, .08); }
  .actionbar__price { flex: 1; min-width: 0; font-weight: 750; font-size: var(--fs-4); line-height: 1.15; font-variant-numeric: tabular-nums; }
  .actionbar__price small { display: block; font-size: var(--fs-1); font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .actionbar .btn { flex: none; }
  .hide-phone { display: none !important; }
}
@media (min-width: 960px) { .show-phone { display: none !important; } }

/* ---------- steps (how it works) ---------- */
.steps { display: grid; gap: var(--s-3); list-style: none; counter-reset: step; }
@media (min-width: 760px) { .steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: var(--s-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); }
.step__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.step h3 { font-size: var(--fs-3); }
.step p { color: var(--muted); font-size: var(--fs-2); margin-top: 2px; }

/* ---------- ratings ---------- */
.stars { display: inline-flex; gap: 1px; color: #e3a008; vertical-align: -2px; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; }
.stars .icon.off { fill: none; color: var(--border-strong); }
.rsum { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.rsum__big { font-size: var(--fs-6); font-weight: 750; line-height: 1; }
.rlist { display: grid; gap: var(--s-3); list-style: none; }
.rating { padding: var(--s-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); }
.rating__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-3); font-size: var(--fs-1); color: var(--muted); margin-bottom: 6px; }
.rating__reply { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-left: 3px solid var(--border-strong); background: var(--raised); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--fs-2); }
.rating__reply .note { margin-bottom: 4px; }

/* ---------- folded blocks (imprint, privacy) ---------- */
.fold { border: 1px solid var(--border); border-radius: var(--r-m); background: var(--card); }
.fold + .fold { margin-top: var(--s-2); }
.fold > summary { list-style: none; display: flex; align-items: center; gap: var(--s-2); padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: var(--fs-2); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .chev { margin-left: auto; transition: transform .15s; color: var(--muted); }
.fold[open] > summary .chev { transform: rotate(180deg); }
.fold__body { padding: 0 14px 14px; font-size: var(--fs-2); }
.fold__body dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.fold__body dt { color: var(--muted); font-size: var(--fs-1); }
.fold__body dd { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- pager ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s-2); margin-top: var(--s-6); flex-wrap: wrap; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
.pager [aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* ---------- join band ---------- */
.band { margin: var(--s-6) 0 0; padding: var(--s-6) var(--s-5); border-radius: var(--r-l); background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #6d4aff, #3b2a9c); color: #fff; display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s-6) var(--s-7); } }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.86); margin-top: 6px; max-width: 56ch; }
.band .btn--primary { background: #fff; color: #3b2a9c; }
@media (hover: hover) { .band .btn--primary:hover { background: #efebff; } }

/* ---------- footer ---------- */
.footer { margin-top: var(--s-7); border-top: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: var(--fs-2); }
.footer__grid { display: grid; gap: var(--s-5); padding: var(--s-6) 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, .7fr); } }
.footer h2 { font-size: var(--fs-2); color: var(--text); margin-bottom: var(--s-2); }
.footer ul { list-style: none; display: grid; gap: 6px; }
.footer a { color: var(--muted); text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: var(--accent); text-decoration: underline; } }
.footer .footer__langs { border-top: 1px solid var(--border); padding: var(--s-4) 0; display: flex; flex-wrap: wrap; gap: 4px var(--s-3); font-size: var(--fs-1); list-style: none; }
.footer__small { padding: 0 0 var(--s-6); font-size: var(--fs-1); }

/* ---------- side cards on start pages ---------- */
.split { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .split { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.promo { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--border); }
.promo__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.promo p { color: var(--muted); font-size: var(--fs-2); }

/* filter bar for search pages (GET form, no script) */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.filters__label { width: 100%; font-size: var(--fs-1); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- organisation card (shop, employer) ---------- */
.orgs { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); list-style: none; }
@media (min-width: 700px) { .orgs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.orgcard { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: var(--s-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); color: var(--text); text-decoration: none; height: 100%; }
@media (hover: hover) { .orgcard:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); } }
.orgcard__name { font-weight: 650; overflow-wrap: anywhere; }
.orgcard__meta { color: var(--muted); font-size: var(--fs-1); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.orgcard__meta span { display: inline-flex; align-items: center; gap: 4px; }
.orgcard__meta .icon { width: 13px; height: 13px; }
.verified { color: var(--positive); }

/* phone refinements */
.brand { white-space: nowrap; }
@media (max-width: 759px) {
  .brand__section { display: none; }
  .card__price { font-size: var(--fs-3); }
  .card__price small { display: block; margin-top: 1px; }
}
.actionbar__price { white-space: nowrap; }
@media (max-width: 399px) { .actionbar .opt { display: none; } }
@media (min-width: 960px) { .gallery__slide { aspect-ratio: 3 / 2; } }

/* ---------- job posting head ---------- */
.fold > summary .icon { width: 16px; height: 16px; }
.jobhead { display: grid; gap: var(--s-4); padding-bottom: var(--s-2); }
.jobhead__org { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); text-decoration: none; justify-self: start; min-width: 0; }
.jobhead__org > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.jobhead__orgname { font-weight: 650; font-size: var(--fs-3); overflow-wrap: anywhere; }
.jobhead__verified { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-1); font-weight: 500; }
@media (hover: hover) { .jobhead__org:hover .jobhead__orgname { color: var(--accent); text-decoration: underline; } }
@media (max-width: 599px) { .jobhead .logo--xl { width: 52px; height: 52px; font-size: var(--fs-4); border-radius: var(--r-m); } }
.jobhead__pay { display: grid; gap: 4px; }
.offer { display: grid; gap: var(--s-3); list-style: none; }
@media (min-width: 640px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-m); }
.offer li .icon { color: var(--accent); margin-top: 2px; }
.headline__price small { display: inline-block; white-space: nowrap; }
@media (max-width: 399px) { .actionbar .lbl-long { display: none; } }
.btn--quiet { white-space: normal; text-align: start; }

/* ---------- market pages: parts the static mockups set inline ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.detail__main .headline { margin-bottom: var(--s-4); }
.headline h1 { overflow-wrap: anywhere; }
.headline__meta a { color: inherit; }
.section .note { margin-top: var(--s-3); }
.rsum { margin-bottom: var(--s-4); }
.rsum .note { font-size: var(--fs-2); }
.rating__title { color: var(--text); font-weight: 600; }
.sellerfacts { list-style: none; font-size: var(--fs-2); color: var(--muted); }
.sellerfacts li { display: flex; gap: var(--s-2); align-items: center; }
.panel .btn--quiet { justify-self: start; }
.panel h3 { font-size: var(--fs-2); }
.panel__title { display: flex; align-items: center; gap: var(--s-2); }
.panel__title .icon { color: var(--accent); }
a.person__name { color: var(--text); text-decoration: none; }
@media (hover: hover) { a.person__name:hover { color: var(--accent); text-decoration: underline; } }
.report { padding: 0 var(--s-2); }
.block--flush { padding-top: 0; }
.footer .footer__join { color: var(--accent); font-weight: 600; }
.footer nav:last-child .footer__langs { padding-bottom: var(--s-6); }
.ph--empty { background: var(--sunken); color: var(--muted); }
.ph--empty svg { width: 28%; max-width: 64px; stroke-width: 1.5; filter: none; opacity: .75; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--sunken); }
.card__badge { display: flex; flex-wrap: wrap; gap: 4px; right: 10px; }
.gallery__slide > a { position: absolute; inset: 0; display: block; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; background: var(--sunken); }
.bigsearch--one { max-width: 720px; }
@media (min-width: 700px) { .bigsearch--one { grid-template-columns: minmax(0, 1fr) auto; } }
.hero--results { padding: var(--s-5) 0 var(--s-2); }
.hero--results h1 { max-width: none; font-size: var(--fs-6); overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 2px 2px; }
  .hero__chips::-webkit-scrollbar { display: none; }
  .hero__chips li { flex: none; }
}
.slots { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; font-variant-numeric: tabular-nums; }
.slots li { padding: 6px 10px; border-radius: var(--r-s); background: var(--sunken); font-size: var(--fs-1); font-weight: 500; }
.orghead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-5) 0 var(--s-4); }
.orghead h1 { font-size: var(--fs-6); overflow-wrap: anywhere; }
.orghead .logo, .orghead .avatar { width: 64px; height: 64px; font-size: var(--fs-5); }
.orghead .sellerfacts, .orghead .orgcard__meta { margin-top: var(--s-2); }
.orghead__about { margin-bottom: var(--s-5); }
.imprint { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.imprint dt { color: var(--muted); font-size: var(--fs-1); }
.imprint dd { white-space: pre-line; overflow-wrap: anywhere; }
.fold__body .imprint { margin-top: 0; }
.shopimprint { max-width: 560px; padding-bottom: var(--s-6); }
.gone { display: grid; justify-items: center; gap: var(--s-4); padding: var(--s-8) 0; text-align: center; }
.gone h1 { font-size: var(--fs-6); }
.gone p { color: var(--muted); max-width: 48ch; }
.gone__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.gone__icon .icon { width: 30px; height: 30px; }
.empty { display: flex; gap: var(--s-2); align-items: center; color: var(--muted); padding: var(--s-5) 0; }
.pager a { gap: 4px; }
.actionbar__price { overflow: hidden; text-overflow: ellipsis; }
.prose .masked { white-space: nowrap; }

/* ---------- professional profile (uWork, ADR-028 §3; docs/design/2026-11-17/ujob/public-profile.html) ---------- */
.pro-hero { margin-top: var(--s-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); overflow: hidden; }
.pro-hero__band { height: 96px; background: radial-gradient(120% 160% at 85% 0%, rgba(255,255,255,.25), transparent 55%), linear-gradient(120deg, #2f8f83, #1d4f7a 60%, #3b2a9c); }
@media (min-width: 760px) { .pro-hero__band { height: 128px; } }
.pro-hero__body { display: grid; gap: var(--s-4); padding: 0 var(--s-5) var(--s-5); }
@media (min-width: 760px) { .pro-hero__body { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--s-5); padding: 0 var(--s-6) var(--s-6); } .pro-hero__body > div:nth-child(2) { padding-top: var(--s-4); } .pro-hero__actions { align-self: end; min-width: 220px; } }
.pro-hero__photo { margin-top: -56px; width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--card); overflow: hidden; background: var(--card); }
.pro-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.pro-hero__photo .ph { width: 100%; height: 100%; color: #fff; font-size: 2.4rem; font-weight: 700; letter-spacing: .02em; --ph-a: #7fc4b8; --ph-b: #2a6d74; }
.pro-hero__name { display: grid; gap: 2px; min-width: 0; }
.pro-hero__name h1 { font-size: var(--fs-6); overflow-wrap: anywhere; }
.pro-hero__name h1.handle-only { font-family: var(--mono); font-size: var(--fs-5); }
.pro-hero__name .handle { font-size: var(--fs-2); }
.pro-hero__headline { margin-top: var(--s-2); font-size: var(--fs-4); color: var(--text); max-width: 60ch; overflow-wrap: anywhere; }
.pro-hero__meta { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); color: var(--muted); font-size: var(--fs-2); }
.pro-hero__meta span { display: inline-flex; gap: 6px; align-items: center; }
.pro-hero__actions { display: grid; gap: var(--s-2); }
.avail { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--positive-soft); color: var(--positive); font-weight: 600; font-size: var(--fs-1); justify-self: start; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail--off { background: var(--sunken); color: var(--muted); }
.pro-detail { margin-top: var(--s-5); }
.pro-detail .detail__main > .section:first-child { padding-top: 0; }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-5); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .logo { width: 48px; height: 48px; font-size: var(--fs-2); }
.timeline h3 { font-size: var(--fs-3); overflow-wrap: anywhere; }
.timeline__org { color: var(--text); font-size: var(--fs-2); overflow-wrap: anywhere; }
.timeline__when { color: var(--muted); font-size: var(--fs-1); margin-top: 2px; font-variant-numeric: tabular-nums; }
.timeline p.prose { margin-top: var(--s-2); font-size: var(--fs-2); color: var(--text); }
.tone-1 { --lg-a: #3d6bd8; --lg-b: #1d3a8a; } .tone-2 { --lg-a: #2f9e7a; --lg-b: #145c45; } .tone-3 { --lg-a: #a07a3b; --lg-b: #5e4214; }
.tone-4 { --lg-a: #8a5cd6; --lg-b: #4b2a8c; } .tone-5 { --lg-a: #c2557a; --lg-b: #7a2445; } .tone-6 { --lg-a: #4a8fb8; --lg-b: #1f5272; }
.langs { list-style: none; display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.langs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s-3); align-items: center; }
.langs b { font-variant-numeric: tabular-nums; font-size: var(--fs-1); color: var(--muted); font-weight: 600; }
.level { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.level span { height: 6px; border-radius: 3px; background: var(--sunken); }
.level span.on { background: var(--accent-fill); }
.certs { list-style: none; display: grid; gap: var(--s-3); }
.certs li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.certs li p { overflow-wrap: anywhere; }
.certs li p:last-child { color: var(--muted); font-size: var(--fs-1); }
.linklist { list-style: none; display: grid; gap: var(--s-2); }
.linklist li, .linklist a span { min-width: 0; }
.linklist a { display: flex; align-items: center; gap: var(--s-2); padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--card); color: var(--text); text-decoration: none; min-width: 0; overflow: hidden; }
.linklist a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linklist a small { color: var(--muted); font-family: var(--mono); font-size: var(--fs-1); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (hover: hover) { .linklist a:hover { border-color: var(--accent); } }
@media (max-width: 599px) { .linklist a { flex-wrap: wrap; } .linklist a small { margin-left: 0; flex-basis: 100%; order: 3; } }
.scope { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-m); background: var(--raised); border: 1px dashed var(--border-strong); color: var(--muted); font-size: var(--fs-2); }
.scope .icon { color: var(--accent); margin-top: 2px; }
.pro-bar__name { font-size: var(--fs-3); }
.pro-bar__name small { font-family: var(--mono); }

/* top bar in long languages (ru, el, ...): the search gives way first, then
   the language name (the globe and the menu's label stay), so the row never
   grows wider than the screen */
.brand, .topbar .btn { flex-shrink: 0; white-space: nowrap; }
.topbar__search { min-width: 0; }
@media (max-width: 1099px) { .topbar .lang__name { display: none; } }
@media (max-width: 400px) { .topbar__row { gap: var(--s-2); } .topbar .btn .icon { display: none; } }
/* without its name the menu button sits mid-row: on narrow screens the list
   hangs from the top bar's right edge instead, so it never leaves the screen */
@media (max-width: 1099px) {
  .topbar .lang { position: static; }
  .topbar .lang__list { top: calc(100% - 4px); right: var(--gutter); }
}

/* ---------- job pages (uWork stage 2) ---------- */
.promo h2 { font-size: var(--fs-4); }
.orgs--side { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s-3); }
.orgcard--flat { padding: var(--s-2) 0; border: 0; background: transparent; }
.jobs-more { justify-self: start; }
.jobfolds { display: grid; gap: var(--s-3); max-width: 760px; }
.filters .chip { text-decoration: none; }
.filters .filters__label:not(:first-child) { margin-top: var(--s-2); }
@media (max-width: 759px) {
  .topbar__row--sub .sections a { min-height: 40px; }
}

/* ---------- travel pages (uTravel stage 1) ---------- */
@media (min-width: 700px) { .bigsearch--travel { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, .7fr) auto; max-width: 1080px; } }
.bigsearch--travel .field label { position: static; font-size: var(--fs-1); color: var(--muted); white-space: nowrap; }
.bigsearch--travel input[type="date"], .bigsearch--travel input[type="number"] { min-width: 0; width: 100%; }
.travel-area { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.travel-later { margin-top: var(--s-5); }
.calnav { display: flex; gap: var(--s-2); }
.months { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); margin-top: var(--s-3); }
@media (min-width: 700px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.month h3 { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal th { font-size: var(--fs-1); color: var(--muted); font-weight: 500; padding: 2px 0; }
.cal td { padding: 0; text-align: center; }
.cal__d a, .cal__d span { display: block; padding: 8px 0; border-radius: var(--r-s); font-size: var(--fs-1); color: var(--text); text-decoration: none; }
.cal__d--free a, .cal__d--free span { background: var(--positive-soft); color: var(--positive); font-weight: 600; }
.cal__d--checkout_only a, .cal__d--checkout_only span { background: linear-gradient(135deg, var(--positive-soft) 50%, var(--sunken) 50%); }
.cal__d--unavailable span, .cal__d--unavailable a { background: var(--sunken); color: var(--muted); text-decoration: line-through; }
.cal__d--sel a, .cal__d--sel span { background: var(--accent-fill); color: var(--on-accent); text-decoration: none; }
@media (hover: hover) { .cal__d a:hover { box-shadow: inset 0 0 0 2px var(--accent); } }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; margin-top: var(--s-3); font-size: var(--fs-1); color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--border); }
.sw--free { background: var(--positive-soft); }
.sw--checkout_only { background: linear-gradient(135deg, var(--positive-soft) 50%, var(--sunken) 50%); }
.sw--unavailable { background: var(--sunken); }
.sw--sel { background: var(--accent-fill); }
.travelform { display: grid; gap: 6px; }
.travelform label { font-size: var(--fs-1); color: var(--muted); }
.travelform input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-s); background: var(--bg); color: var(--text); font: inherit; }
.travelform .btn { margin-top: var(--s-2); }
.travelcheck { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-weight: 500; }
.travelcheck--ok { color: var(--positive); }

/* ---------- trips and companions (uTravel stage 2) ---------- */
.safety { list-style: none; display: grid; gap: var(--s-2); }
.safety li { display: flex; gap: 8px; align-items: flex-start; }
.safety li .icon { flex: none; margin-top: 2px; color: var(--positive); }

/* ---------- travel posts (uTravel stage 3) ---------- */
.post-places{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 16px}
.post-places li{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.post-places svg{flex:none;width:16px;height:16px}

/* ---------- uMatch: photos (public page) and the Spotlight row (home) ---------- */
.mphotos { display: grid; gap: var(--s-2); }
.mphotos__main { display: block; max-width: 440px; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--sunken); border: 1px solid var(--border); }
.mphotos__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mphotos__more { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); max-width: 440px; }
.mphotos__more a { display: block; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--sunken); border: 1px solid var(--border); }
.mphotos__more img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .mphotos__more a:hover { border-color: var(--accent); } }
.mhome__cta { margin-top: var(--s-5); }
.spot { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: var(--s-5) var(--s-4); padding-top: var(--s-2); }
.spot__item { position: relative; min-width: 0; }
.spot__link { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--text); text-align: center; text-decoration: none; border-radius: var(--r-m); padding: var(--s-1); }
.spot__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.spot__face { display: block; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: var(--sunken); border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--accent-fill), var(--shadow-1); }
.spot__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spot__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: var(--fs-2); }
.spot__shout { max-width: 100%; color: var(--muted); font-size: var(--fs-1); line-height: 1.35; overflow-wrap: anywhere; }
@media (hover: hover) {
  .spot__shout { position: absolute; left: 50%; top: calc(100% + 6px); z-index: 2; width: max-content; max-width: 220px; padding: 8px 12px; border-radius: var(--r-m); background: var(--text); color: var(--bg); box-shadow: var(--shadow-2); transform: translate(-50%, -4px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility .15s; }
  .spot__shout::after { content: ""; position: absolute; left: 50%; bottom: 100%; margin-left: -6px; border: 6px solid transparent; border-bottom-color: var(--text); }
  .spot__link:hover .spot__shout, .spot__link:focus-visible .spot__shout { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .spot__link:hover .spot__face { box-shadow: 0 0 0 3px var(--accent), var(--shadow-2); }
}
@media (prefers-reduced-motion: reduce) { .spot__shout { transition: none; } }
