/* CrewTap schedule board — dispatch-strip aesthetic for the marketing page. */
.ct-board {
  --ink: #0a1f44;
  --ink-soft: #324a6d;
  --paper: #f4efe4;
  --paper-2: #efe6d4;
  --rule: #d7cbb3;
  --gold: #e0a106;
  --teal: #0b8f80;
  --green: #2e7d32;
  --red: #c62828;
  --sky: #1e88e5;
  --white: #fffaf2;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;

  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 16px 16px;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0, 191, 165, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #efe7d6 100%);
  border: 1px solid #c9b896;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 40px rgba(10, 31, 68, 0.12);
  font-family: var(--sans);
}

.ct-board *,
.ct-board *::before,
.ct-board *::after {
  box-sizing: border-box;
}

/* Hello Elementor paints every <button> as a primary CTA. */
.ct-board button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-shadow: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  min-height: 0;
  width: auto;
  display: inline-block;
}

.ct-board__mast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule);
}

.ct-board__ident {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ct-board__callsign {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--paper);
}

.ct-board__kicker {
  margin: 0 0 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ct-board__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ct-board__clocks {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}

.ct-board .ct-toggle {
  display: flex;
  padding: 2px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--white);
}

.ct-board .ct-toggle__btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 5px 11px;
  border-radius: 5px;
  background: transparent;
  color: rgba(10, 31, 68, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  line-height: 1.2;
  display: inline-block;
}

.ct-board .ct-toggle__btn.is-active {
  background: #388e3c;
  color: #fff;
}

.ct-toggle__btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.ct-board__now {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.ct-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.ct-cal__weekdays span {
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6a4e;
  padding: 2px 0 4px;
}

.ct-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.ct-board .ct-day {
  appearance: none;
  border: 1px solid transparent;
  margin: 0;
  min-height: 54px;
  padding: 4px 3px 3px;
  border-radius: 3px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.ct-board .ct-day:hover {
  border-color: rgba(10, 31, 68, 0.25);
}

.ct-board .ct-day.is-out {
  visibility: hidden;
  pointer-events: none;
}

.ct-board .ct-day.is-selected {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink);
}

.ct-board .ct-day.is-crossing {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(192, 57, 43, 0.08),
      rgba(192, 57, 43, 0.08) 3px,
      rgba(255, 250, 242, 0.7) 3px,
      rgba(255, 250, 242, 0.7) 7px
    );
}

.ct-day__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.ct-day__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.ct-mark {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 2px 3px;
  border-radius: 2px;
  color: #fff;
}

.ct-mark--off { background: #c48a04; }
.ct-mark--rsv { background: var(--teal); }
.ct-mark--flt { background: var(--ink); }
.ct-mark--shift {
  background: var(--red);
}

.ct-strip {
  margin-top: 12px;
  padding: 12px 12px 11px;
  border-top: 3px solid var(--ink);
  background: var(--white);
  min-height: 112px;
}

.ct-strip__hint,
.ct-strip__kicker {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ct-leg {
  display: grid;
  gap: 6px;
}

.ct-leg__route {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ct-leg__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.ct-leg__times {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ct-leg__times li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ct-leg__times b {
  font-weight: 600;
  color: var(--ink);
}

.ct-leg__note {
  margin: 8px 0 0;
  padding: 6px 8px;
  background: #f3e0c0;
  border-left: 3px solid var(--gold);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .ct-board {
    max-width: none;
    padding: 14px 12px 12px;
  }

  .ct-board__mast {
    flex-direction: column;
  }

  .ct-board__clocks {
    align-items: flex-start;
  }

  .ct-day {
    min-height: 48px;
  }
}
