/* ==========================================================================
   TrueFinders UI — content pages (ui-content, Phase 9)
   Blog index / detail / tags, static pages (/p/*), contact, search, sitemap,
   review + user profile, claim, verify, 404. Builds on tf-ui.css tokens.
   ========================================================================== */

/* ---------- Shared ---------- */
.tf-content-hero { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.tf-content-hero h1 a { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; }
.tf-content-hero h1 a:hover { text-decoration-color: var(--tf-orange); }

.tf-blog .leftbar, .tf-page .leftbar { background: transparent; padding: 0; }

.tf-empty { width: 100%; text-align: center; color: var(--tf-muted); background: #fff; border: 1px dashed var(--tf-line); border-radius: var(--tf-r); padding: 2rem 1rem; font-weight: 500; }
.tf-empty--sm { padding: 1rem; border: 0; background: transparent; }
.tf-empty--lg { padding: 3rem 1rem; }
.tf-empty--lg h5 { margin: .75rem 0 0; color: var(--tf-ink); font-weight: 600; }
.tf-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tf-blue-50); color: var(--tf-blue-500); font-size: 1.35rem; }

.tf-narrow { max-width: 760px; margin-top: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.tf-stars { color: var(--tf-star); letter-spacing: 1px; white-space: nowrap; }
.tf-stars .fa { color: var(--tf-star); }
.tf-rating-badge { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; background: var(--tf-orange-50); color: #8a4a06; font-weight: 700; font-size: .82rem; border: 1px solid #fde1c2; white-space: nowrap; }

.tf-back-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; margin-bottom: .9rem; font-weight: 600; color: var(--tf-blue-500); }
.tf-back-link:hover { color: var(--tf-blue-700); text-decoration: none; }
.tf-back-link .fa { transition: transform .15s ease; }
.tf-back-link:hover .fa { transform: translateX(-3px); }

/* ---------- Post meta chips ---------- */
.tf-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0; font-size: .82rem; color: var(--tf-muted); }
.tf-post-meta > span, .tf-post-meta > a { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: var(--tf-line-2); color: var(--tf-muted); font-weight: 500; line-height: 1.5; }
.tf-post-meta > a.tf-post-meta__author { background: var(--tf-blue-50); color: var(--tf-blue-700); font-weight: 600; }
.tf-post-meta > a.tf-post-meta__author:hover { background: var(--tf-blue-100); text-decoration: none; }
.tf-post-meta .fa { font-size: .95em; opacity: .85; }
.tf-post-meta--sm { font-size: .75rem; gap: .3rem; }
.tf-post-meta--sm > span, .tf-post-meta--sm > a { padding: .1rem .5rem; }
.tf-post-meta img.img-user { width: 22px; height: 22px; border-radius: 50%; margin: 0 .1rem 0 -.3rem; object-fit: cover; }

/* ---------- Blog index: article cards ---------- */
.tf-blog { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.tf-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 575.98px) { .tf-post-grid { grid-template-columns: 1fr; } }

.tf-post-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); overflow: hidden; }
.tf-post-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--tf-line-2); overflow: hidden; }
.tf-post-card__media a { display: block; width: 100%; height: 100%; }
.tf-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tf-post-card:hover .tf-post-card__media img { transform: scale(1.04); }
.tf-post-card__body { display: flex; flex-direction: column; gap: .65rem; padding: 1rem 1.1rem 1.15rem; flex: 1 1 auto; }
.tf-post-card__title { font-size: 1.08rem !important; line-height: 1.4; margin: 0; font-weight: 700; }
.tf-post-card__title a { color: var(--tf-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tf-post-card__title a:hover { color: var(--tf-blue-500); text-decoration: none; }
.tf-post-card__summary { margin: 0; color: var(--tf-text); font-size: .93rem !important; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.tf-post-card--sm .tf-post-card__title { font-size: .98rem !important; }
.tf-post-card--sm .tf-post-card__body { padding: .85rem .95rem 1rem; gap: .5rem; }

/* ---------- Blog sidebar ---------- */
.tf-blog-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 991.98px) { .tf-blog-sidebar { margin-top: 2rem; } }

.tf-side-card { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); padding: 1.1rem 1.15rem; }
.tf-side-card__title { display: flex; align-items: center; gap: .5rem; font-size: 1rem !important; font-weight: 700; color: var(--tf-ink); margin: 0 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--tf-line-2); }
.tf-side-card__title .fa { color: var(--tf-orange); }

.tf-mini-posts { list-style: none; margin: 0; padding: 0; }
.tf-mini-posts li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--tf-line-2); }
.tf-mini-posts li:first-child { padding-top: 0; }
.tf-mini-posts li:last-child { border-bottom: 0; padding-bottom: 0; }
.tf-mini-posts__thumb { flex: 0 0 76px; width: 76px; height: 60px; border-radius: var(--tf-r-sm); overflow: hidden; background: var(--tf-line-2); }
.tf-mini-posts__thumb a { display: block; height: 100%; }
.tf-mini-posts__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-mini-posts__body { min-width: 0; flex: 1 1 auto; }
.tf-mini-posts__title { font-size: .9rem !important; line-height: 1.35; margin: 0 0 .35rem; font-weight: 600; }
.tf-mini-posts__title a { color: var(--tf-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-mini-posts__title a:hover { color: var(--tf-blue-500); text-decoration: none; }

.tf-tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.tf-tag-list li { margin: 0; }
.tf-tag-list .tf-chip { font-size: .8rem; padding: .28rem .7rem; }
.tf-tag-list .tf-chip:hover { text-decoration: none; border-color: var(--tf-blue-200); }
.tf-tag-list--lg { gap: .6rem; }
.tf-tag-list--lg .tf-chip { font-size: .9rem; padding: .45rem .9rem; min-height: 38px; }
.tf-tag-list--lg .tf-chip .fa { opacity: .6; }
.tf-all-tags { padding: clamp(1.1rem, 3vw, 1.75rem); }

.tf-link-list { list-style: none; margin: 0; padding: 0; }
.tf-link-list li { margin: 0; }
.tf-link-list a { display: flex; align-items: center; gap: .5rem; padding: .5rem .35rem; border-radius: var(--tf-r-sm); color: var(--tf-text); font-size: .92rem; font-weight: 500; }
.tf-link-list a .fa { color: var(--tf-blue-500); width: .6rem; transition: transform .15s ease; }
.tf-link-list a:hover { background: var(--tf-blue-50); color: var(--tf-blue-700); text-decoration: none; }
.tf-link-list a:hover .fa { transform: translateX(2px); }

/* ---------- Blog detail: article ---------- */
.tf-blog--detail { margin-top: clamp(1.25rem, 3vw, 2rem); }
.tf-article { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-sm); padding: clamp(1.1rem, 3.5vw, 2.25rem); }
.tf-article__cat { margin: 0 0 .75rem; }
.tf-article__cat .tf-chip { background: var(--tf-orange-50); color: #8a4a06; border-color: #fde1c2; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.tf-article__title { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.35rem) !important; line-height: 1.2; margin: 0 0 1rem; color: var(--tf-ink); }
.tf-article__metabar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--tf-line-2); }
.tf-article__share:empty { display: none; }
.tf-article__image { margin: 0 0 1.5rem; border-radius: var(--tf-r); overflow: hidden; background: var(--tf-line-2); }
.tf-article__image a { display: block; }
.tf-article__image img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
.tf-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--tf-line-2); }
.tf-article__tags-title { font-size: .95rem !important; margin: 0; color: var(--tf-ink); display: inline-flex; align-items: center; gap: .4rem; }
.tf-article__tags-title .fa { color: var(--tf-orange); }

/* Readable typography for CKEditor / legacy HTML bodies */
.tf-prose { color: var(--tf-text); font-size: 1.04rem; line-height: 1.78; max-width: 72ch; overflow-wrap: anywhere; word-break: normal; }
.tf-prose--nobr br { display: none; } /* legacy: blog bodies hide nl2br breaks (was .post-item-boxed .post-text br) */
.tf-prose > :first-child { margin-top: 0; }
.tf-prose p, .tf-prose li { font-size: 1.04rem; line-height: 1.78; }
.tf-prose p { margin: 0 0 1.1em; }
.tf-prose h1, .tf-prose h2, .tf-prose h3, .tf-prose h4, .tf-prose h5, .tf-prose h6 { color: var(--tf-ink); margin: 1.7em 0 .6em; line-height: 1.3; }
.tf-prose h1 { font-size: 1.7rem; }
.tf-prose h2 { font-size: 1.45rem; }
.tf-prose h3 { font-size: 1.22rem; }
.tf-prose h4 { font-size: 1.08rem; }
.tf-prose a { color: var(--tf-blue-500); text-decoration: underline; text-decoration-color: var(--tf-blue-200); text-underline-offset: 3px; font-weight: 500; }
.tf-prose a:hover { color: var(--tf-blue-700); text-decoration-color: currentColor; }
.tf-prose ul, .tf-prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.tf-prose li { margin-bottom: .4em; }
.tf-prose li::marker { color: var(--tf-blue-500); }
.tf-prose blockquote { margin: 1.4em 0; padding: .9em 1.2em; border-left: 4px solid var(--tf-orange); background: var(--tf-orange-50); border-radius: 0 var(--tf-r-sm) var(--tf-r-sm) 0; color: var(--tf-ink); font-style: italic; }
.tf-prose img { max-width: 100% !important; height: auto !important; border-radius: var(--tf-r-sm); }
.tf-prose iframe, .tf-prose video { max-width: 100%; }
.tf-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.tf-prose th, .tf-prose td { border: 1px solid var(--tf-line); padding: .55rem .7rem; }
.tf-prose th { background: var(--tf-line-2); color: var(--tf-ink); }
.tf-prose hr { border: 0; border-top: 1px solid var(--tf-line); margin: 2em 0; }
.tf-prose pre, .tf-prose code { background: var(--tf-line-2); border-radius: 6px; font-size: .9em; }
.tf-prose pre { padding: .9em 1em; overflow-x: auto; }
.tf-prose strong, .tf-prose b { color: var(--tf-ink); }

/* Prev / next */
.tf-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tf-prevnext:not(:has(.tf-prevnext__item)) { display: none; }
.tf-prevnext__item { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); padding: 1rem 1.15rem; min-width: 0; }
.tf-prevnext__item--next { text-align: right; grid-column: 2; }
.tf-prevnext__label { margin: 0 0 .35rem; font-size: .76rem !important; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.tf-prevnext__label a { color: var(--tf-orange-600); }
.tf-prevnext__label .fa { font-size: .7rem; }
.tf-prevnext__title { margin: 0; font-size: .98rem !important; line-height: 1.4; }
.tf-prevnext__title a { color: var(--tf-ink); }
.tf-prevnext__title a:hover { color: var(--tf-blue-500); text-decoration: none; }
@media (max-width: 575.98px) {
  .tf-prevnext { grid-template-columns: 1fr; }
  .tf-prevnext__item--next { grid-column: auto; }
}

/* Related posts */
.tf-related { margin: 2rem 0; }
.tf-related__title { font-size: 1.15rem !important; margin: 0 0 1rem; color: var(--tf-ink); display: flex; align-items: center; gap: .75rem; letter-spacing: .04em; }
.tf-related__title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--tf-line); }
.tf-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 767.98px) { .tf-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .tf-related__grid { grid-template-columns: 1fr; } }

/* Comments */
.tf-comment-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.25rem; background: linear-gradient(135deg, var(--tf-blue-50), #fff); border: 1px solid var(--tf-blue-100); border-radius: var(--tf-r); padding: 1.1rem 1.25rem; margin: 2rem 0; }
.tf-comment-cta__text { color: var(--tf-ink); font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.tf-comment-cta__text > .fa { color: var(--tf-blue-500); font-size: 1.2rem; margin-right: .25rem; }
.tf-comment-cta__text a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 575.98px) { .tf-comment-cta .btn { width: 100%; } }
.tf-comments { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-sm); padding: clamp(1.1rem, 3vw, 1.75rem); margin: 2rem 0; }
.tf-comments__title { font-size: 1.2rem !important; margin: 0 0 1.1rem; color: var(--tf-ink); }
.tf-comments .form-row { margin: 0 -8px; }
.tf-comments .form-group { padding: 0 8px; }
.tf-comments textarea.form-control { min-height: 140px; resize: vertical; }
.tf-comments .g-recaptcha { max-width: 100%; overflow: hidden; }
.tf-comments button.btn.btn-custom { margin: 0; background: var(--tf-orange); border-color: var(--tf-orange); color: #fff; min-width: 180px; }
.tf-comments button.btn.btn-custom:hover { background: var(--tf-orange-600); border-color: var(--tf-orange-600); }
@media (max-width: 575.98px) { .tf-comments button.btn.btn-custom { width: 100%; } }

/* ---------- Static pages (/p/*) ---------- */
.tf-page { max-width: 900px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.tf-page__card { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-sm); padding: clamp(1.25rem, 4vw, 2.75rem); }
.tf-page__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem) !important; margin: 0 0 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--tf-line-2); color: var(--tf-ink); }
.tf-page .tf-prose { max-width: none; }

/* ---------- Contact ---------- */
.tf-contact-hero { background: linear-gradient(180deg, #fff 0%, var(--tf-bg) 100%); border-bottom: 1px solid var(--tf-line); padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 3rem); }
.tf-contact-hero__title { font-family: var(--tf-display) !important; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem) !important; color: var(--tf-navy); margin: 0 0 .6rem; letter-spacing: 0; }
.tf-contact-hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.18rem) !important; color: var(--tf-muted); max-width: 40rem; margin: 0 0 1.5rem; }
.tf-contact-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.tf-contact-stat { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); padding: 1rem 1.1rem; }
.tf-contact-stat__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tf-blue-50); color: var(--tf-blue-500); margin-bottom: .6rem; }
.tf-contact-stat__label { font-weight: 700; color: var(--tf-ink); }
.tf-contact-stat__sub { color: var(--tf-muted); font-size: .85rem; }
.tf-contact-stat__value { color: var(--tf-blue-700); font-weight: 800; font-size: 1.1rem; margin-top: .1rem; }
.tf-contact { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem); }
.tf-contact-card { height: auto; padding: clamp(1.15rem, 3vw, 1.75rem); }
.tf-contact-card--main { height: 100%; }
.tf-contact-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tf-blue-500); color: #fff; font-size: 1.1rem; margin-bottom: .9rem; }
.tf-contact-card__icon--accent { background: var(--tf-orange); }
.tf-contact-card--tip { background: var(--tf-blue-50); border-color: var(--tf-blue-100); box-shadow: none; }
.tf-contact-card--tip .tf-contact-card__icon { background: #fff; color: var(--tf-blue-500); border: 1px solid var(--tf-blue-100); }
.tf-contact-card__title { font-size: 1.2rem !important; margin: 0 0 .5rem; color: var(--tf-ink); }
.tf-contact-card__title--sm { font-size: 1.05rem !important; }
.tf-contact-email { display: inline-flex; align-items: center; font-weight: 700; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); color: var(--tf-blue-500); overflow-wrap: anywhere; }
.tf-contact-email:hover { color: var(--tf-blue-700); }
.tf-contact-card__rule { border: 0; border-top: 1px solid var(--tf-line-2); margin: 1.4rem 0; }
.tf-contact-card__subtitle { font-weight: 700; color: var(--tf-ink); margin-bottom: .6rem; }
.tf-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tf-check-list li { position: relative; padding-left: 1.85rem; color: var(--tf-text); }
.tf-check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--tf-success-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2314855c' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center; }
@media (max-width: 991.98px) { .tf-contact-hero__lead { margin-bottom: 1.25rem; } }

/* ---------- Search results ---------- */
.tf-search { margin-top: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.tf-search__header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.tf-search__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tf-blue-500); color: #fff; font-size: 1.1rem; }
.tf-search__title { margin: 0; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem) !important; color: var(--tf-ink); word-break: break-word; }
.tf-search__query { color: var(--tf-blue-500); }
.tf-search__query em { font-style: normal; }
.tf-result-card { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.tf-result-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; }
.tf-result-card__name { font-size: 1.1rem !important; margin: 0 0 .2rem; color: var(--tf-ink); font-weight: 700; }
.tf-result-card__loc { color: var(--tf-muted); font-size: .88rem; }
.tf-result-card__loc .fa { color: var(--tf-blue-500); }
.tf-result-card__rating { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.tf-result-card__count { color: var(--tf-muted); font-size: .85rem; font-weight: 600; }
.tf-result-card__review { margin: .9rem 0; padding-top: .9rem; border-top: 1px solid var(--tf-line-2); }
.tf-result-card__none { margin: 0; font-size: .9rem; font-weight: 500; }
.tf-quote { position: relative; background: var(--tf-line-2); border-radius: var(--tf-r-sm); padding: .75rem .9rem .75rem 2.2rem; }
.tf-quote::before { content: "\201C"; position: absolute; left: .7rem; top: .1rem; font-size: 2rem; line-height: 1; color: var(--tf-blue-200); font-family: Georgia, serif; }
.tf-quote__title { margin: 0 0 .2rem; color: var(--tf-ink); font-weight: 700; font-size: .95rem; }
.tf-quote__text { color: var(--tf-text); font-size: .88rem; }
.tf-result-card__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--tf-blue-500); overflow-wrap: anywhere; }
.tf-result-card__link:hover { color: var(--tf-blue-700); text-decoration: none; }

/* ---------- Sitemap ---------- */
.tf-sitemap { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.tf-sitemap__card { padding: clamp(1.1rem, 3vw, 1.75rem); }
.tf-sitemap__heading { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem !important; margin: 0 0 1rem; color: var(--tf-ink); }
.tf-sitemap__heading .fa { color: var(--tf-orange); }
.tf-az { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: .4rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--tf-line-2); }
.tf-az__letter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--tf-r-sm); border: 1px solid var(--tf-line); background: #fff; color: var(--tf-ink); font-weight: 700; font-size: .95rem; }
.tf-az__letter:hover { background: var(--tf-blue-50); border-color: var(--tf-blue-200); color: var(--tf-blue-700); text-decoration: none; }
.tf-az__letter.is-active { background: var(--tf-blue-500); border-color: var(--tf-blue-500); color: #fff; box-shadow: var(--tf-shadow-sm); }
@media (max-width: 767.98px) { .tf-az { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.tf-sitemap__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .15rem 1rem; }
.tf-sitemap__grid li { margin: 0; min-width: 0; }
.tf-sitemap__grid a { display: block; padding: .45rem .55rem; border-radius: 6px; color: var(--tf-text); font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-sitemap__grid a:hover { background: var(--tf-blue-50); color: var(--tf-blue-700); text-decoration: none; }
@media (max-width: 479.98px) { .tf-sitemap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tf-sitemap__grid a { white-space: normal; } }

/* ---------- Review cards (/review/*, /user/*) ---------- */
.tf-review-page { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.tf-avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--tf-blue-500), var(--tf-blue-700)); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 0 3px var(--tf-blue-50); }
.tf-avatar img { width: 60%; height: 60%; object-fit: contain; border-radius: 0; }
.tf-avatar--lg { width: 96px; height: 96px; box-shadow: 0 0 0 5px var(--tf-blue-50); }
.tf-review-card { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); padding: clamp(1rem, 3vw, 1.5rem); margin-bottom: 1rem; }
.tf-review-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.tf-review-card__who { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; }
.tf-review-card__name { color: var(--tf-ink); font-size: 1.02rem; }
.tf-review-card__time { color: var(--tf-muted); font-size: .84rem; }
.tf-review-card__rating { display: flex; align-items: center; gap: .45rem; margin: 0; }
.tf-review-card__body { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--tf-line-2); }
.tf-review-card__title { font-weight: 700; color: var(--tf-ink); font-size: 1.1rem !important; margin: 0 0 .5rem; line-height: 1.4; }
.tf-review-card__title a { color: var(--tf-ink); }
.tf-review-card__title a:hover { color: var(--tf-blue-500); text-decoration: none; }
.tf-review-card__text { color: var(--tf-text); overflow-wrap: anywhere; }
.tf-review-card__text p:last-child { margin-bottom: 0; }
.tf-review-card .tf-prose { max-width: none; }
.tf-review-card p.myreviews { position: static; text-align: left; margin: 0; color: var(--tf-muted); font-size: .93rem; }
.tf-review-card p.myreviews a { font-weight: 700; }

/* ---------- User profile ---------- */
.tf-profile-hero { padding-bottom: clamp(2rem, 5vw, 3.25rem) !important; }
.tf-profile-hero__country { margin-top: .4rem !important; opacity: .85; }
.titlebox-top .tf-profile-hero__social { gap: .5rem; margin-top: .9rem; }
.titlebox-top .tf-profile-hero__social a { width: 40px; height: 40px; background: rgba(255, 255, 255, .12); }
.titlebox-top .tf-profile-hero__social a:hover { background: var(--tf-orange); }
.tf-profile { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.tf-profile__side { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .tf-profile__side { position: sticky; top: calc(var(--tf-header-h) + 1rem); } }
.tf-profile-card { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); padding: 1.5rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.tf-profile-card__pic { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--tf-blue-50); }
.tf-profile-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.tf-profile-card__name { margin: 0; font-size: 1.1rem !important; color: var(--tf-ink); word-break: break-word; }
.tf-profile-tabs { flex-direction: column; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); padding: .4rem; box-shadow: var(--tf-shadow-sm); }
.tf-profile-tabs .nav-link { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .8rem; border-radius: var(--tf-r-sm); color: var(--tf-text); font-weight: 600; }
.tf-profile-tabs .nav-link .fa { width: 1rem; text-align: center; color: var(--tf-muted); }
.tf-profile-tabs .nav-link:hover { background: var(--tf-blue-50); color: var(--tf-blue-700); }
.tf-profile-tabs .nav-link.active { background: var(--tf-blue-500); color: #fff; }
.tf-profile-tabs .nav-link.active .fa { color: #fff; }
@media (max-width: 767.98px) {
  .tf-profile-card { flex-direction: row; text-align: left; padding: 1rem; }
  .tf-profile-card__pic, .tf-profile-card .tf-avatar--lg { width: 64px; height: 64px; }
  .tf-profile-tabs { flex-direction: row; }
  .tf-profile-tabs .nav-item { flex: 1 1 0; }
  .tf-profile-tabs .nav-link { justify-content: center; }
}
.tf-profile__about { margin-bottom: 1.5rem; max-width: none; }
.tf-profile__about > :last-child { margin-bottom: 0; }
.tf-profile__section { margin-bottom: 1.5rem; scroll-margin-top: calc(var(--tf-header-h) + 1rem); }
.container.user-review-section h2.tf-profile__heading { margin: 0 0 1rem; font-size: 1.25rem !important; color: var(--tf-ink); display: flex; align-items: center; gap: .75rem; }
.tf-profile__heading::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--tf-line); }

/* ---------- Claim / verify ---------- */
.tf-claim { padding: clamp(1.25rem, 4vw, 2.25rem); }
.tf-claim__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.tf-claim__icon, .tf-verify-msg__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tf-blue-50); color: var(--tf-blue-500); font-size: 1.3rem; }
.tf-claim__title { margin: 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem) !important; color: var(--tf-ink); word-break: break-word; }
.tf-claim__text { color: var(--tf-text); margin-bottom: 1.25rem; }
.tf-claim__mask { color: var(--tf-ink); word-break: break-all; }
.tf-claim__form { max-width: 520px; }
.tf-claim__form .input-group-text { font-weight: 600; color: var(--tf-ink); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .tf-claim__form .btn { width: 100%; } }
.tf-verify-msg { display: flex; gap: 1rem; align-items: flex-start; padding: clamp(1.25rem, 4vw, 2rem); }
.tf-verify-msg__body { flex: 1 1 auto; min-width: 0; }
.tf-verify-msg__body > :last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.tf-notfound { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.tf-notfound__card { max-width: 680px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow); padding: clamp(1.75rem, 5vw, 3rem) clamp(1.1rem, 4vw, 2.5rem); }
.tf-notfound__code { display: inline-flex; align-items: center; gap: .15em; font-family: var(--tf-display); font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem); font-weight: 800; line-height: 1; color: var(--tf-blue-700); margin-bottom: 1rem; }
.tf-notfound__code span { display: inline-flex; align-items: center; justify-content: center; width: .9em; height: .9em; border-radius: 50%; background: var(--tf-orange); color: #fff; font-size: .55em; box-shadow: 0 8px 20px rgba(248, 136, 26, .35); }
.tf-notfound__code span .fa { font-size: .85em; }
.tf-notfound__lead { color: var(--tf-ink); font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem) !important; font-weight: 500; }
.tf-notfound__hint { color: var(--tf-muted); margin-bottom: 0; }
.tf-notfound__links a { align-items: center; gap: .45rem; min-height: 44px; color: var(--tf-ink); }
.tf-notfound__links a .fa { color: var(--tf-blue-500); }
.tf-notfound__links a:hover { text-decoration: none; background: var(--tf-blue-50); }
.tf-notfound__links a.is-primary { background: var(--tf-blue-500); border-color: var(--tf-blue-500); color: #fff; }
.tf-notfound__links a.is-primary .fa { color: #fff; }
.tf-notfound__links a.is-primary:hover { background: var(--tf-blue-700); border-color: var(--tf-blue-700); }
@media (max-width: 479.98px) { .tf-notfound__links { flex-direction: column; } .tf-notfound__links a { width: 100%; justify-content: center; } }

/* Standalone errors/404 (own <head>): header markup mirrors the site header */
.tf-standalone-404 main { min-height: 50vh; }

/* ---------- Fixes after browser review ---------- */
/* comman.css paints .fa-clock-o:before white (header use) */
.tf-post-meta .fa-clock-o:before, .tf-review-card .fa-clock-o:before, .tf-contact-stat .fa-clock-o:before { color: inherit; }
/* Summaries are sanitised HTML that may open their own <p>/<strong>: style every paragraph in the card body */
.tf-post-card__body > p { margin: 0; color: var(--tf-text); font-size: .93rem !important; line-height: 1.6; word-break: break-word; }
.tf-post-card__body > p:empty { display: none; }
/* Long tag clouds: keep every tag, scroll inside the card */
.tf-blog-sidebar .tf-tag-list { max-height: 360px; overflow-y: auto; padding-right: .25rem; overscroll-behavior: contain; scrollbar-width: thin; }
