/**
 *	== Modified by ao == (v1.7.0)
 *	Night worker Schedule - [attmgr_profile]
 *
 *	.attmgr_profile        container (container query "attmgrpf")
 *	  .attmgr_profile__inner   grid: 1 column / 2 columns at 600px+
 *	    .attmgr_profile__media   slideshow (+ thumbnails)
 *	    .attmgr_profile__body    head, table (dl), comment, buttons
 *
 *	Colors / ratio / photo width come from the settings screen as
 *	custom properties on .attmgr_profile (style attribute).
 *	Selectors start with .attmgr_profile so that theme rules such as
 *	".post_content img" / ".post_content a" do not win.
 */

.attmgr_profile {
	--attmgr-pf-main: #3b4675;
	--attmgr-pf-accent: #e8a9bc;
	--attmgr-pf-ratio: 3 / 4;
	--attmgr-pf-media: 42%;
	--attmgr-pf-ink: #3a3a44;
	--attmgr-pf-muted: #7a7a86;
	--attmgr-pf-line: #e6e2dc;
	--attmgr-pf-soft: #f7f6f9;
	--attmgr-pf-radius: 10px;
	--attmgr-pf-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--attmgr-pf-speed: 900ms;

	container-type: inline-size;
	container-name: attmgrpf;
	display: block;
	width: 100%;
	margin: 0 0 2.5em;
	color: var(--attmgr-pf-ink);
	line-height: 1.8;
}
@supports (color: color-mix(in srgb, red 50%, white)) {
	.attmgr_profile {
		--attmgr-pf-soft: color-mix(in srgb, var(--attmgr-pf-main) 6%, #fff);
		--attmgr-pf-line: color-mix(in srgb, var(--attmgr-pf-main) 14%, #fff);
	}
}
.attmgr_profile *,
.attmgr_profile *::before,
.attmgr_profile *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
 *	Layout: stacked (SP) / 2 columns (block width 600px+)
 * ------------------------------------------------------------------ */
.attmgr_profile .attmgr_profile__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}
@container attmgrpf (min-width: 600px) {
	.attmgr_profile .attmgr_profile__inner {
		grid-template-columns: var(--attmgr-pf-media) minmax(0, 1fr);
		gap: clamp(22px, 4cqi, 40px);
	}
}
/* browsers without container queries: decide by the screen width */
@supports not (container-type: inline-size) {
	@media screen and (min-width: 768px) {
		.attmgr_profile .attmgr_profile__inner {
			grid-template-columns: var(--attmgr-pf-media) minmax(0, 1fr);
			gap: 32px;
		}
	}
}
.attmgr_profile .attmgr_profile__media,
.attmgr_profile .attmgr_profile__body {
	min-width: 0;
}

/* ------------------------------------------------------------------
 *	Slideshow
 * ------------------------------------------------------------------ */
.attmgr_profile .attmgr_pf_slider {
	position: relative;
	width: 100%;
	aspect-ratio: var(--attmgr-pf-ratio);
	overflow: hidden;
	border-radius: var(--attmgr-pf-radius);
	background: var(--attmgr-pf-soft);
	outline: none;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.attmgr_profile .attmgr_pf_slider:focus-visible {
	box-shadow: 0 0 0 3px var(--attmgr-pf-accent);
}
/* soft shade at the bottom so the dots stay visible on white clothes */
.attmgr_profile .attmgr_pf_slider:not(.is-single)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 22%;
	background: linear-gradient(to top, rgba(20, 22, 35, 0.32), rgba(20, 22, 35, 0));
	pointer-events: none;
	z-index: 2;
}
.attmgr_profile .attmgr_pf_slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}
.attmgr_profile .attmgr_pf_slide {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	height: 100%;
}
.attmgr_profile .attmgr_pf_slide img,
.attmgr_profile .attmgr_pf_slider img.attmgr_pf_img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center top;
	border-radius: 0 !important;
	box-shadow: none !important;
	-webkit-user-drag: none;
	pointer-events: none;
}

/* before the script runs (or without JS): photo 1 only */
.attmgr_profile .attmgr_pf_slider:not(.is-ready) .attmgr_pf_slide:not(:first-child) {
	display: none;
}

/* fade: slides stacked, the active one on top */
.attmgr_profile .attmgr_pf_slider.is-fade.is-ready .attmgr_pf_slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 0;
	transition: opacity var(--attmgr-pf-speed) ease;
}
.attmgr_profile .attmgr_pf_slider.is-fade.is-ready .attmgr_pf_slide.is-active {
	opacity: 1;
	z-index: 1;
}
/* the photo being replaced stays visible underneath (no flash of background) */
.attmgr_profile .attmgr_pf_slider.is-fade.is-ready .attmgr_pf_slide.is-leaving {
	opacity: 1;
	z-index: 0;
	transition: none;
}

/* slide: a horizontal strip */
.attmgr_profile .attmgr_pf_slider.is-slide.is-ready .attmgr_pf_slider__track {
	display: flex;
	transition: transform 520ms var(--attmgr-pf-ease);
	will-change: transform;
}
.attmgr_profile .attmgr_pf_slider.is-slide.is-ready .attmgr_pf_slide {
	flex: 0 0 100%;
}
.attmgr_profile .attmgr_pf_slider.is-slide.is-dragging .attmgr_pf_slider__track {
	transition: none;
}

/* arrows */
.attmgr_profile .attmgr_pf_slider__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(20, 22, 35, 0.42) !important;
	color: #fff !important;
	cursor: pointer;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	box-shadow: none !important;
	line-height: 1;
	transition: background 0.25s ease, opacity 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.attmgr_profile .attmgr_pf_slider.is-ready .attmgr_pf_slider__nav {
	display: flex;
}
.attmgr_profile .attmgr_pf_slider__nav:hover,
.attmgr_profile .attmgr_pf_slider__nav:focus-visible {
	background: rgba(20, 22, 35, 0.72) !important;
}
.attmgr_profile .attmgr_pf_slider__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.attmgr_profile .attmgr_pf_slider__nav.is-prev { left: 10px; }
.attmgr_profile .attmgr_pf_slider__nav.is-next { right: 10px; }
.attmgr_profile .attmgr_pf_slider__nav svg {
	display: block;
	width: 20px;
	height: 20px;
}
/* PC with a mouse: arrows appear on hover */
@media (hover: hover) and (pointer: fine) {
	.attmgr_profile .attmgr_pf_slider.is-ready .attmgr_pf_slider__nav {
		opacity: 0;
	}
	.attmgr_profile .attmgr_pf_slider.is-ready:hover .attmgr_pf_slider__nav,
	.attmgr_profile .attmgr_pf_slider.is-ready:focus-within .attmgr_pf_slider__nav {
		opacity: 1;
	}
}

/* dots */
.attmgr_profile .attmgr_pf_slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 4;
	display: none;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 12px;
	line-height: 0;
}
.attmgr_profile .attmgr_pf_slider.is-ready .attmgr_pf_slider__dots {
	display: flex;
}
.attmgr_profile .attmgr_pf_slider__dot {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: rgba(255, 255, 255, 0.72) !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: width 0.3s var(--attmgr-pf-ease), background 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}
.attmgr_profile .attmgr_pf_slider__dot.is-active {
	width: 22px;
	background: var(--attmgr-pf-accent) !important;
}
.attmgr_profile .attmgr_pf_slider__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* rank / number badges over the photo */
.attmgr_profile .attmgr_pf_slider .attmgr_badge_stack,
.attmgr_profile .attmgr_pf_slider .attmgr_badge_ribbon_wrap {
	z-index: 5;
}

/* thumbnails */
.attmgr_profile .attmgr_pf_thumbs {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.attmgr_profile .attmgr_pf_thumbs::-webkit-scrollbar {
	display: none;
}
.attmgr_profile .attmgr_pf_thumbs__item {
	flex: 0 0 calc((100% - 30px) / 6);
	min-width: 44px;
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	overflow: hidden;
	background: var(--attmgr-pf-soft) !important;
	cursor: pointer;
	opacity: 0.55;
	box-shadow: none !important;
	transition: opacity 0.25s ease, box-shadow 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.attmgr_profile .attmgr_pf_thumbs__item:hover {
	opacity: 0.85;
}
.attmgr_profile .attmgr_pf_thumbs__item {
	position: relative;
}
.attmgr_profile .attmgr_pf_thumbs__item::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	pointer-events: none;
	transition: border-color 0.25s ease;
}
.attmgr_profile .attmgr_pf_thumbs__item.is-active {
	opacity: 1;
}
.attmgr_profile .attmgr_pf_thumbs__item.is-active::after {
	border-color: var(--attmgr-pf-main);
}
.attmgr_profile .attmgr_pf_thumbs__item:focus-visible {
	outline: 2px solid var(--attmgr-pf-main);
	outline-offset: 2px;
}
.attmgr_profile .attmgr_pf_thumbs__item img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center top;
	border-radius: 0 !important;
	pointer-events: none;
}

/* ------------------------------------------------------------------
 *	Head: eyebrow / name / reading / catch copy
 * ------------------------------------------------------------------ */
.attmgr_profile .attmgr_profile__head {
	position: relative;
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--attmgr-pf-line);
}
.attmgr_profile .attmgr_profile__head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 48px;
	height: 2px;
	background: var(--attmgr-pf-accent);
}
.attmgr_profile .attmgr_profile__eyebrow {
	display: block;
	margin: 0 0 6px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.38em;
	line-height: 1.4;
	color: var(--attmgr-pf-main);
	opacity: 0.75;
}
.attmgr_profile .attmgr_profile__name {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2em 0.7em;
	margin: 0;
	font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.35;
	color: var(--attmgr-pf-main);
}
.attmgr_profile .attmgr_profile__reading {
	font-size: 0.5em;
	font-weight: 400;
	letter-spacing: 0.22em;
	color: var(--attmgr-pf-muted);
}
.attmgr_profile .attmgr_profile__catch {
	margin: 8px 0 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--attmgr-pf-ink);
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------
 *	Profile table (dl = no theme table styles)
 * ------------------------------------------------------------------ */
.attmgr_profile .attmgr_profile__table {
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--attmgr-pf-line);
	border-radius: 6px;
	overflow: hidden;
	font-size: 0.92rem;
	background: #fff;
}
.attmgr_profile .attmgr_profile__row {
	display: grid;
	grid-template-columns: minmax(6.5em, 34%) minmax(0, 1fr);
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--attmgr-pf-line);
}
.attmgr_profile .attmgr_profile__row:first-child {
	border-top: 0;
}
.attmgr_profile .attmgr_profile__row dt,
.attmgr_profile .attmgr_profile__row dd {
	display: block;
	margin: 0 !important;
	padding: 10px 14px !important;
	line-height: 1.6;
	border: 0 !important;
	background: none;
	overflow-wrap: anywhere;
}
.attmgr_profile .attmgr_profile__row dt {
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--attmgr-pf-main);
	background: var(--attmgr-pf-soft);
	border-right: 1px solid var(--attmgr-pf-line) !important;
}
.attmgr_profile .attmgr_profile__row dt::before,
.attmgr_profile .attmgr_profile__row dt::after {
	content: none !important;	/* theme decorations for dt */
}
.attmgr_profile .attmgr_profile__row dd {
	color: var(--attmgr-pf-ink);
	letter-spacing: 0.03em;
}

/* ------------------------------------------------------------------
 *	Comment
 * ------------------------------------------------------------------ */
.attmgr_profile .attmgr_profile__comment {
	margin: 18px 0 0;
	font-size: 0.92rem;
	line-height: 1.95;
	letter-spacing: 0.03em;
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------
 *	Buttons
 * ------------------------------------------------------------------ */
.attmgr_profile .attmgr_profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
}
.attmgr_profile a.attmgr_profile__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	flex: 1 1 160px;
	min-height: 48px;
	padding: 0.75em 1.2em;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-align: center;
	text-decoration: none !important;
	box-shadow: none;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--attmgr-pf-ease), box-shadow 0.25s ease;
}
.attmgr_profile a.attmgr_profile__link.is-primary {
	background: var(--attmgr-pf-main);
	border: 1px solid var(--attmgr-pf-main);
	color: #fff !important;
}
.attmgr_profile a.attmgr_profile__link.is-secondary {
	background: #fff;
	border: 1px solid var(--attmgr-pf-accent);
	color: var(--attmgr-pf-main) !important;
}
@media (hover: hover) {
	.attmgr_profile a.attmgr_profile__link:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 18px rgba(20, 22, 35, 0.12);
	}
	.attmgr_profile a.attmgr_profile__link.is-secondary:hover {
		background: var(--attmgr-pf-soft);
	}
}
.attmgr_profile a.attmgr_profile__link:focus-visible {
	outline: 2px solid var(--attmgr-pf-main);
	outline-offset: 3px;
}
.attmgr_profile .attmgr_profile__arrow {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------------
 *	Small screens
 * ------------------------------------------------------------------ */
@container attmgrpf (max-width: 599px) {
	.attmgr_profile .attmgr_pf_slider__nav {
		width: 36px;
		height: 36px;
		margin-top: -18px !important;
	}
	.attmgr_profile .attmgr_pf_slider__nav.is-prev { left: 8px; }
	.attmgr_profile .attmgr_pf_slider__nav.is-next { right: 8px; }
	.attmgr_profile .attmgr_profile__row dt,
	.attmgr_profile .attmgr_profile__row dd {
		padding: 9px 12px !important;
	}
}

/* no animation for people who asked for less motion */
@media (prefers-reduced-motion: reduce) {
	.attmgr_profile {
		--attmgr-pf-speed: 1ms;
	}
	.attmgr_profile .attmgr_pf_slider.is-slide.is-ready .attmgr_pf_slider__track,
	.attmgr_profile a.attmgr_profile__link,
	.attmgr_profile .attmgr_pf_slider__dot {
		transition: none;
	}
}

/* notice for editors when no cast was found */
.attmgr_profile_notice {
	padding: 10px 14px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	font-size: 0.9em;
}
