/* ============================================
   ÓÐINNSAUGA Shared Stylesheet
   ============================================ */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CSS Custom Properties (Brand Colors)
   ============================================ */
:root {
    /* Core Palette */
    --void-black: #0a0c0e;
    --steel-dark: #1a1e24;
    --steel-mid: #2a3a4a;
    --steel-light: #5a6a7a;
    --steel-bright: #a8b8c8;
    --steel-white: #c0ccd8;
    --frost-white: #e8eef2;
    
    /* Accent Colors */
    --odin-cyan: #00e5ff;
    --ember: #ff6b35;
}

/* ============================================
   Typography
   ============================================ */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--void-black);
    color: var(--steel-white);
    line-height: 1.6;
}

h1, h2, h3, .display-text {
    font-family: 'Cinzel', serif;
}

/* ============================================
   Background Texture
   Subtle scanline + vignette effect
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, var(--void-black) 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(42, 58, 74, 0.03) 2px,
            rgba(42, 58, 74, 0.03) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Common Gradients
   ============================================ */

/* Steel text gradient - for headers/display text */
.text-gradient,
.steel-text-gradient {
    background: linear-gradient(180deg, var(--frost-white) 0%, var(--steel-bright) 50%, var(--steel-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Panel gradient - for cards/containers */
.panel-gradient {
    background: linear-gradient(135deg, rgba(42, 58, 74, 0.6) 0%, rgba(26, 30, 36, 0.8) 100%);
}

/* ============================================
   Header & Footer Bars (Animated Knotwork)
   ============================================ */
.header-bar,
.footer-bar {
    width: 100%;
    height: 80px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.header-bar video {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}

.footer-bar video {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   Document Header (for internal pages)
   ============================================ */
.header {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--steel-mid);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 1rem;
    background: center / contain no-repeat url("odineye.png");
    opacity: 0.4;
    z-index: 0;
}

.header > * {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(180deg, var(--frost-white) 0%, var(--steel-bright) 50%, var(--steel-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.header .doc-type {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--frost-white);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding-top: 1rem;
}

/* ============================================
   Page Header (for gallery, etc.)
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(180deg, var(--frost-white) 0%, var(--steel-bright) 50%, var(--steel-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-family: 'Inter', sans-serif;
    color: var(--steel-light);
    font-size: 1rem;
}

.page-header .back-link {
    margin-bottom: 1.5rem;
}

/* ============================================
   Section Styling (for documents)
   ============================================ */
section {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--steel-dark);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--frost-white);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--odin-cyan);
    display: inline-block;
}

section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.125rem;
    color: var(--steel-bright);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

section p {
    color: var(--steel-bright);
    margin-bottom: 1rem;
    max-width: 70ch;
}

/* ============================================
   Links & Buttons
   ============================================ */
.link,
.btn {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(42, 58, 74, 0.6) 0%, rgba(26, 30, 36, 0.8) 100%);
    border: 1px solid var(--steel-mid);
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: var(--steel-white);
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.link:hover,
.btn:hover {
    border-color: var(--odin-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

.link svg,
.btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Social Link Brand Colors */
.link.gallery:hover {
    border-color: var(--odin-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.link.youtube:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.link.discord:hover {
    border-color: #5865f2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
}

.link.instagram:hover {
    border-color: #d62976;
    box-shadow: 0 0 20px rgba(214, 41, 118, 0.2);
}

.link.glass:hover {
    border-color: #f5c518;
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.2);
}

.link.artstation:hover {
    border-color: #13aff0;
    box-shadow: 0 0 20px rgba(19, 175, 240, 0.2);
}

/* Back link (smaller variant) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, rgba(42, 58, 74, 0.5) 0%, rgba(26, 30, 36, 0.7) 100%);
    border: 1px solid var(--steel-mid);
    border-radius: 4px;
    color: var(--steel-bright);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.back-link:hover {
    border-color: var(--odin-cyan);
    color: var(--odin-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.back-link::before {
    content: '←';
    font-size: 1rem;
}

/* ============================================
   Cards & Panels
   ============================================ */
.card {
    background: var(--steel-dark);
    border-radius: 8px;
    padding: 1.5rem;
}

.card-accent {
    border-left: 4px solid var(--odin-cyan);
}

.card-warning {
    border-left: 4px solid var(--ember);
}

/* ============================================
   Brand Story Block
   ============================================ */
.brand-story {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--void-black) 100%);
    padding: 1.5rem;
    border: 1px solid var(--steel-mid);
    border-left: 4px solid var(--odin-cyan);
    border-radius: 4px;
}

.brand-story p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--steel-bright);
    margin-bottom: 1rem;
}

.brand-story p:last-child {
    margin-bottom: 0;
}

.etymology {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--steel-mid);
}

.etymology .term {
    font-family: 'Cinzel', serif;
    font-size: 1.125rem;
    color: var(--odin-cyan);
}

/* ============================================
   Info & Critical Callouts
   ============================================ */
.info {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--void-black) 100%);
    border: 1px solid var(--steel-mid);
    border-left: 4px solid var(--odin-cyan);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info p {
    color: var(--steel-white);
    margin-bottom: 0;
}

.critical {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(26, 30, 36, 0.8) 100%);
    border: 1px solid var(--ember);
    border-left: 4px solid var(--ember);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.critical-header {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--ember);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.critical-header::before {
    content: "⚠";
}

.critical p {
    color: var(--steel-white);
    margin-bottom: 0.5rem;
}

.critical p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Comparison Grid (Do/Don't cards)
   ============================================ */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.compare-card {
    background: var(--steel-dark);
    border-radius: 8px;
    padding: 1.5rem;
}

.compare-card.do {
    border-top: 3px solid var(--odin-cyan);
}

.compare-card.dont {
    border-top: 3px solid var(--ember);
}

.compare-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.compare-card.do h4 {
    color: var(--odin-cyan);
}

.compare-card.dont h4 {
    color: var(--ember);
}

.compare-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   Steps (numbered list)
   ============================================ */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
    color: var(--steel-bright);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--steel-dark);
    border: 1px solid var(--steel-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    color: var(--odin-cyan);
}

.steps li strong {
    color: var(--steel-white);
}

/* ============================================
   Checklist
   ============================================ */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--steel-bright);
}

.checklist li::before {
    content: "☐";
    position: absolute;
    left: 0;
    color: var(--steel-mid);
}

/* ============================================
   Keyword Tree
   ============================================ */
.keyword-tree {
    background: var(--steel-dark);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: monospace;
    margin: 1.5rem 0;
}

.keyword-tree .root {
    color: var(--odin-cyan);
    font-weight: 600;
}

.keyword-tree .branch {
    color: var(--steel-bright);
    margin-left: 1.5rem;
    display: block;
    margin-top: 0.5rem;
}

.keyword-tree .branch::before {
    content: "└── ";
    color: var(--steel-mid);
}

/* ============================================
   Code styling
   ============================================ */
code {
    background: var(--steel-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    color: var(--odin-cyan);
}

/* ============================================
   Gallery Grid
   ============================================ */
div.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--steel-dark);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.portrait {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.gallery-item.portrait .gallery-item-info {
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item.portrait img {
    flex: 1;
    height: auto;
    min-height: 0;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(42, 58, 74, 0.6) 0%, rgba(26, 30, 36, 0.8) 100%);
    border-top: 1px solid var(--steel-mid);
}

.gallery-item-title {
    font-size: 0.9rem;
    color: var(--steel-bright);
    letter-spacing: 0.05em;
}

/* Featured gallery items (first 5) */
.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.gallery-item.featured img {
    flex: 1;
    min-height: 0;
    object-fit: cover;
}

.gallery-item.featured .gallery-item-info {
    flex-shrink: 0;
    padding: 1.25rem;
}

.gallery-item.featured .gallery-item-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--frost-white);
    letter-spacing: 0.08em;
}

/* Featured + portrait: taller still */
.gallery-item.featured.portrait {
    grid-row: span 3;
}

/* ============================================
   Lightbox (shared between gallery & brand)
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 14, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--steel-mid);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--steel-light);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--odin-cyan);
}

.lightbox-title {
    text-align: center;
    margin-top: 1rem;
    color: var(--steel-bright);
    font-size: 1.33rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(42, 58, 74, 0.6);
    border: 1px solid var(--steel-mid);
    color: var(--steel-bright);
    font-size: 1.5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lightbox-nav:hover {
    border-color: var(--odin-cyan);
    color: var(--odin-cyan);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--steel-dark);
    margin-top: 2rem;
}

.footer p {
    color: var(--steel-light);
    font-size: 0.875rem;
    max-width: none;
    margin-bottom: 0.5rem;
}

.footer-url {
    color: var(--odin-cyan);
    text-decoration: none;
}

.footer-url:hover {
    text-decoration: underline;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ============================================
   Index/Landing Page
   ============================================ */
.landing-body {
    font-family: 'Cinzel', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 610px;
    padding: 2rem;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.title-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1rem;
    z-index: 1;
}

.title-container img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.eye-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 840px;
    height: 840px;
    z-index: 0;
    pointer-events: none;
}

.eye-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eye-container img.logo {
    opacity: 0.5;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

.landing-tagline {
    font-size: 2.9rem;
    font-weight: bold;
    color: var(--steel-bright);
    letter-spacing: 0.2em;
    margin: 1rem 0 0.75rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-description {
    font-size: 1.425rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.landing-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.brand-story-toggle {
    margin-top: 2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.brand-story-toggle summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(42, 58, 74, 0.4) 0%, rgba(26, 30, 36, 0.6) 100%);
    border: 1px solid var(--steel-mid);
    border-radius: 4px;
    color: var(--steel-bright);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    list-style: none;
}

.brand-story-toggle summary::-webkit-details-marker {
    display: none;
}

.brand-story-toggle summary::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.brand-story-toggle[open] summary::after {
    transform: rotate(180deg);
}

.brand-story-toggle summary:hover {
    border-color: var(--odin-cyan);
    color: var(--steel-bright);
}

.brand-story-toggle[open] summary {
    border-color: var(--odin-cyan);
    color: var(--steel-bright);
    border-radius: 4px 4px 0 0;
}

.brand-story-toggle .brand-story {
    border-top: none;
    border-radius: 0 0 4px 4px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-story .subtext p {
    font-size: 0.875rem;
    color: var(--steel-light);
    margin-bottom: 0.25rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-bar,
    .footer-bar {
        display: none;
    }
    
    .lightbox-nav {
        display: none;
    }

    .header h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .header .doc-type {
        font-size: 1.25rem;
    }

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

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

    /* Landing page mobile */
    .title-container {
        max-width: 90%;
    }

    .landing-tagline {
        font-size: 2rem;
        margin: 0.5rem 0 0.5rem 0;
    }

    .landing-description {
        font-size: 1.1rem;
        text-align: center;
    }

    .landing-container {
        padding: 1.5rem;
    }

    .landing-links {
        max-width: 100%;
    }

    .landing-links .link {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .brand-story-toggle {
        width: 100%;
    }

    .brand-story-toggle summary {
        font-size: 0.95rem;
    }

    .eye-container {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item.portrait img {
        min-height: 400px;
    }

    /* Featured items revert to normal size on mobile */
    .gallery-item.featured {
        grid-column: span 1;
        grid-row: span 1;
        display: block;
    }

    .gallery-item.featured img {
        height: 220px;
        flex: none;
    }

    .gallery-item.featured.portrait {
        grid-row: span 2;
        display: flex;
    }

    .gallery-item.featured.portrait img {
        min-height: 400px;
        height: auto;
        flex: 1;
    }

    .gallery-item.featured .gallery-item-title {
        font-size: 0.9rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    /* Reset background to white, text to black */
    body {
        background: white;
        color: #1a1e24;
        font-size: 11pt;
        line-height: 1.5;
    }
    
    /* Remove decorative background */
    body::before {
        display: none;
    }
    
    /* Hide video bars */
    .header-bar,
    .footer-bar {
        display: none;
    }

    /* Remove background images in headers */
    .header::before {
        display: none;
    }

    /* Reset text colors for readability */
    h1, h2, h3, h4 {
        color: #0a0c0e;
        -webkit-text-fill-color: #0a0c0e;
        background: none;
    }

    h2 {
        border-bottom-color: #2a3a4a;
    }

    p, li {
        color: #1a1e24;
    }

    /* Cards and info boxes - light backgrounds with borders */
    .info,
    .critical,
    .card,
    .compare-card,
    .keyword-tree,
    .brand-story {
        background: #f5f5f5;
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .critical {
        border-left: 4px solid #cc5522;
    }

    .info,
    .brand-story {
        border-left: 4px solid #2a3a4a;
    }

    .compare-card.do {
        border-top: 3px solid #2a3a4a;
    }

    .compare-card.dont {
        border-top: 3px solid #cc5522;
    }

    /* Code styling for print */
    code {
        background: #e8e8e8;
        color: #1a1e24;
        border: 1px solid #ccc;
    }

    /* Step numbers */
    .steps li::before {
        background: #e8e8e8;
        border: 1px solid #999;
        color: #1a1e24;
    }

    /* Critical header */
    .critical-header {
        color: #cc5522;
    }

    /* Compare card headers */
    .compare-card.do h4 {
        color: #1a1e24;
    }

    .compare-card.dont h4 {
        color: #cc5522;
    }

    /* Links - show URL */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Don't show URL for internal/anchor links */
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    /* Footer link - don't duplicate URL since it's visible */
    .footer-url::after {
        content: "";
    }

    .footer-url {
        color: #1a1e24;
    }

    /* Page breaks */
    section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ccc;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    .critical,
    .info,
    .compare-grid {
        page-break-inside: avoid;
    }

    /* Footer styling */
    .footer {
        border-top: 1px solid #ccc;
    }

    .footer p {
        color: #666;
    }

    /* Keyword tree */
    .keyword-tree .root {
        color: #1a1e24;
        font-weight: 700;
    }

    .keyword-tree .branch {
        color: #333;
    }

    .keyword-tree .branch::before {
        color: #999;
    }

    /* Checklist */
    .checklist li::before {
        color: #666;
    }
}