@font-face {
    font-family: Figtree;
    src: url(figtree-latin.woff2) format('woff2');
    font-weight: 300 900;
    font-display: swap;
}

@font-face {
    font-family: Gabarito;
    src: url(gabarito-latin.woff2) format('woff2');
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url(barlow-condensed-black-italic.ttf) format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #201a3b;
    --muted: #504960;
    --paper: #fbfdfd;
    --mineral: #edf1ec;
    --blue: #204a7c;
    --teal-ink: #17696e;
    --tint: #e6f5f6;
    --rule: #d6e2df;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; isolation: isolate; color: var(--ink); background: var(--mineral); font: 1rem/1.5 Figtree, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
a { color: var(--teal-ink); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; }

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at 76% 5%, #f6f6ed, transparent 54%), linear-gradient(148deg, #e0e9ef, #edf1ec 62%, #e7f0e9);
}
.backdrop::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #204a7c0e, #8fb7a547 78%, #8fb7a523);
    clip-path: polygon(0 77%, 100% 19%, 100% 68%, 0 100%);
    content: '';
}
.backdrop::after {
    position: absolute;
    top: 33%;
    right: -8rem;
    width: clamp(29rem, 51vw, 48rem);
    aspect-ratio: 1050 / 592;
    background: url(console-et-plume.webp) center / contain no-repeat;
    filter: saturate(.48);
    opacity: .12;
    transform: rotate(-6deg);
    content: '';
}

.layout {
    --inset: clamp(1.3rem, 4vw, 2.65rem);
    width: min(100% - 2.5rem, 51rem);
    margin: clamp(1.4rem, 3vw, 2.5rem) auto;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 1rem;
    box-shadow: 0 1.65rem 4rem -2.2rem #202a3b64;
}

.registration { min-width: 0; padding: var(--inset); }
.registration-header { padding-bottom: 1.05rem; border-bottom: 1px solid var(--rule); }
.event-mark { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: .72rem; color: var(--blue); font: 750 .9rem/1.1 Gabarito, system-ui, sans-serif; }
.event-theme { padding: .15rem .42rem; border-radius: .2rem; background: #e9eeea; color: var(--blue); font: italic 900 .98rem/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.registration h1 { font: 800 clamp(2.05rem, 4vw, 3.45rem)/1 Gabarito, system-ui, sans-serif; letter-spacing: -.025em; }
.registration h2 { font: 750 1.5rem/1.1 Gabarito, system-ui, sans-serif; }
.event-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .65rem; row-gap: .05rem; margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.event-meta time { color: var(--blue); font-weight: 750; }
.event-meta span::before { margin-right: .65rem; color: var(--teal-ink); content: '·'; }
.lead { max-width: 42rem; margin-top: 1.05rem; color: var(--muted); }
.panel { min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--rule); border-radius: .8rem; }
.program { margin-top: .35rem; padding: .7rem; border-radius: .7rem; background: #edf4f1; }
.program-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.program-slots[hidden] { display: none; }
.program-slot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; align-items: center; gap: .28rem .45rem; padding: .6rem; border: 1px dashed #a2bbb6; border-radius: .5rem; background: var(--paper); text-decoration: none; }
.program-entry { display: grid; align-content: start; gap: .2rem; padding: .6rem; border: 1px solid #82afaa; border-radius: .5rem; background: var(--tint); }
.program-entry:only-child { grid-column: 1 / -1; }
.program-slot:hover { border-color: var(--teal-ink); }
.program-slot[data-selected] { border-style: solid; border-color: #82afaa; background: var(--tint); }
.program-time { grid-column: 1 / -1; color: var(--ink); font-size: .8rem; font-weight: 750; }
.program-choice { min-width: 0; overflow-wrap: anywhere; font-size: .85rem; font-weight: 700; line-height: 1.3; }
.program-slot:hover .program-choice { text-decoration: underline; }
.program-indicator { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: #e6efed; font-size: 1.05rem; line-height: 1; }
.program-indicator::before { content: '+'; }
.program-slot[data-selected] .program-indicator { color: #fff; background: var(--teal-ink); }
.program-slot[data-selected] .program-indicator::before { width: .5rem; height: .28rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); content: ''; }
.program-slot[data-skipped] { color: var(--muted); border-style: solid; }
.program-slot[data-skipped] .program-indicator::before { content: '–'; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.blocks { display: grid; gap: 1rem; margin-block: 1.4rem; }
.blocks .panel { scroll-margin-top: 1rem; }
.conference-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: .55rem; }
.ticket-qr { width: min(100%, 15rem); height: auto; }
legend { max-width: 100%; padding: 0 .35rem; font: 750 1rem/1.25 Gabarito, system-ui, sans-serif; }
.block-time { padding: .28rem .62rem; border-radius: .35rem; color: var(--teal-ink); background: var(--tint); font-size: 1.15rem; white-space: nowrap; }
.slot-check { display: none; width: .52rem; height: .29rem; margin: 0 .1rem .22rem .52rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.blocks .panel:has(input[type=radio]:checked:not([value=""])) { border-color: #8bbfbd; }
.blocks .panel:has(input[type=radio]:checked:not([value=""])) .slot-check { display: inline-block; }
.choice-rule { margin: .1rem .5rem .5rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.choice { display: flex; align-items: flex-start; gap: .55rem; min-height: 2.75rem; padding: .58rem .5rem; border: 1px solid transparent; border-radius: .45rem; line-height: 1.3; cursor: pointer; }
.choice-row { display: flex; min-width: 0; flex-direction: column; background: #f4f8f6; border: 1px solid var(--rule); border-radius: .6rem; }
.choice-row .choice { flex: 1; padding: .72rem; }
.choice:has(input:enabled):hover { background: #f0f6f5; }
.choice:has(input:checked):not(.muted) { color: var(--teal-ink); border-color: #8bbfbd; background: var(--tint); }
input[type=radio] { width: 1rem; height: 1rem; flex: none; margin: .16rem 0 0; accent-color: var(--teal-ink); }
.choice.muted { color: var(--muted); border-top-color: var(--rule); border-top-left-radius: 0; border-top-right-radius: 0; font-size: .88rem; }
.choice:has(input:disabled) { color: #605969; cursor: default; }
.choice-copy { display: grid; min-width: 0; gap: .25rem; }
.choice-track { color: var(--teal-ink); font: 800 1.08rem/1.15 Gabarito, system-ui, sans-serif; }
.choice-intro { color: var(--muted); font-size: .83rem; line-height: 1.35; }
.choice-title { margin-top: .18rem; font-weight: 700; }
.choice-details summary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.45rem;
    margin-left: 1.9rem;
    padding: 0 .38rem;
    border-radius: .3rem;
    list-style: none;
    color: var(--teal-ink);
    font-size: .8rem;
    font-weight: 650;
    cursor: pointer;
}
.choice-details summary::-webkit-details-marker { display: none; }
.choice-details summary::after { width: .36rem; height: .36rem; margin-top: -.15rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); content: ''; }
.choice-details[open] summary::after { margin-top: .15rem; transform: rotate(225deg); }
.choice-details summary:hover { background: #e6f1ee; text-decoration: underline; }
.choice-description { margin: 0 .75rem .65rem 2.25rem; padding: .2rem 0 .28rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.choice strong { display: inline-block; margin-left: .15rem; padding: .07rem .34rem; border-radius: .25rem; background: #f4e4dc; color: #733526; font-size: .75rem; white-space: nowrap; }
.morning { min-width: 0; margin: 1.45rem 0; padding: 0; border: 0; }
.morning > legend { padding: 0; font-size: 1.32rem; }
.morning-grid, .morning-orders { display: grid; gap: .72rem; }
.morning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .64rem; }
.morning-orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.morning-card { min-width: 0; display: flex; flex-direction: column; background: #f4f8f6; border: 1px solid #c7d6d1; border-radius: .72rem; }
.morning-card:has(input:checked:not(:disabled)) { border-color: #73a9a4; }
.morning-option { display: flex; align-items: flex-start; gap: .68rem; min-width: 0; flex: 1; padding: .82rem .88rem; border-radius: .65rem; cursor: pointer; }
.morning-option:hover:has(input:enabled) { background: #edf4f1; }
.morning-option:has(input:checked:not(:disabled)) { background: var(--tint); color: var(--teal-ink); }
.morning-option:has(input:disabled) { cursor: default; }
.morning-option input { margin-top: .23rem; }
.morning-option-text { display: grid; gap: .35rem; min-width: 0; }
.morning-duration { color: var(--teal-ink); font: 800 1.25rem/1.1 Gabarito, system-ui, sans-serif; }
.morning-time { color: var(--muted); font-size: .9rem; font-weight: 700; }
.morning-title { margin-top: .18rem; font: 750 clamp(1.05rem, 2.5vw, 1.3rem)/1.17 Gabarito, system-ui, sans-serif; }
.morning-duo-program { display: grid; gap: .35rem; margin-top: .3rem; padding-top: .48rem; border-top: 1px solid #cadbd6; }
.morning-duo-duration { color: var(--muted); font-size: .79rem; font-weight: 700; }
.morning-details { margin: 0 .85rem .48rem; font-size: .84rem; color: var(--muted); }
.morning-details summary { width: fit-content; min-height: 2.15rem; padding-block: .38rem; color: var(--teal-ink); font-weight: 700; cursor: pointer; }
.morning-details p, .morning-details dl { margin: 0 0 .32rem; }
.morning-details dt { font-weight: 750; }
.morning-details dd { margin: .14rem 0 .6rem; }
.morning-full { justify-self: start; padding: .12rem .38rem; border-radius: .25rem; background: #f4e4dc; color: #733526; font-size: .76rem; font-weight: 750; }
.morning-short { margin: -.3rem 0 1.2rem; }
.morning-short > .choice-rule { margin: .4rem 0 .72rem; }
.short-choice + .short-choice { margin-top: .25rem; border-top: 1px solid var(--rule); }
.short-choice .choice { min-height: auto; }
.short-choice .choice-details summary { min-height: 2rem; margin-left: 1.85rem; }
.workshop-feedback:not(:empty) { margin-top: .5rem; color: var(--teal-ink); font-size: .85rem; font-weight: 700; }
.identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .85rem; padding: .85rem 1rem 1rem; }
.identity label { display: grid; gap: .3rem; font-weight: 650; }
.identity-wide { grid-column: 1 / -1; }
.identity small { color: var(--muted); font-weight: 450; }
.identity input:not([type=radio]) { width: 100%; min-height: 2.65rem; border: 1px solid #8c9898; border-radius: .4rem; background: #fff; padding: .45rem .65rem; font: inherit; font-weight: 450; color: inherit; }
.profile-field { min-width: 0; display: grid; gap: .3rem; }
.profile-label { font-weight: 650; }
.profile-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    min-height: 2.9rem;
    padding: .38rem .75rem .38rem .42rem;
    border: 1px solid #819893;
    border-radius: .55rem;
    background: #fff;
    list-style: none;
    cursor: pointer;
}
.profile-picker summary::-webkit-details-marker { display: none; }
.profile-picker summary::after { width: .5rem; height: .5rem; flex: none; margin: -.22rem .12rem 0 0; border: solid var(--teal-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); content: ''; }
.profile-picker[open] summary::after { margin-top: .2rem; transform: rotate(225deg); }
.profile-picker summary:hover, .profile-picker[open] summary { border-color: var(--teal-ink); }
.profile-options { min-width: 0; margin: .3rem 0 0; padding: .3rem; border: 1px solid #b6cac5; border-radius: .65rem; background: var(--paper); box-shadow: 0 .6rem 1.3rem #201a3b1a; }
.identity .profile-option { display: flex; align-items: center; gap: .62rem; min-height: 2.75rem; padding: .28rem .48rem; border-radius: .4rem; cursor: pointer; }
.profile-option input[type=radio] { margin: 0; }
.profile-option:hover { background: #eef4f2; }
.profile-option:has(input:checked) { background: var(--tint); }
.profile-selection { display: flex; align-items: center; gap: .62rem; }
.profile-icon { display: grid; width: 1.85rem; height: 1.85rem; flex: none; place-items: center; border-radius: .42rem; color: var(--teal-ink); background: #e6f0ed; }
.profile-icon svg { width: 1.05rem; height: 1.05rem; }
.registration form > button[type=submit] { min-height: 3rem; margin-top: 1.2rem; padding: .7rem 1.25rem; background: var(--ink); color: #fff; border: 0; border-radius: .45rem; font: 750 1.07rem Gabarito, system-ui, sans-serif; cursor: pointer; }
.registration form > button[type=submit]:hover:not(:disabled) { background: var(--blue); }
.registration form > button[type=submit]:disabled { opacity: .55; cursor: default; }
.notice { margin-top: 1rem; padding: .8rem 1rem; background: #fbebe5; border-left: 4px solid #a53d2d; }
.confirmation { margin-top: 1.4rem; padding: 1.15rem; }
.confirmation p + p { margin-top: .6rem; }
.participant-details { display: grid; gap: .18rem; overflow-wrap: anywhere; }
.participant-details span { color: var(--muted); }
.ticket { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }

.organizers { display: grid; justify-items: center; gap: .7rem; padding: 1rem var(--inset) 1.25rem; border-top: 1px solid var(--rule); border-radius: 0 0 1rem 1rem; background: #f1f5f2; }
.organizers p { color: var(--muted); font-size: .8rem; }
.organizer-logos { display: flex; align-items: center; gap: clamp(.85rem, 2.8vw, 1.4rem); }
.organizer-iapau { display: block; width: 3rem; aspect-ratio: 281 / 233; background: var(--teal-ink); -webkit-mask: url(iapau-cerveau.png) center / contain no-repeat; mask: url(iapau-cerveau.png) center / contain no-repeat; }
.organizer-helioparc { width: 7.05rem; height: auto; }
.organizer-divider { width: 1px; height: 1.4rem; background: #bfcfc8; }

@media (max-width: 56rem) {
    .backdrop::after { opacity: .065; }
}

@media (max-width: 40rem) {
    .layout { width: min(100% - 1.25rem, 35rem); margin-block: .7rem 1.5rem; }
    .conference-tracks { grid-template-columns: 1fr; }
    .morning-grid, .morning-orders { grid-template-columns: 1fr; }
    .backdrop::after { display: none; }
    .event-meta span::before { content: none; }
}

@media (max-width: 25rem) {
    .identity { grid-template-columns: 1fr; }
    .registration form > button[type=submit] { width: 100%; }
}

.workshop-section { margin-top: 1.4rem; }
.workshop-section .morning { margin-top: .65rem; }
.workshop-section, .morning-orders fieldset { scroll-margin-top: 1rem; }
.conference-heading { margin-top: 1.3rem; }
.conference-instruction { margin: .55rem 0 0; color: var(--muted); font-size: .87rem; }
.conference-instruction + .blocks { margin-top: .75rem; }
.program-heading { display: block; margin-bottom: .3rem; color: var(--ink); font-size: .83rem; font-weight: 750; }
.program-slots + .program-heading { margin-top: .68rem; }
.program-empty { color: var(--muted); font-size: .83rem; }
.ticket-qr:not([hidden]) { display: block; margin: .9rem auto 0; }
.confirmation .ticket-link { margin-top: .75rem; text-align: center; }
.event-ticket .ticket-kind { color: var(--teal-ink); font-weight: 750; }
.ticket-program { margin-top: 1.25rem; }
.ticket-sessions { display: grid; gap: .48rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.ticket-sessions li { display: grid; grid-template-columns: 8.15rem minmax(0, 1fr); gap: .2rem .6rem; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: .55rem; background: #f4f8f6; }
.ticket-sessions strong { color: var(--teal-ink); }
.ticket-info { display: grid; gap: .38rem; margin-top: 1.15rem; padding: .78rem .85rem; border-left: 3px solid #8bbfbd; background: #edf4f1; color: var(--muted); }
.ticket-info strong { color: var(--ink); }
.ticket-code { margin: 1.2rem 0 0; text-align: center; }
.ticket-code figcaption, .ticket-reference { margin-top: .7rem; color: var(--muted); font-size: .86rem; }
.ticket-reference { overflow-wrap: anywhere; }
@media (max-width: 34rem) {
    .ticket-sessions li { grid-template-columns: 1fr; }
}
