/* Site-wide styles of ckanext-inptdat, loaded on every page by
 * templates/base.html: the look of the old INPTDAT (subactivity 5). */

/* Form error summary ("The form contains invalid entries:").
 * ckanext-scheming still gives it Bootstrap 2's class "alert-error", which
 * CKAN 2.12's Bootstrap 5 does not style, so it showed as plain text. Same
 * colours as Bootstrap 5's "alert-danger" (a red box), with a bold heading. */
.error-explanation.alert-error {
  --bs-alert-color: var(--bs-danger-text-emphasis);
  --bs-alert-bg: var(--bs-danger-bg-subtle);
  --bs-alert-border-color: var(--bs-danger-border-subtle);
  --bs-alert-link-color: var(--bs-danger-text-emphasis);
}

.error-explanation > p:first-child {
  font-weight: bold;
}

/* Colours of the old INPTDAT (its colour file, DKAN "Colorizer"). */
:root {
  --inptdat-blue: #01315e;   /* site title, headings, menu bar */
  --inptdat-link: #0a77bd;   /* links, buttons */
  --inptdat-hover: #002245;  /* links and buttons under the mouse */
  --inptdat-active: #005489; /* current menu item, pressed buttons */
  --inptdat-text: #3b3b3b;   /* body text */
  --inptdat-rule: #dddddd;   /* lines under headings */
}

/* Text font: Lato, the old site's font (public/inptdat/fonts, see
 * SOURCE.txt). Like on the old site only the regular weight is loaded;
 * browsers derive bold from it. */
@font-face {
  font-family: "Lato";
  src: url("/inptdat/fonts/lato-v23-latin-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Site-wide colours and font through Bootstrap's variables, so CKAN's own
 * pages (forms, buttons, pagination, tabs) use them too; CKAN's default
 * colour is a teal (#206b82). */
:root,
[data-bs-theme=light] {
  --bs-font-sans-serif: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-body-color: #3b3b3b;
  --bs-body-color-rgb: 59, 59, 59;
  --bs-link-color: #0a77bd;
  --bs-link-color-rgb: 10, 119, 189;
  --bs-link-hover-color: #002245;
  --bs-link-hover-color-rgb: 0, 34, 69;
  --bs-primary: #0a77bd;
  --bs-primary-rgb: 10, 119, 189;
  --bs-blue: #0a77bd;
}
h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  color: var(--inptdat-blue);
}
.btn-primary {
  --bs-btn-bg: #0a77bd;
  --bs-btn-border-color: #0a77bd;
  --bs-btn-hover-bg: #002245;
  --bs-btn-hover-border-color: #002245;
  --bs-btn-active-bg: #005489;
  --bs-btn-active-border-color: #005489;
  --bs-btn-disabled-bg: #0a77bd;
  --bs-btn-disabled-border-color: #0a77bd;
  --bs-btn-focus-shadow-rgb: 10, 119, 189;
}
.btn-outline-primary {
  --bs-btn-color: #0a77bd;
  --bs-btn-border-color: #0a77bd;
  --bs-btn-hover-bg: #0a77bd;
  --bs-btn-hover-border-color: #0a77bd;
  --bs-btn-active-bg: #005489;
  --bs-btn-active-border-color: #005489;
}
.btn-link {
  --bs-btn-color: #0a77bd;
  --bs-btn-hover-color: #002245;
}
.nav {
  --bs-nav-link-color: #0a77bd;
  --bs-nav-link-hover-color: #002245;
}
.nav-pills {
  --bs-nav-pills-link-active-bg: #005489;
}
.dropdown-menu {
  --bs-dropdown-link-active-bg: #005489;
}
.list-group {
  --bs-list-group-active-bg: #0a77bd;
  --bs-list-group-active-border-color: #0a77bd;
}
.pagination {
  --bs-pagination-color: #0a77bd;
  --bs-pagination-hover-color: #005489;
  --bs-pagination-focus-color: #005489;
  --bs-pagination-active-bg: #0a77bd;
  --bs-pagination-active-border-color: #0a77bd;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(10, 119, 189, 0.25);
}
.form-check-input:checked,
.form-check-input[type=checkbox]:indeterminate {
  background-color: #0a77bd;
  border-color: #0a77bd;
}
.form-control:focus,
.form-select:focus {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 0 0.25rem rgba(10, 119, 189, 0.25);
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(10, 119, 189, 0.25);
}

/* Page background plain white like the old site; CKAN puts the content in
 * a framed white box on a grey pattern, with a line between sidebar and
 * content. */
.main {
  background: #fff;
  /* CKAN's rows stick out 6 px on each side of their 6 px padded box
   * (only empty padding): on phones and at about 1000 px the page could
   * be pushed sideways. Clipped at the window edge, without a scroll area. */
  overflow-x: clip;
}
.wrapper {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.wrapper::before {
  display: none;
}

/* Topic and content type icons: the old site's glyphs from DKAN's topic
 * icon font (public/inptdat/fonts/dkan-topics.woff, see SOURCE.txt). The
 * topic icon names are in schemas/presets.yaml (inptdat_topics), those of
 * the types in plugin.py (_TYPE_ICONS); templates write them like Font
 * Awesome icons (<i class="fa inptdat-ti-plant fa-fw">), so only the glyph
 * and its font change. */
@font-face {
  font-family: "DKAN Topics";
  src: url("/inptdat/fonts/dkan-topics.woff") format("woff");
  font-style: normal;
  font-weight: normal;
  font-display: block;
}
i[class*="inptdat-ti-"] {
  font-size: 1.15em;
  vertical-align: -0.1em;
}
i[class*="inptdat-ti-"]::before {
  font-family: "DKAN Topics";
  font-style: normal;
  font-weight: normal;
}
i.inptdat-ti-honeycomb::before { content: "\e934"; }
i.inptdat-ti-eco-globe::before { content: "\e932"; }
i.inptdat-ti-education::before { content: "\e97b"; }
i.inptdat-ti-water-drop::before { content: "\e938"; }
i.inptdat-ti-plant::before { content: "\e935"; }
i.inptdat-ti-network::before { content: "\e915"; }
i.inptdat-ti-water-faucet::before { content: "\e939"; }
i.inptdat-ti-healthcare::before { content: "\e97a"; }
i.inptdat-ti-flash::before { content: "\e975"; }
i.inptdat-ti-dataset::before { content: "\e97e"; }
i.inptdat-ti-plasma-source::before { content: "\e96c"; }
i.inptdat-ti-patent::before { content: "\e97f"; }
i.inptdat-ti-technology-offer::before { content: "\e933"; }
i.inptdat-ti-group::before { content: "\e981"; }
i.inptdat-ti-expert::before { content: "\e981"; }
/* larger in the search filters, like the old site */
.inptdat-facet-icon[class*="inptdat-ti-"] {
  height: 22px;
  font-size: 1.4em;
  line-height: 22px;
  vertical-align: top;
}

/* Footer (templates/footer.html): on white, small links at the right. */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  background: #fff;
}
.inptdat-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 3.5rem;
  margin: 0;
  padding: 0 2.5rem 0 0;
  list-style: none;
  font-size: 0.875rem;
}
.site-footer .inptdat-footer-links a {
  color: var(--inptdat-link);
}
.site-footer .inptdat-footer-links a:hover,
.site-footer .inptdat-footer-links a:focus {
  color: var(--inptdat-hover);
}
@media (max-width: 575.98px) {
  .inptdat-footer-links {
    justify-content: flex-start;
    padding-right: 0;
  }
}

/* Header (templates/header.html): site title and subtitle with the search
 * box on white, then the dark blue menu bar. */
.inptdat-header {
  background: #fff;
}
.inptdat-brand {
  position: relative;
  padding-top: 3.4rem;
  padding-bottom: 1.4rem;
}
.inptdat-site-title {
  display: inline-block;
  color: var(--inptdat-blue);
  font-size: 2.25rem;
  line-height: 1.15;
  text-decoration: none;
}
.inptdat-site-title:hover,
.inptdat-site-title:focus {
  color: var(--inptdat-blue);
  text-decoration: none;
}
.inptdat-site-description {
  margin: 0.3rem 0 0;
  color: var(--inptdat-blue);
  font-size: 1.05rem;
}
.inptdat-site-search {
  position: absolute;
  top: 1.2rem;
  right: calc(var(--bs-gutter-x) * 0.5);
  display: flex;
  width: 12rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}
.inptdat-site-search .form-control {
  border: 0;
  box-shadow: none;
  color: #555;
}
.inptdat-site-search .btn {
  border: 0;
  color: #333;
  font-size: 1.25rem;
  line-height: 1;
}
.inptdat-navbar {
  background: var(--inptdat-blue);
  padding-top: 0;
  padding-bottom: 0;
}
.inptdat-navbar .nav-link {
  color: #fff;
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  /* colours change at once, like on the old site (Bootstrap fades them
   * over 0.15 s, which flashed dark blue before the blue of an open menu) */
  transition: none;
}
.inptdat-navbar .navbar-nav .nav-item > .nav-link:hover,
.inptdat-navbar .navbar-nav .nav-item > .nav-link:focus {
  color: #fff;
  background: var(--inptdat-hover);
}
/* the item of the current section (header.html), like the old site */
.inptdat-navbar .navbar-nav .nav-item > .nav-link.active {
  color: #fff;
  background: var(--inptdat-active);
}
/* a menu item with a menu (Search, Topics, Projects, the user's menu):
 * blue like its menu while the mouse is on it or the menu is open; only
 * the entries of the menu turn dark blue under the mouse */
.inptdat-navbar .navbar-nav .dropdown:hover > .nav-link,
.inptdat-navbar .navbar-nav .dropdown > .nav-link.show {
  color: #fff;
  background: var(--inptdat-link);
}
/* the first item starts at the edge of the content, with its menu below it
 * (the whole item moves, so the menu stays aligned with it); only on wide
 * screens, where there is room left of the content */
@media (min-width: 1024px) {
  .inptdat-navbar .navbar-nav:first-child > .nav-item:first-child {
    margin-left: -1rem;
  }
}
/* Open menus like the old site: blue with white items, dark blue under
 * the mouse; on screens with a mouse they open on hover. */
.inptdat-navbar .dropdown-menu {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  background: var(--inptdat-link);
  /* never narrower than its menu item */
  min-width: max(10rem, 100%);
}
/* the user's menu at the right: its item at least as wide as the menu, so
 * item and menu share both edges */
.inptdat-account .dropdown > .nav-link {
  min-width: 11.5rem;
}
.inptdat-navbar .dropdown-item {
  color: #fff;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.inptdat-navbar .dropdown-item .fa {
  color: #fff;
  margin-right: 0.35rem;
}
.inptdat-navbar .dropdown-item:hover,
.inptdat-navbar .dropdown-item:focus,
.inptdat-navbar .dropdown-item:active {
  color: #fff;
  background: var(--inptdat-hover);
}
.inptdat-navbar .dropdown-divider {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.35);
}
@media (min-width: 992px) and (hover: hover) {
  .inptdat-navbar .dropdown:hover > .dropdown-menu {
    display: block;
    top: 100%;
    left: 0;
  }
  .inptdat-navbar .dropdown:hover > .dropdown-menu-end {
    left: auto;
    right: 0;
  }
}
@media (max-width: 767.98px) {
  .inptdat-brand {
    padding-top: 1.2rem;
  }
  .inptdat-site-title {
    font-size: 1.6rem;
  }
  .inptdat-site-search {
    position: static;
    width: 100%;
    margin-top: 0.8rem;
  }
}
@media (max-width: 991.98px) {
  .inptdat-navbar .navbar-toggler {
    margin: 0.5rem 0;
  }
}

/* Breadcrumb ("(home icon) / Home / …"): links in the link colour, the current
 * page in the text colour, not bold (snippets/home_breadcrumb_item.html). */
.toolbar .breadcrumb {
  font-size: 1.05rem;
}
.toolbar .breadcrumb li:first-child {
  padding-left: 0;
}
.toolbar .breadcrumb a,
.toolbar .home a {
  color: var(--inptdat-link);
}
.toolbar .breadcrumb .active,
.toolbar .breadcrumb .active a,
.toolbar .breadcrumb a.active {
  color: var(--inptdat-text);
  font-weight: normal;
}

/* Search filters in the sidebar (snippets/facet_list.html): dark blue bars
 * that fold a filter, values with counts, the chosen value grey with a
 * cross, like the old INPTDAT. */
.inptdat-facet {
  margin-bottom: 0;
}
.inptdat-facet .module-heading {
  padding: 0;
  border: 0;
  background: none;
}
.inptdat-facet-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-top: 1px solid #fff;
  background: var(--inptdat-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: normal;
  text-align: left;
}
.inptdat-facet:first-child .inptdat-facet-toggle {
  border-top: 0;
  border-radius: 4px 4px 0 0;
}
.inptdat-facet-toggle .fa {
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.inptdat-facet-toggle.collapsed .fa {
  transform: rotate(180deg);
}
.inptdat-facet .nav-facet {
  margin: 0;
  border-left: 1px solid var(--inptdat-rule);
  border-right: 1px solid var(--inptdat-rule);
  background: #fff;
}
.inptdat-facet .nav-facet > li,
.inptdat-facet .nav-facet > li.active {
  margin: 0;
  padding: 0;
  border-bottom: 1px dotted #ccc;
  background: none;
}
/* rows 34 px high with room for the icon at the right, as on the old site */
.inptdat-facet .nav-facet > li > a {
  display: block;
  position: relative;
  margin: 0;
  padding: 6px 1.6rem 6px 0.8rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 22px;
  text-decoration: none;
}
/* under the mouse: a light grey row and a green plus (add the filter) */
.inptdat-facet .nav-facet > li > a:hover,
.inptdat-facet .nav-facet > li > a:focus-visible {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.03);
}
.inptdat-facet .nav-facet > li:not(.active) > a:hover::after,
.inptdat-facet .nav-facet > li:not(.active) > a:focus-visible::after {
  content: "\f055";
  position: absolute;
  top: 6px;
  right: 6px;
  color: #5cb85c;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
/* a chosen value: grey, with an arrow at its right end reaching past the
 * box and a cross (remove the filter) that turns red under the mouse */
.inptdat-facet .nav-facet > li.active > a,
.inptdat-facet .nav-facet > li.active > a:hover {
  color: #333;
  background: #ccc;
  font-weight: normal;
}
.inptdat-facet .nav-facet > li.active > a::before {
  content: none;
}
.inptdat-facet .nav-facet > li.active > a span {
  white-space: normal;
}
.inptdat-facet .nav-facet > li.active > a::after {
  content: "";
  position: absolute;
  top: 0;
  right: -15px;
  z-index: 1;
  border-style: solid;
  border-width: 17px 0 17px 15px;
  border-color: transparent #ccc;
}
.inptdat-facet .nav-facet .facet-close {
  position: absolute;
  float: none;
  left: auto;
  transform: none;
  top: 6px;
  right: 6px;
  margin-top: 0;
  line-height: 22px;
  color: #333;
}
.inptdat-facet .nav-facet > li.active > a:hover .facet-close,
.inptdat-facet .nav-facet > li.active > a:focus-visible .facet-close {
  color: red;
}
/* values after the fifth: hidden until "Show more" slides them open */
.inptdat-facet .nav-facet > li.inptdat-facet-extra {
  display: none;
}
.inptdat-facet.inptdat-facet-all .nav-facet > li.inptdat-facet-extra {
  display: block;
}
.inptdat-facet-icon {
  color: var(--inptdat-link);
  margin-right: 0.15rem;
}
.inptdat-facet .module-footer {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--inptdat-rule);
  border-top: 0;
  background: #fff;
}
.inptdat-facet .module-footer .read-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--inptdat-link);
  font-weight: normal;
}
.inptdat-facet .module-content.empty {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--inptdat-rule);
  border-top: 0;
  background: #fff;
}
.filters > div {
  margin-bottom: 1.5rem;
}

/* Result count above the results ("64 results"), grey like the old site. */
.search-form h1 {
  font-size: 2rem;
  font-weight: normal;
  color: #767676;
}

/* Search row (snippets/inptdat_search_form.html) like the old site: the
 * fields "Search", "Sort by" and "Order" with bold labels side by side,
 * the buttons "Apply" and "Reset" on their bottom line. */
.search-form.inptdat-search-form {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 0;
}
.inptdat-search-form h1 {
  margin-bottom: 1.2rem;
}
.inptdat-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 0.5rem;
}
.inptdat-search-field label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--inptdat-text);
  font-weight: bold;
}
.inptdat-search-field label::after {
  content: none;  /* CKAN adds a colon to form labels */
}
.inptdat-search-text {
  flex: 1 1 12rem;
  max-width: 19.5rem;
}
.inptdat-search-row .form-control,
.inptdat-search-row .form-select {
  height: 2.15rem;
  font-size: 0.9rem;
}
.inptdat-search-buttons {
  display: flex;
  gap: 0.5rem;
}
.inptdat-search-buttons .btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  font-weight: normal;
}
@media (max-width: 575.98px) {
  .inptdat-search-text {
    flex-basis: 100%;
    max-width: none;
  }
}

/* Entries in result lists (snippets/package_item.html): type icon, title,
 * groups, topics, description, file formats. */
.inptdat-result {
  display: flex;
  gap: 1.1rem;
}
.inptdat-result-icon {
  flex: 0 0 2.4rem;
  color: var(--inptdat-link);
  font-size: 2.1rem;
  line-height: 1;
  text-align: center;
}
.inptdat-result .dataset-content {
  flex: 1 1 auto;
  min-width: 0;
}
.inptdat-result .dataset-heading {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.25;
}
.inptdat-result .dataset-heading a {
  color: var(--inptdat-link);
}
.inptdat-result-groups {
  margin: 0 0 0.3rem;
  color: #555;
  font-style: italic;
  font-size: 0.95rem;
}
.inptdat-result-groups .fa {
  color: #676767;
  margin-right: 0.3rem;
}
.inptdat-result-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  margin: 0 0 0.6rem;
}
.inptdat-result-topics a {
  color: var(--inptdat-link);
}
/* the topics' icons dark grey, the names blue, like the old site */
.inptdat-result-topics .fa {
  color: #4b4b4b;
}
.inptdat-result-notes {
  color: var(--inptdat-text);
  margin-bottom: 0.6rem;
}
.inptdat-result .dataset-resources li {
  margin-right: 0.6rem;
  font-size: 0.85rem;
}
.inptdat-result .dataset-resources .badge {
  text-transform: lowercase;
}

/* Entry pages (scheming/package/read.html and its snippets), like the old
 * INPTDAT: title with a line below, topics with icons, tags as small
 * chips, the "Field | Value" table, boxes in the left column. */
.inptdat-entry-title {
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--inptdat-rule);
  color: var(--inptdat-blue);
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.2;
}
.inptdat-entry-title .badge {
  font-size: 0.8rem;
  vertical-align: middle;
}
.inptdat-entry-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  margin-bottom: 0.6rem;
}
.inptdat-entry-topics a {
  color: var(--inptdat-link);
}
.inptdat-entry .tag-list {
  margin-bottom: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
}
/* tags shaped like price tags, like the old site: a pointed left end with
 * a small hole, light grey with a thin border, white under the mouse. The
 * point is a square turned by 45 degrees behind the tag's left end. */
.inptdat-entry .tag-list .tag {
  position: relative;
  z-index: 0;
  display: inline-block;
  height: 24px;
  margin: 0 8px 6px 12px;
  padding: 0 10px 0 12px;
  border: 1px solid #ddd;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  background: #f3f3f3;
  box-shadow: none;
  color: #333;
  font-size: 0.6875rem;
  font-weight: normal;
  line-height: 22px;
  vertical-align: top;
}
.inptdat-entry .tag-list .tag::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2.5px;
  left: -8.5px;
  width: 17px;
  height: 17px;
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-radius: 0 0 0 2px;
  background: inherit;
  transform: rotate(45deg);
}
.inptdat-entry .tag-list .tag::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -5px;
  width: 2px;
  height: 2px;
  background: #555;
}
.inptdat-entry .tag-list .tag:hover {
  background: #fff;
  color: #000;
}
.inptdat-entry-table {
  margin: 1rem 0 1.5rem;
}
.inptdat-entry-table thead th {
  background: #e5e5e5;
  font-weight: bold;
}
.inptdat-entry-table th[scope="row"] {
  width: 22%;
  font-weight: bold;
}
.inptdat-entry-table td ul {
  margin-bottom: 0;
}
.inptdat-entry-table td a {
  color: var(--inptdat-link);
}
.inptdat-related-content h2,
#dataset-resources h2 {
  color: var(--inptdat-blue);
  font-size: 1.6rem;
  font-weight: normal;
}
.inptdat-box {
  margin-bottom: 1.5rem;
  border: 1px solid var(--inptdat-rule);
  border-radius: 4px;
}
.inptdat-box ul {
  margin-bottom: 0;
}
.inptdat-box li {
  padding: 0.6rem 1rem;
}
.inptdat-box li + li {
  border-top: 1px solid var(--inptdat-rule);
}

/* "Show more" for long lists (assets/js/show-more.js). */
.inptdat-collapsed {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.6em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2.6em), transparent);
}
.inptdat-show-more-button {
  padding: 0;
  color: var(--inptdat-link);
  font-weight: normal;
  text-decoration: none;
}

/* Files of an entry: Preview and Download buttons
 * (package/snippets/resource_item.html). */
.resource-item .heading {
  color: var(--inptdat-blue);
}
.inptdat-resource-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.3rem;
}
.inptdat-resource-actions .btn-group {
  position: static;
}
.resource-item {
  padding-right: 15rem;
}
@media (max-width: 767.98px) {
  .resource-item {
    padding-right: 10px;
  }
  .inptdat-resource-actions {
    position: static;
    margin-top: 0.4rem;
  }
  .inptdat-resource-actions .btn-group {
    display: inline-flex;
  }
}

/* Left column of entry pages: institution box and licence. */
.inptdat-sidebar .module {
  margin-bottom: 1.5rem;
}
.inptdat-institution {
  padding: 1rem;
  border: 1px solid var(--inptdat-rule);
  border-radius: 4px;
  background: #fff;
}
.inptdat-institution-logo {
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}
.inptdat-institution-logo img {
  max-width: 100%;
  max-height: 160px;
}
.inptdat-institution-name {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: normal;
}
.inptdat-institution-name a {
  color: var(--inptdat-link);
}
.inptdat-institution-description {
  font-size: 0.95rem;
}
.inptdat-sidebar .license {
  border: 1px solid var(--inptdat-rule);
  border-radius: 4px;
  background: #fff;
}
.inptdat-sidebar .license .module-heading {
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: var(--inptdat-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: normal;
}
.inptdat-sidebar .license .module-heading .fa {
  display: none;
}
.inptdat-sidebar .license .module-content {
  padding: 0.6rem 0.8rem;
}
.inptdat-sidebar .license .module-content a[rel="dc:rights"] {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--inptdat-link);
}

/* Catalogue pages (patent, plasma source, technology offer): headings,
 * figures with captions, bold labels, the "Additional information" panel,
 * the three columns of plasma source pages. */
.inptdat-entry h2,
.inptdat-entry-section h2 {
  color: var(--inptdat-blue);
  font-size: 1.6rem;
  font-weight: normal;
}
.inptdat-entry .embedded-content h2 {
  margin-top: 1.2rem;
}
.inptdat-figure {
  margin: 0.8rem 0 1rem;
}
.inptdat-figure img,
.inptdat-figure video {
  display: block;
  max-width: 100%;
  height: auto;
}
.inptdat-figure figcaption {
  margin-top: 0.3rem;
  color: var(--inptdat-text);
  font-size: 0.95rem;
}
.inptdat-figure figcaption p {
  margin-bottom: 0;
}
.inptdat-entry-label {
  margin: 1rem 0 0.3rem;
  font-weight: bold;
}
.inptdat-inline {
  margin: 0.8rem 0;
}
.inptdat-inline ul,
.inptdat-inline li {
  display: inline;
  margin: 0;
  padding: 0;
}
.inptdat-table-title {
  margin: 1.2rem 0 0.3rem;
  color: #666;
}
.inptdat-subfield-table th,
.inptdat-subfield-table td {
  font-size: 0.9rem;
}
.inptdat-panel {
  margin: 1.5rem 0;
  border: 1px solid var(--inptdat-rule);
  border-radius: 4px;
}
.inptdat-entry .inptdat-panel-heading {
  margin: 0;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--inptdat-rule);
  background: #ccc;
  color: var(--inptdat-blue);
  font-size: 1rem;
}
.inptdat-panel-body {
  padding: 0.4rem 1rem 0.2rem;
}
.inptdat-panel-body .inptdat-entry-label {
  margin-top: 0;
}
.inptdat-file-links a {
  color: var(--inptdat-link);
}
.inptdat-plasma-source .inptdat-column h2 {
  margin-top: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--inptdat-rule);
}
.inptdat-plasma-source .inptdat-column .inptdat-institution-name {
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 1.15rem;
}
.inptdat-institution.inptdat-plain {
  padding: 0;
  border: 0;
}
.inptdat-entry .notes p:last-child {
  margin-bottom: 0.6rem;
}

/* Expert pages (scheming/package/snippets/expert_page.html), like the old
 * INPTDAT: the name larger and without a line below, academic title and
 * department under it, headings with a grey line below, the photo at the
 * right (above the name on narrow screens). */
.inptdat-expert .inptdat-expert-name {
  margin-bottom: 0.9rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 2.25rem;
}
.inptdat-expert-detail {
  margin-bottom: 0.7rem;
}
.inptdat-expert-contact {
  margin: 1rem 0;
}
.inptdat-expert-contact li {
  margin-bottom: 0.2rem;
}
.inptdat-expert .notes {
  margin-top: 1rem;
}
.inptdat-expert h2 {
  margin: 1.4rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ddd;
  font-size: 1.75rem;
}
.inptdat-expert-photo img {
  display: block;
  width: 130px;
  height: auto;
  margin-bottom: 1rem;
}
.inptdat-expert-entries li {
  margin-bottom: 0.3rem;
}
.inptdat-result-expert {
  margin-bottom: 0.3rem;
  color: var(--inptdat-text);
}
/* narrow screens: the expert first, then the institution (CKAN shows the
 * left column on top there: column-reverse with "order: 2"); the
 * institution without a frame starts where the expert's text starts */
@media (max-width: 767.98px) {
  .main .wrapper:has(.inptdat-expert) > .secondary {
    order: -1;
  }
  .secondary .inptdat-institution.inptdat-plain {
    padding: 0 2.25rem;
  }
}

/* Left column of patent and technology offer pages: the patent contact and
 * the "Contact" box with a dark blue bar (like the licence box). */
.inptdat-patent-contact {
  margin-top: -0.5rem;
  padding: 0 1rem 1rem;
}
.inptdat-sidebar .inptdat-bar-box {
  border: 1px solid var(--inptdat-rule);
  border-radius: 4px;
  background: #fff;
}
.inptdat-sidebar .inptdat-bar-box .module-heading {
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: var(--inptdat-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: normal;
}
.inptdat-sidebar .inptdat-bar-box .module-content {
  padding: 0.6rem 0.8rem;
}

/* "Cite Dataset" and "Metadata Export" under the licence: a list of links
 * separated by dotted lines, like the old INPTDAT. */
.inptdat-sidebar .inptdat-cite,
.inptdat-sidebar .inptdat-export {
  margin-top: 1.5rem;
}
.inptdat-sidebar .inptdat-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.inptdat-sidebar .inptdat-link-list li {
  padding: 0.4rem 0.8rem;
  border-top: 1px dotted var(--inptdat-rule);
}
.inptdat-sidebar .inptdat-link-list li:first-child {
  border-top: 0;
}
.inptdat-sidebar .inptdat-link-list .inptdat-ico {
  width: 18px;
  height: 16px;
  margin-right: 0.35rem;
  object-fit: contain;
  vertical-align: -3px;
}

/* Links in texts of entry pages and their side boxes: not underlined, in
 * the link colour, like the old INPTDAT (CKAN underlines links in texts). */
.module-content .inptdat-entry a:link,
.module-content .inptdat-entry a:visited,
.secondary .inptdat-sidebar a:link,
.secondary .inptdat-sidebar a:visited {
  color: var(--inptdat-link);
  text-decoration: none;
}
.module-content .inptdat-entry a:hover,
.secondary .inptdat-sidebar a:hover {
  text-decoration: underline;
}
.inptdat-entry .btn:hover,
.module-content .inptdat-entry .tag:hover {
  text-decoration: none;
}
.module-content .inptdat-entry .btn-primary:link,
.module-content .inptdat-entry .btn-primary:visited {
  color: #fff;
}
.module-content .inptdat-entry .btn-secondary:link,
.module-content .inptdat-entry .tag:link,
.module-content .inptdat-entry .tag:visited {
  color: #333;
}
.module-content .inptdat-entry .resource-item .heading:link,
.module-content .inptdat-entry .resource-item .heading:visited {
  color: var(--inptdat-blue);
}

/* Start page (templates/home/index.html) like the old INPTDAT: a blue band
 * with the slideshow at the left and the intro text at the right, below it
 * the topics as large icons (snippets/topic_grid.html, also on /topics).
 * Sizes and colours measured on a screenshot of the old site. */
.inptdat-hero {
  padding: 55px 0;
  background: #145b98;
  color: #fff;
}
.inptdat-intro {
  padding-top: 85px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: justify;
}
.inptdat-intro p:last-child {
  margin-bottom: 0;
}
/* the intro text alone (no slideshow, settings.py) */
.inptdat-intro.inptdat-intro-alone {
  padding-top: 0;
}
.inptdat-intro a,
.inptdat-intro a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 991.98px) {
  .inptdat-hero {
    padding: 1.5rem 0;
  }
  .inptdat-intro {
    padding-top: 1.25rem;
  }
}
/* on phones left-aligned: justified lines that narrow get wide gaps */
@media (max-width: 575.98px) {
  .inptdat-intro {
    text-align: left;
  }
}
/* the slideshow: the caption at the bottom left and the Pause button at
 * the top right, light grey on a dark box */
.inptdat-slideshow {
  position: relative;
}
.inptdat-slideshow img {
  height: auto;
}
.inptdat-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px 11px;
  background: rgba(0, 0, 0, 0.78);
  color: #ccc;
  font-size: 1rem;
  line-height: 23px;
}
.inptdat-slideshow a:hover .inptdat-slide-caption,
.inptdat-slideshow a:focus .inptdat-slide-caption {
  color: #fff;
}
.inptdat-slideshow-pause {
  position: absolute;
  top: 12px;
  right: 11px;
  z-index: 3;
  padding: 3px 11px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.76);
  color: #ccc;
  font-size: 1rem;
  line-height: 21px;
}
.inptdat-slideshow-pause:hover,
.inptdat-slideshow-pause:focus-visible {
  color: #fff;
}
/* the topics: six in a row, large blue icons with the name below */
.inptdat-home-topics {
  padding-top: 68px;
}
.inptdat-topics-page .inptdat-topic-grid {
  margin-top: 1.5rem;
}
.inptdat-topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.inptdat-topic-grid li {
  padding: 0 15px;
}
.inptdat-topic-grid a {
  display: block;
  color: var(--inptdat-link);
  text-decoration: none;
}
.inptdat-topic-grid a:hover,
.inptdat-topic-grid a:focus {
  color: var(--inptdat-hover);
}
.inptdat-topic-grid i.fa {
  display: block;
  font-size: 112px;
  line-height: 1;
  vertical-align: 0;
}
.inptdat-topic-grid span {
  display: block;
  margin-top: -1px;
  font-size: 1rem;
  line-height: 22px;
}
@media (max-width: 991.98px) {
  .inptdat-topic-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 0;
  }
}
@media (max-width: 575.98px) {
  .inptdat-home-topics {
    padding-top: 2rem;
  }
  .inptdat-topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inptdat-topic-grid i.fa {
    font-size: 80px;
  }
}

/* Groups page (group/index.html, group/snippets/inptdat_group_cards.html)
 * like the old INPTDAT: cards in three columns with the logo (or DKAN's
 * teal default picture) centred, the name, the description and a button
 * "N datasets". Sizes measured on a screenshot of the old site. */
.inptdat-groups-page .module-content {
  padding-right: 0;
  padding-left: 0;
}
/* a Bootstrap row (CKAN's list styles take away its side margins), so
 * the cards' text lines up with the heading */
.inptdat-groups-page .inptdat-group-cards {
  margin: 2rem calc(-0.5 * var(--bs-gutter-x)) 0;
}
.inptdat-group-card {
  margin-bottom: 78px;
}
.inptdat-group-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
}
.inptdat-group-logo img {
  max-width: min(200px, 100%);
  max-height: 128px;
}
/* DKAN's default group picture: the old person glyph (DKAN's icon font,
 * public/inptdat/fonts/dkan-topics.woff) in white on a teal circle */
.inptdat-group-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  padding: 0 0 6px 6px;
  border-radius: 50%;
  background: #2db19c;
  color: #fff;
  font-family: "DKAN Topics";
  font-size: 92px;
  line-height: 1;
}
.inptdat-group-default::before {
  content: "\e981";
}
.inptdat-group-title {
  margin: 55px 0 21px;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.1;
}
.inptdat-group-title a {
  color: var(--inptdat-link);
  text-decoration: none;
}
.inptdat-group-title a:hover,
.inptdat-group-title a:focus {
  color: var(--inptdat-hover);
}
.inptdat-group-description {
  font-size: 1rem;
  line-height: 1.5;
}
.inptdat-group-description p {
  margin-bottom: 0.5rem;
}
.inptdat-group-count {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 19px;
}

/* Technology offers page (/innovations, inptdat/technology_offers.html)
 * like the old INPTDAT: cards in two columns with the picture in the old
 * format (540 x 253), the title in dark blue and the beginning of the
 * abstract. Sizes measured on a screenshot of the old site. */
.inptdat-offers-page .inptdat-offer-cards {
  margin: 30px calc(-0.5 * var(--bs-gutter-x)) 0;
}
.inptdat-offer-card {
  margin-bottom: 20px;
}
.inptdat-offer-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 540 / 253;
  overflow: hidden;
  background: #f3f3f3;
  color: #b5b5b5;
  font-size: 6rem;
}
.inptdat-offer-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inptdat-offer-title {
  margin: 25px 0 13px;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.1;
}
.inptdat-offer-title a {
  color: var(--inptdat-blue);
  text-decoration: none;
}
.inptdat-offer-title a:hover,
.inptdat-offer-title a:focus {
  color: var(--inptdat-link);
}
.inptdat-offer-title .badge {
  font-size: 0.8rem;
  vertical-align: middle;
}
.inptdat-offer-abstract {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 21px;
}

/* Field tables of entry pages: the row under the mouse light yellow, like
 * the old INPTDAT (Bootstrap's own hover colour variable). */
.inptdat-entry-table > tbody > tr:hover > * {
  --bs-table-bg-state: #fffeee;
}
/* Group boxes (snippets/inptdat_group_box.html): longer texts justified,
 * like the old site. */
.inptdat-institution-description {
  text-align: justify;
}
/* A group's page (group/read.html), like the old INPTDAT: the name as a
 * heading above the search row, "Displaying 1 - 10 of 93 datasets" below
 * it. */
.inptdat-group-heading {
  margin-bottom: 0;
}
.inptdat-search-displaying {
  margin: 1.5rem 0 0.5rem;
  color: var(--inptdat-text);
}

/* Pages of ckanext-pages (ckanext_pages/page.html: About, Legal Notice,
 * ...) like the old INPTDAT's: text 16px with a line height of 1.5 (the
 * old site's own CSS), headings in dark blue, pictures within the page,
 * buttons for the Contact page. */
.inptdat-page-actions {
  float: right;
  display: flex;
  gap: 0.4rem;
  margin: 0.3rem 0 0 1rem;
}
.inptdat-page .inptdat-entry-title .badge {
  font-size: 0.8rem;
  vertical-align: middle;
}
.inptdat-page-content {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.inptdat-page-content p,
.inptdat-page-content ul,
.inptdat-page-content ol {
  margin-bottom: 1.25rem;
}
.inptdat-page-content h2 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.9rem;
  font-weight: normal;
}
.inptdat-page-content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.4rem;
  font-weight: normal;
}
.inptdat-page-content ul,
.inptdat-page-content ol {
  padding-left: 4.4rem;
}
.inptdat-page-content li {
  margin-bottom: 0.3rem;
}
.inptdat-page-content hr {
  clear: both;
  margin: 2rem 0;
}
.inptdat-page-content img {
  max-width: 100%;
  height: auto;
}
.inptdat-page-content a {
  color: var(--inptdat-link);
  text-decoration: none;
}
.inptdat-page-content a:hover {
  text-decoration: underline;
}
.inptdat-page-content a.btn {
  margin: 0 0.5rem 0.5rem 0;
  color: #fff;
  text-decoration: none;
}
/* Project pages (pages of ckanext-pages) like the old INPTDAT's: description,
 * Key Facts and Funding side by side, publications, and the Contact column
 * with photos at the right (below on narrow screens). The layout is HTML
 * in the page text (<div class="row inptdat-project"> with Bootstrap
 * columns). As on the old site, headings have a grey line below; Key
 * Facts, publications and contacts are in smaller text (14.4px); the
 * photos have the old size. */
.inptdat-project {
  margin-top: 0.5rem;
}
.inptdat-project h2 {
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  line-height: 1.1;
}
.inptdat-project .inptdat-small-text,
.inptdat-person {
  font-size: 0.9rem;
}
.inptdat-project .inptdat-funding img {
  width: 100%;
  max-width: 360px;
}
.inptdat-project-contact h2 {
  margin-bottom: 1rem;
}
.inptdat-person {
  margin-bottom: 2.9rem;
}
.inptdat-person img {
  display: block;
  width: 211px;
  margin-bottom: 0.6rem;
}

/* Sysadmin settings > Config: the YAML settings (settings.py) in a fixed-
 * width font, so that the indentation is visible. */
textarea.inptdat-yaml {
  font-family: var(--bs-font-monospace);
  font-size: 0.875rem;
}

/* Phones: the search filters above the results, like on the old INPTDAT,
 * as wide as the results (CKAN hides them there behind a "Filter results"
 * button and a window over the page). CKAN shows the left column on top
 * on phones. */
@media (max-width: 767.98px) {
  .js .main .secondary .filters {
    display: block;
    position: static;
    overflow: visible;
    z-index: auto;
    padding: 0 2.25rem;
    background-color: transparent;
  }
  .js .show-filters.btn {
    display: none;
  }
  .js .main .secondary .filters > div {
    overflow: visible;
    border-radius: 0;
    background-color: transparent;
  }
  .js .main .secondary .filters > div .module-footer {
    display: block;
  }
  .js .main .secondary .filters .hide-filters {
    display: none;
  }
}

/* Add Dataset form (/add-dataset-form, templates/inptdat/add_dataset/,
 * assets/js/add-dataset.js) like the old INPTDAT's webform: a progress bar
 * (green up to the current step), grey-headed panels, bold labels with a
 * red star, help texts below the fields, small blue buttons. */
.inptdat-ad-progress {
  display: flex;
  margin: 1.75rem 0 0.25rem;
  padding: 0;
  list-style: none;
}
.inptdat-ad-progress li {
  position: relative;
  flex: 1 1 0;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.2;
}
/* the bar from this step's dot to the next one, like the old webform: a
 * hollow bar with a dark green edge, filled green up to the current step */
.inptdat-ad-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 100%;
  height: 5px;
  border: 1px solid #356900;
  border-width: 1px 0;
  background: #fff;
}
.inptdat-ad-progress li.line-done::after {
  background: #74c421;
}
/* the dot: dark green edge, green when the step is done or current */
.inptdat-ad-progress li::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(50% - 4.5px);
  width: 9px;
  height: 9px;
  border: 1px solid #356900;
  border-radius: 50%;
  background: #fff;
}
.inptdat-ad-progress li.done::before {
  background: #74c421;
}
.inptdat-ad-panel {
  margin-bottom: 1.25rem;
  border: 1px solid #cdcdcd;
  border-radius: 3px;
}
.inptdat-ad-panel-title {
  margin: 0;
  padding: 0.6rem 0.95rem;
  background: #cdcdcd;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
}
.inptdat-ad-panel-body {
  padding: 0.95rem 0.95rem 0.4rem;
}
.inptdat-ad-intro {
  color: #767676;
  font-size: 1rem;
}
.inptdat-ad-field {
  margin-bottom: 1.4rem;
}
.inptdat-ad-field .form-label {
  margin-bottom: 0.3rem;
  font-weight: bold;
}
/* no colon after the labels (CKAN adds one to every label), choices in
 * normal weight, like the old form */
.inptdat-ad label::after {
  content: none;
}
.inptdat-ad .form-check-label {
  font-weight: normal;
}
.inptdat-ad-required {
  color: #d00;
}
.inptdat-ad-help {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.inptdat-ad-help-above {
  margin: 0 0 0.5rem;
}
.inptdat-ad-help a,
.inptdat-ad-field .form-check-label a {
  color: var(--inptdat-link);
  text-decoration: none;
}
.inptdat-ad-choices {
  margin-top: 1.4rem;
}
.inptdat-ad-field .form-check {
  margin-bottom: 0.2rem;
}
.inptdat-ad-field.has-error .form-control,
.inptdat-ad-field.has-error .form-check-input {
  border-color: #d00;
}
.inptdat-ad-error {
  margin-top: 0.3rem;
  color: #d00;
  font-size: 0.9rem;
}
.inptdat-ad-question {
  display: block;
  font-weight: normal !important;
  font-size: 0.95rem;
}
.inptdat-ad-code-image {
  display: block;
  margin-bottom: 0.25rem;
}
.inptdat-ad-new-code {
  margin: 0 0 0.75rem;
  padding: 0;
}
.inptdat-ad-code-ok {
  color: #3c763d;
}
.inptdat-ad-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
}
.inptdat-ad-buttons .btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}
/* the trap field for bots: out of sight, not reachable with the keyboard */
.inptdat-ad-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* chips (select2) as wide as the other fields, also in hidden steps */
.inptdat-ad .select2-container {
  width: 100% !important;
}
/* with JavaScript one step at a time; without, all steps and a Submit
 * button at the end */
.inptdat-ad-steps .inptdat-ad-step:not(.active),
.inptdat-ad-steps .inptdat-ad-nojs,
.inptdat-ad:not(.inptdat-ad-steps) .inptdat-ad-overview-step,
.inptdat-ad:not(.inptdat-ad-steps) [data-ad-next],
.inptdat-ad:not(.inptdat-ad-steps) [data-ad-previous] {
  display: none;
}
/* overview and the curators' page: "Label value" lines */
.inptdat-ad-row {
  margin-bottom: 0.8rem;
}
.inptdat-ad-row strong {
  margin-right: 0.3rem;
}
.inptdat-ad-value {
  white-space: pre-line;
}
.inptdat-ad-value ul {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
  white-space: normal;
}
/* "Please check your data before submission." light yellow like the old
 * site's warnings */
.inptdat-ad-check {
  margin-top: 0.5rem;
  border-color: #faebcc;
  background: #fcf8e3;
  color: #8a6d3b;
}
.inptdat-ad-check .fa {
  color: #f0ad4e;
}
.inptdat-ad-logo {
  display: block;
  max-width: 240px;
  max-height: 120px;
  margin-top: 0.4rem;
}
.inptdat-ad-complete {
  margin-top: 1rem;
  font-size: 1rem;
}
.inptdat-ad-subheading {
  font-size: 1.4rem;
  font-weight: normal;
}
/* phones: the step names of the progress bar are too long; only the dots */
@media (max-width: 767.98px) {
  .inptdat-ad-progress li span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* File page: line breaks of a file's own fields (e.g. the range) are kept,
   like on the old INPTDAT (templates/scheming/package/resource_read.html) */
.inptdat-keep-lines { white-space: pre-line; }
.inptdat-file-info table { table-layout: fixed; }
.inptdat-file-info table th { width: 50%; }

/* DOI reserved here, not yet registered (datacite.py): only for curators
   and reviewers, on the dataset page and in the form */
.inptdat-doi-badge {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #e6c65c;
  font-weight: normal;
  margin-left: 6px;
  white-space: normal;
}
.inptdat-doi-badge.inptdat-doi-missing,
.inptdat-doi-state.inptdat-doi-missing {
  background: #f8d7da;
  color: #842029;
  border-color: #e3a1a8;
}
.inptdat-doi-state {
  color: #664d03;
}
.inptdat-doi-reserve-check .form-check-label {
  font-weight: normal;
}
.inptdat-doi-reserve-check .form-check-label::after {
  content: none;   /* CKAN puts a colon after every label */
}

/* XLoader's DataStore badge, only for curators and reviewers
   (datastore_note.py): "Data API: not available / waiting / loading" in
   calm colours, a note under the file's URL, an explanation on the
   DataStore page */
.loader-badge.inptdat-datastore-badge {
  margin-left: 0;
  margin-bottom: 4px;
  font-size: 13px;
}
.loader-badge.inptdat-datastore-badge .prefix {
  background: #5a6570;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.loader-badge.inptdat-datastore-badge .status.error {
  background: #8a5a00;
}
.loader-badge.inptdat-datastore-badge .status.pending,
.loader-badge.inptdat-datastore-badge .status.running {
  background: #6c757d;
}
.inptdat-datastore-note {
  background: #f3f6f9;
  border-left: 3px solid #8a5a00;
  padding: 6px 10px;
  font-size: 0.9em;
  color: #333;
}
.inptdat-datastore-help {
  background: #f3f6f9;
  border-left: 3px solid #5a6570;
  padding: 8px 12px;
  margin-bottom: 15px;
}
.inptdat-datastore-help p:last-child {
  margin-bottom: 0;
}

/* The file list in the sidebar of a file page: full names over several
   lines (package/snippets/resources.html); room for the curators' wrench */
.inptdat-resource-nav > li > a {
  overflow-wrap: anywhere;
}
.inptdat-resource-nav > li.inptdat-resource-nav-edit > a {
  padding-right: 84px;   /* CKAN's -25px margin + the wrench button */
}
