:root {
  --teal-900: #02323b;
  --teal-800: #024c5b;
  --teal-700: #026a77;
  --teal-600: #037b87;
  --teal-100: #d3f0f1;
  --teal-50: #eefbfb;
  --gold: #d4a017;
  --ink: #0f172a;
  --ink-soft: #475569;
  --gray-50: #f8fafc;
  --radius: 16px;
  --shadow: 0 12px 30px -10px rgba(2,50,59,.18);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.intl-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
.container { width: min(1120px, 92%); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--teal-800); color: #fff; padding: 10px 16px;
  border-radius: 0 0 12px 0; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }

/* Header */
.intl-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 50;
}
.intl-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.intl-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--teal-900); font-weight: 700;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.1rem;
}
.logo-text em { font-style: normal; color: var(--teal-600); font-weight: 600; }
.intl-nav { display: flex; align-items: center; gap: 1.25rem; }
.intl-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.intl-nav a:hover, .intl-nav a.is-active { color: var(--teal-700); }
.intl-nav .nav-back { color: var(--teal-600); font-size: .85rem; }
.intl-nav-toggle {
  display: none; background: none; border: 0; font-size: 1.5rem; color: var(--teal-800); cursor: pointer;
}

/* Hero */
.intl-hero {
  background: linear-gradient(145deg, var(--teal-900) 0%, var(--teal-700) 55%, #0a7a6e 100%);
  color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden;
}
.intl-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212,160,23,.15), transparent 50%);
  pointer-events: none;
}
.intl-hero .eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .75rem;
}
.intl-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15; margin: 0 0 1rem; max-width: 18ch;
}
.intl-hero h1 span { color: #7dd3c7; }
.intl-hero .hero-copy {
  font-size: 1.05rem; opacity: .92; max-width: 42ch; margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.25rem; border-radius: 999px; font-weight: 600;
  font-size: .95rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--gold); color: #1a1400; border-color: var(--gold); }
.btn-primary:hover { background: #e0ae1f; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-teal { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.btn-teal:hover { background: var(--teal-800); }
.btn-light { background: #fff; color: var(--teal-800); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-kicker {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-600); margin: 0 0 .4rem;
}
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 .6rem; color: var(--teal-900);
}
.section-heading {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem;
}
.section-link {
  color: var(--teal-700); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
}

/* Cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.intl-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: 1.35rem; box-shadow: 0 2px 8px rgba(2,50,59,.04);
  transition: box-shadow .2s, transform .2s;
}
.intl-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.intl-card .flag { font-size: 1.75rem; line-height: 1; }
.intl-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: .5rem 0 .35rem; }
.intl-card .meta { font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .6rem; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: 6px;
  background: var(--teal-100); color: var(--teal-800);
}
.job-card .job-title { font-size: 1.1rem; margin: .4rem 0; }
.job-card .job-title a { color: var(--teal-900); text-decoration: none; }
.job-card .job-title a:hover { color: var(--teal-600); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.step {
  background: var(--teal-50); border-radius: var(--radius); padding: 1.25rem;
  border: 1px solid var(--teal-100);
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-700); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  margin-bottom: .6rem;
}
.step h3 { font-size: 1rem; margin: 0 0 .35rem; }

/* Features */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem;
}
.feature {
  display: flex; gap: .85rem; align-items: flex-start;
}
.feature i {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0;
}

/* Empty state */
.empty-state {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--gray-50); border-radius: var(--radius);
  border: 1px dashed #cbd5e1;
}
.empty-state h3 { margin-top: 0; }

/* Forms */
.form-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: 1.75rem; max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid #cbd5e1;
  border-radius: 10px; font: inherit; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(3,123,135,.15);
}
.form-error { color: #b91c1c; font-size: .85rem; margin-top: .25rem; }
.form-hint { font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Dashboard */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 2rem 0; }
.dash-sidebar {
  background: var(--teal-50); border-radius: var(--radius); padding: 1.25rem;
  height: fit-content; position: sticky; top: 80px;
}
.dash-sidebar a {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: 8px;
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .9rem;
}
.dash-sidebar a:hover, .dash-sidebar a.is-active {
  background: #fff; color: var(--teal-800); box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.dash-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.75rem;
}
.stat-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.15rem;
}
.stat-card .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-800); }
.stat-card .lbl { font-size: .8rem; color: var(--ink-soft); }

/* Progress tracker */
.progress-track {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0;
}
.progress-step {
  font-size: .75rem; padding: .3rem .6rem; border-radius: 999px;
  background: #f1f5f9; color: var(--ink-soft);
}
.progress-step.done { background: var(--teal-100); color: var(--teal-800); }
.progress-step.current { background: var(--teal-700); color: #fff; font-weight: 600; }

/* Alert */
.alert {
  padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .95rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Footer */
.intl-footer {
  background: var(--teal-900); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer-grid strong { display: block; color: #fff; margin-bottom: .5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-note { font-size: .8rem; opacity: .7; max-width: 70ch; }
.footer-copy { font-size: .8rem; opacity: .55; margin-top: 1rem; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.admin-table th { background: var(--gray-50); font-weight: 600; color: var(--ink-soft); }
.badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 600;
}
.badge-open, .badge-published, .badge-completed, .badge-eligible { background: #d1fae5; color: #065f46; }
.badge-draft, .badge-pending { background: #fef3c7; color: #92400e; }
.badge-closed, .badge-failed, .badge-rejected { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 768px) {
  .intl-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1rem;
    border-bottom: 1px solid #e2e8f0; box-shadow: var(--shadow);
  }
  .intl-nav.is-open { display: flex; }
  .intl-nav-toggle { display: block; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; display: flex; flex-wrap: wrap; gap: .35rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Premium enhancements */
.stage-explain { font-size: .85rem; color: var(--ink-soft); margin: .25rem 0 .5rem; line-height: 1.4; }
.mono { font-family: ui-monospace, monospace; font-size: .8rem; }
.doc-progress { margin-top: .6rem; }
.doc-progress-bar { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-bottom: .25rem; }
.doc-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-600), var(--teal-700)); border-radius: 99px; transition: width .4s ease; }
.comm-item.unread { border-left: 3px solid var(--teal-600); }
.trust-list { margin: 0; padding-left: 1.2rem; }
.trust-list li { margin-bottom: .35rem; }
.trust-banner { position: relative; }
.progress-step { min-width: 28px; text-align: center; }
.badge-pending { background: #fef3c7; color: #92400e; margin-left: .25rem; }

/* Micro-interactions */
.intl-card { transition: box-shadow .2s, transform .2s, border-color .2s; }
.btn { transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(0.98); }
.stat-card .num { transition: color .2s; }

/* Admin dark-friendly surfaces */
.admin-table tr:hover td { background: #f8fafc; }

@media (prefers-reduced-motion: reduce) {
  .intl-card, .btn, .doc-progress-bar span { transition: none; }
}
