/* Startup DocBot — Legal Documents. The shared look (colors, header, framed panel, buttons, input boxes) is in
   ../theme.css, loaded first. Layout from the Founder's Journey Document Builder: a working column of questions beside
   a step list, and a paper-like preview of the generated document. */
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }

.wrap { max-width: 1140px; }
.disclaim { font-family: var(--mono); font-size: 14px; letter-spacing: .03em; color: var(--ink-2); margin: -4px 0 18px; padding-bottom: 12px; border-bottom: 1.5px solid var(--tan); }
#view > h1 { font-size: 38px; margin: 10px 0 10px; }
@media (max-width: 480px) { #view > h1 { font-size: 30px; } }
.lede { max-width: 65ch; color: var(--ink-2); margin: 0 0 16px; font-size: 18px; }
.notice { background: var(--card); border: 1.5px solid var(--ink); border-left: 6px solid var(--arrow); padding: 12px 14px; border-radius: 6px; max-width: 72ch; margin: 0 0 16px; font-size: 15.5px; color: var(--ink-2); }
.notice .btn { margin: 10px 10px 0 0; }
.btn { font-size: 14px; padding: 10px 18px; }

/* home: one card per document, like the home page's cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0 30px; }
.cards > .card:first-child { grid-column: 1 / -1; } /* Legal details, which every document uses, across the top */
/* a link from the home page to a document this company's list leaves out: 1 line, across the list, where the document would be */
.cards > .not-here { grid-column: 1 / -1; max-width: none; margin: 0; font-size: 17px; color: var(--ink); scroll-margin: 24px; }
.cards > .not-here:focus { outline: none; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  box-shadow: 4px 5px 0 0 var(--card-under), 4px 5px 0 2px var(--ink); }
.card h2 { font-size: 26px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card .meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ink-3); margin-top: auto; }
.pill { display: inline-block; white-space: normal; max-width: 100%; padding: 2px 8px; border-radius: 4px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid var(--ink-3); color: var(--ink-3); }
.pill.ok { color: var(--green); border-color: var(--green); }
.pill.warn { color: var(--amber); border-color: var(--amber); }

/* questionnaire */
.q-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .q-layout { grid-template-columns: 1fr; gap: 14px; } }
.steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 12px; align-self: start; }
.steps li { border-left: 3px solid var(--rule); font-size: 15px; color: var(--ink-3); }
.steps li button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px 10px; cursor: pointer; }
.steps li button:hover { color: var(--ink); }
.steps li button:focus-visible { outline: 3px solid var(--arrow); outline-offset: -3px; }
.steps li.active { border-color: var(--arrow); color: var(--ink); font-weight: 500; background: rgba(247, 233, 201, .7); }
.steps li.done { border-color: var(--green); color: var(--ink-2); }
.steps li .n { font-family: var(--mono); font-size: 13px; margin-right: 6px; }
@media (max-width: 760px) { .steps { display: flex; overflow-x: auto; gap: 6px; position: static; padding-bottom: 6px; } .steps li { border-left: 0; border-bottom: 3px solid var(--rule); white-space: nowrap; background: none; } .steps li.active { border-color: var(--arrow); background: none; } }
.section { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 22px 24px; }
@media (max-width: 600px) { .section { padding: 16px 14px; } }
.section h2 { font-size: 28px; margin-bottom: 6px; }
.section .intro { color: var(--ink-2); margin: 0 0 18px; max-width: 65ch; }
.q { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--rule); }
.q:first-of-type { border-top: 0; }
.q label.lbl { font-weight: 500; font-size: 18px; }
.q .help { color: var(--ink-3); font-size: 15px; max-width: 65ch; margin: 0; }
.q .from { color: var(--teal-ink); font-size: 14.5px; margin: 0; }
.q .from.own { color: var(--ink-2); }
.q .req { color: var(--red); font-weight: 500; }
.q input[type=text], .q input[type=email], .q input[type=url], .q input[type=number], .q input[type=date], .q select, .q textarea {
  padding: 10px 12px; width: 100%; max-width: 560px; font-size: 17px; min-width: 0; }
.q textarea { min-height: 88px; resize: vertical; }
.q .choices { display: flex; flex-direction: column; gap: 8px; }
.q .choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--field); max-width: 560px; cursor: pointer; }
.q .choice:hover { background: #fff7e6; }
.q .choice:has(input:checked) { background: var(--tile); color: var(--cream); }
.q .choice:has(input:checked) .ch { color: var(--cream-2); }
.q .choice input { margin-top: 4px; accent-color: var(--tile); width: 17px; height: 17px; flex: none; }
.q .choice:has(input:checked) input { accent-color: var(--cream); }
.q .choice .ch { font-size: 14px; color: var(--ink-3); }
.choice:focus-within { outline: 3px solid var(--arrow); outline-offset: 1px; }
.repeat { display: flex; flex-direction: column; gap: 12px; }
.item { border: 1.5px dashed var(--ink-3); border-radius: var(--radius); padding: 12px; }
.item .item-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.item .q { padding: 8px 0; }
.item .rm { background: none; border: 0; color: var(--red); cursor: pointer; text-decoration: underline; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
.nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.shared-note { font-size: 14px; color: var(--ink-2); background: var(--card-under); padding: 7px 11px; border-radius: 5px; display: inline-block; }

/* review + preview: the document is a sheet of white paper on the panel */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
@media (max-width: 860px) { .review { grid-template-columns: 1fr; } .review .side { order: -1; position: static; } }
.paper { background: #fff; color: #111; border: 1px solid #b9a882; border-radius: 3px; padding: 40px 44px; font-family: Arial, 'Helvetica Neue', sans-serif; font-size: 14px; line-height: 1.45; max-width: 100%; overflow-x: auto; box-shadow: 4px 5px 0 rgba(20, 38, 44, .18); }
@media (max-width: 600px) { .paper { padding: 22px 16px; } .pill { white-space: normal; } .paper table { table-layout: fixed; font-size: 12px; } .paper th, .paper td { padding: 4px 5px; overflow-wrap: break-word; hyphens: auto; } }
.paper h1 { font-family: Arial, sans-serif; font-size: 19px; font-weight: bold; margin: 0 0 14px; letter-spacing: 0; }
.paper h2 { font-family: Arial, sans-serif; font-size: 15px; font-weight: bold; margin: 18px 0 6px; letter-spacing: 0; }
.paper h3 { font-family: Arial, sans-serif; font-size: 14px; font-weight: bold; margin: 12px 0 4px; letter-spacing: 0; }
.paper p { margin: 0 0 9px; }
.paper .small { font-size: 12px; color: #444; }
.paper table { border-collapse: collapse; width: 100%; margin: 6px 0 12px; font-size: 13px; }
.paper th, .paper td { border: 1px solid #bbb; padding: 5px 7px; vertical-align: top; text-align: left; }
.paper th { background: #eee; }
.paper .box { background: #f1f1f1; border: 1px solid #ccc; padding: 10px 12px; margin: 0 0 12px; }
.paper ul, .paper ol { margin: 0 0 9px 22px; padding: 0; }
.paper .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0; }
@media (max-width: 600px) { .paper .sig { grid-template-columns: 1fr; } }
.paper .missing { background: #fff0a3; color: #5a4a00; padding: 0 3px; border-radius: 2px; font-weight: 600; }
.paper .pb { border-top: 1px dashed #bbb; margin: 18px 0; height: 0; }
.side { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 12px; }
.side .card { gap: 8px; }
.side .card h2 { font-size: 22px; }
.side ul { margin: 0; padding-left: 18px; font-size: 15px; }
.side li { margin: 3px 0; }
.status { font-size: 15px; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.linkbtn.small { padding: 0 2px; }
@media (max-width: 600px) {
  .card { box-shadow: 3px 4px 0 0 var(--card-under), 3px 4px 0 2px var(--ink); margin-right: 5px; }
  /* the 4 header links on one row */
  .top .right { width: 100%; justify-content: space-between; }
  .top .linkbtn { font-size: 12.5px; letter-spacing: 0; padding: 8px 4px; }
}
.footer { margin-top: 40px; padding-top: 14px; border-top: 1.5px solid var(--tan); color: var(--ink-3); font-size: 14px; max-width: 72ch; }
/* On a phone, a table of 4 or more columns becomes 1 card per row, each value under its column's name */
@media (max-width: 600px) {
  .paper table:has(col:nth-child(4)), .paper table:has(col:nth-child(4)) tbody, .paper table:has(col:nth-child(4)) tr, .paper table:has(col:nth-child(4)) td { display: block; width: auto; }
  .paper table:has(col:nth-child(4)) tr:first-child { display: none; }
  .paper table:has(col:nth-child(4)) tr { border: 1px solid #bbb; margin: 0 0 8px; padding: 6px 10px; }
  .paper table:has(col:nth-child(4)) td { border: 0; padding: 2px 0; }
  .paper table:has(col:nth-child(4)) td:empty { display: none; }
  .paper table:has(col:nth-child(4)) td::before { content: attr(data-label) ": "; font-weight: bold; }
  .paper table:has(col:nth-child(4)) td[data-label="#"] { display: inline; font-weight: bold; padding: 0; }
  .paper table:has(col:nth-child(4)) td[data-label="#"]::before { content: none; }
  .paper table:has(col:nth-child(4)) td[data-label="#"]::after { content: "."; }
  .paper table:has(col:nth-child(4)) td[data-label="#"] + td { display: inline; padding-left: 4px; }
  .paper table:has(col:nth-child(4)) td[data-label="#"] + td::before { content: none; }
}
/* long links in help text wrap instead of widening the page on a phone */
.q .help, .calc { overflow-wrap: anywhere; }
/* A "Source:" line at the end of a question's help: set apart below a thin rule, 3 points smaller (Clark, Nov 1, 2026) */
.q .help.source { font-size: 12px; margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--rule); }
/* Labeled lists under a question (PL.5's Who and What), visible without opening the help */
.qlists { display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: 65ch; }
.qlist { min-width: 220px; flex: 1 1 220px; }
.qlist .qlist-h { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
.qlist ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.qlist li { margin: 2px 0; }
/* "Words you'll see": a collapsed list of terms under a generator's intro */
details.words { max-width: 65ch; margin: -6px 0 18px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--card); padding: 8px 14px; }
details.words summary { cursor: pointer; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
details.words dl { margin: 10px 0 4px; }
details.words dt { font-weight: 500; margin-top: 8px; }
details.words dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
/* A stop page: what DocBot found, why it stops, what to do next */
.card.stop { max-width: 72ch; border-left: 6px solid var(--arrow); }
.card.stop p { font-size: 16.5px; color: var(--ink); }
.card.stop .btn { align-self: flex-start; }
/* the funding page's "Rounds already recorded" and "Loans already recorded" box */
details.recorded { max-width: none; }
details.recorded .rec-item { border-top: 1.5px solid var(--rule, #d8cfb8); padding: 12px 0 4px; margin-top: 8px; }
details.recorded .rec-item h3 { font-size: 17px; margin: 0 0 4px; }
details.recorded .rec-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 8px 0; }
details.recorded .rec-field { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-2); }
details.recorded .rec-field input, details.recorded .rec-field select { min-width: 9em; }
details.recorded .rec-amt { font-family: 'Rubik', sans-serif; font-size: 15px; padding-bottom: 8px; min-width: 6em; }
details.recorded .help { font-size: 14.5px; color: var(--ink-2); margin: 4px 0; }
@media (max-width: 640px) { details.recorded .rec-field { flex: 1 1 45%; } details.recorded .rec-field input, details.recorded .rec-field select { min-width: 0; width: 100%; } }
details.recorded .help.warn { color: var(--arrow, #b5432a); }
