:root {
  --royal: #174494;
  --print: #102951;
  --rule: #c8cdd1;
  --chalk: #faf9f5;
  --muted: #44536a;
}
body {
  background: var(--chalk);
}
[hidden] {
  display: none !important;
}
.bar .navwrap {
  gap: 0 1.1rem;
}
.masthead-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1.1rem;
  padding-bottom: 0.35rem;
}
.archive-description {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.bar nav {
  gap: clamp(12px, 2vw, 30px);
}
.bar nav a[aria-current] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.overline {
  font: 600 0.85rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.cover {
  background: var(--print);
  color: #fff;
  border-bottom: 6px solid var(--gold);
}
.cover-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.4fr;
  align-items: center;
  gap: clamp(20px, 4vw, 65px);
  padding-block: clamp(26px, 3vw, 46px);
}
.cover-type h1 {
  font-size: clamp(5rem, 7.9vw, 7.6rem);
  line-height: 0.84;
  margin: 0.19em 0;
}
.cover-type > p:not(.overline) {
  max-width: 37ch;
  margin: 1rem 0 1.5rem;
  font-size: 1.12rem;
  line-height: 1.48;
}
.cover figure,
.feature-grid figure,
.ground-photo,
.postcard {
  margin: 0;
}
.cover figure {
  background: #f4eedc;
  color: var(--print);
  border: 7px solid #f4eedc;
  box-shadow: 3px 5px 0 #091e3c;
}
.cover figure img,
.feature-grid figure img,
.ground-photo img,
.postcard img {
  display: block;
  width: 100%;
  height: auto;
}
.cover figcaption {
  padding: 5px 2px 0;
  font-size: 0.82rem;
}
.cover figcaption a {
  color: inherit;
}
.cover-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}
.cover-links a:not(.paper-button) {
  color: white;
  text-underline-offset: 0.24em;
}
.paper-button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: #132947;
  font-weight: 760;
  text-decoration: none;
}
.paper-button:hover {
  text-decoration: underline;
}
.collection {
  padding-block: 2.7rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.matchday-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin: 0 0 1.25rem;
}
.matchday-links a {
  color: var(--royal);
  font-weight: 650;
  text-underline-offset: 0.2em;
}
.collection h2,
.feature-grid h2 {
  font-size: clamp(2.3rem, 3.6vw, 3.55rem);
}
.shelves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 2.1rem;
}
.shelves > a {
  border-top: 2px solid var(--royal);
  padding: 0.55rem 0;
  text-decoration: none;
}
.shelves strong,
.story-list strong {
  display: block;
  color: var(--print);
}
.shelves strong {
  font: var(--display);
  font-size: 1.65rem;
}
.shelves span {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0.25rem 0;
  color: var(--muted);
}
.shelves a:hover strong,
.story-list a:hover strong {
  text-decoration: underline;
}
.feature-band {
  background: #e8edf0;
  border-block: 1px solid var(--rule);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
  padding-block: 2.35rem;
}
.story-list {
  margin: 0.9rem 0;
  display: grid;
}
.story-list a {
  border-top: 1px solid var(--rule);
  padding: 0.65rem 0.15rem;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.7rem;
  text-decoration: none;
  align-items: baseline;
}
.story-list a:last-child {
  border-bottom: 1px solid var(--rule);
}
.story-list a span,
.crumb,
.years-nav,
.sources-inline {
  color: var(--muted);
  font-size: 0.91rem;
}
.story-list a span {
  font-family: var(--mono);
}
figcaption {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  padding-top: 0.55rem;
}
.feature-grid figure img {
  aspect-ratio: 2.15;
  object-fit: cover;
}
.pagehead {
  background: var(--print);
  color: #fff;
  border-bottom: 5px solid var(--gold);
  padding: clamp(30px, 4.6vw, 70px) 0;
}
.pagehead h1,
.article h1 {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  margin: 0;
  line-height: 0.98;
}
.pagehead p:last-child:not(.overline) {
  margin: 0.9rem 0 0;
  max-width: 75ch;
  font-size: 1.12rem;
}
.body-pad,
.reading-index,
.article {
  padding-block: 2.25rem 3.3rem;
}
.body-pad p {
  max-width: 78ch;
}
.body-pad h2,
.reading-index h2,
.article h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}
.body-pad h3 {
  font-size: 1.42rem;
}
.body-pad section[id],
.subsection {
  margin-top: 2.4rem;
}
.body-pad section[id]:first-child {
  margin-top: 0;
}
.article {
  max-width: 870px;
}
.article article {
  max-width: 740px;
}
.article h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  margin: 0.65rem 0 1.4rem;
}
.article article > p,
.story-chapter > p {
  font-size: 1.16rem;
  line-height: 1.72;
}
.story-photo {
  float: right;
  width: min(40%, 270px);
  margin: 0.35rem 0 1rem 1.5rem;
}
.story-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.story-photo.story-illustration {
  float: none;
  width: 100%;
  margin: 1.25rem 0;
}
.story-picture-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.story-picture-pair .story-photo {
  float: none;
  width: 100%;
  margin: 0;
}
.story-picture-pair img {
  width: auto;
  max-width: 100%;
  height: clamp(135px, 26vw, 240px);
  object-fit: contain;
  object-position: left bottom;
}
.article h2 {
  clear: both;
  margin-top: 1.8rem;
}
.crumb {
  margin: 0 0 1rem;
}
.selection-sheet {
  margin: 1.5rem 0;
  padding: clamp(1rem, 4vw, 1.8rem);
  color: var(--chalk);
  background: var(--print);
  border-top: 5px solid var(--gold);
}
.featured-players ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem .9rem;
  padding: 0;
  margin: 1rem 0;
}
.featured-players a {
  display: block;
  height: 100%;
  color: var(--print);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.player-portrait {
  aspect-ratio: 6 / 5;
  overflow: hidden;
}
.player-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
.featured-players a[href="#dalglish"] img {
  object-position: center top;
}
.featured-players a[href="#joe-jordan"] img,
.featured-players a[href="#john-mcginn"] img {
  object-position: 50% 12%;
}
.featured-players a[href="#ally-mccoist"] img {
  object-position: 50% 55%;
}
.featured-players a[href="#craig-levein"] img {
  transform: scale(1.8);
  transform-origin: 53% 26%;
}
.featured-players strong, .featured-players span {
  display: block;
}
.featured-players strong {
  font-size: 1.16rem;
  margin: .45rem 0 .15rem;
}
.featured-players span {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: .5rem;
}
.featured-players a:is(:hover, :focus-visible) strong {
  text-decoration: underline;
}
.portrait-credits {
  font-size: .9rem;
}
@media (max-width: 520px) {
  .featured-players ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.selection-sheet h2 {
  margin: 0 0 .7rem;
  color: inherit;
}
.selection-sheet dl, .selection-sheet dd {
  margin: 0;
}
.selection-sheet dl > div {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: .7rem;
  border-top: 1px solid #687994;
  padding: .65rem 0;
}
.selection-sheet dt {
  font: 600 .88rem/1.8 var(--mono);
}
.selection-sheet dd {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}
.selection-sheet a {
  color: white;
  text-decoration: underline;
  text-decoration-color: #93a7c6;
  text-underline-offset: .2em;
}
@media (max-width: 520px) {
  .selection-sheet dl > div {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
}
.citations {
  padding-left: 1.2rem;
  line-height: 1.65;
}
.story-turn,
.years-nav,
.register-links {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.story-turn {
  margin-top: 2.1rem;
}
.story-turn a {
  max-width: 42ch;
}
.years-nav {
  border-top: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.65rem;
  padding-top: 0;
}
.register-links {
  display: block;
}
.reading-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.reading-index .story-list a {
  grid-template-columns: 7.7rem 1fr;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.2rem;
}
.jump a {
  padding: 0.2rem 0;
}
.decade {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.25rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.3rem;
}
.decade div {
  display: flex;
  gap: 0.6rem 1.35rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.decade a,
.years-nav {
  font-family: var(--mono);
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 1rem 0;
}
table td small {
  display: block;
  min-width: 9rem;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}
.table-scroll td a {
  text-decoration: underline;
  color: var(--royal);
  font-weight: 600;
}
.table-scroll td:first-child {
  white-space: nowrap;
}
.people-group {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}
.people-group > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.people-group h3 {
  font-family: inherit;
  font-weight: 730;
  font-style: normal;
  text-transform: none;
  font-size: 1.07rem;
}
.people-group p {
  margin: 0.3rem 0;
  color: var(--muted);
}
.photographs,
.record-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  margin: 1.7rem 0;
}
.photographs {
  margin-top: 0;
}
.ground-photo img {
  aspect-ratio: 1.78;
  object-fit: cover;
}
.postcard {
  max-width: 850px;
}
.record-pair section {
  border-top: 2px solid var(--royal);
  padding-top: 0.7rem;
}
.reading-list,
.record-list {
  max-width: 90ch;
}
.reading-list > div,
.record-list > div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
dt {
  font-weight: 750;
}
dd {
  margin: 0.2rem 0 0;
  max-width: 74ch;
}
.body-pad details {
  margin: 1rem 0;
  padding: 0.65rem 0;
}
.body-pad summary {
  cursor: pointer;
  color: var(--royal);
  font-weight: 650;
}
.body-pad dl + h2,
#library h2 {
  margin-top: 2.2rem;
}
.filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 2px solid var(--print);
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.filters input,
.filters select,
.filters button,
.pager button {
  min-height: 42px;
  font: inherit;
  background: white;
  border: 1px solid #8c99a9;
  color: var(--ink);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
}
.filters input {
  width: 100%;
}
.filters select {
  max-width: 100%;
  appearance: none;
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--print) 50%),
    linear-gradient(135deg, var(--print) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 52%,
    calc(100% - 10px) 52%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.filters .opponent {
  flex: 1 1 13rem;
}
.filters button,
.pager button {
  cursor: pointer;
  color: var(--royal);
  font-weight: bold;
}
.filters button:hover,
.pager button:hover {
  background: #e8edf4;
}
.result-count {
  font-weight: 700;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.pager button:disabled {
  color: #627184;
  cursor: default;
}
.archive-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}
.archive-footer p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
}
.archive-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  max-width: 34rem;
}
.archive-footer nav a {
  text-decoration: underline;
  color: var(--royal);
}
.match-checked {
  font-size: 0.95rem;
  color: var(--muted);
}
:is(button, input, select, .table-scroll):focus-visible {
  outline: 3px solid #a85b00;
  outline-offset: 3px;
}
article:target {
  background: #fff1be;
}
html {
  scroll-behavior: auto;
}
@media (max-width: 860px) {
  .bar .navwrap {
    padding: 0.45rem 0;
    row-gap: 0.3rem;
  }
  .masthead-identity {
    width: 100%;
  }
  .navwrap .town-home {
    margin-left: auto;
  }
  .bar nav {
    margin: 0;
    width: 100%;
    min-height: 34px;
    flex-wrap: wrap;
  }
  .collection {
    grid-template-columns: 0.75fr 1.5fr;
    gap: 1.4rem;
  }
  .cover-grid {
    grid-template-columns: 0.85fr 1fr;
  }
  .reading-index .story-list a,
  .feature-grid .story-list a {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .people-group > div {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cover-grid,
  .collection,
  .feature-grid,
  .record-pair,
  .photographs,
  .reading-index {
    grid-template-columns: 1fr;
    gap: 1.05rem;
  }
  .cover-grid {
    padding-block: 1.4rem;
  }
  .cover-type h1 {
    font-size: 4.5rem;
    line-height: 0.95;
    margin: 0.08em 0;
  }
  .cover-type h1 br {
    display: none;
  }
  .cover-type h1 br:after {
    content: " ";
  }
  .cover-type > p:not(.overline) {
    font-size: 1rem;
    margin: 0.6rem 0 0.9rem;
  }
  .cover figcaption {
    font-size: 0.8rem;
  }
  .collection,
  .feature-grid {
    padding-block: 1.6rem;
  }
  .shelves {
    gap: 0.75rem 1rem;
  }
  .shelves strong {
    font-size: 1.35rem;
  }
  .shelves span {
    font-size: 0.97rem;
  }
  .bar nav {
    gap: 0.4rem 1rem;
  }
  .navwrap nav a {
    font-size: 0.9rem;
  }
  .archive-footer {
    display: block;
  }
  .archive-footer nav {
    margin-top: 1rem;
  }
  .people-group {
    grid-template-columns: 2rem 1fr;
  }
  .people-group > div {
    grid-template-columns: 1fr;
  }
  .decade {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .table-scroll table {
    display: table;
    min-width: 520px;
  }
  #league-calendar table {
    min-width: 0;
    font-size: 0.87rem;
  }
  #league-calendar :is(th, td) {
    padding: 0.5rem 0.3rem;
  }
  .table-scroll th,
  .table-scroll td {
    display: table-cell;
    padding: 0.55rem;
  }
  .table-scroll thead {
    display: table-header-group;
  }
  .table-scroll tbody {
    display: table-row-group;
  }
  .table-scroll tr {
    display: table-row;
  }
  .filters label {
    max-width: 100%;
  }
  .filters .opponent {
    flex-basis: 100%;
  }
  .body-pad,
  .reading-index,
  .article {
    padding-top: 1.5rem;
  }
  .photographs figure + figure {
    margin-top: 0.6rem;
  }
  .table-scroll td:first-child {
    white-space: normal;
  }
}
@media (max-width: 440px) {
  .bar nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 0.5rem;
  }
  .navwrap nav a {
    display: flex;
    align-items: center;
    min-height: 34px;
  }
}

@media (max-width: 620px) {
  .story-photo {
    float: none;
    width: min(100%, 25rem);
    margin: 1.2rem auto;
  }
}


.story-photo.facsimile {
  float: none;
  width: 100%;
  margin: 1.4rem 0;
}

#without-final-scores li + li {
  margin-top: 0.6rem;
}

.player-directory{columns:3 13rem;padding-left:1.3rem;line-height:1.9}
.player-directory li{break-inside:avoid}
.table-scroll details p{white-space:normal;min-width:14rem;max-width:38rem}
