/* MW Documents front end. Kept small: it loads on every page. */

.mwd-busy { cursor: progress !important; opacity: .7; }

.mwd-btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .7em 1.3em; border-radius: 2px;
	background: var(--mwd-accent, #008bc0); color: #fff !important;
	font-weight: 600; text-decoration: none !important; line-height: 1.2;
	transition: filter .15s ease;
}
.mwd-btn:hover { filter: brightness(.92); }
.mwd-btn::before {
	content: ""; width: 1em; height: 1.15em; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v15a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10 1.5V8h6.5L12 1.5zM4 13v2h12v-2H4zm0 4v2h8v-2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v15a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10 1.5V8h6.5L12 1.5zM4 13v2h12v-2H4zm0 4v2h8v-2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mwd-missing { color: #b32d2e; font-size: 13px; }

/* Caption bar over the lightbox */
.mwd-caption {
	position: absolute; top: 0; left: 0; right: 56px; z-index: 5;
	display: flex; align-items: center; gap: 12px;
	padding: 14px 20px; pointer-events: none;
	font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #0c2637;
}
.mwd-caption__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mwd-caption__rev {
	flex: none; padding: 2px 8px; border-radius: 99px;
	background: rgba(12,38,55,.08); font-size: 12px; font-weight: 600;
}
.mwd-caption__dl {
	flex: none; margin-left: auto; pointer-events: auto;
	padding: 7px 14px; border-radius: 2px;
	background: #0c2637; color: #fff !important; font-size: 13px; text-decoration: none !important;
}
.mwd-caption__dl:hover { background: #16384d; }
@media (max-width: 600px) {
	.mwd-caption { padding: 12px 14px; font-size: 14px; }
	.mwd-caption__rev { display: none; }
}
/* Leave room for the caption above the book */
.df-lightbox-wrapper .df-container { top: 0; }
.df-lightbox-wrapper .df-app { padding-top: 0; }

/* [mw_docs] list */
.mwd-list__search {
	width: 100%; margin: 0 0 14px; padding: 12px 14px; font-size: 16px;
	border: 1px solid #dbe2e8; border-radius: 2px;
}
.mwd-list__items { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.mwd-list--grid .mwd-list__items { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mwd-item { display: flex; align-items: stretch; border: 1px solid #dbe2e8; background: #fff; padding: 0 !important; }
.mwd-item[hidden] { display: none; }
.mwd-item__main { flex: 1; display: flex; gap: 14px; align-items: center; padding: 14px 16px; color: inherit !important; text-decoration: none !important; min-width: 0; }
.mwd-item__main:hover .mwd-item__title { color: var(--mwd-accent, #008bc0); }
.mwd-item__icon {
	flex: none; width: 40px; height: 48px; display: grid; place-items: center;
	background: #0c2637; color: #fff; font: 700 11px/1 sans-serif; letter-spacing: .06em;
	clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%);
}
.mwd-item__cover { flex: none; width: 40px; height: 52px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.mwd-item__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mwd-item__title { font-weight: 600; line-height: 1.3; transition: color .15s; }
.mwd-item__summary { font-size: .9em; opacity: .8; line-height: 1.4; }
.mwd-item__meta { font-size: .8em; opacity: .65; }
.mwd-item__dl { flex: none; display: grid; place-items: center; width: 52px; border-left: 1px solid #dbe2e8; color: #5a6470 !important; }
.mwd-item__dl:hover { background: #f3f7fa; color: #0c2637 !important; }
