/* MundoHire — static directory. Warm, clean, mobile-first. Keep this file as the only stylesheet. */
:root {
  --bg: #f6efe6;
  --bg-2: #eee3d4;
  --ink: #1c1612;
  --muted: #5c524a;
  --faint: #7a7067;
  --paper: #fffaf4;
  --line: #e4d5c4;
  --accent: #9c3f28;
  --accent-hover: #7a2f1e;
  --accent-soft: #f3e4d8;
  --warn: #7c2d12;
  --warn-bg: #fff4e8;
  --focus: #c2410c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 22, 18, 0.04), 0 10px 28px rgba(28, 22, 18, 0.05);
  --max: 68rem;
  --prose: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(196, 112, 62, 0.10), transparent 55%),
    radial-gradient(800px 380px at 0% 0%, rgba(156, 63, 40, 0.07), transparent 50%),
    var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.prose-wrap { width: min(var(--prose), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.35rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.hero {
  padding: 3.25rem 0 2.6rem;
  background: transparent;
}
.hero h1 {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 20ch;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0 0 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.section { padding: 2.4rem 0; }
.section h2, .page-title, article h2 {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}
.page-title { font-size: clamp(1.85rem, 3.5vw, 2.5rem); margin-top: 0; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }

.listing-card h2, .listing-card h3 { margin-top: 0; }
.meta { list-style: none; padding: 0; margin: 0.6rem 0 1rem; }
.meta li { margin: 0 0 0.35rem; }
.meta strong { display: inline-block; min-width: 6.5rem; color: var(--muted); font-weight: 650; }

.banner, .placeholder, .cite, .disclaimer-box {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}
.placeholder {
  background: var(--warn-bg);
  border: 1px dashed #d4a373;
  color: var(--warn);
}
.placeholder strong { display: block; margin-bottom: 0.25rem; }
.cite {
  background: var(--bg-2);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
}
.disclaimer-box { background: var(--paper); border: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }

article p, article li { max-width: 42rem; }
article h2 { margin-top: 2rem; font-size: 1.45rem; }
article h3 { margin-top: 1.4rem; font-size: 1.15rem; }
article ul, article ol { padding-left: 1.2rem; }
.sources { font-size: 0.95rem; }
.sources li { margin-bottom: 0.35rem; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.95rem;
  margin: 0;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-2); font-size: 0.85rem; letter-spacing: 0.02em; }
.table-scroll + * { margin-top: 1.4rem; }

.form label { display: block; font-weight: 650; margin: 0.9rem 0 0.3rem; }
.form input, .form select, .form textarea {
  width: 100%;
  max-width: 32rem;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.form textarea { min-height: 8rem; }
.form button { margin-top: 1rem; cursor: pointer; font: inherit; }
.form button[disabled] { opacity: 0.7; cursor: not-allowed; }

.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin: 1.4rem 0 0.6rem; }
.breadcrumbs a { color: var(--muted); }

.site-footer {
  margin-top: 3rem;
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 1.2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.35rem; font-size: 0.95rem; }
.site-footer a { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.25rem 0; }
.legal { margin-top: 1.4rem; font-size: 0.85rem; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 1.6rem; }
  .meta strong { min-width: auto; display: block; }
  .header-inner { padding: 0.7rem 0; }
  .nav { width: 100%; gap: 0.1rem; }
  .nav a { min-height: 2.75rem; padding: 0.4rem 0.5rem; }
  body { font-size: 1rem; }
}

/* v2 additions */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; margin-top: 1rem; }
.form .check input { width: auto; margin-top: 0.35rem; }
.form-status { min-height: 1.4em; margin: 0.6rem 0 0; }
.form-status.ok { color: #166534; font-weight: 650; }
.form-status.err { color: var(--warn); font-weight: 650; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; margin: 0 0 0.6rem; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: 0.6rem 0 0; }
.aff-label { font-size: 0.8rem; color: var(--muted); }
th[scope="row"] { font-weight: 650; background: transparent; }
@media (max-width: 900px) and (min-width: 721px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
