/* Document directory ([wci_document_directory]) */

.wci-doc-directory {
	font-family: inherit;
	color: inherit;
}

.wci-doc-search-input {
	display: block;
	font-family: inherit;
	font-size: 1rem;
	width: 100%;
	max-width: 360px;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 0;
	margin: 0 0 24px;
}

.wci-doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e5e5e5;
}

.wci-doc-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #e5e5e5;
}

.wci-doc-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0efeb;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #1a1a1a;
}

.wci-doc-title {
	flex: 1 1 auto;
	font-weight: 500;
}

.wci-doc-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 16px;
}

.wci-doc-actions a {
	font-size: 0.875rem;
	text-decoration: underline;
	color: inherit;
}

.wci-doc-empty {
	padding: 24px 0 0;
	color: #777;
}

/* Single document preview page */

/* The theme's own "fullwidth" body class doesn't actually hide the sidebar
   by itself here (it still renders full-width, unaffected) — the sidebar
   column is a plain flex sibling of .cmsmasters-content with flex-grow: 0,
   so hiding it just leaves empty space unless .cmsmasters-content is also
   told to take up the freed-up width itself. */
body.single-wci_document .cmsmasters-sidebar {
	display: none !important;
}

/* Archdeco/CMSMasters puts title, content and these two blocks in the same
   .cmsmasters-content wrapper, so styling that one element gives the whole
   page one continuous off-white band — the author bio and prev/next post
   nav aren't relevant on a document page, so they're hidden. */
body.single-wci_document .cmsmasters-content {
	flex: 1 1 auto !important;
	width: 100% !important;
	background: #fafafa;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
	padding: 60px 40px;
	box-sizing: border-box;
}

body.single-wci_document .cmsmasters-single-author,
body.single-wci_document .cmsmasters-single-nav {
	display: none;
}

.wci-doc-preview {
	margin: 0 0 32px;
}

.wci-doc-preview__back {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 0.875rem;
	color: inherit;
}

.wci-doc-preview__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-bottom: 16px;
	font-size: 0.875rem;
	color: #5f5f5f;
}

.wci-doc-preview__description {
	margin: 0 0 16px;
	color: #5f5f5f;
	line-height: 1.65;
}

.wci-doc-preview__download {
	display: inline-block;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	background: #f0efeb;
	color: #000;
	border: none;
	border-radius: 0;
	padding: 12px 30px;
	text-decoration: none;
	margin: 16px 0 24px;
	transition: background-color 0.2s ease;
}

.wci-doc-preview__download:hover {
	background: #e5e3dc;
	color: #000;
}

.wci-doc-preview__frame-wrap {
	width: 100%;
	height: 80vh;
	max-height: 1200px;
	border: 1px solid #e5e5e5;
}

.wci-doc-preview__frame-wrap iframe {
	width: 100%;
	height: 100%;
	border: none;
}
