/* ProductMoat — publishing calendar (calendar.html only) */
/* Tokens, nav, buttons, avatar base come from swiss.css; hero/eyebrow/lede from site.css. */

.cal-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.cal-hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.cal-hero .about-lede {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 56ch;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-body);
}

.cal-swatch {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border: 1px solid var(--line-soft);
}

.cal-swatch-published { background: var(--ink); border-color: var(--ink); }
.cal-swatch-current { background: transparent; border: 2px solid var(--accent); }
.cal-swatch-open { background: transparent; border-style: dashed; }
.cal-swatch-gap { background: var(--paper-alt); }

.cal-hero .hero-cta { margin-top: 32px; }

/* ---------- Wide board wrap ---------- */

.wrap-cal {
  max-width: 1480px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---------- Quarter ---------- */

.cal-quarter-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.cal-quarter-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

.cal-quarter-range {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.cal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

/* ---------- Table ---------- */

.cal-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal-month-row th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  color: var(--ink-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-soft);
}
.cal-month-row th:last-child { border-right: none; }

.cal-cell {
  position: relative;
  height: 128px;
  padding: 0;
  border-right: 1px solid var(--line-soft);
  vertical-align: top;
  overflow: hidden;
}
.cal-cell:last-child { border-right: none; }

.cal-cell[data-current="true"] { box-shadow: inset 0 0 0 2px var(--accent); }

.cal-cell-inner {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-cell-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-week-no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-dim);
}

.cal-week-range {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  opacity: 0.75;
}

/* Published card, tightly filling the remaining cell space */

.cal-card {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: background 0.15s ease;
}
.cal-card:hover { background: var(--paper-alt); }

.cal-card-avatar { width: 34px; height: 34px; font-size: 12px; }

.cal-card-name {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Open / gap placeholder */

.cal-empty {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-cell[data-status="open"] .cal-cell-inner {
  border: 1px dashed var(--line-soft);
}

.cal-empty-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
}

.cal-cell[data-status="gap"] .cal-empty-label { opacity: 0.5; }

/* Hover overlay — Apply / Recommend, slides up over the bottom of the cell */

.cal-hover {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.15s ease;
}

.cal-cell:hover .cal-hover { transform: translateY(0); }

.cal-hover-btn {
  flex: 1;
  padding: 8px 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--paper);
  border-right: 1px solid var(--line-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.cal-hover-btn:last-child { border-right: none; }
.cal-hover-btn:hover { background: var(--accent); color: #fff; }

@media (max-width: 760px) {
  .cal-legend { gap: 14px 20px; }
  .wrap-cal { padding: 36px 20px 72px; gap: 36px; }
}
