/* ==========================================================================
   Scottish Rite Valley of Raleigh, NC -- site stylesheet
   Regal purple + antique gold, redesigned 2026-07-16
   ========================================================================== */

:root {
	--purple-950: #1a0a2e;
	--purple-900: #26123f;
	--purple-800: #3d1a66;
	--purple-700: #522488;
	--purple-600: #6b3fa0;
	--gold-700: #8a6a1f;
	--gold-600: #b8912f;
	--gold-400: #d4b45c;
	--gold-200: #e8d9a8;
	--red-700: #8a1f1f;
	--cream-50: #faf7f0;
	--cream-100: #f3ede0;
	--black: #161616;
	--ink: #2a2333;
	--ink-soft: #55506080;
	--line: #ddd2c4;
	--maxw: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 0;
	background-color: var(--purple-950);
	font-family: "Trebuchet MS", Verdana, Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
}

#wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	background-color: var(--cream-50);
	border-left: 1px solid var(--purple-950);
	border-right: 1px solid var(--purple-950);
}

h1, h2, h3, h4 {
	font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
	color: var(--black);
	font-weight: normal;
	line-height: 1.25;
}

h1 { font-size: 1.9em; margin: 0; }
h2 {
	font-size: 1.4em;
	margin: 1.1em 0 0.5em;
	padding-bottom: 0.25em;
	border-bottom: 2px solid var(--gold-400);
}
h3 { font-size: 1.15em; margin: 1em 0 0.4em; }

p { margin: 0 0 1em; text-align: left; }

a { color: var(--purple-700); font-weight: bold; text-decoration: none; }
a:hover { color: var(--gold-700); text-decoration: underline; }

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 1.5em 0;
}

table { border-collapse: separate; }
td, th { padding: 2px 4px; }
tr.row1 td, tr .row1 td { background-color: var(--cream-100); padding: 4px 6px; }
tr.row2 td, tr .row2 td { background-color: #ebe2d0; padding: 4px 6px; }

img.pic, #content img.pic { border: 1px solid var(--line); }
a img { border: 0; }

ul { padding-left: 1.4em; }
li { line-height: 1.5; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
#head {
	background: #ffffff;
}
.head-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	position: relative;
}
.fb-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1877f2;
	font-weight: bold;
	text-decoration: none;
}
.fb-link:hover { color: #0d5dc4; }
#brand {
	padding: 20px 0;
}
#brand a {
	display: flex;
	align-items: center;
	gap: 22px;
	text-decoration: none;
}
#brand img {
	width: 128px;
	height: auto;
	display: block;
	flex-shrink: 0;
}
#brand .brand-name {
	display: block;
	font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
	font-size: 3em;
	line-height: 1.1;
	color: #000000;
	letter-spacing: 0.02em;
}
#brand .brand-tagline {
	display: block;
	font-size: 1.15em;
	font-style: italic;
	color: var(--gold-700);
	margin-top: 4px;
}

/* mobile nav toggle -- checkbox hack */
#nav-toggle { display: none; }
#nav-toggle-label {
	display: none;
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	width: 32px;
	height: 26px;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
}
#nav-toggle-label span {
	display: block;
	height: 3px;
	background: var(--black);
	border-radius: 2px;
}

#nav {
	width: 100%;
	background: var(--purple-950);
	border-bottom: 3px solid var(--gold-600);
	padding: 0 16px;
}
#nav > ul {
	max-width: var(--maxw);
	margin: 0 auto;
	list-style: none;
	padding: 6px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 4px;
}
#nav li { line-height: normal; }
#nav > ul > li { position: relative; }
#nav a {
	display: block;
	color: var(--gold-200);
	font-weight: normal;
	font-size: 0.86em;
	padding: 7px 10px;
	border-radius: 3px;
	text-decoration: none;
	white-space: nowrap;
}
#nav a:hover {
	background: #800;
	color: #fff;
}
#nav a.dropdown-toggle::after {
	content: " \25BE";
	font-size: 0.85em;
}

/* Orient dropdown */
#nav .dropdown {
	display: none;
	list-style: none;
	margin: 0;
	padding: 4px 0;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 170px;
	background: var(--purple-800);
	border: 1px solid var(--purple-600);
	border-radius: 3px;
	box-shadow: 0 6px 14px rgba(0,0,0,0.35);
	z-index: 20;
}
#nav .has-dropdown:hover > .dropdown,
#nav .has-dropdown:focus-within > .dropdown {
	display: block;
}
#nav .dropdown a { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Breadcrumb bar
   --------------------------------------------------------------------- */
#bc {
	background: #fff;
	border-bottom: 1px solid var(--line);
	font-size: 0.82em;
}
#bc:has(.bc-inner:empty) {
	display: none;
}
.bc-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 6px 20px;
	color: var(--ink-soft);
}
.bc-inner a { color: var(--purple-700); font-weight: normal; }

/* ---------------------------------------------------------------------
   Main content
   --------------------------------------------------------------------- */
#content {
	background: var(--cream-50);
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 28px 40px 80px;
}

/* ---------------------------------------------------------------------
   Homepage hero
   --------------------------------------------------------------------- */
.home-hero {
	position: relative;
	margin: -28px -40px 30px;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	background-image: linear-gradient(90deg, rgba(10,5,20,0.90) 0%, rgba(10,5,20,0.65) 38%, rgba(10,5,20,0.05) 68%), url(/images/hero1.jpg);
	background-size: cover;
	background-position: center;
	padding: 40px;
}
.home-hero h1 {
	color: var(--gold-200);
	margin: 0 0 10px;
	font-size: 2.6em;
	line-height: 1.15;
}
.home-hero .hero-creed-label {
	color: #fff;
	margin: 0 0 6px;
	font-size: 1.1em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: normal;
}
.home-hero .tagline {
	margin: 0;
	font-size: 1.15em;
	font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
	font-style: italic;
	font-weight: normal;
	color: #fff;
	max-width: 560px;
}

@media print {
	body { background: #fff; }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
#footer {
	background: var(--purple-950);
	border-top: 4px solid var(--gold-600);
}
.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 18px 20px;
	text-align: center;
	color: var(--gold-200);
}
.footer-links a {
	color: var(--gold-200);
	font-weight: normal;
}
.footer-links a:hover { color: #fff; }
.footer-links .sep { color: var(--gold-700); margin: 0 4px; }
.footer-name {
	margin-top: 6px;
	font-size: 0.82em;
	color: var(--gold-700);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 700px) {
	.head-inner { padding: 10px 60px 10px 14px; }
	#brand { padding: 14px 0; }
	#brand a { gap: 14px; }
	#brand img { width: 76px; }
	#brand .brand-name { font-size: 1.9em; }
	#brand .brand-tagline { font-size: 0.9em; }
	#nav-toggle-label { display: flex; right: 14px; }
	#nav {
		display: none;
		padding: 0;
	}
	#nav-toggle:checked ~ #nav { display: block; }
	#nav > ul { max-width: none; margin: 0; padding: 4px 14px 10px; flex-direction: column; }
	#nav a { padding: 10px 6px; border-bottom: 1px solid var(--purple-800); }
	#nav .dropdown {
		display: block;
		position: static;
		border: none;
		box-shadow: none;
		background: var(--purple-900);
		padding-left: 16px;
	}
	#nav .dropdown a { padding: 8px 6px; font-size: 0.82em; }
	.bc-inner { padding: 5px 14px; }
	#content { padding: 18px 14px 50px; }
	.home-hero {
		margin: -18px -14px 20px;
		min-height: 320px;
		padding: 20px;
		background-image: linear-gradient(0deg, rgba(10,5,20,0.92) 10%, rgba(10,5,20,0.5) 55%, rgba(10,5,20,0.05) 90%), url(/images/hero1.jpg);
	}
	.home-hero h1 { font-size: 1.6em; }
	.home-hero .hero-creed-label { font-size: 0.95em; }
	.home-hero .tagline { font-size: 1em; }
}

/* ---------------------------------------------------------------------
   Degrees & Hats index page
   --------------------------------------------------------------------- */
.degree-group-label {
	display: block;
	font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
	font-size: 1.15em;
	font-weight: bold;
	margin: 1em 0 0.2em;
}
.degreenav-wrap {
	text-align: center;
	margin: 10px auto 30px;
}
.degreenav-frame {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}
.degreenav-frame img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
}
.degreenav-hot {
	position: absolute;
	display: block;
}
.degreenav-instructions {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}
.degreenav-instructions h3 {
	font-size: 1.5em;
}
.degreenav-instructions p {
	font-size: 1.2em;
	text-align: center;
}

/* ---------------------------------------------------------------------
   Content-page data tables (officer rosters, past-officer history, etc.)
   --------------------------------------------------------------------- */
table.data-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--line);
	margin-bottom: 1.2em;
}
table.data-table th,
table.data-table td {
	padding: 6px 8px;
	font-size: 0.92em;
	text-align: left;
	border-bottom: 1px solid var(--line);
}
table.data-table td:first-child { text-align: left; }
table.data-table th {
	background: #333;
	color: #fff;
	font-weight: bold;
}
table.data-table tr.row1 td { background: var(--cream-100); }
table.data-table tr.row2 td { background: #ebe2d0; }
table.data-table tbody tr:nth-child(even) td { background: var(--cream-50); }
table.data-table th.col-wide { width: 40%; }
table.data-table th.col-narrow { width: 15%; }

/* ---------------------------------------------------------------------
   Contact / RSVP forms
   --------------------------------------------------------------------- */
#form_main {
	margin: 0 auto;
	border: 3px double var(--gold-600);
	background-color: var(--cream-50);
	padding: 20px;
	padding-top: 30px;
	max-width: 480px;
}
.form_section {
	margin: 0 auto 20px;
	border: 1px solid var(--line);
	background-color: var(--cream-100);
	padding: 0 10px 10px;
	max-width: 440px;
}
.form_label {
	display: inline-block;
	border: 1px solid var(--line);
	padding: 4px 4px 4px 10px;
	position: relative;
	background-color: var(--cream-50);
	top: -10px;
	color: var(--black);
	font-weight: bold;
}
#form_main input[type="text"],
#form_main textarea {
	padding-left: 2px;
	width: 260px;
}
input.submit {
	border: 1px solid var(--purple-800);
	background-color: var(--purple-700);
	color: #fff;
	font-weight: bold;
	padding: 6px 16px;
	border-radius: 3px;
	cursor: pointer;
}
input.submit:hover { background-color: var(--purple-800); }

/* ---------------------------------------------------------------------
   Event calendar (Events page)
   --------------------------------------------------------------------- */
.events-calendar {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0 1.5em;
}
.events-calendar td {
	font-size: 1em;
	padding: 8px;
	vertical-align: top;
}
.events-calendar .ev-date {
	width: 90px;
	white-space: nowrap;
	font-weight: bold;
}
.events-calendar tr:nth-child(even) td { background: var(--cream-100); }

@media (max-width: 700px) {
	.events-calendar td { padding: 6px; font-size: 0.9em; }
	.events-calendar .ev-date { width: auto; }
}

/* ---------------------------------------------------------------------
   Small content utilities
   --------------------------------------------------------------------- */
.center-heading { text-align: center; }
.cta-button {
	display: inline-block;
	background-color: var(--purple-700);
	color: #fff;
	font-weight: bold;
	font-size: 1.1em;
	padding: 12px 28px;
	border-radius: 4px;
	text-align: center;
	text-decoration: none;
}
.cta-button:hover { background-color: var(--purple-800); color: #fff; text-decoration: none; }
.cta-center { text-align: center; margin: 1em auto; }

.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
	margin: 1em 0;
}
@media (max-width: 700px) {
	.two-col { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Individual degree pages (apron / body text / cap+symbol)
   --------------------------------------------------------------------- */
.degree-block {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 28px;
	max-width: 800px;
	margin: 1.5em auto;
}
.degree-block-apron,
.degree-block-symbols {
	flex: 0 0 auto;
	width: 170px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.degree-block-apron img,
.degree-block-symbols img {
	max-width: 170px;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	display: block;
}
.degree-block-body {
	flex: 1 1 360px;
	min-width: 280px;
}
.degree-block-body h3 {
	font-size: 1.3em;
	margin: 0 0 0.2em;
}
.degree-block-body h3 + h3 {
	font-size: 1.7em;
	margin-top: 0;
	margin-bottom: 0.5em;
}
.degree-block-body p {
	font-size: 1.15em;
	line-height: 1.65;
}

@media (max-width: 700px) {
	.degree-block {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.degree-block-apron,
	.degree-block-symbols {
		flex-direction: row;
		justify-content: center;
		width: auto;
	}
	.degree-block-apron img,
	.degree-block-symbols img {
		max-width: 140px;
	}
	.degree-block-body { min-width: 0; width: 100%; }
}

/* ---------------------------------------------------------------------
   Officers page (2x2 body grid)
   --------------------------------------------------------------------- */
.officer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 1em 0;
	align-items: start;
}
.note-center { text-align: center; }

.table-card {
	border: 1px solid var(--line);
	background: #ffffff;
	border-radius: 4px;
	padding: 16px 20px;
	margin-bottom: 1em;
}
.table-card h2 {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.officer-box-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
}
.table-card .data-table { border: 0; margin-bottom: 0; }

.honor-list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 220px 3;
	column-gap: 24px;
}
.honor-list li {
	padding: 6px 8px;
	border-bottom: 1px solid var(--line);
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}
.honor-list li:nth-child(even) { background: var(--cream-50); }

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

/* ---------------------------------------------------------------------
   Resources page - image+text blocks (Orient, RiteCare, Supreme Council)
   --------------------------------------------------------------------- */
.resource-figure {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 25px;
	margin-bottom: 10px;
}
.resource-figure--right {
	flex-direction: row-reverse;
}
.resource-figure-photo {
	flex: 0 0 300px;
	width: 300px;
}
.resource-figure-photo img {
	width: 100%;
	height: auto;
	display: block;
}
.resource-figure-photo .photo-credit {
	font-size: 0.8em;
	color: #888;
	margin-top: 4px;
}
.resource-figure-body {
	flex: 1 1 300px;
	min-width: 250px;
}
.resource-figure-photo--wide {
	flex: 0 0 350px;
	width: 350px;
}
@media (max-width: 700px) {
	.resource-figure-photo { flex: 0 0 auto; width: 98%; max-width: none; margin: 0 auto; }
}

/* Past News archive articles */
.article {
	margin-bottom: 1em;
}
.article-div {
	clear: both;
}
.caption {
	background-color: #eeeeee;
	padding: 10px;
	border-top: 1px solid #999999;
}
.honors-ul {
	margin: 0;
	padding: 0;
	padding-left: 20px;
}
.honors-col-divider {
	border-left: 1px solid #dddddd;
	padding-left: 10px;
}
