/* Event Guide — SCHEDULE tab in the Gen-3 FRLG window language. Shares the
   guide chrome (.event-guide-nav, backdrop, close button pattern) from
   hackathon-credits.css. Panel = gen3-frame1 paper window; each day is a
   white sticker window with a frame-blue sign-plate header; the timeline
   markers are red Gen-3 cursor squares; GOOD TO KNOW = Emerald message box. */

.hackathon-schedule button:focus-visible {
  outline: 3px solid #ffcd4c;
  outline-offset: 2px;
}

.hackathon-schedule {
  --u: 2px;
  position: absolute;
  inset: 0;
  z-index: 60;
  padding: clamp(8px, 2vw, 20px);
  overflow: hidden;
  color: #606060;
  font-family: 'PokeDialogue', 'PokeText', "Courier New", monospace;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .05) 3px 4px),
    linear-gradient(180deg,
      #000 0 4%,
      #7a1818 4% 9%,
      #10283A 9% 91%,
      #7a1818 91% 96%,
      #000 96% 100%);
}

.schedule-panel {
  position: relative;
  width: min(100%, 1020px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 20px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #7373AC #DED5DE;
}

.schedule-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 3px double #B8B8B0;
}

.schedule-kicker {
  margin: 0 0 4px;
  color: #C74637;
  font: 800 9px/1.2 'PokeText', ui-monospace, monospace;
  letter-spacing: .18em;
}

.schedule-masthead h2 {
  margin: 0;
  color: #424242;
  font: 800 clamp(18px, 3vw, 27px)/1.15 'PokeText', ui-monospace, monospace;
  letter-spacing: .03em;
  text-shadow: 2px 2px 0 #D0D0C8;
}

.schedule-masthead p:last-child {
  margin: 7px 0 0;
  color: #606060;
  font-size: 13px;
  text-shadow: 1px 1px 0 #E8E8E0;
}

.schedule-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  color: #F8F8F8;
  font: 900 26px/28px system-ui, sans-serif;
  background: #E82010;
  border: 2px solid #293131;
  border-radius: 50%;
  box-shadow: 2px 2px 0 #293131;
  cursor: pointer;
}

/* ---- day cards: sticker windows with sign-plate headers --------------------- */

.schedule-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 22px);
  padding-top: 16px;
}

.schedule-day {
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 3px solid #293131;
  border-radius: 8px;
  box-shadow: 4px 5px 0 rgba(41, 49, 49, .2);
}

/* Gen-3 sign-plate tone (the frame-1 mid blues) with paper lettering. */
.schedule-day > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  color: #F8F8F8;
  background: #626294;
  border-bottom: 3px solid #293131;
  box-shadow: inset 0 -4px 0 #4A4A6A;
}

.schedule-day > header > span {
  font-size: 24px;
  color: #F8D048;
  text-shadow: 1px 1px 0 #293131;
}

.schedule-day > header p {
  margin: 0 0 2px;
  color: #DED5DE;
  font: 800 9px/1 'PokeText', ui-monospace, monospace;
  letter-spacing: .16em;
}

.schedule-day > header h3 {
  margin: 0;
  font: 800 clamp(17px, 2.5vw, 22px)/1 'PokeText', ui-monospace, monospace;
  text-shadow: 2px 2px 0 #293131;
}

/* ---- timeline: red cursor squares on a bevel rail ---------------------------- */

.schedule-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 9px 13px 13px 22px;
  list-style: none;
}

.schedule-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 22px;
  left: 25px;
  width: 3px;
  background: #DED5DE;
  border-left: 1px solid #B8B8B0;
}

.schedule-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(78px, .38fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 8px 10px 22px;
  color: #606060;
  border-bottom: 1px dashed #B8B8B0;
}

.schedule-timeline li:last-child { border-bottom: 0; }

/* Square Gen-3 marker, red like the selection cursor. */
.schedule-timeline li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 1;
  width: 9px;
  height: 9px;
  background: #E82010;
  border: 2px solid #293131;
  box-shadow: 1px 1px 0 #D0D0C8;
}

.schedule-timeline time {
  color: #3050C8;
  font: 800 10.5px/1.4 'PokeText', ui-monospace, monospace;
  text-shadow: 1px 1px 0 #D0D0C8;
}

.schedule-timeline strong {
  font-family: 'PokeDialogue', ui-rounded, sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.35;
  text-shadow: 1px 1px 0 #E8E8E0;
}

/* Deadline rows: A-button yellow highlight + louder marker. */
.schedule-timeline .schedule-highlight {
  background: #F8E8A0;
  border-radius: 4px;
  outline: 2px solid #D8A030;
  outline-offset: -2px;
}

.schedule-timeline .schedule-highlight time { color: #8B4008; }

.schedule-timeline .schedule-highlight::before {
  background: #F8D048;
  border-color: #293131;
}

/* ---- GOOD TO KNOW: Emerald message box (gen3-frame-msg) ---------------------- */

.schedule-context {
  margin-top: 18px;
  padding: 4px 8px 8px;
  color: #606060;
}

.schedule-context strong {
  color: #424242;
  font: 800 12px/1 'PokeText', ui-monospace, monospace;
  letter-spacing: .06em;
  text-shadow: 1px 1px 0 #D0D0C8;
}

.schedule-context ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 19px;
  font-size: 12.5px;
  line-height: 1.45;
  text-shadow: 1px 1px 0 #E8E8E0;
}

.schedule-context li::marker { color: #E00808; }

@media (max-width: 760px) {
  .hackathon-schedule { --u: 1.5px; padding: 4px; }

  .schedule-panel { padding: 9px 8px 14px; }

  .schedule-days { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .schedule-timeline li {
    grid-template-columns: 84px minmax(0, 1fr);
    padding-left: 19px;
  }
}
