/* New Life CNY This Sunday: a black card in the theme's black / white / orange style,
   sitting under the Latest Message. Uses the theme's tokens, with fallbacks. */
.nlts {
	--nlts-ink: var(--nl-ink, #0B0B0C);
	--nlts-accent: var(--nl-accent, #E0661F);
	--nlts-orange: var(--nl-orange, #F5843F);
	--nlts-font: var(--font, "Archivo", system-ui, sans-serif);
	--nlts-stretch: var(--display-stretch, 125%);
	--nlts-rule: rgba(255, 255, 255, .14);
	--nlts-soft: rgba(255, 255, 255, .68);
	font-family: var(--nlts-font);
}
.nlts-section { padding-top: 0; margin-top: calc(-1 * var(--section, 96px) + clamp(24px, 3vw, 40px)); }

/* Liturgical colors. --lit is the true color (swatches, band); --lit-ui reads as text on black. */
.nlts--violet { --lit: #7A52C7; --lit-ui: #B79BEB; }
.nlts--green  { --lit: #2FA352; --lit-ui: #6FD08A; }
.nlts--red    { --lit: #D23A2C; --lit-ui: #FF7A6B; }
.nlts--black  { --lit: #4A4E58; --lit-ui: #C9CCD3; }
.nlts--white  { --lit: #FFFFFF; --lit-ui: #FFFFFF; }
.nlts--rose   { --lit: #D17A9B; --lit-ui: #F0A7C2; }

.nlts-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	background: var(--nlts-ink);
	color: #fff;
	border-radius: 22px;
	overflow: hidden;
}
/* The color of the day, as a band along the top of the card */
.nlts-card::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--lit); z-index: 1;
}
.nlts-card p { margin: 0; }
.nlts-card .eyebrow { color: var(--nlts-orange); margin-bottom: .8rem; }
.nlts-card a { color: inherit; }

.nlts-head, .nlts-main, .nlts-next, .nlts-office { padding: clamp(28px, 4.5vw, 60px); min-width: 0; }
.nlts-head { padding-right: clamp(20px, 3vw, 40px); }
.nlts-main { padding-left: clamp(20px, 3vw, 40px); }

/* This Sunday */
.nlts-title {
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	text-wrap: balance;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 22px;
}
.nlts-color {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .95rem; font-weight: 600; color: var(--nlts-soft);
}
.nlts-swatch {
	width: 16px; height: 16px; border-radius: 999px; flex-shrink: 0;
	background: var(--lit); box-shadow: 0 0 0 2px var(--nlts-ink), 0 0 0 3px rgba(255, 255, 255, .45);
}
.nlts-more { margin-top: 30px; }

/* The Lessons */
.nlts-readings { margin: 0; display: grid; }
.nlts-row {
	display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 14px; align-items: baseline;
	padding: 12px 0; border-bottom: 1px solid var(--nlts-rule);
}
.nlts-row:first-child { padding-top: 0; }
.nlts-readings dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nlts-soft); }
.nlts-readings dd {
	margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 800; font-stretch: 112%; line-height: 1.25;
}
.nlts-readings a, .nlts-line a, .nlts-off a {
	color: #fff; text-decoration: none; white-space: nowrap;
	background-image: linear-gradient(var(--nlts-orange), var(--nlts-orange));
	background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
	transition: background-size .2s ease, color .2s;
}
.nlts-readings a:hover, .nlts-readings a:focus-visible,
.nlts-line a:hover, .nlts-line a:focus-visible,
.nlts-off a:hover, .nlts-off a:focus-visible { background-size: 100% 2px; color: var(--nlts-orange); }
.nlts-sep { color: var(--nlts-soft); }

.nlts-collect-label { margin-top: 30px !important; }
.nlts-collect {
	margin: 0; padding: 0 0 0 20px;
	border-left: 4px solid var(--nlts-accent);
	font-size: 1.05rem; line-height: 1.6; font-style: italic; color: rgba(255, 255, 255, .9);
}
.nlts-collect p { margin: 0; }

/* Lower band: Next Sunday + Daily Office */
.nlts-next, .nlts-office { background: #17171A; border-top: 1px solid var(--nlts-rule); }
.nlts-next { position: relative; padding-right: clamp(20px, 3vw, 40px); }
.nlts-next::before { content: ""; position: absolute; left: 0; top: -1px; width: 64px; height: 4px; background: var(--lit); }
.nlts-office { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--nlts-rule); }

.nlts-next-title {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; color: #fff; margin: 0 0 14px;
}
.nlts-color--change { margin-bottom: 16px !important; color: var(--lit-ui); }
.nlts-line { font-size: 1.05rem; font-weight: 700; line-height: 1.7; }
.nlts-line-item { white-space: nowrap; }
.nlts-dot { color: var(--nlts-orange); font-weight: 400; }
.nlts-source { margin-top: 24px !important; font-size: .85rem; color: var(--nlts-soft); }
.nlts-source a { color: var(--nlts-orange); }
.nlts-source a:hover { color: #fff; }

/* Daily Office this week */
.nlts-office-sub { font-size: .88rem; color: var(--nlts-soft); margin: -4px 0 14px !important; }
.nlts-days { border-top: 1px solid var(--nlts-rule); }
.nlts-day { border-bottom: 1px solid var(--nlts-rule); }
.nlts-day summary {
	list-style: none; cursor: pointer; padding: 11px 0;
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px;
	font-size: .95rem;
}
.nlts-day summary::-webkit-details-marker { display: none; }
.nlts-day summary:hover .nlts-ddate { color: var(--nlts-orange); }
.nlts-dname {
	font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--nlts-orange); min-width: 2.8em;
}
.nlts-ddate { font-weight: 700; transition: color .2s; }
.nlts-feast { font-size: .82rem; color: var(--nlts-soft); font-style: italic; }
.nlts-todaytag {
	display: none; align-self: center;
	font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	color: #fff; background: var(--nlts-accent); border-radius: 999px; padding: 2px 9px;
}
.nlts-day.is-today .nlts-todaytag { display: inline-block; }
.nlts-toggle { margin-left: auto; align-self: center; position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.nlts-toggle::before, .nlts-toggle::after {
	content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: var(--nlts-orange); transition: transform .2s;
}
.nlts-toggle::after { transform: rotate(90deg); }
.nlts-day[open] .nlts-toggle::after { transform: rotate(0deg); }
.nlts-day-body { padding: 0 0 14px; }
.nlts-off { font-size: .92rem; line-height: 1.6; margin: 0 0 6px !important; }
.nlts-off:last-child { margin-bottom: 0 !important; }
.nlts-offname {
	display: inline-block; min-width: 5.4em;
	font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nlts-soft);
}
.nlts-office-pray { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.nlts-pray-label {
	flex-basis: 100%;
	font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nlts-soft);
}
.nlts .btn .icon { display: inline-flex; width: 1em; height: 1em; }
.nlts .btn .icon svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
	.nlts-card { grid-template-columns: 1fr; }
	.nlts-head, .nlts-main, .nlts-next, .nlts-office { padding: 32px clamp(22px, 5vw, 40px); }
	.nlts-head { padding-bottom: 8px; }
	.nlts-main { padding-top: 24px; }
	.nlts-office { border-left: 0; }
}
@media (max-width: 560px) {
	.nlts-row { grid-template-columns: 1fr; gap: 2px; }
	.nlts-readings a, .nlts-line-item { white-space: normal; }
	.nlts-offname { display: block; }
	.nlts-office-pray .btn { width: 100%; }
}
