/* One welcoming nudge, shared by both presentation systems. */
html.bap-tip-open main { padding-top: var(--bap-tip-space, 190px); }
.bap-style-tip {
  position: fixed;
  left: var(--bap-tip-left, 20px);
  top: var(--bap-tip-top, 105px);
  z-index: 11000;
  box-sizing: border-box;
  width: 312px;
  max-width: calc(100vw - 36px);
  margin: 0;
  padding: 22px 24px 23px;
  border: 2px solid #111;
  border-radius: 25px 25px 25px 6px;
  background: #ff91c4;
  color: #111;
  box-shadow: 6px 6px 0 #111;
  font: 400 15px/1.45 "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  animation: bap-tip-float 5s ease-in-out infinite;
  isolation: isolate;
}
.bap-style-tip::before {
  content: "";
  position: absolute;
  top: -11px;
  left: calc(var(--bap-tip-tail, 156px) - 10px);
  width: 18px;
  height: 18px;
  background: #ff91c4;
  border-top: 2px solid #111;
  border-left: 2px solid #111;
  transform: rotate(45deg);
}
.bap-style-tip:hover, .bap-style-tip:focus-within { animation-play-state: paused; }
html .bap-style-tip, html .bap-style-tip * { cursor: auto; }
.bap-style-tip .bap-tip-kicker {
  display: block;
  margin: 0 26px 11px 0;
  font: 700 11px/1.5 "Space Mono", monospace;
  letter-spacing: .08em;
}
.bap-style-tip .bap-tip-title {
  margin: 0 0 12px;
  padding: 0;
  color: #111;
  font: 800 25px/1.04 "DM Sans", Arial, sans-serif;
  letter-spacing: -.045em;
  text-transform: none;
}
.bap-style-tip .bap-tip-copy {
  margin: 0;
  padding: 0;
  max-width: 260px;
  font: inherit;
  color: #111;
  letter-spacing: 0;
}
.bap-style-tip .bap-tip-copy strong { font: inherit; font-weight: 800; }
html .bap-style-tip .bap-tip-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 14px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  cursor: pointer;
}
.bap-style-tip .bap-tip-close svg { display: block; width: 16px; height: 16px; pointer-events: none; }
.bap-style-tip .bap-tip-close:hover { background: #11111112; }
.bap-style-tip .bap-tip-close:focus-visible { outline: 2px solid #111; outline-offset: -5px; box-shadow: none; }
@keyframes bap-tip-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* On two-row headers the style control sits on the lower row, beside the
   section links, so the speech-bubble tail points straight to the control. */
@media (max-width: 1150px) {
  body[data-page="home"] .site-header { grid-template-columns: auto auto auto 1fr; gap: 8px 18px; }
  body[data-page="home"] .site-header .wordmark { grid-column: 1 / 4; grid-row: 1; justify-self: start; }
  body[data-page="home"] .site-header nav { display: contents; }
  body[data-page="home"] .site-header nav > a { grid-row: 2; align-self: center; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
  body[data-page="home"] .site-header nav > a:not(.nav-pill) { display: inline-flex; align-items: center; }
  body[data-page="home"] .site-header nav > a:nth-child(1) { grid-column: 1; }
  body[data-page="home"] .site-header nav > a:nth-child(2) { grid-column: 2; }
  body[data-page="home"] .site-header nav > a:nth-child(3) { grid-column: 3; }
  body[data-page="home"] .site-header nav > .nav-pill { grid-row: 1; grid-column: 4; justify-self: end; }
  body[data-page="home"] .site-header .bap-style-picker { grid-row: 2; grid-column: 4; justify-self: end; }
}
@media (max-width: 920px) {
  html [data-case] .bap-case-header { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; }
  html [data-case] .bap-case-header > a { grid-row: 1; grid-column: 1; }
  html [data-case] .bap-case-header :is(.nav-actions, nav) { display: contents; }
  html [data-case] .bap-case-header :is(.nav-actions, nav) > a:first-child { display: inline-flex; align-items: center; min-height: 44px; grid-row: 2; grid-column: 1; justify-self: start; }
  html [data-case] .bap-case-header :is(.live-nav, .header-live, .pf-nav-live) { grid-row: 1; grid-column: 2; justify-self: end; }
  html [data-case] .bap-case-header .bap-style-picker { grid-row: 2; grid-column: 2; justify-self: end; }
}
@media (max-width: 600px) {
  body[data-page="home"] .site-header { gap: 8px 10px; }
  .bap-style-tip { width: 288px; padding: 18px 20px 20px; border-radius: 22px 22px 22px 5px; box-shadow: 4px 4px 0 #111; }
  .bap-style-tip .bap-tip-kicker { display: none; }
  .bap-style-tip .bap-tip-title { font-size: 22px; margin-bottom: 10px; }
  .bap-style-tip .bap-tip-copy { font-size: 14px; line-height: 1.45; }
}
@media (max-width: 360px) { body[data-page="home"] .site-header { column-gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .bap-style-tip { animation: none; } }
