/* Global Variables - Agency Theme */
:root {
    --bg-global: #09090b;
    /* bg-zinc-950 */
    --bg-surface: #18181b;
    /* bg-zinc-900 */
    --border: #27272a;
    /* border-zinc-800 */

    --text-primary: #ffffff;
    /* text-white */
    --text-secondary: #a1a1aa;
    /* text-zinc-400 */

    --accent-yellow: #facc15;
    /* text-yellow-400 / bg-yellow-400 */
    --accent-yellow-dark: #eab308;
}

body {
    background-color: var(--bg-global);
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.markdown-body {
    box-sizing: border-box;
    min-width: 200px;
    max-width: 768px;
    /* High-end editorial width */
    margin: 0 auto;
    padding: 60px 20px;
}

@media (max-width: 767px) {
    .markdown-body {
        padding: 30px 15px;
    }
}

/* Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 50px;
    margin-bottom: 20px;
}

.header-branding {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.markdown-body h1 {
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: -0.05em;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 0px;
    /* Adjusted since the wrapper has bottom margin */
}

/* According to rule: Section Headers are WHITE */
.markdown-body h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    letter-spacing: 0.02em;
}

/* Paragraphs & Lists */
.markdown-body p,
.markdown-body ul,
.markdown-body ol {
    margin-top: 0;
    margin-bottom: 20px;
}

.markdown-body li {
    margin-bottom: 10px;
}

.markdown-body strong {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Accents */
.accent {
    color: var(--accent-yellow) !important;
}

/* Labels and Elements */
.label {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    background-color: rgba(250, 204, 21, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    display: inline-block;
}

.markdown-body a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.markdown-body a:hover {
    color: var(--accent-yellow-dark);
    text-decoration: underline;
}

/* Dividers */
.markdown-body hr {
    height: 1px;
    padding: 0;
    margin: 40px 0;
    background-color: var(--border);
    border: 0;
}

/* Code */
.markdown-body code {
    padding: 0.2em 0.5em;
    margin: 0;
    font-size: 0.85em;
    background-color: var(--bg-surface);
    color: var(--accent-yellow);
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid var(--border);
}

/* Blockquotes & Highlight Boxes */
.markdown-body blockquote,
.highlight-box {
    margin: 30px 0;
    padding: 20px 25px;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    border-left: 4px solid var(--accent-yellow);
    font-weight: 500;
    font-size: 1.1em;
    line-height: 1.5;
}

.markdown-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    min-width: 500px;
}

.markdown-body table th {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    padding: 15px;
    border-bottom: 2px solid var(--border);
}

.markdown-body table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.markdown-body table tr:last-child td {
    border-bottom: none;
}

.markdown-body table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Images */
.image-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    margin: 30px 0;
    text-align: center;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Hero SVG Animation Container */
.hero-svg-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 60px auto;
    display: block;
    opacity: 1; /* Fully visible, part of the normal document flow */
    pointer-events: none;
}

@media (max-width: 1200px) {
    .hero-svg-container {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-svg-container {
        max-width: 100%;
        margin: 40px auto;
    }
}



/* Table of Contents */
.toc {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 50px;
}

.toc summary {
    cursor: pointer;
    list-style: none;
    /* remove default arrow in standard browsers */
}

/* remove default arrow in WebKit */
.toc summary::-webkit-details-marker {
    display: none;
}

.toc h2 {
    margin-top: 0;
    border-bottom: none;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 0;
    display: inline-block;
}

.toc[open] h2 {
    margin-bottom: 15px;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.toc a:hover {
    color: var(--accent-yellow);
    text-decoration: none;
}

/* Photographer Names (Based on rule) */
.photographer-name {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    /* Black/Bold */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    /* Tight Tracking */
    color: var(--text-primary);
}