:root{--ink:#1d2926;--forest:#173c35;--forest-2:#28594f;--cream:#f4f0e6;--paper:#fffdf8;--gold:#c49245;--rust:#98523d;--line:#d8d3c8;--muted:#6b746f;--shadow:0 18px 50px rgba(30,44,39,.12)}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--cream);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.topbar{height:78px;padding:0 clamp(20px,5vw,72px);display:flex;align-items:center;justify-content:space-between;background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--forest);color:#f3dfb5;font:italic 700 25px Georgia,serif}.brand strong,.brand small{display:block}.brand small{color:var(--muted);font-size:12px;margin-top:2px}.header-actions,.dialog-footer{display:flex;gap:10px;align-items:center}.button,button{border:0;border-radius:8px;padding:11px 16px;font:600 14px inherit;cursor:pointer}.primary{background:var(--forest);color:white}.primary:hover{background:var(--forest-2)}.secondary{background:transparent;border:1px solid var(--line);color:var(--ink)}main{min-height:calc(100vh - 78px)}.hero{background:var(--forest);color:white;padding:64px clamp(20px,7vw,100px);display:flex;align-items:end;justify-content:space-between;gap:40px;background-image:radial-gradient(circle at 75% 20%,rgba(196,146,69,.18),transparent 35%)}.eyebrow{font-weight:800;font-size:11px;letter-spacing:.2em;color:#d5ad6f;margin:0 0 14px}.hero h1{font:700 clamp(38px,5vw,67px)/.98 Georgia,serif;margin:0;letter-spacing:-.025em}.hero h1 em{color:#e2bd7f;font-weight:400}.hero>div>p:last-child{color:#d5dedb;max-width:620px;line-height:1.6;margin:24px 0 0}.stats{display:flex;gap:28px}.stats div{min-width:110px;padding-left:20px;border-left:1px solid rgba(255,255,255,.22)}.stats strong,.stats span{display:block}.stats strong{font:700 30px Georgia,serif;color:#f2d39e}.stats span{font-size:12px;color:#b9c9c4;margin-top:5px}.catalog-section{padding:38px clamp(20px,7vw,100px) 80px}.toolbar{display:flex;gap:12px;margin-bottom:26px}.search{background:var(--paper);border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:10px;padding:0 15px;flex:1;max-width:680px}.search input{border:0;outline:0;background:transparent;width:100%;padding:13px 0;font-size:15px}.toolbar select,select,input,textarea{font:inherit}.toolbar select{border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:0 14px}.specimen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}.specimen-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(36,43,40,.05)}.card-image{height:190px;background:#d9ddd5;display:grid;place-items:center;color:var(--muted);overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover}.card-body{padding:20px}.card-meta{display:flex;justify-content:space-between;align-items:center}.catalog-id{font:700 12px ui-monospace,monospace;color:var(--rust)}.status-pill{font-size:11px;background:#eee9dc;border-radius:99px;padding:5px 8px}.status-pill.reviewed{background:#dcebe3;color:#235342}.card-title{font:700 24px/1.1 Georgia,serif;margin:14px 0 5px}.card-subtitle{color:var(--muted);margin:0 0 18px;font-size:14px}.card-body dl{border-top:1px solid var(--line);margin:0;padding-top:14px}.card-body dl div{display:grid;grid-template-columns:78px 1fr;margin:7px 0;font-size:13px}.card-body dt{color:var(--muted)}.card-body dd{margin:0}.text-button{padding:10px 0 0;color:var(--forest-2);background:none}.empty-state{text-align:center;padding:80px 20px}.empty-state .fossil-icon{font-size:60px;color:var(--gold)}.empty-state h2{font:700 32px Georgia,serif;margin:10px}.empty-state p{color:var(--muted);margin:0 auto 24px;max-width:460px}dialog{width:min(900px,calc(100% - 28px));max-height:92vh;padding:0;border:0;border-radius:16px;background:var(--paper);box-shadow:var(--shadow)}dialog::backdrop{background:rgba(18,29,26,.66)}dialog form{display:block}.dialog-header{display:flex;justify-content:space-between;align-items:start;padding:26px 30px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:2}.dialog-header h2{font:700 32px Georgia,serif;margin:0}.icon-button{background:transparent;font-size:28px;padding:0 8px}.form-section{padding:28px 30px;border-bottom:1px solid var(--line)}.form-section h3{font:700 22px Georgia,serif;margin:0 0 18px}.source-section>div:first-child{margin-bottom:18px}.source-section p{color:var(--muted);margin:5px 0}.dropzone{border:1.5px dashed #a9a99f;background:#faf7ee;border-radius:12px;display:grid;place-items:center;padding:26px;cursor:pointer}.dropzone span,.dropzone strong,.dropzone small{display:block}.camera{font-size:30px;color:var(--gold)}.dropzone small{color:var(--muted);margin-top:4px}.photo-preview{display:flex;gap:10px;overflow:auto;margin-top:12px}.photo-preview figure{width:112px;flex:0 0 112px;margin:0}.photo-preview img,.file-tile{width:112px;height:82px;object-fit:cover;border-radius:8px;background:#e8e3d8;display:grid;place-items:center}.photo-preview figcaption{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{font-size:13px;font-weight:700}.form-grid .wide{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{width:100%;margin-top:7px;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:white}.hint{font-weight:400;color:var(--rust)}.dialog-footer{justify-content:flex-end;padding:20px 30px;position:sticky;bottom:0;background:var(--paper)}#toast{position:fixed;right:24px;bottom:24px;background:var(--ink);color:white;padding:12px 16px;border-radius:8px;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}#toast.show{opacity:1;transform:none}@media(max-width:760px){.topbar{height:auto;padding:14px 18px;align-items:flex-start}.brand small{display:none}.header-actions{flex-wrap:wrap;justify-content:flex-end}.header-actions .secondary{display:none}.hero{padding:44px 22px;display:block}.stats{margin-top:38px;gap:10px}.stats div{min-width:0;flex:1;padding-left:12px}.catalog-section{padding:24px 18px}.toolbar{display:grid}.toolbar select{height:44px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.dialog-header,.form-section,.dialog-footer{padding-left:20px;padding-right:20px}}


.capture-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.capture-actions .dropzone {
  text-align: center;
}

@media (max-width: 760px) {
  .capture-actions {
    grid-template-columns: 1fr;
  }
}

.media-help { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.photo-preview { align-items: stretch; }
.photo-preview .media-editor { width: 150px; flex-basis: 150px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.photo-preview .media-editor img, .photo-preview .media-editor .file-tile { width: 132px; height: 96px; }
.media-editor label { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; }
.media-editor select { width: 100%; margin-top: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.media-editor .cover-choice { display: flex; gap: 5px; align-items: center; color: var(--ink); }
.remove-media { padding: 5px 0; margin-top: 4px; background: transparent; color: var(--rust); font-size: 11px; }
@media (max-width: 760px) {
  .photo-preview .media-editor { width: 168px; flex-basis: 168px; }
  .photo-preview .media-editor img, .photo-preview .media-editor .file-tile { width: 150px; height: 108px; }
}

[hidden] { display: none !important; }
.site-ribbon button, .institution-ribbon button { background: transparent; color: var(--forest); border-radius: 999px; padding: 8px 13px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.site-ribbon button:hover, .institution-ribbon button:hover { background: #edf2ef; }
.site-ribbon .active, .institution-ribbon .active { background: var(--forest); color: white; box-shadow: 0 8px 18px rgba(18,63,53,.18); }
.connection-status { font-size: 13px; color: var(--muted); margin: 8px 0 24px; }
.save-error, #loginError { color: #933924; padding: 0 30px; white-space: pre-line; }
button:disabled { opacity: .55; cursor: wait; }
.login-panel { max-width: 480px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.login-panel label { display: block; margin: 12px 0; }
.login-panel input, .museum-filters input, .museum-filters select { width: 100%; margin-top: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.password-field { position:relative; display:block; }
.password-field input { padding-right:48px; }
.password-field button { position:absolute; right:4px; top:9px; width:38px; height:38px; padding:0; color:var(--forest); background:transparent; border-radius:6px; }
.password-field button:hover { background:#eee9dc; }
.workflow-hint { display:block; margin-top:7px; color:var(--muted); font-weight:400; line-height:1.4; }
.auth-actions { display:flex; align-items:center; gap:14px; }
.collection-setup { max-width:560px; padding:28px; margin:0 0 28px; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.collection-setup form { display:flex; gap:10px; align-items:end; }
.collection-setup label, .dialog-field { display:block; flex:1; font-size:13px; font-weight:700; }
.collection-setup input, .dialog-field input { display:block; width:100%; margin-top:7px; padding:11px 12px; border:1px solid var(--line); border-radius:8px; background:white; font:inherit; }
.collection-picker { font-size:12px; font-weight:700; color:var(--muted); }
.collection-picker select { display:block; min-width:190px; height:44px; margin-top:3px; }
.detail-actions { display:flex; justify-content:space-between; gap:10px; }
#specimenDialog.view-only .capture-actions, #specimenDialog.view-only .media-help, #specimenDialog.view-only #uploadStatus { display:none; }
.museum-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin: 24px 0; }
.snapshot-note { font-size: 12px; color: var(--rust); line-height: 1.6; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; }
#museumDetailFields div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#museumDetailFields dd { margin: 0; white-space: pre-line; }
.media-editor a { display: block; font-size: 12px; color: var(--forest); margin-top: 6px; }
.card-image img { cursor: zoom-in; }
@media (max-width: 760px) {
  .catalog-section { padding-left: 18px; padding-right: 18px; }
  .museum-filters { grid-template-columns: 1fr; }
  #museumDetailFields div { grid-template-columns: 1fr; gap: 4px; }
}

.reading-review { background: #f4f5ed; }
.reading-review p { line-height: 1.5; }
.reading-review pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: 12px; background: white; border-radius: 8px; }
.reading-review details { margin: 18px 0; }
.reading-review summary { cursor: pointer; }
.reading-review button { margin: 6px 6px 0 0; }
.reading-choice { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reading-choice input[type=checkbox] { width: 18px; height: 18px; margin-top: 4px; }
.reading-choice strong, .reading-choice small { display: block; margin-bottom: 5px; }
.reading-choice small { color: var(--muted); overflow-wrap: anywhere; }
.reading-choice textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
#readingWarnings { color: var(--rust); white-space: pre-line; }
.read-record { width: 100%; margin: 8px 0; font-size: 12px; padding: 10px 6px; }
@media (max-width:760px) { .capture-actions { grid-template-columns:1fr; } }

.people-panel{max-width:1180px;margin:auto}.people-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:20px 0 28px}.people-heading h2{font:700 clamp(34px,4vw,54px) Georgia,serif;margin:0}.people-heading p:last-child{color:var(--muted);max-width:680px}.people-search{max-width:none;margin-bottom:24px}.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.person-card,.profile-detail{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 4px 18px rgba(36,43,40,.05)}.person-card h3{font:700 25px Georgia,serif;margin:8px 0 3px}.person-title{color:var(--forest-2);font-weight:700;margin:0}.person-meta{color:var(--muted);min-height:40px}.expertise-list{display:flex;flex-wrap:wrap;gap:7px;padding:0;list-style:none}.expertise-list li{background:#eee9dc;border-radius:99px;padding:6px 9px;font-size:12px}.person-metrics{display:flex;gap:22px;border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.person-metrics strong,.person-metrics span{display:block}.person-metrics span{color:var(--muted);font-size:11px}.profile-detail{margin-top:24px}.profile-detail h3{font:700 36px Georgia,serif;margin:6px 0}.profile-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.collaboration-badge{color:#235342;background:#dcebe3;border-radius:99px;padding:6px 10px;font-size:12px;font-weight:700;display:inline-block}.checkbox-label input{width:auto!important;margin-right:8px!important}
@media(max-width:760px){.people-heading{display:block}.people-heading button{margin-top:12px}}
.profile-photo{border-radius:50%;object-fit:cover;background:#e8e3d8;border:3px solid var(--paper)}.profile-photo.small{width:72px;height:72px;float:right}.profile-photo.large{width:128px;height:128px}.profile-credits{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}.profile-credits h4{font:700 22px Georgia,serif;margin:0 0 12px}.profile-credits ul{list-style:none;padding:0;display:grid;gap:10px}.profile-credits li{padding:12px;background:#f4f0e8;border-radius:8px}.profile-credits strong,.profile-credits span{display:block}.profile-credits span{color:var(--muted);font-size:13px;margin-top:4px}

.map-heading{display:flex;justify-content:space-between;gap:2rem;align-items:end;margin-bottom:1rem}.map-heading h2{margin:.15rem 0}.map-heading p{max-width:48rem}.map-filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:.75rem;margin-bottom:1rem}.map-filters label{font-size:.76rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.map-filters input,.map-filters select{width:100%;margin-top:.35rem}.specimen-map{position:relative;overflow:hidden;isolation:isolate;width:100%;height:min(68vh,680px);min-height:430px;border:1px solid var(--line,#d8d1c3);border-radius:8px;background:#e8e3d8;z-index:0}.empty-map{padding:1rem;background:#f4f0e8;text-align:center}.collector-profile-link{padding:.8rem 1rem;background:#f4f0e8;border-left:3px solid var(--gold,#a47b32)}.collector-profile-link button{margin-left:.35rem}.leaflet-popup-content strong{display:block;font-family:Georgia,serif;font-size:1rem}.leaflet-popup-content span{display:block;margin-top:.2rem;color:#555}@media(max-width:850px){.map-filters{grid-template-columns:1fr 1fr}.map-heading{display:block}.specimen-map{height:58vh;min-height:360px}}@media(max-width:520px){.map-filters{grid-template-columns:1fr}}

html { scroll-behavior: smooth; }

:where(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid #d5a24a;
  outline-offset: 3px;
}
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
[aria-busy="true"] { cursor: progress; }
.noscript-message { margin: 0; padding: 14px clamp(18px,5vw,72px); background: #fff3cd; color: #513d08; border-bottom: 1px solid #e5c968; font-weight: 650; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

:root {
  --ink: #17211e;
  --forest: #123f35;
  --forest-2: #1d6655;
  --cream: #f4f6f2;
  --paper: #fff;
  --gold: #d5a24a;
  --line: #dce3de;
  --muted: #68746f;
  --shadow: 0 24px 70px rgba(18,63,53,.12);
}

body {
  background: radial-gradient(circle at 12% 5%, rgba(213,162,74,.08), transparent 28rem), var(--cream);
  letter-spacing: -.01em;
}

.topbar {
  height: auto;
  padding: 0;
  display: block;
  background: rgba(255,255,255,.9);
  border-bottom-color: rgba(18,63,53,.09);
  box-shadow: 0 8px 30px rgba(18,63,53,.055);
  backdrop-filter: blur(16px);
}

.topbar-main {
  min-height: 76px;
  padding: 12px clamp(20px,5vw,72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-ribbon, .institution-ribbon {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px clamp(20px,5vw,72px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-ribbon {
  border-top: 1px solid rgba(18,63,53,.08);
  background: #fbfcfa;
}

.institution-ribbon {
  border-top: 1px solid rgba(18,63,53,.08);
  background: #e9f0ed;
}

.institution-ribbon-label { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.catalog-section { scroll-margin-top: 180px; }
.sign-in-action { border-color: var(--forest); color: var(--forest); }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18,63,53,.2);
  font: 750 15px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.04em;
}

.brand strong { font-size: 15px; letter-spacing: -.02em; }
.header-actions .button, .header-actions button { border-radius: 999px; padding: 11px 18px; }
.header-actions .primary { box-shadow: 0 9px 22px rgba(18,63,53,.2); }

.company-hero {
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  background: radial-gradient(circle at 78% 15%, rgba(213,162,74,.22), transparent 30%), linear-gradient(135deg, #123f35, #092b25);
}

.hero-copy { max-width: 780px; }
.hero h1 { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 760; letter-spacing: -.065em; }

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--gold);
  color: #172d28;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.hero-cta:hover { background: #d3aa6a; }

.ledger-card {
  width: min(390px, 36vw);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(255,253,248,.07);
  box-shadow: 0 28px 75px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.ledger-label {
  margin: 0 0 8px;
  color: #e2bd7f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.ledger-card dl { margin: 0; }
.ledger-card dl div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.ledger-card dt { color: #d5ad6f; font: 700 13px ui-monospace, monospace; }
.ledger-card dd { margin: 0; }
.ledger-card strong, .ledger-card span { display: block; }
.ledger-card strong { font: 700 19px Georgia, serif; }
.ledger-card span { margin-top: 4px; color: #c7d4d0; font-size: 13px; line-height: 1.45; }

.institution-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 46px clamp(20px,7vw,100px);
  margin: 0 clamp(18px,4vw,64px);
  padding-left: clamp(24px,4vw,56px);
  padding-right: clamp(24px,4vw,56px);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(18,63,53,.09);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 50px rgba(18,63,53,.07);
}

.institution-entry h2, .workspace-banner h2 {
  margin: 0;
  font: 700 clamp(28px,3.2vw,42px)/1.08 Georgia, serif;
}

.institution-entry > div > p:last-child, .workspace-banner > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.institution-selector {
  width: min(430px,42vw);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.institution-selector select {
  display: block;
  width: 100%;
  margin: 8px 0 7px;
  padding: 14px 42px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.institution-selector small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.workspace-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 58px clamp(20px,7vw,100px) 20px;
}

.institution-entry h2, .workspace-banner h2, .story-hero h2,
.purpose-block h3, .capability-grid h3, .founder-card h3 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.045em;
}

.workspace-banner .eyebrow { color: var(--rust); }
.workspace-banner .stats strong { color: var(--forest); }
.workspace-banner .stats span { color: var(--muted); }
.workspace-banner .stats div { border-left-color: var(--line); }

.story-panel { padding: 18px 0 30px; }
.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 26px;
  background: var(--forest);
  color: white;
  background-image: radial-gradient(circle at 88% 10%, rgba(196,146,69,.2), transparent 34%);
}
.story-hero h2 { margin: 0; max-width: 720px; font: 750 clamp(36px,5vw,64px)/1 ui-sans-serif,system-ui,sans-serif; letter-spacing: -.055em; }
.story-hero > p { margin: 0; color: #cfdbd7; font-size: 17px; line-height: 1.75; }
.section-kicker { margin: 0 0 12px; color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.purpose-block { max-width: 850px; padding: 64px 0 46px; }
.purpose-block h3 { margin: 0 0 18px; font: 700 clamp(28px,3.5vw,43px)/1.12 Georgia,serif; }
.purpose-block > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.capability-grid article { min-height: 250px; padding: 26px; border: 1px solid rgba(18,63,53,.09); border-radius: 20px; background: var(--paper); box-shadow: 0 14px 35px rgba(18,63,53,.06); transition: transform .2s ease, box-shadow .2s ease; }
.capability-grid article:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(18,63,53,.11); }
.capability-grid article > span { color: var(--gold); font: 700 12px ui-monospace,monospace; }
.capability-grid h3, .founder-card h3 { margin: 42px 0 10px; font: 700 23px/1.08 Georgia,serif; }
.capability-grid p, .founder-card > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 52px 0 34px; }
.founder-card { padding: clamp(28px,4vw,48px); border: 1px solid rgba(18,63,53,.09); border-radius: 22px; background: var(--paper); box-shadow: 0 18px 45px rgba(18,63,53,.07); }
.founder-monogram { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 34px; border-radius: 50%; background: var(--forest); color: #f2d39e; font: 700 22px Georgia,serif; }
.founder-card h3 { margin: 8px 0 14px; font-size: 32px; }
.founders-panel blockquote { margin: 0; padding: 38px clamp(28px,6vw,72px); border-left: 5px solid var(--gold); background: #ebe5d8; color: var(--forest); font: italic 700 clamp(24px,3vw,38px)/1.25 Georgia,serif; }

.guide-panel { padding: 18px 0 40px; font-size: 17px; line-height: 1.65; }
.guide-intro { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 48px; align-items: center; padding: clamp(34px,6vw,70px); border-radius: 26px; background: linear-gradient(135deg,#123f35,#195447); color: white; }
.guide-intro h2 { max-width: 760px; margin: 0 0 22px; font: 750 clamp(36px,5vw,62px)/1 ui-sans-serif,system-ui,sans-serif; letter-spacing: -.055em; }
.guide-intro > div > p:last-child { margin: 0; color: #d8e3df; }
.guide-reassurance { padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.09); }
.guide-reassurance strong { font-size: 20px; }
.guide-reassurance ol { margin: 14px 0 0; padding-left: 24px; }
.guide-reassurance li + li { margin-top: 9px; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 4px; }
.guide-jump a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--forest); font-size: 14px; font-weight: 700; text-decoration: none; }
.guide-jump a:hover { border-color: var(--forest-2); background: #edf3f0; }
.guide-section { padding: 64px 0 16px; scroll-margin-top: 100px; }
.guide-section > h3 { max-width: 850px; margin: 0 0 30px; font: 750 clamp(30px,4vw,46px)/1.1 ui-sans-serif,system-ui,sans-serif; letter-spacing: -.045em; }
.guide-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-steps article { display: flex; gap: 20px; padding: 26px; border: 1px solid rgba(18,63,53,.1); border-radius: 20px; background: white; box-shadow: 0 12px 30px rgba(18,63,53,.05); }
.guide-steps article > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: white; font-weight: 800; }
.guide-steps h4, .guide-card-grid h4 { margin: 2px 0 8px; color: var(--forest); font-size: 19px; line-height: 1.25; }
.guide-steps p, .guide-card-grid p { margin: 0; color: var(--muted); }
.guide-note { margin-top: 18px; padding: 24px 28px; border-left: 5px solid var(--gold); border-radius: 0 16px 16px 0; background: #fff9ed; }
.guide-note strong { color: var(--forest); font-size: 19px; }
.guide-note p { margin: 5px 0 0; }
.guide-note.urgent { border-left-color: var(--rust); background: #fff4ef; }
.guide-card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.guide-card-grid article { padding: 26px; border: 1px solid rgba(18,63,53,.1); border-radius: 20px; background: white; }
.status-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.status-guide article { padding: 26px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.status-guide p { margin: 16px 0 0; color: var(--muted); }
.status-example { display: inline-block; padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.status-example.draft { background: #eee9dc; color: #6b5635; }
.status-example.reviewed { background: #dcebe3; color: #235342; }
.guide-glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.guide-glossary div { padding: 20px 0; border-top: 1px solid var(--line); }
.guide-glossary dt { color: var(--forest); font-weight: 800; }
.guide-glossary dd { margin: 5px 0 0; color: var(--muted); }
.ai-process { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 28px 0; }
.ai-process article { padding: 28px; border: 1px solid rgba(18,63,53,.1); border-radius: 20px; background: white; }
.ai-process article > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 50%; background: var(--forest); color: white; font-weight: 800; }
.ai-process h3, .ai-billing-grid h3, .provider-guide h3 { margin: 0 0 10px; color: var(--forest); font: 700 24px/1.15 Georgia,serif; }
.ai-process p, .ai-billing-grid p, .provider-guide p { color: var(--muted); line-height: 1.65; }
.compare-hero { background: linear-gradient(135deg,#123f35 0%,#245e50 65%,#9d7038 150%); }
.comparison-intro { display:grid; grid-template-columns:minmax(250px,.7fr) 1.3fr; gap:24px; align-items:center; margin:28px 0; padding:24px 28px; border:1px solid rgba(18,63,53,.12); border-radius:20px; background:var(--paper); }
.comparison-intro>div { display:flex; gap:18px; align-items:center; }
.comparison-intro p { margin:0; color:var(--muted); line-height:1.6; }
.comparison-score { font:700 58px/1 Georgia,serif; color:var(--gold); }
.comparison-table-wrap { overflow-x:auto; margin:0 0 10px; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:0 14px 35px rgba(18,63,53,.06); }
.comparison-table { width:100%; min-width:920px; border-collapse:collapse; font-size:13px; }
.comparison-table th,.comparison-table td { padding:17px 16px; border-bottom:1px solid #e8e3d8; text-align:left; vertical-align:top; }
.comparison-table thead th { color:white; background:var(--forest); font-size:12px; letter-spacing:.035em; }
.comparison-table tbody th { width:23%; color:var(--forest); font-weight:750; }
.comparison-table .ledger-column { background:#f3ead8; }
.comparison-table thead .ledger-column { background:#c08b3f; color:#102f29; }
.comparison-table tbody tr:last-child>* { border-bottom:0; }
.fit { display:inline-block; padding:5px 8px; border-radius:999px; font-size:11px; font-weight:800; white-space:nowrap; }
.fit-strong { color:#185341; background:#dcebe3; }
.fit-growing { color:#77452f; background:#f4dfcf; }
.comparison-note { margin:12px 4px 30px; color:var(--muted); font-size:12px; line-height:1.55; }
.why-ledger-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.why-ledger-grid article { padding:23px; border-radius:18px; background:var(--forest); color:white; }
.why-ledger-grid span { color:#e2bd7f; font:700 12px ui-monospace,monospace; }
.why-ledger-grid h3 { margin:30px 0 9px; font:700 20px/1.1 Georgia,serif; }
.why-ledger-grid p { margin:0; color:#cfdbd7; font-size:13px; line-height:1.55; }
.comparison-cta { display:flex; justify-content:space-between; align-items:center; gap:28px; margin-top:28px; padding:32px; border-radius:20px; background:#e9dfca; }
.comparison-cta h3 { margin:0 0 8px; color:var(--forest); font:700 28px Georgia,serif; }
.comparison-cta p:last-child { margin:0; color:var(--muted); line-height:1.55; }
.ai-billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.ai-billing-grid article { padding: clamp(28px,4vw,46px); border-radius: 22px; background: #ebe5d8; }
.provider-guide { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 34px; align-items: center; margin-top: 18px; padding: clamp(28px,4vw,46px); border: 1px solid rgba(18,63,53,.1); border-radius: 22px; background: white; }
.provider-links { display: grid; gap: 10px; }
.provider-links .button { display: block; text-align: center; text-decoration: none; }

@media (max-width: 900px) {
  .ledger-card { width: 42vw; }
  .institution-entry { align-items: flex-start; }
  .workspace-banner { align-items: flex-start; flex-direction: column; }
  .workspace-banner .stats { margin-top: 0; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .why-ledger-grid { grid-template-columns:repeat(2,1fr); }
  .guide-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: auto; padding: 0; }
  .topbar-main { min-height: 68px; padding: 10px 14px; }
  .site-ribbon, .institution-ribbon { padding: 7px 14px; }
  .catalog-section { scroll-margin-top: 170px; }
  .brand { min-width: 0; }
  .brand strong { white-space: nowrap; }
  .brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
  .header-actions { width: auto; flex-wrap: nowrap; margin-left: auto; }
  .header-actions .secondary:not(.sign-in-action), .header-actions label.secondary { display: none; }
  .header-actions .sign-in-action { display: inline-flex; padding: 9px 13px; white-space: nowrap; }
  .header-actions .primary { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .company-hero { padding-top: 58px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(40px,12vw,56px); }
  .ledger-card { width: 100%; margin-top: 36px; }
  .institution-entry { display: block; margin: 0 12px; padding: 32px 22px; border-radius: 0 0 20px 20px; }
  .institution-selector { display: block; width: 100%; margin-top: 28px; }
  .workspace-banner { padding: 42px 18px 12px; }
  .workspace-banner .stats { width: 100%; }
  .story-panel { padding-top: 8px; }
  .story-hero { grid-template-columns: 1fr; padding: 38px 24px; border-radius: 22px; }
  .story-hero h2 { font-size: 38px; }
  .purpose-block { padding: 48px 4px 34px; }
  .capability-grid, .founder-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; }
  .guide-panel { font-size: 16px; }
  .guide-intro { grid-template-columns: 1fr; gap: 28px; padding: 38px 24px; border-radius: 22px; }
  .guide-intro h2 { font-size: 38px; }
  .guide-jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
  .guide-jump a { white-space: nowrap; }
  .guide-section { padding-top: 50px; }
  .guide-steps, .guide-card-grid, .status-guide, .guide-glossary, .ai-process, .ai-billing-grid, .provider-guide { grid-template-columns: 1fr; }
  .comparison-intro { grid-template-columns:1fr; }
  .why-ledger-grid { grid-template-columns:1fr; }
  .comparison-cta { display:block; }
  .comparison-cta .button { display:inline-block; margin-top:20px; }
  .guide-steps article { padding: 22px 18px; }
}
