/* Styles for the member and board pages. Loaded after styles.css, which holds the site-wide look. */

.app-main {
	padding-top: 45px;
}

.app-main h1 {
	margin: 0 0 20px;
	font-size: 2rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.app-main p {
	margin-bottom: 18px;
}

.narrow {
	max-width: 640px;
}

.nav-end {
	margin-left: auto;
}

.nav-button {
	display: block;
	padding: 14px 20px;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: bold;
	cursor: pointer;
}

.nav-button:hover,
.nav-button:focus {
	background: #ffbe05;
	color: #111;
}


/* Board page menu (board/partials/subnav): board pages on one row, admin pages on a second. On phones it folds
   behind a button naming the current page (public/site-nav.js sets html.js; without it the menu shows in full). */
.subnav {
	margin: 0 0 28px;
	padding-bottom: 10px;
	border-bottom: 1px solid #d7d7d2;
	max-width: none;
}

.subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.subnav li {
	display: flex;
	margin: 0;
	max-width: none;
}

.subnav a {
	display: inline-block;
	padding: 6px 0;
	color: #222;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.subnav a:hover {
	color: #000;
	text-decoration: underline;
	text-decoration-color: #ffbe05;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.subnav a[aria-current="page"] {
	color: #000;
	box-shadow: inset 0 -4px 0 #ffbe05;
}

.subnav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 18px;
}

.subnav-menu > ul:first-child {
	flex-basis: 100%;
}

.subnav .subnav-group {
	margin: 0;
	padding: 2px 8px;
	border-radius: 3px;
	background: #222;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.subnav-toggle {
	display: none;
}

@media (max-width: 700px) {

	.js .subnav {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.js .subnav-toggle {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		position: relative;
		width: 100%;
		padding: 10px 48px 10px 16px;
		border: 1px solid #c9c9c4;
		border-radius: 6px;
		background: #fff;
		color: #222;
		font: inherit;
		text-align: left;
		cursor: pointer;
	}

	.js .subnav-toggle::after {
		content: "";
		position: absolute;
		right: 20px;
		top: 50%;
		width: 9px;
		height: 9px;
		margin-top: -7px;
		border-right: 2px solid #222;
		border-bottom: 2px solid #222;
		transform: rotate(45deg);
		transition: transform 0.15s;
	}

	.js .subnav-toggle[aria-expanded="true"] {
		border-radius: 6px 6px 0 0;
	}

	.js .subnav-toggle[aria-expanded="true"]::after {
		margin-top: -2px;
		transform: rotate(-135deg);
	}

	.js .subnav-toggle:focus-visible {
		outline: 3px solid #ffbe05;
		outline-offset: 2px;
	}

	.subnav-toggle-label {
		color: #666;
		font-size: 0.8rem;
	}

	.subnav-toggle-current {
		font-weight: 700;
	}

	.js .subnav-menu:not(.is-open) {
		display: none;
	}

	.js .subnav-menu {
		display: block;
		padding: 4px 0 8px;
		border: 1px solid #c9c9c4;
		border-top: 0;
		border-radius: 0 0 6px 6px;
		background: #fff;
	}

	.js .subnav ul {
		display: block;
	}

	.js .subnav li {
		display: block;
	}

	.js .subnav a {
		display: block;
		padding: 11px 16px;
		font-size: 1rem;
	}

	.js .subnav a[aria-current="page"] {
		box-shadow: inset 5px 0 0 #ffbe05;
		background: #f7f7f5;
	}

	.js .subnav .subnav-group {
		display: inline-block;
		margin: 10px 16px 4px;
	}
}

.check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: normal;
}

.check input {
	margin-top: 5px;
}

input[type="file"] {
	display: block;
	font: inherit;
}


.steps li {
	margin-bottom: 16px;
	max-width: 640px;
}

.qr {
	margin: 14px 0 8px;
}

.qr svg {
	display: block;
	border: 1px solid #d7d7d2;
}

.secret {
	font-family: Consolas, "Courier New", monospace;
	font-size: 1rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.codes {
	margin: 0 0 24px;
	padding: 18px 22px;
	list-style: none;
	background: #fff;
	border: 1px solid #d7d7d2;
	border-radius: 4px;
	columns: 2;
	font-family: Consolas, "Courier New", monospace;
	font-size: 1.05rem;
}


.mail-preview {
	display: block;
	width: 100%;
	max-width: 700px;
	height: 760px;
	border: 1px solid #d7d7d2;
	background: #fff;
}

input[type="date"],
input[type="datetime-local"] {
	padding: 10px 12px;
	border: 2px solid #999;
	border-radius: 4px;
	background: #fff;
	font: inherit;
}


/* A field hidden from people; only automated form-fillers complete it. */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


.doc-list {
	padding-left: 20px;
	max-width: 780px;
}

.doc-list li {
	margin-bottom: 12px;
}

.prose p,
.prose ul {
	max-width: 720px;
}

.prose li {
	margin-bottom: 8px;
}

.footer-links {
	margin-top: 12px;
}

footer a {
	color: #ffbe05;
}

.code-input {
	width: 7.5em;
	max-width: 7.5em;
}

.label {
	display: block;
	margin-bottom: 6px;
	font-weight: bold;
}


textarea {
	display: block;
	width: 100%;
	max-width: 700px;
	padding: 11px 12px;
	border: 2px solid #999;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font: inherit;
}

textarea:focus {
	outline: 3px solid #ffbe05;
	outline-offset: 2px;
}


/* PANELS AND NOTICES */

.panel {
	background: #fff;
	border-top: 4px solid #ffbe05;
	border-radius: 4px;
	padding: 26px 28px;
	margin-bottom: 28px;
}

.panel > :last-child {
	margin-bottom: 0;
}

.panel h2 {
	font-size: 1.25rem;
}

.notice {
	background: #fff8e0;
	border-left: 5px solid #ffbe05;
	padding: 14px 18px;
	margin-bottom: 24px;
	max-width: 780px;
}

.notice--error {
	background: #fdecec;
	border-left-color: #b3261e;
}

.muted {
	color: #666;
	font-size: 0.9rem;
}


/* FORMS AND BUTTONS */

label {
	display: block;
	margin-bottom: 6px;
	font-weight: bold;
}

input[type="email"],
input[type="text"],
input[type="search"],
select {
	width: 100%;
	max-width: 420px;
	padding: 11px 12px;
	border: 2px solid #999;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font: inherit;
}

input:focus,
select:focus,
.button:focus {
	outline: 3px solid #ffbe05;
	outline-offset: 2px;
}

.field {
	margin-bottom: 20px;
}

.field-error {
	margin-top: 6px;
	color: #b3261e;
	font-weight: bold;
}

.button {
	display: inline-block;
	padding: 13px 24px;
	border: 2px solid #222;
	border-radius: 4px;
	background: #222;
	color: #fff;
	font: inherit;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: #ffbe05;
	border-color: #ffbe05;
	color: #111;
}

.button--primary {
	background: #ffbe05;
	border-color: #ffbe05;
	color: #111;
}

.button--primary:hover {
	background: #222;
	border-color: #222;
	color: #fff;
}

.button--quiet {
	background: #fff;
	color: #222;
}

.choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin: 28px 0;
}

.choice {
	background: #fff;
	border: 1px solid #d7d7d2;
	border-radius: 4px;
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.choice h2 {
	font-size: 1.2rem;
}

.choice p {
	flex: 1;
}

.inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 24px;
}

.inline-form .field {
	margin-bottom: 0;
}


/* DATA */

.details {
	margin: 0 0 8px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 8px 20px;
}

.details dt {
	font-weight: bold;
}

.details dd {
	margin: 0;
}

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.stats li {
	background: #fff;
	border-top: 4px solid #ffbe05;
	border-radius: 4px;
	padding: 16px 18px;
}

.stat-number {
	display: block;
	font-size: 1.9rem;
	font-weight: bold;
	line-height: 1.1;
}

.table-wrap {
	overflow-x: auto;
	margin-bottom: 24px;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

th,
td {
	padding: 10px 14px;
	border-bottom: 1px solid #e2e2dd;
	text-align: left;
	vertical-align: top;
}

th {
	background: #222;
	color: #fff;
	font-size: 0.85rem;
	white-space: nowrap;
}

.tag {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 10px;
	background: #e2e2dd;
	font-size: 0.82rem;
	font-weight: bold;
	white-space: nowrap;
}

.tag--active {
	background: #d8f0d8;
	color: #14521a;
}

.tag--unconfirmed {
	background: #fff0c2;
	color: #6b4e00;
}

.tag--ceased,
.tag--deceased {
	background: #e4e4e4;
	color: #555;
}

.pager {
	display: flex;
	gap: 16px;
	align-items: center;
}

@media (max-width: 700px) {

	.choices {
		grid-template-columns: 1fr;
	}

	.details {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.details dd {
		margin-bottom: 10px;
	}

	.nav-end {
		margin-left: 0;
	}
}

/* NEWS (App\Support\News; cards in news/partials/card, pictures in news/partials/figure) */

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

.news-list {
	display: grid;
	gap: 22px;
	max-width: 900px;
	margin-bottom: 24px;
}

.news-card {
	display: grid;
	grid-template-columns: 300px 1fr;
	background: #fff;
	border: 1px solid #d7d7d2;
	border-radius: 4px;
	overflow: hidden;
}

.news-card--text {
	grid-template-columns: 1fr;
	border-left: 5px solid #ffbe05;
}

.news-card-image {
	position: relative;
	display: block;
	min-height: 190px;
	background: #e9e9e4;
}

.news-card-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card-image .photo-credit,
.news-figure-frame .photo-credit {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 2px 8px;
	background: rgba(0, 0, 0, 0.55);
	color: rgba(255, 255, 255, 0.9);
}

.news-card-body {
	padding: 22px 26px 20px;
}

.app-main .news-date,
.news-date {
	margin: 0 0 6px;
	font-size: 0.8rem;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #666;
}

.news-flag {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	border-radius: 3px;
	background: #ffbe05;
	color: #111;
}

.news-flag-note {
	margin-left: 6px;
	font-weight: normal;
	letter-spacing: 0;
	text-transform: none;
}

.news-card-title {
	margin: 0 0 10px;
	font-size: 1.35rem;
	line-height: 1.25;
}

.news-card-title::after {
	display: none;
}

.news-card-title a {
	color: #1b1b1b;
	text-decoration: none;
}

.news-card-title a:hover,
.news-card-title a:focus {
	text-decoration: underline;
	text-decoration-color: #ffbe05;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.app-main .news-card-summary,
.news-card-summary {
	margin: 0 0 14px;
	color: #333;
}

.news-more {
	font-weight: bold;
	color: #725500;
	text-decoration: none;
}

.news-more::after {
	content: " \2192";
}

.news-more:hover,
.news-more:focus {
	text-decoration: underline;
}

.news-all {
	font-weight: bold;
}

.app-main .news-back,
.news-back {
	margin-bottom: 18px;
	font-size: 0.9rem;
}

.news-back a::before {
	content: "\2190\00a0";
}

.news-figure {
	max-width: 780px;
	margin: 0 0 28px;
}

.news-post .news-date {
	margin-bottom: 18px;
}

.news-figure-frame {
	position: relative;
}

.news-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.news-figure figcaption {
	margin-top: 8px;
	font-size: 0.9rem;
	color: #555;
}

@media (max-width: 700px) {
	.news-card {
		grid-template-columns: 1fr;
	}

	.news-card-image {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.news-card-body {
		padding: 18px 20px;
	}
}

/* Board news editor */
.preview-frame {
	background: #fff;
	border: 1px solid #d7d7d2;
	border-radius: 4px;
	padding: 8px 24px 16px;
	max-width: 780px;
}

fieldset.field {
	border: 0;
	padding: 0;
	margin-left: 0;
}

fieldset.field label {
	display: inline;
	font-weight: normal;
}

fieldset.field label.field-label {
	display: block;
	margin: 16px 0 6px;
	font-weight: bold;
}

.picture-fields {
	max-width: 700px;
}

.picture-current {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 8px;
}

.picture-current img,
.picture-preview {
	max-width: 240px;
	height: auto;
	border-radius: 4px;
	border: 1px solid #d7d7d2;
}

.picture-preview {
	display: block;
	margin-top: 10px;
}
