/* Shared header branding. Uses the existing cropped logo, without changing its artwork. */
.yt-brand-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
}
.yt-brand-header .yt-brand-group {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}
.yt-brand-header .yt-brand-frame,
.yt-brand-access .yt-brand-frame {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 248px;
  width: 248px;
  max-width: 100%;
  min-width: 0;
  height: 136px;
  padding: 6px 12px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px 24px 38px 24px;
  background: radial-gradient(circle at 35% 28%, #1f6f48 0%, #14555b 48%, #083a40 100%);
  box-shadow: 0 12px 26px rgba(8,58,64,.14);
}
.yt-brand-header .yt-brand-logo,
.yt-brand-access .yt-brand-logo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
}
.yt-brand-dark .yt-brand-frame,
.yt-brand-access .yt-brand-frame {
  background: transparent;
  box-shadow: none;
}
.yt-brand-header .yt-brand-context {
  min-width: 0;
  max-width: 310px;
  line-height: 1.3;
}
.yt-brand-header .yt-brand-context h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.yt-brand-header .yt-brand-context strong { font-size: 16px; line-height: 1.3; }
.yt-brand-header .yt-brand-context small,
.yt-brand-header .yt-brand-context p {
  display: block;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.yt-brand-header .yt-brand-actions {
  display: flex;
  flex: 1 1 280px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
/* Replace oversized transparent canvases and retain comfortable air inside the public blob. */
.site-header.yt-brand-header > .yt-brand-group {
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.yt-brand-access { display: flex; justify-content: center; }
.yt-brand-access .yt-brand-frame { flex-shrink: 1; }
.summary-logo { object-fit: contain; }
@media (max-width: 760px) {
  .yt-brand-header { align-items: center; gap: 16px; }
  .yt-brand-header .yt-brand-group { flex-wrap: wrap; gap: 12px 18px; }
  .yt-brand-header .yt-brand-frame,
  .yt-brand-access .yt-brand-frame {
    flex-basis: 216px;
    width: 216px;
    height: 120px;
    padding: 6px 10px;
    border-radius: 26px 22px 32px 22px;
  }
  .yt-brand-header .yt-brand-context h1 { font-size: 18px; }
  .yt-brand-header .yt-brand-actions { flex-basis: 100%; justify-content: flex-start; }
}
@media print {
  .yt-brand-header .yt-brand-frame { flex-basis: 220px; width: 220px; height: 116px; }
}
