/* Seminar pages: spacing and hierarchy fixes layered on top of /templates/hci-test.css.
   Loaded by index.php and speaker.php after the shared stylesheet. 2026-10-06. */

/* ---------- speaker page ---------- */
#talk_title_middle { font-size: 30px; font-weight: bold; line-height: 1.15; }
#speaker_name p { margin: 0; }                              /* marked() wraps the name in <p>; its 1em margin was the gap */
#talk_title_middle .affiliation { font-size: 18px; font-weight: 400; color: #444; margin: 4px 0 10px; }
#talk_title { font-size: 24px; font-weight: bold; line-height: 1.2; }
#middle_pane .talk-date { font-size: 17px; font-weight: 400; color: #666; margin-top: 6px; }
#talk_abstract { margin-top: 20px; line-height: 1.5; }
#talk_abstract p { margin: 0 0 1em; }
#talk_abstract p:last-child { margin-bottom: 0; }
img.speaker_photo { display: block; max-width: 250px; height: auto; margin-bottom: 16px; }
#right_pane i { font-style: normal; }                       /* long bios in italic are hard to read */
#right_pane_table td { line-height: 1.5; }
#right_pane p { margin: 0 0 1em; }
#overview > div[style*="float:right"] { font-size: 15px; padding-top: 2px; }

/* ---------- quarter listing ---------- */
#quarter_talk_table { width: 100%; border-collapse: collapse; }
#quarter_talk_table thead { display: none; }               /* the header row was empty cells used only to set widths */
#quarter_talk_table td { padding: 4px 12px 4px 0; vertical-align: top; line-height: 1.3; }
#quarter_talk_table td.date { width: 4.5em; white-space: nowrap; text-align: right; color: #555; padding-right: 16px; }
#quarter_talk_table td.speaker { width: 23%; }
#quarter_talk_table td.speaker strong { font-weight: bold; }
#quarter_talk_table td.speaker .affil { color: #555; font-size: 0.93em; }
#quarter_talk_table td.location { width: 11em; color: #555; }
#quarter_talk_table a { text-decoration: none; }
#quarter_talk_table a:hover { text-decoration: underline; }
#quarter_talk_table tr.tba, #quarter_talk_table tr.tba a, #quarter_talk_table tr.tba strong,
#quarter_talk_table td.tba, #quarter_talk_table td.tba a { color: #999; font-weight: normal; }
#main h2 { margin: 6px 0 10px; }
#news p { margin: 0 0 12px; line-height: 1.4; }

/* Header nav: the shared stylesheet's hover rule used to enlarge the link (fixed there too; this
   copy takes effect immediately because this file is versioned while the shared one may be cached). */
.linkpadding:hover { font-size: 15px; color: #fff; text-decoration: underline; }

#main-information { float: none; width: auto; }        /* shrink-to-fit float narrowed the page at some window widths */
#main-information > table { width: 100%; }           /* speaker page layout table: otherwise it shrinks to its content on tablets */

@media (max-width: 1023px) {
  #right_pane { width: auto; }                       /* 600px fixed photo/bio column overflowed tablets */
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  /* shared frame */
  #right-information { float: none; width: auto; }
  #overview, #main { padding: 8px 14px 0; }
  #overview h2, #main h2 { font-size: 18px; line-height: 1.25; padding-right: 0; }
  #overview h2 .subheading:last-child { display: none; }   /* "(Seminar on People, Computers, and Design)" repeats the title */
  #overview h2 .subheading { font-size: 17px; }
  #overview img, #main img, #news img, #middle_pane img, #right_pane img, blockquote img { max-width: 100%; height: auto; }
  #talk_abstract, #right_pane, #news, #quarter_talk_table { overflow-wrap: anywhere; }

  /* quarter listing: each talk becomes a block with the date as a gutter */
  #main > table, #main > table > tbody, #main > table > tbody > tr, #main > table > tbody > tr > td { display: block; width: auto; padding: 0; }
  #quarter_talk_table, #quarter_talk_table tbody { display: block; width: auto; }
  #quarter_talk_table tr { display: grid; grid-template-columns: 3.9em 1fr; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid #e6e6e6; }
  #quarter_talk_table td, #quarter_talk_table td.date, #quarter_talk_table td.speaker, #quarter_talk_table td.location { display: block; width: auto; padding: 0; }
  #quarter_talk_table td.date { grid-row: 1 / span 3; padding-top: 1px; }
  #quarter_talk_table td.speaker, #quarter_talk_table td.location, #quarter_talk_table td.talk { grid-column: 2; }
  #quarter_talk_table td.talk { margin-top: 2px; }
  #quarter_talk_table tr.more { display: block; padding: 10px 0 0; border: 0; }
  #news { float: none; width: auto; margin: 18px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid #e6e6e6; }

  /* speaker page: stack the two panes */
  #quarter_header { width: auto; margin: 0 14px 6px; }
  #main-information > table, #main-information > table > tbody, #main-information > table > tbody > tr { display: block; width: auto; }
  #middle_pane, #right_pane { display: block; width: auto !important; padding: 0 14px !important; }
  #right_pane { margin-top: 20px; }
  #right_pane_table, #right_pane_table tbody, #right_pane_table tr, #right_pane_table td { display: block; width: auto; padding: 0; }
  #talk_title_middle { font-size: 24px; }
  #talk_title_middle .affiliation { font-size: 16px; }
  #talk_title { font-size: 20px; }
  #middle_pane .talk-date { font-size: 15px; }
  #talk_abstract { margin-top: 16px; }
  img.speaker_photo { max-width: 200px; }
  .videos { height: auto; }
  .video_container iframe { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; height: auto; }

  /* archive pages (years.php, alphabetical.php) are wrapped in a blockquote */
  #centered-page > blockquote { margin: 8px 14px; }
}
