/* =========================================================
Website made by IQD 

/ Today is the first day of the rest of \
\ the mess.                             /
 ---------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     || 
========================================================= */
.documents-hero {
  min-height: 330px;
  padding-block: 78px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.documents-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 540;
}

.documents-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.documents-hero-count {
  min-width: 170px;
  padding: 24px 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.documents-hero-count strong,
.documents-hero-count span {
  display: block;
}

.documents-hero-count strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 540;
  letter-spacing: -.04em;
}

.documents-hero-count span {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.documents-section {
  padding-block: 62px 110px;
}

.documents-heading {
  margin-bottom: 28px;
}

.documents-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 220px 160px;
  gap: 10px;
  margin-bottom: 14px;
}

.documents-search {
  width: 100%;
}

.documents-select select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.documents-select select:focus {
  border-color: var(--line-strong);
}

.documents-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 12px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 22px;
  margin-top: 18px;
}

.document-card {
  min-width: 0;
}

.document-card-link {
  display: block;
}

.document-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.document-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  transition: transform .35s ease, filter .35s ease;
}

.document-card-link:hover .document-card-cover img {
  transform: scale(1.018);
  filter: brightness(.88);
}

.document-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(183,164,119,.10), transparent 42%),
    var(--panel);
}

.document-cover-placeholder span {
  max-width: 80%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .13em;
}

.document-cover-placeholder strong {
  color: var(--accent);
  font-size: 46px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.04em;
}

.document-card-body {
  padding: 15px 3px 0;
}

.document-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.document-card-body h2 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 580;
  letter-spacing: -.015em;
}

.document-card-collection,
.document-card-related {
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.55;
}

.documents-empty {
  margin-top: 38px;
  padding: 58px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255,255,255,.012);
}

.documents-empty h2 {
  margin: 9px 0;
  font-weight: 540;
}

.documents-empty p {
  margin: 0;
  color: var(--muted);
}

.documents-empty code {
  color: var(--text);
}


/* Detail page */

.document-detail-main {
  padding-bottom: 100px;
}

.document-record {
  padding-top: 24px;
}

.document-record-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .72fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: start;
}

.document-record-visual {
  min-width: 0;
}

.document-detail-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
}

.document-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.document-detail-cover.document-cover-placeholder {
  min-height: 520px;
  padding: 42px;
}

.document-detail-cover.document-cover-placeholder strong {
  font-size: 74px;
}

.document-record-summary {
  position: sticky;
  top: 104px;
  padding-top: 8px;
}

.document-record-summary h1 {
  margin: 10px 0 10px;
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.01;
  letter-spacing: -.05em;
  font-weight: 540;
}

.document-record-collection {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.document-facts {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.document-fact {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.document-fact dt {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-fact dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.document-primary-link {
  background: var(--text);
  color: #0b0b0b;
  border-color: var(--text);
}

.document-primary-link:hover {
  background: #fff;
}

.document-record-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 70px;
  margin-top: 80px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.document-record-content h2 {
  margin: 9px 0 18px;
  font-size: 28px;
  font-weight: 540;
  letter-spacing: -.025em;
}

.document-source-note {
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
}

.related-collectible-panel {
  min-width: 0;
}

.related-collectible {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.012);
  transition: border-color .2s ease, background .2s ease;
}

.related-collectible:hover {
  border-color: var(--line-strong);
  background: var(--panel);
}

.related-collectible img {
  width: 128px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
}

.related-collectible span {
  align-self: center;
  min-width: 0;
}

.related-collectible strong,
.related-collectible small,
.related-collectible em {
  display: block;
}

.related-collectible strong {
  font-size: 14px;
  line-height: 1.35;
}

.related-collectible small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 11px;
}

.related-collectible em {
  margin-top: 10px;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
}


/* Related documents injected into Zippo detail pages */

.archive-documents-section {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.zippo-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zippo-document-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.012);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.zippo-document-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--panel);
}

.zippo-document-cover {
  width: 150px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: transparent;
}

.zippo-document-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.zippo-document-cover.document-cover-placeholder {
  padding: 12px;
}

.zippo-document-cover.document-cover-placeholder span {
  font-size: 8px;
}

.zippo-document-cover.document-cover-placeholder strong {
  font-size: 25px;
}

.zippo-document-card small,
.zippo-document-card strong,
.zippo-document-card em {
  display: block;
}

.zippo-document-card small {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.zippo-document-card strong {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.35;
}

.zippo-document-card em {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}


@media (max-width: 980px) {

  .documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .documents-toolbar {
    grid-template-columns: minmax(0, 1fr) 190px 145px;
  }

  .document-record-hero,
  .document-record-content {
    grid-template-columns: 1fr;
  }

  .document-record-summary {
    position: static;
  }

  .zippo-document-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 720px) {

  .documents-hero {
    min-height: auto;
    padding-block: 54px 42px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .documents-hero-count {
    width: 100%;
  }

  .documents-toolbar {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .document-record-hero {
    gap: 30px;
  }

  .document-detail-cover.document-cover-placeholder {
    min-height: 360px;
  }

  .document-record-content {
    margin-top: 52px;
    gap: 40px;
  }

  .document-fact {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .related-collectible {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .related-collectible img {
    width: 104px;
  }

  .zippo-document-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .zippo-document-cover {
    width: 112px;
  }
}