@import url('dpmg-tokens.css');

/* DPMG Design System — Shell da área pública sem menu (US-1131, ex
 * dpmg-components.css)
 * =====================================================================
 * Renomeado na Fase 4 (US-1131) para refletir o escopo real: hoje este
 * arquivo é linkado SÓ por script/template/base_script.html (bloco
 * css_area), o wrapper fino que templates/html/base.html usa para a área
 * pública "sem menu" (ia/, script/, gerador_docx/gerador_docx_script.html,
 * planilha/planilha_sem_menu.html — confirmado via grep: nenhum outro
 * template linka este arquivo, nem a área restrita nem os hubs com menu
 * de templates/html/base.html). Não é compartilhado entre "as duas áreas"
 * do site — não redistribuído porque, verificado, ele NÃO é reaproveitado
 * fora dessa família de páginas; ver PRD US-1131 para a análise completa.
 * Continua carregado depois de dpmg-tokens.css.
 */

/* ---- Base ---- */
html {
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dpmg-gray);
    color: var(--dpmg-text);
    line-height: 1.6;
}

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

h3, h4, h5, h6,
.navbar-brand {
    /* US-1111: .hub-card-action removida — a classe foi renomeada para
       .dpmg-hub-tile-action e migrou para dpmg-paginas.css (seção 8);
       herda o font-family de body (var(--font-sans)) sem precisar de
       regra própria aqui. */
    font-family: var(--font-sans);
}

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dpmg-green);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 500;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ---- Navbar ---- */
.navbar-custom {
    background: linear-gradient(135deg, var(--dpmg-green) 0%, var(--dpmg-green-light) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-custom .navbar-brand:hover {
    color: var(--dpmg-gold) !important;
}

.navbar-custom .navbar-brand:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
    border-radius: var(--radius-sm);
}

.navbar-custom .navbar-brand .brand-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.navbar-custom .navbar-brand span {
    color: var(--dpmg-gold);
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom .nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-left: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.navbar-custom .nav-pills .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .nav-pills .nav-link:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

.navbar-custom .nav-pills .nav-link.active {
    background-color: transparent; /* neutraliza a pílula branca herdada de dpmg-base.css */
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--dpmg-gold);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* marcador do ativo é só o sublinhado dourado acima — suprime a barrinha ::after de dpmg-base.css */
.navbar-custom .nav-pills .nav-link.active::after {
    content: none;
}

.dropdown-menu .dropdown-item.active {
    background-color: var(--dpmg-green);
    color: white;
    font-weight: 600;
}

.dropdown-menu .dropdown-item:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

/* ---- Hero ----
 * Componente compartilhado de cabeçalho de página. Alinhado à esquerda,
 * altura mínima e padrão de subtítulo consistentes em todas as páginas.
 * O título usa travessão (—) e não hífen. Ver PRD R4.
 */
.hero-section {
    background: linear-gradient(135deg, var(--dpmg-green-dark) 0%, var(--dpmg-green) 100%);
    color: white;
    padding: 2.5rem 0 3rem;
    margin-bottom: 2rem;
    min-height: 148px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    padding-bottom: 0.7rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Assinatura visual do site (R9): sublinhado dourado sob o H1 dos heros.
 * O mesmo detalhe aparece nos titulos de secao (.section-card h2) e no hover
 * dos cards da home. E o unico ornamento repetido do site.
 * US-1112: a regra equivalente para `.stj-hero h1::after` (mesmo ornamento,
 * usado só pela página de Precedentes STJ) foi consolidada em
 * dpmg-publico.css — antes este seletor ficava "partido" entre os dois
 * arquivos (dono duplo do mesmo componente visual). `.stj-hero` nunca
 * coexiste com `.hero-section` na mesma página, então a duplicação do
 * corpo da regra em dois arquivos não gera nenhuma diferença visual, só
 * concentra o dono num arquivo só (dpmg-publico.css, que já tem o resto
 * de `.stj-hero`). */
.hero-section h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--dpmg-gold);
}

.hero-section h1:last-child {
    margin-bottom: 0;
}

.hero-section p {
    opacity: 0.92;
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 720px;
    margin-bottom: 0;
}

/* D1/R1: no hero (fundo verde escuro) o ícone precisa ser claro para ser
 * visível. A classe .section-icon é reaproveitada em títulos sobre fundo
 * branco, por isso o override é escopado ao hero. */
.hero-section .section-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    margin-right: 0;
    flex-shrink: 0;
}

/* ---- Section cards ---- */
.section-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-card h2 {
    color: var(--dpmg-green);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--dpmg-gold);
    display: inline-block;
}

.section-card h3 {
    color: var(--dpmg-green-light);
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ---- Section icon ---- */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-tile-size, 40px);
    height: var(--icon-tile-size, 40px);
    border-radius: var(--radius-md);
    background: var(--icon-tile-bg, rgba(26, 92, 58, 0.14));
    color: var(--dpmg-green);
    font-size: 1.15rem;
    margin-right: 0.6rem;
    vertical-align: middle;
}

/* ---- Step list ---- */
.step-list {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
    min-height: 2rem;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--dpmg-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ---- Script items ---- */
.script-item {
    background: var(--dpmg-gray);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--dpmg-gold);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.script-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.script-name {
    font-weight: 600;
    color: var(--dpmg-dark);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.script-desc {
    color: var(--dpmg-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* ---- Buttons ---- */
.btn-download {
    background: var(--dpmg-green);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--transition-base);
}

.btn-download:hover {
    background: var(--dpmg-green-light);
    color: white;
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

/* ---- Badges ---- */
.version-badge {
    background: var(--dpmg-gold);
    color: var(--dpmg-dark);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 1rem;
}

.badge-recomendado {
    background: var(--dpmg-green);
    color: white;
}

.badge-beta {
    background: #dc3545;
    color: white;
}

/* R10: tokens próprios de badge de categoria com contraste AA e >= 12px */
.badge-ferramenta,
.badge-guia {
    font-size: var(--badge-font-size);
    font-weight: var(--badge-font-weight);
    letter-spacing: 0.02em;
    padding: 0.3em 0.6em;
    border-radius: var(--radius-sm);
}

.badge-ferramenta {
    background-color: var(--badge-ferramenta-bg);
    color: var(--badge-ferramenta-text);
}

.badge-guia {
    background-color: var(--badge-guia-bg);
    color: var(--badge-guia-text);
}

.chrome-badge {
    background: #4285f4;
    color: white;
}

.tm-badge {
    background: #00485b;
    color: white;
}

/* ---- Alerts ---- */
.alert-info-custom {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: var(--dpmg-green);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.alert-warning-custom {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    color: #8d6e00;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.alert-sm {
    font-size: 0.95rem;
}

/* ---- Video wrapper ---- */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* ---- Fachada de YouTube (R12): thumbnail + play; iframe só carrega no clique ---- */
.yt-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    cursor: pointer;
    background-color: #0f3d24;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.yt-facade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 61, 36, 0.32);
    transition: background var(--transition-base);
}

.yt-facade:hover::before,
.yt-facade:focus-visible::before {
    background: rgba(15, 61, 36, 0.14);
}

.yt-facade-play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--dpmg-green);
    color: #fff;
    padding-left: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition-base), background var(--transition-base);
}

.yt-facade:hover .yt-facade-play,
.yt-facade:focus-visible .yt-facade-play {
    background: var(--dpmg-green-light);
    transform: scale(1.08);
}

.yt-facade:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

@media (prefers-reduced-motion: reduce) {
    .yt-facade::before,
    .yt-facade-play {
        transition: none;
    }
    .yt-facade:hover .yt-facade-play,
    .yt-facade:focus-visible .yt-facade-play {
        transform: none;
    }
}

/* ---- Sidebar index ---- */
.sidebar-index {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-index .nav-link {
    color: #555;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.sidebar-index .nav-link:hover {
    background: #e8f5e9;
    color: var(--dpmg-green);
}

.sidebar-index .nav-link:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

.sidebar-index .nav-link.active {
    background: var(--dpmg-green);
    color: white;
    font-weight: 500;
}

.sidebar-group {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dpmg-green);
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    padding: 0 0.75rem;
}

.sidebar-group:first-child {
    margin-top: 0;
}

/* ---- Back to top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--dpmg-green);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dpmg-green-light);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

/* ---- Mobile nav toggle ---- */
.mobile-nav-toggle {
    display: none;
    background: var(--dpmg-green);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin-bottom: 1rem;
    width: 100%;
}

.mobile-nav-collapse.show {
    display: block;
}

/* ---- Tables ---- */
.table-tutorial {
    background: var(--dpmg-gray);
}

.table-tutorial thead {
    background: var(--dpmg-green);
    color: white;
}

.table-tutorial th {
    font-weight: 600;
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
    background: var(--dpmg-gray);
    border-bottom: 1px solid rgba(26, 92, 58, 0.1);
    padding: 0.75rem 0;
}

.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-bar .breadcrumb-item a {
    color: var(--dpmg-green);
    text-decoration: none;
}

.breadcrumb-bar .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-bar .breadcrumb-item.active {
    color: var(--dpmg-dark);
}

/* ---- Back link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--dpmg-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: var(--dpmg-green-light);
    text-decoration: underline;
}

.back-link:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
    border-radius: var(--radius-sm);
}

/* ---- Extension screenshot (R9: moldura + zoom) ---- */
.extension-screenshot {
    display: block;
    max-width: min(100%, 700px);
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid #dee2e6;
    box-shadow: var(--shadow-sm);
    padding: 6px;
    background: #fff;
    margin-left: auto;
    margin-right: auto;
    cursor: zoom-in;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.extension-screenshot:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.extension-screenshot:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

/* ---- Lightbox (R9) ---- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(15, 61, 36, 0.82);
    opacity: 0;
    transition: opacity 180ms ease;
}

.lightbox-overlay.visible {
    opacity: 1;
}

.lightbox-img {
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dpmg-green-dark);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #fff;
}

.lightbox-close:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

@media (prefers-reduced-motion: reduce) {
    .extension-screenshot,
    .lightbox-overlay {
        transition: none;
    }
    .extension-screenshot:hover {
        transform: none;
    }
}

/* ---- Update date ---- */
.update-date {
    font-size: 0.8rem;
    color: var(--dpmg-muted);
}

/* ---- Footer institucional (R5) ---- */
.site-footer {
    background: var(--dpmg-green-dark);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3rem;
    font-size: 0.875rem;
}

.site-footer .footer-main {
    padding: 2.5rem 0 1.75rem;
}

.site-footer .footer-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.site-footer .footer-brand .brand-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.site-footer .footer-org {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 34ch;
}

.site-footer .footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dpmg-gold-light);
    margin-bottom: 0.75rem;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.site-footer .footer-links a:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
    border-radius: var(--radius-sm);
}

.site-footer .footer-contact a {
    color: #fff;
    text-decoration: underline;
}

.site-footer .footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.55;
}

.site-footer .footer-disclaimer strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Inline code ---- */
code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: #d63384;
}

/* ---- Estados de foco visíveis (R13) ----
 * Garante um outline visível ao navegar por teclado em qualquer elemento
 * interativo que ainda não tenha um foco específico definido acima.
 * Não depende só de cor: usa outline sólido com offset. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
    border-radius: var(--radius-sm);
}

/* R7: substitui o foco/realce azul default do Bootstrap nos formularios
 * (Planilha, Gerador DOCX) por realce verde institucional. O outline dourado
 * de :focus-visible acima continua garantindo foco de teclado visivel em
 * qualquer superficie, inclusive sobre o verde do hero/navbar. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--dpmg-green-light);
    box-shadow: 0 0 0 0.2rem rgba(45, 122, 82, 0.25);
}

.form-check-input:checked {
    background-color: var(--dpmg-green);
    border-color: var(--dpmg-green);
}

/* ---- Guarda contra scroll horizontal (R7) ---- */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    /* `overflow-x: hidden` aqui faria o <body> computar "hidden auto" e
       virar um scroll container próprio (que nunca rola — quem rola é o
       html), matando `position: sticky` de qualquer descendente (visto
       na US-1505, card "Como usar" do gerador). `clip` mantém o mesmo
       corte horizontal do R7 sem criar scroll container; o `hidden` na
       linha anterior é só fallback para navegadores sem suporte a clip. */
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

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

/* Tabelas dos guias nunca estouram: rolam dentro do próprio container */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ---- Mobile breakpoints ---- */
@media (max-width: 768px) {
    .sidebar-index {
        position: static;
        max-height: none;
        margin-bottom: 1.5rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-nav-collapse {
        display: none;
    }

    .mobile-nav-collapse.show {
        display: block;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .section-card {
        padding: 1.25rem;
    }
}

/* Stacked table pattern for mobile */
@media (max-width: 576px) {
    .table-tutorial thead,
    .table-compare thead {
        display: none;
    }

    .table-tutorial,
    .table-tutorial tbody,
    .table-tutorial tr,
    .table-tutorial td,
    .table-compare,
    .table-compare tbody,
    .table-compare tr,
    .table-compare td {
        display: block;
        width: 100% !important;
    }

    .table-tutorial tr,
    .table-compare tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .table-tutorial td,
    .table-compare td {
        padding: 0.75rem;
        border: none;
        border-bottom: 1px solid #eef0f2;
    }

    .table-tutorial td:last-child,
    .table-compare td:last-child {
        border-bottom: none;
    }

    .table-tutorial td::before,
    .table-compare td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 0.8rem;
        text-transform: uppercase;
        color: var(--dpmg-green);
        margin-bottom: 0.25rem;
    }
}
