/* Favr Content. Accent: --favr-brand (per widget), then the theme's primary colour. */
.favr-docs .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.favr-docs, .favr-people, .favr-sponsors {
	--favr-c-accent: var(--favr-brand, var(--e-global-color-primary, var(--wp--preset--color--primary, #1d4ed8)));
	--favr-c-line: color-mix(in srgb, currentColor 14%, transparent);
	--favr-c-soft: color-mix(in srgb, currentColor 6%, transparent);
	--favr-c-muted: color-mix(in srgb, currentColor 65%, transparent);
	--favr-c-radius: 10px;
	container-type: inline-size;
}
.favr-content-hint { padding: 12px 14px; border: 1px dashed #c3c4c7; border-radius: 8px; color: #50575e; font-size: 14px; }
.favr-docs [hidden], .favr-people [hidden], .favr-sponsors [hidden] { display: none !important; }

.favr-docs__title { margin: 0 0 16px; }
.favr-docs__tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.favr-docs__search { flex: 1 1 220px; }
.favr-docs__search input, .favr-docs__filter select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--favr-c-line); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
.favr-docs__search input:focus-visible, .favr-docs__filter select:focus-visible { outline: 2px solid var(--favr-c-accent); outline-offset: 1px; }
.favr-docs__group + .favr-docs__group { margin-top: 28px; }
.favr-docs__heading { margin: 0 0 8px; font-size: 1.15em; }
.favr-docs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--favr-c-line); }
.favr-doc { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--favr-c-line); }
.favr-doc__badge { flex: none; min-width: 52px; padding: 4px 6px; border-radius: 6px; background: var(--favr-c-soft); color: var(--favr-c-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-align: center; text-transform: uppercase; }
.favr-doc__body { flex: 1; min-width: 0; }
.favr-doc__title { font-weight: 600; overflow-wrap: anywhere; }
a.favr-doc__title { color: var(--favr-c-accent); text-decoration: none; }
a.favr-doc__title:hover, a.favr-doc__title:focus { text-decoration: underline; }
.favr-doc__desc { margin: 4px 0 0; }
.favr-doc__meta { margin: 4px 0 0; color: var(--favr-c-muted); font-size: 0.875em; }
.favr-doc__lock { margin-left: 8px; padding: 1px 8px; border: 1px solid var(--favr-c-line); border-radius: 999px; font-size: 0.9em; white-space: nowrap; }
.favr-docs__login { margin: 16px 0 0; color: var(--favr-c-muted); }
.favr-docs__login a { color: var(--favr-c-accent); }
.favr-docs__none { margin: 16px 0 0; color: var(--favr-c-muted); }
@container (max-width: 420px) {
	.favr-doc { gap: 10px; }
	.favr-doc__badge { min-width: 44px; }
}

/* People. The wrapper is the size container; the list inside it is the grid. */
.favr-people__title { margin: 0 0 16px; }
.favr-people__list { list-style: none; margin: 0; padding: 0; }
.favr-people--cards .favr-people__list { display: grid; gap: 24px; grid-template-columns: repeat(var(--favr-people-cols, 4), minmax(0, 1fr)); }
.favr-person { min-width: 0; }
.favr-people--cards .favr-person { text-align: center; }
.favr-person__photo { aspect-ratio: 1; overflow: hidden; border-radius: var(--favr-c-radius); background: var(--favr-c-soft); display: grid; place-items: center; }
.favr-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.favr-person__initials { color: var(--favr-c-accent); font-size: 40px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; }
.favr-person__name { margin: 12px 0 0; font-size: 1.05em; overflow-wrap: anywhere; }
.favr-person__role { margin: 2px 0 0; color: var(--favr-c-accent); font-weight: 600; }
.favr-person__org { margin: 2px 0 0; color: var(--favr-c-muted); }
.favr-person__contact { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.9em; }
.favr-person__contact a { color: inherit; overflow-wrap: anywhere; }
.favr-people .favr-person__more { margin: 10px 0 0; padding: 6px 14px; border: 1px solid var(--favr-c-line); border-radius: 999px; box-shadow: none; background: transparent; color: var(--favr-c-accent); font: inherit; font-size: 0.9em; line-height: 1.4; text-transform: none; cursor: pointer; }
.favr-people .favr-person__more:hover, .favr-people .favr-person__more:focus-visible { border-color: var(--favr-c-accent); background: transparent; color: var(--favr-c-accent); }
.favr-person__bio { margin-top: 10px; text-align: left; }
.favr-person__bio-text { margin-top: 10px; }
.favr-person__bio-text p:last-child { margin-bottom: 0; }
.favr-person-dialog { width: min(560px, 92vw); max-height: 86vh; padding: 24px; border: 0; border-radius: 12px; color: #1d2327; background: #fff; text-align: left; }
.favr-person-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.favr-person-dialog h3 { margin: 0 0 12px; }
.favr-people .favr-person-dialog__close { margin-top: 16px; padding: 8px 16px; border: 1px solid #c3c4c7; border-radius: 6px; box-shadow: none; background: #fff; color: #1d2327; font: inherit; text-transform: none; cursor: pointer; }
.favr-people .favr-person-dialog__close:hover, .favr-people .favr-person-dialog__close:focus-visible { border-color: #1d2327; background: #fff; color: #1d2327; }
.favr-people--list .favr-person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--favr-c-line); }
.favr-people--list .favr-person__name { margin-top: 0; }
@container (max-width: 900px) { .favr-people--cards .favr-people__list { grid-template-columns: repeat(min(3, var(--favr-people-cols, 4)), minmax(0, 1fr)); } }
@container (max-width: 640px) { .favr-people--cards .favr-people__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .favr-people--list .favr-person { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }
@container (max-width: 340px) { .favr-people--cards .favr-people__list { grid-template-columns: minmax(0, 1fr); } }

/* Sponsors. The wrapper is the size container; each grid inside it is a wrapping row of logos. */
.favr-sponsors .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.favr-sponsors__title { margin: 0 0 16px; text-align: center; }
.favr-sponsors__level + .favr-sponsors__level { margin-top: 36px; }
.favr-sponsors__heading { margin: 0 0 16px; text-align: center; font-size: 1.1em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--favr-c-muted); }
.favr-sponsors__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 40px; }
.favr-sponsors--levels .favr-sponsors__grid { align-items: flex-start; }
.favr-sponsor { --favr-sponsor-w: 140px; flex: 0 1 var(--favr-sponsor-w); min-width: 0; text-align: center; }
.is-large .favr-sponsor { --favr-sponsor-w: 260px; }
.is-medium .favr-sponsor { --favr-sponsor-w: 190px; }
.favr-sponsors--row .favr-sponsor { --favr-sponsor-w: 130px; }
.favr-sponsor a { display: block; color: inherit; text-decoration: none; }
.favr-sponsor img { display: block; width: 100%; height: auto; max-height: calc(var(--favr-sponsor-w) * 0.6); object-fit: contain; margin: 0 auto; }
.favr-sponsor__name-tile { display: grid; place-items: center; min-height: calc(var(--favr-sponsor-w) * 0.45); padding: 10px 12px; border: 1px solid var(--favr-c-line); border-radius: var(--favr-c-radius); font-weight: 600; overflow-wrap: anywhere; }
.favr-sponsor a:hover .favr-sponsor__name-tile, .favr-sponsor a:focus-visible .favr-sponsor__name-tile { border-color: var(--favr-c-accent); color: var(--favr-c-accent); }
.favr-sponsor__name { margin: 10px 0 0; font-weight: 600; }
.favr-sponsor__desc { margin: 4px 0 0; color: var(--favr-c-muted); font-size: 0.9em; }
@container (max-width: 520px) {
	.favr-sponsors__grid { gap: 20px 24px; }
	.is-large .favr-sponsor { --favr-sponsor-w: 200px; }
	.is-medium .favr-sponsor { --favr-sponsor-w: 150px; }
	.favr-sponsor { --favr-sponsor-w: 120px; }
}
