/* Shared site chrome — matches CURRENT HOME header identity */
:root {
  --vf-navy: #071b2c;
  --vf-gold: #b78a42;
  --vf-gold2: #d9ba7a;
  --vf-paper: #fffdf8;
  --vf-ink: #18232b;
}
.topline {
  height: 34px;
  padding: 0 max(4vw, 24px);
  background: #041521;
  color: #bdc7cf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: Manrope, Arial, sans-serif;
}
.topline a { color: var(--vf-gold2); text-decoration: none; }
.site-header {
  height: 88px;
  padding: 0 max(4vw, 24px);
  display: flex;
  align-items: center;
  gap: 38px;
  background: rgba(255, 253, 248, .98);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e9e2d5;
  font-family: Manrope, Arial, sans-serif;
  color: var(--vf-ink);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
  text-decoration: none;
  color: inherit;
}
.site-header .brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.site-header .brand strong,
.site-header .brand small { display: block; }
.site-header .brand strong {
  font: 700 25px/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .03em;
  color: var(--vf-navy);
}
.site-header .brand small {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8c7250;
}
.site-header nav,
.site-header #site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
}
.site-header nav a,
.site-header #site-nav a {
  font-size: 12px;
  color: #374651;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"],
.site-header nav a.active,
.site-header #site-nav a:hover,
.site-header #site-nav a[aria-current="page"],
.site-header #site-nav a.active { color: var(--vf-gold); }
.site-header .youtube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 16px;
  background: #a42e29;
  color: #fff;
  border-radius: 2px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
}
.site-header .menu-button {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
  margin-left: auto;
  cursor: pointer;
  color: var(--vf-navy);
  line-height: 1;
  padding: 4px 6px;
}

/* Neutralize alternate chrome wrappers used by older portal/devotions layouts */
.site-header > .topbar,
.site-header > .topbar.nav,
header.site-header .topbar {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: contents;
  background: transparent;
  color: inherit;
}
.site-header .nav { display: contents; }

@media (min-width: 1051px) and (max-width: 1240px) {
  .site-header { gap: 20px; }
  .site-header nav,
  .site-header #site-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 22px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    gap: 16px;
    margin-left: 0;
  }
  .site-header nav.open,
  .site-header #site-nav.open { display: flex; }
  .site-header .menu-button { display: block; }
}

@media (max-width: 1050px) {
  .site-header { gap: 20px; }
  .site-header nav,
  .site-header #site-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 22px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    gap: 16px;
    margin-left: 0;
  }
  .site-header nav.open,
  .site-header #site-nav.open { display: flex; }
  .site-header .menu-button { display: block; }
  .site-header .youtube-button { margin-left: 0; }
}

@media (max-width: 760px) {
  .topline span { display: none; }
  .site-header { height: 74px; }
  .site-header .brand strong { font-size: 21px; }
  .site-header .brand small { display: none; }
  .site-header .brand-logo { width: 48px; height: 48px; }
  .site-header nav,
  .site-header #site-nav { top: 74px; }
  .site-header .youtube-button { display: none; }
}


/* Beat legacy portal / liturgia-interna / devocoes header rules */
body > .topline + .site-header,
body > .site-header {
  background: rgba(255, 253, 248, .98) !important;
  color: #18232b !important;
  min-height: 0 !important;
  height: 88px !important;
  padding: 0 max(4vw, 24px) !important;
  display: flex !important;
  align-items: center !important;
  gap: 38px !important;
  border-bottom: 1px solid #e9e2d5 !important;
  backdrop-filter: none !important;
}
.site-header .brand-logo {
  width: 62px !important;
  height: 62px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  border: 0 !important;
  box-shadow: none !important;
}
.site-header .brand strong { color: #071b2c !important; }
.site-header .brand small { display: block !important; color: #8c7250 !important; }
.site-header #site-nav a,
.site-header nav a { color: #374651 !important; font-size: 12px !important; font-weight: 600 !important; }
.site-header #site-nav a:hover,
.site-header #site-nav a[aria-current="page"],
.site-header #site-nav a.active,
.site-header nav a:hover,
.site-header nav a[aria-current="page"],
.site-header nav a.active { color: #b78a42 !important; }
/* Cancel liturgia-interna mobile nav hiding / stacking */
@media (max-width: 780px) {
  .site-header { position: sticky !important; align-items: center !important; }
  .site-header #site-nav a:nth-child(3),
  .site-header #site-nav a:nth-child(4),
  .site-header nav a:nth-child(3),
  .site-header nav a:nth-child(4) { display: flex !important; }
  .site-header .brand span { display: block !important; }
}
@media (max-width: 850px) {
  .site-header #site-nav,
  .site-header nav { display: none; }
  .site-header #site-nav.open,
  .site-header nav.open { display: flex !important; }
  .site-header .menu-button { display: block !important; }
}
@media (max-width: 760px) {
  body > .topline + .site-header,
  body > .site-header { height: 74px !important; }
  .site-header .brand small { display: none !important; }
  .site-header .brand-logo { width: 48px !important; height: 48px !important; }
}

/* Notebooks de 1280 a 1440 px: o menu completo cabe sem empurrar o botão do YouTube para fora da tela. */
@media (min-width: 1241px) and (max-width: 1440px) {
  .site-header { gap: 22px; padding: 0 24px; }
  .site-header nav,
  .site-header #site-nav { gap: 15px; }
  .site-header .youtube-button { padding: 10px 12px; }
}
