/* Troia — bronze walls over the Aegean night */
:root {
	--ink: #0e1a26;
	--wall: #16283a;
	--wall-2: #1b3348;
	--line: #2a4a63;
	--bronze: #c58b4c;
	--bronze-hi: #e0a86a;
	--verdigris: #6fb3a3;
	--limestone: #ece3d0;
	--muted: #a9b4b8;
	--ember: #d2553a;

	--f-display: "Marcellus SC", Georgia, serif;
	--f-body: "Alegreya Sans", system-ui, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, monospace;

	--radius: 6px;
	--meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 11h20V1H4v7h12V4H8v2' fill='none' stroke='%23c58b4c' stroke-width='1.6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
	margin: 0;
	background: var(--ink);
	color: var(--limestone);
	font: 17px/1.55 var(--f-body);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--verdigris); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze-hi); }
:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 2px; }
img { max-width: 100%; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bronze); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

.meander { height: 12px; background: var(--meander) repeat-x center; opacity: .85; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(14, 26, 38, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
body:has(#ma-admin-bar) .topbar { top: 32px; } /* MyAAC admin bar is fixed at 32px */
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { font: 26px/1 var(--f-display); letter-spacing: .14em; color: var(--bronze); text-decoration: none; margin-right: auto; }
.quicknav { display: flex; gap: 18px; }
.quicknav a { color: var(--limestone); text-decoration: none; font-weight: 500; }
.quicknav a:hover { color: var(--bronze-hi); }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--limestone); text-decoration: none; font-size: 15px; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.status-pill.up .dot { background: var(--verdigris); box-shadow: 0 0 0 4px rgba(111, 179, 163, .18); }
.num { font-family: var(--f-mono); font-weight: 500; }

.btn { display: inline-block; padding: 8px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { padding: 12px 22px; font-size: 18px; }
.btn-bronze { background: var(--bronze); color: var(--ink); }
.btn-bronze:hover { background: var(--bronze-hi); color: var(--ink); }
.btn-ghost { border-color: var(--bronze); color: var(--bronze-hi); }
.btn-ghost:hover { background: rgba(197, 139, 76, .12); color: var(--bronze-hi); }

/* hero */
.hero { position: relative; overflow: hidden; background:
	radial-gradient(ellipse 70% 60% at 50% 0%, rgba(197, 139, 76, .16), transparent 70%),
	linear-gradient(180deg, #0b1520 0%, var(--ink) 100%); }
.hero-copy { max-width: 820px; margin: 0 auto; padding: 72px 16px 40px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--verdigris); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; }
.inscription {
	margin: 0; font: clamp(64px, 13vw, 148px)/0.95 var(--f-display); letter-spacing: .18em; padding-left: .18em;
	color: var(--bronze);
	text-shadow: 0 1px 0 #7a4f24, 0 -1px 0 rgba(255, 220, 170, .35), 0 12px 40px rgba(197, 139, 76, .25);
}
.lede { max-width: 560px; margin: 20px auto 28px; font-size: 20px; color: var(--limestone); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.terms { list-style: none; margin: 28px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 15px; }
.terms b { font-family: var(--f-mono); font-weight: 500; color: var(--limestone); }

.wall { position: relative; height: 220px; margin-top: 8px; }
.wall svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wall-shape { fill: var(--wall); stroke: var(--line); stroke-width: 1; }
.gate { fill: #0a131c; }
.plaque { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(300px, 84vw); padding: 12px 16px; text-align: center; background: var(--wall-2); border: 1px solid var(--bronze); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.plaque-title { display: block; font: 20px/1.2 var(--f-display); letter-spacing: .1em; color: var(--bronze-hi); }
.plaque-body { display: block; color: var(--limestone); font-size: 15px; }
.plaque.down { border-color: var(--ember); }
.plaque.down .plaque-title { color: var(--ember); }

/* layout */
.layout { max-width: 1180px; margin: 0 auto; padding: 28px 16px 48px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
.is-home .layout { background: var(--wall); max-width: none; padding-left: max(16px, calc((100% - 1148px) / 2)); padding-right: max(16px, calc((100% - 1148px) / 2)); }

.menu > summary { display: none; }
.menu-group { margin-bottom: 22px; }
.menu-title { margin: 0 0 6px; font: 15px/1.2 var(--f-display); letter-spacing: .14em; color: var(--bronze); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.menu-group a { display: block; padding: 5px 8px; margin: 0 -8px; color: var(--limestone); text-decoration: none; border-radius: 4px; }
.menu-group a:hover { background: var(--wall-2); color: var(--bronze-hi); }

.content { min-width: 0; background: var(--wall); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.is-home .content { background: var(--ink); }
.page-title { margin: 0 0 18px; font: 32px/1.15 var(--f-display); letter-spacing: .08em; color: var(--bronze); }

/* news */
.news { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.news:last-child { border-bottom: 0; margin-bottom: 0; }
.news-date { font-family: var(--f-mono); font-size: 14px; color: var(--verdigris); }
.news-title { margin: 4px 0 6px; font: 26px/1.2 var(--f-display); letter-spacing: .06em; color: var(--limestone); }
.news-author { font-size: 14px; color: var(--muted); }
.news-body { margin-top: 10px; }
.news-comments { display: inline-block; margin-top: 8px; }

/* MyAAC legacy markup: tables, forms, buttons */
.Content table { border-collapse: collapse; width: 100%; color: var(--limestone); }
.Content td, .Content th { vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.Content tr[bgcolor] td { border-color: var(--line); }
.Content .white, .Content .white a { color: var(--bronze-hi) !important; font-weight: 700; }
.Content .red { color: var(--ember); }
.Content .LabelV { color: var(--muted); font-weight: 500; white-space: nowrap; }
.Content .TableContainer, .Content .InnerTableContainer, .Content .TableContentContainer { margin-bottom: 16px; }
.Content .CaptionContainer, .Content .Text { background: var(--wall-2); color: var(--bronze-hi); font: 18px/1.3 var(--f-display); letter-spacing: .08em; padding: 10px 12px; border-radius: var(--radius) var(--radius) 0 0; }
.Content [class*="Shadow"], .Content .CaptionEdgeLeftTop, .Content .CaptionEdgeRightTop, .Content .CaptionEdgeLeftBottom, .Content .CaptionEdgeRightBottom, .Content .CaptionBorderTop, .Content .CaptionBorderBottom, .Content .CaptionVerticalLeft, .Content .CaptionVerticalRight { display: none; }
.Content .FormFieldError { color: var(--ember); }
.Content hr { border: 0; border-top: 1px solid var(--line); }

.Content input[type="text"], .Content input[type="password"], .Content input[type="email"], .Content input[type="number"], .Content select, .Content textarea {
	background: var(--ink); color: var(--limestone); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; max-width: 100%;
}
.Content input:focus, .Content select:focus, .Content textarea:focus { border-color: var(--bronze); outline: none; box-shadow: 0 0 0 3px rgba(197, 139, 76, .25); }
.Content input[type="submit"], .Content input[type="button"], .Content button {
	background: var(--bronze); color: var(--ink); border: 0; border-radius: var(--radius); padding: 9px 18px; font: 700 16px var(--f-body); cursor: pointer;
}
.Content input[type="submit"]:hover, .Content input[type="button"]:hover, .Content button:hover { background: var(--bronze-hi); }

.footer { color: var(--muted); font-size: 14px; text-align: center; }
.footer p { margin: 0; padding: 18px 16px 28px; }
.footer a { color: var(--muted); }

/* mobile */
@media (max-width: 860px) {
	.layout { grid-template-columns: 1fr; gap: 18px; }
	.quicknav { display: none; }
	.menu > summary { display: block; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: 16px var(--f-display); letter-spacing: .12em; color: var(--bronze); }
	.menu:not([open]) .menu-group { display: none; }
	.menu[open] > summary { margin-bottom: 14px; }
	.content { padding: 16px; overflow-x: auto; }
	.hero-copy { padding-top: 48px; }
	.wall { height: 170px; }
	.topbar-inner { gap: 10px; }
	.brand { font-size: 22px; }
}
@media (max-width: 480px) {
	.topbar .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* downloads page */
.dl h2 { font: 22px/1.2 var(--f-display); letter-spacing: .08em; color: var(--bronze); margin: 26px 0 10px; }
.dl ol { padding-left: 22px; }
.dl li { margin-bottom: 6px; }
.dl-btn { display: inline-block; background: var(--bronze); color: var(--ink); font-weight: 700; padding: 12px 20px; border-radius: var(--radius); text-decoration: none; margin-right: 10px; }
.dl-btn:hover { background: var(--bronze-hi); color: var(--ink); }
.dl-meta { color: var(--muted); font-size: 14px; font-family: var(--f-mono); word-break: break-all; }
