/*
 * CardReactor clean-slate public reference stylesheet.
 * Built from the supplied TCDB HTML/CSS/video archive.
 * No historical CardReactor public layout selectors participate here.
 */

:root {
  --crf-bg: #242729;
  --crf-header: #C6491A;
  --crf-content: #F1F1F1;
  --crf-panel: #FFFFFF;
  --crf-line: #E8E8E8;
  --crf-text: #242729;
  --crf-muted: #6c757d;
  --crf-link: #0d6efd;
  --crf-visited: #551A8B;
  --crf-title: #C6491A;
  --crf-title2: #D3741C;
  --crf-row-a: #F7F9F9;
  --crf-row-b: #EAEEEE;
  --crf-container: 100%;
}

* { box-sizing: border-box; }
html { background: var(--crf-bg); }
body.crf-document {
  margin: 0;
  color: var(--crf-text);
  background: var(--crf-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--crf-link); text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
a:visited { color: var(--crf-visited); }
a:hover { color: purple; text-decoration: underline; }
p { display: block; margin: 1em 0; }
img { max-width: 100%; height: auto; vertical-align: middle; }
table { border-collapse: collapse; }
button, input, select { font: inherit; }

.crf-container {
  width: 100%;
  max-width: var(--crf-container);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--crf-content);
  text-align: left;
}

/* Header ------------------------------------------------------------ */
.crf-header { color: #fff; background: var(--crf-header); }
.crf-header-top {
  display: grid;
  grid-template-columns: 25% 75%;
  min-height: 90px;
  background: var(--crf-header);
}
.crf-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
}
.crf-header-logo a { display: block; width: 225px; max-width: 100%; }
.crf-header-logo img {
  display: block;
  width: 225px;
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.crf-header-banner { min-width: 0; min-height: 90px; background: var(--crf-header); }
.crf-navbar { position: relative; min-height: 54px; background: var(--crf-header); }
.crf-navbar-toggle {
  display: none;
  margin: 8px 12px;
  padding: 4px 10px;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
}
.crf-navbar-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: rgba(255,255,255,.6); }
.crf-navbar-content { display: flex; align-items: center; min-height: 54px; padding: 0 12px; }
.crf-nav-link, .crf-account {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: #fff !important;
  white-space: nowrap;
}
.crf-nav-link:hover { color: #fff !important; text-decoration: none; }
.crf-nav-dropdown { position: relative; }
.crf-dropdown-menu {
  position: absolute;
  z-index: 80;
  top: 44px;
  left: 0;
  display: none;
  min-width: 190px;
  padding: 7px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 4px;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
.crf-nav-dropdown:hover .crf-dropdown-menu,
.crf-nav-dropdown:focus-within .crf-dropdown-menu { display: block; }
.crf-dropdown-menu a { display: block; padding: 3px 14px; color: #000 !important; text-decoration: none; }
.crf-dropdown-menu a:hover { color: #000 !important; background: #e9ecef; text-decoration: none; }
.crf-search {
  display: grid;
  grid-template-columns: minmax(120px,auto) minmax(180px,430px) auto;
  align-items: center;
  gap: 2px;
  width: min(620px,100%);
  margin: 0 auto;
}
.crf-search select, .crf-search input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  color: #212529;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
}
.crf-account { margin-left: auto; }

/* Bootstrap-like content geometry --------------------------------- */
.crf-content { display: grid; width: 100%; padding: 5px 0; background: var(--crf-content); }
.crf-grid-8-4 { grid-template-columns: 66.666667% 33.333333%; }
.crf-grid-3-6-3 { grid-template-columns: 25% 50% 25%; }
.crf-grid-3-9 { grid-template-columns: 25% 75%; }
.crf-col-main, .crf-col-left, .crf-col-right, .crf-col-side { min-width: 0; margin: 0; padding: 5px; }
.crf-block {
  width: auto;
  margin-bottom: 7px;
  padding: 10px 12px;
  background: var(--crf-panel);
  border: 1px solid var(--crf-line);
  border-radius: 12px;
  text-align: left;
}
.crf-block:last-child { margin-bottom: 0; }
.crf-site-heading { margin: 0 0 .5em; padding: 0; color: var(--crf-title); font-size: 19px; font-weight: bold; line-height: 1.2; }
.crf-subheading { margin: 0 0 .5em; padding: 0; color: var(--crf-title2); font-size: 19px; font-weight: bold; line-height: 1.2; }
.crf-orange { color: var(--crf-title); }
.crf-text-end { text-align: right; }
.crf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 10px 16px;
  color: #495057;
  background: #E9ECEF;
  border-radius: 4px;
  font-size: 14px;
}
.crf-breadcrumb b { font-weight: 400; }
.crf-mobile-set-breadcrumb { display: none; }

.crf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .375rem .75rem;
  color: #212529 !important;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.crf-btn:hover { color: #212529 !important; background: #e9ecef; text-decoration: none; }
.crf-btn-primary { color: #fff !important; background: #0d6efd; border-color: #0d6efd; }
.crf-btn-primary:hover { color: #fff !important; background: #0b5ed7; border-color: #0a58ca; }
.crf-btn-sm { padding: .25rem .5rem; font-size: .875rem; }

/* Browse / sport / years / year ----------------------------------- */
.crf-simple-list, .crf-release-list { margin: 0; padding-left: 2rem; }
.crf-simple-list li, .crf-release-list li { margin: .12rem 0; }
.crf-reference-card {
  width: 18rem;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
}
.crf-reference-card__header { padding: .5rem 1rem; background: rgba(0,0,0,.03); border-bottom: 1px solid rgba(0,0,0,.125); }
.crf-reference-card__list { margin: 0; padding: 0; list-style: none; }
.crf-reference-card__list > li { padding: .5rem 1rem; border-bottom: 1px solid rgba(0,0,0,.125); }
.crf-reference-card__list > li:last-child { border-bottom: 0; }
.crf-reference-card__list ul { margin: .25rem 0 0; padding-left: 1.5rem; }
.crf-inline-links { margin-top: .2rem; padding-left: 1rem; }
.crf-year-reference-table { width: 100%; table-layout: fixed; }
.crf-year-reference-table td { width: 20%; padding: 0; text-align: center; vertical-align: top; }
.crf-year-reference-table ul { margin: 0; padding-left: 20px; list-style-position: inside; }
.crf-year-reference-table li { white-space: nowrap; }
.crf-year-reference-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.crf-year-reference-nav span:last-child { text-align: right; }
.crf-more-links { clear: both; margin: 5px 0 12px; padding: 5px 0 0; border-top: 1px dotted #ccc; }
.crf-team-heading { margin: 0 0 .5em; color: #242729; font-size: 15px; font-weight: bold; }

/* Set context ------------------------------------------------------ */
.crf-set-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin: 8px 0 10px;
  padding: 6px;
  background: #f8f8f8;
  border: 1px solid #e3e3e3;
}
.crf-set-sample img {
  width: auto;
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.crf-set-links ul { margin: .2rem 0 0; padding-left: 1.15rem; }
.crf-set-links li { margin: .18rem 0; }
.crf-set-links span { color: var(--crf-text); }

/* Options dropdown ------------------------------------------------- */
.crf-options { position: relative; display: inline-block; }
.crf-options-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 2px);
  right: 0;
  min-width: 155px;
  padding: 5px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: .25rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  text-align: left;
}
.crf-options-menu a { display: block; padding: .35rem 1rem; color: #212529 !important; white-space: nowrap; }
.crf-options-menu a:hover, .crf-options-menu a.is-active { background: #e9ecef; text-decoration: none; }

/* Checklist / rookies / HOF --------------------------------------- */
.crf-table-scroll { width: 100%; overflow-x: auto; }
.crf-checklist, .crf-index-table, .crf-facts { width: 100%; border-collapse: collapse; }
.crf-checklist tr { height: 70px; }
.crf-checklist td { height: 70px; padding: 0; vertical-align: middle; border: 0; font-size: 14px; }
.crf-checklist .crf-row-a td, .crf-index-table .crf-row-a td { background: var(--crf-row-a); }
.crf-checklist .crf-row-b td, .crf-index-table .crf-row-b td { background: var(--crf-row-b); }
.crf-thumb { width: 50px; min-width: 50px; max-width: 50px; overflow: visible; white-space: nowrap; }
.crf-thumb a { display: flex; width: 50px; height: 70px; align-items: center; justify-content: center; overflow: visible; }
.crf-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 50px;
  max-height: 70px;
  object-fit: contain;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.crf-thumb img:hover { box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.crf-cell-spacer { width: 5px; min-width: 5px; max-width: 5px; }
.crf-card-number { width: 44px; white-space: nowrap; }
.crf-card-name { width: 45%; }
.crf-card-team { width: 45%; }
.crf-card-name small { color: #999; font-size: 10px; }
.crf-record-count { margin: 10px 0 4px; color: #242729; font-size: 14px; text-align: left; }
.crf-section-header, .crf-card-heading { width: 100%; margin: 0 0 10px; }
.crf-section-header td, .crf-card-heading td { padding: 0; vertical-align: top; }
.crf-section-header h3 { margin: 0; color: #242729; font-size: 15px; font-weight: bold; }

/* Insert / parallel rows ------------------------------------------ */
.crf-index-table td { padding: 7px 8px; border: 0; vertical-align: top; font-size: 14px; }
.crf-index-table tr:has(.crf-index-thumb) { height: 70px; }
.crf-index-thumb { width: 70px; min-width: 70px; padding: 0 !important; }
.crf-index-thumb a { display: flex; width: 70px; height: 70px; align-items: flex-start; justify-content: flex-start; }
.crf-index-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 50px;
  max-height: 70px;
  object-fit: contain;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.crf-index-spacer { width: 2px; min-width: 2px; padding: 0 !important; }
.crf-index-table figcaption { color: #6c757d; font-size: .875em; line-height: 1.35; }
.crf-index-meta { width: 100px; color: #6c757d; font-size: 12px !important; text-align: right; white-space: nowrap; }

/* Teams ------------------------------------------------------------ */
.crf-team-list { margin: 0; padding-left: 2rem; }
.crf-team-list li { margin: .12rem 0; }

/* Pagination ------------------------------------------------------- */
.crf-pager { margin: 8px 0; text-align: center; }
.crf-pager nav { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.crf-pager a, .crf-pager b, .crf-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-left: -1px;
  padding: 0 8px;
  color: #0d6efd;
  background: #fff;
  border: 1px solid #dee2e6;
  font-weight: 400;
  text-decoration: none;
}
.crf-pager b { z-index: 2; color: #fff; background: #0d6efd; border-color: #0d6efd; }
.crf-pager a:hover { color: #0a58ca; background: #e9ecef; text-decoration: none; }

/* Gallery: clean large front/back tier ----------------------------- */
.crf-gallery-options { margin: 6px 0 12px; font-size: 13px; }
.crf-gallery { display: grid; grid-template-columns: 1fr; gap: 0; }
.crf-gallery-row { padding: 10px 6px; background: #fff; border-bottom: 1px dotted #999; text-align: center; }
.crf-gallery-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; color: inherit !important; text-decoration: none; }
.crf-gallery-images > span { display: flex; align-items: flex-end; justify-content: center; min-height: 215px; padding: 4px; }
.crf-gallery-images img {
  width: auto;
  max-width: 100%;
  max-height: 260px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.crf-gallery-images img:hover { box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.crf-gallery-caption { display: block; margin-top: 7px; font-size: 14px; }

/* Card detail: same clean large tier as gallery ------------------- */
.crf-card-title { margin: 0; color: #242729; font-size: 19px; font-weight: bold; line-height: 1.2; }
.crf-card-next { width: 28%; text-align: right; white-space: nowrap; }
.crf-card-next .crf-btn + .crf-btn { margin-left: 4px; }
.crf-card-image-table { width: 100%; margin: 16px 0 14px; padding: 8px; background: #F1F1F1; border: 1px solid #D2D2D2; }
.crf-card-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.crf-card-images figure { margin: 0; text-align: center; }
.crf-card-images figure > div { display: flex; align-items: center; justify-content: center; min-height: 350px; }
.crf-card-images img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.crf-card-images img:hover { box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.crf-card-images figcaption { margin-top: 5px; color: #6c757d; font-size: 13px; }
.crf-card-meta-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.crf-card-meta-columns ul { margin: 0; padding-left: 1.4em; }
.crf-card-meta-columns li { margin: .2rem 0; }
.crf-facts { margin-top: 14px; }
.crf-facts th, .crf-facts td { padding: 7px 8px; border-top: 1px dotted #999; border-bottom: 1px dotted #999; text-align: left; vertical-align: top; }
.crf-facts th { width: 150px; background: var(--crf-row-b); }
.crf-facts td { background: var(--crf-row-a); }

/* Names / directories --------------------------------------------- */
.crf-letter-nav { margin: 8px 0 14px; }
.crf-name-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px 18px; }
.crf-name-grid a { padding: 3px 0; border-bottom: 1px dotted #ddd; }

/* Footer ----------------------------------------------------------- */
.crf-footer {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 30px;
  clear: both;
  padding: 25px 15px 15px 35px;
  color: #F1F1F1;
  background: #666666;
  font-size: 13px;
  text-align: left;
}
.crf-footer h3 { margin: 0 0 .5em; color: #fff; font-size: 15px; }
.crf-footer a { display: block; padding: 0; color: #F1F1F1 !important; font-weight: bold; text-decoration: none; }
.crf-footer a:hover { color: #fff !important; text-decoration: underline; }
.crf-footer p { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }

/* Exact Bootstrap 5 .container-lg breakpoints from the archive. */
@media (min-width: 992px) { :root { --crf-container: 960px; } }
@media (min-width: 1200px) { :root { --crf-container: 1140px; } }
@media (min-width: 1400px) { :root { --crf-container: 1320px; } }

@media (min-width: 768px) and (max-width: 991px) {
  .crf-search { grid-template-columns: 105px minmax(120px,1fr) auto; }
  .crf-navbar-content { padding-inline: 6px; }
  .crf-nav-link { padding-inline: 6px; }
  .crf-name-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .crf-card-images figure > div { min-height: 300px; }
}

/* Bootstrap md collapse: below 768px former col-md-* stack. */
@media (max-width: 767px) {
  body.crf-document { background: var(--crf-content); }
  .crf-container { max-width: 100%; }
  .crf-header-top { display: block; min-height: 76px; }
  .crf-header-logo { min-height: 76px; padding: 0 12px; }
  .crf-header-logo a, .crf-header-logo img { width: 125px; max-height: 76px; }
  .crf-header-banner { display: none; }
  .crf-navbar { min-height: 50px; }
  .crf-navbar-toggle { display: inline-block; }
  .crf-navbar-content { display: none; align-items: stretch; flex-direction: column; padding: 6px 8px 10px; }
  .crf-navbar-content.is-open { display: flex; }
  .crf-nav-dropdown { width: 100%; }
  .crf-nav-link, .crf-account { width: 100%; min-height: 36px; padding: 6px 8px; }
  .crf-dropdown-menu { position: static; width: 100%; margin-bottom: 8px; box-shadow: none; }
  .crf-nav-dropdown:focus-within .crf-dropdown-menu { display: block; }
  .crf-search { grid-template-columns: 1fr; width: 100%; padding: 5px 0; }
  .crf-account { margin-left: 0; }

  .crf-content, .crf-grid-8-4, .crf-grid-3-6-3, .crf-grid-3-9 { grid-template-columns: minmax(0,1fr); }
  .crf-col-main, .crf-col-left, .crf-col-right, .crf-col-side { padding: 5px; }
  .crf-grid-3-6-3 .crf-col-left, .crf-grid-3-9 .crf-col-left { order: 1; }
  .crf-grid-3-6-3 .crf-col-main, .crf-grid-3-9 .crf-col-main { order: 2; }
  .crf-grid-3-6-3 .crf-col-right { order: 3; }
  .crf-desktop-set-breadcrumb { display: none; }
  .crf-mobile-set-breadcrumb { display: block; }

  .crf-reference-card { width: 100%; }
  .crf-year-reference-table { min-width: 520px; }
  .crf-name-grid { grid-template-columns: 1fr; }
  .crf-card-heading { display: block; }
  .crf-card-heading tbody, .crf-card-heading tr, .crf-card-heading td { display: block; width: 100%; }
  .crf-card-next { margin-top: 8px; text-align: left; white-space: normal; }
  .crf-card-images { grid-template-columns: 1fr 1fr; gap: 7px; }
  .crf-card-images figure > div { min-height: 190px; }
  .crf-card-images img { max-height: 285px; }
  .crf-card-meta-columns { grid-template-columns: 1fr; gap: 6px; }
  .crf-gallery-images { gap: 5px; }
  .crf-gallery-images > span { min-height: 160px; padding: 2px; }
  .crf-gallery-images img { max-height: 200px; }
  .crf-index-meta { display: none; }
  .crf-footer { grid-template-columns: 1fr; padding: 20px 18px; }
  .crf-footer p { grid-column: 1; }
}

@media (max-width: 430px) {
  .crf-breadcrumb { padding: 8px 10px; font-size: 12px; }
  .crf-site-heading, .crf-subheading, .crf-card-title { font-size: 18px; }
  .crf-card-images figure > div { min-height: 150px; }
  .crf-card-images img { max-height: 235px; }
}
