@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');
:root { --ink:#17211d; --muted:#718078; --paper:#f6f6f1; --card:#fff; --line:#dfe5de; --green:#2f6f58; --lime:#d7edbd; --orange:#e98953; }
* { box-sizing:border-box; } html { scroll-behavior:smooth; } body { margin:0; color:var(--ink); background:var(--paper); font-family:'DM Sans',sans-serif; }
.topbar { min-height:0; padding:12px 5vw; display:flex; align-items:flex-start; flex-direction:column; justify-content:space-between; gap:10px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); position:sticky; top:0; z-index:2; backdrop-filter:blur(12px); box-shadow:0 2px 12px rgba(23,33,29,.04); }
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--ink); letter-spacing:-.04em; font-size:19px; }.brand strong { font-weight:700; }.brand small { display:block; color:var(--muted); font:10px 'DM Mono',monospace; letter-spacing:.02em; }.brand-mark { display:grid; place-items:center; width:34px; height:34px; border:1.5px solid var(--green); border-radius:50%; color:var(--green); font:500 17px Fraunces,serif; }
.brand-logo { display:block; width:150px; max-width:min(150px,45vw); height:auto; }
.topbar nav { display:flex; gap:8px 18px; align-items:center; flex-wrap:wrap; justify-content:flex-start; }.topbar nav a { color:var(--muted); text-decoration:none; font-size:14px; white-space:nowrap; }.topbar nav a:hover { color:var(--green); }
.hero { min-height:0; padding:52px 6vw; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:26px; background:linear-gradient(118deg,#f6f6f1 0%,#f6f6f1 57%,#e8f0dd 100%); overflow:hidden; }.hero-copy { width:100%; max-width:690px; }.eyebrow,.section-label { margin:0 0 15px; color:var(--green); font:500 11px 'DM Mono',monospace; letter-spacing:.12em; }.hero h1 { margin:0; font-size:clamp(42px,11vw,60px); letter-spacing:-.065em; line-height:.99; font-weight:600; }.hero h1 em { color:var(--green); font-family:Fraunces,serif; font-weight:500; letter-spacing:-.04em; }.lede { max-width:560px; margin:25px 0 28px; color:#637069; font-size:17px; line-height:1.55; }.search { width:100%; max-width:630px; min-height:58px; height:auto; display:flex; align-items:center; gap:10px; padding:6px 7px 6px 14px; background:white; border:1px solid #d5ded4; border-radius:5px; box-shadow:0 11px 30px rgba(34,69,49,.08); }.search-icon { color:var(--green); font-size:26px; transform:rotate(-20deg); }.search input { min-width:0; flex:1; border:0; outline:0; color:var(--ink); background:transparent; font:15px 'DM Sans',sans-serif; }.search button { min-height:44px; padding:0 14px; border:0; border-radius:3px; background:var(--green); color:white; font-weight:600; cursor:pointer; }.search button:hover { background:#245642; }.search-hint { color:#8a958e; font-size:12px; }.inline-search { border:0; padding:0; color:var(--green); background:transparent; text-decoration:underline; cursor:pointer; font:inherit; }
.orbital { display:none; width:350px; height:350px; flex:none; position:relative; border-radius:50%; border:1px solid #b9d3b3; }.orbit { position:absolute; inset:31px; border:1px dashed #a9c99e; border-radius:50%; animation:spin 20s linear infinite; }.orbit-two { inset:69px; animation-duration:15s; animation-direction:reverse; border-color:#9dc6b6; }.orbit-three { inset:108px; animation-duration:11s; border-color:#e7ba8d; }.orbit span { position:absolute; right:-13px; top:26px; padding:5px 8px; background:var(--paper); color:var(--green); font:10px 'DM Mono',monospace; }.orbit-two span { left:-28px; top:40px; color:#b66735; }.orbit-three span { right:5px; top:-15px; color:#aa7047; }.core { position:absolute; inset:126px; display:grid; place-items:center; border-radius:50%; background:var(--green); color:var(--lime); font:600 58px Fraunces,serif; box-shadow:0 0 0 15px rgba(47,111,88,.1); } @keyframes spin { to { transform:rotate(360deg); } }
.workspace { max-width:1260px; margin:0 auto; padding:32px 5vw 60px; display:block; }.category-list { display:flex; flex-wrap:wrap; gap:4px; }.category { display:flex; justify-content:space-between; align-items:center; width:auto; min-height:42px; padding:10px 11px; border:0; border-radius:4px; background:transparent; color:#5e6c64; text-align:left; cursor:pointer; font:14px 'DM Sans',sans-serif; }.category:hover,.category.active { background:#e5efdf; color:var(--green); }.category .count { color:#a2aca6; font:11px 'DM Mono',monospace; }.sidebar { margin-bottom:28px; }.sidebar-note { display:flex; gap:9px; margin-top:20px; color:#87928b; font-size:11px; line-height:1.4; }.sidebar-note strong { color:var(--ink); font-weight:600; }.pulse { width:7px; height:7px; margin-top:4px; flex:none; border-radius:50%; background:#76b758; box-shadow:0 0 0 4px #e0f0d9; }
.results-header { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px; border-bottom:1px solid var(--line); padding-bottom:17px; }.results-header h2 { margin:0; font:500 29px Fraunces,serif; letter-spacing:-.03em; }.result-count { color:var(--muted); font:11px 'DM Mono',monospace; }.status { padding:28px 0; color:var(--muted); font-size:14px; }.status.error { color:#b24d3c; }.results-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }.entity { min-height:175px; padding:20px; display:flex; flex-direction:column; justify-content:space-between; border:1px solid var(--line); background:var(--card); transition:transform .15s,box-shadow .15s; }.entity:hover { transform:translateY(-3px); box-shadow:0 10px 24px rgba(34,69,49,.08); }.entity-type { color:var(--green); font:10px 'DM Mono',monospace; text-transform:uppercase; letter-spacing:.08em; }.entity h3 { margin:14px 0 5px; font-size:18px; letter-spacing:-.03em; }.entity p { margin:0; color:#7c8982; font-size:12px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }.entity-link { margin-top:15px; color:var(--green); text-decoration:none; font-size:12px; }.empty { grid-column:1/-1; padding:50px 0; color:var(--muted); }
.about { padding:56px 6vw; background:#e5efdf; }.about h2 { max-width:670px; margin:0; font:500 clamp(32px,8vw,45px) Fraunces,serif; letter-spacing:-.05em; line-height:1.06; }.about p:not(.eyebrow) { max-width:590px; margin:24px 0 32px; color:#68786e; line-height:1.6; }.about-grid { max-width:860px; display:grid; grid-template-columns:1fr; gap:18px; color:#83a17f; font:11px 'DM Mono',monospace; }.about-grid strong { display:block; margin-top:10px; color:var(--ink); font:600 14px 'DM Sans',sans-serif; }footer { padding:25px 6vw; display:flex; flex-wrap:wrap; gap:10px 24px; justify-content:space-between; color:#849089; font:11px 'DM Mono',monospace; }
.entity-page { width:100%; max-width:920px; min-height:0; margin:0 auto; padding:36px 5vw 64px; overflow-wrap:anywhere; }.back-link { color:var(--green); text-decoration:none; font-size:13px; }.entity-page h1 { margin:18px 0 12px; font:500 clamp(2.5rem,11vw,4rem) Fraunces,serif; letter-spacing:-.06em; line-height:1; }.entity-lede { max-width:650px; color:#68786e; font-size:1.05rem; line-height:1.55; }.entity-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; margin-top:32px; border-top:1px solid var(--line); }.entity-section { padding-top:24px; }.entity-section h2 { margin:0 0 15px; font:500 25px Fraunces,serif; }.entity-section ul { margin:0; padding:0; list-style:none; color:#6f7c74; font-size:14px; line-height:1.8; }.entity-section li { border-bottom:1px solid #e8ece5; padding:5px 0; }.entity-actions { margin-top:36px; }.search-button { display:inline-block; min-height:44px; padding:13px 17px; color:#fff; background:var(--green); text-decoration:none; border-radius:3px; font-size:13px; }

/* Molecule record sections on entity pages */
.entity-note { max-width:650px; margin:14px 0 0; color:#8a958e; font-size:13px; line-height:1.6; }
.entity-note a { color:var(--green); }
.entity-section.wide { max-width:100%; margin-top:44px; padding-top:24px; border-top:1px solid var(--line); }
.kv { display:grid; grid-template-columns:minmax(0,1fr); gap:2px; margin:0; color:#6f7c74; font-size:14px; }
.kv dt { color:var(--muted); font:11px 'DM Mono',monospace; letter-spacing:.06em; text-transform:uppercase; padding-top:10px; }
.kv dd { margin:0; }
.kv dd a { color:var(--green); }
.note-facts { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:7px 14px; max-width:600px; margin:18px 0 0; font-size:14px; }
.note-facts dt { color:var(--muted); font:11px 'DM Mono',monospace; letter-spacing:.04em; text-transform:uppercase; }
.note-facts dd { margin:0; color:var(--ink); }
.note-related { margin-top:22px !important; padding-top:14px !important; }
.note-related .record-meta { margin:3px 0 8px; }
.note-constituent-label { margin:13px 0 4px; }
.note-compounds { color:var(--muted); font-size:13px; line-height:1.8; }
.note-compounds a { color:var(--green); }
.note-search { max-width:650px; margin:20px 0 0; }
.note-search label { display:block; margin-bottom:7px; color:var(--muted); font:11px 'DM Mono',monospace; letter-spacing:.04em; text-transform:uppercase; }
.note-search > div { display:flex; gap:8px; }
.note-search input { min-width:0; flex:1; min-height:46px; padding:11px 13px; border:1px solid var(--line); background:#fff; font:15px 'DM Sans',sans-serif; }
.note-search button { min-height:46px; padding:0 15px; border:0; border-radius:4px; background:var(--green); color:#fff; font:600 13px 'DM Sans',sans-serif; cursor:pointer; }
.note-result-count { margin:17px 0 7px; color:var(--muted); font-size:13px; }
.note-list { display:grid; grid-template-columns:minmax(0,1fr); gap:0 16px; margin:0; padding:0; list-style:none; }
.note-list li { display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); }
.note-list a { color:var(--green); font-weight:600; text-decoration:none; }
.note-list span { color:var(--muted); font-size:11px; text-align:right; }
.note-attribution { max-width:780px; }
.note-page .note-attribution { margin-top:28px; }
.product-notes { margin:14px 0 18px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#fbfcf9; }
.product-notes .section-label { margin:0 0 8px; color:var(--muted); font:600 10px 'DM Mono',monospace; letter-spacing:.07em; }
.product-note-list { display:flex; flex-wrap:wrap; gap:5px; margin:0; padding:0; list-style:none; }
.product-note-list li { padding:5px 8px; border-radius:999px; background:#edf2eb; font-size:12px; }
.product-note-list li span { color:var(--muted); font:10px 'DM Mono',monospace; text-transform:capitalize; }
.product-note-list a { color:var(--green); text-decoration:none; }
.product-notes .entity-note { margin:8px 0 0; font-size:11px; }
.mono { font-family:'DM Mono',monospace; font-size:12.5px; word-break:break-all; }
.record-list { margin:0; padding:0; list-style:none; }
.record-list li { padding:12px 0; border-bottom:1px solid #e8ece5; }
.record-list li:last-child { border-bottom:0; }
.record-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:10px; margin:0; font-size:16px; letter-spacing:-.02em; }
.record-title a { color:var(--ink); text-decoration:none; border-bottom:1px solid #cfd8cd; }
.record-title a:hover { color:var(--green); border-color:var(--green); }
.record-value { color:var(--green); font:12px 'DM Mono',monospace; }
.record-meta { margin:4px 0 0; color:#8a958e; font-size:12.5px; line-height:1.55; }
.record-meta a { color:var(--green); }
/* Organism chips: icon, binomial, reference count */
.organism-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin:0; padding:0; list-style:none; }
.organism-grid li { border-bottom:0; padding:0; }
.organism-grid a { display:flex; align-items:center; gap:9px; padding:9px 11px; border:1px solid var(--line); background:var(--card); color:var(--ink); text-decoration:none; border-radius:4px; }
.organism-grid a:hover { border-color:var(--green); background:#f2f7ef; }
.organism-icon { font-size:19px; line-height:1; flex:none; }
.organism-name { flex:1; font-size:13px; font-style:italic; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.organism-refs { color:var(--muted); font:11px 'DM Mono',monospace; flex:none; }
.organism-icon-lg { margin-right:14px; font-style:normal; }
.organism-name--common { font-style:normal; font-weight:500; }
.entity-binomial { margin:-8px 0 0; color:var(--muted); font-size:15px; }

/* Ask Terpedia */
.chat { position:fixed; right:10px; bottom:10px; z-index:20; font-family:'DM Sans',sans-serif; }
.chat-toggle { display:flex; align-items:center; gap:9px; padding:11px 16px; border:1.5px solid var(--green); border-radius:999px; background:var(--green); color:#fff; font:600 14px 'DM Sans',sans-serif; cursor:pointer; box-shadow:0 10px 26px rgba(34,69,49,.22); }
.chat-toggle__mark { display:grid; place-items:center; width:22px; height:22px; border:1.5px solid rgba(255,255,255,.7); border-radius:50%; font:500 13px Fraunces,serif; }
.chat-panel { position:absolute; right:0; bottom:50px; width:min(380px, calc(100vw - 36px)); height:min(520px, calc(100vh - 110px)); display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 20px 50px rgba(34,69,49,.18); overflow:hidden; }
.chat-panel[hidden] { display:none; }
.chat-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); }
.chat-head strong { display:block; font-size:15px; }
.chat-head small { color:var(--muted); font-size:11px; }
.chat-close { border:0; background:none; font-size:22px; line-height:1; color:var(--muted); cursor:pointer; }
.chat-log { flex:1; overflow:auto; padding:14px 16px; display:flex; flex-direction:column; gap:10px; background:var(--paper); }
.chat-msg { max-width:88%; padding:10px 12px; border-radius:10px; font-size:14px; line-height:1.5; white-space:pre-wrap; }
.chat-msg--user { align-self:flex-end; background:var(--green); color:#fff; }
.chat-msg--assistant { align-self:flex-start; background:#fff; border:1px solid var(--line); color:var(--ink); }
.chat-form { display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); }
.chat-input { flex:1; min-width:0; padding:10px 12px; border:1px solid #d5ded4; border-radius:6px; font:14px 'DM Sans',sans-serif; }
.chat-send { padding:10px 14px; border:0; border-radius:6px; background:var(--green); color:#fff; font-weight:600; cursor:pointer; }
.kb-product .chat { bottom:calc(88px + env(safe-area-inset-bottom)); }

.trial-live { color:#fff !important; background:var(--green); padding:2px 8px; border-radius:999px; }
.rdkit-depiction { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line, #d8e1db); border-radius: 14px; background: var(--surface, #fff); text-align: center; }
.rdkit-depiction img { display: block; width: min(100%, 560px); max-height: 360px; margin: 0 auto; object-fit: contain; }
.rdkit-depiction[aria-busy="true"] { min-height: 120px; display: grid; place-items: center; }
.rdkit-depiction[aria-busy="true"]::before { content: "Rendering structure with RDKit…"; color: var(--muted, #69756d); font-size: .85rem; }
.rdkit-depiction figcaption { margin-top: .45rem; color: var(--muted, #69756d); font-size: .75rem; }
.pathway-steps { display: grid; gap: 0; margin: 1rem 0; padding: 0; list-style: none; }
.pathway-steps > li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; position: relative; }
.pathway-step-index { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand, #32845b); color: white; font-size: .8rem; font-weight: 700; }
.pathway-step-content { min-width: 0; padding-bottom: 1rem; }
.pathway-step-content > strong { display: block; padding: .25rem 0 .5rem; }
.pathway-arrow { grid-column: 1; justify-self: center; color: var(--brand, #32845b); font-size: 1.2rem; padding-bottom: .5rem; }
.pathway-step-content .rdkit-depiction { margin: .35rem 0 .75rem; }
.network-section { max-width: 100%; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.network-heading { display: block; margin-bottom: .75rem; }
.network-heading .section-label { margin-bottom: .4rem; }
.network-heading h2 { margin: 0; color: var(--ink); font: 500 25px Fraunces,serif; }
.network-hint { display:block; margin-top:.4rem; color: var(--muted); font-size: 11px; }
.entity-network { width: 100%; height: 420px; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.network-accessible-list { margin-top: .65rem; color: var(--muted); font-size: 12px; }
.network-accessible-list summary { cursor: pointer; }
.network-accessible-list ul { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: .15rem 1rem; margin: .5rem 0; padding-left: 1rem; }
.network-accessible-list a { color: var(--green); }

/* Mobile-first record and company layouts. Larger screens add columns below. */
.company-hero { display:grid; grid-template-areas:"copy" "image"; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; margin-top:22px; }
.company-copy { grid-area:copy; min-width:0; }
.company-image { grid-area:image; display:block; width:min(100%,180px); max-height:180px; object-fit:contain; object-position:left center; }
.company-copy h1 { margin-top:8px; }
.company-actions { margin:20px 0 0; }
.company-products { margin-top:36px !important; }
.company-product-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; margin:16px 0 0 !important; padding:0 !important; list-style:none; }
.company-product-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.company-product-image-link { display:grid; place-items:center; min-height:180px; padding:14px; background:#fff; }
.company-product-image { display:block; width:100%; height:190px; object-fit:contain; }
.company-product-copy { padding:14px; }
.company-product-copy .record-title { display:grid; gap:5px; }
.company-product-copy .record-title a { width:fit-content; font-size:1.05rem; }
.company-product-copy .record-value { font-size:.7rem; }
.company-product-links { display:flex; flex-wrap:wrap; gap:10px 18px; margin:14px 0 0; font-size:.9rem; }
.company-product-links a { display:inline-flex; align-items:center; min-height:42px; color:var(--green); font-weight:600; }
.kb-search > div { flex-direction:column; }
.kb-search button { width:100%; min-height:46px; }

@media (min-width:501px) {
  .note-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .results-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .company-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .kb-search > div { flex-direction:row; }
  .kb-search button { width:auto; }
  .search button { padding:0 21px; }
  .organism-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
}
@media (min-width:801px) {
  .topbar { min-height:76px; padding:0 6vw; align-items:center; flex-direction:row; gap:24px; }
  .topbar nav { justify-content:flex-end; gap:clamp(12px,2vw,29px); }
  .hero { min-height:500px; padding:80px 9vw 73px; flex-direction:row; align-items:center; justify-content:space-between; gap:50px; }
  .orbital { display:block; }
  .workspace { display:grid; grid-template-columns:205px minmax(0,1fr); gap:40px; padding:54px 6vw 80px; }
  .sidebar { margin-bottom:0; }
  .category-list { display:grid; }
  .category { width:100%; }
  .sidebar-note { margin-top:45px; }
  .results-header { align-items:flex-end; flex-wrap:nowrap; }
  .results-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .about { padding:92px 9vw 95px; }
  .about-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .entity-page { max-width:920px; padding:58px 4vw 100px; }
  .entity-page h1 { font-size:clamp(3rem,6vw,5.125rem); }
  .entity-lede { font-size:1.1875rem; }
  .entity-columns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; margin-top:50px; }
  .entity-actions { margin-top:55px; }
  .company-hero { grid-template-areas:"image copy"; grid-template-columns:minmax(120px,200px) minmax(0,1fr); gap:28px; align-items:center; }
  .company-image { width:100%; max-height:200px; }
  .company-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
  .company-product-image-link { min-height:200px; }
  .company-product-image { height:210px; }
  .kv { grid-template-columns:150px minmax(0,1fr); gap:8px 16px; }
  .kv dt { padding-top:3px; }
  .organism-grid { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
  .chat { right:18px; bottom:18px; }
  .chat-panel { bottom:54px; }
  .network-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; }
  .network-hint { display:block; margin:0; }
  .entity-network { height:min(58vh,520px); min-height:340px; }
}

.sticky-logo { width:min(100%,420px); height:auto; margin:0 0 16px; }
.company-product-grid.sticky-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); align-items:start; }
.sticky-card { min-width:0; }
.sticky-photo { width:100%; height:190px; object-fit:contain; background:#efede7; }
.sticky-card h3 { margin:0; font-size:1.1rem; line-height:1.28; }
.sticky-meta { font-size:.82rem; color:var(--muted); overflow-wrap:anywhere; }
.sticky-card details { margin-top:12px; border-top:1px solid var(--line); }
.sticky-card summary { cursor:pointer; padding:12px 0; color:var(--green); font-weight:700; }
.sticky-results { width:100%; border-collapse:collapse; font-size:.76rem; font-variant-numeric:tabular-nums; }
.sticky-results th,.sticky-results td { text-align:left; padding:5px 3px; border-bottom:1px solid var(--line); }

.kb-search { max-width: 640px; margin: 38px 0 0; }
.kb-search label { display:block; margin-bottom:8px; color:var(--muted); font:11px 'DM Mono',monospace; text-transform:uppercase; letter-spacing:.08em; }
.kb-search > div { display:flex; gap:9px; }
.kb-search input { min-width:0; flex:1; padding:14px; border:1px solid var(--line); background:#fff; font:15px 'DM Sans',sans-serif; }
.kb-search button,.purchase-footer a,.buy-button { display:inline-block; padding:14px 18px; border:0; border-radius:3px; background:var(--green); color:#fff; text-decoration:none; font:600 13px 'DM Sans',sans-serif; cursor:pointer; }
.chip-row { display:flex; flex-wrap:wrap; gap:9px; }
.chip { padding:9px 13px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--green); text-decoration:none; font-size:13px; }
.product-page { width:100%; max-width:1080px; min-height:0; margin:0 auto; padding:28px 5vw calc(120px + env(safe-area-inset-bottom)); }
.product-hero { display:grid; grid-template-areas:"copy" "image"; grid-template-columns:minmax(0,1fr); gap:14px; align-items:start; margin-top:14px; }
.product-copy { grid-area:copy; min-width:0; }
.product-image { width:100%; max-height:34vh; max-height:min(34svh,260px); aspect-ratio:1/1; object-fit:contain; background:#fff; border:1px solid var(--line); }
.product-image { grid-area:image; }
.product-copy h1 { margin:10px 0; font:500 clamp(32px,9vw,48px) Fraunces,serif; line-height:1; letter-spacing:-.055em; }
.product-subtitle { color:var(--muted); font:12px 'DM Mono',monospace; }
.purchase-footer { position:fixed; z-index:3; inset:auto 0 0; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 5vw calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); box-shadow:0 -5px 20px #17211d12; font-size:12px; }
.purchase-footer span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.purchase-footer .purchase-unavailable { flex:none; color:var(--muted); font-size:11px; }
.purchase-footer a { min-height:44px; display:inline-flex; align-items:center; white-space:nowrap; }
.entity-image { margin:28px 0; }
.entity-image img { width:min(100%,520px); max-height:420px; object-fit:contain; }
.product-description-more { margin:20px 0 30px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); }
.product-description-more summary { display:flex; align-items:center; min-height:48px; color:var(--green); font-weight:600; cursor:pointer; }
.product-description-more p { max-width:720px; line-height:1.65; }
.company-search { max-width:640px; margin:20px 0 0; }
.company-search label { display:block; margin-bottom:8px; color:var(--muted); font:11px 'DM Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }
.company-search > div { display:flex; flex-direction:column; gap:9px; }
.company-search input { width:100%; min-width:0; min-height:46px; padding:12px; border:1px solid var(--line); background:#fff; font:15px 'DM Sans',sans-serif; }
.company-search button { min-height:46px; padding:12px 18px; border:0; border-radius:3px; background:var(--green); color:#fff; font:600 13px 'DM Sans',sans-serif; cursor:pointer; }
.company-result-count { margin:16px 0 6px; }
.company-empty { padding:22px 0; color:var(--muted); }
.company-empty a { color:var(--green); }
.company-pagination { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 0; }
.company-pagination a,.company-page-current { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:4px; color:var(--green); text-decoration:none; }
.company-page-current { background:var(--green); border-color:var(--green); color:#fff; }
.company-page { padding-top:22px; }
.company-hero { margin-top:14px; gap:10px; }
.company-copy .entity-lede { margin:12px 0 0; font-size:1rem; }
.company-actions { margin:14px 0 0; }
.company-actions .buy-button { display:inline-flex; min-height:46px; align-items:center; justify-content:center; }
.company-catalog-jump { display:inline-flex; min-height:44px; align-items:center; margin-top:4px; color:var(--green); font-size:.9rem; font-weight:700; text-decoration:underline; text-underline-offset:4px; }
.company-products { scroll-margin-top:110px; }
.company-products { margin-top:26px !important; }
.company-products > h2 { font-size:clamp(23px,7vw,30px); }
.company-search { padding:10px 0; background:var(--paper); }
.company-product-grid { gap:10px; }
.company-product-card { display:flex; flex-direction:column; border-radius:10px; }
.company-product-image-link { min-height:140px; padding:9px; }
.company-product-image { height:140px; }
.company-product-copy { display:flex; flex:1; flex-direction:column; padding:11px; }
.company-product-copy .record-title { gap:4px; }
.company-product-copy .record-title a { font-size:.95rem; line-height:1.25; }
.company-product-copy .record-meta { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:.78rem; }
.company-product-links { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:7px; margin:auto -2px 0; padding-top:10px; }
.company-product-links a { min-height:44px; justify-content:center; padding:8px 9px; border:1px solid var(--line); border-radius:6px; font-size:.82rem; text-decoration:none; }
.company-product-links .company-buy-link { color:#fff; background:var(--green); border-color:var(--green); }
.company-product-links .company-record-link { color:var(--green); background:#fff; }
.product-page { padding-top:20px; }
.product-hero { gap:12px; margin-top:10px; }
.product-copy h1 { font-size:clamp(30px,8vw,42px); line-height:1.04; }
.product-copy .entity-lede { margin:12px 0; font-size:.98rem; }
.product-image { max-height:min(32svh,230px); border-radius:10px; }
.purchase-footer { min-height:68px; gap:8px; padding:9px 4vw calc(9px + env(safe-area-inset-bottom)); }
.purchase-footer > span:first-child { display:-webkit-box; flex:1; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; font-size:.76rem; line-height:1.25; }
.purchase-footer a { flex:none; min-height:48px; justify-content:center; padding:0 20px; border-radius:6px; font-size:.9rem; }
.product-description-more summary,.company-search button,.company-pagination a,.company-page-current { min-height:48px; }
.company-product-card a:focus-visible,.product-page a:focus-visible,.company-search :focus-visible { outline:3px solid #e98953; outline-offset:3px; }
.join-trigger { min-height:42px; padding:9px 18px; border:0; border-radius:999px; background:var(--green); color:#fff; font:700 13px 'DM Sans',sans-serif; cursor:pointer; }
.join-dialog { width:min(calc(100% - 32px),440px); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:auto; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:#fff; box-shadow:0 24px 70px rgba(23,33,29,.24); }
.join-dialog::backdrop { background:rgba(23,33,29,.62); backdrop-filter:blur(3px); }
.join-dialog-content { padding:24px; }
.join-dialog-top { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.join-dialog-top .eyebrow { margin:0; }
.join-close { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; color:var(--muted); background:transparent; font-size:27px; cursor:pointer; }
.join-dialog h2 { margin:16px 0 0; font:600 30px Fraunces,serif; letter-spacing:-.04em; }
.join-dialog-content > p:not(.eyebrow) { color:#68786e; font-size:15px; line-height:1.6; }
.join-signin a { color:var(--green); font-weight:700; }
.join-dismiss { width:100%; min-height:48px; margin-top:10px; border:0; border-radius:7px; color:#fff; background:var(--green); font:700 14px 'DM Sans',sans-serif; cursor:pointer; }
.join-dialog :focus-visible,.join-trigger:focus-visible { outline:3px solid var(--orange); outline-offset:3px; }
@media(min-width:380px) and (max-width:700px) {
  .company-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:701px) { .product-page { min-height:650px; padding:48px 6vw 120px; }.product-hero { grid-template-areas:"image copy"; grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr); gap:clamp(28px,6vw,76px); align-items:center; margin-top:24px; }.product-image { max-height:540px; }.product-copy h1 { margin:18px 0; font-size:clamp(42px,6vw,72px); }.purchase-footer { gap:14px; padding:12px max(6vw,calc((100vw - 1080px)/2)); font-size:13px; }.company-search > div { flex-direction:row; }.company-search button { width:auto; } }
.company-hero { display:block; margin-top:0; }
.company-brand { display:flex; align-items:center; gap:12px; min-height:48px; }
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.company-logo { display:block; width:auto; height:auto; max-width:min(34vw,130px); max-height:44px; object-fit:contain; flex:none; }
.company-logo-dark { padding:5px 8px; border-radius:6px; background:#193e33; }
.company-copy h1 { margin:0; font-size:clamp(1.65rem,7vw,2.1rem); line-height:1.05; letter-spacing:-.035em; }
.company-copy .entity-lede { margin:8px 0 0; font-size:.96rem; line-height:1.42; }
.company-products { margin-top:18px !important; }
.company-page { padding-top:12px; }
.entity-section.wide.company-products { margin-top:14px !important; padding-top:10px; }
.company-products-heading { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.company-products > .company-products-heading h2 { display:flex; align-items:baseline; gap:8px; margin:0; font-size:clamp(22px,6vw,28px); }
.company-product-count { color:var(--muted); font:500 .72em 'DM Mono',monospace; }
.company-shop-link { color:var(--green); font-size:.76rem; font-weight:700; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.company-search { max-width:none; margin:8px 0 0; padding:0; background:transparent; }
.company-search > div { flex-direction:row; gap:7px; }
.company-search input { min-height:42px; padding:9px 11px; font-size:14px; }
.company-search button { flex:none; min-height:42px; padding:9px 13px; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.company-result-count { margin:8px 0 0; color:var(--muted); font-size:.8rem; }
.company-empty { padding:12px 0; }
.company-product-grid { gap:8px; margin:10px 0 0 !important; }
.company-product-image-link { min-height:96px; padding:6px; }
.company-product-image { height:96px; }
.company-product-copy { padding:9px; }
.company-product-copy .record-title { gap:2px; margin:0; }
.company-product-copy .record-title a { font-size:.9rem; }
.company-product-type { margin:4px 0 0; color:var(--muted); font-size:.72rem; }
.company-product-copy .record-meta { margin:5px 0 0; -webkit-line-clamp:2; font-size:.74rem; line-height:1.35; }
.company-product-links { grid-template-columns:1fr; gap:0; margin:6px 0 0; padding-top:0; }
.company-product-links a { min-height:34px; padding:5px 8px; font-size:.75rem; }
.company-product-links .company-buy-link { justify-content:center; }
.product-page { padding:14px 4vw calc(92px + env(safe-area-inset-bottom)); }
.product-hero { gap:7px; margin-top:0; }
.product-brand { display:inline-flex; min-height:28px; align-items:center; color:var(--green); font:700 11px 'DM Mono',monospace; letter-spacing:.06em; text-decoration:none; text-transform:uppercase; }
.product-copy h1 { margin:2px 0 7px; font-size:clamp(29px,8vw,40px); line-height:1.02; }
.product-copy .entity-lede { margin:0 0 6px; font-size:.94rem; line-height:1.4; }
.product-subtitle { margin:0; font-size:.72rem; }
.product-image { max-height:min(27svh,190px); border-radius:8px; }
.product-description-more { margin:10px 0 16px; }
.product-description-more summary,.company-pagination a,.company-page-current { min-height:44px; }
.product-claims { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; color:var(--green); font:600 .72rem 'DM Mono',monospace; }
.product-facts { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 10px; margin:10px 0; font-size:.83rem; }
.product-facts dt { color:var(--muted); }
.product-facts dd { margin:0; }
.product-compounds { margin:14px 0; }
.product-compounds h2 { margin:0 0 7px; font-size:1.15rem; }
.product-compounds .record-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 10px; margin:0; padding:0; list-style:none; }
.product-compounds .record-title { margin:0; }
.product-compounds .record-title a { font-size:.84rem; }
.product-compounds .record-value { font-size:.74rem; }
.product-related-compounds { margin:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.product-related-compounds summary { display:flex; align-items:center; min-height:44px; color:var(--green); font-size:.88rem; font-weight:600; cursor:pointer; }
.product-related-compounds .record-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 10px; margin:0 0 12px; padding:0; list-style:none; }
.product-related-compounds .record-title { margin:0; }
.product-related-compounds .record-title a { font-size:.82rem; }
@media(max-width:800px) {
  .topbar { padding:8px 4vw; gap:6px; }
  .topbar nav { gap:4px 10px; }
  .topbar nav a { font-size:12px; }
  .join-trigger { min-height:34px; padding:6px 12px; font-size:12px; }
}
@media(min-width:701px) {
  .product-page { min-height:650px; padding:48px 6vw 120px; }
  .product-hero { gap:clamp(18px,4vw,54px); margin-top:12px; }
  .product-copy h1 { font-size:clamp(42px,5vw,64px); }
  .product-image { max-height:420px; }
  .company-product-image-link { min-height:140px; }
  .company-product-image { height:140px; }
}
