/* The ANZCA ASM 2027 site uses this Adobe Fonts kit for Sofia Pro. */
@import url("https://use.typekit.net/llf4rxv.css");

:root {
  --asm-ink: #383838;
  --asm-blue: #187ea6;
  --asm-blue-dark: #005a7c;
  --asm-orange: #f5911f;
  --asm-orange-dark: #9c4a00;
  --asm-line: #d7e3e7;
  --asm-pale: #f2f7f8;
  font-family: sofia-pro, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--asm-ink);
  /* Let the WordPress page background show through the embedded program. */
  background: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
main { max-width: 1500px; margin: auto; padding: 22px 20px 30px; }
h1, h2, h3, h4 { font-family: inherit; }
h1 { margin: 0 0 8px; color: var(--asm-orange); font-size: clamp(1.875rem, 3vw, 2.25rem); line-height: 1.2; font-weight: 700; text-transform: uppercase; }
h2 { font-size: 1.25rem; line-height: 1.3; }
h3 { font-size: 1.05rem; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.intro p { max-width: 760px; line-height: 1.5; }
.primary, .secondary, .tab { border: 1px solid var(--asm-blue); border-radius: 0; min-height: 44px; padding: 10px 15px; cursor: pointer; font: inherit; font-weight: 700; }
.primary { display: inline-block; background: var(--asm-blue); color: #fff; text-decoration: none; }
.primary:hover { background: var(--asm-blue-dark); border-color: var(--asm-blue-dark); }
.secondary { background: #fff; color: var(--asm-blue-dark); }
.secondary:hover { background: #e5f1f5; }
.tabs { display: flex; gap: 3px; overflow: auto; margin: 22px 0 20px; }
.tab { flex: 1; white-space: nowrap; background: var(--asm-blue); color: #fff; }
.tab:hover { background: var(--asm-blue-dark); border-color: var(--asm-blue-dark); }
.tab[aria-selected="true"] { background: #fff; color: var(--asm-blue-dark); box-shadow: inset 0 -4px 0 var(--asm-orange); }
.tab:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--asm-orange-dark); outline-offset: 2px; }
.day > h2, .panel > h2 { margin: 0 0 14px; color: var(--asm-orange-dark); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.day + .day { margin-top: 28px; }
.slot { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--asm-line); }
.time { padding: 12px 0; color: var(--asm-ink); font-size: .9rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.card { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 7px; min-width: 0; border: 0; border-radius: 4px; padding: 16px; text-align: left; font: inherit; overflow-wrap: anywhere; }
.card strong { font-size: 1.05rem; line-height: 1.35; }
.card span { font-size: .9rem; line-height: 1.4; }
.card .session-code { background: rgba(255, 255, 255, .2); border: 1px solid currentColor; border-radius: 3px; padding: 2px 6px; font-size: .78rem; font-weight: 700; line-height: 1.25; }
button.card .session-location { display: inline-flex; align-items: flex-start; gap: 5px; max-width: 100%; margin-top: auto; color: inherit; }
button.card .session-location svg { width: 15px; height: 15px; margin-top: 2px; flex: 0 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button.card { min-height: 44px; cursor: pointer; }
button.card:hover { filter: brightness(.94); }
.controls, .print-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px; background: var(--asm-pale); border-top: 4px solid var(--asm-blue); }
.field { display: flex; flex: 1 1 150px; flex-direction: column; gap: 5px; font-size: .875rem; font-weight: 700; }
.field input:not([type="checkbox"]), .field select { width: 100%; min-height: 42px; border: 1px solid #8aa9b5; border-radius: 0; padding: 10px; background: #fff; color: var(--asm-ink); font: inherit; font-size: 16px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; }
.result-time { font-weight: 700; }
.count, .revision { color: #53676e; font-size: .9rem; }
.empty { padding: 20px; }
.session-meta { color: #53676e; }
dialog { width: min(760px, calc(100% - 24px)); max-height: 90vh; border: 0; border-top: 5px solid var(--asm-orange); border-radius: 0; padding: 0; box-shadow: 0 10px 55px #0005; }
dialog::backdrop { background: #0009; }
.dialog-inner { padding: 24px; }
#dialog-close { float: right; border: 0; background: transparent; color: var(--asm-blue-dark); font-size: 2rem; line-height: 1; cursor: pointer; }
dialog h2 { padding-right: 35px; color: var(--asm-blue-dark); font-size: 1.5rem; }
dialog section { border-top: 1px solid var(--asm-line); margin-top: 20px; }
dialog section h3 { color: var(--asm-orange-dark); }
dialog p { white-space: pre-line; line-height: 1.5; }
.presentation { padding: 8px 0; border-bottom: 1px solid #e5eaee; }
.presentation h4 { margin: 4px 0; }
.profile { display: flex; gap: 12px; margin: 10px 0; }
.profile img { width: 70px; height: 70px; object-fit: cover; }
.profile p { margin: 5px 0; }
.print-controls { margin: 20px 0; }
.print-banner { display: block; width: 100%; height: auto; }
.print-controls fieldset { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; }
.print-controls fieldset .field, .print-controls .field:has(input[type="checkbox"]) { flex: 0 0 auto; }
.print-controls .field input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--asm-blue); }
.print-controls + .day { margin-top: 20px; }
.card p { margin: 2px 0; white-space: pre-line; }
.revision { margin-top: 24px; }
@media screen and (min-width: 651px) {
  body[data-mode="print"] .cards { grid-template-columns: repeat(var(--session-count, 1), minmax(0, 1fr)); }
}
@media screen and (min-width: 651px) and (max-width: 900px) {
  .tab { min-width: 0; padding-inline: 5px; font-size: .8rem; }
  .intro { gap: 12px; }
  .intro .primary { white-space: nowrap; }
}
@media screen and (max-width: 650px) {
  main { padding: 14px 12px 24px; }
  .intro { display: block; }
  .slot { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .time { padding: 8px 0; }
  .cards { grid-template-columns: 1fr; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; overflow: visible; }
  .tab { min-width: 0; white-space: normal; }
  .tab-search { grid-column: 1 / -1; }
  .tab-search::after { content: " program"; }
}
@page { size: A4 portrait; margin: 10mm; }
@media print {
  main { max-width: none; padding: 0; }
  .intro, .print-controls, dialog { display: none; }
  .day { break-before: page; }
  .day:first-child { break-before: auto; }
  .slot { break-inside: avoid; grid-template-columns: 20mm minmax(0, 1fr); gap: 3mm; }
  .cards { grid-template-columns: repeat(var(--session-count, 1), minmax(0, 1fr)); gap: 2mm; }
  .card { print-color-adjust: exact; -webkit-print-color-adjust: exact; padding: 2mm; gap: 1mm; font-size: 8pt; line-height: 1.3; }
  .card strong { font-size: 9pt; line-height: 1.25; }
  .card span { font-size: 8pt; line-height: 1.3; }
  .time { font-size: 8pt; }
  .revision { display: block; }
}
