/* Shared presentation layer. Loaded last so each page uses the home page's type scale.
   Compact dataset cells and statistics deliberately retain their own sizing. */
:root {
  --type-body: 1rem;
  --type-lead: 1.125rem;
  --type-small: .875rem;
  --type-label: .8125rem;
  --type-card: 1.375rem;
  --type-section: clamp(1.75rem, 2.8vw, 2.5rem);
  --type-title: clamp(2.5rem, 4.6vw, 4rem);
  --reading-line: 1.8;
  --surface: #fffefa;
  --surface-soft: #edf1e5;
  --ink: #223c30;
  --ink-soft: #405648;
  --muted: #536456;
  --line: #d6dfd0;
  --line-soft: #e5eade;
  --shadow: 0 16px 40px -28px #234a3440;
  --pad: clamp(20px, 5vw, 72px);
}
body { font-size: var(--type-body); line-height: 1.65; }
h1, h2, h3, h4 { letter-spacing: -.035em; overflow-wrap: anywhere; }
p { overflow-wrap: break-word; }
a { text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: #cddcbe66; }
.primary, .secondary { min-height: 48px; padding: 12px 20px; font-size: var(--type-body); border-radius: 10px; line-height: 1.5; }
.primary:focus-visible, .band a:focus-visible { outline: 3px solid #8bab64; outline-offset: 4px; }
.eyebrow { font-size: var(--type-label); line-height: 1.6; letter-spacing: .1em; }
.lead { font-size: var(--type-lead); line-height: var(--reading-line); }
.text-link, .back-link { font-size: var(--type-body); line-height: 1.6; }
.notices { padding: 14px var(--pad); font-size: var(--type-body); }
.notices p { max-width: 1200px; margin: 0 auto; }

/* A consistent frame, readable navigation and generous touch targets. */
.topbar { max-width: 1440px; min-height: 88px; padding: 18px var(--pad); gap: 24px; border-inline: 0; flex-wrap: wrap; }
.topbar .brand b { font-size: 26px; }
.topbar .brand small { font-size: 12px; line-height: 1.4; letter-spacing: .02em; }
.topbar .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.topbar nav { gap: 22px; flex-wrap: wrap; max-width: 100%; }
.topbar nav a, .topbar nav button { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--type-body); }
.topbar nav .nav-cta { border-radius: 10px; }
.topbar .nav-search { min-height: 44px; background: var(--surface); border-radius: 10px; }
.topbar .nav-search input { font-size: var(--type-body); }
body > footer { padding-inline: max(var(--pad), calc((100vw - 1296px) / 2)); gap: 32px; }
.footer-col > b { font-size: var(--type-label); color: #c1d1ba; letter-spacing: .09em; }
.footer-col > a { font-size: var(--type-body); padding-block: 5px; line-height: 1.7; }
.footer-brand p { font-size: var(--type-body); }
.footer-copy { font-size: var(--type-small); line-height: 1.7; }

/* The home page remains the visual reference; supporting content now matches it. */
.home-hero, .section { max-width: 1440px; }
.hero-copy .lead { font-size: var(--type-lead); }
.hero .hero-badge { font-size: var(--type-small); }
.hero-search { border-radius: 12px; background: var(--surface); }
.hero-trust { flex-wrap: wrap; font-size: var(--type-small); }
.hero-workbench { border-radius: 20px; box-shadow: var(--shadow); }
.dataset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dataset-card, .library-card { border-radius: 16px; background: var(--surface); border-color: var(--line); }
.dataset-card .card-content { display: flex; flex-direction: column; flex: 1; }
.dataset-card h3, .library-card h3 { font-size: var(--type-card); line-height: 1.4; letter-spacing: -.025em; }
.dataset-card .card-content > p, .library-card-description { font-size: var(--type-body); line-height: var(--reading-line); color: var(--muted); }
.dataset-meta { font-size: var(--type-small); margin-top: auto; }
.format-pills b, .library-formats b { font-family: inherit; font-size: var(--type-label); line-height: 1.4; padding: 4px 7px; color: var(--muted); }
.card-bottom { font-size: var(--type-body); }
.home-how { max-width: 1296px; margin: 20px auto 64px; padding: 32px; border-radius: 20px; background: var(--surface-soft); }
.home-how-heading { gap: 24px; }
.home-how-heading h2 { font-size: var(--type-section); }
.home-how-kicker { font-size: var(--type-label); color: var(--muted); letter-spacing: .1em; }
.home-how-heading > div > p:last-child, .home-how-steps p { font-size: var(--type-body); line-height: var(--reading-line); color: var(--muted); max-width: none; }
.home-how-link { font-size: var(--type-body); min-height: 48px; border-radius: 10px; }
.home-how-steps { gap: 16px; }
.home-how-steps > li { padding: 24px; border-radius: 12px; background: var(--surface); }
.home-how-steps h3 { font-size: 20px; line-height: 1.4; }
.home-how-number { width: 30px; height: 30px; font-size: var(--type-label); color: #4d653c; }
.band { max-width: 1296px; border-radius: 20px; }

/* Library: the same title, description and action sizes as homepage cards. */
.library-page { max-width: 1440px; padding-inline: var(--pad); --lib-muted: var(--muted); }
.library-hero { padding: 64px 0 48px; gap: 40px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.library-hero h1 { font-size: var(--type-title); letter-spacing: -.045em; line-height: 1.12; }
.library-kicker, .library-collection-heading .library-kicker { font-size: var(--type-label); color: #4d6842; letter-spacing: .1em; }
.library-intro { font-size: var(--type-lead); line-height: var(--reading-line); color: var(--ink-soft); }
.library-search { min-height: 60px; max-width: 650px; border-radius: 12px; }
.library-search input, .library-search button { font-size: var(--type-body); }
.library-search button { min-height: 46px; border-radius: 9px; }
.library-benefits { flex-wrap: wrap; gap: 8px 22px; font-size: var(--type-small); color: var(--muted); }
.library-collection { padding-block: 40px; }
.library-collection-heading { align-items: end; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.library-collection-heading h2 { font-size: var(--type-section); flex-wrap: wrap; }
.library-collection-heading > p { font-size: var(--type-body); color: var(--muted); }
.library-count { font-size: var(--type-small); height: 32px; min-width: 32px; border-radius: 8px; }
.library-sort { gap: 10px; font-size: var(--type-small); color: var(--muted); }
.library-sort select { font-size: var(--type-body); min-height: 44px; max-width: 160px; }
.library-search-context { font-size: var(--type-body); flex-wrap: wrap; }
.library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.library-card-top { padding: 26px 26px 0; }
.library-card-copy { padding: 22px 26px 24px; }
.library-card-icon { height: 46px; width: 46px; border-radius: 12px; }
.library-card-description { -webkit-line-clamp: 4; }
.library-card-footer { flex-wrap: wrap; margin: 0 26px; padding: 18px 0; font-size: var(--type-small); color: var(--muted); border-color: var(--line-soft); }
.library-card-action { font-size: var(--type-body); color: #315b3c; font-weight: 600; }
.library-endnote { padding-top: 32px; }
.library-endnote p, .library-endnote a { font-size: var(--type-small); color: var(--muted); }
.library-empty h3 { font-size: 28px; }
.library-empty p { font-size: var(--type-body); }

/* Detail: larger supporting copy; preserve compact data cells and facts. */
.detail-page { padding-inline: var(--pad); }
.detail-title-block { border-radius: 20px; padding: 28px 32px; }
.detail-title-block h1 { font-size: clamp(24px, 2vw, 28px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; margin: 16px 0; }
.detail-title-bottom > p, .detail-page .dataset-description { font-size: var(--type-lead); line-height: var(--reading-line); }
.detail-title-bottom > a { font-size: var(--type-body); }
.detail-kicker, .full-download .detail-kicker { font-size: var(--type-label); letter-spacing: .1em; }
.detail-trail { font-size: var(--type-small); }
.detail-jump-links a { font-size: var(--type-body); min-height: 48px; }
.detail-about h2, .detail-section-heading h2 { font-size: clamp(1.75rem, 2.4vw, 2rem); }
.detail-preview-explanation, .detail-usage p, .detail-page .preview-lock p, .detail-next p:not(.detail-kicker) { font-size: var(--type-body); line-height: var(--reading-line); }
.detail-usage h3 { font-size: 18px; }
.full-download-heading > span:last-child { font-size: var(--type-label); }
.full-download-signin, .full-download-account, .full-download-assurance p { font-size: var(--type-small); }
.full-download .files-pending { background: transparent; margin: 0; padding: 0; }
.detail-preview-badge, .detail-table-footer { font-size: var(--type-small); }
.detail-next > a, .detail-page .preview-lock > a { font-size: var(--type-body); }
.detail-page .preview-lock { align-items: start; }
.detail-page .preview-lock > a { white-space: normal; }
.detail-next { padding: 32px; }

/* Pricing and about: calm surfaces with one consistent reading scale. */
.simple-pricing .pricing-head { padding: 64px var(--pad) 32px; }
.simple-pricing .pricing-head h1, .about-hero h1 { font-size: var(--type-title); }
.simple-pricing .pricing-head > p:not(.eyebrow), .about-hero-copy > p:not(.eyebrow) { font-size: var(--type-lead); line-height: var(--reading-line); }
.simple-pricing .plans { max-width: 1360px; gap: 24px; }
.simple-pricing .plan { padding: 32px 28px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.simple-pricing .plan:has(input:checked) { background: #edf3e3; }
.plan-name { font-size: 24px; }
.plan-description, .plan-features, .simple-pricing .billing-note { font-size: var(--type-body); line-height: 1.75; }
.billing-options { border-radius: 12px; margin-bottom: 40px; }
.billing-options label > span { min-height: 48px; border-radius: 9px; }
.simple-pricing .price { font-size: 44px; }
.pricing-answers { max-width: 860px; padding-top: 32px; }
.pricing-answers h2 { font-size: 28px; }
.pricing-answers .faq-item summary { font-size: 18px; }
.about-page { padding-inline: var(--pad); }
.about-hero { padding-block: 64px; }
.about-manifesto, .about-contact { border-radius: 20px; }
.about-principle-grid article { background: var(--surface); border-radius: 16px; }
.about-principle-grid h3, .about-use-list h3 { font-size: var(--type-card); }
.about-intro > div:last-child p { font-size: var(--type-lead); line-height: var(--reading-line); }
.about-principle-grid p, .about-use-list p { font-size: var(--type-body); line-height: var(--reading-line); }

/* Member forms and workspace. */
.auth-page { max-width: 1280px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7%; padding-block: 64px 80px; }
.auth-intro h1, .account-page header h1 { font-size: var(--type-title); }
.auth-intro .lead { font-size: var(--type-lead); line-height: var(--reading-line); }
.auth-intro { padding-top: 0; }
.auth-note { padding-top: 24px; font-size: var(--type-body); line-height: 2; }
.auth-card { padding: 36px; background: var(--surface); border-radius: 20px; border-top: 4px solid #a8bf8a; }
.auth-card h2 { font-size: 28px; line-height: 1.3; }
.auth-divider { display: flex; align-items: center; gap: 14px; font-size: var(--type-small); margin-block: 26px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-switch { font-size: var(--type-body); line-height: 1.8; margin-top: 24px; }
.google-auth { font-size: var(--type-body); border-radius: 10px; min-height: 52px; }
.editor-form { gap: 20px; }
.editor-form label { font-size: var(--type-body); gap: 9px; }
.editor-form input, .editor-form select, .editor-form textarea { font-size: var(--type-body); border-radius: 10px; padding: 13px 14px; }
.editor-form input:not([type=checkbox]):not([type=radio]), .editor-form select { min-height: 48px; }
.editor-form small, .editor-form .field-help { font-size: var(--type-small); line-height: 1.75; }
.account-page { max-width: 1280px; padding: 56px var(--pad) 72px; }
.account-page > header { margin-bottom: 28px; padding: 32px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 20px; }
.account-grid > section, .downloads { border-radius: 16px; background: var(--surface); padding: 30px; }
.account-grid h2, .downloads h2 { font-size: 28px; }
.account-grid p, .downloads p, .verify-banner p { font-size: var(--type-body); line-height: var(--reading-line); }
.downloads > a { padding-block: 18px; gap: 20px; line-height: 1.7; }
.downloads time { font-size: var(--type-small); white-space: nowrap; }
.verify-banner { padding: 26px; border-radius: 14px; }
.verify-banner h2 { font-size: 28px; }

/* Help and long-form pages: clear navigation and comfortable line lengths. */
.help-page { max-width: 1280px; margin: auto; padding: 56px var(--pad) 72px; }
.help-hero { border: 1px solid var(--line); border-radius: 20px; padding: 40px; background: radial-gradient(ellipse at top right, #dfe9cc, transparent 65%), var(--surface-soft); }
.help-hero h1 { font-size: var(--type-title); margin: 12px 0 20px; }
.help-hero > p:last-child { font-size: var(--type-lead); color: var(--ink-soft); max-width: 58ch; margin-bottom: 0; }
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 40px; }
.help-sidebar { align-self: start; position: sticky; top: 28px; }
.help-sidebar nav { display: grid; gap: 8px; }
.help-sidebar nav a { display: block; padding: 12px 16px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-soft); text-decoration: none; font-size: var(--type-body); }
.help-sidebar nav a:hover { border-color: #9fb88c; background: var(--surface-soft); }
.help-contact { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.help-contact h2 { font-size: 20px; margin: 0 0 10px; }
.help-contact p { font-size: var(--type-body); color: var(--muted); line-height: 1.8; }
.help-contact a { color: var(--indigo); font-size: var(--type-body); overflow-wrap: anywhere; }
.help-answers { min-width: 0; }
.help-answers .faq-group { margin-bottom: 36px; scroll-margin-top: 24px; }
.help-answers h2 { font-size: 28px; margin: 0 0 18px; }
.faq-item summary { font-size: 18px; line-height: 1.6; padding-block: 18px; }
.faq-item p { font-size: var(--type-body); line-height: var(--reading-line); }
.help-answers .faq-item { padding-inline: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.help-answers .faq-item[open] { background: #f0f4e8; border-color: #b9cba9; }
.page-head, .page-hero { padding: 56px var(--pad); background: var(--surface-soft); }
.page-head h1, .page-hero h1 { font-size: var(--type-title); }
.page-head > p:not(.eyebrow), .page-hero > p:not(.eyebrow) { font-size: var(--type-lead); line-height: var(--reading-line); }
.prose { max-width: 850px; font-size: var(--type-lead); line-height: var(--reading-line); }
.prose h2 { font-size: 28px; line-height: 1.35; scroll-margin-top: 24px; }
.prose li { margin-bottom: 8px; }
.catalog-layout { max-width: 1320px; margin: auto; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
.catalog-sidebar { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.catalog-sidebar b { font-size: var(--type-body); }
.catalog-sidebar a { font-size: var(--type-small); line-height: 1.65; padding-block: 7px; }
.catalog-layout .prose { min-width: 0; padding-bottom: 0; }

/* Administration follows the same controls and surfaces. */
.admin-nav, .admin-panel, .admin-stats article { border-radius: 14px; }
.admin-panel, .admin-stats article { background: var(--surface); }
.admin .admin-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.admin .admin-head p:not(.eyebrow), .admin .panel-intro { font-size: var(--type-body); line-height: var(--reading-line); }
.admin .editor-form label, .admin .editor-form input, .admin .editor-form select, .admin .editor-form textarea { font-size: var(--type-body); }
.admin .editor-form small, .admin .editor-form .field-help { font-size: var(--type-small); }

@media (max-width: 1440px) {
  .home-how, .band { margin-inline: var(--pad); }
}
@media (max-width: 1100px) {
  .library-hero { gap: 16px; }
  .library-visual { transform: scale(.78); }
  .library-sort { align-self: end; }
  .library-card-top { padding: 22px 22px 0; }
  .library-card-copy { padding: 20px 22px 24px; }
  .library-card-footer { margin-inline: 22px; }
  .simple-pricing .plans { gap: 16px; padding-inline: var(--pad); }
  .simple-pricing .plan { padding: 28px 22px; }
  .home-how-steps > li { padding: 20px; }
  .home-how-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 900px) {
  .topbar nav { gap: 16px; }
  .library-hero { grid-template-columns: minmax(0, 1fr); }
  .library-visual { display: none; }
  .library-grid, .dataset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-collection-heading > p { display: none; }
  .auth-page { grid-template-columns: minmax(0, 1fr); max-width: 680px; gap: 32px; }
  .auth-note { display: none; }
  .auth-card { padding: 32px; }
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .help-sidebar { position: static; }
  .help-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-contact { margin-top: 20px; padding-top: 16px; }
  .help-contact h2 { font-size: 18px; }
  .help-contact p { margin: 8px 0; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .catalog-sidebar { display: block; position: static; max-height: 240px; }
  .home-how-steps { grid-template-columns: minmax(0, 1fr); }
  .home-how-steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 16px; padding: 22px; }
  .home-how-step-top { grid-column: 1; grid-row: 1 / 3; margin: 0; align-items: start; }
  .home-how-step-top > svg { display: none; }
  .home-how-steps h3, .home-how-steps p { grid-column: 2; }
}
@media (max-width: 700px) {
  .topbar { min-height: 80px; padding-block: 16px; }
  .topbar > .nav-search { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .topbar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle-checkbox:checked ~ nav { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-toggle-checkbox:checked + .nav-toggle .icon-menu { display: none; }
  .nav-toggle-checkbox:checked + .nav-toggle .icon-close { display: block; }
  .topbar nav .mobile-search { display: flex; width: 100%; margin: 0 !important; }
  .topbar nav > a { padding: 10px 12px; }
  .topbar nav .nav-cta { justify-content: center; }
  .simple-pricing .plans { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .simple-pricing .plan { padding: 28px; }
  .billing-options label > span { padding-inline: 14px; }
}
@media (max-width: 600px) {
  :root { --type-title: clamp(2.25rem, 9vw, 2.75rem); --type-section: 1.875rem; }
  .topbar .brand b { font-size: 24px; }
  .topbar .brand small { font-size: 11px; }
  .home-how { margin-block: 12px 40px; padding: 24px 20px; border-radius: 16px; }
  .home-how-steps > li { padding: 18px; }
  .home-how-steps h3 { font-size: 20px; }
  .home-how-heading h2 { max-width: none; }
  .home-how-heading > div > p:last-child { max-width: none; }
  .home-how-link { font-size: var(--type-body); white-space: normal; }
  .library-grid, .dataset-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .library-hero { padding-block: 40px 32px; }
  .library-hero h1 { font-size: var(--type-title); }
  .library-kicker { margin-bottom: 18px; }
  .library-intro { font-size: var(--type-lead); }
  .library-search { padding-left: 12px; gap: 8px; }
  .library-search > svg { display: none; }
  .library-search button { padding: 12px; }
  .library-search button span { display: none; }
  .library-benefits { gap: 8px 16px; }
  .library-collection { padding-top: 32px; }
  .library-card h3, .dataset-card h3 { font-size: var(--type-card); }
  .library-endnote { flex-wrap: wrap; }
  .library-endnote a { margin-left: 0; }
  .detail-page { padding-top: 24px; }
  .detail-title-block { padding: 26px 22px; }
  .detail-title-block h1 { font-size: 24px; }
  .detail-title-bottom > p { font-size: var(--type-lead); }
  .detail-title-bottom > a { font-size: var(--type-body); }
  .detail-jump-links { gap: 20px; }
  .detail-usage h2 { font-size: 26px; }
  .detail-next { padding: 24px; }
  .detail-next > a { white-space: normal; }
  .simple-pricing .pricing-head, .about-hero { padding-top: 40px; }
  .simple-pricing .pricing-head > p:not(.eyebrow) { font-size: var(--type-lead); }
  .simple-pricing .price { font-size: 42px; }
  .about-hero { padding-bottom: 40px; }
  .about-manifesto, .about-contact { padding: 28px 24px; }
  .auth-page { padding-block: 40px 56px; }
  .auth-card { padding: 28px 22px; }
  .auth-card h2 { font-size: 26px; }
  .account-page { padding-block: 32px 48px; }
  .account-page > header { padding: 26px 22px; }
  .account-grid > section, .downloads { padding: 24px; }
  .verify-banner { padding: 22px; }
  .help-page { padding-block: 32px 48px; }
  .help-hero { padding: 28px 22px; }
  .help-sidebar nav { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .help-answers .faq-item { padding-inline: 16px; }
  .page-head, .page-hero { padding-block: 40px; }
  .catalog-layout { padding-inline: var(--pad); }
  .catalog-sidebar { padding: 20px; }
  .prose { font-size: var(--type-lead); line-height: var(--reading-line); }
  .prose h2 { font-size: 26px; }
  .faq-item summary { font-size: 18px; }
  .footer-copy { gap: 12px; flex-wrap: wrap; }
  .footer-copy span { margin-left: 0; }
}

/* Selected Orbitrock Data Weave identity, concept 02. */
.topbar .brand-mark, .footer-brand .brand-mark { background: transparent; border-radius: 0; flex: none; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.topbar .brand b, .footer-brand .brand b { font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -.045em; }
.brand .brand-accent { font-weight: inherit; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #f6f5ef; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand .brand b { font-size: 32px; line-height: 1.25; }
.admin-wordmark > img { display: block; flex: none; }

.topbar .brand-mark, .footer-brand .brand-mark { width: 48px; height: 36px; }
.topbar .brand { align-items: flex-start; }
.topbar .brand-mark { height: 32px; }
.topbar .brand-text > b { line-height: 32px; }
.brand-mark img { object-fit: contain; }
.admin-wordmark > img { width: 42px; height: 34px; object-fit: contain; }
