:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #1f2937;
    background: #f3f4f6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.container {
    width: min(100% - 2rem, 1040px);
    margin-inline: auto;
}

.site-header {
    background: #111827;
    color: #ffffff;
}

.header-content {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav a {
    text-decoration: none;
}

.nav-form {
    margin: 0;
}

.nav-button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

nav a:hover,
.nav-button:hover {
    text-decoration: underline;
}

main {
    padding-block: 3rem;
    min-height: calc(100vh - 130px);
}

.hero,
.page-heading,
.error-page {
    margin-bottom: 2rem;
}

.hero h1,
.page-heading h1,
.error-page h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
}

.hero p,
.page-heading p,
.error-page p {
    max-width: 720px;
}

.eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.card h2 {
    margin-top: 0;
}

dl {
    margin: 0;
}

dl div,
.status-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}

dl div:last-child,
.status-line:last-child {
    border-bottom: 0;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.button {
    display: inline-block;
    padding: 0.7rem 1rem;
    color: #ffffff;
    background: #111827;
    border: 1px solid #111827;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: #1f2937;
}

.button-secondary {
    color: #111827;
    background: #ffffff;
}

.button-secondary:hover {
    background: #f9fafb;
}

.button-full {
    width: 100%;
}

.alert {
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success {
    color: #14532d;
    background: #f0fdf4;
    border-color: #86efac;
}

.alert-error {
    color: #7f1d1d;
    background: #fef2f2;
    border-color: #fca5a5;
}

.auth-heading,
.form-card {
    width: min(100%, 620px);
    margin-inline: auto;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 0.72rem 0.8rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #9ca3af;
    border-radius: 6px;
}

.form-group input:focus {
    outline: 3px solid rgba(17, 24, 39, 0.15);
    border-color: #111827;
}

.field-help,
.field-error {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.field-help {
    color: #4b5563;
}

.field-error {
    color: #b91c1c;
}

.auth-links {
    margin: 1.25rem 0 0;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    padding: 0.7rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.status-ok {
    color: #166534;
}

.status-error {
    color: #b91c1c;
}

code {
    padding: 0.1rem 0.3rem;
    background: #e5e7eb;
    border-radius: 4px;
}

.site-footer {
    padding-block: 1rem;
    color: #4b5563;
    border-top: 1px solid #d1d5db;
}

@media (max-width: 700px) {
    .header-content {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
    }

    nav {
        gap: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    dl div,
    .status-line {
        align-items: flex-start;
        flex-direction: column;
    }

    dd {
        text-align: left;
    }
}

button,
input,
select,
textarea {
    font: inherit;
}

textarea,
select {
    width: 100%;
    padding: 0.72rem 0.8rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #9ca3af;
    border-radius: 6px;
}

textarea {
    resize: vertical;
}

textarea:focus,
select:focus {
    outline: 3px solid rgba(17, 24, 39, 0.15);
    border-color: #111827;
}

.heading-actions,
.module-header,
.module-footer,
.card-title-row,
.lesson-navigation {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.heading-actions > div:first-child,
.course-card-main,
.lesson-summary {
    min-width: 0;
}

.button-row,
.compact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.button-row form,
.compact-actions form,
.module-footer form {
    margin: 0;
}

.form-card-wide {
    width: min(100%, 820px);
    margin-inline: auto;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.checkbox-group input {
    width: 1.1rem;
    height: 1.1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-published {
    color: #14532d;
    background: #dcfce7;
}

.badge-draft {
    color: #713f12;
    background: #fef3c7;
}

.badge-archived {
    color: #374151;
    background: #e5e7eb;
}

.badge-preview {
    color: #1e3a8a;
    background: #dbeafe;
}

.meta-line {
    color: #4b5563;
    font-size: 0.92rem;
}

.course-list,
.module-stack,
.curriculum {
    display: grid;
    gap: 1rem;
}

.course-card,
.course-tile,
.module-card,
.curriculum-module {
    margin-bottom: 0;
}

.course-card {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.course-card .button-row {
    align-content: flex-start;
    justify-content: flex-end;
}

.course-grid {
    align-items: stretch;
}

.course-tile {
    display: flex;
    flex-direction: column;
}

.course-tile > .button {
    align-self: flex-start;
    margin-top: auto;
}

.empty-state {
    text-align: center;
}

.inline-create-form,
.inline-edit-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.inline-field {
    flex: 1;
    margin-bottom: 0;
}

.inline-edit-form {
    align-items: center;
    padding-block: 1rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.inline-edit-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.55rem 0.65rem;
    border: 1px solid #9ca3af;
    border-radius: 6px;
}

.small-button {
    display: inline-block;
    padding: 0.42rem 0.62rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #9ca3af;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.small-button:hover {
    background: #f3f4f6;
}

.small-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.danger-button {
    color: #991b1b;
    background: #ffffff;
    border-color: #ef4444;
}

.danger-button:hover {
    color: #ffffff;
    background: #b91c1c;
}

.lesson-list {
    margin-block: 1rem;
}

.lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.lesson-row:last-child {
    border-bottom: 0;
}

.lesson-summary {
    display: grid;
    gap: 0.2rem;
}

.lesson-summary span,
.empty-inline {
    color: #4b5563;
    font-size: 0.92rem;
}

.danger-zone {
    margin-top: 2rem;
    border-color: #fca5a5;
}

.curriculum-lessons {
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
    border-top: 1px solid #e5e7eb;
}

.curriculum-lessons li {
    border-bottom: 1px solid #e5e7eb;
}

.curriculum-lessons a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.2rem;
    text-decoration: none;
}

.curriculum-lessons a:hover span:first-child {
    text-decoration: underline;
}

.lesson-page {
    width: min(100%, 860px);
    margin-inline: auto;
}

.lesson-heading {
    margin-bottom: 1.5rem;
}

.lesson-heading h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.1;
}

.lesson-content {
    font-size: 1.05rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.lesson-navigation {
    align-items: center;
    margin-top: 1.5rem;
}

.lesson-navigation > div {
    flex: 1;
}

.lesson-navigation > div:last-child {
    text-align: right;
}

.admin-shortcut {
    margin-top: 1.5rem;
    text-align: center;
}

.dashboard-course-list {
    display: grid;
}

.dashboard-course-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
}

.dashboard-course-list a:last-child {
    border-bottom: 0;
}

.dashboard-course-list a:hover span:first-child {
    text-decoration: underline;
}

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

@media (max-width: 760px) {
    .header-content,
    .heading-actions,
    .course-card,
    .module-header,
    .module-footer,
    .lesson-row,
    .lesson-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .header-content {
        padding-block: 1rem;
    }

    nav {
        gap: 0.7rem;
    }

    .course-card .button-row,
    .compact-actions {
        justify-content: flex-start;
    }

    .inline-create-form,
    .inline-edit-form {
        align-items: stretch;
        flex-direction: column;
    }

    .lesson-navigation > div:last-child {
        text-align: left;
    }
}

/* Etapa 4: matrículas e progresso */
.form-group select {
    width: 100%;
    padding: 0.72rem 0.8rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #9ca3af;
    border-radius: 6px;
}

.form-group select:focus {
    outline: 3px solid rgba(17, 24, 39, 0.15);
    border-color: #111827;
}

.badge-active,
.badge-completed {
    color: #14532d;
    background: #dcfce7;
}

.badge-cancelled,
.badge-locked {
    color: #7f1d1d;
    background: #fee2e2;
}

.course-progress,
.progress-summary {
    margin-bottom: 1rem;
}

.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.progress-label h2,
.progress-label p {
    margin: 0;
}

.progress-label strong {
    font-size: 1.15rem;
}

.progress-track {
    height: 9px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 999px;
}

.progress-track span {
    display: block;
    height: 100%;
    background: #111827;
    border-radius: inherit;
}

.progress-track-large {
    height: 13px;
}

.access-note,
.access-note-card,
.locked-card {
    color: #4b5563;
}

.locked-card {
    border-style: dashed;
}

.lesson-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.completed-text {
    display: block;
    margin-top: 0.15rem;
    color: #166534;
}

.locked-lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.2rem;
    color: #6b7280;
}

.lesson-locked {
    background: #f9fafb;
}

.lesson-progress-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.lesson-progress-action h2,
.lesson-progress-action p {
    margin: 0;
}

.lesson-progress-action p {
    margin-top: 0.35rem;
    color: #4b5563;
}

.progress-cell {
    display: grid;
    gap: 0.15rem;
}

.progress-cell span {
    color: #4b5563;
    font-size: 0.88rem;
}

@media (max-width: 760px) {
    .lesson-progress-action,
    .progress-label,
    .locked-lesson-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.badge-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.badge-free,
.badge-payment-approved {
    color: #14532d;
    background: #dcfce7;
}

.badge-paid {
    color: #1e3a8a;
    background: #dbeafe;
}

.badge-payment-created,
.badge-payment-pending {
    color: #854d0e;
    background: #fef9c3;
}

.badge-payment-rejected,
.badge-payment-cancelled,
.badge-payment-error,
.badge-payment-charged_back {
    color: #7f1d1d;
    background: #fee2e2;
}

.badge-payment-refunded {
    color: #374151;
    background: #e5e7eb;
}

.payment-result-card {
    width: min(100%, 760px);
}

[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .form-grid-two {
        grid-template-columns: 1fr;
    }
}

/* Etapa 6: conclusão e certificados */
.certificate-list {
    display: grid;
    gap: 1rem;
}

.certificate-card,
.certificate-release-card,
.certificate-verification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.certificate-card h2,
.certificate-release-card h2,
.certificate-release-card p,
.certificate-verification h2,
.certificate-verification p,
.compact-heading h2,
.compact-heading p {
    margin-top: 0;
}

.certificate-release-card p:last-child,
.certificate-verification p:last-child,
.compact-heading p:last-child {
    margin-bottom: 0;
}

.certificate-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.certificate-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.badge-certificate-valid {
    color: #14532d;
    background: #dcfce7;
}

.badge-certificate-revoked {
    color: #7f1d1d;
    background: #fee2e2;
}

.verify-card {
    width: min(100%, 720px);
}

.verify-form {
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
}

.verify-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.verification-mark {
    display: grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 999px;
}

.certificate-valid {
    border-color: #86efac;
    background: #f0fdf4;
}

.certificate-valid .verification-mark {
    color: #14532d;
    background: #dcfce7;
}

.certificate-invalid {
    border-color: #fca5a5;
    background: #fef2f2;
}

.certificate-invalid .verification-mark {
    color: #7f1d1d;
    background: #fee2e2;
}

.certificate-details {
    width: min(100%, 760px);
}

.certificate-download-row {
    margin-top: 1.25rem;
}

.compact-heading {
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .certificate-card,
    .certificate-release-card,
    .certificate-verification,
    .verify-form {
        align-items: stretch;
        flex-direction: column;
    }

    .certificate-actions {
        justify-content: flex-start;
    }
}

/* Etapa 6.1: sala de aula, player incorporado e temas */
html[data-classroom-theme="dark"] {
    color-scheme: dark;
    --classroom-bg: #101722;
    --classroom-panel: #1a2230;
    --classroom-panel-strong: #202938;
    --classroom-panel-soft: #151d29;
    --classroom-border: #2b3545;
    --classroom-text: #f7f8fb;
    --classroom-muted: #9ca8b9;
    --classroom-accent: #12aee8;
    --classroom-accent-strong: #0b8fc1;
    --classroom-success: #28c76f;
    --classroom-danger: #ff6b6b;
    --classroom-shadow: rgba(0, 0, 0, 0.28);
    --classroom-overlay: rgba(5, 10, 18, 0.76);
}

html[data-classroom-theme="light"] {
    color-scheme: light;
    --classroom-bg: #eef2f7;
    --classroom-panel: #ffffff;
    --classroom-panel-strong: #f6f8fb;
    --classroom-panel-soft: #e9eef5;
    --classroom-border: #d4dce7;
    --classroom-text: #172033;
    --classroom-muted: #657084;
    --classroom-accent: #078ec2;
    --classroom-accent-strong: #0677a3;
    --classroom-success: #159957;
    --classroom-danger: #c43b3b;
    --classroom-shadow: rgba(24, 39, 62, 0.14);
    --classroom-overlay: rgba(20, 31, 48, 0.54);
}

.classroom-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--classroom-text);
    background: var(--classroom-bg);
    overflow-x: hidden;
}

.classroom-body a {
    color: inherit;
}

.classroom-body button,
.classroom-body input {
    font: inherit;
}

.classroom-shell {
    min-height: 100vh;
    background: var(--classroom-bg);
}

.classroom-topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 1rem;
    background: var(--classroom-panel);
    border-bottom: 1px solid var(--classroom-border);
    box-shadow: 0 6px 22px var(--classroom-shadow);
}

.classroom-topbar-main,
.classroom-topbar-actions,
.classroom-course-heading {
    display: flex;
    align-items: center;
}

.classroom-topbar-main {
    min-width: 0;
    gap: 0.8rem;
}

.classroom-topbar-actions {
    flex: 0 0 auto;
    gap: 0.45rem;
}

.classroom-course-heading {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.2;
}

.classroom-course-heading strong {
    max-width: min(62vw, 780px);
    overflow: hidden;
    font-size: 1.03rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classroom-course-label {
    color: var(--classroom-muted);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.classroom-icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--classroom-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
}

.classroom-icon-button:hover,
.classroom-icon-button:focus-visible {
    background: var(--classroom-panel-strong);
    border-color: var(--classroom-border);
    outline: none;
}

.theme-icon-moon {
    display: none;
}

html[data-classroom-theme="light"] .theme-icon-sun {
    display: none;
}

html[data-classroom-theme="light"] .theme-icon-moon {
    display: block;
}

.classroom-grid {
    display: grid;
    min-height: calc(100vh - 64px);
    grid-template-columns: 310px minmax(0, 1fr);
    transition: grid-template-columns 180ms ease;
}

.classroom-sidebar {
    position: sticky;
    z-index: 20;
    top: 64px;
    width: 310px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--classroom-text);
    background: var(--classroom-panel);
    border-right: 1px solid var(--classroom-border);
    transition: transform 180ms ease, opacity 180ms ease;
    scrollbar-width: thin;
    scrollbar-color: var(--classroom-muted) transparent;
}

.classroom-sidebar::-webkit-scrollbar {
    width: 7px;
}

.classroom-sidebar::-webkit-scrollbar-thumb {
    background: var(--classroom-muted);
    border-radius: 99px;
}

.classroom-progress-card {
    padding: 1.25rem 1.15rem 1.1rem;
    background: var(--classroom-panel-strong);
    border-bottom: 1px solid var(--classroom-border);
}

.classroom-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}

.classroom-progress-heading strong {
    font-size: 1rem;
}

.classroom-progress-heading span,
.classroom-progress-card p {
    color: var(--classroom-muted);
    font-size: 0.76rem;
}

.classroom-progress-card p {
    margin: 0.6rem 0 0;
}

.classroom-progress-track {
    height: 8px;
    overflow: hidden;
    background: var(--classroom-panel-soft);
    border-radius: 999px;
}

.classroom-progress-track span {
    display: block;
    height: 100%;
    background: var(--classroom-success);
    border-radius: inherit;
    transition: width 250ms ease;
}

.classroom-curriculum {
    display: block;
    padding: 0.65rem 0 1rem;
}

.classroom-module {
    padding: 0.6rem 0.7rem 0.15rem;
}

.classroom-module h2 {
    margin: 0;
    padding: 0.65rem 0.55rem;
    color: var(--classroom-muted);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.classroom-module ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.classroom-lesson-item {
    margin-bottom: 0.15rem;
}

.classroom-lesson-item a,
.classroom-locked-lesson {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    color: var(--classroom-text);
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
}

.classroom-lesson-item a:hover {
    background: var(--classroom-panel-strong);
}

.classroom-lesson-item.is-current a {
    background: var(--classroom-panel-strong);
    border-color: var(--classroom-border);
    box-shadow: inset 3px 0 0 var(--classroom-accent);
}

.classroom-lesson-item.is-locked {
    opacity: 0.53;
}

.classroom-lesson-status {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 2px solid var(--classroom-muted);
    border-radius: 999px;
}

.classroom-lesson-item.is-completed .classroom-lesson-status {
    color: #ffffff;
    background: var(--classroom-success);
    border-color: var(--classroom-success);
}

.classroom-lesson-item.is-completed .classroom-lesson-status::after {
    content: "✓";
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.classroom-lesson-item.is-current:not(.is-completed) .classroom-lesson-status {
    border-color: var(--classroom-accent);
    box-shadow: inset 0 0 0 4px var(--classroom-panel-strong);
    background: var(--classroom-accent);
}

.classroom-lesson-item.is-locked .classroom-lesson-status::after {
    content: "";
    width: 6px;
    height: 5px;
    border: 1.5px solid currentColor;
    border-radius: 1px;
}

.classroom-lesson-copy {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.classroom-lesson-copy strong {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classroom-lesson-copy small {
    color: var(--classroom-muted);
    font-size: 0.72rem;
}

.classroom-sidebar-footer {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.2rem 1.5rem;
    border-top: 1px solid var(--classroom-border);
}

.classroom-sidebar-footer a {
    padding: 0.45rem 0;
    color: var(--classroom-muted);
    font-size: 0.84rem;
    text-decoration: none;
}

.classroom-sidebar-footer a:hover {
    color: var(--classroom-text);
}

.classroom-sidebar-backdrop {
    display: none;
}

.classroom-main {
    min-width: 0;
    padding: clamp(1rem, 2vw, 2rem);
}

.classroom-content-column {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.classroom-player {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #05080d;
    border: 1px solid var(--classroom-border);
    border-radius: 11px;
    box-shadow: 0 15px 36px var(--classroom-shadow);
    aspect-ratio: 16 / 9;
}


.classroom-player:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}

.classroom-player:fullscreen .classroom-player-controls {
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
}

.classroom-player iframe,
.classroom-player-frame,
.classroom-player-frame > div,
.classroom-player-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.classroom-player-frame {
    position: absolute;
    inset: 0;
}

.classroom-player-poster {
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: hidden;
    background: #05080d;
}

.classroom-player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classroom-player-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.25));
}

.classroom-play-button {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    width: 72px;
    height: 72px;
    padding: 0 0 0 4px;
    place-items: center;
    color: #ffffff;
    background: var(--classroom-accent);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 150ms ease, background 150ms ease;
}

.classroom-play-button:hover,
.classroom-play-button:focus-visible {
    background: var(--classroom-accent-strong);
    outline: 3px solid rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.05);
}

.classroom-player-controls {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 54px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
    grid-template-columns: auto minmax(80px, 1fr) auto auto minmax(60px, 110px) auto;
}

.classroom-player-controls[hidden] {
    display: none !important;
}

.player-control-button {
    min-width: 34px;
    height: 34px;
    padding: 0 0.35rem;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.player-control-button:hover,
.player-control-button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.player-seek,
.player-volume {
    width: 100%;
    margin: 0;
    accent-color: var(--classroom-accent);
    cursor: pointer;
}

.player-time {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.classroom-player-message {
    position: absolute;
    z-index: 8;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 0.8rem 1rem;
    color: #ffffff;
    background: rgba(127, 29, 29, 0.92);
    border-radius: 8px;
}

.classroom-external-video,
.classroom-reading-cover {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 7vw, 5rem);
    background: var(--classroom-panel);
    border: 1px solid var(--classroom-border);
    border-radius: 11px;
    box-shadow: 0 15px 36px var(--classroom-shadow);
}

.classroom-reading-cover {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.classroom-external-video h1,
.classroom-reading-cover h1 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.classroom-external-video p,
.classroom-reading-cover p {
    max-width: 680px;
    margin: 0;
    color: var(--classroom-muted);
}

.classroom-lesson-navigation {
    display: grid;
    align-items: stretch;
    gap: 0.8rem;
    padding: 0.85rem 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.classroom-lesson-navigation > div {
    min-width: 0;
}

.classroom-next-link {
    text-align: right;
}

.classroom-lesson-navigation a,
.classroom-lesson-navigation .is-disabled {
    display: inline-flex;
    max-width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.65rem;
    color: var(--classroom-text);
    border-radius: 8px;
    text-decoration: none;
}

.classroom-next-link a,
.classroom-next-link .is-disabled {
    justify-content: flex-end;
}

.classroom-lesson-navigation a:hover {
    background: var(--classroom-panel);
}

.classroom-lesson-navigation a > span:not([aria-hidden]),
.classroom-lesson-navigation .is-disabled > span:not([aria-hidden]) {
    display: grid;
    min-width: 0;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classroom-lesson-navigation small {
    color: var(--classroom-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.classroom-lesson-navigation .is-disabled {
    color: var(--classroom-muted);
    opacity: 0.55;
}

.classroom-lesson-details {
    margin-top: 0.35rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: var(--classroom-panel);
    border: 1px solid var(--classroom-border);
    border-radius: 11px;
}

.classroom-lesson-heading,
.classroom-completion-card,
.classroom-certificate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.classroom-lesson-heading {
    align-items: flex-start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--classroom-border);
}

.classroom-lesson-heading h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.15;
}

.classroom-content-kicker {
    color: var(--classroom-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.classroom-lesson-badges {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.classroom-lesson-badges span {
    padding: 0.28rem 0.58rem;
    color: var(--classroom-text);
    background: var(--classroom-panel-strong);
    border: 1px solid var(--classroom-border);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.classroom-lesson-badges span.is-completed {
    color: #ffffff;
    background: var(--classroom-success);
    border-color: var(--classroom-success);
}

.classroom-lesson-text {
    padding: 1.5rem 0;
    color: var(--classroom-text);
    font-size: 1rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.classroom-completion-card,
.classroom-certificate-card,
.classroom-information-card {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: var(--classroom-panel-strong);
    border: 1px solid var(--classroom-border);
    border-radius: 9px;
}

.classroom-completion-card strong,
.classroom-certificate-card strong {
    display: block;
    font-size: 1rem;
}

.classroom-completion-card p,
.classroom-certificate-card p {
    margin: 0.25rem 0 0;
    color: var(--classroom-muted);
    font-size: 0.86rem;
}

.classroom-completion-card form {
    flex: 0 0 auto;
    margin: 0;
}

.classroom-certificate-card {
    border-color: var(--classroom-success);
}

.classroom-certificate-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.classroom-primary-button,
.classroom-secondary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.9rem;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
}

.classroom-primary-button {
    color: #ffffff;
    background: var(--classroom-accent);
    border: 1px solid var(--classroom-accent);
}

.classroom-primary-button:hover,
.classroom-primary-button:focus-visible {
    background: var(--classroom-accent-strong);
    border-color: var(--classroom-accent-strong);
    outline: none;
}

.classroom-secondary-button {
    color: var(--classroom-text);
    background: transparent;
    border: 1px solid var(--classroom-border);
}

.classroom-secondary-button:hover,
.classroom-secondary-button:focus-visible {
    background: var(--classroom-panel-soft);
    outline: none;
}

.classroom-information-card {
    color: var(--classroom-muted);
}

.classroom-flash {
    position: fixed;
    z-index: 100;
    top: 76px;
    right: 1rem;
    width: min(calc(100% - 2rem), 430px);
    padding: 0.85rem 1rem;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    animation: classroom-flash-in 180ms ease-out;
}

.classroom-flash-success {
    background: #137846;
}

.classroom-flash-error {
    background: #a52a2a;
}

@keyframes classroom-flash-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.classroom-body.classroom-sidebar-collapsed .classroom-grid {
    grid-template-columns: 0 minmax(0, 1fr);
}

.classroom-body.classroom-sidebar-collapsed .classroom-sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}

@media (max-width: 900px) {
    .classroom-grid {
        display: block;
    }

    .classroom-sidebar {
        position: fixed;
        z-index: 70;
        top: 64px;
        bottom: 0;
        left: 0;
        height: auto;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-102%);
        box-shadow: 16px 0 38px var(--classroom-shadow);
    }

    .classroom-body.classroom-sidebar-open {
        overflow: hidden;
    }

    .classroom-body.classroom-sidebar-open .classroom-sidebar {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .classroom-sidebar-backdrop {
        position: fixed;
        z-index: 60;
        inset: 64px 0 0;
        display: block;
        visibility: hidden;
        padding: 0;
        opacity: 0;
        background: var(--classroom-overlay);
        border: 0;
        cursor: pointer;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .classroom-body.classroom-sidebar-open .classroom-sidebar-backdrop {
        visibility: visible;
        opacity: 1;
    }

    .classroom-body.classroom-sidebar-collapsed .classroom-sidebar {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-102%);
    }

    .classroom-main {
        padding: 1rem;
    }
}

@media (max-width: 680px) {
    .classroom-topbar {
        padding-inline: 0.5rem;
    }

    .classroom-course-label {
        display: none;
    }

    .classroom-course-heading strong {
        max-width: calc(100vw - 190px);
        font-size: 0.9rem;
    }

    .classroom-main {
        padding: 0.7rem;
    }

    .classroom-player {
        border-radius: 8px;
    }

    .classroom-player-controls {
        gap: 0.35rem;
        padding-inline: 0.45rem;
        grid-template-columns: auto minmax(70px, 1fr) auto auto;
    }

    .player-volume,
    .player-time {
        display: none;
    }

    .classroom-play-button {
        width: 58px;
        height: 58px;
    }

    .classroom-lesson-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .classroom-lesson-navigation a > span:not([aria-hidden]),
    .classroom-lesson-navigation .is-disabled > span:not([aria-hidden]) {
        max-width: 130px;
    }

    .classroom-lesson-heading,
    .classroom-completion-card,
    .classroom-certificate-card,
    .classroom-external-video {
        align-items: stretch;
        flex-direction: column;
    }

    .classroom-lesson-badges,
    .classroom-certificate-actions {
        justify-content: flex-start;
    }

    .classroom-external-video,
    .classroom-reading-cover {
        min-height: 260px;
        padding: 2rem 1.3rem;
    }
}

@media (max-width: 420px) {
    .classroom-icon-button {
        width: 38px;
        height: 38px;
    }

    .classroom-course-heading strong {
        max-width: calc(100vw - 165px);
    }

    .classroom-sidebar {
        width: min(88vw, 310px);
    }

    .classroom-lesson-navigation a > span:not([aria-hidden]),
    .classroom-lesson-navigation .is-disabled > span:not([aria-hidden]) {
        max-width: 95px;
    }
}

.youtube-classroom-player.is-loading .classroom-play-button {
    cursor: progress;
}

.youtube-classroom-player.is-loading .classroom-play-button svg {
    opacity: 0;
}

.youtube-classroom-player.is-loading .classroom-play-button::after {
    position: absolute;
    width: 24px;
    height: 24px;
    content: "";
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: classroom-player-spin 700ms linear infinite;
}

@keyframes classroom-player-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Catálogo, capas, categorias, professores e painel administrativo */
.button-danger {
    color: #991b1b;
    background: #fff;
    border-color: #ef4444;
}

.button-danger:hover {
    color: #fff;
    background: #b91c1c;
}

.badge-free {
    color: #065f46;
    background: #d1fae5;
}

.badge-paid {
    color: #1e3a8a;
    background: #dbeafe;
}

.badge-neutral {
    color: #374151;
    background: #f3f4f6;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stat-card,
.admin-tool-card {
    color: inherit;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    text-decoration: none;
}

.admin-stat-card {
    display: grid;
    gap: 0.2rem;
    padding: 1.25rem;
}

.admin-stat-card:hover,
.admin-tool-card:hover {
    border-color: #111827;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.admin-stat-card span,
.admin-stat-card small,
.admin-tool-card span {
    color: #6b7280;
}

.admin-stat-card strong {
    font-size: 2rem;
    line-height: 1.1;
}

.admin-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-tool-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.35rem;
}

.admin-recent-list {
    display: grid;
}

.admin-recent-list > a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
}

.admin-recent-list > a:last-child {
    border-bottom: 0;
}

.admin-recent-cover {
    display: grid;
    place-items: center;
    width: 72px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #fff;
    background: #111827;
    border-radius: 8px;
}

.admin-recent-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-recent-copy {
    display: grid;
    flex: 1;
}

.admin-recent-copy small {
    color: #6b7280;
}

.admin-entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.admin-entity-card {
    margin: 0;
}

.teacher-admin-card,
.course-teacher-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.teacher-admin-card > div:last-child,
.course-teacher-card > div {
    min-width: 0;
    flex: 1;
}

.teacher-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    color: #fff;
    background: #111827;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
}

.teacher-avatar-small {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.teacher-headline,
.course-teacher-line,
.course-category-label,
.catalog-meta {
    color: #6b7280;
}

.teacher-headline {
    margin-top: -0.35rem;
    font-weight: 600;
}

.admin-course-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.admin-course-card,
.catalog-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    flex-direction: column;
}

.admin-course-card:hover,
.catalog-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
}

.admin-course-cover,
.catalog-cover,
.course-detail-cover,
.cover-upload-preview {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #111827, #374151);
}

.admin-course-cover img,
.catalog-cover img,
.course-detail-cover img,
.cover-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-cover-placeholder {
    display: grid;
    place-items: center;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
}

.course-cover-placeholder strong {
    font-size: 3rem;
    line-height: 1;
}

.course-cover-placeholder small {
    opacity: 0.78;
}

.featured-ribbon,
.catalog-access-badge {
    position: absolute;
    z-index: 2;
    padding: 0.35rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 800;
    border-radius: 999px;
}

.featured-ribbon {
    top: 0.7rem;
    left: 0.7rem;
    color: #111827;
    background: #fbbf24;
}

.catalog-access-badge {
    right: 0.7rem;
    bottom: 0.7rem;
    color: #fff;
    background: rgba(17, 24, 39, 0.9);
}

.catalog-access-badge.is-free {
    background: rgba(6, 95, 70, 0.94);
}

.admin-course-body,
.catalog-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: 1.15rem;
    flex-direction: column;
}

.admin-course-body h2,
.catalog-card-body h2 {
    margin: 0.2rem 0 0.3rem;
    font-size: 1.3rem;
    line-height: 1.25;
}

.catalog-card-body h2 a {
    text-decoration: none;
}

.catalog-card-body h2 a:hover {
    text-decoration: underline;
}

.course-category-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-teacher-line {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
}

.catalog-description {
    display: -webkit-box;
    margin: 0 0 0.8rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.admin-course-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.8rem 0;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.admin-course-metrics span {
    display: grid;
    color: #6b7280;
    font-size: 0.78rem;
}

.admin-course-metrics strong {
    color: #111827;
    font-size: 1.05rem;
}

.admin-course-actions,
.catalog-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.catalog-card-footer {
    margin-top: auto;
}

.catalog-card-footer form {
    margin: 0;
}

.catalog-heading {
    margin-bottom: 1.5rem;
}

.catalog-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
}

.catalog-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.catalog-filter-group {
    flex: 1 1 220px;
}

.catalog-filter-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.course-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 1.25rem;
}

.course-editor-sidebar {
    position: sticky;
    top: 1rem;
}

.course-editor-main .card,
.course-editor-sidebar .card {
    border-radius: 14px;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.teacher-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem;
}

.teacher-check-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
}

.teacher-check-card:has(input:checked) {
    background: #f0fdf4;
    border-color: #22c55e;
}

.teacher-check-card input {
    width: 1.1rem;
    height: 1.1rem;
}

.teacher-check-card > span:last-child {
    display: grid;
}

.teacher-check-card small {
    color: #6b7280;
}

.toggle-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.toggle-check input {
    width: 1.1rem;
    height: 1.1rem;
}

.danger-check {
    color: #991b1b;
}

.cover-upload-preview {
    margin-bottom: 1rem;
    border-radius: 10px;
}

.cover-upload-preview > span {
    display: grid;
    place-items: center;
    color: #fff;
}

.cover-upload-preview strong {
    font-size: 2.5rem;
}

.course-save-card {
    display: grid;
    gap: 0.6rem;
}

.course-save-card .button {
    text-align: center;
}

.empty-inline-panel {
    padding: 1rem;
    background: #f9fafb;
    border: 1px dashed #9ca3af;
    border-radius: 10px;
}

.course-detail-hero {
    display: grid;
    grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.course-detail-cover {
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
}

.course-detail-copy h1 {
    margin: 0.3rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.05;
}

.course-detail-description {
    font-size: 1.05rem;
    line-height: 1.7;
}

.course-detail-actions {
    margin-top: 1.25rem;
}

.course-detail-actions form {
    margin: 0;
}

.course-teachers-panel {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
}

.course-teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.course-teacher-card {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
}

.course-teacher-card h2 {
    margin: 0;
    font-size: 1.1rem;
}

@media (max-width: 980px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-editor-layout,
    .course-detail-hero {
        grid-template-columns: 1fr;
    }

    .course-editor-sidebar {
        position: static;
    }

    .course-detail-cover {
        width: min(100%, 680px);
    }
}

@media (max-width: 650px) {
    .admin-stat-grid,
    .admin-tool-grid,
    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .catalog-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-filter-group {
        width: 100%;
    }

    .admin-course-actions .button,
    .catalog-card-footer .button,
    .catalog-card-footer form,
    .catalog-card-footer form .button {
        width: 100%;
        text-align: center;
    }
}

.admin-course-summary {
    display: grid;
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
}

.admin-course-summary-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #111827, #374151);
    border-radius: 12px;
}

.admin-course-summary-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-course-summary-copy h1 {
    margin: 0.2rem 0 0.8rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.admin-course-summary-actions {
    margin-top: 1rem;
}

@media (max-width: 780px) {
    .admin-course-summary {
        grid-template-columns: 1fr;
    }
}

/* Etapa 8: site principal e páginas públicas */
:root {
    --site-ink: #101217;
    --site-muted: #5f6570;
    --site-border: #dfe2e7;
    --site-surface: #ffffff;
    --site-soft: #f5f5f3;
    --site-accent: #d6aa45;
    --site-accent-dark: #ad8327;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--site-ink);
    background: var(--site-soft);
}

.site-header {
    position: relative;
    z-index: 20;
    background: #0d0f13;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-content {
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #111318;
    background: var(--site-accent);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.main-navigation {
    gap: 0.45rem 1rem;
    font-size: 0.92rem;
}

.main-navigation a,
.main-navigation .nav-button {
    padding-block: 0.45rem;
}

.main-navigation .nav-cta {
    padding: 0.55rem 0.8rem;
    color: #111318;
    background: var(--site-accent);
    border-radius: 5px;
    font-weight: 700;
}

.main-navigation .nav-cta:hover {
    background: #e2bb62;
    text-decoration: none;
}

main.container {
    width: min(100% - 2rem, 1180px);
    padding-block: 2.5rem 4rem;
}

.button {
    border-radius: 5px;
    font-weight: 700;
}

.button-accent {
    color: #111318;
    background: var(--site-accent);
    border-color: var(--site-accent);
}

.button-accent:hover {
    color: #111318;
    background: #e2bb62;
    border-color: #e2bb62;
}

.button-ghost {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 2rem;
    align-items: stretch;
    padding: clamp(2rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(214, 170, 69, 0.22), transparent 30%),
        linear-gradient(135deg, #0b0d11 0%, #181b22 100%);
    border-radius: 20px;
    overflow: hidden;
}

.home-hero-copy {
    align-self: center;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.home-hero .eyebrow,
.home-hero-panel .eyebrow {
    color: var(--site-accent);
}

.home-hero-lead {
    max-width: 680px;
    margin: 1.4rem 0 0;
    color: #d9dce2;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.home-hero-panel {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}

.home-steps {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 1.1rem 0 0;
    list-style: none;
}

.home-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.8rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-steps li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-steps li > span {
    color: var(--site-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-steps strong,
.home-steps small {
    display: block;
}

.home-steps small {
    margin-top: 0.25rem;
    color: #b9bec8;
    line-height: 1.45;
}

.category-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    margin: 0 0 3rem;
}

.category-shortcuts a {
    padding: 0.55rem 0.8rem;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.category-shortcuts a:hover {
    border-color: var(--site-accent-dark);
}

.home-catalog-section {
    scroll-margin-top: 1rem;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.08;
}

.section-heading p:not(.eyebrow) {
    margin: 0.65rem 0 0;
    color: var(--site-muted);
}

.text-link {
    color: #61490f;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.catalog-card {
    border-color: var(--site-border);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.09);
}

.catalog-card-body h2 {
    line-height: 1.2;
}

.home-institutional-callout {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 3.5rem;
    background: #fff;
    border: 1px solid var(--site-border);
    border-left: 5px solid var(--site-accent);
    border-radius: 12px;
}

.home-institutional-callout h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.home-institutional-callout > p {
    margin: 0;
    color: var(--site-muted);
}

.institutional-hero {
    max-width: 880px;
    padding: clamp(1rem, 4vw, 2rem) 0 2.5rem;
}

.institutional-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.institutional-hero > p:last-child {
    max-width: 760px;
    margin-top: 1.2rem;
    color: var(--site-muted);
    font-size: 1.1rem;
}

.institutional-grid,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.institutional-grid .card,
.contact-card {
    margin-bottom: 0;
    border-color: var(--site-border);
}

.institutional-copy {
    max-width: 880px;
    margin-top: 1.5rem;
}

.contact-address {
    font-size: 1.2rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.legal-heading {
    padding-bottom: 1.5rem;
}

.legal-document {
    max-width: 900px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.legal-document h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document p {
    color: #3f4651;
}

.site-footer {
    padding: 2.5rem 0 1.25rem;
    color: #c8ccd4;
    background: #0d0f13;
    border-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(300px, auto);
    gap: 2rem;
    align-items: start;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.footer-grid p {
    max-width: 460px;
    color: #9298a3;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
}

.footer-links a {
    color: #d8dbe1;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: #777e89;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

@media (max-width: 980px) {
    .home-hero,
    .home-institutional-callout {
        grid-template-columns: 1fr;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .header-content {
        align-items: stretch;
    }

    .main-navigation {
        align-items: flex-start;
    }

    .home-hero {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 14vw, 4rem);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

.form-legal-note {
    margin: 0 0 1rem;
    color: var(--site-muted);
    font-size: 0.86rem;
}

/* Etapa 8.1 — importação e primeiro acesso */
.definition-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.definition-list > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) 1fr;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.definition-list dt {
    font-weight: 700;
}

.definition-list dd {
    margin: 0;
}

.callout-card {
    border-left: 4px solid currentColor;
}

.table-wrapper {
    overflow-x: auto;
}

.button-small {
    min-height: 2.2rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
}

.card input[readonly] {
    width: 100%;
}

@media (max-width: 700px) {
    .definition-list > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Etapa 8.2 — capas, convites, suporte e área do aluno */
.lesson-title-group,
.admin-lesson-title,
.classroom-lesson-title {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.lesson-title-copy {
    display: grid;
    min-width: 0;
}

.lesson-video-icon,
.classroom-video-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 28px;
    height: 24px;
    place-items: center;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.lesson-video-icon svg,
.classroom-video-icon svg {
    width: 18px;
    height: 18px;
    overflow: visible;
}

.lesson-video-icon rect,
.classroom-video-icon rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.lesson-video-icon path,
.classroom-video-icon path {
    fill: currentColor;
    stroke: none;
}

.classroom-video-icon {
    width: 22px;
    height: 20px;
    color: var(--classroom-muted);
    background: transparent;
    border-color: var(--classroom-border);
    border-radius: 5px;
}

.classroom-lesson-title span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-widget {
    position: fixed;
    z-index: 80;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(340px, calc(100vw - 2rem));
    color: #111827;
}

.support-widget summary {
    display: flex;
    min-height: 46px;
    width: fit-content;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    color: #fff;
    background: #111827;
    border: 1px solid #111827;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.24);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.support-widget summary::-webkit-details-marker {
    display: none;
}

.support-widget[open] summary {
    margin-bottom: 0.55rem;
}

.support-widget > div {
    padding: 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.2);
}

.support-widget p {
    margin: 0.45rem 0 0.85rem;
    color: #4b5563;
    font-size: 0.92rem;
}

.cover-status-grid,
.invite-stat-grid,
.student-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.cover-status-grid {
    margin-top: 1.25rem;
}

.cover-status-grid > div,
.invite-stat-grid article,
.student-stat-grid article {
    display: grid;
    gap: 0.15rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.cover-status-grid strong,
.invite-stat-grid strong,
.student-stat-grid strong {
    font-size: 1.75rem;
    line-height: 1;
}

.cover-status-grid span,
.invite-stat-grid span,
.student-stat-grid span {
    color: #6b7280;
    font-size: 0.88rem;
}

.invite-stat-grid {
    margin-bottom: 1.25rem;
}

.invitation-ready-card {
    border: 2px solid #111827;
}

.invitation-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
    margin-top: 1rem;
}

.invitation-message-field {
    grid-column: 1 / -1;
}

.copy-field {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.copy-field input {
    min-width: 0;
}

.invitation-message-field textarea {
    width: 100%;
    padding: 0.8rem;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #9ca3af;
    border-radius: 7px;
    line-height: 1.55;
}

.copy-feedback {
    min-height: 1.3em;
    margin: 0.75rem 0 0;
    color: #166534;
    font-weight: 700;
}

.invite-table td {
    vertical-align: middle;
}

.invite-valid-text {
    color: #166534;
    font-weight: 700;
}

.invite-expired-text {
    color: #991b1b;
}

.support-admin-note {
    border-left: 4px solid #111827;
}

.student-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #111827, #303744);
    border-radius: 18px;
}

.student-dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.student-dashboard-hero p:not(.eyebrow) {
    max-width: 650px;
    margin-bottom: 0;
    color: #d1d5db;
}

.student-dashboard-hero .eyebrow {
    color: #f5d87b;
}

.student-dashboard-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.student-dashboard-hero .button-secondary {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
}

.student-stat-grid {
    margin-bottom: 2.25rem;
}

.student-stat-grid article {
    background: #fff;
    border-color: var(--site-border, #d1d5db);
}

.student-courses-section {
    margin-bottom: 2.5rem;
}

.student-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.student-course-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--site-border, #d1d5db);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
    flex-direction: column;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.student-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
}

.student-course-cover {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151);
}

.student-course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-course-status {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.35rem 0.6rem;
    color: #fff;
    background: rgba(17, 24, 39, 0.92);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.student-course-status.is-completed {
    background: rgba(20, 83, 45, 0.95);
}

.student-course-body {
    display: flex;
    flex: 1;
    padding: 1.15rem;
    flex-direction: column;
}

.student-course-body h3 {
    margin: 0.25rem 0;
    font-size: 1.25rem;
    line-height: 1.25;
}

.student-course-body h3 a {
    text-decoration: none;
}

.student-course-body h3 a:hover {
    text-decoration: underline;
}

.student-course-teacher {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.student-course-progress {
    margin-top: auto;
    margin-bottom: 1rem;
}

.student-course-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
    color: #4b5563;
    font-size: 0.86rem;
}

.student-course-progress strong {
    color: #111827;
}

.student-dashboard-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.student-dashboard-bottom .card {
    margin-bottom: 0;
}

.student-account-list {
    display: grid;
    gap: 0.75rem;
}

.student-account-list > div {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.student-account-list dt {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.student-account-list dd {
    margin: 0.15rem 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.student-support-card {
    background: #fffdf7;
    border-color: #e5d49d;
}

.catalog-card-body {
    padding: 1.25rem;
}

.catalog-card-footer {
    padding-top: 0.85rem;
    margin-top: auto;
    border-top: 1px solid #eef0f2;
}

.catalog-cover img,
.student-course-cover img,
.course-detail-cover img,
.admin-course-cover img {
    background: #e5e7eb;
}

@media (max-width: 900px) {
    .cover-status-grid,
    .invite-stat-grid,
    .student-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 650px) {
    .support-widget {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cover-status-grid,
    .invite-stat-grid,
    .student-stat-grid,
    .invitation-fields {
        grid-template-columns: 1fr;
    }

    .copy-field {
        align-items: stretch;
        flex-direction: column;
    }

    .student-dashboard-actions,
    .student-dashboard-actions .button {
        width: 100%;
    }

    .lesson-title-group {
        align-items: flex-start;
    }
}


/* Etapa 8.3 — identidade verde, avatar, alunos e estrutura de mensagens */
:root {
    --site-accent: #79a832;
    --site-accent-dark: #5d8422;
    --site-accent-soft: #edf5df;
    --site-accent-rgb: 121, 168, 50;
}

.brand-mark {
    width: 46px;
    height: 46px;
    overflow: hidden;
    background: #182019;
    border: 2px solid var(--site-accent);
    box-shadow: 0 0 0 3px rgba(var(--site-accent-rgb), 0.16);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1);
}

.site-header {
    background: linear-gradient(90deg, #090c0a 0%, #101611 58%, #172219 100%);
    border-bottom-color: rgba(var(--site-accent-rgb), 0.42);
}

.main-navigation a:hover,
.main-navigation .nav-button:hover,
.text-link:hover {
    color: #b7db7a;
}

.main-navigation .nav-cta,
.button-accent,
.button:not(.button-secondary):not(.button-ghost) {
    color: #0d130b;
    background: var(--site-accent);
    border-color: var(--site-accent);
}

.main-navigation .nav-cta:hover,
.button-accent:hover,
.button:not(.button-secondary):not(.button-ghost):hover {
    color: #fff;
    background: var(--site-accent-dark);
    border-color: var(--site-accent-dark);
    text-decoration: none;
}

.button-secondary {
    color: #172116;
    border-color: #8da56a;
}

.button-secondary:hover {
    color: #172116;
    background: var(--site-accent-soft);
    border-color: var(--site-accent-dark);
}

.eyebrow,
.home-hero .eyebrow,
.home-hero-panel .eyebrow,
.student-dashboard-hero .eyebrow {
    color: var(--site-accent-dark);
}

.home-hero .eyebrow,
.home-hero-panel .eyebrow,
.student-dashboard-hero .eyebrow {
    color: #b7db7a;
}

.admin-stat-card:hover,
.admin-tool-card:hover,
.card:focus-within {
    border-color: var(--site-accent-dark);
    box-shadow: 0 10px 28px rgba(var(--site-accent-rgb), 0.12);
}

.admin-stat-card strong,
.invite-stat-grid strong,
.student-stat-grid strong,
.cover-status-grid strong {
    color: #416018;
}

.progress-track span,
.classroom-progress-track span {
    background: var(--site-accent);
}

.support-widget summary {
    color: #0d130b;
    background: var(--site-accent);
    border-color: var(--site-accent-dark);
    box-shadow: 0 10px 30px rgba(42, 64, 22, 0.28);
}

.support-widget summary:hover {
    color: #fff;
    background: var(--site-accent-dark);
}

.support-email-link {
    display: block;
    margin: -0.2rem 0 0.85rem;
    color: #416018;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.support-admin-note,
.future-message-note {
    border-left-color: var(--site-accent-dark);
}

.student-dashboard-hero {
    background: linear-gradient(135deg, #0c110d, #263523);
}

.student-support-card {
    background: #f7faef;
    border-color: #c7d8a8;
}

.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.message-readiness-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.message-readiness-card {
    margin-bottom: 0;
}

.message-readiness-card h2 {
    margin: 0.75rem 0 0.45rem;
}

.message-status {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.message-status.is-ready {
    color: #345311;
    background: var(--site-accent-soft);
    border: 1px solid #b8ce91;
}

.message-status.is-planned {
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.message-stat-grid {
    margin-block: 1rem;
}

.message-stat-grid .admin-stat-card {
    cursor: default;
}

.future-message-note {
    background: linear-gradient(135deg, #ffffff, #f5f9ed);
}

@media (max-width: 900px) {
    .message-readiness-grid {
        grid-template-columns: 1fr;
    }
}

/* Etapa 9: site institucional integrado ao LMS */
:root {
    --public-forest: #172015;
    --public-forest-light: #243420;
    --public-lime: #b7db7a;
    --public-lime-strong: #9ec95b;
    --public-cream: #f5f2ea;
    --public-sand: #e7dfd0;
    --public-ink: #151913;
    --public-muted: #62685f;
    --public-border: #d8d5cc;
    --public-white: #ffffff;
}

body {
    color: var(--public-ink);
    background: var(--public-cream);
}

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

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    color: #111;
    background: var(--public-lime);
    border-radius: 6px;
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    color: #fff;
    background: rgba(23, 32, 21, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.header-content {
    min-height: 84px;
    gap: 1.25rem;
}

.brand {
    flex: 0 0 auto;
    gap: 0.75rem;
}

.brand-mark {
    width: 46px;
    height: 46px;
    overflow: hidden;
    background: var(--public-lime);
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1rem;
    letter-spacing: 0.015em;
}

.brand-copy small {
    margin-top: 0.28rem;
    color: #c7cec4;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-navigation-shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
}

.main-navigation,
.account-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.main-navigation a,
.account-navigation a,
.account-navigation .nav-button {
    padding: 0.58rem 0.62rem;
    color: #e8ece6;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 650;
    white-space: nowrap;
}

.main-navigation a:hover,
.account-navigation a:hover,
.account-navigation .nav-button:hover,
.main-navigation a[aria-current="page"] {
    color: var(--public-lime);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.account-navigation {
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.account-navigation .nav-cta {
    padding-inline: 0.85rem;
    color: #142010;
    background: var(--public-lime);
}

.account-navigation .nav-cta:hover {
    color: #142010;
    background: #c8e794;
}

.public-menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;
    cursor: pointer;
}

.public-menu-toggle::before,
.public-menu-toggle::after,
.public-menu-toggle > span:first-child {
    content: "";
    position: absolute;
    left: 10px;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, top 160ms ease, opacity 160ms ease;
}

.public-menu-toggle::before { top: 13px; }
.public-menu-toggle > span:first-child { top: 20px; }
.public-menu-toggle::after { top: 27px; }
.public-menu-toggle.is-open::before { top: 20px; transform: rotate(45deg); }
.public-menu-toggle.is-open::after { top: 20px; transform: rotate(-45deg); }
.public-menu-toggle.is-open > span:first-child { opacity: 0; }

main.container {
    width: min(100% - 2rem, 1220px);
    padding-block: 2.25rem 5rem;
}

.eyebrow {
    color: #54772e;
    font-weight: 850;
}

.button-accent,
.public-contact-cta .button-accent {
    color: #142010;
    background: var(--public-lime);
    border-color: var(--public-lime);
}

.button-accent:hover,
.public-contact-cta .button-accent:hover {
    color: #142010;
    background: #c8e794;
    border-color: #c8e794;
}

.public-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.75fr);
    min-height: 640px;
    margin-bottom: clamp(3.5rem, 8vw, 7rem);
    overflow: hidden;
    color: #fff;
    background: var(--public-forest);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(23, 32, 21, 0.18);
}

.public-home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 18% 15%, rgba(183, 219, 122, 0.16), transparent 34%),
        linear-gradient(145deg, var(--public-forest) 10%, #0f160e 100%);
}

.public-home-hero .eyebrow {
    color: var(--public-lime);
}

.public-home-hero h1 {
    max-width: 750px;
    margin: 0.4rem 0 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.public-home-lead {
    max-width: 680px;
    margin: 1.5rem 0 0;
    color: #d4dbd1;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.75;
}

.public-home-hero .hero-actions {
    margin-top: 2rem;
}

.public-home-hero-media {
    position: relative;
    min-height: 540px;
    margin: 0;
    overflow: hidden;
    background: #384534;
}

.public-home-hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(8, 12, 7, 0.86));
}

.public-home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.public-home-hero-media figcaption {
    position: absolute;
    z-index: 1;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    display: grid;
}

.public-home-hero-media figcaption strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.public-home-hero-media figcaption span {
    margin-top: 0.25rem;
    color: #cdd5ca;
    font-size: 0.85rem;
}

.public-hero-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.public-hero-links a {
    color: #dce4d8;
    font-size: 0.87rem;
    font-weight: 750;
    text-decoration: none;
}

.public-hero-links a:hover {
    color: var(--public-lime);
}

.public-welcome-section,
.history-story-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 7rem);
    padding: 0 clamp(0rem, 4vw, 3rem) clamp(3.5rem, 8vw, 7rem);
}

.public-section-label {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.public-section-label > span {
    color: #779851;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
}

.public-section-label .eyebrow {
    margin-top: 0.18rem;
}

.public-welcome-copy h2,
.history-story-copy h2,
.public-books-intro h2,
.public-contact-cta h2,
.institutional-split-hero h1,
.institutional-hero h1,
.history-section-heading h2,
.discography-section h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.public-welcome-copy h2 {
    max-width: 850px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.public-welcome-copy p {
    max-width: 820px;
    color: var(--public-muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.public-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    background: #45503f;
    border: 1px solid #45503f;
    border-radius: 18px;
}

.public-path-card {
    position: relative;
    min-height: 330px;
    padding: clamp(1.8rem, 3vw, 3rem);
    background: #fff;
}

.public-path-card-history,
.public-path-card-courses {
    color: #fff;
    background: var(--public-forest-light);
}

.public-path-card-courses {
    background: #34442e;
}

.public-path-number {
    display: block;
    margin-bottom: 3rem;
    color: #90a487;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
}

.public-path-card .eyebrow {
    color: inherit;
    opacity: 0.66;
}

.public-path-card h2 {
    margin: 0.7rem 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 500;
}

.public-path-card p {
    max-width: 330px;
    color: inherit;
    opacity: 0.78;
    line-height: 1.7;
}

.public-path-card a {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.public-path-card a:hover {
    color: var(--public-lime-strong);
}

.public-catalog-preview {
    margin-bottom: clamp(4rem, 9vw, 8rem);
}

.public-catalog-preview .section-heading h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 500;
}

.public-books-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: center;
    padding: clamp(2rem, 6vw, 5.5rem);
    margin-bottom: clamp(4rem, 8vw, 7rem);
    background: #e8e1d4;
    border-radius: 20px;
}

.public-books-intro h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.public-books-intro p {
    color: #5b6058;
    line-height: 1.75;
}

.public-books-intro .button {
    margin-top: 1rem;
}

.public-books-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.public-book-mini {
    display: grid;
    gap: 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease;
}

.public-book-mini:nth-child(2) {
    transform: translateY(-1.5rem);
}

.public-book-mini:hover {
    transform: translateY(-0.4rem);
}

.public-book-mini:nth-child(2):hover {
    transform: translateY(-1.9rem);
}

.public-book-mini img {
    width: 100%;
    aspect-ratio: 0.69;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(35, 30, 22, 0.18);
}

.public-book-mini span {
    display: grid;
}

.public-book-mini strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.25;
}

.public-book-mini small {
    margin-top: 0.25rem;
    color: #686b64;
}

.public-contact-cta,
.history-ending-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background: var(--public-forest);
    border-radius: 18px;
}

.public-contact-cta h2,
.history-ending-callout h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.public-contact-cta p,
.history-ending-callout p {
    max-width: 760px;
    color: #cbd4c8;
}

.public-contact-cta .eyebrow,
.history-ending-callout .eyebrow {
    color: var(--public-lime);
}

.institutional-split-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
    gap: 0;
    align-items: stretch;
    margin-bottom: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    color: #fff;
    background: var(--public-forest);
    border-radius: 22px;
}

.institutional-split-hero > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.2rem, 6vw, 5rem);
}

.institutional-split-hero h1 {
    max-width: 720px;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.institutional-split-hero > div > p:not(.eyebrow) {
    max-width: 680px;
    color: #ced6cb;
    font-size: 1.08rem;
    line-height: 1.8;
}

.institutional-split-hero .eyebrow {
    color: var(--public-lime);
}

.institutional-split-hero figure {
    min-height: 560px;
    margin: 0;
    background: #394434;
}

.institutional-split-hero figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-story-copy h2 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.history-story-copy p {
    color: var(--public-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.history-story-copy blockquote {
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 2rem 0 0;
    color: #31442a;
    border-left: 4px solid var(--public-lime-strong);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.45;
}

.vida-abundante-section {
    padding: clamp(2rem, 6vw, 5rem);
    margin-bottom: 4rem;
    color: #fff;
    background: #253421;
    border-radius: 20px;
}

.history-section-heading {
    max-width: 850px;
}

.history-section-heading .eyebrow {
    color: var(--public-lime);
}

.history-section-heading h2 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.history-section-heading > p:last-child {
    color: #cbd3c8;
    font-size: 1.05rem;
    line-height: 1.8;
}

.history-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.14);
}

.history-feature-grid article {
    padding: 1.6rem;
    background: #253421;
}

.history-feature-grid strong {
    color: var(--public-lime);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.history-feature-grid p {
    color: #cbd3c8;
    line-height: 1.7;
}

.discography-section {
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.discography-section h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.discography-list {
    margin-top: 2rem;
    border-top: 1px solid #bfc4b9;
}

.album-card {
    border-bottom: 1px solid #bfc4b9;
}

.album-card summary {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 42px;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem 0;
    cursor: pointer;
    list-style: none;
}

.album-card summary::-webkit-details-marker {
    display: none;
}

.album-year {
    color: #66705f;
    font-family: Georgia, 'Times New Roman', serif;
}

.album-title {
    display: grid;
}

.album-title strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 500;
}

.album-title small {
    color: var(--public-muted);
}

.album-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #9aa190;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: transform 160ms ease;
}

.album-card[open] .album-toggle {
    transform: rotate(45deg);
}

.album-tracks {
    columns: 2;
    column-gap: 3rem;
    padding: 0 0 1.8rem 7rem;
    margin: 0;
    color: #555d50;
    line-height: 1.8;
}

.history-ending-callout {
    margin-bottom: 1rem;
}

.institutional-hero {
    max-width: none;
    padding: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 2rem;
    color: #fff;
    background: var(--public-forest);
    border-radius: 20px;
}

.institutional-hero .eyebrow {
    color: var(--public-lime);
}

.institutional-hero h1 {
    max-width: 920px;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.institutional-hero > p:last-child {
    max-width: 780px;
    color: #ced6cb;
    font-size: 1.08rem;
    line-height: 1.8;
}

.books-introduction {
    max-width: 820px;
    margin: 0 auto 3rem;
    color: var(--public-muted);
    text-align: center;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin-bottom: 4rem;
}

.book-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--public-border);
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(28, 34, 25, 0.06);
}

.book-cover {
    display: grid;
    place-items: center;
    min-height: 430px;
    padding: 2rem;
    background: #eae5da;
}

.book-cover img {
    width: min(100%, 245px);
    max-height: 380px;
    object-fit: contain;
    box-shadow: 0 16px 32px rgba(31, 28, 22, 0.2);
    transition: transform 180ms ease;
}

.book-cover:hover img {
    transform: translateY(-5px) rotate(-0.5deg);
}

.book-cover-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 245px);
    aspect-ratio: 0.69;
    padding: 1.4rem;
    color: #fff;
    background: linear-gradient(160deg, #156285, #4aa6af 55%, #e2a83e);
    box-shadow: 0 16px 32px rgba(31, 28, 22, 0.2);
    text-align: center;
}

.book-cover-fallback small {
    letter-spacing: 0.12em;
}

.book-cover-fallback strong {
    margin: 0.5rem 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
}

.book-cover-fallback em {
    font-style: normal;
    font-weight: 800;
}

.book-card-copy {
    padding: 1.5rem;
}

.book-card-copy .eyebrow {
    color: #718267;
    font-size: 0.7rem;
}

.book-card-copy h2 {
    min-height: 3.1em;
    margin: 0.5rem 0 1.1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.25;
}

.book-purchase-link {
    color: #3c5d27;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.book-purchase-link:hover {
    text-decoration: underline;
}

.external-store-note {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #e8e2d6;
    border-radius: 12px;
}

.external-store-note p {
    margin: 0.25rem 0 0;
    color: var(--public-muted);
}

.public-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-channel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 370px;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: #fff;
    border: 1px solid var(--public-border);
    border-radius: 16px;
}

.contact-channel-primary {
    color: #fff;
    background: #2c3d27;
    border-color: #2c3d27;
}

.contact-channel-primary .eyebrow {
    color: var(--public-lime);
}

.contact-channel h2 {
    margin: 0.8rem 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 500;
    line-height: 1.1;
}

.contact-channel > p:not(.eyebrow) {
    color: var(--public-muted);
    line-height: 1.75;
}

.contact-channel-primary > p:not(.eyebrow) {
    color: #ced6cb;
}

.contact-channel-links {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
}

.contact-channel-links a,
.contact-email-action {
    color: inherit;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-email-action {
    margin: auto 0 1.2rem;
    color: #3c5d27;
}

.contact-guidance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 2rem;
    overflow: hidden;
    background: #cfd2ca;
    border: 1px solid #cfd2ca;
    border-radius: 14px;
}

.contact-guidance > div {
    padding: 1.5rem;
    background: #fff;
}

.contact-guidance span {
    color: #7c9d56;
    font-family: Georgia, 'Times New Roman', serif;
}

.contact-guidance strong {
    display: block;
    margin-top: 1.4rem;
    font-size: 1.05rem;
}

.contact-guidance p {
    color: var(--public-muted);
    line-height: 1.6;
}

.contact-social-section {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: #e8e2d6;
    border-radius: 14px;
}

.contact-social-section h2 {
    margin: 0.25rem 0 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 500;
}

.contact-social-links {
    gap: 0.5rem;
}

.contact-social-links a {
    padding: 0.65rem 0.8rem;
    background: #fff;
    border: 1px solid #d1cec5;
    border-radius: 6px;
    font-weight: 750;
}

.slug-field-prefix {
    display: flex;
    align-items: stretch;
}

.slug-field-prefix span {
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    color: #5d6559;
    background: #edf0e9;
    border: 1px solid #9ca3af;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    font-size: 0.87rem;
    white-space: nowrap;
}

.form-group .slug-field-prefix input {
    border-radius: 0 6px 6px 0;
}

.site-footer {
    padding: 0;
    color: #dce3d9;
    background: #11180f;
}

.public-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: clamp(3rem, 7vw, 5rem);
}

.footer-intro p {
    max-width: 360px;
    color: #aeb8ab;
    line-height: 1.7;
}

.footer-brand {
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.65rem;
    font-weight: 500;
    text-decoration: none;
}

.footer-social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.footer-social-links a,
.footer-links a,
.footer-contact a,
.footer-legal a {
    color: #bdc7ba;
    text-decoration: none;
}

.footer-social-links a:hover,
.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
    color: var(--public-lime);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.footer-links strong,
.footer-contact > strong {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact small {
    margin-top: 0.6rem;
    color: #899486;
    line-height: 1.55;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    color: #899486;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

@media (max-width: 1100px) {
    .brand-copy small,
    .account-link-optional {
        display: none;
    }

    .main-navigation a,
    .account-navigation a,
    .account-navigation .nav-button {
        padding-inline: 0.45rem;
        font-size: 0.83rem;
    }

    .public-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr);
    }

    .books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
    }

    .header-content {
        position: relative;
        min-height: 72px;
    }

    .brand-copy small {
        display: block;
    }

    .public-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-navigation-shell {
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 1rem;
        color: #fff;
        background: #172015;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
    }

    .site-navigation-shell.is-open {
        display: grid;
        gap: 0.8rem;
    }

    .main-navigation,
    .account-navigation {
        display: grid;
        align-items: stretch;
        gap: 0.2rem;
    }

    .main-navigation a,
    .account-navigation a,
    .account-navigation .nav-button {
        display: block;
        width: 100%;
        padding: 0.75rem;
        text-align: left;
    }

    .account-navigation {
        padding: 0.8rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        border-left: 0;
    }

    .account-link-optional {
        display: block;
    }

    .public-home-hero,
    .institutional-split-hero {
        grid-template-columns: 1fr;
    }

    .public-home-hero-media,
    .institutional-split-hero figure {
        min-height: 440px;
    }

    .public-home-hero-media {
        order: -1;
    }

    .public-welcome-section,
    .history-story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .public-path-grid {
        grid-template-columns: 1fr;
    }

    .public-path-card {
        min-height: 280px;
    }

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

    .history-feature-grid,
    .contact-guidance {
        grid-template-columns: 1fr;
    }

    .public-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .container,
    main.container {
        width: min(100% - 1.25rem, 1220px);
    }

    main.container {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }

    .brand-copy small {
        display: none;
    }

    .public-home-hero {
        min-height: 0;
        margin-bottom: 3.5rem;
        border-radius: 14px;
    }

    .public-home-hero-copy {
        padding: 2rem 1.25rem 2.25rem;
    }

    .public-home-hero h1 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .public-home-hero-media {
        min-height: 340px;
    }

    .public-home-hero-media figcaption {
        right: 1.2rem;
        bottom: 1.2rem;
        left: 1.2rem;
    }

    .public-hero-links {
        display: grid;
        gap: 0.8rem;
    }

    .public-welcome-section,
    .history-story-grid {
        padding-inline: 0.5rem;
    }

    .public-path-card {
        padding: 1.5rem;
    }

    .public-path-card a {
        right: 1.5rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .public-books-preview,
    .vida-abundante-section,
    .institutional-hero,
    .institutional-split-hero > div {
        padding: 2rem 1.25rem;
        border-radius: 14px;
    }

    .public-books-stack {
        gap: 0.55rem;
    }

    .public-book-mini:nth-child(2) {
        transform: none;
    }

    .public-book-mini span {
        display: none;
    }

    .public-contact-cta,
    .history-ending-callout,
    .external-store-note,
    .contact-social-section {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.6rem;
    }

    .institutional-split-hero {
        border-radius: 14px;
    }

    .institutional-split-hero figure {
        min-height: 350px;
    }

    .album-card summary {
        grid-template-columns: 58px minmax(0, 1fr) 36px;
        gap: 0.6rem;
    }

    .album-tracks {
        columns: 1;
        padding-left: 1.5rem;
    }

    .books-grid,
    .public-contact-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        min-height: 390px;
    }

    .contact-channel {
        min-height: 330px;
        padding: 1.7rem;
    }

    .slug-field-prefix {
        display: grid;
    }

    .slug-field-prefix span {
        padding-block: 0.55rem;
        border-right: 1px solid #9ca3af;
        border-bottom: 0;
        border-radius: 6px 6px 0 0;
    }

    .form-group .slug-field-prefix input {
        border-radius: 0 0 6px 6px;
    }

    .public-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.history-ending-callout h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

/* Etapa 9.1 refinamentos visuais e seção de clipes */
.public-home-hero-refined {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.95fr);
    min-height: 680px;
    background:
        linear-gradient(120deg, rgba(183, 219, 122, 0.12), rgba(183, 219, 122, 0)),
        linear-gradient(180deg, #132012 0%, #0d130c 100%);
}

.public-home-hero-refined .public-home-hero-copy {
    padding: clamp(2.2rem, 5vw, 5.25rem);
}

.public-home-hero-refined h1 {
    max-width: 660px;
    font-size: clamp(3.35rem, 6vw, 6rem);
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.public-home-hero-refined .public-home-lead {
    max-width: 620px;
    font-size: clamp(1.05rem, 1.65vw, 1.28rem);
    color: #dde5d8;
}

.public-home-hero-media-portrait {
    min-height: 100%;
    background: #222;
}

.public-home-hero-media-portrait img {
    object-position: 54% center;
}

.public-home-hero-media-portrait figcaption {
    right: 2.25rem;
    bottom: 2.1rem;
    left: 2.25rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(10, 14, 9, 0), rgba(10, 14, 9, 0.64));
    border-radius: 16px;
}

.public-home-hero-media-portrait figcaption strong {
    font-size: 1.65rem;
}

.public-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.9rem;
}

.public-hero-highlights span {
    display: grid;
    gap: 0.2rem;
    min-width: 142px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.public-hero-highlights strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.public-hero-highlights small {
    color: #cfd8ca;
    font-size: 0.82rem;
}

.public-welcome-section-refined {
    align-items: center;
}

.public-path-grid-refined {
    gap: 0;
    background: #d8d4c8;
    border: 1px solid rgba(23, 32, 21, 0.09);
    box-shadow: 0 24px 60px rgba(23, 32, 21, 0.1);
}

.public-path-grid-refined .public-path-card {
    min-height: 370px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 238, 1));
}

.public-path-grid-refined .public-path-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(23, 32, 21, 0.05);
    pointer-events: none;
}

.public-path-grid-refined .public-path-card-history,
.public-path-grid-refined .public-path-card-courses {
    background:
        radial-gradient(circle at top left, rgba(183, 219, 122, 0.12), transparent 35%),
        linear-gradient(135deg, #162014 0%, #33452d 100%);
}

.public-path-grid-refined .public-path-card-books {
    background:
        linear-gradient(180deg, rgba(253, 252, 249, 0.96), rgba(244, 240, 233, 1));
    color: var(--public-ink);
}

.public-path-grid-refined .public-path-card .eyebrow {
    opacity: 0.75;
    letter-spacing: 0.14em;
}

.public-path-grid-refined .public-path-number {
    margin-bottom: 2.4rem;
    color: rgba(151, 170, 141, 0.95);
    font-size: 1.25rem;
}

.public-path-grid-refined .public-path-card h2 {
    font-size: clamp(2.05rem, 3.4vw, 3.15rem);
}

.public-path-grid-refined .public-path-card p {
    max-width: 360px;
    font-size: 1.03rem;
    line-height: 1.8;
    opacity: 0.9;
}

.public-path-grid-refined .public-path-card-books p {
    color: #4f564b;
}

.public-path-grid-refined .public-path-card a {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.public-books-preview-refined {
    align-items: center;
}

.public-video-section {
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.public-video-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-video-card {
    display: grid;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 32, 21, 0.09);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(23, 32, 21, 0.08);
}

.public-video-frame {
    aspect-ratio: 16 / 9;
    background: #000;
}

.public-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.public-video-copy,
.public-video-note {
    display: grid;
    gap: 0.8rem;
    padding: 1.35rem 1.35rem 1.5rem;
}

.public-video-copy h3,
.public-video-note h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.15;
}

.public-video-copy p,
.public-video-note p {
    margin: 0;
    color: #5d655a;
    line-height: 1.7;
}

.public-video-copy a,
.public-video-note a:not(.button) {
    font-weight: 700;
    text-decoration: none;
}

.public-video-card-note {
    background:
        radial-gradient(circle at top left, rgba(183, 219, 122, 0.18), transparent 34%),
        linear-gradient(145deg, #f6f3eb 0%, #ece6d9 100%);
}

.history-hero-refined,
.history-ending-callout-refined {
    box-shadow: 0 22px 50px rgba(23, 32, 21, 0.08);
}

.history-story-grid-refined {
    gap: 2rem;
}

.history-story-copy-expanded p {
    font-size: 1.05rem;
    line-height: 1.85;
}

.history-narrative-section,
.history-milestones {
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.history-narrative-grid,
.history-milestones-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-milestones-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-narrative-card,
.history-milestones-grid article {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(23, 32, 21, 0.08);
    border-radius: 18px;
}

.history-narrative-card h3,
.history-milestones-grid h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.45rem;
    font-weight: 500;
}

.history-narrative-card p,
.history-milestones-grid p {
    margin: 0;
    color: #5d655a;
    line-height: 1.75;
}

.history-milestones-grid span {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: #799165;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
}

.vida-abundante-section-refined .section-heading p + p {
    margin-top: 0.8rem;
}

.history-feature-grid-refined article p {
    line-height: 1.75;
}

@media (max-width: 1100px) {
    .public-video-grid,
    .history-milestones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-narrative-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .public-home-hero-refined {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .public-home-hero-media-portrait {
        min-height: 420px;
    }

    .public-home-hero-media-portrait img {
        object-position: 50% center;
    }

    .public-home-hero h1 {
        max-width: none;
    }

    .public-path-grid-refined .public-path-card {
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .public-home-hero-refined {
        margin-bottom: 3.5rem;
    }

    .public-home-hero-refined h1 {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    .public-home-hero-media-portrait {
        min-height: 330px;
    }

    .public-home-hero-media-portrait figcaption {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        padding: 0.85rem 0.95rem;
    }

    .public-home-hero-media-portrait figcaption strong {
        font-size: 1.35rem;
    }

    .public-hero-highlights {
        display: grid;
        grid-template-columns: 1fr;
    }

    .public-path-grid-refined .public-path-card {
        min-height: 300px;
    }

    .public-video-grid,
    .history-milestones-grid {
        grid-template-columns: 1fr;
    }

    .public-video-copy,
    .public-video-note,
    .history-narrative-card,
    .history-milestones-grid article {
        padding: 1.2rem;
    }
}

/* Etapa 9.2 — refinamento premium da home, tipografia e clipes */
:root {
    --public-display-font: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --public-body-font: 'DM Sans', Arial, Helvetica, sans-serif;
    --public-gold: #c4a96a;
    --public-gold-soft: #e5d7b5;
    --public-panel: #11180f;
}

body {
    font-family: var(--public-body-font);
    letter-spacing: -0.008em;
}

.public-home-hero h1,
.public-welcome-copy h2,
.public-path-card h2,
.public-catalog-preview .section-heading h2,
.public-books-intro h2,
.public-book-mini strong,
.public-video-section h2,
.public-video-section h3,
.public-contact-cta h2,
.institutional-split-hero h1,
.institutional-hero h1,
.history-story-copy h2,
.history-section-heading h2,
.discography-section h2,
.history-ending-callout h2 {
    font-family: var(--public-display-font);
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.button {
    padding: 0.84rem 1.28rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.018em;
    box-shadow: 0 8px 22px rgba(13, 19, 11, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 19, 11, 0.14);
}

.button-ghost {
    color: #f4f1e9;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.34);
}

.button-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.62);
}

.public-home-hero-editorial {
    display: block;
    min-height: 0;
    padding: clamp(1.5rem, 3.2vw, 3rem);
    background:
        radial-gradient(circle at 93% 7%, rgba(196, 169, 106, 0.13), transparent 26%),
        radial-gradient(circle at 4% 0%, rgba(183, 219, 122, 0.13), transparent 31%),
        linear-gradient(145deg, #172015 0%, #0b100a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(17, 24, 15, 0.2);
}

.public-home-hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
    padding: clamp(0.4rem, 2vw, 1.6rem) clamp(0rem, 1.8vw, 1.4rem) clamp(2rem, 4vw, 3.5rem);
}

.public-home-hero-title {
    align-self: start;
}

.public-home-hero-title .eyebrow {
    margin-top: 0;
    color: var(--public-gold-soft);
}

.public-home-hero-editorial h1 {
    max-width: 810px;
    margin: 0.65rem 0 0;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.87;
    text-wrap: balance;
}

.public-home-hero-summary {
    padding-bottom: 0.35rem;
}

.public-home-hero-editorial .public-home-lead {
    max-width: 520px;
    margin: 0;
    color: #d7ddd3;
    font-size: clamp(1rem, 1.5vw, 1.17rem);
    line-height: 1.75;
}

.public-home-hero-editorial .hero-actions {
    margin-top: 1.75rem;
}

.public-home-hero-media-cinematic {
    position: relative;
    min-height: 0;
    aspect-ratio: 2.194 / 1;
    margin: 0;
    overflow: hidden;
    background: #263022;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    isolation: isolate;
}

.public-home-hero-media-cinematic::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 11px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    pointer-events: none;
}

.public-home-hero-media-cinematic::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    height: auto;
    background:
        linear-gradient(90deg, rgba(7, 10, 7, 0.22), transparent 42%, rgba(7, 10, 7, 0.08)),
        linear-gradient(0deg, rgba(7, 10, 7, 0.78), transparent 42%);
}

.public-home-hero-media-cinematic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.9) contrast(1.04);
    transform: scale(1.002);
}

.public-home-hero-photo-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    box-shadow: inset 0 0 90px rgba(4, 7, 4, 0.24);
    pointer-events: none;
}

.public-home-hero-media-cinematic figcaption {
    position: absolute;
    z-index: 4;
    right: auto;
    bottom: clamp(1.4rem, 3vw, 2.8rem);
    left: clamp(1.4rem, 3vw, 2.8rem);
    display: grid;
    max-width: 480px;
    padding: 0;
    background: none;
    border-radius: 0;
}

.public-home-hero-media-cinematic figcaption strong {
    font-family: var(--public-display-font);
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1;
}

.public-home-hero-media-cinematic figcaption span {
    margin-top: 0.45rem;
    color: #e4e7e1;
    font-size: 0.88rem;
    letter-spacing: 0.015em;
}

.public-home-hero-seal {
    position: absolute;
    z-index: 4;
    top: clamp(1.4rem, 3vw, 2.8rem);
    right: clamp(1.4rem, 3vw, 2.8rem);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.78rem 0.9rem;
    color: #172015;
    background: rgba(245, 242, 234, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    box-shadow: 0 12px 32px rgba(8, 12, 7, 0.2);
    backdrop-filter: blur(8px);
}

.public-home-hero-seal strong {
    font-family: var(--public-display-font);
    font-size: 2rem;
    font-weight: 600;
    line-height: 0.9;
}

.public-home-hero-seal span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.public-home-hero-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.7rem, 3vw, 2.7rem) clamp(0rem, 1.8vw, 1.4rem) 0.35rem;
}

.public-home-hero-editorial .public-hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.public-home-hero-editorial .public-hero-highlights span {
    min-width: 0;
    padding: 0 1.3rem;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    backdrop-filter: none;
}

.public-home-hero-editorial .public-hero-highlights span:first-child {
    padding-left: 0;
    border-left: 0;
}

.public-home-hero-editorial .public-hero-highlights strong {
    font-family: var(--public-body-font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.public-home-hero-editorial .public-hero-highlights small {
    margin-top: 0.3rem;
    color: #aeb8aa;
    font-size: 0.76rem;
}

.public-home-hero-editorial .public-hero-links {
    gap: 1.15rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.public-home-hero-editorial .public-hero-links a {
    color: #e3e8df;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.public-welcome-section-premium {
    grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr) minmax(260px, 0.48fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.public-welcome-section-premium .public-welcome-copy h2 {
    max-width: 720px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
}

.public-welcome-section-premium .public-welcome-copy p {
    max-width: 720px;
}

.public-inline-link {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.8rem;
    color: #365225;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.public-inline-link:hover {
    color: #213818;
    text-decoration: underline;
    text-underline-offset: 0.28rem;
}

.public-welcome-portrait {
    position: relative;
    margin: 0;
}

.public-welcome-portrait::before {
    content: "";
    position: absolute;
    top: -14px;
    right: -14px;
    width: 54%;
    height: 54%;
    border-top: 1px solid #9f8751;
    border-right: 1px solid #9f8751;
    pointer-events: none;
}

.public-welcome-portrait-frame {
    padding: 8px;
    background: #fff;
    border: 1px solid #d7d0c2;
    box-shadow: 0 22px 50px rgba(23, 32, 21, 0.14);
}

.public-welcome-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.03);
}

.public-welcome-portrait figcaption {
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 0.35rem 0;
}

.public-welcome-portrait figcaption strong {
    font-family: var(--public-display-font);
    font-size: 1.25rem;
    font-weight: 600;
}

.public-welcome-portrait figcaption span {
    color: #6a7066;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-path-grid-refined {
    border-radius: 8px;
}

.public-path-grid-refined .public-path-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.public-path-grid-refined .public-path-card:hover {
    z-index: 2;
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(17, 24, 15, 0.18);
}

.public-books-preview-refined {
    overflow: hidden;
    border: 1px solid rgba(79, 69, 49, 0.1);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(23, 32, 21, 0.08);
}

.public-video-section-premium .section-heading {
    align-items: end;
}

.public-video-section-premium .section-heading h2 {
    max-width: 790px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.public-video-section-premium .section-heading > div > p:last-child {
    max-width: 660px;
}

.public-video-section-premium .public-video-grid {
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-video-section-premium .public-video-card {
    border-radius: 6px;
    box-shadow: 0 18px 44px rgba(23, 32, 21, 0.07);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.public-video-section-premium .public-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 54px rgba(23, 32, 21, 0.13);
}

.public-video-section-premium .public-video-frame {
    position: relative;
}

.public-video-section-premium .public-video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.public-video-section-premium .public-video-copy {
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
    padding: 1.45rem 1.35rem 1.6rem;
}

.public-video-index {
    grid-row: 1 / span 3;
    color: #78945e;
    font-family: var(--public-display-font);
    font-size: 1.2rem;
    line-height: 1;
}

.public-video-section-premium .public-video-copy h3,
.public-video-section-premium .public-video-copy p,
.public-video-section-premium .public-video-copy a {
    grid-column: 2;
}

.public-video-section-premium .public-video-copy h3 {
    font-size: 1.75rem;
}

.public-video-section-premium .public-video-copy a {
    width: fit-content;
    font-size: 0.86rem;
    text-underline-offset: 0.28rem;
}

.public-contact-cta-premium {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(23, 32, 21, 0.14);
}

.public-contact-cta-premium::after {
    content: "PD";
    position: absolute;
    right: clamp(1rem, 4vw, 4rem);
    bottom: -0.55em;
    color: rgba(255, 255, 255, 0.035);
    font-family: var(--public-display-font);
    font-size: clamp(9rem, 18vw, 16rem);
    line-height: 1;
    pointer-events: none;
}

.public-contact-cta-premium > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1050px) {
    .public-home-hero-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .public-home-hero-editorial .public-home-lead {
        max-width: 720px;
    }

    .public-home-hero-footer {
        grid-template-columns: 1fr;
    }

    .public-welcome-section-premium {
        grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr);
    }

    .public-welcome-portrait {
        grid-column: 2;
        width: min(100%, 420px);
    }
}

@media (max-width: 900px) {
    .public-home-hero-editorial {
        padding: 1.25rem;
    }

    .public-home-hero-media-cinematic {
        aspect-ratio: 16 / 9;
    }

    .public-home-hero-editorial .public-hero-highlights {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .public-home-hero-editorial .public-hero-highlights span,
    .public-home-hero-editorial .public-hero-highlights span:first-child {
        padding: 0 0 0.8rem;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .public-home-hero-editorial .public-hero-highlights span:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .public-video-section-premium .public-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .public-home-hero-editorial {
        margin-inline: -0.25rem;
        border-radius: 6px;
    }

    .public-home-hero-intro {
        padding: 0.4rem 0 1.6rem;
    }

    .public-home-hero-editorial h1 {
        font-size: clamp(2.5rem, 11vw, 3.6rem);
        line-height: 0.95;
    }

    .public-home-hero-media-cinematic {
        aspect-ratio: 1.35 / 1;
    }

    .public-home-hero-media-cinematic img {
        object-position: 53% center;
    }

    .public-home-hero-seal {
        top: 1rem;
        right: 1rem;
        padding: 0.65rem 0.72rem;
    }

    .public-home-hero-seal strong {
        font-size: 1.55rem;
    }

    .public-home-hero-seal span {
        font-size: 0.58rem;
    }

    .public-home-hero-media-cinematic figcaption {
        right: 1.15rem;
        bottom: 1.15rem;
        left: 1.15rem;
    }

    .public-home-hero-media-cinematic figcaption span {
        display: none;
    }

    .public-home-hero-footer {
        padding-inline: 0;
    }

    .public-home-hero-editorial .public-hero-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .public-welcome-section-premium {
        grid-template-columns: 1fr;
        gap: 1.7rem;
    }

    .public-welcome-portrait {
        grid-column: auto;
        width: 100%;
    }

    .public-path-grid-refined .public-path-card:hover,
    .public-video-section-premium .public-video-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .public-path-grid-refined .public-path-card,
    .public-video-section-premium .public-video-card {
        transition: none;
    }
}

/* Etapa 9.2.1 — correções de rotas, tipografia uniforme e contraste */
:root {
    /*
     * ParnasoSmall-Medium é a família principal solicitada.
     * O projeto não distribui o arquivo da fonte; quando o webfont licenciado
     * estiver disponível no navegador/site, ele será usado automaticamente.
     * Cormorant Garamond mantém uma aparência próxima e elegante como fallback.
     */
    --parnaso-font: 'ParnasoSmall-Medium', 'Parnaso Small Medium', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --public-display-font: var(--parnaso-font);
    --public-body-font: var(--parnaso-font);
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--parnaso-font);
    font-weight: 400;
}

body {
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero h1,
.page-heading h1,
.error-page h1,
.card h2,
.brand,
.brand-copy strong,
.footer-brand,
.public-home-hero h1,
.public-welcome-copy h2,
.public-path-card h2,
.public-catalog-preview .section-heading h2,
.public-books-intro h2,
.public-book-mini strong,
.public-video-section h2,
.public-video-section h3,
.public-contact-cta h2,
.institutional-split-hero h1,
.institutional-hero h1,
.history-story-copy h2,
.history-section-heading h2,
.discography-section h2,
.history-ending-callout h2,
.album-title strong,
.history-feature-grid strong,
.public-section-label > span,
.public-path-number,
.public-video-index,
.public-home-hero-seal strong,
.public-home-hero-media-cinematic figcaption strong,
.public-welcome-portrait figcaption strong {
    font-family: var(--parnaso-font) !important;
    font-weight: 400;
}

/* Evita que regras antigas em Georgia/Arial façam os títulos parecerem diferentes. */
.public-home-hero-editorial .public-hero-highlights strong,
.eyebrow,
.button,
.small-button,
.nav-button,
.main-navigation a,
.account-navigation a,
.contact-channel-links a,
.contact-email-action,
.contact-social-links a {
    font-family: var(--parnaso-font);
}

/* Contraste consistente em todas as superfícies escuras do projeto. */
.site-header,
.site-header a,
.site-header button,
.public-home-hero-editorial,
.public-home-hero-editorial h1,
.public-home-hero-editorial h2,
.public-home-hero-editorial h3,
.public-home-hero-editorial p,
.public-home-hero-editorial a,
.public-home-hero-editorial strong,
.public-path-card-history,
.public-path-card-courses,
.public-path-card-history h2,
.public-path-card-courses h2,
.public-path-card-history p,
.public-path-card-courses p,
.public-path-card-history a,
.public-path-card-courses a,
.public-contact-cta,
.public-contact-cta h2,
.public-contact-cta p,
.institutional-split-hero,
.institutional-split-hero h1,
.institutional-split-hero h2,
.institutional-split-hero p,
.vida-abundante-section,
.vida-abundante-section h2,
.vida-abundante-section h3,
.vida-abundante-section p,
.history-ending-callout,
.history-ending-callout h2,
.history-ending-callout p,
.student-dashboard-hero,
.student-dashboard-hero h1,
.student-dashboard-hero p,
.site-footer,
.site-footer h2,
.site-footer h3,
.site-footer p {
    color: #ffffff;
}

.public-home-hero-editorial .public-home-lead,
.public-home-hero-editorial .public-hero-highlights small,
.public-home-hero-media-cinematic figcaption span,
.public-contact-cta p,
.institutional-split-hero > div > p:not(.eyebrow),
.vida-abundante-section p,
.history-ending-callout p,
.site-footer p {
    color: #e4e9e1;
}

.public-home-hero-title .eyebrow,
.public-contact-cta .eyebrow,
.history-ending-callout .eyebrow,
.institutional-split-hero .eyebrow,
.vida-abundante-section .eyebrow,
.student-dashboard-hero .eyebrow {
    color: #d9e9bd;
}

.contact-whatsapp-action {
    width: fit-content;
    margin-top: 0.85rem;
    color: #ffffff !important;
    background: #245f32 !important;
    border-color: #245f32 !important;
    text-decoration: none;
}

.contact-whatsapp-action:hover {
    color: #ffffff !important;
    background: #194824 !important;
    border-color: #194824 !important;
}


/* Etapa 9.2.2 — administração segura de cursos */
.course-danger-zone {
    margin-top: 2rem;
    border: 1px solid #e6b3b3;
    background: #fffafa;
}

.course-danger-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.course-danger-heading h2 {
    margin-bottom: 0.55rem;
}

.course-danger-heading > div > p:last-child {
    max-width: 820px;
    margin-bottom: 0;
}

.course-danger-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.course-danger-summary > div {
    display: grid;
    gap: 0.15rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #eadada;
    border-radius: 10px;
}

.course-danger-summary strong {
    color: #7f1d1d;
    font-size: 1.45rem;
}

.course-danger-summary span {
    color: #5f6368;
    font-size: 0.88rem;
}

.course-danger-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.course-danger-option {
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.course-danger-option h3 {
    margin-top: 0;
}

.course-danger-option-delete {
    border-color: #efb1b1;
}

.course-danger-warning {
    padding: 0.85rem 1rem;
    color: #7f1d1d;
    background: #fff1f2;
    border-left: 3px solid #b91c1c;
}

.course-delete-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.course-delete-form .form-group {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .course-danger-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .course-danger-heading {
        display: grid;
    }

    .course-danger-summary {
        grid-template-columns: 1fr;
    }
}

/* Nossa História: texto integralmente branco no bloco verde escuro. */
.vida-abundante-section,
.vida-abundante-section p,
.vida-abundante-section .section-heading p,
.vida-abundante-section .history-section-heading > p,
.vida-abundante-section .history-feature-grid p,
.vida-abundante-section .history-feature-grid-refined article p {
    color: #ffffff;
}

/* Etapa 9.2.3 — ajuste pontual de responsividade no mobile. */
@media (max-width: 900px) {
    /* Mantém marca e botão do menu na mesma linha, sem aumentar a altura do cabeçalho. */
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-block: 0.75rem;
    }

    .brand {
        min-width: 0;
    }

    .public-menu-toggle {
        flex: 0 0 44px;
        margin-left: auto;
    }
}

@media (max-width: 650px) {
    /* Em coluna, remove o flex-basis de 220px que criava grandes espaços verticais. */
    .catalog-filter-group {
        flex: 0 0 auto;
    }
}

/* Etapa 10.6 — refinamento visual da Home e elementos públicos globais */
:root {
    /* Verdes ligeiramente mais claros para testar a identidade sem perder o contraste. */
    --public-forest: #1c2719;
    --public-forest-light: #35452c;
    --public-panel: #263322;
    --public-cream: #f5f2ea;
    --public-cream-border: #d8d0c2;
    --public-shadow-soft: 0 12px 28px rgba(25, 35, 22, 0.10);
    --public-shadow-card: 0 18px 42px rgba(25, 35, 22, 0.12);
}

/* Paleta pública: clareamento sutil dos verdes principais em todo o site. */
.site-header {
    background: rgba(28, 39, 25, 0.98);
}

.site-footer {
    background: #182216;
}

.public-home-hero-editorial {
    background:
        radial-gradient(circle at 93% 7%, rgba(196, 169, 106, 0.14), transparent 26%),
        radial-gradient(circle at 4% 0%, rgba(183, 219, 122, 0.14), transparent 31%),
        linear-gradient(145deg, var(--public-forest) 0%, #141c12 100%);
}

.public-home-hero-media-cinematic,
.institutional-split-hero figure {
    background: var(--public-forest-light);
}

.public-contact-cta,
.history-ending-callout,
.institutional-split-hero,
.institutional-hero {
    background: var(--public-forest);
}

.vida-abundante-section,
.history-feature-grid article {
    background: var(--public-forest-light);
}

/* Home: textos corridos padronizados em 19px. Títulos, rótulos e metadados mantêm hierarquia própria. */
.public-home-hero-editorial .public-home-lead,
.public-welcome-section-premium .public-welcome-copy > p,
.public-path-grid-refined .public-path-card > p:not(.eyebrow),
.public-catalog-preview .section-heading > div > p:last-child,
.public-books-preview-refined .public-books-intro > p,
.public-video-section-premium .section-heading > div > p:last-child,
.public-video-section-premium .public-video-copy > p,
.public-contact-cta-premium > div > p:not(.eyebrow) {
    font-size: 19px;
    line-height: 1.72;
}

/* Selo 50+: contraste mais firme sobre a fotografia. */
.public-home-hero-seal {
    color: #162012;
    background: rgba(245, 242, 234, 0.97);
    border-color: #d8d0c2;
    box-shadow: 0 14px 34px rgba(8, 12, 7, 0.26);
}

.public-home-hero-seal strong {
    color: #10180e;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 5px rgba(16, 24, 14, 0.12);
}

.public-home-hero-seal span {
    color: #273522;
}

/* Acesso rápido do hero: links viram pequenos menus retangulares claros. */
.public-home-hero-editorial .public-hero-links {
    gap: 0.7rem;
}

.public-home-hero-editorial .public-hero-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    color: #1a2517;
    background: var(--public-cream);
    border: 1px solid var(--public-cream-border);
    border-radius: 4px;
    box-shadow: var(--public-shadow-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.public-home-hero-editorial .public-hero-links a:hover {
    color: #11190f;
    background: #fffdf8;
    box-shadow: 0 16px 34px rgba(8, 12, 7, 0.18);
    transform: translateY(-2px);
    text-decoration: none;
}

/* “01 · SEJA BEM-VINDO”: maior e com sombra discreta. */
.public-welcome-section-premium {
    grid-template-columns: minmax(155px, 0.27fr) minmax(0, 1fr) minmax(260px, 0.48fr);
}

.public-section-label {
    gap: 1.15rem;
}

.public-section-label > span {
    color: #5b7b42;
    font-size: 1.55rem;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(31, 45, 26, 0.14);
}

.public-section-label .eyebrow {
    margin-top: 0;
    color: #365a2a;
    font-size: 0.9rem;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgba(31, 45, 26, 0.12);
}

/* Links de destaque em áreas claras: contraste verde, borda fina e sombra suave. */
.public-inline-link,
.public-catalog-preview .text-link,
.public-video-section-premium .section-heading .text-link {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 43px;
    padding: 0.66rem 1rem;
    color: #f8f5ed;
    background: var(--public-forest-light);
    border: 1px solid #293821;
    border-radius: 4px;
    box-shadow: var(--public-shadow-soft);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.public-inline-link:hover,
.public-catalog-preview .text-link:hover,
.public-video-section-premium .section-heading .text-link:hover {
    color: #ffffff;
    background: #293820;
    box-shadow: 0 15px 32px rgba(25, 35, 22, 0.16);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Nossa História / Livros / Cursos: cards separados, títulos maiores e ações em botão. */
.public-path-grid-refined {
    gap: 14px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.public-path-grid-refined .public-path-card {
    min-height: 360px;
    border: 1px solid rgba(47, 60, 42, 0.18);
    border-radius: 8px;
    box-shadow: var(--public-shadow-card);
}

.public-path-grid-refined .public-path-card-history {
    background: var(--public-forest-light);
}

.public-path-grid-refined .public-path-card-courses {
    background: #3a4b30;
}

.public-path-grid-refined .public-path-card-books {
    background: #faf7f0;
    border-color: #ddd5c8;
}

.public-path-grid-refined .public-path-card h2 {
    margin-top: 0.8rem;
    font-size: clamp(2.25rem, 3.6vw, 3.35rem);
    line-height: 0.98;
}

.public-path-grid-refined .public-path-card > p:not(.eyebrow) {
    max-width: 350px;
}

.public-path-grid-refined .public-path-number {
    margin-bottom: 2.7rem;
    font-size: 1.25rem;
}

.public-path-grid-refined .public-path-card a {
    right: auto;
    bottom: 2rem;
    left: clamp(1.8rem, 3vw, 3rem);
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 43px;
    padding: 0.68rem 1rem;
    color: #172015;
    background: var(--public-cream);
    border: 1px solid var(--public-cream-border);
    border-radius: 4px;
    box-shadow: var(--public-shadow-soft);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.public-path-grid-refined .public-path-card a:hover {
    color: #10180e;
    background: #fffdf8;
    box-shadow: 0 16px 34px rgba(18, 26, 16, 0.17);
    transform: translateY(-2px);
    text-decoration: none;
}

.public-path-grid-refined .public-path-card-books a {
    color: #f8f5ed;
    background: var(--public-forest-light);
    border-color: #293821;
}

.public-path-grid-refined .public-path-card-books a:hover {
    color: #ffffff;
    background: #293820;
}

/* Botões claros existentes ganham o mesmo acabamento retangular suave. */
.public-books-preview-refined .button-secondary {
    color: #172015;
    background: var(--public-cream);
    border-color: var(--public-cream-border);
    box-shadow: var(--public-shadow-soft);
}

.public-books-preview-refined .button-secondary:hover {
    color: #10180e;
    background: #fffdf8;
    border-color: #c8beae;
}

@media (max-width: 1050px) {
    .public-welcome-section-premium {
        grid-template-columns: minmax(145px, 0.27fr) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .site-navigation-shell {
        background: var(--public-forest);
    }

    .public-home-hero-editorial .public-hero-links a {
        justify-content: flex-start;
    }

    .public-path-grid-refined {
        gap: 12px;
    }
}

@media (max-width: 680px) {
    .public-welcome-section-premium {
        grid-template-columns: 1fr;
    }

    .public-section-label {
        align-items: center;
    }

    .public-section-label .eyebrow {
        margin-bottom: 0;
    }

    .public-path-grid-refined .public-path-card {
        min-height: 340px;
    }

    .public-home-hero-editorial .public-home-lead,
    .public-welcome-section-premium .public-welcome-copy > p,
    .public-path-grid-refined .public-path-card > p:not(.eyebrow),
    .public-catalog-preview .section-heading > div > p:last-child,
    .public-books-preview-refined .public-books-intro > p,
    .public-video-section-premium .section-heading > div > p:last-child,
    .public-video-section-premium .public-video-copy > p,
    .public-contact-cta-premium > div > p:not(.eyebrow) {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-home-hero-editorial .public-hero-links a,
    .public-inline-link,
    .public-catalog-preview .text-link,
    .public-video-section-premium .section-heading .text-link,
    .public-path-grid-refined .public-path-card a {
        transition: none;
    }
}

/* Complementos de consistência da paleta 10.6 em áreas públicas autenticadas. */
.student-dashboard-hero {
    background: linear-gradient(135deg, var(--public-forest), var(--public-forest-light));
}

.public-catalog-preview .catalog-description {
    font-size: 19px;
    line-height: 1.68;
}

@media (max-width: 680px) {
    .public-catalog-preview .catalog-description {
        font-size: 18px;
    }
}

/* Etapa 10.6.1 — refinamento visual complementar da Home */
:root {
    /* Segundo teste: verdes um pouco mais claros, mantendo contraste e identidade. */
    --public-forest: #24321f;
    --public-forest-light: #405538;
    --public-panel: #31412c;
}

.site-header {
    background: rgba(36, 50, 31, 0.98);
}

.site-footer {
    background: #1d291a;
}

.public-home-hero-editorial {
    background:
        radial-gradient(circle at 93% 7%, rgba(196, 169, 106, 0.15), transparent 26%),
        radial-gradient(circle at 4% 0%, rgba(183, 219, 122, 0.15), transparent 31%),
        linear-gradient(145deg, var(--public-forest) 0%, #192317 100%);
}

.public-path-grid-refined .public-path-card-history {
    background: var(--public-forest-light);
}

.public-path-grid-refined .public-path-card-courses {
    background: #374b31;
}

/* Os botões deixam de ser absolutos: o texto nunca fica escondido por baixo deles. */
.public-path-grid-refined .public-path-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.public-path-grid-refined .public-path-card > p:not(.eyebrow) {
    margin-bottom: 1.55rem;
}

.public-path-grid-refined .public-path-card a {
    position: static;
    margin-top: auto;
    align-self: flex-start;
}

/* Cards de clipes: ação com o mesmo acabamento dos demais botões em fundo claro. */
.public-video-section-premium .public-video-copy a {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    margin-top: 0.45rem;
    padding: 0.64rem 0.9rem;
    color: #f8f5ed;
    background: var(--public-forest-light);
    border: 1px solid #31432b;
    border-radius: 4px;
    box-shadow: var(--public-shadow-soft);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.public-video-section-premium .public-video-copy a:hover {
    color: #ffffff;
    background: #304229;
    box-shadow: 0 15px 32px rgba(25, 35, 22, 0.16);
    transform: translateY(-2px);
    text-decoration: none;
}

/* CTA de contato: botão mais enxuto, elegante e sempre em uma linha. */
.public-contact-cta-premium .button-accent {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 0.68rem 1rem;
    color: #1c2918;
    background: var(--public-cream);
    border: 1px solid var(--public-cream-border);
    border-radius: 4px;
    box-shadow: var(--public-shadow-soft);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.public-contact-cta-premium .button-accent:hover {
    color: #142010;
    background: #fffdf8;
    border-color: #c8beae;
    box-shadow: 0 15px 32px rgba(8, 12, 7, 0.19);
}

@media (max-width: 680px) {
    .public-path-grid-refined .public-path-card {
        min-height: 365px;
    }

    .public-contact-cta-premium .button-accent {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-video-section-premium .public-video-copy a {
        transition: none;
    }
}

/* Etapa 12.1 — refinamentos visuais leves */
:root {
    --site-accent: #C8E794;
    --site-accent-soft: #f3f9e9;
    --site-accent-rgb: 200, 231, 148;
    --public-lime: #C8E794;
    --public-lime-strong: #C8E794;
}

/* Todos os botões verdes públicos usam o mesmo tom-base. */
.main-navigation .nav-cta,
.account-navigation .nav-cta,
.button-accent,
.button:not(.button-secondary):not(.button-ghost),
.public-contact-cta .button-accent {
    color: #182314;
    background: #C8E794;
    border-color: #C8E794;
}

.main-navigation .nav-cta:hover,
.account-navigation .nav-cta:hover,
.button-accent:hover,
.button:not(.button-secondary):not(.button-ghost):hover,
.public-contact-cta .button-accent:hover {
    color: #182314;
    background: #C8E794;
    border-color: #C8E794;
    box-shadow: 0 10px 24px rgba(54, 73, 39, 0.14);
    transform: translateY(-1px);
}

/* Home: seis cursos em 3 colunas x 2 linhas no desktop. */
.public-catalog-preview .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.category-shortcuts a:hover {
    color: #182314;
    background: #C8E794;
    border-color: #C8E794;
    text-decoration: none;
}

/* Ajuda Online: acesso direto ao WhatsApp. */
.support-widget.support-widget-whatsapp {
    display: inline-flex;
    right: 1.25rem;
    bottom: 1.25rem;
    width: auto;
    min-height: 46px;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    color: #182314;
    background: #C8E794;
    border: 1px solid #C8E794;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(42, 64, 22, 0.22);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.support-widget.support-widget-whatsapp:hover,
.support-widget.support-widget-whatsapp:focus-visible {
    color: #182314;
    background: #C8E794;
    border-color: #C8E794;
    box-shadow: 0 14px 34px rgba(42, 64, 22, 0.28);
    transform: translateY(-2px);
    text-decoration: none;
}

.support-widget-whatsapp svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

/* Rodapé: ícones oficiais simplificados acima dos nomes. */
.footer-social-links {
    align-items: flex-start;
    gap: 1rem;
}

.footer-social-links a {
    display: inline-flex;
    min-width: 58px;
    gap: 0.38rem;
    align-items: center;
    flex-direction: column;
    color: #bdc7ba;
    font-size: 0.78rem;
    text-align: center;
}

.footer-social-links a svg {
    width: 25px;
    height: 25px;
    color: #C8E794;
}

.footer-social-links a:hover {
    color: #ffffff;
}

.footer-social-links a:hover svg {
    color: #C8E794;
}

@media (max-width: 900px) {
    .public-catalog-preview .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .public-catalog-preview .catalog-grid {
        grid-template-columns: 1fr;
    }

    .support-widget.support-widget-whatsapp {
        right: 0.75rem;
        bottom: 0.75rem;
        min-height: 44px;
        padding: 0.68rem 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-widget.support-widget-whatsapp,
    .main-navigation .nav-cta,
    .account-navigation .nav-cta,
    .button-accent,
    .button:not(.button-secondary):not(.button-ghost) {
        transition: none;
    }
}

/* Ações que tinham verde escuro também passam para o verde único da 12.1. */
.public-inline-link,
.public-catalog-preview .text-link,
.public-video-section-premium .section-heading .text-link,
.public-video-section-premium .public-video-copy a,
.public-path-grid-refined .public-path-card-books a {
    color: #182314;
    background: #C8E794;
    border-color: #C8E794;
}

.public-inline-link:hover,
.public-catalog-preview .text-link:hover,
.public-video-section-premium .section-heading .text-link:hover,
.public-video-section-premium .public-video-copy a:hover,
.public-path-grid-refined .public-path-card-books a:hover {
    color: #182314;
    background: #C8E794;
    border-color: #C8E794;
    box-shadow: 0 12px 26px rgba(54, 73, 39, 0.16);
}

/* Etapa 12.2 — conteúdo visual administrável e ajustes de alinhamento */
.public-footer-grid {
    align-items: start;
}

.public-footer-grid .footer-links,
.public-footer-grid .footer-contact {
    justify-content: flex-start;
    align-self: start;
}

@media (max-width: 680px) {
    /* O selo deixa a região dos rostos livre no recorte vertical do celular. */
    .public-home-hero-seal {
        top: auto;
        right: auto;
        bottom: 0.9rem;
        left: 0.9rem;
        padding: 0.58rem 0.68rem;
    }

    .public-home-hero-media-cinematic figcaption {
        right: 1rem;
        bottom: 1rem;
        left: auto;
        max-width: 48%;
        text-align: right;
    }

    .public-home-hero-media-cinematic figcaption strong {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
        line-height: 1.02;
    }
}

/* Etapa 13.3 — tipografia pública em Lora e leitura ampliada */
.public-site-body {
    --parnaso-font: 'Lora', Georgia, 'Times New Roman', serif;
    --public-display-font: 'Lora', Georgia, 'Times New Roman', serif;
    --public-body-font: 'Lora', Georgia, 'Times New Roman', serif;
    font-family: var(--public-body-font);
}

.public-site-body button,
.public-site-body input,
.public-site-body select,
.public-site-body textarea {
    font-family: var(--public-body-font);
}

/* Mantém títulos e componentes no tamanho atual; ajusta apenas o texto de leitura. */
.public-site-body main p:not(.eyebrow),
.public-site-body main li {
    font-size: 1.125rem;
    line-height: 1.72;
}

/* Botões públicos um pouco mais compactos, sem alterar o painel administrativo. */
.public-site-body .button,
.public-site-body .small-button,
.public-site-body .button-small {
    font-size: 0.875rem;
}

/* Metadados, rótulos e textos auxiliares permanecem compactos. */
.public-site-body main .course-category-label,
.public-site-body main .course-teacher-line,
.public-site-body main .teacher-headline,
.public-site-body main .certificate-code,
.public-site-body main .empty-inline,
.public-site-body main .form-help,
.public-site-body main .field-help,
.public-site-body main .muted,
.public-site-body main small {
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 768px) {
    .public-site-body main p:not(.eyebrow),
    .public-site-body main li {
        font-size: 1.0625rem;
        line-height: 1.68;
    }
}
