/* Tile RPG theme. Dark slate and teal, warm amber for actions, tiles as the recurring shape. */

:root {
	--bg: #0d1a21;
	--surface: #13232c;
	--surface-2: #182c37;
	--surface-3: #1f3744;
	--line: #274050;
	--text: #e6eef0;
	--muted: #9db2ba;
	--accent: #f0b64a;
	--accent-ink: #241a06;
	--teal: #2f8f7a;
	--link: #84c9ea;
	--danger: #ef7d66;
	--ok: #67c495;
	--radius: 10px;
	--wrap: 1080px;
	--font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
		var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #b4e0f5; }

img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }

/* Buttons */
.btn, .page-body input[type="submit"], .page-body button[type="submit"], .page-body .button, .page-body input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 600 15px/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s, transform 0.15s;
}
.btn:hover, .page-body input[type="submit"]:hover, .page-body button[type="submit"]:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn--quiet:hover { background: var(--surface-2); color: var(--text); }
.btn--ghost { background: rgba(13, 26, 33, 0.6); color: var(--text); border-color: rgba(230, 238, 240, 0.35); }
.btn--ghost:hover { color: var(--text); background: rgba(13, 26, 33, 0.85); }
.btn--large { padding: 12px 22px; font-size: 16px; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(13, 26, 33, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 16px; flex: 1; }
.site-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; }
.site-nav li { position: relative; }
.site-nav a, .site-nav button {
	display: block;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--muted);
	font: 500 15px/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover, .site-nav li.is-current > a, .site-nav li.is-current > button { color: var(--text); background: var(--surface-2); }
.site-nav li.is-current > a, .site-nav li.is-current > button { box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .has-menu > button::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.site-nav .has-menu ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.site-nav .has-menu:hover ul, .site-nav .has-menu:focus-within ul { display: block; }
.site-nav__account { display: flex; gap: 8px; }
.site-nav__account .btn { padding: 7px 12px; font-size: 14px; }

.nav-toggle, .nav-toggle__button { display: none; }

@media (max-width: 920px) {
	.nav-toggle__button { display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 10px; cursor: pointer; }
	.nav-toggle__button span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
	.site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
	.nav-toggle:checked ~ .site-nav { display: flex; }
	.site-nav > ul { flex-direction: column; }
	.site-nav .has-menu ul { display: block; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 0 14px; }
	.site-nav .has-menu > button::after { display: none; }
	.site-nav__account { padding-top: 8px; border-top: 1px solid var(--line); }
}

/* Hero (front page) */
.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	background: url("images/hero.svg") center / cover no-repeat, var(--surface);
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(13, 26, 33, 0.96) 0%, rgba(13, 26, 33, 0.82) 45%, rgba(13, 26, 33, 0.25) 100%);
}
.hero__inner { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { max-width: 620px; margin: 6px 0 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.01em; }
.hero__lead { max-width: 540px; margin: 0 0 28px; color: #c7d6db; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-block; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(240, 182, 74, 0.15); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Page */
.site-main { flex: 1; padding-top: 36px; padding-bottom: 56px; }
.page-title { margin: 0 0 24px; font-size: 32px; line-height: 1.2; }
.page-title::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 30px; border-radius: 3px; background: var(--accent); box-shadow: 18px 0 0 var(--teal); vertical-align: 4px; }
.page-layout--rail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .page-layout--rail { grid-template-columns: 1fr; } }
.page-body { min-width: 0; }

.rail { display: grid; gap: 16px; }
.panel { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { margin: 0 0 10px; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.panel p { margin: 0 0 8px; }
.stat strong { color: var(--accent); font-size: 32px; line-height: 1; margin-right: 4px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 4px 0; }

/* Text pages written for this site */
.prose { max-width: 72ch; }
.prose h2 { margin: 32px 0 10px; font-size: 22px; }
.prose h3 { margin: 24px 0 8px; font-size: 18px; }
.prose p, .prose li { color: #d4e0e4; }
.prose ul, .prose ol { padding-left: 22px; }
.lead { font-size: 18px; color: #c7d6db; }
.note-box { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.card { display: block; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card h2, .card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card .count { display: block; margin-top: 12px; color: var(--accent); font-weight: 700; }
.empty-state { padding: 36px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 18px; }
.empty-state p { max-width: 52ch; margin: 0 auto; }
.tile-icon { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 36px; height: 36px; margin-bottom: 12px; }
.tile-icon i { border-radius: 3px; background: var(--teal); }
.tile-icon i:first-child { background: var(--accent); }
.updated { color: var(--muted); font-size: 14px; }

/* News */
.news-post { margin-bottom: 24px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news-post h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }
.news-post__date { margin: 0 0 4px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.news-post__author { margin: -6px 0 12px; color: var(--muted); font-size: 14px; }
.news-post .prose p:last-child { margin-bottom: 0; }
.news-post__comments { margin: 16px 0 0; }

/* MyAAC's page markup: tables, boxes and forms */
.page-body table { border-collapse: separate; border-spacing: 0; max-width: 100%; }
.page-body td, .page-body th { padding: 8px 10px; vertical-align: top; color: var(--text); }
.page-body table[width="100%"], .page-body .TableContainer, .page-body .myaac-table, .page-body .Table1, .page-body .Table2,
.page-body .Table3, .page-body .Table4, .page-body .Table5 { width: 100%; }
.page-body .TableContainer { margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page-body .CaptionContainer { padding: 12px 16px; background: var(--surface-3); border-bottom: 1px solid var(--line); }
.page-body .CaptionContainer .Text, .page-body .Text { font-weight: 700; font-size: 16px; color: var(--text); }
.page-body .CaptionContainer span[class^="Caption"], .page-body .TableShadowContainer, .page-body .TableShadowContainerRightTop,
.page-body .TableBottomShadow, .page-body .TableBottomLeftShadow, .page-body .TableBottomRightShadow, .page-body .TableRightShadow,
.page-body [class^="Caption"][style*="background-image"] { display: none !important; }
.page-body .InnerTableContainer { padding: 12px 16px; }
.page-body .TableContentContainer, .page-body .TableContent { width: 100%; border: 0; }
.page-body .LabelV, .page-body .LabelH { width: 30%; color: var(--muted); font-weight: 600; white-space: nowrap; }
.page-body .white, .page-body thead td, .page-body th { color: var(--text) !important; font-weight: 700; }
.page-body tr[bgcolor] > td { border-bottom: 1px solid rgba(39, 64, 80, 0.5); }
.page-body .myaac-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page-body .myaac-table > thead > tr > td, .page-body .myaac-table > thead > tr > th { background: var(--surface-3); }
.page-body .myaac-table > tbody > tr:nth-child(odd) { background: var(--surface); }
.page-body .myaac-table > tbody > tr:nth-child(even) { background: var(--surface-2); }
/* MyAAC writes online / offline as inline green and red. */
.page-body .red, .page-body font[color="red"], .page-body [style*="red;"], .page-body [style*="color: red"] { color: var(--danger) !important; }
.page-body .green, .page-body font[color="green"], .page-body [style*="green;"], .page-body [style*="color: green"] { color: var(--ok) !important; }
.page-body hr { border: 0; border-top: 1px solid var(--line); }

.page-body input[type="text"], .page-body input[type="password"], .page-body input[type="email"], .page-body input[type="number"],
.page-body input[type="search"], .page-body select, .page-body textarea {
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.4 var(--font);
}
.page-body input:focus, .page-body select:focus, .page-body textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.page-body input[type="image"] { display: none; }

/* MyAAC's message boxes */
.page-body .error, .page-body .success, .page-body .warning, .page-body .note, .page-body .alert {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-left-width: 4px;
	border-radius: 8px;
	background: var(--surface) !important;
	color: var(--text) !important;
	font-size: 15px;
}
.page-body .error, .page-body .alert-danger { border-left-color: var(--danger); }
.page-body .success, .page-body .alert-success { border-left-color: var(--ok); }
.page-body .warning, .page-body .note { border-left-color: var(--accent); }

/* MyAAC's account menu */
.page-body .vertical-menu { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.page-body .vertical-menu a { padding: 10px 14px !important; background: var(--surface) !important; color: var(--text) !important; border-bottom: 1px solid var(--line); font-size: 15px; }
.page-body .vertical-menu a:last-child { border-bottom: 0; }
.page-body .vertical-menu a:hover { background: var(--surface-2) !important; color: var(--accent) !important; }
.page-body div#one { width: 190px !important; }
.page-body div#two { margin-left: 190px !important; padding-left: 24px !important; }
@media (max-width: 700px) {
	.page-body div#one { float: none !important; width: auto !important; margin-bottom: 20px; }
	.page-body div#two { margin-left: 0 !important; padding-left: 0 !important; }
}

/* Our own forms and tables */
.form-card { max-width: 460px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card > p:first-child { margin-top: 0; color: var(--muted); }
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field span { color: var(--muted); font-size: 14px; font-weight: 600; }
.field input { width: 100%; }
.check { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-card__footer { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.page-body .data-table { margin: 0 0 24px; }
.page-body .data-table th { text-align: left; }
.page-body .data-table th a { color: var(--text); }
.page-body code { padding: 1px 6px; border-radius: 4px; background: var(--bg); color: var(--accent); font-size: 14px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(240, 182, 74, 0.15); color: var(--accent); font-size: 12px; font-weight: 700; }
.page-body h2 { font-size: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0a151b; color: var(--muted); font-size: 14px; }
.site-footer__row { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 24px; padding-top: 28px; padding-bottom: 28px; align-items: start; }
.site-footer p { margin: 0 0 6px; }
.site-footer__name { color: var(--text); font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer__credits { text-align: right; }
@media (max-width: 760px) {
	.site-footer__row { grid-template-columns: 1fr; }
	.site-footer__credits { text-align: left; }
}

@media (max-width: 600px) {
	.page-title { font-size: 26px; }
	.news-post { padding: 18px; }
	.page-body .LabelV { white-space: normal; }
	.page-body table { display: block; overflow-x: auto; }
}
