/* ============================================================
   SignalCaster Help — Stylesheet
   Brand: #C8860A gold-orange, deep charcoal sidebar
   ============================================================ */

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

:root {
    --orange:        #C8860A;
    --orange-light:  #E09A1A;
    --orange-pale:   #FEF6E4;
    --orange-border: #EDCB80;
    --sidebar-bg:    #1C1A17;
    --sidebar-hover: #2E2B24;
    --sidebar-text:  #E8D9BC;
    --sidebar-muted: #8A7A5A;
    --sidebar-width: 230px;
    --gray-100:      #F6F4F1;
    --gray-200:      #ECEAE5;
    --gray-300:      #D4CFC6;
    --gray-600:      #6A6355;
    --gray-800:      #2C2A25;
    --text:          #2C2A25;
    --text-secondary:#6A6355;
    --link:          #C8860A;
    --tip-bg:        #FEF6E4;
    --tip-border:    #C8860A;
    --note-bg:       #FFF9EC;
    --note-border:   #D49A1A;
    --radius:        8px;
    --shadow:        0 2px 12px rgba(0,0,0,0.10);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--gray-100);
}

.layout { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-header img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }

.sidebar-header .brand {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sidebar-header .brand span { color: var(--orange-light); }
.sidebar nav { padding: 10px 0 20px; flex: 1; }
.nav-section { margin-bottom: 4px; }

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--sidebar-muted);
    padding: 14px 16px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.nav-section-title .arrow { font-size: 9px; transition: transform 0.2s; }
.nav-items { overflow: hidden; }

.nav-items a {
    display: block;
    padding: 6px 16px 6px 20px;
    font-size: 14px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-items a:hover { background: var(--sidebar-hover); color: #fff; }

.nav-items a.active {
    background: rgba(200, 134, 10, 0.22);
    border-left-color: var(--orange-light);
    color: #fff;
    font-weight: 500;
}

.main { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.content { max-width: 760px; padding: 36px 40px 60px; flex: 1; }

h1 {
    font-size: 25px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange-border);
    letter-spacing: -0.3px;
}

h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--orange);
    margin: 30px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--orange);
}

h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 20px 0 6px;
}

p { margin-bottom: 12px; }
ul, ol { margin: 0 0 14px 0; padding-left: 22px; }
li { margin-bottom: 5px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: "SF Mono", Monaco, Menlo, monospace;
    font-size: 14px;
    background: var(--gray-200);
    padding: 2px 5px;
    border-radius: 3px;
    color: #8B4A0A;
}

.field-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.field-table thead th {
    background: var(--gray-800);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    text-align: left;
}

.field-table tbody tr:nth-child(odd)  { background: #fff; }
.field-table tbody tr:nth-child(even) { background: var(--gray-100); }
.field-table tbody tr:hover           { background: var(--orange-pale); }

.field-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 16px;
    vertical-align: top;
}

.field-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 160px;
    color: var(--gray-800);
}

.field-table tbody tr:last-child td { border-bottom: none; }

.tip, .note {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tip  { background: var(--tip-bg);  border: 1px solid var(--orange-border); }
.note { background: var(--note-bg); border: 1px solid var(--note-border); }
.tip-icon, .note-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.tip p, .note p { margin: 0; font-size: 16px; }

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.topic-card {
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topic-card:hover {
    box-shadow: 0 4px 16px rgba(200,134,10,0.15);
    border-color: var(--orange-border);
    transform: translateY(-1px);
    text-decoration: none;
}

.topic-card .card-icon  { font-size: 22px; margin-bottom: 8px; }
.topic-card .card-title { font-size: 15px; font-weight: 600; color: var(--orange); margin-bottom: 4px; }
.topic-card .card-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }

.breadcrumb {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a { color: var(--orange); }
.breadcrumb .sep { color: var(--gray-300); }

/* ── Zoom controls ──────────────────────────────────────────────────────── */
.zoom-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 14px;
    background: #ECEAE5;
    border-bottom: 1px solid var(--gray-300);
    flex-shrink: 0;
}

.zoom-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    background: #fff;
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s, border-color 0.1s;
}
.zoom-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-600);
}
.zoom-btn:active { background: var(--gray-300); }

.zoom-pct {
    font-size: 11px;
    color: var(--gray-600);
    min-width: 34px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.zoom-reset {
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    background: #fff;
    color: var(--gray-600);
    font-size: 11px;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}
.zoom-reset:hover {
    background: var(--gray-200);
    border-color: var(--gray-600);
    color: var(--gray-800);
}
.zoom-reset:active { background: var(--gray-300); }
