/* Joinable dry-run — warm, scannable, mobile-first */
:root {
  --ink: #1a2332;
  --muted: #5a6577;
  --line: #e4e9f0;
  --line-strong: #cbd5e1;
  --bg: #f6f4ef;
  --bg-soft: #efece4;
  --card: #ffffff;
  --brand: #0d8a7f;
  --brand-dark: #0a6e65;
  --brand-soft: #e6f7f5;
  --warn: #b45309;
  --warn-bg: #fff8eb;
  --warn-border: #f59e0b;
  --alert: #9f1239;
  --alert-bg: #fff1f2;
  --alert-border: #e11d48;
  --info: #1e40af;
  --info-bg: #eff6ff;
  --info-border: #93c5fd;
  --easy: #047857;
  --easy-bg: #ecfdf5;
  --easy-border: #6ee7b7;
  --med: #b45309;
  --med-bg: #fffbeb;
  --med-border: #fcd34d;
  --hard: #b91c1c;
  --hard-bg: #fef2f2;
  --hard-border: #fca5a5;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 900px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 1px 2px rgba(26, 35, 50, 0.04), 0 4px 12px rgba(26, 35, 50, 0.04);
  --focus: 0 0 0 3px rgba(13, 138, 127, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem; /* ~17px — readable on phone */
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--brand); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.filter-chip:focus-visible,
.btn-text:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  box-shadow: none;
}

/* —— PREVIEW banner: compact, sticky, doesn’t crush content —— */
.preview-banner {
  background: #7c2d12;
  color: #fff7ed;
  text-align: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  position: sticky;
  top: 0;
  z-index: 100;
}
.preview-banner span {
  font-weight: 400;
  opacity: 0.92;
  display: inline;
}
@media (max-width: 520px) {
  .preview-banner {
    font-size: 0.72rem;
    padding: 0.4rem 0.65rem;
  }
}

/* —— Header / nav —— */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.15rem 1rem;
}
.site-header .inner,
.site-footer .inner,
main {
  max-width: var(--max);
  margin: 0 auto;
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}
.brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand em { color: var(--brand); font-style: normal; }
.brand:hover { color: var(--ink); }
.tagline {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
nav {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  font-size: 0.92rem;
}
nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid transparent;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: #b8e6e1;
}
nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: var(--brand);
}

/* —— Breadcrumb —— */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--line-strong);
  font-weight: 600;
  margin-left: 0.15rem;
}
.breadcrumb a { text-decoration: none; font-weight: 600; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

main { padding: 1.35rem 1.15rem 3.25rem; }

h1 {
  font-size: clamp(1.55rem, 4.5vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
  color: var(--ink);
}
h2 {
  font-size: 1.22rem;
  margin: 2rem 0 0.7rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
h3 {
  font-size: 1.05rem;
  margin: 1.15rem 0 0.4rem;
  line-height: 1.35;
}
p { margin: 0 0 0.85rem; }
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.15rem;
}
.lede strong { color: var(--ink); }

/* —— Cards —— */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card-list { display: grid; gap: 0.75rem; margin: 1rem 0; }
.cu-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cu-card:hover {
  border-color: #b8e6e1;
  box-shadow: 0 2px 10px rgba(13, 138, 127, 0.08);
}
.cu-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}
.cu-card h3 a { text-decoration: none; }
.cu-card .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.15rem 0 0;
  line-height: 1.45;
}

/* —— Badges: louder Easy / Medium / Hard —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge.easy {
  background: var(--easy-bg);
  color: var(--easy);
  border-color: var(--easy-border);
}
.badge.medium {
  background: var(--med-bg);
  color: var(--med);
  border-color: var(--med-border);
}
.badge.hard {
  background: var(--hard-bg);
  color: var(--hard);
  border-color: var(--hard-border);
}

/* —— Callouts —— */
.caveat,
.alert,
.note-cip,
.info-box {
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.caveat {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--warn);
  color: #78350f;
}
.alert {
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  border-left: 4px solid var(--alert);
  color: #881337;
  font-weight: 500;
}
.alert strong { color: #9f1239; }
.note-cip {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-left: 4px solid var(--info);
  color: #1e3a8a;
  font-size: 0.9rem;
}
.info-box {
  background: var(--brand-soft);
  border: 1px solid #b8e6e1;
  border-left: 4px solid var(--brand);
  color: #0f4c47;
}

/* —— Start-here path cards —— */
.start-paths {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 640px) {
  .start-paths { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .start-paths.start-paths-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.path-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}
a.path-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 12px rgba(13, 138, 127, 0.12);
  color: inherit;
}
.path-card .path-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-dark);
}
.path-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.path-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}
.path-card .path-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 0.25rem;
}

/* —— At-a-glance (CU pages) —— */
.glance {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .glance { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .glance { grid-template-columns: repeat(4, 1fr); }
}
.glance-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow);
}
.glance-item .gl-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.glance-item .gl-value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.page-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.75rem;
}

/* —— Fields (CU detail) —— */
dl.fields {
  margin: 0.5rem 0 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 1.15rem 1rem;
  box-shadow: var(--shadow);
}
dl.fields dt {
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
dl.fields dt:first-of-type {
  border-top: none;
  padding-top: 0.5rem;
}
dl.fields dd {
  margin: 0.3rem 0 0;
  line-height: 1.55;
}
dl.fields dt.priority,
dl.fields dt.priority + dd {
  /* visual weight for who / how hard / fees */
}
dl.fields dt.priority {
  color: var(--brand-dark);
  font-size: 0.78rem;
}

/* —— Sources —— */
.sources-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}
.sources-box h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.source-list {
  font-size: 0.9rem;
  margin: 0;
  padding-left: 1.15rem;
}
.source-list li { margin-bottom: 0.4rem; word-break: break-word; }

.verified {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  line-height: 1.45;
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--bg-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbfc; }

/* —— Filter chips (LA hub) —— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.filter-bar .filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.15rem;
}
.filter-chip {
  appearance: none;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 2.4rem;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-chip[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.filter-chip.easy[aria-pressed="true"] {
  background: var(--easy-bg);
  border-color: var(--easy);
  color: var(--easy);
}
.filter-chip.medium[aria-pressed="true"] {
  background: var(--med-bg);
  border-color: var(--med);
  color: var(--med);
}
[data-difficulty].is-hidden { display: none; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-top: 0.35rem;
  min-height: 2.75rem;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(10, 110, 101, 0.2);
}
.btn:hover { background: var(--brand-dark); color: #fff !important; }
.btn-secondary {
  background: var(--card);
  color: var(--brand-dark) !important;
  border: 1.5px solid var(--brand);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.grid-2 {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

ul.compact { padding-left: 1.2rem; margin: 0.4rem 0 0.85rem; }
ul.compact li { margin-bottom: 0.4rem; }

.section-intro {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
  margin: -0.25rem 0 0.85rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  margin: 0.25rem 0 1rem;
  color: var(--brand-dark);
}
.back-link:hover { color: var(--brand); }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 1.5rem 1.15rem 2rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.site-footer strong { color: var(--ink); }
.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.65rem 0 0.85rem;
}
.site-footer .footer-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.site-footer .sep {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

code {
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cu-card, .path-card { transition: none; }
}

.table-hint {
  display: none;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 0.15rem;
}
@media (max-width: 639px) {
  .table-hint { display: block; }
}


/* —— Area chips + helper (LA hub) —— */
.area-bar { margin-top: 0.15rem; }
.area-helper {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.35rem 0 1rem;
  max-width: 42rem;
  line-height: 1.45;
}
.area-helper strong { color: var(--ink); font-weight: 700; }

/* —— Shortlist checkbox column —— */
.col-check {
  width: 2.5rem;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.65rem;
  padding-right: 0.35rem;
}
.shortlist-cb {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brand);
  cursor: pointer;
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Sticky shortlist panel —— */
.shortlist-panel {
  position: sticky;
  top: 2.35rem; /* below PREVIEW banner */
  z-index: 90;
  margin: 0.75rem 0 1rem;
}
.shortlist-inner {
  background: var(--card);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 18px rgba(13, 138, 127, 0.12), var(--shadow);
  background-image: linear-gradient(180deg, var(--brand-soft) 0%, var(--card) 48%);
}
.shortlist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
}
.shortlist-head strong {
  color: var(--brand-dark);
  font-size: 0.95rem;
}
.shortlist-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.shortlist-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}
.shortlist-list li a {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid #b8e6e1;
  color: var(--brand-dark);
}
.shortlist-list li a:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.shortlist-msg {
  font-size: 0.85rem;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  margin: 0 0 0.5rem;
}
.btn-text {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.btn-text:hover { color: var(--brand-dark); }
.btn-text:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

tbody tr.is-shortlisted td {
  background: #f3fbfa;
}

.start-paths-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
