/* DepletionIQ Answers section (/answers and /answers/<slug>).
   Layered on /css/site.css. Pages are generated by tools/build_answers.py. */

/* ---------- Hub ---------- */
.ans-group[hidden], .ans-list li[hidden], .ans-empty[hidden] { display: none !important; }
.ans-hub-head { padding-bottom: 56px; }
.ans-hub-title { margin: 0 0 20px; max-width: 18ch; color: var(--ink-2); font-weight: 700; }
.ans-hub-lede { font-size: 1.1875rem; line-height: 1.6; color: var(--oak-55); margin: 0 0 32px; max-width: 640px; }
.ans-search { max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.ans-search label { font-size: 14px; font-weight: 600; color: var(--oak-70); }
.ans-search input {
  height: 56px; padding: 0 18px; font: inherit; font-size: 17px;
  border: 1px solid var(--ink-15); border-radius: var(--radius);
  background: #fff; color: var(--ink-2);
}
.ans-search input:focus { outline: 2px solid var(--amber); outline-offset: 2px; border-color: var(--amber); }
.ans-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ans-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink-15); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; background: #fff;
}
.ans-chip:hover { border-color: var(--oak); background: var(--oak); color: #fff; }

.ans-hub-list { padding: 72px 0 88px; }
.ans-group { display: grid; grid-template-columns: 1fr; gap: 16px 56px; scroll-margin-top: 96px; }
.ans-group + .ans-group { margin-top: 64px; }
@media (min-width: 900px) { .ans-group { grid-template-columns: 1fr 2fr; } }
.ans-group-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink-2); }
.ans-group-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ans-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ans-list li { border-bottom: 1px solid var(--line); }
.ans-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 44px; padding: 17px 2px; text-decoration: none;
  color: var(--ink-2); font-size: 1.0625rem; font-weight: 500; line-height: 1.4;
}
.ans-list a svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber); transition: transform .2s ease; }
.ans-list a:hover { color: var(--amber); }
.ans-list a:hover svg { transform: translateX(3px); }
.ans-empty { font-size: 17px; color: var(--oak-70); margin: 0; }
.ans-empty a { color: var(--amber); font-weight: 600; }

.ans-ask { padding: 64px 0; }
.ans-ask h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink-2); }
.ans-ask p { margin: 0; color: var(--oak-70); font-size: 17px; }
.ans-ask a { color: var(--amber); font-weight: 600; text-decoration: none; }

/* ---------- Single answer ---------- */
.ans-page { padding-bottom: 96px; }
.ans-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.ans-article { flex: 999 1 560px; min-width: 0; max-width: 740px; }
.ans-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1000px) { .ans-aside { position: sticky; top: 96px; } }

.ans-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.ans-crumbs a { color: var(--muted); text-decoration: none; }
.ans-crumbs a:hover { color: var(--amber); }
.ans-title { margin: 0 0 14px; }
.ans-byline { margin: 0 0 32px; font-size: 14px; color: var(--muted); }

.ans-short {
  background: #F7F4EE; border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 28px; margin-bottom: 40px;
}
.ans-short p { margin: 0; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }
.ans-short strong { font-weight: 700; }

.ans-body { font-size: 1.0625rem; line-height: 1.72; color: var(--ink); }
.ans-body h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink-2); margin: 40px 0 12px; }
.ans-body h2:first-child { margin-top: 0; }
.ans-body p { margin: 0 0 18px; }
.ans-body ul, .ans-body ol { margin: 0 0 18px; padding-left: 24px; }
.ans-body li { margin-bottom: 6px; }
.ans-body strong { color: var(--ink-2); font-weight: 650; }
.ans-body a, .ans-longer a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(180,83,9,0.3); }
.ans-body a:hover, .ans-longer a:hover { border-bottom-color: var(--amber); }

.ans-related { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; }
.ans-related h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; color: var(--ink-2); }
.ans-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ans-related a { color: var(--amber); font-weight: 500; text-decoration: none; }
.ans-related a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ans-longer { margin: 28px 0 0; font-size: 15px; color: var(--muted); }

.ans-cta-card { border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: var(--shadow-card); }
.ans-cta-card h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--ink-2); }
.ans-cta-card p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--oak-70); }
.ans-more h2 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--ink-2); }
.ans-more ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ans-more li { border-bottom: 1px solid var(--line); }
.ans-more a { display: block; padding: 12px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.ans-more a:hover { color: var(--amber); }
.ans-more a.ans-all { color: var(--amber); font-weight: 600; }

/* ---------- Homepage band ---------- */
#answers-home .ans-home-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 960px) { #answers-home .ans-home-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
#answers-home .section-head { margin-bottom: 0; }
#answers-home .ans-search { margin-top: 28px; }
#answers-home .ans-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
#answers-home .ans-search-row input { flex: 1 1 240px; min-width: 0; }
#answers-home .ans-browse { display: inline-block; margin-top: 20px; color: var(--amber); font-weight: 600; text-decoration: none; }
#answers-home .ans-browse:hover { text-decoration: underline; text-underline-offset: 4px; }
#answers-home .ans-list small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 3px; }

/* ---------- Hub search results ----------
   While a search is active the header compacts and results sit directly
   under the search box, so a visitor never has to scroll to find them. */
.ans-results { max-width: 760px; margin-top: 24px; }
.ans-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ans-results-count { margin: 0; font-size: 15px; font-weight: 600; color: var(--oak-70); }
.ans-clear { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--amber); cursor: pointer; }
.ans-clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.ans-results-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ans-results-list li { border-bottom: 1px solid var(--line); }
.ans-results-list a { display: flex; flex-direction: column; gap: 4px; padding: 18px 2px; text-decoration: none; }
.ans-results-list a:hover .ans-r-title { color: var(--amber); }
.ans-r-title { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.ans-r-topic { font-size: 13px; color: var(--muted); }
.ans-r-short { font-size: 15px; line-height: 1.55; color: var(--oak-70);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ans-results-empty { font-size: 16px; color: var(--oak-70); margin: 12px 0 0; }
.ans-results-empty a { color: var(--amber); font-weight: 600; }

body.ans-searching .ans-hub-head { padding-top: 40px; padding-bottom: 48px; }
body.ans-searching .ans-hub-head h1.ans-hub-title { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: none; margin-bottom: 20px; }
body.ans-searching .ans-hub-lede,
body.ans-searching .ans-chips,
body.ans-searching .ans-hub-list { display: none; }
.ans-results-tip { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #F7F4EE; font-size: 15px; color: var(--ink-2); }
.ans-results-tip a { color: var(--amber); font-weight: 600; }
