/**
 * Single brand taxonomy page  —  /brand/<slug>/
 * 2026-05-16: rewritten to the C Design "Brand Detail.html" spec
 * (cyan #30d8c8 + navy #30d8c8 on white). Faithful port of brand-detail.css
 * mapped onto the live taxonomy-product_brand.php class names.
 * Scoped to .brand-page. Reversible — see single-brand.css.bak-design-*.
 */
.brand-page{
  --accent:#30d8c8; --accent-dark:#042220; --accent-bg:#90f0e8;
  --slate:#3f5663; --slate-2:#30d8c8; --slate-deep:#042220;
  --slate-grad:linear-gradient(155deg,#30d8c8 0%,#30d8c8 55%,#042220 100%);
  --paper:#ffffff; --bg-2:#f4f6f9;
  --ink:#042220; --ink-2:#46535d; --muted:rgba(4,34,32,.45);
  --line:rgba(4,34,32,.10); --line-soft:#f4f6f9;
  --fb:'DM Sans',system-ui,-apple-system,sans-serif;
  --fd:'Newsreader',Georgia,serif;
  --fm:'JetBrains Mono',ui-monospace,monospace;
  max-width:1440px; margin:0 auto; padding:20px 32px 80px;
  color:var(--ink); font-family:var(--fb); background:#fff;
}
.brand-page *, .brand-page *::before, .brand-page *::after{ box-sizing:border-box; }
.brand-page a{ text-decoration:none; }

/* Breadcrumb (design = normal-case Inter, not uppercase mono) */
.brand-page .breadcrumb,
.brand-page + .breadcrumb,
.tax-product_brand .breadcrumb,
body.tax-product_brand .breadcrumb{
  display:flex; flex-wrap:wrap; gap:10px; font-size:13px;
  color:var(--muted); margin-bottom:18px;
  text-transform:none !important; font-family:var(--fb) !important;
  letter-spacing:normal !important; font-weight:500 !important;
}
.brand-page .breadcrumb a, body.tax-product_brand .breadcrumb a{ color:var(--ink-2) !important; }
.brand-page .breadcrumb a:hover, body.tax-product_brand .breadcrumb a:hover{ color:var(--accent-dark) !important; }
.brand-page .breadcrumb .sep, body.tax-product_brand .breadcrumb .sep{ color:var(--line) !important; }
.brand-page .breadcrumb .here, body.tax-product_brand .breadcrumb .here{ color:var(--slate) !important; font-weight:700 !important; }

/* HERO — explicit 2-col placement (left: avatar/title/desc/cta · right: badges/kicker/stats).
   The live template emits these as flat direct children of .brand-hero, so we
   place each one explicitly to get the design's compact hero (no auto-grid void). */
.brand-hero{
  background:var(--slate-grad); border-radius:28px; padding:44px 48px;
  display:grid; grid-template-columns:1.4fr 1fr;
  column-gap:48px; row-gap:14px; align-items:start;
  color:#fff; position:relative; overflow:hidden; margin-bottom:18px;
}
.brand-hero::before{
  content:""; position:absolute; top:-120px; right:-120px; width:380px; height:380px;
  border-radius:50%; background:radial-gradient(circle,rgba(182,232,95,.16),transparent 65%); pointer-events:none;
}
.brand-hero::after{
  content:""; position:absolute; inset:0;
  background-image:repeating-linear-gradient(115deg,rgba(255,255,255,.025) 0 1px,transparent 1px 32px); pointer-events:none;
}
.brand-hero > *{ position:relative; z-index:1; }
.brand-hero .brand-av        { grid-column:1; grid-row:1; }
.brand-hero .brand-hero-meta { grid-column:2; grid-row:1; display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; }
.brand-hero .brand-title     { grid-column:1; grid-row:2; }
.brand-hero .brand-tagline   { grid-column:2; grid-row:2; }
.brand-hero .brand-description{ grid-column:1; grid-row:3; }
.brand-hero .brand-cta-row   { grid-column:1; grid-row:4; }
.brand-hero .brand-stats     { grid-column:2; grid-row:3 / span 2; align-self:start; }
@media (max-width:1200px){
  .brand-hero .brand-av,.brand-hero .brand-hero-meta,.brand-hero .brand-title,
  .brand-hero .brand-tagline,.brand-hero .brand-description,
  .brand-hero .brand-cta-row,.brand-hero .brand-stats{ grid-column:1 !important; grid-row:auto !important; }
}
.brand-hero .brand-av{
  width:64px; height:64px; border-radius:16px;
  background:#30d8c8 !important; color:#042220 !important;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--fd); font-weight:700; font-size:32px;
  box-shadow:0 8px 24px -8px rgba(182,232,95,.55); position:relative; z-index:1;
}
.brand-hero .brand-region,
.brand-hero .eco-badge{
  display:inline-flex; align-items:center; gap:8px; padding:7px 14px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  border-radius:999px; font-family:var(--fm); font-size:10.5px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:#fff;
}
.brand-hero .brand-eco-row{ display:flex; flex-wrap:wrap; gap:8px; }
.brand-hero .brand-region{ align-self:flex-start; }
.brand-hero .brand-title{
  font-family:var(--fd); font-weight:500; font-size:clamp(48px,6vw,88px);
  line-height:1; letter-spacing:-.03em; color:#fff; margin:4px 0; font-style:italic;
}
.brand-hero .brand-tagline{
  font-family:var(--fm); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:#30d8c8; font-weight:700; max-width:56ch; margin:0;
}
.brand-hero .brand-description{ font-size:14.5px; line-height:1.6; color:rgba(255,255,255,.78); max-width:56ch; }
.brand-hero .brand-description p{ margin:0 0 10px; color:rgba(255,255,255,.78); }
.brand-hero .brand-cta-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.brand-hero .brand-cta{
  display:inline-flex; align-items:center; gap:10px; padding:13px 22px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  color:#fff; border-radius:12px; font-weight:700; font-size:14px;
  transition:filter .15s,transform .15s; white-space:nowrap;
}
.brand-hero .brand-cta svg{ flex-shrink:0; width:16px; height:16px; }
.brand-hero .brand-cta:hover{ filter:brightness(1.1); transform:translateY(-1px); }
.brand-hero .brand-cta.brand-cta-primary{
  background:#30d8c8; color:#042220; border-color:transparent;
  box-shadow:0 8px 24px -8px rgba(182,232,95,.5);
}
/* Right stats panel */
.brand-hero .brand-stats{
  position:relative; z-index:1; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1); border-radius:18px; padding:22px 26px;
  display:flex; flex-direction:column; gap:14px; align-self:start; margin:0;
}
.brand-hero .brand-stats > div,
.brand-hero .brand-stats .bs-row{
  display:flex; flex-direction:column; gap:4px;
  padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.1);
}
.brand-hero .brand-stats > div:last-child,
.brand-hero .brand-stats .bs-row:last-child{ border-bottom:none; padding-bottom:0; }
.brand-hero .brand-stats dt{
  font-family:var(--fm); font-size:10px; letter-spacing:.18em; text-transform:uppercase;
  color:rgba(255,255,255,.55); font-weight:700;
}
.brand-hero .brand-stats dd{
  font-family:var(--fd); font-weight:600; font-size:22px; letter-spacing:-.015em;
  color:#fff; line-height:1.2; margin:0;
}
.brand-hero .brand-stats dd.bd-cyan,
.brand-hero .brand-stats dd:last-of-type{ color:#30d8c8; }

/* Curator band */
.brand-page .curator-band{
  background:var(--slate-grad); border-left:4px solid #30d8c8; border-radius:16px;
  padding:20px 24px; display:grid; grid-template-columns:auto 1fr auto; gap:18px;
  align-items:center; color:#fff; margin-bottom:32px; position:relative; overflow:hidden;
}
.brand-page .curator-band::before{
  content:""; position:absolute; right:-60px; bottom:-60px; width:220px; height:220px;
  border-radius:50%; background:radial-gradient(circle,rgba(182,232,95,.12),transparent 70%); pointer-events:none;
}
.brand-page .curator-band .cb-av{
  width:44px; height:44px; border-radius:50%; background:#30d8c8; color:#042220;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--fd); font-style:italic; font-weight:600; font-size:20px; position:relative;
}
.brand-page .curator-band .cb-body{ display:flex; flex-direction:column; gap:6px; position:relative; }
.brand-page .curator-band .eyebrow{
  font-family:var(--fm); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:#30d8c8; font-weight:700; display:inline-flex; align-items:center; gap:8px;
}
.brand-page .curator-band .eyebrow .pip{ width:7px; height:7px; border-radius:50%; background:#30d8c8; }
.brand-page .curator-band .cb-quote{
  font-family:var(--fd); font-style:italic; font-size:14.5px; line-height:1.5; color:rgba(255,255,255,.95); margin:0;
}
.brand-page .curator-band .cb-sig{ font-family:var(--fm); font-size:11px; color:rgba(255,255,255,.55); }
.brand-page .curator-band .cb-sig strong{ color:#fff; font-weight:700; }
.brand-page .curator-band .cb-score{
  display:flex; flex-direction:column; align-items:center; padding:14px 20px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:12px; position:relative;
}
.brand-page .curator-band .cb-score-num{
  font-family:var(--fd); font-weight:700; font-size:32px; color:#30d8c8; letter-spacing:-.02em; line-height:1;
}
.brand-page .curator-band .cb-score-lbl{
  font-family:var(--fm); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(255,255,255,.55); margin-top:4px; font-weight:700;
}

/* Section heads */
.brand-page .sec-head{ display:flex; justify-content:space-between; align-items:baseline; gap:18px; margin-bottom:18px; flex-wrap:wrap; }
.brand-page .sec-head h2{
  font-family:var(--fd); font-weight:600; font-size:clamp(26px,2.6vw,38px);
  line-height:1; letter-spacing:-.025em; color:var(--ink); margin:0;
}
.brand-page .sec-head h2 em{ font-style:italic; font-weight:400; color:var(--slate); }
.brand-page .sec-head .sub{
  font-family:var(--fm); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); font-weight:700;
}
.brand-page .brand-products > h2{
  font-family:var(--fd); font-weight:600; font-size:clamp(24px,2.4vw,32px);
  color:var(--ink); margin:0 0 20px; letter-spacing:-.02em;
}

/* Top picks grid */
.brand-page .brand-picks{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:32px; }
.brand-page .bpick{
  background:var(--paper); border:1px solid var(--line); border-radius:16px;
  overflow:hidden; display:flex; flex-direction:column; transition:all .2s; position:relative;
}
.brand-page .bpick:hover{ transform:translateY(-2px); box-shadow:0 16px 32px -16px rgba(168,47,176,.2); border-color:var(--slate); }
.brand-page .bpick .bp-rank{
  position:absolute; top:8px; right:14px; font-family:var(--fd); font-style:italic;
  font-size:52px; color:rgba(168,47,176,.12); line-height:1; z-index:1; font-weight:400;
}
.brand-page .bpick .bp-thumb{ display:block; aspect-ratio:1; background:var(--bg-2); overflow:hidden; }
.brand-page .bpick .bp-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.brand-page .bpick .bp-meta{ padding:14px 16px 6px; display:flex; flex-direction:column; gap:6px; flex:1; }
.brand-page .bpick .bp-name{ font-weight:600; font-size:13.5px; line-height:1.3; color:var(--ink); }
.brand-page .bpick .bp-reason{ font-size:12px; line-height:1.45; color:var(--ink-2); margin:0; }
.brand-page .bpick .bp-foot{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 16px; border-top:1px solid var(--line); gap:10px; margin-top:auto;
}
.brand-page .bpick .bp-price{ display:flex; flex-direction:column; gap:2px; }
.brand-page .bpick .bp-price .amount{ font-family:var(--fd); font-weight:700; font-size:18px; color:var(--ink); }
.brand-page .bpick .bp-pcp{ font-family:var(--fm); font-size:10px; color:var(--muted); font-weight:600; }
.brand-page .bpick .bp-add{
  padding:8px 14px; background:var(--slate-grad); color:#fff; border-radius:9px;
  font-size:12.5px; font-weight:600; display:inline-flex; align-items:center; gap:6px; transition:filter .15s; white-space:nowrap;
}
.brand-page .bpick .bp-add:hover{ filter:brightness(1.12); }

/* Category filter pills */
.brand-page .brand-cat-nav{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; padding:8px 0; }
.brand-page .bcn-pill{
  padding:10px 18px; background:var(--paper); border:1px solid var(--line);
  border-radius:999px; font-size:13.5px; font-weight:600; color:var(--ink-2);
  cursor:pointer; transition:all .15s; display:inline-flex; align-items:center; gap:6px;
}
.brand-page .bcn-pill:hover{ border-color:var(--slate); color:var(--ink); }
.brand-page .bcn-on,
.brand-page .bcn-pill.bcn-on{
  background:var(--slate-grad); color:#fff; border-color:transparent;
  box-shadow:0 6px 16px -6px rgba(168,47,176,.5);
}
.brand-page .bcn-pill .ct{ font-family:var(--fm); font-size:11px; opacity:.65; font-weight:600; }
.brand-page .bcn-on .ct{ opacity:.75; color:#fff; }

/* Products grid (WooCommerce loop) */
.brand-page .brand-products{ margin-bottom:32px; }
.brand-page .brand-products ul.products,
.brand-page .brand-products .products{
  display:grid !important; grid-template-columns:repeat(4,1fr); gap:14px; margin:0; padding:0; list-style:none;
}
.brand-page .brand-products ul.products li.product{ margin:0 !important; width:auto !important; float:none !important; }

/* Similar brands */
.brand-page .brand-similar{ margin-bottom:24px; }
.brand-page .brand-similar > h2{
  font-family:var(--fd); font-weight:600; font-size:clamp(22px,2.2vw,30px);
  margin:0 0 16px; color:var(--ink); letter-spacing:-.02em;
}
.brand-page .brand-similar > h2 em{ font-style:italic; font-weight:400; color:var(--slate); }
.brand-page .brand-similar-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.brand-page .brand-card{
  background:var(--paper); border:1px solid var(--line); border-radius:14px;
  padding:18px; display:flex; flex-direction:column; gap:8px; transition:all .15s; color:var(--ink);
}
.brand-page .brand-card:hover{ transform:translateY(-2px); border-color:var(--slate); box-shadow:0 12px 28px -16px rgba(168,47,176,.18); }
.brand-page .brand-card .brand-card-region{
  font-family:var(--fm); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-dark); font-weight:700; padding:4px 10px;
  background:rgba(182,232,95,.12); border:1px solid rgba(182,232,95,.25);
  border-radius:6px; align-self:flex-start;
}
.brand-page .brand-card h3{ font-family:var(--fd); font-weight:700; font-size:18px; color:var(--ink); margin:2px 0 0; }
.brand-page .brand-card p{ font-size:13px; line-height:1.5; color:var(--ink-2); flex:1; margin:0; }
.brand-page .brand-card .brand-card-count{
  display:flex; justify-content:space-between; align-items:center; padding-top:10px;
  border-top:1px solid var(--line); color:var(--accent-dark); font-weight:700;
  font-family:var(--fm); font-size:11px; letter-spacing:.04em;
}

@media (max-width:1200px){
  .brand-hero{ grid-template-columns:1fr; padding:32px; }
  .brand-page .curator-band{ grid-template-columns:1fr; }
  .brand-page .curator-band .cb-score{ flex-direction:row; gap:12px; }
  .brand-page .brand-picks,
  .brand-page .brand-products ul.products,
  .brand-page .brand-products .products{ grid-template-columns:repeat(2,1fr); }
  .brand-page .brand-similar-grid{ grid-template-columns:1fr; }
}
@media (max-width:700px){
  .brand-page{ padding:16px 16px 60px; }
  .brand-page .brand-picks,
  .brand-page .brand-products ul.products,
  .brand-page .brand-products .products{ grid-template-columns:1fr; }
  .brand-hero{ padding:24px 22px; }
}

/* =====================================================================
 * 2026-05-20: brand-story-rich block (About + Key facts + Founders +
 * Timeline + Sustainability). Rendered by taxonomy-product_brand.php
 * from inc/brand-registry.json + inc/brand-data.php. Uses the same
 * cyan/navy palette as the brand-hero so the new section reads as part
 * of the existing brand page rather than a foreign add-on.
 * ===================================================================== */
.brand-page .brand-story-rich{
  background:#fff; border:1px solid var(--line); border-radius:24px;
  padding:36px 40px; margin:24px 0; position:relative;
}
.brand-page .brand-story-rich .bsr-h{
  font-family:var(--fd); font-weight:700; font-size:28px; line-height:1.2;
  color:var(--slate); margin:0 0 18px;
}
.brand-page .brand-story-rich .bsr-h + .bsr-p{ margin-top:0; }
.brand-page .brand-story-rich .bsr-sub{
  font-family:var(--fm); font-size:11.5px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-dark); margin:30px 0 14px;
}
.brand-page .brand-story-rich .bsr-p{
  font-size:15.5px; line-height:1.68; color:var(--ink-2);
  max-width:none; margin:0 0 14px;
}
.brand-page .brand-story-rich .bsr-bullets{
  list-style:none; padding:0; margin:0 0 8px;
  display:grid; grid-template-columns:1fr 1fr; gap:14px 24px;
}
.brand-page .brand-story-rich .bsr-bullets li{
  position:relative; padding:14px 16px 14px 18px;
  background:var(--bg-2); border-radius:14px;
  font-size:14.5px; line-height:1.55; color:var(--ink-2);
  border-left:3px solid var(--accent);
}
.brand-page .brand-story-rich .bsr-blab{
  display:block; color:var(--slate); font-weight:700;
  font-family:var(--fb); font-size:14px; margin-bottom:4px;
}

/* Founders cards */
.brand-page .brand-story-rich .bsr-founders{
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
}
.brand-page .brand-story-rich .bsr-founder{
  display:grid; grid-template-columns:60px 1fr; gap:14px;
  background:var(--bg-2); border-radius:18px; padding:18px 20px;
  align-items:start;
}
.brand-page .brand-story-rich .bsr-fav{
  width:56px; height:56px; border-radius:14px;
  background:linear-gradient(135deg,#FFB347,#D88B2C);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:var(--fd); font-size:22px; font-weight:700;
}
.brand-page .brand-story-rich .bsr-founder:nth-child(2) .bsr-fav{
  background:linear-gradient(135deg,#FF2D8E,#B22072);
}
.brand-page .brand-story-rich .bsr-fbody{ display:flex; flex-direction:column; gap:6px; }
.brand-page .brand-story-rich .bsr-fname{
  font-family:var(--fd); font-weight:700; font-size:18px;
  color:var(--slate); line-height:1.2;
}
.brand-page .brand-story-rich .bsr-frole{
  font-family:var(--fm); font-size:11px; letter-spacing:.04em;
  color:var(--muted); text-transform:uppercase;
}
.brand-page .brand-story-rich .bsr-fquote{
  margin:6px 0 0; padding:0; font-family:var(--fd); font-style:italic;
  font-size:14.5px; line-height:1.55; color:var(--ink-2);
  border:none;
}

/* Timeline */
.brand-page .brand-story-rich .bsr-timeline{
  list-style:none; padding:0; margin:0; position:relative;
  display:grid; gap:14px;
}
.brand-page .brand-story-rich .bsr-timeline::before{
  content:""; position:absolute; top:8px; bottom:8px; left:138px;
  width:2px; background:linear-gradient(180deg, var(--accent), transparent 95%);
}
.brand-page .brand-story-rich .bsr-tl-item{
  display:grid; grid-template-columns:120px 1fr; column-gap:36px; row-gap:6px;
  grid-template-areas: "yr h" "yr p";
  padding:10px 0 10px 0; position:relative;
}
.brand-page .brand-story-rich .bsr-tl-yr{ grid-area:yr; }
.brand-page .brand-story-rich .bsr-tl-h{ grid-area:h; }
.brand-page .brand-story-rich .bsr-tl-p{ grid-area:p; }
.brand-page .brand-story-rich .bsr-tl-item::before{
  content:""; position:absolute; left:132px; top:14px;
  width:14px; height:14px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 4px #fff;
  z-index:1;
}
.brand-page .brand-story-rich .bsr-tl-yr{
  font-family:var(--fm); font-weight:700; font-size:13px;
  color:var(--accent-dark); padding-top:2px;
}
.brand-page .brand-story-rich .bsr-tl-h{
  font-family:var(--fb); font-weight:700; font-size:15px;
  color:var(--slate); display:block; margin-bottom:4px;
}
.brand-page .brand-story-rich .bsr-tl-p{
  font-size:14.5px; line-height:1.55; color:var(--ink-2); margin:0;
}

@media (max-width:780px){
  .brand-page .brand-story-rich{ padding:24px 22px; }
  .brand-page .brand-story-rich .bsr-bullets{ grid-template-columns:1fr; }
  .brand-page .brand-story-rich .bsr-founders{ grid-template-columns:1fr; }
  .brand-page .brand-story-rich .bsr-timeline::before{ left:104px; }
  .brand-page .brand-story-rich .bsr-tl-item{ grid-template-columns:90px 1fr; gap:28px; }
  .brand-page .brand-story-rich .bsr-tl-item::before{ left:98px; }
/* SAFEGUARD 2026-06-19: keep brand long-form body text dark ink. A polish pass set --ink-2 to hot pink (#e84898), turning About/Key Facts/Sustainability + card copy unreadable pink on white. Pink stays only on links/accents. */
.brand-page .brand-story-rich .bsr-p,
.brand-page .brand-story-rich .bsr-bullets li,
.brand-page .brand-card p,
.brand-page .bpick .bp-reason{ color:#46535d; }
}

/* =====================================================================
 * 2026-06-19: Brand hero tablet fix
 * At ≤900px, collapse the 2-col hero grid to 1-col so the empty
 * right column (which has no content at ≤1200px per the existing rule)
 * stops wasting half the viewport width.
 * ===================================================================== */
@media (max-width:900px){
  .brand-hero{
    grid-template-columns:1fr;
    padding:32px 28px;
  }
}
