/**
 * HBI Global Homeboy Network Program styles.
 *
 * All rules are prefixed with the .hbi-ghn wrapper so they out-specify the
 * host theme's `.entry-content` element rules (which otherwise force a large
 * body font and indent our headings). A defensive reset normalizes inherited
 * spacing/typography before the component styles apply.
 */

.hbi-ghn {
	--hbi-gold: #f4b740;
	--hbi-coral: #ed6e51;
	--hbi-teal: #58beb4;
	--hbi-ink: #231f20;
	--hbi-muted: #6b6b6b;
	--hbi-rule: #dcdcdc;

	max-width: 820px;
	margin: 0 auto;
	padding: 1rem;
	color: var(--hbi-ink);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.hbi-ghn *,
.hbi-ghn *::before,
.hbi-ghn *::after {
	box-sizing: border-box;
}

/* Defensive reset against theme content styles. */
.hbi-ghn h1,
.hbi-ghn h2,
.hbi-ghn h3,
.hbi-ghn p,
.hbi-ghn ul,
.hbi-ghn ol,
.hbi-ghn li {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	color: inherit;
	list-style: none;
}

/* ---------- Header ---------- */
.hbi-ghn .hbi-ghn__header {
	text-align: center;
	margin-bottom: 3rem;
}

.hbi-ghn .hbi-ghn__title {
	font-size: clamp( 1.8rem, 5vw, 3rem );
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 0.5rem;
}

.hbi-ghn .hbi-ghn__dates {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 1rem;
}

.hbi-ghn .hbi-ghn__intro {
	color: var(--hbi-muted);
	text-align: center;
}

/* ---------- Timeline ---------- */
.hbi-ghn .hbi-ghn__timeline {
	margin-bottom: 3.5rem;
}

.hbi-ghn .hbi-ghn-day {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 1rem;
}

.hbi-ghn .hbi-ghn-day__marker {
	text-align: right;
	line-height: 1;
	padding-top: 0.15rem;
	color: var(--hbi-ink);
}

.hbi-ghn .hbi-ghn-day__month {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: right;
}

.hbi-ghn .hbi-ghn-day__number {
	display: block;
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	text-align: right;
}

/* Events column: the vertical line lives on this list. */
.hbi-ghn .hbi-ghn-day__events {
	margin: 0;
	padding: 0 0 0 1.75rem;
	border-left: 2px solid var(--hbi-rule);
	position: relative;
}

.hbi-ghn .hbi-ghn-event {
	position: relative;
	padding-bottom: 1.75rem;
}

.hbi-ghn .hbi-ghn-event::before {
	content: "";
	position: absolute;
	left: calc( -1.75rem - 7px );
	top: 0.35rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hbi-ink);
	border: 2px solid #fff;
}

.hbi-ghn .hbi-ghn-event__time {
	font-style: italic;
	letter-spacing: 0.06em;
	color: var(--hbi-muted);
	margin: 0 0 0.15rem;
}

.hbi-ghn .hbi-ghn-event__title {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0;
}

/* Event titles that link to a section below inherit the category color. */
.hbi-ghn .hbi-ghn-event__link,
.hbi-ghn .hbi-ghn-event__link:visited {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.hbi-ghn .hbi-ghn-event__link:hover,
.hbi-ghn .hbi-ghn-event__link:focus {
	color: inherit;
	border-bottom-style: solid;
}

.hbi-ghn .hbi-ghn-event__location {
	font-style: italic;
	color: var(--hbi-muted);
	margin: 0.1rem 0 0;
}

.hbi-ghn .hbi-ghn-event__desc {
	margin-top: 0.35rem;
}

.hbi-ghn .hbi-ghn-event__desc p {
	font-size: 1rem;
	margin: 0.2rem 0;
}

/* Category coloring for event titles + dots. */
.hbi-ghn .hbi-ghn-event--plenary .hbi-ghn-event__title { color: var(--hbi-teal); }
.hbi-ghn .hbi-ghn-event--plenary::before { background: var(--hbi-teal); }
.hbi-ghn .hbi-ghn-event--breakout .hbi-ghn-event__title { color: var(--hbi-coral); }
.hbi-ghn .hbi-ghn-event--breakout::before { background: var(--hbi-coral); }
.hbi-ghn .hbi-ghn-event--ta .hbi-ghn-event__title { color: var(--hbi-gold); }
.hbi-ghn .hbi-ghn-event--ta::before { background: var(--hbi-gold); }

/* ---------- Major sections ---------- */
.hbi-ghn .hbi-ghn__section {
	margin-bottom: 3rem;
	scroll-margin-top: 6rem; /* breathing room under fixed headers when anchor-linked */
}

.hbi-ghn .hbi-ghn__section-title {
	font-size: clamp( 1.6rem, 4vw, 2.4rem );
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--hbi-rule);
}

.hbi-ghn .hbi-ghn__section--teal .hbi-ghn__section-title { color: var(--hbi-teal); border-bottom-color: var(--hbi-teal); }
.hbi-ghn .hbi-ghn__section--coral .hbi-ghn__section-title { color: var(--hbi-coral); border-bottom-color: var(--hbi-coral); }
.hbi-ghn .hbi-ghn__section--gold .hbi-ghn__section-title { color: var(--hbi-gold); border-bottom-color: var(--hbi-gold); }

.hbi-ghn .hbi-ghn__section-intro {
	font-style: italic;
	color: var(--hbi-muted);
	margin-bottom: 2rem;
}

.hbi-ghn .hbi-ghn__section-intro p {
	font-style: italic;
	margin: 0 0 0.75rem;
}

.hbi-ghn .hbi-ghn-item {
	margin-bottom: 2.25rem;
}

.hbi-ghn .hbi-ghn-item__eyebrow {
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 0.15rem;
}

.hbi-ghn .hbi-ghn-item__title {
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 0.5rem;
}

.hbi-ghn .hbi-ghn-item__room {
	display: inline-block;
	font-style: italic;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hbi-coral);
	margin-left: 0.35rem;
}

.hbi-ghn .hbi-ghn-item__room--solo {
	display: block;
	margin: 0 0 0.5rem;
}

.hbi-ghn .hbi-ghn__section--teal .hbi-ghn-item__room { color: var(--hbi-teal); }
.hbi-ghn .hbi-ghn__section--gold .hbi-ghn-item__room { color: var(--hbi-gold); }

.hbi-ghn .hbi-ghn-item__desc p {
	font-size: 1rem;
	line-height: 1.55;
	margin: 0 0 0.75rem;
}

.hbi-ghn .hbi-ghn-item__people {
	margin: 0.75rem 0 0;
	padding: 0;
	columns: 2;
	column-gap: 2rem;
	font-size: 0.9rem;
	color: var(--hbi-muted);
}

.hbi-ghn .hbi-ghn-person {
	break-inside: avoid;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
}

.hbi-ghn .hbi-ghn-person__name {
	font-weight: 600;
	color: var(--hbi-ink);
}

/* ---------- Responsive ---------- */
@media ( max-width: 560px ) {
	.hbi-ghn .hbi-ghn-day {
		grid-template-columns: 3.25rem 1fr;
		gap: 0.5rem;
	}
	.hbi-ghn .hbi-ghn-day__number { font-size: 1.9rem; }
	.hbi-ghn .hbi-ghn-item__people { columns: 1; }
}
