/* ============================================================
   Dr. Olivia Help Guide — shared styles

   These pages are static HTML served from /help/. They are not
   part of the Razor pipeline, so they own their own styling
   instead of pulling from site.css. Color palette tracks the
   PHSU branding used on the landing/select pages.
   ============================================================ */

:root {
    --guide-primary: #1d3a78;
    --guide-primary-strong: #142a5a;
    --guide-accent: #ea580c;
    --guide-success: #16a34a;
    --guide-danger: #b91c1c;
    --guide-bg: #f6f8fc;
    --guide-card: #ffffff;
    --guide-text: #0f172a;
    --guide-muted: #475569;
    --guide-border: #e2e8f0;
    --guide-callout-info: #ecf2fb;
    --guide-callout-warn: #fff7ed;
    --guide-callout-tip: #ecfdf5;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--guide-bg);
    color: var(--guide-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    font-size: 16px;
}

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

.guide-header {
    background: var(--guide-primary);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Dr. Olivia headshot — same circular treatment used in the Conversation
   page header. Replaces the older PHSU logo on a white tile (the white tile
   read as a callout against the dark blue header instead of fitting in). */
.guide-header img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.guide-header-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.guide-header-title small {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 2px;
}

.guide-header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.guide-header-nav a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-header-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.guide-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
    .guide-sidebar {
        position: static !important;
    }
}

.guide-sidebar {
    background: var(--guide-card);
    border: 1px solid var(--guide-border);
    border-radius: 8px;
    padding: 16px;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.guide-sidebar h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--guide-muted);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--guide-border);
}

.guide-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.guide-sidebar li a {
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--guide-text);
    font-size: 0.9rem;
}

.guide-sidebar li a:hover {
    background: var(--guide-callout-info);
    text-decoration: none;
}

.guide-sidebar li a.active {
    background: var(--guide-primary);
    color: #fff;
    font-weight: 600;
}

.guide-content {
    background: var(--guide-card);
    border: 1px solid var(--guide-border);
    border-radius: 8px;
    padding: 32px 36px;
    min-width: 0;
}

.guide-content h1 {
    margin-top: 0;
    color: var(--guide-primary-strong);
    font-size: 1.75rem;
    border-bottom: 2px solid var(--guide-border);
    padding-bottom: 10px;
}

.guide-content h2 {
    color: var(--guide-primary);
    font-size: 1.25rem;
    margin-top: 1.75rem;
    border-bottom: 1px solid var(--guide-border);
    padding-bottom: 4px;
}

.guide-content h3 {
    color: var(--guide-text);
    font-size: 1.05rem;
    margin-top: 1.25rem;
}

.guide-content p { margin: 0.75rem 0; }

.guide-content ul, .guide-content ol {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}

.guide-content li { margin: 0.3rem 0; }

.guide-content code {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.guide-content kbd {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.8em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.guide-screenshot {
    margin: 1.25rem 0;
    border: 1px solid var(--guide-border);
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.guide-screenshot img {
    display: block;
    max-width: 100%;
    height: auto;
}

.guide-screenshot figcaption {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--guide-muted);
    background: #f1f5f9;
    border-top: 1px solid var(--guide-border);
}

/* Placeholder rendered when an image is missing — prevents broken-image
   icon during the doc rollout while screenshots are still being captured. */
.guide-screenshot--pending {
    padding: 36px;
    text-align: center;
    color: var(--guide-muted);
    font-style: italic;
    border-style: dashed;
    background: repeating-linear-gradient(
        45deg,
        #f8fafc,
        #f8fafc 10px,
        #eef2f7 10px,
        #eef2f7 20px
    );
}

.guide-callout {
    margin: 1rem 0;
    padding: 12px 16px;
    border-left: 4px solid var(--guide-primary);
    background: var(--guide-callout-info);
    border-radius: 4px;
}

.guide-callout--tip {
    border-left-color: var(--guide-success);
    background: var(--guide-callout-tip);
}

.guide-callout--warn {
    border-left-color: var(--guide-accent);
    background: var(--guide-callout-warn);
}

.guide-callout--admin {
    border-left-color: var(--guide-danger);
    background: rgba(185, 28, 28, 0.06);
}

.guide-callout strong {
    display: block;
    margin-bottom: 4px;
    color: var(--guide-primary-strong);
}

.guide-callout--tip strong { color: var(--guide-success); }
.guide-callout--warn strong { color: var(--guide-accent); }
.guide-callout--admin strong { color: var(--guide-danger); }

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 1.25rem 0;
}

.guide-card {
    background: var(--guide-card);
    border: 1px solid var(--guide-border);
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.guide-card:hover {
    border-color: var(--guide-primary);
    box-shadow: 0 4px 14px rgba(29, 58, 120, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.guide-card-icon {
    font-size: 1.4rem;
    color: var(--guide-primary);
}

.guide-card-title {
    font-weight: 700;
    color: var(--guide-text);
    font-size: 1rem;
}

.guide-card-desc {
    color: var(--guide-muted);
    font-size: 0.88rem;
}

.guide-card--admin .guide-card-icon { color: var(--guide-danger); }

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
}

.guide-table th, .guide-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--guide-border);
    vertical-align: top;
}

.guide-table th {
    background: #f1f5f9;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--guide-muted);
}

.guide-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(29, 58, 120, 0.12);
    color: var(--guide-primary-strong);
    border: 1px solid rgba(29, 58, 120, 0.25);
}

.guide-pill--admin {
    background: rgba(185, 28, 28, 0.12);
    color: var(--guide-danger);
    border-color: rgba(185, 28, 28, 0.3);
}

.guide-pill--faculty {
    background: rgba(234, 88, 12, 0.15);
    color: var(--guide-accent);
    border-color: rgba(234, 88, 12, 0.35);
}

.guide-pill--new {
    background: rgba(22, 163, 74, 0.15);
    color: var(--guide-success);
    border-color: rgba(22, 163, 74, 0.35);
}

.guide-pill--improved {
    background: rgba(2, 132, 199, 0.14);
    color: #0369a1;
    border-color: rgba(2, 132, 199, 0.35);
}

.guide-footer {
    text-align: center;
    color: var(--guide-muted);
    font-size: 0.82rem;
    padding: 24px;
    border-top: 1px solid var(--guide-border);
    margin-top: 24px;
}
