/* The Guard Journal — Gym Whiteboard
   Palette: bg #f2f4f4 / accent #b3261e / ink #26272a
   Motif: dry-erase board, hand-drawn arrows, bold red marker. Square corners only. */

:root {
  --bg: #f2f4f4;
  --accent: #b3261e;
  --ink: #26272a;
  --sheet: #ffffff;
  --line: #d9dede;
  --grid: #e6eaea;
  --mute: #6b7076;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.64;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.board-top {
  background: var(--sheet);
  border-bottom: 4px solid var(--ink);
  position: relative;
}
.board-top::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 120px; height: 4px;
  background: var(--accent);
}
.board-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.board-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.board-brand:hover { text-decoration: none; }
.brand-arrow {
  width: 40px; height: 28px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 13 Q11 7 21 12' fill='none' stroke='%23b3261e' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M15 6.5 L22 12 L14.5 17.5' fill='none' stroke='%23b3261e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.brand-block { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 1.32rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-tag { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mute); }

.board-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.board-nav a {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
}
.board-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.mat-hero {
  background: var(--sheet);
  border-bottom: 2px solid var(--ink);
  padding: 58px 0 52px;
}
.mat-hero-inner { max-width: 880px; }
.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.hero-h {
  margin: 0 0 18px;
  font-size: clamp(2.0rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-lede { margin: 0 0 16px; font-size: 1.1rem; max-width: 760px; color: #3a3c40; }
.hero-note {
  margin: 0;
  padding-left: 16px;
  border-left: 6px solid var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mute);
}

/* ---------- Family rail ---------- */
.family-rail { padding-top: 44px; }
.rail-label {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-block;
  border-bottom: 4px solid var(--accent);
  padding-bottom: 5px;
}
.family-row { display: flex; flex-wrap: wrap; gap: 14px; }
.family-tab {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
  padding: 15px 18px;
  background: var(--sheet);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(38, 39, 42, 0.13);
  color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
}
.family-tab:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  border-color: var(--accent);
  box-shadow: 7px 7px 0 var(--accent);
}
.tab-name { font-weight: 800; font-size: 1.08rem; }
.tab-count { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }

/* ---------- Card board (listings) ---------- */
.board-group { padding-top: 46px; }
.group-band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.group-band h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-bottom: 5px solid var(--accent);
  padding-bottom: 4px;
}
.band-more { font-size: 0.84rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

.card-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding-bottom: 10px;
}
.guard-card {
  position: relative;
  display: block;
  background: var(--sheet);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(38, 39, 42, 0.13);
  padding: 22px 20px 18px;
  color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
}
.guard-card:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  border-color: var(--accent);
  box-shadow: 7px 7px 0 var(--accent);
}
.card-pin { position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: var(--accent); }
.card-tag {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.card-title { display: block; font-weight: 800; font-size: 1.14rem; line-height: 1.26; margin-bottom: 14px; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.card-fact { font-size: 0.82rem; color: #3a3c40; }
.card-fact b { display: block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.card-desc { display: block; font-size: 0.9rem; color: var(--mute); margin-bottom: 14px; }
.card-go {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-right: 34px;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 26px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 9 Q11 4 22 8' fill='none' stroke='%23b3261e' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M16 3 L23 8 L15.5 13' fill='none' stroke='%23b3261e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Family head (category + entry top) ---------- */
.family-head { padding-top: 40px; padding-bottom: 24px; }
.crumb { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.crumb a { color: var(--accent); }
.family-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.family-head .lede { margin: 0; font-size: 1rem; color: var(--mute); max-width: 720px; }

/* ---------- Entry layout ---------- */
.card-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 60px;
}
.guard-card-sheet {
  position: sticky;
  top: 20px;
  background: var(--sheet);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--accent);
  padding: 20px 20px 6px;
}
.sheet-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.sheet-cap .card-tag { margin-bottom: 0; }
.sheet-name { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mute); }
.fact-list { margin: 0; }
.fact-row { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 5px;
}
.fact-row dd { margin: 0; font-size: 0.95rem; }
.fact-val { font-weight: 600; }
.card-bullets { margin: 0; padding: 0; list-style: none; }
.card-bullets li { position: relative; padding-left: 16px; font-size: 0.93rem; margin-bottom: 5px; }
.card-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--accent);
}

/* ---------- Prose ---------- */
.note-prose { max-width: 760px; }
.note-prose .sec { margin-bottom: 38px; }
.note-prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
}
.sec-num {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 1px 10px;
  margin-right: 12px;
}
.note-prose p { margin: 0 0 16px; }
.note-prose .related { border-top: 3px solid var(--ink); padding-top: 24px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { margin-bottom: 12px; padding-left: 26px; position: relative; }
.related-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 20px; height: 14px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 20px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 9 Q11 4 22 8' fill='none' stroke='%23b3261e' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M16 3 L23 8 L15.5 13' fill='none' stroke='%23b3261e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.related-list a { font-weight: 700; }
.legal-prose h2 { border-bottom: 3px solid var(--accent); margin-top: 30px; }

.family-rail-inline { padding-top: 10px; padding-bottom: 60px; }

/* ---------- Footer ---------- */
.board-foot { background: var(--ink); color: #e9ebeb; border-top: 6px solid var(--accent); margin-top: 30px; }
.board-foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 38px;
  padding-bottom: 34px;
}
.foot-brand { max-width: 460px; }
.foot-brand .brand-name { font-weight: 800; font-size: 1.15rem; }
.foot-brand p { margin: 10px 0 0; font-size: 0.9rem; color: #a9adaf; }
.foot-mark {
  display: inline-block;
  width: 34px; height: 22px;
  margin-bottom: 10px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 9 Q11 4 22 8' fill='none' stroke='%23b3261e' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M16 3 L23 8 L15.5 13' fill='none' stroke='%23b3261e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { color: #e9ebeb; font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.foot-nav a:hover { color: #ff6b60; }
.foot-fine { flex-basis: 100%; margin: 6px 0 0; font-size: 0.78rem; color: #8b8f91; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .board-top-inner { flex-direction: column; align-items: flex-start; }
  .board-nav { gap: 2px 14px; }
  .card-layout { grid-template-columns: 1fr; gap: 30px; }
  .guard-card-sheet { position: static; }
  .mat-hero { padding: 40px 0 36px; }
  .card-board { grid-template-columns: 1fr; gap: 18px; }
  .family-tab { min-width: 0; flex: 1 1 100%; }
  .group-band { flex-direction: column; align-items: flex-start; gap: 8px; }
}
