﻿/* ========= About Page (scoped) ========= */
.about-page {
    --bg: #ffffff;
    --text: #0b0c0c;
    --muted: #6b7280;
    --link: #1d70b8;         /* calm blue */
    --link-hover: #134d87;
    --border: #e5e7eb;
    --card: #f8fafc;
    --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
    --radius: 12px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

/* Optional dark mode */
@media (prefers-color-scheme: dark) {
  .about-page {
    --bg: #0b0f14;
    --text: #e6e7e9;
    --muted: #9aa3ad;
    --link: #86b7ff;
    --link-hover: #c6ddff;
    --border: #1e293b;
    --card: #0f1720;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

/* Utility emulation (scoped) */
.about-page .container { max-width: 1024px; margin-inline: auto; }
.about-page .mx-auto { margin-inline: auto; }
.about-page .px-4 { padding-left: 1rem; padding-right: 1rem; }
.about-page .py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.about-page h1 {
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.3px;
}
.about-page h2 {
    font-size: clamp(20px, 2.6vw, 24px);
    margin: 2rem 0 .75rem;
}
.about-page p { margin: .75rem 0; }
.about-page .text-muted { color: var(--muted); }

/* Links */
.about-page a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid rgba(29,112,184,.25);
    transition: color .15s ease, border-color .15s ease;
}
.about-page a:hover, .about-page a:focus {
    color: var(--link-hover);
    border-color: rgba(29,112,184,.55);
    outline: none;
}

/* Lists */
.about-page ul {
    display: grid;
    gap: .5rem 1rem;
    grid-template-columns: 1fr;
    padding-left: 1.25rem;
    margin: .5rem 0 1rem;
}
@media (min-width: 720px) {
  .about-page ul { grid-template-columns: 1fr 1fr; }
}

/* Cards (use for highlight groups if needed) */
.about-page .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
}

/* HR */
.about-page hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2rem 0 1.25rem;
}

/* FAQ details */
.about-page details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin: .5rem 0;
    box-shadow: var(--shadow);
}
.about-page details[open] { background: #ffffff10; }
.about-page details > summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}
.about-page details > summary::-webkit-details-marker { display: none; }
.about-page details > summary::after {
    content: "▸";
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(10%);
    transition: transform .15s ease;
    opacity: .7;
}
.about-page details[open] > summary::after { transform: rotate(90deg) translateY(-10%); }
.about-page details p { margin: .5rem 0 0; }

/* Topic tags line */
.about-page .topics {
    font-size: 14px;
    color: var(--muted);
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
}

/* Spacing helpers for sections */
.about-page .section {
    margin: 1.25rem 0 1.75rem;
}

/* Optional: subtle animated underline on hover */
.about-page a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Make long lines comfortable to read */
.about-page p,
.about-page li {
    max-width: 75ch;
}
