/* Program Overview layout and typography; existing colors are preserved. */
@font-face {
  font-family: "WSDM Program Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin.woff2") format("woff2");
}

.program-redesign {
  --program-wine: #961f12;
  font-family: "WSDM Program Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.program-redesign [hidden] { display: none; }
.program-redesign :is(button, a) { font: inherit; }
.program-redesign :is(button, a):focus-visible {
  outline: 2px solid var(--program-wine);
  outline-offset: 4px;
}

.program-schedule,
.program-resources,
.program-footer {
  max-width: 1440px;
  margin: 0 auto;
}

.program-schedule { padding: 0 48px 48px; }
.program-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.program-eyebrow {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin: 0;
}
.program-redesign h2 {
  color: var(--program-wine);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}
.program-status {
  color: #7a1207;
  background: #faf0ed;
  border: 1px solid #ebd7d1;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
}
.program-intro { max-width: 820px; color: #555; margin-bottom: 28px; }
.program-day-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.program-day-picker button {
  appearance: none;
  border: 1px solid #e3dad7;
  border-radius: 4px;
  color: #555;
  background: #fff;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
}
.program-day-picker button span { display: block; font-size: 13px; }
.program-day-picker button strong { display: block; font-size: 16px; font-weight: 600; }
.program-day-picker button:hover { background: #faf2f0; border-color: #bd8b80; }
.program-day-picker button[aria-pressed="true"] {
  background: var(--program-wine);
  color: #fff;
  border-color: var(--program-wine);
}
.program-reading-note { color: #666; font-size: 13px; }
.program-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 20px; }
.program-legend span { font-size: 13px; display: flex; align-items: center; gap: 8px; color: #555; }
.program-legend span::before { content: ""; width: 9px; height: 9px; background: #caa59b; border-radius: 2px; }
.program-legend .legend-keynote::before { background: var(--program-wine); }
.program-legend .legend-break::before { background: #b8b8b8; }
.program-legend .legend-social::before { background: #4a4a4a; }
.program-day { border: 1px solid #e6dfdc; margin-bottom: 24px; }
.program-day-heading {
  padding: 18px 24px;
  background: #faf5f3;
  border-top: 3px solid var(--program-wine);
  border-bottom: 1px solid #e6dfdc;
}
.program-day-heading h3 { color: var(--program-wine); font-size: 20px; font-weight: 600; line-height: 1.4; }
.program-day-heading p { font-size: 14px; color: #666; margin-top: 4px; }
.program-agenda, .program-events { list-style: none; padding: 0; margin: 0; }
.program-slot { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 20px; padding: 12px 24px; align-items: start; }
.program-slot + .program-slot { border-top: 1px solid #eee9e6; }
.program-time { display: flex; gap: 6px; white-space: nowrap; color: #666; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 9px; }
.program-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.program-event { padding: 8px 14px; background: #faf3f0; border-left: 3px solid #caa59b; font-size: 15px; font-weight: 500; line-height: 1.5; }
.program-event.event-keynote { background: var(--program-wine); border-color: #7a1207; color: white; }
.program-event.event-break { background: #f5f5f5; border-color: #c3c3c3; color: #555; font-weight: 400; }
.program-event.event-social { background: #4a4a4a; border-color: #333; color: white; }
.program-event-note { font-size: 13px; font-weight: 400; }
.program-schedule-note { color: #666; font-size: 13px; }
.program-resources { padding: 0 48px 48px; }
.program-resources-heading {
  background: #4a4a4a;
  color: #fff;
  padding: 24px 28px;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  margin-bottom: 24px;
}
.program-resources-heading h2 { color: #fff; font-size: 24px; }
.program-resources-heading p { color: #eee; font-size: 14px; margin-top: 8px; }
.program-resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.program-resource { display: flex; flex-direction: column; border-top: 2px solid #e1d4cf; padding-top: 16px; }
.program-resource h3 { color: var(--program-wine); font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.program-resource p { font-size: 14px; color: #666; flex: 1; margin-bottom: 12px; }
.program-resource a { color: var(--program-wine); font-size: 14px; font-weight: 500; text-underline-offset: 4px; align-self: flex-start; }
.program-pending { color: #777; font-size: 13px; }
.program-footer { border-top: 1px solid #e6dfdc; padding: 22px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.program-footer p { font-size: 12px; color: #666; }
.program-footer a { color: var(--program-wine); font-size: 13px; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .program-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-events { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .program-schedule { padding: 8px 20px 32px; }
  .program-heading { flex-wrap: wrap; gap: 10px; }
  .program-eyebrow { font-size: 14px; }
  .program-status { font-size: 12px; padding: 5px 8px; }
  .program-legend { gap: 8px 16px; }
  .program-legend span { font-size: 12px; }
  .program-redesign h2 { font-size: 24px; }
  .program-intro { font-size: 15px; }
  .program-day-picker { gap: 4px; }
  .program-day-picker button { padding: 10px 2px; }
  .program-day-picker button span { font-size: 11px; }
  .program-day-picker button strong { font-size: 13px; }
  .program-day-heading { padding: 16px; }
  .program-day-heading h3 { font-size: 20px; }
  .program-slot { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
  .program-time { padding-top: 0; }
  .program-event { font-size: 14px; }
  .program-resources { padding: 0 20px 32px; }
  .program-resources-heading { padding: 24px; }
  .program-resource-grid { gap: 24px 20px; }
  .program-resource h3 { font-size: 16px; }
  .program-footer { padding: 20px; }
}
@media (max-width: 360px) {
  .program-resource-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .program-redesign .program-day[hidden] { display: block; }
  .program-day-picker, .program-reading-note { display: none; }
  .program-slot { break-inside: avoid; }
  .program-schedule { padding: 0; }
}

/* Five-day overview: the same sessions, placed on a half-hour grid. */
.program-week {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 48px;
}
.program-grid-help { font-size: 13px; color: #666; margin: 0 0 12px; }
.program-week-scroll {
  overflow: auto;
  max-height: min(76vh, 840px);
  border: 1px solid #d9ccc7;
  scrollbar-color: #bfa49c #f5f1ef;
}
.program-week-scroll:focus-visible { outline: 2px solid var(--program-wine); outline-offset: 4px; }
.program-week-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: 1320px;
  font-size: 12.5px;
  line-height: 1.45;
}
.program-week-table .week-time-column { width: 7.5%; }
.program-week-table .lanes-3 col { width: 6.166666667%; }
.program-week-table .lanes-2 col { width: 9.25%; }
.program-week-table th,
.program-week-table td {
  border-right: 1px solid #e9dfda;
  border-bottom: 1px solid #e9dfda;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.program-week-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--program-wine);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 8px;
}
.program-week-table thead span { display: block; font-size: 12px; font-weight: 400; }
.program-week-table thead th:first-child { left: 0; z-index: 4; }
.program-week-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8f4f2;
  color: #62504a;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  height: 36px;
  box-shadow: 1px 0 0 #d9ccc7;
}
.program-week-table .week-event-title { display: block; font-weight: 500; }
.program-week-table .week-event-time { display: block; font-size: 11px; font-weight: 400; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.program-week-table .week-event-session { background: #faf0eb; color: #653d32; }
.program-week-table .week-event-keynote { background: #961f12; color: #fff; }
.program-week-table .week-event-break { background: #f3f3f3; color: #555; }
.program-week-table .week-event-social { background: #4a4a4a; color: #fff; }
.program-week-table .week-empty { background: #fff; }
.program-redesign .program-daily-title { margin-bottom: 24px; }
.program-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .program-week { padding: 0 20px 32px; }
  .program-week-scroll { max-height: 66vh; }
  .program-week-table { min-width: 1440px; }
}
@media print {
  .program-week { padding: 0 0 24px; }
  .program-week-scroll { overflow: visible; max-height: none; }
  .program-week-table { min-width: 0; font-size: 8px; }
  .program-week-table :is(thead th, tbody th) { position: static; font-size: 8px; }
  .program-week-table .week-event-time { font-size: 7px; }
  .program-week-table :is(th, td) { padding: 3px; }
  .program-week-table .week-time-column { width: 70px; }
  .program-grid-help { display: none; }
}

@media (min-width: 601px) and (max-width: 1100px) {
  .program-week, .program-schedule, .program-resources, .program-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* Event-site presentation, matching the Calls pages. */
.program-hero { max-width: 1440px; margin: 0 auto; padding: 64px 48px 48px; display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 64px; align-items: center; }
.program-section-label { color: var(--program-wine); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 16px; }
.program-hero h1 { color: var(--program-wine); font-size: clamp(34px,3.6vw,48px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 20px; }
.program-hero-intro { color: #555; font-size: 19px; line-height: 1.65; max-width: 620px; margin: 0; }
.program-hero-actions { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin-top: 28px; }
.program-hero-actions a { color: var(--program-wine); font-size: 14px; text-decoration: none; }
.program-hero-actions a:hover { text-decoration: underline; }
.program-hero-actions .program-primary-link { display: inline-flex; align-items: center; gap: 24px; border-radius: 4px; padding: 13px 20px; background: var(--program-wine); color: #fff; font-size: 15px; font-weight: 500; }
.program-hero-actions .program-primary-link:hover { background: #7a1207; text-decoration: none; }
.program-facts { border: 1px solid #e7dcd7; border-top: 3px solid var(--program-wine); border-radius: 4px; padding: 24px; }
.program-facts .program-status { display: inline-block; margin-bottom: 8px; font-size: 12px; }
.program-facts dl { margin: 0; }
.program-facts dl > div { border-bottom: 1px solid #eee7e3; padding: 14px 0; }
.program-facts dl > div:last-child { border: 0; padding-bottom: 0; }
.program-facts dt { font-size: 12px; color: #777; }
.program-facts dd { font-size: 17px; font-weight: 500; margin: 4px 0 0; }
.program-facts a { color: var(--program-wine); text-underline-offset: 4px; }
.program-redesign h2 { color: #333; }
.program-redesign :is(#full-schedule,#daily-program-title) { scroll-margin-top: 24px; }
.program-heading { border-top: 1px solid #e7dcd7; padding-top: 32px; margin-bottom: 16px; }
.program-heading .program-section-link { color: var(--program-wine); font-size: 14px; text-decoration: none; }
.program-heading .program-section-link:hover { text-decoration: underline; }
.program-week-scroll { border-color: #e7dcd7; border-radius: 5px; }
.program-week-table .week-event-title { line-height: 1.5; }
.program-week-table thead span { margin-top: 3px; }
.program-redesign .program-daily-title { padding-top: 32px; border-top: 1px solid #e7dcd7; }
.program-day { border-radius: 5px; overflow: hidden; }
.program-day-heading { background: #fff; border-top: 3px solid #d9b9af; padding: 22px 24px; }
.program-day-heading h3 { color: #333; }
.program-slot { padding: 16px 24px; }
.program-time { padding-top: 8px; font-weight: 500; }
.program-event { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 6px 12px; }
.program-event, .program-event.event-keynote, .program-event.event-break, .program-event.event-social { background: #fff; border-left: 1px solid #e7dcd7; color: #333; font-weight: 500; }
.program-event-label { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #faf0eb; color: #76584e; font-size: 10px; font-weight: 500; line-height: 1.5; }
.event-keynote .program-event-label { background: var(--program-wine); color: #fff; }
.event-break .program-event-label { background: #f3f3f3; color: #666; }
.event-social .program-event-label { background: #4a4a4a; color: #fff; }
.program-event-name { display: block; }
.program-event-note { color: #777; }
.program-resources-heading { background: transparent; color: #333; clip-path: none; padding: 32px 0 0; border-top: 1px solid #e7dcd7; }
.program-resources-heading h2 { color: #333; font-size: 28px; }
.program-resources-heading p { color: #666; font-size: 15px; }
.program-resource { border: 1px solid #e7dcd7; border-radius: 6px; padding: 22px; }
.program-resource h3 { color: #333; font-size: 18px; }
.program-resource a { text-decoration: none; }
.program-resource a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .program-hero { padding-left: 32px; padding-right: 32px; gap: 32px; grid-template-columns: minmax(0,1fr) 300px; }
}
@media (max-width: 700px) {
  .program-hero { grid-template-columns: 1fr; padding: 36px 32px 32px; gap: 28px; }
  .program-hero-intro { font-size: 17px; }
  .program-facts { padding: 20px; }
  .program-facts dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .program-facts dd { font-size: 15px; text-align: right; }
}
@media (max-width: 600px) {
  .program-hero { padding-left: 20px; padding-right: 20px; }
  .program-heading { padding-top: 24px; }
  .program-slot { padding: 14px 16px; }
  .program-time { padding-top: 0; }
  .program-day-heading { padding: 18px 16px; }
  .program-resource { padding: 18px; }
  .program-resources-heading h2 { font-size: 24px; }
}
@media print {
  .program-hero { padding: 24px 0; }
  .program-hero-actions, .program-section-link { display: none; }
  .program-resource { break-inside: avoid; }
  .program-week-table th, .program-week-table td { padding: 3px; }
  .program-week-table tbody th { height: auto; }
}
