:root{
  --color-orange:  #ff8a3d;
  --color-violet:  #9a5cf5;
  --color-darkblue:    #1252b3;
  --color-darkgreen: #4daa4f;
  --color-pink:    #ff6f9c;
  --color-darkteal: #00c3be;
  --color-orange: #e5ae34;
}

.cog-border-red{
  border-color: var(--color-red) !important;
}
.cog-border-orange{
  border-color: var(--color-orange) !important;
}
.cog-border-blue{
  border-color: var(--color-darkteal) !important;
}
.cog-border-green{
  border-color: var(--color-darkgreen) !important;
}
.cog-border-grey{
  border-color: var(--color-grey) !important;
}
.cog-border-magenta{
  border-color: var(--color-magenta) !important;
}
.cog-darkgreen {
   background: var(--color-darkgreen);
}
.cog-darkteal {
   background: var(--color-darkteal);
}
.cog-orange {
   background: var(--color-orange);
}

section.day {
  margin-bottom: 2.9rem;
}
.day-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.day-tag {
  font-weight: 900;
  /* font-size: 0.72rem; */
  letter-spacing: 0.12em;
  color: #fff;
  padding: 0.32rem 0.6rem;
  border-radius: 3px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
}
.day-head h2 {
  /* font-size: 1.4rem; */
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.day-note {
  background: var(--color-darkblue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  color: #fff;
}
.day-note.industry {
  background: var(--color-darkblue);
}
.day-note.plenary {
  background: var(--color-orange);
}

/* card container — echoes the site's team/keynote cards */
.day-card {
  overflow: hidden;
  background: #fff;
  border: 2px solid;
  border-radius: 5px;
  border-top-right-radius: 34px;
  border-bottom-left-radius: 22px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
}
table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  /* font-size: 0.82rem; */
}

table.red {
  background: color-mix(in srgb, var(--color-red) 5%, #fff);
}

table.orange {
  background: color-mix(in srgb, var(--color-orange) 5%, #fff);
}

table.blue {
  background: color-mix(in srgb, var(--color-darkteal) 5%, #fff);
}

table.green {
  background: color-mix(in srgb, var(--color-darkgreen) 5%, #fff);
}

tbody {
  border-top: 2px solid
}

thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 0.65rem;
  /* font-size: 0.75rem; */
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.cap {
  opacity: 0.65;
  font-weight: 400;
}
thead th .cap {
  display: block;
  /* font-size: 0.68rem; */
  margin-top: 0.1rem;
}
thead th:first-child {
  width: 8em;
}

thead th {
  border-right: 1px solid;
  border-color: inherit;
}

thead th:last-of-type {
  border-right: none;
}

tbody tr td{
  border-top: 1px solid;
  border-color: #fff;
}

tbody tr th{
  border-top: 1px solid;
  border-color: inherit;
}

tbody td,
tbody th {
  overflow-wrap: break-word;
  padding: 0.55rem 0.65rem;
  vertical-align: top;
}
tbody th.time {
  font-weight: 700;
  background: var(--paper-2);
  text-align: left;
}
td.empty {
  color: #cfcfcf;
  text-align: center;
  font-weight: 500;
}

/* full-width event rows */
td.brk {
  border-left: 5px solid #fff;
  font-weight: 500;
  vertical-align: middle;
  opacity: 0.65;
}

tbody.cog-border-red .brk{
  border-left: 5px solid var(--color-red);
}
tbody.cog-border-orange .brk{
  border-left: 5px solid var(--color-orange);
}
tbody.cog-border-blue .brk{
  border-left: 5px solid var(--color-darkteal);
}
tbody.cog-border-green .brk{
  border-left: 5px solid var(--color-darkgreen);
}

td.plenary > .meta,
td.social > .meta {
  display: block;
  font-weight: 500;
  /* font-size: 0.74rem; */
  margin-top: 0.1rem;
}

/* parallel session cells — brand accent + tint */
.sess {
  border-left: 5px solid var(--acc, var(--color-grey));
  background: color-mix(in srgb, var(--acc, #000) 15%, #fff);
}
.plenary, .opening, .closing, .social, .dc, .keynote, .industry, .comp, .tutorial {
  font-weight: 700;
  border-left: 5px solid var(--acc, var(--color-grey));
  background: color-mix(in srgb, var(--acc, #000) 40%, #fff);
}

.sess .title {
  display: block;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sess .info {
  display: block;
  /* font-size: 0.72rem; */
  font-weight: 500;
  margin-top: 0.15rem;
}
.plenary, .opening, .closing {
  --acc: var(--color-orange);
}
.design {
  --acc: var(--color-darkteal);
}
.ai {
  --acc: var(--color-red);
}
.analytics {
  --acc: var(--color-orange);
}
.serious {
  --acc: var(--color-grey);
}
.pcg {
  --acc: var(--color-violet);
}
.keynote {
  --acc: var(--color-red);
}
.health {
  --acc: var(--color-darkblue);
}
.spatial {
  --acc: var(--color-darkblue);
}
.panel {
  --acc: var(--color-darkgreen);
}
.tutorial {
  --acc: var(--color-grey);
}
.dc {
  --acc: var(--color-violet);
}
.comp {
  --acc: var(--color-magenta);
}
.industry {
  --acc: var(--color-darkblue);
}

/* ---- dropdowns ---- */
details {
  margin: 0;
}
summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 1.1rem;
  outline: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "\25B8";
  position: absolute;
  right: -0.5rem;
  top: -1rem;
  font-size: 2rem;
  transition: transform 0.15s ease;
}
details[open] > summary::after {
  transform: rotate(90deg);
}
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

ul.papers {
  list-style: none;
  margin: 0.55rem 0 0.1rem;
  padding: 0;
  border-top: 1px dashed var(--color-grey);
}
ul.papers li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-grey);
}
ul.papers li:last-child {
  border-bottom: none;
}
.pmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 0.15rem;
}
.pnum {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.68rem;
}
.ptype {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.08rem 0.32rem;
  border-radius: 20px;
  color: #fff;
}
.t-regular {
  background: var(--color-grey);
}
.t-short {
  background: #c7c8c9;
  color: var(--ink);
}
.t-vision {
  background: var(--color-magenta);
}
.t-comp2 {
  background: #f79859;
  color: black;
}
.pmin {
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ptitle {
  display: block;
  font-weight: 400;
}
.pfrom {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
}

ul.papers.wide {
  max-width: none;
}
ul.papers.wide li {
  padding: 0.45rem 0;
}
@media (min-width: 720px) {
  ul.papers.wide .pmeta {
    display: inline-flex;
    vertical-align: top;
    margin-right: 0.5rem;
    margin-bottom: 0;
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  /* font-size: 0.74rem; */
  font-weight: 500;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.swatch {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 3px;
  border-top-right-radius: 7px;
  border-bottom-left-radius: 7px;
  display: inline-block;
  background: color-mix(in srgb, var(--acc, #000) 16%, #fff);
  border-left: 4px solid var(--acc, var(--color-grey));
}

.swatch.plenary, .swatch.industry, .swatch.comp, .swatch.social, .swatch.panel, .swatch.dc, .swatch.keynote, .swatch.tutorial {
  border-left: 5px solid var(--acc, var(--color-grey));
  background: color-mix(in srgb, var(--acc, #000) 50%, #fff);
}

@media (max-width: 760px) {
  body {
    padding: 1.5rem 0.6rem 3rem;
  }
  table {
    /* font-size: 0.72rem; */
  }
  thead th:first-child {
    width: 4em;
  }
  tbody th.time {
    white-space: break-spaces;
  }

  tbody td,
  tbody th,
  thead th {
    padding: 0.45rem 0.4rem;
  }
  summary {
    padding-right: 0.9rem;
  }
  .day-card {
    border-top-right-radius: 22px;
    border-bottom-left-radius: 16px;
  }
}
@media print {
  body {
    background: #fff;
    padding: 0;
  }
  section.day {
    page-break-inside: avoid;
  }
  details[open] ul.papers {
    display: block;
  }
  summary::after {
    display: none;
  }
}
