/*!
 * finddoctors.css — redesigned /find-doctor page
 * Tokens are inherited from .hc-section (healthcare.css):
 *   --hc-teal var(--site-base, #09a9b7) | --hc-teal-dark var(--site-base-dark, #087e8b) | --hc-navy var(--site-secondary, #0d1c51)
 *   --hc-text #24355e | --hc-muted #6b7897 | --hc-line #dfeaf0
 *   --hc-bg var(--site-base-bg, #f5fbfd) | --hc-soft var(--site-base-tint, #eaf9fb) | --hc-radius 16px
 * Every icon rule sets BOTH color and stroke with !important — the theme sets a
 * muted colour on spans which would otherwise turn the white glyphs grey.
 */

.fd-section {
    --fd-teal: var(--site-base, #09a9b7);
    --fd-teal-dark: var(--site-base-dark, #087e8b);
    --fd-navy: var(--site-secondary, #0d1c51);
    --fd-text: #24355e;
    --fd-muted: #6b7897;
    --fd-line: #dfeaf0;
    --fd-bg: var(--site-base-bg, #f5fbfd);
    --fd-soft: var(--site-base-tint, #eaf9fb);
    --fd-pink: #f34d98;
    --fd-radius: 16px;
    --fd-shadow: 0 8px 26px rgba(20, 70, 100, .08);
}

.fd-section h1, .fd-section h2, .fd-section h3, .fd-section h4, .fd-section p {
    margin: 0;
}

.fd-section a { text-decoration: none; }

/* mirrors .hc-wrap so the page lines up with the theme header/footer */
.fd-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: var(--bs-gutter-x, 12px);
    padding-left: var(--bs-gutter-x, 12px);
}
@media (min-width: 576px)  { .fd-wrap { max-width: 540px; } }
@media (min-width: 768px)  { .fd-wrap { max-width: 720px; } }
@media (min-width: 992px)  { .fd-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .fd-wrap { max-width: 1140px; } }
@media (min-width: 1500px) { .fd-wrap { max-width: 1440px; } }

/* ------------------------------------------------------------- breadcrumb */
.fd-crumb {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid var(--fd-line);
}
.fd-crumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
.fd-crumb li { color: var(--fd-muted); }
.fd-crumb li + li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Pro";
    font-weight: 900;
    margin-right: 8px;
    color: #b6c2d6;
    font-size: 11px;
}
.fd-crumb a { color: var(--fd-muted); }
.fd-crumb a:hover { color: var(--fd-teal-dark); }
.fd-crumb [aria-current] { color: var(--fd-teal-dark); font-weight: 600; }

/* ------------------------------------------------------------------- hero */
.fd-hero {
    position: relative;
    background: linear-gradient(180deg, #f6fcfd 0%, #e9f7fa 60%, #fff 100%);
    overflow: hidden;
}
.fd-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px;
    align-items: center;
    padding: 34px 0 44px;
}

.fd-hero__title {
    font-size: 44px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -.8px;
    color: var(--fd-navy);
}
.fd-hero__sub {
    margin-top: 14px;
    max-width: 620px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--fd-muted);
}

.fd-trust {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    padding: 0;
    list-style: none;
}
.fd-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fd-text);
}
.fd-trust svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}

/* right column: photo + the four feature pills */
.fd-hero__aside {
    display: flex;
    align-items: center;
    gap: 20px;
}
.fd-hero__photo {
    width: 250px;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: bottom center;
}

.fd-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}
.fd-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20, 70, 100, .06);
    font-size: 14px;
    font-weight: 600;
    color: var(--fd-text);
    white-space: nowrap;
}
.fd-pill svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}

/* --------------------------------------------------------- search (float) */
.fd-search {
    position: relative;
    z-index: 5;
    margin-top: -52px;
}
.fd-search__bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: 16px;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--site-base) 12%, transparent);
}
.fd-field {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid var(--fd-line);
}
.fd-field--keyword { flex: 2.2 1 0; }
.fd-field:last-of-type { border-right: 0; }
.fd-field svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--fd-teal) !important;
    stroke: var(--fd-teal) !important;
}
.fd-field input,
.fd-field select {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--fd-text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.fd-field input::placeholder { color: #a9b4c9; }

.fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--fd-teal-dark);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.fd-btn:hover { background: var(--fd-teal); transform: translateY(-2px); }
.fd-btn svg {
    width: 17px;
    height: 17px;
    color: #fff !important;
    stroke: #fff !important;
}

/* ------------------------------------------------- popular specialities */
.fd-specs {
    padding: 26px 0 4px;
    background: #fff;
}
.fd-specs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.fd-specs__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--fd-navy);
}
.fd-specs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fd-teal-dark);
}
.fd-specs__link:hover { color: var(--fd-teal); }
.fd-specs__link svg {
    width: 15px;
    height: 15px;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}

.fd-specs__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    /* `overflow-x: auto` forces overflow-y to auto too, which makes this a
       scroll container and clips the card's hover lift. The top padding is
       the room the -4px translateY needs; it is pulled back out with a
       negative margin so the row still lines up with its heading. */
    padding: 6px 0 10px;
    margin-top: -6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.fd-specs__track::-webkit-scrollbar { display: none; }
.fd-specs__track.is-dragging { cursor: grabbing; }

.fd-spec {
    flex: 0 0 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 14px 8px;
    background: var(--fd-soft);
    border: 1px solid var(--site-base-tint-3, #d9edf2);
    border-radius: 14px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fd-spec:hover {
    transform: translateY(-4px);
    background: var(--site-base-tint-2, #e4f4f8);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-base) 16%, transparent);
}
.fd-spec svg {
    width: 26px;
    height: 26px;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
    stroke-width: 1.8;
}
.fd-spec span {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--site-secondary-dark, #1b2b4d);
}

/* ------------------------------------------------------------- main grid */
.fd-main {
    padding: 22px 0 56px;
    background: var(--fd-bg);
}
.fd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 22px;
    align-items: start;
}

/* ------------------------------------------------------- results toolbar */
.fd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.fd-bar__count {
    font-size: 17px;
    font-weight: 700;
    color: var(--fd-navy);
}
.fd-bar__count span { color: var(--fd-teal-dark); }
.fd-bar__right { display: flex; align-items: center; gap: 8px; }
.fd-bar__right label {
    font-size: 13.5px;
    color: var(--fd-muted);
    white-space: nowrap;
}
.fd-bar__right select {
    height: 38px;
    padding: 0 34px 0 12px;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7897' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 10px center / 16px;
    border: 1px solid var(--fd-line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--fd-text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* ----------------------------------------------------------- doctor card */
.fd-list { display: flex; flex-direction: column; gap: 14px; }

.fd-doc {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 264px;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fd-doc:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--site-base) 40%, transparent);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--site-base) 12%, transparent);
}

.fd-doc__photo {
    position: relative;
    width: 132px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fd-soft);
}
.fd-doc__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fd-doc__main { min-width: 0; }

.fd-doc__name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 18px;
    font-weight: 700;
    color: var(--fd-navy);
    line-height: 1.3;
}
.fd-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--site-base-tint-2, #e6f7fa);
    color: var(--fd-teal-dark);
    font-size: 11px;
    font-weight: 700;
}
.fd-verified svg {
    width: 12px;
    height: 12px;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}

.fd-doc__qual {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--fd-muted);
}
.fd-doc__spec {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fd-teal-dark);
}

.fd-doc__stats {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12.5px;
    color: var(--fd-muted);
}
.fd-doc__stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.fd-doc__stats svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}
.fd-stars { color: #f5a623 !important; stroke: #f5a623 !important; }
.fd-stars + b { color: var(--fd-navy); }
.fd-pin { color: var(--fd-teal) !important; stroke: var(--fd-teal) !important; }
.fd-clock { color: var(--fd-teal-dark) !important; stroke: var(--fd-teal-dark) !important; }

.fd-doc__tags {
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}
.fd-doc__tags li {
    padding: 4px 10px;
    background: var(--fd-soft);
    border: 1px solid var(--site-base-tint-3, #d9edf2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--fd-text);
}

.fd-doc__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    text-align: right;
}
.fd-doc__fee {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: flex-end;
}
.fd-doc__fee b {
    font-size: 21px;
    font-weight: 700;
    color: var(--fd-navy);
}
.fd-doc__fee-label {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--fd-muted);
}
.fd-doc__modes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.fd-mode {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--fd-teal-dark);
}
.fd-mode svg {
    width: 13px;
    height: 13px;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}
.fd-mode--muted { color: #b6c2d6; }
.fd-mode--muted svg { color: #b6c2d6 !important; stroke: #b6c2d6 !important; }

.fd-doc__cta { display: flex; gap: 8px; }
.fd-doc__cta .fd-btn { height: 38px; padding: 0 14px; font-size: 13px; }
.fd-btn--outline {
    background: #fff;
    color: var(--fd-teal-dark);
    border: 1px solid color-mix(in srgb, var(--site-base) 55%, transparent);
}
.fd-btn--outline:hover { background: var(--fd-soft); color: var(--fd-teal-dark); }

/* -------------------------------------------------------------- sidebar */
.fd-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }

.fd-panel {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    box-shadow: var(--fd-shadow);
}

/* On mobile the drawer header carries the title and the Clear All link, so
   the panel's own header would repeat them. */
@media (max-width: 991px) {
    .fd-side .fd-panel__head { display: none; }
    .fd-side .fd-panel { padding: 0; border: 0; box-shadow: none; background: none; }
}

.fd-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.fd-panel__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fd-navy);
}
.fd-panel__clear {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fd-teal-dark);
}
.fd-panel__clear:hover { color: var(--fd-pink); }

.fd-group + .fd-group { margin-top: 14px; }
.fd-group__label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fd-text);
}
.fd-group select {
    width: 100%;
    height: 40px;
    padding: 0 32px 0 12px;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7897' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 10px center / 16px;
    border: 1px solid var(--fd-line);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--fd-text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.fd-group select:focus { border-color: var(--fd-teal); }

.fd-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.fd-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--fd-text);
    cursor: pointer;
}
.fd-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--fd-teal-dark);
    cursor: pointer;
}

.fd-radios { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.fd-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.fd-radio input { width: 15px; height: 15px; accent-color: var(--fd-teal-dark); cursor: pointer; }

.fd-panel .fd-btn { width: 100%; margin-top: 16px; }

/* help card */
.fd-help {
    position: relative;
    padding: 20px 18px;
    background: linear-gradient(150deg, #eefafb 0%, #e2f5f8 100%);
    border: 1px solid var(--site-base-tint-4, #cfeaf0);
    border-radius: var(--fd-radius);
    overflow: hidden;
}
.fd-help__title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--fd-navy);
}
.fd-help__text {
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--fd-muted);
}
.fd-help .fd-btn { width: auto; margin-top: 14px; }
.fd-help__foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--site-base-tint-4, #cfeaf0);
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fd-text);
}
.fd-help__foot svg {
    width: 14px;
    height: 14px;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}
.fd-help__hours { margin-left: auto; color: var(--fd-muted); font-weight: 500; }

/* why choose */
.fd-why__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fd-navy);
    margin-bottom: 14px;
}
.fd-why__list { display: flex; flex-direction: column; gap: 14px; }
.fd-why__item { display: flex; align-items: flex-start; gap: 11px; }
.fd-why__ico {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--fd-soft);
    color: var(--fd-teal-dark);
}
.fd-why__ico svg {
    width: 18px;
    height: 18px;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}
.fd-why__item b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--fd-navy);
}
.fd-why__item span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--fd-muted);
}

/* ------------------------------------------------------------ empty state */
.fd-empty {
    padding: 46px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--fd-line);
    border-radius: var(--fd-radius);
}
.fd-empty__ico {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--fd-soft);
}
.fd-empty__ico svg {
    width: 26px;
    height: 26px;
    color: var(--fd-teal-dark) !important;
    stroke: var(--fd-teal-dark) !important;
}
.fd-empty h4 { font-size: 17px; font-weight: 700; color: var(--fd-navy); }
.fd-empty p { margin-top: 6px; font-size: 13.5px; color: var(--fd-muted); }

/* ------------------------------------------------------------- pagination */
.fd-pager {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.fd-pager a,
.fd-pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fd-line);
    border-radius: 9px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fd-text);
}
.fd-pager a:hover { border-color: var(--fd-teal); color: var(--fd-teal-dark); }
.fd-pager .is-current {
    background: var(--fd-teal-dark);
    border-color: var(--fd-teal-dark);
    color: #fff;
}
.fd-pager .is-disabled { opacity: .45; pointer-events: none; }
.fd-pager .is-dots { border: 0; background: none; }

/* ================================================================ RESPONSIVE */
@media (max-width: 1199px) {
    .fd-layout { grid-template-columns: minmax(0, 1fr) 272px; }
    .fd-hero__title { font-size: 36px; }
    .fd-hero__photo { width: 190px; }
    .fd-doc { grid-template-columns: 118px minmax(0, 1fr) 180px; }

    /* the two buttons no longer fit side by side in 180px — stack them so
       they can never overlap the speciality tags */
    .fd-doc__cta { flex-direction: column; width: 100%; }
    .fd-doc__cta .fd-btn { width: 100%; }
}

@media (max-width: 991px) {
    .fd-hero__inner { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 34px; }
    .fd-hero__title { font-size: 30px; }
    .fd-hero__aside { flex-direction: column-reverse; align-items: flex-start; }
    .fd-hero__photo { width: 180px; align-self: center; }
    .fd-pills { width: 100%; }
    .fd-layout { grid-template-columns: 1fr; }
    .fd-side { position: static; }
    .fd-doc { grid-template-columns: 110px minmax(0, 1fr); }
    .fd-doc__photo { width: 110px; height: 132px; }
    .fd-doc__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    /* full-width row again, so the buttons can sit side by side */
    .fd-doc__cta { flex-direction: row; width: auto; }
    .fd-doc__cta .fd-btn { width: auto; }
    .fd-doc__modes { flex-direction: row; align-items: center; }
}

@media (max-width: 767px) {
    .fd-search { margin-top: -30px; }
    .fd-search__bar { flex-wrap: wrap; }
    .fd-field { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--fd-line); padding: 0 4px 8px; }
    .fd-field:last-of-type { border-bottom: 0; padding-bottom: 0; }
    .fd-search__bar .fd-btn { flex: 1 1 100%; margin-top: 6px; }

    .fd-hero__title { font-size: 26px; }
    .fd-hero__sub { font-size: 14px; }
    .fd-specs__title { font-size: 17px; }

    .fd-doc { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .fd-doc__photo { width: 88px; height: 108px; }
    .fd-doc__name { font-size: 16px; }
    .fd-doc__fee b { font-size: 18px; }
    .fd-doc__cta { flex-direction: column; width: 100%; }
    .fd-doc__cta .fd-btn { width: 100%; }

    .fd-bar { flex-direction: column; align-items: stretch; }
    .fd-bar__right { justify-content: space-between; }
    .fd-bar__right select { flex: 1 1 auto; }
    .fd-sortbox { width: 100%; }
    .fd-pager { gap: 4px; }
    .fd-pager a, .fd-pager span { min-width: 34px; height: 34px; padding: 0 9px; }
}

/* ------------------------------------------------------------- sort control */
/* The sort drop-down is a standalone control, not one of the flex search
   fields, so it needs an explicit width — otherwise it collapses inside
   .fd-bar__right and the labels wrap one word per line. */
.fd-sortbox {
    display: block;
    flex: 0 0 auto;
    width: 210px;
    max-width: 100%;
    position: relative;
}

.fd-sortbox .hcdd { width: 100%; }