/* EdCreate's base styles: page, type, the site header and footer. Replaced the purchased "Assan" theme (2026-10), which
   restyled every page - so the game pages' look depends on these defaults too. Components live in css/ui.css (ec-*);
   fonts in css/fonts.css (served from this site, not Google). */

:root {
	--site-ink: #22232d;
	--site-ink-2: #545a6a;
	--site-line: #dde3ec;
	--site-bg: #ffffff;
	--site-bg-2: #f5f8fc;
	--site-blue: #2a6bbf;
	--site-blue-ink: #1f5fae;
	--site-blue-soft: #e8f1fc;
}

body { margin: 0; background: var(--site-bg); color: var(--site-ink); font: 16px/1.6 "Lato", "Segoe UI", Arial, sans-serif; overflow-x: hidden; }
button, input, optgroup, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Rubik", "Lato", "Segoe UI", Arial, sans-serif; font-weight: 500; line-height: 1.25; color: var(--site-ink); margin: 0 0 .5rem; }
h1, .h1 { font-size: 2rem; } h2, .h2 { font-size: 1.6rem; } h3, .h3 { font-size: 1.35rem; }
h4, .h4 { font-size: 1.2rem; } h5, .h5 { font-size: 1.1rem; } h6, .h6 { font-size: 1rem; }
a { color: var(--site-blue-ink); text-decoration: none; }
a:hover { color: var(--site-blue); text-decoration: underline; }
/* links inside running text stay underlined */
.ec-legal a, .ec-a-alert a, .ec-hint a, .ec-a-help a, .ec-a-foot a, .ec-q-tips a, .ec-home-student small a, .ec-home-wsform small a, .ec-home-trust a { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--site-blue-ink); outline-offset: 2px; }

/* The theme's sizes, which the game pages were laid out with: a 1070px content column on wide screens, and Bootstrap
   buttons (.btn, also .btn-sm) with its larger padding and bold text. The redesigned pages use .ec-btn instead. */
@media (min-width: 1200px) { .container { max-width: none; width: 1070px; } } /* width, as the theme had: nested containers (the ad layout) get 1070 too */
.btn { padding: 13px 28px; border-radius: 4px; font-weight: 700; font-size: .95rem; letter-spacing: 1px; }
.btn-primary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-dark { border: 0; box-shadow: 0 2px 3px rgba(0, 0, 0, .18); }
.btn-primary { background: var(--site-blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--site-blue-ink); color: #fff; }
.btn-success { background: #1b7f20; color: #fff; }
.btn-success:hover, .btn-success:focus { background: #14621a; color: #fff; }
.btn-secondary { background: #f5f5f5; color: #333; border: 0; }
.btn-secondary:hover, .btn-secondary:focus { background: var(--site-blue); color: #fff; }

/* page content area (html_header() / html_footer()) */
main.main-content { display: block; padding: 20px 0 40px; min-height: 60vh; }

/* spacing helpers older pages use (admin area, html_title()) */
.mt10 { margin-top: 10px; } .mt20 { margin-top: 20px; } .mb10 { margin-bottom: 10px; } .mb20 { margin-bottom: 20px; }
.mb30 { margin-bottom: 30px; } .mb40 { margin-bottom: 40px; } .mb-40 { margin-bottom: 40px; }

/* ===== Site header ===== */
.site-hd { background: var(--site-bg); border-bottom: 1px solid var(--site-line); }
.site-hd .navbar { padding: 0; }
.site-hd-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; width: 100%; }
.site-logo { display: block; padding: 8px 0; flex: none; }
.site-logo svg { display: block; height: 40px; width: auto; }
.site-nav { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav .dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 8px; color: var(--site-ink);
	text-decoration: none; font-weight: 700; font-size: 15px; border: 0; background: none; white-space: nowrap; }
.site-nav a:hover, .site-nav .dropdown-toggle:hover, .site-nav .dropdown-toggle[aria-expanded="true"] { background: var(--site-bg-2); color: var(--site-ink); }
.site-nav a[aria-current="page"] { color: var(--site-blue-ink); box-shadow: inset 0 -3px 0 var(--site-blue); border-radius: 8px 8px 0 0; }
.site-nav .fa { color: var(--site-ink-2); width: 1.1em; text-align: center; }
.site-nav a.site-signup { background: var(--site-blue); color: #fff; margin-left: 6px; padding-inline: 16px; }
.site-nav a.site-signup:hover { background: var(--site-blue-ink); color: #fff; }
.site-nav .dropdown-menu { border-radius: 10px; border-color: var(--site-line); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 6px; min-width: 220px; }
.site-nav .dropdown-item { border-radius: 6px; padding: 8px 12px; font-weight: 400; min-height: 0; display: flex; }
.site-nav .dropdown-header { font-size: 13px; color: var(--site-ink-2); padding: 6px 12px 4px; }
.site-back { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--site-line); border-radius: 8px;
	color: var(--site-ink); font-weight: 700; text-decoration: none; max-width: 100%; }
.site-back:hover { background: var(--site-bg-2); color: var(--site-ink); }
.site-back .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--c, var(--site-blue)); flex: none; }
.site-back span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-burger { margin-left: auto; display: none; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--site-line); border-radius: 8px;
	background: var(--site-bg); color: var(--site-ink); font-weight: 700; }
@media (max-width: 767.98px) {
	.site-burger { display: inline-flex; }
	.site-hd .navbar-collapse { flex-basis: 100%; }
	.site-nav { flex-direction: column; align-items: stretch; margin: 0 0 12px; }
	.site-nav a, .site-nav .dropdown-toggle { width: 100%; }
	.site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--site-blue); border-radius: 0 8px 8px 0; }
	.site-nav a.site-signup { margin: 6px 0 0; justify-content: center; }
	.site-nav .dropdown-menu { position: static; box-shadow: none; }
}
.site-impersonating { background: #fdf3d8; color: #7d5800; text-align: center; padding: 8px 16px; font-weight: 700; }
.site-impersonating a { color: inherit; }

/* ===== Site footer ===== */
.site-ft { margin-top: 24px; padding: 32px 16px 28px; background: var(--site-bg-2); border-top: 1px solid var(--site-line); font-size: 15px; }
.site-ft-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-ft .site-logo-svg { height: 36px; width: auto; display: block; }
.site-ft p { margin: 8px 0 0; color: var(--site-ink-2); max-width: 34ch; }
.site-ft h2 { font: 700 13px "Lato", sans-serif; letter-spacing: .6px; text-transform: uppercase; color: var(--site-ink-2); margin: 0 0 8px; }
.site-ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-ft a { color: var(--site-ink); text-decoration: none; }
.site-ft a:hover { color: var(--site-blue-ink); text-decoration: underline; }
.site-ft-bottom { max-width: 1240px; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid var(--site-line); color: var(--site-ink-2); font-size: 14px;
	display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (max-width: 767.98px) { .site-ft-in { grid-template-columns: 1fr 1fr; } .site-ft-brand { grid-column: 1 / -1; } }

/* embedded activities (html_header_embed()): no header or footer, just the activity */
body.site-embed main.main-content { padding: 8px 0; min-height: 0; }

@media print {
	.site-hd, .site-ft, .site-impersonating { display: none !important; }
	main.main-content { padding: 0; }
}
