* {
  box-sizing: border-box;
}

:root {
  --profile-color-darkest: #11262C;
  --profile-color-darker: #1C3F49;
  --profile-color-dark: #005462;
  --profile-color-medium: #3FD695;
  --profile-color-light: #c4eeda;
  --profile-color-lightest: #E3F5EC;
  --profile-color-grey: #BEBEBE;
  --profile-font: 'Source Sans Pro', sans-serif;
  --profile-title-font: 'Barlow Condensed', sans-serif;
}

header {
  width: 100%;
  height: 5em;
  background-color: var(--profile-color-darker);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 1.2em;
  box-sizing: border-box;
  display: flex;
}

footer {
  width: 100%;
  background-color: var(--profile-color-darker);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 1.2em;
  box-sizing: border-box;
  display: flex;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--profile-font);
  font-size: 18px;
  line-height: 1.5;
}

a {
  color: var(--profile-color-dark);
  text-decoration: underline;
}

a:hover {
  background-color: var(--profile-color-light);
}

hr {
  margin: 0px;
  border: 0;
  height: 1px;
  background-color: gray;
}

/* --------- STICKY FOOTER --------- */

body {
  height: 100%;
}

.content-wrap {
  min-height: calc(100vh - 153px);  /* subtract header+footer height */
}

/* --------- TEXT FORMATTING --------- */

.app-title {    /* web page name, no header */
  font-family: var(--profile-title-font);
  font-size: 36px;
  font-weight: normal;

  position: absolute;             /* center content */
  left: 50%;                      /* center content */
  transform: translateX(-50%);    /* center content */
}
.app-title a {
  color: inherit;
  text-decoration: none;
}
.app-title a:hover {
  background-color: transparent;
}

.resource-title {    /* h1 */
  font-family: var(--profile-title-font);
  font-size: 35px;
  font-weight: 500;
  color: var(--profile-color-dark);
  margin: 0px;
}

.start-page-title {    /* h1 */
  font-family: var(--profile-title-font);
  font-size: 35px;
  font-weight: 500;
  color: var(--profile-color-dark);
  margin: 0px;
  margin-top: 0.8em;
}

.resource-detail-title {
  margin: 0px;
  color: black;
  font-weight: bold;
  font-family: var(--profile-font);
  font-size: 18px;
  line-height: 1.5;
}

.directory-title {    /* h2 */
  font-family: var(--profile-title-font);
  font-size: 28px;
  font-weight: 500;
  color: var(--profile-color-dark);
  margin: 0px;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

.info-title {    /* h2 */
  font-family: var(--profile-title-font);
  font-size: 28px;
  font-weight: 500;
  color: var(--profile-color-dark);
  margin: 0px;
  margin-top: 0.8em;
  margin-bottom: 0.2em;
}

.start-page-text {
  margin: 0;
  font-size: 18px;
}

.metadata-missing-text {
  margin: 0;
}

.footer-info-text {
  margin-bottom: 1em;
}

.entry-info-text {
  margin-top: 0px;
}

.info-text {
  margin-top: 0px;
}

/* --------- LINKS --------- */

.footer-link {
  color: white;
  text-decoration: underline;
}

.footer-link:hover {
  padding-top: 5px;
  padding-bottom: 5px;
  text-decoration: underline;
  background-color: var(--profile-color-darkest);
}

.footer-link-div {
  margin-bottom: 0.6em;
}

/* --------- METADATA TEXT BLOCK --------- */

.metadata-block {
  background-color: var(--profile-color-light);
  border-radius: 20px;
  padding: 1.4em;
  margin-top: 0.5em;
}

/* --------- ICONS --------- */

.folder-icon,
.file-icon {
  width: 1.7em;
}

/* --------- BUTTONS --------- */

.normal-button {
  width: 200px;
  font-family: var(--profile-font);
  font-size: 18px;
  color: white;
  border: none;
  outline: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;  
}

.normal-button {
  background-color: var(--profile-color-darker);
}
.normal-button:hover {
  background-color: var(--profile-color-darkest);
}
.normal-button:focus {
  outline: revert;
}
.normal-button:disabled {
  background-color: #89c1d1;
  cursor: not-allowed;
}

.download-buttons {
  display: flex;
  gap: 8px;
}

/* --------- CHECKBOXES --------- */

.entry-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.entry-fieldset-legend {
  font-weight: bold;
  margin-bottom: 1em;
}

.entry-select-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--profile-color-darker);
  margin-right: 2em;
}

.page-header,
.content-wrap {
  margin: 0 auto;
  max-width: 1000px;
  padding-left: 20px;
  padding-right: 20px;
}

.page-header {
  padding-top: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ccc;
}

.eyebrow,
.current-path,
.count-line,
.section-row p {
  color: #666;
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.current-path,
.count-line {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.content-wrap {
  padding-top: 18px;
  padding-bottom: 48px;
}

.breadcrumbs {
  margin-bottom: 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #777;
}

.page-section {
  margin-bottom: 28px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-row p {
  margin-bottom: 0;
}

.up-link {
  flex: 0 0 auto;
}

.metadata-list {
  display: grid;
  gap: 12px;
}

.notice {
  background: #fff;
  border: 1px solid #ccc;
}

.notice {
  padding: 14px;
}


.metadata-fields {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}

.metadata-field {
  display: contents;
}

.metadata-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.entry-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.entry-list {
  display: grid;
  /*gap: 6px;*/
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
    border-bottom: 1px solid var(--profile-color-grey);
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

.entry-list li:first-child {
    border-top: 1px solid var(--profile-color-grey);
}

.entry-link {
  display: grid;
  /*grid-template-columns: 90px minmax(0, 1fr);*/
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.entry-link:hover .entry-name {
  text-decoration: underline;
}

.entry-kind {
  color: var(--profile-color-dark);
  font-weight: 600;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
}

.entry-name {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.notice {
  margin: 0;
}

/* --------- PHONE --------- */

@media (max-width: 700px) {
  .page-header,
  .content-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .entry-link {
    display: block;
  }

  .up-link,
  .entry-name {
    display: block;
  }

  .metadata-fields {
    display: block;
  }

  .metadata-fields dt {
    margin-top: 10px;
  }
}

/* --------- PHONE --------- */

@media screen and (max-width: 500px) {
    .app-title {
      font-size: 25px;
      width: max-content;
      margin-left: auto;
      margin-right: auto; 
    }

    .logo {
      width: 4rem;
    }

    header {
      padding: 0 0.8em;
    }

    .section-row {
      display: block;
    }

    .download-buttons {
      display: block;
      margin-bottom: 1.5em;
    }
    .download-buttons .normal-button {
      margin-top: 0.5em;
    }

    
}
