/*
 * Homepage / weekly view (front page and /schedule/). Ported from design/scshiur-mockup.html.
 * Contrast per phase-1-plan.md §C.1: small gold text uses --gold-text; --gold only for the decorative cup.
 */

.site-main--home {
	max-width: none;
	padding: 0 0 80px;
}

.preview-banner {
	margin: 0;
	padding: 8px var(--gutter);
	background: var(--gold-soft);
	color: var(--navy-deep);              /* 12.01:1 */
	font-weight: 600;
	text-align: center;
}

/* ---------- Hero ---------- */
.hero {
	background: var(--navy);
	color: var(--paper-raised);           /* 11.26:1 */
	padding: 36px 0 42px;
	border-bottom: 5px solid var(--gold); /* warm accent line (decorative) */
}

.hero .date-line {
	color: #C9D2D8;                       /* 7.73:1 on navy */
	font-size: 0.92rem;
	margin-bottom: 8px;
}

.hero h1 {
	font-size: 1.65rem;
	font-weight: 500;
	max-width: 560px;
	line-height: 1.25;
	margin-bottom: 14px;
}

.hero-notice {
	color: #D3DAE0;                       /* 8.40:1 on navy */
	max-width: 520px;
	font-size: 0.96rem;
}

/* ---------- Content ---------- */
.home-content {
	padding-top: 44px;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 500;
	margin-bottom: 22px;
}

.section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 8px;
	background: var(--gold);              /* decorative accent */
	border-radius: 2px;
}

.schedule-card {
	list-style: none;
	background: var(--panel-warm);
	border: 1px solid var(--line);
	border-inline-start: 4px solid var(--gold); /* decorative accent */
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 40px;
}

.schedule-row {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 18px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--line);
	align-items: baseline;
}

.schedule-row:last-child {
	border-bottom: none;
}

.schedule-row.break {
	background: var(--tint-warm);         /* break text ink-soft 5.95:1 */
	align-items: center;
}

.schedule-time {
	font-family: var(--font-serif);
	font-weight: 500;
	color: var(--navy);                   /* 11.26:1 on paper-raised */
	font-size: 0.95rem;
}

.schedule-topic .speaker {
	font-weight: 600;
}

.schedule-topic .subject {
	color: var(--ink-soft);               /* 6.91:1 */
}

.schedule-topic .blurb {
	display: block;
	margin-top: 6px;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.schedule-row.break .schedule-time,
.schedule-row.break .schedule-topic {
	color: var(--ink-soft);               /* 5.95:1 on the break row (--tint-warm) */
	font-style: italic;
}

.schedule-row.break [lang="he"] {
	font-style: normal;
}

/* ---------- Zoom box (both kinds of week) ---------- */
.zoom-box {
	background: var(--paper-raised);
	border: 2px solid var(--navy);        /* 11.26:1: clearly visible, not colour-only */
	border-radius: var(--radius);
	padding: 20px 22px;
	margin-bottom: 40px;
}

.zoom-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--navy);
	margin-bottom: 12px;
}

.zoom-icon {
	flex: none;
}

.zoom-link-wrap {
	margin-bottom: 0;
}

.zoom-link.btn {
	white-space: normal;                  /* wraps at 320px / 200% zoom */
}

.zoom-newtab {
	font-weight: 400;
}

.zoom-note {
	margin: 12px 0 0;
	color: var(--ink);
	overflow-wrap: anywhere;              /* long meeting IDs never force sideways scrolling */
}

/* ---------- Dedications (always open; owner, 9 Oct 2026) ---------- */
.dedications {
	background: var(--tint-warm);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	margin-bottom: 44px;
	padding: 18px 22px 8px;
}

.dedications-title {
	font-size: 1.15rem;
	font-weight: 500;
	margin-bottom: 6px;
}

.dedication-list {
	list-style: none;
	padding: 0;
}

.dedication {
	padding: 12px 0;
	border-top: 1px solid #E5CF9F;           /* decorative divider on the tint */
	font-size: 0.95rem;
	color: var(--ink-soft);               /* 5.95:1 on --tint-warm */
}

/* ---------- The week's picture (optional; owner, 9 Oct 2026) ---------- */
.week-media {
	margin: 0 0 40px;
	background: var(--panel-warm);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px;
}

.week-media-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

.week-media figcaption {
	margin-top: 10px;
	color: var(--ink-soft);               /* 6.89:1 on --panel-warm */
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.dedication .name {
	color: var(--ink);
	font-weight: 600;
}

/* ---------- No-shiur week ---------- */
.resume-card {
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px 22px;
	margin-bottom: 40px;
}

.resume-card .section-title {
	margin-bottom: 8px;
}

.resume-date {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	color: var(--navy);
	margin-bottom: 12px;
}

.resume-message {
	color: var(--ink-soft);
}

/* ---------- Empty state ---------- */
.empty-note {
	color: var(--ink-soft);
	font-size: 1.05rem;
	margin-bottom: 40px;
}

/* ---------- Notices on the homepage ---------- */
.home-notices {
	margin-bottom: 40px;
}

.home-notices ul {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
	background: var(--panel-warm);
	border: 1px solid var(--line);
	border-inline-start: 4px solid var(--gold); /* decorative accent */
	border-radius: var(--radius);
}

.home-notices li {
	padding: 16px 22px;
	border-bottom: 1px solid var(--line);
}

.home-notices li:last-child {
	border-bottom: none;
}

.home-notices h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.home-notices p {
	color: var(--ink-soft);
	overflow-wrap: anywhere;
}

.home-notices a {
	color: var(--navy);
	font-weight: 600;
}

/* ---------- "Missed a shiur?" band ---------- */
.cta-band {
	background: var(--tint-warm);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	padding: 28px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.cta-band h2 {
	font-size: 1.15rem;
	font-weight: 500;
	margin-bottom: 6px;
}

.cta-band p {
	color: var(--ink-soft);               /* 5.95:1 on --tint-warm */
	font-size: 0.95rem;
	max-width: 420px;
}

.btn {
	display: inline-block;
	background: var(--navy);
	color: var(--paper-raised);           /* 11.26:1 */
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 3px;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
}

.btn:hover {
	background: var(--navy-deep);
}

@media (max-width: 640px) {
	.hero h1 {
		font-size: 1.5rem;
	}

	.schedule-row {
		grid-template-columns: 80px 1fr;
		padding: 16px;
	}

	.cta-band {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 360px) {
	.schedule-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
