:root { font-family: system-ui, sans-serif; color: #1a1a1a; }
.wrap { max-width: 760px; margin: 2rem auto; padding: 0 1rem; }
h1 { font-size: 1.4rem; }
.hint { color: #666; font-size: .9rem; }
#ask-form { display: flex; gap: .5rem; margin: 1rem 0; }
#q { flex: 1; padding: .6rem .8rem; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; }
button { padding: .6rem 1.2rem; border: 0; border-radius: 8px; background: #1a1a1a; color: #fff; cursor: pointer; }
.answer { white-space: pre-wrap; line-height: 1.5; padding: 1rem; background: #f6f6f6; border-radius: 8px; }
.sources { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.sources li a {
  display: inline-flex; flex-direction: column;
  padding: .4rem .85rem; border-radius: 10px;
  background: #f0f0f0; color: #1a1a1a;
  text-decoration: none; border: 1px solid #ddd;
  transition: background .15s; max-width: 260px;
}
.sources li a:hover { background: #e0e8ff; border-color: #99b; }
.src-title { font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-issue { font-size: .75rem; color: #666; margin-top: .1rem; }
.src-divider { width: 100%; font-size: .75rem; color: #999; text-transform: uppercase; letter-spacing: .06em; padding: .4rem 0 .1rem; }
.src-additional { opacity: .7; border-style: dashed !important; }
.src-author { font-size: .72rem; color: #888; margin-top: .1rem; font-style: italic; }
#show-more { margin-top: .8rem; }
.show-more-btn { background: #fff; color: #1a1a1a; border: 1px solid #ccc; font-size: .9rem; width: 100%; }
