/* SolarMan PH header seal + wordmark — 2026-10-11c */
:root { --badge: 96px; --bar: 72px; }
header .bar { height: var(--bar); }
.brand.badge-brand { position: relative; display: flex; align-items: center; padding-left: calc(var(--badge) + 6px + 0.8rem); min-height: 2.75rem; transition: padding-left 220ms ease; }
.brand.badge-brand .badge {
  position: absolute; left: 0; top: calc(50% - (var(--bar) / 2) + 6px); z-index: 2;
  display: block; padding: 3px; border-radius: 50%;
  background: var(--surface, #fffdf8);
  box-shadow: 0 0 0 2px rgba(245, 196, 0, 0.95), 0 14px 28px -10px rgba(7, 39, 92, 0.55), 0 3px 7px rgba(7, 39, 92, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease, top 220ms ease;
}
.brand.badge-brand .badge img { display: block; width: var(--badge); height: var(--badge); border-radius: 50%; transition: width 220ms ease, height 220ms ease; }
.brand.badge-brand:hover .badge { transform: translateY(-1px) rotate(-3deg); }
.brand.badge-brand .wordmark {
  white-space: nowrap; font-family: "Bricolage Grotesque", "Figtree", sans-serif; font-weight: 800;
  font-size: 23px; line-height: 1; letter-spacing: -0.025em; color: #07275c;
}
.brand.badge-brand .wordmark .ph { color: #d0122d; }
@media (max-width: 360px) { :root { --badge: 88px; } .brand.badge-brand .wordmark { font-size: 22px; } }
@media (min-width: 800px) {
  :root { --badge: 124px; }
  .navdesk { gap: 1rem; }
  .brand.badge-brand .wordmark { font-size: 24px; }
  body > header ~ main > section.hero:first-of-type { padding-top: 5.5rem; }
  body > header ~ main.page { padding-top: 7.75rem; }
}
@media (min-width: 960px) { .brand.badge-brand .wordmark { font-size: 28px; } .navdesk { gap: 1.25rem; } }
@media (min-width: 1100px) {
  :root { --badge: 150px; }
  .navdesk { gap: 1.5rem; }
  .brand.badge-brand .wordmark { font-size: 32px; }
}
@media (max-width: 799px) { body > header ~ main.page { padding-top: 4.25rem; } }
/* Sticky header: seal tucks inside the bar once scrolled, and while the mobile menu is open. */
header.badge-compact .brand.badge-brand, header:has(.navmob.open) .brand.badge-brand { padding-left: calc(50px + 6px + 0.8rem); }
header.badge-compact .brand.badge-brand .badge img, header:has(.navmob.open) .brand.badge-brand .badge img { width: 50px; height: 50px; }
header.badge-compact .brand.badge-brand .badge, header:has(.navmob.open) .brand.badge-brand .badge { top: calc(50% - 28px); box-shadow: 0 0 0 2px rgba(245, 196, 0, 0.95), 0 2px 6px rgba(7, 39, 92, 0.2); }
/* WordPress theme header (404 / WP-rendered pages): its bar is .nav (72px). */
.nav .brand.badge-brand .badge { top: calc(50% - 30px); }
@media (max-width: 820px) {
  .nav .brand.badge-brand { --badge: 80px; padding-left: calc(80px + 6px + 0.8rem); min-height: 86px; }
  .nav .brand.badge-brand .badge { top: 0; }
  .nav .brand.badge-brand .wordmark { font-size: 22px; }
}
@media (min-width: 821px) { body > header ~ main#main { padding-top: 5rem; } }
@media (prefers-reduced-motion: reduce) { .brand.badge-brand, .brand.badge-brand .badge, .brand.badge-brand .badge img { transition: none; } }
@media print { .brand.badge-brand .badge { box-shadow: none; } }

/* Announcement ticker (top of header) — 2026-10-17u. CSS-only marquee; pauses on hover; static under reduced motion. */
.sm-ticker {
  position: relative; z-index: 3; display: flex; align-items: center; overflow: hidden;
  height: 34px; background: #07275c; color: #fffdf8;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600;
  font-size: 14px; line-height: 1; letter-spacing: 0.01em;
  box-shadow: inset 0 -1px 0 rgba(245, 196, 0, 0.35);
}
.sm-ticker__track { display: flex; flex: none; width: max-content; animation: sm-ticker 48s linear infinite; will-change: transform; }
.sm-ticker__group { display: flex; flex: none; align-items: center; justify-content: space-around; min-width: 100vw; }
.sm-ticker__item { flex: none; white-space: nowrap; padding: 0 1.5rem; }
.sm-ticker__item b { color: #f5c400; font-weight: 800; }
.sm-ticker__sep { flex: none; color: #f5c400; font-size: 13px; }
.sm-ticker:hover .sm-ticker__track, .sm-ticker:focus-within .sm-ticker__track { animation-play-state: paused; }
@keyframes sm-ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 600px) { .sm-ticker { height: 32px; font-size: 13px; } .sm-ticker__item { padding: 0 1.1rem; } .sm-ticker__track { animation-duration: 40s; } }
@media (prefers-reduced-motion: reduce) {
  .sm-ticker { height: auto; min-height: 34px; padding: 7px 1rem; justify-content: center; text-align: center; line-height: 1.35; }
  .sm-ticker__track { animation: none; width: auto; flex: 1 1 auto; justify-content: center; }
  .sm-ticker__track, .sm-ticker__group { flex: 1 1 auto; width: 100%; min-width: 0; }
  .sm-ticker [aria-hidden="true"] { display: none; }
  .sm-ticker__item { flex: 1 1 auto; min-width: 0; white-space: normal; padding: 0; }
}
@media print { .sm-ticker { display: none; } }
