/* Far Reach — far-reach.com
   One stylesheet, no framework, no external font. The CSP on every response
   is `default-src 'self'` with `script-src 'none'`, so nothing here may
   reach off-origin and no page carries script. Everything below is layout,
   type and colour. */

:root {
  --ink:        #16211f;
  --ink-soft:   #4a5b58;
  --ink-faint:  #7b8a87;
  --line:       #dde5e3;
  --paper:      #ffffff;
  --wash:       #f4f7f6;
  --deep:       #10312c;
  --accent:     #0f7a68;
  --accent-dim: #0b5d50;
  --warm:       #b9541b;
  --gold:       #b8892b;
  --radius:     10px;
  --shadow:     0 1px 2px rgba(16,49,44,.06), 0 6px 20px rgba(16,49,44,.06);
  --measure:    68ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.6 "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
}

a { color: var(--accent-dim); }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.22; margin: 0 0 .5rem; letter-spacing: -.012em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); }
h3 { font-size: 1.08rem; }
p  { margin: 0 0 .9rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 66px; flex-wrap: wrap;
}
.brand {
  font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em;
  color: var(--deep); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; flex: 1 1 auto; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--deep); border-bottom-color: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* Small engine credit, sits at the right of the sticky header. Hidden on
   narrow screens, where the header already wraps to three rows. */
.powered-by {
  font-size: .72rem; color: var(--ink-soft); opacity: .8;
  letter-spacing: .01em; white-space: nowrap;
}
@media (max-width: 720px) { .powered-by { display: none; } }


/* ---------- buttons ---------- */
.btn, .btn-quiet, .btn-ghost {
  display: inline-block; border-radius: var(--radius); font-weight: 600;
  font-size: .93rem; padding: 9px 17px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: inherit; line-height: 1.4;
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-dim); color: #fff; }
.edit-link { font-size: .8rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; vertical-align: middle; }
.edit-link:hover { color: var(--deep); border-color: var(--deep); }
.edit-inline { margin-bottom: 18px; }
.who { color: var(--ink-soft); font-size: .9rem; margin-right: 10px; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-quiet { background: var(--paper); color: var(--deep); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding-left: 4px; padding-right: 4px; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { background: var(--deep); color: #eaf3f1; padding: 62px 0 54px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { color: #7fd3c1; font-style: normal; }
.hero .lede { color: #b6ccc7; font-size: 1.1rem; max-width: 56ch; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: 46px; align-items: center; }

.searchbar {
  display: flex; gap: 8px; background: var(--paper); padding: 8px;
  border-radius: 12px; margin-top: 22px; box-shadow: var(--shadow);
}
.searchbar input, .searchbar select {
  border: 0; padding: 11px 12px; font: inherit; font-size: .95rem;
  background: transparent; color: var(--ink); min-width: 0;
}
.searchbar input { flex: 1 1 auto; }
.searchbar select { border-left: 1px solid var(--line); }
.searchbar button { flex: 0 0 auto; }
/* The browse pages reuse the hero .searchbar card for an all-category
   search; this is the 'back to everything' link that appears beside it
   once a search is running. */
.searchbar-clear { flex: 0 0 auto; align-self: center; padding-right: 6px;
  font-size: .9rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.searchbar-clear:hover { color: var(--deep); text-decoration: underline; }
.search-note {
  margin: -6px 0 16px; padding: 9px 13px; font-size: .9rem;
  color: var(--ink-soft); background: var(--wash);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.search-note b { color: var(--ink); }

.hero-panel {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 22px 24px;
}
.hero-panel h3 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: #7fd3c1; }
.hero-panel ol { margin: 12px 0 0; padding-left: 20px; color: #cfe2de; }
.hero-panel li { margin-bottom: 9px; }
.hero-panel li b { color: #fff; display: block; font-size: .95rem; }

/* ---------- sections ---------- */
.section { padding-top: 52px; padding-bottom: 52px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.section-head p.sub { color: var(--ink-soft); margin: 0; max-width: var(--measure); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 6px; }
.card h3 a { color: var(--deep); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dim); }
.card p { color: var(--ink-soft); font-size: .94rem; }
.card .meta { color: var(--ink-faint); font-size: .84rem; display: flex; gap: 14px; flex-wrap: wrap; }

.cat-card { display: block; text-decoration: none; color: inherit; }
.cat-card b { display: block; color: var(--deep); font-size: 1rem; margin-bottom: 4px; }
.cat-card span { color: var(--ink-faint); font-size: .86rem; }

/* ---------- job / listing rows ---------- */
.rows { display: flex; flex-direction: column; gap: 14px; }
.row-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.row-card h3 { margin-bottom: 4px; }
.row-card h3 a { color: var(--deep); text-decoration: none; }
.row-card h3 a:hover { color: var(--accent-dim); }
.row-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.row-price { text-align: right; white-space: nowrap; }
.row-price b { display: block; font-size: 1.18rem; color: var(--deep); }
.row-price span { font-size: .8rem; color: var(--ink-faint); }
.row-card .excerpt { color: var(--ink-soft); font-size: .95rem; margin: 8px 0 12px; }

.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.tag {
  font-size: .78rem; background: var(--wash); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.tag-on { background: #e7f4f1; color: var(--accent-dim); border-color: #bfe3db; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 5px;
}
.badge-open  { background: #e7f4f1; color: var(--accent-dim); }
.badge-gold  { background: #fbf1dc; color: var(--gold); }
.badge-warm  { background: #fdeee5; color: var(--warm); }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 3px #e7f4f1; }
.tier .tier-name { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.tier .tier-price { font-size: 1.9rem; font-weight: 700; color: var(--deep); margin: 6px 0 2px; }
.tier .tier-turn { color: var(--ink-faint); font-size: .86rem; margin-bottom: 14px; }
.tier ul { list-style: none; margin: 0 0 18px; padding: 0; }
.tier li { font-size: .9rem; color: var(--ink-soft); padding: 6px 0 6px 22px; position: relative; border-top: 1px solid var(--line); }
.tier li:before { content: "+"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.tier li.off { color: var(--ink-faint); }
.tier li.off:before { content: "-"; color: var(--ink-faint); }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .89rem; margin-bottom: 5px; color: var(--deep); }
.field .hint { font-weight: 400; color: var(--ink-faint); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #bfe3db; outline-offset: 1px; border-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.notice { border-radius: 8px; padding: 11px 14px; font-size: .92rem; margin-bottom: 18px; border: 1px solid; }
.notice-bad  { background: #fdeee5; border-color: #f2cdb8; color: #8d3d12; }
.notice-good { background: #e7f4f1; border-color: #bfe3db; color: var(--accent-dim); }
/* The one a new account lands on. Not a modal - the site serves no JavaScript
   (script-src 'none'), which is also why the card form lives on Stripe's
   domain - so it earns attention by size and position instead. */
.notice-big { padding: 20px 22px; font-size: 1rem; margin-bottom: 22px; }
.notice-big strong { display: block; font-size: 1.12rem; margin-bottom: 6px; }
.notice-big .notice-sub { display: block; margin-top: 8px; font-size: .9rem; opacity: .85; }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts li:last-child { border-bottom: 0; }
.facts b { color: var(--deep); font-weight: 600; text-align: right; }
.facts span { color: var(--ink-faint); }
.prose { max-width: var(--measure); color: var(--ink-soft); }
.prose p { margin-bottom: .85rem; }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--paper); }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.data th { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- empty ---------- */
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--ink-faint); }
.empty b { display: block; color: var(--deep); margin-bottom: 6px; font-size: 1.02rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #9fb8b3; padding: 42px 0 32px; margin-top: 48px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9fb8b3; text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #7fd3c1; }
.site-footer .colophon { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .84rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .detail { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .tiers  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .searchbar { flex-wrap: wrap; }
  .searchbar input, .searchbar select { width: 100%; }
  .searchbar select { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; }
  .row-top { flex-direction: column; }
  .row-price { text-align: left; }
}

/* House promotions - our own other properties. Rendered from promo_links, so
   the markup here is the only part that is fixed. Deliberately quiet: this is
   a band between the page and the footer, not something that competes with
   the work someone came here to do. */
.promo-band { border-top: 1px solid var(--line); background: var(--wash); }
.promo-band .wrap { padding-top: 18px; padding-bottom: 18px; }
.promo-item {
  display: flex; align-items: center; justify-content: center;
  gap: 8px 16px; flex-wrap: wrap; text-align: center;
}
.promo-item + .promo-item { margin-top: 10px; }
.promo-tag {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  font-weight: 700; color: var(--ink-faint); white-space: nowrap;
}
.promo-text { color: var(--ink-soft); font-size: .93rem; max-width: 62ch; }
.promo-go {
  font-weight: 600; font-size: .93rem; color: var(--accent-dim);
  text-decoration: none; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.promo-go:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* The wider slot on the browse pages. Sits in the page flow as a card, and
   says what it is - an ad for our own product - rather than pretending to be
   one of the listings around it. */
.promo-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 20px 22px; margin: 24px 0;
}
.promo-card .promo-tag { display: block; margin-bottom: 6px; }
.promo-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--deep); }
.promo-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; max-width: var(--measure); }

/* The house promotion inside the hero. It reuses .hero-panel's shape so it
   reads as a sibling of the panel above it rather than as something bolted
   into the green, and stacks under it in the same column. Slightly dimmer
   than the panel: it is an ad, and it should not out-shout the product it is
   sitting next to. */
.promo-hero { margin-top: 14px; background: rgba(255,255,255,.045); }
.promo-hero p { margin: 10px 0 12px; color: #cfe2de; font-size: .93rem; }
.promo-hero-go {
  display: inline-block; font-weight: 600; font-size: .92rem;
  color: #7fd3c1; text-decoration: none;
  border-bottom: 1px solid rgba(127,211,193,.45);
}
.promo-hero-go:hover { color: #fff; border-bottom-color: #fff; }

/* The hero column holds two boxes now, so stop vertically centring the row -
   the panel and the promotion should sit top-aligned against the copy on the
   left rather than floating in the middle of it. */
.hero-grid { align-items: start; }

/* The breakdown under a client's total. Small and quiet: the number is the
   headline, and this is the arithmetic behind it for anyone who wants to
   check it rather than take it on trust. */
.pay-breakup {
  display: block; margin-top: 3px; font-size: .78rem;
  color: var(--ink-faint); white-space: normal; line-height: 1.45;
}

/* The cost breakdown a client sees before funding a milestone. Laid out as
   lines that add up, because a total on its own asks to be trusted and a
   total with its parts can be checked. */
.pay-summary {
  margin: 14px 0 0; padding: 14px 16px; background: var(--wash);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pay-line { display: flex; justify-content: space-between; gap: 18px; padding: 4px 0; font-size: .92rem; }
.pay-line span { color: var(--ink-soft); }
.pay-line b { color: var(--deep); white-space: nowrap; }
.pay-total { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 1rem; }
.pay-total b { font-size: 1.1rem; }
.pay-note { margin: 9px 0 0; font-size: .8rem; color: var(--ink-faint); }

/* Profile photos and the dashboard profile menu (2026-09-15). */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); flex: 0 0 auto; }
.avatar-lg { width: 72px; height: 72px; }
.id-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.menu { list-style: none; margin: 0 0 12px; padding: 0; }
.menu li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.menu li:last-child { border-bottom: 0; }
.menu a { font-weight: 600; text-decoration: none; color: var(--deep); }
.menu a:hover { text-decoration: underline; }
.talent-list { display: flex; flex-direction: column; gap: 12px; }
.talent-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; }
.talent-row .talent-body { flex: 1 1 auto; min-width: 0; }
.talent-row .talent-go { margin: 0; flex: 0 0 auto; align-self: center; }
.talent-pitch { margin: 0 0 8px; color: var(--ink); font-size: .98rem; }
@media (max-width: 640px) { .talent-row { flex-wrap: wrap; } .talent-row .talent-go { width: 100%; } }
.group-head { font-size: 1.05rem; margin: 18px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--line); color: var(--deep); }
.talent-list .group-head:first-child { margin-top: 0; }

/* What kind of hire a freelancer is open to, on the talent row */
.offer-tag{display:inline-block;padding:2px 8px;border-radius:999px;background:#e6f4f1;color:var(--accent-dim);font-size:.82rem;font-weight:600}
/* Below the search card, never under it: the card has a shadow and its own
   margin, so the row starts clear of both. */
.offer-filters{margin:16px 0 20px;font-size:.92rem;color:var(--ink-soft)}
.offer-form{display:flex;gap:10px 18px;flex-wrap:wrap;align-items:center;margin:0}
.offer-label{font-weight:600;color:var(--ink)}
.offer-form .btn-quiet{padding:6px 14px}
.offer-filters label{display:inline-flex;gap:6px;align-items:center;cursor:pointer}

/* Resume search for companies and agencies: the words around the term */
.talent-snip{margin:4px 0 6px;font-size:.86rem;color:var(--ink-soft);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f6f8f7;padding:6px 10px;border-radius:8px}
.tag-ok{display:inline-block;padding:2px 8px;border-radius:999px;background:#e7f4f1;color:var(--accent-dim);font-size:.8rem;font-weight:600}
.tag-wait{display:inline-block;padding:2px 8px;border-radius:999px;background:#fbf1dc;color:var(--gold);font-size:.8rem;font-weight:600}
.score{display:inline-block;min-width:44px;text-align:center;padding:3px 8px;border-radius:8px;background:#e7f4f1;color:var(--accent-dim);font-weight:700}

/* Passwords: red when the two differ, green when they match, and the eye. */
.notice-error { background: #fdecec; border-color: #f3b9b9; color: #b3261e; font-weight: 600; }
.field-error  { margin: 6px 0 0; color: #b3261e; font-size: .9rem; font-weight: 600; }
.field-ok     { margin: 6px 0 0; color: #1e7a3c; font-size: .9rem; font-weight: 600; }
.pw-live:empty { display: none; }
input.input-error { border-color: #b3261e !important; box-shadow: 0 0 0 1px #b3261e; }
input.input-ok    { border-color: #1e7a3c !important; box-shadow: 0 0 0 1px #1e7a3c; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
          border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
          padding: 6px; line-height: 0; border-radius: 6px; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--ink); background: rgba(0,0,0,.05); }

/* Signup: the fee panel for the role chosen in the form, and only that one.
   Done with :has() so it follows the choice without a script. A browser
   without :has() shows every panel rather than none. */
.fee-for { display: none; }
form:has(#role option[value=freelancer]:checked) .fee-freelancer,
form:has(#role option[value=client]:checked) .fee-client,
form:has(#role option[value=both]:checked) .fee-both,
form:has(#role option[value=company]:checked) .fee-company,
form:has(#role option[value=agency]:checked) .fee-agency { display: block; }
@supports not selector(:has(a)) { .fee-for { display: block; } }

/* The dashboard photo, and the red line when a freelancer has none. */
.avatar-xl { width: 96px; height: 96px; }
.photo-missing { margin: 6px 0 0; color: #b3261e; font-weight: 600; font-size: .95rem; }
.photo-missing a { color: #b3261e; text-decoration: underline; }

/* Signup: the organisation name only for a company or a job agency. */
.org-field { display: none; }
form:has(#role option[value=company]:checked) .org-field,
form:has(#role option[value=agency]:checked) .org-field { display: block; }
@supports not selector(:has(a)) { .org-field { display: block; } }

/* Category chips above a listing: clear of the first heading below them.
   (An inline style did this; the CSP's style-src 'self' refuses those.) */
.tags-filter { margin-bottom: 22px; }
.tags-filter .tag { text-decoration: none; }
/* The details line on a talent row, spaced as it is on a card. */
.talent-row .meta { color: var(--ink-faint); font-size: .84rem; display: flex; gap: 6px 14px; flex-wrap: wrap; }

/* The listing period on a job, for its owner. */
.listing-note { margin: 0 0 14px; }
.listing-note form { display: inline; }

/* Signup: who should register as a job agency. */
.role-note { margin: 0 0 16px; font-size: .88rem; }

/* Payout profiles: the fields for the chosen kind, country and sender. */
.payout-form .pf-bank, .payout-form .pf-phone, .payout-form .pf-other,
.payout-form .pf-us, .payout-form .pf-iban, .payout-form .pf-ussn { display: none; }
#payout-form:has(#pcountry option[value=US]:checked) .pf-ussn,
#payout-form:has(#ptype option[value=bank]:checked) .pf-bank,
#payout-form:has(#ptype option[value=phone]:checked) .pf-phone,
#payout-form:has(#ptype option[value=bank]:checked):has(#psender-bank option[value=other]:checked) .pf-other,
#payout-form:has(#ptype option[value=phone]:checked):has(#psender-phone option[value=other]:checked) .pf-other,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=US]:checked) .pf-us { display: block; }
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=AD]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=AE]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=AL]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=AT]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=AZ]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=BA]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=BE]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=BG]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=BH]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=BR]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=BY]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=CH]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=CR]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=CY]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=CZ]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=DE]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=DK]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=DO]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=EE]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=EG]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=ES]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=FI]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=FO]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=FR]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=GB]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=GE]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=GI]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=GL]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=GR]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=GT]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=HR]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=HU]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=IE]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=IL]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=IQ]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=IS]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=IT]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=JO]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=KW]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=KZ]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=LB]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=LC]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=LI]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=LT]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=LU]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=LV]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=LY]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=MC]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=MD]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=ME]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=MK]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=MR]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=MT]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=MU]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=NL]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=NO]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=PK]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=PL]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=PS]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=PT]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=QA]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=RO]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=RS]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SA]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SC]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SD]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SE]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SI]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SK]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SM]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=ST]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=SV]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=TL]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=TN]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=TR]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=UA]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=VA]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=VG]:checked) .pf-iban,
#payout-form:has(#ptype option[value=bank]:checked):has(#pcountry option[value=XK]:checked) .pf-iban { display: block; }
@supports not selector(:has(a)) {
  .payout-form .pf-bank, .payout-form .pf-phone, .payout-form .pf-other,
  .payout-form .pf-us, .payout-form .pf-iban, .payout-form .pf-ussn { display: block; }
}
.pay-actions { white-space: nowrap; }
.payself { margin: 14px 0 0; }
.payself h3 { margin: 0 0 6px; }
.payself p { margin: 0 0 10px; }
.payself-form .field input { max-width: 220px; }
.payself-form .field .hint { display: block; margin: 4px 0 0; }
.income-panel { margin-bottom: 18px; }
.income-label { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.income-amount { margin: 4px 0 0; font-size: 2rem; font-weight: 700; color: var(--deep); }
.income-note { margin: 10px 0 0; color: var(--ink-soft); font-size: .88rem; }
.current-payout { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.current-payout h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.current-payout p { margin: 0; }
.payout-delete { border-top: 1px solid var(--line); margin: 18px 0 0; padding: 14px 0 0; }
.payout-delete h4 { margin: 0 0 4px; }
.payout-delete p { margin: 0 0 8px; }
.payout-delete .check { display: inline-flex; gap: 6px; align-items: center; margin-right: 10px; }
.payout-buttons { margin: 14px 0 0; }
.payout-form-title { margin: 18px 0 8px; }
.btn-danger { display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid #b3261e;
  background: #b3261e; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: #8f1d17; }
.current-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.current-pick select { max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pay-actions form { display: inline; margin: 0; }
/* The payout profile on each withdrawal in the operator's list. */
.payout-profile-box { margin: 10px 0 0; }
.payout-profile-box summary { cursor: pointer; font-weight: 600; }
.payout-profile table.data th { text-align: left; padding-right: 14px; white-space: nowrap; }

/* Your messages: the dashboard inbox and outbox. */
.mailbox { margin-bottom: 18px; }
.mailbox-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.mailbox-head h3 { margin: 0; }
.mailbox-tabs { display: flex; gap: 4px; margin: 12px 0 10px; border-bottom: 1px solid var(--line); }
.mailbox-tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mailbox-tabs a.on { color: var(--deep); border-bottom-color: var(--accent); font-weight: 600; }
.mail-count { display: inline-block; background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .78rem; margin-left: 4px; }
.mailbox-table tr.mail-unread td { font-weight: 600; }
.mailbox-table td a { color: inherit; }
.mailbox-empty { margin: 6px 0 0; }
.chat-list { list-style: none; margin: 0; padding: 0; }
.chat-list li { border-bottom: 1px solid var(--line); }
.chat-list li:last-child { border-bottom: 0; }
.chat-list a { display: flex; gap: 12px; align-items: center; padding: 10px 4px; text-decoration: none; color: inherit; }
.chat-list a:hover { background: #f4faf9; }
.chat-avatar { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-when { color: var(--ink-faint); font-size: .8rem; white-space: nowrap; }
.chat-subject { color: var(--ink-soft); font-size: .8rem; }
.chat-line { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread .chat-line { color: var(--ink); font-weight: 600; }
.chat-badge { flex: 0 0 auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
/* A conversation, as chat bubbles. */
.chat-thread { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; background: var(--paper, #fff); border: 1px solid var(--line); }
.bubble.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: #dff3ee; border-color: #bfe3db; border-bottom-right-radius: 4px; }
.bubble-who { font-size: .78rem; font-weight: 600; color: var(--accent-dim); margin: 0 0 2px; }
.bubble-body p { margin: 0 0 6px; }
.bubble-body p:last-child { margin: 0; }
.bubble-meta { font-size: .74rem; color: var(--ink-faint); text-align: right; margin: 4px 0 0; }
.bubble-file { margin: 6px 0 0; font-size: .9rem; }
.chat-compose { position: sticky; bottom: env(safe-area-inset-bottom, 0px); background: var(--paper, #fff);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; gap: 8px; align-items: flex-end; }
.chat-compose textarea { flex: 1; min-height: 44px; max-height: 160px; resize: vertical; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; font: inherit; }
.chat-extra { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.chat-photo { object-fit: cover; background: var(--line); }
.chat-avatar-lg { flex-basis: 56px; width: 56px; height: 56px; font-size: 1.4rem; }
img.chat-avatar { width: 42px; }
img.chat-avatar-lg { width: 56px; }
.chat-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head h1 { font-size: 1.6rem; margin: 0; }
.chat-head .hint { margin: 2px 0 0; }
.chat-divider { text-align: center; margin: 10px 0 2px; font-size: .78rem; color: var(--ink-soft); }
.chat-divider span { background: var(--line); border-radius: 10px; padding: 3px 10px; }
.chat-pick { display: block; margin: 0 0 6px; font-size: .86rem; color: var(--ink-soft); }
.chat-pick select { max-width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
/* Get in touch on a freelancer's profile: a message box without script. */
.touch-box { margin: 12px 0 10px; }
.touch-box > summary { list-style: none; display: block; width: 100%; text-align: center; cursor: pointer; }
.touch-box > summary::-webkit-details-marker { display: none; }
.touch-box[open] > summary { margin-bottom: 12px; }
.touch-box label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
.touch-box textarea { width: 100%; min-height: 130px; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; resize: vertical; box-sizing: border-box; }
.touch-box .hint { margin: 6px 0 10px; }
.touch-post { display: block; text-align: center; }
.invite-box > summary { margin: 0; }
.invite-jobs { list-style: none; margin: 0 0 10px; padding: 0; }
.invite-jobs li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.invite-jobs label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0; }
.invite-jobs .invite-done { color: var(--ink-soft); }
/* The freelancer's Client invites. */
.invites-panel { margin-bottom: 18px; }
.invites-panel h3 { margin: 0 0 8px; }
.invite-list { list-style: none; margin: 0; padding: 0; }
.invite-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.invite-list li:last-child { border-bottom: 0; }
.invite-job { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; flex: 1; min-width: 200px; }
.invite-job:hover b { text-decoration: underline; }
.invite-note { color: var(--ink-soft); font-size: .88rem; font-style: italic; }
.invite-side { display: flex; gap: 8px; align-items: center; }
.invite-new .invite-job b { color: var(--deep); }
.invite-notice { margin: 0 0 14px; }
@media (max-width: 600px) {
  .invite-list li { flex-direction: column; align-items: flex-start; }
  .invite-job { min-width: 0; }
}
/* Phones: a wide table must not stretch the page past the screen. The
   column may shrink, and a data table scrolls sideways inside it. */
@media (max-width: 900px) {
  .detail > * { min-width: 0; }
  .detail table.data { display: block; overflow-x: auto; max-width: 100%; }
}
