/* Clean Up Congress PAC — shared site styles.
   Palette and type are the css-client-brands kit (kits/cleanupcongress/kit.yaml).
   Two rules that are not negotiable:
     1. No red and no blue anywhere. The absence of red is the fingerprint.
     2. Amber is a FIELD with ink on it, never type on white (1.7:1). */

:root {
    --ground: #FFFFFF;
    --ink: #0A0A0A;
    --accent: #F0C030;
    --accent-dark: #C99A1C;
    --signal: #FFD400;
    --band: #0A0A0A;
    --band-mute: #B5B5B5;
    --mute: #5A5A5A;
    --hair: #D9D9D9;
    --trust: #2B2B2B;

    --display: "Black Ops One", Impact, "Arial Black", sans-serif;
    --body: Tahoma, Verdana, Geneva, sans-serif;
    --mono: "Courier New", Courier, monospace;
}

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

body {
    font-family: var(--body);
    background: var(--ground);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: var(--accent);
    color: var(--ink);
    padding: 0.5rem 1rem;
    font-family: var(--mono);
    font-weight: 700;
}

/* The caution-tape rule — the kit's texture note, two colours at 45deg. */
.tape {
    height: 10px;
    background: repeating-linear-gradient(
        45deg,
        var(--accent) 0 14px,
        var(--ink) 14px 28px
    );
}

/* ---- Masthead ---------------------------------------------------------- */

.masthead {
    background: var(--band);
    padding: 1.25rem 2rem 0.75rem;
    text-align: center;
}

.masthead a {
    display: inline-block;
    text-decoration: none;
}

/* The wordmark asset already carries the "Political Action Committee" line
   and its own breathing room, so the band stays tight around it. */
.masthead img {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 0 auto;
}

/* ---- Shared page furniture --------------------------------------------- */

.stamp {
    display: inline-block;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    padding: 0.375rem 0.875rem;
}

.label {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    color: var(--mute);
}

.btn-donate {
    display: inline-block;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.0625rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.25rem;
    border-bottom: 4px solid var(--accent-dark);
    transition: background 0.15s;
}

.btn-donate:hover,
.btn-donate:focus {
    background: var(--signal);
}

.btn-note {
    margin-top: 0.9375rem;
    font-size: 0.8125rem;
    color: var(--mute);
}

/* ---- Home -------------------------------------------------------------- */

main {
    flex: 1;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem 2.5rem;
}

.hero h1 {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.875rem, 5.5vw, 3.125rem);
    line-height: 1.08;
    letter-spacing: 0.005em;
    max-width: 19ch;
    margin: 1.75rem 0 1.5rem;
}

.hero .lede {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--mute);
    max-width: 58ch;
    margin-bottom: 3rem;
}

/* The job — the email footer's REMOVE / RESTORE / HOLD bullets. */
.job {
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.job > .label {
    display: block;
    text-align: center;
    margin-bottom: 1.25rem;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.job-item {
    border: 1px solid var(--hair);
    border-top: 4px solid var(--ink);
    padding: 1.375rem 1.25rem 1.5rem;
}

.job-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 0.625rem;
}

.job-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--mute);
}

/* ---- How ---------------------------------------------------------------
   The email footer's "HOW?" line, on the same black field it sits on there.
   The highlighted clause uses the template's exact device: amber ground,
   ink type. */

.how {
    background: var(--band);
    padding: 3.25rem 2rem 3rem;
    text-align: center;
}

.how-q {
    font-family: var(--display);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.875rem;
}

.how-line {
    font-family: var(--display);
    font-size: clamp(1.375rem, 3.6vw, 2rem);
    line-height: 1.18;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #FFFFFF;
    max-width: 26ch;
    margin: 0 auto;
}

.how-note {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--band-mute);
    max-width: 48ch;
    margin: 1.625rem auto 0;
}

.how-note mark {
    background: var(--accent);
    color: var(--ink);
    font-weight: bold;
    padding: 0.1em 0.2em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ---- Call to action ---------------------------------------------------- */

.cta {
    text-align: center;
    padding: 3.5rem 2rem 4rem;
}

/* ---- Document pages (privacy, terms) ----------------------------------- */

.doc {
    max-width: 46rem;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
}

.doc-head {
    border-bottom: 1px solid var(--hair);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.doc h1 {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    line-height: 1.1;
    margin: 1.25rem 0 0.875rem;
}

.doc-effective {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--mute);
}

.doc section {
    margin-bottom: 2.75rem;
}

.doc h2 {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.125rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: 0.875rem;
}

.doc h3 {
    font-family: var(--body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    margin: 1.5rem 0 0.625rem;
}

.doc p,
.doc li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--trust);
}

.doc p + p { margin-top: 0.875rem; }

.doc ul {
    list-style: none;
    margin-top: 0.875rem;
}

.doc li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.doc li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
}

.doc a {
    color: var(--trust);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doc a:hover { color: var(--ink); }

.doc .callout {
    border-left: 4px solid var(--accent);
    background: #FAFAFA;
    padding: 1.125rem 1.25rem;
    margin-top: 1.25rem;
}

.doc .callout p { font-size: 0.9375rem; }

.doc table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--hair);
    margin-top: 1rem;
    font-size: 0.875rem;
}

.doc caption {
    caption-side: bottom;
    text-align: left;
    font-size: 0.75rem;
    color: var(--mute);
    padding-top: 0.5rem;
}

.doc th,
.doc td {
    text-align: left;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--hair);
    vertical-align: top;
}

.doc th {
    font-family: var(--body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    background: #F5F5F5;
}

.doc tbody tr:last-child td { border-bottom: 0; }

.table-scroll { overflow-x: auto; }

.doc-back {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--trust);
}

/* ---- Footer ------------------------------------------------------------ */

footer {
    background: var(--band);
    color: var(--band-mute);
    padding: 2.5rem 2rem 3rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-tagline {
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links a:focus-visible { outline-color: var(--accent); }

.fec-disclaimer-box {
    border: 1px solid var(--trust);
    background: #141414;
    padding: 0.9375rem 1.125rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--band-mute);
    text-align: center;
}

.fec-disclaimer-extra {
    margin-top: 1.125rem;
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--band-mute);
    text-align: center;
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 820px) {
    .job-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .how { padding: 2.5rem 1.5rem 2.25rem; }
    .cta { padding: 2.75rem 1.5rem 3rem; }
}

@media (max-width: 640px) {
    .masthead { padding: 1rem 1.5rem 0.5rem; }
    .masthead img { max-width: 300px; }
    .hero { padding: 3rem 1.5rem 2.75rem; }
    .doc { padding: 2.5rem 1.5rem 3rem; }
    .footer-links { flex-direction: column; gap: 0.875rem; text-align: center; }
    footer { padding: 2rem 1.5rem 2.5rem; }
}
