/* About page - Pages/About.cshtml (MainClass "page about-page").
   The main text, FAQs and small print are admin-edited HTML (/Admin/About), so the prose rules
   style bare elements inside .about-prose / .faq-a / .about-notes: whatever the editor makes
   (headings, lists, bold, links) lands styled without any classes in the stored HTML. */

.about-page { padding-top: 3.5rem; }
.about-eyebrow { justify-content: flex-start; margin: 0 0 1rem; }
.about-eyebrow::after { display: none; }

.about-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3.5rem; }
.about-layout > .about-prose { flex: 999 1 34rem; min-width: 0; }
.about-aside { flex: 1 1 15rem; max-width: 18rem; display: flex; flex-direction: column; gap: 1rem; padding-top: .5rem; }

/* ---------- The main text ---------- */
.about-prose { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
.about-prose h1 {
    margin: 0 0 1.75rem; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.04;
    letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
/* Each h2 opens a section: the section-title size and its speedbar rule. */
.about-prose h2 {
    margin: 4.5rem 0 2rem; font-size: clamp(1.7rem, 4.2vw, 2.3rem); line-height: 1.15;
    letter-spacing: -.015em; color: var(--ink); text-wrap: balance;
}
.about-prose h2::after {
    content: ""; display: block; width: 3.5rem; height: 5px; margin-top: .85rem;
    background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50%);
    transform: skewX(-18deg); transform-origin: left;
}
.about-prose h3, .about-prose h4 { margin: 2.25rem 0 .9rem; color: var(--ink); line-height: 1.2; }
.about-prose h3 { font-size: 1.4rem; }
.about-prose h4 { font-size: 1.1rem; }
.about-prose p { margin: 0 0 1.15rem; max-width: 46rem; text-wrap: pretty; }
/* The opening paragraph is the lede. */
.about-prose > h1 + p, .about-prose > p:first-child { font-size: 1.28rem; line-height: 1.55; color: var(--ink); }
.about-prose strong, .about-prose b { color: var(--ink); font-weight: 600; }
.about-prose a, .faq-a a, .about-notes a, .about-aside-card a, .about-contact-line a { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.about-prose a:hover, .faq-a a:hover, .about-notes a:hover, .about-aside-card a:hover, .about-contact-line a:hover { color: var(--red); }
.about-prose sup a { font-family: var(--font-display); font-weight: 700; text-decoration: none; padding: 0 .1rem; }

/* A numbered list becomes the tier-card row: a step numeral and a blue rail per item, the
   item's bold lead-in as its title. */
.about-prose ol {
    list-style: none; counter-reset: about-step; margin: 2rem 0 0; padding: 0;
    display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.about-prose ol > li {
    counter-increment: about-step; position: relative;
    background: var(--surface); border: 1px solid var(--border); border-radius: .9rem; box-shadow: var(--shadow);
    padding: 1.35rem 1.35rem 1.45rem 1.6rem; font-size: .95rem; line-height: 1.6;
}
.about-prose ol > li::before {
    content: counter(about-step, decimal-leading-zero); display: block; margin-bottom: .7rem;
    font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1;
    color: var(--blue); font-variant-numeric: tabular-nums;
}
.about-prose ol > li::after {
    content: ""; position: absolute; left: -1px; top: 1.1rem; bottom: 1.1rem; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--blue);
}
.about-prose ol > li > strong:first-child {
    display: block; margin-bottom: .45rem;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.15;
}

/* Bullets: the skewed speedbar square in Telemetry Blue. */
.about-prose ul, .faq-a ul {
    list-style: none; margin: .25rem 0 1.6rem; padding: 0; max-width: 46rem;
    display: flex; flex-direction: column; gap: .55rem;
}
.about-prose ul > li, .faq-a ul > li { position: relative; padding-left: 1.6rem; }
.about-prose ul > li::before, .faq-a ul > li::before {
    content: ""; position: absolute; left: .15rem; top: .62em; width: .5rem; height: .5rem;
    border-radius: 2px; background: var(--blue); transform: skewX(-18deg);
}

/* ---------- Side box ---------- */
.about-aside-label {
    margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 600; font-size: .7rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.about-toc {
    background: var(--surface); border: 1px solid var(--border); border-radius: .85rem;
    box-shadow: var(--shadow); padding: 1.1rem 1.2rem .6rem;
}
.about-toc a {
    display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0;
    border-top: 1px solid var(--border); color: var(--ink-soft); font-size: .92rem;
}
.about-toc a:hover, .about-toc a:focus-visible { color: var(--blue); }
.about-toc a span { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.about-aside-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: .85rem;
    padding: 1.1rem 1.2rem; font-size: .95rem; font-weight: 600; overflow-wrap: anywhere;
}
.about-aside-card .about-aside-label { margin-bottom: .4rem; }

/* ---------- FAQs ---------- */
.about-faqs { margin-top: 5.5rem; }
.about-faqs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.about-faqs-head .section-title { margin: 0; }
.about-kicker {
    margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 600; font-size: .75rem;
    letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.faq-toggle-all {
    min-height: 2.75rem; padding: 0 1rem; border-radius: .6rem; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--ink);
    font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
    transition: border-color .15s, color .15s;
}
.faq-toggle-all:hover, .faq-toggle-all:focus-visible { border-color: var(--blue); color: var(--blue); }
.faq-toggle-all:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 56rem; }
.faq {
    background: var(--surface); border: 1px solid var(--border); border-radius: .85rem; box-shadow: var(--shadow);
    transition: border-color .15s ease;
}
.faq:hover { border-color: var(--blue); }
.faq > summary {
    list-style: none; cursor: pointer; min-height: 44px;
    display: grid; grid-template-columns: 3rem minmax(0, 1fr) 2rem; align-items: center; gap: .75rem;
    padding: 1.15rem 1.35rem; border-radius: .85rem;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.faq-num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq-q { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.faq-icon {
    width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
}
.faq[open] .faq-num, .faq[open] .faq-icon { color: var(--blue); }
.faq[open] .faq-icon-v { display: none; }
.faq-a {
    margin: 0 1.35rem 0 5.1rem; padding: 0 0 1.35rem; border-top: 1px solid var(--border);
    color: var(--ink-soft); font-size: 1rem; line-height: 1.65;
}
.faq-a p { margin: 1.05rem 0 0; max-width: 44rem; text-wrap: pretty; }
.faq-a ul, .faq-a ol { margin-top: 1rem; margin-bottom: 0; }
.faq-a strong, .faq-a b { color: var(--ink); font-weight: 600; }

/* ---------- Contact and small print ---------- */
.about-contact {
    position: relative; overflow: hidden; margin-top: 4.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
/* The spotlight's blue-white-red top edge. */
.about-contact::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--blue), #fff 50%, var(--red));
}
.about-contact > div:first-child { max-width: 38rem; }
.about-contact-line { margin: 0; font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.about-contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.about-notes { margin-top: 4rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.about-notes p { margin: 0 0 1rem; max-width: 52rem; font-size: .82rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

@media (max-width: 40rem) {
    .about-page { padding-top: 2.25rem; }
    .about-layout { gap: 2.5rem; }
    .about-aside { max-width: none; }
    .about-prose h2 { margin-top: 3rem; }
    .faq > summary { grid-template-columns: 2rem minmax(0, 1fr) 1.75rem; align-items: start; gap: .6rem; padding: 1rem; }
    .faq-icon { width: 1.75rem; height: 1.75rem; }
    .faq-q { font-size: 1.02rem; }
    .faq-a { margin: 0 1rem; padding-bottom: 1.1rem; }
    .about-contact-actions { width: 100%; }
    .about-contact-actions .cta { flex: 1 1 auto; text-align: center; }
}
