/* Free stuff page: downloads, prompts, the Vault and guides on one page. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.free-page .free-section, .free-page .anchor { scroll-margin-top: 16px; }
.free-page .prompt { scroll-margin-top: 16px; }

.free-jump { margin-top: 18px; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line-soft); }
.free-jump ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.free-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.free-jump a:hover { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }

.free-section { padding-top: 32px; }
.free-h2 { font: 800 26px/1.15 var(--display); letter-spacing: -0.01em; }
@media (min-width: 900px) { .free-h2 { font-size: 32px; } }
.free-h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; background: var(--orange-fill); }
.free-lede { margin-top: 12px; max-width: 46rem; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

/* Situation chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* Phones: one row of chips that scrolls sideways */
@media (max-width: 599px) {
    .chips { flex-wrap: nowrap; overflow-x: auto; margin: 16px -16px 0; padding: 2px 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; white-space: nowrap; }
}
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.chip:focus-visible, .btn-copy:focus-visible, .prompt summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.prompt-count { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* Prompts as an index of collapsible rows */
.prompts { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
@media (min-width: 900px) { .prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; } }
.prompt { border-bottom: 1px solid var(--line-soft); }
.prompt[hidden] { display: none; }
.prompt summary { display: grid; gap: 2px; padding: 14px 32px 14px 0; cursor: pointer; list-style: none; position: relative; }
.prompt summary::-webkit-details-marker { display: none; }
.prompt summary::after {
    content: "+"; position: absolute; right: 2px; top: 12px; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--body); color: var(--ink);
}
.prompt details[open] summary::after { content: "\2212"; background: var(--ink); color: var(--cream); }
.prompt-meta { font-size: 13px; color: var(--ink-soft); }
.prompt-meta .free-type { margin-left: 6px; margin-right: 0; font-size: 11px; padding: 1px 6px; background: var(--orange-fill); color: var(--ink); }
.prompt-title { font: 700 19px/1.3 var(--body); color: var(--ink); }
.prompt summary:hover .prompt-title { text-decoration: underline; text-decoration-color: var(--orange-fill); text-decoration-thickness: 2px; }
.prompt-use { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.prompt-body { padding: 0 0 4px; }
.prompt-text {
    margin: 0; padding: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
    box-shadow: 3px 3px 0 var(--orange-fill); white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
    font: 400 15px/1.55 var(--body); color: var(--ink); max-height: 22rem; overflow-y: auto;
}
.prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }
.prompt details[open] + .prompt-actions { margin-top: 14px; }
.btn-copy {
    min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--orange-fill);
    color: var(--ink); font: 700 15px var(--body); cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.btn-copy:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-copy.done { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--orange-fill); }
.prompt-src a, .prompt-link { color: var(--ink); font-weight: 600; }
.prompt-link { margin-left: auto; }
.prompt:target summary .prompt-title { color: var(--orange-text); }
