/* hermes-reps: represented brands (list + detail). Uses the site theme variables (dark default, light via html[data-theme="light"]). */
.repb-hero { min-height: 620px; }
.repb-hero .rep-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.repb-stats { display: flex; gap: 0; margin-top: 34px; border: 1px solid var(--border-color); background: rgba(5,5,8,.45); backdrop-filter: var(--glass-blur); width: max-content; max-width: 100%; }
.repb-stats div { padding: 14px 26px; border-right: 1px solid var(--border-color); }
.repb-stats div:last-child { border-right: 0; }
.repb-stats strong { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--accent-text, #f2920b); line-height: 1; }
.repb-stats span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #cfd5dd; }
.repb-hero-panel { position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.14); background: rgba(8,9,13,.62); backdrop-filter: var(--glass-blur); padding: 22px; }
.repb-logo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.repb-logo-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #fff; border-radius: 6px; padding: 10px 14px; transition: transform .2s ease, box-shadow .2s ease; }
.repb-logo-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.repb-logo-tile img { max-width: 100%; max-height: 44px; object-fit: contain; }
.repb-logo-tile strong { color: #10141a; font-size: .8rem; text-align: center; }
.repb-hero-panel-copy span { color: var(--accent-text, #f2920b); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.repb-hero-panel-copy h2 { font-family: var(--font-heading); font-size: clamp(1.3rem, 2vw, 1.75rem); color: #fff; margin: 8px 0; line-height: 1.15; }
.repb-hero-panel-copy p { color: #c7ced8; font-size: .95rem; line-height: 1.6; }

.repb-directory { padding: 90px 0 100px; background: var(--bg-deep); }
.repb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.repb-head h2 { font-family: var(--font-heading); font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 900; color: var(--text-main); line-height: 1.02; margin: 10px 0 12px; max-width: 760px; }
.repb-head p { color: var(--text-muted); max-width: 640px; line-height: 1.6; }
.repb-chips { position: sticky; top: calc(var(--header-h, 96px) + 8px); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 34px; background: var(--bg-card-solid); border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.repb-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border-color); color: var(--text-main); font-size: .86rem; font-weight: 700; text-decoration: none; transition: border-color .2s, background .2s; }
.repb-chips a svg { width: 16px; height: 16px; color: var(--accent-text, #f2920b); }
.repb-chips a em { font-style: normal; font-size: .72rem; background: var(--accent); color: #111; border-radius: 99px; padding: 1px 7px; }
.repb-chips a:hover, .repb-chips a.is-active { border-color: var(--accent); background: rgba(242,146,11,.1); }
.repb-group { margin-bottom: 54px; scroll-margin-top: calc(var(--header-h, 96px) + 90px); }
.repb-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.repb-group-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--accent); color: #111; }
.repb-group-icon svg { width: 20px; height: 20px; }
.repb-group-head h3 { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 900; color: var(--text-main); margin: 0; }
.repb-group-count { margin-left: auto; color: var(--text-dim); font-weight: 800; }
.repb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 22px; }
.repb-card { display: flex; flex-direction: column; background: var(--bg-card-solid); border: 1px solid var(--border-color); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.repb-card:hover { transform: translateY(-4px); border-color: rgba(242,146,11,.55); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.repb-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #1b1f27; overflow: visible; }
.repb-card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.repb-card:hover .repb-card-media > img { transform: scale(1.04); }
.repb-card-media { overflow: hidden; }
.repb-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 35%, transparent 60%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.repb-type { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--accent); color: #111; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.repb-type svg { width: 14px; height: 14px; }
.repb-sample { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 5px 9px; background: rgba(15,23,42,.85); color: #fde68a; border: 1px dashed #fbbf24; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.repb-card-logo { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: grid; place-items: center; width: 132px; height: 58px; padding: 8px 12px; background: #fff; border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.repb-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.repb-card-logo strong { color: #10141a; }
.repb-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.repb-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-dim); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.repb-meta span { display: inline-flex; align-items: center; gap: 5px; }
.repb-meta svg { width: 14px; height: 14px; color: var(--accent-text, #f2920b); }
.repb-card h4 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 900; line-height: 1.15; margin: 0; }
.repb-card h4 a { color: var(--text-main); text-decoration: none; }
.repb-card h4 a:hover { color: var(--accent-text, #f2920b); }
.repb-card-body > p { color: var(--text-muted); line-height: 1.6; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.repb-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 2px 0 0; }
.repb-tags li { font-size: .78rem; padding: 4px 9px; border: 1px solid var(--border-color); color: var(--text-main); background: var(--bg-card); }
.repb-tags li.is-more { color: var(--text-dim); }
.repb-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-color); }
.repb-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text, #f2920b); font-weight: 800; font-size: .9rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.repb-link svg { width: 16px; height: 16px; transition: transform .2s; }
.repb-link:hover svg { transform: translateX(4px); }
.repb-ghost { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.repb-ghost:hover { color: var(--text-main); border-color: var(--accent); }
.repb-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; margin-top: 30px; padding: 40px 44px; background: linear-gradient(120deg, rgba(242,146,11,.16), rgba(242,146,11,.02)), var(--bg-card-solid); border: 1px solid rgba(242,146,11,.4); }
.repb-cta h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 900; color: var(--text-main); margin: 8px 0 10px; line-height: 1.1; }
.repb-cta p { color: var(--text-muted); max-width: 640px; line-height: 1.6; }
.repb-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* detail */
.repd-hero { position: relative; padding: calc(var(--header-h, 96px) + var(--top-strip-h, 36px) + 50px) 0 70px; background: linear-gradient(90deg, rgba(3,3,5,.96) 0%, rgba(8,9,13,.84) 48%, rgba(8,9,13,.4) 100%), var(--repd-cover) center/cover no-repeat, #0b0d12; color: #fff; }
.repd-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; }
.repd-hero .breadcrumb, .repd-hero .breadcrumb a { color: #cfd5dd; }
.repd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.repd-badges .repb-type, .repd-badges .repb-sample { position: static; }
.repd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.repd-badge svg { width: 14px; height: 14px; color: var(--accent-text, #f2920b); }
.repd-hero h1 { font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 900; line-height: .98; margin: 0 0 16px; color: #fff; }
.repd-hero p { font-size: 1.12rem; line-height: 1.6; color: #d6dce4; max-width: 720px; margin-bottom: 26px; }
.repd-hero-logo { display: grid; place-items: center; background: #fff; padding: 26px; aspect-ratio: 16 / 9; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.repd-hero-logo img { max-width: 100%; max-height: 110px; object-fit: contain; }
.repd-hero-logo strong { color: #10141a; font-size: 1.4rem; text-align: center; }
.repd-body { padding: 60px 0 100px; background: var(--bg-deep); }
.repd-sample-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 30px; border: 1px dashed #fbbf24; background: rgba(251,191,36,.08); color: var(--text-main); font-size: .92rem; }
.repd-sample-note svg { width: 18px; height: 18px; color: #f59e0b; flex-shrink: 0; }
.repd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.repd-block { margin-bottom: 48px; }
.repd-block .section-kicker { display: inline-block; margin-bottom: 18px; }
.repd-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }
.repd-text p:first-child { color: var(--text-main); font-size: 1.18rem; }
.repd-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.repd-product { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 16px 18px; background: var(--bg-card-solid); border: 1px solid var(--border-color); border-left: 3px solid var(--accent); }
.repd-product-no { grid-row: span 2; font-family: var(--font-heading); font-weight: 900; font-size: 1.4rem; color: var(--accent-text, #f2920b); }
.repd-product strong { color: var(--text-main); font-size: 1rem; line-height: 1.3; }
.repd-product a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.repd-product a:hover { color: var(--accent-text, #f2920b); }
.repd-product a svg { width: 13px; height: 13px; }
.repd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.repd-gallery a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border-color); }
.repd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.repd-gallery a:hover img { transform: scale(1.05); }
.repd-side { position: sticky; top: calc(var(--header-h, 96px) + 24px); }
.repd-card { background: var(--bg-card-solid); border: 1px solid var(--border-color); }
.repd-card-logo { display: grid; place-items: center; background: #fff; padding: 22px; aspect-ratio: 16 / 7; border-bottom: 1px solid var(--border-color); }
.repd-card-logo img { max-width: 80%; max-height: 80px; object-fit: contain; }
.repd-card-logo strong { color: #10141a; }
.repd-facts { margin: 0; padding: 6px 22px; }
.repd-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.repd-facts dt { color: var(--text-dim); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.repd-facts dd { margin: 0; color: var(--text-main); font-weight: 700; text-align: right; }
.repd-facts dd a { color: var(--accent-text, #f2920b); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.repd-facts dd a svg { width: 14px; height: 14px; }
.repd-card-cta { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.repd-card-cta strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--text-main); }
.repd-card-cta p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin-bottom: 6px; }
.repd-card-cta .btn-primary, .repd-card-cta .btn-outline { justify-content: center; text-align: center; width: 100%; }
.repd-contact-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-size: .88rem; text-decoration: none; margin-top: 4px; }
.repd-contact-link svg { width: 15px; height: 15px; color: var(--accent-text, #f2920b); }
.repd-others { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.repd-others-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.repd-others-head h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 900; color: var(--text-main); margin: 0; }
.repd-others-head a { color: var(--accent-text, #f2920b); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.repd-others-head a svg { width: 16px; height: 16px; }
.repb-card.is-compact .repb-card-logo { width: 110px; height: 48px; }

html[data-theme="light"] .repb-chips { box-shadow: 0 10px 26px rgba(15,23,42,.08); }
html[data-theme="light"] .repb-card:hover { box-shadow: 0 18px 36px rgba(15,23,42,.12); }
html[data-theme="light"] .repb-card-logo, html[data-theme="light"] .repd-hero-logo { box-shadow: 0 8px 22px rgba(15,23,42,.18); }

@media (max-width: 1080px) {
  .repb-hero .rep-hero-grid, .repd-grid { grid-template-columns: 1fr; }
  .repd-side { position: static; }
  .repd-hero-grid { grid-template-columns: 1fr; }
  .repd-hero-logo { max-width: 300px; }
}
@media (max-width: 640px) {
  .repb-hero { min-height: 0; }
  .repb-stats { width: 100%; }
  .repb-stats div { flex: 1; padding: 12px 10px; text-align: center; }
  .repb-stats strong { font-size: 1.6rem; }
  .repb-logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repb-directory { padding: 60px 0 70px; }
  .repb-head { flex-direction: column; align-items: flex-start; }
  .repb-chips { position: static; overflow-x: auto; flex-wrap: nowrap; }
  .repb-chips a { white-space: nowrap; flex-shrink: 0; }
  .repb-cta { grid-template-columns: 1fr; padding: 26px 22px; }
  .repd-hero { padding-top: calc(var(--header-h, 76px) + 40px); }
  .repd-hero-logo { padding: 16px; max-width: 220px; }
  .repd-hero-logo img { max-height: 70px; }
  .repb-card-logo { width: 112px; height: 50px; }
}

/* hermes-reps-b: one grid + filter chips */
.repb-anchor { display: block; position: relative; top: -140px; visibility: hidden; height: 0; }
.repb-grid[data-repb-grid] { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.repb-card[hidden] { display: none !important; }

/* hermes-reps-c: light theme hero panel/stats contrast */
html[data-theme="light"] .repb-hero-panel { background: rgba(16,20,26,.9); border-color: rgba(16,20,26,.2); }
html[data-theme="light"] .repb-stats { background: rgba(255,255,255,.92); border-color: rgba(16,20,26,.14); }
html[data-theme="light"] .repb-stats span { color: #516071; }
html[data-theme="light"] .repb-stats div { border-color: rgba(16,20,26,.14); }

/* hermes-reps-d: panel paragraph keeps light text in light theme (global light .rep-hero p rule darkened it) */
html[data-theme="light"] .repb-hero .repb-hero-panel-copy p { color: #d6dce4 !important; }
html[data-theme="light"] .repb-hero .repb-hero-panel-copy h2 { color: #fff !important; }

/* hermes-rep-catalogs */
.repd-docs { display: grid; gap: 10px; }
.repd-doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card, rgba(255,255,255,.03)); color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.repd-doc:hover { border-color: var(--accent); transform: translateY(-2px); }
.repd-doc-icon { flex: 0 0 auto; width: 42px; height: 50px; border-radius: 5px; background: #dc2626; color: #fff; font-weight: 800; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.repd-doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.repd-doc-text strong { font-size: 1rem; line-height: 1.3; }
.repd-doc-text small { opacity: .7; }
.repd-doc-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; color: var(--accent-text, #f2920b); white-space: nowrap; }
.repd-doc-cta svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .repd-doc { flex-wrap: wrap; } .repd-doc-cta { width: 100%; justify-content: flex-end; } }

