/* MSD Site Credit 1.1.0 — the credit line (light DOM). The card itself lives in a shadow root (msd-site-credit.js). */

@font-face {
	font-family: "MSDC Playfair";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/playfair-display-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "MSDC Playfair";
	font-style: italic;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/playfair-display-latin-600-italic.woff2") format("woff2");
}
@font-face {
	font-family: "MSDC Jakarta";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "MSDC Jakarta";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}

.msdc-credit {
	--msdc-fg: currentColor;
	--msdc-fg-strong: currentColor;
	--msdc-rule: transparent;
	--msdc-ring: #e8694a;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.01em;
}
.msdc-credit *,
.msdc-credit *::before,
.msdc-credit *::after {
	box-sizing: border-box;
}

/* Strip under the footer: borrows the footer's ground (set by JS), hairline on top. */
.msdc-credit--strip {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 0 16px max(4px, env(safe-area-inset-bottom));
	background: var(--msdc-bg, #1f2b33);
	border-top: 1px solid var(--msdc-rule);
	color: var(--msdc-fg);
}
.msdc-credit--strip:not(.is-ready) {
	--msdc-fg: rgba(255, 255, 255, 0.66);
	--msdc-fg-strong: #fff;
	--msdc-rule: rgba(255, 255, 255, 0.1);
}
.msdc-credit--left { justify-content: flex-start; }
.msdc-credit--right { justify-content: flex-end; }
.msdc-credit--inline { display: inline-flex; font-size: inherit; }
.msdc-credit--preview {
	--msdc-bg: transparent;
	--msdc-fg: rgba(255, 255, 255, 0.66);
	--msdc-fg-strong: #fff;
	--msdc-rule: transparent;
}

.msdc-credit.is-tone-dark {
	--msdc-fg: rgba(255, 255, 255, 0.64);
	--msdc-fg-strong: #ffffff;
	--msdc-rule: rgba(255, 255, 255, 0.09);
}
.msdc-credit.is-tone-light {
	--msdc-fg: rgba(20, 24, 28, 0.64);
	--msdc-fg-strong: #14181c;
	--msdc-rule: rgba(20, 24, 28, 0.1);
}

.msdc-credit .msdc-credit__link {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 48px;
	padding: 0 6px;
	color: var(--msdc-fg) !important;
	font: inherit;
	font-size: inherit;
	letter-spacing: inherit;
	text-decoration: none !important;
	cursor: pointer;
	border-radius: 4px;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease;
}
.msdc-credit .msdc-credit__link:hover,
.msdc-credit .msdc-credit__link[aria-expanded="true"] {
	color: var(--msdc-fg-strong) !important;
}
.msdc-credit .msdc-credit__link:focus-visible {
	outline: 2px solid var(--msdc-ring);
	outline-offset: -6px;
}

.msdc-credit .msdc-credit__name {
	font-family: "MSDC Playfair", "Playfair Display", Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 600;
	font-size: 1.12em;
	letter-spacing: 0;
	color: var(--msdc-fg-strong);
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.35s ease;
}
.msdc-credit .msdc-credit__link:hover .msdc-credit__name,
.msdc-credit .msdc-credit__link:focus-visible .msdc-credit__name {
	background-size: 100% 1px;
}

.msdc-credit .msdc-credit__sign {
	flex: 0 0 auto;
	display: block;
	width: 18px;
	height: 18px;
	overflow: visible;
}
.msdc-credit .msdc-credit__board {
	transform-origin: 13px 4px;
	transform-box: view-box;
}
.msdc-credit .msdc-credit__link:hover .msdc-credit__board,
.msdc-credit .msdc-credit__link:focus-visible .msdc-credit__board {
	animation: msdc-sway 1.6s ease-in-out 1;
}
@keyframes msdc-sway {
	0% { transform: rotate(0); }
	25% { transform: rotate(7deg); }
	50% { transform: rotate(-5deg); }
	75% { transform: rotate(2deg); }
	100% { transform: rotate(0); }
}

.msdc-credit .msdc-credit__caret {
	flex: 0 0 auto;
	display: none;
	width: 10px;
	height: 10px;
	opacity: 0.7;
	transition: transform 0.25s ease;
}
.msdc-credit.is-ready .msdc-credit__caret { display: block; }
.msdc-credit .msdc-credit__link[aria-expanded="true"] .msdc-credit__caret { transform: rotate(180deg); }

/* Member offer badge on the credit line */
.msdc-credit .msdc-credit__perk {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 6px;
	padding: 4px 9px 4px 7px;
	border: 1px solid rgba(232, 194, 90, 0.42);
	border-radius: 999px;
	color: #e8c25a;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.msdc-credit.is-tone-light .msdc-credit__perk {
	color: #7a5810;
	border-color: rgba(122, 88, 16, 0.35);
}
.msdc-credit .msdc-credit__star {
	flex: 0 0 auto;
	display: block;
	width: 12px;
	height: 12px;
	overflow: visible;
}
.msdc-credit.is-twinkle .msdc-credit__star,
.msdc-credit .msdc-credit__link:hover .msdc-credit__star,
.msdc-credit .msdc-credit__link:focus-visible .msdc-credit__star {
	animation: msdc-twinkle 1.3s ease-in-out 0.2s 2;
}
@keyframes msdc-twinkle {
	0%, 100% { transform: scale(1) rotate(0); filter: none; }
	40% { transform: scale(1.35) rotate(22deg); filter: drop-shadow(0 0 4px rgba(232, 194, 90, 0.85)); }
	70% { transform: scale(0.95) rotate(-6deg); }
}
@media (max-width: 420px) {
	.msdc-credit .msdc-credit__perk { padding: 4px 6px; }
	.msdc-credit .msdc-credit__perk-text { display: none; }
}

.msdc-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
	.msdc-credit .msdc-credit__link:hover .msdc-credit__board,
	.msdc-credit .msdc-credit__link:focus-visible .msdc-credit__board,
	.msdc-credit.is-twinkle .msdc-credit__star,
	.msdc-credit .msdc-credit__link:hover .msdc-credit__star,
	.msdc-credit .msdc-credit__link:focus-visible .msdc-credit__star { animation: none; }
	.msdc-credit .msdc-credit__name,
	.msdc-credit .msdc-credit__caret { transition: none; }
}

@media print {
	.msdc-credit--strip { display: none !important; }
}
