/* wwwroot/css/advocates.css — /advocates (E-Pairokar Panel + Advocate Directory) and panel profiles.
   Loaded after directory.css; uses the style.css tokens (navy & gold). Classes: .af-* */

/* ── hero ── */
.af-hero { padding-bottom: 92px; }
.af-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.af-hero h1 { max-width: 26ch; }
.af-hero p b { color: var(--gold-300); }
.af-hero .dir-stats li i { color: var(--gold-300); }
.af-hero-call { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 18px; text-decoration: none;
    background: rgba(255,255,255,.06); border: 1px solid rgba(201,165,90,.55); color: #fff; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); transition: transform .15s, background .15s; }
.af-hero-call:hover { color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.af-hero-call-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-metal); color: #0a1426; font-size: 1.3rem; flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(201,165,90,.18); }
.af-hero-call small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.af-hero-call b { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: .01em; line-height: 1.15; color: var(--gold-300); white-space: nowrap; }
@media (max-width: 991.98px) { .af-hero-grid { grid-template-columns: 1fr; } .af-hero-call { justify-self: start; } }

/* ── search card ── */
.af-search-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.af-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--tint); flex-wrap: wrap; }
.af-seg a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-size: .86rem; font-weight: 700; color: var(--slate-600); text-decoration: none; }
.af-seg a b { font-size: .74rem; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--navy); }
.af-seg a:hover { color: var(--navy); }
.af-seg a.is-on { background: var(--navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(15,31,58,.7); }
.af-seg a.is-on i { color: var(--gold-300); }
.af-seg a.is-on b { background: var(--gold-metal); color: #0a1426; }
.af-clear { font-size: .86rem; font-weight: 700; color: var(--danger); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* ── panel vs directory ── */
.af-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.af-explain-card { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,31,58,.04); }
.af-explain-card.is-panel { background: linear-gradient(135deg, #fffaf0 0%, #fff 60%); border-color: #ecd9a6; }
.af-explain-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold-300); font-size: 1.25rem; flex-shrink: 0; }
.af-explain-card.is-panel .af-explain-ic { background: var(--gold-metal); color: #0a1426; }
.af-explain-card h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.af-explain-card p { font-size: .9rem; color: var(--slate-600); margin: 0 0 6px; }
.af-explain-card a { font-size: .86rem; font-weight: 800; color: var(--gold-700); text-decoration: none; }
.af-explain-card a:hover { text-decoration: underline; }
@media (max-width: 767.98px) { .af-explain { grid-template-columns: 1fr; } }
.dir-results-head small i { color: var(--gold-700); margin-right: 2px; }

/* ── card ── */
.af-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.af-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 8px 24px -16px rgba(15,31,58,.35); transition: transform .2s, box-shadow .2s; }
.af-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(15,31,58,.45); }
.af-card.is-panel { border-color: #e6d3a0; box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 10px 28px -16px rgba(176,141,67,.55); }
.af-card-banner { display: block; height: 84px; background: var(--navy-metal) center/cover no-repeat; position: relative; z-index: 0; }
.af-card.is-panel .af-card-banner { background-image: radial-gradient(300px 120px at 90% 0%, rgba(201,165,90,.35), transparent 70%), var(--navy-metal); }
.af-ribbon { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; border-radius: 999px;
    background: var(--gold-metal); color: #0a1426; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.af-card-body { padding: 0 18px 16px; flex: 1; display: flex; flex-direction: column; }
.af-card-top { position: relative; z-index: 2; margin-top: -36px; margin-bottom: 8px; }
.af-card-top a { display: inline-block; border-radius: 50%; }
.af-card .dir-avatar { border: 4px solid #fff; box-shadow: 0 8px 20px -10px rgba(15,31,58,.7); }
.af-card.is-panel .dir-avatar { border-color: #f3e3b6; }
.af-card h3 { font-size: 1.12rem; font-weight: 800; margin: 0 0 8px; line-height: 1.25; }
.af-card h3 a { color: var(--navy); text-decoration: none; }
.af-card h3 a:hover { color: var(--gold-700); }
.af-badge-panel { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; line-height: 1; padding: 5px 10px 5px 8px; font-size: .74rem; font-weight: 800;
    color: #6b4d16; background: #fff4d8; border: 1px solid #ecd28c; border-radius: 999px; }
.af-badge-panel i { color: var(--gold-600); font-size: .85rem; }
.af-badge-panel.is-lg { font-size: .8rem; padding: 6px 12px 6px 9px; background: var(--gold-metal); color: #0a1426; border-color: #a9853b; }
.af-badge-panel.is-lg i { color: #0a1426; }
.af-card .dir-titles { margin: 10px 0 4px; }
.af-court { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 2px; font-size: .88rem; color: var(--ink-900); }
.af-court i { color: var(--gold-700); margin-top: 2px; }
.af-court b { font-weight: 800; color: var(--navy); }
.af-court em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--slate-600); margin-left: 6px; white-space: nowrap; }
.af-card .dir-meta { margin-top: 6px; }
.af-card .af-view { margin-top: auto; }

/* ── call band ── */
.af-call-band { margin: 34px 0 10px; border-radius: 20px; padding: 26px 28px; display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    background: radial-gradient(500px 200px at 100% 0%, rgba(201,165,90,.22), transparent 70%), var(--navy-metal); color: #fff; border-bottom: 4px solid var(--gold); }
.af-call-band h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; margin: 0 0 4px; color: #fff; }
.af-call-band p { margin: 0; color: rgba(255,255,255,.82); max-width: 640px; }
.af-call-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.af-call-big { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 14px; text-decoration: none;
    background: var(--gold-metal); color: #0a1426; border: 1px solid #a9853b; box-shadow: 0 14px 28px -14px rgba(201,165,90,.9); transition: transform .15s, filter .15s; }
.af-call-big:hover { color: #0a1426; transform: translateY(-2px); filter: brightness(1.05); }
.af-call-big > i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #0a1426; color: var(--gold-300); font-size: 1.05rem; flex-shrink: 0; }
.af-call-big span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.af-call-big small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.af-call-big.is-block { display: flex; width: 100%; }

/* ── browse by court / area ── */
.af-browse, .af-related { padding: 0; }   /* style.css gives every <section> 5.5rem padding */
.af-browse { margin-top: 28px; }
.af-browse h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; color: var(--navy); display: flex; gap: 8px; align-items: center; margin: 0 0 10px; }
.af-browse h2 i { color: var(--gold-700); }
.af-browse-list { display: flex; flex-wrap: wrap; gap: 8px; }
.af-browse-list a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    color: var(--navy); font-size: .86rem; font-weight: 600; text-decoration: none; }
.af-browse-list a b { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--slate-600); }
.af-browse-list a:hover, .af-browse-list a.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.af-browse-list a:hover b, .af-browse-list a.is-on b { background: var(--gold-metal); color: #0a1426; }

/* ── profiles ── */
.af-panel-banner { background: radial-gradient(700px 260px at 85% 0%, rgba(201,165,90,.3), transparent 65%), var(--navy-metal); }
.af-tick { color: var(--gold-600); }
.af-crumb { margin: 16px 0 0; }
.af-crumb a, .af-crumb span { color: var(--slate-600); font-size: .86rem; }
.af-crumb a:hover { color: var(--navy); }
.af-crumb { background: #fff !important; border: 1px solid var(--line) !important; }
.af-crumb .bi, .af-crumb i { color: var(--slate-400) !important; font-size: .65rem; margin: 0 2px; }
.af-about { white-space: pre-line; }
.af-courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.af-court-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #ece2c8; border-left: 4px solid var(--gold); border-radius: 10px;
    background: #fffdf7; text-decoration: none; color: inherit; }
.af-court-row:hover { border-color: var(--gold); }
.af-court-row i { color: var(--gold-700); margin-top: 2px; }
.af-court-row b { display: block; color: var(--navy); font-size: .9rem; line-height: 1.3; }
.af-court-row small { display: block; color: var(--slate-600); font-size: .78rem; }
.af-chip-link { text-decoration: none; }
.af-chip-link:hover { background: var(--navy); color: #fff; }
.af-engage { background: linear-gradient(160deg, #fffaf0 0%, #fff 55%); border-color: #ecd9a6; }
.af-engage p { font-size: .9rem; color: var(--slate-600); }
.af-related { margin-top: 34px; }
.af-related h2 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.af-crumb { flex-wrap: wrap; row-gap: 2px; border-radius: 14px; }
.af-crumb a, .af-crumb span { white-space: nowrap; }
@media (max-width: 575.98px) { .af-crumb { display: none !important; } }   /* the visible trail is long on phones; search engines read the JSON-LD breadcrumb */

/* ── card v2: fixed layout — every line one line high, so all cards are the same height ── */
.af-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-card h3.af-line { display: block; height: 1.5em; line-height: 1.5; margin: 0 0 8px; }
.af-badges { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; height: 27px; margin-bottom: 8px; }
.af-badges > * { flex-shrink: 0; }
.af-label { display: flex; align-items: center; height: 26px; margin-bottom: 6px; }
.af-label .dir-title { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-card .af-court { display: flex; align-items: center; gap: 8px; height: 24px; margin: 0 0 4px; }
.af-card .af-court i { margin-top: 0; flex-shrink: 0; }
.af-card .af-court b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-card .af-court em { flex-shrink: 0; margin-left: 0; }
.af-meta { display: flex; align-items: center; gap: 8px; height: 22px; font-size: .86rem; color: var(--slate-600); }
.af-meta i { color: var(--gold-700); width: 16px; flex-shrink: 0; }
.af-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-card .af-view { margin-top: 14px; }
.af-card-top a, .af-card-top a:hover { text-decoration: none; }
