/* TIL Document Manager v4.0 - Frontend Styles
   Brand colors taken directly from the TIL logo: orange #E35F14, black #1F1A17, white */

.til-doc-wrap {
	--til-orange: #E35F14;
	--til-orange-dark: #C24C0E;
	--til-black: #1F1A17;
	--til-grey: #6b6b6b;
	--til-border: #efe7e0;
	font-family: inherit;
	background: #FFFCFA;
	border-radius: 10px;
	padding: 24px 26px 30px;
	margin: 20px 0 40px;
}

.til-doc-wrap .til-section-title {
	color: var(--til-black);
	font-weight: 700;
	font-size: 24px;
	border-bottom: 3px solid var(--til-orange);
	padding-bottom: 12px;
	margin: 0 0 22px;
}

.til-empty {
	color: var(--til-grey);
	font-style: italic;
}

/* Simple list (Policies) */
.til-simple-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.til-simple-list li {
	border-bottom: 1px solid var(--til-border);
}

.til-simple-list li:last-child {
	border-bottom: none;
}

.til-pdf-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 8px;
	text-decoration: none;
	color: var(--til-black);
	transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
	border-radius: 6px;
}

.til-pdf-link:hover {
	background-color: #FFF3EA;
	color: var(--til-orange-dark);
	padding-left: 14px;
}

.til-pdf-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--til-orange);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .5px;
	border-radius: 7px;
	box-shadow: 0 2px 5px rgba(227, 95, 20, 0.28);
}

.til-pdf-title {
	font-size: 15px;
	font-weight: 500;
}

/* Auto year headings (tabbed-list layout) */
.til-year {
	color: var(--til-orange-dark);
	font-size: 19px;
	font-weight: 700;
	margin: 26px 0 8px;
}

.til-year:first-child {
	margin-top: 0;
}

/* When a year/title heading is wrapped inside a paginated group container
   (added in 5.0), only the very first group's heading should lose its
   top margin — matches the original un-paginated spacing. */
.til-pg-group:first-child .til-year,
.til-pg-group:first-child .til-group-title {
	margin-top: 0;
}

/* Optional "title above the PDF" heading — used on Policies (simple list)
   and as an alternative to the automatic year heading on tabbed-list pages */
.til-group-title {
	color: var(--til-orange-dark);
	font-size: 17px;
	font-weight: 700;
	margin: 20px 0 6px;
}

.til-group-title:first-child {
	margin-top: 0;
}

/* Tabs — vertical sidebar-style nav on the left, content on the right */
.til-tabs {
	display: flex;
	align-items: flex-start;
	gap: 34px;
}

.til-tab-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 0 0 220px;
	border-right: 1px solid var(--til-border);
	border-bottom: none;
	margin-bottom: 0;
	padding-right: 26px;
}

.til-tab-btn {
	background: #FFFFFF;
	border: none;
	border-bottom: none;
	border-left: 3px solid transparent;
	text-align: left;
	padding: 9px 8px 9px 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #000000;
	cursor: pointer;
	border-radius: 4px;
	transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.til-tab-btn:hover {
	color: #FFFFFF;
	background-color: #C9540F;
}

.til-tab-btn.til-active {
	color: #FFFFFF;
	border-left-color: #C9540F;
	background-color: #C9540F;
}

.til-tab-panel {
	display: none;
	flex: 1 1 auto;
	min-width: 0;
}

.til-tab-panel.til-active {
	display: block;
}

@media (max-width: 700px) {
	.til-tabs {
		flex-direction: column;
		gap: 18px;
	}
	.til-tab-nav {
		flex: 1 1 auto;
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		border-right: none;
		border-bottom: 2px solid var(--til-border);
		padding-right: 0;
		padding-bottom: 10px;
	}
	.til-tab-btn {
		border-left: none;
		border-bottom: 3px solid transparent;
	}
	.til-tab-btn.til-active {
		border-left-color: transparent;
		border-bottom-color: #C9540F;
	}
}

/* PDF list pagination (shown when a page/tab has more than 8 PDFs) */
.til-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--til-border);
	font-size: 13px;
	color: var(--til-black);
}

.til-pg-status {
	font-weight: 700;
	color: var(--til-orange-dark);
}

.til-pg-numbers {
	display: inline-flex;
	align-items: center;
}

.til-pg-link {
	color: var(--til-black);
	text-decoration: none;
	font-weight: 600;
}

.til-pg-link:hover {
	color: var(--til-orange-dark);
	text-decoration: underline;
}

.til-pg-current-link {
	color: var(--til-orange);
	text-decoration: underline;
}

.til-pg-jump {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.til-pg-input {
	width: 54px;
	padding: 3px 6px;
	border: 1px solid var(--til-border);
	border-radius: 4px;
}

.til-pg-go {
	padding: 3px 10px;
	border: 1px solid var(--til-border);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.til-pg-go:hover {
	background: var(--til-orange);
	color: #fff;
	border-color: var(--til-orange);
}

/* Blog style (Board of Directors & Committees) */
.til-blog-item {
	background: #fff;
	border: 1px solid var(--til-border);
	border-left: 4px solid var(--til-orange);
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 18px;
	box-shadow: 0 2px 10px rgba(31, 26, 23, 0.04);
}

.til-blog-item .til-pdf-link {
	padding: 6px 0;
}

.til-blog-item .til-pdf-link:hover {
	background: transparent;
	padding-left: 6px;
}

.til-blog-item .til-inline-list {
	margin-bottom: 4px;
}

.til-blog-item .til-inline-list li {
	border-bottom: none;
}

.til-profile-name {
	color: var(--til-orange-dark);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .3px;
	border-bottom: 1px solid var(--til-border);
	padding-bottom: 9px;
	margin: 0 0 10px;
}

.til-blog-content {
	color: #444;
	font-size: 14px;
	line-height: 1.75;
	margin-top: 8px;
}

@media (max-width: 600px) {
	.til-doc-wrap {
		padding: 18px 16px 24px;
	}
	.til-tab-btn {
		padding: 8px 10px;
		font-size: 13px;
	}
}
