#FontsTable {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.fontCard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 10px 20px;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0);
  transition: all 0.1s linear;
}

.fontCard:hover {
  border-left: 10px solid rgba(255, 255, 255, 0.3);
}

.fontCard-IconHolder {
  grid-row: 1 / 3;
  width: 240px;
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
}

.fontCard-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  isolation: isolate;
  mix-blend-mode: normal;
  will-change: transform;
}

.fontCard-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

.fontCard-PID {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.fontCard-PID p {
  font-size: 270px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  margin-right: 3%;
}

.fontCard-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.fontCard-status {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fontCard-last-updated {
  font-size: 12px;
  color: #888;
}

.fontCard-content-name {
  margin: 0;
  font-size: 30px;
  align-self: center;
}

.fontCard-content-description {
  font-size: 20px;
  line-height: 30px;
  margin: 10px 0;
}

.fontCard-content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fontCard-tag {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-aspect-ratio: 1/1.2) {
  .fontCard {
    grid-template-columns: 120px 1fr;
    gap: 6px 12px;
    padding: 12px;
  }

  .fontCard-IconHolder {
    width: 120px;
    aspect-ratio: 2/1;
    grid-row: 1;
  }

  .fontCard-content-name {
    font-size: 20px;
  }

  .fontCard-content {
    grid-column: 1 / -1;
  }

  .fontCard-content-description {
    font-size: 14px;
    line-height: 1.4;
    margin: 6px 0;
  }

  .fontCard-content-tags {
    margin-top: 6px;
  }

  .fontCard-tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .fontCard-footer {
    margin-top: 6px;
    gap: 8px;
  }

  .fontCard-status {
    font-size: 11px;
  }

  .fontCard-last-updated {
    font-size: 10px;
  }

  .fontCard-PID p {
    font-size: 120px;
  }
}

#fontPage {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 40px;
  border-radius: 5px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

#fontPageHeader {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

#fontPageIconHolder {
  width: 360px;
  aspect-ratio: 2/1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
  mix-blend-mode: normal;
  will-change: transform;
}

#fontPageIcon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  isolation: isolate;
  mix-blend-mode: normal;
  will-change: transform;
}

#fontPageInfo {
  flex: 1;
  min-width: 0;
  position: relative;
}

#fontPageNameRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#fontPageInfo H2 {
  margin: 0;
}

#fontPageMeta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

#fontPageDescription {
  font-size: 20px;
  line-height: 30px;
  margin: 10px 0;
}

#fontPageDescriptionRU {
  font-size: 20px;
  line-height: 30px;
  margin: 10px 0;
}

#fontPageTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#fontPageStatus {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#fontPageLastUpdated {
  font-size: 12px;
  color: #888;
}

#fontPageSeparator {
  margin: 30px 0;
}

#fontPageCardImage {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.fontPage-cardImage {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  cursor: zoom-in;
}

#fontPageSketches {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

#fontPageSketches H3 {
  width: 100%;
  margin: 0 0 12px;
}

.fontPage-sketch {
  max-width: 45%;
  height: auto;
  border-radius: 5px;
  cursor: zoom-in;
}

#fontPagePID {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
}

#fontPagePID p {
  font-size: 380px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  margin-right: 3%;
}

#fontPageSpecimen {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
}

#fontPageSpecimen[hidden] {
  display: none;
}

.fontPage-specimen-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fontPage-specimen-label {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fontPage-specimen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fontPage-specimen-char {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.fontPage-specimen-char:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

@media (max-aspect-ratio: 1/1.2) {
  .fontPage-specimen-char {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

#fontPageLinks {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

#fontPageLinks a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-family: Jost;
  transition: background-color 0.15s;
}

#fontPageLinks a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

#fontPageLinks a img {
  width: 24px;
  height: 24px;
}

@media (max-aspect-ratio: 1/1.2) {
  #fontPage {
    padding: 20px;
  }

  #fontPageHeader {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
  }

  #fontPageInfo {
    display: contents;
  }

  #fontPageNameRow {
    display: contents;
  }

  #fontPageIconHolder {
    width: 120px;
    aspect-ratio: 2/1;
  }

  #fontPageInfo H2 {
    font-size: 20px;
  }

  #fontPageDescription {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  #fontPageDescriptionRU {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  #fontPageMeta {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
  }

  #fontPagePID {
    display: none;
  }

  .fontPage-sketch {
    max-width: 100%;
  }
}

.license-modal-btn {
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 15px;
  font-family: Jost, sans-serif;
  cursor: pointer;
  transition: background-color 0.15s;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: white;
}
.license-modal-btn:hover {
  background: rgba(255,255,255,0.1);
}
.license-modal-accept {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.license-modal-accept:hover {
  background: rgba(255,255,255,0.2);
}
.license-modal-decline {
  border-color: rgba(255,255,255,0.1);
  color: #aaa;
}
.license-modal-decline:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.font-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-family: Jost, sans-serif;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
  transition: background-color 0.15s;
}
.font-download-btn:hover {
  background: rgba(255,255,255,0.18);
}
.font-download-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

#fontPageMeta .font-download-btn {
  padding: 4px 12px;
  font-size: 13px;
  gap: 4px;
}
#fontPageMeta .font-download-btn img {
  width: 16px;
  height: 16px;
}

.fontCard-footer .fontCard-download-wrap {
  pointer-events: none;
  display: inline-flex;
}
.fontCard-footer .font-download-btn {
  pointer-events: auto;
  padding: 2px 10px;
  font-size: 13px;
  gap: 4px;
}
.fontCard-footer .font-download-btn img {
  width: 16px;
  height: 16px;
}
