/* Layout: left-align all content */
.tc-l {
  text-align: left !important;
}

article.tc-l {
  text-align: left !important;
}

.cover .tc-l {
  text-align: center !important;
}

.measure-wide {
  max-width: 64rem !important;
}

.nested-copy-line-height {
  max-width: 100% !important;
}

article, article.mw8, .mw8, main.mw8, .center.mw8 {
  max-width: 70rem !important;
}

.w-two-thirds-l {
  width: 90% !important;
}

ul, ol {
  padding-left: 2rem;
  margin-left: 0;
  text-align: left;
}

ul li, ol li {
  padding-left: 0.5rem;
  text-align: left;
}

.nested-copy-line-height ul,
.nested-copy-line-height ol {
  list-style-position: outside;
  padding-left: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  text-align: left !important;
}

th {
  background-color: #f5f5f5;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

.cover {
  filter: brightness(1.4) saturate(1.2);
}

/* Lighten the dark overlay on the hero image (Ananke default: bg-black-60 = 60%) */
.cover .bg-black-60 {
  background-color: rgba(0, 0, 0, 0.35) !important;
}

h1.f2.f-subheadline-l {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
}

.header-subtitle {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
}

h2.fw1.f5.f3-l {
  font-weight: 700 !important;
}

@media screen and (min-width: 60em) {
  h1.f2.f-subheadline-l {
    font-size: 2.2rem !important;
  }
  .header-subtitle {
    font-size: 1.8rem !important;
  }
}

/* Body text: override Tachyons f4 (1.25rem) */
article.f4 {
  font-size: 1rem !important;
}

h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid #00abae;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.15rem;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Program schedule */
.program-day {
  margin-bottom: 2rem;
}

.session-title {
  background-color: #00abae;
  color: #fff;
  padding: 0.5rem 1rem;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 3px;
}

.session-chair {
  font-weight: normal;
  font-size: 0.9rem;
  opacity: 0.9;
}

.program-talk {
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 0;
  line-height: 1.5;
}

.program-talk:hover {
  background-color: #f9f9f9;
}

.talk-time {
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.talk-speaker {
  font-weight: bold;
}

.talk-affiliation {
  color: #666;
}

.talk-title {
  color: #444;
  font-style: italic;
  padding-left: 1rem;
  display: inline-block;
}

.program-break {
  padding: 0.4rem 1rem;
  color: #333;
  margin: 0.3rem 0;
}

.program-social {
  font-weight: bold;
  color: #333;
}

.organizer {
  padding: 0.3rem 0 0.3rem 1rem;
}

/* Accordion abstracts */
.talk-details {
  margin-top: 0.2rem;
}

.talk-details summary {
  color: #444;
  font-style: italic;
  padding-left: 1rem;
  cursor: pointer;
  list-style: none;
  display: block;
}

.talk-details summary::-webkit-details-marker {
  display: none;
}

.talk-details summary::before {
  content: "\25B6 ";
  font-size: 0.65em;
  font-style: normal;
  color: #00abae;
  display: inline-block;
  transition: transform 0.3s ease;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.talk-details[open] summary::before {
  transform: rotate(90deg);
}

.talk-details summary:hover {
  color: #00abae;
}

.talk-abstract {
  overflow: hidden;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 3px solid #00abae;
  margin: 0.3rem 0 0.3rem 1rem;
  background-color: #f9fafa;
  border-radius: 0 3px 3px 0;
  animation: accordion-open 0.35s ease forwards;
}

@keyframes accordion-open {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 800px; }
}

/* Print styles */
@media print {
  /* Force system fonts to prevent garbled text in PDF export */
  * {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  }

  /* Header: make text dark and readable */
  .cover .tc-l,
  .cover h1,
  .cover h2,
  .cover .white-90,
  .cover .white-80,
  .cover .white-70 {
    color: #000 !important;
  }

  /* Hide header background image, keep title text */
  .cover {
    background-image: none !important;
    background-color: #fff !important;
    filter: none !important;
  }

  .cover .dt.bg-black-60 {
    background: none !important;
  }

  /* Ensure all text is dark */
  body, p, div, span, li, td, th {
    color: #000 !important;
  }

  .talk-affiliation {
    color: #444 !important;
  }

  .talk-title {
    color: #333 !important;
  }

  .session-title {
    background-color: #00abae !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide navigation */
  nav {
    display: none !important;
  }

  /* Accordion abstracts for print */
  .talk-details[open] .talk-abstract {
    animation: none !important;
    max-height: none !important;
  }
  .talk-details summary::before {
    display: none !important;
  }
  .talk-abstract {
    border-left: 2px solid #999 !important;
    background-color: #fff !important;
  }

  /* Registration button as plain link */
  .registration-button {
    background: none !important;
    color: #000 !important;
    padding: 0 !important;
    text-decoration: underline !important;
  }
}

/* Registration button */
.registration-button {
  display: inline-block;
  background-color: #00abae;
  color: #fff !important;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 1rem 0;
}

.registration-button:hover {
  background-color: #008f91;
  color: #fff !important;
}
