@import url('/vendor/patternfly/tokens.css');
@import url('/vendor/patternfly/fonts.css');
@import url('/vendor/patternfly/button.css');
@import url('/vendor/patternfly/card.css');

/* Use PatternFly's native blue palette. Hardware/channel colours are data. */
:root {
  --bear-ui-hover: #f2f8ff;
  --bear-ui-selected: var(--pf-t--global--color--brand--subtle--default);
  --bear-ui-selected-text: var(--pf-t--global--color--brand--400);
  --bear-workspace: #f2f4f7;
  --bear-surface-line: #dce1e7;
}

/* PatternFly foundations for BEAR. The shared header retains its own CSS. */
body.pf-theme {
  --paper: #fff;
  --ink: var(--pf-t--global--text--color--regular);
  --rule: var(--pf-t--global--border--color--default);
  --accent: var(--pf-t--global--color--brand--default);
  --line: var(--pf-t--global--border--color--default);
  --green: var(--pf-t--global--color--brand--default);
  --muted: var(--pf-t--global--text--color--subtle);
  background: #fff;
  color: var(--pf-t--global--text--color--regular);
  font-family: var(--pf-t--global--font--family--body);
}
.pf-theme :is(main, .hero, dialog, .mobile-tabs) :is(button, input, select, textarea) { font-family: inherit; }
.pf-theme :is(main, .hero, dialog) :is(h1,h2,h3,h4) { font-family: var(--pf-t--global--font--family--heading); }
.pf-theme :is(main, .hero, dialog, .mobile-tabs) :focus-visible { outline: 2px solid var(--pf-t--global--color--brand--default); outline-offset: 3px; }

/* Let the component's own state variables control its native button styling. */
.pf-theme .pf-v6-c-button {
  --pf-v6-c-button--FontSize: 13px;
  --pf-v6-c-button--BorderRadius: var(--pf-t--global--border--radius--small);
  align-items: center;
  min-height: 36px;
  font-size: var(--pf-v6-c-button--FontSize);
  line-height: var(--pf-v6-c-button--LineHeight);
  font-weight: var(--pf-v6-c-button--FontWeight);
  color: var(--pf-v6-c-button--Color);
  background: var(--pf-v6-c-button--BackgroundColor);
  padding: var(--pf-v6-c-button--PaddingBlockStart) var(--pf-v6-c-button--PaddingInlineEnd) var(--pf-v6-c-button--PaddingBlockEnd) var(--pf-v6-c-button--PaddingInlineStart);
  border: 0;
  border-radius: var(--pf-v6-c-button--BorderRadius)!important;
  box-shadow: none;
}
.pf-theme .pf-v6-c-button:disabled { opacity: .45; cursor: not-allowed; }
.pf-theme .view-tools .pf-v6-c-button {
  --pf-v6-c-button--FontSize: 11px;
  --pf-v6-c-button--PaddingInlineStart: 10px;
  --pf-v6-c-button--PaddingInlineEnd: 10px;
  min-width: 34px;
}
.pf-theme .pf-v6-c-button.pf-m-control { min-width: 36px; }
.pf-theme.home .hero-copy { width: 42%; padding: 24px 0 12px; }
.pf-theme.home .hero h1 {
  font-size: clamp(32px, 4.1vw, 78px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 22px;
}
.pf-theme.home .hero .eyebrow { margin-bottom: 22px; }
.pf-theme.home .hero-options { gap: 10px; }
.pf-theme.home .hero-link { color: var(--pf-t--global--color--brand--default); border-color: currentColor; }
.pf-theme.home .catalog-heading h2 { font-weight: 600; }
.pf-theme.home .catalog-toolbar { border-top-color: var(--line); }
.pf-theme.home .filter { border-radius: 0; font-weight: 500; }
.pf-theme.home .filter.active { color: var(--accent); border-color: var(--accent); }
.pf-theme.home .search { border: 1px solid var(--line); border-bottom-color: #8a8d90; border-radius: 4px; padding: 0 12px; }
.pf-theme.home .search:focus-within { border-color: var(--accent); box-shadow: 0 1px var(--accent); }
.pf-theme.home .product-card { overflow: hidden; border-radius: var(--pf-v6-c-card--BorderRadius); }
.pf-theme.home .product-image { border: 0; border-bottom: 1px solid var(--line); }
.pf-theme.home .product-card :is(.product-meta,h2,.product-description,.product-bottom) { margin-left: 14px; margin-right: 14px; }
.pf-theme.home .product-bottom { padding-bottom: 12px; }
.pf-theme.home .category, .pf-theme.home .product-number { color: var(--muted); }
.pf-theme.home .product-card h2 { font-weight: 600; }
.pf-theme.home .product-description, .pf-theme.home .price { color: var(--muted); }
.pf-theme.home .collection-note { border-top: 1px solid var(--line); }
.pf-theme.home footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.pf-theme.home .footer-brand { color: var(--ink); }

/* Keep the existing editor layout and native form behaviour. */
.pf-theme :is(.project-bar,.surface,.configuration,.config-section,.mobile-tabs,dialog) { background: #fff; border-color: var(--line); }
.pf-theme :is(.library,.inspector,.preview-card,.spec-card) { border-radius: 8px!important; }
.pf-theme :is(.inspector,.configuration,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]),select,textarea),
.pf-theme #rack-size {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-color: #8a8d90;
  border-radius: 4px!important;
  color: var(--pf-t--global--text--color--regular);
}
.pf-theme :is(.inspector,.configuration,dialog) :is(input,select,textarea):focus { border-color: var(--accent); }
.pf-theme :is(.help,.muted,.view-hint,.eyebrow,.choice-caption small) { color: var(--muted); }
.pf-theme :is(.port-picker,.cassette-choice-grid,.direct-choices,.button-row,.view-tools,.camera-buttons,.mode-buttons,.mobile-tabs) button {
  border-color: var(--line);
  border-radius: 4px!important;
  color: var(--pf-t--global--text--color--regular);
  background: #fff;
}
.pf-theme :is(.port-picker,.cassette-choice-grid) button { border-radius: 8px!important; }
.pf-theme :is(.port-picker,.cassette-choice-grid,.direct-choices,.button-row,.view-tools,.camera-buttons,.mode-buttons,.mobile-tabs) button:hover:not(:disabled) { border-color: var(--accent); background: var(--bear-ui-hover); }
.pf-theme :is(.port-picker,.cassette-choice-grid,.direct-choices,.button-row,.mobile-tabs,.camera-buttons,.mode-buttons) button[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--bear-ui-selected);
  color: var(--bear-ui-selected-text);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pf-theme :is(.port-picker,.cassette-choice-grid) button[aria-pressed=true]::after { color: var(--accent); }
.pf-theme [aria-pressed=true]>.choice-caption { background: var(--bear-ui-selected); }
.pf-theme .choice-caption { border-color: var(--line); }
.pf-theme .port-picture, .pf-theme .cassette-choice-image { background: #f2f4f7; }
.pf-theme .add-card { border-color: var(--line); border-radius: 8px!important; }
.pf-theme .add-card:hover { border-color: var(--accent); }
.pf-theme .add-info b { color: var(--accent); }
.pf-theme .channel-editor { background: #f5f7fa; border-color: var(--line); }
.pf-theme .inspector section, .pf-theme .inspector details { border-color: var(--line); }
.pf-theme .type-badge { background: #f2f2f2; border-radius: 4px!important; color: var(--muted); }
.pf-theme dialog { background: #fff; border-radius: 12px!important; box-shadow: var(--pf-t--global--box-shadow--lg); }
.pf-theme .danger { color: #b1380b; }
.pf-theme.studio-body .studio-panel .pf-v6-c-button {
  --pf-v6-c-button--FontSize: 11px;
  max-width: 100%;
  white-space: normal;
}

/* Official Red Hat families: display titles, readable UI, monospaced metadata. */
.pf-theme.home :is(.hero .eyebrow,.hero-build-detail,.catalog-heading > span,.filter span,.results-line,.image-tag,.category,.product-number,.note-label),
.pf-theme :is(.view-top,.type-badge,.library-note > span) {
  font-family: var(--pf-t--global--font--family--mono);
}
.pf-theme.home .collection-note p { font-family: var(--pf-t--global--font--family--heading); }
.pf-theme.home :is(.intro-copy,.catalog-heading p,.filter,.results-line,.note-label,.collection-note p span) { color: var(--muted); }

/* A cool, quiet surround separates the shop from the warm filmed studio.
   Keep the footage's original colour rather than recolouring the hardware. */
.pf-theme.home .hero {
  background: var(--bear-workspace);
  border-bottom: 1px solid var(--bear-surface-line);
}
.pf-theme.home .hero:not([data-mode="film"]) .hero-media {
  inset: 22px 3.6% 96px 46%;
  background: #e8e4de;
  border: 1px solid #d8d5cf;
  border-radius: 8px;
  overflow: hidden;
}
.pf-theme.home .hero-build-detail {
  top: 34px;
  right: 4.5%;
  color: #52565b;
}
.pf-theme.home .hero-bottom { border-color: var(--bear-surface-line); }
.pf-theme.home :is(.hero-modes,#hero-pause) { border-color: #c5cdd7; }
.pf-theme.home .hero-modes button { color: var(--muted); }
.pf-theme.home .hero-modes button[aria-pressed="true"] { color: var(--accent); }
.pf-theme.home .hero-build-track { background: #dce5f0; }
.pf-theme.home .hero[data-mode="film"] .hero-media::after {
  background: linear-gradient(90deg,#f2f4f7 0%,#f2f4f7f5 27%,#f2f4f700 80%);
}
.pf-theme.home .collection-note {
  background: var(--bear-workspace);
  border: 1px solid var(--bear-surface-line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 40px;
}
.pf-theme.home .viewer-tools button { background: #ffffffed; color: #414a56; }
.pf-theme .workspace { background: var(--bear-workspace); }
.pf-theme .view-card { border-color: var(--bear-surface-line); }
.pf-theme .view-top { background: #fff; border-bottom: 1px solid var(--bear-surface-line); color: var(--muted); }
.pf-theme .view-top i { background: var(--accent); }
.pf-theme :is(.view-bottom,.view-hint) { background: #fff; }
.pf-theme .view-bottom { border-top: 1px solid var(--bear-surface-line); padding-top: 10px; }
.pf-theme .inspector label { color: var(--muted); }
@media(max-width:900px) {
  .pf-theme.home .catalog-toolbar .search { margin: 6px 0; border-top: 1px solid var(--line); padding-left: 12px; }
}
@media(max-width:650px) {
  .pf-theme.home .hero-copy { width: 100%; padding: 4px 0 8px; }
  .pf-theme.home .hero h1 { font-size: clamp(30px, 8.6vw, 54px); line-height: 1.12; margin-bottom: 18px; }
  .pf-theme.home .hero:not([data-mode="film"]) .hero-media { inset: auto; margin: 20px 0 10px; }
  .pf-theme.home .hero-build-detail { margin-bottom: 12px; }
  .pf-theme.home .collection-note { padding: 20px; margin-bottom: 28px; }
  .pf-theme .pf-v6-c-button { min-height: 44px; }
  .pf-theme.home .product-card :is(.product-meta,h2,.product-description,.product-bottom) { margin-left: 10px; margin-right: 10px; }
  .pf-theme.home .product-bottom { flex-wrap: wrap; gap: 8px; }
  .pf-theme.home .hero-options { gap: 6px; }
}
