.brand-dictionary {
  margin: 0;
  color: #22272c;
  font: 16px/1.65 var(--gear-font, sans-serif);
}

.brand-dictionary *, .brand-dictionary *::before, .brand-dictionary *::after {
  box-sizing: border-box;
}

.brand-dictionary [hidden] { display: none !important; }

.brand-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  max-width: var(--gear-page-width, 1280px);
  margin: 0 auto;
  padding: 24px var(--gear-page-gutter, 28px) 72px;
}

.brand-browser,
.brand-detail {
  min-width: 0;
}

.brand-browser {
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-y: contain;
  padding-right: 12px;
}

.brand-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.brand-browser .brand-title { margin-bottom: 16px; }

.brand-search {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #aeb7bf;
  border-radius: 6px;
  color: inherit;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.brand-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.brand-filter,
.brand-reset,
.brand-list-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #b9c1c9;
  border-radius: 6px;
  color: #343d46;
  background: #fff;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-filter:hover, .brand-reset:hover, .brand-list-link:hover {
  background: #f2f4f5;
}

.brand-filter[aria-pressed="true"] {
  border-color: #587a9e;
  color: #243e57;
  background: #eaf1f8;
  font-weight: 700;
}

.brand-count { margin: 12px 0 4px; font-size: 13px; color: #4a5662; }

.brand-list { list-style: none; padding: 0; margin: 0; }
.brand-list li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid #e4e8eb; }

.brand-row {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  color: #242b33;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.brand-row:hover { background: #f2f4f5; }
.brand-row[aria-current="page"] { background: var(--gear-selected-bg); }
.brand-row span { display: block; font-size: 13px; color: #4a5662; }
.brand-empty { margin-top: 14px; }

.brand-detail {
  max-width: 700px;
  padding-top: 2px;
}

.brand-detail p { margin: 6px 0 0; line-height: 1.75; }
.brand-detail .brand-intro { margin-top: 14px; }
.brand-overview { display:grid; grid-template-columns:minmax(0,1fr) minmax(160px,240px); column-gap:24px; align-items:start; }
.brand-overview .brand-intro { grid-column:1; grid-row:1; }
.brand-overview .brand-photo { grid-column:2; grid-row:1 / span 2; margin:16px 0 0; min-width:0; }
.brand-overview .brand-features { grid-column:1; margin-top:22px; }
.brand-photo-open { display:block; max-width:100%; padding:0; margin:0 auto; border:0; background:transparent; cursor:zoom-in; }
.brand-photo img { display:block; width:auto; height:auto; max-width:100%; max-height:420px; object-fit:contain; }
.brand-photo figcaption { margin-top:8px; color:#4a5662; font-size:13px; line-height:1.5; text-align:center; overflow-wrap:anywhere; }
.brand-photo-dialog { max-width:none; width:100vw; height:100dvh; max-height:none; margin:0; padding:46px 20px 20px; border:0; color:#fff; background:rgba(16,20,24,.96); }
.brand-photo-dialog::backdrop { background:rgba(16,20,24,.75); }
.brand-photo-dialog img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(100dvh - 110px); margin:auto; object-fit:contain; cursor:zoom-out; }
.brand-photo-dialog figcaption { margin-top:10px; text-align:center; font-size:14px; }
.brand-photo-dialog figure { margin:0; }
.brand-photo-close { position:absolute; right:12px; top:6px; min-width:var(--gear-control-height); min-height:var(--gear-control-height); border:0; background:transparent; color:#fff; font:inherit; cursor:pointer; }
.brand-detail section { margin-top: 28px; }
.brand-detail h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.35; }
.brand-detail h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.brand-detail h2, .brand-detail h3 { overflow-wrap: anywhere; }
.brand-model + .brand-model, .brand-event + .brand-event { margin-top: 16px; }
.brand-date { display: block; margin-bottom: 3px; font-size: 13px; color: #4a5662; }
.brand-detail a { color: #234e78; text-underline-offset: .18em; }
.brand-detail a:hover { color: #142f49; }
.brand-detail details { margin-top: 28px; }
.brand-detail summary { width: fit-content; min-height: 44px; line-height: 44px; cursor: pointer; font-weight: 700; }
.brand-detail ul { margin: 0; padding-left: 22px; overflow-wrap: anywhere; }
.brand-detail .brand-related { display: flex; gap: 6px 16px; flex-wrap: wrap; padding: 0; list-style: none; }
.brand-related a { display: inline-flex; align-items: center; min-height: 44px; }
.brand-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-list-link { display: none; flex: 0 0 auto; }

.brand-dictionary :focus-visible {
  outline: var(--gear-focus-outline);
  outline-offset: 2px;
}

.brand-skip {
  position: fixed;
  top: 4px;
  left: 6px;
  transform: translateY(-200%);
  padding: 8px 12px;
  background: #fff;
  z-index: 80;
}

.brand-skip:focus { transform: none; }

@media (max-width: 700px) {
  .brand-overview { display:block; }
  .brand-overview .brand-photo { margin:18px auto 0; max-width:340px; }
  .brand-photo img { max-width:100%; max-height:280px; }
  .brand-overview .brand-features { margin-top:24px; }
  .brand-layout { display: block; padding: 18px 16px 70px; }
  .brand-browser { position: static; max-height: none; overflow: visible; padding: 0; }
  .brand-title { font-size: 28px; }
  .brand-detail h2 { font-size: 22px; }
  .brand-detail h3 { font-size: 18px; }
  .brand-layout[data-view="list"] .brand-detail,
  .brand-layout[data-view="detail"] .brand-browser { display: none; }
  .brand-list-link { display: inline-flex; }
}
