/* pack.css: the "Take it to your own AI" page.
   Loads after theme.css and uses its tokens, wrap, sections, steps and footer.
   Mobile first, 16px side gutter. */

.pack-head { padding: 0 0 8px; }

/* the navy bar: the site name linking home */
.pack-back { margin: 0 0 40px; padding: 14px 0; font-size: 0.95rem; }
.pack-back a:hover { text-decoration: underline; }

.pack-title {
    margin: 0;
    font: 700 clamp(2rem, 8vw, 3.75rem)/1.05 var(--serif);
    letter-spacing: -0.02em;
    color: var(--navy);
}

.pack-head .what { margin-top: 20px; max-width: 46rem; }
.pack-head .what + .what { margin-top: 12px; }

/* ---------- download ---------- */

.download { padding-top: 48px; }

.download-main { margin: 0; }
.download-link {
    display: inline-block;
    padding: 12px 22px;
    background: var(--green);
    color: #ffffff;
    border: 2px solid var(--green);
    border-radius: var(--radius-sm);
    font: 700 1.1rem/1.2 var(--sans);
    text-decoration: none;
}
.download-link:hover { background: var(--green-dark); border-color: var(--green-dark); color: #ffffff; }
.download-size { color: var(--muted); }

.download-sub { margin: 12px 0 0; max-width: 44rem; color: var(--muted); }

.check {
    margin-top: 32px;
    padding: 18px 22px 20px;
    max-width: 46rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.check-title { margin: 0 0 8px; font: 700 1.15rem/1.3 var(--serif); }
.check-line { margin: 8px 0 0; }
.check-hash { margin: 8px 0 0; }

code {
    font: 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}
.check-hash code {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    word-break: break-all;
    user-select: all;
}

/* ---------- prose ---------- */

.para { margin: 0 0 14px; max-width: 44rem; }
.note { margin: 20px 0 0; max-width: 44rem; color: var(--muted); }

.plain { margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.plain li { padding: 10px 0; border-top: 1px solid var(--line); }
.plain li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- the warning before the steps ---------- */

.warn-section { padding-top: 40px; }
.warning {
    max-width: 46rem;
    padding: 18px 22px 20px;
    background: var(--note-bg);
    border: 1px solid var(--note-line);
    border-left-width: 6px;
    border-radius: var(--radius);
}
.warning-title { margin: 0 0 8px; font: 700 1.15rem/1.3 var(--serif); color: var(--navy); }
.warning p { margin: 0; }

/* the button that opens a draft mail to the security team */
.mail { margin: 22px 0 0; }
.mail + .note { margin-top: 10px; }

/* ---------- file table ---------- */

.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.files { width: 100%; min-width: 34rem; border-collapse: collapse; }
.files th,
.files td {
    padding: 10px 12px 10px 0;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: baseline;
}
.files th { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.files tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.files .num { text-align: right; white-space: nowrap; padding-right: 0; }
.files td:first-child { overflow-wrap: anywhere; }

@media (min-width: 40rem) {
    .pack-head .pack-title { margin-top: 8px; }
    .download { padding-top: 64px; }
}
