/* Shared styles for the public pages (support, delete-data). Palette is fixed:
   UCalgary red, gold, and slate. Extracted from support.html 2026-09-17, restyled same day. */

:root {
    /* UCalgary brand palette (UC_Palette_RGB.ase, 2026-09-17). Only these hexes, plus
       white and tints derived from them. */
    --red: #D6001C;          /* UCalgary Red */
    --red-dark: #9C0534;     /* UCalgary Berry */
    --gold: #FFCD00;         /* UCalgary Gold */
    --gold-dark: #FFA300;    /* UCalgary Light Orange */
    --slate: #6D6E71;        /* UCalgary Dark Grey -- nav, footer, info callouts */
    --grey-light: #C7C8CA;   /* UCalgary Light Grey */
    --yellow-light: #FFF68D; /* UCalgary Light Yellow */
    --brown: #6C3302;        /* UCalgary Brown */
    --ink: #1a1a1a;
    --ink-soft: #3d3d3f;
    --line: #dedfe1;
    --paper: #ffffff;
    --paper-tint: #f7f7f8;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 205, 0, 0.18), transparent 60%),
        linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    min-height: 100vh;
    padding: 24px 16px 48px;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    background: var(--paper);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(60, 0, 12, 0.35);
    overflow: hidden;
}

/* ---- header ---- */
header {
    position: relative;
    background: linear-gradient(135deg, var(--gold) 0%, #F2C200 100%);
    color: var(--ink);
    padding: 40px 28px 32px;
    text-align: center;
}

header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 6px;
    background: var(--red);
}

.header-logo {
    max-width: 320px;
    width: 70%;
    height: auto;
    margin: 0 auto 18px;
    display: block;
}

header h1 {
    font-size: 2.3em;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

header p {
    font-size: 1.1em;
    font-weight: 500;
    opacity: 0.8;
}

/* ---- site navigation: every public page links to every other ---- */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--slate);
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.92em;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    opacity: 0.85;
    transition: background 0.15s, opacity 0.15s;
}

.site-nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }

.site-nav a[aria-current="page"] {
    opacity: 1;
    background: var(--gold);
    color: var(--ink);
}

/* ---- body copy ---- */
.content { padding: 40px 32px 24px; }

.section { margin-bottom: 44px; }

.section h2 {
    color: var(--red);
    font-size: 1.6em;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), var(--gold));
}

.section h3 {
    color: var(--red-dark);
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.section p, .section li {
    margin-bottom: 12px;
    font-size: 1.02em;
    color: var(--ink-soft);
}

.section ul, .section ol {
    margin-left: 22px;
    margin-bottom: 14px;
}

.section li::marker { color: var(--red); }

.section a { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(214, 0, 28, 0.3); }
.section a:hover { border-bottom-color: var(--red); }

/* ---- cards ---- */
.contact-card, .faq-item {
    background: var(--paper-tint);
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 20px 22px;
    margin: 0 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card h3, .faq-item h3 {
    color: var(--red-dark);
    margin-top: 0;
    margin-bottom: 8px;
}

.contact-card p { margin-bottom: 8px; }

/* Numbered steps: wrap consecutive .faq-item cards in <div class="steps"> */
.steps { counter-reset: step; }

.steps .faq-item {
    position: relative;
    padding-left: 72px;
    border-left: 1px solid var(--line);
}

.steps .faq-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 20px; top: 20px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 205, 0, 0.55);
}

/* ---- callouts ---- */
.warning, .info {
    padding: 16px 18px;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid transparent;
}

.warning {
    background: var(--yellow-light);
    border-color: rgba(255, 163, 0, 0.5);
    border-left: 4px solid var(--gold-dark);
    color: var(--brown);
}
.warning strong { color: var(--brown); }

.info {
    background: #f1f1f2;
    border-color: var(--grey-light);
    border-left: 4px solid var(--slate);
}
.info strong { color: var(--ink); }

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--red-dark);
}

/* ---- footer ---- */
footer {
    background: var(--slate);
    color: #fff;
    text-align: center;
    padding: 28px 24px;
    font-size: 0.92em;
}

footer a { color: var(--yellow-light); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ---- phones ---- */
@media (max-width: 640px) {
    body { padding: 10px 10px 32px; }
    .container { border-radius: 14px; }
    header { padding: 28px 20px 24px; }
    header h1 { font-size: 1.8em; }
    header p { font-size: 1em; }
    .content { padding: 28px 18px 16px; }
    .section { margin-bottom: 34px; }
    .section h2 { font-size: 1.38em; }
    .contact-card, .faq-item { padding: 16px 16px; }
    .steps .faq-item { padding-left: 60px; }
    .steps .faq-item::before { left: 14px; top: 16px; width: 32px; height: 32px; font-size: 0.95em; }
    .site-nav a { padding: 7px 11px; font-size: 0.88em; }
}

/* ---- components used by index.html and guide.html ---- */
.intro { font-size: 1.1em; margin-bottom: 28px; color: var(--ink-soft); }

/* Guide cards keep their class names; they are the same card as .faq-item. */
.step-card, .tab-section, .highlight-box {
    background: var(--paper-tint);
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 20px 22px;
    margin: 0 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.step-card h3, .tab-section h3, .highlight-box h3 { color: var(--red-dark); margin-top: 0; margin-bottom: 8px; }
.tab-section { border-left-color: var(--red-dark); }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9em;
    margin-right: 10px;
    box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.55);
    vertical-align: middle;
}

.tip {
    background: #f1f1f2;
    border: 1px solid var(--grey-light);
    border-left: 4px solid var(--slate);
    padding: 16px 18px;
    margin: 20px 0;
    border-radius: 12px;
}
.tip strong { color: var(--ink); }

.toc {
    background: var(--paper-tint);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 30px;
}
.toc h3 { color: var(--ink); margin: 0 0 12px; font-size: 1.05em; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a { color: var(--red); font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.screenshot-container { text-align: center; margin: 25px 0; }
.screenshot {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.screenshot-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 25px 0; }
.screenshot-row .screenshot { max-width: 240px; }
.screenshot-caption { font-size: 0.9em; color: var(--slate); margin-top: 10px; font-style: italic; }
.app-icon { max-width: 120px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }

/* Red call-to-action block (home page contact) */
.contact-box {
    background: var(--red);
    color: #fff;
    border-radius: 12px;
    padding: 22px;
    margin-top: 30px;
    text-align: center;
}
.contact-box h3 { font-size: 1.15em; margin-bottom: 8px; }
.contact-box p { font-size: 0.98em; opacity: 0.95; margin-bottom: 6px; }
.contact-box a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
    .toc ul { columns: 1; }
}
