/* Guide pages: readable long-form text on the site's dark theme in plain white, no accent color. Guides belong to the site,
   not to one tool, so no tool color is used for text; tool links get their own color from shared/tool-colors.css. */
:root {
    --bg: #17181b;
    --card: #1f2126;
    --border: #3a3d44;
    --text: #cfd3d8;
    --muted: #9aa0a8;
    --accent: #ffffff;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 1rem/1.7 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

a { color: #fff; }
b, strong { color: #fff; }
a:hover { text-decoration: none; }

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 28px 20px 40px; }

.crumbs { margin-bottom: 18px; font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

h1 { margin: 0 0 8px; color: #fff; font-size: 2rem; line-height: 1.2; font-weight: 800; }
h2 { margin: 36px 0 10px; font-size: 1.35rem; line-height: 1.3; color: #fff; }
h3 { margin: 24px 0 6px; font-size: 1.05rem; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
.lead { font-size: 1.1rem; color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 0.92rem; }
th, td { padding: 9px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--card); }

.note { margin: 0 0 18px; padding: 12px 16px; background: var(--card); border-left: 4px solid var(--accent); border-radius: 4px; font-size: 0.95rem; }

.cta { margin: 36px 0 10px; padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.cta > p { margin-bottom: 16px; }
.cta-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* mini versions of the landing page's tool buttons; the accent color comes from shared/tool-colors.css */
.cta .tool {
    flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 18px 16px; background: var(--bg); border: 2px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.cta .tool:hover, .cta .tool:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); outline: none; }
.cta .tool svg { width: 56px; height: 56px; color: var(--accent); }
.cta .tool .name { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.cta .tool .open { margin-top: 4px; width: 100%; padding: 9px 14px; border-radius: 6px; background: var(--accent); color: #121212; font-weight: bold; font-size: 0.78rem; text-transform: uppercase; }

.related { margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--border); }
.related h2 { margin-top: 20px; font-size: 1.1rem; }

.guide-list { list-style: none; padding: 0; }
.guide-list li { margin-bottom: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.guide-list a { font-weight: 800; font-size: 1.05rem; }
.guide-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 600px) { h1 { font-size: 1.6rem; } }


/* legal pages */
pre { margin: 10px 0 0; padding: 12px; max-height: 320px; overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 6px; font-size: 0.75rem; line-height: 1.45; white-space: pre-wrap; }
details { margin-bottom: 8px; }
summary { cursor: pointer; color: #fff; }
.todo { background: #5a3d00; color: #fff; padding: 0 4px; border-radius: 3px; }
.meta { margin: 0 0 24px; color: var(--muted); font-size: 0.85rem; }

figure { margin: 0 0 22px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
/* Sidebar panels are captured at twice the sidebar's width: show them at that width, not stretched to the column */
figure.panel img { max-width: 440px; }

figure img { cursor: zoom-in; }
.zoom-open { overflow: hidden; }
.zoom-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 9, 11, 0.9); cursor: zoom-out; }
.zoom-img { position: fixed; max-width: none; border: 0; border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6); cursor: zoom-out; }
.zoom-close {
    position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; cursor: pointer;
}
.zoom-close:hover, .zoom-close:focus-visible { background: rgba(255, 255, 255, 0.24); outline: none; }
