@font-face { font-family: Inter; src: url("inter.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  background: #f5f3ed;
  color: #162c24;
  --ink: #162c24;
  --muted: #465950;
  --paper: #fffdf7;
  --green: #193b30;
  --lime: #e0efaa;
  --line: #d7ddd0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7a49c5; outline-offset: 3px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; background: var(--paper); transform: translateY(-160%); z-index: 3; }
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1176px, calc(100% - 64px)); margin-inline: auto; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.25rem; font-weight: 760; letter-spacing: -.055em; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; background: var(--green); color: var(--lime); font-size: 21px; font-style: normal; }
nav a, .site-footer > div > a:last-child { font-size: .88rem; font-weight: 630; text-decoration: none; }
nav a:hover, .site-footer > div > a:last-child:hover { text-decoration: underline; }
nav a span { margin-left: 3px; }

.hero { display: grid; grid-template-columns: 1.08fr .92fr; margin-block: 34px 26px; border-radius: 22px; background: var(--green); color: var(--paper); }
.hero-copy { min-width: 0; padding: clamp(28px, 5.2vw, 67px); }
.hero h1 { margin: 0; font-size: clamp(2.7rem, 4.85vw, 4.8rem); line-height: .98; font-weight: 720; letter-spacing: -.075em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-intro { max-width: 33ch; margin: 18px 0 28px; color: #dce5db; font-size: clamp(.98rem, 1.5vw, 1.08rem); line-height: 1.55; }
.hero-photo { overflow: hidden; border-radius: 0 22px 22px 0; }
.hero-photo img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 58% 50%; }

.country-form { max-width: 500px; }
.country-form label { display: block; margin-bottom: 9px; font-size: .94rem; font-weight: 670; }
.search-wrap { position: relative; }
.search-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 62px; border-radius: 11px; padding: 6px 6px 6px 16px; background: #fffdf6; color: var(--ink); border: 1px solid #eff4db; }
.search-control:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.search-control input { width: 100%; height: 47px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 1.025rem; outline: none; }
.search-control input::placeholder { color: #52645a; }
.search-icon { width: 16px; height: 16px; border: 2px solid #38574a; border-radius: 50%; position: relative; margin: -3px 3px 0 0; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: #38574a; transform: rotate(45deg); bottom: -3px; right: -5px; border-radius: 2px; }
.search-submit { display: grid; place-items: center; width: 46px; height: 47px; padding: 0; border: 0; border-radius: 7px; background: var(--lime); color: #142d23; font-size: 23px; }
.search-submit:hover { background: #e9f5bb; }
.search-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 7px; font-size: .835rem; color: #d2ded4; }
.search-meta a { display: flex; align-items: center; min-height: 44px; color: #eef7d3; }
.country-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; }
.country-shortcuts button { min-height: 42px; padding: 4px 12px; border: 1px solid #719080; border-radius: 7px; background: transparent; color: #fbfff3; font-size: .83rem; font-weight: 650; }
.country-shortcuts button:hover { background: #365c4b; }

.country-matches, .country-message { position: absolute; z-index: 2; top: calc(100% + 6px); inset-inline: 0; margin: 0; padding: 5px; border: 1px solid #ccd7c8; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 11px 28px #0d251c35; }
.country-matches { list-style: none; max-height: min(48vh, 302px); overflow: auto; }
.country-matches li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 47px; padding: 8px 11px; border-radius: 6px; cursor: pointer; font-weight: 620; }
.country-matches li:hover, .country-matches [aria-selected="true"] { background: #e8efdb; }
.country-matches li small { font-size: .75rem; color: #506458; text-align: right; }
.country-message { padding: 12px; line-height: 1.4; }

.country-guide, .toolkit { padding-block: 40px 34px; }
.country-guide { scroll-margin: 22px; }
.section-title { margin: 0 0 17px; font-size: clamp(2rem, 5.4vw, 3.55rem); line-height: 1.02; letter-spacing: -.06em; font-weight: 730; }
.region-label { margin: 0 0 8px; color: #526953; font-size: .77rem; font-weight: 740; text-transform: uppercase; letter-spacing: .12em; }
.guide-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 15px; }
.source-card, .apply-card, .toolkit-grid article { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 33px); }
.source-card { background: #e7eddd; border-color: #d4dec9; }
.source-label { margin: 0 0 12px; color: #3c624e; font-size: .82rem; font-weight: 740; }
.source-card h3, .apply-card h3 { margin: 0 0 12px; color: var(--green); font-size: clamp(1.25rem, 3vw, 1.64rem); line-height: 1.13; letter-spacing: -.035em; }
.source-card #source-tip, .apply-steps p, .toolkit p, .guide-note, .policy p { color: var(--muted); line-height: 1.55; }
.source-card #source-tip { margin: 0 0 18px; }
.source-button, .primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: fit-content; min-height: 47px; padding: 11px 15px; border-radius: 8px; background: var(--green); color: #fff; text-decoration: none; font-size: .92rem; font-weight: 690; }
.source-button i { color: var(--lime); font-style: normal; }
.source-button:hover, .primary:hover { background: #2e5444; }
.secondary-source { display: block; width: fit-content; margin-top: 16px; padding-block: 5px; color: #244b3a; font-size: .89rem; font-weight: 650; }
.apply-steps { padding-left: 1.4rem; margin: 18px 0 0; }
.apply-steps li { padding-left: .3rem; margin: 0 0 13px; }
.apply-steps li::marker { color: #3b654b; font-weight: 750; }
.apply-steps li:last-child { margin: 0; }
.apply-steps p { margin: 4px 0 0; font-size: .92rem; }
.guide-note { margin: 12px 0 0; font-size: .87rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 9px; color: #2d593e; font-weight: 660; font-size: .92rem; }

.toolkit { padding-top: 16px; }
.toolkit > p { margin: 0 0 16px; }
.toolkit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.toolkit-grid h3 { margin: 0 0 7px; font-size: 1.06rem; }
.toolkit-grid article > p { margin: 0 0 12px; font-size: .92rem; }
.lesson-button { min-height: 44px; padding: 6px 12px; border: 1px solid #aac0ad; border-radius: 7px; background: #e7eddd; color: #143d2a; font-size: .87rem; font-weight: 650; }
.lesson-button:disabled { opacity: .75; }
.lesson-content p { margin: 0; font-size: .92rem; }

.country-directory { margin-block: 0 44px; border-block: 1px solid var(--line); scroll-margin: 18px; }
.country-directory summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 71px; list-style: none; cursor: pointer; font-size: 1.04rem; font-weight: 700; }
.country-directory summary::-webkit-details-marker { display: none; }
.directory-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #b7c6b6; border-radius: 50%; font-size: 1.4rem; color: var(--green); font-weight: 450; }
.country-directory[open] .directory-toggle { transform: rotate(45deg); }
.directory-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; margin: 0 0 19px; padding: 0; list-style: none; }
.directory-list button { width: 100%; min-height: 44px; background: transparent; border: 0; border-radius: 5px; padding: 8px; color: var(--green); text-align: left; font-size: .9rem; }
.directory-list button:is(:hover, [aria-current="true"]) { background: #e7eddd; text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); }
.policy { max-width: 750px; padding-block: 48px; }
.policy h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: -.055em; }
.policy .primary { margin-top: 8px; }

html:has(#finder-layer:not([hidden])) { overflow: hidden; }
body:has(#finder-layer:not([hidden])) :is(.site-header, .skip-link) { visibility: hidden; }
#finder-layer { position: fixed; inset: 0; z-index: 4; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; padding: 16px; background: #15133083; backdrop-filter: blur(7px); }
#finder { position: relative; width: min(100%, 466px); max-height: 100%; margin: 0; padding: 30px; overflow: auto; text-align: center; color: #272042; background: #fcfaff; border: 1px solid #eee4ff; border-radius: 25px; box-shadow: 0 20px 60px #21133e65, inset 0 5px #ded0fa; }
#finder h2 { margin: 0; font-size: clamp(1.48rem, 6vw, 2.05rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 740; }
.finder-signal { display: grid; place-items: center; width: 43px; height: 43px; margin: 0 auto 16px; border: 4px solid #ece3fb; border-top-color: #7441ce; border-radius: 50%; animation: finder-spin .75s linear infinite; }
.finder-signal-ready { border: 1px solid #dfccfb; background: #f0e6ff; color: #5c2aaf; animation: none; }
.finder-signal-ready::after { content: ""; width: 8px; height: 15px; border: solid currentColor; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
@keyframes finder-spin { to { transform: rotate(360deg); } }

.offer-copy { margin: 13px auto 20px; max-width: 31ch; color: #4e4566; line-height: 1.45; }
.ad-disclosure { margin: 15px 0 0; color: #625f67; font-size: .875rem; line-height: 1.4; }
.reward-button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 65px; padding: 8px 12px; color: #282034; font-size: clamp(.99rem, 5vw, 1.24rem); font-weight: 780; border: 2px solid #a76421; border-radius: 40px; background: linear-gradient(#fff1a3, #ffce57 64%, #ffb938); box-shadow: 0 5px 0 #8c4c1e, 0 11px 22px #84451738; animation: jobs-cta-pulse 2.15s ease-in-out 2; }
.reward-button:hover { background: linear-gradient(#fff4b4, #ffda72 64%, #ffc145); }
.reward-button:disabled { opacity: .75; cursor: wait; animation: none; }
.reward-button span[aria-hidden] { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #52269a; background: #fff6cb; font-size: 14px; }
@keyframes jobs-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 5px 0 #8c4c1e, 0 11px 22px #84451738, 0 0 0 0 #ffcc6200; }
  44% { transform: scale(1.028); box-shadow: 0 5px 0 #8c4c1e, 0 11px 22px #84451738, 0 0 0 8px #ffcc6260; }
}
.ad-status { color: #505468; font-size: .88rem; margin: 12px 0 0; }
.ad-status:empty { display: none; }

@media (max-width: 950px) {
  .shell { width: min(1176px, calc(100% - 44px)); }
  .hero-copy { padding: clamp(25px, 4vw, 40px); }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1176px); }
  .header-inner, .footer-inner { min-height: 61px; }
  .hero { grid-template-columns: 1fr; margin-block: 13px 17px; border-radius: 16px; }
  .hero-copy { padding: 24px 16px 21px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.8rem); }
  .hero-intro { margin: 11px 0 21px; font-size: .94rem; }
  .hero-photo { border-radius: 0 0 16px 16px; }
  .hero-photo img { min-height: 0; aspect-ratio: 2.6; object-position: 50% 45%; }
  .country-guide, .toolkit { padding-block: 24px; }
  .guide-grid, .toolkit-grid { grid-template-columns: 1fr; }
  .directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-button { max-width: 100%; }
  #finder { padding: 25px 18px 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .finder-signal, .reward-button { animation: none; }
}
