/* The old powerliftingalliance theme's look (nattercan/style.css), without its menus */
/* line-height in em, as the theme had it: every element inherits the same 24px, which the athlete page is laid out on */
body { margin: 0; font: 500 20px/1.2em "Public Sans", sans-serif; color: #000; background: #f2f2f2; }
h2, h3, h4, h5 { margin-top: 2em; }
h2:first-child, h3:first-child, h4:first-child, h5:first-child { margin-top: 0; }
h5 { text-transform: uppercase; }
fieldset { margin: 0; border: 0; }

header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em; padding: 1em; background: #000; }
header .socials { display: flex; gap: 1em; }
header .socials img { display: block; width: auto; height: 1.25em; }
header .logo { display: block; width: auto; height: 4em; }
header .big-buttons { text-align: right; }
.yellow-button, form button { display: inline-block; padding: 0.5em 1.5em; font: inherit; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: #fff; background: #000; border: 2px solid #ffd50e; border-radius: 1em; cursor: pointer; }
.yellow-button:hover, form button:hover { color: #000; background: #ffd50e; }

.sub-header { position: relative; display: flex; justify-content: center; background: #000; }
.sub-header .banner { width: 100%; max-width: 90em; height: 0; padding-bottom: 25%; background: #000 50% / 100% auto no-repeat; }
.sub-header .header-title { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); }
.sub-header h1 { margin: 0; color: #fff; font-size: 3em; line-height: 1.1em; text-transform: uppercase; text-align: center; text-shadow: 0 0 30px rgb(0 0 0 / 75%), 0 0 10px #000; }
@media (max-width: 900px) {
	.sub-header .banner { min-height: 8em; padding-bottom: 0; background-size: cover; }
	.sub-header h1 { font-size: 2em; }
}

main { box-sizing: border-box; width: 100%; max-width: 1500px; margin: 0 auto; padding: 3em; background: #fff; }
main a { color: #000; opacity: 0.6; }
main a:hover { opacity: 1; }
main a.stealth { opacity: 1; text-decoration: none; }
main a.stealth:hover { text-decoration: underline; }
@media (max-width: 1500px) { main { padding-left: 1em; padding-right: 1em; } }

footer { display: flex; flex-direction: column; align-items: center; gap: 2em; padding: 3em; background: #000; }
footer img { width: auto; height: 3em; }
footer small { color: #aaa; font-size: 0.66em; text-transform: uppercase; text-align: center; }

.event-type > * { display: inline-block; margin: 0 1em 1.5em 0; }

details.accordion { margin-bottom: 1.5em; }
details.accordion > summary { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 1em; color: #fff; background: #000; cursor: pointer; list-style: none; }
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::before { content: "\25B6"; font-size: 0.8em; }
details.accordion[open] > summary::before { content: "\25BC"; }
details.accordion > summary > * { margin: 0; }
details.accordion[open] > summary { margin-bottom: 1em; }

.results, .records { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.results > div, .records > div { min-width: 0; overflow-x: auto; }
@media (max-width: 1200px) { .records .date { display: none; } }
@media (max-width: 900px) { .results, .records { grid-template-columns: 1fr; } .records .date { display: table-cell; } }
@media (max-width: 600px) { body { font-size: 16px; } .records .date { display: none; } }
@media (max-width: 500px) { body { font-size: 14px; } }
.results h4 { margin-top: 0; }
.records h3 { margin: 0 0 0.5em; }
/* the rankings, records, coaches and expiry tables; the athlete page styles its own */
:is(.results, .records) table, main > table { width: 100%; border-collapse: separate; border-spacing: 0; }
:is(.results, .records, main > table) :is(th, td) { padding: 0.35em 0.5em; font-size: 0.9em; text-align: left; border-top: 1px solid #fff; border-right: 1px solid #fff; }
:is(.results, .records, main > table) th { color: #fff; background: #000; }
:is(.results, .records) th:last-child { text-align: right; }
:is(.results, .records, main > table) td { background: #fcde9d; }
.results tbody tr:nth-child(even) td, table.coaches tr:nth-child(even) td, .records tbody:nth-of-type(even) td { background: #81d3b9; }
.records tbody tr:first-child td { border-top-color: #000; }
/* the old coaches page had no doctype, so (in quirks mode) its table didn't inherit the body's font size or weight */
table.coaches { font: 400 16px/normal "Public Sans", sans-serif; }
.records td.class { font-weight: bold; vertical-align: top; border-right-color: #000; }
.records tr.standard td { color: #888; }
.number { text-align: right; font-family: monospace; white-space: nowrap; }
td.date { white-space: nowrap; }
.doesnt_meet_qt { opacity: 0.6; }
.feedback { margin-top: 3em; }
.results td small { color: #666; }
.insta-link { width: 0.6em; height: auto; margin-left: 0.05em; filter: invert(100%); }

/* the form pages: coaches, division calculator, expiry check, LiftingCast files */
.bad, .expired, .unmatched { color: #d00; }
form label { display: block; margin-bottom: 1em; font-weight: 600; }
form label small { font-weight: 400; color: #767676; }
form :is(input, textarea, select) { display: block; margin-top: 0.25em; padding: 0.4em 0.6em; font: inherit; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; max-width: 100%; background: #fff; }
form textarea { width: 100%; max-width: 400px; font-family: monospace; }
main > form { margin-bottom: 2em; }
.answer { font-size: 1.4em; font-weight: 600; }
.tools li { margin: 0.4em 0; }
