/* Speciality-page UI refresh (lib/specialityUi.ts). Scoped to article.reef-sx; markup is generated, the doctors section is untouched.
   Palette rule: magenta only on primary buttons and small labels; everything else white / light pink. */
.reef-sx { --sx-ink: #313131; --sx-mute: #6f5d66; --sx-pink: #b5106a; --sx-pink-d: #960c57; --sx-blush: #ffdaf9; --sx-wash: #fdf7fb; --sx-line: #eedde7; }


/* shared */
.reef-sx .sx-topics, .reef-sx .sx-bcard, .reef-sx #gspb_container-id-gsbp-ccad9c6 { box-sizing: border-box; font-family: Lato, system-ui, sans-serif; color: var(--sx-ink); }
.reef-sx .sx-topics *, .reef-sx .sx-bcard * { box-sizing: border-box; }
.reef-sx .sx-topics { width: min(1140px, calc(100% - 48px)) !important; max-width: none !important; margin: 28px auto 0 !important; }
/* the 40px WordPress spacer under the hero (client: no empty space) */
.reef-sx .entry-content > .wp-block-spacer { display: none !important; }

/* 2 · topic cards */
.reef-sx .sx-conds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.reef-sx .sx-cond { margin: 0; border: 1px solid var(--sx-line); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.reef-sx .sx-cond:hover, .reef-sx .sx-cond:has(details[open]) { border-color: var(--sx-blush); box-shadow: 0 8px 28px rgba(181, 16, 106, .07); }
.reef-sx .sx-cond summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; cursor: pointer; border-radius: 16px; }
.reef-sx .sx-cond summary::-webkit-details-marker { display: none; }
.reef-sx .sx-cond summary:focus-visible { outline: 2px solid var(--sx-pink); outline-offset: 2px; }
.reef-sx .sx-cond-n { font: 600 13px/1 Lato, sans-serif; color: var(--sx-pink); background: var(--sx-wash); border-radius: 999px; width: 38px; height: 38px; display: grid; place-items: center; }
.reef-sx .sx-cond-t { font-family: Lora, Georgia, serif; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--sx-ink); }
.reef-sx .sx-cond-t em { font-style: normal; font-weight: 400; color: var(--sx-mute); font-size: .85em; }
.reef-sx .sx-plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--sx-line); position: relative; flex: none; }
.reef-sx .sx-plus::before, .reef-sx .sx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--sx-pink); transform: translate(-50%, -50%); transition: transform .2s; }
.reef-sx .sx-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.reef-sx details[open] .sx-plus::after { transform: translate(-50%, -50%) rotate(0); }
.reef-sx .sx-cond-body { padding: 0 22px 20px 76px; font-size: 15.5px; line-height: 1.6; color: #4a4045; }
.reef-sx .sx-cond-body p { margin: 0 0 10px; }
.reef-sx .sx-cond-body ul, .reef-sx .sx-cond-body ol { margin: 0 0 10px; padding-left: 20px; }
.reef-sx .sx-cond-body li { margin: 0 0 4px; }
.reef-sx .sx-cond-body h4 { font: 700 15.5px/1.4 Lato, sans-serif; margin: 12px 0 4px; color: var(--sx-ink); }
.reef-sx .sx-link { color: var(--sx-pink) !important; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; }
.reef-sx .sx-link:hover { text-decoration: underline; }

/* 3 · booking card (questions-box option B) */
.reef-sx .sx-bcard { width: min(1140px, calc(100% - 48px)) !important; max-width: none !important; margin: 32px auto 0 !important; padding: 24px 32px; border-radius: 22px; background: #fff;
  border: 1px solid #f1dbe8; box-shadow: 0 18px 50px rgba(181, 16, 106, .08); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.reef-sx .sx-bcard-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--sx-blush); display: grid; place-items: center; }
.reef-sx .sx-bcard-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--sx-pink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reef-sx .sx-bcard h2 { font-family: Lora, Georgia, serif; font-size: clamp(24px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; color: var(--sx-ink); margin: 0; }
.reef-sx .sx-bcard p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: #584048; max-width: 62ch; }
.reef-sx .sx-bcard ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.reef-sx .sx-bcard li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.reef-sx .sx-bcard li svg { width: 17px; height: 17px; fill: none; stroke: var(--sx-pink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reef-sx .sx-bcard-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.reef-sx .sx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; background: var(--sx-pink); color: #fff !important;
  font: 700 16px/1 Lato, system-ui, sans-serif; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .15s; }
.reef-sx .sx-btn:hover { background: var(--sx-pink-d); }
.reef-sx .sx-bcard-call { color: #584048 !important; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.reef-sx .sx-bcard-call b { color: var(--sx-ink); border-bottom: 1px solid currentColor; }

/* 4 · FAQs: same markup, lighter look */
.reef-sx #gspb_container-id-gsbp-ccad9c6 { width: min(920px, calc(100% - 48px)) !important; max-width: none !important; margin: 40px auto 48px !important; padding: 0 !important; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 > .gspb_heading { font-family: Lora, Georgia, serif !important; font-size: clamp(26px, 3vw, 34px) !important; text-align: center !important; margin: 0 0 20px !important; color: var(--sx-ink) !important; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion { border-top: 1px solid var(--sx-line); gap: 0 !important; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item { border: 0 !important; border-bottom: 1px solid var(--sx-line) !important; border-radius: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__title { list-style: none; position: relative; padding: 18px 44px 18px 0 !important; background: transparent !important; border: 0 !important; color: var(--sx-ink) !important; font: 700 16.5px/1.4 Lato, system-ui, sans-serif !important; cursor: pointer; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__title::-webkit-details-marker { display: none; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__title::before { display: none !important; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__title::after { content: "+" !important; display: block !important; position: absolute; right: 6px; top: 50%; transform: translateY(-50%) !important;
  border: 0 !important; width: auto !important; height: auto !important; color: var(--sx-pink); font: 400 24px/1 Lato, sans-serif !important; background: none !important; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 details[open] > .wp-block-themeisle-blocks-accordion-item__title::after { content: "–" !important; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__title strong { font-weight: 700; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__content { padding: 0 44px 20px 0 !important; border: 0 !important; background: transparent !important; color: #4a4045; font-size: 16px; line-height: 1.6; }
.reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__content p { margin: 0; }

/* tablet */
@media (max-width: 999.98px) {
  .reef-sx .sx-bcard { grid-template-columns: auto 1fr; }
  .reef-sx .sx-bcard-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; }
}
/* phone */
@media (max-width: 767.98px) {
  .reef-sx .sx-topics { width: calc(100% - 32px) !important; margin-top: 20px !important; }
  .reef-sx .sx-conds { grid-template-columns: 1fr; gap: 10px; }
  .reef-sx .sx-cond summary { padding: 14px 16px; gap: 12px; }
  .reef-sx .sx-cond-n { width: 32px; height: 32px; font-size: 12px; }
  .reef-sx .sx-cond-t { font-size: 17px; }
  .reef-sx .sx-cond-body { padding: 0 16px 16px; font-size: 15px; }
  .reef-sx .sx-bcard { width: calc(100% - 32px) !important; margin-top: 24px !important; padding: 20px 18px; grid-template-columns: 1fr; gap: 16px; border-radius: 18px; }
  .reef-sx .sx-bcard-icon { width: 52px; height: 52px; border-radius: 15px; }
  .reef-sx .sx-bcard p { font-size: 15px; }
  .reef-sx .sx-bcard ul { flex-direction: column; gap: 6px; font-size: 14px; }
  .reef-sx .sx-bcard-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .reef-sx .sx-btn { width: 100%; }
  .reef-sx #gspb_container-id-gsbp-ccad9c6 { width: calc(100% - 32px) !important; margin: 32px auto 36px !important; }
  .reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__title { font-size: 15.5px !important; padding: 16px 36px 16px 0 !important; }
  .reef-sx #gspb_container-id-gsbp-ccad9c6 .wp-block-themeisle-blocks-accordion-item__content { padding-right: 0 !important; font-size: 15px; }
}

/* ---------- 2 · topics as chips (live layout, data-topics="chips") ----------
   Every topic name is a chip; chips grow to fill each row so lines end flush. The chosen topic's text sits in a soft panel
   right under them, first topic open on arrival. Radio inputs + labels: no JS, arrow keys move between topics. */
.reef-sx .sx-tab-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.reef-sx .sx-tab { cursor: pointer; display: flex; align-items: center; color: var(--sx-ink); transition: background .15s, border-color .15s, color .15s; }
.reef-sx .sx-tab-in:focus-visible + .sx-tab { outline: 2px solid var(--sx-pink); outline-offset: 2px; }
.reef-sx .sx-tab-panel { display: none; font-size: 16px; line-height: 1.65; color: #4a4045; }
.reef-sx .sx-tab-in:checked + .sx-tab + .sx-tab-panel { display: block; }
.reef-sx .sx-tab-panel p { margin: 0 0 10px; }
.reef-sx .sx-tab-panel p:last-child { margin-bottom: 0; }
.reef-sx .sx-tab-panel ul, .reef-sx .sx-tab-panel ol { margin: 0 0 10px; padding-left: 20px; }
.reef-sx .sx-tab-h { font: 700 clamp(22px, 2.2vw, 26px)/1.25 Lora, Georgia, serif; color: var(--sx-ink); margin: 0 0 10px; }
.reef-sx .sx-tab-h em { font-style: normal; font-weight: 400; color: var(--sx-mute); font-size: .75em; }

/* Equal-size chips in a grid (client 2026-11-08: smaller, all the same size, more of the text visible). Subtitles in brackets
   stay in the panel heading, not on the chip; a long name wraps to two lines inside the same chip height. */
.reef-sx [data-topics="chips"] .sx-tabs { display: grid; grid-template-columns: repeat(var(--sx-cols, 4), minmax(0, 1fr)); gap: 8px; }
.reef-sx [data-topics="chips"] .sx-tab { justify-content: center; text-align: center; height: 48px; padding: 4px 14px; border-radius: 12px; border: 1.5px solid var(--sx-line); background: #fff; overflow: hidden; }
.reef-sx [data-topics="chips"] .sx-tab .sx-cond-n { display: none; }
.reef-sx [data-topics="chips"] .sx-tab .sx-cond-t { font: 700 14px/1.25 Lato, system-ui, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reef-sx [data-topics="chips"] .sx-tab .sx-cond-t em { display: none; }
.reef-sx [data-topics="chips"] .sx-tab:hover { border-color: var(--sx-blush); background: var(--sx-wash); }
.reef-sx [data-topics="chips"] .sx-tab-in:checked + .sx-tab { background: var(--sx-blush); border-color: var(--sx-blush); }
.reef-sx [data-topics="chips"] .sx-tab-in:checked + .sx-tab .sx-cond-t { color: var(--sx-pink); }
.reef-sx [data-topics="chips"] .sx-tab-panel { order: 1; grid-column: 1 / -1; margin-top: 4px; padding: 20px 26px; border-radius: 16px; background: var(--sx-wash); }
.reef-sx [data-topics="chips"] .sx-tab-h { font-size: 20px; margin-bottom: 8px; }
.reef-sx [data-topics="chips"] .sx-tab-panel .sx-link { display: inline-block; margin-top: 2px; }
@media (max-width: 767.98px) {
  .reef-sx [data-topics="chips"] .sx-tabs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .reef-sx [data-topics="chips"] .sx-tabs[style="--sx-cols:1"] { grid-template-columns: 1fr; }
  .reef-sx [data-topics="chips"] .sx-tab { height: 44px; padding: 3px 10px; border-radius: 10px; }
  .reef-sx [data-topics="chips"] .sx-tab .sx-cond-t { font-size: 13px; }
  .reef-sx [data-topics="chips"] .sx-tab-panel { padding: 16px; margin-top: 2px; font-size: 15px; border-radius: 14px; }
  /* the chosen chip already names the topic, so the panel goes straight to the text */
  .reef-sx [data-topics="chips"] .sx-tab-h { display: none; }
}

/* ---------- 1 · booking bar docked across the hero's bottom edge (replaces the button on the photo; client pick E, 2026-11-08) ---------- */
.reef-sx .sx-dock { position: relative; z-index: 2; width: min(1140px, calc(100% - 48px)) !important; max-width: none !important; margin: -40px auto 0 !important; font-family: Lato, system-ui, sans-serif; }
.reef-sx .sx-dock__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 14px 16px 14px 28px; border-radius: 20px; background: #fff;
  border: 1px solid #f1dbe8; box-shadow: 0 18px 44px rgba(49, 49, 49, .12); }
.reef-sx .sx-dock__title { margin: 0 !important; font: 700 21px/1.25 Lora, Georgia, serif; color: var(--sx-ink); }
.reef-sx .sx-dock__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.reef-sx .sx-dock__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 26px; border-radius: 999px; background: var(--sx-pink);
  color: #fff !important; font: 700 16px/1 Lato, system-ui, sans-serif; text-decoration: none !important; cursor: pointer !important; transition: background .2s; }
.reef-sx .sx-dock__btn:hover { background: var(--sx-pink-d); }
.reef-sx .sx-dock__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.reef-sx .sx-dock__btn:hover svg { transform: translateX(3px); }
.reef-sx .sx-dock__btn:focus-visible, .reef-sx .sx-dock__call:focus-visible { outline: 2px solid var(--sx-pink); outline-offset: 3px; }
.reef-sx .sx-dock__call { color: #584048 !important; font-size: 14.5px; text-decoration: none !important; white-space: nowrap; }
.reef-sx .sx-dock__call b { color: var(--sx-ink); border-bottom: 1px solid currentColor; }
@media (max-width: 767.98px) {
  .reef-sx .sx-dock { width: calc(100% - 32px) !important; margin-top: -28px !important; }
  .reef-sx .sx-dock__in { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; text-align: center; border-radius: 18px; }
  .reef-sx .sx-dock__title { font-size: 18px; }
  .reef-sx .sx-dock__actions { flex-direction: column; gap: 8px; }
  .reef-sx .sx-dock__btn { width: 100%; justify-content: center; }
}


/* ----- topics, "stacked" layout (live default since 2026-11-10; client voice note: chips felt cluttered). Every topic is its
   own section, one below the other, closed on load; its heading row opens and closes it (<details>). ----- */
.reef-sx .sx-topics[data-topics="stacked"] { width: min(820px, calc(100% - 48px)) !important; margin: 44px auto 8px !important; }

/* Topic sections: each a <details>, closed on load; the heading row toggles it. */
.reef-sx .sx-st { border-bottom: 1px solid var(--sx-line); }
.reef-sx .sx-st:last-child { border-bottom: 0; }
.reef-sx .sx-st > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 32px; column-gap: 24px; align-items: center; padding: 28px 0; }
.reef-sx .sx-st > summary::-webkit-details-marker { display: none; }
.reef-sx .sx-st > summary:focus-visible { outline: 2px solid var(--sx-pink); outline-offset: 4px; border-radius: 8px; }
.reef-sx .sx-st[open] > summary { padding-bottom: 12px; }
.reef-sx .sx-st-n { width: 40px; height: 40px; border-radius: 50%; background: var(--sx-wash); border: 1px solid var(--sx-line); color: var(--sx-pink); font: 700 13px/1 Lato, sans-serif; display: grid; place-items: center; }
.reef-sx .sx-st-h { font: 700 clamp(22px, 2.3vw, 27px)/1.25 Lora, Georgia, serif; color: var(--sx-ink); margin: 0; letter-spacing: 0; }
.reef-sx .sx-st-h em { display: block; margin-top: 4px; font: 400 15px/1.4 Lato, sans-serif; font-style: normal; color: var(--sx-mute); }
.reef-sx .sx-st > summary:hover .sx-st-h { color: var(--sx-pink); }
/* +/− marker */
.reef-sx .sx-st-x { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--sx-line); background: #fff; justify-self: end; transition: background .15s, border-color .15s; }
.reef-sx .sx-st-x::before, .reef-sx .sx-st-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--sx-pink); transition: transform .2s; }
.reef-sx .sx-st-x::after { transform: rotate(90deg); }
.reef-sx .sx-st[open] .sx-st-x::after { transform: rotate(0deg); }
.reef-sx .sx-st > summary:hover .sx-st-x { background: var(--sx-wash); border-color: #e6c9da; }
.reef-sx .sx-st-body { padding: 0 56px 30px 64px; font-size: 16.5px; line-height: 1.7; color: #3d3438; }
.reef-sx .sx-st-body p { margin: 0 0 12px; }
.reef-sx .sx-st-body p:last-child { margin-bottom: 0; }
.reef-sx .sx-st-body ul, .reef-sx .sx-st-body ol { margin: 0 0 12px; padding-left: 1.2em; }
.reef-sx .sx-st-body li { margin: 0 0 6px; }
.reef-sx .sx-st-body strong { color: var(--sx-ink); }
.reef-sx .sx-st-book { margin: 16px 0 0 !important; }
.reef-sx .sx-st-book a { font-weight: 700; font-size: 15px; color: var(--sx-pink); text-decoration: none; border-bottom: 1px solid rgba(181, 16, 106, .35); padding-bottom: 1px; }
.reef-sx .sx-st-book a:hover { border-bottom-color: var(--sx-pink); }

@media (max-width: 767px) {
  .reef-sx .sx-topics[data-topics="stacked"] { width: calc(100% - 32px) !important; margin-top: 24px !important; }
  .reef-sx .sx-st > summary { grid-template-columns: 32px 1fr 28px; column-gap: 12px; padding: 20px 0; }
  .reef-sx .sx-st[open] > summary { padding-bottom: 10px; }
  .reef-sx .sx-st-n { width: 32px; height: 32px; font-size: 12px; }
  .reef-sx .sx-st-x { width: 28px; height: 28px; }
  .reef-sx .sx-st-h { font-size: 20px; }
  .reef-sx .sx-st-h em { font-size: 13.5px; }
  .reef-sx .sx-st-body { padding: 0 0 24px 44px; font-size: 16px; line-height: 1.65; }
}

/* Interventional Radiology (2026-11-13): its intro block (heading, tagline, paragraph) had no container, so it ran edge
   to edge under the hero. It now sits on the same 820px column as the topic list below it. */
.reef-sx .reef-ir-heading { box-sizing: border-box; width: min(820px, calc(100% - 48px)); margin: 44px auto 0; }
.reef-sx .reef-ir-heading h2 { margin: 0 0 8px; }
.reef-sx .reef-ir-heading p { margin: 0 0 10px; }
.reef-sx .reef-ir-heading p:last-child { margin-bottom: 0; }
.reef-sx .reef-ir-heading + .sx-topics[data-topics="stacked"] { margin-top: 24px !important; }
@media (max-width: 689.98px) {
  .reef-sx .reef-ir-heading { width: calc(100% - 32px); margin-top: 24px; }
  .reef-sx .reef-ir-heading + .sx-topics[data-topics="stacked"] { margin-top: 16px !important; }
}
