﻿/* Research access follows the white, ink, and warm gold storefront. */
.consent-body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--page-bg); font-family: var(--body-font); }
.consent-body .skip-link, .consent-body .skip-link:focus { color: var(--ink); background: var(--gold-light); }
.consent-background { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.consent-background::before, .consent-background::after { position: absolute; width: 62rem; height: 62rem; content: ""; border: 1px solid rgba(174, 125, 38, 0.18); border-radius: 50%; }
.consent-background::before { top: 12rem; right: -46rem; }
.consent-background::after { top: 37rem; left: -50rem; }
.consent-research-notice { display: flex; align-items: center; justify-content: center; gap: 1.1rem; width: min(100% - 4rem, 86rem); margin: 1.1rem auto 0; color: var(--gold-dark); text-align: center; font-size: 0.62rem; letter-spacing: 0.23em; line-height: 1.7; text-transform: uppercase; }
.consent-research-notice::before, .consent-research-notice::after { flex: 1; min-width: 1rem; height: 1px; content: ""; background: var(--gold-light); }
.consent-noscript { width: min(100% - 2rem, 44rem); margin: 1rem auto 0; padding: 0.8rem 1rem; color: var(--danger); border: 1px solid #e9c8c1; border-radius: 0.25rem; background: #fff7f5; text-align: center; font-size: 0.85rem; }
.consent-stage { width: min(100% - 3rem, 62rem); margin-inline: auto; padding: 1.8rem 0 2.5rem; }
.consent-header { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 2.4rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.consent-brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--ink); text-decoration: none; }
.consent-brand:hover { color: var(--gold-dark); }
.consent-brand strong { display: block; font-family: var(--serif-font); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; }
.consent-brand small { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 0.3rem; color: var(--ink); font-size: 0.69rem; letter-spacing: 0.45em; text-transform: uppercase; }
.consent-brand small::before, .consent-brand small::after { flex: 1; height: 1px; content: ""; background: var(--gold-light); }
.consent-brand .brand-mark { width: 2.1rem; height: 3.8rem; color: var(--gold); }
.consent-progress { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; color: var(--muted); list-style: none; font-size: 0.83rem; }
.consent-progress li { display: flex; align-items: center; gap: 0.48rem; }
.consent-progress li + li::before { width: 2.25rem; height: 1px; margin-right: 1rem; content: ""; background: var(--line); }
.consent-progress span { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0.75rem; }
.consent-progress .is-active, .consent-progress .is-complete { color: var(--gold-dark); }
.consent-progress .is-active span { color: var(--ink); border-color: var(--gold); background: var(--gold-light); }
.consent-progress .is-complete span { border-color: var(--gold); background: #fbf7ef; }
.consent-card { width: min(100%, 52rem); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0.35rem; background: var(--surface); box-shadow: 0 0.6rem 2rem rgba(68, 49, 19, 0.035); }
.consent-card-wide { width: min(100%, 58rem); }
.consent-access-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; margin-bottom: 2rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 0.3rem; background: var(--surface-raised); }
.consent-access-tab { min-height: 2.85rem; padding: 0.65rem 1rem; border: 1px solid transparent; border-radius: 0.2rem; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 0.88rem; font-weight: 600; transition: color 160ms ease, background 160ms ease; }
.consent-access-tab:hover { color: var(--gold-dark); }
.consent-access-tab.is-active { color: var(--ink); border-color: var(--gold-light); background: var(--surface); }
[data-consent-tab-panel][hidden] { display: none; }
.sign-in-panel { padding: clamp(1rem, 3vw, 2rem) 0 0.5rem; text-align: center; }
.sign-in-panel .consent-card-heading > p:last-child { margin-inline: auto; }
.google-sign-in-button { display: flex; width: min(100%, 24rem); min-height: 3.65rem; align-items: center; justify-content: center; gap: 0.85rem; margin: 2rem auto 0; padding: 0.8rem 1.3rem; border: 1px solid var(--line); border-radius: 0.3rem; color: var(--ink); background: var(--surface); cursor: pointer; font: inherit; font-weight: 600; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.google-sign-in-button:hover { border-color: var(--gold); background: var(--surface-raised); transform: translateY(-1px); }
.google-sign-in-button svg { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; }
.sign-in-note { max-width: 27rem; margin: 1.25rem auto 0; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.consent-card-heading { margin-bottom: 1.8rem; }
.consent-eyebrow { margin: 0 0 0.75rem; color: var(--gold-dark); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.consent-card h1 { margin: 0; font-family: var(--serif-font); font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.035em; }
.consent-card-heading > p:last-child { max-width: 44rem; margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.terms-window { height: min(38vh, 23rem); min-height: 17rem; overflow-y: auto; padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-radius: 0.25rem; background: var(--surface-raised); scrollbar-color: var(--gold) var(--surface-raised); scrollbar-width: thin; }
.terms-copy { color: var(--muted); font-size: 0.85rem; line-height: 1.8; white-space: normal; }
.terms-copy h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--ink); font-family: var(--serif-font); font-size: 1.35rem; font-weight: 400; letter-spacing: -0.02em; }
.terms-copy h2:first-child { margin-top: 0; }
.terms-copy p { margin-bottom: 0.9rem; }
.terms-end-marker { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.35rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }
.terms-end-marker::before, .terms-end-marker::after { flex: 1; height: 1px; content: ""; background: var(--line); }
.scroll-status { margin: 0.6rem 0 1.15rem; color: var(--muted); font-size: 0.78rem; }
.scroll-status.is-complete { color: var(--gold-dark); }
.affirmation-row { position: relative; display: flex; align-items: flex-start; gap: 1rem; margin-top: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 0.25rem; color: var(--ink); background: var(--surface); cursor: pointer; font-size: 0.86rem; line-height: 1.55; transition: border-color 160ms ease, background 160ms ease; }
.affirmation-row:hover { border-color: var(--gold); background: #fdfbf7; }
.affirmation-row:has(input:checked) { border-color: var(--gold); background: #fbf7ef; }
.affirmation-row:has(input:disabled) { color: var(--muted); border-color: var(--line); background: var(--surface-raised); cursor: not-allowed; }
.affirmation-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.affirmation-check { display: grid; flex: 0 0 1.45rem; width: 1.45rem; height: 1.45rem; margin-top: 0.02rem; place-items: center; border: 1px solid #bcb3a3; border-radius: 0.2rem; background: var(--surface); }
.affirmation-row input:checked + .affirmation-check { border-color: var(--gold); background: var(--gold); }
.affirmation-row input:checked + .affirmation-check::after { width: 0.42rem; height: 0.75rem; content: ""; border: solid #fff; border-width: 0 0.13rem 0.13rem 0; transform: translateY(-0.08rem) rotate(45deg); }
.field-error { display: block; margin: 0.45rem 0 0 0.25rem; color: var(--danger); font-size: 0.8rem; }
.field-error:empty { display: none; }
.consent-submit { display: flex; width: 100%; min-height: 3.7rem; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 1.65rem; padding: 0.85rem 1.2rem; border: 1px solid var(--gold); border-radius: 0.3rem; color: #181714; background: linear-gradient(115deg, #bf923b, #dfbd74 56%, #bf923b); cursor: pointer; font-family: var(--serif-font); font-size: 1.08rem; font-weight: 400; transition: transform 160ms ease, box-shadow 160ms ease; }
.consent-submit:hover:not(:disabled) { box-shadow: 0 0.4rem 1rem rgba(174, 125, 38, 0.14); transform: translateY(-1px); }
.consent-submit:disabled { color: var(--muted); border-color: var(--line); background: var(--surface-raised); box-shadow: none; cursor: not-allowed; }
.consent-access-tab:focus-visible, .google-sign-in-button:focus-visible, .terms-window:focus-visible,
.affirmation-row input:focus-visible + .affirmation-check, .consent-submit:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 4px; }
.consent-disclaimer { margin: 1.5rem 0 0; padding-top: 1.35rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.79rem; line-height: 1.65; }
.consent-page-note { margin: 1.5rem 0 0; color: var(--muted); text-align: center; font-size: 0.73rem; letter-spacing: 0.03em; }
@media (max-width: 700px) {
    .consent-research-notice { width: calc(100% - 2rem); gap: 0.6rem; font-size: 0.52rem; letter-spacing: 0.15em; }
    .consent-stage { width: calc(100% - 2rem); padding-top: 1.2rem; }
    .consent-header { gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.2rem; }
    .consent-progress { gap: 0.45rem; margin-top: 0.5rem; }
    .consent-progress li { font-size: 0; }
    .consent-progress li + li::before { width: 1.4rem; margin-right: 0.35rem; }
    .consent-progress span { font-size: 0.72rem; }
    .consent-card { padding: 1.4rem; }
    .consent-card h1 { font-size: 2.3rem; }
    .terms-window { height: 38vh; min-height: 15rem; padding: 1rem; }
    .affirmation-row { gap: 0.7rem; padding: 0.9rem; font-size: 0.84rem; }
    .consent-submit { gap: 0.5rem; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .consent-body *, .consent-body *::before, .consent-body *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
