/* Review banner + Performance modal. Prototype only.
   Developer: remove css/proto-banner.css, js/proto-banner.js, and the PROTOTYPE BANNER block on each page in the production build.
   The banner is fixed above the fixed site header; js/proto-banner.js sets --pb-h to its real height. */
:root { --pb-h: 46px; }
body { padding-top: var(--pb-h); }
#site-header { top: var(--pb-h) !important; }
#proto-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  min-height: 46px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px;
  padding: 7px 20px; background: #0f1631; color: #fff; border-bottom: 2px solid #FECB38;
  font-family: 'Open Sans', system-ui, sans-serif; font-size: .78rem; line-height: 1.35;
}
#proto-banner .pb-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
#proto-banner .pb-tag { font-family: 'Poppins', sans-serif; font-weight: 800; color: #FECB38; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; white-space: nowrap; }
#proto-banner .pb-msg { color: rgba(255,255,255,.8); }
#proto-banner .pb-tools { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
#proto-banner .pb-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 30px; box-sizing: border-box;
  border-radius: 6px; padding: 5px 14px; font: 700 .76rem/1.2 'Poppins', sans-serif; letter-spacing: .02em;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
/* 48px hit area, same 30px look: the ::after extends the clickable box 9px above and below */
#proto-banner .pb-btn { position: relative; }
#proto-banner .pb-btn::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
#proto-seo-aeo-link { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
#proto-seo-aeo-link:hover, #proto-seo-aeo-link:focus-visible { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
#proto-perf-btn { background: #FECB38; color: #0f1631; border: 1.5px solid #FECB38; }
#proto-perf-btn:hover, #proto-perf-btn:focus-visible { background: #ffd966; }
#proto-banner .pb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#proto-banner .pb-short { display: none; }
/* Phones and short screens: the banner scrolls away with the page and the fixed header follows it up.
   js/proto-banner.js keeps --pb-vis = the banner's still-visible height (banner height minus scrollY, min 0). */
@media (max-width: 900px), (max-height: 500px) {
  #proto-banner { position: absolute; }
  #site-header { top: var(--pb-vis, var(--pb-h)) !important; }
}
@media (max-width: 860px) {
  #proto-banner .pb-msg { display: none; }
  #proto-banner .pb-long { display: none; }
  #proto-banner .pb-short { display: inline; }
}
@media (max-width: 400px) {
  #proto-banner { padding: 7px 12px; }
  #proto-banner .pb-btn { padding: 5px 10px; }
}
/* 320-360px: drop the PROTOTYPE tag so the banner stays on one row */
@media (max-width: 360px) { #proto-banner .pb-tag { display: none; } }
#proto-perf-modal { display: none; position: fixed; inset: 0; z-index: 10050; background: rgba(15,22,49,.7); align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; font-family: 'Open Sans', system-ui, sans-serif; }
#proto-perf-modal.is-open { display: flex; }
#proto-perf-modal .pm-card { background: #fff; color: #0f1631; border-radius: 16px; width: 100%; max-width: 560px; margin: auto; box-shadow: 0 24px 80px rgba(0,0,0,.3); overflow: hidden; }
#proto-perf-modal .pm-head { background: #1a1f6e; padding: 22px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 3px solid #FECB38; }
#proto-perf-modal .pm-kick { font: 800 .7rem/1.2 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #FECB38; margin-bottom: 6px; }
#proto-perf-modal h2 { color: #fff; font: 700 1.15rem/1.3 'Poppins', sans-serif; margin: 0; }
#proto-perf-modal .pm-sub { color: rgba(255,255,255,.7); font-size: .82rem; margin: 4px 0 0; }
#proto-perf-modal .pm-body { padding: 22px 24px; font-size: .9rem; line-height: 1.55; color: #0f1631; }
#proto-perf-modal .pm-body p { font-size: .9rem; color: #0f1631; margin: 0; }
#proto-perf-modal .pm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
#proto-perf-modal .pm-stat { background: #f5f7fc; border: 1px solid #e0e6f4; border-radius: 10px; padding: 14px 8px; text-align: center; }
#proto-perf-modal .pm-stat b { display: block; font: 800 1.45rem/1.2 'Poppins', sans-serif; color: #002ebe; }
#proto-perf-modal .pm-stat span { font-size: .72rem; color: #5a6478; }
#proto-perf-modal ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 4px; color: #5a6478; font-size: .86rem; list-style: disc; }
#proto-perf-modal .pm-note { font-size: .78rem; color: #5a6478; margin-top: 14px; }
#proto-perf-modal .pm-note a { color: #002ebe; font-weight: 700; }
#proto-perf-close { background: rgba(255,255,255,.14); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.25rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
#proto-perf-close:focus-visible { outline: 3px solid #FECB38; outline-offset: 2px; }
/* Background page doesn't scroll while the Performance modal is open (class set by js/proto-banner.js) */
html.pm-open, html.pm-open body { overflow: hidden; }
@media (max-width: 420px) { #proto-perf-modal .pm-stats { grid-template-columns: 1fr; } }
@media print { #proto-banner, #proto-perf-modal { display: none !important; } body { padding-top: 0; } #site-header { top: 0 !important; } }

/* Marco post-merge 10/20: review bar labels at 14px minimum */
#proto-banner, #proto-banner span, #proto-banner a, #proto-banner button, #proto-banner strong { font-size:14px !important; }
