/* Shared editorial design. System fonts are not redistributed. */
:root {
  --ink: #101725;
  --muted: #526078;
  --green: #064cac;
  --accent: #eaf0f8;
  --paper: #fff;
  --line: #d9dfe8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: var(--green); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #c17600;
  outline-offset: 5px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }
[hidden] { display: none !important; }
.wrap { width: min(100%, 2048px); margin: auto; padding-inline: 32px; }
.small { font-size: 12px; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--green); margin-bottom: 19px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 15px; top: -80px; background: white; z-index: 9; padding: 12px; }
.skip:focus { top: 10px; }

/* Brand and navigation. */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 25px; min-height: 76px; }
.brand { display: flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 850; font-size: 28px; letter-spacing: -1.3px; color: var(--ink); }
.brand img { display: block; width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.brand-caption { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 20px; white-space: nowrap; }
nav { display: flex; gap: 23px; }
nav a { font-size: 14px; text-decoration: none; color: var(--muted); font-weight: 650; }
nav a[aria-current] { color: var(--green); }
.header-inner nav { margin-left: auto; gap: 25px; }
.github-link { font-size: 13px; font-weight: 750; text-decoration: none; border: 1px solid #8792a5; border-radius: 2px; padding: 9px 22px; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 0; border-radius: 2px; min-height: 44px; padding: 10px 20px; background: var(--green); color: white; text-decoration: none; font-size: 14px; font-weight: 750; cursor: pointer; }
.outline { border: 1px solid #79869c; background: transparent; color: var(--ink); min-height: 35px; padding: 7px 20px; font-size: 12px; }
.text-link { font-size: 14px; font-weight: 750; text-decoration: none; }

/* Page structure and homepage. */
.section { padding-block: 48px; }
.page-title { font-size: 40px; margin-bottom: 20px; }
.lede { font-size: 18px; color: var(--muted); max-width: 720px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 16px; }
.section-heading h2, .directory-aside > h2 { font-size: 25px; margin: 0; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 0; }
.home-intro { padding-top: 45px; }
.home-intro h1 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 7px; line-height: 1.12; }
.home-intro > p { font-size: 19px; color: var(--muted); margin-bottom: 24px; }
.home-search { display: flex; gap: 12px; max-width: 960px; }
.home-search input { flex: 1; min-width: 0; padding: 12px; border: 1px solid #bbc6d6; font: inherit; }
.category-tabs { display: flex; gap: 30px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-top: 21px; white-space: nowrap; }
.category-tabs a { display: block; min-height: 42px; padding: 9px 2px 11px; font-size: 13px; font-weight: 600; }
.category-tabs a[aria-current] { border-bottom: 2px solid var(--green); color: var(--green); }
.home-directory { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 27px; padding-block: 25px 27px; }
.directory-aside { border-left: 1px solid var(--line); padding-left: 24px; }
.directory-aside > p { font-size: 14px; color: var(--muted); margin: 8px 0 15px; }
.publisher-list > div { border-top: 1px solid var(--line); padding: 11px 0; }
.publisher-list a { font-size: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.publisher-list p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.directory-aside > a, .index-more { font-size: 13px; display: inline-block; margin-top: 12px; text-decoration: none; }
.publisher-countries { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 20px; }
.publisher-countries a { font-size: 13px; }
.directory-aside .publisher-countries { margin-block: 12px 24px; }
.community-panel { background: #f3f5f8; padding: 20px; margin-top: 22px; }
.community-panel .eyebrow { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.community-panel h2 { font-size: 24px; margin-bottom: 7px; }
.community-panel > p:not(.eyebrow) { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* Shared discovery controls. */
.catalog-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 45px; margin-top: 40px; }
.home-directory > *, .catalog-layout > *, .directory-main, .filters, .collection { min-width: 0; }
.filters { align-self: start; border: 1px solid var(--line); padding: 20px; background: white; border-radius: 2px; }
.filters h2 { font-size: 13px; margin: 4px 0 12px; letter-spacing: 0; }
.filters h2:not(:first-child) { margin-top: 27px; }
.filters a { display: block; font-size: 13px; margin: 9px 0; text-decoration: none; }
.filters p { margin-top: 22px; }
.filter-section + .filter-section { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.filter-section summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.filter-section summary:hover { color: var(--green); }
.filter-links { display: flex; flex-direction: column; gap: 5px; padding: 10px 0 0 12px; }
.filters .filter-links a { margin: 0; padding: 3px 0; overflow-wrap: anywhere; }
.index-search { display: grid; grid-template-columns: minmax(160px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; gap: 12px; align-items: end; }
.index-search label { min-width: 0; font-size: 12px; font-weight: 650; display: block; }
.index-search input, .index-search select { width: 100%; min-width: 0; height: 44px; border: 1px solid #bbc6d6; border-radius: 2px; background: white; padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink); }
.index-search label input, .index-search label select { display: block; margin-top: 5px; }
.index-search input::placeholder { color: var(--muted); }
.more-filters { grid-column: 1 / -1; font-size: 13px; }
.more-filters summary { cursor: pointer; padding-block: 8px; }
.more-filters > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 8px; }
.reset-filters { justify-self: start; background: none; border: 0; padding: 6px 0; color: var(--green); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; grid-column: 1 / -1; }
.search-note { font-size: 11px !important; color: var(--muted); margin: 9px 0 0 !important; }
.filter-status { min-height: 1.4em; }
.filter-status:empty { display: none; }
.no-results { font-size: 14px; padding: 20px 0; }
.result-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 12px; margin-bottom: 17px; color: var(--muted); }
.result-bar strong { color: var(--ink); }
.collection .result-bar { margin-top: 22px; }
.pagination { margin-top: 24px; flex-wrap: wrap; align-items: center; gap: 8px; }
.pagination a { min-height: 40px; display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 5px; }
.pagination a[aria-current] { background: var(--green); color: white; }
.pagination span { padding: 6px; }

/* Four-column opportunity tables and live deadline state. */
table { border-collapse: collapse; width: 100%; font-size: 13px; }
td, th { border: 1px solid var(--line); padding: 10px; text-align: left; }
.index-table { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.index-table:focus-visible { outline: 3px solid #c17600; outline-offset: 2px; }
.index-table table { min-width: 560px; table-layout: fixed; }
.index-table th, .index-table td { border: 0; border-bottom: 1px solid var(--line); padding: 11px 12px; vertical-align: middle; overflow-wrap: anywhere; text-align: left; }
.index-table th { font-size: 10px; letter-spacing: .025em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-block: 9px; }
.index-table th:first-child { width: 46%; }
.index-table th:nth-child(2) { width: 22%; }
.index-table th:nth-child(3), .index-table th:nth-child(4) { width: 16%; }
.index-table td:last-child { font-size: 12px; color: var(--muted); }
.row-title { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; display: block; }
.row-title:hover, .row-source:hover { text-decoration: underline; }
.row-category { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.row-source { font-size: 12px; color: var(--muted); text-decoration: none; }
.tag { font-size: 11px; color: var(--green); font-weight: 750; background: var(--accent); border-radius: 5px; padding: 5px 9px; }
.expiry-label { display: block; font-size: 11px; font-weight: 650; color: #5d6470; margin-top: 4px; }
.opportunity.expired { background: #f4f5f6; }
.opportunity.expired .row-title, .opportunity.expired .row-source, .opportunity.expired td, section.expired h1 { color: #626873; }
.opportunity.expired .tag { color: #626873; background: #e9ebed; }

/* Source and documentation cards. */
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 35px; }
.source-card { border: 1px solid var(--line); border-radius: 2px; padding: 25px; background: white; min-width: 0; }
.source-card h2 { font-size: 20px; margin-top: 18px; letter-spacing: -.02em; }
.source-card p { font-size: 14px; color: var(--muted); }
.source-card a { font-size: 14px; font-weight: 650; }
.doc-card { text-decoration: none; }
.doc-card h2 { color: var(--ink); }
.doc-card span { font-size: 13px; }
.publisher-card { display: flex; flex-direction: column; padding: 22px; }
.source-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.source-status { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 3px; white-space: nowrap; background: #eef1f5; color: #526078; }
.source-status.active { background: #e7f4ec; color: #216440; }
.source-status.waiting { background: #fff3d9; color: #775312; }
.source-status.issue { background: #fbe9e6; color: #96382b; }
.publisher-card h2 { font-size: 22px; margin: 0 0 8px; overflow-wrap: anywhere; }
.publisher-card .source-description { font-size: 14px; color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.source-collection { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.source-collection p { margin: 0 0 8px; }
.source-collection span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.source-collection strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.source-collection .small { font-size: 12px; line-height: 1.5; }
.publisher-card .source-website { align-self: flex-start; font-size: 13px; font-weight: 600; margin-top: 12px; text-decoration: none; }
.publisher-card .source-website:hover { text-decoration: underline; }
.source-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 14px; }
.source-actions a { font-size: 13px; }
.source-metadata { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
.source-metadata summary { cursor: pointer; font-weight: 650; }
.source-metadata dl { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr); gap: 8px; }
.source-metadata dt { color: var(--muted); }
.source-metadata dd { margin: 0; overflow-wrap: anywhere; }
.source-metadata pre { margin: 0; font-size: 11px; white-space: pre-wrap; }
.section > .publisher-card { max-width: 100%; margin-bottom: 28px; }

/* Detail pages and prose. */
.prose { overflow-wrap: anywhere; }
.prose h2 { margin-top: 36px; font-size: 26px; }
.prose p { color: var(--muted); }
code { background: #edf1eb; padding: 2px 5px; border-radius: 3px; font-size: .9em; }
pre { overflow: auto; background: #eef3ec; padding: 18px; border-radius: 8px; white-space: pre-wrap; }
.table-scroll { overflow-x: auto; margin-block: 24px; }
.table-scroll table { min-width: 640px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-block: 1px solid var(--line); padding-block: 22px; gap: 16px; margin-block: 30px; overflow-wrap: anywhere; }
.detail-grid dt { font-size: 13px; color: var(--muted); }
.detail-grid dd { margin: 0; font-weight: 650; font-size: 14px; }
.notice { background: #eef3ec; border-left: 3px solid var(--green); border-radius: 2px; padding: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }

/* Footer and consent. */
footer { border-top: 1px solid var(--line); padding-top: 22px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; }
.footer-grid .brand { font-size: 20px; }
.footer-grid p { font-size: 12px; margin-bottom: 7px; }
.footer-grid > div:first-child { max-width: 480px; }
.footer-grid > div:last-child { display: flex; align-items: start; gap: 25px; font-size: 12px; flex-wrap: wrap; }
.footer-grid > div:last-child a { font-size: 11px; text-decoration: none; }
.footer-note { border-top: 1px solid var(--line); padding-block: 20px; margin-top: 20px; font-size: 10px; }
.analytics-consent { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 600px; background: white; border: 1px solid var(--line); padding: 20px; border-radius: 2px; box-shadow: 0 8px 35px #0002; z-index: 10; }
.analytics-consent p { font-size: 13px; }
.analytics-consent button { padding: 9px 15px; margin-right: 10px; border: 1px solid var(--green); border-radius: 5px; background: white; color: var(--green); font-weight: 700; }
.analytics-consent button[data-choice=allow] { background: var(--green); color: white; }

@media (max-width: 1100px) {
  .index-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-search .search-field, .index-search button[type=submit] { grid-column: 1 / -1; }
  .home-directory { grid-template-columns: minmax(0, 1fr); }
  .directory-aside { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 1000px) {
  .brand-caption { display: none; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .filters { display: flex; flex-wrap: wrap; gap: 14px 20px; }
  .filter-section { flex: 1 1 180px; min-width: 0; }
  .filter-section + .filter-section { margin: 0; padding: 0; border-top: 0; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 14px; padding-block: 18px; }
  .header-inner nav { order: 3; width: 100%; flex-wrap: wrap; gap: 17px; }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 700px) {
  .wrap { padding-inline: 18px; }
  .header-inner { padding-block: 15px; }
  .header-inner nav { margin: 0; gap: 15px; }
  .github-link { margin-left: auto; }
  .home-intro { padding-top: 30px; }
  .home-intro > p { font-size: 16px; }
  .home-search { gap: 8px; }
  .home-search button { padding-inline: 16px; }
  .index-search select { font-size: 12px; }
  .category-tabs { gap: 23px; }
  .home-directory { padding-top: 22px; gap: 30px; }
  .section-heading { align-items: start; gap: 8px; }
  .section-heading h2 { font-size: 24px; }
  .section { padding-block: 32px; }
  .page-title { font-size: 34px; }
  .catalog-layout { gap: 20px; }
  .filters { display: block; }
  .filter-section { margin-block: 6px; }
  .filter-section + .filter-section { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
  .more-filters > div { grid-template-columns: minmax(0, 1fr); }
  .index-table th, .index-table td { padding: 10px 5px; }
  .index-table th { font-size: 9px; }
  .index-table th:first-child { width: 42%; }
  .index-table th:nth-child(2) { width: 23%; }
  .index-table th:nth-child(3) { width: 17%; }
  .index-table th:nth-child(4) { width: 18%; }
  .index-table td, .index-table time, .row-source, .index-table td:last-child { font-size: 11px; }
  .row-title { font-size: 13px; }
  .row-category { font-size: 10px; }
  /* Keep every field visible without sideways scrolling on small screens. */
  .index-table table, .index-table tbody { display: block; min-width: 0; }
  .index-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .index-table .opportunity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 14px; border-bottom: 1px solid var(--line); }
  .index-table td { display: block; border: 0; padding: 5px; }
  .index-table td:first-child, .index-table td:nth-child(2) { grid-column: 1 / -1; }
  .index-table td:nth-child(3)::before, .index-table td:nth-child(4)::before { display: block; font-size: 10px; font-weight: 650; color: var(--muted); margin-bottom: 3px; }
  .index-table td:nth-child(3)::before, .index-table td:nth-child(4)::before { content: attr(data-label); }
  .source-grid { grid-template-columns: minmax(0, 1fr); }
  .source-card { padding: 18px; }
  .footer-grid { gap: 15px; }
}
@media (max-width: 600px) {
  .section-heading { flex-direction: column; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid dd { margin-bottom: 12px; }
  .github-link { font-size: 11px; padding: 8px; }
  .header-inner nav a { font-size: 12px; }
  .brand { font-size: 25px; }
  .footer-grid > div:last-child { gap: 17px; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 12px; }
  .index-table th, .index-table td { padding-inline: 4px; }
  .row-title { font-size: 12px; }
  .row-source { font-size: 10px; }
  .source-metadata dl { grid-template-columns: minmax(0, 1fr); }
  .source-metadata dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Compact guides with static, accessible process diagrams. */
.docs-nav { flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 36px; padding-block: 16px; border-block: 1px solid var(--line); }
.docs-nav a { font-size: 13px; }
.docs-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; }
.doc-card h2 { margin: 0; }
.doc-card p { font-size: 14px; margin: 0 0 10px; }
.doc-card > span:last-child { margin-top: auto; }
.doc-number { color: var(--green); font-weight: 750; letter-spacing: .12em; font-size: 12px; }
.docs-page .prose { max-width: none; }
.docs-page .prose > p, .docs-page .prose > ul, .docs-page .prose > ol { max-width: 88ch; }
.prose li { margin-block: 8px; color: var(--muted); }
.prose li > p { margin-bottom: 6px; }
.prose h2, .prose h3 { scroll-margin-top: 24px; }
.doc-flow { margin: 32px 0; }
.doc-flow figcaption { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.doc-flow ol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.doc-flow li { position: relative; padding: 22px 18px; margin: 0; border: 1px solid #bdcee7; background: #f2f6fc; }
.doc-flow li::after { content: '→'; position: absolute; left: calc(100% + 7px); top: 40%; color: var(--green); font-size: 18px; }
.doc-flow li:last-child::after { content: none; }
.doc-flow strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 8px; overflow-wrap: anywhere; }
.doc-flow span { display: block; font-size: 13px; color: var(--muted); }
.doc-details { margin-block: 12px; border: 1px solid var(--line); padding: 0 22px; }
.doc-details > summary { padding-block: 20px; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.doc-details[open] { padding-bottom: 22px; }
.doc-details > p, .doc-details > ul, .doc-details > ol { max-width: 100ch; }
.doc-details > h3 { font-size: 24px; margin-top: 28px; }
.doc-details > h4 { font-size: 18px; margin-top: 24px; }
.doc-details pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .doc-flow ol { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-flow li { padding: 16px; }
  .doc-flow li::after { content: '↓'; left: 50%; top: calc(100% + 1px); }
}
@media (max-width: 600px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { margin-bottom: 26px; gap: 12px 18px; }
  .doc-details { padding-inline: 14px; }
}
