/* Fintech Growth Jobs - shared SSR + SPA footer styles. All classes namespaced fg-. */
:root {
  --fg-bg: hsl(40 33% 95%);
  --fg-ink: hsl(200 45% 13%);
  --fg-card: hsl(42 40% 98%);
  --fg-line: hsl(38 18% 82%);
  --fg-muted: hsl(200 12% 38%);
  --fg-soft: hsl(38 30% 89%);
  --fg-primary: hsl(200 52% 18%);
  --fg-on-primary: hsl(40 33% 96%);
  --fg-accent: hsl(14 82% 54%);
  --fg-accent-ink: hsl(14 70% 36%);
  --fg-ok: hsl(168 38% 30%);
  --fg-err: hsl(356 68% 42%);
  --fg-serif: 'Fraunces', Georgia, serif;
  --fg-sans: 'Geist', system-ui, sans-serif;
  --fg-mono: 'Geist Mono', ui-monospace, monospace;
  --fg-ease: cubic-bezier(.2,.7,.2,1);
}
.fg-body { margin: 0; background: var(--fg-bg); color: var(--fg-ink); font-family: var(--fg-sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.fg-body *, .fg-footer * { box-sizing: border-box; }
.fg-body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.fg-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .fg-wrap { padding: 0 1.5rem; } }
.fg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fg-skip { position: absolute; left: 1rem; top: -3rem; background: var(--fg-primary); color: var(--fg-on-primary); padding: .5rem 1rem; border-radius: 999px; z-index: 70; }
.fg-skip:focus { top: 1rem; }
.fg-body a, .fg-footer a { color: inherit; }
.fg-body :focus-visible, .fg-footer :focus-visible { outline: 2px solid var(--fg-accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.fg-header { position: sticky; top: 0; z-index: 40; background: hsl(40 33% 95% / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--fg-line); }
.fg-header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.fg-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--fg-serif); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap; }
.fg-brand-dot { width: .6rem; height: .6rem; border-radius: 999px; background: var(--fg-accent); }
.fg-nav { display: flex; gap: .25rem; overflow-x: auto; }
.fg-nav a { text-decoration: none; font-size: .875rem; padding: .45rem .8rem; border-radius: 999px; color: var(--fg-muted); transition: background-color .2s, color .2s; }
.fg-nav a:hover { color: var(--fg-ink); background: var(--fg-soft); }
.fg-nav a[aria-current="page"] { background: var(--fg-primary); color: var(--fg-on-primary); }
@media (max-width: 600px) {
  .fg-header-row { height: auto; min-height: 4rem; flex-wrap: wrap; gap: .65rem; padding-top: .8rem; padding-bottom: .7rem; }
  .fg-nav { width: 100%; flex-wrap: wrap; overflow: visible; }
  .fg-nav a { flex-shrink: 0; padding: .4rem .75rem; }
}

/* Hero */
.fg-hero { border-bottom: 1px solid hsl(38 18% 82% / .7); background-image: repeating-radial-gradient(circle at 85% 20%, transparent 0 22px, hsl(14 82% 54% / .12) 22px 23px); padding: 2.5rem 0 2.25rem; }
@media (min-width: 640px) { .fg-hero { padding: 3.5rem 0 3rem; } }
.fg-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--fg-muted); margin-bottom: 1.25rem; }
.fg-crumbs a { text-decoration: none; }
.fg-crumbs a:hover { color: var(--fg-ink); text-decoration: underline; text-underline-offset: 4px; }
.fg-eyebrow { font-family: var(--fg-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--fg-accent-ink); margin: 0; }
.fg-h1 { font-family: var(--fg-serif); font-weight: 800; font-size: clamp(2.1rem, 5.5vw, 3.75rem); line-height: 1.03; letter-spacing: -.025em; margin: .75rem 0 0; max-width: 52rem; animation: fg-rise .55s var(--fg-ease) both; }
.fg-h1-sub { display: block; font-weight: 400; font-style: italic; color: var(--fg-accent-ink); font-size: .5em; letter-spacing: -.01em; margin-top: .4rem; }
.fg-h1-job { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.fg-count { font-family: var(--fg-mono); font-size: .9rem; color: var(--fg-muted); margin: 1.25rem 0 0; animation: fg-rise .55s var(--fg-ease) .08s both; }
.fg-count b { font-family: var(--fg-serif); font-size: 1.75rem; color: var(--fg-ink); margin-right: .2rem; }
.fg-scope { max-width: 40rem; color: var(--fg-muted); margin: .75rem 0 0; animation: fg-rise .55s var(--fg-ease) .14s both; }
.fg-muted { color: var(--fg-muted); }

/* Layout */
.fg-main { padding-bottom: 3rem; }
.fg-grid { display: grid; gap: 2.5rem; padding-top: 2rem; }
@media (min-width: 900px) { .fg-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; } .fg-col-side { position: sticky; top: 5.5rem; align-self: start; } }
.fg-h2 { font-family: var(--fg-serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 .75rem; }
.fg-section { margin-top: 2.5rem; }
.fg-note { font-size: .8rem; color: var(--fg-muted); margin: .75rem 0 0; }
.fg-note a { text-underline-offset: 4px; }

/* Filters */
.fg-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding: 1rem; border: 1px solid var(--fg-line); border-radius: 1rem; background: var(--fg-card); }
.fg-field { display: grid; gap: .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); font-weight: 500; flex: 1 1 11rem; }
.fg-field select, .fg-field input { font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--fg-ink); background: var(--fg-bg); border: 1px solid hsl(38 18% 78%); border-radius: .75rem; padding: .65rem .8rem; width: 100%; transition: border-color .2s; }
.fg-field select:hover, .fg-field input:hover { border-color: var(--fg-primary); }
.fg-field input[aria-invalid="true"] { border-color: var(--fg-err); }
.fg-clear { font-size: .85rem; color: var(--fg-muted); align-self: center; text-underline-offset: 4px; }
.fg-clear:hover { color: var(--fg-ink); }

/* Buttons */
.fg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid var(--fg-primary); background: var(--fg-primary); color: var(--fg-on-primary) !important; padding: .65rem 1.2rem; border-radius: 999px; transition: transform .15s var(--fg-ease), background-color .2s; }
.fg-btn:hover { background: hsl(200 52% 24%); }
.fg-btn:active { transform: scale(.97); }
.fg-btn:disabled { opacity: .55; cursor: progress; }
.fg-btn-ghost { background: transparent; color: var(--fg-ink) !important; border-color: var(--fg-line); }
.fg-btn-ghost:hover { background: var(--fg-soft); }

/* Jobs */
.fg-jobs { list-style: none; margin: 1rem 0 0; padding: 0; }
.fg-job { border-bottom: 1px solid hsl(38 18% 82% / .8); animation: fg-rise .5s var(--fg-ease) both; }
.fg-job:nth-child(2) { animation-delay: 35ms; } .fg-job:nth-child(3) { animation-delay: 70ms; } .fg-job:nth-child(4) { animation-delay: 105ms; } .fg-job:nth-child(n+5) { animation-delay: 140ms; }
.fg-job-link { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem .75rem; margin: 0 -.75rem; border-radius: .9rem; text-decoration: none; transition: background-color .2s; }
.fg-job-link::before { content: ""; position: absolute; left: 0; top: 1.15rem; bottom: 1.15rem; width: 2px; background: var(--fg-accent); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--fg-ease); }
.fg-job-link:hover, .fg-job-link:focus-visible { background: var(--fg-card); }
.fg-job-link:hover::before, .fg-job-link:focus-visible::before { transform: scaleY(1); }
.fg-job-mark { display: none; flex: none; width: 2.75rem; height: 2.75rem; border-radius: .6rem; background: var(--fg-soft); color: var(--fg-primary); font-family: var(--fg-serif); font-weight: 600; font-size: 1.1rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .fg-job-mark { display: inline-flex; } }
.fg-job-body { flex: 1; min-width: 0; display: block; }
.fg-job-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .75rem; color: var(--fg-muted); }
.fg-job-meta strong { color: var(--fg-ink); font-weight: 500; }
.fg-job-meta time { font-family: var(--fg-mono); }
.fg-job-title { display: block; margin-top: .2rem; font-family: var(--fg-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.fg-job-link:hover .fg-job-title { color: var(--fg-primary); }
.fg-job-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .75rem; }
.fg-job-arrow { flex: none; align-self: center; color: var(--fg-accent); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--fg-ease); }
.fg-job-link:hover .fg-job-arrow, .fg-job-link:focus-visible .fg-job-arrow, .fg-country:hover .fg-job-arrow, .fg-country:focus-visible .fg-job-arrow { opacity: 1; transform: none; }
.fg-tag { display: inline-flex; border-radius: 999px; padding: .12rem .6rem; font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.fg-mode-remote { background: var(--fg-primary); color: var(--fg-on-primary); }
.fg-mode-hybrid { background: hsl(14 82% 54% / .14); color: var(--fg-accent-ink); box-shadow: inset 0 0 0 1px hsl(14 82% 54% / .4); }
.fg-mode-onsite { background: var(--fg-soft); box-shadow: inset 0 0 0 1px var(--fg-line); }
.fg-mode-unspecified { color: var(--fg-muted); box-shadow: inset 0 0 0 1px hsl(200 12% 38% / .4); }
.fg-cat { text-transform: none; letter-spacing: 0; font-size: .72rem; color: var(--fg-primary); background: hsl(200 52% 18% / .05); box-shadow: inset 0 0 0 1px hsl(200 52% 18% / .15); }
.fg-restricted { background: hsl(42 78% 52% / .2); color: hsl(35 70% 26%); }
.fg-elig { color: hsl(200 45% 13% / .85); }
.fg-elig-unknown { color: var(--fg-accent-ink); }
.fg-salary { font-family: var(--fg-mono); color: var(--fg-muted); }

/* Pager */
.fg-pager { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.5rem; align-items: center; }
.fg-pager a, .fg-pager span { min-width: 2.4rem; text-align: center; padding: .45rem .8rem; border-radius: 999px; font-size: .85rem; font-family: var(--fg-mono); text-decoration: none; }
.fg-pager a { border: 1px solid var(--fg-line); transition: background-color .2s, border-color .2s; }
.fg-pager a:hover { background: var(--fg-card); border-color: var(--fg-primary); }
.fg-pager-cur { background: var(--fg-primary); color: var(--fg-on-primary); }
.fg-pager-off { color: hsl(200 12% 38% / .5); }

/* Empty */
.fg-empty { margin-top: 1rem; border: 1px dashed var(--fg-line); border-radius: 1.25rem; padding: 2.25rem 1.5rem; text-align: center; background: hsl(42 40% 98% / .6); }
.fg-empty-h { font-family: var(--fg-serif); font-size: 1.5rem; margin: 0; }
.fg-empty .fg-muted { max-width: 30rem; margin: .5rem auto 1rem; }

/* Side */
.fg-intro p { margin: 0 0 .85rem; color: hsl(200 45% 13% / .88); font-size: .95rem; }
.fg-chips, .fg-related, .fg-countries { list-style: none; margin: 0; padding: 0; }
.fg-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.fg-chip { display: inline-flex; border: 1px solid var(--fg-line); background: var(--fg-card); border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; text-decoration: none; transition: border-color .2s, color .2s; }
a.fg-chip:hover { border-color: var(--fg-accent); color: var(--fg-accent-ink); }
.fg-related { display: grid; gap: .5rem; }
.fg-related a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border: 1px solid var(--fg-line); border-radius: .8rem; background: var(--fg-card); text-decoration: none; transition: border-color .2s, transform .2s var(--fg-ease); }
.fg-related a:hover { border-color: var(--fg-primary); transform: translateX(3px); }
.fg-rel-kind { font-family: var(--fg-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--fg-accent-ink); }
.fg-section .fg-related { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.fg-col-side .fg-related { grid-template-columns: 1fr; }

/* Countries hub */
.fg-countries { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .fg-countries { grid-template-columns: 1fr 1fr; } }
.fg-country { position: relative; display: grid; gap: .3rem; padding: 1.5rem; border: 1px solid var(--fg-line); border-radius: 1.25rem; background: var(--fg-card); text-decoration: none; overflow: hidden; animation: fg-rise .5s var(--fg-ease) both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .2s, transform .25s var(--fg-ease); }
.fg-country:hover { border-color: var(--fg-primary); transform: translateY(-2px); }
.fg-country-code { font-family: var(--fg-mono); font-size: 2.5rem; font-weight: 500; color: hsl(14 82% 54% / .85); line-height: 1; }
.fg-country-name { font-family: var(--fg-serif); font-size: 1.35rem; font-weight: 600; }
.fg-country-desc { font-size: .88rem; color: var(--fg-muted); }
.fg-country .fg-job-arrow { position: absolute; right: 1.5rem; top: 1.5rem; font-size: 1.25rem; }

/* Alert */
.fg-alert { margin-top: 2.5rem; display: grid; gap: 1.25rem; padding: 1.5rem; border-radius: 1.25rem; background: var(--fg-primary); color: var(--fg-on-primary); }
@media (min-width: 760px) { .fg-alert { grid-template-columns: 1fr 1fr; padding: 2rem; } }
.fg-alert .fg-eyebrow { color: hsl(14 90% 72%); }
.fg-alert .fg-h2 { margin-top: .4rem; }
.fg-alert .fg-muted { color: hsl(40 33% 95% / .75); font-size: .9rem; margin: 0; }
.fg-alert-form { display: grid; gap: .85rem; }
.fg-alert .fg-field { color: hsl(40 33% 95% / .75); }
.fg-alert .fg-field input { background: hsl(40 33% 96%); }
.fg-alert .fg-btn { background: var(--fg-accent); border-color: var(--fg-accent); justify-self: start; }
.fg-alert .fg-btn:hover { background: hsl(14 82% 48%); }
.fg-alert :focus-visible { outline-color: hsl(14 90% 72%); }
.fg-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; cursor: pointer; }
.fg-check input { margin-top: .2rem; accent-color: var(--fg-accent); width: 1rem; height: 1rem; }
.fg-check input[aria-invalid="true"] { outline: 2px solid hsl(356 80% 70%); outline-offset: 2px; }
.fg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fg-status { min-height: 1.25rem; margin: 0; font-size: .85rem; }
.fg-status-ok { color: hsl(160 55% 75%); }
.fg-status-error { color: hsl(356 90% 80%); }

/* FAQ */
.fg-faqs { border-top: 1px solid var(--fg-line); }
.fg-faq { border-bottom: 1px solid var(--fg-line); }
.fg-faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-family: var(--fg-serif); font-size: 1.1rem; font-weight: 600; }
.fg-faq summary::-webkit-details-marker { display: none; }
.fg-faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-family: var(--fg-mono); color: var(--fg-accent); transition: transform .25s var(--fg-ease); }
.fg-faq[open] summary::after { transform: rotate(45deg); }
.fg-faq summary:hover { color: var(--fg-primary); }
.fg-faq p { margin: 0 0 1rem; color: var(--fg-muted); max-width: 46rem; }

/* Job detail (crawler fragment) */
.fg-jobdetail { max-width: 48rem; margin: 0 auto; padding: 2.5rem 1rem; font-family: var(--fg-sans); color: var(--fg-ink); }
.fg-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem 1.5rem; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--fg-line); border-radius: 1rem; background: var(--fg-card); }
.fg-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-muted); }
.fg-facts dd { margin: .15rem 0 0; font-size: .92rem; }
.fg-desc { margin: 1.5rem 0; }
.fg-desc p { margin: 0 0 .9rem; }

/* Footer (shared with SPA) */
.fg-footer { margin-top: 4rem; border-top: 1px solid var(--fg-line); background: hsl(38 30% 89% / .45); color: var(--fg-ink); font-family: var(--fg-sans); padding: 2.5rem 0 2rem; }
.fg-foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fg-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .fg-foot-grid { grid-template-columns: repeat(4, 1fr); } }
.fg-foot-h { font-family: var(--fg-mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--fg-accent-ink); margin: 0 0 .75rem; }
.fg-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.fg-foot-col a { font-size: .86rem; color: var(--fg-muted); text-decoration: none; transition: color .2s; }
.fg-foot-col a:hover { color: var(--fg-ink); text-decoration: underline; text-underline-offset: 4px; }
.fg-foot-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--fg-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .8rem; color: var(--fg-muted); }
.fg-foot-base p { margin: 0; max-width: 36rem; }
.fg-foot-base a { text-underline-offset: 4px; }

@keyframes fg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fg-body *, .fg-footer *, .fg-jobdetail * { animation: none !important; transition: none !important; }
}
