/* =============================================================================
   Counselling: the guidance blocks (GuidanceHero, GuidanceCards, GuidanceSteps,
   CounsellorDirectory, GuidanceFaq - Views/Public/_Blocks) and the counsellor profile page
   (Views/PublicCounsellor/Profile.cshtml). Loaded by Page.cshtml only when a page holds one of
   these blocks, and by the profile page.

   Built from theme.css: the navy/gold tokens, .rs-btn--gold (never repainted here), .rs-icon-disc,
   the header column (--page-inline). Everything is set in the site sans. Type follows the /jobs
   rem scale with a 12px floor. Below 1201px the two-column bands narrow; below 901px they stack;
   below 561px every grid is one column.
   ============================================================================= */

:is(.guide-hero, .guide-cards, .guide-steps, .guide-dir, .guide-faq) {
    position: relative;
    isolation: isolate;
    padding-inline: var(--page-inline);
    color: var(--color-text);
}
:is(.guide-hero, .guide-cards, .guide-steps, .guide-dir, .guide-faq) h3 { font-family: var(--font-sans); }

/* ---- Shared head ---- */
.guide-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .9rem;
    color: var(--color-blue);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}
.guide-kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-gold);
}
.guide-kicker:lang(hi) { letter-spacing: .04em; }
.guide-kicker--light { color: var(--color-gold-light); }
.guide-head { min-width: 0; max-width: 46rem; }
.guide-head__title {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(1.625rem, 2.4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.18;
}
.guide-head__accent { color: var(--color-gold-deep); }
.guide-head__intro {
    margin: .85rem 0 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.65;
    white-space: pre-line;
}
.guide-head--on-dark .guide-kicker { color: var(--color-gold-light); }
.guide-head--on-dark .guide-head__title { color: var(--color-surface); }
.guide-head--on-dark .guide-head__accent { color: var(--color-gold-light); }
.guide-head--on-dark .guide-head__intro { color: rgba(255, 255, 255, .82); }

.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.guide-actions--center { justify-content: center; }
.guide-actions--stack { flex-direction: column; align-items: stretch; }
.guide-actions .rs-btn--gold { min-height: 3rem; padding-inline: 1.4rem; }
.guide-actions .rs-btn svg.icon { width: 1.05rem; height: 1.05rem; }

/* The secondary button: navy outline on light grounds. */
.guide-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .55rem 1.3rem;
    border: 1.5px solid var(--color-navy);
    border-radius: 9px;
    background: transparent;
    color: var(--color-navy);
    font: inherit;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.guide-btn-outline:hover { background: var(--color-navy); color: var(--color-surface); }
.guide-btn-outline--sm { min-height: 2.25rem; padding: .35rem .9rem; font-size: .8125rem; }

/* ---- Hero ---- */
.guide-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(236, 184, 46, .16), transparent 32%),
        radial-gradient(circle at 70% 90%, rgba(22, 78, 138, .10), transparent 40%),
        linear-gradient(180deg, var(--color-sky) 0%, var(--color-surface) 100%);
}
/* A faint dot grid behind the copy. */
.guide-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto auto 0;
    width: min(46%, 520px);
    height: 70%;
    background-image: radial-gradient(rgba(22, 78, 138, .14) 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    mask-image: linear-gradient(135deg, #000 10%, transparent 75%);
}
.guide-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
    gap: clamp(1.5rem, 3vw, 3.5rem);
    align-items: center;
    padding-block: clamp(2.5rem, 4.5vw, 4.5rem);
}
.guide-hero__copy { min-width: 0; }
.guide-hero__title {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.08;
}
.guide-hero__title > span { display: block; }
.guide-hero__accent {
    position: relative;
    width: fit-content;
    color: var(--color-gold-deep);
}
/* A soft gold underline swash under the accent line. */
.guide-hero__accent::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: .06em;
    height: .22em;
    border-radius: 999px;
    background: rgba(236, 184, 46, .28);
}
.guide-hero__subtitle {
    margin: 1rem 0 0;
    color: var(--color-blue);
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
}
.guide-hero__intro {
    max-width: 36em;
    margin: .9rem 0 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.guide-hero .guide-actions { margin-top: 1.75rem; }
.guide-hero__highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.5rem;
    max-width: 36rem;
    margin: 2rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--color-line);
    list-style: none;
}
.guide-hero__highlights li { display: flex; align-items: center; gap: .65rem; color: var(--color-navy); font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.guide-hero__highlight-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-gold-soft);
    color: var(--color-gold-text);
    font-size: 1rem;
}
.guide-hero__highlight-icon svg.icon, .guide-hero__highlight-icon img { width: 1em; height: 1em; }

.guide-hero__art { position: relative; min-width: 0; }
.guide-hero__art img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }
.guide-hero__art--drawn { display: grid; place-items: center; min-height: clamp(20rem, 32vw, 27rem); }

/* The drawn illustration: a navy core inside two orbits, two gold dots riding them. */
.guide-orbit {
    position: relative;
    width: min(78%, 24rem);
    aspect-ratio: 1;
}
.guide-orbit__ring {
    position: absolute;
    inset: 14%;
    border: 2px dashed rgba(22, 78, 138, .28);
    border-radius: 50%;
}
.guide-orbit__ring--outer { inset: 0; border: 1px solid rgba(22, 78, 138, .14); background: radial-gradient(circle, rgba(230, 240, 251, .9) 0 46%, transparent 47%); }
.guide-orbit__core {
    position: absolute;
    inset: 30%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--color-blue) 0%, var(--color-navy) 100%);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, .9), 0 24px 48px -18px rgba(11, 40, 87, .55);
    color: var(--color-gold-light);
    font-size: clamp(3rem, 5vw, 4.25rem);
}
.guide-orbit__core svg.icon { width: 1em; height: 1em; stroke-width: 1.6; }
.guide-orbit__dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-gold);
    box-shadow: 0 0 0 6px rgba(236, 184, 46, .18);
}
.guide-orbit__dot--a { top: 12%; left: 19%; }
.guide-orbit__dot--b { right: 9%; bottom: 30%; width: 10px; height: 10px; background: var(--color-blue); box-shadow: 0 0 0 6px rgba(22, 78, 138, .14); }

.guide-hero__chips { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.guide-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    width: max-content;
    max-width: 14rem;
    padding: .7rem .95rem .7rem .7rem;
    border: 1px solid var(--color-line-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}
.guide-chip .rs-icon-disc { --disc: 2.5rem; box-shadow: none; }
.guide-chip .rs-icon-disc--gold { color: var(--color-navy); }
.guide-chip strong { display: block; color: var(--color-navy); font-size: .875rem; font-weight: 600; line-height: 1.3; }
.guide-chip small { display: block; margin-top: .15rem; color: var(--color-muted); font-size: .75rem; line-height: 1.4; }
/* The chips keep off the core: one over the top-left of the orbit, two along its foot. */
.guide-chip--1 { top: 2%; left: 0; }
.guide-chip--2 { top: 14%; right: 0; }
.guide-chip--3 { bottom: 2%; right: 16%; }
.guide-hero__art:not(.guide-hero__art--drawn) .guide-chip--1 { top: auto; bottom: -1rem; left: -1rem; }
.guide-hero__art:not(.guide-hero__art--drawn) .guide-chip--2 { top: 1rem; right: -1rem; }
.guide-hero__art:not(.guide-hero__art--drawn) .guide-chip--3 { display: none; }

/* ---- Cards ---- */
.guide-cards { padding-block: clamp(2.75rem, 4.5vw, 4.5rem); background: var(--color-surface); }
.guide-cards__list {
    display: grid;
    grid-template-columns: repeat(min(var(--cards), 4), minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.5rem);
    margin: clamp(1.75rem, 2.6vw, 2.5rem) 0 0;
    padding: 0;
    list-style: none;
}
.guide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: clamp(1.25rem, 1.8vw, 1.75rem);
    border: 1px solid var(--color-line-soft);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card > .rs-icon-disc { --disc: 3.25rem; margin-bottom: 1.1rem; box-shadow: none; }
.guide-card > .rs-icon-disc--gold { color: var(--color-navy); }
.guide-card h3 { margin: 0; color: var(--color-navy); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.guide-card h3 a { color: inherit; text-decoration: none; }
/* The title link covers the card, so the whole card opens the service. */
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.guide-card > p { margin: .6rem 0 0; color: var(--color-muted); font-size: .9375rem; line-height: 1.6; }
.guide-card__points { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.guide-card__points li { display: flex; align-items: flex-start; gap: .55rem; color: var(--color-text); font-size: .875rem; line-height: 1.5; }
.guide-card__points svg.icon { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; color: var(--color-success); stroke-width: 2.6; }
.guide-card__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--color-blue);
    font-size: .9375rem;
    font-weight: 600;
}
.guide-card__link svg.icon { width: 1rem; height: 1rem; transition: transform .18s ease; }
.guide-card:has(h3 a):hover { transform: translateY(-4px); border-color: var(--color-gold-line); box-shadow: var(--shadow-lg); }
.guide-card:has(h3 a):hover .guide-card__link svg.icon { transform: translateX(4px); }

/* Feature layout: three large service cards with a coloured top edge. */
.guide-cards--feature { background: var(--color-sky); }
.guide-cards--feature .guide-cards__list { grid-template-columns: repeat(min(var(--cards), 3), minmax(0, 1fr)); }
.guide-cards--feature .guide-card { padding: clamp(1.5rem, 2.2vw, 2.1rem); border-top: 4px solid var(--color-blue); }
.guide-cards--feature .guide-card.is-gold { border-top-color: var(--color-gold); }
.guide-cards--feature .guide-card.is-sky { border-top-color: #4f8fd6; }
.guide-cards--feature .guide-card > .rs-icon-disc { --disc: 3.75rem; }
.guide-cards--feature .guide-card h3 { font-size: 1.25rem; }

/* ---- Steps ---- */
.guide-steps {
    overflow: hidden;
    padding-block: clamp(2.75rem, 4.5vw, 4.5rem);
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-dark) 60%, var(--color-blue) 100%);
    color: var(--color-surface);
}
.guide-steps::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -30%;
    right: -8%;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 184, 46, .18), transparent 65%);
}
.guide-steps__list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin: clamp(2rem, 3vw, 2.75rem) 0 0;
    padding: 0;
    list-style: none;
}
/* The dashed path through the markers. */
.guide-steps__list::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 1.75rem;
    right: calc(100% / var(--steps) - 1.75rem);
    border-top: 2px dashed rgba(246, 194, 74, .55);
}
.guide-step { position: relative; min-width: 0; }
.guide-step__marker { position: relative; display: inline-block; }
.guide-step__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-blue-dark);
    font-size: 1.4rem;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
}
.guide-step__icon svg.icon, .guide-step__icon img { width: 1em; height: 1em; }
.guide-step__number {
    position: absolute;
    top: -.35rem;
    right: -.45rem;
    display: grid;
    place-items: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--gradient-gold);
    color: var(--color-navy);
    font-size: .8125rem;
    font-weight: 700;
}
.guide-step h3 { margin: 1.1rem 0 0; color: var(--color-surface); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.guide-step p { margin: .45rem 0 0; color: rgba(255, 255, 255, .8); font-size: .875rem; line-height: 1.6; }

/* ---- Counsellor directory ---- */
.guide-dir { padding-block: clamp(2.75rem, 4.5vw, 4.5rem); background: var(--color-sky); scroll-margin-top: 1rem; }
.guide-dir__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: clamp(1.5rem, 2.4vw, 2rem) 0 0;
    padding: .75rem;
    border: 1px solid var(--color-line-soft);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}
.guide-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 14rem;
    min-width: 0;
}
.guide-field--search { flex: 1 1 18rem; }
.guide-field > svg.icon { position: absolute; left: .85rem; width: 1.05rem; height: 1.05rem; color: var(--color-muted); pointer-events: none; }
.guide-field :is(input, select) {
    width: 100%;
    min-height: 2.875rem;
    padding: .5rem .9rem .5rem 2.5rem;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-surface-alt);
    color: var(--color-navy);
    font: inherit;
    font-size: .9375rem;
}
.guide-field :is(input, select):focus { border-color: var(--color-blue); background: var(--color-surface); box-shadow: 0 0 0 3px rgba(22, 78, 138, .15); outline: none; }
.guide-dir__when { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; border: 0; }
.guide-pill { position: relative; }
.guide-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.guide-pill span {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .35rem .95rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-navy);
    font-size: .875rem;
    font-weight: 500;
    transition: background-color .15s, border-color .15s, color .15s;
}
.guide-pill input:checked + span { border-color: var(--color-navy); background: var(--color-navy); color: var(--color-surface); }
.guide-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.guide-pill:hover span { border-color: var(--color-blue); }
.guide-dir__count { margin: 1.1rem 0 0; color: var(--color-muted); font-size: .875rem; font-weight: 500; }
.guide-dir__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.5rem);
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.guide-dir__inner > .guide-head + .guide-dir__list { margin-top: clamp(1.5rem, 2.4vw, 2rem); }
.guide-counsellor {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.35rem;
    border: 1px solid var(--color-line-soft);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s ease, transform .18s ease;
}
.guide-counsellor:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-counsellor[hidden] { display: none; }
.guide-counsellor__head { display: flex; align-items: center; gap: 1rem; }
.guide-counsellor h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.guide-counsellor h3 a { color: var(--color-navy); text-decoration: none; }
.guide-counsellor h3 a:hover { color: var(--color-blue); text-decoration: underline; }
.guide-counsellor__role { margin: .2rem 0 0; color: var(--color-muted); font-size: .8125rem; line-height: 1.4; }
.guide-counsellor__exp { display: flex; align-items: center; gap: .35rem; margin: .35rem 0 0; color: var(--color-gold-text); font-size: .8125rem; font-weight: 600; }
.guide-counsellor__exp svg.icon { width: .95rem; height: .95rem; }
.guide-counsellor__teaser { margin: .9rem 0 0; color: var(--color-text); font-size: .875rem; line-height: 1.6; }
.guide-counsellor__facts { display: grid; gap: .45rem; margin: 1rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--color-line-soft); }
.guide-counsellor__facts > div { display: flex; align-items: flex-start; gap: .55rem; }
.guide-counsellor__facts dt { display: flex; flex: none; padding-top: .15rem; color: var(--color-blue); }
.guide-counsellor__facts dt svg.icon { width: 1rem; height: 1rem; }
.guide-counsellor__facts dd { margin: 0; color: var(--color-text); font-size: .875rem; line-height: 1.45; }
.guide-counsellor__facts .is-open dd { color: var(--color-success); font-weight: 600; }
.guide-counsellor__facts .is-open dt { color: var(--color-success); }
.guide-counsellor__facts .is-closed dd { color: var(--color-muted); }
/* The facts keep their space above the button, which drops to the card's foot. */
.guide-counsellor__facts { margin-bottom: 1.15rem; }
.guide-counsellor__cta { align-self: stretch; margin-top: auto; }

.guide-avatar {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 4.5rem;
    height: 4.5rem;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--color-sky-deep), #d3e4f7);
    box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--color-gold-line);
}
.guide-avatar::before {
    content: attr(data-initials);
    color: var(--color-blue-dark);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.guide-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-avatar--lg { width: 8.25rem; height: 8.25rem; box-shadow: 0 0 0 5px rgba(255, 255, 255, .95), 0 0 0 8px var(--color-gold); }
.guide-avatar--lg::before { font-size: 2.5rem; }

.guide-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.guide-tags li {
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--color-sky-deep);
    color: var(--color-blue-dark);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
}
.guide-tags li.is-current { background: var(--color-gold-soft); color: var(--color-gold-text); }
.guide-tags--light li { background: rgba(255, 255, 255, .14); color: var(--color-surface); }

.guide-dir__empty, .guide-dir__nomatch {
    display: grid;
    justify-items: center;
    gap: .5rem;
    margin: clamp(1.5rem, 2.4vw, 2rem) 0 0;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    border: 1.5px dashed var(--color-line-strong);
    border-radius: 18px;
    background: var(--color-surface);
    text-align: center;
}
.guide-dir__nomatch[hidden] { display: none; }
.guide-dir__empty .rs-icon-disc { --disc: 4rem; margin-bottom: .5rem; }
.guide-dir__empty h3 { margin: 0; color: var(--color-navy); font-size: 1.25rem; font-weight: 600; }
.guide-dir__empty p, .guide-dir__nomatch p { max-width: 34rem; margin: 0; color: var(--color-muted); font-size: .9375rem; line-height: 1.6; }
.guide-dir__empty .guide-actions { margin-top: 1rem; }
.guide-dir__more { margin: 1.75rem 0 0; text-align: center; }
.guide-dir__more[hidden] { display: none; }

/* ---- Questions and help ---- */
.guide-faq { padding-block: clamp(2.75rem, 4.5vw, 4.5rem); background: var(--color-surface); }
.guide-faq__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.guide-faq--no-panel .guide-faq__inner { grid-template-columns: minmax(0, 1fr); }
.guide-faq__list { margin: clamp(1.5rem, 2.4vw, 2rem) 0 0; border-top: 1px solid var(--color-line); }
.guide-faq__item { border-bottom: 1px solid var(--color-line); }
.guide-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    color: var(--color-navy);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}
.guide-faq__item summary::-webkit-details-marker { display: none; }
.guide-faq__item summary:hover { color: var(--color-blue); }
.guide-faq__item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.guide-faq__toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-sky-deep);
    color: var(--color-blue);
    transition: transform .2s ease, background-color .2s ease;
}
.guide-faq__toggle svg.icon { width: 1rem; height: 1rem; }
.guide-faq__item[open] .guide-faq__toggle { background: var(--color-gold); color: var(--color-navy); transform: rotate(45deg); }
.guide-faq__item p { margin: 0 0 1.2rem; padding-right: 3rem; color: var(--color-muted); font-size: .9375rem; line-height: 1.7; white-space: pre-line; }
.guide-faq__panel {
    position: sticky;
    top: 1.5rem;
    display: grid;
    justify-items: start;
    gap: .75rem;
    padding: clamp(1.5rem, 2.4vw, 2rem);
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(160deg, var(--color-blue) 0%, var(--color-navy) 100%);
    color: var(--color-surface);
    box-shadow: var(--shadow-lg);
}
.guide-faq__panel::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.guide-faq__panel .rs-icon-disc { --disc: 3.25rem; color: var(--color-navy); }
.guide-faq__panel h3 { margin: .25rem 0 0; color: var(--color-surface); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.guide-faq__panel p { margin: 0; color: rgba(255, 255, 255, .84); font-size: .9375rem; line-height: 1.6; }
.guide-faq__panel .rs-btn--gold { position: relative; z-index: 1; width: 100%; min-height: 3rem; margin-top: .5rem; }
.guide-faq__secondary { position: relative; z-index: 1; color: var(--color-gold-light); font-size: .9375rem; font-weight: 500; text-underline-offset: 3px; }
.guide-faq__secondary:hover { color: var(--color-surface); }

/* ---- Counsellor profile page ---- */
.guide-profile { background: var(--color-sky); }
.guide-profile__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-inline: var(--page-inline);
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-dark) 65%, var(--color-blue) 100%);
    color: var(--color-surface);
}
.guide-profile__hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -40%;
    right: -6%;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 184, 46, .2), transparent 65%);
}
.guide-profile__hero-inner { padding-block: 1.5rem 2.25rem; }
.guide-crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; }
.guide-crumbs li { color: rgba(255, 255, 255, .72); }
.guide-crumbs li + li::before { content: "\203A"; margin-right: .35rem; color: rgba(255, 255, 255, .5); }
.guide-crumbs a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.guide-crumbs a:hover { color: var(--color-gold-light); text-decoration: underline; }
.guide-profile__id { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: 1.75rem; }
.guide-profile__who { min-width: 0; }
.guide-profile__who .guide-kicker { margin-bottom: .5rem; }
.guide-profile__who h1 { margin: 0; color: var(--color-surface); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.guide-profile__role { margin: .4rem 0 0; color: rgba(255, 255, 255, .85); font-size: 1rem; }
.guide-profile__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 2rem 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    list-style: none;
}
.guide-profile__stats li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; align-items: center; padding: 1rem 1.15rem; background: rgba(8, 40, 78, .55); }
.guide-profile__stats li > span { grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(246, 194, 74, .16); color: var(--color-gold-light); }
.guide-profile__stats svg.icon { width: 1.15rem; height: 1.15rem; }
.guide-profile__stats strong { color: var(--color-surface); font-size: .9375rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.guide-profile__stats small { color: rgba(255, 255, 255, .7); font-size: .75rem; }

.guide-profile__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
    padding: clamp(1.5rem, 3vw, 2.5rem) var(--page-inline) clamp(2.5rem, 4vw, 3.5rem);
}
.guide-profile__main { display: grid; gap: clamp(1.25rem, 2vw, 1.5rem); min-width: 0; }
.guide-panel {
    padding: clamp(1.25rem, 2.2vw, 1.85rem);
    border: 1px solid var(--color-line-soft);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}
.guide-panel__title { margin: 0 0 1rem; color: var(--color-navy); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.guide-muted { margin: 0; color: var(--color-muted); font-size: .9375rem; line-height: 1.6; }
.guide-prose { color: var(--color-text); font-size: .9375rem; line-height: 1.75; overflow-wrap: anywhere; }
.guide-prose > :first-child { margin-top: 0; }
.guide-prose > :last-child { margin-bottom: 0; }
.guide-prose img { max-width: 100%; height: auto; }
.guide-locations { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.guide-location {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--color-line-soft);
    border-radius: 14px;
    background: var(--color-surface-alt);
}
.guide-location .rs-icon-disc { --disc: 2.75rem; }
.guide-location h3 { margin: 0; color: var(--color-navy); font-size: 1rem; font-weight: 600; }
.guide-location__text p { margin: .2rem 0 0; font-size: .875rem; line-height: 1.5; }
.guide-location__meta { display: grid; justify-items: end; gap: .4rem; text-align: right; }
.guide-location__meta strong { color: var(--color-navy); font-size: 1rem; }
.guide-badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--color-soft); color: var(--color-muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.guide-badge.is-open { background: var(--color-success-soft); color: var(--color-success); }

.guide-profile__side { position: sticky; top: 1.25rem; min-width: 0; }
.guide-book {
    padding: clamp(1.25rem, 2.2vw, 1.6rem);
    border: 1px solid var(--color-line-soft);
    border-top: 4px solid var(--color-gold);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    scroll-margin-top: 1rem;
}
.guide-book h2 { margin: 0 0 1rem; color: var(--color-navy); font-size: 1.25rem; font-weight: 600; }
.guide-book__form { display: grid; gap: 1.1rem; }
.guide-book__field { display: grid; gap: .35rem; }
.guide-book__field.is-single { display: none; }
.guide-book label, .guide-book legend { color: var(--color-navy); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.guide-book select {
    width: 100%;
    min-height: 2.875rem;
    padding: .5rem .8rem;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-surface-alt);
    color: var(--color-navy);
    font: inherit;
    font-size: .9375rem;
}
.guide-book select:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(22, 78, 138, .15); outline: none; }
.guide-book fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.guide-book legend { margin-bottom: .45rem; padding: 0; }
.guide-dates {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 4rem;
    gap: .45rem;
    padding: .15rem .1rem .5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.guide-date {
    display: grid;
    justify-items: center;
    gap: .05rem;
    padding: .5rem .25rem;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-navy);
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .15s, background-color .15s, color .15s;
}
.guide-date small { color: var(--color-muted); font-size: .75rem; }
.guide-date strong { font-size: 1.125rem; font-weight: 700; }
.guide-date.has-slots { border-color: var(--color-gold-line); background: var(--color-gold-soft); }
.guide-date:disabled { opacity: .45; cursor: not-allowed; }
.guide-date[aria-pressed="true"] { border-color: var(--color-navy); background: var(--color-navy); color: var(--color-surface); }
.guide-date[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.guide-date:focus-visible, .guide-slot:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.guide-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.guide-slots > p { grid-column: 1 / -1; }
.guide-slot {
    min-height: 2.75rem;
    padding: .4rem .3rem;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-navy);
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
.guide-slot:hover:not(:disabled) { border-color: var(--color-blue); color: var(--color-blue); }
.guide-slot[aria-pressed="true"] { border-color: var(--color-success); background: var(--color-success); color: var(--color-surface); }
.guide-slot:disabled { background: var(--color-soft); color: var(--color-muted); text-decoration: line-through; cursor: not-allowed; }
.guide-book__summary { padding: .85rem 1rem; border-radius: 12px; background: var(--color-sky); }
.guide-book__summary[hidden], .guide-book__message[hidden] { display: none; }
.guide-book__summary p { margin: 0; color: var(--color-navy); font-size: .875rem; line-height: 1.6; }
.guide-book__summary small { font-size: .75rem; }
.guide-book__message { margin: 0; padding: .75rem .9rem; border-radius: 10px; background: var(--color-danger-soft); color: var(--color-danger); font-size: .875rem; line-height: 1.5; }
.guide-book__message.is-ok { background: var(--color-success-soft); color: var(--color-success); }
.guide-book__submit { width: 100%; min-height: 3.1rem; }
.guide-book__submit svg.icon { width: 1.05rem; height: 1.05rem; }
.guide-book__note { margin: -.4rem 0 0; color: var(--color-muted); font-size: .8125rem; line-height: 1.5; text-align: center; }
.guide-book__back { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--color-line-soft); }
.guide-book__back a { display: inline-flex; align-items: center; gap: .4rem; color: var(--color-blue); font-size: .875rem; font-weight: 600; text-decoration: none; }
.guide-book__back a:hover { text-decoration: underline; }
.guide-book__back svg.icon { width: 1rem; height: 1rem; }
.guide-book .guide-actions { margin-top: 1rem; }

/* ---- Tablet ---- */
@media (max-width: 1200px) {
    .guide-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
    .guide-hero__art--drawn { min-height: 0; }
    .guide-orbit { width: min(100%, 17rem); }
    /* Too narrow to ring the orbit: the chips stack under it. */
    .guide-hero__chips { position: static; display: grid; gap: .6rem; margin-top: 1.25rem; }
    .guide-chip, .guide-chip--3 { position: static; max-width: none; width: auto; transform: none; }
    .guide-hero__art:not(.guide-hero__art--drawn) .guide-chip { position: static; }
    .guide-cards__list { grid-template-columns: repeat(min(var(--cards), 2), minmax(0, 1fr)); }
    .guide-cards--feature .guide-cards__list { grid-template-columns: repeat(min(var(--cards), 3), minmax(0, 1fr)); }
    .guide-dir__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-profile__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-profile__body { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
}
@media (max-width: 900px) {
    .guide-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .guide-hero__art--drawn { min-height: 0; padding-block: 1rem; }
    .guide-orbit { width: min(78%, 20rem); }
    /* The chips leave the orbit and line up under it. */
    .guide-hero__chips { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
    .guide-cards--feature .guide-cards__list { grid-template-columns: minmax(0, 1fr); }
    .guide-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .guide-steps__list::before { display: none; }
    .guide-faq__inner { grid-template-columns: minmax(0, 1fr); }
    .guide-faq__panel { position: static; }
    .guide-profile__body { grid-template-columns: minmax(0, 1fr); }
    .guide-profile__side { position: static; order: -1; }
}
@media (max-width: 560px) {
    .guide-hero__highlights { grid-template-columns: minmax(0, 1fr); }
    .guide-actions { flex-direction: column; align-items: stretch; }
    .guide-actions > * { width: 100%; }
    .guide-cards__list, .guide-dir__list { grid-template-columns: minmax(0, 1fr); }
    /* A vertical path on phones. */
    .guide-steps__list { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
    .guide-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; }
    .guide-step__marker { grid-row: span 2; }
    .guide-step h3 { margin-top: .35rem; }
    .guide-dir__filters { padding: .6rem; }
    .guide-field, .guide-field--search { flex: 1 1 100%; }
    .guide-faq__item p { padding-right: 0; }
    .guide-profile__id { flex-direction: column; align-items: flex-start; }
    .guide-avatar--lg { width: 6.5rem; height: 6.5rem; }
    .guide-profile__stats { grid-template-columns: minmax(0, 1fr); }
    .guide-location { grid-template-columns: auto minmax(0, 1fr); }
    .guide-location__meta { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .guide-card, .guide-counsellor, .guide-faq__toggle, .guide-card__link svg.icon { transition: none; }
    .guide-card:has(h3 a):hover, .guide-counsellor:hover { transform: none; }
}
:is(.guide-steps, .guide-faq) { content-visibility: auto; contain-intrinsic-size: auto 480px; }
