/* Japanese-first: kana/kanji use the device's Japanese fonts (no download).
   Pages are lang="en" with embedded kanji; without this, some systems fall
   back to Chinese fonts and show Chinese glyph forms. On Windows, prefer
   Yu Gothic Medium / Meiryo over the thin default Yu Gothic Regular. */
@font-face {
	font-family: 'ISS Japanese';
	font-weight: 100 500;
	src: local('Hiragino Sans W3'), local('HiraginoSans-W3'),
	     local('Hiragino Kaku Gothic ProN W3'), local('HiraKakuProN-W3'),
	     local('Yu Gothic Medium'), local('YuGothic-Medium'),
	     local('Meiryo'),
	     local('Noto Sans CJK JP Regular'), local('NotoSansCJKjp-Regular'),
	     local('Noto Sans JP Regular'), local('NotoSansJP-Regular');
	unicode-range: U+3000-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
	font-family: 'ISS Japanese';
	font-weight: 600 900;
	src: local('Hiragino Sans W6'), local('HiraginoSans-W6'),
	     local('Hiragino Kaku Gothic ProN W6'), local('HiraKakuProN-W6'),
	     local('Yu Gothic Bold'), local('YuGothic-Bold'),
	     local('Meiryo Bold'), local('Meiryo-Bold'),
	     local('Noto Sans CJK JP Bold'), local('NotoSansCJKjp-Bold'),
	     local('Noto Sans JP Bold'), local('NotoSansJP-Bold');
	unicode-range: U+3000-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

body {
	background-color: #FDFDED;
	margin: 0;
	font-family: 'ISS Japanese', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
	font-size: 18px;
	font-weight: 400;
}

.table_noborder {
	border: none;
	margin-left: auto;
	margin-right: auto;
}

td {
	vertical-align: top;
	text-align: left;
	padding: 10px;
}

/* Link colors — dark gold to match site palette */
a:link {
	text-decoration: none;
	color: #8B6914;
}

a:visited {
	text-decoration: none;
	color: #8B6914;
}

a:hover {
	text-decoration: underline;
	color: #5e4609;
}

a:active {
	text-decoration: underline;
	color: #5e4609;
}

.profile_image {
	width: auto;
	height: 300px;
}

@media screen and (max-width: 750px) {
	.profile_image {
		width: 60%;
		height: auto;
	}
}

.profile_placeholder_person {
	display: block;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: 0 auto 8px;
	background: #e0d8c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='18' fill='%23c0b898'/%3E%3Cellipse cx='50' cy='85' rx='30' ry='22' fill='%23c0b898'/%3E%3C/svg%3E") center/cover;
}

.profile_placeholder_album {
	display: block;
	width: 150px;
	height: 150px;
	margin: 0 auto 8px;
	background: #e0d8c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23c0b898'/%3E%3Ccircle cx='50' cy='50' r='15' fill='%23e0d8c0'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%23c0b898'/%3E%3C/svg%3E") center/cover;
}

.index_list_album {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 4px;
	border-radius: 4px;
	background: #e0d8c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23c0b898'/%3E%3Ccircle cx='50' cy='50' r='15' fill='%23e0d8c0'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%23c0b898'/%3E%3C/svg%3E") center/cover;
}

.profile_placeholder_piece {
	display: block;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: 0 auto 8px;
	background: #e0d8c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M65 20v40c0 0-3-3-10-3-8 0-15 5-15 12s7 12 15 12 15-5 15-12V32l15-5V15L65 20z' fill='%23c0b898'/%3E%3C/svg%3E") center/cover;
}

.mysearchbar {
	background-color: #FFCC66;
}

/* Page structure DIV based layout */
.flex-container {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* User links bar (top-right, Wikipedia-style) */
#user-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	padding: 0.15rem 1rem 0.1rem;
	background-color: #FFCC66;
	font-size: 1rem;
}

#user-links a {
	color: #333;
}

#user-links a.join-pill {
	border: 1.5px solid #8b6914;
	border-radius: 999px;
	padding: 1px 12px;
	font-weight: 600;
	color: #5e4609;
	white-space: nowrap;
}

@media screen and (max-width: 480px) {
	#user-links {
		gap: 0.6rem;
		font-size: 0.9rem;
		padding: 0.15rem 0.6rem 0.1rem;
	}

	#user-links a.join-pill {
		padding: 1px 9px;
	}
}

#user-links a.join-pill:hover {
	background-color: #8b6914;
	color: #fff;
	text-decoration: none;
}

#user-links .fb-icon {
	display: inline-flex;
}

#user-links .fb-icon svg {
	vertical-align: middle;
}

/* Language dropdown */
.lang-dropdown {
	position: relative;
}

.lang-dropdown summary {
	cursor: pointer;
	list-style: none;
	color: #333;
	font-weight: 600;
	padding: 2px 4px;
}

.lang-dropdown summary::-webkit-details-marker {
	display: none;
}

.lang-dropdown summary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.lang-dropdown .globe-icon {
	flex-shrink: 0;
}

.lang-dropdown summary::after {
	content: " \25BE";
	font-size: 0.8em;
}

.lang-dropdown-menu {
	position: absolute;
	right: 0;
	top: 100%;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 100;
	min-width: 120px;
	padding: 4px 0;
	margin-top: 4px;
}

.lang-dropdown-menu a {
	display: block;
	padding: 6px 14px;
	color: #333;
	white-space: nowrap;
}

.lang-dropdown-menu a:hover {
	background: #FFCC66;
	text-decoration: none;
}

.lang-dropdown-menu a.lang-active {
	font-weight: 700;
}

/* Order 1 */
#header {
	display: flex;
	align-items: center;
	font-weight: 700;
	padding: 0 1rem;
	background-color: #FFCC66;
	width: 100%;
	box-sizing: border-box;
}

.sub_header {
	text-align: center;
	font-weight: bold;
	font-size: 150%;
	width: 100%;
}

#banner-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

/* The logo is taller than the header. Negative margins let it rise into the
   empty left side of the #user-links bar (~28px, same yellow) and dip into
   the 8px top padding of .topnav, so the yellow area keeps its height.
   Room left: ~6px above, ~2px above the nav links. Phones (<=750px) skip
   the overlap because the user links span nearly the full width there. */
#banner {
	height: 128px;
	margin-top: -22px;
	margin-bottom: -6px;
	width: auto;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

#banner-txt {
	padding-left: 0.75rem;
	font-size: 2.6rem;
	white-space: nowrap;
	line-height: 1.2;
}

.banner-subtitle {
	display: block;
	font-size: 0.55em;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.6);
	letter-spacing: 0.05em;
}

@media screen and (max-width: 960px) {
	#banner {
		height: 103px;
		margin-top: -22px;
		margin-bottom: -6px;
	}

	#banner-txt {
		font-size: 1.2rem;
	}
}

@media screen and (max-width: 750px) {
	#banner {
		height: 55px;
		margin-top: 0;
		margin-bottom: 0;
	}

	#banner-txt {
		font-size: 1rem;
		padding-left: 0.5rem;
	}

	.search_bar {
		display: none;
	}
}

@media screen and (max-width: 480px) {
	#banner {
		height: 40px;
	}

	#banner-txt {
		font-size: 0.85rem;
	}

	.banner-subtitle {
		display: none;
	}
}

#logo {
	width: 10%;
	padding: 5px 10px 0px 10px;
	float: left;
}

/* Order 2 */
.flex-inner_container {
	display: flex;
	flex-direction: column;
	background-color: #FDFDED;
	width: 100%;
}

/* Order 1 */
#navbar {
	background-color: #FFCC66;
	text-transform: uppercase;
	width: 100%;
}

.search_bar {
	margin-left: auto;
	padding: 0 16px 3px;
	border: none;
	background-color: transparent;
	display: flex;
	align-items: center;
}

.search_bar form {
	display: flex;
	align-items: stretch;
}

.search_bar input[type="text"] {
	padding: 6px 12px;
	border: 1px solid #b8901f;
	border-right: none;
	border-radius: 6px 0 0 6px;
	font-size: 15px;
	font-family: inherit;
	width: 240px;
	height: 36px;
	box-sizing: border-box;
	background: #fff;
	color: #333;
}

.search_bar input[type="text"]:focus {
	outline: 2px solid #8b6914;
	outline-offset: -1px;
}

.search_bar input[type="text"]::placeholder {
	color: #777;
}

.search_bar button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
	border: 1px solid #b8901f;
	border-radius: 0 6px 6px 0;
	background: #8b6914;
	color: #fff;
	cursor: pointer;
	padding: 0;
}

.search_bar button:hover {
	background: #5e4609;
}

/* Order 2 */
#content {
	padding: 0px 20px 15px 20px;
	background-color: #FDFDED;
}

.content-prose {
	max-width: 960px;
	margin: 0 auto;
	position: relative;
}

.content-prose h1,
.content-prose h2,
.content-prose h3 {
	border-left: 4px solid #FFCC66;
	background: rgba(255, 204, 102, 0.15);
	padding: 0.4em 0.6em;
	margin: 1.5em 0 0.6em;
	line-height: 1.3;
}

.content-prose h1 {
	font-size: 1.5em;
	margin-top: 1.25em;
}

.content-prose h2 {
	font-size: 1.3em;
}

.content-prose .anchor-link {
	margin-left: 0.4em;
	font-size: 0.7em;
	opacity: 0;
	text-decoration: none;
	color: #8b7a4a;
	vertical-align: middle;
	transition: opacity 0.2s;
}

.content-prose :is(h1, h2, h3):hover .anchor-link,
.content-prose .anchor-link:focus-visible {
	opacity: 1;
}

.content-prose .anchor-link:hover {
	color: #5e4609;
}

/* Links inside running text get a faint underline so they stand out from prose */
.content-prose :is(p, li) a:not(.cta-btn) {
	text-decoration: underline;
	text-decoration-color: rgba(139, 105, 20, 0.4);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.content-prose :is(p, li) a:not(.cta-btn):hover {
	text-decoration-color: currentColor;
}

.content-prose .pieces_list .pieces_list_item a {
	text-decoration: none;
}

.content-prose ul {
	display: flow-root;
}

/* Homepage intro: illustration column beside the welcome text */
.home-intro {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 0 1.75em;
	align-items: start;
}

.home-intro-art {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
	margin-top: 0.25em;
}

.home-intro-text > p:first-child {
	margin-top: 0;
}

@media screen and (max-width: 750px) {
	.home-intro {
		grid-template-columns: 1fr;
	}

	.content-prose h1 {
		font-size: 1.3em;
	}

	.home-intro-art {
		width: 110px;
		justify-self: center;
		margin-bottom: 0.5em;
	}
}

.president-signoff {
	display: inline-block;
	margin: 0.5em 0 1em;
}

.president-signoff .index_list_thumb {
	margin: 0 0 4px;
}

.cta-btn {
	display: inline-block;
	padding: 0.5em 1.4em;
	border-radius: 999px;
	background: #8b6914;
	font-family: inherit;
	font-size: 0.95em;
	font-weight: 600;
}

a.cta-btn:link,
a.cta-btn:visited {
	color: #fff;
	text-decoration: none;
}

a.cta-btn:hover {
	background: #5e4609;
	color: #fff;
	text-decoration: none;
}

.video-caption {
	max-width: 640px;
	margin-top: 0.4em;
	font-size: 0.9em;
	color: #555;
}

.content_center {
	text-align: center;
}

/* Footer */
footer {
	border-top: 1px solid #ccc;
	margin-top: 1.5em;
	padding-top: 0.75em;
	width: 100%;
}

.footer-nav {
	font-size: 15px;
	width: 100%;
}

.footer-nav .listHorizontal {
	justify-content: center;
	gap: 0.4em 2em;
	padding: 5px 16px 10px;
}

.footer-copyright {
	text-align: center;
	width: 100%;
}


/* Homepage komuso illustrations, floated beside the welcome prose (legacy layout) */
.homepage_image_left,
.homepage_image_right {
	height: auto;
	min-width: 90px;
	/* GIFs have opaque white backgrounds; blend them into the cream page */
	mix-blend-mode: multiply;
}

.homepage_image_left {
	float: left;
	width: 17%;
	max-width: 170px;
	margin: 0.25em 1.25em 0.5em 0;
}

.homepage_image_right {
	float: right;
	width: 20%;
	max-width: 200px;
	margin: 0.25em 0 0.5em 1.25em;
}

.homepage_clear {
	clear: both;
}

/* Responsive video embeds */
.video-container {
	max-width: 640px;
	margin: 1em 0;
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

#content iframe {
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* MP3 Play Button */
.play {
	height: 15px;
	width: 15px;
}

/* Tables in general */
.iss-table {
	border-collapse: collapse;
	width: 100%;
}

.iss-table th,
.iss-table td {
	padding: 12px 10px;
	border: none;
	border-bottom: 1px solid #e8e0d0;
}

.iss-table-noborder,
.iss-table-noborder th,
.iss-table-noborder td {
	padding: 7px;
	border: 0px;
}

.iss-table-tight,
.iss-table-tight th,
.iss-table-tight td {
	padding: 0px 20px 4px 0px;
	border: 0px;
	margin-left: auto;
	margin-right: auto;
}

.iss-table th {
	background-color: transparent;
	text-align: left;
	vertical-align: top;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #8b6914;
	border-bottom: 2px solid #d4c9a8;
}

/* sortable.css (loaded later) strips padding/borders from table.sortable cells;
   keep the iss-table row separation on sortable tables (bibliography, term_edit) */
table.iss-table.sortable td {
	padding: 8px 10px;
	border-bottom: 1px solid #e8e0d0;
}

.iss-table tr:hover td {
	background-color: #faf6ee;
}

@media screen and (max-width: 750px) {
	.table_noborder {
		table-layout: fixed;
		width: 100%;
	}

	.iss-table-noborder {
		table-layout: fixed;
		width: 100%;
	}

	.iss-table-tight {
		table-layout: fixed;
		width: 100%;
	}

}

/* Used for laying out most collections of data */
.listHorizontal {
	font-size: 100%;
	padding: 5px 0px 15px 0px;
	margin: 0;
	justify-content: space-evenly;
	padding-left: 0;
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
}

/* For list of filter categories that appear at the top of pages like people, pieces, albums */
.category_list_item {
	padding: 5px 0px 10px 0px;
	width: 100px;
	max-width: 100px;
	display: inline-block;
	border: none;

}

/* List of letters that appear at the top of the page */
.index_index {
	padding: 0px 0px 20px 0px;
	text-align: left;
	text-transform: uppercase;
	width: 30px;
	max-width: 30px;
	display: inline-block;
	border: none;
}

/* For mass displays of database data on people and pieces pages */
/*  Container for DB dump list items */
.index_list {
	padding: 5px 0px 15px 0px;
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

/* Header (letter) that appears at the start of a section of a DB dump of list items */
.index_list_index {
	padding: 0.4em 0.6em;
	margin: 1.5em 0 0.5em;
	text-align: left;
	font-weight: bold;
	font-size: 125%;
	text-transform: uppercase;
	border-left: 4px solid #FFCC66;
	background: rgba(255, 204, 102, 0.15);
}

/* DB dump list item */
.index_list_item {
	padding: 5px 5px 10px 5px;
	text-align: center;
	vertical-align: top;
	width: 130px;
	max-width: 130px;
	display: inline-block;
}

.index_list_thumb {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 4px;
	background: #e0d8c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='18' fill='%23c0b898'/%3E%3Cellipse cx='50' cy='85' rx='30' ry='22' fill='%23c0b898'/%3E%3C/svg%3E") center/cover;
}

.index_list_icon {
	display: block;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin: 0 auto 4px;
	background: #e0d8c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M65 20v40c0 0-3-3-10-3-8 0-15 5-15 12s7 12 15 12 15-5 15-12V32l15-5V15L65 20z' fill='%23c0b898'/%3E%3C/svg%3E") center/cover;
}

/* Pieces index — inline metadata list */
.pieces_list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pieces_list_item {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 6px 10px;
	border-bottom: 1px solid #f0ead4;
}

.pieces_list_item:hover {
	background: #faf6e8;
}

.pieces_list_item a {
	font-weight: 500;
	white-space: nowrap;
}

.pieces_list_meta {
	color: #999;
	font-size: 0.85em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Two-column variant (pieces index): flows down then across */
.pieces_list_columns {
	column-count: 2;
	column-gap: 32px;
}

.pieces_list_columns .pieces_list_item {
	break-inside: avoid;
}

.pieces_list_columns .pieces_list_item a {
	white-space: normal;
	flex: 0 1 auto;
}

.pieces_list_columns .pieces_list_meta {
	flex: 1 1 0;
	min-width: 5em;
}

@media screen and (max-width: 750px) {
	.pieces_list_columns {
		column-count: 1;
	}
}

/* DB dump list item for teachers list and membership roster */
.roster_list_item {
	padding: 5px 5px 30px 5px;
	text-align: center;
	vertical-align: top;
	width: 250px;
	max-width: 250px;
	height: 275px;
	display: inline-block;
	/* border:			1px solid black; */
	/* background-color: yellow; */
}

/* Roster gallery images */
.roster_gallery_person {
	border: 0;
	height: 200px;
	max-height: 200px;
	max-width: 200px;
}

/* For photo gallery bulk display item like people photos, album covers */
.photo_gallery_item {
	padding: 5px 10px 20px 10px;
	width: 100px;
	max-width: 100px;
	font-size: 80%;
	display: inline-block;
	border: none;
}

/* Album cover gallery images */
.photo_gallery_album {
	border: 0;
	height: 100px;
	width: 100px;
	max-height: 100px;
	max-width: 100px;
	display: block;
	margin-left: auto;
	margin-right: auto;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	object-fit: cover;
}

@media screen and (max-width: 750px) {
	.photo_gallery_album {
		width: 60px;
		height: 60px;
		max-width: 60px;
		max-height: 60px;
		display: block;
		object-fit: cover;
	}

	.index_list_album {
		width: 60px;
		height: 60px;
	}
}

/* Album cover full size images */
.photo_album {
	border: 2px solid black;
	height: 216px;
	width: 216px;
	max-height: 216px;
	max-width: 216px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* People gallery images */
.photo_gallery_person {
	border: 0;
	height: 100px;
	max-height: 100px;
	max-width: 100px;
}

/* MAIN NAV */
.topnav {
	background-color: #FFCC66;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	clear: both;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding-top: 8px;
}

.topnav a {
	color: #333;
	text-align: center;
	padding: 12px 18px;
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
	display: flex;
	align-items: center;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	transition: background-color 0.15s, border-color 0.15s;
}

.topnav a:hover {
	background-color: #f0be4a;
	border-bottom-color: #8b6914;
	color: #222;
}

.topnav a.active {
	background-color: #FDFDED;
	border-bottom-color: #8b6914;
	color: #222;
	font-weight: 600;
}

.topnav .icon {
	display: none;
}

/* Resources dropdown (in topnav) */
.nav-dropdown {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-dropdown summary {
	cursor: pointer;
	list-style: none;
	color: #333;
	padding: 12px 18px;
	font-size: 18px;
	font-weight: 500;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	display: flex;
	align-items: center;
	transition: background-color 0.15s, border-color 0.15s;
}

.nav-dropdown summary::-webkit-details-marker {
	display: none;
}

.nav-dropdown summary::after {
	content: "\25BE";
	font-size: 0.7em;
	margin-left: 6px;
	vertical-align: middle;
}

.nav-dropdown summary:hover {
	background-color: #f0be4a;
	border-bottom-color: #8b6914;
}

.nav-dropdown.active summary {
	background-color: #FDFDED;
	border-bottom-color: #8b6914;
	font-weight: 600;
}

.nav-dropdown-menu {
	position: absolute;
	left: 0;
	top: 100%;
	background: #FFCC66;
	border: 1px solid #d4a840;
	border-top: none;
	z-index: 1000;
	min-width: 180px;
	padding: 4px 0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.nav-dropdown-menu a {
	display: block;
	padding: 10px 18px;
	color: #333;
	white-space: nowrap;
	font-size: 18px;
	text-decoration: none;
	border-bottom: none !important;
}

.nav-dropdown-menu a:hover {
	background-color: #f0be4a;
}

.nav-dropdown-menu a.active {
	background-color: #FDFDED;
	font-weight: 600;
}

/* SUBNAV FILTER BAR */
.subnav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 16px;
	background-color: #f5f0e8;
	border-bottom: 1px solid #e0d9cc;
}

.subnav a {
	color: #555;
	padding: 5px 14px;
	text-decoration: none;
	font-size: 13px;
	white-space: nowrap;
	border-radius: 16px;
	border: 1px solid #d5cfc5;
	background: #fff;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.subnav a:hover {
	background-color: #FFCC66;
	border-color: #FFCC66;
	color: #333;
	text-decoration: none;
}

.subnav a.active {
	background-color: #FFCC66;
	border-color: #e6b84d;
	color: #333;
	font-weight: 600;
}

.subnav-label {
	font-size: 11px;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 4px 2px 10px;
	margin-left: 6px;
	border-left: 1px solid #d5cfc5;
}

.subnav-label:first-child {
	margin-left: 0;
	border-left: none;
	padding-left: 4px;
}

/* Subnav mobile */
@media screen and (max-width: 750px) {
	.subnav {
		padding: 8px 12px;
	}

	.subnav a {
		font-size: 12px;
		padding: 4px 10px;
	}

	.subnav-label {
		font-size: 10px;
	}
}

/* Topnav mobile hamburger menu */
@media screen and (max-width: 750px) {
	.topnav a:not(:first-child):not(.icon) {
		display: none;
	}

	.topnav a.icon {
		margin-left: auto;
		display: block;
		color: #333;
		border-bottom: none;
	}

	.topnav.responsive {
		flex-direction: column;
		align-items: stretch;
	}

	.topnav.responsive a:not(.icon) {
		display: block;
		text-align: left;
		border-bottom: 1px solid #d4a840;
	}

	.topnav.responsive a.icon {
		border-bottom: none;
	}

	.search_bar {
		display: none;
	}

	.topnav.responsive .search_bar {
		display: flex;
		margin-left: 0;
		padding: 8px 18px;
	}

	.topnav.responsive .search_bar input[type="text"] {
		width: 100%;
	}

	.nav-dropdown {
		display: none;
		width: 100%;
	}

	.topnav.responsive .nav-dropdown {
		display: block;
	}

	.topnav {
		position: relative;
	}

	.topnav.responsive a.icon {
		position: absolute;
		top: 8px;
		right: 0;
		padding: 12px 18px;
	}

	/* Mobile: Resources is a static group label; navToggle() opens the <details> */
	.nav-dropdown summary {
		display: none;
	}

	.topnav.responsive .nav-dropdown summary {
		display: block;
		pointer-events: none;
		padding: 14px 18px 4px;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #6b5310;
		border-bottom: none;
		background: none;
	}

	.topnav.responsive .nav-dropdown summary::after {
		content: none;
	}

	.nav-dropdown-menu {
		position: static;
		border: none;
		padding: 0;
		min-width: auto;
		box-shadow: none;
		display: none;
	}

	.topnav.responsive .nav-dropdown-menu {
		display: block;
	}

	.topnav.responsive .nav-dropdown-menu a {
		padding: 12px 18px;
		border-bottom: 1px solid #d4a840;
		font-size: 15px;
	}
}

/* Class to hide elements on mobile */
@media screen and (max-width: 750px) {
	.hide_me {
		display: none;
	}
}

/* Class to hide elements on desktop (visible on mobile) */
@media screen and (min-width: 751px) {
	.hide_me_d {
		display: none;
	}
}

/* Class to highlight the current page */
.active_menu {
	font-weight: bold;
}

input:invalid {
	border: 2px dashed red;
}

input:valid {
	border: 1px solid black;
}

/* ── Edit buttons (available globally for detail/index pages) ── */
.edit-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.edit-btn-primary {
  background-color: #FFCC66;
  color: #333;
  border: 1px solid #c9a830;
}
.edit-btn-primary:hover {
  background-color: #f0be4a;
  border-color: #b89820;
}

.edit-btn-secondary {
  background-color: #fff;
  color: #666;
  border: 1px solid #ccc;
}
.edit-btn-secondary:hover {
  background-color: #f5f0e8;
  border-color: #999;
}

.edit-btn-danger {
  background-color: #fff;
  color: #c0392b;
  border: 1px solid #e0c0bc;
}
.edit-btn-danger:hover {
  background-color: #fdf0ee;
  border-color: #c0392b;
}

/* Small variant for inline edit links (track edit, term edit, etc.) */
.edit-btn-sm {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 3px;
}

/* Anchor styled as button */
a.edit-btn {
  display: inline-block;
  text-decoration: none;
}
a.edit-btn:hover {
  text-decoration: none;
}

/* Container for edit actions on detail/index pages */
.edit-actions-bar {
  margin: 1em 0;
  text-align: center;
}

/* Member's Section heading on detail pages */
.edit-member-section {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b6914;
  border-top: 2px solid #d4c9a8;
  padding-top: 12px;
  margin-top: 1.5em;
  margin-bottom: 10px;
}
