/* ================================================================
   MELBOURNE QUANTUM SUMMIT 2027

   Visual design:
   - narrow centred content
   - red accent colour
   - pale pink alternating sections
   - dark photographic/abstract hero
   - simple typography
   - minimal cards and ornamentation
   ================================================================ */


/* ----------------------------------------------------------------
   VARIABLES
   ---------------------------------------------------------------- */

:root {
    --red: #d90000;             /* 5.3:1 on white, 4.8:1 on pale pink */
    --salmon: #e56868;
    --pale-pink: #fde4e4;
    --pale-pink-light: #fff1f1;

    --navy: #172536;
    --navy-light: #29405f;

    --text: #343434;
    --muted: #676767;
    --border: #b7b7b7;

    --keynote: #d9e9f6;
    --talk: #dcebd7;
    --break: #fff0c7;
    --community: #e5e0ec;
    --poster: #f5ddd2;

    --page-width: 960px;

    --shadow:
        0 2px 8px rgba(0, 0, 0, 0.07);
}


/* ----------------------------------------------------------------
   BASE
   ---------------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    margin: 0;
    font-family:
        Roboto,
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: white;

    font-size: 18px;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.page-width {
    width: min(
        calc(100% - 44px),
        var(--page-width)
    );

    margin: 0 auto;
}

/* Same left edge as every other section; only the content inside
   is kept narrower. */
.page-width.narrow > * {
    max-width: 800px;
    margin-left: 0;
}


/* ----------------------------------------------------------------
   ANNOUNCEMENT
   ---------------------------------------------------------------- */

.announcement {
    padding: 13px 20px;

    background: var(--salmon);
    color: #171717;

    font-size: 15px;
    text-align: center;
}


/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #dddddd;

    backdrop-filter: blur(8px);
}

.nav-container {
    width: min(
        calc(100% - 44px),
        var(--page-width)
    );

    min-height: 60px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-name {
    flex: 0 0 auto;

    color: var(--red);
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: #3c3c3c;
    text-decoration: none;

    font-size: 16px;
    font-weight: 500;

    padding: 4px 0;
    border-bottom: 2px solid transparent;

    transition:
        color 120ms ease,
        border-color 120ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--red);
}

.main-nav a[aria-current="page"] {
    color: var(--red);
    border-bottom-color: var(--red);
}

.menu-toggle {
    display: none;

    width: 38px;
    height: 34px;

    padding: 5px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    margin: 5px auto;

    background: #333333;

    transition:
        transform 150ms ease,
        opacity 150ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */

.hero {
    min-height: 255px;

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;

    /*
       If you later put an image at:

           assets/images/hero.jpg

       it will automatically become the hero photograph.

       Until then the radial gradients provide an abstract
       quantum-looking fallback.
    */

    background:
        linear-gradient(
            rgba(13, 27, 43, 0.72),
            rgba(13, 27, 43, 0.82)
        ),

        radial-gradient(
            circle at 28% 40%,
            rgba(255, 255, 255, 0.22) 0 2%,
            transparent 2.5% 8%,
            rgba(255, 255, 255, 0.10) 8.5% 10%,
            transparent 10.5% 100%
        ),

        radial-gradient(
            circle at 72% 18%,
            transparent 0 7%,
            rgba(255, 255, 255, 0.13) 7.5% 8.5%,
            transparent 9% 100%
        ),

        url("assets/images/hero.jpg")
        center center / cover no-repeat,

        var(--navy);
}

.hero::before,
.hero::after {
    content: "";

    position: absolute;

    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero::before {
    width: 240px;
    height: 240px;

    left: -80px;
    top: -110px;
}

.hero::after {
    width: 340px;
    height: 340px;

    right: -120px;
    bottom: -250px;
}

.hero-content {
    width: min(
        calc(100% - 44px),
        950px
    );

    margin: 0 auto;

    padding: 42px 0 38px;

    position: relative;
    z-index: 2;

    color: white;
    text-align: center;
}

.hero h1 {
    margin: 0;

    font-size: clamp(38px, 5.5vw, 56px);
    line-height: 1.1;
    font-weight: 700;
}

.hero-rule {
    width: 74px;
    height: 5px;

    margin: 17px auto;

    background: var(--red);
}

.hero-edition {
    margin: 0 0 14px;

    font-size: 20px;
}

.hero-date {
    margin: 0;

    font-size: 24px;
    font-weight: 700;
}

.hero-location {
    margin: 6px 0 0;

    font-size: 20px;
    font-weight: 600;
}

.hero-action {
    margin: 22px 0 0;
}

.hero-action .button {
    padding: 12px 34px;

    font-size: 17px;
}

.provisional-tag {
    display: inline-block;

    margin-left: 7px;
    padding: 2px 7px;

    position: relative;
    top: -2px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 3px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* ----------------------------------------------------------------
   INFORMATION STRIP
   ---------------------------------------------------------------- */

.information-strip {
    padding: 22px 0;

    background: var(--pale-pink);
}

.information-strip p {
    margin: 0;

    font-size: 18px;
    line-height: 1.6;
}


/* ----------------------------------------------------------------
   GENERAL SECTIONS
   ---------------------------------------------------------------- */

.section {
    padding: 48px 0;
}

.white-section {
    background: white;
}

.pink-section {
    background: var(--pale-pink-light);
}

.compact-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-heading {
    margin: 0 auto 31px;

    text-align: left;
}

/* The first heading on each tab other than Home is a level-one
   heading (h1) for screen readers. It looks the same as the others. */
.section-heading h1,
.section-heading h2 {
    margin: 0 0 10px;

    color: var(--red);

    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.section-heading p {
    max-width: 760px;

    margin: 0;

    font-size: 18px;
    line-height: 1.6;
}


/* ----------------------------------------------------------------
   THREE COLUMNS
   ---------------------------------------------------------------- */

.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 46px;
}

.goals {
    padding: 4px 0;
}

.goals article {
    text-align: center;
}

.goals h2 {
    min-height: 4.05em;

    margin: 0 0 12px;

    color: var(--red);

    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.goals p {
    margin: 0;

    font-size: 17px;
    line-height: 1.55;
    text-align: left;
}


/* ----------------------------------------------------------------
   PROGRAMME
   ---------------------------------------------------------------- */

.programme-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #aeb5bd;
    background: white;

    box-shadow: var(--shadow);
}

.programme-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;
    table-layout: fixed;

    font-size: 16px;
    line-height: 1.35;
}

.programme-table thead th {
    padding: 13px 10px;

    border: 1px solid #8794a2;

    background: #2c4568;
    color: white;

    font-weight: 500;
    text-align: center;
}

.programme-table thead th:first-child {
    width: 132px;
}

.programme-table tbody th {
    width: 132px;

    padding: 10px 8px;

    border: 1px solid var(--border);

    background: #f4f4f5;

    font-weight: 500;
    text-align: center;
    vertical-align: middle;
}

.programme-table td {
    padding: 10px 12px;

    border: 1px solid var(--border);

    background: #f7f7f7;

    vertical-align: middle;
}

.programme-table td small {
    display: block;

    margin-top: 3px;

    color: #555555;

    font-size: 14px;
}

.programme-table td.keynote {
    background: var(--keynote);
}

.programme-table td.contributed {
    background: var(--talk);
}

.programme-table td.break {
    background: var(--break);
}

.programme-table td.community {
    background: var(--community);
}

.programme-table td.poster {
    background: var(--poster);
}


.programme-key {
    margin-top: 14px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;

    color: #555555;

    font-size: 15px;
}

.programme-key span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.programme-key i {
    width: 14px;
    height: 14px;

    display: inline-block;

    border: 1px solid #a8a8a8;
}

.key-keynote {
    background: var(--keynote);
}

.key-talk {
    background: var(--talk);
}

.key-break {
    background: var(--break);
}

.key-community {
    background: var(--community);
}

.key-poster {
    background: var(--poster);
}

.programme-note {
    margin: 12px 0 0;

    color: var(--muted);

    font-size: 15px;
}

/* One table per day. script.js builds these from the main table;
   they replace it on phones (see MOBILE below). */
.programme-day-tables {
    display: none;
}

.programme-table.day-table {
    min-width: 0;
    margin-bottom: 22px;

    border: 1px solid #aeb5bd;
    box-shadow: var(--shadow);
}

.programme-table.day-table .time-column {
    width: 112px;
}

.programme-table.day-table tbody th {
    padding: 10px 6px;

    font-size: 15px;
    white-space: nowrap;
}

.programme-table.day-table thead th:first-child {
    width: auto;
}


/* ----------------------------------------------------------------
   RESEARCH AREAS
   ---------------------------------------------------------------- */

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 55px;
}

.research-grid ul {
    margin: 0;
    padding-left: 20px;
}

.research-grid li {
    margin-bottom: 14px;

    padding-left: 4px;

    font-size: 18px;
}


/* ----------------------------------------------------------------
   PARTICIPATION
   ---------------------------------------------------------------- */

.participation article {
    text-align: center;
}

.participation h3 {
    margin: 0 0 7px;

    color: var(--red);

    font-size: 21px;
}

.participation p {
    font-size: 17px;
    text-align: left;
}

.large-stat {
    margin: 0 0 10px !important;

    color: var(--navy-light);

    font-size: 34px !important;
    font-weight: 700;
    text-align: center !important;
}

.status-text {
    color: var(--muted);
    font-style: italic;
}


/* ----------------------------------------------------------------
   COMMUNITY FEATURES
   ---------------------------------------------------------------- */

.feature-list {
    display: grid;
    grid-template-columns: 1fr;

    gap: 28px;
}

.feature-list article {
    max-width: 790px;

    padding-bottom: 25px;

    border-bottom: 1px solid #e2e2e2;
}

.feature-list article:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.feature-list h3 {
    margin: 0 0 7px;

    color: var(--red);

    font-size: 20px;
}

.feature-list p {
    margin: 0;

    font-size: 18px;
}


/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-block;

    padding: 13px 22px;

    border-radius: 2px;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.primary-button {
    background: var(--red);
    color: white;

    transition:
        background 120ms ease,
        transform 120ms ease;
}

.primary-button:hover {
    background: #b00000;

    transform: translateY(-1px);
}

.disabled-button {
    border: 1px solid #b8b8b8;

    background: #eeeeee;
    color: #777777;

    cursor: default;
}


/* ----------------------------------------------------------------
   COMMITTEES
   ---------------------------------------------------------------- */

.committee-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;
}

.committee-grid h3 {
    margin: 0 0 17px;

    color: var(--red);

    font-size: 21px;
}

.people-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.people-list li {
    margin-bottom: 12px;
}

.people-list strong {
    display: block;

    font-size: 17px;
}

.people-list span {
    display: block;

    color: var(--muted);

    font-size: 15px;
}


/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */

.site-footer {
    padding: 25px 0;

    border-top: 1px solid #ead0d0;

    background: var(--pale-pink);

    color: #333333;

    font-size: 15px;
}

.site-footer p {
    margin: 4px 0;
}



/* ----------------------------------------------------------------
   TABS
   Panels are only hidden once script.js has run (the "js" class),
   so the whole site still shows if JavaScript is off.
   ---------------------------------------------------------------- */

.js .tab-panel[hidden] {
    display: none;
}

/* Each tab should fill at least the screen, so the footer
   doesn't float halfway up on short tabs. */
main {
    min-height: calc(100vh - 220px);
}


/* ----------------------------------------------------------------
   KEY DATES
   ---------------------------------------------------------------- */

.key-dates {
    max-width: 760px;
    margin: 0;
}

.key-dates div {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid #ead0d0;
}

.key-dates div:last-child {
    border-bottom: 0;
}

.key-dates dt {
    font-weight: 600;
}

.key-dates dd {
    margin: 0;
    color: var(--muted);
}


/* ----------------------------------------------------------------
   VENUE
   ---------------------------------------------------------------- */

.venue-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

.map-frame {
    border: 1px solid #aeb5bd;
    background: white;
    box-shadow: var(--shadow);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.venue-info h3 {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 21px;
}

.venue-info h3:not(:first-child) {
    margin-top: 26px;
}

.venue-info p {
    margin: 0 0 10px;
}

.venue-info a,
.section-heading a,
.site-footer a {
    color: var(--navy-light);
}


/* ----------------------------------------------------------------
   FOOTER EXTRAS
   ---------------------------------------------------------------- */

.acknowledgement {
    max-width: 760px;
    margin-bottom: 12px !important;
    line-height: 1.55;
}


/* ----------------------------------------------------------------
   KEYBOARD FOCUS
   ---------------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--navy-light);
    outline-offset: 2px;
}

/* On the dark hero, a navy outline can't be seen, so use white */
.hero a:focus-visible {
    outline-color: white;
}


/* ----------------------------------------------------------------
   REGISTRATION FORM
   ---------------------------------------------------------------- */

.form-deadline {
    margin-top: 14px !important;
}

.reg-form {
    max-width: 760px;
}

.form-note {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 16px;
}

.req {
    color: var(--red);
    font-weight: 700;
}

.optional {
    color: var(--muted);
    font-weight: 400;
    font-size: 16px;
}

/* Hidden from people, visible to spam bots */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Reset browser fieldset styling */
.reg-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.reg-form legend {
    padding: 0;
}

.reg-form fieldset.field {
    margin-bottom: 22px;
}

.form-section {
    margin-bottom: 44px !important;
    padding-bottom: 36px !important;
    border-bottom: 1px solid #e2e2e2 !important;
}

.form-section > legend h3 {
    margin: 0 0 20px;
    color: var(--red);
    font-size: 22px;
}

.section-intro {
    margin: 0 0 22px;
}

.field {
    margin-bottom: 22px;
}

.field > label:not(.choice),
.choice-group > legend,
.likert > legend {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="url"],
.reg-form select,
.reg-form textarea {
    width: 100%;
    padding: 11px 13px;

    border: 1px solid #858585;   /* 3.7:1 on white, 3.4:1 on pale pink */
    border-radius: 3px;
    background: white;
    color: var(--text);

    font: inherit;
    font-size: 17px;
}

.reg-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
    outline: 3px solid rgba(41, 64, 95, 0.35);
    outline-offset: 1px;
    border-color: var(--navy-light);
}

.hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.hint:empty {
    display: none;
}

.hint.over-limit {
    color: var(--red);
    font-weight: 700;
}

/* Radio and checkbox rows */
.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 9px;
    cursor: pointer;
}

.choice input {
    width: 19px;
    height: 19px;
    margin: 4px 0 0;
    flex: 0 0 auto;
    accent-color: var(--red);
}

.consent {
    margin-bottom: 22px;
}

/* Abstract box: appears when presenting */
.abstract-box {
    margin-top: 18px !important;
    padding: 22px 24px 4px !important;
    border-left: 4px solid var(--red) !important;
    background: var(--pale-pink-light);
}

.abstract-box > legend {
    float: left;
    width: 100%;
}

.abstract-box > legend + * {
    clear: both;
}

.abstract-box > legend h4 {
    margin: 0 0 16px;
    font-size: 19px;
    color: var(--navy-light);
}

/* 1–5 agreement questions */
.likert {
    margin-bottom: 26px !important;
}

.likert-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.likert-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;

    padding: 10px 4px 9px;

    border: 1px solid #c4c4c4;
    border-radius: 3px;
    background: white;

    text-align: center;
    cursor: pointer;
}

/* The real radio button is kept for keyboards and screen
   readers, but visually replaced by the whole box. */
.likert-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.likert-number {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy-light);
}

.likert-label {
    font-size: 14px;
    line-height: 1.25;
    color: var(--muted);
}

.likert-option.likert-na {
    grid-column: 1 / -1;

    flex-direction: row;
    justify-content: center;
}

.likert-option:hover {
    border-color: var(--navy-light);
}

.likert-option:has(input:checked) {
    border-color: var(--red);
    background: var(--pale-pink);
}

.likert-option:has(input:checked) .likert-number {
    color: var(--red);
}

.likert-option:has(input:focus-visible) {
    outline: 3px solid var(--navy-light);
    outline-offset: 2px;
}

/* Unanswered required questions: the question turns red and its
   answers keep their normal colour. */
.has-error > legend,
.has-error > label:not(.choice) {
    color: var(--red);
}

.has-error input[type="text"],
.has-error input[type="email"],
.has-error input[type="url"],
.has-error select,
.has-error textarea {
    border-color: var(--red);
}

/* A question's title would sit on the top edge of its box once the box
   gets a border. Floating the title keeps it inside, as the
   abstract box already does. */
.choice-group > legend,
.likert > legend {
    float: left;
    width: 100%;
}

.choice-group > legend + *,
.likert > legend + * {
    clear: both;
}

.choice-group.has-error,
.likert.has-error,
.consent.has-error {
    padding: 10px 12px;
    border-left: 4px solid var(--red) !important;
    background: #fff5f5;
}

/* Submit area */
.form-actions .primary-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
}

.form-actions .primary-button:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.form-status {
    margin: 14px 0 0;
    color: var(--red);
    font-weight: 600;
}

/* Messages after submitting */
.form-message {
    max-width: 760px;
    padding: 24px 26px;
    border-left: 4px solid var(--red);
    background: var(--pale-pink-light);
}

.form-message h3 {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 22px;
}

.pink-section .form-message {
    background: white;
}

.preview-message {
    border-left-color: var(--navy-light);
}

.preview-message h3 {
    color: var(--navy-light);
}

.preview-list {
    display: grid;
    grid-template-columns: minmax(150px, max-content) 1fr;
    gap: 6px 18px;
    margin: 18px 0 22px;
    font-size: 16px;
}

.preview-list dt {
    font-weight: 600;
    word-break: break-word;
}

.preview-list dd {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.secondary-button {
    border: 1px solid var(--navy-light);
    background: white;
    color: var(--navy-light);
    cursor: pointer;
    font-family: inherit;
}


/* ----------------------------------------------------------------
   PRESENTER GUIDELINES AND ADVICE
   ---------------------------------------------------------------- */

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.guide-list h3 {
    margin: 0 0 14px;
    color: var(--red);
    font-size: 22px;
}

.guide-list ul {
    margin: 0;
    padding-left: 20px;
}

.guide-list li {
    margin-bottom: 14px;
    padding-left: 4px;
    font-size: 17px;
    line-height: 1.55;
}

.provisional-note {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;

    border: 1px solid var(--muted);
    border-radius: 3px;

    color: var(--muted);
    font-size: 14px;
    font-style: italic;
}

.caveat {
    margin: 10px 0 0;
    padding: 10px 14px;

    border-left: 3px solid var(--navy-light);
    background: #f4f6f9;

    font-size: 16px;
    line-height: 1.5;
}


.caveat-details {
    margin-top: 10px;
}

.caveat-details summary {
    color: var(--navy-light);

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.caveat-details summary:focus-visible {
    outline: 3px solid var(--navy-light);
    outline-offset: 2px;
}

.caveat-details .caveat {
    margin-top: 8px;
}

.caveat code {
    font-size: 0.92em;
}


/* ----------------------------------------------------------------
   SIZE CHECKER
   ---------------------------------------------------------------- */

.checker-step {
    max-width: 760px;
    margin-bottom: 34px;
}

.checker-step h3 {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 21px;
}

.checker-step p {
    margin: 0 0 14px;
}

/* The bank-card box: a card-shaped outline the user resizes */
.card-calibrator {
    padding: 18px 0;

    /* A card is wider than most phones held upright. The box scrolls
       inside this area instead of widening the page. */
    overflow-x: auto;
}

.phone-only {
    display: none;
}

.card-box {
    border: 2px solid var(--navy-light);
    border-radius: 3.2mm;
    background:
        linear-gradient(135deg, rgba(41, 64, 95, 0.10), rgba(41, 64, 95, 0.02));
}

.calibrate-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
}

.calibrate-controls input[type="range"] {
    flex: 1;
    accent-color: var(--red);
}

.small-button {
    min-width: 44px;
    padding: 8px 12px;
    font-size: 20px;
    line-height: 1;
}

/* Rows of pill-shaped choices */
.option-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.option-row[hidden] {
    display: none;
}

.control-label {
    font-weight: 600;
    margin-right: 4px;
}

.option-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;

    border: 1px solid #b9b9b9;
    border-radius: 999px;
    background: white;

    font-size: 16px;
    cursor: pointer;
}

.option-pill input[type="radio"] {
    accent-color: var(--red);
    margin: 0;
}

.option-pill:has(input:checked) {
    border-color: var(--red);
    background: var(--pale-pink);
}

.option-pill input[type="number"] {
    width: 64px;
    padding: 3px 6px;
    border: 1px solid #858585;   /* 3.7:1 on white, 3.4:1 on pale pink */
    border-radius: 3px;
    font: inherit;
    font-size: 16px;
}

.file-input {
    margin: 4px 0 6px;
    font-size: 16px;
}

/* Viewer */
.checker-view {
    margin-top: 10px;
    padding-top: 26px;
    border-top: 1px solid #ead0d0;
}

.view-controls {
    margin-bottom: 6px;
}

.washout-choice[hidden] {
    display: none;
}

.view-caption {
    margin: 6px 0 14px;
    font-weight: 600;
}

/* Wide pages scroll inside this box instead of being shrunk,
   because shrinking would defeat the point. */
.stage-scroll {
    overflow: auto;
    border: 1px solid #d6d6d6;
    background: white;
}

.stage {
    min-width: fit-content;
    min-height: 260px;
    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* In slide mode the frame is the projection screen itself */
.screen-frame.is-screen {
    background: #3a3a3a;
    outline: 1px solid #2a2a2a;
}

.screen-frame canvas {
    display: block;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.washed-out {
    filter: contrast(0.62) brightness(1.18) saturate(0.8);
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 10px;
}

.page-nav .button:disabled {
    opacity: 0.45;
    cursor: default;
}

.provisional-hint {
    font-style: italic;
}


/* ----------------------------------------------------------------
   AI POLICY
   ---------------------------------------------------------------- */

.section-heading h2 .provisional-note {
    vertical-align: middle;
    font-size: 15px;
    font-weight: 400;
}

.policy-list {
    max-width: 800px;
    margin: 0;
}

.policy-list div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #ead0d0;
}

.policy-list div:last-child {
    border-bottom: 0;
}

.policy-list dt {
    font-weight: 700;
    color: var(--navy-light);
}

.policy-list dd {
    margin: 0;
}


/* Two-column version of the top-of-page goals */
.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
}

.goals.two-column h2 {
    min-height: 0;
}

.goals.two-column p {
    font-size: 18px;
    line-height: 1.6;
}


/* ----------------------------------------------------------------
   SPONSORS AND SUPPORTERS
   ---------------------------------------------------------------- */

.sponsor-definition {
    margin: 0 0 16px;
    color: var(--muted);
}

/* Empty program cell */
.programme-table td.empty-cell {
    background: #fafafa;
}

.information-strip a {
    color: var(--navy-light);
}

/* ----------------------------------------------------------------
   BACK TO TOP
   ---------------------------------------------------------------- */

.back-to-top {
    width: 40px;
    height: 40px;

    position: fixed;
    right: 22px;
    bottom: 22px;

    z-index: 80;

    opacity: 0;
    visibility: hidden; /* Also remove the invisible button from keyboard focus */
    pointer-events: none;

    border: 0;
    border-radius: 50%;

    background: var(--red);
    color: white;

    font-size: 19px;
    line-height: 1;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);

    cursor: pointer;

    transform: translateY(8px);

    transition:
        opacity 150ms ease,
        transform 150ms ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* ----------------------------------------------------------------
   TABLET
   ---------------------------------------------------------------- */

@media (max-width: 820px) {

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 15px;
    }

    .three-column {
        gap: 25px;
    }

    .committee-grid {
        gap: 45px;
    }
}


/* ----------------------------------------------------------------
   MOBILE
   ---------------------------------------------------------------- */

@media (max-width: 700px) {

    body {
        font-size: 17px;
    }

    .page-width,
    .nav-container,
    .hero-content {
        width: min(
            calc(100% - 30px),
            var(--page-width)
        );
    }


    /* Navigation */

    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;

        display: none;

        position: absolute;
        left: 0;
        top: 60px;

        padding: 12px 15px 15px;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        border: 1px solid #dddddd;
        border-top: 0;

        background: white;

        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 2px;

        font-size: 17px;
        border-bottom: 0;
    }


    /* Hero */

    .hero {
        min-height: 280px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-edition {
        font-size: 17px;
    }

    .hero-date {
        font-size: 20px;
    }

    .hero-location {
        font-size: 17px;
    }


    /* Sections */

    .section {
        padding: 39px 0;
    }

    .three-column {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .goals h2 {
        min-height: 0;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .research-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .committee-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .venue-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .policy-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .likert-scale {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .likert-option {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 9px 14px;
    }

    .preview-list {
        grid-template-columns: 1fr;
    }

    .preview-list dd {
        margin-bottom: 8px;
    }

    .map-frame iframe {
        height: 300px;
    }

    .key-dates div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .participation article {
        max-width: 440px;

        margin: 0 auto;
    }


    /* Program: with JavaScript on, one table per day replaces the
       wide table. Without JavaScript, the wide table scrolls sideways. */

    .programme-wrapper {
        margin-right: -15px;

        width: calc(100% + 15px);
    }

    .js .programme-wrapper {
        display: none;
    }

    .js .programme-day-tables {
        display: block;
    }

    .programme-key {
        margin-top: 0;
    }

    /* Notes only needed on phones, such as the bank-card one */

    .phone-only {
        display: block;
    }

    .likert-option.likert-na {
        justify-content: flex-start;
    }


    /* Buttons */

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        text-align: center;
    }
}


/* ----------------------------------------------------------------
   VERY SMALL SCREENS
   ---------------------------------------------------------------- */

@media (max-width: 420px) {

    .announcement {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-date {
        font-size: 19px;
    }
}


/* ----------------------------------------------------------------
   FEEDBACK FORM (For Presenters tab)
   Most of its look comes from the .reg-form rules above.
   ---------------------------------------------------------------- */

/* Space between paragraphs in a section introduction */
.section-heading p + p {
    margin-top: 14px;
}

/* The "upload or link" question: the two options sit inside it */
#fb-file-group .field {
    margin-bottom: 14px;
}

#fb-file-group .field:last-child {
    margin-bottom: 0;
}

#fb-file-group .field > label {
    font-weight: 400;
}

.hint.file-problem {
    color: var(--red);
    font-weight: 700;
}


/* ----------------------------------------------------------------
   LINKS TO EACH SECTION AT THE TOP OF FOR PRESENTERS
   ---------------------------------------------------------------- */
.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;

    margin-top: 16px;

    font-size: 16px;
    font-weight: 500;
}

.page-links a {
    color: var(--navy-light);
}
