@font-face {
  font-family: Boston;
  src: url("fonts/Boston-Heavy.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("fonts/ProximaNova-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("fonts/ProximaNova-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #081f2c;
  --cream: #f4f0e6;
  --ink: #14242d;
  --muted: #5c6b73;
  --green: #93da49;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Proxima Nova", "Avenir Next", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
.top { background: var(--navy); color: #f4f0e6; padding: 1.4rem 1.5rem 1.2rem; }
.top h1 { margin: 0.15rem 0; font-family: Boston, sans-serif; font-weight: 800; }
.eyebrow { margin: 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--green); }
.sub, .muted { color: var(--muted); }
.top .sub { color: #d5ddd8; }
main { max-width: 1100px; margin: 0 auto; padding: 1.2rem; }
.card { background: #fffdf8; border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.controls { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: end; }
label, .sunday { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; }
.sunday { position: relative; }
.field-label { font-weight: 600; }
.check { flex-direction: row; align-items: center; font-weight: 400; }
select, input, button { font: inherit; }
#plan-button {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(8, 31, 44, 0.18);
  border-radius: 10px;
  min-width: 14rem;
  text-align: left;
}
.plan-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.25rem);
  left: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: white;
  border: 1px solid rgba(8, 31, 44, 0.16);
  border-radius: 12px;
  min-width: 100%;
  max-height: 18rem;
  overflow: auto;
  box-shadow: 0 10px 30px rgba(8, 31, 44, 0.12);
}
.plan-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
}
.plan-menu button[aria-selected="true"] { background: var(--cream); }
select, input { padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px solid rgba(8, 31, 44, 0.18); }
button {
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.error { color: #9b2c2c; }
.hidden { display: none; }
.sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}
.badge {
  background: white;
  border: 1px solid rgba(8, 31, 44, 0.14);
  border-radius: 14px;
  min-height: 190px;
  padding: 0.65rem 0.75rem 0.5rem;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}
.badge .first { margin: 0; font-size: 2.15rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.badge .last { margin: 0.12rem 0 0; font-size: 1.2rem; font-weight: 500; }
.badge hr { border: 0; border-top: 2px solid #111; margin: 0.4rem 0.15rem 0.35rem; }
.badge .place { margin: 0; font-size: 1.05rem; font-weight: 500; }
.badge .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
}
.badge .brand img { width: 58px; height: auto; }
.badge .when { margin: 0; text-align: left; font-size: 1rem; font-weight: 700; line-height: 1.15; }

@media print {
  @page { size: 4in 2.3125in; margin: 0.18in; }
  body { background: white; }
  .top, .controls, #login { display: none; }
  main { max-width: none; padding: 0; }
  .sheet { display: block; }
  .badge {
    border: 0;
    border-radius: 0;
    width: 3.64in;
    height: 1.95in;
    padding: 0.02in 0.08in 0;
    break-after: page;
    page-break-after: always;
  }
  .badge .first { font-size: 28pt; }
  .badge .last { font-size: 16pt; }
  .badge .place { font-size: 13pt; }
  .badge .brand img { width: 0.62in; }
  .badge .when { font-size: 12pt; }
}
