/* 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; }

/* hero illustration: two dark dataset cards over the box, a private-table chip beside it, a dotted join */
.pd-art { padding-top: 20%; }
.pd-art picture { width: 86%; }
.pd-art .tcard { padding: 10px 14px 12px; }
.pd-art .tcard code { color: #aeb9bf; font-size: 10.5px; line-height: 1.6; }
.pd-c1 { top: 0; left: 2%; width: 40%; }
.pd-c2 { top: 7%; right: 14%; width: 40%; }
.pd-join-line { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: .45; stroke-dasharray: 1.2 1.4; stroke-linecap: round; overflow: visible; }
.pd-join-label { position: absolute; right: 0; top: 50%; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; color: var(--ink-soft); text-align: center; }
.pd-mine { position: absolute; right: -4%; top: 62%; z-index: 2; width: 23%; min-width: 118px; padding: 12px 12px 12px; border-radius: 10px; background: linear-gradient(160deg, #fbd9c6, #f6b493); border: 1px solid #f0a985; box-shadow: 0 18px 34px rgba(224, 71, 28, .22), 0 2px 4px rgba(25, 30, 33, .12); color: var(--ink); transform: rotate(3deg); }
.pd-mine .ti { display: block; width: 34px; height: 24px; margin: 0 0 10px; border-radius: 3px; background: linear-gradient(#e9a684 1px, transparent 1px) 0 0 / 100% 8px, linear-gradient(90deg, #e9a684 1px, transparent 1px) 0 0 / 25% 100%, #fff3ea; border: 1px solid #e9a684; }
.pd-mine strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.1; }
.pd-mine span:last-child { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #8a4a30; margin-top: 4px; }
.pd-aside { position: absolute; left: 30%; bottom: -7%; margin: 0; font-family: 'Caveat', cursive; font-weight: 500; font-size: 30px; line-height: 1; color: var(--ink-soft); transform: rotate(-6deg); }

/* 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: 24px; }
.pd-ds { 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; }
.pd-ds > svg { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--rule); }
.pd-body { padding: 18px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.pd-body h3 { font-size: 23px; margin-bottom: 4px; }
.pd-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.pd-body .chips span { background: var(--bg-soft); border-color: var(--bg-soft); font-size: 11.5px; padding: 5px 11px; border-radius: 16px; color: var(--ink-soft); }
.pd-body .pd-status { margin: 16px 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 */
.pd-together { margin-top: 84px; padding: 80px 0 64px; }
.pd-together-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
body.pubdata .dark h2 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.0; margin-bottom: 26px; max-width: none; }
.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; white-space: nowrap; }
.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) {
  /* the homepage's .art rules already put the cards in flow; hide the joins and the aside as well */
  .pd-art { padding-top: 0; }
  .pd-art .tcard { position: static; width: 100%; margin-bottom: 12px; }
  .pd-join-line, .pd-join-label, .pd-aside { display: none; }
  .pd-mine { position: static; width: auto; max-width: 320px; margin: 0 0 12px; transform: none; }
  .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-offer p { white-space: normal; }
  .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 .pd-link { margin-top: 12px; font-size: 14.5px; font-weight: 500; color: var(--accent-deep); text-decoration: none; }
.pd-body .pd-link:hover { text-decoration: underline; }
.pd-cats span[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; }
