/* Member resources. Colours use currentColor/inherit where possible so the
 * theme's existing palette (cms_theme_custom_css.css) carries through.
 * Adjust --mr-accent to the site's accent colour. */

.member-resources {
	--mr-accent: #1f4e8c;
	--mr-border: #d6d9de;
	--mr-muted: #5b6270;
	--mr-bg-soft: #f4f6f9;
}

.mr-wrap {
	padding: 24px 16px 48px;
	box-sizing: border-box;
	/* The theme's root font size is small (rem-based); set a readable base
	   for everything in the members area. */
	font-size: 17px;
	line-height: 1.55;
}

.mr-page-intro {
	margin-bottom: 24px;
}

/* Password form */
.mr-password-form {
	max-width: 448px;
	margin: 16px auto 32px;
	padding: 24px;
	border: 1px solid var(--mr-border);
	border-radius: 6px;
	background: var(--mr-bg-soft);
}
.mr-password-form label {
	display: block;
	font-weight: 700;
	margin: 16px 0 5.6px;
}
.mr-password-form input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 9.6px 11.2px;
	font-size: 16px;
	border: 1px solid var(--mr-border);
	border-radius: 4px;
}
.mr-password-form button {
	margin-top: 14.4px;
	padding: 9.6px 22.4px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--mr-accent);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}
.mr-password-form button:hover,
.mr-password-form button:focus-visible {
	filter: brightness(1.12);
}
.mr-password-error {
	color: #a4161a;
	font-weight: 700;
}
.mr-password-help {
	margin-top: 19.2px;
	font-size: 14.4px;
	color: var(--mr-muted);
}

/* Tabs */
.mr-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 6px;
	border-bottom: 3px solid var(--mr-accent);
	margin-bottom: 24px;
}
/* Stays hidden until the script has run (display:flex above would
   otherwise override the hidden attribute). */
.mr-tablist[hidden] {
	display: none;
}
.mr-tablist [role="tab"] {
	appearance: none;
	background: #e9edf3;
	border: 1px solid var(--mr-border);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	padding: 10px 16px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #2b3340;
	cursor: pointer;
	box-shadow: inset 0 -3px 4px -3px rgba(0, 0, 0, .12);
	transition: background-color .15s ease, color .15s ease;
}
.mr-tablist [role="tab"]:hover {
	background: #d9e1ec;
	color: var(--mr-accent);
}
.mr-tablist [role="tab"][aria-selected="true"] {
	color: #fff;
	background: var(--mr-accent);
	border-color: var(--mr-accent);
	box-shadow: none;
}
.mr-tablist [role="tab"]:focus-visible,
.mr-select:focus-visible,
.mr-panel:focus-visible {
	outline: 3px solid var(--mr-accent);
	outline-offset: 2px;
}

.mr-select {
	display: none;
	width: 100%;
	padding: 10.4px 11.2px;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 20px;
	border: 2px solid var(--mr-accent);
	border-radius: 4px;
	background: #fff;
}

/* Without JS, panels are spaced as plain sections */
.mr-panel + .mr-panel {
	margin-top: 40px;
}
.mr-js .mr-panel + .mr-panel {
	margin-top: 0;
}

.mr-subheading {
	margin: 28px 0 8px;
	font-size: 17.6px;
}
.mr-panel > .mr-subheading:first-child,
.mr-intro + .mr-subheading {
	margin-top: 0;
}

.mr-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mr-item {
	padding: 12.8px 0 12.8px 30.4px;
	border-bottom: 1px solid var(--mr-border);
	position: relative;
}
.mr-item::before {
	position: absolute;
	left: 3.2px;
	top: 13.6px;
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
	font-weight: 900;
	color: var(--mr-accent);
}
.mr-item--file::before { content: "\f15b"; }          /* file */
.mr-item--link::before { content: "\f35d"; }          /* external link */
.mr-item a {
	font-weight: 700;
}
.mr-meta {
	color: var(--mr-muted);
	font-size: 14px;
	white-space: nowrap;
}
.mr-desc {
	margin: 4px 0 0;
	color: var(--mr-muted);
	font-size: 15.2px;
}
.mr-empty {
	color: var(--mr-muted);
	font-style: italic;
}

.mr-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 760px) {
	.mr-js .mr-tablist { display: none; }
	.mr-js .mr-select { display: block; }
}
#container section.mr-panel[role="tabpanel"] ul,
#container .section .type_section.sec-tabs .tab-content ul {
  list-style-type: disc;
  margin: 0 0 1rem;
  padding: 0 0 0 2.5rem;
}
#container section.mr-panel[role="tabpanel"] ul ul,
#container .section .type_section.sec-tabs .tab-content ul ul {
  list-style-type: circle;
  margin: 0.25rem 0 0.5rem;
}
#container section.mr-panel[role="tabpanel"] ul ul ul,
#container .section .type_section.sec-tabs .tab-content ul ul ul {
  list-style-type: square;
}
#container section.mr-panel[role="tabpanel"] ul li,
#container .section .type_section.sec-tabs .tab-content ul li {
  list-style-type: inherit;
  margin: 0.25rem 0;
  padding: 0;
}
#container section.mr-panel[role="tabpanel"] ul li::before,
#container .section .type_section.sec-tabs .tab-content ul li::before {
  content: none;
}
#container section.mr-panel[role="tabpanel"] ul,
#container .section .type_section.sec-tabs .tab-content ul {
  list-style-type: disc;
  margin: 0 0 1rem;
  padding: 0 0 0 2.5rem;
}
#container section.mr-panel[role="tabpanel"] ul ul,
#container .section .type_section.sec-tabs .tab-content ul ul {
  list-style-type: circle;
  margin: 0.25rem 0 0.5rem;
}
#container section.mr-panel[role="tabpanel"] ul ul ul,
#container .section .type_section.sec-tabs .tab-content ul ul ul {
  list-style-type: square;
}
#container section.mr-panel[role="tabpanel"] ul li,
#container .section .type_section.sec-tabs .tab-content ul li {
  list-style-type: inherit;
  margin: 0.25rem 0;
  padding: 0;
}
#container section.mr-panel[role="tabpanel"] ul li::before,
#container .section .type_section.sec-tabs .tab-content ul li::before {
  content: none;
}