/* Answers for actors (/answers/*, /glossary). Layered on styles.css, which
   supplies the tokens, header, footer and buttons. Built by web-src/build.py;
   bump CSS_V there when this file changes. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ans .ans-wrap { max-width: 760px; padding-top: 44px; padding-bottom: 56px; }

.ans-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ash); margin-bottom: 18px; }
.ans-crumbs a { color: var(--ink-dim); text-decoration: none; }
.ans-crumbs a:hover { color: var(--navy); }

.ans h1 {
  font-size: clamp(34px, 5.4vw, 52px); line-height: 1.06; letter-spacing: -0.035em;
  font-weight: 800; margin-bottom: 14px;
}
.ans-meta { font-size: 14px; color: var(--ash); margin-bottom: 28px; }
.ans-lede { font-size: 19px; line-height: 1.55; color: var(--ink-dim); max-width: 60ch; margin-bottom: 26px; }

/* The answer itself, first, on white paper. This box is what a reader came
   for and what a search engine lifts, so it sits above everything else. */
.ans-short {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--shadow-card); padding: 22px 26px 24px; margin-bottom: 30px;
  border-left: 4px solid var(--navy);
}
.ans-short-label { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ans-short p:last-child { font-size: 19px; line-height: 1.55; color: var(--ink); }

.ans-toc { margin: 0 0 34px; padding: 18px 22px; border-radius: 14px; background: var(--band); }
.ans-toc p { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ans-toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 32px; }
.ans-toc li { font-size: 15px; line-height: 1.45; margin-bottom: 6px; color: var(--ash); break-inside: avoid; }
.ans-toc a { color: var(--ink-dim); text-decoration: none; }
.ans-toc a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .ans-toc ol { columns: 1; } }

.ans-body h2 {
  font-size: clamp(25px, 3.4vw, 31px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800;
  margin: 46px 0 14px; scroll-margin-top: 84px;
}
.ans-body h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; margin: 28px 0 8px; }
.ans-body p, .ans-body li, .ans-body dd { font-size: 18px; line-height: 1.68; color: var(--ink-dim); }
.ans-body p { margin-bottom: 18px; }
.ans-body b, .ans-body strong { color: var(--ink); font-weight: 650; }
.ans-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.ans-body ul, .ans-body ol { margin: 0 0 20px 24px; }
.ans-body li { margin-bottom: 8px; }
.ans-body blockquote { border-left: 3px solid var(--hairline); padding: 4px 0 4px 18px; margin: 0 0 20px; }
.ans-body dl { margin: 0 0 22px; }
.ans-body dt { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 16px; }
.ans-body dd { margin: 4px 0 0; }

.ans-body table { width: 100%; border-collapse: collapse; margin: 6px 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.ans-body th, .ans-body td { border: 1px solid var(--hairline); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--ink-dim); line-height: 1.45; }
.ans-body th { background: var(--band); color: var(--ink); font-weight: 700; }
.ans-body caption { caption-side: bottom; font-size: 14px; color: var(--ash); padding-top: 8px; text-align: left; }

/* Original example scenes, set the way a script page is set. */
.ans-body pre.scene {
  font-family: var(--script); font-size: 15.5px; line-height: 1.5; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  padding: 26px 28px; margin: 4px 0 26px; white-space: pre-wrap; overflow-x: auto;
  box-shadow: var(--shadow-card);
}
@media (prefers-color-scheme: dark) { .ans-body pre.scene { background: #fff; color: #17181b; border-color: #fff; } }

.ans-faq h3 { margin-top: 24px; }

.ans-related { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--hairline); }
.ans-related h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.ans-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ans-card, .ans-gloss-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 18px 18px 20px; box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ans-card:hover, .ans-gloss-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.ans-card-q, .ans-q { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.ans-card-a, .ans-a {
  font-size: 14.5px; line-height: 1.5; color: var(--ash);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ans-all { margin-top: 22px; font-size: 15px; color: var(--ash); }
.ans-all a { color: var(--navy); text-decoration: none; font-weight: 600; }

/* The one place the app speaks: a quiet card after the answer. */
.ans-app { border-top: 1px solid var(--hairline); background: var(--band); }
.ans-app-inner { max-width: 760px; display: flex; align-items: center; gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.ans-app-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: var(--shadow-card); }
.ans-app-copy { flex: 1; }
.ans-app-name { font-size: 18px; font-weight: 800; font-style: italic; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 2px; }
.ans-app-copy p:last-child { font-size: 15.5px; line-height: 1.5; color: var(--ink-dim); }
.ans-app .btn { background: var(--navy); color: #fff; padding: 13px 22px; font-size: 15px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .ans-app .btn { color: #101423; } }
@media (max-width: 640px) {
  .ans-app-inner { flex-wrap: wrap; }
  .ans-app-copy { flex-basis: calc(100% - 84px); }
  .ans-app .btn { width: 100%; justify-content: center; }
}

/* Hub */
.ans-search { display: block; margin-bottom: 18px; }
.ans-search input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 14px 20px; box-shadow: var(--shadow-card); outline: none;
  -webkit-appearance: none; appearance: none;
}
.ans-search input:focus { border-color: var(--navy); }
.ans-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ans-jump a {
  font-size: 14px; font-weight: 600; color: var(--ink-dim); text-decoration: none;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface);
}
.ans-jump a:hover { color: var(--navy); border-color: var(--navy); }
.ans-empty { color: var(--ash); margin: 18px 0; }
.ans-empty a { color: var(--navy); }
.ans-cat { margin-top: 44px; scroll-margin-top: 84px; }
.ans-cat h2 { font-size: clamp(25px, 3.4vw, 31px); font-weight: 800; letter-spacing: -0.025em; }
.ans-cat-blurb { color: var(--ash); font-size: 16px; margin: 4px 0 14px; }
.ans-list { list-style: none; border-top: 1px solid var(--hairline); }
.ans-list li { border-bottom: 1px solid var(--hairline); }
.ans-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 2px; text-decoration: none; }
.ans-list a:hover .ans-q { color: var(--navy); }
.ans-list .ans-a { -webkit-line-clamp: 2; }
.ans-gloss-card { margin-top: 48px; border-left: 4px solid var(--navy); }

/* Glossary */
.gl-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; position: sticky; top: 68px; z-index: 2;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 8px 0; }
.gl-az a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink-dim); text-decoration: none; }
.gl-az a:hover { background: var(--surface); color: var(--navy); }
.gl-letter { scroll-margin-top: 130px; }
.gl-letter h2 { font-size: 30px; font-weight: 800; color: var(--navy); margin: 34px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); }
.gl-item { padding: 14px 0; border-bottom: 1px solid var(--hairline); scroll-margin-top: 130px; }
.gl-item:target { background: color-mix(in srgb, var(--navy) 7%, transparent); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.gl-item dt { font-size: 18px; font-weight: 700; }
.gl-anchor { color: var(--ink); text-decoration: none; }
.gl-aka { font-size: 14px; font-weight: 500; color: var(--ash); margin-left: 6px; }
.gl-item dd { font-size: 16.5px; line-height: 1.6; color: var(--ink-dim); margin-top: 4px; }
.gl-see { color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; margin-left: 4px; }
.gl-see::after { content: " \2192"; }
