/* Folkle Ask v5: search, a calm list, and a conversation page with replies. As few elements as possible. */
#tab-village > :not(#aq) { display: none !important; }
#aq { --ink: #1F4535; --ink-3: #6A665E; --line: #E5DBC7; --card: #FFFDF8; --amber: #D46B3D; --amber-d: #B85A2E;
  font-family: DM Sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #2E2E2A; }
#aq [hidden] { display: none !important; }
.aq-wrap { width: min(760px, calc(100% - 32px)); margin: 32px auto 72px; }
.aq-sr { position: absolute; left: -9999px; }
.aq-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.aq-top h1 { font: 400 clamp(28px, 3.2vw, 38px)/1.1 Georgia, serif; color: var(--ink); margin: 0; }
.aq-askbtn, .aq-post, .aq-send, .aq-gatebox button { border: 0; border-radius: 100px; background: var(--amber); color: #fff; padding: 11px 20px; font: 600 15px DM Sans, -apple-system, sans-serif; cursor: pointer; white-space: nowrap; }
.aq-askbtn:hover, .aq-post:hover, .aq-send:hover, .aq-gatebox button:hover { background: var(--amber-d); }
.aq-send:disabled, .aq-post:disabled { opacity: .6; cursor: default; }
.aq-cancel { border: 0; background: none; color: var(--ink-3); font: 500 14px DM Sans, -apple-system, sans-serif; cursor: pointer; padding: 8px 10px; }

/* ask box */
.aq-compose { background: var(--card); border: 1px solid #D9CFB8; border-radius: 18px; padding: 16px; margin: 0 0 16px; }
.aq-compose textarea { width: 100%; box-sizing: border-box; border: 0; background: none; resize: none; outline: none; font: 18px/1.45 Georgia, serif; color: #2E2E2A; }
.aq-cfoot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.aq-cfoot select { border: 1px solid var(--line); border-radius: 100px; padding: 8px 12px; background: #F6EFE3; color: var(--ink); font: 14px DM Sans, -apple-system, sans-serif; }
.aq-note { flex: 1; font-size: 13px; color: var(--ink-3); min-width: 150px; }

/* search */
.aq-search { position: relative; display: flex; align-items: center; margin: 0 0 8px; }
.aq-search svg { position: absolute; left: 16px; width: 19px; height: 19px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.aq-search input { width: 100%; box-sizing: border-box; height: 50px; border: 1px solid #D9CFB8; border-radius: 100px; background: #fff; padding: 0 44px 0 46px; font: 16px DM Sans, -apple-system, sans-serif; color: #2E2E2A; outline: none; -webkit-appearance: none; }
.aq-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,69,53,.12); }
.aq-search input::-webkit-search-cancel-button { display: none; }
.aq-sclear { position: absolute; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F1EADC; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.aq-count { margin: 14px 2px 0; font-size: 14px; color: var(--ink-3); }
#aq mark { background: #FBE7C6; color: inherit; border-radius: 3px; padding: 0 1px; }

/* the list */
.aq-q { padding: 22px 0; border-bottom: 1px solid var(--line); }
.aq-meta { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); }
.aq-meta i { font-style: normal; font-weight: 600; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--amber-d); margin-right: 8px; }
.aq-q h3 { margin: 0 0 12px; }
.aq-q h3 button { all: unset; cursor: pointer; font: 400 21px/1.3 Georgia, serif; color: var(--ink); }
.aq-q h3 button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.aq-prev { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.aq-prev p { margin: 0; font: 16px/1.6 Georgia, serif; color: #2E2E2A; }
.aq-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aq-cut { color: #4A4A44 !important; }
.aq-more { margin-top: 10px; }
.aq-empty { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink-3); background: none; border-style: dashed; }
.aq-link { border: 0; background: none; color: var(--amber-d); font: 600 14.5px DM Sans, -apple-system, sans-serif; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 7px; }
.aq-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.aq-lock { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.aq-none { text-align: center; padding: 40px 0; color: var(--ink-3); }
.aq-none p { margin: 0 0 14px; font: 18px Georgia, serif; color: var(--ink); }
.aq-muted { color: var(--ink-3); }

/* who wrote it */
.aq-who { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 7px; }
.aq-who b { color: var(--ink); font-weight: 600; }
.aq-av { width: 28px; height: 28px; border-radius: 50%; background: #EEF2E8; color: var(--ink); display: grid; place-items: center; font: 600 12px DM Sans, -apple-system, sans-serif; flex: none; }
.aq-places { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aq-place { background: #EEF2E8; color: var(--ink); border-radius: 100px; padding: 4px 11px; font-size: 13px; text-decoration: none; }
.aq-place:hover { background: #DFE7D5; }

/* the conversation page */
.aq-back { border: 0; background: none; color: var(--ink); font: 600 15px DM Sans, -apple-system, sans-serif; cursor: pointer; padding: 6px 0; margin: 0 0 14px; }
.aq-back:hover { color: var(--amber-d); }
.aq-title { font: 400 clamp(25px, 3vw, 32px)/1.25 Georgia, serif; color: var(--ink); margin: 0 0 20px; }
.aq-msgs { display: grid; gap: 12px; }
.aq-msg { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.aq-msg > p { margin: 0; font: 16px/1.6 Georgia, serif; color: #2E2E2A; }
.aq-when { color: var(--ink-3); }
.aq-acts { display: flex; gap: 18px; margin-top: 10px; }
.aq-act { border: 0; background: none; padding: 4px 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font: 600 13.5px DM Sans, -apple-system, sans-serif; cursor: pointer; }
.aq-act:hover { color: var(--ink); }
.aq-act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.aq-act[aria-pressed="true"] { color: var(--amber-d); }
.aq-act[aria-pressed="true"] svg { fill: currentColor; }
.aq-rm { font-weight: 500; }
.aq-replies { margin: 12px 0 0 13px; padding-left: 16px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.aq-reply { background: none; border: 0; border-radius: 0; padding: 0; }
.aq-reply .aq-av { width: 24px; height: 24px; font-size: 11px; }
.aq-reply > p { font-size: 15.5px; }
.aq-rform textarea, .aq-answer textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; font: 15.5px/1.5 DM Sans, -apple-system, sans-serif; resize: vertical; outline: none; }
.aq-rform textarea:focus, .aq-answer textarea:focus { border-color: var(--ink); }
.aq-rfoot, .aq-afoot { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 8px; }
.aq-answer { margin-top: 22px; }
.aq-f { display: block; font: 400 19px Georgia, serif; color: var(--ink); margin: 0 0 8px; }
.aq-err { margin: 6px 2px 0; font-size: 13px; color: #A3361B; }
.aq-err:empty { display: none; }
.aq-gatebox { margin-top: 14px; background: #F6EFE3; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; }
.aq-gatebox .aq-lock { width: 22px; height: 22px; color: var(--ink); }
.aq-gatebox div { flex: 1; display: grid; gap: 2px; }
.aq-gatebox b { color: var(--ink); font-weight: 600; font-size: 15px; }
.aq-gatebox span { color: var(--ink-3); font-size: 13.5px; }

.aq-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #1F4535; color: #fff; padding: 12px 18px; border-radius: 100px; font: 500 14px DM Sans, -apple-system, sans-serif; z-index: 9999; transition: opacity .3s, transform .3s; }
.aq-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .aq-wrap { margin-top: 18px; }
  .aq-top h1 { font-size: 26px; }
  .aq-askbtn { padding: 10px 16px; font-size: 14.5px; }
  .aq-q { padding: 18px 0; }
  .aq-q h3 button { font-size: 19px; }
  .aq-prev, .aq-msg { padding: 12px 14px; }
  .aq-replies { margin-left: 6px; padding-left: 12px; }
  .aq-gatebox { flex-wrap: wrap; }
  .aq-gatebox button { width: 100%; }
}
/* questions in bold so they're easy to scan (Khushi) */
.aq-q h3 button, .aq-title { font-weight: 700 !important; }
/* the page's general "section" padding was adding a big empty gap above Ask */
#tab-village > #aq { padding: 0 !important; }
/* questions: clean sans, semibold (Khushi picked option 1) */
.aq-q h3 button, .aq-title { font-family: DM Sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif !important; font-weight: 600 !important; letter-spacing: -0.01em; }
.aq-q h3 button { font-size: 20px !important; line-height: 1.32 !important; }
.aq-title { line-height: 1.25 !important; }
@media (max-width: 600px) { .aq-q h3 button { font-size: 18.5px !important; } .aq-title { font-size: 25px !important; } }

/* smaller question box (Khushi, Oct 20): one tidy line to type in, buttons on the same row */
.aq-compose { padding: 10px 12px 10px 16px; border-radius: 14px; }
.aq-compose textarea { font: 16px/1.4 DM Sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; min-height: 0; height: auto; padding: 6px 0; }
.aq-cfoot { margin-top: 4px; }
.aq-compose .aq-post { padding: 8px 16px; font-size: 14px; }
.aq-compose .aq-cancel { font-size: 14px; }
.aq-compose .aq-note { font-size: 12.5px; }

/* category filters on top */
.aq-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin-top: -4px; scrollbar-width: none; }
.aq-filters::-webkit-scrollbar { display: none; }
.aq-filters button { flex: none; border: 1px solid #D9CFB8; background: #FFFDF8; color: #1F4535; border-radius: 100px; padding: 7px 14px; font: 500 14px DM Sans, -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; white-space: nowrap; }
.aq-filters button[aria-selected="true"] { background: #1F4535; border-color: #1F4535; color: #FFFDF8; }
/* phone: question box stays small */
@media (max-width: 600px) {
  .aq-compose .aq-note { display: none; }
  .aq-cfoot { justify-content: flex-end; }
  .aq-cfoot select { margin-right: auto; }
  .aq-compose textarea { min-height: 44px; }
}

/* Ask as a community feed (option A, Oct 20): each question is a card you scroll past */
.aq-list { display: grid; gap: 14px; }
.aq-q.aq-feed { background: #FFFDF8; border: 1px solid #E5DBC7; border-radius: 18px; padding: 16px 18px; border-bottom: 1px solid #E5DBC7; }
.aq-fhead { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.aq-fhead .aq-av { width: 28px; height: 28px; border-radius: 50%; background: #DFE7D5; color: #1F4535; display: inline-flex; align-items: center; justify-content: center; font: 600 13px DM Sans, -apple-system, sans-serif; flex: none; }
.aq-fwho b { color: var(--ink); font-weight: 600; }
.aq-q.aq-feed h3 { margin: 10px 0 10px; }
.aq-ftop { all: unset; display: block; cursor: pointer; border-left: 3px solid #DFE7D5; padding: 2px 0 2px 12px; font-size: 13.5px; color: var(--ink-3); }
.aq-ftop b { color: var(--ink); font-weight: 600; }
.aq-ftop p { margin: 4px 0 0; font: 15.5px/1.5 DM Sans, -apple-system, BlinkMacSystemFont, sans-serif; color: #3F3D38; }
.aq-ftop .aq-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aq-ffoot { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.aq-fbtn { border: 1px solid #D9CFB8; background: #FFFDF8; color: #1F4535; border-radius: 100px; padding: 7px 14px; font: 600 13.5px DM Sans, -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.aq-fbtn svg { width: 13px; height: 13px; }
.aq-fbtn:hover { background: #F5EDE0; }
.aq-fanswer { background: #1F4535; border-color: #1F4535; color: #FFFDF8; }
.aq-fanswer:hover { background: #2F5943; }
@media (max-width: 600px) { .aq-q.aq-feed { padding: 14px 14px; border-radius: 16px; } }
