/* Public data catalog preview (/public-data). Loaded after /styles.css; everything here is scoped under
   body.pubdata and defines only what the homepage's stylesheet does not already give this page. */

/* type: the homepage's display scale, so the two pages read as one site */
body.pubdata .eyebrow { font-size: 11.5px; letter-spacing: .2em; color: var(--accent); margin: 0 0 20px; }
body.pubdata h1 { font-weight: 400; font-size: clamp(48px, 5.9vw, 84px); line-height: 1.0; letter-spacing: -.04em; margin: 0 0 26px; font-variation-settings: "opsz" 72; text-wrap: balance; }
body.pubdata h1 em { font-style: italic; color: var(--accent); }
body.pubdata h2 { font-weight: 400; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; max-width: 22ch; text-wrap: balance; }
body.pubdata h2 em { font-style: italic; color: var(--accent); }
body.pubdata h3 { font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
body.pubdata .sub { font-family: var(--sans); font-size: 17.5px; line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 0 0 30px; }
body.pubdata section.block { padding: 84px 0 0; }
body.pubdata footer { margin-top: 0; }

/* hero: category chips stand where a search box will be once there is something to search */
.pd-cats { gap: 10px; margin: 0 0 16px; }
.pd-cats span { font-family: var(--sans); font-size: 13.5px; padding: 9px 16px; border-radius: 20px; border-color: var(--rule); background: #fff; color: var(--ink-soft); }
.pd-cats span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pd-preview { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; margin: 0; }

/* the catalog preview grid */
.pd-catalog .sub { margin-bottom: 36px; }
.pd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pd-ds { position: relative; min-width: 0; background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(26, 25, 23, .04); display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.pd-ds:hover, .pd-ds:focus-within { border-color: var(--accent); box-shadow: 0 6px 18px rgba(26, 25, 23, .08); transform: translateY(-1px); }
.pd-ds > svg { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--rule); }
.pd-body { padding: 14px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.pd-body h3 { font-size: 18px; margin-bottom: 3px; }
.pd-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.pd-body .chips span { background: var(--bg-soft); border-color: var(--bg-soft); font-size: 11px; padding: 3px 9px; border-radius: 14px; color: var(--ink-soft); }
.pd-body .pd-status { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.pd-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); vertical-align: 1px; margin-right: 8px; }
.pd-caption { margin: 22px 0 0; }

/* dark: the join (its own night background since styles.css dropped .dark in the homepage redesign, #1349) */
.pd-together { margin-top: 84px; padding: 80px 0 64px; background: var(--night); color: #edf3f5; }
body.pubdata .pd-together .eyebrow { color: #f6ad84; }
body.pubdata .pd-together h2 em { color: #ff946e; }
.pd-together-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
body.pubdata .pd-together h2 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.0; margin-bottom: 26px; max-width: none; color: #fff; }
.pd-lede { font-size: 17.5px; line-height: 1.55; color: #dfe7eb; max-width: 40ch; margin: 0 0 22px; }
.pd-join-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.pd-join-chips span { display: inline-block; font-size: 14px; padding: 9px 16px; border-radius: 20px; border: 1px solid #47535a; background: #23292d; color: #edf3f5; }
.pd-join-chips .w { background: #1c3d52; border-color: #2f6683; color: #bfe0ee; }
.pd-join-chips .h { background: #4a2a16; border-color: #8a4a30; color: #f6ad84; }
.pd-join-chips .plus { border: 0; background: none; padding: 0; color: #8d9ba3; font-family: var(--mono); font-size: 15px; }
.pd-with { margin: 0; color: #c4cdd1; font-size: 15px; }
.pd-code { background: linear-gradient(180deg, #24292d, #1d2225); border: 1px solid #3a454b; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); overflow: hidden; }
.pd-code-hd { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-bottom: 1px solid #3a454b; font-size: 13.5px; color: #dfe7eb; }
.pd-code-hd::before { content: ""; flex: none; width: 42px; height: 10px; margin-right: 4px; background: radial-gradient(circle at 5px 5px, #ff5f57 5px, transparent 5.5px), radial-gradient(circle at 21px 5px, #febc2e 5px, transparent 5.5px), radial-gradient(circle at 37px 5px, #28c840 5px, transparent 5.5px); }
.pd-code-hd .ttl { font-weight: 500; color: #fff; }
.pd-code-hd .ill { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #9fb0b8; }
.pd-code-hd button.copy { min-height: 44px; min-width: 64px; padding: 6px 14px; border-color: #4a565d; color: #edf3f5; }
.pd-code-hd button.copy:hover { background: #edf3f5; color: var(--night); border-color: #edf3f5; }
.pd-code-hd button.copy:focus-visible { outline-color: #ff946e; }
.pd-code pre { margin: 0; padding: 18px 18px 20px 12px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: #edf3f5; white-space: pre; overflow-x: auto; counter-reset: l; }
.pd-code .line::before { counter-increment: l; content: counter(l); display: inline-block; width: 2.4em; margin-right: .6em; text-align: right; color: #6b7a82; user-select: none; }
.pd-code .k { color: #f6ad84; }
.pd-code-cap { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: #9fb0b8; }

/* three steps */
.pd-how { padding-bottom: 0; }
.pd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.pd-steps li { display: flex; gap: 22px; align-items: flex-start; padding: 0 16px 0 0; min-width: 0; }
.pd-steps li + li { border-left: 1px solid var(--rule); padding-left: 36px; }
.pd-steps .n { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--accent); flex: none; min-width: 2ch; }
.pd-steps h3 { font-size: 26px; margin: 0 0 4px; }
.pd-steps p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

/* the banner: the proposed public allowance, coming soon */
.pd-share { padding: 64px 0 88px; }
.pd-banner { background: var(--lake); border-radius: 16px; padding: 36px 44px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 32px 44px; align-items: center; }
.pd-banner h2 { font-size: clamp(30px, 3vw, 42px); margin: 0 0 8px; max-width: none; }
.pd-banner p { margin: 0; color: #3f4a50; font-size: 16.5px; }
.pd-banner-offer { border-left: 1px solid #bbd4de; padding-left: 48px; }
.pd-number { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.6vw, 50px); line-height: 1; letter-spacing: -.03em; margin: 0 0 8px; }
.pd-banner-offer p { font-size: 14.5px; color: #5a666c; }
.pd-banner .btn.ghost { border-color: var(--action); color: var(--action); font-size: 19px; }
.pd-banner .btn.ghost:hover { background: var(--action); color: #fff; }

@media (max-width: 1100px) {
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-banner-cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pd-together { margin-top: 64px; padding: 64px 0 56px; }
  .pd-together-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pd-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pd-steps li { padding-right: 0; }
  .pd-steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .pd-share { padding: 48px 0 72px; }
  body.pubdata section.block { padding-top: 64px; }
}
@media (max-width: 600px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pd-cats span { font-size: 13px; padding: 8px 13px; }
  .pd-banner { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 22px; }
  .pd-banner-offer { border-left: 0; border-top: 1px solid #bbd4de; padding: 22px 0 0; }
  .pd-banner-cta { grid-column: auto; }
  .pd-banner .btn.ghost { width: 100%; justify-content: center; }
  .pd-code-hd { flex-wrap: wrap; gap: 8px 12px; }
  .pd-code-hd .ill { order: 3; flex-basis: 100%; margin-left: 0; }
  .pd-code pre { font-size: 12.5px; }
}

/* the live catalog (public-data.html + /pubdata/catalog.js): an image per dataset, drawn from the data; the card link */
.pd-ds > img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--rule); }
.pd-body .pd-table { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.pd-body .pd-table code { background: none; padding: 0; font-size: inherit; }
.pd-body h3 .pd-link { color: inherit; text-decoration: none; }
.pd-body h3 .pd-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pd-ds:hover .pd-body h3 .pd-link, .pd-body h3 .pd-link:focus-visible { color: var(--accent-deep); }
.pd-body h3 .pd-link:focus-visible { outline: none; }
.pd-ds:has(.pd-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-cats [role="button"] { cursor: pointer; }

/* 2026-09-22: the founder's illustration in the hero (its own labels and JOIN line; no overlay cards), the category filter directly above the cards */
.pd-art { padding-top: 0; }
.pd-art img { aspect-ratio: 1400 / 933; }   /* transparent PNG origin: no box, no shadow */
.pd-filter { margin: 0 0 28px; }

/* a dataset's page, /public-data/<id> (generated by pubdata/pages.py, 2026-10-13): body.pubdata.ds-page */
.ds { padding-bottom: 72px; }
.ds code { font-size: .88em; }
.ds-crumbs { font-size: 14px; color: var(--muted); margin: -12px 0 28px; }
.ds-crumbs a { color: var(--ink-soft); }
.ds-crumbs a:hover { color: var(--ink); }
.ds-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
body.ds-page h1 { font-size: clamp(48px, 5.4vw, 76px); margin-bottom: 14px; }
body.ds-page .sub { font-family: var(--serif); font-size: 22px; color: var(--ink); max-width: 52ch; margin: 0 0 12px; line-height: 1.35; }
.ds-src { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.ds-actions { display: flex; gap: 10px; flex: none; padding-top: 4px; }
.ds-actions .btn.sm { font-family: var(--sans); font-size: 14px; min-height: 38px; padding: 6px 14px; }
.ds-actions button.copy { min-height: 38px; font-size: 14px; padding: 6px 14px; border-radius: 7px; }
.ds-stats { list-style: none; margin: 32px 0 24px; padding: 18px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.ds-stats li { text-align: center; padding: 4px 12px; min-width: 0; }
.ds-stats li + li { border-left: 1px solid var(--rule); }
.ds-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ds-stats span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ds-coming { border-left: 3px solid var(--accent); background: var(--tint); padding: 12px 16px; border-radius: 4px; }
.ds-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ds-preview, .ds-ask { border: 1px solid var(--rule); border-radius: 10px; background: #fff; padding: 14px; min-width: 0; }
.ds-preview figure { margin: 0; }
.ds-preview img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ds-preview figcaption, .ds-fine { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 10px 2px 0; }
.ds-tabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.ds-tabs [role="tab"] { font: inherit; font-size: 13.5px; min-height: 34px; padding: 5px 14px; border-radius: 6px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink-soft); cursor: pointer; }
.ds-tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ds-sample { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.ds-sample th, .ds-sample td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ds-sample th { color: var(--ink-soft); font-weight: 500; background: var(--bg); }
.ds-ask { padding: 22px 22px 18px; display: flex; flex-direction: column; }
body.ds-page .ds-ask h2 { font-size: 32px; margin: 0 0 6px; }
.ds-ask > p { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.ds-ask .quote { background: var(--bg); border: 1px solid var(--rule); font-size: 13px; }
.ds-askbtn { width: 100%; justify-content: center; font-family: var(--sans); font-size: 16px; margin: 6px 0 14px; }
.ds-down { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); text-align: center; font-family: var(--mono); font-size: 13px; color: var(--accent-deep); }
.ds-nav { display: flex; gap: 6px 30px; flex-wrap: wrap; margin: 44px 0 0; border-bottom: 1px solid var(--rule); }
.ds-nav a { padding: 12px 0 10px; font-size: 15px; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.ds-nav a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
.ds section[id] { scroll-margin-top: 24px; }
body.ds-page .ds h2 { font-size: clamp(32px, 3.4vw, 46px); margin: 0 0 22px; }
.ds-sql { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding: 52px 0 44px; border-bottom: 1px solid var(--rule); }
.ds-code { background: var(--dark); border-radius: 8px; margin: 0 0 14px; overflow: hidden; }
.ds-code-hd { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 0 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--code-dim); }
.ds-code-hd button.copy { min-height: 28px; padding: 2px 10px; border-color: #4a4541; color: var(--code); font-size: 12px; }
.ds-code-hd button.copy:hover { background: #3a3633; }
.ds-code pre.code { border-radius: 0; font-size: 13px; padding: 12px 16px 16px; }
.ds-sql-side { border-left: 1px solid var(--rule); padding-left: 36px; min-width: 0; }
.ds-sql-side h3 { font-size: 28px; font-weight: 400; margin: 0 0 12px; }
.ds-sql-side p { color: var(--ink-soft); font-size: 15px; }
.ds-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) !important; margin: 24px 0 8px; padding-top: 18px; border-top: 1px solid var(--rule); }
.ds-examples { list-style: none; margin: 0; padding: 0; }
.ds-examples li { border-bottom: 1px solid var(--rule); }
.ds-examples summary { cursor: pointer; padding: 10px 0; font-family: var(--serif); font-size: 19px; color: var(--accent-deep); }
.ds-examples pre.code { margin: 0; font-size: 12px; }
.ds-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--rule); }
.ds-two > section + section { border-left: 1px solid var(--rule); padding-left: 40px; }
.ds-cols { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--rule); }
.ds-cols th, .ds-cols td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ds-cols td:nth-child(2) { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.ds-cols td:first-child { white-space: nowrap; }
.ds-cols th { font-weight: 600; font-size: 13px; }
.ds-more summary { cursor: pointer; margin: 14px 0 10px; font-family: var(--mono); font-size: 13px; color: var(--accent-deep); }
.ds-more table { border-top: 0; }
.ds-h3 { font-size: 20px; margin: 26px 0 8px; }
.ds-list { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: 14.5px; }
.ds-notes { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.ds-notes li { counter-increment: n; position: relative; padding: 4px 0 18px 52px; font-family: var(--serif); font-size: 18.5px; line-height: 1.45; }
.ds-notes li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 16px; }
.ds-related { list-style: none; margin: 32px 0 0; padding: 18px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.ds-related li { padding: 6px 22px; }
.ds-related li + li { border-left: 1px solid var(--rule); }
.ds-related a { font-family: var(--serif); font-size: 19px; color: var(--accent-deep); }
.ds-related li > span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ds-source { padding: 48px 0 8px; }
.ds-source dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: 15.5px; }
.ds-source dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ds-source dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.ds-source dd a { border-bottom: 1px solid var(--accent); }
.ds-foot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 36px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ds-foot a { color: var(--ink-soft); }
@media (max-width: 1000px) {
  .ds-top, .ds-sql, .ds-two { grid-template-columns: minmax(0, 1fr); }
  .ds-sql-side, .ds-two > section + section { border-left: 0; padding-left: 0; }
  .ds-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .ds-stats li:nth-child(4) { border-left: 0; }
}
@media (max-width: 640px) {
  .ds-head { flex-direction: column; }
  .ds-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-stats li:nth-child(odd) { border-left: 0; }
  .ds-stats li:nth-child(4) { border-left: 1px solid var(--rule); }
  .ds-stats b { font-size: 22px; }
  .ds-related li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .ds-source dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ds-source dd { margin-bottom: 10px; }
}

/* the list of datasets as a table (#list, 2026-10-13) */
.pd-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center; margin: 36px 0 0; padding: 26px 28px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.pd-list h3 { font-size: 26px; }
.pd-list p { color: var(--ink-soft); font-size: 15px; margin: 0 0 12px; }
.pd-list .pd-code pre { font-size: 13px; }
.pd-list .pd-code-hd button.copy { margin-left: auto; }
@media (max-width: 900px) { .pd-list { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
