:root {
    color-scheme: light;
    --green: #005d29;
    --title: #106736;
    --sage: #7aab8f;
    --orange: #fe7f00;
    --text: #333333;
    --muted: #717171;
    --footer: #5d605e;
    --divider: #a4a8a5;
    --background: #e9f0eb;
    --card: #ffffff;
    --error: #b40001;
    --error-band: #cc0001;
    --shadow: 0 10px 30px rgba(0, 40, 20, 0.08);
    --column: 100%;
    --ui: "Trebuchet MS", Tahoma, Arial, sans-serif;
    --serif: Georgia, "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--title);
}

.column {
    width: min(var(--column), calc(100% - 32px));
    margin: 12px auto 32px;
}

.top-bar {
    margin-bottom: 24px;
}

.logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logos picture:first-child img {
    width: min(360px, 70%);
}

.logos picture:last-child img {
    width: 120px;
}

.languages {
    display: flex;
    gap: 8px;
    margin: 20px 0 12px;
}

.languages a,
.selector button {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--divider);
    border-radius: 999px;
    background: var(--card);
    color: var(--footer);
    font-family: var(--serif);
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.languages a[aria-current="page"],
.selector button[aria-pressed="true"] {
    background: var(--green);
    border-color: var(--green);
    color: #ffffff;
}

.invite {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

h1,
h2,
label,
button {
    font-family: var(--serif);
}

h1 {
    margin: 0 0 8px;
    color: var(--title);
    font-size: 26px;
    font-weight: normal;
    line-height: 1.2;
}

h2 {
    margin: 0 0 12px;
    color: var(--title);
    font-size: 20px;
    font-weight: normal;
}

.highlight {
    margin: 0 0 20px;
    padding: 24px 22px 28px;
    background: var(--green);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.highlight h1 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--sage) 45%, transparent);
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.highlight p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.45;
}

.highlight p + p {
    margin-top: 10px;
}

.highlight + .card {
    margin-top: 0;
}

.card {
    margin-top: 12px;
    padding: 16px 20px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

label {
    display: block;
    margin: 16px 0 6px;
    color: var(--title);
    font-size: 16px;
}

label.field-error,
.address-type-label.field-error {
    color: var(--error);
}

input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

input.field-error {
    border-color: var(--error);
}

p.field-error {
    margin: 8px 0 0;
    color: var(--error);
    font-size: 14px;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

button[type="submit"],
button.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--green);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

button[type="submit"]:hover {
    background: #00481f;
}

button[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

button[type="submit"]:disabled:hover {
    background: var(--green);
}

.wait-bar {
    width: 100%;
    height: 44px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.wait-bar-value {
    display: block;
    height: 100%;
    width: 0;
    background: var(--green);
    animation: wait-bar-fill 60s linear forwards;
}

@keyframes wait-bar-fill {
    to {
        width: 100%;
    }
}

button.link {
    width: auto;
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    color: var(--title);
    text-decoration: underline;
}

.selector {
    display: flex;
    gap: 8px;
}

.selector button {
    border-radius: 4px;
}

.forgot {
    margin: 12px 0 0;
    font-size: 14px;
}

.error-message {
    margin: 8px 0 0;
    color: var(--error);
    font-size: 14px;
}

.password-rules-title {
    margin: 16px 0 6px;
    color: var(--text);
    font-size: 14px;
}

.password-rules {
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--text);
    font-size: 14px;
}

.password-rules li.rule-met {
    color: var(--green);
}

.rule-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.password-rules li .rule-icon-met,
.password-rules li.rule-met .rule-icon-pending {
    display: none;
}

.password-rules li.rule-met .rule-icon-met {
    display: block;
}

.error-box {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 4px;
    background: var(--error-band);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

.error-box p {
    margin: 0;
}

.toaster {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: auto;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(480px, calc(100% - 32px));
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    animation: toaster-enter 320ms ease;
}

.toaster p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.toaster-error {
    background: var(--error-band);
    color: #ffffff;
}

.toaster-warning {
    background: var(--orange);
    color: var(--text);
}

.toaster-info {
    background: var(--green);
    color: #ffffff;
}

.toaster-local {
    position: static;
    right: auto;
    bottom: auto;
    width: auto;
    margin-bottom: 16px;
}

.toaster-leaving {
    animation: toaster-leave 240ms ease forwards;
}

.toaster-close {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 8px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.toaster-close:hover {
    background: var(--background);
}

.toaster-close:focus-visible {
    outline-color: #ffffff;
}

@keyframes toaster-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toaster-leave {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(16px);
    }
}

.js-turnstile {
    margin-top: 16px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--footer);
    font-size: 12px;
    text-align: center;
}

.footer a {
    color: var(--footer);
}

[hidden] {
    display: none !important;
}

@media (min-width: 640px) {
    :root {
        --column: 640px;
    }

    .highlight {
        padding: 32px 36px 36px;
    }

    .highlight h1 {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    :root {
        --column: 760px;
    }

    .column {
        margin: 8px auto 16px;
    }

    h1 {
        margin-bottom: 4px;
        font-size: 22px;
    }

    .highlight {
        margin-bottom: 16px;
        padding: 28px 36px 32px;
    }

    .highlight h1 {
        margin-bottom: 10px;
        padding-bottom: 8px;
        font-size: 22px;
    }

    .highlight p {
        font-size: 14px;
        line-height: 1.4;
    }

    .highlight p + p {
        margin-top: 8px;
    }

    .card {
        margin-top: 8px;
        padding: 12px 16px;
    }

    h2 {
        margin-bottom: 8px;
    }

    label {
        margin: 8px 0 4px;
    }

    .js-turnstile {
        margin-top: 8px;
    }

    button[type="submit"] {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

.step-band {
    margin: 0;
    padding: 8px 16px;
    background: #520c33;
    color: #ffffff;
    font-weight: 700;
}

.stepper {
    --stepper-track: var(--background);
    max-width: 100%;
    margin: 12px 0 8px;
}

.stepper ol {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stepper li {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}

.stepper li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 50%;
    z-index: 0;
    width: 100%;
    height: 8px;
    background: var(--stepper-track);
}

.stepper li:last-child::before {
    content: none;
}

.stepper li.is-complete::before {
    background: var(--green);
}

.stepper-index {
    position: relative;
    z-index: 1;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--stepper-track);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.stepper li.is-complete .stepper-index,
.stepper li.is-current .stepper-index {
    background: var(--green);
    color: #ffffff;
}

.stepper-check {
    display: block;
}

.stepper-number {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stepper-label {
    display: block;
    max-width: 100%;
    text-wrap: balance;
}

.stepper li.is-current .stepper-label {
    color: var(--green);
    font-weight: 700;
}

@media (min-width: 640px) {
    .stepper li {
        padding: 0 2px;
        font-size: 11.5px;
    }

    .stepper-label {
        white-space: nowrap;
    }

    :lang(en) .stepper li {
        font-size: 9px;
    }
}

@media (min-width: 1024px) {
    .stepper li {
        font-size: 12px;
    }

    :lang(en) .stepper li {
        font-size: 11px;
    }
}

.registration fieldset {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid var(--divider);
}

.registration fieldset.address-block {
    padding: 16px;
    border: 0;
    border-radius: 16px;
    background: #d7e6dc;
}

.registration .option,
.registration .choice {
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration input[type="radio"] {
    display: inline-block;
    width: auto;
    min-height: 0;
    padding: 0;
}

.registration textarea,
.registration input[type="text"],
.registration input[type="file"] {
    width: 100%;
}

.upload-field img {
    display: block;
    max-width: 100%;
    height: auto;
}

.error-banner {
    padding: 12px;
    background: var(--error-band);
    color: #ffffff;
    animation: step-in 240ms ease;
}

.summary {
    margin-top: 16px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 8px;
    border-bottom: 1px solid var(--divider);
    text-align: left;
}

dialog {
    width: min(640px, calc(100% - 32px));
    max-height: min(80vh, 640px);
    padding: 24px;
    overflow: auto;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease, overlay 200ms ease allow-discrete, display 200ms allow-discrete;
}

dialog[open] {
    opacity: 1;
    transform: none;
}

@starting-style {
    dialog[open] {
        opacity: 0;
        transform: translateY(8px);
    }
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0);
    transition: background-color 200ms ease, overlay 200ms ease allow-discrete, display 200ms allow-discrete;
}

dialog[open]::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
    .registration-actions {
        flex-direction: row;
    }

    .registration-actions button[type="submit"],
    .registration-actions .button-secondary {
        width: auto;
        min-width: 160px;
    }

    .pair-grid,
    .market-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

.highlight-step {
    background: #520c33;
}

.highlight-step-2 {
    background: #973110;
}

.highlight-step-3 {
    background: #9319b9;
}

.highlight-step-4 {
    background: #0f5157;
}

.highlight-step-5 {
    background: #101766;
}

.highlight-step-6 {
    background: #3f4b49;
}

.protocol-number {
    margin: 0 0 12px;
    color: var(--title);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
}

.protocol-card {
    margin: 12px 0 4px;
    padding: 20px 24px;
    border-radius: 11px;
    background: var(--card);
}

.protocol-card p:last-child {
    margin: 0;
}

.media-kit {
    margin: 0 0 20px;
    padding: 24px 22px 28px;
    background: var(--green);
    border-radius: 16px;
    color: #fff;
}

.media-kit a {
    color: #fff;
}

.media-kit .protocol-number {
    color: #fff;
}

.finished-actions {
    margin: 0 0 24px;
}

.not-found-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 24px;
}

.not-found-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--green);
    color: #ffffff;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.not-found-actions a:hover {
    background: #00481f;
}

@media (min-width: 640px) {
    .not-found-actions {
        flex-direction: row;
    }

    .not-found-actions a {
        flex: 1 1 0;
    }
}

.stepper-box {
    margin: 0 0 20px;
    padding: 16px 12px 14px;
    background: #c5d8cb;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stepper-box .stepper {
    margin: 0;
}

.stepper-compact {
    margin: 0 0 12px;
    color: var(--title);
    font-family: var(--serif);
    font-weight: 700;
    text-align: center;
}

.stepper-box .stepper-compact {
    display: none;
}

@media (min-width: 640px) {
    .stepper-compact {
        display: none;
    }
}

.highlight-step h1 {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-wrap {
    align-items: flex-start;
}

.section-title-wrap > span {
    min-width: 0;
}

.section-title-wrap > .icon {
    margin-top: 0.15em;
}

.registration .section-title-spaced {
    margin-bottom: 24px;
}

.icon {
    flex: 0 0 auto;
    color: var(--title);
}

.icon-orange {
    color: var(--orange);
}

.registration-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dotted var(--divider);
}

.sheet {
    margin: 16px 0;
    padding: 20px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.sheet h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--divider);
    color: var(--title);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: normal;
}

.callout {
    margin: 12px 0 0;
    padding: 12px;
    background: var(--background);
    border: 1px solid #a6cab6;
    border-radius: 4px;
}

.hint {
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.choices {
    display: grid;
    gap: 12px;
}

.choice,
.option {
    min-height: 44px;
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    background: var(--card);
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.choice {
    margin: 0;
}

.choice input,
.option input {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.choice:has(input:checked) {
    background: var(--green);
    border-color: var(--green);
    color: #ffffff;
}

.option:has(input:checked) {
    border-color: var(--green);
    background: #ffffff;
}

.choices-block {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}

.choices-block legend {
    margin-bottom: 8px;
    color: var(--title);
    font-family: var(--serif);
    font-size: 16px;
}

.registration label.stack {
    display: block;
}

.registration textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.registration label.stack input {
    margin-top: 6px;
}

.reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 240ms ease, opacity 240ms ease;
}

.reveal.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.registration-section.reveal:not(.is-open) {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.reveal-inner {
    /* Room for the 2px focus outline and its 2px offset. */
    overflow: hidden;
    margin-inline: -4px;
    padding-inline: 4px;
}

.file-columns {
    display: grid;
    gap: 16px;
}

.file-spec h3 {
    color: var(--orange);
}

.spec-list,
.price-lines {
    margin: 8px 0 12px;
    padding: 0;
    list-style: none;
}

.spec-list {
    color: var(--muted);
    font-size: 14px;
}

.price-lines li {
    margin: 0 0 12px;
}

.upload-field {
    animation: step-in 240ms ease;
}

.upload-current {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.upload-current p,
.upload-current img,
.upload-current a {
    margin: 0;
}

.upload-field progress {
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 8px;
}

.file-picker {
    position: relative;
    display: inline-flex;
    width: auto;
    min-height: 0;
    margin-top: 8px;
}

.registration input.file-picker-input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.registration input.file-picker-input[type="file"]:focus-visible {
    outline: none;
}

.file-picker-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--green);
    color: #ffffff;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.file-picker:focus-within {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.upload-field.field-error .file-picker-button {
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

.registration-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.registration-actions:has(a.button-secondary) button[type="submit"],
.registration-actions a.button-secondary {
    height: 44px;
    min-height: 44px;
    margin-top: 0;
    padding: 0 16px;
    font-size: 16px;
    line-height: 1;
}

.address-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.address-note {
    float: left;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    color: var(--muted);
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

@media (min-width: 1024px) {
    .address-note {
        font-size: 10.5px;
        line-height: 1.2;
        white-space: nowrap;
        text-align: left;
    }
}

.address-type {
    margin: 4px 0 8px;
}

.address-type-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
}

.address-type-label {
    margin: 0;
    color: var(--title);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.3;
}

.address-type-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
}

.address-type-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--title);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.3;
    cursor: pointer;
}

.registration .address-type-option input {
    width: 1.05rem;
    height: 1.05rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    accent-color: var(--green);
}

.registration fieldset.address-block[data-first] {
    margin-top: 32px;
}

.address-block:not([data-first]) .address-note {
    padding-right: 32px;
}

.address-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cd0021;
    color: #ffffff;
    cursor: pointer;
}

.address-remove:hover {
    background: #a8001b;
}

.phone-line {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.phone-line input {
    flex: 1 1 auto;
}

.postal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration .postal-controls input {
    flex: 0 0 9.5rem;
    width: 9.5rem;
}

.phone-line .area-code {
    flex: 0 0 4.5rem;
    width: 4.5rem;
}

.phone-code {
    flex: 0 0 auto;
    min-height: 44px;
    padding-top: 10px;
    color: var(--title);
    font-weight: 700;
}

button.postal-lookup,
button.text-action,
a.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 44px;
    margin-top: 0;
    padding: 10px 16px;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: var(--green);
    color: #ffffff;
    font-family: var(--serif);
    text-decoration: none;
    cursor: pointer;
}

a.button-secondary {
    background: #ffffff;
    color: var(--green);
}

button.text-action {
    min-height: 32px;
    padding: 4px 16px;
}

.postal-lookup .lookup-busy {
    display: none;
}

.postal-lookup.htmx-request .lookup-label {
    display: none;
}

.postal-lookup.htmx-request .lookup-busy {
    display: inline;
}

.pair-grid,
.triple-grid,
.market-grid {
    display: grid;
    gap: 12px;
}

.field-label,
.ie-label {
    display: block;
    margin: 16px 0 6px;
    color: var(--title);
    font-family: var(--serif);
    font-size: 16px;
}

.field-label.field-error {
    color: var(--error);
}

.document-value {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .document-value {
        font-size: 30px;
    }

    .billing-identity .field-label,
    .billing-identity .ie-label {
        margin: 8px 0 4px;
    }
}

.billing-divider {
    height: 0;
    margin: 20px 0 0;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--divider) 42%, var(--background));
}

.billing-address > .postal-line label,
.billing-address > label[for="postal-code"] {
    margin-top: 0;
}

.billing-address label[for="street"] {
    margin-top: 16px;
}

.registration fieldset.billing-address {
    margin-bottom: 32px;
}

.billing-identity {
    display: grid;
    column-gap: 12px;
}

.ie-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ie-line input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.exempt-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
}

.exempt-choice input {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--green);
}

.market-grid {
    gap: 0;
    margin-top: 24px;
    --market-divider: color-mix(in srgb, var(--divider) 35%, var(--background));
}

.registration .market-grid > fieldset {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.registration .market-grid > fieldset + fieldset {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--market-divider);
}

.market-grid legend {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    color: var(--title);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.3;
}

.choice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    margin: 8px 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background: #d7e6dc;
    cursor: pointer;
}

.registration .choice-item input {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    accent-color: var(--green);
}

.registration select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.market-notice {
    margin: 12px 0 32px;
    padding: 12px;
    border: 1px solid var(--divider);
    border-radius: 8px;
    background: var(--background);
    font-size: 14px;
    line-height: 1.4;
}

button.remove-file,
button.text-link,
button.dialog-close {
    width: auto;
}

button.remove-file[type="submit"] {
    min-height: 32px;
    margin-top: 0;
    padding: 4px 12px;
    background: #cd0021;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
}

button.remove-file[type="submit"]:hover {
    background: #a8001b;
}

button.text-link {
    display: inline;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--title);
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}

button.dialog-close {
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--green);
    color: #ffffff;
    font-family: var(--serif);
    font-size: 16px;
    cursor: pointer;
}

@keyframes step-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 640px) {
    .registration-actions {
        flex-direction: row;
    }

    .pair-grid,
    .market-grid,
    .billing-identity {
        grid-template-columns: 1fr 1fr;
    }

    .billing-identity {
        grid-template-rows: auto auto auto;
        align-items: center;
    }

    .billing-document,
    .billing-ie {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        align-items: center;
    }

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

    .registration .market-grid > fieldset:first-child {
        padding-right: 20px;
    }

    .registration .market-grid > fieldset + fieldset {
        margin-top: 8px;
        padding-top: 0;
        padding-left: 20px;
        border-top: 0;
        border-left: 1px solid var(--market-divider);
    }

    .product-tags {
        column-count: 2;
        column-gap: 24px;
    }
}

.product-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.product-group {
    padding: 4px 16px 28px;
    border-radius: 16px;
    background: #d7e6dc;
}

.product-group h3 {
    margin: 0;
}

.product-group-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: var(--title);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.product-group-toggle:hover,
.product-group-toggle:focus-visible {
    color: #8f8f8f;
}

.product-group-toggle .icon {
    color: var(--orange);
}

.product-groups.is-ready .product-group {
    padding-bottom: 8px;
    transition: padding-bottom 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-groups.is-ready .product-group:has(.product-panel.is-open) {
    padding-bottom: 28px;
}

.product-groups.is-ready .product-group-toggle .icon {
    transition: transform 420ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.product-group-toggle[aria-expanded="true"] .icon {
    transform: rotate(90deg);
}

.product-group-name,
.product-group-count {
    font-weight: 700;
}

.product-group-count {
    color: var(--orange);
    font-family: var(--ui);
    font-size: 16px;
}

.product-panel {
    display: grid;
    grid-template-rows: 1fr;
}

.product-groups.is-ready .product-panel {
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 460ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 340ms ease;
}

.product-groups.is-ready .product-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

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

.product-tags {
    margin: 0;
    padding: 20px 0 0 28px;
}

.product-panel > .product-tags {
    min-height: 0;
    overflow: hidden;
}

.product-groups.is-ready .product-panel > .product-tags {
    transform: translateY(-10px);
    transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-groups.is-ready .product-panel.is-open > .product-tags {
    transform: none;
}

.product-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    margin: 0;
    break-inside: avoid;
    color: var(--text);
    font-family: var(--ui);
    font-size: 14px;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.product-tag:has(input:checked) {
    opacity: 0.6;
}

.product-tag input {
    width: 1.15rem;
    min-height: 1.15rem;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.review-block {
    margin: 0 0 20px;
}

.review-label {
    font-weight: 700;
}

.review-body {
    margin-left: 28px;
}

.review-centered {
    margin-left: 0;
    text-align: left;
}

.review-centered .password-toggle,
.review-centered .terms-accept {
    margin-left: 0;
}

.review-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-body > .review-stack + .review-stack {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dotted var(--divider);
}

.review-divider {
    height: 0;
    margin: 20px 0 0;
    border: 0;
    border-top: 1px dotted var(--divider);
}

.review-body > .review-divider + h3 {
    margin-top: 20px;
}

.review-published > .review-stack + .review-stack,
.review-published > .review-markets {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dotted var(--divider);
}

.review-markets {
    display: grid;
    gap: 0;
    --review-split: color-mix(in srgb, var(--divider) 42%, #d7e6dc);
}

.review-address-title {
    margin: 0;
    color: var(--title);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: normal;
}

.review-market h3 {
    margin: 0 0 8px;
    color: var(--title);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: normal;
}

.review-market ul {
    margin: 0;
    padding-left: 1.2em;
}

.review-markets > .review-market + .review-market {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--review-split);
}

@media (min-width: 640px) {
    .review-markets:has(.review-market + .review-market) {
        grid-template-columns: 1fr 1fr;
    }

    .review-markets > .review-market:first-child:not(:only-child) {
        padding-right: 20px;
    }

    .review-markets > .review-market + .review-market {
        margin-top: 0;
        padding-top: 0;
        padding-left: 20px;
        border-top: 0;
        border-left: 1px solid var(--review-split);
    }
}

.review-field {
    min-width: 0;
}

.review-key {
    display: block;
    color: var(--text);
    font-family: var(--ui);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.review-value {
    display: block;
    color: var(--text);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.review-body > ul:not(.review-tags) {
    margin: 0;
    padding-left: 1.2em;
}

.review-text {
    white-space: pre-wrap;
}

.review-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.review-total {
    color: var(--orange);
    font-family: var(--ui);
    font-size: 16px;
    font-weight: 700;
}

.review-body > ul.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.review-tags li {
    padding: 1px 8px;
    border: 1px solid var(--divider);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    font-family: var(--ui);
    font-size: 12px;
    line-height: 1.5;
}

.review-market ul.review-market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-market-tags li {
    padding: 1px 8px;
    border: 1px solid var(--green);
    border-radius: 999px;
    background: var(--background);
    color: var(--text);
    font-family: var(--ui);
    font-size: 12px;
    line-height: 1.5;
}

.review-section {
    margin: 24px 0 8px;
}

.review-panel {
    margin: 0 0 16px;
    padding: 8px 16px 20px;
    border-radius: 16px;
    background: #d7e6dc;
}

.review-panel > .section-title {
    margin: 8px 0 12px;
}

.review-summary {
    background: var(--card);
}

.review-summary > h3 {
    margin: 8px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--divider);
    color: var(--title);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: normal;
}

.review-body > h3 {
    margin: 16px 0 8px;
    color: var(--title);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: normal;
}

.review-body > h3:first-child {
    margin-top: 0;
}

.values-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #44b279;
    border-radius: 11px;
    background: #ffffff;
}

.values-choice {
    display: flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
}

.values-choice input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.registration label.values-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.registration .values-option input[type="radio"] {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    border: 0;
    accent-color: var(--green);
}

.values-note {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #a6cab6;
    border-radius: 11px;
    background: #ffffff;
}

.expiration-date {
    color: var(--error);
}

.terms-text {
    display: block;
    width: 100%;
    min-height: 10em;
    margin: 0 0 12px;
    resize: vertical;
}

.password-toggle,
.terms-accept {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin: 16px 0 0;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.password-toggle {
    margin-left: 12px;
}

.registration .password-toggle input[type="checkbox"],
.registration .terms-accept input[type="checkbox"] {
    display: inline-block;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--green);
}

.terms-accept {
    margin-left: 0;
}

.registration .terms-accept input[type="checkbox"] {
    width: 0.875rem;
    height: 0.875rem;
}

.approval-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
}

.approval-actions .turnstile-slot,
.approval-actions .js-turnstile {
    display: flex;
    justify-content: flex-start;
    margin: 0;
}

.approval-actions .registration-actions {
    margin-top: 0;
}

.password-change.reveal {
    transition:
        grid-template-rows 460ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 340ms ease,
        visibility 0s linear;
    visibility: visible;
}

.review-panel:has(#change-password:not(:checked)) .password-change.reveal {
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition:
        grid-template-rows 460ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 340ms ease,
        visibility 0s linear 460ms;
}

.password-change[hidden] {
    display: none;
}

.profile h2,
.profile h3,
.profile h4 {
    color: var(--title);
    font-family: var(--serif);
    font-weight: normal;
}

.profile h3 {
    margin: 16px 0 8px;
    font-size: 18px;
}

.profile h4 {
    margin: 12px 0 4px;
    font-size: 16px;
}

.profile-intro,
.profile-block {
    margin: 0 0 16px;
    padding: 16px;
    border: 0;
    border-radius: 16px;
}

.profile-intro {
    background: var(--card);
    box-shadow: var(--shadow);
}

.profile-block {
    background: #d7e6dc;
}

.profile-intro h1,
.profile-block > h2,
.profile-block > h3 {
    margin-top: 0;
}

.profile-group-title {
    margin: 8px 0 12px;
}

.profile-grid {
    display: grid;
    gap: 16px;
    margin: 0 0 16px;
}

.profile-grid > .profile-block {
    margin: 0;
}

.profile-group {
    margin-top: 12px;
    padding: 12px 14px 4px;
    border-radius: 11px;
    background: #ffffff;
}

.profile-group > h3 {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--divider);
}

.profile-release > h3 {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--divider);
}

.profile-block ul:not(.profile-facts) {
    margin: 0 0 8px;
    padding-left: 1.2em;
}

.profile-lead {
    margin: 0 0 16px;
}

.profile-figure {
    margin: 0 0 16px;
}

.profile-figure img {
    display: block;
    width: min(180px, 100%);
    height: auto;
}

.profile-address {
    font-style: normal;
}

.profile-address span {
    display: block;
}

.profile-facts {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.profile-text {
    white-space: pre-line;
}

.profile-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 16px;
}

.profile-actions > a,
.profile-actions form {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.profile-actions > a,
.profile-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--green);
    color: #ffffff;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
}

.profile-actions > a:hover,
.profile-actions button:hover {
    background: #00481f;
}

@media (min-width: 640px) {
    .profile-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .values-box {
        flex-direction: row;
        align-items: flex-start;
    }

    .approval-actions {
        align-items: stretch;
        width: max-content;
        max-width: 100%;
        margin-left: auto;
    }

    .approval-actions .js-turnstile {
        justify-content: flex-start;
    }

    .approval-actions .registration-actions {
        justify-content: flex-start;
    }
}

.backoffice-done {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backoffice-done .logos {
    width: min(520px, calc(100% - 32px));
}
