.brands-page { max-width: 1190px; }

.brand-guide {
  padding: clamp(15px, 2.4vw, 29px);
  border: 1px solid #d5ded2;
  border-top: 3px solid #6f9c82;
  border-radius: 17px;
  background: #fffefa;
}
.brand-guide h2, .brand-guide h3 { color: var(--ink); }
.brand-guide h2 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); margin-block-end: 10px; }
.brand-guide-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.brand-guide-item {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 76px;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--compare-line);
  border-radius: 10px;
  background: #f5f8f2;
  color: var(--ink);
  text-align: start;
}
.brand-guide-item strong { font-size: 1.05rem; }
.brand-guide-item small { color: #355446; font-size: .86rem; overflow-wrap: anywhere; }
.brand-guide-item:hover, .brand-guide-item[aria-pressed="true"] { border-color: #698d78; background: #e7f0e5; }
.brand-family-result {
  display: grid;
  gap: 14px;
  margin-top: 15px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e9f1e6;
  color: var(--ink);
}
.brand-family-result > * { min-width: 0; }
.brand-family-level { color: #426251; font-size: .91rem; font-weight: 700; }
.brand-family-result h3 { margin-block: 4px; font-size: clamp(1.18rem, 1.8vw, 1.5rem); scroll-margin-top: 18px; }
.brand-overview { border: 1px solid #c9d8ca; border-radius: 10px; overflow: hidden; background: #fffefa; }
.brand-overview-criterion { width: 20%; }
.brand-overview-table :is(th, td) { vertical-align: top; }
.brand-overview-table thead th { border-top: 0; }
.brand-overview-table thead bdi { display: block; font-size: .86em; color: #355446; font-weight: 600; }
.brand-overview-table tbody th { background: #f0f4ed; }
.brand-overview-table .brand-overview-divider th { background: #e3ede0; font-size: .94rem; }
.brand-overview-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; }
.brand-overview-intro p { flex: 1 1 350px; font-size: .9rem; }
.brand-overview-sources { display: flex; flex-wrap: wrap; gap: 2px 9px; margin-block-start: 4px; }
.brand-overview-intro a, .brand-overview-table thead a, .brand-overview-sources a {
  color: #164c38; font-size: .85rem; font-weight: 700; text-underline-offset: .22em;
}
.brand-overview-table .brand-overview-winner { background: #e9f4e8; }
.brand-overview-check {
  display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-inline-end: .36em;
  border-radius: 50%; background: #145740; color: #fff; font-weight: 700; line-height: 1;
  animation: brand-check-in .23s ease-out both;
  animation-delay: calc(var(--check-order, 0) * 90ms);
}
.brand-overview-tie { display: block; color: #466354; font-weight: 600; }
.brand-overview-basis { display: block; color: #466354; font-size: .82em; font-weight: 600; }
.brand-overview-summary {
  display: grid; gap: 4px; padding: 14px; scroll-margin-top: 16px;
  border: 1px solid #c7d8c8; border-inline-start: 4px solid #6f9c82; border-radius: 10px; background: #fffefa;
  animation: brand-result-in .25s ease-out .4s both;
}
.brand-overview-summary h4 { margin: 0; font-size: 1.16rem; }
.brand-overview-result-heading { display: flex; align-items: center; gap: .45rem; }
#brand-overview-trophy { inline-size: 3.5rem; block-size: 3.5rem; flex: none; object-fit: contain; mix-blend-mode: multiply; }
#brand-family-tally { color: #355446; font-size: .88rem; font-weight: 700; }
@keyframes brand-check-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes brand-result-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .brand-overview-check, .brand-overview-summary { animation: none; }
}
.brand-overview-note { padding: 8px 12px; border-top: 1px solid #d5ded2; color: #355446; font-size: .84rem; }
.brand-guide-help {
  margin-block-start: 17px;
  padding: clamp(13px, 2vw, 22px);
  border: 1px solid var(--compare-line);
  border-radius: 12px;
  background: #f5f8f2;
}
.brand-guide-help h3 {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: #b42318;
  font-size: 1.05rem;
}
.brand-guide-help h3 img { flex: none; mix-blend-mode: multiply; }
.brand-guide-help p { margin-block-start: 8px; }

@media (max-width: 620px) {
  .brands-page .comparison-table th, .brands-page .comparison-table td { padding-inline: 5px; }
}
@media (max-width: 690px) {
  .brand-guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .brand-family-result { padding-inline: 8px; }
  .brand-overview-criterion { width: 23%; }
  .brand-overview-table { line-height: 1.6; }
}
