.ov-card {
  --ov-ink: #193b34;
  --ov-soft: #475f54;
  --ov-rule: #c9d1c4;
  --ov-paper: #fffdf6;
  --ov-wash: #f0f3e9;
  --ov-brass: #a38450;
  color: var(--ov-ink);
  background: var(--ov-paper);
  border: 1px solid var(--ov-rule);
  border-top: 3px solid var(--ov-brass);
  border-radius: .35rem;
  margin-block: .75rem 1.15rem;
  padding: clamp(.8rem, 2.6vw, 1.6rem);
  font: 400 1rem/1.45 system-ui, sans-serif;
  text-align: start;
  overflow-wrap: anywhere;
  min-width: 0;
  container: omega-card / inline-size;
}

.ov-card *, .ov-card *::before, .ov-card *::after { box-sizing: border-box; }
.ov-card :is(dl, dt, dd, figure, p) { margin: 0; }
.ov-card :is(a, summary, button):focus-visible { outline: 3px solid #996119; outline-offset: 3px; }
.ov-card a { color: #175e4f; text-underline-offset: .16em; }
.ov-card a:hover, .ov-card summary:hover { color: #673e19; }
.ov-card .ov-section { padding: 0; min-width: 0; }
.ov-card .ov-section + .ov-section,
.ov-card .ov-media + .ov-section { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--ov-rule); }
.ov-card .ov-heading {
  margin: 0 0 .7rem;
  color: var(--ov-ink);
  font: 400 clamp(1.36rem, 2.5vw, 1.78rem)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.ov-card .ov-subheading {
  margin: 0 0 .45rem;
  font: 600 1.05rem/1.25 system-ui, sans-serif;
  color: var(--ov-ink);
}
.ov-card .ov-media { display: grid; gap: .65rem; min-width: 0; align-items: start; }
.ov-card .ov-media.ov-with-photo { grid-template-columns: minmax(0, .92fr) minmax(0, 1.35fr); gap: 1.1rem; }
.ov-card .ov-plate { min-width: 0; border: 1px solid var(--ov-rule); border-radius: .25rem; overflow: hidden; }
.ov-card .ov-frame { display: block; background: #ecece2; }
.ov-card .ov-photo {
  display: block;
  width: 100%;
  height: clamp(10rem, 18vw, 15rem);
  object-fit: contain;
}
.ov-card .ov-caption { display: grid; gap: .16rem; padding: .5rem .7rem; text-align: start; }
.ov-card .ov-photo-type { font: 600 .75rem/1.28 system-ui, sans-serif; color: var(--ov-soft); }
.ov-card .ov-photo-title { font: 400 1.12rem/1.25 Georgia, "Times New Roman", serif; }
.ov-card .ov-byline { font: 400 .78rem/1.32 system-ui, sans-serif; color: var(--ov-soft); }
.ov-card .ov-image-reference { border-width: 0 0 0 2px; border-radius: 0; }
.ov-card .ov-image-reference > .ov-caption { padding-block: .15rem; }
.ov-card .ov-alt > .ov-plate { margin-block: .4rem; }
.ov-card .ov-image-note, .ov-card .ov-muted { font-size: .88rem; color: var(--ov-soft); }
.ov-card .ov-image-note { margin: .05rem 0 0; }
.ov-card .ov-plate > .ov-image-note { padding: .45rem .7rem 0; }
.ov-card .ov-route-mount { min-width: 0; }
.ov-card .ov-route-mount > :first-child { margin-top: 0; }
.ov-card .ov-route-mount > :last-child { margin-bottom: 0; }
.ov-card .ov-text { white-space: pre-line; }

.ov-card :is(.ov-field, .ov-tech-row) { min-width: 0; }
.ov-card :is(.ov-field, .ov-tech-row) > dt {
  color: var(--ov-soft);
  font: 650 .79rem/1.35 system-ui, sans-serif;
  letter-spacing: .025em;
}
.ov-card .ov-field > dd { margin: .16rem 0 0; line-height: 1.4; }
.ov-card .ov-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1.1rem; }
.ov-card .ov-materials { margin-top: 1rem; }
.ov-card .ov-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ov-ink);
  font: 400 .9rem/1.4 system-ui, sans-serif;
}
.ov-card .ov-table :is(th, td) {
  vertical-align: top;
  text-align: start;
  border: 0;
  border-bottom: 1px solid var(--ov-rule);
  padding: .45rem .55rem;
}
.ov-card .ov-table thead th {
  font: 600 .77rem/1.35 system-ui, sans-serif;
  background: var(--ov-wash);
  color: var(--ov-soft);
}
.ov-card .ov-table thead th:first-child { width: 25%; }
.ov-card .ov-table thead th:last-child { width: 23%; }
.ov-card .ov-material-name { font-weight: 650; }
.ov-card .ov-material-date { font-variant-numeric: tabular-nums; }
.ov-card .ov-date-label { display: none; }
.ov-card .ov-amounts, .ov-card .ov-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1.1rem;
}
.ov-card .ov-amounts .ov-field {
  padding: .62rem .8rem;
  border-inline-start: 3px solid var(--ov-brass);
  background: #f5f2e7;
}
.ov-card .ov-amounts dd { font: 400 1.12rem/1.38 Georgia, "Times New Roman", serif; }
.ov-card .ov-notes .ov-field { padding-inline-start: .65rem; border-inline-start: 2px solid var(--ov-rule); }
.ov-card .ov-tech-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.1rem;
  border-top: 1px solid var(--ov-rule);
}
.ov-card .ov-tech-row {
  display: grid;
  grid-template-columns: minmax(6.2rem, .7fr) minmax(0, 1.2fr);
  gap: .3rem .6rem;
  align-content: start;
  padding-block: .45rem;
  border-bottom: 1px solid var(--ov-rule);
}
.ov-card .ov-tech-row > dt { padding-top: .12rem; }
.ov-card .ov-tech-row > dd { grid-column: 2; margin: 0; }
.ov-card .ov-tech-value { font-size: .91rem; }
.ov-card .ov-tech-unknown { color: var(--ov-soft); }
.ov-card .ov-tech-ref, .ov-card .ov-tech-kind { font-size: .79rem; line-height: 1.35; color: var(--ov-soft); }
.ov-card .ov-tech-ref { margin-top: .13rem; }
.ov-card .ov-tech-kind { display: block; font-weight: 600; }
.ov-card :is(.ov-credit, .ov-alt, .ov-material-evidence, .ov-sources, .ov-long) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ov-card :is(.ov-credit, .ov-alt, .ov-material-evidence, .ov-sources) > summary {
  width: fit-content;
  max-width: 100%;
  color: #175e4f;
  cursor: pointer;
  font: 600 .83rem/1.35 system-ui, sans-serif;
  padding-block: .32rem;
}
.ov-card :is(.ov-credit, .ov-material-evidence)[open] { padding-bottom: .25rem; }
.ov-card .ov-credit { font: 400 .82rem/1.38 system-ui, sans-serif; color: var(--ov-soft); }
.ov-card .ov-credit > a { display: inline-block; padding-block: .25rem; }
.ov-card .ov-credit > a + a { margin-inline-start: .75rem; }
.ov-card .ov-long > summary { display: block; cursor: pointer; font: inherit; }
.ov-card .ov-long > summary::-webkit-details-marker { display: none; }
.ov-card :is(.ov-more, .ov-less) { color: #175e4f; font: 600 .82rem/1.4 system-ui, sans-serif; text-decoration: underline; text-underline-offset: .16em; }
.ov-card .ov-more { margin-inline-start: .3rem; }
.ov-card .ov-less, .ov-card .ov-long[open] :is(.ov-preview, .ov-more) { display: none; }
.ov-card .ov-long[open] .ov-less { display: inline; }
.ov-card .ov-sources { border-top: 1px solid var(--ov-rule); margin-top: .85rem; padding-top: .35rem; }
.ov-card .ov-source-groups { margin: .2rem 0 .4rem; }
.ov-card .ov-source-groups > dt { font: 650 .85rem/1.4 system-ui, sans-serif; margin-top: .5rem; }
.ov-card .ov-links { margin: .15rem 0; padding-inline-start: 1.15rem; list-style: disc outside; }
.ov-card .ov-links li { padding: 0; margin: .1rem 0; font-size: .85rem; border: 0; }

@container omega-card (max-width: 44rem) {
  .ov-card .ov-tech-list { grid-template-columns: minmax(0, 1fr); }
  .ov-card .ov-tech-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
  .ov-card .ov-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-card .ov-fields .ov-recovery { grid-column: 1/-1; }
}
@container omega-card (max-width: 35rem) {
  .ov-card .ov-media.ov-with-photo { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .ov-card .ov-photo { height: clamp(7.5rem, 34vw, 11rem); }
  .ov-card .ov-fields, .ov-card .ov-notes { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .ov-card .ov-amounts { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .ov-card .ov-table, .ov-card .ov-table tbody, .ov-card .ov-table tbody tr { display: block; }
  .ov-card .ov-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .ov-card .ov-table tbody tr { border-top: 1px solid var(--ov-rule); padding-block: .45rem; }
  .ov-card .ov-table tbody :is(th, td) { display: block; width: auto; padding: .08rem 0; border: 0; }
  .ov-card .ov-material-date { font-size: .8rem; color: var(--ov-soft); }
  .ov-card .ov-date-label { display: inline; }
}
@media (max-width: 600px) {
  .ov-card { margin-block: .5rem .9rem; padding: .7rem; }
  .ov-card .ov-heading { margin-bottom: .55rem; }
  .ov-card :is(.ov-credit, .ov-alt, .ov-material-evidence, .ov-sources) > summary { padding-block: .55rem; }
}
