/* Public opportunity page and privacy page. Tokens follow the OFinder App Design System v1.1. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/fonts/ibm-plex-arabic-latin-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/fonts/ibm-plex-arabic-latin-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/fonts/ibm-plex-arabic-arabic-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/fonts/ibm-plex-arabic-arabic-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

/* Latin type (owner, 2026-10-25): Geist for text and controls, Space Grotesk for headings. Neither has
   Arabic letters, so Arabic falls through to IBM Plex Sans Arabic; Cyrillic headings fall back to Geist. */
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-latin-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-latin-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-latin-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
:root {
  color-scheme: light;
  --of-bg: #F4F7F3;
  --of-surface: #FFFFFF;
  --of-surface-2: #EEF3EE;
  --of-text: #18231F;
  --of-muted: #66746D;
  --of-border: #D8E1DC;
  --of-primary: #24735D;
  --of-primary-2: #2F8C70;
  --of-lime: #D8EC9F;
  --of-spark: #1B3D33;
  --of-on-primary: #FFFFFF;
  --of-hero: linear-gradient(135deg, #F4F7F3 0%, #D8EC9F 100%);
  --of-radius: 18px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --of-bg: #0B1210;
  --of-surface: #16221D;
  --of-surface-2: #1E2D26;
  --of-text: #F3F7F4;
  --of-muted: #A7B5AE;
  --of-border: #30453C;
  --of-primary: #2F8C70;
  --of-primary-2: #24735D;
  --of-hero: linear-gradient(135deg, #17372D 0%, #2F8C70 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.pub-body {
  margin: 0; background: var(--of-bg); color: var(--of-text);
  font: 16px/1.6 "Geist", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--of-primary); }
.pub-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 920px; margin: 0 auto; padding: 16px;
}
.pub-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--of-text); text-decoration: none;
  font-weight: 700; font-size: 1.25rem; }
.pub-logo { width: 36px; height: 36px; flex: none; }
.pub-logo-shape { fill: var(--of-lime); }
.pub-logo-spark { fill: var(--of-spark); }
.pub-nav { display: flex; align-items: center; gap: 12px; }
.pub-icon-button, .pub-button {
  font: inherit; border-radius: 999px; border: 1px solid var(--of-border); background: var(--of-surface);
  color: var(--of-text); cursor: pointer; min-height: 44px;
}
.pub-icon-button { width: 44px; }
.pub-main { max-width: 920px; margin: 0 auto; padding: 0 16px 32px; }
.pub-article { display: grid; gap: 16px; }
.pub-hero { border-radius: var(--of-radius); overflow: hidden; background: var(--of-hero); aspect-ratio: 1200 / 630; }
.pub-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.pub-cover-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--of-spark); font-weight: 700; }
:root[data-theme="dark"] .pub-cover-fallback { color: var(--of-lime); }
.pub-cover-fallback .pub-logo { width: 88px; height: 88px; }
.pub-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.25; margin: 6px 0; }
.pub-eyebrow { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--of-muted); }
.pub-chip { background: var(--of-lime); color: var(--of-spark); border-radius: 999px; padding: 2px 12px;
  font-weight: 700; font-size: .85rem; }
.pub-id { font-size: .85rem; }
.pub-org { margin: 0; color: var(--of-muted); font-weight: 700; }
.pub-badge { display: inline-block; color: #1D6FD8; background: rgba(29, 111, 216, .12); border-radius: 999px;
  padding: 0 10px; font-size: .8rem; }
.pub-language-note { background: var(--of-surface-2); border-radius: 12px; padding: 8px 12px; margin: 8px 0 0; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pub-button { padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; }
.pub-primary { background: var(--of-primary); border-color: var(--of-primary); color: var(--of-on-primary);
  font-weight: 700; }
.pub-quiet { background: transparent; }
.pub-button[aria-pressed="true"] { background: var(--of-lime); color: var(--of-spark); border-color: var(--of-lime); }
.pub-status { min-height: 1.5em; color: var(--of-primary); margin: 8px 0 0; }
.pub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.pub-fact { background: var(--of-surface); border: 1px solid var(--of-border); border-radius: 14px; padding: 12px 14px; }
.pub-fact dt { color: var(--of-muted); font-size: .85rem; }
.pub-fact dd { margin: 2px 0 0; font-weight: 700; }
.pub-card { background: var(--of-surface); border: 1px solid var(--of-border); border-radius: var(--of-radius);
  padding: 16px 20px; }
.pub-card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.pub-text { white-space: pre-line; margin: 0; }
.pub-list { margin: 0; padding-inline-start: 1.2em; }
.pub-note { color: var(--of-muted); font-size: .9rem; }
.pub-match { border-color: var(--of-primary); }
.pub-comment { border-top: 1px solid var(--of-border); padding: 10px 0; }
.pub-comment-head { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.pub-comment-meta { color: var(--of-muted); font-weight: 400; font-size: .85rem; }
.pub-comment p { margin: 4px 0; white-space: pre-line; }
.pub-replies { padding-inline-start: 20px; }
.pub-form { display: grid; gap: 8px; margin-top: 12px; }
.pub-form textarea, .pub-form select {
  font: inherit; color: var(--of-text); background: var(--of-bg); border: 1px solid var(--of-border);
  border-radius: 12px; padding: 10px; width: 100%;
}
.pub-dialog { border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface);
  color: var(--of-text); max-width: 520px; width: calc(100% - 32px); }
.pub-dialog::backdrop { background: rgba(11, 18, 16, .6); }
.pub-footer { text-align: center; color: var(--of-muted); padding: 24px 16px 40px; }
.pub-empty { text-align: center; padding-top: 64px; display: grid; gap: 12px; justify-items: center; }
.pub-prose { max-width: 760px; }
.pub-prose h2 { margin-top: 28px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--of-lime); outline-offset: 2px;
}
@media (max-width: 560px) {
  .pub-actions .pub-button { flex: 1 1 140px; }
}

/* Comments: avatar, badges, actions, thread */
.pub-badge { display: inline-flex; align-items: center; gap: 4px; }
.pub-badge-verified { color: #1759B0; background: rgba(29, 111, 216, .12); }
.pub-badge-founder { color: #7A5300; background: rgba(214, 160, 23, .2); }
:root[data-theme="dark"] .pub-badge-verified { color: #8DBBFF; background: rgba(86, 156, 255, .18); }
:root[data-theme="dark"] .pub-badge-founder { color: #F5CF5C; background: rgba(245, 207, 92, .16); }
.pub-badge-icon { font-size: .9em; line-height: 1; }
.pub-comment { display: grid; gap: 6px; scroll-margin-block: 80px; }
.pub-comment:focus { outline: none; }
.pub-comment-head { gap: 10px; }
.pub-comment-who { display: grid; gap: 0; min-width: 0; }
.pub-comment-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pub-comment-name { overflow-wrap: anywhere; }
.pub-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex;
  align-items: center; justify-content: center; background: var(--of-surface-2); border: 1px solid var(--of-border); }
.pub-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-avatar-fallback { background: var(--of-primary); border-color: var(--of-primary); color: var(--of-on-primary);
  font-weight: 700; }
.pub-comment-body { margin: 0; overflow-wrap: anywhere; }
.pub-comment-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.pub-danger { background: #B3261E; border-color: #B3261E; }
.pub-replies { display: grid; gap: 4px; border-inline-start: 2px solid var(--of-border); margin-inline-start: 19px; padding-inline-start: 14px; }
.pub-replies:empty { display: none; }
.pub-reply { border-top: 0; }
.pub-comment-removed .pub-note { margin: 0; font-style: italic; }
.pub-composer-row { display: flex; gap: 10px; align-items: flex-start; }
.pub-composer-row textarea { flex: 1; min-width: 0; }
.pub-threads { display: grid; }
.pub-comment-target { background: rgba(216, 236, 159, .35); border-radius: 12px; box-shadow: 0 0 0 6px rgba(216, 236, 159, .35);
  animation: pub-flash 2.4s ease-out 1; }
:root[data-theme="dark"] .pub-comment-target { background: rgba(47, 140, 112, .25); box-shadow: 0 0 0 6px rgba(47, 140, 112, .25); }
@keyframes pub-flash { from { background: rgba(216, 236, 159, .9); } }
@media (prefers-reduced-motion: reduce) { .pub-comment-target { animation: none; } }

/* Verification seal (static/badge.js): sized to the text it follows. */
.ofv-badge { display: inline-flex; flex: none; align-items: center; margin-inline-start: 4px; font-size: 1.1em; line-height: 1; vertical-align: -0.16em; }
.ofv-badge svg { display: block; width: 1em; height: 1em; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
/* The Founder's gold seal catches the light now and then, as in the app. */
.ofv-badge-gold svg { animation: pub-seal-glint 4.5s ease-in-out infinite; }
@keyframes pub-seal-glint { 0%, 82%, 100% { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); } 90% { filter: drop-shadow(0 0 5px rgba(247, 215, 116, .95)); } }
@media (prefers-reduced-motion: reduce) { .ofv-badge-gold svg { animation: none; } }
/* A member's public ID under the name on the profile page. */
.pub-person-id { margin: 2px 0 0; font-size: .82rem; color: var(--of-muted); letter-spacing: .02em; }

/* Social links in the footer: small, quiet icons that take the brand colour on hover. */
.social-links { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; vertical-align: middle; }
.social-links a { display: inline-grid; place-items: center; width: 28px; height: 28px; color: inherit; border-radius: 8px; opacity: .85; transition: color .15s, background .15s, opacity .15s; }
.social-links a:hover, .social-links a:focus-visible { color: var(--blue, #24735d); background: rgba(36, 115, 93, .1); opacity: 1; }
.social-links svg { display: block; width: 16px; height: 16px; }

/* Motion: the page content rises in once; switched off for reduced motion. */
@keyframes pub-rise { from { opacity: 0; transform: translateY(16px); } }
main > * { animation: pub-rise .55s cubic-bezier(.22, 1, .36, 1) backwards; }
main > *:nth-child(2) { animation-delay: .08s; } main > *:nth-child(3) { animation-delay: .16s; }
.ofv-badge { animation: pub-rise .5s cubic-bezier(.22, 1, .36, 1) .25s backwards; }
@media (prefers-reduced-motion: reduce) { main > *, .ofv-badge { animation: none; } }

/* Public list of open opportunities (/opportunities): explore before creating an account. */
.pub-explore { max-width: 1120px; }
.pub-explore-intro { padding: 28px 24px; margin-bottom: 18px; background: var(--of-hero); border-radius: var(--of-radius); }
.pub-explore-intro h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); }
.pub-explore-intro p { margin: 0 0 16px; max-width: 60ch; line-height: 1.7; }
.pub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pub-filter { padding: 7px 14px; color: var(--of-text); text-decoration: none; font-size: 14px; background: var(--of-surface); border: 1px solid var(--of-border); border-radius: 999px; }
.pub-filter.is-active { color: var(--of-on-primary); background: var(--of-primary); border-color: var(--of-primary); }
.pub-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pub-tile { display: flex; flex-direction: column; height: 100%; color: var(--of-text); text-decoration: none; background: var(--of-surface); border: 1px solid var(--of-border); border-radius: var(--of-radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.pub-tile:hover, .pub-tile:focus-visible { border-color: var(--of-primary); box-shadow: 0 8px 24px rgba(16, 38, 61, .08); }
.pub-tile-cover { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.pub-tile-cover.pub-cover-fallback { display: grid; place-items: center; }
.pub-tile-cover.pub-cover-fallback svg { width: 40px; height: 40px; }
.pub-tile-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.pub-tile-body .pub-eyebrow { margin: 0; }
.pub-tile-body h2 { margin: 0; font-size: 17px; line-height: 1.45; }
.pub-tile-body .pub-org { margin: 0; color: var(--of-muted); font-size: 13.5px; }
.pub-tile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 0; }
.pub-tile-facts div { min-width: 0; }
.pub-tile-facts dt { color: var(--of-muted); font-size: 12px; }
.pub-tile-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.pub-tile-note { margin: 2px 0 0; color: var(--of-muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .pub-tile { transition: none; } }
.pub-original summary { cursor: pointer; color: var(--of-primary); font-weight: 700; }
.pub-original h2 { margin: 12px 0 6px; font-size: 17px; }
.pub-explore-intro .pub-actions .pub-button { white-space: nowrap; }
.pub-header, .pub-nav { min-width: 0; flex-wrap: wrap; }
.pub-org-logo { display: inline-block; vertical-align: middle; margin-inline-end: 8px; object-fit: contain; background: #fff; border: 1px solid var(--of-border); border-radius: 7px; }
.pub-crumbs { margin: 0 0 10px; color: var(--of-muted); font-size: 13px; }
.pub-crumbs a { color: var(--of-muted); }
.pub-countries { margin: 0 0 18px; }
.pub-countries h2 { margin: 0 0 8px; font-size: 16px; }
.pub-countries a { display: inline-block; margin: 0 8px 8px 0; padding: 5px 12px; color: var(--of-text); text-decoration: none; font-size: 13.5px; background: var(--of-surface); border: 1px solid var(--of-border); border-radius: 999px; }

/* Popular searches and questions on list pages (owner, 2026-10-24). */
.pub-searches a { font-size: 13px; }
.pub-faq { margin: 0 0 18px; display: grid; gap: 8px; }
.pub-faq h2 { margin: 0; font-size: 16px; }
.pub-faq details { padding: 10px 14px; background: var(--of-surface); border: 1px solid var(--of-border); border-radius: 12px; }
.pub-faq summary { cursor: pointer; font-weight: 600; }
.pub-faq p { margin: 8px 0 0; line-height: 1.7; }

/* Public community pages (owner, 2026-10-24). */
.pub-community { max-width: 760px; }
.pub-author { display: flex; gap: 10px; align-items: center; }
.pub-author div { display: grid; }
.pub-author small { color: var(--of-muted, #66746d); }
.pub-author-name { display: inline-flex; align-items: center; gap: 2px; }
.pub-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.pub-avatar-letter { display: inline-grid; place-items: center; background: var(--of-surface); border: 1px solid var(--of-border); font-weight: 700; }
.pub-post-body { white-space: pre-line; }
.pub-shared { display: grid; gap: 4px; margin-top: 10px; padding: 12px; border: 1px solid var(--of-border); border-radius: 12px; color: inherit; text-decoration: none; }
.pub-comments, .pub-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pub-replies { margin-block-start: 8px; padding-inline-start: 22px; border-inline-start: 2px solid var(--of-border); font-size: .94em; }
.pub-post-link { display: grid; gap: 4px; color: inherit; text-decoration: none; }

/* Headings: Space Grotesk for Latin, then Geist (Cyrillic) and IBM Plex Sans Arabic. */
.pub-body h1, .pub-body h2, .pub-body h3 { font-family: "Space Grotesk", "Geist", "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: -0.01em; }

/* What a badge means, in small text on a tap (owner, 2026-10-28). */
.ofv-badge[tabindex] { position: relative; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.ofv-badge[tabindex]:focus { outline: none; }
.ofv-badge[tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ofv-badge-tip { position: absolute; z-index: 40; bottom: calc(100% + 7px); left: 50%; display: block; width: max-content; max-width: min(240px, 80vw);
  padding: 5px 9px; color: #fff; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-align: center; white-space: normal;
  background: #16352c; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(calc(-50% + var(--tip-shift, 0px)), 4px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.ofv-badge.is-tip .ofv-badge-tip, .ofv-badge[tabindex]:focus .ofv-badge-tip { opacity: 1; visibility: visible;
  transform: translate(calc(-50% + var(--tip-shift, 0px)), 0); transition: opacity .16s ease, transform .16s ease; }
@media (prefers-reduced-motion: reduce) { .ofv-badge-tip { transition: none; } }
