/* Fonte global da casca visual da área da aluna. Mapa administrativo:
   docs/uiux/GUIA-ADMINISTRACAO-PREVIAS-ALUNA.md */
:root {
    --osf-graphite: #0f1115;
    --osf-graphite-soft: #171c22;
    --osf-petrol: #0d3b66;
    --osf-emerald: #0ea37f;
    --osf-turquoise: #14b8a6;
    --osf-paper: #d1e0db;
    --osf-paper-strong: #dce9e4;
    --osf-surface-accent: #0b8d76;
    --osf-ink: #14242a;
    --osf-muted: #596b6f;
    --osf-line: rgba(20, 36, 42, 0.14);
    --osf-focus: #0d3b66;
    --osf-panel-glow: rgba(20, 184, 166, 0.12);
    --osf-progress-track: rgba(20, 36, 42, 0.12);
    --osf-control-border: rgba(20, 36, 42, 0.36);
    --osf-choice-hover: rgba(14, 163, 127, 0.07);
    --osf-choice-optional: rgba(13, 59, 102, 0.07);
    --osf-optional-label: #0d3b66;
    --osf-optional-wash-a: rgba(13, 59, 102, 0.05);
    --osf-optional-wash-b: rgba(20, 184, 166, 0.05);
    --osf-panel-shadow: rgba(0, 0, 0, 0.24);
    --osf-radius-panel: clamp(2rem, 5vw, 4.5rem);
    --osf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--osf-graphite);
}

.student-entry {
    /* Papéis tipográficos da jornada: alterar aqui para todas as telas. */
    --osf-type-eyebrow: 0.69rem;
    --osf-type-hero: clamp(3.6rem, 6vw, 6.2rem);
    --osf-type-hero-lead: clamp(1.03rem, 1.45vw, 1.22rem);
    --osf-type-panel-title: clamp(2.15rem, 3.2vw, 3.55rem);
    --osf-type-panel-copy: 0.95rem;
    --osf-type-question: 0.9rem;
    --osf-hero-accent: #72e1d3;
    --osf-panel-mobile-radius: 2.8rem;
    --osf-preview-column-max: 46rem;
    --osf-preview-editorial-top: 1rem;
    position: relative;
    min-height: 100vh;
    overflow: clip;
    background:
        linear-gradient(145deg, rgba(13, 59, 102, 0.48) 0%, transparent 42%),
        var(--osf-graphite);
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    isolation: isolate;
    color-scheme: light;
}

/* Casca visual da jornada: a atmosfera permanece escura nos dois temas;
   somente a área de leitura muda entre mineral e grafite. */
.osf-reading-surface {
    background:
        radial-gradient(circle at 100% 0%, var(--osf-panel-glow), transparent 28rem),
        linear-gradient(155deg, rgba(14, 163, 127, 0.045), transparent 47%),
        var(--osf-paper);
    color: var(--osf-ink);
    color-scheme: light;
}

.student-entry[data-resolved-theme="dark"] .osf-reading-surface {
    color-scheme: dark;
}

/* Mensagem transversal das superfícies públicas: disponibilidade inicial sem
   transformar a prévia em cadastro ou promessa de acesso imediato. */
.osf-availability-note {
    display: grid;
    max-width: 35rem;
    margin: 1.6rem 0 0;
    padding: 0.9rem 1rem 0.95rem;
    border: 1px solid rgba(114, 225, 211, 0.26);
    border-left: 2px solid var(--osf-turquoise);
    border-radius: 0.9rem;
    background: rgba(20, 184, 166, 0.06);
    gap: 0.35rem;
}

.osf-availability-note__label {
    color: #72e1d3;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.osf-availability-note p {
    margin: 0;
    color: #c6d6d3;
    font-size: 0.78rem;
    line-height: 1.55;
}

.student-entry [hidden] {
    display: none !important;
}

.student-entry[data-resolved-theme="dark"] {
    --osf-paper: #121c22;
    --osf-paper-strong: #19262c;
    --osf-surface-accent: #72dbc9;
    --osf-ink: #edf7f3;
    --osf-muted: #a9bbb7;
    --osf-line: rgba(237, 247, 243, 0.14);
    --osf-focus: #42d7c2;
    --osf-panel-glow: rgba(20, 184, 166, 0.14);
    --osf-progress-track: rgba(237, 247, 243, 0.14);
    --osf-control-border: rgba(237, 247, 243, 0.38);
    --osf-choice-hover: rgba(20, 184, 166, 0.09);
    --osf-choice-optional: rgba(20, 184, 166, 0.08);
    --osf-optional-label: #7de0d2;
    --osf-optional-wash-a: rgba(13, 59, 102, 0.2);
    --osf-optional-wash-b: rgba(20, 184, 166, 0.08);
    --osf-panel-shadow: rgba(0, 0, 0, 0.42);
    color-scheme: dark;
}

.student-entry::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    content: "";
}

.student-entry__light {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.student-entry__light--one {
    top: -20rem;
    left: 7%;
    width: 45rem;
    height: 45rem;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 67%);
}

.student-entry__light--two {
    bottom: -24rem;
    left: -18rem;
    width: 54rem;
    height: 54rem;
    background: radial-gradient(circle, rgba(14, 163, 127, 0.16), transparent 68%);
}

.student-entry__topbar {
    position: relative;
    z-index: 3;
    display: flex;
    width: min(1440px, calc(100% - clamp(2rem, 7vw, 7rem)));
    margin: 0 auto;
    padding: clamp(1.5rem, 3.5vw, 3rem) 0 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.student-brand {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.7rem;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.student-brand__mark {
    grid-row: 1 / 3;
    width: 2.7rem;
    height: 2.7rem;
    filter: drop-shadow(0 0 1rem rgba(20, 184, 166, 0.22));
}

.student-brand__name {
    align-self: end;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.student-brand__promise {
    align-self: start;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.student-stage {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.student-stage__number {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(20, 184, 166, 0.55);
    border-radius: 50%;
    color: var(--osf-turquoise);
    place-items: center;
    letter-spacing: 0;
}

.student-entry__tools {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.6rem);
    align-items: center;
}

.student-theme {
    display: flex;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(0.75rem);
}

.student-theme__option {
    display: flex;
    gap: 0.3rem;
    min-width: 2rem;
    height: 1.8rem;
    padding: 0 0.55rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font: inherit;
    font-size: 0.58rem;
    font-weight: 750;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.student-theme__option svg {
    width: 0.9rem;
    height: 0.9rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.student-theme__option[aria-pressed="true"] {
    background: rgba(20, 184, 166, 0.17);
    color: #71ead8;
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.18);
}

.student-theme__option:focus-visible {
    outline: 2px solid var(--osf-turquoise);
    outline-offset: 2px;
}

.student-theme__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.student-account {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.student-account__avatar {
    display: grid;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(20, 184, 166, 0.55);
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.12);
    color: var(--osf-turquoise);
    font-size: 0.68rem;
    font-weight: 800;
    place-items: center;
}

.student-account__name {
    max-width: 11rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.student-exit {
    margin: 0;
}

.student-exit__button {
    height: 2.2rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.64);
    font: inherit;
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.student-exit__button:hover,
.student-exit__button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.student-entry__layout {
    display: grid;
    grid-template-columns: minmax(22rem, 0.82fr) minmax(38rem, 1.18fr);
    width: min(1440px, 100%);
    min-height: calc(100vh - 6.7rem);
    margin: 0 auto;
    align-items: stretch;
}

.student-story {
    display: flex;
    max-width: 41rem;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: clamp(2.5rem, 5vh, 4rem) clamp(2rem, 5.5vw, 6rem) clamp(2rem, 4vh, 3rem);
    align-self: start;
    flex-direction: column;
    justify-content: space-between;
}

.student-story__eyebrow {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    align-items: center;
    color: var(--osf-turquoise);
    font-size: var(--osf-type-eyebrow);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.student-story__eyebrow span {
    width: 2.5rem;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
}

.student-story__title {
    max-width: 12ch;
    margin: 0;
    font-size: var(--osf-type-hero);
    font-weight: 300;
    letter-spacing: -0.075em;
    line-height: 0.91;
    text-wrap: balance;
}

.student-entry .osf-hero-accent {
    color: var(--osf-hero-accent);
    font-style: normal;
    font-weight: 500;
}

.student-story__lead {
    max-width: 34rem;
    margin: clamp(1.25rem, 2.5vh, 2rem) 0 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: var(--osf-type-hero-lead);
    font-weight: 350;
    line-height: 1.72;
}

.student-path {
    position: relative;
    width: min(100%, 36rem);
    margin: 1.5rem 0 0;
    padding-bottom: 0.35rem;
}

.student-path__drawing {
    display: block;
    width: 100%;
    overflow: visible;
}

.student-path__ghost,
.student-path__line {
    fill: none;
    stroke-linecap: round;
    stroke-width: 2;
}

.student-path__ghost {
    stroke: rgba(255, 255, 255, 0.09);
}

.student-path__line {
    stroke: var(--osf-turquoise);
    stroke-dasharray: 900;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 0.6rem rgba(20, 184, 166, 0.4));
}

.student-path__point {
    fill: var(--osf-graphite);
    stroke: var(--osf-turquoise);
    stroke-width: 3;
}

.student-path__point--four {
    fill: var(--osf-emerald);
    stroke: rgba(255, 255, 255, 0.75);
}

.student-path__word {
    fill: rgba(255, 255, 255, 0.52);
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: inherit;
}

.student-path__word--four { fill: var(--osf-turquoise); }

.student-story__signature {
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.73rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    line-height: 1.65;
}

.student-choices {
    position: relative;
    padding: clamp(2.2rem, 5vw, 5rem) clamp(1.35rem, 5vw, 5.5rem) 2.5rem;
    border-radius: var(--osf-radius-panel) 0 0 0;
    box-shadow: -2rem 0 8rem var(--osf-panel-shadow);
}

.student-choices::before {
    position: absolute;
    top: 0;
    left: clamp(1.35rem, 5vw, 5.5rem);
    width: clamp(4rem, 9vw, 8rem);
    height: 0.25rem;
    background: linear-gradient(90deg, var(--osf-emerald), var(--osf-turquoise));
    content: "";
}

.student-choices__header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--osf-line);
    align-items: end;
}

.student-choices__intro {
    max-width: 39rem;
}

.student-choices__kicker {
    margin: 0 0 0.75rem;
    color: var(--osf-surface-accent);
    font-size: var(--osf-type-eyebrow);
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.student-choices__title {
    margin: 0;
    font-size: var(--osf-type-panel-title);
    font-weight: 480;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.student-choices__copy {
    max-width: 36rem;
    margin: 1rem 0 0;
    color: var(--osf-muted);
    font-size: var(--osf-type-panel-copy);
    line-height: 1.62;
}

.student-progress {
    min-width: 8.5rem;
    padding-bottom: 0.25rem;
}

.student-progress__label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--osf-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: right;
    text-transform: uppercase;
}

.student-progress__track {
    display: block;
    width: 100%;
    height: 2px;
    overflow: hidden;
    background: var(--osf-progress-track);
}

.student-progress__track span {
    display: block;
    width: 34%;
    height: 100%;
    background: linear-gradient(90deg, var(--osf-emerald), var(--osf-turquoise));
}

.student-entry--pronto .student-progress__track span { width: 100%; }
.student-entry--parcial .student-progress__track span { width: 58%; }
.student-entry--pendente .student-progress__track span { width: 76%; }

.student-state {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 1rem 0 1rem 1rem;
    border-left: 2px solid var(--osf-emerald);
    color: var(--osf-muted);
    font-size: 0.79rem;
    line-height: 1.55;
}

.student-state strong {
    color: var(--osf-ink);
}

.student-state__index {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(14, 163, 127, 0.12);
    color: var(--osf-emerald);
    place-items: center;
    font-size: 0.67rem;
    font-weight: 850;
}

.student-state--error {
    border-left-color: #e53e3e;
}

.student-state--error .student-state__index {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.12);
}

.student-entry[data-resolved-theme="dark"] .student-state--error {
    border-left-color: #fc8181;
}

.student-entry[data-resolved-theme="dark"] .student-state--error .student-state__index {
    color: #fc8181;
    background: rgba(252, 129, 129, 0.12);
}

.student-group {
    margin: clamp(1.8rem, 3vw, 2.6rem) 0 0;
    padding: clamp(2rem, 3vw, 3rem) 0 clamp(1.7rem, 2.5vw, 2.3rem);
    border: 0;
    border-bottom: 1px solid var(--osf-line);
}

.student-group__legend {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0;
    align-items: center;
    transform: translateY(0.75rem);
}

.student-group__number {
    color: var(--osf-emerald);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.student-group__legend strong,
.student-group__legend small {
    display: block;
}

.student-group__legend strong {
    font-size: 0.86rem;
    font-weight: 760;
    letter-spacing: -0.01em;
}

.student-group__legend small {
    margin-top: 0.2rem;
    color: var(--osf-muted);
    font-size: 0.67rem;
    font-weight: 450;
}

.student-group__items {
    border-top: 1px solid var(--osf-line);
}

.student-choice {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.55rem 1fr;
    gap: 1rem;
    padding: 1.15rem 0.5rem;
    border-bottom: 1px solid var(--osf-line);
    align-items: start;
    cursor: pointer;
    transition: background-color 180ms ease, padding 180ms ease;
}

.student-choice:hover::before,
.student-choice:has(.student-choice__control:checked)::before {
    background: var(--osf-choice-hover);
}

.student-choice::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 0.5rem;
    background: transparent;
    pointer-events: none;
    content: "";
    transition: background-color 180ms ease;
}

.student-choice__control {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.student-choice__box {
    display: grid;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.1rem;
    border: 1px solid var(--osf-control-border);
    border-radius: 50%;
    background: transparent;
    place-items: center;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.student-choice__box svg {
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    transform: scale(0.65);
    transition: opacity 160ms ease, transform 180ms var(--osf-ease);
}

.student-choice__control:checked + .student-choice__box {
    border-color: var(--osf-emerald);
    background: var(--osf-emerald);
    transform: scale(1.04);
}

.student-choice__control:checked + .student-choice__box svg {
    opacity: 1;
    transform: scale(1);
}

.student-choice__control:focus-visible + .student-choice__box {
    outline: 3px solid var(--osf-focus);
    outline-offset: 3px;
}

.student-choice__title,
.student-choice__copy,
.student-choice__tag {
    display: block;
}

.student-choice__title {
    font-size: 0.88rem;
    font-weight: 710;
    line-height: 1.4;
}

.student-choice__copy {
    max-width: 48rem;
    margin-top: 0.35rem;
    color: var(--osf-muted);
    font-size: 0.73rem;
    line-height: 1.52;
}

.student-choice__tag {
    margin-bottom: 0.35rem;
    color: var(--osf-optional-label);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.student-group--optional {
    position: relative;
    isolation: isolate;
}

.student-group--optional::before {
    position: absolute;
    z-index: -1;
    inset: 1.2rem -1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(100deg, var(--osf-optional-wash-a), var(--osf-optional-wash-b));
    content: "";
}

.student-choice--optional:has(.student-choice__control:checked)::before {
    background: var(--osf-choice-optional);
}

.student-documents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--osf-line);
}

.student-document {
    position: relative;
    display: grid;
    width: 100%;
    padding: 1.4rem 2.6rem 1.4rem 0;
    border: 0;
    background: transparent;
    color: var(--osf-ink);
    font: inherit;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
}

.student-document + .student-document {
    padding-left: 1.4rem;
    border-left: 1px solid var(--osf-line);
}

.student-document > span:first-child {
    font-size: 0.78rem;
    font-weight: 720;
}

.student-document small {
    margin-top: 0.25rem;
    color: var(--osf-muted);
    font-size: 0.68rem;
}

.student-document__arrow {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    color: var(--osf-emerald);
    font-size: 1rem;
    transform: translateY(-50%);
    transition: transform 180ms ease;
}

.student-document:hover .student-document__arrow {
    transform: translate(0.2rem, -0.7rem);
}

.student-actions {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(13rem, 1fr);
    gap: 0.8rem;
    margin-top: clamp(2rem, 4vw, 3.2rem);
}

.student-button {
    display: flex;
    min-height: 2.5rem;
    padding: 0.7rem 0;
    align-items: center;
    color: var(--osf-muted);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 760;
    text-decoration: none;
}

.student-button--back {
    grid-column: 1 / -1;
    width: fit-content;
}

.student-button--back:hover {
    color: var(--osf-emerald);
}

.student-actions::before {
    position: absolute;
    top: -1rem;
    left: 0;
    width: 2.75rem;
    height: 2px;
    background: var(--osf-emerald);
    content: "";
}

.student-document:focus-visible,
.student-brand:focus-visible,
.student-button:focus-visible {
    outline: 3px solid var(--osf-focus);
    outline-offset: 4px;
}

.student-action-status {
    margin: 0.85rem 0 0;
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--osf-emerald);
    background: var(--osf-choice-hover);
    color: var(--osf-ink);
    font-size: 0.75rem;
    line-height: 1.5;
}

.student-action-status:empty {
    display: none;
}

.student-choices__footnote {
    margin: 1rem 0 0;
    color: var(--osf-muted);
    font-size: 0.65rem;
    text-align: right;
}

@media (max-width: 980px) {
    .student-entry {
        --osf-type-hero: clamp(3.5rem, 10vw, 6rem);
    }

    .student-entry .osf-reading-surface {
        border-top-left-radius: var(--osf-panel-mobile-radius);
        border-top-right-radius: var(--osf-panel-mobile-radius);
    }

    .student-entry__topbar {
        width: min(100% - 2rem, var(--osf-preview-column-max));
    }

    .student-entry .osf-preview-layout {
        width: min(100% - 2rem, var(--osf-preview-column-max));
    }

    .student-entry .osf-preview-editorial {
        padding-top: var(--osf-preview-editorial-top);
        padding-left: 0;
        padding-right: 0;
    }

    .student-entry__layout {
        grid-template-columns: 1fr;
    }

    .student-story {
        position: static;
        width: 100%;
        max-width: none;
        min-height: 35rem;
        height: auto;
        margin: 0 auto;
        padding-bottom: 3.2rem;
    }

    .student-story__title { max-width: 11ch; }

    .student-path {
        --student-path-top-padding: 3rem;
        width: min(100%, 35rem);
        padding-top: var(--student-path-top-padding);
    }

    .student-choices { border-radius: var(--osf-panel-mobile-radius) var(--osf-panel-mobile-radius) 1.5rem 1.5rem; }

    .student-choices::before {
        left: 50%;
        width: 5rem;
        transform: translateX(-50%);
    }
}

@media (min-width: 981px) and (max-height: 790px) {
    .student-story {
        position: static;
        min-height: 100vh;
        height: auto;
    }
}

@media (max-width: 640px) {
    .student-entry {
        --osf-type-hero: clamp(3.15rem, 14vw, 5.2rem);
        --osf-type-hero-lead: 1rem;
        --osf-type-panel-title: clamp(2rem, 10vw, 2.75rem);
        --osf-panel-mobile-radius: 2rem;
    }
}

@media (max-width: 620px) {

    .student-entry::before {
        background-size: 3.5rem 3.5rem;
    }

    .student-entry__topbar {
        width: calc(100% - 2rem);
        padding-top: 1.25rem;
    }

    .student-brand__promise {
        display: none;
    }

    .student-brand__mark {
        grid-row: 1;
        width: 2.35rem;
        height: 2.35rem;
    }

    .student-stage__label {
        display: none;
    }

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

    .student-theme__option {
        min-width: 1.8rem;
        padding: 0 0.42rem;
    }

    .student-account__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .student-story {
        min-height: 33rem;
    }

    .student-story__eyebrow {
        margin-bottom: 1.25rem;
    }

    .student-story__lead {
        max-width: 29rem;
    }

    .student-path {
        --student-path-top-padding: 1.5rem;
        margin-top: 1.2rem;
    }

    .student-story__signature {
        margin-top: 0.8rem;
    }

    .student-choices {
        padding: 2.8rem 1.15rem 2rem;
    }

    .student-choices__header {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .student-choices__title {
        max-width: 13ch;
    }

    .student-progress__label {
        text-align: left;
    }

    .student-group--optional::before {
        inset: 1rem -0.6rem;
    }

    .student-choice {
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
    }

    .student-documents {
        grid-template-columns: 1fr;
    }

    .student-document + .student-document {
        padding-left: 0;
        border-top: 1px solid var(--osf-line);
        border-left: 0;
    }

    .student-actions {
        grid-template-columns: 1fr;
    }

    .student-choices__footnote {
        text-align: left;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .student-brand,
    .student-stage {
        animation: osf-fade-down 520ms var(--osf-ease) both;
    }

    .student-story__eyebrow,
    .student-story__title,
    .student-story__lead,
    .student-story__signature {
        animation: osf-reveal 700ms var(--osf-ease) both;
    }

    .student-story__title { animation-delay: 80ms; }
    .student-story__lead { animation-delay: 150ms; }
    .student-story__signature { animation-delay: 420ms; }

    .student-path__line {
        animation: osf-draw-path 1100ms 260ms var(--osf-ease) both;
    }

    .student-path__point {
        animation: osf-point-in 400ms 720ms var(--osf-ease) both;
    }

    .student-path__word {
        animation: osf-fade-in 400ms 720ms var(--osf-ease) both;
    }

    .student-choices {
        animation: osf-panel-in 700ms 90ms var(--osf-ease) both;
    }

    .student-choice:active .student-choice__box {
        transform: scale(0.88);
    }
}

@keyframes osf-fade-down {
    from { opacity: 0; transform: translateY(-0.6rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes osf-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes osf-reveal {
    from { opacity: 0; transform: translateY(1.2rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes osf-draw-path {
    from { stroke-dashoffset: 900; }
    to { stroke-dashoffset: 0; }
}

@keyframes osf-point-in {
    from { opacity: 0; transform: scale(0.5); transform-origin: center; }
    to { opacity: 1; transform: scale(1); transform-origin: center; }
}

@keyframes osf-panel-in {
    from { opacity: 0; transform: translateX(2rem); }
    to { opacity: 1; transform: translateX(0); }
}

/* Diálogos modais acessíveis para leitura dos documentos normativos */
.osf-document-dialog {
    border: 1px solid var(--osf-line);
    border-radius: clamp(1rem, 2.5vw, 1.5rem);
    background: var(--osf-paper-strong, #dce9e4);
    color: var(--osf-ink);
    max-width: min(92vw, 44rem);
    max-height: 85vh;
    padding: 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.osf-document-dialog::backdrop {
    background: rgba(15, 17, 21, 0.75);
    backdrop-filter: blur(6px);
}

.osf-document-dialog__wrapper {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.osf-document-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--osf-line);
    background: rgba(20, 36, 42, 0.04);
}

.osf-document-dialog__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--osf-ink);
}

.osf-document-dialog__close {
    background: transparent;
    border: 1px solid var(--osf-line);
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--osf-ink);
    cursor: pointer;
    transition: background 0.15s ease;
}

.osf-document-dialog__close:hover,
.osf-document-dialog__close:focus-visible {
    background: rgba(20, 36, 42, 0.1);
    outline: none;
}

.osf-document-dialog__body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--osf-ink);
}

.osf-document-dialog__meta {
    font-size: 0.8rem;
    color: var(--osf-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--osf-line);
}

.osf-document-dialog__section {
    margin-bottom: 1.25rem;
}

.osf-document-dialog__section-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: var(--osf-ink);
}

.osf-document-dialog__list {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.osf-document-dialog__list li {
    margin-bottom: 0.35rem;
}

.osf-document-dialog__footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--osf-line);
    display: flex;
    justify-content: flex-end;
    background: rgba(20, 36, 42, 0.02);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
