:root {
  --pd8ci: #2b1017;
  --pd8ca: #e1b55a;
}

* {
  box-sizing: border-box;
}

body.pd8c-shell {
  color: #1d2126;
  background: #eef0f2;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  margin: 0;
  font: 15px / 1.6 Helvetica Neue, Helvetica, Arial, Liberation Sans, sans-serif;
  display: grid;
}

.pd8c-shell a {
  color: var(--pd8ci);
}

.pd8c-shell img {
  max-width: 100%;
  display: block;
}

.pd8c-shell h1, .pd8c-shell h2, .pd8c-shell h3 {
  color: var(--pd8ci);
  font-family: Georgia, Times New Roman, Times, serif;
  line-height: 1.2;
}

.pd8c-rail {
  background: var(--pd8ci);
  color: #fff;
  height: 100vh;
  padding: 28px 22px;
  position: sticky;
  top: 0;
  overflow: auto;
}

.pd8c-rail a {
  color: #fff;
}

.pd8c-logo {
  margin-bottom: 26px;
  text-decoration: none;
  display: block;
}

.pd8c-logo img {
  border: 2px solid var(--pd8ca);
  border-radius: 10px;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.pd8c-logo span {
  font-family: Georgia, Times New Roman, Times, serif;
  font-size: 21px;
}

.pd8c-links a {
  border-bottom: 1px solid #ffffff26;
  padding: 8px 0;
  text-decoration: none;
  display: block;
}

.pd8c-links a:hover {
  color: var(--pd8ca);
}

.pd8c-rail small {
  opacity: .7;
}

.pd8c-rail-toggle {
  color: #fff;
  background: none;
  border: 1px solid #ffffff59;
  border-radius: 6px;
  padding: 5px 12px;
  display: none;
}

.pd8c-pane {
  min-width: 0;
}

.pd8c-pane main {
  max-width: 880px;
  padding: 40px 44px;
}

.pd8c-pane section {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 26px 28px;
}

.pd8c-intro h1 {
  margin: .2em 0;
  font-size: clamp(30px, 4vw, 46px);
}

.pd8c-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--pd8ca);
  font-size: 11px;
  font-weight: 700;
}

.pd8c-board {
  border: 1px solid #dde1e5;
  border-radius: 8px;
  overflow: hidden;
}

.pd8c-board-row {
  border-top: 1px solid #e6e9ec;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  display: grid;
}

.pd8c-board-row:first-child {
  background: color-mix(in srgb, var(--pd8ca) 12%, #fff);
  border-top: 0;
}

.pd8c-board-rank {
  color: var(--pd8ci);
  font-weight: 700;
}

.pd8c-board-name b {
  font-size: 17px;
  display: block;
}

.pd8c-board-name small {
  color: #6a727b;
}

.pd8c-board-go {
  background: var(--pd8ci);
  white-space: nowrap;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
  color: #fff !important;
}

.pd8c-board-empty {
  border: 1px dashed #b8c0c8;
  border-radius: 8px;
  padding: 20px;
}

.pd8c-facts {
  grid-template-columns: 28px 1fr;
  gap: 6px 10px;
  display: grid;
}

.pd8c-facts dt {
  color: var(--pd8ca);
  font-weight: 700;
}

.pd8c-facts dd {
  margin: 0;
}

.pd8c-library {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  display: grid;
}

.pd8c-library-item a {
  color: #1d2126;
  grid-template-rows: auto auto auto;
  grid-template-columns: 96px 1fr;
  column-gap: 12px;
  text-decoration: none;
  display: grid;
}

.pd8c-library-item img {
  object-fit: cover;
  border-radius: 6px;
  grid-row: 1 / 4;
  width: 96px;
  height: 72px;
}

.pd8c-library-item span {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--pd8ca);
  font-size: 10px;
}

.pd8c-library-item strong {
  color: var(--pd8ci);
  font-family: Georgia, Times New Roman, Times, serif;
}

.pd8c-library-item em {
  font-size: 12px;
}

.pd8c-twin {
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  display: grid;
}

.pd8c-sheet {
  background: #fff;
  border-radius: 10px;
  padding: 34px 36px;
}

.pd8c-lede {
  color: #3c444c;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.55;
}

.pd8c-figure {
  border-radius: 8px;
  margin: 18px 0;
}

.pd8c-tip {
  border-left: 4px solid var(--pd8ca);
  background: #f5f6f7;
  padding: 10px 14px;
}

.pd8c-end {
  color: #4e565e;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  max-width: 880px;
  padding: 10px 44px 50px;
  font-size: 13px;
  display: grid;
}

.pd8c-end a {
  margin: 4px 0;
  display: block;
}

.pd8c-end > p {
  grid-column: 1 / -1;
}

.pd8c-notice {
  z-index: 30;
  background: #fff;
  border: 1px solid #d4d9de;
  border-radius: 10px;
  width: 300px;
  padding: 14px;
  font-size: 12px;
  position: fixed;
  bottom: 18px;
  left: 18px;
}

.pd8c-notice button {
  background: var(--pd8ci);
  color: #fff;
  border: 0;
  border-radius: 6px;
  margin-top: 8px;
  padding: 6px 12px;
}

.pd8c-notice.pd8c-off {
  display: none;
}

@media (width <= 900px) {
  body.pd8c-shell {
    grid-template-columns: 1fr;
  }

  .pd8c-rail {
    height: auto;
    position: relative;
  }

  .pd8c-links {
    display: none;
  }

  .pd8c-links.pd8c-on {
    display: block;
  }

  .pd8c-rail-toggle {
    display: inline-block;
  }

  .pd8c-pane main {
    padding: 20px 16px;
  }

  .pd8c-library, .pd8c-twin, .pd8c-end {
    grid-template-columns: 1fr;
  }

  .pd8c-end {
    padding: 10px 16px 40px;
  }

  .pd8c-board-row {
    grid-template-columns: 40px 1fr;
  }

  .pd8c-board-go {
    text-align: center;
    grid-column: 1 / -1;
  }
}
