/* Shared styles for the printable Sport Education Unit handouts. */

:root {
  --navy: #1f3366;
  --red: #ab2328;
  --light-navy: #e3e8f3;
  --lighter-navy: #f2f5fa;
  --line: #9aa3b5;
  --ink: #111;
  --muted: #555;
}

* {
  box-sizing: border-box;
}

@page {
  size: letter portrait;
  margin: 0.45in;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
    padding: 0 !important;
  }
  .page {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-height: 0 !important;
  }
  .page + .page {
    break-before: page;
  }
}

body {
  margin: 0;
  padding: 24px 16px 48px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  background: #e9ecf1;
}

.print-bar {
  max-width: 8.5in;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.print-bar a {
  color: var(--navy);
}

.print-bar button {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.page {
  width: 8.5in;
  max-width: 100%;
  min-height: 11in;
  margin: 0 auto 24px;
  padding: 0.45in;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.page.landscape {
  width: 11in;
  min-height: 8.5in;
}

/* ---------- Header ---------- */

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--navy);
  position: relative;
  margin-bottom: 16px;
}

.sheet-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--red);
}

.sheet-head img {
  height: 46px;
  width: auto;
}

.sheet-title {
  text-align: right;
}

.sheet-title h1 {
  margin: 0;
  font-size: 22px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sheet-title .sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Text ---------- */

h2 {
  margin: 18px 0 8px;
  font-size: 15px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--navy);
}

p {
  margin: 0 0 8px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin-bottom: 2px;
}

.intro {
  margin-bottom: 12px;
}

.note {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Fill-in fields ---------- */

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 14px;
}

.field {
  flex: 1 1 200px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-weight: bold;
  white-space: nowrap;
}

.field.small {
  flex: 0 1 150px;
}

.field .line {
  flex: 1;
  border-bottom: 1px solid var(--ink);
  height: 20px;
}

.write-lines {
  margin-bottom: 12px;
}

.write-lines .line {
  border-bottom: 1px solid var(--line);
  height: 28px;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 3px;
  padding: 8px 10px;
  break-inside: avoid;
}

.card.red {
  border-left-color: var(--red);
}

.callout {
  background: var(--lighter-navy);
  border: 1px solid var(--light-navy);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

/* ---------- Tables ---------- */

table.grid {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

table.grid th,
table.grid td {
  border: 1px solid var(--ink);
  padding: 4px 6px;
  height: 28px;
  vertical-align: middle;
}

table.grid thead th {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table.grid tbody th {
  background: var(--light-navy);
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}

table.grid td.shade,
table.grid th.shade {
  background: var(--lighter-navy);
}

table.grid td.best {
  background: #fdf1f1;
}

table.grid .center {
  text-align: center;
}

table.grid .num {
  width: 34px;
  text-align: center;
  font-weight: bold;
}

/* ---------- Divider (tear-off) ---------- */

.cut {
  margin: 18px 0 14px;
  border-top: 2px dashed var(--line);
  position: relative;
  text-align: center;
}

.cut span {
  position: relative;
  top: -9px;
  background: #fff;
  padding: 0 10px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sheet-foot {
  margin-top: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--light-navy);
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
