/* =====================================================================
   Guides + Booking FAQ — one section, people left, questions right, and
   under the people the way to ask one that is not in the list.

   Light ground throughout. The FAQ used to be a black band; nothing here
   is dark now except the type.

   Three shapes, set by the modifier the partial picks from the data:
     · --split       two columns (48 landings carry both)
     · --guides-only full width, cards side by side (637)
     · --faq-only    full width accordion (29)
   A half-width column of guides on a page with no FAQ would be half a
   band of dead space, which is why the grid is not fixed at two.
   ===================================================================== */

.cp-gf {
    background: #EDE3D5;
    padding: 76px 60px 80px;
}

.cp-gf__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 56px;
}

.cp-gf--split .cp-gf__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.cp-gf--guides-only .cp-gf__inner,
.cp-gf--faq-only .cp-gf__inner {
    grid-template-columns: minmax(0, 1fr);
}

.cp-gf__col {
    min-width: 0;
}

/* The FAQ alone would run the full 1200px, which is far past a readable
   measure for a question list. */
.cp-gf--faq-only .cp-gf__col--faq {
    max-width: 860px;
}

/* ── Column headers ─────────────────────────────────────────────────── */

.cp-gf__header {
    margin-bottom: 26px;
}

.cp-gf__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FF6A00;
    margin-bottom: 10px;
}

.cp-gf__h2 {
    font-size: clamp(23px, 2.6vw, 31px);
    font-weight: 800;
    color: #111214;
    letter-spacing: -0.5px;
    line-height: 1.16;
    margin: 0;
}

/* ── Guides ─────────────────────────────────────────────────────────── */

/* Stacked beside the FAQ; side by side when they have the width to
   themselves. */
.cp-gf__guides {
    display: grid;
    gap: 18px;
}

.cp-gf--guides-only .cp-gf__guides {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cp-gf__guide {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px 24px;
    background: #FBF8F3;
    border: 1px solid rgba(17, 18, 20, 0.10);
    border-radius: 2px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cp-gf__guide:hover {
    border-color: rgba(17, 18, 20, 0.22);
    box-shadow: 0 16px 34px -26px rgba(17, 18, 20, 0.55);
    transform: translateY(-2px);
}

.cp-gf__guide-head {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.cp-gf__portrait {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(17, 18, 20, 0.06);
    box-shadow:
        0 0 0 1px rgba(17, 18, 20, 0.10),
        0 10px 22px -16px rgba(17, 18, 20, 0.6);
}

/* The legacy files carry a thin light frame baked into the pixels; the
   slight overscan crops it off instead of framing the frame. */
.cp-gf__photo {
    display: block;
    width: 104%;
    height: 104%;
    margin: -2%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cp-gf__guide:hover .cp-gf__photo {
    transform: scale(1.04);
}

.cp-gf__photo--empty {
    width: 100%;
    height: 100%;
    margin: 0;
}

.cp-gf__ident {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.cp-gf__name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #111214;
    margin: 0;
}

.cp-gf__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Stretches the anchor over the whole card: the card is the click target,
   the name is the link text. */
.cp-gf__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2px;
}

.cp-gf__guide:hover .cp-gf__link {
    color: #B85000;
}

.cp-gf__link:focus-visible {
    outline: none;
}

.cp-gf__link:focus-visible::after {
    outline: 2px solid #FF6A00;
    outline-offset: 3px;
}

.cp-gf__role {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.03em;
    color: rgba(17, 18, 20, 0.62);
}

.cp-gf__quote {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(17, 18, 20, 0.74);
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 106, 0, 0.5);

    /* These are free-text intros of wildly different lengths and one long
       one must not set the height of every card beside it. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp-gf__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-gf__fact {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: rgba(17, 18, 20, 0.66);
    background: rgba(17, 18, 20, 0.035);
    border: 1px solid rgba(17, 18, 20, 0.12);
    border-radius: 999px;
    padding: 6px 11px;
}

/* A measured credential outranks a self-declared speciality. */
.cp-gf__fact--stat {
    font-weight: 700;
    color: #111214;
    background: rgba(17, 18, 20, 0.06);
    border-color: rgba(17, 18, 20, 0.2);
    font-variant-numeric: tabular-nums;
}

/* margin-top:auto pins this to the bottom, so the profile links of cards
   with different content lengths line up with each other. */
.cp-gf__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 18, 20, 0.09);
}

.cp-gf__langs {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(17, 18, 20, 0.62);
}

/* #B85000, not the brand #FF6A00: this is text a visitor has to read, and
   the brand orange only clears 2.7:1 on this ground. */
.cp-gf__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #B85000;
    white-space: nowrap;
}

.cp-gf__cta svg {
    transition: transform 0.25s ease;
}

.cp-gf__guide:hover .cp-gf__cta svg {
    transform: translateX(4px);
}

/* ── Ask a question ─────────────────────────────────────────────────── */

.cp-gf__ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 20px;
    padding: 22px 24px;
    background: #FBF8F3;
    border: 1px solid rgba(17, 18, 20, 0.12);
    border-top: 2px solid #FF6A00;
    border-radius: 2px;
}

.cp-gf__ask-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #111214;
}

.cp-gf__ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 24px;
    height: 46px;
    background: #FF6A00;
    color: #111214;
    border: 1px solid #FF6A00;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* The shared label carries <strong> in several locales; it must not read
   as a second weight inside a button that is already bold. */
.cp-gf__ask-btn strong {
    font-weight: inherit;
}

.cp-gf__ask-btn:hover {
    background: #ff7d1f;
    border-color: #ff7d1f;
}

.cp-gf__ask-btn:focus-visible {
    outline: 2px solid #111214;
    outline-offset: 3px;
}

/* ── FAQ ────────────────────────────────────────────────────────────── */

.cp-gf__faq {
    display: flex;
    flex-direction: column;
}

.cp-gf__item {
    border-bottom: 1px solid rgba(17, 18, 20, 0.14);
}

.cp-gf__item:first-child {
    border-top: 1px solid rgba(17, 18, 20, 0.14);
}

.cp-gf__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    text-align: left;
    padding: 19px 2px;
    cursor: pointer;
    min-height: 44px;
}

.cp-gf__q {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #111214;
}

.cp-gf__trigger:hover .cp-gf__q {
    color: #B85000;
}

.cp-gf__trigger:focus-visible {
    outline: 2px solid #FF6A00;
    outline-offset: -2px;
}

.cp-gf__chevron {
    flex: 0 0 auto;
    color: rgba(17, 18, 20, 0.45);
    transition: transform 0.25s ease, color 0.25s ease;
}

.cp-gf__item.is-open .cp-gf__chevron {
    transform: rotate(180deg);
    color: #FF6A00;
}

/* grid-template-rows 0fr -> 1fr rather than a max-height guess. The old
   FAQ capped the open panel at 480px, which silently clipped a long
   answer; this measures itself. Safe here because the panel holds exactly
   one child — with two, only the first row would collapse and the rest
   would overlap the text below. */
.cp-gf__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.cp-gf__panel.is-open {
    grid-template-rows: 1fr;
}

.cp-gf__panel-inner {
    min-height: 0;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(17, 18, 20, 0.74);
}

.cp-gf__panel.is-open .cp-gf__panel-inner {
    padding-bottom: 20px;
}

.cp-gf__panel-inner p:first-child { margin-top: 0; }
.cp-gf__panel-inner p:last-child { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .cp-gf { padding: 60px 36px 64px; }
    .cp-gf__inner { gap: 44px; }
}

@media (max-width: 900px) {
    /* Below this the two columns are narrower than one guide card, so the
       questions move under the people. */
    .cp-gf--split .cp-gf__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
}

@media (max-width: 620px) {
    .cp-gf { padding: 46px 20px 50px; }
    .cp-gf__header { margin-bottom: 22px; }
    .cp-gf__guide { padding: 20px 18px 22px; gap: 13px; }
    .cp-gf__guide-head { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
    .cp-gf__portrait { width: 80px; height: 80px; }

    .cp-gf__ask { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cp-gf__ask-btn { width: 100%; justify-content: center; }

    .cp-gf__trigger { padding: 17px 0; }
}

/* ── Motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .cp-gf__guide,
    .cp-gf__photo,
    .cp-gf__link,
    .cp-gf__cta svg,
    .cp-gf__chevron,
    .cp-gf__panel,
    .cp-gf__ask-btn {
        transition: none;
    }

    .cp-gf__guide:hover { transform: none; }
    .cp-gf__guide:hover .cp-gf__photo { transform: none; }
    .cp-gf__guide:hover .cp-gf__cta svg { transform: none; }
}
