/* The plugin's blocks take the active design's colours and fonts through these variables
   (each design sets them in its theme.json custom properties); the fallbacks keep them usable alone. */
.burhan-services, .burhan-lawyers, .burhan-reviews, .burhan-booking, .burhan-contact, .burhan-ask, .burhan-stats, .burhan-lawyer-page {
  --b-accent: var(--wp--custom--burhan--accent, #1f3a5f);
  --b-accent-ink: var(--wp--custom--burhan--accent-ink, #ffffff);
  --b-soft: var(--wp--custom--burhan--soft, #f3f1ec);
  --b-line: var(--wp--custom--burhan--line, #ddd8cc);
  --b-ink: var(--wp--custom--burhan--ink, #1d1d1b);
  --b-muted: var(--wp--custom--burhan--muted, #6b675e);
  --b-radius: var(--wp--custom--burhan--radius, 10px);
  color: var(--b-ink);
}
.burhan-note { color: var(--b-muted, #6b675e); font-size: .95em; }
.burhan-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.burhan-service { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.burhan-service:hover { border-color: color-mix(in srgb, var(--b-accent) 45%, var(--b-line)); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.burhan-service-icon { flex: none; width: 46px; height: 46px; border-radius: calc(var(--b-radius) - 2px); display: grid; place-items: center;
  background: color-mix(in srgb, var(--b-accent) 9%, #fff); color: var(--b-accent); }
.burhan-service-icon svg { width: 26px; height: 26px; }
.burhan-service-text { display: grid; gap: 4px; }
.burhan-service-text strong { font-weight: 700; }
.burhan-service-summary { color: var(--b-muted); font-size: .9em; line-height: 1.7; }
.burhan-services-described { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.burhan-services-described .burhan-service { align-items: flex-start; padding: 18px; }
.burhan-lawyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.burhan-lawyer { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; }
.burhan-lawyer h3 { margin: 0 0 4px; font-size: 1.1em; }
.burhan-lawyer p { margin: 4px 0; }
.burhan-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--b-accent); color: var(--b-accent-ink); font-size: 1.4em; font-weight: 700; }
.burhan-lawyer-role { color: var(--b-accent); font-weight: 600; }
.burhan-lawyer-meta { color: var(--b-muted); font-size: .9em; }
.burhan-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0; }
.burhan-stats div { text-align: center; padding: 16px; border-radius: var(--b-radius); background: var(--b-soft); }
.burhan-stats dt { font-size: 2em; font-weight: 800; color: var(--b-accent); line-height: 1.2; }
.burhan-stats dd { margin: 0; color: var(--b-muted); }
.burhan-stars { color: #d4a017; letter-spacing: 1px; }
.burhan-stars-off { opacity: .3; }
.burhan-reviews { display: grid; gap: 12px; }
.burhan-review { margin: 0; padding: 16px 18px; border-inline-start: 4px solid var(--b-accent); background: var(--b-soft); border-radius: var(--b-radius); }
.burhan-review footer { color: var(--b-muted); font-size: .9em; }
.burhan-reply { font-size: .92em; color: var(--b-muted); }
.burhan-form { display: grid; gap: 14px; }
.burhan-form label { display: grid; gap: 6px; font-weight: 600; }
.burhan-form input:not([type=radio]):not([type=checkbox]), .burhan-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--b-line); border-radius: calc(var(--b-radius) - 4px); background: #fff; color: var(--b-ink); }
.burhan-form input:focus, .burhan-form textarea:focus { outline: 2px solid var(--b-accent); outline-offset: 1px; }
.burhan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.burhan-hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.burhan-consent { font-weight: 400 !important; display: flex !important; gap: 8px; align-items: flex-start; font-size: .92em; color: var(--b-muted); }
.burhan-btn { display: inline-block; justify-self: start; padding: 12px 26px; border: 0; border-radius: var(--b-radius); background: var(--b-accent); color: var(--b-accent-ink) !important; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.burhan-btn:hover { filter: brightness(1.08); }
.burhan-btn[disabled] { opacity: .6; cursor: wait; }
.burhan-btn-ghost { background: transparent; color: var(--b-accent, #1f3a5f) !important; border: 1.5px solid currentColor; }
.burhan-slots, .burhan-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.burhan-slots legend, .burhan-modes legend { font-weight: 700; margin-bottom: 6px; }
.burhan-day { border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; padding: 10px 14px; }
.burhan-day-name { cursor: pointer; font-weight: 600; }
.burhan-day-name span { color: var(--b-muted); font-weight: 400; font-size: .9em; }
.burhan-day[open] .burhan-times { margin-top: 10px; }
.burhan-times { display: flex; flex-wrap: wrap; gap: 6px; }
.burhan-time, .burhan-mode { display: inline-block !important; position: relative; }
.burhan-time input, .burhan-mode input { position: absolute; opacity: 0; }
.burhan-time span, .burhan-mode span { display: inline-block; padding: 7px 12px; border: 1px solid var(--b-line); border-radius: 999px; cursor: pointer; font-size: .92em; background: #fff; }
.burhan-time input:checked + span, .burhan-mode input:checked + span { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-time input:focus-visible + span, .burhan-mode input:focus-visible + span { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.burhan-mode { margin-inline-end: 6px; }
.burhan-mode span { font-weight: 600; padding: 9px 18px; }
.burhan-modes legend { width: 100%; }
.burhan-booking-terms { color: var(--b-muted); }
.burhan-flash { padding: 12px 16px; border-radius: var(--b-radius); margin-bottom: 12px; }
.burhan-ok { background: #e8f4ec; color: #1d5a32; }
.burhan-err { background: #fbeaea; color: #8a1f1f; }
.burhan-answer { padding: 16px 18px; background: var(--b-soft); border-radius: var(--b-radius); margin-bottom: 14px; line-height: 1.9; }
.burhan-q { font-weight: 700; }
.burhan-contact-details { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.burhan-whatsapp { position: fixed; inset-block-end: 18px; inset-inline-start: 18px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: #1f8f4e; color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
@media (prefers-reduced-motion: no-preference) { .burhan-btn, .burhan-time span, .burhan-mode span { transition: background .15s, filter .15s; } }
.burhan-btn-whatsapp { background: #1f8f4e; color: #fff !important; margin-top: 10px; }
.burhan-lawyers:has(> .burhan-lawyer:only-child) { grid-template-columns: 1fr; max-width: 760px; } /* a one-lawyer office: one wide card */
.burhan-avatar-photo { object-fit: cover; object-position: center 18%; padding: 0; border: 2px solid var(--b-soft); }
/* portraits are framed head and shoulders: keep the face in a round or short frame */
.burhan-lp-photo, .burhan-lp-others img { object-position: center 18%; }
.burhan-logo { max-height: 56px; width: auto; display: block; }
.burhan-cover { margin: 0; }
.burhan-cover img { width: 100%; height: auto; border-radius: var(--b-radius); display: block; }
.burhan-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.burhan-gallery figure { margin: 0; }
.burhan-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--b-radius); display: block; }
.burhan-gallery figcaption { font-size: .88em; color: var(--b-muted); margin-top: 4px; }
/* buttons outside the plugin's blocks (the header's «دخول الموكلين») take the design's colour and corners too */
.burhan-btn { --b-accent: var(--wp--custom--burhan--accent, #1f3a5f); --b-accent-ink: var(--wp--custom--burhan--accent-ink, #fff); border-radius: var(--wp--custom--burhan--radius, 10px); }

/* A section whose only content is reviews, the question box or the gallery disappears while the office has none to show */
.burhan-if-content:not(:has(.burhan-reviews, .burhan-ask, .burhan-gallery)) { display: none !important; }
.burhan-lawyer-quals { margin: 8px 0 4px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .92em; }
.burhan-lawyer-quals li { padding-inline-start: 16px; position: relative; }
.burhan-lawyer-quals li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--b-accent); opacity: .7; }
.burhan-lawyer-langs { color: var(--b-muted); font-size: .9em; }
.burhan-lawyer-langs span { font-weight: 600; color: var(--b-ink); }
.burhan-lawyers:has(> .burhan-lawyer:only-child) .burhan-avatar { width: 96px; height: 96px; font-size: 2.2em; }

/* Lawyer cards link to each lawyer's page: a short introduction on the card, the rest on the page */
.burhan-lawyer h3 a { color: inherit; text-decoration: none; }
.burhan-lawyer h3 a:hover, .burhan-lawyer h3 a:focus-visible { color: var(--b-accent); text-decoration: underline; text-underline-offset: 4px; }
.burhan-lawyer-linked .burhan-lawyer-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.burhan-lawyer-linked .burhan-lawyer-quals li:nth-child(n+4) { display: none; }
.burhan-lawyer-more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--b-accent) !important; text-decoration: none; }
.burhan-lawyer-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.burhan-lawyer > a { flex: none; align-self: flex-start; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* A lawyer's page (/lawyers/<address>/) */
.burhan-lawyer-page { display: grid; gap: 40px; }
.burhan-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9em; color: var(--b-muted); }
.burhan-crumbs a { color: inherit; }
.burhan-crumbs [aria-current] { color: var(--b-ink); font-weight: 600; }
.burhan-lp-hero { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: center; padding: 32px;
  border: 1px solid var(--b-line); border-radius: calc(var(--b-radius) * 1.6);
  background: linear-gradient(135deg, color-mix(in srgb, var(--b-accent) 8%, #fff), #fff 65%); }
.burhan-lp-figure { margin: 0; }
.burhan-lp-hero > p:empty { display: none; }
.burhan-lp-photo { width: 230px; height: 280px; border-radius: calc(var(--b-radius) * 1.4); object-fit: cover; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.burhan-lp-initial { display: grid; place-items: center; background: var(--b-accent); color: var(--b-accent-ink); font-size: 5.5em; font-weight: 700; }
.burhan-lp-head .burhan-lawyer-role { margin: 0; }
.burhan-lp-head h1 { margin: 6px 0 18px; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.35; text-wrap: balance; }
.burhan-lp-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.burhan-lp-facts li { padding: 10px 14px; background: #fff; border: 1px solid var(--b-line); border-radius: var(--b-radius); font-size: .95em; line-height: 1.7; }
.burhan-lp-facts li > span { display: block; color: var(--b-muted); font-size: .85em; }
.burhan-lp-facts a { color: var(--b-accent); font-size: .9em; }
.burhan-lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.burhan-lp-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.burhan-lp-about { grid-column: 1 / -1; max-width: 72ch; font-size: 1.05em; line-height: 1.9; }
.burhan-lawyer-page h2 { font-size: 1.35rem; margin: 0 0 14px; }
.burhan-lp-areas .burhan-services { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.burhan-lp-book { padding: 28px; border-radius: calc(var(--b-radius) * 1.6); background: var(--b-soft); }
.burhan-booking-with { margin: 0 0 14px; padding: 10px 14px; background: #fff; border-inline-start: 4px solid var(--b-accent); border-radius: var(--b-radius); }
.burhan-lp-others ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.burhan-lp-others a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; color: inherit; text-decoration: none; }
.burhan-lp-others a:hover { border-color: color-mix(in srgb, var(--b-accent) 45%, var(--b-line)); }
.burhan-lp-others img, .burhan-lp-others .burhan-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; font-size: 1.1em; }
.burhan-lp-others small { display: block; color: var(--b-muted); }
@media (max-width: 720px) {
  .burhan-lp-hero { grid-template-columns: 1fr; gap: 20px; padding: 20px; text-align: start; }
  .burhan-lp-photo { width: 150px; height: 180px; }
  .burhan-lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .burhan-lp-initial { font-size: 3.5em; }
  .burhan-lp-actions .burhan-btn { flex: 1; text-align: center; }
  .burhan-lp-book { padding: 18px; }
}
/* WordPress wraps the forms' hidden fields in paragraphs; they take no room */
.burhan-form > p:empty { display: none; }
.burhan-form > .burhan-hp { margin: 0; }
/* The page's section titles in the reading font (the designs' display font is for the page title) */
.burhan-lawyer-page h2 { font-family: var(--wp--preset--font-family--plex, inherit); font-weight: 700; }

/* The office's place on the map (burhan_map, or first in the gallery with map="1") */
.burhan-map { margin: 0; }
.burhan-map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--b-radius, 4px); }
.burhan-map figcaption { font-size: .88em; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.burhan-map figcaption small { color: var(--b-muted, #6b675e); }

/* ---- The booking card (burhan_booking): a strip of days, the chosen day's times, the kind of consultation as cards,
   the visitor's details, and a summary with the button. The chosen day shows its times through these rules (no script). */
.burhan-bk { --b-gap: 20px; }
.burhan-bk .burhan-form { display: block; }
.burhan-bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 24px; align-items: start; }
.burhan-bk-main { display: grid; gap: 26px; min-width: 0; }
.burhan-bk-step { display: grid; gap: 12px; }
.burhan-bk-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; color: var(--b-ink); }
.burhan-bk-title span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--b-accent); color: var(--b-accent-ink); font-size: .85rem; font-weight: 800; }
.burhan-bk .burhan-consent { display: block !important; line-height: 1.8; }
.burhan-bk .burhan-consent input { margin-inline-end: 8px; vertical-align: middle; }
.burhan-bk-pick { display: grid; gap: 14px; }
.burhan-bk-r { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.burhan-bk-days { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.burhan-bk-day { flex: none; width: 88px; display: grid; justify-items: center; gap: 0; padding: 12px 6px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; cursor: pointer; scroll-snap-align: start; transition: border-color .15s, background .15s; line-height: 1.4; }
.burhan-bk-day:hover { border-color: var(--b-accent); }
.burhan-bk-day span { font-size: .82rem; }
.burhan-bk-day strong { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.burhan-bk-day small { font-size: .74rem; opacity: .75; margin-top: 2px; }
.burhan-bk-panels { min-height: 52px; }
.burhan-bk-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.burhan-bk-time, .burhan-bk-mode { position: relative; display: block; }
.burhan-bk-time input, .burhan-bk-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.burhan-bk-time span { display: block; text-align: center; padding: 10px 6px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem; direction: ltr; }
.burhan-bk-time span:hover { border-color: var(--b-accent); }
.burhan-bk-time input:checked + span { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-time input:focus-visible + span, .burhan-bk-mode input:focus-visible + span { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.burhan-bk-mode span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; cursor: pointer; color: var(--b-ink); }
.burhan-bk-mode svg { color: var(--b-accent); flex: none; }
.burhan-bk-mode input:checked + span { border-color: var(--b-accent); box-shadow: inset 0 0 0 1px var(--b-accent); background: var(--b-soft); }
.burhan-bk .burhan-grid { gap: 12px; }
.burhan-bk-step > label { display: grid; gap: 6px; font-weight: 600; }
.burhan-bk-summary { position: sticky; top: 96px; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .35); }
.burhan-bk-sum-title { margin: 0 0 4px; font-weight: 800; font-size: 1.05rem; }
.burhan-bk-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--b-line); font-size: .95rem; }
.burhan-bk-row span { color: var(--b-muted); }
.burhan-bk-row strong { text-align: end; }
.burhan-bk-fee strong { font-size: 1.2rem; color: var(--b-accent); }
.burhan-bk-note { margin: 0; font-size: .85rem; color: var(--b-muted); }
.burhan-bk-submit { width: 100%; text-align: center; margin-top: 6px; padding: 14px; font-size: 1.02rem; }
.burhan-bk-after { margin: 0; font-size: .82rem; color: var(--b-muted); text-align: center; }
@media (max-width: 860px) {
  .burhan-bk-layout { grid-template-columns: 1fr; }
  .burhan-bk-summary { position: static; }
}
.burhan-bk-r:nth-of-type(1):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(1) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(1):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(1) { display: grid; }
.burhan-bk-r:nth-of-type(1):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(1) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(2):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(2) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(2):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(2) { display: grid; }
.burhan-bk-r:nth-of-type(2):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(2) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(3):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(3) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(3):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(3) { display: grid; }
.burhan-bk-r:nth-of-type(3):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(3) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(4):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(4) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(4):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(4) { display: grid; }
.burhan-bk-r:nth-of-type(4):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(4) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(5):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(5) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(5):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(5) { display: grid; }
.burhan-bk-r:nth-of-type(5):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(5) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(6):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(6) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(6):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(6) { display: grid; }
.burhan-bk-r:nth-of-type(6):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(6) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(7):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(7) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(7):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(7) { display: grid; }
.burhan-bk-r:nth-of-type(7):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(7) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(8):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(8) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(8):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(8) { display: grid; }
.burhan-bk-r:nth-of-type(8):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(8) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(9):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(9) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(9):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(9) { display: grid; }
.burhan-bk-r:nth-of-type(9):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(9) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(10):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(10) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(10):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(10) { display: grid; }
.burhan-bk-r:nth-of-type(10):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(10) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(11):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(11) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(11):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(11) { display: grid; }
.burhan-bk-r:nth-of-type(11):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(11) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(12):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(12) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(12):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(12) { display: grid; }
.burhan-bk-r:nth-of-type(12):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(12) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(13):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(13) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(13):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(13) { display: grid; }
.burhan-bk-r:nth-of-type(13):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(13) { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.burhan-bk-r:nth-of-type(14):checked ~ .burhan-bk-days .burhan-bk-day:nth-child(14) { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
.burhan-bk-r:nth-of-type(14):checked ~ .burhan-bk-panels .burhan-bk-panel:nth-child(14) { display: grid; }
.burhan-bk-r:nth-of-type(14):focus-visible ~ .burhan-bk-days .burhan-bk-day:nth-child(14) { outline: 2px solid var(--b-accent); outline-offset: 2px; }

/* «الموقع أولاً»: direct booking and contact (WhatsApp, call, email) in place of the forms */
.burhan-direct{display:grid;gap:12px}
.burhan-direct p{margin:0}
.burhan-direct-actions{display:flex;flex-wrap:wrap;gap:10px}
.burhan-bk-direct{display:grid;grid-template-columns:minmax(0,1fr);gap:18px} /* one column that never grows past the screen */
.burhan-bk-direct .burhan-bk-summary{position:static}
.burhan-direct-actions .burhan-btn{margin-top:0}
/* Free times from the lawyer's calendar: each time is a WhatsApp link */
.burhan-bk-lawyers{display:flex;flex-wrap:wrap;gap:8px}
.burhan-bk .burhan-bk-time-link,.burhan-bk .burhan-bk-time-link:hover,.burhan-bk .burhan-bk-time-link:visited{text-decoration:none!important;color:var(--b-ink,inherit)!important}
.burhan-bk .burhan-bk-time-link span{text-decoration:none}
.burhan-bk-time-link:hover span,.burhan-bk-time-link:focus-visible span{background:var(--b-accent);color:var(--b-accent-ink);border-color:var(--b-accent)}
/* [burhan_hours] */
.burhan-hours{margin:0;display:grid;gap:6px}
.burhan-hours div{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:space-between}
.burhan-hours dt{font-weight:700}
.burhan-hours dd{margin:0}
.burhan-hours-note{margin:6px 0 0;font-size:.85em;opacity:.8}
.burhan-map-tile { margin: 0; }
.burhan-map-tile iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--b-radius, 4px); background: #eee; }
.burhan-logo-link { display: inline-flex; line-height: 0; }
/* The booking card: welcome and steps, the name, the kind of consultation, the lawyer's days and times, other ways */
.burhan-bk-intro { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--b-line, #d9d4c4); border-radius: var(--b-radius, 4px); background: var(--b-soft, #faf8f2); }
.burhan-bk-hello { margin: 0; font-weight: 800; font-size: 1.08rem; color: var(--b-ink, #222); }
.burhan-bk-howto { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 2px; }
.burhan-bk-intro .burhan-bk-note { font-size: .9rem; }
.burhan-bk-name { display: grid; gap: 6px; max-width: 420px; margin: 0; font-weight: 700; }
.burhan-bk-name input { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--b-line, #d9d4c4); border-radius: var(--b-radius, 4px); background: #fff; }
.burhan-bk-name input:focus { outline: 2px solid var(--b-accent, #1f3a2c); outline-offset: 1px; }
.burhan-bk-name.is-missing input { border-color: #b3261e; }
.burhan-bk-name.is-missing::after { content: "من فضلك اكتب اسمك أولاً ليصل إلى المكتب مع طلب الموعد"; color: #b3261e; font-weight: 400; font-size: .9em; }
.burhan-bk-direct .burhan-bk-modes, .burhan-bk-direct .burhan-bk-name { max-width: 640px; } /* the name as wide as the consultation choices below it */
.burhan-bk-for { display: grid; gap: 12px; }
.burhan-bk-for[hidden] { display: none; }
.burhan-bk-for .burhan-bk-title { display: block; font-weight: 800; color: #3a3a3a; }
.burhan-bk-for .burhan-bk-title span { display: inline; width: auto; height: auto; border-radius: 0; background: none; color: var(--b-muted, #7a7a7a); font-size: inherit; font-weight: 500; }
.burhan-direct-actions .burhan-btn { display: inline-flex; align-items: center; gap: 8px; }
.burhan-direct-actions .burhan-btn svg { flex: none; }
/* WordPress's paragraph filter leaves empty paragraphs between the booking's parts: no gaps from them */
.burhan-booking p:empty { display: none; }

/* ---- phones (mobile review 16 Nov): places kept for photos while they load, touch targets of 44px, no squeezed buttons */
.burhan-gallery img, .burhan-cover img { height: auto; }
.burhan-gallery img, .burhan-cover img, .burhan-avatar-photo, .burhan-lp-photo, .burhan-lp-others img { background: var(--b-soft, #efeadb); }
.burhan-crumbs a { display: inline-block; padding-block: 10px; }
.burhan-lawyer h3 a, .burhan-lawyer-more { display: inline-block; padding-block: 6px; min-height: 44px; box-sizing: border-box; }
.burhan-bk-day small { font-size: .8rem; }
/* the floating WhatsApp button: a round icon clear of the iPhone's bottom edge */
.burhan-whatsapp { inset-block-end: calc(16px + env(safe-area-inset-bottom)); inset-inline-start: 16px; width: 56px; height: 56px; padding: 0; box-sizing: border-box;
  font-size: 0; color: transparent !important; background: #1f8f4e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2Zm0 18.15c-1.48 0-2.93-.4-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.2 8.2 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.25-8.24 4.54 0 8.23 3.7 8.23 8.24 0 4.55-3.7 8.24-8.23 8.24Zm4.52-6.17c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.13-.16.24-.64.8-.78.97-.14.17-.29.18-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.02-.38.11-.5.11-.11.25-.29.37-.43.13-.15.17-.25.25-.42.08-.16.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.43.06-.66.31-.22.25-.86.85-.86 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.67-1.18.21-.58.21-1.07.15-1.18-.06-.1-.22-.16-.47-.28Z'/%3E%3C/svg%3E") center / 30px no-repeat; }
@media (max-width: 720px) {
  /* a lawyer's page: the two actions one under the other, full width, on one line each */
  .burhan-lp-actions { flex-direction: column; }
  .burhan-lp-actions .burhan-btn { width: 100%; box-sizing: border-box; }
  /* the three ways of consultation side by side, the icon over the word */
  .burhan-bk-modes, .burhan-bk-direct .burhan-bk-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .burhan-bk-mode span { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 4px; text-align: center; line-height: 1.35; font-size: .92rem; min-height: 84px; box-sizing: border-box; }
  /* the days strip fades at its far edge: there are more days to swipe to */
  .burhan-bk-days { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); padding-inline-end: 24px; }
  /* WhatsApp, call and email: three equal buttons */
  .burhan-direct-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .burhan-direct-actions .burhan-btn { justify-content: center; padding-inline: 8px; min-height: 48px; }
}
/* Lawyer cards side by side: the text column fills the card and «الملف الكامل» sits at its foot, level across cards */
.burhan-lawyer > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.burhan-lawyer > div > p:has(> .burhan-lawyer-more) { margin-top: auto; }

/* Booking: after the WhatsApp button, «أو تواصل مع المكتب مباشرة:» with a call and an email next to it */
.burhan-direct-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.burhan-direct-more > span { font-weight: 600; }
.burhan-direct-more .burhan-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; padding: 6px 14px; min-height: 40px; }
.burhan-direct-more .burhan-btn svg { flex: none; }

/* The request box: the message line by line, and on its left the WhatsApp button that sends it */
.burhan-bk-request { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; padding: 20px 22px; border: 1px solid var(--b-accent); border-radius: var(--b-radius); background: #fff; }
.burhan-bk-request[hidden] { display: none; }
.burhan-bk-request h4 { margin: 0 0 8px; font-size: 1rem; }
.burhan-bk-request-lines p { margin: 0 0 4px; line-height: 1.7; }
.burhan-bk-request-send { flex: none; display: grid; gap: 10px; justify-items: center; text-align: center; }
.burhan-bk-request-send p { margin: 0; font-weight: 600; }
.burhan-bk-request-send .burhan-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; min-width: 160px; justify-content: center; }
.burhan-bk .burhan-bk-time-link.is-picked span { background: var(--b-accent); color: var(--b-accent-ink); border-color: var(--b-accent); }
@media (max-width: 700px) {
  .burhan-bk-request { flex-direction: column; align-items: stretch; }
  .burhan-bk-request-send .burhan-btn { width: 100%; min-height: 48px; }
}
