/* PedroDuty subpage + interactivity layer, rides along with styles.css */
:root { --pd-red: #d64545; }

#pd-sound-toggle {
  display: inline-flex; align-items: center; justify-content: center; height: 2.15rem; line-height: 1;
  width: 2.4rem; padding: 0; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 8px;
  background: transparent; font-size: 1rem; cursor: pointer; white-space: nowrap;
}
#pd-sound-toggle:hover { border-color: var(--green, #0d9c66); color: var(--green, #0d9c66); }
.pd-sound-toggle--float { position: fixed; bottom: 1rem; left: 1rem; z-index: 60; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); }

.nav__item, .nav__tools .btn { white-space: nowrap; }
#pd-toast {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; max-width: 22rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  background: #10261d; color: #fff; border-left: 4px solid var(--green, #0d9c66);
  padding: 0.9rem 1.1rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
#pd-toast.is-show { opacity: 1; transform: none; }
#pd-toast span { color: rgba(255,255,255,.75); font-size: 0.85rem; }

body.pd-mom-open { overflow: hidden; }
#pd-mom {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(90% 80% at 50% 40%, rgba(120, 12, 12, 0.97), rgba(40, 4, 4, 0.99));
  animation: mom-in .3s ease both;
}
/* Author display beats the UA [hidden] rule, so the modal would stay visible
   (and click-blocking) after the accept button sets hidden. Hide it for real. */
#pd-mom[hidden] { display: none; }
@keyframes mom-in { from { opacity: 0; } to { opacity: 1; } }
.mom__siren {
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(45deg, #ffcf5e 0 18px, #1a1a1a 18px 36px);
  animation: siren 0.8s steps(2) infinite;
}
.mom__siren::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 130px;
  background: linear-gradient(rgba(255, 90, 90, .5), transparent);
  animation: siren-glow 1.6s ease-in-out infinite alternate;
}
@keyframes siren { to { transform: translateX(36px); } }
@keyframes siren-glow { from { opacity: .25; } to { opacity: .8; } }
.mom__panel {
  position: relative; max-width: 40rem; width: 100%; text-align: center; color: #fff;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 207, 94, .4); border-radius: 18px;
  padding: 2.4rem 2.2rem; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.mom__level { letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; color: #ffcf5e; }
.mom__level strong { color: #fff; }
.mom__panel h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .6rem 0 1.2rem; }
.mom__lines { list-style: none; padding: 0; margin: 0 auto 1.6rem; max-width: 30rem; text-align: left; display: grid; gap: .5rem; }
.mom__lines li { background: rgba(255,255,255,.06); border-left: 3px solid #ffcf5e; padding: .55rem .9rem; border-radius: 8px; font-size: .95rem; }
@keyframes mom-line { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.mom__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin: 0 0 1.8rem; }
.mom__stats div { min-width: 8rem; }
.mom__stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.mom__stats dd { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 700; color: #ffcf5e; }
.mom__fine { margin: 1rem 0 0; font-size: .78rem; color: rgba(255,255,255,.55); }
/* Self-contained button so the Mom modal works everywhere site.css loads
   (game.html has no styles.css, so the shared .btn base is missing there). */
#pd-mom .btn--primary {
  display: inline-block; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; padding: .8rem 1.6rem;
  background: #0d9c66; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .12s ease, background .12s ease;
}
#pd-mom .btn--primary:hover { background: #35d493; transform: translateY(-1px); }
#pd-mom .btn--primary:active { transform: translateY(1px); }

.pagehero {
  max-width: none !important; text-align: center; color: #fff;
  background: linear-gradient(135deg, #04794c 0%, #0d9c66 55%, #35d493 100%);
  padding-top: 6.5rem !important; padding-bottom: 4rem !important;
}
.pagehero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.pagehero .hero__sub { color: rgba(255, 255, 255, 0.88); }
.pagehero .btn--primary { background: #fff; color: var(--green, #0d9c66); }
.pagehero .btn--ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.crumbs { font-size: .8rem; margin: 0 0 1rem; color: rgba(255,255,255,.75); }
.crumbs a { color: inherit; }

.feat__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.blog__card { padding: 1.3rem; }
.blog__card .tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green, #0d9c66); font-weight: 700; margin-bottom: .5rem; }
.job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 1.1rem 1.3rem; margin-top: 1rem; background: #fff; }
.job h3 { margin: 0 0 .2rem; }
.job p { margin: 0; color: var(--gray, #5b6b64); font-size: .9rem; }
.form { display: grid; gap: 1rem; max-width: 34rem; margin-top: 2rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { padding: .65rem .8rem; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; font: inherit; }
.form textarea { min-height: 6rem; resize: vertical; }
.runbook { font-family: "Comic Sans MS", "Segoe Print", cursive; border: 2px dashed #b98; background: #fffdf2; color: #4a3a20; border-radius: 14px; padding: 1.6rem 1.8rem; max-width: 44rem; margin-top: 2rem; }
.runbook ol { padding-left: 1.2rem; display: grid; gap: .7rem; }
.runbook .stamp { float: right; transform: rotate(6deg); border: 3px solid #b3402e; color: #b3402e; font-weight: 700; padding: .3rem .6rem; border-radius: 6px; letter-spacing: .1em; }
.status__banner { display: flex; align-items: center; gap: .6rem; justify-content: center; font-weight: 700; color: #0b7a52; background: #e5f7ef; border: 1px solid #bfe8d6; border-radius: 12px; padding: .9rem; margin-top: 1.6rem; }
.status__row { display: flex; justify-content: space-between; padding: .8rem .2rem; border-bottom: 1px solid rgba(0,0,0,.07); }
.status__ok { color: #0b7a52; font-weight: 700; }
.status__warn { color: #b5751c; font-weight: 700; }
.int-search { display: flex; gap: .6rem; max-width: 30rem; margin-top: 1.6rem; }
.int-search input { flex: 1; padding: .7rem .9rem; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; font: inherit; }
.log { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: .8rem; }
.log li { display: flex; gap: .9rem; align-items: baseline; border: 1px solid rgba(0,0,0,.07); background: #fff; border-radius: 10px; padding: .8rem 1rem; }
.log time { font-size: .78rem; color: var(--gray, #5b6b64); min-width: 7rem; }

/* Night Shift game teaser */
.btn--game { color: #fff; border: 0; background: linear-gradient(135deg, #6d28d9, #4f46e5 55%, #0ea5e9); box-shadow: 0 6px 22px rgba(79, 70, 229, .45); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); animation: gameglow 2.6s ease-in-out infinite; }
.btn--game:hover { filter: brightness(1.12); }
@keyframes gameglow { 0%, 100% { box-shadow: 0 6px 22px rgba(79, 70, 229, .45); } 50% { box-shadow: 0 6px 30px rgba(14, 165, 233, .75); } }
.nav__item--game { color: #7c3aed; font-weight: 700; }
.nav__item--game:hover { color: #4f46e5; }
.hero__game-link { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hero__game-link:hover { color: #e9d5ff; }
.cf { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; pointer-events: none; z-index: -1; }
