/* Extra result sections on the "All" tab. Markup: js/sections-render.js (inside #sections).
   Loaded by index.html after css/styles.css. */

.sec { margin: 8px 0 40px; }
.sec-title { margin: 0 0 6px; font-size: 22px; font-weight: 400; color: #1f1f1f; }
.sec-sub { margin: 0 0 16px; font-size: 14px; color: #4d5156; }

/* ---------- What people are saying: horizontal card carousel ---------- */
.say-row { position: relative; }
.say-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.say-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f5f6;
  scroll-snap-align: start;
}

.say-media { position: relative; display: block; aspect-ratio: 1.09; background: #e8eaed; }
.say-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.say-duration {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px 2px 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
}
.say-duration svg { width: 16px; height: 16px; fill: #fff; }

.say-body { display: flex; flex: 1; flex-direction: column; padding: 12px 10px 12px 12px; }
.say-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a0dab;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}
.say-title:hover { text-decoration: underline; }
.say-card-text .say-title { -webkit-line-clamp: 6; color: #1f1f1f; }

.say-stat { margin: auto 0 8px; padding-top: 12px; color: #4d5156; font-size: 13px; }
.say-source { display: flex; align-items: center; gap: 8px; }
.say-icon { display: flex; flex-shrink: 0; width: 20px; height: 20px; overflow: hidden; border-radius: 50%; }
.say-icon img { width: 20px; height: 20px; }
.say-source-text { display: flex; flex-direction: column; min-width: 0; color: #1f1f1f; font-size: 13px; line-height: 1.3; }
.say-source-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.say-sub { color: #4d5156; }
.say-menu { display: flex; margin-left: auto; padding: 2px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.say-menu svg { width: 18px; height: 18px; fill: #4d5156; }

.say-next {
  position: absolute;
  top: 45%;
  right: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #dadce0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.say-next svg { width: 20px; height: 20px; fill: #1f1f1f; }

/* ---------- Expandable rows (topics + People also ask) ---------- */
.xrow { border-bottom: 1px solid #dadce0; }
.sec-topics .xrow:first-child { border-top: 1px solid #dadce0; }
.sec-faq .xrow:last-child { border-bottom: 0; }

.xrow-head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
}

.xrow-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.xrow-title { color: #1f1f1f; font-size: 16px; }
.sec-faq .xrow-title { font-size: 16px; }
.xrow-summary { overflow: hidden; color: #4d5156; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.xrow-chevron {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f3f4;
}
.xrow-chevron svg { width: 20px; height: 20px; fill: #1f1f1f; transition: transform 0.2s; }
.xrow-head[aria-expanded='true'] .xrow-chevron svg { transform: rotate(180deg); }
.xrow-head:hover .xrow-title { text-decoration: underline; }

.xrow-detail { padding: 0 44px 16px 0; color: #4d5156; font-size: 14px; line-height: 1.6; }
.xrow-detail p { margin: 0 0 10px; white-space: pre-line; }
.xrow-link { color: #1a0dab; font-size: 14px; }
.xrow-loading { color: #70757a; }

/* ---------- Phones: 1.3 cards visible so the row reads as swipeable ---------- */
@media (max-width: 600px) {
  .say-track { grid-auto-columns: 75%; }
  .say-next { display: none; }
  .sec-title { font-size: 20px; }
}
