/* XTech Venue System docs — matches the control-panel theme (style.css):
   gold #C48E50 on near-black, Open Sans body / Roboto headings. Static, no framework. */

:root {
    --primary:   #C48E50;
    --secondary: #191C24;
    --light:     #6C7293;
    --dark:      #000000;
    --text:      #d3d6df;
    --border:    rgba(196, 142, 80, 0.25);
    --code-bg:   #0e1117;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Anchored headings land below nothing (no fixed header) but give them air */
:target { scroll-margin-top: 24px; }

body {
    margin: 0;
    background: var(--dark);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

a       { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    line-height: 1.25;
}
h1 { font-size: 1.9rem; margin: 0 0 .5rem; }
h2 {
    font-size: 1.35rem;
    color: var(--primary);
    margin: 3rem 0 1rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.05rem; margin: 2rem 0 .75rem; color: #fff; }
h2 > a.anchor, h3 > a.anchor {
    opacity: 0; margin-left: .4rem; font-size: .85em; color: var(--light);
}
h2:hover > a.anchor, h3:hover > a.anchor { opacity: 1; }

.lede { color: var(--light); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Layout: fixed sidebar + content ─────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--secondary);
    border-right: 1px solid rgba(255,255,255,.05);
    padding: 1.5rem 1.25rem;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .brand {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    display: block;
    margin-bottom: .25rem;
}
.sidebar .brand span { color: var(--primary); }
.sidebar .tagline {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--light);
    margin-bottom: 1.5rem;
}
.sidebar nav a {
    display: block;
    padding: .4rem .6rem;
    border-radius: 4px;
    color: var(--text);
    font-size: .9rem;
}
.sidebar nav a:hover { background: rgba(196,142,80,.08); text-decoration: none; }
.sidebar nav a.active {
    background: rgba(196,142,80,.15);
    color: var(--primary);
    font-weight: 600;
}
.sidebar nav .sub a {
    padding-left: 1.5rem;
    font-size: .8rem;
    color: var(--light);
}
.sidebar nav .sub a:hover { color: var(--text); }
.sidebar .foot {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .72rem;
    color: var(--light);
}

.content {
    flex: 1;
    min-width: 0;
    padding: 2.5rem 3rem 5rem;
    max-width: 900px;
}

/* ── Blocks ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--secondary);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}

.note, .warn, .tip {
    border-left: 3px solid var(--primary);
    background: rgba(196,142,80,.07);
    padding: .75rem 1rem;
    border-radius: 0 4px 4px 0;
    margin: 1rem 0;
    font-size: .9rem;
}
.warn { border-color: #dc3545; background: rgba(220,53,69,.08); }
.note strong:first-child, .warn strong:first-child, .tip strong:first-child { color: #fff; }

code {
    font-family: Consolas, Menlo, monospace;
    font-size: .85em;
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 3px;
    padding: .1em .35em;
    color: #e8c48f;
}
pre {
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    line-height: 1.5;
}
pre code { background: none; border: none; padding: 0; color: #cdd3de; }
pre .c { color: var(--light); }   /* comment lines */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: .88rem;
}
th, td {
    text-align: left;
    padding: .5rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    vertical-align: top;
}
th { color: var(--primary); font-weight: 600; white-space: nowrap; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.25rem 3rem;
}
ol.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: rgba(196,142,80,.15);
    color: var(--primary);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
ol.steps > li > strong:first-child { color: #fff; display: block; margin-bottom: .15rem; }

kbd {
    background: var(--secondary);
    border: 1px solid rgba(255,255,255,.15);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: .05em .45em;
    font-size: .82em;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
}

/* Landing cards */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cards3 a.card { display: block; color: var(--text); border: 1px solid transparent; margin: 0; }
.cards3 a.card:hover { text-decoration: none; border-color: var(--border); }
.cards3 .card h3 { margin: 0 0 .4rem; color: var(--primary); }
.cards3 .card p { margin: 0; font-size: .85rem; color: var(--light); }

@media (max-width: 820px) {
    .layout { flex-direction: column; }
    .sidebar { position: static; width: 100%; height: auto; }
    .content { padding: 1.5rem 1.25rem 4rem; }
}
