.file-card, .file-card * { box-sizing: border-box; }
.file-card {
  width: 99%;
  min-height: 100%;
  margin: 0 0 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #87a3ad;
  background: #fff;
  color: #172e37;
  font: 14px/1.65 Verdana, Geneva, Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
  --gutter: clamp(24px, 2.65vw, 44px);
  --left-gutter: calc(var(--gutter) / 2);
  --divider: #adc1c9;
}
.file-card h1 {
  margin: 0;
  padding-block: 13px;
  background: #3b7589;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
}
.file-content { padding-top: 18px; }
.file-card h1, .file-content, .file-description, .file-discussion h2, .comment-access {
  padding-inline: var(--left-gutter) var(--gutter);
}
.file-card a { color: #023458; }
.file-card h1 small { display: block; }
.file-meta:last-child { margin-bottom: 24px; }
.file-card nav {
  color: #526c77;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}
.file-card nav a, .file-meta a { text-decoration: none; }
.file-card nav a:hover, .file-meta a:hover { text-decoration: underline; }
.file-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 22px;
  margin: 13px 0 0;
  color: #50656e;
  font-size: 12px;
}
.file-meta img { vertical-align: middle; }
.file-attachments {
  list-style: none;
  margin: 0;
  padding: clamp(36px, 3.3vw, 56px) 0;
}
.file-attachments li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 13px;
}
.file-attachments li + li { margin-top: 14px; }
.file-attachments a {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 13px;
  text-decoration: none;
}
.file-attachments a strong {
  padding: 6px 13px;
  border: 1px solid #a1bac3;
  border-radius: 2px;
  background: #e7f0f2;
  color: #244e5f;
  font-size: 13px;
  white-space: nowrap;
}
.file-attachments a:hover strong, .file-attachments a:focus-visible strong { background: #d7e8ec; }
.file-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  font-weight: bold;
}
.file-name img { flex: none; }
.file-name span { min-width: 0; text-decoration: underline; text-underline-offset: 2px; }
.file-size {
  color: #263e49;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.file-description {
  margin: 0 0 42px;
  border-top: 1px solid var(--divider);
  padding-top: clamp(20px, 1.85vw, 31px);
}
.file-card h2 { margin: 0; color: #253f4a; font-size: 15px; }
.file-description p { max-width: 100ch; margin: 12px 0 0; }
.description-body { margin-top: 23.4px; overflow-x: auto; }
.description-body > :first-child { margin-top: 0; }
.description-body > :last-child { margin-bottom: 0; }
.file-discussion { margin-top: auto; padding-bottom: 22px; }
.file-discussion > h2 {
  padding-block: clamp(17px, 1.5vw, 23px);
  border-block: 1px solid #87a3ad;
}
.comment-total { color: #526b75; font-weight: normal; }
.file-comments {
  font: inherit;
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  table-layout: fixed;
  border-bottom: 1px solid #b4c6cd;
}
.file-comments th, .file-comments td {
  padding: 15px clamp(8px, 1.15vw, 18px);
  vertical-align: top;
  text-align: left;
}
.file-comments th:first-child {
  width: clamp(104px, 13vw, 220px);
  padding-left: var(--left-gutter);
  border-right: 1px solid #bdcdd3;
}
.file-comments th:last-child, .file-comments td { padding-right: var(--gutter); }
.file-comments thead th {
  padding-block: 7px;
  background: #dce7eb;
  color: #314f5b;
  font-size: 12px;
}
.file-comments tbody tr { border-top: 1px solid #bdcdd3; background: #e7edf0; }
.file-comments tbody tr:nth-child(even) { background: #f6f9fa; }
.file-comments tbody th {
  color: #50656e;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.45;
}
.file-comments th a { color: #234e60; font-size: 13px; font-weight: bold; text-decoration: none; }
.file-comments th a:hover { text-decoration: underline; }
.file-comments th > span, .file-comments th > img { display: block; margin-top: 3px; }
.file-comments th img { max-width: 100%; height: auto; }
.comment-text { overflow-x: auto; margin: 9px 0 0; max-width: 100ch; }
.comment-access { margin: 10px 0 0; color: #4a626c; font-size: 12px; }


.file-extra { margin: 16px 0 22px; }
.file-pictures { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 8px; }
.file-pictures img, .description-body img, .comment-text img { max-width: 100%; height: auto; }
.file-card .file-message { display: inline-block; margin-left: 4px; vertical-align: middle; }
.file-message img { display: block; border: 0; }
.file-actions, .post-actions, .reply-footer {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; color: #50656e; font-size: 12px;
}
.description-head, .post-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; }
.post-meta { gap: 3px 22px; }
.post-stamp { color: #50656e; font-size: 12px; }
.file-card .file-actions a, .file-card .post-actions a, .file-card .post-stamp a, .file-card .reply-footer a, .file-card .file-extra a {
  text-decoration: underline; text-underline-offset: 2px;
}
.file-card .mod-link {
  border: 0; padding: 0; background: none; color: #285667; font: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.file-card .destructive { color: #834c42; }
.reply-form { margin: 20px 0 0; padding-inline: var(--left-gutter) var(--gutter); }
.reply-form > label { display: block; color: #253f4a; font-weight: bold; }
.reply-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 9px 0 6px; font-size: 0; }
.reply-tools img { display: block; border: 0; }
.reply-form textarea {
  display: block; width: 100%; max-width: 76ch; padding: 8px 10px;
  border: 1px solid #94abb4; background: #fff; color: #172e37; font: inherit; resize: vertical;
}
.reply-footer { margin-top: 10px; gap: 7px 16px; }
.reply-submit {
  padding: 7px 14px; border: 1px solid #94adb7; border-radius: 2px; background: #e7f0f2;
  color: #244e5f; font: bold 13px/1.45 Verdana, Geneva, Arial, sans-serif; cursor: pointer;
}
@media (max-width: 730px) {
  .file-card { --gutter: 18px; }
  .file-card h1 { font-size: 17px; }
}
