/**
 * Sudoku Content Pages CSS
 * Dedicated stylesheet for try-sudoku.com content pages (about, privacy, terms, guides)
 * Uses CSS variables from dark-blue/dragon/dark/midnight themes
 *
 * Replaces loading the full solitaire CSS stack (index.css) on content pages.
 */

/* Import color tokens for theme variables */
@import './tokens/colors.css';
@import './tokens/typography.css';
@import './tokens/spacing.css';

/* ============================================================================
   MINIMAL RESET (content-page safe — preserves list bullets and link styles)
   ============================================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
.content-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0d1b2a;
    background-image:
        radial-gradient(ellipse at top, rgba(13, 27, 42, 0.95) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(27, 38, 59, 0.95) 0%, transparent 50%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #e0e1dd;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   SITE HEADER (sudoku-site-header — for public pages)
   ============================================================================ */

.sudoku-site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-bottom: 1px solid #1e40af;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.site-logo {
    font-size: 1.5rem;
    color: var(--color-highlight, #fbbf24);
}

.site-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-light, #ffffff);
    font-family: 'Poppins', sans-serif;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-btn-primary-start, #415a77);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.site-nav .nav-btn:hover {
    background: var(--color-btn-primary-hover-start, #778da9);
    transform: translateY(-1px);
}

.site-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    color: var(--color-text-light, #ffffff);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.site-nav .nav-link:hover {
    background: var(--color-btn-primary-start, #415a77);
}

.site-nav .solitaire-link .solitaire-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
}

/* ============================================================================
   CONTENT PAGE HEADER (content-page-header — for guide pages)
   ============================================================================ */

.content-page-header {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1e40af;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-brand:hover {
    opacity: 0.9;
}

.header-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.content-page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.content-page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-page-header .breadcrumb a:hover {
    color: white;
}

.content-page-header .breadcrumb span {
    color: white;
}

/* ============================================================================
   MAIN CONTENT CONTAINER
   ============================================================================ */

.content-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    line-height: 1.7;
    color: var(--color-text-primary, #e0e1dd);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

.content-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text-heading, #778da9);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-border-accent, #415a77);
    line-height: 1.2;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.content-page h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-heading, #778da9);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 4px solid var(--color-border-accent, #415a77);
    line-height: 1.3;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.content-page h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-primary, #e0e1dd);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.content-page h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-heading-secondary, #a8b4c4);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.content-page h5,
.content-page h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-heading-secondary, #a8b4c4);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.content-page p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--color-text-primary, #e0e1dd);
}

/* Lead paragraph */
.content-page .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-heading-secondary, #a8b4c4);
    margin-bottom: 2rem;
}

/* Strong text */
.content-page strong {
    color: var(--color-text-primary, #e0e1dd);
    font-weight: 600;
}

/* ============================================================================
   LISTS
   ============================================================================ */

.content-page ul {
    list-style: disc;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--color-text-primary, #e0e1dd);
}

.content-page ol {
    list-style: decimal;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--color-text-primary, #e0e1dd);
}

.content-page li {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary, #e0e1dd);
}

.content-page li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.content-page ul ul,
.content-page ol ol,
.content-page ul ol,
.content-page ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ============================================================================
   LINKS
   ============================================================================ */

.content-page a {
    color: var(--color-stats-highlight, #778da9);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.content-page a:hover {
    color: var(--color-text-heading, #778da9);
    text-decoration-color: currentColor;
}

.content-page a:focus {
    outline: 2px solid var(--color-highlight, #fbbf24);
    outline-offset: 2px;
}

/* ============================================================================
   BREADCRUMB NAVIGATION (inside content-page)
   ============================================================================ */

.content-page .breadcrumb {
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-accent, #415a77);
}

.content-page .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.content-page .breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary, #a0aec0);
    margin-bottom: 0;
}

.content-page .breadcrumb li:not(:last-child)::after {
    content: "\203A";
    margin-left: 0.5rem;
    color: var(--color-text-secondary, #a0aec0);
    font-weight: bold;
}

.content-page .breadcrumb a {
    color: var(--color-stats-highlight, #778da9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-page .breadcrumb a:hover {
    color: var(--color-text-light, #ffffff);
    text-decoration: underline;
}

.content-page .breadcrumb span {
    color: var(--color-text-primary, #e0e1dd);
}

.content-page .breadcrumb li[aria-current="page"] {
    color: var(--color-text-primary, #e0e1dd);
    font-weight: 500;
}

@media (max-width: 768px) {
    .content-page .breadcrumb ol {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   BACK LINK
   ============================================================================ */

.content-page .back-link,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-stats-highlight, #778da9);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border-accent, #415a77);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.content-page .back-link:hover,
.back-link:hover {
    background: var(--color-btn-primary-start, #415a77);
    color: var(--color-text-light, #ffffff);
    border-color: var(--color-stats-highlight, #778da9);
}

/* ============================================================================
   HIGHLIGHT BOXES & CALLOUTS
   ============================================================================ */

.content-page .info-box {
    background: rgba(96, 165, 250, 0.1);
    border-left: 4px solid #60a5fa;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.content-page .success-box {
    background: rgba(74, 222, 128, 0.1);
    border-left: 4px solid #4ade80;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.content-page .warning-box {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.content-page .tip-box {
    background: rgba(45, 212, 191, 0.1);
    border-left: 4px solid #2dd4bf;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.content-page .strategy-box {
    background: rgba(168, 85, 247, 0.1);
    border-left: 4px solid #a855f7;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.content-page .highlight-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-border-accent, #415a77);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/* Box headings */
.content-page .info-box h3,
.content-page .success-box h3,
.content-page .warning-box h3,
.content-page .tip-box h3,
.content-page .strategy-box h3,
.content-page .highlight-box h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--color-text-heading, #778da9);
}

/* ============================================================================
   TABLE OF CONTENTS
   ============================================================================ */

.content-page .toc {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-accent, #415a77);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.content-page .toc h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--color-text-heading, #778da9);
}

.content-page .toc ul {
    list-style: none;
    padding-left: 0.5rem;
}

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

.content-page .toc a {
    color: var(--color-stats-highlight, #778da9);
    text-decoration: none;
}

.content-page .toc a:hover {
    color: var(--color-text-heading, #778da9);
    text-decoration: underline;
}

/* ============================================================================
   TABLES
   ============================================================================ */

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-accent, #415a77);
    border-radius: 8px;
    overflow: hidden;
}

.content-page thead {
    background: rgba(255, 255, 255, 0.08);
}

.content-page th {
    padding: 1rem 1.25rem;
    text-align: left;
    color: var(--color-text-heading, #778da9);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid var(--color-border-accent, #415a77);
}

.content-page td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    color: var(--color-text-primary, #e0e1dd);
}

.content-page tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.content-page tr:last-child td {
    border-bottom: none;
}

.content-page .table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

/* ============================================================================
   IMAGES & MEDIA
   ============================================================================ */

.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.content-page .hero-image,
.content-page .featured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.content-page .guide-image,
.content-page .tutorial-image {
    display: block;
    margin: 2rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-page figure {
    margin: 2rem 0;
}

.content-page figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted, rgba(224, 225, 221, 0.7));
    margin-top: 0.75rem;
    font-style: italic;
}

/* ============================================================================
   BUTTONS & CTAs
   ============================================================================ */

.content-page .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-btn-primary-start, #415a77) 0%, var(--color-btn-primary-end, #1b263b) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content-page .cta-button:hover {
    background: linear-gradient(135deg, var(--color-btn-primary-hover-start, #778da9) 0%, var(--color-btn-primary-hover-end, #415a77) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* ============================================================================
   FEATURE GRID (about page)
   ============================================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-accent, #415a77);
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--color-stats-highlight, #778da9);
}

.feature-card i {
    color: var(--color-stats-highlight, #778da9);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-card h3 {
    color: var(--color-text-heading, #778da9);
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--color-text-primary, #e0e1dd);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================================================
   LAST UPDATED BOX
   ============================================================================ */

.last-updated {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-border-accent, #415a77);
    margin: 1.5rem 0;
}

.last-updated p {
    margin: 0;
    color: var(--color-text-primary, #e0e1dd);
    font-size: 0.95rem;
}

/* ============================================================================
   INTRO SECTION
   ============================================================================ */

.content-page .intro {
    background: rgba(96, 165, 250, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-border-accent, #415a77);
    margin: 2rem 0;
    font-size: 1.05rem;
}

.content-page .intro p {
    margin-bottom: 0;
}

/* ============================================================================
   FOOTER & METADATA
   ============================================================================ */

.content-page footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-accent, #415a77);
    color: var(--color-text-muted, rgba(224, 225, 221, 0.7));
    font-size: 0.95rem;
}

.content-page footer .last-updated,
.content-page .last-updated {
    color: var(--color-text-muted, rgba(224, 225, 221, 0.7));
    font-size: 0.9rem;
    font-style: italic;
    background: none;
    padding: 0;
    border: none;
    margin: 1rem 0 0;
}

/* Footer links (public pages) */
.content-page footer .footer-links,
footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

footer .footer-links a,
.content-page footer .footer-links a {
    color: var(--color-stats-highlight, #778da9);
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-links a:hover,
.content-page footer .footer-links a:hover {
    color: var(--color-text-light, #ffffff);
}

footer p {
    text-align: center;
    color: var(--color-text-muted, rgba(224, 225, 221, 0.7));
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ============================================================================
   FAQ SECTIONS
   ============================================================================ */

.content-page .faq-section {
    margin-top: 3rem;
}

.content-page .faq-item {
    margin-bottom: 2rem;
}

.content-page .faq-question {
    color: var(--color-text-heading, #778da9);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-page .faq-answer {
    color: var(--color-text-primary, #e0e1dd);
    line-height: 1.8;
    margin-left: 1rem;
}

/* ============================================================================
   EMBED SECTION
   ============================================================================ */

.content-page .embed-section {
    background: rgba(96, 165, 250, 0.08);
    border-left: 4px solid var(--color-border-accent, #415a77);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
}

.content-page .embed-section h2 {
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    background: none;
}

.content-page .embed-section .primary-button {
    display: inline-block;
    background: var(--color-btn-primary-start, #415a77);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.content-page .embed-section .primary-button:hover {
    background: var(--color-btn-primary-hover-start, #778da9);
    transform: translateY(-2px);
}

/* ============================================================================
   CODE & PREFORMATTED TEXT
   ============================================================================ */

.content-page code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-highlight, #fbbf24);
}

.content-page pre {
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-text-primary, #e0e1dd);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-page pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-btn-primary-start, #415a77);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    background: var(--color-btn-primary-hover-start, #778da9);
    transform: translateY(-3px);
}

/* ============================================================================
   HASH ANCHOR OFFSET
   ============================================================================ */

.content-page h2[id],
.content-page h3[id],
.content-page h4[id],
.content-page section[id] {
    scroll-margin-top: 4rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .content-page {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }

    .content-page h1 {
        font-size: 1.75rem;
    }

    .content-page h2 {
        font-size: 1.4rem;
    }

    .content-page h3 {
        font-size: 1.15rem;
    }

    .content-page p,
    .content-page li {
        font-size: 0.95rem;
    }

    .content-page .cta-button {
        display: block;
        text-align: center;
    }

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

    .sudoku-site-header {
        padding: 0.5rem 0.75rem;
    }

    .site-name {
        font-size: 1rem;
    }

    .site-nav .desktop-only {
        display: none;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .content-page {
        padding: 1.25rem 0.75rem;
        margin: 0.5rem;
    }

    .content-page h1 {
        font-size: 1.5rem;
    }

    .content-page h2 {
        font-size: 1.25rem;
    }

    .content-page table {
        font-size: 0.85rem;
    }

    .content-page th,
    .content-page td {
        padding: 0.6rem 0.5rem;
    }

    footer .footer-links {
        gap: 1rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    body,
    .content-page-body {
        background: white;
        color: #333;
    }

    .content-page {
        max-width: 100%;
        padding: 0;
        color: #333;
    }

    .content-page h1,
    .content-page h2,
    .content-page h3 {
        color: #333;
    }

    .content-page p,
    .content-page li {
        color: #333;
    }

    .content-page a {
        color: #333;
        text-decoration: underline;
    }

    .content-page .cta-button,
    .sudoku-site-header,
    .content-page-header,
    .back-to-top,
    .back-link {
        display: none;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.content-page *:focus-visible {
    outline: 2px solid var(--color-highlight, #fbbf24);
    outline-offset: 2px;
}

.content-page .skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .content-page * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
