/* ---------- Icon Box ---------- */
.mega-ib{
	display: flex;
	align-items: flex-start;
	gap: 18px;
	box-sizing: border-box;
	text-decoration: none;
}
a.mega-ib-linked{ color: inherit; }
.mega-ib-icon{
	flex: 0 0 auto;
	line-height: 0;
}
.mega-ib-icon svg{ display: block; }
.mega-ib-icon img{ display: block; height: auto; }
.mega-ib-body{ min-width: 0; }
.mega-ib-title{
	margin: 0 0 7px;
	line-height: 1.25;
}
.mega-ib-text{ line-height: 1.55; }
.mega-ib-text p{ margin: 0 0 .6em; }
.mega-ib-text p:last-child{ margin-bottom: 0; }
.mega-ib-link{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	text-decoration: none;
	line-height: 1;
}
.mega-ib-link-icon{
	width: 1.35em;
	height: 1.35em;
	transition: transform .2s ease;
}
.mega-ib:hover .mega-ib-link-icon,
.mega-ib-link:hover .mega-ib-link-icon{ transform: translateX(4px); }

/* ---------- Icon Button ---------- */
.mega-btn-wrap{ line-height: 0; }
.mega-btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
	font-family: inherit;
	min-height: 44px; /* comfortable tap target */
}
.mega-btn:focus-visible{ outline: 3px solid #F2B705; outline-offset: 2px; }
.mega-btn-icon{ display: block; }

/* ---------- Event Loop ---------- */
.mega-ev{
	display: grid;
	grid-template-columns: 1fr;
	box-sizing: border-box;
}
.mega-ev-item{
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 0;
	text-decoration: none;
	color: inherit;
}
.mega-ev-badge{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 0 54px;
	line-height: 1.1;
	text-align: center;
}
.mega-ev-month{
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.mega-ev-day{
	font-weight: 500;
	line-height: 1.2;
}
.mega-ev-body{ min-width: 0; display: block; }
.mega-ev-title{
	margin: 0 0 3px;
	line-height: 1.3;
}
.mega-ev-meta{ display: block; line-height: 1.5; }
.mega-ev-meta span{ display: block; }
.mega-ev-empty{ opacity: .75; }
.mega-ev-more{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font: 700 11.5px/1 inherit;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}
.mega-ev-more-icon{
	width: 1.35em;
	height: 1.35em;
	transition: transform .2s ease;
}
.mega-ev-more:hover .mega-ev-more-icon{ transform: translateX(4px); }

/* =========================================================================
   Image Box
   ====================================================================== */

.mega-imgbox{
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-decoration: none;
	background: #fff;
	/* Fills its column, so cards in a row match and the links line up. */
	height: 100%;
}
a.mega-imgbox,
.mega-imgbox-linked{ color: inherit; }

.mega-imgbox-media{
	display: block;
	position: relative;
	overflow: hidden;
	flex: 0 0 auto;
	background: #E7E2D6;
}
.mega-imgbox-media img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Shown until a photograph is added. */
.mega-imgbox-ph{
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: repeating-linear-gradient(135deg, #E9E4D8 0 12px, #DED7C6 12px 24px);
}
.mega-imgbox-ph > span{
	background: #FBF9F4;
	color: #6B6455;
	padding: 8px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	max-width: 80%;
}

.mega-imgbox-bar{ display: block; flex: 0 0 auto; }

.mega-imgbox-body{
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	align-items: flex-start;
}
.mega-imgbox-title{ margin: 0; line-height: 1.22; }
.mega-imgbox-text{ margin: 0; line-height: 1.6; }
.mega-imgbox-text p{ margin: 0; }
.mega-imgbox-text p + p{ margin-top: .7em; }

.mega-imgbox-cta{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	text-decoration: none;
	transition: color .2s ease, gap .2s ease;
}
.mega-imgbox-cta-icon{ width: 1em; height: 1em; flex: 0 0 auto; }
.mega-imgbox:hover .mega-imgbox-cta{ gap: 12px; }

/* =========================================================================
   Table
   ====================================================================== */

.mega-table{ margin: 0; position: relative; }

/* The panel that scrolls. The gradients sit on it, so they slide out of the
   way as the reader scrolls and only show where there is more to see. */
.mega-table-scroll{
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	/* Keeps the outer border tight to the table rather than the figure. */
	display: block;
}
.mega-table.is-scrollable .mega-table-scroll{
	background-image:
		radial-gradient(farthest-side at 0 50%, rgba(10, 30, 60, .16), rgba(10, 30, 60, 0)),
		radial-gradient(farthest-side at 100% 50%, rgba(10, 30, 60, .16), rgba(10, 30, 60, 0));
	background-position: left center, right center;
	background-repeat: no-repeat;
	background-size: 16px 100%, 16px 100%;
	background-attachment: scroll, scroll;
}
.mega-table.at-start .mega-table-scroll{ background-image: radial-gradient(farthest-side at 100% 50%, rgba(10, 30, 60, .16), rgba(10, 30, 60, 0)); background-position: right center; background-size: 16px 100%; }
.mega-table.at-end .mega-table-scroll{ background-image: radial-gradient(farthest-side at 0 50%, rgba(10, 30, 60, .16), rgba(10, 30, 60, 0)); background-position: left center; background-size: 16px 100%; }
.mega-table.at-start.at-end .mega-table-scroll{ background-image: none; }

.mega-table-scroll::-webkit-scrollbar{ height: 8px; }
.mega-table-scroll::-webkit-scrollbar-track{ background: rgba(10, 30, 60, .07); }
.mega-table-scroll::-webkit-scrollbar-thumb{ background: var(--mt-head-bg, #12386E); border-radius: 4px; }
.mega-table-scroll:focus-visible{ outline: 2px solid currentColor; outline-offset: 2px; }

.mega-table table{
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}
.mega-table th,
.mega-table td{ vertical-align: top; }
.mega-table thead th{ white-space: nowrap; }
.mega-table tbody th{ white-space: nowrap; }
.mega-table tbody tr:last-child th,
.mega-table tbody tr:last-child td{ border-bottom: 0; }

.mega-table-caption{
	margin: 0 0 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .75;
}
.mega-table-note{
	margin: 10px 0 0;
	opacity: .75;
}

/* Only worth saying while there is more table to the right. */
.mega-table-hint{
	display: none;
	align-items: center;
	gap: 7px;
	margin: 8px 0 0;
	font-size: .8em;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .6;
}
.mega-table.is-scrollable:not(.at-end) .mega-table-hint{ display: flex; }
.mega-table-hint-icon{ width: 1em; height: 1em; }

/* Without the script, the shadows and hint stay off and the panel still
   scrolls, so nothing depends on JavaScript to be readable. */
