/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap");

:root {
	--bg-0: #f4f6fa;
	--bg-1: #e8edf7;
	--surface: #ffffff;
	--ink: #19213a;
	--muted: #5b6782;
	--line: #dbe3f2;
	--brand: #020f30;
	--brand-2: #1f3177;
	--accent: #ffc845;
	--ok: #137b43;
	--warn: #ad2b2b;
	--focus: #2d73d5;
	--link: #0092cb;
	--heading-font: "Libre Baskerville", serif;
	--body-font: "Libre Franklin", "Segoe UI", sans-serif;
	color-scheme: light;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	font-family: var(--body-font);
	background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #f8fafc 100%);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--heading-font);
	color: #0f1a4d;
}

.container {
	max-width: 1880px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 1.1rem 1.45rem 1.35rem;
}

.page-shell {
	padding-top: 1.25rem;
	flex: 1 0 auto;
	width: 100%;
}


.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: linear-gradient(90deg, rgba(2, 15, 48, 1) 0%, rgba(31, 49, 119, 1) 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 6px 18px rgba(3, 9, 26, 0.2);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	align-items: center;
	max-width: 1880px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0.8rem 1.3rem;
}

#logo-container {
	position: relative;
	display: inline-block;
	line-height: 0;
	flex-shrink: 0;
}

.vga-logo {
	display: block;
	width: auto;
	height: 56px;
	position: relative;
	z-index: 1;
	transition: opacity 0.2s ease;
}

#logo-container::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background-image: url("/assets/vga-logomark-hover-f216653b.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

#logo-container:hover::before,
#logo-container:focus-visible::before {
	opacity: 1;
}

#logo-container:hover .vga-logo,
#logo-container:focus-visible .vga-logo {
	opacity: 0;
}

.site-title-wrap {
	flex: 1;
	min-width: 240px;
}

.site-title-link {
	text-decoration: none;
}

.site-title {
	color: #ffffff;
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.15;
	margin: 0;
}

.site-subtitle {
	color: #ffffff;
	font-size: 0.88rem;
	margin: 0.1rem 0 0;
	line-height: 1.15;
}

.site-title-link:hover .site-title,
.site-title-link:hover .site-subtitle {
	color: var(--accent);
}

.site-nav {
	display: flex;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.nav-pill {
	padding: 0.5rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	border: 1px solid rgba(255, 200, 69, 0.6);
	border-radius: 8px;
	background: transparent;
}

.nav-pill:hover {
	background: var(--accent);
	color: #101010;
}

.accent-strip {
	height: 4px;
	background: var(--accent);
}

a {
	color: var(--link);
}

p {
	line-height: 1.5;
	margin: 0.2rem 0 0.85rem;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.65rem 0.45rem;
	border-bottom: 1px solid #e4ebf8;
	text-align: left;
	vertical-align: top;
}

th {
	font-family: var(--heading-font);
	font-size: 0.84rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #23315e;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 1.05rem 1.1rem;
	margin-bottom: 1.05rem;
	box-shadow: 0 8px 20px rgba(20, 39, 74, 0.06);
}

.submissions-section h3 {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	line-height: 1.2;
}

.submissions-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.submissions-section-head h3 {
	margin: 0;
}

.submissions-section-head .status-pill {
	min-width: 2.25rem;
	justify-content: center;
}

.page-intro {
	margin-bottom: 1.15rem;
}

.page-intro h2 {
	margin: 0.1rem 0 0.7rem;
	font-size: clamp(1.35rem, 1.85vw, 1.95rem);
	line-height: 1.2;
}

.page-intro h3 {
	margin-top: 0.2rem;
}

.kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: #57658a;
	margin: 0;
}

.text-link-strong {
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.meta-line {
	font-size: 0.86rem;
	line-height: 1.45;
	margin: 0.3rem 0 0.5rem;
}

.body-copy,
.body-copy p,
.markdown-content p,
.markdown-content li {
	font-size: 0.98rem;
	line-height: 1.56;
}

.list-card h3 {
	margin: 0.15rem 0 0.55rem;
	font-size: 1.16rem;
}

.panel-block h3 {
	margin: 0 0 0.85rem;
	font-size: 1.14rem;
}

.nested-card {
	margin-top: 0.9rem;
	padding-top: 0.95rem;
}

.field-disclosure {
	padding: 0;
	overflow: hidden;
}

.field-disclosure-summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 1.1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.field-disclosure-summary-main {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
}

.field-drag-handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	color: #7a8db6;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: grab;
	user-select: none;
}

.field-disclosure-summary::-webkit-details-marker {
	display: none;
}

.field-disclosure-summary::after {
	content: "+";
	flex: 0 0 auto;
	width: 1.6rem;
	height: 1.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid #c9d8ef;
	background: #eef4ff;
	color: #19336e;
	font-weight: 700;
	font-size: 1rem;
}

.field-disclosure[open] .field-disclosure-summary {
	border-bottom: 1px solid #e6edf8;
	background: linear-gradient(180deg, #fdfefe 0%, #f5f9ff 100%);
}

.field-disclosure[open] .field-disclosure-summary::after {
	content: "-";
	font-size: 1.15rem;
	line-height: 1;
}

.field-disclosure-title {
	margin: 0;
	font-family: var(--heading-font);
	font-size: 1rem;
	line-height: 1.25;
	color: #12265e;
}

.field-order-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.field-order-list .nested-card {
	margin-top: 0;
	padding-top: 0;
}

.draggable-field {
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.draggable-field.is-dragging {
	opacity: 0.72;
	transform: scale(0.995);
	box-shadow: 0 14px 30px rgba(18, 38, 94, 0.18);
}

.draggable-field.drop-before {
	border-color: #7ab0ff;
	box-shadow: 0 0 0 2px rgba(45, 115, 213, 0.16), inset 0 6px 0 #2d73d5;
}

.draggable-field.drop-after {
	border-color: #7ab0ff;
	box-shadow: 0 0 0 2px rgba(45, 115, 213, 0.16), inset 0 -6px 0 #2d73d5;
}

.draggable-field.drop-before .field-disclosure-summary,
.draggable-field.drop-after .field-disclosure-summary {
	background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
}

.draggable-field.drop-before .field-disclosure-title,
.draggable-field.drop-after .field-disclosure-title {
	color: #0f3f8c;
}

.draggable-field.drop-before .field-drag-handle,
.draggable-field.drop-after .field-drag-handle {
	color: #1b58b8;
}

.draggable-field.drop-before::before,
.draggable-field.drop-after::after {
	content: "Release to place here";
	display: block;
	padding: 0.28rem 1rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #13408e;
	background: rgba(225, 238, 255, 0.96);
}

.draggable-field.drop-before::before {
	border-bottom: 1px solid #bfd6fb;
}

.draggable-field.drop-after::after {
	border-top: 1px solid #bfd6fb;
}

.field-disclosure-body {
	padding: 0.95rem 1.1rem 1.1rem;
}

.field-disclosure-meta {
	margin: 0 0 0.8rem;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nested-card h4 {
	margin: 0 0 0.65rem;
	font-size: 1.03rem;
}

.nested-card h5,
.card h5 {
	margin: 0.7rem 0 0.45rem;
	font-size: 0.95rem;
	font-family: var(--heading-font);
	color: #21336e;
}

.options-block {
	margin-top: 0.8rem;
	padding-top: 0.15rem;
	border-top: 1px solid #ecf1fb;
}

.option-list {
	display: grid;
	gap: 0.7rem;
	margin-bottom: 0.8rem;
}

.option-editor {
	padding: 0.75rem 0.8rem 0.85rem;
	border: 1px solid #dbe5f5;
	border-radius: 12px;
	background: #fbfdff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.option-editor-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
	align-items: end;
}

.option-visibility-block {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	margin-top: 0.75rem;
	padding-top: 0.65rem;
	border-top: 1px solid #e5edf9;
}

.option-visibility-group h6 {
	margin: 0 0 0.45rem;
	font-size: 0.84rem;
	font-family: var(--heading-font);
	color: #21336e;
}

.option-visibility-list {
	display: grid;
	gap: 0.35rem;
}

.option-visibility-list label {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.3;
}

.option-visibility-list input[type="checkbox"] {
	width: auto;
	min-height: auto;
	margin: 0;
}

.editor-workspace {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
	gap: 1rem;
	align-items: start;
	max-width: 100%;
}

.editor-main {
	min-width: 0;
}

.editor-preview {
	position: sticky;
	top: 86px;
	min-width: 0;
	margin-bottom: 0;
	padding: 0.65rem;
	border-color: #cbdaf1;
	background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.editor-preview-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 0.4rem;
}

.editor-preview-head h3 {
	margin: 0.1rem 0 0;
	font-size: 1.04rem;
}

.editor-preview > p {
	margin: 0 0 0.45rem;
	font-size: 0.84rem;
}

.editor-preview-frame-wrap {
	border: 1px solid #bfd0ea;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.editor-preview-frame {
	display: block;
	width: 100%;
	height: calc(100vh - 180px);
	min-height: 760px;
	border: 0;
	background: #ffffff;
}

.form-stack {
	display: block;
	max-width: 1680px;
	margin: 0 auto;
}

.submit-hero {
	position: relative;
	margin: 0 0 1.15rem;
	padding: 1.2rem 1.2rem 1.1rem;
	min-height: 260px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 38%),
		linear-gradient(135deg, rgba(7, 18, 38, 0.96) 0%, rgba(18, 48, 95, 0.9) 44%, rgba(31, 82, 150, 0.82) 100%);
	box-shadow: 0 18px 42px rgba(9, 24, 58, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	isolation: isolate;
}

.submit-hero-media {
	position: absolute;
	inset: 0;
	opacity: 0.82;
}

.submit-hero-slide,
.submit-hero-blue-blur {
	position: absolute;
	inset: -6%;
	border-radius: inherit;
}

.submit-hero-slide {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: saturate(0.8) contrast(1.04) brightness(0.76);
	transform: scale(1.08);
	opacity: 0;
	animation: submit-hero-rotate 28s infinite;
}

.submit-hero-slide-1 {
	animation-delay: 0s;
}

.submit-hero-slide-2 {
	animation-delay: 7s;
}

.submit-hero-slide-3 {
	animation-delay: 14s;
}

.submit-hero-slide-4 {
	animation-delay: 21s;
}

.submit-hero-blue-blur {
	background:
		radial-gradient(circle at 50% 24%, rgba(152, 210, 255, 0.42), rgba(152, 210, 255, 0) 24%),
		radial-gradient(circle at 18% 72%, rgba(90, 162, 255, 0.32), rgba(90, 162, 255, 0) 26%),
		linear-gradient(180deg, rgba(7, 18, 38, 0.18) 0%, rgba(7, 18, 38, 0.48) 100%);
	backdrop-filter: blur(10px);
	filter: blur(10px);
	opacity: 0.9;
	transform: scale(1.05);
	animation: submit-hero-breathe 7.2s ease-in-out infinite;
}

.submit-hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 200px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #f8fbff;
	padding: 0.2rem 1rem 0;
	gap: 0.15rem;
	width: 100%;
}

.submit-hero-seal-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(112px, 11vw, 150px);
	height: clamp(112px, 11vw, 150px);
	margin-bottom: 0.85rem;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(231, 239, 255, 0.9) 62%, rgba(208, 223, 247, 0.78) 100%);
	box-shadow: 0 16px 32px rgba(4, 11, 30, 0.26), 0 0 0 10px rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(6px);
}

.submit-hero-seal {
	width: 99%;
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 14px rgba(18, 32, 71, 0.18));
}

.submit-hero-kicker {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(230, 239, 255, 0.88);
}

.submit-hero h1 {
	width: 100%;
	max-width: none;
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.8rem);
	line-height: 1.02;
	letter-spacing: -0.04em;
	text-wrap: balance;
	overflow-wrap: anywhere;
	color: #d4af5a;
	font-weight: 700;
	text-shadow: 0 10px 22px rgba(4, 11, 30, 0.26), 0 0 18px rgba(212, 175, 90, 0.18);
}

.form-question {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.form-question > label:first-child {
	font-size: 1.01rem;
	line-height: 1.35;
	margin-bottom: 0.2rem;
}

.helper-copy {
	font-size: 0.89rem;
	margin: 0.25rem 0 0.65rem;
	line-height: 1.45;
}

.submit-row {
	padding-top: 0.85rem;
	padding-bottom: 0.9rem;
}

.submit-intro {
	padding: 1.05rem 1.15rem;
	margin-bottom: 1.05rem;
	border-color: #cfdbf1;
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

@keyframes submit-hero-rotate {
	0% {
		opacity: 0;
		transform: scale(1.12);
	}
	6% {
		opacity: 1;
	}
	25% {
		opacity: 1;
		transform: scale(1.06);
	}
	31% {
		opacity: 0;
	}
	100% {
		opacity: 0;
		transform: scale(1.02);
	}
}

@keyframes submit-hero-breathe {
	0%,
	100% {
		transform: scale(1.05);
		opacity: 0.9;
	}
	50% {
		transform: scale(1.1);
		opacity: 1;
	}
}

.submit-intro > h2 {
	font-size: clamp(1.1rem, 1.3vw, 1.35rem);
	margin: 0 0 0.45rem;
}

.submit-intro .markdown-content h2 {
	font-size: 0.98rem;
	margin: 0 0 0.35rem;
}

.submit-intro .markdown-content h3 {
	font-size: 0.86rem;
	margin: 0 0 0.3rem;
}

.submit-intro .body-copy,
.submit-intro .body-copy p,
.submit-intro .markdown-content p,
.submit-intro .markdown-content li {
	font-size: 0.84rem;
	line-height: 1.33;
	margin-bottom: 0.4rem;
}

.submit-intro .markdown-content ul {
	margin: 0.35rem 0 0.45rem;
	padding-left: 1.15rem;
}

.submit-intro-content {
	min-width: 0;
	overflow-wrap: anywhere;
}

.form-stack-content {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
	grid-auto-flow: row;
}

.form-stack-content > .form-question {
	grid-column: span 6;
	margin: 0;
}

.submit-form-grid .form-question {
	position: relative;
	padding: 1.1rem 1.05rem 1rem;
	border: 1px solid #d5e0f3;
	box-shadow: 0 8px 20px rgba(16, 35, 74, 0.08);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.submit-form-grid .form-question::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 11px 11px 0 0;
	background: linear-gradient(90deg, #1f3177 0%, #2d73d5 100%);
}

.submit-form-grid .form-question:hover {
	border-color: #b6caea;
	box-shadow: 0 10px 22px rgba(16, 35, 74, 0.12);
	transform: translateY(-1px);
}

.question-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.35rem;
}

.question-kicker {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #62749b;
}

.required-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.16rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: #fff1c7;
	color: #6f5100;
	border: 1px solid #edd796;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border: 1px solid transparent;
	white-space: nowrap;
}

.status-pill--submission,
.status-pill--submitted {
	background: #eef3fb;
	color: #3d4f75;
	border-color: #d7e1f1;
}

.status-pill--completed {
	background: #e4f5ea;
	color: #13663b;
	border-color: #b8e0c8;
}

.status-pill--rejected {
	background: #fde8e8;
	color: #9f1f1f;
	border-color: #f3c0c0;
}

.question-label {
	font-size: 1.05rem;
	line-height: 1.35;
	margin-top: 0;
	margin-bottom: 0.2rem;
	color: #152660;
}

.question-help {
	margin-top: 0.35rem;
	margin-bottom: 0.7rem;
	padding-left: 0.55rem;
	border-left: 3px solid #e0e9f8;
	font-size: 0.87rem;
}

.form-stack-content > .form-question.span-narrow {
	grid-column: span 5;
}

.form-stack-content > .form-question.span-half {
	grid-column: span 6;
}

.form-stack-content > .form-question.span-third {
	grid-column: span 4;
}

.form-stack-content > .form-question.span-wide {
	grid-column: span 7;
}

.form-stack-content > .form-question.full-width,
.form-stack-content > .submit-row {
	grid-column: 1 / -1;
	margin: 0;
}

.submit-form-grid > .field-group {
	grid-column: 1 / -1;
	padding: 0.8rem 0.8rem 0.9rem;
	border-color: #cad9f1;
	background: linear-gradient(180deg, #f9fbff 0%, #f5f9ff 100%);
}

.field-group-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0 0 0.55rem;
	padding: 0 0.2rem;
}

.field-group-head h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
}

.field-group-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0.7rem;
}

.field-group-grid .form-question {
	grid-column: span 6;
	margin: 0;
	padding: 0.75rem 0.8rem 0.7rem;
	box-shadow: 0 4px 12px rgba(16, 35, 74, 0.05);
	border-radius: 9px;
}

.field-group-grid .form-question.span-narrow {
	grid-column: span 5;
}

.field-group-grid .form-question.span-half {
	grid-column: span 6;
}

.field-group-grid .form-question.span-third {
	grid-column: span 4;
}

.field-group-grid .form-question.span-wide {
	grid-column: span 7;
}

.field-group-grid .form-question.full-width {
	grid-column: 1 / -1;
}

.field-group-grid .question-head {
	margin-bottom: 0.2rem;
}

.field-group-grid .question-label {
	font-size: 0.98rem;
	margin-bottom: 0.15rem;
}

.field-group-grid .question-help {
	font-size: 0.84rem;
	margin-top: 0.18rem;
	margin-bottom: 0.5rem;
}

.field-group-grid input,
.field-group-grid select,
.field-group-grid textarea {
	padding: 0.62rem 0.68rem;
	font-size: 0.95rem;
}

.submit-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.9rem;
	padding-top: 0.95rem;
	padding-bottom: 0.95rem;
	background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
	border-color: #cfdbf1;
}

.submit-row p {
	margin: 0;
	font-size: 0.88rem;
}

.review-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.4rem;
	padding-top: 0.95rem;
	margin-top: 0.25rem;
	border-top: 1px solid #dbe3f2;
}

.review-actions > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 42px;
	margin: 0;
	vertical-align: middle;
}

.review-actions input[type="submit"] {
	padding-top: 0;
	padding-bottom: 0;
	line-height: 1;
}

.secondary-action {
	padding: 0.6rem 0.95rem;
	border-radius: 8px;
	border: 1px solid #c4cee0;
	background: transparent;
	color: #506489;
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.01em;
	line-height: 1.2;
	white-space: nowrap;
}

.secondary-action:hover {
	background: #f4f7fc;
	border-color: #b6c3d8;
	box-shadow: 0 2px 8px rgba(20, 39, 74, 0.08);
	color: #2a3f69;
}

@media (max-width: 640px) {
	.review-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.secondary-action,
	.review-actions input[type="submit"] {
		width: 100%;
	}
}

.submissions-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	margin-top: 0.25rem;
}

.submissions-table {
	font-size: 0.93rem;
	min-width: 720px;
	margin: 0;
}

.submissions-table th,
.submissions-table td {
	max-width: 180px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}

.submissions-table th {
	max-width: 220px;
}

@media (max-width: 900px) {
	.submissions-table {
		min-width: 760px;
	}

	.submissions-table th,
	.submissions-table td {
		max-width: 150px;
		font-size: 0.8rem;
	}
}

.answers-list dt {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	font-family: var(--heading-font);
	color: #1e2a59;
}

.answers-list dd {
	margin: 0.2rem 0 0.55rem;
	line-height: 1.5;
}

.flash-stack {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

label {
	display: block;
	font-weight: 600;
	font-size: 1rem;
	margin-top: 0.7rem;
	line-height: 1.35;
}

.choice-group {
	margin-top: 0.35rem;
	display: grid;
	gap: 0.45rem;
}

.choice-option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0;
	font-weight: 500;
	padding: 0.4rem 0.5rem;
	border-radius: 8px;
	border: 1px solid #e2e9f7;
	background: #fbfcff;
}

.choice-option input[type="radio"],
.choice-option input[type="checkbox"] {
	margin: 0;
	flex: 0 0 auto;
}

.month-year-selects {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	max-width: 340px;
}

.month-year-selects select {
	margin-top: 0;
}

input,
textarea,
select {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.4rem;
	padding: 0.72rem 0.78rem;
	border: 1px solid #bfd0ea;
	border-radius: 8px;
	background: #ffffff;
	font-family: var(--body-font);
	font-size: 0.99rem;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

input[type="radio"],
input[type="checkbox"] {
	width: auto;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

@media (max-width: 980px) {
	.submit-hero {
		min-height: 200px;
		padding: 0.9rem 0.85rem 0.8rem;
	}

	.submit-hero-content {
		min-height: 160px;
		padding: 0 0.5rem;
	}

	.submit-hero-seal-wrap {
		width: clamp(80px, 14vw, 110px);
		height: clamp(80px, 14vw, 110px);
		margin-bottom: 0.5rem;
	}

	.submit-hero h1 {
		font-size: clamp(1.5rem, 4vw, 2.25rem);
	}
}

@media (max-width: 820px) {
	.editor-workspace {
		grid-template-columns: 1fr;
	}

	.editor-preview {
		position: static;
	}

	.submit-hero {
		min-height: 180px;
		padding: 0.8rem 0.7rem 0.7rem;
		border-radius: 18px;
	}

	.submit-hero-content {
		min-height: 150px;
		padding: 0 0.4rem;
	}

	.submit-hero-seal-wrap {
		width: clamp(72px, 16vw, 96px);
		height: clamp(72px, 16vw, 96px);
		margin-bottom: 0.45rem;
	}

	.submit-hero-kicker {
		font-size: 0.62rem;
		letter-spacing: 0.14em;
	}

	.submit-hero h1 {
		max-width: 20ch;
		font-size: clamp(1.3rem, 5vw, 1.8rem);
	}

	.editor-preview-frame {
		height: 640px;
		min-height: 640px;
	}

	.form-stack-content {
		grid-template-columns: 1fr;
	}

	.form-stack-content > .form-question,
	.form-stack-content > .form-question.span-narrow,
	.form-stack-content > .form-question.span-half,
	.form-stack-content > .form-question.span-third,
	.form-stack-content > .form-question.span-wide {
		grid-column: 1 / -1;
	}

	.field-group-grid {
		grid-template-columns: 1fr;
	}

	.field-group-grid .form-question,
	.field-group-grid .form-question.span-narrow,
	.field-group-grid .form-question.span-half,
	.field-group-grid .form-question.span-third,
	.field-group-grid .form-question.span-wide {
		grid-column: 1 / -1;
	}

	.submit-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 520px) {
	.submit-hero {
		min-height: 150px;
		padding: 0.7rem 0.6rem 0.65rem;
	}

	.submit-hero-content {
		min-height: 120px;
		padding: 0 0.3rem;
	}

	.submit-hero-kicker {
		font-size: 0.56rem;
		letter-spacing: 0.12em;
	}

	.submit-hero h1 {
		font-size: clamp(1.15rem, 6vw, 1.45rem);
		max-width: 16ch;
	}

	.month-year-selects {
		grid-template-columns: 1fr;
		max-width: 100%;
	}
}

input:focus,
textarea:focus,
select:focus {
	outline: 3px solid rgba(45, 115, 213, 0.18);
	outline-offset: 1px;
	border-color: var(--focus);
}

.inline-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.85rem;
}

button,
input[type="submit"],
.inline-actions a {
	background: #1f3177;
	color: #ffffff;
	border: 1px solid #152353;
	border-radius: 8px;
	padding: 0.6rem 0.95rem;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.98rem;
	letter-spacing: 0.02em;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.inline-actions a:hover {
	background: #16295f;
}

.flash {
	border-radius: 8px;
	padding: 0.75rem;
}

.flash.notice {
	background: #e8f8ef;
	border: 1px solid #a8ddbe;
	color: var(--ok);
}

.flash.alert {
	background: #fdecec;
	border: 1px solid #f0bbbb;
	color: var(--warn);
}

.muted {
	color: var(--muted);
	font-size: 0.9rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
	margin-top: 0.25rem;
}

.markdown-content ul,
.markdown-content ol {
	padding-left: 1.5rem;
}

.markdown-editor {
	margin-top: 0.25rem;
}

.markdown-toolbar {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.markdown-toolbar button {
	border: 1px solid #ccd7ec;
	background: #edf3fd;
	color: #13386f;
	border-radius: 6px;
	padding: 0.3rem 0.55rem;
	cursor: pointer;
}

.markdown-toolbar button:hover {
	background: #dfeafc;
}

.markdown-toolbar .tone-red {
	background: #fdecec;
	border-color: #efb7b7;
	color: #962b2b;
}

.markdown-toolbar .tone-green {
	background: #e9f7ef;
	border-color: #b4e0c8;
	color: #16653d;
}

.markdown-toolbar .tone-blue {
	background: #eaf2ff;
	border-color: #bfd1f3;
	color: #1c4f9a;
}

.markdown-toolbar .tone-gold {
	background: #fff6df;
	border-color: #ecd9a1;
	color: #8a6500;
}

.markdown-preview {
	margin-top: 0.75rem;
	border-left: 4px solid var(--accent);
}

.markdown-preview h4 {
	margin-top: 0;
	color: #14366a;
}

.markdown-content .md-color-red,
.markdown-preview .md-color-red {
	color: #b33030;
	font-weight: 600;
}

.markdown-content .md-color-green,
.markdown-preview .md-color-green {
	color: #147a47;
	font-weight: 600;
}

.markdown-content .md-color-blue,
.markdown-preview .md-color-blue {
	color: #1e57ad;
	font-weight: 600;
}

.markdown-content .md-color-gold,
.markdown-preview .md-color-gold {
	color: #9a7000;
	font-weight: 600;
}

.is-hidden {
	display: none;
}

@media (max-width: 768px) {
	.container {
		padding: 0.9rem 0.8rem 1.2rem;
	}

	.page-intro h2 {
		font-size: 1.3rem;
	}

	.site-nav {
		width: 100%;
		justify-content: center;
	}

	.vga-logo {
		height: 50px;
	}
}
