.farahy-location { padding: clamp(1rem, 3vw, 1.75rem); margin-block: 1.5rem; border: 1px solid #e3bd7d; border-radius: .5rem; background: #f7f5ee; color: #0d2339; }
.farahy-location__frame { display: block; inline-size: 100%; block-size: clamp(18rem, 45vw, 28rem); margin-block-start: 1rem; border: 0; border-radius: .35rem; }
.farahy-location [hidden] { display: none !important; }
/* Reserve the same space for the map action while its handler initializes. */
html.has-js .farahy-location [data-farahy-map-load][hidden]:not(.is-map-loaded) {
	display: inline-flex !important;
	visibility: hidden;
}
.farahy-location a:focus-visible, .farahy-location button:focus-visible { outline: 3px solid #0d2339; outline-offset: 3px; }
.farahy-institution { display: flex; align-items: center; gap: .6rem; color: #0d2339; font-size: .8rem; overflow-wrap: anywhere; }
.farahy-institution svg { flex: none; color: #876323; }
.library-card--link .library-source-link { display: block; margin-block-start: 1rem; padding: .7rem; text-align: center; font-size: .85rem; }
.farahy-location__preview { position: relative; display: grid; place-items: center; min-block-size: 14rem; overflow: hidden; border-radius: .35rem; background: #0d2339; color: #e3bd7d; }
.farahy-location__illustration { position: absolute; inline-size: 100%; block-size: 100%; opacity: .35; }
.farahy-location__caption { position: relative; display: grid; gap: .35rem; padding: 1.25rem; padding-block-start: 8rem; text-align: center; }
.farahy-location__caption strong { font-size: clamp(1.1rem, 2.5vw, 1.5rem); letter-spacing: .05em; }
.farahy-location__caption small { color: #f7f5ee; font-size: .75rem; }
.farahy-location__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block-start: 1rem; }
.farahy-location__actions .button { white-space: normal; }
.farahy-location .farahy-location__privacy { margin-block: .7rem 0; font-size: .8rem; }
.farahy-contact-details:empty { display: none; }
.farahy-contact-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 1rem; margin-block: 1rem; }
.farahy-contact-details div { padding: 1rem; border-inline-start: 2px solid #e3bd7d; overflow-wrap: anywhere; }
.farahy-contact-details dt { font-weight: 600; }
.farahy-contact-details dd { margin: .5rem 0 0; white-space: pre-line; }
.farahy-contact-note { font-size: .88rem; max-inline-size: 65ch; }
.farahy-assistant-launch { position: fixed; inset-inline-end: 1rem; inset-block-end: max(1rem, env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: .6rem; max-inline-size: calc(100% - 2rem); min-block-size: 44px; padding: .8rem 1rem; border: 1px solid #e3bd7d; border-radius: 2rem; background: #0d2339; color: #f7f5ee; font: inherit; font-size: .88rem; box-shadow: 0 4px 16px #0d233922; cursor: pointer; }
.farahy-assistant-launch[hidden] { display: none !important; }
.farahy-assistant { position: fixed; inset: auto; inset-inline-end: 1rem; inset-block-end: 1rem; margin: 0; padding: 0; inline-size: min(27rem,calc(100vw - 2rem)); max-block-size: calc(100dvh - 2rem); color: #0d2339; background: #f7f5ee; border: 1px solid #e3bd7d; border-radius: .65rem; box-shadow: 0 12px 50px #0d233944; overflow: auto; font-family: inherit; }
.farahy-assistant::backdrop { background: #0d233955; }
.farahy-assistant__head { position: sticky; inset-block-start: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; background: #0d2339; color: #f7f5ee; z-index: 1; }
.farahy-assistant__head h2 { margin: 0; font: inherit; font-size: 1.1rem; font-weight: 600; color: inherit; }
.farahy-assistant__head button { background: transparent; color: #e3bd7d; border: 1px solid #e3bd7d; border-radius: .3rem; min-inline-size: 44px; min-block-size: 44px; font: inherit; font-size: 1.6rem; cursor: pointer; }
.farahy-assistant__body { padding: 1rem; font-size: .95rem; overflow-wrap: anywhere; }
.farahy-assistant__body > p { margin-block: 0 1rem; }
.farahy-assistant__links { display: grid; gap: .4rem; }
.farahy-assistant__links a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-block-size: 44px; padding: .65rem .8rem; background: #fff; color: #0d2339; border: 1px solid #0d233926; border-radius: .3rem; text-decoration: none; }
.farahy-assistant__links a:hover { border-color: #876323; }
.farahy-assistant h3 { font: inherit; font-weight: 600; margin-block: 1.3rem .6rem; }
.farahy-assistant details { padding-block: .7rem; border-block-end: 1px solid #0d233926; }
.farahy-assistant summary { cursor: pointer; min-block-size: 24px; }
.farahy-assistant details p { margin-block: .6rem 0; font-size: .9rem; line-height: 1.7; }
.farahy-assistant .farahy-assistant__notice { margin-block: 1rem 0; font-size: .78rem; line-height: 1.6; }
.farahy-assistant :is(a,button,summary):focus-visible, .farahy-assistant-launch:focus-visible { outline: 3px solid #876323; outline-offset: 3px; }
.farahy-assistant .farahy-assistant__head button:focus-visible { outline-color: #e3bd7d; }
html[dir="rtl"] .farahy-assistant__links span { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) { .farahy-assistant__links a { transition: border-color 180ms ease; } }
.farahy-assistant [hidden] { display:none !important; }
.farahy-assistant__search { margin-block:0 1rem; }
.farahy-assistant__search label { display:block; margin-block-end:.5rem; font-weight:600; }
.farahy-assistant__search > div { display:flex; flex-wrap:wrap; gap:.4rem; }
.farahy-assistant__search input { flex:1 1 10rem; min-inline-size:0; inline-size:100%; min-block-size:44px; padding:.6rem; border:1px solid #876323; border-radius:.25rem; color:#0d2339; background:#fff; font:inherit; }
.farahy-assistant__search button,.farahy-assistant__reset { min-block-size:44px; padding:.6rem .8rem; border:1px solid #876323; border-radius:.25rem; background:#0d2339; color:#f7f5ee; cursor:pointer; font:inherit; }
.farahy-assistant__search button:disabled { cursor:wait; opacity:.65; }
.farahy-assistant__search > p { font-size:.76rem; line-height:1.6; margin-block:.55rem 0; }
.farahy-assistant__results > p { font-size:.9rem; line-height:1.7; }
.farahy-assistant__results ul { list-style:none; margin:0; padding:0; }
.farahy-assistant__results li { padding:.8rem; margin-block:.6rem; border:1px solid #0d233926; background:#fff; border-radius:.3rem; }
.farahy-assistant__results small { display:block; color:#5c6772; font-size:.75rem; }
.farahy-assistant__results a { display:block; color:#0d2339; line-height:1.5; font-weight:600; }
.farahy-assistant__results li p { font-size:.82rem; line-height:1.7; margin-block:.45rem 0; }
.farahy-assistant__reset { margin-block:.75rem; }
.farahy-assistant input:focus-visible { outline:3px solid #876323; outline-offset:3px; }

/* CHATBOT-016: messages own the flexible space; controls remain compact. */
.farahy-assistant.has-conversation { inline-size:min(31rem,calc(100vw - 2rem)); }
.farahy-assistant.has-conversation[open] { display:flex; flex-direction:column; block-size:min(46rem,calc(var(--farahy-chat-height,100dvh) - 2rem)); max-block-size:calc(var(--farahy-chat-height,100dvh) - 2rem); overflow:clip; }
.farahy-assistant.has-conversation .farahy-assistant__head { position:static; flex:none; padding:.6rem .8rem; }
.farahy-assistant__head-actions { display:flex; align-items:center; gap:.35rem; flex:none; }
.farahy-assistant .farahy-assistant__head-actions button { display:grid; place-items:center; margin:0; padding:.35rem; inline-size:44px; block-size:44px; }
.farahy-assistant.has-conversation .farahy-assistant__body { display:flex; flex:1 1 auto; min-block-size:0; flex-direction:column; gap:.5rem; max-block-size:none; padding:.65rem .75rem; overflow:clip; }
.farahy-assistant.has-conversation .farahy-assistant__body > p:first-child { display:none; }
.farahy-assistant.has-conversation .farahy-assistant__results { position:relative; flex:1 1 0; min-block-size:4rem; max-block-size:none; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:.15rem; }
.farahy-chat-message { position:relative; max-inline-size:96%; padding:.65rem .75rem; margin-block:.5rem; border:1px solid #0d233922; border-radius:.6rem; background:#fff; color:#0d2339; }
.farahy-chat-message > small { display:block; font-size:.72rem; font-weight:600; }
.farahy-chat-message > p { font-size:.9rem; line-height:1.7; margin-block:.4rem 0; white-space:pre-line; }
.farahy-chat-message--visitor { margin-inline-start:auto; background:#0d2339; color:#f7f5ee; border-color:#0d2339; }
.farahy-chat-message--visitor > small { color:#e3bd7d; }
.farahy-assistant .farahy-chat-message li { padding:.3rem 0; margin-block:.2rem 0; border:0; border-block-start:1px solid #0d233922; background:transparent; border-radius:0; }
.farahy-assistant .farahy-chat-message li a { min-block-size:24px; font-size:.82rem; text-underline-offset:.15em; }
.farahy-chat-suggestions { display:flex; flex-wrap:wrap; gap:.45rem; margin-block-start:.7rem; }
.farahy-chat-suggestions button { min-block-size:44px; padding:.45rem .65rem; border:1px solid #876323; border-radius:.4rem; background:#f7f5ee; color:#0d2339; font:inherit; font-size:.82rem; cursor:pointer; }
.farahy-assistant.has-conversation .farahy-assistant__search { position:relative; flex:none; margin:0; }
.farahy-assistant.has-conversation .farahy-assistant__search > div { flex-wrap:nowrap; align-items:flex-end; }
.farahy-assistant__search textarea { display:block; flex:1 1 0; min-inline-size:0; inline-size:100%; block-size:44px; min-block-size:44px; max-block-size:104px; resize:none; overflow:auto; padding:.55rem .6rem; border:1px solid #876323; border-radius:.3rem; color:#0d2339; background:#fff; font:inherit; line-height:1.4; }
.farahy-assistant__search textarea:focus-visible { outline:3px solid #876323; outline-offset:2px; }
.farahy-assistant .farahy-assistant__search label,.farahy-assistant .screen-reader-text { position:absolute; inline-size:1px; block-size:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.farahy-assistant .farahy-assistant__privacy { flex:none; margin:0; padding:0; border:0; font-size:.72rem; }
.farahy-assistant .farahy-assistant__privacy summary { min-block-size:24px; inline-size:fit-content; padding-block:.15rem; color:#475563; }
.farahy-assistant .farahy-assistant__privacy .farahy-assistant__notice { margin-block:.3rem 0; font-size:.72rem; line-height:1.45; max-block-size:5rem; overflow:auto; }

/* Confirmed office coordinates and one appointment-only choice group. */
.farahy-location__street { max-inline-size:42ch; margin:.2rem auto 0; font-style:normal; font-size:clamp(.85rem,1.8vw,1rem); line-height:1.6; color:#f7f5ee; overflow-wrap:anywhere; }
.farahy-reception {
	margin-block:1.25rem;
	padding:clamp(1rem,3vw,1.5rem);
	border:1px solid #e3bd7d;
	border-radius:.6rem;
	background:#f7f5ee;
	color:#0d2339;
}
.farahy-reception h2 { margin-block:0 .5rem; color:#0d2339; font-size:clamp(1.2rem,2.3vw,1.55rem); }
.farahy-reception__intro { margin-block:.4rem 1.2rem; max-inline-size:68ch; font-size:.94rem; line-height:1.65; }
.farahy-reception__actions {
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:clamp(.4rem,1.5vw,.85rem);
	max-inline-size:44rem;
}
.farahy-reception__choice {
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:.45rem;
	min-inline-size:0;
	min-block-size:7.7rem;
	padding:.85rem .45rem;
	border:1px solid #0d23392b;
	border-radius:.6rem;
	background:#fff;
	color:#0d2339;
	text-align:center;
	text-decoration:none;
	overflow-wrap:anywhere;
}
.farahy-reception__choice[href]:hover {
	border-color:#876323;
	background:#fffaf0;
	box-shadow:0 3px 12px #0d233915;
}
.farahy-reception__choice[href]:focus-visible { outline:3px solid #0d2339; outline-offset:3px; }
.farahy-reception__icon { display:grid; place-items:center; inline-size:2.9rem; block-size:2.9rem; border-radius:50%; background:#0d23390b; color:#0d2339; }
.farahy-reception__choice--whatsapp .farahy-reception__icon { background:#eaf5ef; color:#13643c; }
.farahy-reception__label { display:block; font-weight:650; line-height:1.3; font-size:clamp(.8rem,1.4vw,.96rem); }
.farahy-reception__choice small { display:block; font-size:clamp(.64rem,1.05vw,.79rem); font-weight:400; color:#425363; line-height:1.4; overflow-wrap:anywhere; }
.farahy-reception__choice--unavailable { border-style:dashed; background:#f4f4f2; color:#586575; }
.farahy-reception__choice--unavailable .farahy-reception__icon { color:#586575; }
@media (max-width:420px) {
	.farahy-reception__choice { padding:.65rem .2rem; min-block-size:7.2rem; gap:.35rem; }
	.farahy-reception__icon { inline-size:2.6rem; block-size:2.6rem; }
	.farahy-reception__icon svg { inline-size:1.55rem; block-size:1.55rem; }
	.farahy-reception__choice small { font-size:.64rem; }
}


/* RDV-018: one clear action area, compact office directions and privacy note.
   The historic Gutenberg blocks are retained in WordPress but not duplicated
   on the public appointment page. No other page layout is affected. */
body.farahy-rdv-landing .page-main { padding-block:clamp(1.35rem,3vw,2.6rem); }
body.farahy-rdv-landing .page-entry__header {
	margin-block-end:clamp(1rem,2vw,1.6rem);
	padding-block-end:clamp(.7rem,1.6vw,1rem);
}
body.farahy-rdv-landing .page-entry__title { font-size:clamp(2rem,4vw,3.1rem); }
body.farahy-rdv-landing .entry-content > .farahy-rdv-page {
	inline-size:min(100% - 2rem,68rem);
	margin-block-start:0;
}
.farahy-rdv-page { display:grid; gap:clamp(.8rem,1.6vw,1.25rem); }
.farahy-rdv-page .farahy-reception {
	margin:0;
	padding:clamp(1rem,2.5vw,1.6rem);
	border:1px solid #e3bd7d;
	box-shadow:0 7px 28px #0d23390b;
	background:#fff;
}
.farahy-rdv-page .farahy-reception h2 {
	font-size:clamp(1.35rem,2.6vw,2rem);
	line-height:1.3;
}
.farahy-rdv-page .farahy-reception__intro {
	margin-block:.45rem 1rem;
	max-inline-size:70ch;
}
.farahy-rdv-page .farahy-reception__actions { max-inline-size:none; }
.farahy-rdv-page .farahy-reception__choice { min-block-size:7rem; }
.farahy-rdv-page__details {
	display:grid;
	grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
	gap:clamp(.75rem,1.5vw,1.15rem);
	align-items:stretch;
}
.farahy-rdv-page__details > * {
	min-inline-size:0;
	margin:0;
	padding:clamp(1rem,2.4vw,1.35rem);
	border:1px solid #0d233925;
	border-radius:.6rem;
	background:#f7f5ee;
	color:#0d2339;
}
.farahy-rdv-page__eyebrow {
	margin-block-end:.3rem;
	font-size:.72rem;
	font-weight:700;
	letter-spacing:.09em;
	text-transform:uppercase;
	color:#6d552b;
}
.farahy-rdv-page__details h2 {
	margin:0 0 .65rem;
	color:#0d2339;
	font-size:clamp(1.05rem,1.9vw,1.25rem);
	font-weight:700;
	line-height:1.35;
}
.farahy-rdv-page__address address {
	font-style:normal;
	font-size:.91rem;
	line-height:1.65;
	overflow-wrap:anywhere;
}
.farahy-rdv-page__map-link {
	display:inline-flex;
	gap:.45rem;
	align-items:center;
	margin-block-start:.7rem;
	min-block-size:44px;
	color:#0d2339;
	font-size:.85rem;
	font-weight:650;
	text-underline-offset:.18em;
}
.farahy-rdv-page__map-link svg { inline-size:1.2rem; block-size:1.2rem; flex:none; }
.farahy-rdv-page__map-link:focus-visible { outline:3px solid #876323; outline-offset:3px; }
.farahy-rdv-page__privacy p { margin:.4rem 0 0; font-size:.89rem; line-height:1.65; }
.farahy-rdv-page__supplement {
	padding:clamp(1rem,2vw,1.4rem);
	border-block-start:1px solid #0d233925;
}
body.farahy-rdv-landing[dir="rtl"] .farahy-rdv-page__eyebrow,
html[dir="rtl"] body.farahy-rdv-landing .farahy-rdv-page__eyebrow {
	letter-spacing:0;
	text-transform:none;
	font-size:.88rem;
}
@media (max-width:700px) {
	.farahy-rdv-page__details { grid-template-columns:minmax(0,1fr); }
	.farahy-rdv-page .farahy-reception { padding:1rem .8rem; }
	.farahy-rdv-page .farahy-reception__choice { min-block-size:7.2rem; }
}
@media (max-width:380px) {
	.farahy-rdv-page .farahy-reception__actions { gap:.35rem; }
	.farahy-rdv-page .farahy-reception__choice { padding:.6rem .15rem; }
}


/* RDV-019: final alignment, spacing and non-obstructive assistant launcher.
   Intentionally scoped to the appointment page only. */
body.farahy-rdv-landing .page-entry__header {
	inline-size:min(100% - 2rem,68rem);
	margin-block-end:clamp(.75rem,1.6vw,1.25rem);
	padding-block-end:clamp(.55rem,1.1vw,.8rem);
}
body.farahy-rdv-landing .page-main {
	padding-block-start:clamp(1rem,2.3vw,2rem);
	padding-block-end:max(5rem,env(safe-area-inset-bottom));
}
body.farahy-rdv-landing .page-entry__title {
	font-size:clamp(1.85rem,3.5vw,2.9rem);
	line-height:1.16;
}
.farahy-rdv-page { gap:clamp(.65rem,1.2vw,1rem); }
.farahy-rdv-page .farahy-reception {
	padding:clamp(.9rem,2vw,1.35rem);
}
.farahy-rdv-page .farahy-reception__intro {
	margin-block:.35rem .8rem;
	font-size:.91rem;
	line-height:1.55;
}
.farahy-rdv-page .farahy-reception__choice {
	min-block-size:6.25rem;
	padding:.65rem .35rem;
}
.farahy-rdv-page .farahy-reception__icon {
	inline-size:2.55rem;
	block-size:2.55rem;
}
.farahy-rdv-page .farahy-reception__icon svg {
	inline-size:1.55rem;
	block-size:1.55rem;
}
.farahy-rdv-page__details > * {
	padding:clamp(.85rem,1.8vw,1.15rem);
}
.farahy-rdv-page__details h2 {
	margin-block:0 .5rem;
}
.farahy-rdv-page__map-link { margin-block-start:.45rem; }
.farahy-rdv-page__privacy p { margin-block:.2rem 0; }

/* Keep the assistant discoverable but entirely within the page gutters on
   wide screens. The accessible name remains in the visually hidden span. */
@media (max-width:520px) {
	.farahy-rdv-page .farahy-reception__actions {
		grid-template-columns:repeat(2,minmax(0,1fr));
		gap:.5rem;
	}
	.farahy-rdv-page .farahy-reception__choice--whatsapp { grid-column:1/-1; }
	.farahy-rdv-page .farahy-reception__choice {
		min-block-size:6.3rem;
		gap:.25rem;
	}
	.farahy-rdv-page .farahy-reception__choice small { font-size:.72rem; }
}
@media (max-width:355px) {
	.farahy-rdv-page .farahy-reception__choice small[dir="ltr"] {
		font-size:.68rem;
		overflow-wrap:anywhere;
	}
}

/* PRELAUNCH-031: consistent minimal assistant trigger on every page.
 * The visible label is visually hidden, not removed from assistive technology.
 * This reduces the obstruction of forms and catalogue controls.
 */
body .farahy-assistant-launch {
	inline-size: 3.25rem;
	min-inline-size: 3.25rem;
	max-inline-size: 3.25rem;
	block-size: 3.25rem;
	min-block-size: 3.25rem;
	padding: .65rem;
	gap: 0;
	justify-content: center;
	border-radius: 50%;
}
body .farahy-assistant-launch svg { flex: none; inline-size: 1.55rem; block-size: 1.55rem; }
body .farahy-assistant-launch span {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* PRELAUNCH-037: no floating overlay where the side gutter is too narrow.
   The launcher occupies its own space instead of narrowing page content. */
@media(max-width:86rem) {
 .site-header__utility-inner { flex-wrap:wrap; gap:clamp(.35rem,1vw,.75rem); }
 body .farahy-assistant-launch { position:static; flex:0 0 44px; inline-size:44px; min-inline-size:44px; max-inline-size:44px; block-size:44px; min-block-size:44px; padding:.5rem; margin:0; }
 html.has-js .farahy-assistant-launch[hidden] { display:flex !important; visibility:hidden; }
 body .farahy-assistant-launch svg { inline-size:1.35rem; block-size:1.35rem; }
}
