/* BootGhost cartoon edition: the use-case pages (for.html, for-<slug>.html). Loaded after cartoon.css; uses its tokens only.
   make-for-editions.js writes the pages. The program sits on paper, like a theatre program. */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--brown); }
.crumbs a { color: inherit; }

.for-show { background: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem); }
.for-body { display: grid; gap: clamp(2.8rem, 6vw, 4.5rem); }
.for-body > *, .for-body section { min-width: 0; }
.for-body > section { display: grid; gap: 1rem; scroll-margin-top: 6rem; }
.for-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; color: var(--ivory); text-shadow: var(--title-outline); margin-bottom: .3rem; }
.for-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: var(--brown); margin-top: .8rem; }
.for-body p, .for-body li { max-width: 66ch; }
.for-body code { font-weight: 700; }
.for-intro { display: grid; gap: 1rem; }
.for-intro .answer { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--wheat); border: var(--line); border-radius: 99px; padding: .2em .9em; font-weight: 700; font-size: .95rem; }

/* the plan tables: sync-content.js writes their rows from use-cases.js and content.js. A table is a bill of seats */
.plans { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--ivory); border: var(--line); border-radius: 18px; overflow: hidden; font-variant-numeric: tabular-nums; }
.plans caption { caption-side: bottom; text-align: left; padding-top: .8rem; font-size: .9rem; }
.plans th, .plans td { padding: .8rem .9rem; border-top: 2px dashed var(--sole); text-align: left; vertical-align: middle; }
.plans thead th { border-top: 0; background: var(--wheat); font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.plans tbody th { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.plans tbody th small { display: block; font-family: var(--text); font-size: .85rem; font-weight: 600; color: var(--brown); }
.plans tbody th a { color: inherit; }
.plans .mono { font-family: var(--code); font-weight: 700; white-space: nowrap; }
.plans .cost { font-family: var(--display); font-size: 1.4rem; white-space: nowrap; }
.plans .cost i { font-style: normal; font-size: .7em; }
.plans .cost small { font-family: var(--text); font-size: .8rem; }
.plans td.buy { text-align: right; white-space: nowrap; }
.plans td.buy .btn { font-size: .95rem; padding: .45em 1em; }
.plans td.buy .btn + .btn { margin-left: .4rem; }

.code { margin: .6rem 0 0; font: 700 .9rem/1.55 var(--code); color: var(--ivory); background: var(--night); border: var(--line); border-radius: 12px; padding: .9rem 1rem; overflow-x: auto; white-space: pre; tab-size: 2; }
.guide { display: grid; gap: 1.1rem; padding-left: 1.5rem; margin: 0; }
.guide > li::marker { font-family: var(--display); color: var(--wheat-deep); }
.rules-box { background: var(--ivory); border: var(--line); border-radius: 18px; outline: 2px solid var(--ink); outline-offset: -12px; padding: 2rem 2.2rem; display: grid; gap: .8rem; max-width: 56rem; }
.rules-box h2 { color: var(--coral); }
.rules-box ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.mark-note { font-size: .92rem; font-style: italic; }
.link-arrow { font-weight: 700; }
.qa { background: var(--ink); color: var(--ivory); border-radius: 18px; padding: 1rem clamp(1.2rem, 3vw, 2rem); }
.qa details { border-top: 2px solid #4a4038; }
.qa details:first-child { border-top: 0; }
.qa summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--display); color: var(--wheat); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--wheat); }
.qa details p { margin: 0 0 1.1rem; color: #ddd3bd; }
.qa a { color: var(--wheat); }

@media (max-width: 760px) {
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; }
  .plans tbody tr { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .9rem 1rem; border-top: 2px dashed var(--sole); }
  .plans tbody tr:first-child { border-top: 0; }
  .plans tbody tr > * { border: 0; padding: 0; }
  .plans tbody th { flex-basis: 100%; }
  .plans td.buy { flex-basis: 100%; text-align: left; margin-top: .3rem; }
}
.for-intro { background: var(--ivory); border: var(--line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.2rem); }
.ruled { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.ruled li { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: .3rem 1.5rem; padding: .8rem 0; border-top: 2px dashed var(--sole); max-width: 52rem; }
.ruled li:last-child { border-bottom: 2px dashed var(--sole); }
.ruled strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
/* the network column of a wide table wraps, so the order buttons stay inside the bill */
.plans td.mono + td.mono + td.mono + td.mono { white-space: normal; }
.plans { overflow: visible; }
@media (max-width: 560px) { .ruled li { grid-template-columns: minmax(0, 1fr); } }
.code .c { color: var(--mint); }
.plans thead tr { background: var(--wheat); }
