/* A focused reading layout, shared by the home and dedicated answer views. */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.answer-section { padding: 48px 24px 56px; background: #f7f6f2; scroll-margin-top: 16px; }
.answer-wrap,
.owner-page .page .answer {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid #cfd6cd;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  position: relative;
}
.owner-page .page .answer { margin: 28px 0; }
.answer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; margin: 0 0 16px; padding: 0; border: 0; color: #69756c; font-size: 12px; line-height: 1.5; }
.answer-top .answer-library-title { margin: 0; color: inherit; font-size: inherit; font-weight: 400; line-height: inherit; letter-spacing: 0; }
.answer-top .text-button { flex: 0 0 auto; min-height: 44px; padding: 8px 10px; margin-right: -10px; color: #66736a; font-size: 12px; }
.answer-question-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.answer-question-meta .answer-question-label { margin: 0; color: #69756c; font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: .13em; text-transform: none; }
.answer-section #answer-title,
.page .answer .answer-question-meta > h2 { margin: 0; color: #69756c; font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.answer-section .asked-question,
.page .answer .asked-question { margin: 0 0 20px; color: #69756c; font-size: 18px; font-weight: 400; letter-spacing: 0; line-height: 1.5; overflow-wrap: anywhere; }
.ai-answer-turn [hidden] { display: none !important; }
.page .answer #search-ask-again { min-height: 44px; margin-top: 20px; padding: 8px 0; border: 0; background: transparent; color: #526259; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.page .answer #search-ask-again:hover { color: #173e29; }
.answer-section .grounding-note,
.page .answer .grounding-note { display: block; margin: 0 0 16px; padding: 0; border: 0; background: transparent; color: #69756c; font-size: 12px; line-height: 1.5; }
.answer-body,
.page .answer-copy { font-size: 17px; line-height: 1.65; color: #38483e; overflow-wrap: anywhere; }
.answer-body > p,
.answer-copy > p { margin: 0 0 16px; }
.answer-body > .ai-answer-lead,
.answer-copy > .ai-answer-lead { margin: 0 0 28px; color: #24352e; font-size: 22px; line-height: 1.5; letter-spacing: -.01em; }
.ai-answer-block { margin: 28px 0; }
.ai-answer-block h3 { margin: 0 0 12px; color: #304b3b; font-size: 17px; line-height: 1.5; font-weight: 600; }
.ai-answer-block ul,
.ai-answer-block ol { margin: 0; padding-left: 1.4em; }
.ai-answer-block li { margin: 0 0 10px; padding-left: 4px; }
.ai-answer-block li:last-child { margin-bottom: 0; }
.ai-answer-facts li::marker { color: #63806a; }
.ai-answer-steps ol { padding-left: 1.6em; }
.ai-answer-steps li { margin-bottom: 16px; padding-left: 9px; }
.ai-answer-steps li::marker { color: #416454; font-weight: 600; }
.ai-answer-cautions { padding: 2px 0 2px 16px; border-left: 2px solid #c6cbbb; color: #5f675b; font-size: inherit; line-height: 1.65; }
.ai-answer-cautions h3 { margin-bottom: 7px; color: #59654f; }
.ai-answer-cautions p { margin: 0; }

/* A short clarification is a set of full-width choices, not a new form. */
.ai-answer-clarify { margin: 28px 0; }
.ai-answer-clarify h3,
.ai-clarify-prompt { margin: 0 0 14px; color: #24352e; font-size: 16px; line-height: 1.5; font-weight: 500; }
.ai-clarify-options { display: grid; }
.ai-clarify-choice { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 56px; margin: 0; padding: 15px 0; border: 0; border-top: 1px solid #dce2d9; border-radius: 0; background: transparent; color: #294a3e; font: inherit; font-size: 16px; line-height: 1.5; text-align: left; cursor: pointer; }
.ai-clarify-choice:last-of-type { border-bottom: 1px solid #dce2d9; }
.ai-clarify-choice > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ai-clarify-choice:hover { background: #f6f8f3; color: #173e29; }
.ai-clarify-choice:disabled { opacity: .6; cursor: wait; }
.ai-clarify-status { margin: 10px 0 0; color: #69756c; font-size: 12px; line-height: 1.6; }
.ai-clarify-status:empty { margin: 0; }

/* The relevant guide or manual stays ahead of feedback and privacy details. */
.answer-section .answer-source,
.page .best-source,
.ai-answer-turn .answer-source { margin: 28px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid #dce2d9; border-radius: 0; background: transparent; color: #294a3e; }
.ai-answer-turn .answer-source,
.answer-section .answer-source { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; text-decoration: none; }
.ai-guide-copy { display: grid; min-width: 0; gap: 5px; }
.ai-document-reference { cursor: default; }
.ai-answer-turn .ai-document-reference:hover strong { color: #526259; text-decoration: none; }
.answer-section .answer-source small,
.page .best-source > .ai-guide-label,
.ai-answer-turn .answer-source small { display: block; margin: 0 0 5px; color: #365a43; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.answer-section .answer-source strong,
.page .best-source > .ai-guide-link,
.ai-answer-turn .answer-source strong { color: #526259; font-size: 14px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.page .best-source > .ai-guide-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; text-decoration: none; }
.answer-section a.answer-source:hover strong,
.page .best-source > .ai-guide-link:hover,
.ai-answer-turn a.answer-source:hover strong { color: #24352e; text-decoration: underline; text-underline-offset: 4px; }
.ai-source-links { display: grid; gap: 8px; min-width: 0; margin-top: 10px; color: #637168; font-size: 13px; line-height: 1.6; }
.ai-source-pages { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ai-source-page,
.ai-source-title { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; text-decoration: none; }
a.ai-source-title { text-decoration: underline; text-underline-offset: 3px; }
span.ai-source-page,
span.ai-source-title { min-height: 0; }
.ai-source-page { color: #365a43; }
a.ai-source-page:hover,
a.ai-source-title:hover { color: #183d28; }
.ai-source-label { margin: 10px 0 0; color: #69756c; font-size: 11px; font-weight: 500; }
.ai-source-row { display: grid; min-width: 0; gap: 2px; }
.ai-answer-footer:empty { display: none; }
.ai-answer-feedback { margin-top: 22px; color: #637168; font-size: 12px; line-height: 1.6; }
.ai-feedback-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ai-feedback-label { margin-right: 4px; }
.ai-feedback-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 10px; border: 1px solid #dce5da; border-radius: 8px; background: #fff; color: #526d5d; cursor: pointer; }
.ai-feedback-button svg { display: block; flex: 0 0 20px; }
.ai-feedback-button:hover { background: #f1f5ee; border-color: #aabfae; }
.ai-feedback-button[aria-pressed=true] { color: #fff; background: #365a43; border-color: #365a43; }
.ai-feedback-button:disabled { opacity: .6; cursor: wait; }
.ai-answer-feedback .ai-feedback-privacy { margin: 6px 0 0; font-size: 11px; line-height: 1.6; }
.ai-answer-feedback .ai-feedback-status { margin: 6px 0 0; color: #365a43; font-size: 12px; line-height: 1.6; }
.ai-answer-feedback .ai-feedback-status:empty { margin-top: 0; }
.ai-answer-about { margin: 12px 0 0; color: #69756c; font-size: 12px; line-height: 1.65; }
.ai-answer-about summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; }
.ai-answer-about summary:hover { color: #24352e; }
.ai-answer-about .ai-privacy-note { margin: 0 0 12px; padding: 4px 0 0; color: inherit; font-size: 12px; line-height: 1.7; }
.ai-answer-about a { text-decoration: underline; text-underline-offset: 3px; }
.answer-section .answer-note { margin: 14px 0 0; color: #69756c; font-size: 11px; line-height: 1.6; }
.answer-section .ask-again { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; margin-top: 18px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: #294a3e; font-size: 13px; }
.answer-section .ask-again span { margin-left: 0; }
.answer-section .ask-again:hover { text-decoration: underline; text-underline-offset: 4px; }
.answer-wrap :is(a, button, summary, input, textarea):focus-visible,
.page .answer :is(a, button, summary, input, textarea):focus-visible { outline: 3px solid #a8792d; outline-offset: 4px; }
/* Optional background is separate from the essential, always-visible answer. */
.ai-answer-detail { margin: 28px 0 0; color: #526259; }
.ai-answer-detail summary { display: list-item; width: fit-content; min-height: 44px; padding: 10px 0; color: #294a3e; font-size: 16px; font-weight: 500; cursor: pointer; }
.ai-answer-detail summary:hover { color: #173e29; }
.ai-answer-detail p { margin: 12px 0 0; }
.ai-answer-detail p + p { margin-top: 16px; }

/* A single reading card; questions always use the original page input. */
.ai-answer-turn { min-width: 0; }
.ai-answer-turn .answer-top { min-height: 28px; padding-right: 80px; }
.answer-dismiss { position: absolute; top: 24px; right: 24px; color: #69756c; font-size: 12px; line-height: 1.5; }
.answer-dismiss .text-button { min-width: 44px; min-height: 44px; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #526259; font: inherit; cursor: pointer; }
.answer-dismiss .text-button:hover { background: #f2f4f0; color: #24352e; }
.ask-status { max-width: 640px; margin: 10px auto 0; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; text-shadow: 0 1px 4px #173e29; }
.ask-status:empty { display: none; }
.ask-status .ai-error-recovery { display: inline-flex; align-items: center; min-height: 44px; margin-left: .75em; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ask-status .ai-error-recovery:focus-visible { outline: 2px solid #e5bc75; outline-offset: 4px; border-radius: 2px; }
.ai-compose-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-width: 0; }
.ai-compose-form .ai-compose-input { min-width: 0; width: 100%; min-height: 52px; margin: 0; padding: 12px 14px; border: 1px solid #bfc9c2; border-radius: 8px; background: #fff; color: #24352e; font: inherit; font-size: 16px; line-height: 1.5; }
.ai-compose-form .ai-compose-input::placeholder { color: #69756c; opacity: 1; }
.ai-compose-form .ai-compose-submit { min-width: 52px; min-height: 52px; margin: 0; padding: 12px 18px; border: 1px solid #294a3e; border-radius: 8px; background: #294a3e; color: #fff; font: inherit; font-size: 16px; line-height: 1.5; font-weight: 500; cursor: pointer; }
.ai-compose-form .ai-compose-submit:hover { background: #173e29; }
.ai-compose-form :disabled { opacity: .6; cursor: wait; }

@media (max-width: 700px) {
  .answer-section { padding: 20px 12px 28px; }
  .answer-wrap,
  .owner-page .page .answer { padding: 20px; }
  .answer-top { gap: 12px; margin-bottom: 12px; }
  .answer-top .answer-library-title { font-size: 12px; }
  .answer-question-meta { gap: 6px 12px; }
  .answer-section .asked-question,
  .page .answer .asked-question { margin-bottom: 20px; font-size: 16px; }
  .answer-body,
  .page .answer-copy { font-size: 16px; line-height: 1.65; }
  .answer-body > .ai-answer-lead,
  .answer-copy > .ai-answer-lead { margin-bottom: 24px; font-size: 20px; line-height: 1.5; }
  .ai-answer-block,
  .ai-answer-clarify { margin: 24px 0; }
  .ai-answer-block h3 { font-size: 16px; }
  .ai-answer-detail { margin-top: 24px; }
  .ai-answer-cautions { padding-left: 13px; }
  .ai-clarify-choice { gap: 16px; }
  .answer-section .answer-source,
  .page .best-source,
  .ai-answer-turn .answer-source { margin-top: 24px; }
  .answer-dismiss { top: 12px; right: 10px; }
}
@media (max-width: 420px) {
  .ai-compose-form { gap: 8px; }
  .ai-compose-form .ai-compose-submit { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .answer-body[aria-busy=true]::before { animation: none; }
}
