/* NextOnCall help pages (nextoncall.com/help/). Same palette and fonts as
   the landing page and testers.html. Light only, like the rest of the site. */
:root {
    --bg: #EAF1FF;            /* Sky Tint */
    --panel: #ffffff;
    --stroke: rgba(23, 52, 94, 0.08);
    --navy: #17345E;          /* Deep Navy: text */
    --muted: #4E5D7A;
    --accent: #F5AF48;        /* Sunlit Yellow: accents only, never body text */
    --coral: #F26A4F;         /* Warm Coral */
    --primary: #4C7DDA;       /* Signal Blue */
    --note-bg: #fff7e6;
    --note-stroke: #f5d9a8;
    --warn-bg: #fdecea;
    --warn-stroke: #f4b9ad;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--navy);
    line-height: 1.65;
}

h1, h2, h3, .wordmark { font-family: 'League Spartan', 'Inter', sans-serif; }
h2, h3 { line-height: 1.25; }
a { color: var(--primary); }
a:hover { text-decoration: underline; }

.wordmark { color: var(--navy); font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.wordmark-on { color: var(--accent); }

.container { max-width: 860px; margin: 0 auto; padding: 0 1rem; }

.topbar { padding: 1rem 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar .wordmark { font-size: 1.35rem; }
.topbar nav a { margin-left: 1rem; font-weight: 600; text-decoration: none; color: var(--navy); }
.topbar nav a[aria-current="page"] { color: var(--primary); }

header.page { padding: 1.5rem 0 0.5rem; }
header.page h1 { font-size: 2.1rem; margin: 0 0 0.4rem; font-weight: 800; line-height: 1.15; }
header.page p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.toc {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}
.toc strong { display: block; margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.2rem; break-inside: avoid; }

.card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin: 1.25rem 0;
    box-shadow: 0 8px 32px rgba(23, 52, 94, 0.05);
    scroll-margin-top: 1rem;
}
.card h2 { margin: 0 0 0.75rem; font-size: 1.4rem; }
.card h3 { margin: 1.25rem 0 0.4rem; font-size: 1.1rem; }
.card ol, .card ul { padding-left: 1.25rem; }
.card li { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }

.ui { font-weight: 600; white-space: nowrap; }     /* an on-screen label */
.say { font-style: italic; }                      /* text the app or a caller sees */

.note, .warn {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.97rem;
}
.note { background: var(--note-bg); border: 1px solid var(--note-stroke); }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-stroke); }

.store-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.store-buttons a {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
}
.store-buttons a:hover { opacity: 0.9; text-decoration: none; }

table.plain { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.97rem; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-top: 1px solid var(--stroke); }
table.plain th { font-weight: 600; }

.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.guides a.card { display: block; margin: 0; text-decoration: none; color: var(--navy); }
.guides a.card:hover { border-color: var(--primary); text-decoration: none; }
.guides a.card p { color: var(--muted); margin: 0.25rem 0 0; }

/* Screenshots. Website shots run the card's width; phone shots stay phone-sized,
   side by side when there's room. */
figure.shot { margin: 1rem 0 1.25rem; }
figure.shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--stroke);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(23, 52, 94, 0.08);
}
figure.shot figcaption { margin-top: 0.45rem; font-size: 0.9rem; color: var(--muted); }
figure.shot.narrow img { max-width: 560px; }   /* one tall settings panel */
figure.shot.half img { max-width: 380px; }     /* one sidebar panel */
figure.shot.phone img { max-width: 280px; border-radius: 1.25rem; }
.shots { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start; }
.shots figure.shot { margin: 0.5rem 0; }

footer { text-align: center; color: var(--muted); padding: 2rem 0 3rem; font-size: 0.9rem; }

@media (max-width: 600px) {
    header.page h1 { font-size: 1.7rem; }
    .card { padding: 1.25rem 1.1rem; border-radius: 1rem; }
    .toc ol { columns: 1; }
    .topbar nav a { margin: 0 1rem 0 0; }
    .ui { white-space: normal; }
}

@media print {
    body { background: #fff; }
    .topbar nav, .toc, footer { display: none; }
    .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
