/* THE HIVE: the MAMS brand, worn by leperx.com/mams and /mams/info (English and Arabic).
   Loaded after styles.css and assets/mams-info/info.css, only on pages built with brand="hive"
   (<body data-brand="hive">), so IMT and OneVigilX keep the Leperx look they share with info.css.
   Brand source: MAMS-strategist/BRAND.md and its guidelines PDF (2026-12-02):
   - Hive Yellow #FFC531 about 30%, Onyx #0B0B0F about 30%, Ivory #FBF5E6 about 35%, Honey #E3A73B under 5%.
   - Text on yellow is always onyx. Bees never sit straight on yellow. No gradients on backgrounds.
   - Alexandria for Arabic and English, Fraunces only for the MAMS name. The logo is the flat hexagon M.
   The Leperx header and footer stay: Leperx is the house that builds MAMS.

   How it works: every section and sheet takes one of three themes (dark, ivory, yellow). A theme only
   sets colour variables; the rules below read those variables, so one rule serves all three. */

/* ---------- 1. THEMES ---------- */
[data-brand="hive"] {
  --y: #FFC531; --onyx: #0B0B0F; --ivory: #FBF5E6; --honey: #E3A73B; --honey-ink: #8A5B06;
  --hv: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
  --fr: "Fraunces", Georgia, serif;
  --hexpath: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  /* accents for the Leperx header and footer on these pages */
  --blue: var(--y); --teal: var(--y); --violet: var(--honey); --iris: var(--y);
  background: #070709;
}
/* dark: the default inside main, and onyx cards that sit on a yellow sheet */
[data-brand="hive"] main,
[data-brand="hive"] .hv-dark,
[data-brand="hive"] .hv-yellow :is(.use, .cover__stats, .once, .uses__more, .hv-band) {
  --display: var(--hv); --body: var(--hv); --mono: var(--hv);
  --base: var(--onyx); --black: var(--onyx); --panel: #141419;
  --ink: var(--ivory); --core: var(--ivory); --muted: rgba(251, 245, 230, .62); --soft: rgba(251, 245, 230, .82);
  --line: rgba(251, 245, 230, .12);
  --blue: var(--y); --teal: var(--y); --violet: var(--y); --iris: var(--y);
  --ember: var(--y); --ember-2: var(--y); --emberg: var(--y); --ember-line: rgba(255, 197, 49, .34);
  --acc: var(--y); --acc-ink: var(--onyx); --hl: var(--y);
  --surface: var(--onyx); --cell: #141419; --card: #141419;
  --paper: var(--ivory); --paper-ink: var(--onyx); --paper-muted: #645D4E; --line-paper: rgba(11, 11, 15, .12); --blue-ink: var(--honey-ink);
  color: var(--ink);
}
[data-brand="hive"] :is(.hv-ivory, .sec--light, .msheet--paper) {
  --ink: var(--onyx); --core: var(--onyx); --muted: #645D4E; --soft: #2F2B24;
  --line: rgba(11, 11, 15, .12);
  --blue: var(--honey-ink); --teal: var(--honey-ink); --violet: var(--honey-ink); --iris: var(--y);
  --ember: var(--honey-ink); --ember-2: var(--honey-ink); --emberg: var(--y); --ember-line: rgba(11, 11, 15, .16);
  --acc: var(--y); --acc-ink: var(--onyx); --hl: var(--onyx);
  --surface: var(--ivory); --cell: #F3EAD3; --card: #FFFDF7;
  color: var(--ink);
}
[data-brand="hive"] .hv-yellow {
  --ink: var(--onyx); --core: var(--onyx); --muted: rgba(11, 11, 15, .7); --soft: rgba(11, 11, 15, .86);
  --line: rgba(11, 11, 15, .18);
  --blue: var(--onyx); --teal: var(--onyx); --violet: var(--onyx); --iris: var(--onyx);
  --ember: var(--onyx); --ember-2: var(--onyx); --emberg: var(--onyx); --ember-line: rgba(11, 11, 15, .22);
  --acc: var(--onyx); --acc-ink: var(--y); --hl: var(--onyx);
  --surface: var(--y); --cell: rgba(11, 11, 15, .07); --card: rgba(251, 245, 230, .5);
  color: var(--ink);
}

/* ---------- 2. TYPE ---------- */
[data-brand="hive"] main { font-family: var(--hv); background: #070709; }
[data-brand="hive"] main .display { font-family: var(--hv); font-weight: 800; text-transform: none; letter-spacing: -.028em; line-height: 1.04; }
[data-brand="hive"] main .display--md { line-height: 1.06; }
[data-brand="hive"] main :is(h3, .agent__name, .tile__name, .extras b, .fdr__path b, .once__big, .rows h3, .steps h3, .callout) { font-family: var(--hv); text-transform: none; letter-spacing: -.012em; }
[data-brand="hive"] main :is(.msheet h3, .rows h3, .steps h3) { font-weight: 700; line-height: 1.15; }
[data-brand="hive"] main :is(.cover__stats b, .estats b, .mwall b, .facts b, .vstats b, .fdr__stats b, .tile__n, .fam b, .use__n) { font-family: var(--hv); font-weight: 800; letter-spacing: -.03em; }
[data-brand="hive"] main .accent,
[data-theme="alive"] [data-brand="hive"] main .accent,
[data-brand="hive"] main .ember,
[data-theme="alive"] [data-brand="hive"] main .ember,
[data-brand="hive"] .mi .msheet--paper .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--hl); animation: none; }
/* the rule above stops the Leperx shimmer; a headline line that is also the accent keeps its slide-in */
.js [data-brand="hive"] main h1.display .line.accent { animation: line-in 1s var(--ease) .12s forwards; }
/* on ivory the key words get a yellow marker under them; on yellow an onyx underline */
[data-brand="hive"] :is(.hv-ivory, .sec--light, .msheet--paper) .display .accent {
  background: linear-gradient(transparent 58%, var(--y) 58%, var(--y) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
[data-brand="hive"] .hv-yellow .display .accent { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }

/* eyebrows: spaced caps with a small hexagon, honey on ivory, yellow on onyx, onyx on yellow */
[data-brand="hive"] main .eyebrow { font-family: var(--hv); font-weight: 600; font-size: .72rem; letter-spacing: .22em; color: var(--blue); }
[data-brand="hive"] main .eyebrow::before { width: .62rem; height: .7rem; background: currentColor; clip-path: var(--hexpath); }
[data-brand="hive"] main :is(.lead, .hero__lead, .msheet__lead, .cover__lead) { color: var(--soft); }
[data-brand="hive"] main .msheet__lead { color: var(--muted); }
[data-brand="hive"] main :is(.msheet__head, .msheet__foot, .contents__label, .ladder__label, .fdr__label, .vault__label, .trade__small, .msheet__small) { font-family: var(--hv); color: var(--muted); }
[data-brand="hive"] main [lang="ar"] { font-family: var(--hv); }

/* ---------- 3. BUTTONS AND LINKS ---------- */
[data-brand="hive"] .btn { background: var(--y); color: var(--onyx); font-family: var(--hv); font-weight: 700; letter-spacing: .02em; text-transform: none; border-radius: 999px; }
[data-brand="hive"] .btn::before { background: var(--ivory); }
[data-brand="hive"] .btn:hover { box-shadow: 0 14px 38px -14px rgba(255, 197, 49, .75); }
[data-brand="hive"] main .btn--ink, [data-brand="hive"] .hv-yellow .btn:not(.btn--ghost) { background: var(--onyx); color: var(--ivory); }
[data-brand="hive"] main .btn--ink::before, [data-brand="hive"] .hv-yellow .btn::before { background: #2A2A31; }
[data-brand="hive"] main .btn--ghost { color: var(--ink); box-shadow: 0 0 0 1.5px var(--line) inset !important; }
[data-brand="hive"] main .btn--ghost:hover { color: var(--onyx); }
[data-brand="hive"] main .link { font-family: var(--hv); font-weight: 600; letter-spacing: .12em; }
[data-brand="hive"] main .link::before { background: currentColor; opacity: .5; }
[data-brand="hive"] .lang:hover, [data-brand="hive"] .nav__links a[aria-current="page"] { border-color: var(--y); }
/* the Leperx "alive" theme paints buttons blue with a stronger selector: answer it here */
[data-theme="alive"] [data-brand="hive"] .btn:not(.btn--ink):not(.btn--ghost) { background: var(--y); color: var(--onyx); box-shadow: 0 12px 34px -16px rgba(255, 197, 49, .7); }
[data-theme="alive"] [data-brand="hive"] .hv-yellow .btn:not(.btn--ink):not(.btn--ghost) { background: var(--onyx); color: var(--ivory); box-shadow: 0 12px 34px -16px rgba(11, 11, 15, .6); }
[data-brand="hive"] .dock { background: rgba(11, 11, 15, .92); border-radius: 999px; padding-left: 1.4rem; }
[data-brand="hive"] .dock::before { background: var(--y); opacity: .55; }
[data-brand="hive"] .dock .btn { border-radius: 999px; }
[data-brand="hive"] .progress i { background: var(--y); }

/* ---------- 4. THE LOGO LOCKUP (the flat hexagon M, frozen: never 3D, never a solid yellow hexagon) ---------- */
.hv-lockup { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
.hv-lockup svg { width: 3.1rem; height: 3.1rem; flex: none; }
.hv-lockup__name { display: block; font-family: var(--fr); font-weight: 600; font-size: 2.1rem; letter-spacing: .055em; line-height: 1; }
.hv-lockup__sub { display: block; margin-top: .35rem; font-family: var(--hv); font-weight: 500; font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; }
.hv-lockup--sm svg { width: 2.4rem; height: 2.4rem; }
.hv-lockup--sm .hv-lockup__name { font-size: 1.55rem; }
[data-brand="hive"] :is(main, .hv-dark) .hv-lockup__name { color: var(--honey); }
[data-brand="hive"] .hv-yellow .hv-lockup__name, [data-brand="hive"] .hv-ivory .hv-lockup__name { color: var(--onyx); }
.hv-ar { font-family: var(--hv); font-weight: 700; }
/* the Arabic pages already write the names in Arabic, so their second-name tag is left empty */
.hv-ar:empty, .hive-card h3 span:empty { display: none; }

/* ---------- 5. /mams PAGE SECTIONS ---------- */
[data-brand="hive"] .sec { background: var(--surface, var(--onyx)); }
[data-brand="hive"] .sec--black { background: var(--onyx); }
[data-brand="hive"] .phero { background: var(--onyx); padding-bottom: 0; }
[data-brand="hive"] .phero::before { display: none; }
[data-brand="hive"] .phero::after { display: none; }
.hv-hero__top { display: grid; gap: 2.2rem; }
[data-brand="hive"] .phero .hv-lockup { margin-bottom: 2.2rem; }
.hv-hero__team { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.hv-hero__team img { display: block; width: 100%; height: auto; max-width: 76rem; margin: 0 auto; }
[data-brand="hive"] .hv-strip { background: var(--y); color: var(--onyx); padding: 1rem 0; overflow: hidden; }
.hv-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2rem; font-weight: 600; font-size: .92rem; }
.hv-strip li { display: inline-flex; align-items: center; gap: .55rem; }
.hv-strip li::before { content: ""; width: .5rem; height: .56rem; background: var(--onyx); clip-path: var(--hexpath); }
[data-brand="hive"] .sec--light .cols, [data-brand="hive"] .hv-ivory .cols { color: var(--soft); }
[data-brand="hive"] .hv-yellow .cols { color: var(--soft); }
[data-brand="hive"] .rows { border-top-color: var(--ink); }
[data-brand="hive"] .rows--dark { border-top-color: var(--line); }
[data-brand="hive"] .rows p, [data-brand="hive"] .steps p { color: var(--muted); }
[data-brand="hive"] :is(.rows__n, .steps__n) { font-family: var(--hv); font-weight: 600; color: var(--blue); }
[data-brand="hive"] .steps, [data-brand="hive"] .steps li { border-color: var(--line); }
[data-brand="hive"] .shots__frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--onyx); box-shadow: 0 30px 70px -40px rgba(11, 11, 15, .55); }
[data-brand="hive"] .shots__bar { background: #141419; color: rgba(251, 245, 230, .6); font-family: var(--hv); }
[data-brand="hive"] .shots__bar i { background: rgba(251, 245, 230, .2); }
[data-brand="hive"] .shots__bar i:first-child { background: var(--y); }
[data-brand="hive"] .shot figcaption { color: var(--muted); }
[data-brand="hive"] .shot figcaption b { color: var(--ink); }
[data-brand="hive"] .call::before { display: none; }
/* Leperx decorations that do not belong to the hive: the blue line on top of each section, the ring in
   the corner of light sections, the dot grid, and the WIRE rail on the side */
[data-theme="alive"] [data-brand="hive"] .sec::after, [data-theme="alive"] [data-brand="hive"] .sec::before { display: none; }
[data-theme="alive"] [data-brand="hive"] .sec { background-image: none; }
[data-theme="alive"] [data-brand="hive"] .rail { display: none; }
.hive-card .hive-card__job { margin-top: .3rem; font-size: .64rem; font-weight: 600; letter-spacing: .18em; line-height: 1.4; color: var(--y); }

/* the hive grid on /mams: eight bees, each on an onyx card */
.hive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.hive-card { position: relative; display: flex; flex-direction: column; padding: 1.2rem 1.2rem 1.3rem; border-radius: 16px; background: #141419; border: 1px solid rgba(251, 245, 230, .1); color: var(--ivory); transition: transform .35s var(--ease), border-color .3s; }
.hive-card:hover { transform: translateY(-4px); border-color: rgba(255, 197, 49, .55); }
.hive-card img { display: block; height: 9.5rem; width: auto; max-width: 100%; margin: .2rem auto 1rem; object-fit: contain; }
.hive-card h3 { font-size: 1.2rem; display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.hive-card h3 span { color: var(--y); font-size: 1.05rem; }
.hive-card__job { margin-top: .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--y); }
.hive-card p { margin-top: .6rem; font-size: .88rem; line-height: 1.5; color: rgba(251, 245, 230, .72); }
.hive-card--lead { border-color: var(--y); box-shadow: 0 0 0 1px var(--y) inset; }
.hv-flag { position: absolute; top: -.7rem; left: 1.1rem; padding: .28rem .7rem; border-radius: 999px; background: var(--y); color: var(--onyx); font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hv-flag--ink { background: var(--ivory); }
.hive-plus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.hive-plus li { padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px dashed rgba(251, 245, 230, .22); }
.hive-plus b { display: block; font-weight: 700; }
.hive-plus span { display: block; margin-top: .3rem; font-size: .9rem; color: var(--muted); }

/* ---------- 6. /mams/info SHEETS ---------- */
[data-brand="hive"] .mi__index a[aria-current="true"] { border-left-color: var(--y); background: rgba(255, 197, 49, .08); }
[data-brand="hive"] .mi__index :is(a.is-hot, a.is-ember) { color: var(--y); }
[data-brand="hive"] .mi__save { font-family: var(--hv); border-radius: 999px; }
[data-brand="hive"] .mi__save:hover { border-color: var(--y); background: rgba(255, 197, 49, .1); }
[data-brand="hive"] .msheet { background: var(--surface); border: 1px solid rgba(251, 245, 230, .08); border-radius: 14px; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
[data-brand="hive"] .msheet::before { display: none; }
[data-brand="hive"] .msheet:is(.hv-ivory, .msheet--paper, .hv-yellow) { border-color: transparent; }
[data-brand="hive"] .msheet__head, [data-brand="hive"] .msheet__foot { border-color: var(--line); letter-spacing: .18em; }
[data-brand="hive"] .msheet--cover::after, [data-brand="hive"] .msheet--hot::after { display: none; }
[data-brand="hive"] .msheet--hot { box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
[data-brand="hive"] :is(.msheet--cover, .msheet--hot, .msheet--ember, .msheet--black, .msheet--deal, .msheet--paper) { background: var(--surface); background-image: none; }

/* text that info.css colours by hand. Plain selector lists, not :is(): :is() takes the weight of its
   strongest member, which would beat the selected-tab and highlight rules further down. */
[data-brand="hive"] .cover__lead, [data-brand="hive"] .cols2, [data-brand="hive"] .ticks li, [data-brand="hive"] .mpanel p,
[data-brand="hive"] .use p, [data-brand="hive"] .uses__more, [data-brand="hive"] .brain p, [data-brand="hive"] .fam li,
[data-brand="hive"] .pay span, [data-brand="hive"] .chips span, [data-brand="hive"] .facts span,
[data-brand="hive"] .skills__chips button, [data-brand="hive"] .ladder__steps button, [data-brand="hive"] .rules__tabs button,
[data-brand="hive"] .voice__copy p:not(.voice__tag), [data-brand="hive"] .made > p:not(.voice__tag),
[data-brand="hive"] .fdr__copy > p:not(.eyebrow):not(.msheet__lead), [data-brand="hive"] .once p:not(.once__big) { color: var(--soft); }
[data-brand="hive"] .agent__name, [data-brand="hive"] .mpanel h3, [data-brand="hive"] .use h3, [data-brand="hive"] .voice__copy h3,
[data-brand="hive"] .estats b, [data-brand="hive"] .fam b, [data-brand="hive"] .made h3, [data-brand="hive"] .chips--ember span,
[data-brand="hive"] .brain h3, [data-brand="hive"] .vstats b, [data-brand="hive"] .fdr__path b { color: var(--core); }
[data-brand="hive"] .cover__stats span, [data-brand="hive"] .estats span, [data-brand="hive"] .mwall span, [data-brand="hive"] .vstats span,
[data-brand="hive"] .fdr__stats span, [data-brand="hive"] .tile__tag, [data-brand="hive"] .agent__brain, [data-brand="hive"] .tile__line,
[data-brand="hive"] .agent__line, [data-brand="hive"] .steps4 p, [data-brand="hive"] .days p, [data-brand="hive"] .flow p,
[data-brand="hive"] .loop p, [data-brand="hive"] .extras span, [data-brand="hive"] .fdr__path li { color: var(--muted); font-family: var(--hv); }
/* number cells, flat */
[data-brand="hive"] :is(.cover__stats, .estats, .mwall, .vstats, .fdr__stats) { background: var(--line); border-color: var(--line); border-radius: 12px; overflow: hidden; }
[data-brand="hive"] :is(.cover__stats li, .estats li, .mwall li, .vstats li, .fdr__stats li) { background: var(--cell); }
[data-brand="hive"] :is(.cover__stats b, .estats b, .mwall b, .vstats b) { color: var(--core); }
[data-brand="hive"] .mwall__big { background: var(--y) !important; }
[data-brand="hive"] .mwall__big b, [data-brand="hive"] .mwall__big span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--onyx); }
[data-brand="hive"] .fdr__stats b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--blue); }
[data-brand="hive"] .facts b, [data-brand="hive"] :is(.hv-ivory, .msheet--paper) .fdr__stats b { color: var(--onyx); }
[data-brand="hive"] .facts li { border-top: 3px solid var(--y); }

/* cards and panels */
[data-brand="hive"] :is(.mpanel, .agent, .flow li, .loop li, .extras li, .pay li, .brain) { background: var(--card); border-color: var(--line); border-radius: 12px; }
[data-brand="hive"] .mpanel--paper { background: var(--card); }
[data-brand="hive"] :is(.mpanel--ember, .agent--ember, .use--ember) { background: var(--card); border-color: var(--line); }
[data-brand="hive"] .brain::after { display: none; }
[data-brand="hive"] .brain { border-top: 3px solid var(--y); }
[data-brand="hive"] .brain__n, [data-brand="hive"] .brain__meta { color: var(--blue) !important; font-family: var(--hv); }
[data-brand="hive"] .ticks li::before { width: .5rem; height: .56rem; top: .5em; background: var(--y); clip-path: var(--hexpath); }
[data-brand="hive"] .hv-yellow .ticks li::before, [data-brand="hive"] :is(.hv-ivory, .msheet--paper) .ticks li::before { background: var(--onyx); }
[data-brand="hive"] .callout { border-left: 4px solid var(--y); border-image: none; background: var(--cell); border-radius: 0 10px 10px 0; font-weight: 700; }
[data-brand="hive"] .hv-yellow .callout { border-left-color: var(--onyx); }
[data-brand="hive"] .contents__list a { border-color: var(--line); }
[data-brand="hive"] .contents__list a:hover { color: var(--ink); }
[data-brand="hive"] .contents__list span, [data-brand="hive"] .contents__list :is(.is-hot, .is-ember) span { color: var(--muted); font-family: var(--hv); font-weight: 600; }
[data-brand="hive"] .contents__list :is(.is-hot, .is-ember) a { color: var(--ink); font-weight: 700; }

/* the cover: yellow, the lockup on top, the hive on an onyx band */
[data-brand="hive"] .msheet--cover { gap: 1.6rem; }
[data-brand="hive"] .cover { padding-top: 1rem; }
[data-brand="hive"] .cover__title { max-width: 16ch; margin-top: 1.4rem; }
[data-brand="hive"] .cover .eyebrow { margin-top: 2rem; margin-bottom: 0; }
[data-brand="hive"] .cover__stats { gap: 1px; }
.hv-band { margin: 0 calc(-1 * clamp(1.4rem, 5vw, 4.2rem)); padding: 1.4rem clamp(1rem, 3vw, 2rem) 0; background: var(--onyx); }
.hv-band img { display: block; width: 100%; height: auto; }

/* the team: eight bee cards */
[data-brand="hive"] .crew__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-brand="hive"] .agent { align-items: stretch; text-align: start; padding: .9rem .95rem 1rem; min-height: 0; }
[data-brand="hive"] .agent:hover { border-color: rgba(255, 197, 49, .55); }
[data-brand="hive"] .agent[aria-selected="true"], [data-brand="hive"] .agent--ember[aria-selected="true"] { border-color: var(--y); background: #1B1A12; box-shadow: 0 0 0 1px var(--y) inset, 0 18px 40px -26px rgba(255, 197, 49, .7); }
/* the bees show exactly as rendered: no tilt, no filter, no recolour */
[data-brand="hive"] .agent__bee { display: block; height: 6.4rem; width: auto; max-width: 100%; margin: .1rem auto .55rem; object-fit: contain; }
[data-brand="hive"] .agent__name { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; font-weight: 700; font-size: 1.08rem; margin-top: 0; }
[data-brand="hive"] .agent__name .hv-ar { color: var(--y); font-size: .98rem; }
[data-brand="hive"] .agent__job { font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--y); }
[data-brand="hive"] .agent__line { font-size: .8rem; margin-top: .25rem; }
[data-brand="hive"] .agent__brain { letter-spacing: .12em; }
[data-brand="hive"] .agent__flag, [data-brand="hive"] .agent__flag--add { background: var(--y); color: var(--onyx); font-family: var(--hv); font-weight: 700; z-index: 1; }
[data-brand="hive"] .agent__flag--add { background: var(--ivory); }
[data-brand="hive"] .mpanel .hv-panel-head { display: flex; align-items: center; gap: 1rem; }
[data-brand="hive"] .mpanel .hv-panel-head img { height: 4.2rem; width: auto; flex: none; }
[data-brand="hive"] .mpanel .hv-panel-head p { margin-top: .2rem; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }

/* 03: yellow sheet, onyx cards */
[data-brand="hive"] .use { background: var(--onyx); border-color: transparent; border-radius: 16px; }
[data-brand="hive"] .use:hover { border-color: var(--onyx); box-shadow: 0 24px 50px -28px rgba(11, 11, 15, .8); }
[data-brand="hive"] .use__tag, [data-brand="hive"] .use--ember .use__tag { background: var(--y); color: var(--onyx); font-family: var(--hv); font-weight: 700; }
[data-brand="hive"] .use__n { color: rgba(255, 197, 49, .22); }
[data-brand="hive"] .use__go, [data-brand="hive"] .use--ember .use__go { color: var(--y); font-family: var(--hv); font-weight: 600; }
[data-brand="hive"] .use h3, [data-brand="hive"] .use--ember h3 { color: var(--ivory); }
[data-brand="hive"] .uses__more { border: 0; background: var(--onyx); border-radius: 14px; }
[data-brand="hive"] .uses__more span { color: var(--y); font-family: var(--hv); font-weight: 600; }

/* flows, steps, chips and tabs */
[data-brand="hive"] :is(.flow li, .loop li).is-on { border-color: var(--acc); background: var(--card); box-shadow: 0 0 0 1px var(--acc) inset; }
[data-brand="hive"] .flow__n { border: 0; color: var(--blue); font-family: var(--hv); font-weight: 700; border-radius: 0; clip-path: var(--hexpath); background: rgba(255, 197, 49, .16); }
[data-brand="hive"] :is(.hv-ivory, .msheet--paper) .flow__n { background: rgba(227, 167, 59, .2); }
[data-brand="hive"] .hv-yellow .flow__n { background: rgba(11, 11, 15, .1); }
[data-brand="hive"] .is-on > .flow__n, [data-brand="hive"] .voice__steps .is-on > .flow__n { background: var(--acc); color: var(--acc-ink); }
[data-brand="hive"] :is(.flow li, .loop li)::after { background: var(--line); }
[data-brand="hive"] .voice { border: 1px solid rgba(255, 197, 49, .5); background: #15140F; border-radius: 16px; box-shadow: none; }
[data-brand="hive"] .voice__tag { background: var(--y); color: var(--onyx); font-family: var(--hv); font-weight: 700; }
[data-brand="hive"] .voice__steps li { border-color: var(--line); }
[data-brand="hive"] .voice__steps li.is-on { border-color: var(--y); background: #1B1A12; }
[data-brand="hive"] .voice__steps .flow__n { color: var(--y); }
[data-brand="hive"] :is(.skills__chips, .ladder__steps, .rules__tabs) button { font-family: var(--hv); border-color: var(--line); }
[data-brand="hive"] :is(.skills__chips, .rules__tabs) button:hover { border-color: var(--acc); color: var(--ink); }
[data-brand="hive"] :is(.skills__chips, .rules__tabs) button[aria-selected="true"] { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
[data-brand="hive"] .ladder__steps button { background: var(--card); color: var(--ink); border-radius: 10px; }
[data-brand="hive"] .ladder__steps button span { color: var(--honey-ink); font-family: var(--hv); font-weight: 700; }
[data-brand="hive"] .ladder__steps button[aria-selected="true"] { background: var(--onyx); color: var(--ivory); border-color: var(--onyx); }
[data-brand="hive"] .ladder__steps button[aria-selected="true"] span { color: var(--y); }
[data-brand="hive"] .steps4 li { border-top: 3px solid var(--acc); }
[data-brand="hive"] .steps4 span, [data-brand="hive"] .days span { color: var(--blue); font-family: var(--hv); font-weight: 700; }
[data-brand="hive"] .days li { border-top: 3px solid var(--acc); }
[data-brand="hive"] .estats { border-color: var(--line); }
[data-brand="hive"] .made { border-top-color: var(--line); }
[data-brand="hive"] .made__reel iframe { border-color: var(--line); border-radius: 14px; }
[data-brand="hive"] .made__link { color: var(--y); font-family: var(--hv); font-weight: 600; }
[data-brand="hive"] .chips span { border-color: var(--line); background: transparent; }

/* 10 the library tiles: yellow on onyx, flat */
[data-brand="hive"] .tile, [data-brand="hive"] .tile--ember { --c1: var(--y); --c2: var(--y); --glow: rgba(255, 197, 49, .7); background: var(--card); border-color: var(--line); border-radius: 14px; }
[data-brand="hive"] .tile__n { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--y); }
[data-brand="hive"] .tile[aria-selected="true"]::after { background: var(--y); }
[data-brand="hive"] .tile__tag, [data-brand="hive"] .tile--ember .tile__tag { color: var(--y); }
[data-brand="hive"] .fx-hooks i { background: var(--onyx); border-color: rgba(255, 197, 49, .5) !important; color: var(--ivory); font-family: var(--hv); text-transform: none; }
[data-brand="hive"] .fx-radar { border-color: rgba(255, 197, 49, .35); background: radial-gradient(circle, transparent 30%, rgba(255, 197, 49, .25) 31%, transparent 33%, transparent 62%, rgba(255, 197, 49, .25) 63%, transparent 65%); }
[data-brand="hive"] .fx-radar i { background: conic-gradient(from 0deg, rgba(255, 197, 49, .7), transparent 28%); }
[data-brand="hive"] .fx-radar::after { background: var(--y); box-shadow: 0 0 10px var(--y); }
[data-brand="hive"] .fx-orbit::before { background: var(--y); box-shadow: 0 0 18px rgba(255, 197, 49, .6); }
[data-brand="hive"] .fx-orbit i::after { background: var(--y); box-shadow: none; }
[data-brand="hive"] .fx-wipe { background: #1B1B22; border-color: var(--line); }
[data-brand="hive"] .fx-wipe::before { font-family: var(--hv); }
[data-brand="hive"] .fx-wipe i { background: var(--y); }
[data-brand="hive"] .fx-wipe i::before { font-family: var(--hv); color: rgba(11, 11, 15, .5); }
[data-brand="hive"] .fx-eq i { background: var(--y); }
[data-brand="hive"] .fx-frames i { border-color: var(--line); }
[data-brand="hive"] .fx-frames i:nth-child(1) { background: #1B1B22; }
[data-brand="hive"] .fx-frames i:nth-child(2) { background: var(--y); }
[data-brand="hive"] .fx-frames i:nth-child(3) { background: var(--ivory); }
[data-brand="hive"] .fam i, [data-brand="hive"] .fam--iris i { background: var(--y); box-shadow: none; }
[data-brand="hive"] .vault__label b, [data-brand="hive"] .mpanel--ember .vault__label b { color: var(--y); }

/* 11 the founder, on ivory */
[data-brand="hive"] .fdr__photo img, [data-brand="hive"] .fdr__strip img { border-radius: 12px; border-color: var(--line); }
[data-brand="hive"] .fdr__path li { border-color: var(--line); }

/* 12 the deal, on yellow */
[data-brand="hive"] .once { border: 0; border-radius: 16px; background: var(--onyx); }
[data-brand="hive"] .once__big { color: var(--y); }
[data-brand="hive"] .pay li { background: var(--card); border-color: var(--line); }
[data-brand="hive"] .pay b { color: var(--onyx); font-family: var(--hv); font-weight: 700; }
[data-brand="hive"] .hv-yellow .btn--ghost { color: var(--onyx); box-shadow: 0 0 0 1.5px var(--onyx) inset !important; }
[data-brand="hive"] .hv-yellow .btn--ghost::before { background: var(--onyx); }
[data-brand="hive"] .hv-yellow .btn--ghost:hover { color: var(--y); }

/* Arabic: no letter spacing (it breaks joined letters) and a step up in size for the small labels */
[dir="rtl"] [data-brand="hive"] :is(.eyebrow, .agent__job, .hive-card__job, .hv-lockup__sub, .agent__brain, .hv-flag, .agent__flag, .use__tag, .voice__tag, .msheet__head, .msheet__foot, .link) { letter-spacing: 0; }
[dir="rtl"] [data-brand="hive"] :is(.agent__job, .hive-card .hive-card__job) { font-size: .78rem; }
[dir="rtl"] [data-brand="hive"] .hv-lockup__sub { font-size: .72rem; }
[dir="rtl"] [data-brand="hive"] main .eyebrow { font-size: .86rem; }

/* ---------- 7. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  [data-brand="hive"] .crew__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hive-grid { gap: .7rem; }
  .hive-card { padding: .9rem .85rem 1rem; }
  .hive-card img { height: 7rem; }
  .hive-card p { font-size: .82rem; }
  .hive-plus { grid-template-columns: minmax(0, 1fr); }
  .hv-lockup__name { font-size: 1.7rem; }
  .hv-lockup svg { width: 2.6rem; height: 2.6rem; }
  [data-brand="hive"] .agent__bee { height: 5rem; }
  [data-brand="hive"] .agent__line { display: none; }
  .hv-band { margin: 0 -1.15rem; }
}

/* ---------- 8. PRINT: same themes on paper ---------- */
@media print {
  [data-brand="hive"], [data-brand="hive"] body, [data-brand="hive"] main { background: var(--onyx) !important; }
  [data-brand="hive"] .msheet { border-radius: 0; border: 0; }
  [data-brand="hive"] .crew__cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: .5rem; }
  [data-brand="hive"] .agent { padding: .6rem .7rem .7rem; }
  [data-brand="hive"] .agent__bee { height: 3.4rem; margin-bottom: .3rem; }
  /* print shows all eight panels at once: four across, tighter, so page 02 stays one A4 page */
  [data-brand="hive"] .crew { margin-top: 1.2rem; gap: .7rem; }
  [data-brand="hive"] .crew__panels { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: .5rem; }
  [data-brand="hive"] .crew__panels .mpanel { padding: .7rem .75rem; }
  [data-brand="hive"] .crew__panels h3 { font-size: 1rem; }
  [data-brand="hive"] .crew__panels .ticks { gap: .3rem; margin-top: .5rem; }
  [data-brand="hive"] .crew__panels .ticks li { font-size: .84em; line-height: 1.38; padding-left: 1.1rem; }
  [data-brand="hive"] .crew__panels .link { display: none; }
  [data-brand="hive"] #p5 .made { margin-top: 1.2rem; padding-top: 1rem; }
  [data-brand="hive"] #p5 :is(.voice, .skills) { margin-top: 1.3rem; }
  [data-brand="hive"] #p5 .msheet__lead { margin-top: .8rem; }
}
