/* Reference layout supplied by the owner. Content, data sources and interaction code stay unchanged. */
:root {
  --reference-blue: #075cbe;
  --reference-navy: #061735;
  --reference-paper: #ffffff;
  --reference-surface: #f5f9fe;
  --reference-border: #dce7f4;
  --reference-heading-size: clamp(2.7rem, 4.4vw, 4.15rem);
  --reference-shadow: 0 8px 28px rgb(35 74 120 / 6%);
  --reference-button: linear-gradient(120deg, #0869c8, #05366f);
}
body { background: var(--reference-surface); }
.wrap { max-width: 1536px; padding-inline: 4.6%; }
.site-header {
  min-height: 80px;
  max-width: none;
  padding-inline: max(4.6%, calc((100% - 1394px) / 2));
  background: var(--reference-paper);
  border-bottom: 1px solid var(--reference-border);
  gap: 24px;
}
.site-header .brand { width: 264px; min-width: 210px; }
.site-header nav { gap: 28px; }
.site-header nav a, .site-header nav button { font-size: 15px; font-weight: 500; }
.site-header .account { gap: 16px; }
.site-header .login { border: 1px solid #94a6bf; border-radius: 7px; padding-inline: 22px; }
.site-header .primary { padding-inline: 22px; }
.primary { background: var(--reference-button); border-color: #074c99; border-radius: 7px; }
.hero.wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 470px;
  padding-block: 35px 70px;
  padding-inline: max(6.1%, calc((100% - 1350px) / 2));
  background: #eef5fc;
  overflow: clip;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 60%;
  height: 100%;
  border-radius: 0;
  z-index: -2;
  background: #e5eef5;
}
.hero-photo img {
  width: 1800px;
  height: 1200px;
  max-width: none;
  /* Only the photograph region: exclude all baked-in reference UI and text. */
  clip-path: inset(7.3% 0 52.6% 45.6%);
  mask-image: linear-gradient(90deg, transparent 45.6%, #000 54%);
  inset-block-start: -87px;
  inset-inline-end: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f3f8fe 29%, rgb(243 248 254 / 95%) 37%, rgb(243 248 254 / 58%) 46%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; width: 55%; }
.hero-content h1 {
  font-size: var(--reference-heading-size);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
  color: var(--reference-navy);
  max-width: 16ch;
}
.hero-content h1 span { color: var(--reference-blue); }
.hero .lead { color: #263b58; font-size: 20px; line-height: 1.5; max-width: 40ch; margin-block-start: 18px; }
.hero .hero-note {
  order: -1;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  margin: 0 0 20px;
  border: 1px solid #d4e6fc;
  border-radius: 999px;
  color: #163a70;
  background: #e9f3ff;
  font-size: 13px;
}
.hero-buttons { margin-block-start: 23px; gap: 14px; }
.hero-buttons .primary, .hero-buttons .text-button { min-height: 50px; padding: 12px 28px; font-size: 16px; border-radius: 7px; }
.hero-buttons .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 74%);
  color: var(--reference-navy);
  border: 1px solid #244673;
  text-decoration: none;
  font-weight: 500;
}
.discovery { position: relative; z-index: 2; margin-block-start: -35px; padding-block-end: 30px; }
#search {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 0;
  background: var(--reference-paper);
  border: 1px solid var(--reference-border);
  box-shadow: var(--reference-shadow);
  padding: 19px;
  border-radius: 15px;
}
#search label { gap: 2px; padding: 0 19px; border-inline-end: 1px solid var(--reference-border); }
#search label > span { font-size: 11px; color: #60728b; }
#search input, #search select { height: 36px; min-height: 36px; border: 0; border-radius: 0; background: transparent; padding-inline: 0; font-size: 15px; }
#search .primary { min-height: 58px; padding-inline: 27px; margin-inline-start: 18px; align-self: center; font-size: 16px; }
.category-heading { margin-block: 18px 8px; font-size: 13px; color: #445a78; }
.category-heading span { font-size: 12px; }
.categories { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.category {
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 112px;
  padding: 15px 8px;
  background: rgb(255 255 255 / 80%);
  border: 1px solid var(--reference-border);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  color: #071c40;
}
.category svg { width: 34px; height: 35px; stroke: #074a9b; }
.category.active { background: #e7f1ff; border-color: #80acd9; }
.listings { padding-block: 25px 50px; }
.section-head { margin-block-end: 18px; }
.section-head h2 { font-size: 31px; letter-spacing: -.025em; line-height: 1.2; font-weight: 700; }
.jobs-layout { grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); gap: 24px; }
.filter-bar { padding-block-end: 8px; font-size: 13px; }
.demo-note { border: 0; padding-block-end: 2px; font-size: 12px; }
.feed-coverage { padding-block: 3px 16px; font-size: 12px; }
.job {
  grid-template-columns: 60px minmax(0, 1fr) 44px;
  gap: 20px;
  padding: 20px;
  margin-block-end: 12px;
  border: 1px solid #e2eaf4;
  background: var(--reference-paper);
  border-radius: 15px;
  box-shadow: 0 3px 12px rgb(26 60 104 / 3%);
}
.hospital-logo { width: 60px; height: 60px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #06a8c8, #07558d); font-size: 20px; }
.job h3 { font-size: 20px; font-weight: 700; margin-block-end: 2px; }
.job-title { min-height: 28px; }
.company { font-size: 14px; }
.job-meta { margin-block-start: 9px; gap: 8px 20px; font-size: 12px; }
.job-bottom { margin-block-start: 9px; gap: 7px 12px; }
.tag { font-size: 11px; }
.salary { width: auto; margin-inline-start: auto; font-size: 13px; }
.job-source { margin-block-start: 7px; gap: 8px 18px; font-size: 11px; }
.job-source a { min-height: 25px; }
.save { color: #183c6c; }
.global-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(120deg, #073568, #05649c);
  color: #fff;
  border-radius: 14px;
  overflow: clip;
}
.global-card h2 { font-size: 33px; font-weight: 700; line-height: 1.05; max-width: 12ch; }
.global-card p { color: #e6f1ff; font-size: 15px; line-height: 1.5; margin-block: 20px; }
.global-card .inverse { min-height: 47px; font-size: 13px; }
.alert-card { background: #eaf3ff; border: 1px solid var(--reference-border); border-radius: 14px; padding: 24px; margin-block-start: 20px; }
.alert-card h3 { font-size: 24px; }
.alert-card p { font-size: 15px; }
.alert-card .outline { background: #fff; border-color: #b0c5df; font-size: 14px; }
.help-card { padding: 24px 5px; }
.destinations { grid-template-columns: minmax(0, 1fr); text-align: center; padding-block: 50px; gap: 0; }
.destinations h2 { grid-column: 1; grid-row: auto; max-width: none; font-size: 34px; }
.destinations > p { grid-column: 1; grid-row: auto; max-width: none; margin-block: 14px 28px; }
#countries { grid-column: 1; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#countries button { min-height: 94px; padding: 20px; border: 1px solid var(--reference-border); border-radius: 12px; background: #fff; }
#countries button > span { color: #0755a5; font-size: 15px; }
.licensing, .source-section { margin-block: 25px; padding-block: 38px; border: 0; }
.licensing::before, .source-section::before { content: ''; display: block; border-top: 1px solid var(--reference-border); margin-block-end: 30px; }
.licensing .section-head h2, .source-section .section-head h2 { font-size: 32px; }
.licensing-intro { margin-block-start: 15px; font-size: 18px; }
.guide-controls { max-width: 100%; padding: 20px; background: #fff; border: 1px solid var(--reference-border); border-radius: 14px; }
.guide-controls select { background: #f8fbff; }
.country-guide { border-top-color: var(--reference-border); gap: 40px; }
.source-row { background: #fff; border: 1px solid var(--reference-border); border-radius: 12px; padding: 24px; margin-block-start: 14px; }
.employer-banner { max-width: 1394px; width: 90.8%; background: #eaf3ff; border: 1px solid var(--reference-border); border-radius: 14px; padding: 32px; }
footer { padding-block: 40px; }
@media (hover: hover) { .job:hover { background: #fff; border-color: #abc7e7; } .category:hover { background: #eef5ff; border-color: #b2cce9; } }
@media (min-width: 1537px) { .hero-photo img { width: 1800px; height: 1200px; inset-block-start: -87px; } }
@media (max-width: 85rem) { .site-header .brand { width: 230px; min-width: 190px; } .site-header nav { gap: 20px; } .site-header nav a, .site-header nav button { font-size: 13px; } .site-header .account { gap: 10px; } .site-header .saved-nav > span:not(#saved-count) { display: none; } .site-header .primary { padding-inline: 16px; } }
@media (max-width: 75rem) {
  .site-header { min-height: 80px; }
  .site-header nav { gap: 0; background: #fff; }
  .hero.wrap { min-height: 455px; }
  .hero-content { width: 59%; }
  .hero-photo { width: 60%; }
  .hero::after { background: linear-gradient(90deg, #f3f8fe 28%, rgb(243 248 254 / 93%) 42%, transparent 76%); }
  .hero .lead { font-size: 18px; }
  #search label { padding-inline: 12px; }
  #search input, #search select { font-size: 13px; }
  #search .primary { padding-inline: 20px; font-size: 14px; }
  .categories { gap: 10px; }
  .category { font-size: 12px; min-height: 108px; }
  .job { gap: 14px; grid-template-columns: 48px minmax(0, 1fr) 40px; padding: 16px; }
  .hospital-logo { width: 48px; height: 50px; }
  .job h3 { font-size: 18px; }
  .salary { margin-inline-start: 0; width: 100%; }
  .global-card { padding: 24px; }
  .global-card h2 { font-size: 29px; }
}
@media (max-width: 60rem) {
  .hero.wrap { min-height: 430px; padding-block: 30px 65px; }
  .hero-content { width: 65%; }
  .hero-content h1 { font-size: 44px; }
  .hero .lead { font-size: 17px; max-width: 32ch; }
  .hero-photo { width: 64%; }
  .hero-photo img { inset-inline-end: -80px; }
  .hero .hero-note { font-size: 11px; padding: 8px 12px; }
  .hero-buttons .primary, .hero-buttons .text-button { padding-inline: 20px; font-size: 14px; }
  #search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  #search .keyword { grid-column: 1 / -1; border: 0; border-bottom: 1px solid var(--reference-border); padding-block-end: 10px; }
  #search label { border: 0; }
  #search .primary { grid-column: 1 / -1; margin-inline-start: 0; min-height: 48px; }
  .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category { min-height: 104px; font-size: 13px; }
  .jobs-layout { grid-template-columns: minmax(0, 1fr); }
  aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .alert-card { margin: 0; }
  .help-card { grid-column: 1 / -1; }
  .salary { width: auto; margin-inline-start: auto; }
  .guide-controls { gap: 20px; }
  #countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .site-header { padding-inline: 4.6%; gap: 8px; }
  .site-header .brand { width: 160px; min-width: 0; }
  .hero.wrap { min-height: 410px; padding: 30px 6.1% 65px; }
  .hero-content { width: 100%; }
  .hero-content h1 { font-size: clamp(34px, 8vw, 44px); }
  .hero .lead { font-size: 16px; max-width: 30ch; }
  .hero-photo { width: 100%; opacity: .28; }
  .hero-photo img { width: 1536px; height: 1024px; inset-inline-end: -80px; inset-block-start: -74px; }
  .hero::after { background: linear-gradient(90deg, #f3f8fe 8%, rgb(243 248 254 / 90%) 48%, rgb(243 248 254 / 25%) 100%); }
  .hero .hero-note { font-size: 10px; max-width: 100%; white-space: normal; }
  .hero-buttons { gap: 10px; flex-wrap: wrap; }
  .hero-buttons .primary, .hero-buttons .text-button { padding-inline: 16px; font-size: 13px; min-height: 47px; }
  .discovery { margin-block-start: -35px; }
  #search { gap: 12px; padding: 15px; border-radius: 13px; }
  #search label { padding-inline: 7px; }
  #search input, #search select { font-size: 14px; min-height: 40px; }
  .category-heading p { font-size: 12px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category { font-size: 13px; min-height: 102px; }
  .category svg { width: 30px; height: 32px; }
  .listings { padding-block-start: 15px; }
  .section-head { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .section-head h2 { font-size: 26px; }
  .filter-bar { flex-direction: column; align-items: start; }
  .demo-note { font-size: 12px; }
  .feed-coverage { font-size: 12px; line-height: 1.6; }
  .job { grid-template-columns: 38px minmax(0, 1fr) 36px; padding: 15px 12px; gap: 10px; }
  .hospital-logo { width: 38px; height: 42px; font-size: 14px; border-radius: 9px; }
  .job h3 { font-size: 17px; }
  .company { font-size: 13px; }
  .save { width: 36px; }
  .job-meta { font-size: 12px; flex-direction: column; gap: 6px; }
  .salary { width: 100%; margin: 0; font-size: 13px; }
  .job-source { font-size: 11px; }
  .job-source a { min-height: 36px; }
  aside { grid-template-columns: minmax(0, 1fr); }
  .global-card h2 { font-size: 30px; }
  .alert-card { padding: 24px; }
  .destinations h2 { font-size: 28px; }
  .destinations > p { font-size: 15px; }
  #countries { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  #countries button { min-height: 86px; }
  .licensing .section-head h2, .source-section .section-head h2 { font-size: 28px; }
  .licensing-intro { font-size: 17px; }
  .country-guide, .guide-controls, .source-row { grid-template-columns: minmax(0, 1fr); }
  .country-guide { gap: 20px; }
  .source-row { padding: 20px; }
  .employer-banner { padding: 24px; }
  .employer-banner h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Locally hosted destination flags; names remain the accessible button labels. */
#countries button { gap: 18px; transition: border-color .18s ease, box-shadow .18s ease; }
#countries .country-flag { display: inline-flex; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; border: 1px solid #dce7f4; box-shadow: 0 2px 6px rgb(19 49 87 / 8%); background: #fff; }
#countries .country-flag img { display: block; width: 100%; height: 100%; object-fit: fill; }
#countries strong { font-weight: 600; }
#countries button:focus-visible { outline: 3px solid #80acd9; outline-offset: 3px; }
@media (hover: hover) { #countries button:hover { border-color: #80acd9; box-shadow: 0 4px 16px rgb(35 74 120 / 7%); } }
@media (prefers-reduced-motion: reduce) { #countries button { transition: none; } }

.feed-loading { padding: 32px; min-height: 170px; background: #fff; border: 1px solid var(--reference-border); border-radius: 15px; color: #183c6c; }
.feed-loading p { margin-top: 12px; line-height: 1.6; }

/* Finishing details: consistent interaction, readable cards and responsive rhythm. */
:root { color-scheme: light; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #287bd1;
  outline-offset: 4px;
}
:where(button, a, input, select, textarea) { touch-action: manipulation; }
.hero-content h1, .section-head h2, .community-section h2 { text-wrap: balance; }
.primary, .outline, .inverse { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.primary { box-shadow: 0 2px 4px rgb(5 54 111 / 10%); }
.job-main, .job h3, .company, .source-row, .community-action { overflow-wrap: anywhere; }
.job-title { line-height: 1.35; }
.job-meta { line-height: 1.6; }
.job-source { border-top: 1px solid #edf2f8; padding-top: 9px; margin-top: 12px; }
.job-source a { min-height: 32px; }
.save { flex-shrink: 0; }
.category.active { box-shadow: inset 0 0 0 1px #80acd9; }
#search label:focus-within { background: #f2f7ff; border-radius: 6px; }
#search input:focus-visible, #search select:focus-visible { outline-offset: 2px; }
#countries button::after { content: '→'; margin-inline-start: auto; color: #6485ad; font-size: 20px; }
#countries button div { min-width: 0; text-align: start; }
#countries small { margin-top: 5px; }
.community-action { display: flex; flex-direction: column; align-items: flex-start; }
.community-action p { flex: 1; }
.community-action .primary { margin-top: auto; }
.community-empty { color: #52627a; line-height: 1.7; border-style: dashed; }
#healthcare-post-form textarea { font: inherit; resize: vertical; min-height: 150px; }
#healthcare-post-form :is(input, select, textarea):focus-visible { background-color: #fff; }
footer { border-top: 1px solid var(--reference-border); margin-top: 36px; gap: 28px; }
footer > div:not(:first-child) { max-width: 28ch; font-size: 14px; line-height: 1.9; }
footer a:not(.brand) { color: #0755a5; text-underline-offset: 4px; }
@media (hover: hover) {
  .primary:hover { background: linear-gradient(120deg, #075bb0, #042d60); box-shadow: 0 4px 12px rgb(5 54 111 / 16%); }
  .outline:hover, .save:hover { background: #e9f3ff; }
  .community-action { transition: border-color .18s ease, box-shadow .18s ease; }
  .community-action:hover { border-color: #acc9ec; box-shadow: 0 6px 20px rgb(35 74 120 / 5%); }
  footer a:not(.brand):hover { text-decoration: underline; }
}
@media (max-width: 75rem) {
  .site-header nav.open { border-radius: 0 0 12px 12px; box-shadow: 0 12px 20px rgb(35 74 120 / 9%); }
}
@media (max-width: 40rem) {
  #search input, #search select, .guide-controls select, #healthcare-post-form :is(input, select, textarea) { font-size: 16px; }
  .job { grid-template-columns: 38px minmax(0, 1fr) 44px; }
  .save { width: 44px; height: 44px; }
  .job-source { gap: 4px 12px; }
  .job-source a { min-height: 44px; }
  .section-head h2, .community-section h2 { line-height: 1.22; }
  .community-intro { font-size: 15px; }
  .community-filters > button { min-height: 48px; }
  .community-action .primary { width: 100%; }
  footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .community-action { transition: none; } }
