:root {
  /* Shared typography and layout for every route; see docs/style-guide.md. */
  --page-width: 1120px;
  --page-gutter: 24px;
  --page-top: 24px;
  --page-bottom: 32px;
  --reading-width: 780px;
  --space-small: 8px;
  --space-text: 16px;
  --space-section: 24px;
  --note-padding: 16px 20px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --text-small: 12px;
  --text-compact: 13px;
  --text-body: 14px;
  --text-subheading: 16px;
  --text-heading: 24px;
  --text-title: 30px;
  --text-brand: 24px;
  --leading-body: 1.5;
  color-scheme: light;
  font-family: var(--font-body);
  color: #202122;
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
a {
  color: #36c;
  text-decoration: none;
}
a:visited {
  color: #795cb2;
}
a:hover,
p a {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
summary,
label:has(input[type="checkbox"]) {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid #36c;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: var(--text-title);
  line-height: 1.25;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #a2a9b1;
}
h2 {
  font-size: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid #a2a9b1;
}
h1,
h2 {
  font-family: var(--font-heading);
  font-weight: normal;
}
h3 {
  font-size: var(--text-subheading);
  font-weight: 700;
}
.wrap {
  width: min(var(--page-width), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}
.content-page {
  flex: 1;
  padding-block: var(--page-top) var(--page-bottom);
}
.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;
}
[hidden],
.js-only,
.tracker-cell {
  display: none !important;
}
.enhanced .js-only {
  display: flex !important;
}
.enhanced .tracker-cell {
  display: table-cell !important;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 10;
  background: white;
  padding: 8px;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 24px;
  min-height: 58px;
  padding-block: 12px;
  border-bottom: 1px solid #eaecf0;
}
.brand,
.brand:visited {
  font-family: var(--font-heading);
  font-size: var(--text-brand);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #202122;
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  max-width: 100%;
  line-height: 1.25;
  min-height: 44px;
  white-space: nowrap;
}
.brand-mark {
  width: 1.333333em;
  height: 1.333333em;
  flex: none;
}
.site-header nav {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  justify-content: flex-end;
}
.site-header nav a,
.header-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 4px;
}
.header-source {
  gap: 4px;
  font-size: var(--text-compact);
}
.header-source,
.header-source:visited {
  color: #54595d;
}
.site-header nav a,
.site-header nav a:visited {
  color: #36c;
}
.site-header nav a[aria-current="page"] {
  color: #202122;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.directory-section {
  padding-bottom: var(--space-section);
}
.progress-panel {
  position: relative;
  font-variant-numeric: tabular-nums;
}
.storage-note {
  margin-top: 10px;
  font-size: var(--text-small);
}
.category-buttons {
  flex-wrap: wrap;
  gap: 0 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #c8ccd1;
}
.category {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #36c;
  background: none;
  font-size: var(--text-body);
  min-height: 26px;
}
.category:hover {
  text-decoration: underline;
}
.category.active {
  color: #202122;
  border-bottom-color: #202122;
  text-decoration: none;
}
.filter-count {
  color: #54595d;
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}
.search-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  width: 100%;
}
input[type="search"],
select {
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  background: white;
  color: #222;
  padding: 5px 8px;
  min-height: 33px;
}
input[type="search"]::placeholder {
  color: #666;
}
.sort-label,
.free-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.free-toggle {
  white-space: nowrap;
  font-size: var(--text-compact);
  min-height: 33px;
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
}
.results-heading,
.category-description {
  font-size: var(--text-small);
  color: #555;
  margin-bottom: 9px;
}
.results-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.progress-panel {
  margin-left: auto;
}
.table-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
}
.directory-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-compact);
  background: #f8f9fa;
}
.directory-table th,
.directory-table td {
  padding: 8px 10px;
  border: 1px solid #a2a9b1;
  vertical-align: top;
}
.directory-table thead {
  background: #eaecf0;
}
.directory-table thead th {
  font-size: var(--text-small);
  white-space: nowrap;
  vertical-align: middle;
}
.directory-table tbody tr:hover {
  background: #eef1f5;
}
.name-cell {
  min-width: 145px;
  font-weight: normal;
}
.notes-cell {
  width: 100%;
  min-width: 260px;
}
.badge {
  white-space: nowrap;
  font-size: var(--text-small);
}
.date-cell {
  white-space: nowrap;
  font-size: var(--text-small);
  color: #555;
  font-variant-numeric: tabular-nums;
}
.directory-table .tracker-cell {
  text-align: center;
  padding-inline: 7px;
}
.directory-table tbody .tracker-cell {
  padding: 4px 7px;
  vertical-align: middle;
}
.done-control {
  display: grid;
  place-items: center;
  width: 28px;
  height: 30px;
  margin-inline: auto;
}
.listing.is-complete .name-cell a {
  color: #666;
  text-decoration: line-through;
}
.save-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 30px;
  margin-inline: auto;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #666;
}
.save-button svg {
  width: 15px;
  height: 15px;
}
.save-button[aria-pressed="true"] svg {
  fill: #333;
  color: #333;
}
.empty-state {
  padding: 24px 0;
}
.empty-state p {
  margin: 5px 0 12px;
}
.primary-button {
  padding: 5px 10px;
}
.help-section {
  font-size: var(--text-compact);
}
summary {
  color: #36c;
  padding: 3px 0;
}
summary:hover {
  text-decoration: underline;
}
details p {
  margin: 6px 0 14px 18px;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-text);
  border-top: 1px solid #a2a9b1;
  padding-block: var(--space-text) var(--space-section);
  font-size: var(--text-small);
  color: #555;
}
@media (max-width: 700px) {
  :root {
    --page-gutter: 14px;
    --page-top: 20px;
    --page-bottom: 24px;
    --note-padding: 16px;
    --text-title: 27px;
    --text-brand: 21px;
  }
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding-block: 8px 0;
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .site-header nav a {
    border-bottom: 2px solid transparent;
  }
  .site-header nav a[aria-current="page"] {
    border-bottom-color: #36c;
    text-decoration: none;
    background: #f8f9fa;
  }
  .header-source {
    grid-column: 2;
    grid-row: 1;
  }
  .category-buttons {
    gap: 0 14px;
    margin-bottom: 12px;
  }
  .category {
    min-height: 44px;
  }
  .search-box {
    flex-basis: 100%;
  }
  .search-toolbar {
    gap: 8px;
  }
  .sort-label select {
    font-size: var(--text-subheading);
    padding-inline: 6px;
  }
  input[type="search"],
  select,
  .free-toggle {
    min-height: 44px;
  }
  input[type="search"] {
    font-size: var(--text-subheading);
  }
  .free-toggle {
    font-size: var(--text-small);
    margin-left: auto;
  }
}

/* Field notes extend the existing quiet, reference-book typography. */
.directory-intro,
.lead {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-bottom: var(--space-text);
  max-width: 70ch;
  color: #54595d;
}
.eyebrow,
.breadcrumbs,
.article-meta {
  color: #54595d;
  font-size: var(--text-small);
  margin-bottom: 12px;
}
.eyebrow {
  letter-spacing: 0.04em;
}
.muted {
  color: #54595d;
  font-size: var(--text-small);
}
.editorial-list {
  list-style: none;
  padding: 0;
  max-width: var(--reading-width);
  margin: var(--space-section) 0;
}
.editorial-list > li {
  border-bottom: 1px solid #c8ccd1;
  padding: var(--space-section) 0;
}
.editorial-list > li:first-child {
  padding-top: 0;
}
.editorial-list h2 {
  border: 0;
  padding: 0;
  margin-bottom: 8px;
}
.editorial-list p + p {
  margin-top: var(--space-small);
}
.editorial-note {
  background: #f8f9fa;
  border-left: 3px solid #a2a9b1;
  padding: var(--note-padding);
  margin-block: var(--space-section);
  max-width: var(--reading-width);
}
.editorial-note h2 {
  border: 0;
  padding: 0;
  margin-bottom: 8px;
}
.editorial-note > :last-child {
  margin-bottom: 0;
}
.content-page > :last-child,
.article > :last-child {
  margin-bottom: 0;
}
.bundle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 40px;
  align-items: start;
}
.bundle-list {
  list-style: none;
  padding: 0;
  margin: var(--space-section) 0;
}
.bundle-entry {
  padding: var(--space-section) 0;
  border-bottom: 1px solid #c8ccd1;
}
.entry-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-text);
  flex-wrap: wrap;
  margin-bottom: var(--space-small);
  align-items: center;
}
.bundle-entry > p {
  margin-bottom: 8px;
}
.bundle-comparison {
  margin-bottom: var(--space-section);
}
.bundle-filters {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: var(--space-section);
}
.bundle-enhanced .bundle-filters {
  display: flex;
}
.bundle-filters select {
  max-width: 100%;
  min-height: 44px;
}
.bundle-controls {
  display: none;
  gap: 12px;
  align-items: center;
  font-size: var(--text-small);
}
.bundle-enhanced .bundle-controls {
  display: flex;
}
.bundle-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bundle-controls button {
  border: 1px solid #a2a9b1;
  padding: 6px 12px;
  background: #fff;
  border-radius: 2px;
}
.bundle-controls button[aria-pressed="true"] {
  background: #eaecf0;
}
.bundle-storage {
  display: none;
}
.bundle-enhanced .bundle-storage {
  display: block;
}
.bundle-aside {
  border-left: 1px solid #eaecf0;
  padding-left: 24px;
}
.experience-detail {
  border-left: 2px solid #c8ccd1;
  margin-top: 12px;
  padding-left: 16px;
}
.experience-detail p {
  margin: 0 0 8px;
}
.experience-state {
  font-weight: bold;
}
.experience-fields {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
}
.experience-fields dt {
  margin: 0;
  font-weight: bold;
}
.experience-fields dd {
  margin: 0;
}
.observation {
  border-top: 1px solid #eaecf0;
  padding-top: 12px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.observation-value {
  font-weight: bold;
}
.article > :not(h1, .lead) {
  max-width: var(--reading-width);
}
.prose p:where(:not(.lead, .eyebrow, .article-meta, .editorial-note)) {
  margin-bottom: var(--space-text);
}
.prose section {
  margin-block: var(--space-section);
}
.prose section:first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: var(--space-section);
  margin-block: var(--space-text);
}
.prose li {
  margin-bottom: var(--space-small);
}
.prose :is(p, ul, ol):last-child {
  margin-bottom: 0;
}
.prose a,
.editorial-note a {
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .bundle-layout {
    grid-template-columns: 1fr;
    gap: var(--space-section);
  }
  .bundle-aside {
    border-left: 0;
    padding-left: 0;
  }
}

.experience-sessions {
  margin-top: 12px;
}
.experience-sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.experience-sessions-table caption {
  text-align: left;
  font-weight: bold;
  margin-bottom: 8px;
}
.experience-sessions-table th,
.experience-sessions-table td {
  border-top: 1px solid #eaecf0;
  padding: 6px 8px;
  text-align: left;
}
.experience-sessions-table thead th {
  border-top: none;
  font-size: 0.9em;
}


/* Center the left badge between the viewport edge and the shared page column. */
.home-shell {
  --partner-badge-width: 212px;
  width: 100%;
  margin-inline: auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--page-width)) minmax(0, 1fr);
  grid-template-areas: "rail-left main .";
  align-items: start;
  padding-block: var(--page-top) var(--page-bottom);
}
.home-shell .home-main {
  grid-area: main;
  width: 100%;
  min-width: 0;
  margin-inline: 0;
  max-width: none;
  padding-block: 0;
}
.partner-rail {
  grid-area: rail-left;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-self: center;
  width: var(--partner-badge-width);
  min-width: 0;
}
.partner-rail__label,
.partner-strip__label {
  margin: 0;
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #54595d;
}
.partner-rail a,
.partner-strip a {
  display: block;
  line-height: 0;
}
.partner-rail img,
.partner-strip img {
  display: block;
  width: var(--partner-badge-width);
  max-width: 100%;
  height: auto;
}
.partner-strip {
  display: none;
  grid-area: strip;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 16px;
  padding: 10px 0 12px;
  border-bottom: 1px solid #eaecf0;
}
/* Centered 1120px content + two 260px gutters; the left fits a badge with 24px clearance. */
@media (max-width: 1639px) {
  .home-shell {
    width: min(var(--page-width), calc(100% - 2 * var(--page-gutter)));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "strip"
      "main";
    column-gap: 0;
  }
  .partner-rail {
    display: none;
  }
  .partner-strip {
    display: flex;
  }
}
