﻿:root {
    /* Brand palette — adjust to taste (from your site notes) */
    --brand-primary: #2a62ff; /* blue */
    --brand-accent: #ff9f1c; /* orange */
    --brand-gold: #c9a227; /* gold */
    --brand-purple: #7b5cff; /* purple */
    /* Theme tokens */
    --bg: #ffffff;
    --text: #16181d;
    --muted: #5b616e;
    --border: #e6e8ec;
    --link: var(--brand-primary);
    --link-hover: #1f49c8;
    --surface: #fbfcfe;
    /* Code theme (light) */
    --code-bg: #0f172a; /* deep slate */
    --code-text: #e2e8f0;
    --code-border: #0b1223;
    --code-keyword: #c792ea; /* purple */
    --code-string: #ecc48d; /* gold */
    --code-func: #82aaff; /* blue */
    --code-comment: #5c6773; /* muted */
    --code-const: #f78c6c; /* orange */

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --container: 72ch; /* readable line length */
    --container-wide: 1100px; /* for images/code that can exceed text width */
}

body {
    font-family: system-ui, sans-serif;
    margin: 0;
    line-height: 1.6;
    background: #fff;
    color: #222;
}

a {
    color: #0645ad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.title {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.meta {
    color: #666;
    font-size: 0.875rem;
}

.dot::before {
    content: "•";
    margin: 0 0.25rem;
}

img.responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.prose p {
    margin-bottom: 1rem;
    text-align:justify;
}

.text-center {
    text-align: center !important;
}

.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

th {
    background: #f5f5f5;
}

.article-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #555;
}

.tags {
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    background: #eef;
    color: #225;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.callout.info {
    border-left-color: var(--brand-primary);
}

.callout .label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.callout {
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-accent);
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1.25rem 0;
}

/* Code blocks */
pre {
    position: relative;
    margin: 1.25rem 0;
}

    pre code {
        display: block;
        background: var(--code-bg);
        color: var(--code-text);
        padding: 1rem 1.25rem;
        border: 1px solid var(--code-border);
        border-radius: var(--radius);
        overflow: auto;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        font-size: 0.95rem;
        line-height: 1.55;
        tab-size: 2;
        -webkit-font-smoothing: auto;
    }
/* Inline code */
:not(pre) > code {
    background: #0b12231a;
    color: inherit;
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    font-size: 0.9em;
}

/* DIY minimal highlight colors (works bare or with Prism classes) */
code .token.keyword {
    color: var(--code-keyword);
}

code .token.string {
    color: var(--code-string);
}

code .token.function {
    color: var(--code-func);
}

code .token.comment {
    color: var(--code-comment);
    font-style: italic;
}

code .token.number, code .token.boolean, code .token.constant {
    color: var(--code-const);
}

/* Kbd */
kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    font-family: inherit;
    font-size: 0.9em;
}

/* responsive content adjustments */
.container.prose,
.prose {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* images and media */
.prose img,
.prose img.responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* iframes/embeds/objects (video, external content) */
.prose iframe,
.prose embed,
.prose object,
.prose video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* make wide tables scroll inside a container already defined in the stylesheet */
.prose table {
    width: 100%;
    table-layout: auto;
}

/* tables overflow container horizontally with a scroll */
.prose .table-wrap {
    overflow-x: auto;
}

/* long words or continuous text (URLs) */
.prose, .prose p, .prose code {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ensure pre/code blocks don't blow out width */
.prose pre {
    max-width: 100%;
    overflow: auto;
}

/* defensive: avoid layout overflow from fixed-width inline styles in source */
.prose * {
    max-width: 100%;
    box-sizing: border-box;
}