/* Shared layout for the original publication pages. */
body {
  box-sizing: border-box;
  width: min(960px, calc(100% - 2rem));
  margin: clamp(1.25rem, 4vw, 3.25rem) auto 3rem;
  background-color: #fff;
  font-family: Georgia, serif;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

main, .masthead-caption {
  min-width: 0;
}

.masthead {
  --frame-color: #556b2f;
  --image-width: clamp(7rem, 18vw, 10.9375rem);
  --side-space: max(var(--image-width), 1rem);
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: clamp(16rem, 35vw, 21rem);
  padding: 2.5rem var(--side-space) 3.5rem;
  border: 2px solid var(--frame-color);
  text-align: center;
}

.masthead-image {
  position: absolute;
  inset: 50% auto auto 0;
  width: var(--image-width);
  height: auto;
  transform: translateY(-50%);
}

.masthead h1 {
  color: #000;
  font-size: clamp(1.375rem, 3.4vw, 2.1667rem);
  font-weight: normal;
  letter-spacing: .13em;
  line-height: 1.3;
  margin: 0;
}

.masthead h1 span {
  display: block;
  margin-top: .45em;
  font-size: .84em;
}

.masthead-copy p {
  margin: 1.1em 0 0;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: .2em;
}

.masthead-caption {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 1rem);
  margin: -1.75rem auto 0;
  text-align: center;
}

.masthead-caption table {
  width: 100%;
}

.masthead-caption td {
  padding: .375rem clamp(.35rem, 2vw, 1.5rem);
}

.masthead-caption-title {
  font-size: 1.1667rem;
  letter-spacing: .22em;
  overflow-wrap: normal;
}

main {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

main > table {
  width: 100%;
  table-layout: fixed;
  margin-inline: auto;
}

main table {
  max-width: 100%;
}

main td {
  min-width: 0;
}

main img {
  max-width: 100%;
  height: auto;
}

main pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

main a:focus-visible, .site-languages a:focus-visible {
  outline: 2px solid #556b2f;
  outline-offset: 3px;
}

.publication-gap {
  display: inline-block;
  width: clamp(.25rem, 2vw, 1.75rem);
}

.publication-grid {
  width: 100%;
  table-layout: fixed;
}

.publication-grid > tbody > tr > td:nth-child(even) {
  width: clamp(.5rem, 2vw, 1.5rem);
}

.publication-grid > tbody > tr > td[colspan] {
  width: auto;
}

.site-languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem clamp(1rem, 8vw, 6rem);
}

.site-languages a {
  display: inline-grid;
  min-height: 44px;
  padding: .25rem .5rem;
  place-items: center;
  color: #556b2f;
  font-size: 1.1667rem;
  font-style: italic;
  letter-spacing: .14em;
  text-align: center;
}

.site-languages a:hover, main a:hover {
  color: #556b2f;
  text-decoration: underline;
}

.contact-content {
  max-width: 26.125rem;
  margin-inline: auto;
}

.contact-content form {
  padding: .75rem;
}

.freecontactform, .freecontactform input, .freecontactform textarea {
  box-sizing: border-box;
  max-width: 100%;
}

.freecontactform input, .freecontactform textarea {
  font-size: 1rem;
}

.freecontactform input[type="submit"], .freecontactform input[type="reset"] {
  min-height: 44px;
}

.template-page {
  max-width: 746px;
}

.masthead-template {
  --frame-color: #2d6b8a;
  --image-width: clamp(6rem, 18vw, 8.5rem);
  min-height: 16.4375rem;
  border-width: 1px;
  font-style: italic;
}

@media (max-width: 640px) {
  .masthead {
    --image-width: 5.25rem;
    gap: .85rem;
    min-height: 0;
    padding: 1.125rem .75rem 2.25rem;
  }

  .masthead-image {
    position: static;
    transform: none;
  }

  .masthead-copy p {
    margin-top: .65em;
  }

  .masthead-caption {
    margin-top: -1.15rem;
  }

  .masthead-caption p {
    line-height: 1.35;
  }

  .masthead-caption-title {
    font-size: clamp(.875rem, 4.2vw, 1.1667rem);
    letter-spacing: .14em;
  }

  .publication-grid, .publication-grid > tbody, .publication-grid > tbody > tr,
  .publication-grid > tbody > tr > td {
    display: block;
  }

  .publication-grid > tbody > tr > td:nth-child(even) {
    display: none;
  }

  .publication-grid > tbody > tr > td:nth-child(odd) {
    margin-bottom: 1rem;
  }

  .contact-content .freecontactform,
  .contact-content .freecontactform > tbody,
  .contact-content .freecontactform > tbody > tr,
  .contact-content .freecontactform > tbody > tr > td {
    display: block;
  }

  .contact-content .freecontactform {
    width: 100%;
  }

  .freecontactform label {
    display: block;
    margin-top: .65rem;
  }
}
