/* Support pages (Careers, legal, feedback) and the Contact page share this
   hero. The body below it is editor content on the Support template. */

/* ── Hero ── */
.support-hero {
    margin-top: calc(-1 * var(--nav-height));
    padding: calc(var(--nav-height) + clamp(4.5rem, 8vw, 7.5rem)) var(--page-gutter) clamp(3rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, var(--white), rgba(237, 233, 255, 0.48));
}
.support-hero h1 {
    max-width: 47.5rem;
    color: var(--text-muted);
    text-wrap: balance;
}
.support-intro {
    max-width: 40.5rem;
    margin-top: 1.2rem;
    color: var(--text);
    line-height: 1.75;
}

/* Pill links in the hero: first filled, the rest outlined. */
.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.support-action {
    display: inline-flex;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 200ms ease, color 200ms ease;
}
.support-action:first-child {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}
.support-action:hover,
.support-action:focus-visible {
    border-color: var(--violet-deep);
    background: var(--violet-deep);
    color: var(--white);
}

/* ── Body ── */
.support-body {
    padding: clamp(3rem, 6vw, 5rem) var(--page-gutter) clamp(4rem, 7vw, 6rem);
    background: var(--white);
}
.support-body.has-toc {
    display: grid;
    grid-template-columns: minmax(11.25rem, 15rem) minmax(0, 51.25rem);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}
.support-copy { max-width: 51.25rem; }

/* Sticky section list for long policy documents. */
.support-toc {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    padding-left: 1rem;
    border-left: 2px solid var(--teal);
}
.support-toc-title {
    margin-bottom: 0.8rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.support-toc ol {
    display: grid;
    gap: 0.42rem;
}
.support-toc a {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}
.support-toc a:hover,
.support-toc a:focus-visible { color: var(--violet-deep); }

.support-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
    margin-bottom: 2.2rem;
    padding: 1rem 1.15rem;
    background: rgba(237, 233, 255, 0.48);
    font-size: 0.7rem;
    line-height: 1.5;
}
.support-meta div { display: grid; }
.support-meta dt {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.support-meta dd { color: var(--text-strong); }

/* ── Editor content ── */
.support-copy h2 {
    margin-bottom: 1rem;
    font-size: 1.65rem;
}
/* Each H2 after the first opens a new section. Handoff spacing; the rule is
   violet rather than the handoff's 13% navy, which vanished on white. */
.support-copy h2:not(:first-child) {
    margin-top: 2.6rem;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(172, 129, 242, 0.38);
}
.support-meta + h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.support-copy h3 {
    margin: 1.6rem 0 0.6rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}
.support-copy p,
.support-copy li {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.75;
}
/* The handoff keeps the browser's default 1em below paragraphs and lists; the
   theme reset removes it, so put it back here. */
.support-copy p,
.support-copy ul,
.support-copy ol { margin-bottom: 1em; }
.support-copy p + p { margin-top: 0; }
.support-copy ul,
.support-copy ol {
    margin-left: 1.2rem;
    list-style: disc;
}
.support-copy ol { list-style: decimal; }
.support-copy li + li { margin-top: 0.35rem; }
.support-copy p a,
.support-copy li a {
    text-decoration: underline;
    text-decoration-color: rgba(37, 42, 76, 0.32);
    text-underline-offset: 0.16em;
}
.support-copy p a:hover,
.support-copy li a:hover { color: var(--violet-deep); }
.support-copy strong { font-weight: 500; }

.support-copy table {
    width: 100%;
    margin-bottom: 1em;
    border-collapse: collapse;
    font-size: 0.84rem;
    line-height: 1.6;
}
.support-copy th,
.support-copy td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-align: left;
    vertical-align: top;
}
.support-copy th {
    color: var(--navy);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.support-copy td:first-child { color: var(--text-strong); }

/* Pill link: give an <a> the class "button" in the editor's Text tab. */
.support-copy .button {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 200ms ease;
}
.support-copy .button:hover,
.support-copy .button:focus-visible { background: var(--violet-deep); color: var(--white); }

/* Document scale from the handoff's policy-page.css, used with the section list. */
.has-toc .support-copy h2 {
    color: var(--text-strong);
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 1.2;
}
.has-toc .support-copy h3 {
    margin: 1.35rem 0 0.5rem;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.has-toc .support-copy p,
.has-toc .support-copy li { font-size: 0.84rem; }
.has-toc .support-copy ul {
    display: grid;
    gap: 0.45rem;
}
.has-toc .support-copy li + li { margin-top: 0; }

@media (max-width: 900px) {
    .support-body.has-toc { grid-template-columns: 1fr; }
    .support-toc { position: static; }
    .support-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .support-toc ol { grid-template-columns: 1fr; }
}
