/* ============================================================
   Topical Proximity Classifier page styles
   Upload to: /wp-content/themes/neve-child/css/topical-proximity.css
   Loads after homepage-template.css and geoserp.css, and reuses
   their hp-* and gs-* classes. Only tp-* styles are added here.
   ============================================================ */

/* Tables */
.tp-table-wrap { overflow-x: auto; margin: 20px 0 28px; border: 1px solid #e6e8ea; border-radius: 12px; background: #fff; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tp-table thead th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #5b6470; background: #fafbfc; padding: 12px 16px; border-bottom: 1px solid #e6e8ea; white-space: nowrap; }
.tp-table tbody td { padding: 12px 16px; border-bottom: 1px solid #eef0f2; vertical-align: top; color: #24292e; }
.tp-table tbody tr:last-child td { border-bottom: none; }
.tp-table code { font-size: 12px; background: #f3f5f7; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.gs-section--alt .tp-table-wrap { background: #fff; }

/* Code inside headings and prose on this page */
.gs-h3 code { font-size: 0.9em; background: #f3f5f7; padding: 1px 6px; border-radius: 4px; }
.gs-section--alt .gs-h3 code { background: #fff; }

/* Reasoning quote */
.tp-quote { border-left: 3px solid #FF5722; padding-left: 16px; color: #3a434d; font-style: italic; }

/* List */
.tp-list { margin: 8px 0 20px; padding-left: 20px; }
.tp-list li { margin-bottom: 12px; line-height: 1.6; color: #24292e; }
.tp-list code { font-size: 0.85em; background: #f3f5f7; padding: 1px 6px; border-radius: 4px; }

/* FAQ with native details/summary, no script needed */
.tp-faq { margin-top: 12px; border-top: 1px solid #e2e6ea; }
.tp-faq__item { border-bottom: 1px solid #e2e6ea; }
.tp-faq__item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; color: #24292e; position: relative; }
.tp-faq__item summary::-webkit-details-marker { display: none; }
.tp-faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #FF5722; }
.tp-faq__item[open] summary::after { content: '\2212'; }
.tp-faq__item p { margin: 0 0 18px; color: #4f5963; line-height: 1.6; max-width: 760px; }

@media (max-width: 680px) {
    .tp-table { font-size: 14px; }
    .tp-table thead th, .tp-table tbody td { padding: 10px 12px; }
}

/* ---- Added for the custom build section ---- */
.tp-after-cards { margin-top: 24px; }
.tp-table tbody tr.tp-row--hl td { background: rgba(255, 87, 34, 0.08); }
.tp-table tbody tr.tp-row--hl td:first-child { box-shadow: inset 3px 0 0 #FF5722; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
