/* Kit v3 Opportunities (owner ruling R74). Tokens from v3.css only. Logical properties, so the page works right to left. */
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
textarea { font: inherit; color: inherit; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* Facets */
.op-fac { inset-block: 76px 12px; inset-inline-start: 76px; width: 380px; z-index: 14; display: none; }
.op-fac.open { display: flex; }
.op-fac .panel__hd { display: flex; align-items: center; justify-content: space-between; padding-block: 14px 12px; }
.fg { padding: 12px 14px 6px; border-block-end: 1px solid var(--line); }
.fg:last-child { border-block-end: 0; }
.fg__h { display: flex; justify-content: space-between; align-items: center; margin-block-end: 6px; }
.fg__h button { border: 0; background: none; color: var(--ink-3); font-size: 11.5px; padding: 0; }
.fg__h button:hover { color: var(--ink); }
.fo { width: 100%; display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 9px; align-items: center; height: 30px; padding-inline: 6px; margin-inline: -6px; width: calc(100% + 12px); border: 0; border-radius: var(--r); background: transparent; color: var(--ink); text-align: start; font-size: 12.5px; }
.fo:hover { background: var(--bg-2); }
.fo i { width: 14px; height: 14px; border-radius: var(--r); border: 1.5px solid var(--ink-3); display: grid; place-items: center; }
.fo[aria-pressed="true"] i { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fo span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fo b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 12px; display: flex; gap: 6px; align-items: baseline; }
.fo b small { color: var(--ink-3); font-weight: 400; font-size: 11px; }
.fo[data-zero="1"] span, .fo[data-zero="1"] b { color: var(--ink-3); }
.fg__more { border: 0; background: none; color: var(--ink-2); font-size: 12px; padding: 4px 0 6px; }
.prog { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.prog span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Centre: search and results */
.op-c { position: absolute; z-index: 10; inset-block: 76px 12px; inset-inline-start: 76px; width: 380px; display: flex; flex-direction: column; min-height: 0; }
.op-hd { padding: 14px; }
.q { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding-inline: 16px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line-2); }
.q:focus-within { border-color: var(--ink-3); }
.q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 16px/1 var(--f); letter-spacing: -.01em; }
.q input::placeholder { color: var(--ink-3); }
.q svg { flex: none; color: var(--ink-3); }
.q .x[hidden] { display: none; }
.q .x { border: 0; background: transparent; color: var(--ink-3); padding: 4px; display: grid; }
.op-c .stats { grid-template-columns: repeat(2, minmax(0,1fr)); margin-block-start: 12px; }
.op-c .stat b { font-size: 28px; }
.op-c .stat small { color: var(--ink-3); font-size: 11px; display: block; margin-block-start: 1px; }
.stat--sel { box-shadow: inset 0 2px 0 var(--red); }
.tb { display: flex; align-items: center; gap: 6px; margin-block-start: 12px; flex-wrap: wrap; }
.tb .grow { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tb .grow::-webkit-scrollbar { display: none; }
.tb .grow:empty { display: none; }
.tb .grow:not(:empty) { flex-basis: 100%; order: 9; }
.tb .sel { margin-inline-start: auto; }
.op-insp .panel__hd .eyebrow { padding-inline-end: 40px; line-height: 1.35; }
.tb .btn { height: 32px; font-size: 12.5px; padding-inline: 10px; }
.tb .seg { padding: 2px; }
.tb .seg button { height: 26px; padding-inline: 10px; }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; height: 32px; padding-inline: 10px 26px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }
.sel::after { content: ""; position: absolute; inset-inline-end: 10px; inset-block-start: 12px; width: 6px; height: 6px; border-inline-end: 1.5px solid var(--ink-3); border-block-end: 1.5px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; }
.sel select option { background: var(--bg-1); color: var(--ink); }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 9px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill svg { color: var(--ink-3); }
.pill:hover svg { color: var(--ink); }
.lock { color: var(--ink-3); }
.op-res { flex: 1; min-height: 0; overflow: auto; padding: 0 14px 14px; scrollbar-width: thin; }
.op-res__h { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 10px; }
.op-res__h .eyebrow b { color: var(--ink); margin-inline-start: 6px; }
.grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.oc { display: flex; flex-direction: column; gap: 6px; text-align: start; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); color: inherit; }
.oc:hover { border-color: var(--line-2); }
.oc[aria-selected="true"] { border-color: var(--red); background: var(--red-soft); }
.oc__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc__ty { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.oc__ty i { width: 7px; height: 7px; border-radius: var(--r); background: var(--ink-2); }
.oc[data-prov="notice"] .oc__ty i { background: transparent; border: 1.5px solid var(--ink-3); }
.cd { font: 500 11.5px/1 var(--f); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd b { color: var(--ink); font-weight: 600; }
.oc__t { font: 600 14px/1.3 var(--f); letter-spacing: -.005em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.oc__t mark, .pal__list mark { background: var(--red-soft); color: inherit; border-radius: var(--r); padding-inline: 1px; }
.oc__m { color: var(--ink-3); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc__f { margin-block-start: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block-start: 8px; border-block-start: 1px solid var(--line); }
.oc__f small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chip--sm { height: 20px; padding-inline: 7px; font-size: 11px; }
.chip--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { padding: 18px; border-radius: var(--r); border: 1px dashed var(--line-2); display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; margin-block-end: 12px; }
.empty > b { grid-row: span 2; font: 600 44px/1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.empty > span { font-weight: 600; font-size: 14px; }
.empty > small { color: var(--ink-3); }
.empty > .btn { grid-row: 1 / span 2; grid-column: 3; }
.portals { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin-block-end: 14px; }
.portal { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); color: inherit; text-decoration: none; }
.portal:hover { border-color: var(--line-2); }
.portal .iso { width: 34px; height: 34px; border-radius: var(--r); background: var(--bg-3); display: grid; place-items: center; font: 500 10.5px/1 var(--m); color: var(--ink-2); }
.portal b { display: block; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.portal small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mapnote { position: absolute; z-index: 9; inset-block-end: 16px; inset-inline-start: 468px; padding: 10px 12px; border-radius: var(--r); font-size: 12px; display: flex; gap: 14px; align-items: center; }
.mapnote b { font: 600 18px/1 var(--f); font-variant-numeric: tabular-nums; margin-inline-end: 4px; }
.mapnote span { color: var(--ink-3); }

/* Inspector */
.op-insp { inset-block: 76px 12px; max-height: none; }
.op-insp[hidden] { display: flex; }
.isec { padding: 14px 16px 0; }
.isec > .eyebrow { display: block; margin-block-end: 8px; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.kv div { background: var(--bg-1); padding: 10px; min-width: 0; }
.kv b { display: block; font: 600 15px/1.2 var(--f); letter-spacing: -.01em; overflow-wrap: break-word; }
.kv span { display: block; margin-block-start: 5px; color: var(--ink-3); font-size: 11.5px; }
.li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding: 6px 0; border-block-start: 1px solid var(--line); font-size: 12.5px; }
.li:first-of-type { border-block-start: 0; }
.li svg { color: var(--ink-3); margin-block-start: 1px; }
.bars { display: flex; flex-direction: column; gap: 2px; }
.bar2 { width: 100%; display: grid; grid-template-columns: 92px minmax(0,1fr) 64px; gap: 10px; align-items: center; padding: 5px 6px; margin-inline: -6px; width: calc(100% + 12px); border: 0; border-radius: var(--r); background: transparent; color: inherit; text-align: start; font-size: 12.5px; }
.bar2:hover { background: var(--bg-2); }
.bar2 .tr { height: 6px; border-radius: var(--r); background: var(--bg-3); overflow: hidden; display: flex; }
.bar2 .tr i { display: block; height: 100%; background: var(--pastel); background-repeat: no-repeat; }
.bar2 .tr u { display: block; height: 100%; background: var(--pastel); background-repeat: no-repeat; opacity: .45; text-decoration: none; }
.bar2 b { font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.bar2 b small { color: var(--ink-3); font-weight: 400; }
.legend2 { display: flex; gap: 14px; color: var(--ink-3); font-size: 11.5px; margin-block-start: 8px; }
.legend2 i { display: inline-block; width: 10px; height: 6px; border-radius: var(--r); background: var(--pastel); margin-inline-end: 6px; vertical-align: middle; }
.legend2 u { display: inline-block; width: 10px; height: 6px; border-radius: var(--r); background: var(--pastel); opacity: .45; margin-inline-end: 6px; vertical-align: middle; }
.acct { margin: 14px 16px 0; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct b { font: 600 22px/1 var(--f); font-variant-numeric: tabular-nums; display: block; }
.acct span { color: var(--ink-3); font-size: 11.5px; }
.acct .btn { grid-column: 1 / -1; justify-content: center; }
.crow { width: calc(100% + 16px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; margin-inline: -8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; color: inherit; text-decoration: none; font-size: 12.5px; }
.crow:hover { background: var(--bg-2); }
.crow span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Post an opportunity: a reviewed form panel */
.post { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }
:root[data-theme="light"] .post { background: rgba(0,0,0,.2); }
.post[hidden] { display: none; }
.post__box { position: absolute; inset-block: 76px 12px; inset-inline-end: 12px; width: min(760px, calc(100% - 24px)); display: grid; grid-template-columns: minmax(0,1fr) 248px; overflow: hidden; background: var(--glass-2); }
.post__form { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--line); }
.post__hd { padding: 16px 18px 12px; border-block-end: 1px solid var(--line); position: relative; }
.post__hd h2 { margin: 6px 0 10px; font: 600 22px/1.2 var(--f); letter-spacing: -.01em; }
.post__hd .x { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
.post__bd { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.post__ft { padding: 12px 18px; border-block-start: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.post__ft small { flex: 1; color: var(--ink-3); font-size: 11.5px; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld--w { grid-column: 1 / -1; }
.fld label { font-weight: 500; font-size: 12.5px; display: flex; justify-content: space-between; gap: 6px; }
.fld label small { color: var(--ink-3); font-weight: 400; }
.fld input, .fld textarea, .fld select { width: 100%; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-1); color: var(--ink); font-size: 13px; outline: 0; }
.fld select { appearance: none; -webkit-appearance: none; }
.fld textarea { resize: vertical; min-height: 64px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--ink-3); }
.fld .help { color: var(--ink-3); font-size: 11px; }
.fld input:invalid:not(:placeholder-shown) { border-color: var(--red); }
.post__side { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: auto; background: var(--bg-1); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 6px 0; }
.steps li::before { content: ""; position: absolute; inset-inline-start: 8px; inset-block: 0; width: 1px; background: var(--line-2); }
.steps li:first-child::before { inset-block-start: 14px; }
.steps li:last-child::before { inset-block-end: calc(100% - 14px); }
.steps i { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--bg-1); margin-block-start: 1px; }
.steps li:first-child i { border-color: var(--ink); background: var(--ink); }
.steps b { font-weight: 600; font-size: 12.5px; display: block; }
.steps small { color: var(--ink-3); font-size: 11.5px; display: block; }
.toast { position: fixed; z-index: 60; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%); padding: 10px 14px; border-radius: var(--r); font-size: 13px; max-width: calc(100% - 24px); }
[dir="rtl"] .toast { transform: translateX(50%); }
.toast[hidden] { display: none; }
.phone-only { display: none !important; }

@media (max-width: 1240px) {
  .op-insp { display: none; }
  .op-insp.open { display: flex; z-index: 30; }
  .op-insp.open[hidden] { display: none; }
}
@media (max-width: 760px) {
  .phone-only { display: inline-flex !important; }
  .op-fac.open { display: flex; inset: auto 8px 8px !important; height: 62vh; width: auto !important; z-index: 31; }
  .op-c { inset: auto 8px 8px; width: auto; height: 62vh; border-radius: var(--r); }
  .op-hd { padding: 10px; }
  .q { height: 48px; }
  .q input { font-size: 16px; }
  .op-c .stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .op-c .stat { padding: 8px; }
  .op-c .stat b { font-size: 20px; }
  .op-c .stat span { font-size: 10.5px; margin-block-start: 4px; }
  .op-c .stat small { display: none; }
  .tb .hide-s, .tb .lbl { display: none; }
  .op-res { padding: 0 10px 10px; }
  .grid { grid-template-columns: 1fr; }
  .empty { grid-template-columns: auto 1fr; }
  .empty > .btn { grid-column: 1 / -1; grid-row: auto; justify-content: center; }
  .op-insp.open { inset-inline: 8px; width: auto; inset-block: auto 8px; max-height: 70vh; }
  .post__box { inset: 0; width: 100%; border-radius: 0; grid-template-columns: 1fr; }
  .post__side { display: none; }
  .post__bd { grid-template-columns: 1fr; }
  .mapnote { display: none; }
}

/* Flags (SPINE.flag) where a place is named */
.fo span .fl, .oc__m .fl { width: 18px; height: 12px; margin-inline-end: 6px; vertical-align: -2px; }
.pill .fl { width: 18px; height: 12px; }
.kv b.kv--fl { overflow-wrap: normal; }
.kv b.kv--fl .fl { width: 18px; height: 12px; margin-inline-end: 6px; vertical-align: -1px; }
.kv b.kv--fl span { display: inline; margin: 0; color: inherit; font-size: inherit; }
/* Mixed Latin figures read in their own order right to left */
.oc__f small, .fo b small { unicode-bidi: plaintext; }
.portal .iso--fl { background: none; }

/* The platform rail floats on the inline end: panels anchored there clear it */
.has-rail-end .post__box { inset-inline-end: 76px; width: min(760px, calc(100% - 160px)); }
@media (max-width: 760px) {
  .has-rail-end .post__box { inset: 0; width: 100%; }
}

/* The reader's context: a line that says for which place the results are ranked */
.forln { padding: 0 2px 10px; }
[dir="rtl"] .op-c .stat small, [dir="rtl"] .oc__m { unicode-bidi: plaintext; text-align: right; }

/* Inspector chips and palette icons (moved from inline styles) */
.op-chips { display: flex; gap: 6px; margin-block-start: 10px; flex-wrap: wrap; }
.op-pi { color: var(--ink-3); }
.op-fbtns { display: flex; gap: 6px; }
.op-sbtn { height: 28px; font-size: 12px; }
