:root {
	color-scheme: light;
	--navy: #3b5690;
	--navy-dark: #2c4170;
	--tan: #a69e7a;
	--tan-light: #f4f2ea;
	--text: #1f2430;
	--muted: #5f6673;
	--line: #d9dbe0;
	--bg: #f7f7f5;
	--card: #fff;
	--ok: #1f6b3a;
	--ok-bg: #e7f4ec;
	--ok-line: #a9d6b9;
	--bad: #a32020;
	--bad-bg: #fbeaea;
	--bad-line: #e4a5a5;
	--bad-text: #6d1414;
	--warn-bg: #fff6dc;
	--warn-line: #e5c35a;
	--warn-text: #6b5300;
	--info-bg: #e6ecf8;
	--button: #3b5690;
	--button-hover: #2c4170;
	--button-text: #fff;
	--danger: #a32020;
	--field-line: #b9bdc6;
	--focus: #9fb3dd;
	--shadow: rgba(20, 30, 50, .18);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	line-height: 1.45;
}
/* Dark mode: when the device asks for it (unless someone chose Light), or
   when someone chose Dark under My account. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--navy: #9db4e8;
		--navy-dark: #d3ddf3;
		--tan: #8a835f;
		--tan-light: #2b2d2a;
		--text: #e6e8ec;
		--muted: #a8aeb9;
		--line: #3a3f49;
		--bg: #121418;
		--card: #1c1f25;
		--ok: #7fd6a0;
		--ok-bg: #15301f;
		--ok-line: #2f6a43;
		--bad: #f39a9a;
		--bad-bg: #3a1a1c;
		--bad-line: #7a3336;
		--bad-text: #f8c4c4;
		--warn-bg: #352d12;
		--warn-line: #8a7330;
		--warn-text: #f0d58a;
		--info-bg: #1f2a44;
		--button: #4a67a8;
		--button-hover: #3b5690;
		--button-text: #fff;
		--danger: #b42a2a;
		--field-line: #59606c;
		--focus: #6f8ccc;
		--shadow: rgba(0, 0, 0, .5);
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--navy: #9db4e8;
	--navy-dark: #d3ddf3;
	--tan: #8a835f;
	--tan-light: #2b2d2a;
	--text: #e6e8ec;
	--muted: #a8aeb9;
	--line: #3a3f49;
	--bg: #121418;
	--card: #1c1f25;
	--ok: #7fd6a0;
	--ok-bg: #15301f;
	--ok-line: #2f6a43;
	--bad: #f39a9a;
	--bad-bg: #3a1a1c;
	--bad-line: #7a3336;
	--bad-text: #f8c4c4;
	--warn-bg: #352d12;
	--warn-line: #8a7330;
	--warn-text: #f0d58a;
	--info-bg: #1f2a44;
	--button: #4a67a8;
	--button-hover: #3b5690;
	--button-text: #fff;
	--danger: #b42a2a;
	--field-line: #59606c;
	--focus: #6f8ccc;
	--shadow: rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 960px; margin: 0 auto; padding: 1rem 16px 3rem; flex: 1; }
main.wide { max-width: 1440px; }
h1 { font-size: 1.6rem; margin: .5rem 0 .75rem; color: var(--navy-dark); }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; color: var(--navy-dark); }
a { color: var(--navy); }
code { background: var(--tan-light); padding: .1em .35em; border-radius: 4px; }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted, .opt { color: var(--muted); font-weight: normal; }
.hint { display: block; color: var(--muted); font-size: .875rem; font-weight: normal; margin: .1rem 0 .25rem; }
.lead { color: var(--muted); max-width: 46rem; }
.pre { white-space: pre-wrap; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--card); padding: .5rem .75rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* The top bar: the brand, the main links and the menu under the person's
   picture. On phones the main links move into the menu. */
.top { position: sticky; top: 0; z-index: 5; display: flex; gap: 1rem; align-items: center;
	background: var(--card); border-bottom: 3px solid var(--tan); padding: .5rem 16px; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand img { display: block; height: auto; width: 180px; }
.app-name { font-size: 1.35rem; font-weight: 700; color: var(--navy-dark); letter-spacing: .02em;
	border-left: 1px solid var(--line); padding-left: .75rem; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--navy-dark); padding: .5rem .8rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--tan-light); }
.nav a[aria-current="page"] { background: var(--tan-light); color: var(--navy); font-weight: 650; }

.menu { position: relative; flex: none; }
.menu-button { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.menu-button::-webkit-details-marker { display: none; }
.menu-button .avatar { width: 34px; height: 34px; font-size: .85rem; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.menu-button:hover .avatar, .menu[open] .menu-button .avatar, .menu-button.current .avatar { box-shadow: 0 0 0 2px var(--tan); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--button); color: var(--button-text); font-weight: 600; font-size: .95rem; }
img.avatar { object-fit: cover; background: var(--tan-light); }
.avatar.large { width: 6rem; height: 6rem; font-size: 2.4rem; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 15rem; display: flex; flex-direction: column;
	background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
	box-shadow: 0 10px 30px var(--shadow); padding: 6px; }
.menu-who { display: flex; flex-direction: column; gap: 2px; padding: .6rem .75rem; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }
.menu-who span { color: var(--muted); font-size: .85rem; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: 8px;
	color: var(--navy-dark); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--tan-light); }
.menu-panel a[aria-current="page"] { font-weight: 650; color: var(--navy); }
.menu-form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.menu-nav { display: none; }
/* The Board menu in the top bar. */
.nav-menu summary { list-style: none; cursor: pointer; font-weight: 500; color: var(--navy-dark); padding: .5rem .8rem; border-radius: 8px; white-space: nowrap; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: " ▾"; font-size: .8em; color: var(--muted); }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--tan-light); }
.nav-menu summary.current { background: var(--tan-light); color: var(--navy); font-weight: 650; }
.nav-menu .menu-panel { right: 0; min-width: 13rem; }
.menu-heading { padding: .6rem .75rem .2rem; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.menu-sub a { padding-left: 1.5rem; }
@media (max-width: 760px) {
	.nav { display: none; }
	.menu { margin-left: auto; }
	.menu-nav { display: flex; flex-direction: column; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
	.menu-panel { position: fixed; top: 4.5rem; right: 8px; max-height: calc(100vh - 5.5rem); overflow-y: auto; }
}
@media (max-width: 420px) {
	.brand img { width: 140px; }
	.app-name { font-size: 1.15rem; padding-left: .6rem; }
}

/* Tabs across the Settings pages. */
.admin-tabs { position: relative; display: flex; gap: .25rem; overflow-x: auto; overflow-y: hidden; margin: .25rem 0 1rem;
	box-shadow: inset 0 -1px 0 var(--line); scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: none; padding: .6rem .9rem; color: var(--muted); text-decoration: none; white-space: nowrap;
	border-bottom: 3px solid transparent; font-weight: 500; }
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a[aria-current="page"] { color: var(--navy-dark); border-bottom-color: var(--navy); font-weight: 650; }

.footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; padding: 1.25rem 16px;
	color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

.photo-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.photo-row form { margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; margin: 0 0 1rem; }
.card.narrow { max-width: 28rem; margin: 1rem auto; }
.card.center { max-width: 36rem; margin: 2rem auto; text-align: center; }
.claim { font-size: 1.25rem; letter-spacing: .03em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font-size: 1.15rem; font-weight: 600; color: var(--navy-dark); margin-bottom: .5rem; padding: 0; }
label { display: block; font-weight: 500; margin: 0 0 .9rem; }
label.inline { display: inline-flex; gap: .4rem; align-items: baseline; margin-right: 1rem; font-weight: normal; }
label.check { display: flex; }
input, select, textarea { font: inherit; display: block; width: 100%; margin-top: .25rem; padding: .5rem .6rem;
	border: 1px solid var(--field-line); border-radius: 6px; background: var(--card); color: var(--text); }
input[type=radio], input[type=checkbox] { width: auto; display: inline; margin: 0; }
input[type=file] { padding: .4rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
input:user-invalid, textarea:user-invalid { border-color: var(--bad); }
.radio-group { margin: 0 0 .9rem; }
.radio-group > span { display: block; font-weight: 500; margin-bottom: .25rem; }
.row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.row > label { flex: 1 1 12rem; }
.row.end { align-items: flex-end; }
.row.end > button { margin-bottom: .9rem; }
.trap { position: absolute; left: -10000px; }
label.check .hint { display: block; }
.conn { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; margin: 0 0 .9rem; }
.conn p { margin: 0 0 .4rem; }
.conn dl { margin: 0; }
code { font-size: .9em; }
.address { display: grid; grid-template-columns: 1fr 6rem 8rem; gap: 0 1rem; }
.address .field-title { grid-column: 1 / -1; font-weight: 500; margin: 0 0 .5rem; }
.address .street { grid-column: 1 / -1; }
.field-title .hint { font-weight: normal; }

button, .button { font: inherit; font-weight: 600; border-radius: 6px; padding: .55rem 1.1rem; cursor: pointer;
	border: 1px solid transparent; display: inline-block; text-decoration: none; }
.primary { background: var(--button); color: var(--button-text); }
.primary:hover { background: var(--button-hover); }
.secondary { background: var(--card); color: var(--navy); border-color: var(--navy); }
.danger { background: var(--danger); color: #fff; }
button.link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 500; text-decoration: underline; }

.flash, .error, .warn { border-radius: 8px; padding: .75rem 1rem; margin: 0 0 1rem; }
.flash { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.error { background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad-text); }
.error p, .flash p, .warn p { margin: 0 0 .35rem; }
.error ul { margin: 0; padding-left: 1.25rem; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.secret { font-size: 1.1rem; user-select: all; }

table { width: 100%; border-collapse: collapse; }
table.lines { margin-bottom: 1rem; }
th, td { text-align: left; padding: .45rem .5rem; vertical-align: top; }
thead th { border-bottom: 2px solid var(--text); font-size: .9rem; }
tfoot td, tfoot th { border-top: 2px solid var(--text); font-weight: 600; }
.num { text-align: right; }
.num input { text-align: right; }
table.lines input { margin: 0; }
table.lines td:first-child { width: 11rem; }
table.lines td.num { width: 9rem; }
table.lines td.receipt { width: 15rem; }
table.lines td.receipt input { font-size: .85rem; }
.line-receipt { display: block; font-size: .85rem; }
table.lines.review td:first-child { width: auto; }
table.mileage td:first-child { width: 9.5rem; }
table.mileage td.num { width: 6rem; }
table.mileage td.receipt { width: 12rem; }
table.mileage output.mile-amount { display: block; padding: .4rem 0; white-space: nowrap; }
.total.grand { text-align: right; font-weight: 600; margin: 0; }
.total output { margin-left: .5rem; font-size: 1.1rem; }
td.total { white-space: nowrap; }
table.list { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.list thead th { border-bottom: 1px solid var(--line); background: var(--tan-light); }
table.list tbody tr + tr td { border-top: 1px solid var(--line); }
table.list td.actions { display: flex; gap: .75rem; align-items: center; }
table.list td.actions form { margin: 0; }
table.list input, table.list select { margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .8rem; text-decoration: none; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 500; }
.tabs a[aria-current] { color: var(--navy-dark); border-bottom-color: var(--navy); }
.count { background: var(--tan-light); border-radius: 999px; padding: 0 .45rem; font-size: .8rem; }
.badge { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600;
	background: var(--tan-light); color: var(--text); white-space: nowrap; }
.badge.submitted { background: var(--info-bg); color: var(--navy-dark); }
.badge.sent { background: var(--ok-bg); color: var(--ok); }
.badge.rejected, .badge.failed { background: var(--bad-bg); color: var(--bad); }
.badge.approved { background: var(--warn-bg); color: var(--warn-text); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.back { margin: .25rem 0; }
.empty { color: var(--muted); padding: 2rem 0; text-align: center; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.files { padding-left: 1.1rem; margin: 0 0 1rem; }
.files li { margin-bottom: .3rem; overflow-wrap: anywhere; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: .4rem 0; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; }
.history time { color: var(--muted); margin-right: .5rem; font-size: .9rem; }

/* The mileage table has more columns, so it stacks sooner. */
@media (max-width: 860px) {
	table.mileage thead { display: none; }
	table.mileage tr { display: block; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; margin-bottom: .6rem; background: var(--card); }
	table.mileage td { display: block; width: auto !important; padding: .25rem 0; text-align: left; }
	table.mileage td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); }
	table.mileage tfoot tr { border: 0; background: none; padding: 0; }
	table.mileage tfoot td { display: block; border: 0; text-align: left; padding: .25rem 0; }
	table.mileage .num input { text-align: left; }
}

/* Phones: tables become stacked cards. */
@media (max-width: 640px) {
	h1 { font-size: 1.35rem; }
	.card { padding: 1rem; }
	table.lines thead, table.list thead { display: none; }
	table.lines tr, table.list tr { display: block; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; margin-bottom: .6rem; background: var(--card); }
	table.list { border: 0; background: none; }
	table.list tbody tr + tr td { border-top: 0; }
	table.lines td, table.list td { display: block; width: auto !important; padding: .25rem 0; text-align: left; }
	table.lines td[data-label]::before, table.list td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); }
	table.lines tfoot tr { border: 0; background: none; padding: 0; }
	table.lines tfoot td, table.lines tfoot th { display: block; border: 0; text-align: left; padding: .25rem 0; }
	.num input { text-align: left; }
	dl { grid-template-columns: 1fr; gap: 0; }
	dd { margin-bottom: .5rem; }
	.address { grid-template-columns: 1fr 1fr; }
	.address .city { grid-column: 1 / -1; }
}

/* Landing page */
.home-title, .home-lead { text-align: center; }
.home-lead { margin: 0 auto 1.5rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 760px; margin: 0 auto; }
.choice { display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line);
	border-radius: 8px; padding: 2rem 1.5rem; color: var(--navy); text-decoration: none; text-align: center; }
.choice h2 { margin: 0; }
.choice:hover { border-color: var(--navy); box-shadow: 0 2px 8px var(--shadow); }

/* Updates */
.banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.banner form { margin: 0; }
.card > .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.card > .actions form { margin: 0; }
.notes { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; margin: 0 0 1rem; max-height: 16rem; overflow: auto; font-size: .9rem; }
input.short { max-width: 10rem; }

/* Board rules */
dl.seats { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .75rem 0; }
dl.seats div { border: 1px solid var(--line); border-radius: 6px; padding: .4rem .75rem; min-width: 9rem; }
dl.seats div.short { border-color: var(--bad); background: var(--bad-bg); }
dl.seats dt { font-size: .8rem; color: var(--muted); }
dl.seats dd { margin: 0; font-weight: 600; }
ul.problems, ul.notes { margin: .5rem 0; padding-left: 1.25rem; }
ul.problems li { color: var(--bad); }
.card.rules { border-left: 4px solid var(--bad); }
.term-form { margin-top: 1rem; }
tr.current td { background: var(--ok-bg); }

/* In dark mode the logo sits on a light patch, since its type is dark. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 6px; padding: 3px 6px; }
}
:root[data-theme="dark"] .brand img { background: #fff; border-radius: 6px; padding: 3px 6px; }

/* Appearance: Auto, Light or Dark, in the menu. */
.menu-panel .theme-switch { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .75rem; margin: 0; }
.theme-switch-label { color: var(--muted); font-size: .9rem; }
.theme-switch-buttons { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.menu-panel .theme-switch-buttons button { display: inline-block; width: auto; text-align: center; background: none; border: 0; border-radius: 999px; padding: .25rem .6rem; font: inherit; font-size: .85rem;
	color: var(--text); cursor: pointer; min-height: 0; }
.menu-panel .theme-switch-buttons button[aria-pressed="true"] { background: var(--button); color: var(--button-text); }
.theme-choice fieldset { border: 0; padding: 0; margin: 0 0 .75rem; }
label.radio { display: flex; align-items: center; gap: .5rem; font-weight: normal; margin: .3rem 0; }
label.radio input { width: auto; margin: 0; }

/* Sign-in and security. */
.passkey-login .or { display: flex; align-items: center; gap: .75rem; color: var(--muted); margin: 1rem 0 .75rem; }
.passkey-login .or::before, .passkey-login .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
button.wide { width: 100%; }
.card.recommend { border: 2px solid var(--navy); }
ul.keys { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.keys li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.qr { background: #fff; display: inline-block; padding: 10px; border-radius: 8px; margin: .5rem 0; }
.qr svg { display: block; width: 200px; height: 200px; }
.codes { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: .75rem 1rem; margin: 0 0 1rem; }
ul.code-list { columns: 2; list-style: none; padding: 0; margin: .5rem 0 0; }
ul.code-list li { margin: .2rem 0; }
ol.steps li { margin-bottom: .5rem; }
.center { text-align: center; }
.nudge { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* The board list: every term at a glance. */
.nowrap { white-space: nowrap; }
table.board-list { font-size: .9rem; }
table.board-list td { vertical-align: top; }
.current-term { font-weight: 600; }
@media (min-width: 761px) {
	table.board-list th:nth-child(1) { min-width: 10rem; }
	table.board-list th:nth-child(2) { min-width: 9rem; }
	table.board-list th:nth-child(4) { min-width: 8rem; }
	table.board-list th:nth-child(9) { min-width: 8.5rem; }
}

/* Seat counts: green when as the rules call for; hover or tap for who. */
dl.seats div.ok { border-color: var(--ok-line); background: var(--ok-bg); }
dl.seats div.ok dd { color: var(--ok); }
dl.holders div { position: relative; cursor: default; }
dl.holders div:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.holders-list { display: none; position: absolute; z-index: 5; top: 100%; left: 0; min-width: 15rem; margin: .3rem 0 0;
	padding: .5rem .75rem; list-style: none; background: var(--card); color: var(--text); border: 1px solid var(--line);
	border-radius: 6px; box-shadow: 0 4px 14px var(--shadow); font-size: .85rem; }
.holders-list li + li { margin-top: .2rem; }
dl.holders div:hover .holders-list, dl.holders div:focus-within .holders-list { display: block; }
.check { color: var(--ok); font-weight: 700; font-size: 1.1rem; }

/* Sorting and filtering a table. */
.table-filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; margin: 0 0 .75rem; }
.table-filters label { margin: 0; font-size: .85rem; }
.table-filters input, .table-filters select { margin: .2rem 0 0; }
.table-filters .shown { font-size: .85rem; color: var(--muted); margin-left: auto; }
th button.sort { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: inherit; color: inherit;
	cursor: pointer; text-align: inherit; min-height: 0; }
th button.sort::after { content: " ↕"; color: var(--muted); font-size: .8em; }
th[aria-sort="ascending"] button.sort::after { content: " ▲"; color: var(--text); }
th[aria-sort="descending"] button.sort::after { content: " ▼"; color: var(--text); }
@media (min-width: 761px) {
	.table-scroll { overflow-x: auto; }
}
@media (max-width: 760px) {
	.holders-list { position: static; min-width: 0; box-shadow: none; border: 0; padding: .25rem 0 0; background: none; }
}

/* Officers and committees. */
.inline-form { align-items: flex-end; flex-wrap: wrap; gap: .5rem 1rem; margin: .5rem 0; }
.inline-form label { margin: 0; flex: 1 1 12rem; }
.inline-form button { flex: none; }
form.inline { display: inline; margin: 0 0 0 .5rem; }
ul.plain-list { list-style: none; padding: 0; margin: .5rem 0; }
ul.plain-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.edit-details { margin-top: .75rem; }
.edit-details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
label.plain { display: inline; margin: 0; font-weight: inherit; }

/* Meeting files: the grids and each meeting's page. */
table.meeting-grid td { vertical-align: top; }
.file-link { display: block; overflow-wrap: anywhere; }
.add-file { font-size: .85rem; }
.player { display: block; width: 100%; max-width: 640px; margin: .25rem 0 .4rem; }
form.add-meeting { margin-bottom: 1rem; }
table.attendance select { width: auto; }
table.attendance input.amount { max-width: 7rem; margin-left: auto; }
select.compact { display: inline-block; width: auto; padding: .15rem .4rem; margin: 0 .25rem 0 0; font-size: .85rem; }

/* Dates: a text box and the same calendar in every browser. */
.date-field { display: flex; align-items: stretch; margin-top: .25rem; max-width: 14rem; }
.date-field .date-text { margin: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.date-field .date-open { flex: none; display: grid; place-items: center; padding: 0 .6rem; margin: 0; border-radius: 0 6px 6px 0;
	border: 1px solid var(--line); border-left: 0; background: var(--card); color: var(--navy-dark); cursor: pointer; }
.date-field .date-open:hover { background: var(--tan-light); }
td .date-field { margin: 0; max-width: none; }
.calendar { position: absolute; z-index: 30; width: 18.5rem; background: var(--card); color: var(--text); border: 1px solid var(--line);
	border-radius: 10px; box-shadow: 0 10px 30px var(--shadow); padding: .6rem; }
.cal-head { display: flex; gap: .3rem; align-items: center; margin-bottom: .4rem; }
.cal-head select { margin: 0; padding: .3rem .35rem; font-size: .9rem; }
.cal-head .cal-month { flex: 1.4; }
.cal-head .cal-year { flex: 1; }
.cal-head button { flex: none; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 6px; background: none;
	color: var(--navy-dark); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cal-head button:hover { background: var(--tan-light); }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: .75rem; color: var(--muted); font-weight: 600; text-align: center; padding: .2rem 0; border: 0; background: none; }
.cal-grid td { padding: 1px; text-align: center; border: 0; }
.cal-grid button { width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--text);
	font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.cal-grid button:hover:not(:disabled) { background: var(--tan-light); }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--navy); }
.cal-grid button.chosen { background: var(--button); color: var(--button-text); }
.cal-grid button:disabled { color: var(--muted); opacity: .4; cursor: default; }
.cal-foot { display: flex; justify-content: space-between; margin-top: .4rem; }

/* The public board meetings page, shown in a frame on another site. */
main.bare { max-width: none; padding: 1rem; }
.doc-frame { display: block; width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.doc-image { display: block; max-width: 100%; }
.public-file + .public-file { margin-top: 1rem; }
