/* HisWay Events: colors match the His Way mobile app. */
.hwe {
	--hwe-navy: #0B2A8A;
	--hwe-blue: #2F8CFF;
	--hwe-blue-text: #1F6FD6;
	--hwe-sky: #E8F2FF;
	--hwe-text: #0F1A33;
	--hwe-muted: #5B6680;
	--hwe-border: #E1E6EF;
	--hwe-card: #FFFFFF;
	--hwe-radius: 14px;
	color: var(--hwe-text);
	font-family: inherit;
	line-height: 1.5;
	max-width: 880px;
	margin: 0 auto;
}
.hwe *, .hwe *::before, .hwe *::after { box-sizing: border-box; }
.hwe a { color: var(--hwe-blue-text); text-decoration: none; }
.hwe a:hover { text-decoration: underline; }
.hwe .hwe-i { flex: none; vertical-align: -3px; }

/* Subscribe */
.hwe-subscribe {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	background: var(--hwe-sky); border-radius: var(--hwe-radius); padding: 16px 20px; margin: 0 0 28px;
}
.hwe-subscribe strong { display: block; color: var(--hwe-navy); font-size: 17px; }
.hwe-subscribe span { color: var(--hwe-muted); font-size: 15px; }
.hwe-subscribe-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.hwe .hwe-btn {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	background: var(--hwe-navy); color: #fff; border: 0; border-radius: 999px;
	padding: 8px 16px; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
	list-style: none; user-select: none;
}
.hwe .hwe-btn:hover { background: #08206b; color: #fff; text-decoration: none; }
.hwe .hwe-btn:focus-visible, .hwe a:focus-visible { outline: 3px solid var(--hwe-blue); outline-offset: 2px; }
.hwe .hwe-btn-ghost { background: transparent; color: var(--hwe-navy); box-shadow: inset 0 0 0 1.5px var(--hwe-border); }
.hwe .hwe-btn-ghost:hover { background: var(--hwe-sky); color: var(--hwe-navy); }
.hwe summary.hwe-btn::-webkit-details-marker { display: none; }
.hwe summary.hwe-btn::marker { content: ""; }

/* Sections */
.hwe .hwe-h { font-size: 24px; font-weight: 800; color: var(--hwe-navy); margin: 0 0 14px; }
.hwe .hwe-month {
	font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--hwe-muted); margin: 22px 0 10px;
}
.hwe-section + .hwe-section { margin-top: 36px; }
.hwe-list { display: grid; gap: 14px; }
.hwe-empty { color: var(--hwe-muted); text-align: center; padding: 32px 0; }

/* Card */
.hwe-card {
	display: flex; gap: 18px; align-items: flex-start;
	background: var(--hwe-card); border: 1px solid var(--hwe-border); border-radius: var(--hwe-radius);
	padding: 18px; box-shadow: 0 4px 12px rgba(11, 42, 138, .06);
}
.hwe-badge {
	flex: none; width: 64px; border-radius: 10px; background: var(--hwe-sky);
	display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; line-height: 1.1;
}
.hwe-badge-m { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hwe-blue-text); }
.hwe-badge-d { font-size: 28px; font-weight: 800; color: var(--hwe-navy); margin: 2px 0; }
.hwe-badge-w { font-size: 12px; font-weight: 600; color: var(--hwe-muted); }
.hwe-badge-tbd { color: var(--hwe-navy); padding: 18px 0; }
.hwe-body { flex: 1; min-width: 0; }
.hwe .hwe-title { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.hwe .hwe-title a { color: var(--hwe-text); }
.hwe-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 15px; color: var(--hwe-muted); }
.hwe-meta li { display: flex; gap: 8px; align-items: baseline; margin: 0; padding: 0; }
.hwe-meta li::before { content: none; }
.hwe-repeat { color: var(--hwe-navy); font-weight: 600; }
.hwe-soon { color: #1E9E5A; font-weight: 700; }
.hwe-excerpt { margin: 10px 0 0; font-size: 15px; color: var(--hwe-text); }
.hwe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.hwe-link { font-weight: 600; font-size: 15px; }
.hwe-thumb { flex: none; width: 150px; align-self: stretch; }
.hwe-thumb img { width: 100%; height: 100%; max-height: 140px; object-fit: cover; border-radius: 10px; display: block; }

/* "Add to calendar" menu */
.hwe-add { position: relative; display: inline-block; }
.hwe-menu {
	position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--hwe-border); border-radius: 12px;
	box-shadow: 0 12px 28px rgba(15, 26, 51, .16); padding: 6px;
}
.hwe .hwe-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--hwe-text); font-size: 15px; }
.hwe .hwe-menu a:hover { background: var(--hwe-sky); text-decoration: none; }

/* Single event page */
.hwe-single { margin: 0 0 24px; max-width: none; }
.hwe-single .hwe-repeat, .hwe-single .hwe-upcoming { margin: 0 0 8px; }

/* Phones */
@media (max-width: 600px) {
	.hwe-card { padding: 14px; gap: 14px; }
	.hwe-badge { width: 54px; }
	.hwe-badge-d { font-size: 24px; }
	.hwe-thumb { display: none; }
	.hwe-subscribe { padding: 14px 16px; }
	.hwe-subscribe-btns, .hwe-subscribe-btns .hwe-btn { width: 100%; justify-content: center; }
	.hwe-menu { left: auto; right: auto; min-width: 210px; }
}
