/* Team section: the catalogue (tuandui.php, desktop dossiers and homepage-style mobile profiles) and the lawyer profile feedback (tuandui-xiangqing.php). */
.st-team-page { --team-red: #a51e25; --team-ink: #23282f; --team-muted: #646a70; --team-line: #e8e5e2; --team-paper: #f7f6f3; color: var(--team-ink); }
.team-catalogue, .team-catalogue * { box-sizing: border-box; }
.team-catalogue { width: min(1200px, calc(100% - 96px)); margin: 0 auto; padding: 32px 0 56px; font-size: 14px; line-height: 1.8; }
.team-catalogue a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.team-catalogue a:hover { color: var(--team-red); }
.team-catalogue :focus-visible { outline: 3px solid #bf6e2e; outline-offset: 4px; }
.team-catalogue ::selection { background: var(--team-red); color: #fff; }
.team-catalogue input { caret-color: var(--team-red); }
.team-catalogue img { display: block; max-width: 100%; }
.team-catalogue h1, .team-catalogue h2, .team-catalogue p { margin: 0; }
.team-breadcrumb { display: flex; gap: 12px; color: var(--team-muted); font-size: 12px; }
.team-breadcrumb a { min-height: 32px; }
.team-page-intro p { margin: 0 0 24px; color: var(--team-muted); }
/* Group photo banner above the member filters: the homepage team section's red title bar and crop (only the photograph inside the
   banner artwork, with everyone in view). Touch and narrow screens show the two intro lines under the photo; mouse users get them
   over the photo on hover or keyboard focus, leaving the title bar clear. */
.team-catalogue .team-group-photo { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 24px; }
.team-catalogue .team-group-photo-title { padding: 3px 6px; border-radius: 4px 4px 0 0; background: var(--team-red); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.65; letter-spacing: 2px; text-align: center; }
.team-group-photo img { width: 100%; height: auto; aspect-ratio: 1920 / 328; object-fit: cover; object-position: center 58.9%; border-radius: 0 0 4px 4px; background: var(--team-paper); }
.team-group-photo figcaption { padding-top: 8px; color: var(--team-muted); font-size: 12px; line-height: 1.8; text-align: center; }
.team-group-photo figcaption span { display: block; }
@media (min-width: 768px) {
    .team-catalogue .team-group-photo-title { padding: 8px 12px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, #5e1015, var(--team-red) 50%, #5e1015); font-size: 15px; letter-spacing: 6px; }
    .team-group-photo img { border-radius: 0 0 2px 2px; }
}
@media (hover: hover) and (min-width: 768px) {
    .team-catalogue .team-group-photo { border-radius: 2px; box-shadow: 0 2px 4px rgb(40 22 18 / 5%), 0 14px 34px rgb(40 22 18 / 10%); }
    .team-group-photo img, .team-group-photo figcaption { grid-area: 2 / 1; }
    .team-group-photo figcaption { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 24px; border-radius: 0 0 2px 2px; background: linear-gradient(to top, rgb(20 24 32 / 92%), rgb(20 24 32 / 76%) 45%, rgb(20 24 32 / 12%)); color: #fff; font-size: 14px; opacity: 0; transition: opacity .35s cubic-bezier(.22, 1, .36, 1); }
    .team-group-photo:hover figcaption, .team-group-photo:focus figcaption { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .team-group-photo figcaption { transition: none; }
}
.team-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 20px 0; border-top: 1px solid var(--team-line); border-bottom: 1px solid var(--team-line); }
.team-filter-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.team-filter-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; color: var(--team-muted); }
.team-filter-links a[aria-current="page"] { background: #f6ecea; color: var(--team-red); font-weight: 600; }
.team-filter-links a:hover { background: var(--team-paper); color: var(--team-red); }
.team-search { display: flex; flex: 0 1 292px; min-width: 0; }
.team-search input[type="search"] { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #c8c3be; border-right: 0; border-radius: 0; background: #fff; color: var(--team-ink); font: inherit; }
.team-search input::placeholder { color: var(--team-muted); opacity: 1; }
.team-search button { flex: none; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 0; color: #fff; background: var(--team-red); font: inherit; cursor: pointer; }
.team-search button:hover { background: #7d161c; }
.team-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 32px 0 8px; }
.team-results-heading h2 { font-size: 22px; font-weight: 600; }
.team-results-heading p { color: var(--team-muted); font-size: 12px; }
.team-profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.team-profile { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; min-width: 0; padding: 28px 0; border-top: 1px solid var(--team-line); }
.team-profile-photo { display: block; align-self: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--team-paper); }
.team-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-profile-body { min-width: 0; }
.team-profile-body h2 { display: flex; align-items: baseline; gap: 4px 12px; font-size: 24px; font-weight: 600; line-height: 1.5; }
.team-profile-body h2 > a { flex: none; }
.team-profile-position { flex: 1; min-width: 0; color: var(--team-red); font-size: 13px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.team-profile-expertise { margin-top: 8px !important; padding-bottom: 8px; border-bottom: 1px solid var(--team-line); color: var(--team-ink); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.team-profile-expertise > span { font-weight: 600; }
.team-profile-summary { display: -webkit-box; margin-top: 8px !important; overflow: hidden; color: var(--team-muted); font-size: 13px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.team-catalogue .team-profile-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 8px; color: var(--team-red); font-size: 12px; }
.team-profile-link:hover { text-decoration: underline; }
.team-profile-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.team-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 32px; }
.team-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 4px 12px; border: 1px solid var(--team-line); font-size: 14px; }
.team-pagination a[aria-current="page"] { color: #fff; border-color: var(--team-red); background: var(--team-red); }
.team-pagination input { width: 44px; height: 44px; padding: 4px; border: 1px solid var(--team-line); border-radius: 0; background: #fff; color: var(--team-ink); font: inherit; text-align: center; }
.team-empty { padding: 48px 16px; background: var(--team-paper); text-align: center; }
.team-empty h2 { font-size: 20px; font-weight: 600; }
.team-empty p { margin-top: 12px; color: var(--team-muted); }
.team-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; padding: 8px 20px; color: #fff; background: var(--team-red); }
.team-empty a:hover { color: #fff; background: #7d161c; }
@media (max-width: 1100px) {
    .team-catalogue { width: calc(100% - 64px); }
    .team-profiles { column-gap: 32px; }
    .team-profile { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
    .team-profile-body h2 { font-size: 22px; }
}
@media (max-width: 767px) {
    .team-catalogue { width: calc(100% - 32px); padding: 24px 0 32px; }
    .team-page-intro p { font-size: 13px; }
    .team-filters { flex-direction: column; align-items: stretch; gap: 16px; padding: 0 0 20px; border-top: 0; }
    .team-search { order: -1; flex: none; width: 100%; }
    .team-search input[type="search"] { font-size: 16px; }
    .team-filter-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .team-filter-links a { justify-content: center; min-width: 0; padding: 6px 2px; font-size: 12px; }
    .team-results-heading { padding: 24px 0 8px; }
    .team-results-heading h2 { font-size: 20px; }
    .team-profiles { grid-template-columns: minmax(0, 1fr); }
    .team-profile { grid-template-columns: 32% minmax(0, 1fr); gap: 14px; padding: 24px 0; }
    .team-profile-photo { align-self: stretch; min-height: 174px; height: 100%; aspect-ratio: auto; }
    .team-profile-body h2 { flex-wrap: wrap; gap: 2px 8px; font-size: 20px; }
    .team-profile-position { flex: 0 1 auto; font-size: 12px; line-height: 1.6; }
    .team-profile-expertise { padding-bottom: 7px; font-size: 12px; }
    .team-profile-summary { margin-top: 4px !important; font-size: 12px; line-height: 1.8; }
}

/* ===== Lawyer profile: pennants and client reviews, include/lawyer-feedback.php (was lawyer-feedback.css) ===== */
.lawyer-feedback { max-width:1165px; margin:0 auto 40px; }
.lawyer-feedback h2 { margin:0; text-align:center; font-size:22px; font-weight:normal; color:#383838; line-height:67px; }
.lawyer-feedback-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:0 0 30px; padding:0; list-style:none; }
.lawyer-feedback-grid a { display:block; color:#393939; border:1px solid #ececec; }
.lawyer-feedback-grid a:hover { color:#d6281c; }
.lawyer-feedback-grid img { display:block; width:100%; height:240px; object-fit:contain; background:#f7f7f7; }
.lawyer-feedback-grid span { display:block; padding:12px; font-size:16px; line-height:1.6; text-align:center; overflow-wrap:break-word; }
@media screen and (max-width:768px) {
    .lawyer-feedback { padding:0 16px; }
    .lawyer-feedback-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
}
@media screen and (max-width:480px) {
    .lawyer-feedback-grid { grid-template-columns:minmax(0,1fr); }
}
