/* Red Hat Display font-face declarations */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/red-hat-display-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/red-hat-display-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/red-hat-display-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/red-hat-display-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/red-hat-display-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/red-hat-display-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/red-hat-display-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/red-hat-display-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Red Hat Mono font-face declarations */
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/red-hat-mono-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/red-hat-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/red-hat-mono-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/red-hat-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Red Hat Text font-face declarations */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/red-hat-text-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/red-hat-text-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/red-hat-text-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/red-hat-text-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/red-hat-text-latinext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/red-hat-text-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base styles */
body {
  margin: 0;
  background: #F0F0F0;
  font-family: 'Red Hat Text', sans-serif;
  color: #151515;
}

a {
  color: #0066CC;
  text-decoration: none;
}

a:hover {
  color: #004080;
  text-decoration: underline;
}

* {
  box-sizing: border-box;
}

code {
  font-family: 'Red Hat Mono', monospace;
  font-size: .9em;
  background: #F3F3F3;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Navigation */
.nav {
  background: #151515;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 56px;
  gap: 32px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 24px;
  align-self: stretch;
}

.nav__link {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav__link--active {
  border-bottom-color: #EE0000;
}

/* Breadcrumb */
.crumb {
  font-size: 13px;
  color: #6A6E73;
  margin-bottom: 14px;
}

/* Fluid page shells; constrain prose, not the available catalog width. */
.catalog-layout {
  width: 100%;
  min-width: 0;
  padding: 24px clamp(16px, 2vw, 48px) 50px;
}

.panel p,
.selectors > p,
.workload-page p {
  max-width: 75ch;
}

.filter-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

/* Model card */
.model-card {
  background: #fff;
  border: 1px solid #D2D2D2;
  border-radius: 6px 6px 0 0;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.model-card h1 {
  margin: 0 0 8px;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.model-meta > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.model-card p {
  margin: 8px 0 0;
  max-width: 75ch;
}

/* Selectors */
.selectors {
  background: #fff;
  border: 1px solid #D2D2D2;
  border-top: 1px solid #F0F0F0;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sel-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid #F0F0F0;
}

.sel-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sel-label {
  font-family: monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6A6E73;
  width: 132px;
  flex: none;
  padding-top: 10px;
}

/* Visible choices: native radios in wrapping, compact cards. */
.model-options,
.recipe-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.model-options legend,
.recipe-options legend {
  padding: 0;
  margin-bottom: 10px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.model-option,
.recipe-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 4px 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #D2D2D2;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.model-option input[type="radio"],
.recipe-option input[type="radio"] {
  grid-row: 1 / 3;
  margin: 3px 0 0;
  accent-color: #0066CC;
}

.model-option__name,
.model-option__id {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.model-option__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.model-option__id {
  font-family: 'Red Hat Mono', monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #6A6E73;
}

.recipe-option > :not(input) {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.4;
}

.recipe-option > :nth-child(2) {
  font-weight: 600;
}

.model-option--selected,
.recipe-option--selected {
  border-color: #0066CC;
  background: #F0F8FF;
  box-shadow: inset 0 0 0 1px #0066CC;
}

.recipe-option__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #C7C7C7;
  border-radius: 999px;
  background: #F0F0F0;
  color: #3C3F42;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.status-badge--scope {
  background: #F2EEFA;
  border-color: #C7B6E0;
  color: #543885;
}

.status-badge--pending {
  background: #FFF4D6;
  border-color: #E8C56A;
  color: #795600;
}

.status-badge--contributed {
  background: #E7F1FA;
  border-color: #9EC5E8;
  color: #004B95;
}

.status-badge--verified {
  background: #E9F4E5;
  border-color: #A3C994;
  color: #2D5E20;
}

.model-option:has(input:focus-visible),
.recipe-option:has(input:focus-visible) {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}

/* Buttons */
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #F0F0F0;
}

.filter-options legend {
  margin-bottom: 8px;
  padding: 0;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #D2D2D2;
  border-radius: 6px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.filter-option input[type="radio"] {
  flex: none;
  margin: 0;
  accent-color: #0066CC;
}

.filter-option > :not(input) {
  min-width: 0;
}

.filter-option--selected {
  border-color: #0066CC;
  background: #F0F8FF;
  box-shadow: inset 0 0 0 1px #0066CC;
}

.filter-option--unavailable {
  color: #8A8D90;
  background: #F5F5F5;
  border-color: #D2D2D2;
  box-shadow: none;
  cursor: not-allowed;
}

.filter-option--unavailable input[type="radio"] {
  cursor: not-allowed;
}

.filter-options:disabled .filter-option {
  color: #8A8D90;
  background: #F5F5F5;
  border-color: #D2D2D2;
  box-shadow: none;
  cursor: not-allowed;
}

.filter-option:has(input:focus-visible) {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}

.btn {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
  color: #3C3F42;
  border: 1px solid #D2D2D2;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn--active {
  background: #151515;
  color: #fff;
  border-color: #151515;
}

.btn--blocked {
  background: #FAFAFA;
  color: #8A8D90;
  border-style: dashed;
  cursor: not-allowed;
}

/* Spec grid */
.spec-grid {
  border: 1px solid #D2D2D2;
  border-top: 3px solid #EE0000;
  padding: 16px 18px;
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 22px;
}

.spec {
  display: flex;
  flex-direction: column;
}

.spec dt {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6A6E73;
  margin-bottom: 3px;
}

.spec dd {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
  margin: 0;
}

/* Tabs */
.tabs {
  background: #fff;
  border: 1px solid #D2D2D2;
  border-top: none;
  display: flex;
  gap: 2px;
  padding: 0 20px;
  overflow-x: auto;
}

.tab {
  background: none;
  border: none;
  padding: 14px 6px;
  margin-right: 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #6A6E73;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab--active {
  color: #151515;
  border-bottom: 3px solid #EE0000;
}

/* Panel */
.panel {
  background: #F0F0F0;
  flex: 1;
  padding: 28px 0 50px;
}

.panel h2 {
  margin: 20px 0 8px;
}

.panel a + .drawer,
.panel span + .drawer {
  margin-top: 8px;
}

/* Keep source artifacts first in both visual and reading order. */
.configuration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.configuration-pane {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #D2D2D2;
  border-radius: 6px;
}

.configuration-pane > h2:first-child {
  margin: 0 0 16px;
}

.configuration-pane h3 {
  margin: 20px 0 8px;
  font-size: 16px;
}

.configuration-details .rht {
  table-layout: fixed;
}

@media (min-width: 1200px) {
  .configuration-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.quickstart-step > p {
  white-space: pre-line;
}

.quickstart-expected {
  padding: 12px 16px;
  border-left: 3px solid #0066CC;
  background: #F0F8FF;
}

.recipe-technical {
  margin: 0 0 20px;
}

.recipe-technical > summary {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6A6E73;
  cursor: pointer;
  padding: 8px 0;
}

.recipe-technical > :not(summary) {
  padding-left: 11px;
}

.recipe-technical > p {
  font-size: 13px;
  color: #4F5255;
  margin: 4px 0;
}

.recipe-technical > a {
  display: inline-block;
  font-size: 13px;
}

/* Drawer */
.drawer {
  border: 1px solid #D2D2D2;
  border-radius: 6px;
  margin: 0 0 10px;
  overflow: hidden;
}

.drawer__summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  background: #FAFAFA;
}

.drawer__summary button {
  border: 1px solid #D2D2D2;
  border-radius: 6px;
  background: #fff;
  color: #3C3F42;
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
}

.drawer__code {
  background: #151515;
  color: #E8E8E8;
  font-family: 'Red Hat Mono', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 14px 16px;
  overflow-x: auto;
  max-height: 420px;
}

/* Table (Red Hat table) */
.rht {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 13px;
}

.rht thead th {
  text-align: left;
  padding: 8px 11px;
  border-bottom: 1px solid #D2D2D2;
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: #6A6E73;
}

.rht tbody td {
  padding: 8px 11px;
  border-bottom: 1px solid #F0F0F0;
}

/* Banners */
.banner,
.banner--pending {
  background: #FAFAFA;
  border-left: 3px solid #8A8D90;
  padding: 16px 18px;
  font-size: 14px;
  color: #3C3F42;
  max-width: 70ch;
}

/* Accordion */
.accordion {
  border: 1px solid #D2D2D2;
  border-left: 3px solid #8A8D90;
  border-radius: 0 4px 4px 0;
  margin: 0 0 10px;
  background: #FCFCFC;
}

.accordion summary {
  cursor: pointer;
  padding: 13px 15px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion > div {
  padding: 4px 16px 16px;
  border-top: 1px solid #EDEDED;
}

/* Pills & tags */
.pill--validated {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F0F8E8;
  color: #3E8635;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.tag {
  font-family: monospace;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6A6E73;
  font-weight: 500;
  border: 1px solid #D2D2D2;
  padding: 1px 6px;
  border-radius: 2px;
  flex: none;
}

/* Workload reference page shares the catalog typography and shell. */
.workload-page {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 28px clamp(16px, 2vw, 48px) 50px;
  overflow-wrap: anywhere;
}

.workload-page h1,
.workload-card h2 {
  font-family: 'Red Hat Display', sans-serif;
}

.workload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.workload-card {
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid #D2D2D2;
  border-top: 3px solid #EE0000;
  border-radius: 6px;
  background: #fff;
  line-height: 1.6;
}

.workload-card h2 {
  margin-top: 0;
}

.workload-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid #8A8D90;
  background: #FAFAFA;
  color: #3C3F42;
  line-height: 1.6;
}

/* Keep catalog content inside its shell without clipping source text. */
#app {
  overflow-wrap: anywhere;
}

.model-card > div,
.selectors,
.sel-row,
.panel {
  min-width: 0;
}

.model-card > div {
  max-width: 100%;
}

.sel-row select {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.drawer__summary {
  flex-wrap: wrap;
}

.drawer__summary strong {
  min-width: 0;
  max-width: 100%;
}

.rht th,
.rht td {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .filter-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-card,
  .selectors {
    padding: 16px;
  }

  .workload-page {
    padding: 20px 16px 36px;
  }

  .workload-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workload-card {
    padding: 16px;
  }

  .nav {
    gap: 12px;
    padding: 0 16px;
  }

  .nav__links,
  .nav > div:last-child {
    flex-shrink: 0;
  }

  .nav__links {
    gap: 12px;
  }

  .nav > div:first-of-type {
    flex: 0 !important;
  }

  .nav > input {
    width: auto !important;
    min-width: 0;
    flex: 1;
  }

  .sel-label {
    width: 100%;
    padding-top: 0;
  }

  .sel-row select {
    flex-basis: 100%;
  }
}

/* Benchmark charts */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.chart-card {
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 16px;
}
.chart-card h3 {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
}
.chart-container {
  position: relative;
  height: 260px;
}
.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.stat-card {
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 12px 16px;
  flex: 1;
  min-width: 120px;
}
.stat-card__value {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #151515;
}
.stat-card__label {
  font-size: 0.75rem;
  color: #6A6E73;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-card__sub {
  font-size: 0.8rem;
  color: #4F5255;
  margin-top: 2px;
}
.harness-section {
  margin: 0 0 32px;
  padding: 20px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
}
.harness-section:last-child {
  margin-bottom: 0;
}
.harness-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 2px solid #E0E0E0;
}
.harness-header h2 {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #151515;
  margin: 0;
}
.harness-description {
  font-size: 13px;
  color: #6A6E73;
}
.harness-description code {
  font-family: 'Red Hat Mono', monospace;
  background: #F0F0F0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}
.evidence-detail {
  margin: 16px 0 0;
  border: 1px solid #E8E8E8;
  border-radius: 6px;
}
.evidence-detail > summary {
  padding: 10px 14px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4F5255;
  cursor: pointer;
  background: #FAFAFA;
  border-radius: 6px;
}
.evidence-detail[open] > summary {
  border-bottom: 1px solid #E8E8E8;
  border-radius: 6px 6px 0 0;
}
.evidence-detail > :not(summary) {
  padding: 0 14px;
}
.evidence-detail > table {
  margin: 8px 14px;
  width: calc(100% - 28px);
}
