/* Business-type pages — /hospitals and /hospitals/houston-us. A ranked list,
   the places beside it, the questions under it. Tokens only, so the coral
   theme supplies the colour; the three medals are the one exception. */

.tp-hero { padding: var(--space-8) 0 var(--space-6); background: linear-gradient(180deg, var(--color-primary-wash) 0%, var(--color-bg) 100%); }
.tp-hero h1 { margin: 0 0 var(--space-3); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
.tp-kicker { margin: 0 0 var(--space-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); }
.tp-lede { margin: 0; max-width: 70ch; font-size: 16.5px; line-height: 1.6; color: var(--color-text-muted); }

.tp-body { padding: var(--space-6) 0 var(--space-10); }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); align-items: start; }
.tp-grid > * { min-width: 0; }
.tp-h2 { margin: 0 0 var(--space-4); font-size: 20px; }

/* the ranked list — one card per business */
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tp-card {
    position: relative; padding: 22px 24px 18px; background: var(--color-surface, #fff);
    border: 1px solid var(--color-border); border-radius: 20px;
    box-shadow: 0 1px 2px rgba(40, 20, 22, .04), 0 6px 18px rgba(40, 20, 22, .05);
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.tp-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border)); box-shadow: 0 2px 4px rgba(40, 20, 22, .05), 0 16px 36px rgba(40, 20, 22, .10); }
.tp-card--top::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; }
.tp-card--top1::before { background: linear-gradient(180deg, #f9d976, #e5a823); }
.tp-card--top2::before { background: linear-gradient(180deg, #eef1f4, #a9b3be); }
.tp-card--top3::before { background: linear-gradient(180deg, #f3c7a0, #c9824b); }

.tp-card-head { display: grid; grid-template-columns: 52px 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.tp-rank {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
    background: var(--color-surface-alt); color: var(--color-text); font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
}
.tp-rank--1 { background: linear-gradient(135deg, #f9d976, #e5a823); color: #4a3300; box-shadow: 0 6px 16px rgba(229, 168, 35, .35); }
.tp-rank--2 { background: linear-gradient(135deg, #eef1f4, #b9c2cc); color: #2f3a44; box-shadow: 0 6px 16px rgba(120, 135, 150, .30); }
.tp-rank--3 { background: linear-gradient(135deg, #f3c7a0, #c9824b); color: #3d230d; box-shadow: 0 6px 16px rgba(201, 130, 75, .30); }
.tp-card-logo { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; background: var(--color-surface-alt); border: 1px solid var(--color-border); font-size: 20px; font-weight: 700; color: var(--color-text-muted); text-decoration: none; }
.tp-card-logo img { max-width: 100%; max-height: 100%; }
.tp-card-title { min-width: 0; }
.tp-card-name { display: block; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: var(--color-text); text-decoration: none; }
.tp-card-name:hover { color: var(--color-primary-dark); }
.tp-card-meta { margin: 4px 0 0; font-size: 13.5px; color: var(--color-text-muted); }
.tp-card-score { display: grid; justify-items: end; gap: 4px; text-align: right; }
.tp-card-num { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.tp-card-count { font-size: 13px; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.tp-card-desc { margin: 14px 0 0 146px; font-size: 14.5px; line-height: 1.6; color: var(--color-text-muted); }

.tp-card-facts { display: grid; gap: 10px; margin: 16px 0 0 146px; padding-top: 14px; border-top: 1px dashed var(--color-border); }
.tp-fact { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; }
.tp-fact-label { padding-top: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-faint); }
.tp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tp-pills li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--color-surface-alt); font-size: 13px; color: var(--color-text); line-height: 1.3; }
.tp-pills--check li::before { content: ""; width: 7px; height: 4px; margin-top: -2px; border-left: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary); transform: rotate(-45deg); }
.tp-pills--check li:has(.tp-pill-more)::before { display: none; }
.tp-pills li:has(.tp-pill-more) { padding: 0; background: none; }
.tp-pill-more { display: inline-flex; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--color-primary); color: var(--color-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.tp-pill-more:hover { background: var(--color-primary); color: #fff; }

.tp-card-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.tp-card-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: var(--color-primary-wash); color: var(--color-primary-dark); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.tp-card-cta:hover { background: var(--color-primary); color: #fff; }

/* beside the list */
.tp-side { display: grid; gap: var(--space-4); position: sticky; top: 90px; }
.tp-box { padding: var(--space-4); background: var(--color-surface, #fff); border: 1px solid var(--color-border); border-radius: var(--radius-lg, 14px); }
.tp-box h2 { margin: 0 0 var(--space-3); font-size: 15px; }
.tp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.tp-links a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--color-text); text-decoration: none; font-size: 14px; }
.tp-links a:hover { background: var(--color-primary-wash); color: var(--color-primary-dark); }
.tp-links small { color: var(--color-text-faint); font-size: 12px; }
.tp-links b { font-weight: 600; color: var(--color-text-muted); font-size: 12.5px; }
.tp-box-more { display: inline-block; margin-top: var(--space-3); font-size: 13.5px; font-weight: 700; text-decoration: none; }

/* questions */
.tp-faq { margin-top: var(--space-8); }
.tp-faq h2 { margin: 0 0 var(--space-4); font-size: 21px; }
.tp-faq-item { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface, #fff); margin-bottom: 8px; }
.tp-faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; }
.tp-faq-item summary::-webkit-details-marker { display: none; }
.tp-faq-item summary::after { content: "+"; float: right; color: var(--color-primary); font-weight: 800; }
.tp-faq-item[open] summary::after { content: "–"; }
.tp-faq-item p { margin: 0; padding: 0 16px 16px; color: var(--color-text-muted); line-height: 1.6; font-size: 14.5px; }

/* "Popular in Houston" chips on city pages, and the business page link */
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.tp-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--color-surface, #fff); border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.tp-chips a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.tp-chips b { font-weight: 600; color: var(--color-text-faint); font-size: 12px; }
.tp-chips-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-faint); margin: var(--space-4) 0 0; }
.tp-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: var(--space-5) 0 0; padding: 14px 18px; border-radius: 14px; background: var(--color-primary-wash); }
.tp-more p { margin: 0; font-size: 14.5px; }
.tp-more a { font-weight: 700; text-decoration: none; white-space: nowrap; }

@media (max-width: 900px) {
    .tp-grid { grid-template-columns: minmax(0, 1fr); }
    .tp-side { position: static; }
}
@media (max-width: 640px) {
    .tp-card { padding: 18px 16px 14px; border-radius: 16px; }
    .tp-card-head { grid-template-columns: 40px 52px minmax(0, 1fr); gap: 12px; }
    .tp-rank { width: 38px; height: 38px; font-size: 13px; }
    .tp-card-logo { width: 52px; height: 52px; border-radius: 14px; }
    .tp-card-name { font-size: 17px; }
    .tp-card-score { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; justify-items: start; text-align: left; }
    .tp-card-num { font-size: 22px; }
    .tp-card-desc, .tp-card-facts { margin-left: 0; }
    .tp-card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .tp-fact { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .tp-fact-label { padding-top: 0; }
    .tp-card-foot { justify-content: stretch; }
    .tp-card-cta { width: 100%; justify-content: center; }
}
