/* HearingDB receiver catalogue and detail pages — build 62 */

.page-receivers .page-container,
.page-receiver-detail .page-container {
  padding-top: clamp(18px, 2vw, 30px);
}

.receiver-catalogue,
.receiver-detail {
  width: min(100%, 1720px);
  margin: 0 auto;
}

.receiver-catalogue {
  display: grid;
  gap: clamp(20px, 2.4vw, 34px);
}

.receiver-catalogue__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(180px, 18vw, 270px);
  padding: clamp(24px, 3.2vw, 48px);
  overflow: hidden;
  border: 1px solid var(--border);
  color: #fff;
  background: linear-gradient(100deg, rgba(232, 73, 89, 0.98), rgba(200, 213, 232, 0.88) 50%, rgba(23, 107, 255, 0.98));
}

.receiver-catalogue__hero::after {
  position: absolute;
  right: -4%;
  bottom: -126%;
  width: min(50vw, 650px);
  aspect-ratio: 1;
  border: clamp(40px, 5vw, 74px) solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transition: transform 700ms var(--ease-spring), border-color var(--motion-standard) ease;
}

.receiver-catalogue__hero:hover::after {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translate(-3%, -4%) scale(1.035);
}

.receiver-kicker {
  margin: 0 0 8px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

.receiver-catalogue__hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 790;
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.receiver-catalogue__tools {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 2.2fr);
  gap: 12px;
  align-items: stretch;
}

.receiver-search {
  display: block;
}

.receiver-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  outline: 0;
  color: var(--text-strong);
  background: #fff;
  font: inherit;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.receiver-search input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.receiver-brand-filters {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}

.receiver-brand-filters button {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 17px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.receiver-brand-filters button:first-child {
  border-left: 1px solid var(--border);
}

.receiver-brand-filters button:hover,
.receiver-brand-filters button.is-active {
  color: #fff;
  background: var(--text-strong);
}

.receiver-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.receiver-family-card {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  isolation: isolate;
}

.receiver-family-card[hidden] {
  display: none;
}

.receiver-family-card > a {
  display: grid;
  grid-template-rows: minmax(225px, 0.92fr) auto;
  min-height: 100%;
  color: var(--text-strong);
}

.receiver-family-card__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 225px;
  overflow: hidden;
  background: #fff;
}

.receiver-family-card__media::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 73, 89, 0.07), rgba(255, 255, 255, 0) 47%, rgba(23, 107, 255, 0.07));
  content: "";
  opacity: 0;
  transition: opacity var(--motion-standard) ease;
}

.receiver-family-card:hover .receiver-family-card__media::before,
.receiver-family-card:focus-within .receiver-family-card__media::before {
  opacity: 1;
}

.receiver-family-card__media img {
  position: relative;
  z-index: 2;
  width: min(78%, 280px);
  height: min(78%, 210px);
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: scale(1);
  transition: transform 440ms var(--ease-spring);
}

.receiver-family-card:hover .receiver-family-card__media img,
.receiver-family-card:focus-within .receiver-family-card__media img {
  transform: scale(1.045);
}

.receiver-family-card__ring {
  position: absolute;
  right: -17%;
  bottom: -58%;
  z-index: 4;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 21, 34, 0.14);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 560ms var(--ease-spring), border-color var(--motion-standard) ease;
}

.receiver-family-card:hover .receiver-family-card__ring,
.receiver-family-card:focus-within .receiver-family-card__ring {
  border-color: rgba(8, 21, 34, 0.24);
  transform: translate(-7%, -8%) scale(1.06);
}

.receiver-family-card__body {
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 255px;
  padding: clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--border);
}

.receiver-family-card__brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.receiver-family-card__body h2 {
  max-width: calc(100% - 42px);
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1;
}

.receiver-strength-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.receiver-strength-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card-subtle);
  font-size: 0.72rem;
  font-weight: 800;
}

.receiver-family-card__facts {
  display: grid;
  margin: auto 0 0;
  border-top: 1px solid var(--border);
}

.receiver-family-card__facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--sharp-line-soft);
}

.receiver-family-card__facts dt,
.receiver-family-card__facts dd {
  margin: 0;
  font-size: 0.77rem;
}

.receiver-family-card__facts dt {
  color: var(--muted);
}

.receiver-family-card__facts dd {
  color: var(--text-strong);
  font-weight: 800;
  text-align: right;
}

.receiver-family-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.45rem;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity var(--motion-fast) ease, transform var(--motion-standard) var(--ease-spring);
}

.receiver-family-card:hover .receiver-family-card__arrow,
.receiver-family-card:focus-within .receiver-family-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.receiver-catalogue__empty,
.receiver-empty-state,
.fit-empty {
  padding: 24px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
}

/* Receiver detail --------------------------------------------------- */
.receiver-detail {
  display: grid;
  gap: clamp(20px, 2vw, 32px);
}

.receiver-detail__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.receiver-back-link,
.receiver-edit-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.receiver-back-link:hover,
.receiver-edit-link:hover {
  color: #fff;
  border-color: var(--text-strong);
  background: var(--text-strong);
}

.receiver-detail__hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(300px, 0.88fr) minmax(390px, 1.2fr);
  grid-template-areas:
    "identity visual summary"
    "identity graph graph";
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: #fff;
}

.receiver-detail__hero > * {
  min-width: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.receiver-detail__identity {
  grid-area: identity;
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: clamp(26px, 3vw, 46px);
  color: #fff;
  background: linear-gradient(145deg, rgba(232, 73, 89, 0.98), rgba(101, 129, 187, 0.90) 58%, rgba(23, 107, 255, 0.98));
}

.receiver-detail__identity h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 4.2vw, 5.4rem);
  font-weight: 790;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.receiver-detail__intro {
  max-width: 37ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.94rem;
  line-height: 1.6;
}

.receiver-strength-selector {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.receiver-strength-tile,
.receiver-tabs button {
  display: grid;
  width: 100%;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.receiver-strength-tile strong {
  font-size: 0.95rem;
  line-height: 1.15;
}

.receiver-strength-tile span {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.71rem;
  line-height: 1.25;
}

.receiver-strength-tile:hover,
.receiver-strength-tile.active,
.receiver-tabs button:hover,
.receiver-tabs button.active {
  color: var(--text-strong);
  border-color: #fff;
  background: #fff;
  transform: translateX(3px);
}

.receiver-strength-tile.active span {
  color: var(--muted);
}

.receiver-detail__visual {
  grid-area: visual;
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: clamp(20px, 2.4vw, 34px);
  background: linear-gradient(145deg, rgba(232, 73, 89, 0.04), #fff 48%, rgba(23, 107, 255, 0.05));
}

.receiver-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.receiver-side-grid:has(.receiver-side-card[hidden]) {
  grid-template-columns: 1fr;
}

.receiver-side-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 245px;
  margin: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
}

.receiver-side-card figcaption {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receiver-side-card img,
.receiver-visual-fallback img,
.receiver-detail__visual--inbuilt > img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  padding: 16px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.receiver-visual-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 250px;
}

.receiver-visual-fallback img {
  max-width: 300px;
}

.receiver-detail__summary {
  grid-area: summary;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  background: #fff;
}

.receiver-summary-card {
  min-width: 0;
  padding: clamp(20px, 2vw, 30px);
}

.receiver-summary-card + .receiver-summary-card {
  border-left: 1px solid var(--border);
}

.receiver-summary-card h2 {
  margin: 0 0 18px;
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.receiver-summary-card dl {
  margin: 0;
}

.receiver-summary-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--sharp-line-soft);
}

.receiver-summary-card dt,
.receiver-summary-card dd {
  margin: 0;
  font-size: 0.82rem;
}

.receiver-summary-card dt {
  color: var(--muted);
}

.receiver-summary-card dd {
  color: var(--text-strong);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.receiver-audiogram-panel {
  grid-area: graph;
  display: grid;
  grid-template-columns: minmax(190px, 0.46fr) minmax(430px, 1.54fr);
  align-items: start;
  min-height: 0;
  padding: clamp(22px, 2.4vw, 36px);
  gap: clamp(18px, 2.5vw, 42px);
  background: #fff;
}

.receiver-section-heading p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receiver-section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.45rem, 2.1vw, 2.45rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1;
}


#audiogram {
  display: block;
  width: min(100%, 690px);
  height: auto;
  justify-self: center;
  overflow: visible;
}

.receiver-audiogram-background {
  fill: #fff;
}

.receiver-audiogram-grid {
  stroke: #162333;
}

.receiver-audiogram-grid--vertical.is-intermediate {
  opacity: 0.38;
}

.receiver-audiogram-grid--vertical.is-octave {
  opacity: 0.55;
}

.receiver-audiogram-border {
  fill: none;
  stroke: #162333;
  stroke-width: 1.35;
}

.receiver-audiogram-db-label,
.receiver-audiogram-frequency-label,
.receiver-audiogram-axis-title,
.receiver-audiogram-empty {
  fill: #23303f;
  font-family: Inter, system-ui, sans-serif;
}

.receiver-audiogram-db-label {
  font-size: 13px;
  font-weight: 560;
}

.receiver-audiogram-db-label.is-zero {
  font-weight: 820;
}

.receiver-audiogram-frequency-label.is-major {
  font-size: 14px;
  font-weight: 760;
}

.receiver-audiogram-frequency-label.is-minor {
  fill: #7e8996;
  font-size: 10.5px;
  font-weight: 650;
}

.receiver-audiogram-axis-title {
  font-size: 13px;
  font-weight: 760;
}

.receiver-audiogram-empty {
  fill: #8994a0;
  font-size: 13px;
  font-weight: 650;
}

.receiver-audiogram-range {
  stroke: #315d89;
  stroke-width: 1.35;
  opacity: 0;
  animation: receiver-range-in 420ms var(--ease-out) forwards;
}

.receiver-audiogram-range-edge {
  fill: none;
  stroke: #315d89;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

@keyframes receiver-range-in {
  to { opacity: 1; }
}

.receiver-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1.62fr);
  gap: clamp(20px, 3vw, 50px);
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--border);
  background: #fff;
}

.receiver-components-section {
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
}

.receiver-components-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

.receiver-components-sidebar .receiver-fitting-parts {
  gap: 14px;
}

.receiver-components-sidebar .receiver-part-grid {
  grid-template-columns: 1fr;
}

.receiver-compatible-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.receiver-compatible-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  gap: 4px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-strong);
  background: #fff;
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.receiver-compatible-card:hover {
  color: #fff;
  background: var(--text-strong);
}

.receiver-compatible-card > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 0.88rem;
}

.receiver-compatible-card strong {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receiver-compatible-card:hover strong,
.receiver-compatible-card:hover small {
  color: rgba(255, 255, 255, 0.68);
}

.receiver-compatible-card small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.69rem;
}

.receiver-compatible-card > span:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.2rem;
}

.receiver-fitting-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  min-width: 0;
}

.receiver-fitting-parts,
.receiver-dome-section {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.receiver-part-group,
.receiver-dome-section {
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--card-subtle);
}

.receiver-part-group h3,
.receiver-dome-heading h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.receiver-part-group h3 {
  margin-bottom: 13px;
}

.receiver-part-grid,
.dome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

.fit-card,
.dome-card {
  display: grid;
  grid-template-rows: minmax(100px, 1fr) auto;
  min-height: 150px;
  border: 1px solid var(--border);
  background: #fff;
}

.fit-card img,
.dome-card img,
.fit-fallback img {
  width: 100%;
  height: 110px;
  padding: 10px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.fit-card-name,
.dome-card-name {
  padding: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-strong);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.25;
}

.fit-card-type {
  position: absolute;
}

.receiver-dome-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.dome-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dome-tab {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.dome-tab:hover,
.dome-tab.active {
  color: #fff;
  border-color: var(--text-strong);
  background: var(--text-strong);
}

.dome-groups {
  display: grid;
  gap: 10px;
}

.dome-group {
  border: 1px solid var(--border);
  background: #fff;
}

.dome-group-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.dome-group-summary::-webkit-details-marker {
  display: none;
}

.dome-group-title {
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.dome-group-count {
  color: var(--muted);
  font-size: 0.69rem;
}

.dome-group-content {
  padding: 0 12px 12px;
  border-top: 1px solid var(--border);
}

.receiver-evidence-list {
  display: grid;
  gap: 10px;
}

.receiver-evidence-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--border);
  background: var(--card-subtle);
}

.receiver-evidence-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.receiver-doc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.receiver-doc-chip {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
  font-size: 0.64rem;
  font-weight: 760;
}

.receiver-evidence-label {
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 760;
}

.receiver-evidence-domain {
  color: var(--muted);
  font-size: 0.68rem;
}

.receiver-evidence-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--text-strong);
  color: #fff;
  background: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.receiver-evidence-link:hover {
  color: var(--text-strong);
  background: #fff;
}

/* Inbuilt receiver variation --------------------------------------- */
.receiver-detail__hero--inbuilt {
  grid-template-areas:
    "identity visual summary"
    "identity graph graph";
}

.receiver-detail__visual--inbuilt {
  position: relative;
}

.inbuilt-receiver-fallback {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(220px, 76%);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  color: var(--text-strong);
  background: #fff;
}

.inbuilt-receiver-fallback strong {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: -0.06em;
}

.inbuilt-receiver-fallback span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hidden,
[hidden] {
  display: none !important;
}

@media (max-width: 1320px) {
  .receiver-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receiver-detail__hero {
    grid-template-columns: minmax(260px, 0.72fr) minmax(280px, 0.82fr) minmax(350px, 1.12fr);
  }

  .receiver-components-section {
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
}

.receiver-components-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

.receiver-components-sidebar .receiver-fitting-parts {
  gap: 14px;
}

.receiver-components-sidebar .receiver-part-grid {
  grid-template-columns: 1fr;
}

.receiver-compatible-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .receiver-catalogue__tools {
    grid-template-columns: 1fr;
  }

  .receiver-detail__hero,
  .receiver-detail__hero--inbuilt {
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
    grid-template-areas:
      "identity visual"
      "identity summary"
      "graph graph";
  }

  .receiver-audiogram-panel {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1.58fr);
  }

  .receiver-section,
  .receiver-components-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .receiver-family-grid {
    grid-template-columns: 1fr;
  }

  .receiver-detail__hero,
  .receiver-detail__hero--inbuilt {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "visual"
      "summary"
      "graph";
  }

  .receiver-detail__identity {
    min-height: 0;
  }

  .receiver-strength-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receiver-strength-tile:hover,
  .receiver-strength-tile.active,
  .receiver-tabs button:hover,
  .receiver-tabs button.active {
    transform: none;
  }

  .receiver-detail__summary,
  .receiver-audiogram-panel,
  .receiver-fitting-layout {
    grid-template-columns: 1fr;
  }

  .receiver-summary-card + .receiver-summary-card {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .receiver-components-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .receiver-components-sidebar {
    display: grid;
    align-content: start;
    gap: 24px;
    min-width: 0;
  }

  .receiver-components-sidebar .receiver-fitting-parts {
    gap: 14px;
  }

  .receiver-components-sidebar .receiver-part-grid {
    grid-template-columns: 1fr;
  }

  .receiver-compatible-grid {
    grid-template-columns: 1fr;
  }

  #audiogram {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .receiver-catalogue__hero {
    min-height: 165px;
  }

  .receiver-catalogue__hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

  .receiver-brand-filters button {
    padding: 0 13px;
  }

  .receiver-family-card > a {
    grid-template-rows: 205px auto;
  }

  .receiver-detail__topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .receiver-back-link,
  .receiver-edit-link {
    flex: 1 1 150px;
    justify-content: center;
    min-height: 44px;
  }

  .receiver-detail__identity h1 {
    font-size: clamp(2.4rem, 13vw, 4.2rem);
  }

  .receiver-strength-selector,
  .receiver-side-grid {
    grid-template-columns: 1fr;
  }

  .receiver-side-card {
    min-height: 210px;
  }

  .receiver-audiogram-panel,
  .receiver-section {
    padding: 20px 14px;
  }

  .receiver-evidence-item {
    grid-template-columns: 1fr;
  }

  .receiver-evidence-link {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .receiver-family-card__media img,
  .receiver-family-card__ring,
  .receiver-catalogue__hero::after,
  .receiver-strength-tile,
  .receiver-tabs button,
  .receiver-audiogram-range {
    animation: none !important;
    transition: none !important;
  }

  .receiver-audiogram-range {
    opacity: 1;
  }
}
