/* SEO pieces for profile pages: fact summary, questions, nearby, and the design-only Google preview.
   Loads after types.css. Same tokens and cards as the rest of the profile. */

/* ---------- design note: how the page shows in Google (design build only, not on the real page) ---------- */

/* ---------- tab bar: room for the Questions tab ---------- */
.btabs a { padding: 2px 14px 0; }

/* ---------- overview: fact summary ---------- */
.ov-sum { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--b-panel); border: 1px solid var(--b-line); font-size: 14px; line-height: 22px; color: var(--b-ink-2); }
.ov-sum b { font-weight: 600; color: var(--b-ink); }
.ov-sum + .source { margin-top: 6px; }
.ov .ov-sum + .source + .quote { padding-top: 14px; }

/* ---------- questions ---------- */
.faq { margin-top: 20px; border: 1px solid var(--b-line); border-radius: 10px; overflow: hidden; }
.faq details { border-top: 1px solid var(--b-line); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; line-height: 21px; color: var(--b-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 16px; height: 16px; color: var(--b-muted); transform: rotate(90deg); transition: transform .2s; }
.faq details[open] summary .chev { transform: rotate(-90deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { background: var(--b-panel); } }
.faq details > div { padding: 0 18px 16px; font-size: 14px; line-height: 22px; color: var(--b-ink-2); }
.faq details > div .source { display: block; margin-top: 4px; }
.faq + .source { margin-top: 12px; }

/* ---------- nearby ---------- */
.near { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.near > a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; align-content: start; padding: 14px; border: 1px solid var(--b-line); border-radius: 10px; background: var(--white); transition: box-shadow .2s, border-color .2s; }
@media (hover: hover) and (pointer: fine) { .near > a:hover { border-color: transparent; box-shadow: 0 6px 20px rgba(16, 42, 67, .08); } }
.near .im { grid-row: span 3; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--b-panel); border: 1px solid var(--b-line); display: grid; place-items: center; color: #9AA1A9; }
.near .im img { width: 100%; height: 100%; object-fit: cover; }
.near .im svg { width: 22px; height: 22px; }
.near h3 { font-weight: 600; font-size: 14px; line-height: 19px; color: var(--b-ink); }
.near .mt { font-size: 12px; line-height: 17px; color: var(--b-muted); }
.near .bpill { justify-self: start; height: 22px; margin-top: 4px; padding: 0 8px; font-size: 11px; }
.near .bpill.ok { padding-left: 4px; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--b-line); }
.more-links a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--b-line-2, #DADDE2); background: var(--white); font-size: 13px; color: var(--b-ink-2); }
@media (hover: hover) and (pointer: fine) { .more-links a:hover { border-color: var(--red); color: var(--red); } }
.more-links a .chev { width: 12px; height: 12px; }

@media (max-width: 1180px) { .near { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .near { grid-template-columns: 1fr; }
  .faq summary { padding: 14px; font-size: 14px; }
  .faq details > div { padding: 0 14px 14px; }
}
