/* ============ Answers section ============
   Question-shaped reference pages (/answers). Built on the p2 design system;
   deliberately quieter than the blog: no cover images, answer-first layout. */

/* ---- shared ---- */
.ans-hero {
  padding: 152px 0 24px;
  text-align: center;
}

.ans-hero h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--p2-olive);
  max-width: 820px;
  margin: 0 auto 16px;
}

.ans-hero .p2-sub {
  max-width: 680px;
}

.ans-crumbs {
  font-size: 14px;
  color: var(--p2-olive);
  margin-bottom: 20px;
}

.ans-crumbs a {
  color: var(--p2-green);
  text-decoration: none;
  font-weight: 600;
}

.ans-crumbs a:hover {
  text-decoration: underline;
}

.ans-reviewed {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p2-olive);
  opacity: 0.75;
  margin-top: 18px;
}

/* ---- index search ---- */
.ans-search {
  max-width: 820px;
  margin: 0 auto;
}

.ans-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Albert Sans', Arial, sans-serif;
  font-size: 17px;
  color: var(--p2-ink);
  background: #fff;
  border: 1.5px solid var(--p2-line);
  border-radius: 999px;
  padding: 15px 26px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ans-search input[type="search"]:focus {
  border-color: var(--p2-green);
  box-shadow: 0 0 0 3px rgba(61, 130, 112, 0.15);
}

.ans-search-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--p2-olive);
  min-height: 20px;
  margin: 10px 4px 0;
}

.ans-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--p2-olive);
  background: var(--p2-mist);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 12px;
}

.ans-card-excerpt mark {
  background: var(--p2-lime);
  color: var(--p2-forest);
  border-radius: 3px;
  padding: 0 2px;
}

.ans-no-results {
  text-align: center;
  padding: 32px 0;
  font-size: 17px;
  color: var(--p2-olive);
}

.ans-no-results a {
  color: var(--p2-green);
  font-weight: 600;
}

/* ---- index list ---- */
.ans-list {
  max-width: 820px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ans-card {
  display: block;
  background: #fff;
  border: 1px solid var(--p2-line);
  border-radius: var(--p2-radius);
  padding: 28px 32px;
  text-decoration: none;
  color: var(--p2-ink);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.ans-card[hidden] {
  display: none;
}

.ans-card:hover {
  border-color: var(--p2-green);
  box-shadow: var(--p2-shadow);
  transform: translateY(-2px);
}

.ans-card h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--p2-olive);
  margin: 0 0 10px;
}

.ans-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--p2-ink);
  margin: 0 0 12px;
}

.ans-card-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--p2-green);
}

/* ---- answer page ---- */
.ans-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 152px 0 16px;
}

.ans-article h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--p2-olive);
  margin: 0 0 24px;
}

.ans-short {
  background: var(--p2-mist);
  border-left: 4px solid var(--p2-green);
  border-radius: 0 var(--p2-radius) var(--p2-radius) 0;
  padding: 24px 28px;
}

.ans-short-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p2-green);
  margin-bottom: 8px;
}

.ans-short p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--p2-forest);
  margin: 0;
}

.ans-body {
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--p2-ink);
}

.ans-body h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--p2-olive);
  margin: 40px 0 14px;
}

.ans-body h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--p2-olive);
  margin: 28px 0 10px;
}

.ans-body p {
  margin: 0 0 16px;
}

.ans-body a {
  color: var(--p2-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 130, 112, 0.35);
}

.ans-body a:hover {
  border-bottom-color: var(--p2-green);
}

.ans-body ul,
.ans-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.ans-body li {
  margin-bottom: 8px;
}

.ans-body blockquote {
  border-left: 3px solid var(--p2-lime);
  margin: 20px 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--p2-olive);
}

.ans-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.5;
}

.ans-body th,
.ans-body td {
  border: 1px solid var(--p2-line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.ans-body th {
  background: var(--p2-mist);
  font-weight: 700;
  color: var(--p2-forest);
}

.ans-body tr td:first-child {
  font-weight: 600;
  color: var(--p2-olive);
}

@media (max-width: 767px) {
  .ans-body table {
    display: block;
    overflow-x: auto;
  }
}

/* ---- more answers ---- */
.ans-more {
  max-width: 780px;
  margin: 0 auto;
}

.ans-more h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--p2-olive);
  margin: 0 0 18px;
}

.ans-more ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ans-more li {
  border-top: 1px solid var(--p2-line);
}

.ans-more li:last-child {
  border-bottom: 1px solid var(--p2-line);
}

.ans-more a {
  display: block;
  padding: 16px 4px;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--p2-olive);
  text-decoration: none;
}

.ans-more a:hover {
  color: var(--p2-green);
}

@media (max-width: 767px) {
  .ans-hero {
    padding-top: 120px;
  }

  .ans-hero h1 {
    font-size: 32px;
  }

  .ans-article {
    padding-top: 120px;
  }

  .ans-article h1 {
    font-size: 30px;
  }

  .ans-card {
    padding: 22px 24px;
  }
}
