/* ==========================================================================
   PIN Member Files — brand palette
   navy #1a3c6e · navy-dark #14305a · accent #e8832a · accent-dark #cf6f1f
   text #374151 · muted #6b7280 · border #e0e6ed · light #f8fafc
   ========================================================================== */

/* --------------------------------------------------------------------------
   Login / register (tabbed card)
   -------------------------------------------------------------------------- */
.pin-mf-auth { max-width: 520px; margin: 0 auto; padding: 8px 0 40px; }

.pin-mf-auth-head { text-align: center; margin-bottom: 24px; }
.pin-mf-auth-badge {
	width: 62px; height: 62px; line-height: 62px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #eef2f8;
	font-size: 26px;
}
.pin-mf-auth-head h1 { display: none; }
.pin-mf-auth-head p { margin: 0; color: #6b7280; font-size: 15px; }

.pin-mf-tabcard {
	border: 1px solid #e0e6ed;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 10px 34px rgba(26, 60, 110, .09);
}
.pin-mf-tabinput { position: absolute; opacity: 0; pointer-events: none; }

.pin-mf-tabs { display: flex; }
.pin-mf-tab {
	flex: 1;
	text-align: center;
	padding: 16px;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	color: #6b7280;
	background: #f8fafc;
	border-bottom: 2px solid #e0e6ed;
	transition: color .15s, background .15s, border-color .15s;
	user-select: none;
}
.pin-mf-tab:hover { color: #1a3c6e; }
#pin-mf-tab-login:checked    ~ .pin-mf-tabs label[for="pin-mf-tab-login"],
#pin-mf-tab-register:checked ~ .pin-mf-tabs label[for="pin-mf-tab-register"] {
	color: #1a3c6e;
	background: #fff;
	border-bottom-color: #e8832a;
}

.pin-mf-panel { display: none; padding: 28px; }
#pin-mf-tab-login:checked    ~ .pin-mf-panel--login    { display: block; }
#pin-mf-tab-register:checked ~ .pin-mf-panel--register { display: block; }

.pin-mf-field { display: block; margin-bottom: 16px; }
.pin-mf-field > span { display: block; font-weight: 600; color: #374151; margin-bottom: 6px; font-size: 14px; }
.pin-mf-field > span em { color: #e8832a; font-style: normal; }
.pin-mf-field input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #cdd5e0;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.pin-mf-field input:focus {
	outline: none;
	border-color: #1a3c6e;
	box-shadow: 0 0 0 3px rgba(26, 60, 110, .12);
}
.pin-mf-field small { display: block; margin-top: 5px; color: #9aa3b2; font-size: 12px; }
.pin-mf-row { display: flex; gap: 12px; }
.pin-mf-row .pin-mf-field { flex: 1; }
.pin-mf-check { display: flex; align-items: center; gap: 8px; color: #6b7280; font-size: 14px; margin-bottom: 18px; }

.pin-mf-btn {
	display: inline-block;
	background: #1a3c6e;
	color: #fff;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: background .15s;
}
.pin-mf-btn:hover { background: #14305a; color: #fff; }
.pin-mf-btn--block { width: 100%; }
.pin-mf-btn--accent { background: #e8832a; }
.pin-mf-btn--accent:hover { background: #cf6f1f; }

.pin-mf-sub { text-align: center; margin: 14px 0 0; font-size: 13px; color: #6b7280; }
.pin-mf-sub a { color: #1a3c6e; }

/* Logged-in prompt (request access / awaiting approval) */
.pin-mf-prompt { text-align: center; padding: 32px 28px; }
.pin-mf-prompt-ico { font-size: 40px; margin-bottom: 6px; }
.pin-mf-prompt .pin-mf-greet { font-size: 18px; color: #1a3c6e; margin: 0 0 6px; }
.pin-mf-prompt p { color: #374151; }
.pin-mf-prompt form { margin-top: 20px; }

.pin-mf-msg { max-width: 520px; margin: 0 auto 18px; padding: 13px 16px; border-radius: 10px; font-size: 14px; }
.pin-mf-msg--ok  { background: #e7f6ec; color: #1a7f37; border: 1px solid #b7e4c5; }
.pin-mf-msg--err { background: #fdecec; color: #b42318; border: 1px solid #f5c2c0; }

/* --------------------------------------------------------------------------
   Files page (PDF preview grid + downloads sidebar)
   -------------------------------------------------------------------------- */
.pin-mf-layout { display: flex; gap: 28px; align-items: flex-start; }
.pin-mf-main { flex: 1 1 auto; min-width: 0; }

.pin-mf-files {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}
.pin-mf-file {
	border: 1px solid #e0e6ed;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.pin-mf-file h3 { margin-top: 0; color: #1a3c6e; font-size: 17px; }
.pin-mf-desc { color: #6b7280; margin-bottom: 14px; font-size: 14px; }

/* Center the download button within each grid card */ 
.pin-mf-file > .pin-mf-btn {
	display: block;
	width: fit-content;
	margin-left: auto;
    margin-right: auto;
}

.pin-mf-preview {
	position: relative;
	margin-bottom: 16px;
	border: 1px solid #e0e6ed;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
}
/* First-page thumbnail: show the top of page 1, cropped to a uniform height */
.pin-mf-thumb {
	display: block;
	width: 100%;
	height: 300px;
	overflow: hidden;
	background: #eef1f5 url( "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23c2cbd8' stroke-width='2'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>" ) no-repeat center center;
}
.pin-mf-thumb canvas { display: block; width: 100%; height: auto; }
.pin-mf-thumb.is-loaded { background-image: none; }
.pin-mf-thumb.is-error { display: none; }
.pin-mf-preview-expand {
	position: absolute;
	top: 8px; right: 8px;
	width: 30px; height: 30px;
	line-height: 30px;
	text-align: center;
	background: rgba(26, 60, 110, .92);
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.pin-mf-preview-expand:hover { background: #14305a; color: #fff; }

/* Presentations attached beneath a PDF card */
.pin-mf-attached {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #d7dee8;
}
.pin-mf-attached-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #6b7280;
	margin-bottom: 8px;
}
.pin-mf-attach {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	padding: 9px 11px;
	margin-bottom: 7px;
	border: 1px solid #e0e6ed;
	border-radius: 8px;
	color: #1a3c6e;
	line-height: 1.3;
	font-size: 14px;
}
.pin-mf-attach:last-child { margin-bottom: 0; }
.pin-mf-attach:hover { background: #f8fafc; border-color: #1a3c6e; }
.pin-mf-attach-ico { font-size: 16px; flex: 0 0 auto; color: #e8832a; }
.pin-mf-attach-name { flex: 1 1 auto; word-break: break-word; }
.pin-mf-attach small { color: #9aa3b2; flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 782px) {
	.pin-mf-row { flex-direction: column; gap: 0; }
}
