/* robertcv.com — hand-coded static site. Mobile-first, no framework. */
:root {
  --navy-900: #0b1f33;
  --navy-800: #0f2a44;
  --navy-700: #16395c;
  --ink: #1b2430;
  --muted: #56606d;
  --line: #d9dee5;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --accent: #c8841f;       /* amber / copper — used on light bg for large text & borders */
  --accent-strong: #9a5f0c;/* AA-contrast accent for small text on white */
  --accent-light: #e8b050; /* accent on dark bg */
  --radius: 10px;
  --maxw: 1080px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1rem; padding-top: .6rem; padding-bottom: .6rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-800); }
.brand-mark {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px;
  background: var(--navy-800); color: var(--accent-light);
  font-family: var(--font-serif); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.brand-name { font-weight: 700; letter-spacing: .01em; }
.site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 .1rem; list-style: none; margin: 0 0 0 -.45rem; padding: 0; white-space: nowrap; }
.site-nav a {
  display: block; padding: .4rem .45rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--navy-700); }
.site-nav .nav-cta { color: var(--accent-strong); font-weight: 600; }

@media (min-width: 960px) {
  html { scroll-padding-top: 76px; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; overflow: visible; }
  .site-nav ul { flex-wrap: nowrap; justify-content: flex-end; gap: .15rem; margin: 0; }
  .site-nav a { padding: .4rem .6rem; font-size: .95rem; }
  .site-nav .nav-cta { border: 1px solid var(--accent); margin-left: .35rem; }
  .site-nav .nav-cta:hover { background: var(--accent); color: #fff; }
}
/* Header links to X Tank Co / GlyGas (external) */
@media (max-width: 379px) { .site-nav ul { margin-left: -.28rem; } .site-nav a { padding-left: .28rem; padding-right: .28rem; } }
@media (min-width: 960px) {
  .site-nav .nav-ext-last { position: relative; margin-right: .5rem; }
  .site-nav .nav-ext-last::after { content: ""; position: absolute; right: -.33rem; top: 50%; height: 1.05rem; margin-top: -.525rem; border-right: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232,176,80,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero::after { /* subtle contour-line texture, pure CSS */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: repeating-radial-gradient(circle at 80% 120%, #fff 0 1px, transparent 1px 28px);
}
.hero-inner { position: relative; z-index: 1; padding-top: 4.5rem; padding-bottom: 3rem; }
.eyebrow {
  margin: 0 0 .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-light);
}
.hero h1 {
  margin: 0; font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.75rem); line-height: 1.05; letter-spacing: -.01em;
}
.headline {
  margin: .9rem 0 0; font-size: clamp(1.15rem, 3.2vw, 1.5rem); font-weight: 500; color: #dbe4ee;
}
.hero-quote {
  margin: 2rem 0 0; padding: .25rem 0 .25rem 1.1rem; max-width: 36rem;
  border-left: 3px solid var(--accent-light);
}
.hero-quote blockquote { margin: 0; }
.hero-quote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 2.8vw, 1.35rem); color: #f1f4f8; }
.hero-quote figcaption { margin-top: .35rem; font-size: .95rem; color: var(--accent-light); letter-spacing: .02em; }
.hero-quote cite { font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.btn {
  display: inline-block; padding: .75rem 1.3rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent-light); color: var(--navy-900); }
.btn-primary:hover { background: #f2c26b; color: var(--navy-900); }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

@media (min-width: 760px) {
  .hero-inner { padding-top: 7rem; padding-bottom: 3.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 760px) { .section { padding: 5rem 0; } }

.section-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.75rem; }
.section-kicker {
  margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.section-head h2 {
  margin: 0; font-family: var(--font-serif); font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  line-height: 1.2; color: var(--navy-800);
}
.lead { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.6; color: var(--ink); }

.about-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; } }

.card-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Placeholder blocks (remove as real content lands) ---------- */
.placeholder {
  border: 2px dashed #b9c2cd; border-radius: var(--radius);
  padding: 1.5rem; background: rgba(255,255,255,.6); color: var(--muted);
  min-height: 7rem; display: flex; flex-direction: column; justify-content: center;
}
.placeholder-lg { min-height: 12rem; }
.placeholder-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong);
}
.placeholder p { margin: .35rem 0 0; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-intro { margin: 0 0 1.25rem; color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 44rem; } }
.contact-list li {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1rem 1.25rem; background: #fff;
}
.contact-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 1.2rem; font-weight: 600; color: var(--navy-800); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3cedb; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #e8eef5; text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }

/* ---------- Under Construction banner (remove at completion) ---------- */
.uc-banner { background: var(--accent-light); color: var(--navy-900); border-bottom: 3px solid var(--accent-strong); }
.uc-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .15rem 1rem;
  padding-top: .9rem; padding-bottom: .9rem; text-align: center; }
.uc-title { margin: 0; font-family: var(--font-serif); font-size: clamp(1.35rem, 4.5vw, 1.9rem); line-height: 1.2; letter-spacing: .01em; }
.uc-icon { font-family: var(--font-sans); }
.uc-text { margin: 0; font-size: 1rem; font-weight: 600; }

/* ---------- Hero with portrait ---------- */
.hero-grid { display: grid; gap: 2rem; }
.hero-photo { order: -1; }
.hero-photo img {
  width: 180px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px;
  border: 3px solid rgba(232,176,80,.85); box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
  .hero-photo { order: 0; }
  .hero-photo img { width: 320px; }
}

/* ---------- Cards (business initiatives, projects) ---------- */
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 0 1px 2px rgba(15,42,68,.05);
}
.card p { margin: 0; color: var(--ink); font-size: 1rem; }
.card-title { margin: 0; font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy-800); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent-strong); text-decoration: underline; }
.card-link { margin-top: auto; padding-top: .35rem; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
/* Featured (full-width) project card: chart on top at its natural aspect ratio, text below */
.card-feature { gap: 1.1rem; padding: 1.25rem; }
.feature-media { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.feature-media img { display: block; width: 100%; height: auto; max-width: 1902px; object-fit: contain; }
.feature-body { display: flex; flex-direction: column; gap: .5rem; }
.feature-body p { max-width: 52rem; }
@media (min-width: 760px) { .card-feature { padding: 1.5rem; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sub pages (e.g. projects/tx-swd) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 2.5rem 0 2.25rem; }
.page-hero h1 { margin: .35rem 0 .5rem; font-family: var(--font-serif); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1; }
.page-intro { margin: 0; max-width: 46rem; color: #dbe4ee; font-size: 1.08rem; }
.breadcrumb { font-size: .9rem; color: #b9c6d4; }
.breadcrumb a { color: var(--accent-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.post-jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.post-jump a { display: inline-block; padding: .35rem .8rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; }
.post-jump a:hover { border-color: var(--accent-light); color: var(--accent-light); }
.site-nav a[aria-current="page"] { color: var(--accent-strong); }

.gallery { padding-top: 1rem; padding-bottom: 3rem; }
.post-block { padding: 2.25rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.post-head h2 { margin: .15rem 0 .35rem; font-family: var(--font-serif); font-size: clamp(1.4rem, 3.6vw, 1.9rem); color: var(--navy-800); line-height: 1.25; }
.post-line { margin: 0 0 1.1rem; color: var(--muted); }
.chart { margin: 0; }
.chart a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.chart a:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(15,42,68,.12); }
.chart img { width: 100%; height: auto; }
.chart figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.chart figcaption a { display: inline; border: 0; background: none; color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.chart figcaption a:hover { box-shadow: none; text-decoration: underline; }
.sources { border-bottom: 0; }
.sources h2 { margin: 0 0 .75rem; font-family: var(--font-serif); color: var(--navy-800); font-size: 1.4rem; }
.sources ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.sources li { margin: .3rem 0; }

/* ---------- Skills ---------- */
.section-intro { margin: -.75rem 0 1.5rem; max-width: 46rem; color: var(--muted); }
.skill-list { margin: .35rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.skill-list li { position: relative; padding-left: 1.3rem; font-size: 1rem; line-height: 1.5; }
.skill-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}

/* ---------- Creed (unnumbered pull-quote band between About and Experience) ---------- */
.creed {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(232,176,80,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  padding: 3.25rem 0;
}
.creed-inner { max-width: 880px; text-align: center; }
.creed-title {
  margin: 0 0 1.1rem; font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-light);
}
.creed-quote { position: relative; margin: 0; }
.creed-quote::before {
  content: "\201C"; display: block; height: 2.6rem; margin: 0 auto .5rem;
  font-family: var(--font-serif); font-size: 5.5rem; line-height: 1; color: var(--accent-light); opacity: .75;
  pointer-events: none;
}
.creed-quote blockquote { margin: 0; position: relative; }
.creed-quote p {
  margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 4.6vw, 2rem); line-height: 1.45; color: #f1f4f8;
}
@media (min-width: 760px) { .creed { padding: 4.75rem 0; } }

/* ---------- Document pages (projects/guyana-playbook) ---------- */
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.1rem; }
.doc-dl-meta { font-size: .9rem; color: #b9c6d4; }
.doc { max-width: 920px; padding-top: 2.25rem; padding-bottom: 3rem; }
.doc-article { font-size: 1.02rem; }
.doc-head { text-align: center; padding-bottom: 1.4rem; margin-bottom: 2rem; border-bottom: 2px solid var(--navy-800); }
.doc-title { margin: 0; font-family: var(--font-serif); font-size: clamp(1.8rem, 5.5vw, 2.5rem); line-height: 1.15; color: var(--navy-800); }
.doc-head p { margin: .45rem 0 0; }
.doc-sub { font-weight: 700; font-size: 1.08rem; }
.doc-segments { color: var(--muted); }
.doc-site a { font-weight: 700; }
.doc-section { scroll-margin-top: 80px; }
.doc-section h2 { margin: 0 0 .5rem; font-family: var(--font-serif); font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1.25; color: var(--navy-800); }
.doc-detail { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.doc-section h3 { margin: 1.75rem 0 .6rem; font-size: 1.12rem; line-height: 1.35; color: var(--navy-800); }
.doc-section h3.doc-overview-head { margin: 1.3rem 0 .2rem; font-size: 1.02rem; }
.doc-section p { margin: 0 0 .85rem; }
.doc-tagline { font-weight: 600; color: var(--accent-strong); }
.doc-equip strong, .doc-value strong { color: var(--navy-800); }
.doc-value { padding: .8rem 1rem; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 6px 6px 0; }
.doc-list { margin: 0 0 1rem; padding-left: 1.3rem; }
.doc-list li { margin: .2rem 0; }
.doc-end { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc-end .doc-dl-meta { color: var(--muted); }
.doc-end p { margin: 1rem 0 0; }

.pb-table-wrap { margin: 0 0 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pb-table-wrap:focus-visible { outline-offset: 2px; }
.pb-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .94rem; line-height: 1.45; }
.pb-table th, .pb-table td { padding: .65rem .8rem; text-align: left; vertical-align: top; }
.pb-table thead th { background: var(--navy-800); color: #fff; font-size: .86rem; font-weight: 700; letter-spacing: .01em; vertical-align: bottom; }
.pb-table tbody th, .pb-table tbody td { border-top: 1px solid var(--line); }
.pb-table tbody th { font-weight: 700; color: var(--navy-800); }
.pb-table tbody tr:nth-child(even) > * { background: var(--bg-alt); }
.pb-table .co { width: 19%; } .pb-table .focus { width: 24%; } .pb-table .url { width: 34%; } .pb-table .notes { width: 23%; }
.pb-table .url { font-size: .9rem; }
.pb-table .url a { overflow-wrap: anywhere; }
/* Phones: each row becomes a stacked card (no sideways scrolling needed) */
@media screen and (max-width: 719px) {
  .pb-table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  .pb-table { min-width: 0; }
  .pb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pb-table, .pb-table tbody, .pb-table tr, .pb-table th, .pb-table td { display: block; width: 100% !important; }
  .pb-table tr { margin: 0 0 .85rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: #fff; overflow: hidden; }
  .pb-table tbody tr:nth-child(even) > * { background: none; }
  .pb-table tbody th, .pb-table tbody td { border-top: 0; }
  .pb-table tbody th { padding: .7rem .95rem .55rem; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.3; border-bottom: 1px solid var(--line); background: var(--bg-alt) !important; }
  .pb-table td { padding: .5rem .95rem; }
  .pb-table td + td { border-top: 1px dashed var(--line); }
  .pb-table td::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Projects: feature card + document card ---------- */
.project-stack { display: grid; gap: 1.25rem; }
.card-doc { display: grid; gap: 1.1rem; align-items: center; }
.card-doc .doc-thumb { display: block; width: 132px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(15,42,68,.14); transition: box-shadow .15s, transform .15s; }
.card-doc .doc-thumb:hover { box-shadow: 0 10px 26px rgba(15,42,68,.2); transform: translateY(-2px); }
.card-doc .doc-thumb img { width: 100%; height: auto; }
.card-doc .card-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.card-doc .feature-body { gap: .45rem; }
.card-doc .card-title { line-height: 1.3; }
@media (min-width: 640px) { .card-doc { grid-template-columns: auto 1fr; gap: 1.75rem; } .card-doc .doc-thumb { width: 150px; } }

/* ---------- Print (site pages) ---------- */
@media print {
  .uc-banner, .site-header, .site-footer, .skip-link, .page-hero, .doc-end { display: none !important; }
  body { font-size: 10.5pt; }
  .doc { max-width: none; padding: 0; }
  .doc-detail { break-before: page; border-top: 0; margin-top: 0; padding-top: 0; }
  .pb-table { min-width: 0; font-size: 9pt; }
  .pb-table-wrap { overflow: visible; }
  .pb-table thead th { color: #000; background: #eee; }
  tr, .doc-equip, .doc-value { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- LATAM START: projects/latam-operators (scoped; also inlined into the standalone file) ---------- */
.latam .stats { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.latam .stat-pill { padding: .3rem .85rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #dbe4ee; font-size: .85rem; font-weight: 600; letter-spacing: .01em; }
.latam .stat-pill span { color: var(--accent-light); font-weight: 800; }
.latam .latam-body { padding: 2rem 0 3rem; }
.latam .latam-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 1.25rem; }
.latam .table-wrap { overflow: auto; max-height: max(28rem, calc(100vh - 150px)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(15,42,68,.05); -webkit-overflow-scrolling: touch; }
.latam .latam-table { width: 100%; min-width: 1240px; border-collapse: separate; border-spacing: 0; font-size: .86rem; line-height: 1.5; }
.latam .latam-table th { position: sticky; top: 0; z-index: 2; padding: .65rem .65rem; background: var(--navy-800); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.latam .latam-table td { padding: .65rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; background: #fff; }
.latam .latam-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.latam .latam-table tbody tr:hover td { background: #fbf4e8; }
.latam .latam-table tbody tr:last-child td { border-bottom: 0; }
/* sticky # + Company columns while scrolling sideways */
.latam .latam-table .c-1 { position: sticky; left: 0; z-index: 1; width: 3rem; min-width: 3rem; }
.latam .latam-table .c-2 { position: sticky; left: 3rem; z-index: 1; min-width: 11rem; box-shadow: inset -1px 0 0 var(--line); }
.latam .latam-table th.c-1, .latam .latam-table th.c-2 { z-index: 3; }
.latam .latam-table .c-3 { min-width: 6.5rem; } .latam .latam-table .c-4 { min-width: 12rem; } .latam .latam-table .c-5 { min-width: 8rem; } .latam .latam-table .c-6 { min-width: 9.5rem; }
.latam .latam-table .c-7 { min-width: 5.6rem; } .latam .latam-table .c-9 { min-width: 13.5rem; } .latam .latam-table .c-10 { min-width: 11.5rem; }
.latam .num { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.latam .company-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--navy-800); }
.latam .cb { display: inline-block; margin: 0 .25rem .25rem 0; padding: .05rem .4rem; border: 1px solid #c3cfdd; border-radius: 4px; background: #eef2f7; color: var(--navy-700); font-size: .72rem; font-weight: 700; letter-spacing: .06em; line-height: 1.5; white-space: nowrap; }
.latam .og-badge { display: inline-block; min-width: 4.6rem; padding: .15rem .6rem; border: 1px solid; border-radius: 999px; font-size: .78rem; font-weight: 700; text-align: center; letter-spacing: .02em; }
.latam .og-O { background: #fbeed8; color: var(--accent-strong); border-color: var(--accent-light); }
.latam .og-G { background: #e4ecf5; color: var(--navy-700); border-color: #9fb6cf; }
.latam .og-NA { background: #f1f2f4; color: var(--muted); border-color: var(--line); font-weight: 600; }
.latam .addr, .latam .domicile { color: var(--ink); font-size: .84rem; }
.latam .sub-label { display: block; margin-top: .3rem; color: var(--accent-strong); font-size: .78rem; font-weight: 600; }
.latam .addr-aside { color: var(--muted); font-size: .78rem; }
.latam .us-addr { color: var(--navy-700); font-size: .84rem; }
.latam .us-badge { display: inline-block; margin-bottom: .2rem; padding: .05rem .45rem; border-radius: 4px; background: var(--navy-800); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.latam .us-aside { color: var(--muted); font-size: .76rem; }
.latam .no-us { color: #9aa3ad; }
.latam .basis-cell { font-size: .82rem; line-height: 1.55; }
.latam .basis-note { display: block; margin-top: .35rem; color: var(--muted); font-size: .75rem; font-style: italic; }
.latam .link-cell a { color: var(--navy-700); font-weight: 600; overflow-wrap: anywhere; }
.latam .link-cell a:hover { color: var(--accent-strong); }
.latam .employees { color: var(--navy-800); font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.latam .latam-source { margin: 1.25rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
/* Phones: each company becomes a stacked card */
@media screen and (max-width: 719px) {
  .latam .table-wrap { max-height: none; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .latam .latam-table { min-width: 0; }
  .latam .latam-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .latam .latam-table, .latam .latam-table tbody, .latam .latam-table td { display: block; }
  .latam .latam-table tr { display: grid; grid-template-columns: auto 1fr; margin: 0 0 .9rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: #fff; overflow: hidden; }
  .latam .latam-table td { grid-column: 1 / -1; position: static; min-width: 0 !important; padding: .5rem .95rem; border-bottom: 1px dashed var(--line); background: none !important; box-shadow: none; text-align: left; }
  .latam .latam-table td.c-1, .latam .latam-table td.c-2 { background: var(--bg-alt) !important; border-bottom: 1px solid var(--line); padding-top: .7rem; padding-bottom: .6rem; }
  .latam .latam-table td.c-1 { grid-column: 1; padding-right: .1rem; width: auto; }
  .latam .latam-table td.c-2 { grid-column: 2; }
  .latam .latam-table td.c-1::before, .latam .latam-table td.c-2::before { content: none; }
  .latam .latam-table td::before { content: attr(data-label); display: block; margin-bottom: .1rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .latam .latam-table tr td:last-child { border-bottom: 0; }
  .latam .company-name { font-size: 1.08rem; }
}
@media print {
  .latam .page-hero { display: block !important; background: none; color: #000; padding: 0 0 .5rem; }
  .latam .page-intro, .latam .stat-pill, .latam .breadcrumb { color: #333; }
  .latam .stat-pill span { color: #000; }
  .latam .table-wrap { max-height: none; overflow: visible; box-shadow: none; }
  .latam .latam-table { min-width: 0; font-size: 7.5pt; }
  .latam .latam-table th, .latam .latam-table td { position: static; }
  .latam .latam-table th { color: #000; background: #eee; }
}
/* ---------- LATAM END ---------- */

/* Projects: the two simpler cards side by side on desktop */
.project-duo { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .project-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-duo .card-doc .doc-thumb { width: 128px; } .project-duo .card-doc { gap: 1.4rem; align-items: start; } }

/* Projects: TX SWD map card (image left, text right from 860px; stacked on phones) + cross-link on the TX SWD page */
.card-map .card-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
@media (min-width: 860px) { .card-map { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; } }
.page-cross { margin: 1rem 0 0; font-size: .95rem; color: #dbe4ee; }
.page-cross a { color: var(--accent-light); font-weight: 600; text-underline-offset: 3px; }

/* ---------- About: lead paragraph stacked above the Background bio ---------- */
.about-stack { max-width: 46rem; }
.about-bio { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-sub { margin: 0 0 .75rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); }
.about-bio p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.about-bio p:last-child { margin-bottom: 0; }
/* About: Photos gallery (content/photos.md). One per row on phones; 3-column grid from 640px where a landscape
   (.photo--wide) spans 2 columns and a portrait (.photo--tall) spans 1 and is shown smaller. Photos are never cropped. */
.about-photos { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.25rem; align-items: start; } .photo--wide { grid-column: span 2; } }
.photo { margin: 0; min-width: 0; }
.photo-link { display: block; width: 100%; border-radius: 8px; cursor: zoom-in; }
.photo img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 8px; background: #eef1f5; box-shadow: 0 1px 3px rgba(15, 30, 50, .12); }
.photo--tall .photo-link { width: min(100%, 13rem); }
@media (min-width: 640px) { .photo--tall .photo-link { width: min(100%, 10.9rem); } }
.photo figcaption { margin-top: .55rem; font-size: .92rem; line-height: 1.5; color: var(--muted); }

/* ---------- Experience (02): industry cards ---------- */
.exp-card { gap: .75rem; }
.exp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem 1rem; }
.exp-years { margin: 0; font-size: .85rem !important; font-weight: 700; letter-spacing: .04em; color: var(--accent-strong) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp-intro { color: var(--muted) !important; }
.exp-list { margin: 0; }
.exp-list a { color: var(--navy-700); font-weight: 600; }
.exp-list a:hover { color: var(--accent-strong); }
.exp-companies { margin-top: auto !important; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .85rem !important; line-height: 1.5; color: var(--muted) !important; }
.exp-co { white-space: nowrap; }
.exp-card .card-title { line-height: 1.3; }

/* ---------- MINING START: projects/lower-48-uranium + projects/texas-frac-sand (generated by tools/build_mining.py; do not edit by hand) ---------- */
/* the documents' own stylesheet, scoped under .xt-doc */
.xt-doc { font-size: 16px; line-height: normal; letter-spacing: normal; text-align: left; }
@page { size: 8.5in 11in; margin: 0; }
.xt-doc { --paper:#ffffff; --panel:#f6f4ef; --panel2:#faf9f6;
 --rust:#a83208; --amber:#b0640a; --hi:#d4530e;
 --gold:#8f6f08; --ink:#16191d; --ink2:#3b4249; --muted:#6b7683;
 --line:rgba(168,50,8,.22); --line2:rgba(168,50,8,.14); }
.xt-doc * { margin:0;padding:0;box-sizing:border-box; }
.xt-doc { background:var(--paper);font-family:'Barlow','Helvetica Neue',Arial,sans-serif;color:var(--ink);
 -webkit-print-color-adjust:exact;print-color-adjust:exact; }
.xt-doc .page { width:8.5in;height:11in;position:relative;overflow:hidden;background:var(--paper);
 page-break-after:always;break-after:page;margin:0 auto; }
.xt-doc .page:last-child { page-break-after:auto;break-after:auto; }
.xt-doc .page::before { content:'';position:absolute;left:0;top:0;bottom:0;width:0.07in;
 background:linear-gradient(180deg,var(--rust),var(--amber)); }
.xt-doc .inner { padding:0.5in 0.55in 0.9in 0.65in;height:100%;position:relative; }
.xt-doc h1, .xt-doc h2, .xt-doc h3, .xt-doc .disp { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-weight:400;letter-spacing:0.5px; }
.xt-doc .mono { font-family:'Share Tech Mono','Courier New',monospace; }
.xt-doc .cover { background:var(--paper); }
.xt-doc .cover .inner { padding-top:2.1in; }
.xt-doc .cover-label { font-family:'Share Tech Mono','Courier New',monospace;font-size:9pt;letter-spacing:3px;
 color:var(--rust);text-transform:uppercase;margin-bottom:0.3in; }
.xt-doc .cover-title { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:64pt;line-height:0.92;color:var(--ink); }
.xt-doc .cover-title span { color:var(--hi); }
.xt-doc .cover-sub { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:26pt;color:var(--muted);
 letter-spacing:2px;margin-top:6px; }
.xt-doc .rule { width:1.4in;height:3px;background:linear-gradient(90deg,var(--rust),var(--amber));margin:0.28in 0; }
.xt-doc .cover-desc { font-size:11pt;font-weight:400;line-height:1.75;color:var(--ink2);max-width:5.6in; }
.xt-doc .cover-stats { display:flex;gap:0.55in;margin-top:0.45in; }
.xt-doc .stat-num { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:30pt;color:var(--hi);line-height:1; }
.xt-doc .stat-lbl { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:2px;color:var(--muted);
 text-transform:uppercase;margin-top:3px; }
.xt-doc .cover-foot { position:absolute;left:0.65in;right:0.55in;bottom:0.5in;display:flex;justify-content:space-between;
 border-top:1px solid var(--line);padding-top:12px;
 font-family:'Share Tech Mono','Courier New',monospace;font-size:9pt;letter-spacing:2px; }
.xt-doc .cover-foot .a { color:var(--amber); }
.xt-doc .cover-foot .b { color:var(--muted); }
.xt-doc .phead { background:var(--panel);margin:-0.5in -0.55in 0.20in -0.65in;padding:0.28in 0.55in 0.20in 0.65in;
 border-bottom:2px solid var(--rust);position:relative; }
.xt-doc .eyebrow { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:3px;color:var(--rust);
 text-transform:uppercase;margin-bottom:5px; }
.xt-doc .ptitle { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:27pt;color:var(--ink);line-height:1; }
.xt-doc .psub { font-family:'Share Tech Mono','Courier New',monospace;font-size:9pt;color:var(--amber);letter-spacing:1px;margin-top:5px; }
.xt-doc .ghost { position:absolute;right:0.5in;top:0.1in;font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;
 font-size:56pt;color:rgba(168,50,8,.14);line-height:1; }
.xt-doc .slabel { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:3px;color:var(--rust);
 text-transform:uppercase;margin-bottom:9px;display:flex;align-items:center;gap:10px; }
.xt-doc .slabel::after { content:'';flex:1;height:1px;background:var(--line); }
.xt-doc .box { background:var(--panel2);border:1px solid var(--line2);border-left:3px solid var(--rust);
 padding:11px 14px; }
.xt-doc .box.amber { border-left-color:var(--amber);background:#fdf7ee; }
.xt-doc .box.yellow { border-left-color:var(--gold);background:#fdfaee; }
.xt-doc .txt { font-size:9.5pt;font-weight:400;line-height:1.6;color:var(--ink2); }
.xt-doc .txt b { color:var(--ink);font-weight:700; }
.xt-doc p+p { margin-top:7px; }
.xt-doc .grid2 { display:grid;grid-template-columns:1fr 1fr;gap:0.22in; }
.xt-doc .grid3 { display:grid;grid-template-columns:1fr 1fr 1fr;gap:0.16in; }
.xt-doc .meta { display:flex;background:var(--panel);border:1px solid var(--line2);margin-bottom:0.2in; }
.xt-doc .mi { flex:1;padding:8px 11px;border-right:1px solid var(--line2); }
.xt-doc .mi:last-child { border-right:none; }
.xt-doc .mk { font-family:'Share Tech Mono','Courier New',monospace;font-size:6.5pt;letter-spacing:2px;color:var(--muted);
 text-transform:uppercase;margin-bottom:3px; }
.xt-doc .mv { font-size:9pt;font-weight:600;color:var(--ink);line-height:1.25; }
.xt-doc .badges { display:flex;gap:9px; }
.xt-doc .badge { background:#fdf1e6;border:1px solid var(--line);padding:7px 12px;text-align:center; }
.xt-doc .bv { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:15pt;color:var(--hi);line-height:1; }
.xt-doc .bl { font-family:'Share Tech Mono','Courier New',monospace;font-size:6.5pt;letter-spacing:1.5px;color:var(--muted);
 text-transform:uppercase;margin-top:3px; }
.xt-doc .vp { display:flex;flex-direction:column;gap:7px; }
.xt-doc .vpi { display:flex;gap:9px;font-size:9pt;font-weight:400;line-height:1.5;color:var(--ink2); }
.xt-doc .dot { width:5px;height:5px;min-width:5px;max-height:5px;background:var(--hi);flex-shrink:0;margin-top:6px;align-self:start; }
.xt-doc .dot.y { background:var(--gold); }
.xt-doc .chips { display:flex;flex-wrap:wrap;gap:6px; }
.xt-doc .chip { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:1px;color:var(--gold);
 border:1px solid rgba(143,111,8,.45);background:#fdfaee;padding:4px 8px; }
.xt-doc .contacts { display:grid;grid-template-columns:1fr 1fr;gap:7px; }
.xt-doc .ci { display:grid;grid-template-columns:auto 1fr;gap:9px;padding:8px 10px;background:var(--panel2);
 border:1px solid var(--line2); }
.xt-doc .cb { width:11px;height:11px;min-width:11px;max-height:11px;border:1.5px solid var(--rust);background:#fff;
 margin-top:3px;align-self:start; }
.xt-doc .ct { font-size:8.5pt;font-weight:700;color:var(--ink);line-height:1.2; }
.xt-doc .cd { font-size:7.5pt;font-weight:400;color:var(--muted);line-height:1.35;margin-top:2px; }
.xt-doc table { width:100%;border-collapse:collapse; }
.xt-doc th { font-family:'Share Tech Mono','Courier New',monospace;font-size:7pt;letter-spacing:2px;color:var(--rust);
 text-transform:uppercase;text-align:left;padding:6px 7px;border-bottom:1.5px solid var(--rust);vertical-align:bottom; }
.xt-doc td { font-size:8pt;font-weight:400;line-height:1.4;color:var(--ink2);padding:5px 7px;
 border-bottom:1px solid var(--line2);vertical-align:top; }
.xt-doc td b { color:var(--ink);font-weight:700; }
.xt-doc tr:nth-child(even) td { background:var(--panel2); }
.xt-doc .tag { font-family:'Share Tech Mono','Courier New',monospace;font-size:6.5pt;letter-spacing:1px;padding:2px 5px;
 border:1px solid;white-space:nowrap; }
.xt-doc .t-hi { color:#1c6b2e;border-color:rgba(28,107,46,.5);background:#eef7f0; }
.xt-doc .t-md { color:#8f6f08;border-color:rgba(143,111,8,.5);background:#fdfaee; }
.xt-doc .t-lo { color:#5d6874;border-color:rgba(93,104,116,.45);background:#f4f5f6; }
.xt-doc table.tight { table-layout:fixed; }
.xt-doc table.tight td { font-size:8pt;padding:7px 7px;line-height:1.4; }
.xt-doc table.tight .tag { display:inline-block;margin-bottom:2px; }
.xt-doc table.tight th { padding:5px 6px; }
.xt-doc .mail { background:var(--panel2);border:1px solid var(--line2);padding:11px 13px; }
.xt-doc .mail .to { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:1.5px;color:var(--amber);
 text-transform:uppercase;margin-bottom:6px; }
.xt-doc .mail .subj { font-size:9pt;font-weight:700;color:var(--rust);margin-bottom:7px; }
.xt-doc .mail .body { font-size:8.5pt;font-weight:400;line-height:1.55;color:var(--ink2);white-space:pre-line; }
.xt-doc .steps { counter-reset:s;display:flex;flex-direction:column;gap:9px; }
.xt-doc .step { display:grid;grid-template-columns:auto 1fr;gap:11px; }
.xt-doc .sn { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:15pt;color:var(--hi);line-height:1;
 width:0.3in;flex-shrink:0; }
.xt-doc .sh { font-size:9.5pt;font-weight:700;color:var(--ink);margin-bottom:2px; }
.xt-doc .sd { font-size:8.5pt;font-weight:400;line-height:1.5;color:var(--ink2); }
.xt-doc .pfoot { position:absolute;left:0.65in;right:0.55in;bottom:0.45in;padding-top:9px;
 border-top:1px solid var(--line2);display:flex;justify-content:space-between;align-items:center; }
.xt-doc .fb { font-family:'Share Tech Mono','Courier New',monospace;font-size:8pt;color:var(--amber);letter-spacing:2px; }
.xt-doc .fc { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;color:var(--muted);letter-spacing:1.5px; }
.xt-doc .pn { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:14pt;color:var(--hi); }
.xt-doc .spacer { height:0.16in; }
.xt-doc .small { font-size:7.5pt;line-height:1.45;color:var(--muted);font-weight:400; }
.xt-doc .co .slabel { margin-bottom:6px; }
.xt-doc .co .mk { font-size:6pt; }
.xt-doc .co .mv { font-size:8.2pt;line-height:1.2; }
.xt-doc .co .mi { padding:6px 9px; }
.xt-doc .co .meta { margin-bottom:0.14in; }
.xt-doc .co .vp { gap:5px; }
.xt-doc .co .vpi { font-size:8.2pt;line-height:1.45; }
.xt-doc .co .vpi .dot { margin-top:5px; }
.xt-doc .co table.tight td { font-size:7.8pt;padding:4.5px 6px; }
.xt-doc .co table.tight th { padding:4px 6px; }
.xt-doc .co .box .txt { font-size:8.8pt;line-height:1.5; }
.xt-doc .co .ct { font-size:8pt; }
.xt-doc .co .cd { font-size:7.2pt; }
.xt-doc .co .ci { padding:6px 9px; }
.xt-doc .eyebrow { font-weight: 400; }
/* page chrome */
.xt-page .page-back { margin: .9rem 0 0; font-size: .95rem; }
.xt-page .page-back a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.xt-page .xt-back { margin: 1.5rem 0 2.5rem; }
@media screen {
  .xt-doc { background: #e8e4dc; padding: 28px 12px 40px; }
  .xt-doc .page { height: auto; min-height: 11in; overflow: visible; margin: 0 auto 24px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 10px 28px rgba(0,0,0,.08); }
  .xt-doc .page:last-child { margin-bottom: 0; }
  .xt-doc .inner { height: auto; min-height: 11in; }
  .xt-doc .xt-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media screen and (max-width: 880px) {
  .xt-doc { padding: 12px 8px 24px; overflow-wrap: break-word; }
  .xt-doc .page { width: 100%; min-height: 0; margin-bottom: 12px; }
  .xt-doc .inner { min-height: 0; padding: 22px 16px 22px 22px; }
  .xt-doc .cover .inner { padding-top: 56px; }
  .xt-doc .phead { margin: -22px -16px 16px -22px; padding: 18px 16px 14px 22px; }
  .xt-doc .ghost { right: 14px; top: 8px; font-size: 40pt; }
  .xt-doc .cover-title { font-size: clamp(40px, 13vw, 64pt); }
  .xt-doc .cover-sub { font-size: clamp(20px, 6vw, 26pt); }
  .xt-doc .cover-desc { max-width: none; }
  .xt-doc .cover-stats { flex-wrap: wrap; gap: 18px 32px; margin-top: 28px; }
  .xt-doc .cover-foot, .xt-doc .pfoot { position: static; margin-top: 28px; flex-wrap: wrap; gap: 6px 16px; }
  .xt-doc .meta { flex-wrap: wrap; }
  .xt-doc .mi { flex: 1 1 45%; min-width: 0; border-bottom: 1px solid var(--line2); }
  .xt-doc .badges { flex-wrap: wrap; }
  .xt-doc .xt-tw-w table { min-width: 640px; }
}
@media screen and (max-width: 640px) {
  .xt-doc .grid2, .xt-doc .grid3, .xt-doc .contacts { grid-template-columns: 1fr; }
}
@media print {
  .xt-page .xt-back { display: none; }
}
/* ---------- MINING END ---------- */

/* ---------- TXSWDMAP START: projects/tx-swd-map (generated by tools/build_txswdmap.py; do not edit by hand) ---------- */
.swdmap .page-hero { padding: 1.4rem 0 1.25rem; }
.swdmap .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .3rem 0 .35rem; }
.swdmap .page-intro { font-size: 1rem; }
.swdmap .page-back { margin: .6rem 0 0; font-size: .95rem; color: #b9c6d4; }
.swdmap .page-back a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.swdmap-wrap { max-width: 1400px; margin: 0 auto; padding: 1rem 1.25rem 1.5rem; }
.swdmap .swd-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.swdmap .swd-field { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--muted); min-width: 0; }
.swdmap .swd-field span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.swdmap .swd-field select { font: inherit; font-size: .95rem; color: var(--ink); padding: 7px 8px; border: 1px solid #b9c2cd; border-radius: 6px; background: #fff; width: 16rem; max-width: 100%; min-height: 40px; }
.swdmap #f-operator { width: 22rem; }
.swdmap .swd-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding-bottom: 9px; cursor: pointer; }
.swdmap .swd-check input { width: 18px; height: 18px; margin: 0; flex: none; }
.swdmap .swd-status { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-bottom: 4px; }
.swdmap #swd-count { font-size: .92rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.swdmap .swd-btn { font: inherit; font-size: .88rem; padding: 7px 14px; min-height: 36px; cursor: pointer; border: 1px solid #b9c2cd; border-radius: 6px; background: #f3f5f8; color: var(--ink); }
.swdmap .swd-btn:hover { background: #e6eaf0; }
/* map fills the viewport below the sticky site header (+ the filter bar) */
.swdmap .swd-map-wrap { position: relative; height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 420px; }
.swdmap #swd-map { position: absolute; inset: 0; z-index: 0; isolation: isolate; border: 1px solid #c3ccd6; border-radius: 8px; background: #e8e8e4; }
.swdmap .leaflet-container { font-family: var(--font-sans); }
.swdmap .leaflet-container img { max-width: none; }
.swdmap .swd-footer { font-size: .8rem; color: var(--muted); padding-top: 8px; line-height: 1.45; }
.swdmap .swd-footer p { margin: 0 0 3px; }
.swdmap .swd-attr { color: #6b7683; }
.swdmap .swdmap-back { margin: 1rem 0 0; }
.swdmap .swd-legend { background: rgba(255,255,255,.93); padding: 8px 10px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.3); font-size: 12px; line-height: 1.5; color: #222; }
.swdmap .swd-legend h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.swdmap .swd-legend .row { display: flex; align-items: center; gap: 7px; }
.swdmap .swd-legend svg { flex: none; display: block; }
.swdmap .swd-info { font-size: 12.5px; line-height: 1.45; min-width: 190px; }
.swdmap .swd-info .nm { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.swdmap .swd-info a { color: #1f4e9c; word-break: break-all; }
.swdmap .swd-info .ll { color: #666; }
.swdmap .leaflet-tooltip.swd-tip { padding: 6px 8px; }
@media (max-width: 720px) {
  .swdmap-wrap { padding: .75rem .75rem 1.25rem; }
  .swdmap .swd-controls { gap: 8px; padding: 8px; }
  .swdmap .swd-field { flex: 1 1 100%; }
  .swdmap .swd-field select, .swdmap #f-operator { width: 100%; font-size: 16px; }
  .swdmap .swd-check { padding-bottom: 2px; }
  .swdmap .swd-status { margin-left: 0; width: 100%; justify-content: space-between; }
  .swdmap .swd-map-wrap { height: 72vh; height: 72dvh; min-height: 360px; }
  .swdmap .swd-legend { font-size: 11px; padding: 5px 7px; }
  .swdmap .swd-legend h4 { font-size: 11px; }
}
@media print { .swdmap .swd-controls, .swdmap .swdmap-back { display: none; } .swdmap .swd-map-wrap { height: 7in; } }
/* ---------- TXSWDMAP END ---------- */

/* ---------- LMOP START: projects/lmop (iframe Leaflet map) ---------- */
.lmopmap .page-hero { padding: 1.4rem 0 1.25rem; }
.lmopmap .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .3rem 0 .35rem; }
.lmopmap .page-intro { font-size: 1rem; }
.lmopmap .page-facts { margin: .55rem 0 0; font-size: .92rem; color: #b9c6d4; line-height: 1.45; max-width: 52rem; }
.lmopmap .page-back { margin: .6rem 0 0; font-size: .95rem; color: #b9c6d4; }
.lmopmap .page-back a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.lmopmap-wrap { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem 1.5rem; }
.lmopmap .lmop-frame-wrap { position: relative; height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 420px; border: 1px solid #c3ccd6; border-radius: 8px; overflow: hidden; background: #e8e8e4; }
.lmopmap .lmop-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lmopmap .lmopmap-back { margin: 1rem 0 0; }
@media (max-width: 720px) {
  .lmopmap-wrap { padding: 0 .75rem 1.25rem; }
  .lmopmap .lmop-frame-wrap { height: 72vh; height: 72dvh; min-height: 360px; }
}
@media print {
  .lmopmap .lmopmap-back { display: none; }
  .lmopmap .lmop-frame-wrap { height: 7in; }
}
/* ---------- LMOP END ---------- */

/* ---------- HOME WIDTH: home-page text spans the full container (same right edge as the hero photo) ---------- */
#about .about-stack, #skills .section-intro, #contact .contact-list { max-width: none; }
#creed .creed-inner { max-width: var(--maxw); }

/* ---------- HERO TWEAKS: attribution inline after the quote; tighter hero buttons ---------- */
.hero-quote blockquote, .hero-quote blockquote p { display: inline; }
.hero-quote figcaption { display: inline; margin: 0 0 0 .4em; white-space: nowrap; }
.hero-actions .btn { padding: .45rem .8rem; }

/* ---------- HERO BACKGROUND IMAGE: navy overlay over dusk panorama; replaces the line texture ---------- */
.hero {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(14,22,36,.62) 0%, rgba(14,22,36,.50) 45%, rgba(14,22,36,.25) 100%),
    url("../img/hero-1920.jpg");
  background-size: cover; background-position: center right; background-repeat: no-repeat;
}
.hero::after { display: none; }
@media (min-width: 1600px), (min-resolution: 2dppx) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(14,22,36,.62) 0%, rgba(14,22,36,.50) 45%, rgba(14,22,36,.25) 100%),
      url("../img/hero-4k.jpg");
  }
}
@media (max-width: 759px) {
  .hero { background-image: linear-gradient(rgba(14,22,36,.85), rgba(14,22,36,.85)), url("../img/hero-1920.jpg"); }
}
@media (max-width: 759px) and (min-resolution: 2dppx) {
  .hero { background-image: linear-gradient(rgba(14,22,36,.85), rgba(14,22,36,.85)), url("../img/hero-4k.jpg"); }
}
.hero-text { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-actions .btn { text-shadow: none; }
