/* TNKC student portal. Club colours: red #C8102E, black, white. Phone first. */
:root {
  --red: #c8102e;
  --black: #111;
  --grey: #666;
  --line: #ddd;
  --bg: #f4f4f4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--black);
  background: var(--bg);
}
header.top {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  background: var(--black);
  color: #fff;
  border-bottom: 4px solid var(--red);
}
header.top .logo { width: 36px; height: 36px; }
header.top .club { font-weight: 700; flex: 1; }
header.top form { margin: 0; }
main { max-width: 52rem; margin: 0 auto; padding: 1rem .75rem 2rem; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; border-left: 4px solid var(--red); padding-left: .5rem; }
.card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.narrow { max-width: 26rem; margin: 1.5rem auto; }
.hero { display: flex; gap: 1rem; align-items: center; }
.photo { width: 96px; height: 120px; object-fit: cover; border-radius: 6px; border: 2px solid var(--black); }
.grade { font-size: 1.1rem; font-weight: 600; margin: .25rem 0; }
.swatch { width: 1em; height: 1em; vertical-align: -.15em; margin-right: .4em; border: 1px solid #999; border-radius: 2px; }
.muted, .hint { color: var(--grey); }
.hint { font-size: .9rem; margin: .25rem 0 .5rem; }
.footer { text-align: center; font-size: .9rem; }
.message {
  background: #fdecee;
  border-left: 4px solid var(--red);
  padding: .5rem .75rem;
  margin: .5rem 0 1rem;
}
label { display: block; font-weight: 600; margin-top: .75rem; }
input {
  width: 100%;
  font: inherit;
  padding: .6rem;
  margin-top: .25rem;
  border: 1px solid #aaa;
  border-radius: 6px;
}
input:focus { outline: 2px solid var(--red); border-color: var(--red); }
button, a.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 6px;
  padding: .6rem 1.1rem;
  margin-top: 1rem;
  text-decoration: none;
  cursor: pointer;
}
form > button { width: 100%; }
button:hover, a.button:hover { background: #a00c24; }
button.link { background: none; color: #fff; padding: .3rem .5rem; margin: 0; text-decoration: underline; width: auto; }
a { color: var(--red); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.facts dt { color: var(--grey); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.readiness { font-weight: 700; margin: 0 0 .25rem; }
progress, meter { width: 100%; height: 1rem; accent-color: var(--red); }
progress { margin-bottom: .75rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .4rem .45rem; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .85rem; color: var(--grey); }
.num { text-align: right; }
.nowrap { white-space: nowrap; }
tr.sub td { font-size: .85rem; color: var(--grey); padding-top: 0; }
tr:has(+ tr.sub) td { border-bottom: 0; }
table.months td { border: 0; padding: .15rem .3rem; }
table.months td.bar { width: 100%; }
ul.certs { list-style: none; margin: 0; padding: 0; }
ul.certs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
ul.certs a.button { margin: 0 0 0 1rem; padding: .4rem .9rem; }
details { margin-top: .75rem; }
summary { cursor: pointer; color: var(--red); font-weight: 600; }
ul.dates { columns: 2; padding-left: 1.2rem; }
@media (max-width: 30rem) {
  .hero { flex-direction: column; text-align: center; }
  ul.dates { columns: 1; }
}
