/* U Storage University demo: demo bar + walkthrough UI (shared by every page) */
:root {
  --db-h: 48px;
  --us-navy: #0b1a3a;
  --us-ink: #071630;
  --us-blue: #0a47c4;
  --us-tan: #c8b89a;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.has-demo-bar { padding-top: var(--db-h); }

.demo-bar {
  position: fixed; inset: 0 0 auto 0; height: var(--db-h); z-index: 1000;
  display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: var(--us-ink); color: #fff;
  font: 500 13px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 18px rgba(7,22,48,.25);
}
.demo-bar a { color: inherit; text-decoration: none; }
.db-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.db-brand img { height: 26px; width: auto; display: block; }
.db-school { font-weight: 600; white-space: nowrap; }
.db-pill { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--us-ink); background: var(--us-tan); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.db-panel { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.db-nav { display: flex; gap: 2px; margin-left: 8px; }
.db-nav a { padding: 7px 10px; border-radius: 6px; color: #c9d2e3; white-space: nowrap; }
.db-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.db-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.db-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.db-phase select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 6px;
  padding: 7px 28px 7px 10px; font: inherit; font-weight: 600; cursor: pointer; max-width: 270px;
}
.db-phase select option { color: #111; }
.db-clock { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #e6ebf5; }
.db-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: dbpulse 1.8s infinite; }
.db-dot.paused { background: #f59e0b; animation: none; }
@keyframes dbpulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.db-icon { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 5px; width: 26px; height: 26px; font-size: 10px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.db-icon:hover { background: rgba(255,255,255,.1); }
.db-tours { background: var(--us-tan); color: var(--us-ink); border: 0; border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.db-tours:hover { background: #d8cbb1; }
.db-menu { display: none; margin-left: auto; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }

.db-full { display: none; }
@media (max-width: 1360px) {
  .db-school { display: none; }
}
@media (max-width: 1100px) {
  .db-menu { display: block; }
  .db-panel {
    display: none; position: fixed; top: var(--db-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 18px;
    background: var(--us-ink); border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - var(--db-h)); overflow-y: auto;
  }
  .demo-bar.open .db-panel { display: flex; }
  .db-nav { flex-direction: column; margin: 0; }
  .db-nav a { padding: 11px 10px; font-size: 15px; }
  .db-short { display: none; }
  .db-full { display: inline; }
  .db-right { flex-wrap: wrap; margin: 0; }
  .db-phase, .db-phase select { width: 100%; max-width: none; }
  .db-phase select { padding: 11px 28px 11px 10px; font-size: 14px; }
  .db-tours { width: 100%; padding: 12px; font-size: 14px; }
  .db-school { display: inline; }
}
@media (max-width: 420px) {
  .db-school { display: none; }
}

/* ---------- Walkthroughs ---------- */
.tour-shade { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
.tour-hole {
  position: fixed; z-index: 1101; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(200,184,154,.95), 0 0 0 9999px rgba(7,22,48,.58);
  transition: all .28s cubic-bezier(.2,.8,.2,1);
}
.tour-hole.none { box-shadow: 0 0 0 9999px rgba(7,22,48,.58); width: 0 !important; height: 0 !important; }
.tour-card {
  position: fixed; z-index: 1102; width: min(380px, calc(100vw - 24px));
  background: #fff; color: #1d2433; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(7,22,48,.38); padding: 18px 18px 14px;
  font: 400 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: top .28s cubic-bezier(.2,.8,.2,1), left .28s cubic-bezier(.2,.8,.2,1);
}
.tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.tour-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6a2e; display: flex; justify-content: space-between; gap: 10px; }
.tour-title { font: 400 22px/1.2 "DM Serif Display", Georgia, serif; color: var(--us-navy); margin: 6px 0 6px; }
.tour-body { color: #3b4458; }
.tour-body b { color: #1d2433; }
.tour-prog { height: 4px; background: #eef1f6; border-radius: 99px; margin: 14px 0 12px; overflow: hidden; }
.tour-prog > div { height: 100%; background: var(--us-blue); border-radius: 99px; transition: width .3s; }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-actions .sp { flex: 1; }
.tour-btn { border: 1px solid #cfd6e2; background: #fff; color: #1d2433; border-radius: 8px; padding: 9px 14px; font: 600 13px Inter, sans-serif; cursor: pointer; min-height: 40px; }
.tour-btn:hover { background: #f4f6fa; }
.tour-btn.primary { background: var(--us-navy); border-color: var(--us-navy); color: #fff; }
.tour-btn.primary:hover { background: #142a58; }
.tour-btn.link { border: 0; background: none; color: #5b6478; padding: 9px 4px; }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }

.tour-modal-back { position: fixed; inset: 0; z-index: 1200; background: rgba(7,22,48,.6); display: grid; place-items: center; padding: 16px; }
.tour-modal {
  width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(7,22,48,.45);
  font: 400 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1d2433;
}
.tour-modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 6px; }
.tour-modal-head h2 { font: 400 28px/1.15 "DM Serif Display", Georgia, serif; color: var(--us-navy); margin: 0; }
.tour-modal-head p { margin: 6px 0 0; color: #5b6478; }
.tour-x { margin-left: auto; border: 0; background: #f1f3f7; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: #3b4458; flex-shrink: 0; }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 22px 22px; }
.tour-svc { border: 1px solid #e3e7ee; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.tour-svc img { width: 100%; height: 120px; object-fit: cover; display: block; }
.tour-svc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-svc h3 { margin: 0; font: 400 20px/1.2 "DM Serif Display", Georgia, serif; color: var(--us-navy); }
.tour-svc p { margin: 0; color: #5b6478; font-size: 13px; flex: 1; }
.tour-pick { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid #d5dae1; background: #fff; border-radius: 9px; padding: 10px 12px; font: 600 13px Inter, sans-serif; color: #1d2433; cursor: pointer; min-height: 44px; }
.tour-pick:hover { border-color: var(--us-blue); background: #f1f5fd; }
.tour-pick small { font-weight: 500; color: #6b7686; white-space: nowrap; }
.tour-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 22px 20px; border-top: 1px solid #eef0f3; color: #5b6478; font-size: 13px; }
.tour-modal-foot button { border: 0; background: none; color: var(--us-blue); font: 600 13px Inter, sans-serif; cursor: pointer; padding: 6px 0; }
@media (max-width: 760px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-svc img { height: 96px; }
  .tour-card:not(.center) { left: 12px !important; right: 12px; width: auto; top: auto !important; bottom: 12px; }
  .tour-arrow { display: none; }
}
