/*
Theme Name: Heckle & Code
Theme URI: https://example.com/heckle-and-code
Author: Antigravity
Author URI: https://example.com
Description: A high-performance, Modern Retro developer theme. "Midnight Synth" palette. Full Block Support.
Version: 1.2.0
Text Domain: heckle-and-code
tags: blog, retro, developer, dark-mode, custom-colors
*/

:root {
    /* Palette: Modern Retro (Midnight Synth) */
    --color-bg: #0F1115;
    --color-bg-dim: #161B22;   /* Card Background */
    --color-bg-light: #21262D; /* Inputs/Hovers */
    --color-bg-code: #0D1117;

    --color-text: #E6EDF3;
    --color-text-muted: #8B949E;
    --color-text-dim: #484F58;

    /* Accents */
    --color-pink: #F778BA;
    --color-blue: #58A6FF;
    --color-green: #3FB950;
    --color-amber: #D29922;
    --color-purple: #BC8CFF;

    --color-accent-primary: var(--color-blue);
    --color-accent-secondary: var(--color-pink);

    --color-border: #30363D;
    --color-border-active: #8B949E;

    /* Typography */
    /* Headers: Share Tech (Unified Digital Look) */
    --font-header: "Share Tech", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Share Tech", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-code: "JetBrains Mono", "Fira Code", Consolas, monospace;
    --font-dot-matrix: "Doto", sans-serif;

    --size-h1: 3.5rem;
    --size-h2: 2.5rem;
    --size-h3: 2rem;
    --size-h4: 1.5rem;
    --size-lead: 1.25rem;
    --size-body: 1.125rem; /* 18px */

    /* Metrics */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    --container-width: 840px; /* Text optimal width */
    --container-wide: 1200px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-pill: 50px;

    --border-thin: 1px solid var(--color-border);

    --shadow-soft: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 15px rgba(88, 166, 255, 0.1);
}

/* Light Mode (Retro Office) */
.light-mode {
    /* Palette: Paper White / High Contrast */
    --color-bg: #FAFAFA;       /* Off-White Paper */
    --color-bg-dim: #FFFFFF;   /* Pure White Cards */
    --color-bg-light: #F0F0F0; /* Light Grey Inputs */
    --color-bg-code: #F6F8FA;  /* GitHub Light Code Bg */

    --color-text: #1F2328;     /* Jet Black/Grey */
    --color-text-muted: #656D76;
    --color-text-dim: #888888;

    /* Darker Accents for Light Backgrounds */
    --color-blue: #0969DA;     /* Standard Link Blue */
    --color-pink: #A01D60;     /* Deep Magenta */
    --color-green: #1A7F37;    /* Forest Green */
    --color-amber: #9A6700;    /* Dark Amber */
    --color-purple: #8250DF;

    --color-border: #D0D7DE;
    --color-border-active: #0969DA;

    --shadow-soft: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-glow: none; /* No neon glow in day mode */
}

/* Light Mode Specific Overrides */
/* Light Mode Specific Overrides */
body.light-mode {
    /* Inverted Grid: Dark lines on light bg */
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
}

.light-mode .site-header {
    background: rgba(250, 250, 250, 0.9);
    border-bottom-color: var(--color-border);
}

.light-mode .card,
.light-mode .site-main {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-color: var(--color-border);
}

body.light-mode:not(.home) .site-main {
    background-color: rgba(255, 255, 255, 0.6); /* More transparent (0.6) */
    color: var(--color-text);
}

/* Fix Code Blocks in Light Mode */
.light-mode pre,
.light-mode code {
    background: var(--color-bg-code);
    color: var(--color-text);
    border-color: var(--color-border);
}

/* Darker shadows for 3D elements */
.light-mode .wp-block-button__link:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Light Mode: Hero "Blueprint" Style */
.light-mode .hero-section::after {
    display: none;
}

.light-mode .hero-overlay {
    /* Adjusted opacity to 0.6 for better link visibility */
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.light-mode .hero-content h1,
.light-mode .hero-content .lead,
.light-mode .hero-title,
.light-mode .hero-subtitle {
    color: #1F2328 !important; /* Force Dark Ink */
    text-shadow: none !important;
}

/* Fix Log Tags in Light Mode */
.light-mode .system-log-entry .entry-tags a {
    color: var(--color-blue) !important;
    text-shadow: none !important;
    background: transparent !important;
}

/* Light Mode: Universal "Radioactive Ink" Style */
/* Applies to Blockquotes, Logs, Pullquotes, Code, and Reviews */
.light-mode blockquote,
.light-mode .review-blockquote,
.light-mode .wp-block-pullquote,
.light-mode .system-log-entry,
.light-mode pre,
.light-mode code,
.light-mode .wp-block-code {
    background-color: #F8F9FA; /* Bright Paper White */
    border-color: #D1D5DB;     /* Grey Border */
    color: #1F2328 !important; /* Force Ink Black Text */
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.4) !important; /* Green Glow */
    box-shadow: none;          /* Flat print look */
    background-image: none;    /* Remove scanlines/gradients */

    /* Unified CRT Font for consistency with Dark Mode */
    font-family: "VT323", "Courier New", Courier, monospace !important;
}

/* Specific Override: Entry Summary should use CRT Font (WT323) */
.light-mode .system-log-entry .entry-summary,
.light-mode .system-log-entry .entry-summary p {
    font-family: "VT323", "Courier New", monospace !important;
    color: #1F2328 !important; /* Ink Black */
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.4) !important; /* Green Glow */
}

/* Remove Scanlines pseudo-element */
.light-mode .system-log-entry::after {
    display: none;
}

/* Fix Log Meta and Inner Text */
.light-mode .system-log-meta,
.light-mode .system-log-entry p {
    color: #1F2328 !important; /* Deep Ink Black */
    border-color: #ccc;
    /* MATCH BLOCKQUOTES: Keep the green glow for a 'Radioactive Ink' look */
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.4) !important;
}

/* TITLES: Radioactive Ink Style (CRT Font + Black Text + Green Glow) */
.light-mode .system-log-entry h3 a,
.light-mode .system-log-entry .entry-title a {
    color: #1F2328 !important; /* Black Ink */
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.4) !important; /* Green Glow */
    font-family: "VT323", "Courier New", monospace !important; /* CRT Font */
    text-decoration: none !important; /* Clean look like Dark Mode */
    border: none;
    background: transparent !important;
}

.light-mode .system-log-entry h3 a:hover,
.light-mode .system-log-entry .entry-title a:hover {
     text-shadow: 0 0 8px rgba(40, 241, 8, 0.6) !important;
     text-decoration: underline !important;
}

/* Fix Image Tint in Light Mode */
.light-mode .system-log-thumbnail img {
    filter: grayscale(100%) contrast(1.2); /* B&W Print look */
}

/* Restore Color for specific Single Post Featured Image */
.light-mode .single-post-featured img,
.light-mode .system-log-thumbnail.single-post-featured img {
    filter: none !important;
    opacity: 1;
}

.light-mode blockquote p::after,
.light-mode .basic-banner::after,
.light-mode .system-log-entry .entry-summary p::after,
.light-mode .system-log-entry .entry-content p::after {
    color: #1F2328 !important; /* Blink cursor becomes black ink */
    text-shadow: none !important;
}

/* Fix Green "Read More" and blinking cursors in logs */
.light-mode .system-log-entry .read-more {
    color: var(--color-blue);
    border-color: transparent;
}

.light-mode .system-log-entry .read-more:hover {
    background: rgba(0,0,0,0.05);
    color: var(--color-blue);
    border-color: var(--color-border);
}

.light-mode blockquote::before {
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/*	1. Reset & Base
/* -------------------------------------------------------------------------- */

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--size-body);
    line-height: 1.75;
    margin: 0;

    /* Grid Texture */
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    background-position: center top;
}

/* -------------------------------------------------------------------------- */
/*	2. Typography
/* -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--size-h1); margin-top: 0; }
h2 { font-size: var(--size-h2); color: var(--color-text); }
h3 { font-size: var(--size-h3); color: var(--color-accent-primary); }
h4 { font-size: var(--size-h4); font-family: var(--font-body); }
h5, h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }

p { margin-bottom: var(--spacing-md); }

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s ease;
}

a:hover {
    color: var(--color-accent-secondary);
    border-bottom-color: var(--color-accent-secondary);
}

strong { color: var(--color-text); font-weight: 700; }
em { color: var(--color-text-muted); font-style: italic; }

/* -------------------------------------------------------------------------- */
/*	3. Layout Utilities & Containers
/* -------------------------------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 95%;
}

/* Main Content Area */
.site-main {
    padding: var(--spacing-lg) 0;
}

/* Translucent background for subpages (improved readability) */
body:not(.home) .site-main {
    background-color: rgba(0, 0, 0, 0.5); /* 50% translucent black */
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.entry-content > * {
    margin-left: auto;
    margin-right: auto;
}

/* Alignment Classes */
.alignwide {
    max-width: var(--container-wide);
    width: 100%;
}

.alignfull {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* -------------------------------------------------------------------------- */
/*	4. Block Elements (The User Request)
/* -------------------------------------------------------------------------- */

/* Blockquotes (CRT Monitor Style) */
blockquote {
    background-color: #000c00; /* Deepest black-green */
    color: #28F108; /* Phosphor Green */
    font-family: "VT323", "Courier New", monospace; /* Authentic Terminal Font */
    font-size: 1.4rem; /* Pixel fonts need to be larger */
    border: 2px solid #1a5c0d;
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 6px;
    position: relative;
    box-shadow:
        0 0 15px rgba(40, 241, 8, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.7); /* Stronger glow */
    overflow: hidden;
    line-height: 1.4;
}

blockquote::before {
    content: ">> USER_QUOTE_LOG:";
    display: block;
    font-size: 0.75rem;
    color: #1a5c0d;
    border-bottom: 1px dashed #1a5c0d;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

blockquote cite {
    display: block;
    font-size: 1rem;
    font-family: "VT323", monospace;
    font-style: normal;
    font-weight: 400;
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    color: #1c8a0e; /* Dimmer green */
    text-transform: uppercase;
    text-shadow: none;
    letter-spacing: 1px;
}

blockquote cite::before {
    content: "-- ";
}

/* Flashing cursor on blockquote paragraphs (but not cite) */
blockquote p::after {
    content: " _";
    color: #28F108;
    font-family: "VT323", "Courier New", monospace;
    animation: blink-cursor 1s step-end infinite;
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.7);
    display: inline;
}

blockquote a {
    color: var(--color-accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s ease;
    font-size: .75rem !important;
    font-style: normal;
    font-family: var(--font-code);
}

/* Flashing cursor on basic-banner blockquote */
.basic-banner::after {
    content: " _";
    color: #28F108;
    font-family: "VT323", "Courier New", monospace;
    animation: blink-cursor 1s step-end infinite;
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.7);
    display: inline;
}

/* Pullquotes (also Green CRT but larger) */
.wp-block-pullquote {
    text-align: center;
    border-top: 2px solid #1a5c0d;
    border-bottom: 2px solid #1a5c0d;
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-lg) 0;
    background: radial-gradient(circle, rgba(0,18,0,0.8) 0%, rgba(0,0,0,0) 70%);
}

.wp-block-pullquote blockquote {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 2rem;
    color: #28F108;
    text-shadow: 0 0 5px rgba(40, 241, 8, 0.8);
    padding: 0;
    margin: 0;
}

.wp-block-pullquote blockquote::before {
    content: none;
}

/* Lists */
/* Lists */
ul, ol {
    margin: 0 0 var(--spacing-md) 0; /* Reset margin */
    padding-left: 2rem; /* Indent the whole list */
    color: var(--color-text-muted);
}

li {
    margin-bottom: 0.5rem;
    position: relative; /* Establish context for bullet */
    padding-left: 2.5rem; /* Space for the bullet */
}

/* Custom bullet styles */
ul { list-style: none; }
ul li::before {
    content: ">_";
    color: var(--color-green);
    position: absolute;
    left: 0; /* Pin to left of LI padding */
    top: 0;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(63, 185, 80, 0.6);
}

ol li::marker {
    color: var(--color-accent-secondary);
    font-family: var(--font-code);
    font-weight: bold;
}

/* Code Blocks & Pre */
pre {
    background: var(--color-bg-code);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-family: var(--font-code);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

code {
    font-family: var(--font-code);
    background: rgba(110, 118, 129, 0.4);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    color: var(--color-text);
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Prism.js Syntax Highlighting Customization */
pre[class*="language-"] {
    background: var(--color-bg-code) !important;
    border: 1px solid var(--color-border) !important;
}

code[class*="language-"] {
    font-family: var(--font-code) !important;
    color: var(--color-text) !important;
}

/* Prism token colors matching retro theme */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: var(--color-text-dim) !important;
    font-style: italic;
}

.token.punctuation {
    color: var(--color-text-muted) !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: var(--color-pink) !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: var(--color-green) !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: var(--color-blue) !important;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: var(--color-purple) !important;
}

.token.function,
.token.class-name {
    color: var(--color-amber) !important;
}

.token.regex,
.token.important,
.token.variable {
    color: var(--color-blue) !important;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

th, td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

th {
    font-family: var(--font-code);
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-border);
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Images & Captions */
figure {
    margin: 0 0 var(--spacing-md) 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-family: var(--font-body);
}

/* Separators (CRT Scanline Strip) */
hr, .wp-block-separator {
    border: none;
    height: 8px; /* Thick enough to show 2 scanlines */
    width: 100%;
    margin: var(--spacing-lg) 0;

    /* CRT Amber Background */
    background-color: #000000;
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.5); /* Amber Glow */
    border-radius: 2px;

    /* Scanline Overlay via Gradient */
    background-image: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.4) 50%
    );
    background-size: 100% 4px; /* 4px scanlines */
    opacity: 0.9;
}

.wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
    font-size: 2rem;
    line-height: 1;
    color: #FFBF00; /* Amber */
    font-family: var(--font-code);
    letter-spacing: 0.5rem;
    opacity: 1;
    box-shadow: none;
    text-shadow: 0 0 5px rgba(255, 191, 0, 0.8);
}
.wp-block-separator.is-style-dots::before { content: "···"; }

/* Buttons (wp-block-button) */
.wp-block-button__link {
    background-color: var(--color-accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.3);
    color: #fff;
}

.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid var(--color-accent-primary);
    color: var(--color-accent-primary);
}

/* -------------------------------------------------------------------------- */
/*	5. Forms & Inputs
/* -------------------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="search"], textarea {
    width: 100%;
    background: var(--color-bg-dim);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

button, input[type="submit"] {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-code);
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.2s;
}

button:hover, input[type="submit"]:hover {
    border-color: var(--color-text);
    background: var(--color-bg-dim);
}

/* -------------------------------------------------------------------------- */
/*	6. Components (Cards, Header, Footer)
/* -------------------------------------------------------------------------- */

/* Header */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.site-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Theme Toggle */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    color: var(--color-accent-primary);
}

.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.custom-logo-link:hover .custom-logo {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-code);
    font-weight: 700;
    line-height: 1.2;
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.site-title a { color: var(--color-text); }

.main-navigation ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    list-style: none;
}
.main-navigation li {
    margin: 0;
    padding: 0;
    position: relative; /* For absolute positioning of dropdowns */
}
.main-navigation li::before { content: none; } /* Remove custom bullet */
.main-navigation a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    display: block;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.main-navigation a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-accent-primary);
}

/* Dropdown Indicator for parent items */
.main-navigation .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.65rem;
    margin-left: 0.4rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.main-navigation .menu-item-has-children.menu-open > a::after {
    transform: rotate(180deg);
}

/* Sub-menu (Dropdown) Styles */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--color-bg-dim);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;

    /* Force vertical stacking - override parent flex */
    display: block;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;

    /* Retro glow effect */
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(88, 166, 255, 0.1);

    z-index: 1000;
}

/* Show dropdown when parent has menu-open class */
.main-navigation .menu-item-has-children.menu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu items */
.main-navigation .sub-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.main-navigation .sub-menu a:hover {
    background: var(--color-bg-light);
    color: var(--color-accent-primary);
    border-left-color: var(--color-accent-primary);
    padding-left: 1.5rem;
}

/* Nested dropdowns (third level) */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .main-navigation.mobile-menu-open {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        padding: var(--spacing-sm) 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0 var(--spacing-sm);
    }

    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        padding: 1rem 0.75rem;
        border-bottom: none;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-border);
        margin-left: 1rem;
        padding-left: 0;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation .menu-item-has-children.menu-open > .sub-menu {
        max-height: 500px; /* Adjust based on content */
    }

    .main-navigation .sub-menu a {
        padding: 0.5rem 1rem;
    }

    .site-header .container {
        position: relative;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* System Logs (CRT Blog Style) */
.system-log-entry {
    background-color: #000c00; /* Deepest black-green */
    border: 2px solid #1a5c0d;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: 6px;
    box-shadow:
        0 0 10px rgba(40, 241, 8, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    font-family: "VT323", "Courier New", monospace;
    position: relative;
    overflow: hidden;
}

.system-log-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(40, 241, 8, 0.2);
    border-color: #28F108;
}

/* CRT Scanline overlay for logs too */
.system-log-entry::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

.system-log-entry .log-meta {
    font-family: inherit;
    font-size: 0.85rem;
    color: #1c8a0e; /* Dimmer green */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px dashed #1a5c0d;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.system-log-thumbnail {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #1a5c0d;
    border-radius: 4px;
    background-color: #000;
}

.system-log-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    filter: sepia(1) hue-rotate(60deg) brightness(0.8) contrast(1.2); /* Deep green tint */
    transition: filter 0.3s ease;
}

.system-log-entry:hover .system-log-thumbnail img {
    filter: sepia(1) hue-rotate(60deg) brightness(1) contrast(1.4);
}

/* Single Post Featured Image Override */
.single-post-featured {
    position: relative;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
    margin-bottom: 3rem;
    background-color: #000;
}

.single-post-featured img {
    filter: none; /* Full color by default */
    opacity: 0.9; /* Slightly dim to feel like a high-end monitor */
    transition: opacity 0.3s ease;
}

.single-post-featured:hover img {
    opacity: 1;
}

/* Ensure scanlines cover the full color image too */
.single-post-featured::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.1) 50% /* Lighter scanlines for full color visibility */
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.system-log-entry h3 {
    font-family: inherit; /* Use VT323 */
    font-size: 2rem;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.4);
}

.system-log-entry h3 a,
.system-log-entry .entry-title a {
    color: #28F108; /* Phosphor Green */
    text-decoration: none;
    transition: 0.2s;
    /* Prepare for hover effect like read-more */
    display: inline-block;
    padding: 0 0.25rem;
    margin: 0 -0.25rem; /* Negative margin to maintain alignment */
    border: 1px solid transparent;
    border-radius: 4px;
}

.system-log-entry h3 a:hover,
.system-log-entry .entry-title a:hover {
    text-shadow: 0 0 8px rgba(40, 241, 8, 0.4);
    color: #28F108;
    background: rgba(40, 241, 8, 0.1);
    border-color: rgba(40, 241, 8, 0.3);
}

.system-log-entry .entry-summary {
    color: #28f108cc; /* Slightly transparent green */
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.system-log-entry .entry-summary p::after,
.system-log-entry .entry-content p::after,
.review-block .review-blockquote p::after {
    content: " _";
    color: #28F108; /* Bright phosphor green */
    font-family: "VT323", "Courier New", monospace;
    animation: blink-cursor 1s step-end infinite;
    text-shadow: 0 0 4px rgba(40, 241, 8, 0.7);
    display: inline;
}

@keyframes blink-cursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.system-log-entry .read-more {
    font-family: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    color: #1c8a0e;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border: 1px solid transparent;
    transition: 0.2s;
    position: relative;
    z-index: 2; /* Above scanline */
}

.system-log-entry .read-more:hover {
    color: #28F108;
    border-color: #28F108;
    background: rgba(40, 241, 8, 0.1);
}

/* Cards (Real Punched Card Texture) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    /* Manilla / Beige Background (Paper Card) */
    background-color: rgba(227, 218, 201, 0.95); /* #E3DAC9 approx, almost opaque */
    border: 1px solid var(--color-border);

    /* Authentic Punched Card Shape: Smaller Corner Cut */
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);

    /* Compact Padding */
    padding: var(--spacing-sm);
    padding-top: 1.5rem; /* Reduced from 2rem for landscape effect */
    padding-bottom: 1rem;
    margin-bottom: var(--spacing-sm);

    transition: transform 0.2s, filter 0.2s;

    /* Drop shadow for clipped shape */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    position: relative;
    overflow: hidden;
    z-index: 1;

    /* Text Color Inversion for Light Background */
    color: #1a1a1a;
}

/* Texture Layer */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('assets/images/punched_card_texture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.4; /* Increased visibility per user request */
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply; /* Better blending on light bg */
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: #000; /* Sharp Black */
    font-family: var(--font-header);
    border-bottom-color: rgba(0,0,0,0.1);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    color: #A04000; /* Burnt Amber / Rust - Readable "CRT Light" */
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 500; /* Increased weight for legibility */
}

.card li, .card span {
    color: #A04000;
}

.card .tech-stack {
    margin-top: 0.5rem !important;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #000;
}

.card code {
    background: rgba(255, 255, 255, 0.5); /* Light bg for code */
    color: #d00; /* Retro red for code distinction? or keep accent */
    border: 1px solid rgba(0,0,0,0.1);
}

.card a {
    color: #0044cc; /* Darker Blue for contest */
    text-decoration: none;
    font-weight: 600;
}

.card:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
    border-color: #fff;
}

/* Critique Card: Green Bar Dot Matrix Printout */
.critique-card {
    background-color: #f8fff8; /* Very Light Green */
    background-image: repeating-linear-gradient(
        #f8fff8,
        #f8fff8 2.5rem,
        #e8f5e8 2.5rem,
        #e8f5e8 5rem
    );
    clip-path: none !important; /* Remove punched card cut */
    border: 1px solid rgba(0, 100, 0, 0.2);
    padding: 2rem 3rem !important; /* Wider padding for holes */
    position: relative;
    color: #051005; /* Deepest green-black for body contrast */
    font-family: var(--font-dot-matrix);
    font-weight: 600;
}

.critique-card .entry-title a,
.critique-card h1,
.critique-card h2,
.critique-card h3 {
    color: #000000 !important;
    font-family: var(--font-dot-matrix) !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

.critique-card p,
.critique-card .entry-meta,
.critique-card .entry-footer a,
.critique-card .entry-summary {
    font-family: var(--font-dot-matrix) !important;
    color: #051005 !important;
    font-weight: 600 !important;
}

/* Scoped archive header for critiques */
.post-type-archive-critique .page-title,
.post-type-archive-critique .page-description {
    font-family: var(--font-header);
}

/* Ensure dot matrix holes override the base card texture for BOTH sides */
.critique-card.card::before,
.critique-card.card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25px;
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 4px, transparent 5px);
    background-size: 25px 2.5rem;
    background-repeat: repeat-y;
    background-position: center;
    z-index: 2;
    opacity: 1; /* Ensure visible */
    mix-blend-mode: normal;
}

.critique-card.card::before {
    left: 0;
    border-right: 1px dashed rgba(0, 100, 0, 0.1);
}

.critique-card.card::after {
    right: 0;
    border-left: 1px dashed rgba(0, 100, 0, 0.1);
}

.critique-card a {
    color: #000000 !important;
    text-decoration: underline;
    font-weight: 700 !important;
}

.critique-card:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.entry-tags a {
    color: #28F108 !important; /* Hardcoded Phosphor Green to fix white issue */
    text-decoration: none;
    margin-right: 0.5rem;
    text-shadow: 0 0 2px rgba(40, 241, 8, 0.4);
    opacity: 0.85;
    transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.entry-tags a::before {
    content: "[";
    opacity: 0.6;
    margin-right: 2px;
}

.entry-tags a::after {
    content: "]";
    opacity: 0.6;
    margin-left: 2px;
}

.entry-tags a:hover {
    opacity: 1;
    text-shadow: 0 0 5px rgba(40, 241, 8, 0.8);
    text-decoration: none;
    background-color: rgba(40, 241, 8, 0.1); /* Subtle highlight like read-more */
}

/* Ensure Read More button size isn't shrunk */

a.read-more, .read-more {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-family: var(--font-code);
    font-size: 0.85rem !important;
    font-weight: bold;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
}

a.read-more:hover, .read-more:hover {
    color: var(--color-accent-secondary);
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(247, 120, 186, 0.5);
}

/* System Logs Grid: Enforce 3 columns */
.system-logs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

/* --- About Us: Personnel Dossier & Security Badges --- */

.dossier-grid {
    max-width: 900px;
    margin: 0 auto;
}

/* 1970s Security Badge */
.security-badge {
    width: 300px;
    background-color: #f5e6d3; /* Aged Plastic / Cardboard */
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: #333;
    font-family: 'Helvetica', Arial, sans-serif;
}

.badge-stripes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: repeating-linear-gradient(
        -45deg,
        #e67e22,
        #e67e22 15px,
        #f1c40f 15px,
        #f1c40f 30px,
        #d35400 30px,
        #d35400 45px
    );
    opacity: 0.8;
    z-index: 0;
}

.security-badge::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    pointer-events: none;
    z-index: 5;
}

.polaroid-frame {
    background: #fff;
    padding: 10px 10px 30px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 20px auto 0;
    width: 180px;
    position: relative;
    z-index: 1;
    transform: rotate(-2deg);
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    filter: sepia(0.3) contrast(1.1) brightness(0.9);
}

.staple {
    position: absolute;
    top: -5px;
    left: 15px;
    width: 25px;
    height: 4px;
    background: #bdc3c7;
    border: 1px solid #7f8c8d;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transform: rotate(-15deg);
    z-index: 2;
}

.badge-info {
    margin-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge-name {
    font-family: 'Caprasimo', cursive;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
}

.badge-id {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: #7f8c8d;
    letter-spacing: 2px;
}

.badge-clearance {
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #c0392b;
    border: 2px solid #c0392b;
    display: inline-block;
    padding: 2px 8px;
    text-transform: uppercase;
}

.mag-stripe {
    height: 30px;
    background: #1a1a1a;
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
    opacity: 0.9;
}

/* Dossier Bio Card */
.dossier-bio-card {
    background-color: #fdf6e3; /* Manilla Folder */
    border: 1px solid #ede1be;
    padding: 2.5rem;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    position: relative;
    border-left: 8px solid #ede1be;
}

.dossier-header {
    font-family: var(--font-code);
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: #333;
}

.dossier-label {
    color: #999;
    font-weight: 300;
}

.dossier-meta {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.dossier-text {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #2c3e50;
}

.dossier-text p {
    margin-bottom: 0.5rem; /* Aggressively tighter bio spacing */
}

.dossier-text p:last-child,
.dossier-text hr:last-child,
.dossier-text h1:last-child,
.dossier-text h2:last-child,
.dossier-text h3:last-child {
    margin-bottom: 0 !important;
}

.dossier-text hr {
    margin: 1rem 0;
    opacity: 0.1;
}

.dossier-text h3 {
    margin: 0;
}

/* BASIC Banner specific override */
.basic-banner::before {
    content: ">> RUN AUTH_MESSAGE.BAS";
}

.dossier-stamps {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    opacity: 0.2;
    pointer-events: none;
}

.stamp-approved {
    border: 5px solid #27ae60;
    color: #27ae60;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    padding: 5px 15px;
    transform: rotate(-15deg);
    border-radius: 10px;
}

/* 70s Social Icon Buttons */
.dossier-comms {
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 1rem;
}

.dossier-comms h4 {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: #95a5a6;
    margin-bottom: 0.8rem !important;
    letter-spacing: 1px;
}

.comm-icons-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.comm-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    border: 2px solid rgba(0,0,0,0.15);
    box-shadow: 0 3px 0 rgba(0,0,0,0.1);
    transition: all 0.15s ease;
    background-color: #7f8c8d; /* Fallback */
}

.comm-icon-btn svg {
    width: 20px;
    height: 20px;
}

.comm-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    filter: brightness(1.05);
}

.comm-icon-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* 70s Palette Mapping */
.comm-icon-btn.icon-bluesky  { background-color: #e67e22; border-color: #d35400; }
.comm-icon-btn.icon-twitter   { background-color: #3498db; border-color: #2980b9; }
.comm-icon-btn.icon-facebook  { background-color: #f1c40f; border-color: #f39c12; color: #2c3e50; }
.comm-icon-btn.icon-youtube   { background-color: #c0392b; border-color: #a93226; }
.comm-icon-btn.icon-github    { background-color: #d35400; border-color: #a04000; }
.comm-icon-btn.icon-linkedin  { background-color: #7e8c4a; border-color: #556b2f; }
.comm-icon-btn.icon-net       { background-color: #bdc3c7; border-color: #95a5a6; color: #2c3e50; }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-right, .footer-social-links {
        align-items: center;
        justify-content: center !important;
    }
}

@media (max-width: 900px) {
    .dossier-entry {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    .security-badge-wrapper {
        display: flex;
        justify-content: center;
    }
}

/* --- Service Cards Interactivity --- */
.service-card-link {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.service-card-link:hover h3 {
    color: var(--color-accent-secondary) !important;
}

/* --- Hero Section with Background --- */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -2rem; /* Pull up to meet header if needed */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(15, 17, 21, 0.4) 0%, rgba(15, 17, 21, 0.9) 100%);
    background-color: rgba(0, 0, 0, 0.5); /* Fallback */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.hero-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.sticky-badge {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-bg);
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sticky-badge::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--color-bg);
    margin-right: 0.5rem;
    vertical-align: middle;
}
/*Wordpress Alignment */

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
    max-width: 50%;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
    max-width: 50%;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* Clearfix: Ensures the content block actually contains the floated image */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* -------------------------------------------------------------------------- */
/*	Inline Style Classes (Extracted from PHP templates)
/* -------------------------------------------------------------------------- */

/* Single Project Template */
.site-main-padding-top {
    padding-top: 2rem;
}

.entry-header-centered {
    text-align: center;
    margin-bottom: 3rem;
}

.entry-meta-code {
    font-family: var(--font-code);
    color: var(--color-accent-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.entry-title-h1 {
    font-size: var(--size-h1);
    margin-bottom: 1rem;
}

.store-badges-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.project-layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.project-hero {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.project-screenshots {
    margin-bottom: 2rem;
}

.project-screenshots > h3 {
    font-family: var(--font-code);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.carousel-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}


.project-sidebar {
    position: sticky;
    top: 2rem;
}

.project-sidebar > h3 {
    font-family: var(--font-code);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.card-padded {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card-padded > h4 {
    margin-top: 0;
    font-family: var(--font-code);
    color: var(--color-accent-secondary);
}

.tech-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack-tag {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-code);
    color: #000;
}

.review-block {
    margin-top: 2rem;
}

.review-block > h4 {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.review-blockquote {
    margin: 0;
    border: 1px solid var(--color-accent);
    padding: 1.5rem;
    background: rgba(40, 241, 8, 0.05);
}

.review-blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #1c8a0e; /* Dimmer green */
    font-style: normal;
    font-family: var(--font-code);
}

.carousel-image {
    scroll-snap-align: start;
    flex-shrink: 0;
    max-height: 500px;
    width: auto;
    max-width: 80%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Page About Template */
.site-main-padding-large {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.page-header-centered {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.authorized-badge {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-code);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-title-h1 {
    font-size: var(--size-h1);
    margin-bottom: 1rem;
}

.page-description-code {
    color: var(--color-text-muted);
    font-family: var(--font-code);
}

.basic-banner-wrapper {
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.basic-banner-blockquote {
    margin: 0;
    padding: 1.5rem;
    border-color: var(--color-accent);
    background-color: #000c00;
}

.dossier-grid-flex {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dossier-entry {
    position: relative;
    margin-bottom: 0;
    padding: 2.5rem;
    border: 1px solid #ede1be;
    background-color: #fdf6e3;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    display: flow-root;
}

.security-badge-wrapper {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    perspective: 1000px;
    z-index: 10;
    transform-origin: top center;
}

.polaroid-photo-bg {
    background-image: url('');
    background-size: cover;
    background-position: center;
}

.dossier-header-margin {
    margin-bottom: 1.5rem;
}

.dossier-label-code {
    font-family: var(--font-code);
    color: #c0392b;
    font-weight: bold;
}

.dossier-name-large {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2c3e50;
}

.dossier-meta-styled {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed #bdc3c7;
    padding-bottom: 1rem;
}

.dossier-text-styled {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.dossier-comms-styled {
    clear: both;
    margin-top: 2rem;
    border-top: 1px solid #bdc3c7;
    padding-top: 1rem;
}

.dossier-comms > h4 {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #c0392b;
    margin-bottom: 1rem;
}

.no-comms {
    font-family: var(--font-code);
    color: #95a5a6;
}

.stamp-approved-styled {
    border: 5px solid #27ae60;
    color: #27ae60;
    font-family: sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    padding: 5px 15px;
    transform: rotate(-15deg);
    border-radius: 10px;
}

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

/* Front Page Template */
.hero-section-bg {
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-gradient-text {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline-margin {
    margin-left: 1rem;
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title-centered {
    text-align: center;
}

.service-card-link-styled {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-flex {
    display: flex;
    flex-direction: column;
}

.project-thumbnail {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.project-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.entry-title-card {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.entry-meta-card {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--color-accent-secondary);
    margin-bottom: 1rem;
}

.entry-summary-flex {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.review-quote-mini {
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-left: 2px solid var(--color-accent);
}

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

.text-center-margin {
    text-align: center;
    margin-top: 2rem;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.section-header-flex > h2 {
    font-size: 1.5rem;
    margin: 0;
}

.section-header-flex > h2:first-child {
    color: var(--color-accent-tertiary);
}

.section-header-flex > a {
    color: var(--color-accent-tertiary);
}

.entry-meta-critique {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--color-accent-tertiary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.entry-title-critique {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-margin-top {
    margin-top: 1rem;
}


.critique-thumbnail {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem; /* Negative margin to pull to edges of card padding */
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.critique-list-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1000px; /* Wide but readable */
    margin: 0 auto;
}

.critique-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    /* Filter removed, handled by JS Dither Engine */
    transition: 0.3s;
}

.critique-thumbnail:hover canvas {
    /* If we want a hover effect on the canvas later */
    filter: brightness(1.1);
}

.critique-link {
    color: var(--color-accent-tertiary);
    font-weight: 700;
}

.section-border-top {
    border-top: 1px solid var(--color-border);
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-top: 4rem;
}


.entry-tags-code {
    font-family: var(--font-code);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Archive Critique Template */
.site-main-padding {
    padding: 4rem 2rem;
}

.page-header-margin {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title-accent {
    font-size: var(--size-h1);
    color: var(--color-accent-tertiary);
}

.entry-footer-margin {
    margin-top: 1.5rem;
}

/* Page Template */
.entry-header-margin {
    margin-bottom: 2rem;
}

.entry-title-border {
    border-bottom: 4px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Single Template */
.single-post-featured-max {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.entry-header-border {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.entry-meta-code-muted {
    font-family: var(--font-code);
    color: var(--color-text-muted);
}

.entry-footer-border {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.tags-links-code {
    font-family: var(--font-code);
}

/* Footer Template */
.footer-container-border {
    border-top: 4px solid var(--color-text);
    padding-top: 2rem;
    margin-top: 4rem;
}

.footer-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social-links-flex {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.comm-icon-btn-size {
    width: 32px;
    height: 32px;
}

/* Search Template */
.page-header-margin-bottom {
    margin-bottom: 3rem;
}

.entry-meta-code-small {
    font-size: 0.8rem;
    font-family: var(--font-code);
    color: var(--color-text-muted);
}

/* Home Template */
.page-header-dashed {
    margin-bottom: 3rem;
    border-bottom: 1px dashed var(--color-text-muted);
    padding-bottom: 1rem;
}

.entry-footer-margin-top {
    margin-top: 1rem;
}


/* Archive Template */
.archive-description-code {
    font-family: var(--font-code);
    margin-top: 1rem;
}

/* Index Template */
.entry-meta-code-muted-margin {
    color: var(--color-text-muted);
    font-family: var(--font-code);
    margin-bottom: 1rem;
}

/* Archive Project Template */
.page-title-h1-centered {
    font-size: var(--size-h1);
}

/* 404 Template */
.site-main-centered {
    text-align: center;
    padding: 4rem 0;
}

.page-title-404 {
    font-size: 6rem;
    color: var(--color-accent);
    margin-bottom: 0;
}

.page-subtitle-404 {
    margin-top: 0;
}

.page-content-max {
    max-width: 600px;
    margin: 2rem auto;
}

.cynical-comment {
    margin-top: 4rem;
    font-family: var(--font-code);
    color: var(--color-text-muted);
}

/* Functions.php Store Badges */
.store-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .project-layout-grid {
        grid-template-columns: 1fr !important;
    }


}

/* Disable hover movement on Single Posts */
body.single .system-log-entry:hover {
    transform: none;
    box-shadow: 0 0 10px rgba(40, 241, 8, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.8); /* Revert to default shadow */
    border-color: #1a5c0d; /* Revert to default border */
}
