/*
 * Keel Studio credit + digital business card (bottom-left, all public pages).
 * Deliberately in Keel's own look (paper / ink / violet, Inter Tight + JetBrains Mono) in both of the
 * site's colour modes, so it reads as the web studio's card and not as part of the Mrs V brand.
 * Switch off with: add_filter( 'mrsvfanfoni_demo_keel_card', '__return_false' );
 */
@font-face { font-family: "Keel Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-tight-latin.woff2") format("woff2"); }
@font-face { font-family: "Keel JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); }

.keel {
	--keel-ink: #0A0A0B;
	--keel-paper: #FAFAF9;
	--keel-violet: #6E56CF;
	--keel-muted: #77777d;
	--keel-mono-c: #8A8A8E;
	--keel-line: rgba(10, 10, 11, .1);
	--keel-gap: 22px;
	position: fixed;
	left: var(--keel-gap);
	bottom: var(--keel-gap);
	z-index: 60;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--keel-ink);
	-webkit-font-smoothing: antialiased;
	line-height: 1.4;
	text-align: left;
}
.keel[hidden] { display: none; }
.keel *, .keel *::before, .keel *::after { box-sizing: border-box; }

/* Collapsed mark: a quiet studio credit. */
.keel-toggle {
	display: inline-flex; align-items: center; gap: 9px;
	height: 44px; padding: 0 17px; margin: 0;
	border: 1px solid var(--keel-line); border-radius: 999px;
	background: var(--keel-paper); color: var(--keel-ink);
	box-shadow: 0 6px 18px rgba(10, 10, 11, .14);
	font: 600 17px/1 "Keel Inter Tight", "Inter Tight", Inter, sans-serif; letter-spacing: -.04em;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: box-shadow .2s ease, transform .2s ease;
}
.keel-toggle:hover { box-shadow: 0 8px 22px rgba(10, 10, 11, .2); }
.keel-toggle:focus { outline: none; }
.keel-toggle:focus-visible { outline: 2px solid var(--keel-violet); outline-offset: 3px; }
.keel-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--keel-violet); box-shadow: 0 0 0 3px var(--keel-paper), 0 0 0 4px rgba(10, 10, 11, .2); }
.keel-word { white-space: nowrap; }
.keel-word b { color: var(--keel-violet); font-weight: inherit; }
.keel-toggle .keel-by { font: 400 10px/1 "Keel JetBrains Mono", "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--keel-mono-c); margin-top: 1px; }
[data-theme="dark"] .keel-toggle { border-color: rgba(250, 250, 249, .18); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }

/* The card. Opens upward, clear of the WhatsApp button (bottom 22px + 56px). */
.keel-card {
	position: absolute; left: 0; bottom: 66px;
	width: min(320px, calc(100vw - 2 * var(--keel-gap)));
	max-height: calc(100vh - 140px); overflow: auto;
	padding: 22px 22px 20px;
	background: var(--keel-paper);
	background-image: radial-gradient(rgba(10, 10, 11, .07) 1px, transparent 1px);
	background-size: 16px 16px;
	border: 1px solid var(--keel-line); border-radius: 24px;
	box-shadow: 0 24px 60px rgba(10, 10, 11, .22), 0 2px 8px rgba(10, 10, 11, .08);
	opacity: 1; transform: none; transform-origin: 0 100%;
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.keel-card[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(8px) scale(.98); pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility 0s .15s; }
[data-theme="dark"] .keel-card { border-color: rgba(250, 250, 249, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }

.keel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.keel-logo { display: flex; align-items: center; gap: 10px; }
.keel-logo .keel-dot { width: 16px; height: 16px; }
.keel-logo .keel-name { font: 600 24px/1 "Keel Inter Tight", "Inter Tight", Inter, sans-serif; letter-spacing: -.05em; }
.keel-mono { font: 400 11px/1.3 "Keel JetBrains Mono", "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--keel-mono-c); }
.keel-close { flex: none; width: 36px; height: 36px; margin: -6px -8px -6px 0; border: 0; border-radius: 999px; background: transparent; color: var(--keel-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.keel-close:hover { background: rgba(10, 10, 11, .06); color: var(--keel-ink); }
.keel-close:focus { outline: none; }
.keel-close:focus-visible { outline: 2px solid var(--keel-violet); outline-offset: 1px; }
.keel-close svg { width: 16px; height: 16px; }

.keel-title { margin: 20px 0 6px; text-wrap: balance; font: 600 21px/1.15 "Keel Inter Tight", "Inter Tight", Inter, sans-serif; letter-spacing: -.035em; color: var(--keel-ink); }
.keel-title b { color: var(--keel-violet); font-weight: inherit; }
.keel-desc { margin: 0 0 16px; font-size: 14px; color: var(--keel-muted); }

.keel-rows { margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--keel-line); }
.keel-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--keel-line); font-size: 14px; }
.keel-rows a { color: var(--keel-ink); text-decoration: underline; text-decoration-color: rgba(110, 86, 207, .45); text-underline-offset: 3px; overflow-wrap: anywhere; }
.keel-rows a:hover { color: var(--keel-violet); }
.keel-rows a:focus-visible { outline: 2px solid var(--keel-violet); outline-offset: 2px; border-radius: 4px; }

.keel-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--keel-ink); color: var(--keel-paper); font: 500 15px/1 Inter, system-ui, sans-serif; text-decoration: none; transition: background-color .2s ease; }
.keel-cta:hover, .keel-cta:focus { background: #26262a; color: var(--keel-paper); }
.keel-cta:focus-visible { outline: 2px solid var(--keel-violet); outline-offset: 3px; }
.keel-cta svg { width: 16px; height: 16px; }
.keel-foot { margin: 12px 0 0; text-align: center; }

/* Room under the footer's legal line so neither floating button covers it at the bottom of the page. */
footer.site-footer { padding-bottom: 104px; }

@media (max-width: 480px) {
	.keel-toggle .keel-by { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.keel-toggle, .keel-card, .keel-card[hidden] { transition: none; }
}
@media print { .keel { display: none !important; } }
