/**
 * The download card on a draw page.
 *
 * The only reason anybody opens a draw is to get the file, so the file is the
 * page. Big target, obvious label, works on a phone in the carpark.
 */

.igc-draw {
	max-width: 680px;
}

.igc-draw-note {
	font-size: 17px;
	line-height: 1.55;
	margin: 0 0 22px;
}

.igc-draw-files {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.igc-draw-file {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e0dbd6;
	border-left: 4px solid var( --awb-color5, #663130 );
	border-radius: 5px;
	text-decoration: none !important;
	color: inherit !important;
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.igc-draw-file:hover,
.igc-draw-file:focus {
	box-shadow: 0 3px 14px rgba( 0, 0, 0, .10 );
	transform: translateY( -1px );
	border-color: var( --awb-color5, #663130 );
}

/* File type chip */

.igc-draw-file-ext {
	flex: 0 0 auto;
	min-width: 56px;
	padding: 9px 6px;
	text-align: center;
	background: var( --awb-color5, #663130 );
	color: #fff;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1;
}

.igc-draw-file-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.igc-draw-file-text strong {
	font-size: 16px;
	line-height: 1.3;
	word-break: break-word;
}

.igc-draw-file-text small {
	font-size: 13px;
	opacity: .7;
	margin-top: 2px;
}

.igc-draw-file-go {
	flex: 0 0 auto;
	padding: 9px 18px;
	background: var( --awb-color5, #663130 );
	color: #fff;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.igc-draw-file:hover .igc-draw-file-go {
	opacity: .9;
}

/* 700px, not 560px: between those widths the three pieces squeeze the
   filename down to one word per line. Stack earlier instead. */
@media ( max-width: 700px ) {
	.igc-draw-file {
		flex-wrap: wrap;
		gap: 12px;
	}

	.igc-draw-file-text {
		flex: 1 1 60%;
	}

	/* Full width tap target on a phone */
	.igc-draw-file-go {
		flex: 1 1 100%;
		text-align: center;
		padding: 12px 18px;
	}
}

/* ---------------------------------------------------------------------
 * The draws listing
 * ------------------------------------------------------------------ */

.igc-drawlist {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 860px;
}

.igc-drawlist-empty {
	padding: 22px;
	background: #f6f4f2;
	border-radius: 5px;
	margin: 0;
}

.igc-drawlist-item {
	display: flex;
	gap: 18px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e4dfda;
	border-radius: 6px;
}

.igc-drawlist-item.is-newest {
	border-color: var( --awb-color5, #663130 );
	box-shadow: 0 2px 12px rgba( 102, 49, 48, .10 );
}

/* Date block */

.igc-drawlist-when {
	flex: 0 0 76px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 6px;
	background: #f6f2ee;
	border-radius: 5px;
	line-height: 1.1;
}

.igc-drawlist-item.is-newest .igc-drawlist-when {
	background: var( --awb-color5, #663130 );
	color: #fff;
}

.igc-drawlist-day {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .8;
}

.igc-drawlist-date {
	font-size: 28px;
	font-weight: 700;
	margin: 2px 0;
}

.igc-drawlist-month {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .8;
}

/* Body */

.igc-drawlist-body {
	flex: 1 1 auto;
	min-width: 0;
}

.igc-drawlist-latest {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 9px;
	background: var( --awb-color5, #663130 );
	color: #fff;
	border-radius: 11px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.igc-drawlist-title {
	margin: 0 0 10px;
	font-size: 19px;
	line-height: 1.3;
}

.igc-drawlist-title a {
	text-decoration: none;
}

.igc-drawlist-files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.igc-drawlist-dl {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: #f6f2ee;
	border: 1px solid #e0dbd6;
	border-radius: 4px;
	font-size: 14px;
	text-decoration: none !important;
	color: inherit !important;
	transition: background .15s ease, border-color .15s ease;
}

.igc-drawlist-dl:hover,
.igc-drawlist-dl:focus {
	background: #fff;
	border-color: var( --awb-color5, #663130 );
}

.igc-drawlist-dl-ext {
	padding: 3px 7px;
	background: var( --awb-color5, #663130 );
	color: #fff;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
}

.igc-drawlist-dl small {
	opacity: .65;
}

@media ( max-width: 600px ) {
	.igc-drawlist-item {
		flex-direction: column;
		gap: 12px;
	}

	.igc-drawlist-when {
		flex: 0 0 auto;
		flex-direction: row;
		gap: 7px;
		justify-content: flex-start;
		padding: 7px 12px;
	}

	.igc-drawlist-date {
		font-size: 17px;
		margin: 0;
	}

	.igc-drawlist-day,
	.igc-drawlist-month {
		font-size: 13px;
		align-self: center;
	}

	.igc-drawlist-dl {
		flex: 1 1 100%;
	}
}
