/* logo cards: uniform height regardless of image aspect ratio */
#overview .sd-card-img-top {
    height: 120px;
    object-fit: contain;
    padding: 1rem;
    background: white;
}

/* key-facts table: allow cell wrapping */
#key-facts table td,
#key-facts table th {
    white-space: normal;
}

#key-facts table code,
#key-facts table span.pre {
    white-space: normal;
}

/* furo's overflow-x:auto forces overflow-y:auto too, clipping rotated headers */
#datasets .table-wrapper.container {
    overflow: visible;
}

/* datasets overview table */
#datasets table p {
    font-size: 1rem;
    line-height: 1.6;
}

#datasets table th {
    height: 100px;
    vertical-align: bottom;
    white-space: nowrap;
    border: 0;
    width: 30px;
}

#datasets table th > p {
    transform: rotate(-45deg);
    width: 30px;
}

/* dataset name column — wide, upright */
#datasets table th:first-child {
    width: 165px;
    height: auto;
}

#datasets table th:first-child > p {
    transform: none;
    width: auto;
}

#datasets a {
    text-decoration: none;
}

/* furo's overflow-x:auto forces overflow-y:auto too, clipping rotated headers */
#assets .table-wrapper.container {
    overflow: visible;
}

/* assets overview table */
#assets table p {
    font-size: 1rem;
    line-height: 1.6;
}

#assets table th {
    height: 100px;
    vertical-align: bottom;
    white-space: nowrap;
    border: 0;
    width: 30px;
}

#assets table th > p {
    transform: rotate(-45deg);
    width: 30px;
}

/* dataset name column — wide, upright */
#assets table th:first-child {
    width: 120px;
    height: auto;
}

#assets table th:first-child > p {
    transform: none;
    width: auto;
}

#assets a {
    text-decoration: none;
}

/* keep asset-name and "other" columns on one line */
#assets table td:first-child,
#assets table td:last-child {
    white-space: nowrap;
}

/* zero padding and center for all columns after dataset name */
#assets table td + td {
    padding: 0;
    text-align: center;
}

#assets table td + td p {
    margin: 0;
}

#assets table td + td:empty,
#assets table td + td:has(> p:empty) {
    background-color: #f0f0f0;
}

/* furo adds padding:0 .25rem on td and margin:.25rem on td p — on a 20px column
   that consumes nearly all the space before the icon renders, clipping it.
   Zero both out for every column after the dataset name. */
#datasets table td + td {
    padding: 0;
    text-align: center;
}

#datasets table td + td p {
    margin: 0;
}

[data-theme="light"] #datasets table td + td:empty,
[data-theme="light"] #datasets table td + td:has(> p:empty) {
    background-color: #f0f0f0;
}

[data-theme="light"] #datasets table.docutils td,
[data-theme="light"] #datasets table.docutils th {
  border-left-color: #aaa;
  border-right-color: #aaa;
  border-bottom-color: #aaa;
  border-top-color: #aaa;
}

#datasets table.docutils th {
  background-color: transparent;
}
