/* Styles for inner pages. Load after core.css. */

.page {
    padding: 140px 2rem 80px;
    background: var(--white);
    min-height: 100vh;
}

.page-container {
    max-width: 820px;
    margin: 0 auto;
}

.page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 2.5rem 0 0.75rem;
}

.page h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1.5rem 0 0.5rem;
}

.page p,
.page li {
    margin-bottom: 0.9rem;
    color: var(--text-primary);
}

.page ul,
.page ol {
    margin: 0 0 1rem 1.5rem;
}

.page li {
    margin-bottom: 0.4rem;
}

.page a {
    color: var(--primary-blue);
}

.page .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.page .updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.toc {
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.toc ol {
    margin-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.35rem;
}

.notice {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.card {
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.contact-line {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.contact-line strong {
    display: inline-block;
    min-width: 5rem;
    color: var(--primary-dark);
}

.visual-hide {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.placeholder {
    background: #fef3c7;
    padding: 0 0.3rem;
    border-radius: 4px;
    font-weight: 600;
}

.page-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .page {
        padding: 100px 1.25rem 60px;
    }

    .page h1 {
        font-size: 2rem;
    }

    .toc {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 96px 1rem 48px;
    }

    .page h1 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .page h2 {
        margin-top: 2rem;
    }

    .page p,
    .page li {
        line-height: 1.75;
    }

    .page ul,
    .page ol {
        margin-left: 1.25rem;
    }

    .toc,
    .card {
        padding: 1rem;
    }

    .mobile-menu-header {
        gap: 0.5rem;
    }

    .mobile-menu-logo img {
        width: min(170px, 52vw);
    }
}

/* ==========================================================
   Motion and transitions for inner pages (appended)
   ========================================================== */

.page-container {
    animation: pageRise 0.5s var(--ease-out) backwards;
}

@keyframes pageRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.page a {
    transition: color 0.2s ease;
}

.page a:hover {
    color: #1d4ed8;
}

.page-back {
    transition: color 0.2s ease, transform 0.3s var(--ease-out);
}

.page-back:hover {
    color: var(--primary-blue);
    transform: translateX(-3px);
}

.toc,
.card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.toc:hover,
.card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
    .page-container {
        animation: none;
    }

    .page a,
    .page-back,
    .toc,
    .card {
        transition: none;
    }
}