/* FredBioSystems: calm, clear styling layer.
   Loaded after each page's own styles. Quieter colour, one accent, more space. */
:root{
  --gold:#c8b78e;           /* soft champagne instead of mustard gold */
  --paper:#f8f8f5;
  --paper-warm:#efeee8;
  --sage:#5f6b7d;
  --line:rgba(14,26,46,0.12);
}
body{ background:var(--paper); }

/* ---- Buttons: navy on light, white on dark. No shouting. ---- */
.aa-btn-primary{ background:var(--forest-deep); color:#fff; border:1px solid var(--forest-deep); }
.aa-btn-primary:hover{ background:transparent; color:var(--forest-deep); }
.hero .aa-btn-primary, .fb-band .aa-btn-primary, .fb-card.dark .aa-btn-primary,
.hm-dark .aa-btn-primary{ background:#fff; color:var(--forest-deep); border-color:#fff; }
.hero .aa-btn-primary:hover, .fb-band .aa-btn-primary:hover, .fb-card.dark .aa-btn-primary:hover,
.hm-dark .aa-btn-primary:hover{ background:transparent; color:#fff; }
.aa-btn-secondary:hover, .hero .aa-btn-secondary:hover{ border-color:#fff; color:#fff; }
.fb-link{ border-bottom-color:rgba(14,26,46,.35); }
.fb-link:hover{ color:var(--forest); border-bottom-color:var(--forest); }

/* ---- Interior page heroes: flat navy, no gold glow ---- */
.hero{ background:var(--forest-deep); }
.eyebrow{ letter-spacing:.14em; }

/* ---- Header ---- */
.site-header-links a.nav-active{ background:rgba(255,255,255,.12); color:#fff; }
.site-header-links a.is-cta, .site-header-links label.is-cta{ background:#fff; color:var(--forest-deep); }
.site-header-links a.is-cta:hover, .site-header-links label.is-cta:hover{ background:transparent; color:#fff; box-shadow:inset 0 0 0 1px #fff; }
.fb-evnav-dot{ display:none !important; }

/* ---- Footer ---- */
.site-footer{ border-top:1px solid rgba(255,255,255,.12); }
.fb-footer-cols{ grid-template-columns:1.5fr 1fr 1fr 1fr 1.1fr; gap:36px; }
.fb-footer-cols h4{ color:rgba(246,247,249,.55); }
.fb-footer-news .subscribe-form button{ background:#fff; border-color:#fff; color:var(--forest-deep); }
.fb-footer-news .subscribe-form button:hover{ background:#e9ecf2; border-color:#e9ecf2; }
.fb-footer-news .consent-checkbox a{ color:#fff; text-decoration:underline; }
@media (max-width:960px){ .fb-footer-cols{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .fb-footer-cols{ grid-template-columns:1fr; } }

/* ---- Cards and steps: hairlines instead of gold rules ---- */
.fb-steps li{ border-top:1px solid var(--line); }
.fb-card{ border-radius:10px; }

/* =========================  HOMEPAGE  ========================= */
.hm{ font-family:'Helvetica Neue',Arial,sans-serif; }
.hm-wrap{ max-width:1080px; margin:0 auto; padding:0 24px; }
.hm-hero{ background:var(--paper); padding:84px 0 56px; }
.hm-hero .eyebrow{ display:block; margin-bottom:18px; color:var(--sage); }
.hm-hero h1{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:clamp(36px,5.6vw,62px); line-height:1.08; letter-spacing:-.01em; color:var(--forest-deep); margin:0 0 22px; max-width:14.5em; }
.hm-hero p.sub{ font-size:clamp(17px,2vw,20px); line-height:1.6; color:#3b4658; margin:0 0 32px; max-width:34em; }
.hm-btns{ display:flex; flex-wrap:wrap; gap:12px; }
.hm-btns .aa-btn{ padding:15px 28px; font-size:14px; }
.hm-btns .hm-ghost{ background:transparent; color:var(--forest-deep); border:1px solid rgba(14,26,46,.35); }
.hm-btns .hm-ghost:hover{ background:var(--forest-deep); color:#fff; border-color:var(--forest-deep); }

.hm-proof{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.hm-proof-in{ display:grid; grid-template-columns:repeat(4,1fr); }
.hm-stat{ padding:28px 20px; border-left:1px solid var(--line); }
.hm-stat:first-child{ border-left:0; padding-left:0; }
.hm-stat strong{ display:block; font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:clamp(28px,3.6vw,40px); color:var(--forest-deep); line-height:1; margin-bottom:8px; }
.hm-stat span{ font-size:13.5px; color:#55627a; line-height:1.4; }
@media (max-width:700px){ .hm-proof-in{ grid-template-columns:repeat(2,1fr); } .hm-stat:nth-child(3){ border-left:0; padding-left:0; } .hm-stat{ border-top:1px solid var(--line); } .hm-stat:nth-child(-n+2){ border-top:0; } }

.hm-sec{ padding:76px 0 8px; }
.hm-sec h2{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:clamp(28px,3.8vw,40px); line-height:1.15; color:var(--forest-deep); margin:0 0 12px; }
.hm-lede{ font-size:17px; line-height:1.6; color:#3b4658; margin:0 0 34px; max-width:34em; }
.hm-paths{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .hm-paths{ grid-template-columns:1fr; } }
.hm-path{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:30px 28px 26px; display:flex; flex-direction:column; transition:border-color .2s ease, box-shadow .2s ease; }
.hm-path:hover{ border-color:rgba(14,26,46,.4); box-shadow:0 14px 30px -20px rgba(14,26,46,.35); }
.hm-path .n{ font-size:12px; letter-spacing:.14em; font-weight:700; color:var(--sage); margin-bottom:14px; }
.hm-path h3{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:25px; line-height:1.2; color:var(--forest-deep); margin:0 0 10px; }
.hm-path p{ font-size:15.5px; line-height:1.6; color:#3b4658; margin:0 0 22px; }
.hm-path .go{ margin-top:auto; font-size:14px; font-weight:700; color:var(--forest-deep); text-decoration:none; }
.hm-path .go::after{ content:" \2192"; }
.hm-path .go:hover{ text-decoration:underline; text-underline-offset:4px; }
.hm-sublinks{ margin-top:auto; display:flex; flex-wrap:wrap; gap:6px 18px; }
.hm-sublinks a{ font-size:14px; font-weight:700; color:var(--forest-deep); text-decoration:none; border-bottom:1px solid rgba(14,26,46,.3); padding-bottom:1px; }
.hm-sublinks a:hover{ border-bottom-color:var(--forest-deep); }

.hm-photos{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; }
@media (max-width:700px){ .hm-photos{ grid-template-columns:repeat(2,1fr); } }
.hm-photos a{ display:block; border-radius:10px; overflow:hidden; aspect-ratio:4/3; background:#e3e6ea; }
.hm-photos img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.hm-photos a:hover img{ transform:scale(1.04); }
.hm-textlink{ font-size:15px; font-weight:700; color:var(--forest-deep); text-decoration:none; border-bottom:1px solid rgba(14,26,46,.35); padding-bottom:2px; }
.hm-textlink:hover{ border-bottom-color:var(--forest-deep); }

.hm-about{ display:grid; grid-template-columns:260px 1fr; gap:48px; align-items:center; }
@media (max-width:760px){ .hm-about{ grid-template-columns:1fr; gap:24px; } .hm-about img{ max-width:220px; } }
.hm-about img{ width:100%; height:auto; border-radius:12px; display:block; }
.hm-about p{ font-size:18px; line-height:1.65; color:#2c3748; margin:0 0 18px; max-width:34em; }

.hm-also{ margin-top:76px; border-top:1px solid var(--line); padding:26px 24px; }
@media (max-width:760px){ .hm-also{ margin-top:48px; } }
.hm-also-in{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; font-size:16px; color:#3b4658; }
.hm-also-in strong{ color:var(--forest-deep); font-weight:700; }

.hm-final{ background:var(--forest-deep); color:#fff; text-align:center; padding:84px 24px; }
.hm-final h2{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:clamp(28px,4vw,42px); line-height:1.15; margin:0 0 14px; color:#fff; }
.hm-final p{ font-size:17px; line-height:1.6; color:rgba(255,255,255,.78); margin:0 auto 30px; max-width:30em; }
.hm-final .hm-btns{ justify-content:center; }
.hm-final .hm-ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.45); }
.hm-final .hm-ghost:hover{ background:#fff; color:var(--forest-deep); border-color:#fff; }

/* ---- Floating WhatsApp button and live-session spacing ---- */
.wa-float-btn{ background:var(--forest-deep) !important; color:#fff !important; border:1px solid rgba(255,255,255,.25) !important; box-shadow:0 8px 20px -8px rgba(9,26,58,.5) !important; }
.fb-evfeat-wrap{ padding-bottom:40px !important; }

/* ---- Lab Software hero: two co-equal tools ---- */
.ls-tagline{ font-family:'Iowan Old Style',Georgia,serif; font-size:clamp(20px,2.6vw,28px) !important; color:var(--gold) !important; letter-spacing:.01em; }
.ls-cards{ display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:820px; margin:34px auto 0; text-align:left; }
@media (max-width:700px){ .ls-cards{ grid-template-columns:1fr; } }
.ls-card{ border:1px solid rgba(255,255,255,.28); border-radius:12px; padding:24px 24px 22px; background:rgba(255,255,255,.05); display:flex; flex-direction:column; align-items:flex-start; }
.ls-tag{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:rgba(255,255,255,.65); margin-bottom:10px; }
.ls-card h2{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:26px; line-height:1.2; margin:0 0 10px; color:#fff; }
.ls-card p{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:15px; line-height:1.6; color:rgba(255,255,255,.82); margin:0 0 20px; }
.ls-card .aa-btn{ margin-top:auto; }

/* ---- Big screens: scale the whole layout up so it fills the screen ---- */
@media (min-width:1700px){ body{ zoom:1.2; } }
@media (min-width:2100px){ body{ zoom:1.45; } }
@media (min-width:2500px){ body{ zoom:1.75; } }
.ls-tagline{ max-width:none !important; font-size:clamp(18px,2.1vw,26px) !important; }

/* ---- Header: Shop (outline) and Log in (solid), wider nav ---- */
.site-header-nav-inner{ max-width:1240px; }
.site-header-links a.is-shop{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.55); color:#fff; }
.site-header-links a.is-shop:hover{ background:#fff; color:var(--forest-deep); }
.site-header-links a.is-shop.nav-active{ background:rgba(255,255,255,.14); }
@media (min-width:1180px){ .site-header-links{ gap:4px; } .site-header-links a{ padding:9px 13px; } }

/* ---- Row lists (Shop, Events, Login) ---- */
.rw-list{ max-width:960px; margin:0 auto; padding:24px 24px 8px; }
.rw{ display:grid; grid-template-columns:1fr 1.5fr; gap:40px; padding:40px 0; border-top:1px solid var(--line); }
.rw:first-of-type{ border-top:0; }
@media (max-width:760px){ .rw{ grid-template-columns:1fr; gap:18px; padding:30px 0; } }
.rw-tag{ display:block; font-family:'Helvetica Neue',Arial,sans-serif; font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--sage); margin-bottom:12px; }
.rw-lead h3{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:clamp(24px,3vw,30px); line-height:1.2; color:var(--forest-deep); margin:0 0 10px; }
.rw-lead p{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:14.5px; line-height:1.6; color:#55627a; margin:0; max-width:24em; }
.rw-items{ border-top:2px solid var(--forest-deep); }
.rw-item{ display:flex; justify-content:space-between; align-items:center; gap:24px; padding:20px 0; border-bottom:1px solid var(--line); position:relative; }
.rw-item:last-child{ border-bottom:0; }
.rw-item strong{ display:block; font-family:'Helvetica Neue',Arial,sans-serif; font-size:16.5px; color:var(--forest-deep); margin-bottom:6px; }
.rw-item p{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:14px; line-height:1.6; color:#55627a; margin:0 0 10px; }
.rw-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.rw-chips span{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:12px; font-weight:700; color:var(--forest-deep); border:1px solid var(--line); border-radius:20px; padding:4px 11px; background:#fff; }
.rw-btn{ flex:none; white-space:nowrap; padding:12px 20px; font-size:12.5px; }
@media (max-width:560px){ .rw-item{ flex-direction:column; align-items:flex-start; gap:14px; } .rw-lead p{ display:none; } .rw-lead{ margin-bottom:-6px; } }
.rw-live{ flex-wrap:wrap; }
.rw-live .fb-ev-ribbon{ flex-basis:100%; margin-bottom:0; }
.rw-live{ box-shadow:none !important; }
.rw-note{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:15px; color:#3b4658; border-top:1px solid var(--line); padding:26px 0 0; margin:0; }
.rw-soon{ display:inline-block; margin-left:8px; font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--sage); border:1px solid var(--line); border-radius:20px; padding:3px 10px; background:#fff; }

/* ---- Login page (coming soon) ---- */
.lg-top{ padding:72px 0 28px; }
.lg-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
@media (max-width:820px){ .lg-grid{ grid-template-columns:1fr; gap:36px; } .lg-top{ padding-top:48px; } }
.lg-kicker{ display:flex; align-items:center; gap:12px; font-family:'Helvetica Neue',Arial,sans-serif; font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--sage); margin-bottom:18px; }
.lg-kicker::before{ content:""; width:34px; height:2px; background:var(--forest-deep); }
.lg-h1{ font-family:'Iowan Old Style',Georgia,serif; font-weight:700; font-size:clamp(38px,5.4vw,60px); line-height:1.05; letter-spacing:-.015em; color:var(--forest-deep); margin:0 0 18px; }
.lg-h1 em{ font-style:normal; font-weight:400; color:#4a5a74; }
.lg-sub{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:17px; line-height:1.6; color:#3b4658; margin:0 0 24px; max-width:30em; }
.lg-badge{ display:inline-block; font-family:'Helvetica Neue',Arial,sans-serif; font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:#fff; background:var(--forest-deep); padding:9px 16px; border-radius:20px; }
.lg-card{ position:relative; background:linear-gradient(160deg,#16305f 0%,#0b1a38 70%); color:#fff; border-radius:16px; padding:34px 30px 28px; box-shadow:0 24px 50px -24px rgba(9,26,58,.55); }
.lg-card-badge{ position:absolute; top:16px; right:16px; font-family:'Helvetica Neue',Arial,sans-serif; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); padding:5px 11px; border-radius:20px; }
.lg-card h2{ font-family:'Helvetica Neue',Arial,sans-serif; font-weight:800; font-size:26px; margin:0 0 8px; color:#fff; }
.lg-card p{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:15px; line-height:1.55; color:rgba(255,255,255,.82); margin:0 0 20px; }
.lg-card input{ width:100%; box-sizing:border-box; padding:15px 16px; border-radius:8px; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.12); color:#fff; font-size:15px; margin-bottom:12px; }
.lg-card input::placeholder{ color:rgba(255,255,255,.55); }
.lg-card button{ width:100%; padding:15px; border-radius:8px; border:0; background:rgba(255,255,255,.3); color:rgba(255,255,255,.8); font-size:15px; font-weight:700; cursor:not-allowed; }
.lg-card small{ display:block; margin-top:16px; font-family:'Helvetica Neue',Arial,sans-serif; font-size:12.5px; line-height:1.5; color:rgba(255,255,255,.7); }
.lg-filters{ display:flex; flex-wrap:wrap; gap:8px; padding:6px 0 26px; }
.lg-filters button{ font-family:'Helvetica Neue',Arial,sans-serif; font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; padding:9px 14px; border:1px solid var(--line); background:#fff; color:var(--forest-deep); cursor:pointer; border-radius:3px; }
.lg-filters button.on{ background:var(--forest-deep); color:#fff; border-color:var(--forest-deep); }
.rw[data-cat] .rw-item > div{ display:none; }
.rw[data-cat] .rw-item{ justify-content:flex-end; border-bottom:0; }
.lg-off{ opacity:.55; pointer-events:none; cursor:not-allowed; background:var(--forest-deep); }
.rw-items .rw-live{ box-shadow:none !important; }
.rw-live .fb-ev-ribbon{ flex:none; width:max-content; margin:0 100% 14px 0; }

/* =====================================================================
   LIGHT HEADER (site-wide): logo left, tabs spaced out in the middle,
   Shop and Log in on the right. Events now lives inside Shop.
   ===================================================================== */
.site-header{ background:#fff; box-shadow:0 1px 8px rgba(14,26,46,.10); }
.site-header .site-header-nav{ background:#fff; border-bottom:0; padding:12px 32px; }
.site-header .site-header-nav-inner{ max-width:1320px; gap:32px; flex-wrap:nowrap; justify-content:flex-start; }
.site-header .fb-logo-img{ height:46px; width:auto; }
.site-header .site-header-links{ flex:1; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:nowrap; padding:0; }
.site-header .hl-main{ display:flex; align-items:center; gap:clamp(22px,3vw,44px); margin:0 auto; }
.site-header .hl-actions{ display:flex; align-items:center; gap:12px; }

.site-header .site-header-links a{
  font-family:'Helvetica Neue',Arial,sans-serif; font-size:15.5px; font-weight:500; letter-spacing:0;
  color:var(--ink); background:none; box-shadow:none; border-radius:0; padding:8px 0;
  white-space:nowrap; position:relative; text-align:left;
}
.site-header .hl-main a::after{
  content:""; position:absolute; left:0; right:0; bottom:2px; height:2px; background:var(--ink);
  transform:scaleX(0); transform-origin:left; transition:transform .2s ease;
}
.site-header .hl-main a:hover, .site-header .hl-main a.nav-active{ background:none; color:var(--ink); }
.site-header .hl-main a:hover::after, .site-header .hl-main a.nav-active::after{ transform:scaleX(1); }
.site-header .site-header-links a:focus-visible, .site-header .fb-menu-btn:focus-visible{ outline:2px solid var(--forest); outline-offset:3px; }

.site-header .hl-actions a{
  font-size:14px; font-weight:600; padding:11px 24px; border:2px solid var(--ink); border-radius:3px; text-align:center;
  transition:background .2s ease, color .2s ease;
}
.site-header .hl-actions a.is-shop{ background:transparent; color:var(--ink); }
.site-header .hl-actions a.is-shop:hover{ background:var(--ink); color:#fff; box-shadow:none; }
.site-header .hl-actions a.is-shop.nav-active{ background:#e8ecf3; color:var(--ink); box-shadow:none; }
.site-header .hl-actions a.is-cta{ background:var(--ink); color:#fff; box-shadow:none; }
.site-header .hl-actions a.is-cta:hover{ background:var(--forest); border-color:var(--forest); color:#fff; box-shadow:none; }

.site-header .fb-menu-btn{ border:2px solid var(--ink); color:var(--ink); border-radius:3px; padding:8px 16px; font-weight:600; margin-left:auto; }

@media (max-width:1180px){
  .site-header .site-header-nav{ padding:12px 24px; }
  .site-header .site-header-nav-inner, .site-header .site-header-links{ gap:20px; }
  .site-header .site-header-links a{ font-size:14.5px; }
  .site-header .hl-main{ gap:22px; }
  .site-header .hl-actions a{ padding:10px 18px; }
}
@media (max-width:1080px){
  .site-header .site-header-nav-inner{ flex-wrap:wrap; justify-content:space-between; }
  .site-header .fb-menu-btn{ display:inline-block; }
  .site-header .site-header-links{ display:none; flex:none; width:100%; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; padding:6px 0 14px; }
  .site-header .site-header-links.open{ display:flex; }
  .site-header .hl-main{ flex-direction:column; align-items:stretch; gap:0; margin:0; }
  .site-header .hl-main a, .site-header.header-compact .hl-main a{ padding:15px 2px; font-size:16px; border-bottom:1px solid var(--line); }
  .site-header .hl-main a::after{ display:none; }
  .site-header .hl-main a.nav-active{ font-weight:700; }
  .site-header .hl-actions{ margin-top:18px; }
  .site-header .hl-actions a, .site-header.header-compact .hl-actions a{ flex:1; padding:13px 18px; font-size:15px; }
}
@media (max-width:600px){
  .site-header .site-header-nav{ padding:10px 16px; }
  .site-header .fb-logo-img{ height:36px; }
}

/* =====================================================================
   SHOP HOMEPAGE: light catalogue, no hero
   ===================================================================== */
#shop.sh{ background:var(--paper); padding:56px 0 88px; }
.sh-wrap{ max-width:1120px; margin:0 auto; padding:0 24px; font-family:'Helvetica Neue',Arial,sans-serif; color:var(--ink); }
.sh-sec{ padding:0 0 56px; }
.sh-sec + .sh-sec{ border-top:1px solid var(--line); padding-top:48px; }
.sh-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 28px; }
.sh-head h2{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:clamp(28px,3.4vw,38px); line-height:1.15; letter-spacing:-.01em; color:var(--forest-deep); margin:0; }
.sh-all{ font-size:14.5px; font-weight:600; color:var(--forest-deep); text-decoration:none; border-bottom:1.5px solid currentColor; padding-bottom:2px; white-space:nowrap; }
.sh-all:hover{ color:var(--forest); }
.sh-meta{ font-size:14px; line-height:1.5; color:#55627a; margin:0; }

/* Books shelf */
.sh-shelf{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,1fr); gap:24px; }
.sh-book{ display:flex; flex-direction:column; gap:6px; text-decoration:none; color:inherit; }
.sh-cover{ position:relative; display:block; aspect-ratio:3/4; background:#fff; border:1px solid var(--line); border-radius:4px; margin-bottom:8px; overflow:hidden; transition:transform .25s ease, box-shadow .25s ease; }
.sh-cover img{ position:absolute; inset:10px; width:calc(100% - 20px); height:calc(100% - 20px); object-fit:contain; display:block; }
.sh-book:hover .sh-cover, .sh-book:focus-visible .sh-cover{ transform:translateY(-4px); box-shadow:0 14px 26px -16px rgba(14,26,46,.45); }
.sh-book:focus-visible{ outline:2px solid var(--forest); outline-offset:4px; }
.sh-name{ font-size:15px; font-weight:600; line-height:1.35; color:var(--forest-deep); }
.sh-book .sh-meta{ font-size:13px; }
@media (max-width:860px){
  .sh-shelf{ grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(150px,38%); overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:14px; margin-right:-24px; padding-right:24px; }
  .sh-shelf > li{ scroll-snap-align:start; }
}

/* Publication and documents */
.sh-two{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.sh-tile{ background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden; display:flex; flex-direction:column; }
.sh-tile-img{ display:block; aspect-ratio:8/3; background:#fff; overflow:hidden; }
.sh-tile-img img, .sh-tile-img .sh-art{ width:100%; height:100%; object-fit:cover; display:block; }
.sh-tile-foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px; border-top:1px solid var(--line); }
.sh-tile-foot h3{ font-family:'Iowan Old Style',Georgia,serif; font-weight:400; font-size:22px; line-height:1.2; color:var(--forest-deep); margin:0 0 4px; }
@media (max-width:760px){ .sh-two{ grid-template-columns:1fr; } }

/* Events */
.sh-rows{ border-top:2px solid var(--forest-deep); }
.sh-row{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; padding:22px 0; border-bottom:1px solid var(--line); }
.sh-row h3{ font-size:17px; font-weight:600; line-height:1.35; color:var(--forest-deep); margin:0 0 4px; }
.sh-row .aa-btn, .sh-tile-foot .aa-btn{ flex:none; white-space:nowrap; padding:12px 22px; font-size:13px; }
#shop .sh-row[data-event-card]{ box-shadow:none !important; }
#shop .sh-row .fb-ev-ribbon{ flex-basis:100%; background:#e4eee1; color:#1f5a2b; margin:0; }
#shop .sh-row .fb-ev-ribbon i{ background:#2e7d3c; }
@media (max-width:560px){
  .sh-row{ flex-direction:column; align-items:flex-start; gap:14px; }
  .sh-tile-foot{ padding:16px 18px; }
}

.sh-foot{ margin:8px 0 0; font-size:15px; color:#3b4658; }
.sh-foot a{ color:var(--forest-deep); font-weight:600; }
@media (prefers-reduced-motion:reduce){ .sh-cover, .site-header .hl-main a::after{ transition:none; } }

/* =====================================================================
   LIGHT SLIM FOOTER with compact signup
   ===================================================================== */
footer.site-footer{ background:#fff; color:var(--ink); border-top:1px solid var(--line); padding:14px 96px 14px 24px; }
.site-footer .sf-in{ max-width:1320px; margin:0 auto; display:grid; grid-template-columns:auto 1fr auto; grid-template-areas:"brand links form" "copy copy copy"; align-items:center; gap:10px 32px; font-family:'Helvetica Neue',Arial,sans-serif; font-size:13px; }
.site-footer .sf-brand{ grid-area:brand; }
.site-footer .sf-brand img{ height:26px; width:auto; display:block; }
.site-footer .sf-links{ grid-area:links; display:flex; flex-wrap:wrap; gap:6px 24px; justify-content:center; }
.site-footer .sf-links a, .site-footer .sf-links label{ color:var(--ink); text-decoration:none; cursor:pointer; }
.site-footer .sf-links a:hover, .site-footer .sf-links label:hover{ text-decoration:underline; }
.site-footer .sf-links a:focus-visible, .site-footer .sf-links label:focus-visible, .site-footer .sf-form input:focus-visible, .site-footer .sf-form button:focus-visible{ outline:2px solid var(--forest); outline-offset:2px; }
.site-footer .sf-form{ grid-area:form; display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; max-width:none; margin:0; justify-content:flex-end; }
.site-footer .sf-form input[type="email"]{ flex:0 1 230px; min-width:0; font-size:13px; padding:8px 12px; border:1px solid rgba(14,26,46,.25); border-radius:3px; background:#fff; color:var(--ink); }
.site-footer .sf-form button{ font-size:12.5px; font-weight:600; letter-spacing:0; text-transform:none; padding:9px 18px; border-radius:3px; background:var(--ink); color:#fff; border:1px solid var(--ink); cursor:pointer; }
.site-footer .sf-form button:hover{ background:var(--forest); border-color:var(--forest); }
.site-footer .sf-consent{ flex-basis:100%; gap:8px; align-items:center; justify-content:flex-end; margin:0; }
.site-footer .sf-consent input{ width:14px; height:14px; margin:0; }
.site-footer .sf-consent span{ font-size:11.5px; line-height:1.4; color:#55627a; font-weight:400; }
.site-footer .sf-consent a{ color:var(--ink); }
.site-footer .sf-form .consent-error{ flex-basis:100%; text-align:right; margin:0; font-size:11.5px; }
.site-footer .sf-copy{ grid-area:copy; margin:0; color:#55627a; font-size:12px; border-top:1px solid var(--line); padding-top:8px; }
.site-footer .sf-copy a{ color:var(--ink); margin-left:12px; }
.site-footer .sf-err{ max-width:1320px; margin:6px auto 0; font-size:12.5px; color:#a33; font-family:'Helvetica Neue',Arial,sans-serif; }
@media (max-width:980px){
  .site-footer .sf-in{ grid-template-columns:1fr; grid-template-areas:"brand" "links" "form" "copy"; justify-items:start; }
  .site-footer .sf-links{ justify-content:flex-start; }
  .site-footer .sf-form{ justify-content:flex-start; width:100%; }
  .site-footer .sf-form input[type="email"]{ flex:1 1 200px; }
  .site-footer .sf-consent, .site-footer .sf-form .consent-error{ justify-content:flex-start; text-align:left; }
}
@media (max-width:760px){ footer.site-footer{ padding-right:24px; padding-bottom:76px; } }

/* =====================================================================
   LIGHT PAGES: Lab Software, Biotechnology, Websites & Software, Contact
   (same light, left-aligned style as the Click2Skill reference)
   ===================================================================== */
body.pg-light{ background:#fafafa; }
body.pg-light .hero, body.pg-light #contact .page-hero{
  background:#fff; color:var(--ink); text-align:left; overflow:visible;
  padding:64px max(24px, calc((100% - 1120px)/2)) 48px; border-bottom:1px solid var(--line);
}
body.pg-light #contact .page-hero{ padding-left:max(24px, calc((100% - 512px)/2)); padding-right:max(24px, calc((100% - 512px)/2)); }
body.pg-light .hero-veins{ display:none; }
body.pg-light .hero-inner{ max-width:none; margin:0; text-align:left; }
body.pg-light .hero .eyebrow, body.pg-light #contact .page-hero .eyebrow{ display:block; color:#2e7d3c; font-size:12px; font-weight:700; letter-spacing:.12em; margin:0 0 14px; }
body.pg-light .hero h1, body.pg-light #contact .page-hero h1{
  font-family:'Helvetica Neue',Arial,sans-serif; font-weight:700; color:var(--forest-deep);
  font-size:clamp(34px,5vw,54px); line-height:1.08; letter-spacing:-.025em; margin:0 0 16px; text-align:left;
}
body.pg-light .hero h1 em{ font-style:normal; color:inherit; }
body.pg-light .hero p.sub, body.pg-light #contact .page-hero p{ color:#3b4658; margin:0; max-width:40em; font-size:18px; line-height:1.6; text-align:left; }
body.pg-light #contact .page-hero h1{ font-size:clamp(30px,4.4vw,44px); }
body.pg-light .hero .ls-tagline{ color:var(--forest) !important; font-family:'Helvetica Neue',Arial,sans-serif; }
body.pg-light .ls-cards{ margin:32px 0 0; max-width:820px; }
body.pg-light .ls-card{ background:#fafafa; border:1px solid var(--line); }
body.pg-light .ls-tag{ color:#2e7d3c; }
body.pg-light .ls-card h2{ color:var(--forest-deep); }
body.pg-light .ls-card p{ color:#3b4658; }
body.pg-light .hero .aa-btn-primary, body.pg-light .aa-cta-band .aa-btn-primary, body.pg-light .li-status-card .aa-btn-primary, body.pg-light .ldos-cta .aa-btn-primary{ background:var(--forest-deep); color:#fff; border-color:var(--forest-deep); }
body.pg-light .hero .aa-btn-primary:hover, body.pg-light .aa-cta-band .aa-btn-primary:hover, body.pg-light .li-status-card .aa-btn-primary:hover, body.pg-light .ldos-cta .aa-btn-primary:hover{ background:transparent; color:var(--forest-deep); }
body.pg-light .aa-btn-secondary, body.pg-light .hero .aa-btn-secondary{ background:transparent; color:var(--forest-deep); border:1px solid rgba(14,26,46,.35); }
body.pg-light .aa-btn-secondary:hover, body.pg-light .hero .aa-btn-secondary:hover{ background:#eef1f6; border-color:var(--forest-deep); color:var(--forest-deep); }

body.pg-light .li-status-card{ background:#fff; border:1px solid var(--line); color:var(--ink); border-radius:12px; text-align:left; margin:0; max-width:none; padding:36px 40px; }
body.pg-light .li-status-card::after{ display:none; }
body.pg-light .li-status-badge{ color:#2e7d3c; border-color:#2e7d3c; }
body.pg-light .li-status-card h2{ font-family:'Helvetica Neue',Arial,sans-serif; font-weight:700; color:var(--forest-deep); letter-spacing:-.015em; }
body.pg-light .li-status-card h3{ color:#55627a; }
body.pg-light .li-status-card p{ color:#3b4658; margin:0; max-width:46em; }
body.pg-light .li-status-card .li-text-link, body.pg-light .li-status-card .li-text-link:visited{ color:var(--forest-deep); }
body.pg-light .li-status-card .aa-hero-actions{ justify-content:flex-start !important; }

body.pg-light .aa-cta-band{ background:#fff; color:var(--ink); border-top:1px solid var(--line); text-align:left; padding:64px max(24px, calc((100% - 1120px)/2)); }
body.pg-light .aa-cta-band-inner{ max-width:42em; margin:0; }
body.pg-light .aa-cta-band h2{ font-family:'Helvetica Neue',Arial,sans-serif; font-weight:700; letter-spacing:-.02em; color:var(--forest-deep); }
body.pg-light .aa-cta-band p{ color:#3b4658; }
body.pg-light .aa-cta-band .aa-cta-actions{ justify-content:flex-start; }

body.pg-light .ldos-cta{ background:#fff; border:1px solid var(--line); border-radius:12px; }
body.pg-light .ldos-cta h3{ color:var(--forest-deep); font-family:'Helvetica Neue',Arial,sans-serif; font-weight:700; }
body.pg-light .ldos-cta p{ color:#3b4658; }
.site-footer .sf-links{ gap:6px 22px; }
.site-footer .sf-links a, .site-footer .sf-links label{ white-space:nowrap; }
.site-footer .sf-copy{ text-align:left; }

/* Shop and Log in: text fades out and back in as the fill changes, with a slight lift */
.site-header .hl-actions a.is-shop, .site-header .hl-actions a.is-cta{
  transition:background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.site-header .hl-actions a.is-shop:hover, .site-header .hl-actions a.is-cta:hover{ transform:translateY(-2px); }
@media (prefers-reduced-motion:reduce){ .site-header .hl-actions a.is-shop, .site-header .hl-actions a.is-cta{ transition:none; } .site-header .hl-actions a:hover{ transform:none; } }

/* Fillable PDF records shelf (7 across) and single-tile row */
.sh-cover svg{ position:absolute; inset:10px; width:calc(100% - 20px); height:calc(100% - 20px); display:block; }
.sh-shelf-7{ grid-template-columns:repeat(7,1fr); gap:18px; }
.sh-shelf-7 .sh-name{ font-size:15px; }
@media (max-width:1000px){ .sh-shelf-7{ grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(150px,38%); overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:14px; } }
.sh-one .sh-tile{ flex-direction:row; align-items:stretch; }
.sh-one .sh-tile-img{ flex:1.5; aspect-ratio:auto; min-height:200px; }
.sh-one .sh-tile-foot{ flex:1; border-top:0; border-left:1px solid var(--line); }
@media (max-width:760px){ .sh-one .sh-tile{ flex-direction:column; } .sh-one .sh-tile-img{ aspect-ratio:8/3; min-height:0; } .sh-one .sh-tile-foot{ border-left:0; border-top:1px solid var(--line); } }

/* Mobile polish: homepage author block and shop spacing */
@media (max-width:760px){
  .hm-about{ gap:22px; }
  .hm-about img{ max-width:none; width:100%; aspect-ratio:4/3; object-fit:cover; object-position:50% 14%; border-radius:12px; }
  .hm-about p{ font-size:16.5px; line-height:1.65; margin-bottom:14px; }
  .sh-sec{ padding-bottom:36px; }
  .sh-sec + .sh-sec{ padding-top:32px; }
  .sh-head{ margin-bottom:20px; }
}
@media (max-width:560px){
  .hm-btns{ flex-direction:column; align-items:stretch; }
  .hm-btns .aa-btn{ justify-content:center; text-align:center; width:100%; box-sizing:border-box; }
}

/* =========================  PHOTO BACKGROUNDS  =========================
   Full-width lab photos behind headings (like a bold landing-page hero).
   Interior pages: add class "hero-photo" and style="--hero-img:url(...);--hero-pos:70% 50%" to the hero section. */

/* Homepage hero: photos alternate (growth room / meristem cutting), light wash on the left for the text */
.hm-hero{
  position:relative; display:flex; align-items:center; overflow:hidden;
  min-height:clamp(500px,50vw,620px); padding:72px 0; background:var(--paper);
}
.hm-slides{ position:absolute; inset:0; z-index:0; }
.hm-slides i{ position:absolute; inset:0; background-size:cover; background-repeat:no-repeat; opacity:0; animation:hmFade 16s infinite; }
.hm-slides i.s1{ background-image:url(/assets/img/hero-growth-room.jpg); background-position:80% 40%; animation-delay:0s; }
.hm-slides i.s2{ background-image:url(/assets/img/hero-meristem-cut.jpg); background-position:72% 55%; animation-delay:-8s; }
.hm-slides::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(248,248,245,.97) 0%, rgba(248,248,245,.93) 36%, rgba(248,248,245,.5) 54%, rgba(248,248,245,0) 70%); }
@keyframes hmFade{ 0%{opacity:0} 6%{opacity:1} 50%{opacity:1} 56%{opacity:0} 100%{opacity:0} }
@media (prefers-reduced-motion:reduce){ .hm-slides i{ animation:none; } .hm-slides i.s1{ opacity:1; } }
.hm-hero .hm-wrap{ position:relative; z-index:1; }
.hm-hero .hm-wrap{ width:100%; }
.hm-hero h1{ max-width:11.5em; }
.hm-hero p.sub{ max-width:26em; color:#26324a; }
@media (max-width:820px){
  .hm-hero{ display:flex; flex-direction:column; align-items:stretch; min-height:0; padding:34px 0 28px; overflow:visible; }
  .hm-hero h1{ max-width:none; font-size:clamp(30px,8.4vw,38px); line-height:1.12; margin-bottom:16px; }
  .hm-hero p.sub{ font-size:16px; line-height:1.55; margin-bottom:22px; max-width:none; }
  .hm-hero .eyebrow{ margin-bottom:12px; }
  .hm-slides{ position:relative; inset:auto; order:2; margin:26px 24px 0; height:min(62vw,260px); border-radius:14px; overflow:hidden; }
  .hm-slides::after{ display:none; }
  .hm-slides i.s1{ background-position:76% 40%; }
  .hm-slides i.s2{ background-position:62% 62%; }
}


/* Interior page heroes with a photo: navy fade from the left keeps text readable */
.hero.hero-photo{
  display:flex; align-items:center;
  min-height:clamp(360px,40vw,480px);
  background:
    linear-gradient(90deg, rgba(9,26,58,.93) 0%, rgba(9,26,58,.76) 42%, rgba(9,26,58,.3) 74%, rgba(9,26,58,.12) 100%),
    var(--hero-img) var(--hero-pos,center) / cover no-repeat;
}
.hero.hero-photo .hero-inner{ max-width:1080px; width:100%; text-align:left; }
.hero.hero-photo .hero-inner > *{ max-width:36em; margin-left:0; margin-right:0; text-align:left; }
.hero.hero-photo .hero-inner > h1{ max-width:15em; }
.hero.hero-photo .eyebrow{ color:rgba(255,255,255,.72); }
.hero.hero-photo .aa-hero-actions{ justify-content:flex-start; }
@media (max-width:760px){
  .hero.hero-photo{
    min-height:0;
    background:
      linear-gradient(180deg, rgba(9,26,58,.9) 0%, rgba(9,26,58,.82) 100%),
      var(--hero-img) var(--hero-pos,center) / cover no-repeat;
  }
}

/* Homepage closing band with a photo behind it */
.hm-final.hm-photo{
  background:
    linear-gradient(rgba(9,26,58,.84), rgba(9,26,58,.88)),
    url(/assets/img/hero-meristem-tube.jpg) center 45% / cover no-repeat;
}

/* Light-theme pages: photo hero with a paper-coloured wash, dark text */
body.pg-light .hero.hero-photo{
  display:flex; align-items:center; min-height:clamp(380px,40vw,480px);
  background: linear-gradient(90deg, rgba(248,248,245,.97) 0%, rgba(248,248,245,.92) 38%, rgba(248,248,245,.45) 60%, rgba(248,248,245,0) 78%), var(--hero-img) var(--hero-pos,center) / cover no-repeat;
}
body.pg-light .hero.hero-photo .hero-inner{ max-width:1080px; width:100%; }
body.pg-light .hero.hero-photo .hero-inner > *{ max-width:30em; }
@media (max-width:760px){
  body.pg-light .hero.hero-photo{ min-height:0; background: linear-gradient(180deg, rgba(248,248,245,.94), rgba(248,248,245,.88)), var(--hero-img) var(--hero-pos,center) / cover no-repeat; }
}

/* Biotechnology hero: square office portrait pinned right, faded into the paper background */
body.pg-light .hero.hero-photo.hero-photo-office{
  background: linear-gradient(90deg, rgba(248,248,245,1) 0%, rgba(248,248,245,1) 64%, rgba(248,248,245,0) 84%), var(--hero-img) right center / auto 100% no-repeat, #f8f8f5;
}
@media (max-width:760px){
  body.pg-light .hero.hero-photo.hero-photo-office{
    background: linear-gradient(180deg, rgba(248,248,245,.93), rgba(248,248,245,.86)), var(--hero-img) center / cover no-repeat;
  }
}
