/*
 * Sipoon Wolf theme styles for the course pages (page-templates/course.php).
 *
 * inc/assets.php loads this file only on these pages, after main.css. The tokens are in main.css.
 */

/* Course page ------------------------------------------------------- */

.facts-band {
	background: var(--wolf-gold);
	color: var(--wolf-ink);
}

.facts-band__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
	gap: 0 24px;
	margin: 0;
}

.facts-band__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding-block: clamp(18px, 2vw, 28px);
}

.facts-band dt {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.facts-band dd {
	margin: 0;
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.2;
	overflow-wrap: anywhere;
	hyphens: auto;
}

/* The signup groups are directly below the quick facts. */
.facts-band + .signups {
	padding-top: clamp(56px, 7vw, 112px);
}

.course-content {
	padding-bottom: var(--wolf-section);
}

.facts-band + .course-content,
.page-hero + .course-content {
	padding-top: var(--wolf-section);
}

.course-content--contact .course-content__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.course-content .prose > :first-child {
	margin-top: 0;
}

.course-content .prose h2 {
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1;
}

.course-content .prose p {
	color: var(--wolf-ink-2);
}

.contact-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 3vw, 40px);
	background: var(--wolf-paper-2);
}

.contact-box__role,
.contact-row__role {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wolf-muted);
}

.contact-box__name,
.contact-row__name {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.15;
}

.contact-box__org,
.contact-row__org {
	margin-top: -4px;
	color: var(--wolf-ink-2);
	font-size: 16px;
}

/* The lists in the course content: rows with a yellow dot. */
.course-content .prose ul {
	padding: 0;
	list-style: none;
}

.course-content .prose ul li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--wolf-line);
	font-weight: 600;
	font-size: 17px;
}

.course-content .prose ul li::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wolf-gold);
}

/* Each h2 title of the content starts a column. */
.course-content--columns .course-content__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	gap: clamp(40px, 5vw, 80px);
	align-items: start;
}

.course-content--columns .prose h2 {
	padding-bottom: 16px;
	border-bottom: 4px solid var(--wolf-ink);
}

.contact-band__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: clamp(24px, 3vw, 40px);
	background: var(--wolf-paper);
}

.contact-band__person {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.contact-band__logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--wolf-paper-2);
	overflow: hidden;
}

.contact-band__logo img {
	display: block;
	width: 80%;
	height: auto;
	max-height: 80%;
	object-fit: contain;
}

.contact-band__role {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wolf-muted);
}

.contact-band__name {
	font-family: var(--wolf-font-display);
	font-weight: 800;
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.15;
}

.contact-band__org {
	color: var(--wolf-ink-2);
	font-size: 16px;
}

.contact-band__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.contact-band__links .button {
	font-size: 17px;
	text-transform: none;
	overflow-wrap: anywhere;
}

.contact-box__link {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 8px 18px;
	border-radius: var(--wolf-radius);
	background: var(--wolf-paper);
	color: var(--wolf-ink);
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background-color 0.15s;
}

.contact-box__link:hover {
	background: var(--wolf-gold);
}

.course-cards {
	padding-block: var(--wolf-section);
	background: var(--wolf-paper-2);
}

.course-cards__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3vw, 44px);
}

.course-cards__title,
.course-teams__title {
	font-weight: 900;
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1;
	text-transform: uppercase;
}

.course-cards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: clamp(12px, 1.6vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.number-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 2.4vw, 36px);
	background: var(--wolf-paper);
}

.number-card__number {
	font-family: var(--wolf-font-display);
	font-weight: 900;
	font-size: 15px;
	color: var(--wolf-gold-dark);
}

.number-card__title {
	font-weight: 800;
	font-size: 22px;
	line-height: 1.2;
}

.number-card__text,
.course-cards__note {
	font-size: 16px;
	line-height: 1.55;
	color: var(--wolf-ink-2);
}

.course-cards__note {
	max-width: 70ch;
	line-height: 1.6;
}

.course-teams {
	padding-bottom: var(--wolf-section);
}

.course-cards + .course-teams,
.signups + .course-teams,
.facts-band + .course-teams {
	padding-top: var(--wolf-section);
}

.course-teams__title {
	padding-bottom: 16px;
	border-bottom: 4px solid var(--wolf-ink);
}

.link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-list li {
	border-bottom: 1px solid var(--wolf-line);
}

.link-list__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 8px 4px;
	color: var(--wolf-ink);
	font-weight: 600;
	font-size: 19px;
	text-decoration: none;
	transition: background-color 0.15s;
}

.link-list__link:hover {
	background: var(--wolf-paper-2);
}

.link-list__link .icon {
	flex: 0 0 auto;
}

.contact-row {
	padding-block: var(--wolf-section);
}

.contact-row__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
}

.contact-row__person {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.contact-row__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.contact-row__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wolf-ink);
	font-size: 17px;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-row__links a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wolf-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
