* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
  background: #005a9c;
  padding: 1rem 3rem;
}
body {
  background: #fff;
  display: grid;
  grid-template:
    "header header   " min-content
    "main   sidebar-0" min-content
    "main   sidebar-1" min-content
    "main   sidebar-2" 1fr
    "footer footer   " min-content
    / 1fr   min-content;
  align-items: baseline;

  border-radius: .6em;
  color: #333;
  font: 100%/1.3 Helvetica, Arial, Verdana, sans-serif;
  margin: 0 auto;
  max-width: 66rem;
  padding: 3em;
}
main {
  line-height: 1.4;
}
body > header {
  grid-area: header;
}
body > main {
  grid-area: main;
  max-width: 42rem;
  scroll-margin-top: 5rem;
  scroll-behavior: smooth;
}
body > footer {
  grid-area: footer;
}
.box-register {
  grid-area: sidebar-0;
}
.box-host {
  grid-area: sidebar-1;
}
.box-sponsor {
  grid-area: sidebar-2;
}

body::after {
  content: "";
  display: table;
  clear: both;
}

.header-logos-etc {
  display: flex;
  align-items: center;
}
.header-logo {
  flex-shrink: 0;
}
.header-tagline {
  display: block;
  margin: 0 1rem;
  font-style: italic;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  order: 10; /* move visually after the icons */
}
.header-figure {
  position: relative;
  margin: 0.5rem 0;
  overflow: hidden;
}
.header-figure picture {
  display: block;
  display: contents;
}
.header-map {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 16rem);
  object-fit: cover;
  object-position: bottom right;
}
.header-wordmark {
  position: absolute;
  top: 0;
  left: 1.5rem;
  max-height: 100%;
  max-width: calc(100% - 3rem);
}
@media (max-height: 30rem) {
  body {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  /* size figure to the wordmark, not the map */
  .header-map {
    position: absolute;
    top: 0;
    left: 0;
    max-height: none;
  }
  .header-wordmark {
    position: relative;
  }
  .header-logos-etc {
    display: block;
    display: contents;
  }
  /* float logos to the side */
  .header-logo {
    float: right;
    clear: right;
    text-align: right;
  }
  .header-logo img.inline {
    display: block;
    margin: auto;
  }
  .header-figure {
    margin-top: 0;
  }
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  padding: 0.5rem;
  z-index: 100;
  color: #005a9c;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}

h1,
h2,
h3,
h4,
h5,
p,
dl,
ul,
ol {
  margin: 1rem 0;
}
main    > :first-child,
section > :first-child,
aside   > :first-child,
header  > :first-child,
footer  > :first-child {
  margin-top: 0;
}

a,
h1,
h2,
.menu a.active-tab {
  color: #005a9c;
}

a:hover {
  color: #111;
}

a.ref,
.has-ref {
  cursor: pointer;
}

a.ref {
  color: inherit;
  display: none;
  font-size: 1em;
  left: 0;
  opacity: .25;
  position: absolute;
  text-decoration: none;
}

.has-ref:hover > a.ref {
  display: block;
}

.has-ref:target > a.ref {
  display: block;
  opacity: .5;
}

.has-ref {
  margin-left: -1em;
  padding-left: 1em;
  position: relative;
}

.graphic {
  height: 13em;
  margin: 0 -1em;
  overflow: hidden;
  position: relative;
}

.graphic img {
  bottom: 0;
  height: 100%;
  left: 0;
  position: absolute;
  width: 100%;
}

.box {
  box-shadow: .3em .3em 0 rgba(0,0,0,.1);
  border: 1px solid #ccc;
  color: #666;
  font-size: 0.9rem;
  margin-left: 3rem;
  padding: 1em;
  width: 19em;
}

.box-emphasis {
  background-color: #f1f7ff;
}

.box + .box {
  margin-top: 2rem;
}

.box h2 {
  font-size: 1.25rem;
}

.box *:last-child {
  margin-bottom: 0;
}

.image-paragraph-host {
  margin-bottom: .75em;
}

.image-paragraph {
  margin: 0;
}

.image-link {
  display: block;
}

.image-link img {
  max-width: 14rem;
  margin: 1rem auto;
  width: 100%;
  max-height: 5rem;
}

footer, hr {
  border: none;
  border-top: 2px solid #ddd;
  clear: both;
}
footer {
  color: #555;
  font-size: 0.9rem;
  margin: 2rem 0 0;
  padding-top: 1rem;
}

.menu {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  clear: both;
}

.menu details {
  display: none; /* don't show toggle by default (see media query below) */
}

.menu,
.menu li {
  width: 100%;
}

.menu ul {
  display: flex;
  list-style: none;
  margin: -2px 0 0 -2px; /* manually collapse margins from children (recreate flex gap) */
  padding: 0;
}

.menu li {
  margin: 2px 0 0 2px;
  flex: 10rem;
}
.menu a {
  display: block;
}
.menu a,
.menu summary {
  background: #005a9c;
  color: #eee;
  font-size: .9rem;
  height: 100%;
  padding: .5rem .3rem;
  text-align: center;
  text-decoration: none;
  transition: .05s background ease-in-out, .05s color ease-in-out;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
}

.menu a:hover,
.menu summary:hover {
  background: #222;
  color: #fff;
}
.menu a:focus,
.menu summary:focus {
  outline: dashed 2px;
  outline-offset: -4px;
}

.menu a:active {
  opacity: .75;
}

.menu a.active-tab {
  background: #fff;
  font-weight: bold;
  pointer-events: none;
  border-top: solid thin #005a9c;
  border-bottom: solid thin #005a9c;
}

ul {
  list-style: square;
  list-style: "✯ ";
}
ul, ol {
  margin-left: 0;
  padding-left: 1em;
}
ul ul, ol ul, dl ul, blockquote cite {
  list-style: circle;
  list-style: "➢ ";
  margin: 0.5rem 0 1rem;
}
li {
  margin-bottom: 0.5rem;
}

blockquote {
  margin-left: 0.5em;
  padding-left: 0.5em;
  border-left: solid #ddd 0.25rem;
  font-family: "Bookman Old Style", Bookman, serif;
  line-height: 1.2;
}
blockquote cite {
  display: list-item;
  list-style-position: inside;
  font-style: italic;
}

dd {
  margin: 0 0 0.5rem;
}

dt {
  font-weight: 700;
  margin-top: 1rem;
}
dd {
  border: solid #ddd 0.25rem;
  border-style: solid none none solid;
  padding: 0.5rem 0 0 0.5rem;
}
dd p {
  margin: 0.5rem 0 0
}
dd > :first-child {
  margin-top: 0;
}

img {
  display: block;
  max-width: 100%;
}

img.inline {
  display: inline-block;
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  break-after: avoid;
  line-height: 1.2;
}

code {
  font: 100% ui-monospace, "Consolas", "Menlo", monospace;
}

@media all and (max-width: 40rem) {
  /* remove extra spacing at edges */
  html {
    padding: 0;
  }
  body {
    border-radius: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .header-logos-etc {
    flex-wrap: wrap;
  }
  .header-tagline {
    margin: 0;
  }
}

@media all and (max-width: 54rem) {
  .header-tagline {
    font-weight: normal;
    font-size: 90%;
  }

  /* single-column layout */
  body {
    grid-template:
      "header"
      "sidebar-0"
      "main"
      "sidebar-1"
      "sidebar-2"
      "footer";
    grid-template-columns: 100%; /* somehow prevents overflow */
    max-width: 100vw;
  }

  .menu details:not(.no-details-support) {
    display: block;
    margin-bottom: 2px;
  }

  .menu details:not(.no-details-support):not([open]) + ul {
    display: none;
  }

  .menu details:not([open]) .menu-hide {
    display: none;
  }

  .menu details[open] summary {
    width: max-content;
    margin-left: auto;
    padding: 0.5rem;
    list-style-type: "× ";
  }

  .menu ul {
    flex-wrap: wrap;
  }
  .menu li:first-child:nth-last-child(odd) {
    /* if there's an odd number of items,
      make the first one big instead of the last */
    flex: calc(20rem + 2px) 2;
  }

  .graphic {
    height: 10em;
    margin: 0;
  }

  .box {
    width: auto;
    margin-left: 0;
  }
}

@page {
  margin: 2cm;
}

@media print {
  html {
    background: none;
    padding: 0;
  }

  body {
    background: none;
    border-radius: 0;
    padding: 0;
  }
}

/* Initialize footnote counters. */
body {
  counter-reset: footnote_counter footnote-ref_counter;
}

h2.footnote {
  counter-increment: footnote_counter;
}

a.footnote-ref {
  counter-increment: footnote-ref_counter;
  text-decoration: none;
}

h2.footnote:before {
  content: counter(footnote_counter);
  display: block;
  float: left;
  font-size: .9em;
  margin-right: 1.25ch;
  padding: 2em 4em;
  vertical-align: top;
}

h2.footnote:after {
  clear: both;
  content: "";
  display: block;
}

a.footnote-ref:after {
  content: counter(footnote-ref_counter);
  font-size: .5em;
  margin-left: .25em;
  vertical-align: super;
}

h2.footnote:before,
a.footnote-ref:after {
  background-color: #005a9c;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  padding: .1em .5em;
}

.agenda h3 {
  margin: 0;
  color: white;
}

.schedule-header {
  padding: 0.5rem 0;
  background: #005a9c;
  box-shadow: 0 0 0 0.2rem #005a9c,
    0.1rem 0.1rem 0 0.2rem rgba(0,0,0,0.4);
  border-radius: 0.2rem;
}

.schedule-video-link, .schedule-captions-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25em;
  border-radius: 0.2em;
  background: white;
  font-weight: 700;
  color: #005a9c;
}
.schedule-video-link {
  margin-left: 1rem;
}
.schedule-video-link::before {
  content: "🎦 ";
  font-size: 90%;
  margin-left: -0.1em;
}
.schedule-captions-link::before {
  content: "📝 ";
  font-size: 90%;
  margin-left: -0.1em;
}
.schedule-time {
  display: block;
  font-weight: normal;
}
.schedule-time.past-event,
.schedule-time:not(.past-event) .utc {
  display: block;
  font-size: 1rem;
  opacity: 0.8;
}

.schedule {
  list-style: none;
}

.schedule > li + li {
  margin-top: .5rem;
}

.schedule-item summary {
  list-style-position: outside;
  position: relative;
}
.schedule-item summary::-webkit-details-marker {
  position: absolute;
  left: -1rem;
}

.schedule-item .summary-wrapper {
  display: flex;
  align-items:center;
  justify-content: space-between;
}

.schedule-item-title {
  padding: 0.2em 0.5em;
}

.schedule-item-type {
  background-color: #ddd;
  display: block;
  font-weight: bold;
  font-size: 80%;
  min-width: 8em;
  padding: 0.2em 0.5em;
  white-space: nowrap;
  align-self: stretch;
}
.schedule-item-type > * {
  display: block;
  text-align: center;
}

.schedule-item-type.type-plenary,
.schedule-item-type.type-presentations,
.schedule-item-type.type-keynote {
  background-color: #b9d3ee;
}

.schedule-item-type.type-panel {
  background-color: #d6f6b6;
}

.schedule-item-type.type-breakout,
.schedule-item-type.type-hack,
.schedule-item-type.type-demo {
  background-color: #ffe7ba;
}

.schedule summary:focus-visible {
  outline: dotted thin #005c9c;
  outline-offset: 2px;
}

.schedule-item-details,
.schedule-item .summary-wrapper {
  box-shadow: 0.3rem 0.3rem 0 rgba(0,0,0,.1);
  border: 1px solid #ccc;
}
.schedule-item-details {
  margin: 9px 0 5px 27px;
  padding: 1rem;
  position: relative;
}

.schedule-item-details dt {
  margin: 0;
}

.schedule-item-details dd {
  margin: 0 0 0.5rem;
  border-top: none;
  padding: 0 0 0 0.5rem;
}
.schedule-item-details dd:last-child {
  margin-bottom: 0;
}

.schedule-item-actions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-item-actions li {
  display: inline-block;
  margin: 0;
}

.schedule-item-action {
  display: inline-block;
  margin-right: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  background-color: #f1f7ff;
  color: #005a9c;
}

.schedule-talk-info {
  font-size: 90%;
  display: block;
  margin-bottom: .25em;
}

.schedule-item-details dd + dt {
  margin-top: 1rem;
}

.format dt {
  font-size: 1rem;
  /*font-weight: 600;*/
  margin: .5rem 0 .75rem;
  padding: .5rem 1rem;
}

.sponsors-section {
  margin-top: 1rem;
}

.sponsors-section :last-child {
  margin-bottom: 0;
}

#notification {
  background-color: #ff0;
  border: 1px solid #ccc;
  box-shadow: .2em .4em .5em #888;
  color: #666;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1em;
  padding: .3em;
  text-align: center;
}

.concluded {
  text-decoration: line-through;
}

@media print {
  h1 {
    background: none;
    color: #111;
  }

  nav, aside {
    display: none;
  }

  body,
  article {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  @page {
    margin: 2cm;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  article {
    page-break-before: always;
  }

  ul, img {
    page-break-inside: avoid;
  }

  #dates {
    display: none;
  }
}

.irc cite { font-weight: bold;}

ol ol { margin: 1rem;}

.warning, .info {
  box-shadow: 0.5rem 0.5rem 0.1rem rgba(0,0,0,.1);
  padding: 0.5em;
  margin: 0.5em 0 0.5em -0.5em;
}
.warning {
  background-color: #fda;
}
.info {
  background-color: #dfe;
}
.warning > :first-child,
.info > :first-child {
  margin-top: 0;
}
.warning > :last-child,
.info > :last-child {
  margin-bottom: 0;
}

.warning h1 {
  font-size: 120%;
  font-style: italic;
  font-weight: bold;
  text-align: center;
}

.todo {
  color: #900;
  background-color:#FFC !important;
  font-style: italic;
}

#banner h1 {
  margin-bottom: 0;
}
#banner h1+p {
  margin-top: 0;
}

button {
  font-size: 75%;
  padding: 0.3em;
}

.cta {
  color: #005a9c;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

main a[href$=".pdf"]:not(.schedule-item-action)::after {
	content: " (PDF)";
}

.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
