/* UtahSAINT Organization — site stylesheet
   Rebuilt from the 2014–2025 Bootstrap 3 design (see /archive) without
   external framework dependencies. */

:root {
	--red: #c00;
	--red-dark: #900;
	--orange: #f90;
	--orange-dark: #c60;
	--green: #090;
	--ink: #222;
	--muted: #666;
	--band: #f2f2f2;
	--footer: #333;
	--border: #ddd;
	--max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

a { color: var(--red); text-decoration: none; }
a:hover, a:focus { color: var(--red-dark); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.25rem; font-weight: 300; }
h2 { font-size: 1.6rem; font-weight: 300; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--red); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Navigation ---------- */

.site-nav {
	position: sticky; top: 0; z-index: 50;
	background: #f8f8f8;
	border-bottom: 1px solid #e7e7e7;
	text-transform: uppercase;
	font-size: .95rem;
	font-weight: 400;
}
.site-nav .container { display: flex; align-items: center; flex-wrap: wrap; min-height: 56px; }

.brand { display: flex; align-items: center; margin-right: 24px; padding: 8px 0; }
.brand img { width: 120px; display: block; }

.nav-toggle {
	margin-left: auto;
	display: none;
	background: none; border: 1px solid var(--border); border-radius: 4px;
	padding: 8px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #888; margin: 4px 0; }

.nav-menu { display: flex; flex: 1; align-items: center; gap: 4px; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-menu .right { margin-left: auto; }

.nav-menu a, .nav-menu summary {
	display: block;
	padding: 16px 12px;
	color: #555;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}
.nav-menu a:hover, .nav-menu summary:hover,
.nav-menu a:focus-visible, .nav-menu summary:focus-visible { color: #111; }

.nav-menu .accent-red { color: var(--red); }
.nav-menu .accent-orange { color: var(--orange); }

/* Dropdowns use <details> so they work without JavaScript. */
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after {
	content: ""; display: inline-block; margin-left: 6px; vertical-align: middle;
	border-top: 5px solid currentColor; border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.dropdown-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 260px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 4px;
	box-shadow: 0 6px 12px rgba(0,0,0,.175);
	padding: 6px 0;
	text-transform: none;
	flex-direction: column; align-items: stretch !important;
}
.right .dropdown-menu { left: auto; right: 0; }
.dropdown-menu a { padding: 8px 20px; color: #333; white-space: normal; line-height: 1.3; }
.dropdown-menu a:hover, .dropdown-menu a:focus { background: #f5f5f5; }
.dropdown-menu b { color: var(--red); font-weight: 600; }
.dropdown-menu b.green { color: var(--green); }
.dropdown-menu small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.dropdown-menu .divider { height: 1px; margin: 6px 0; background: #e5e5e5; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
	.nav-menu.open { display: flex; }
	.nav-menu ul { flex-direction: column; align-items: stretch; }
	.nav-menu .right { margin-left: 0; }
	.nav-menu a, .nav-menu summary { padding: 10px 4px; }
	.dropdown-menu { position: static; box-shadow: none; border: 0; border-left: 3px solid #eee; margin-left: 6px; border-radius: 0; }
}

/* ---------- Page sections ---------- */

.page-header { padding: 50px 0; }
.page-header img { max-width: 640px; width: 100%; }
.page-header.small img { max-width: 420px; }

section { padding: 50px 0; }
.band { background: var(--band); }

.grid-3 { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
	background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px 22px;
}
.card h3 { font-size: 1.15rem; margin-bottom: .3em; }
.card .tag { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6em; }
.card.red h3 { color: var(--red); }
.card.green h3 { color: var(--green); }

.saintcon {
	display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
}
.saintcon img { width: 320px; max-width: 100%; }
.saintcon div { flex: 1; min-width: 260px; }

.btn {
	display: inline-block;
	font-family: inherit;
	padding: 10px 20px;
	border-radius: 4px;
	background: var(--red);
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	font-size: .9rem;
	letter-spacing: .03em;
}
.btn:hover, .btn:focus { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn.orange { background: var(--orange); }
.btn.orange:hover, .btn.orange:focus { background: var(--orange-dark); }

.lead { font-size: 1.25rem; font-weight: 300; }

ol.conduct li { margin-bottom: .8em; }
ol.conduct strong { font-weight: 600; }

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list small { color: var(--muted); display: block; }

.notice {
	border-left: 4px solid var(--orange);
	background: #fff8ec;
	padding: 14px 18px;
	border-radius: 0 4px 4px 0;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--footer);
	color: #ccc;
	padding: 30px 0 20px;
	font-size: .9rem;
}
.site-footer a { color: #fff; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer img { width: 40px; vertical-align: middle; margin-right: 10px; border-radius: 6px; }

.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2em; }

a.card { display: block; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.card:hover, a.card:focus { text-decoration: none; color: var(--ink); border-color: var(--red); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.card-link { color: var(--red); font-weight: 600; margin-bottom: 0; }


/* ---------- Briefing page ---------- */

.hero { background: #1d1d1d; color: #fff; padding: 56px 0 48px; border-bottom: 4px solid var(--orange); }
.hero h1 { font-size: 2.75rem; font-weight: 300; margin-bottom: .25em; }
.hero .kicker { color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .85rem; margin: 0 0 .5em; }
.hero-sub { font-size: 1.2rem; color: #ccc; max-width: 640px; margin: 0; }

.briefing { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
@media (max-width: 860px) { .briefing { grid-template-columns: 1fr; gap: 32px; } .briefing .signup { order: -1; } }

.briefing-info h2 { font-size: 1.5rem; }
.facts { list-style: none; margin: 0 0 1.5em; padding: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid #ddd; }
.facts li:first-child { border-top: 1px solid #ddd; }
.fact-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 2px; }
.muted { color: var(--muted); }


/* Dark band (SAINTCON section) — the SAINTCON logo's cream/orange needs a dark background */
.dark { background: #1d1d1d; color: #ccc; border-top: 4px solid var(--orange); border-bottom: 4px solid var(--orange); }
.dark h2 { color: #fff; }
.dark a:not(.btn) { color: var(--orange); }

.signup {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
	overflow: hidden;
}
.signup-head { padding: 24px 28px 18px; border-bottom: 1px solid #eee; border-top: 4px solid var(--red); }
.signup-head h2 { font-size: 1.35rem; font-weight: 600; color: #1d1d1d; margin: 0 0 4px; }
.signup-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.signup-body { padding: 22px 28px 26px; }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { min-width: 0; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { display: block; font-size: .875rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.field input {
	display: block; width: 100%; height: 46px; padding: 0 14px; margin: 0;
	font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
	background: #fff; border: 1px solid #cfcfcf; border-radius: 6px;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #9a9a9a; }
.field input:hover { border-color: #b5b5b5; }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,153,0,.22); }

.signup-submit {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 50px; margin-top: 6px;
	font: inherit; font-size: 1.05rem; font-weight: 600; color: #fff;
	background: var(--red); border: 0; border-radius: 6px; cursor: pointer;
	transition: background .15s, transform .05s;
}
.signup-submit:hover { background: var(--red-dark); }
.signup-submit:active { transform: translateY(1px); }
.signup-submit:focus-visible { outline: 3px solid rgba(204,0,0,.35); outline-offset: 2px; }

.signup-foot {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 0; padding: 14px 28px; background: #fafafa; border-top: 1px solid #eee;
	font-size: .8rem; line-height: 1.5; color: #777;
}
.signup-foot .lock { flex: none; margin-top: 3px; color: #999; }
