/*
 * Study group page (/estudios-1/<group>/): the public Wix study card (owner decision U0-13). On
 * wide screens it is a 980 px grid: a round close button and the light-blue Back button on the
 * left, the light-green title and the justified description beside them, and the two green
 * navigation buttons at a fixed height that longer text pushes down. Wix renders phones as a
 * 320 px layout scaled to the screen; there the elements stack and close becomes a pill at the
 * bottom. At 480 px and below --u is one pixel of that layout.
 */

/*
 * The public title (weight 700) and "Anterior"/"Siguiente" (400) are the client's uploaded Century
 * Gothic webfont, declared by Wix as one regular face, so browsers embolden the title from it. This is
 * the same face as on the value cards (values.css explains the tuned metrics): an installed Century
 * Gothic or the self-hosted look-alike's regular file, and no bold face.
 */
@font-face {
  font-family: "EIATEC Wix Century Gothic";
  src: local("Century Gothic"), local("CenturyGothic"), url("fonts/texgyreadventor-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100.4%;
  ascent-override: 97.2%;
  descent-override: 24.9%;
  line-gap-override: 0%;
}

.eiatec-studies-page { --u: 1px; background: #fff; color: #003448; }
.eiatec-studies-shell {
  position: relative; display: flex; flex-direction: column; box-sizing: border-box;
  width: 980px; max-width: 100%; min-height: 747px; margin: 0 auto; padding: 54px 0 103px;
}
.eiatec-studies-close {
  position: absolute; top: 21px; left: 26px; display: grid; width: 40px; height: 40px; place-items: center;
  border-radius: 100px; background: #282626; color: #fff; text-decoration: none;
}
.eiatec-studies-close svg { display: block; width: 18px; height: 18px; }
.eiatec-studies-back {
  position: absolute; top: 80px; left: 9px; display: flex; align-items: center; justify-content: center; gap: 4px;
  box-sizing: border-box; width: 148px; height: 40px; border: 1px solid #747575; background: #a1dcf2; color: #747575;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 300; line-height: 22.4px; text-decoration: none;
}
.eiatec-studies-back svg { display: block; flex: none; width: 22px; height: 22px; }
.eiatec-study-card { box-sizing: border-box; width: 581px; max-width: 100%; min-height: 550px; margin-left: 215px; }
/* Public: 46 px on 64.4 px lines, each 3 px taller (67.4 px), because the heading's own font sets them. */
.eiatec-study-title {
  width: 502px; max-width: 100%; margin: 0 0 47px 24px; color: #aaca70;
  font-family: "EIATEC Wix Century Gothic", "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
  font-size: 46px; font-weight: 700; line-height: 67.4px; overflow-wrap: anywhere;
}
/*
 * Public: Helvetica Light, Wix's only face of it, at 700 for the text and 900 for the bold labels, so the
 * browser emboldens both the same way and a label looks like the text around it. Without that licensed
 * webfont the regular local Helvetica with a 0.018 em outline draws the same ink (measured on the
 * "Prospecciones arqueológicas" card: 20 662 vs public 20 667) on nearly the same advance widths.
 */
.eiatec-study-description {
  color: #003448; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400;
  line-height: 1.25; text-align: justify; overflow-wrap: anywhere; -webkit-text-stroke: .018em currentColor;
}
.eiatec-study-description :is(strong, b) { font-weight: inherit; }
.eiatec-study-description p { margin: 0; }
.eiatec-study-description ul, .eiatec-study-description ol { margin: 0 0 0 .5em; padding: 0; }
.eiatec-study-description li { margin-left: 1.3em; }
.eiatec-study-description ul { list-style: disc; }
.eiatec-studies-empty { margin: 0 0 0 24px; }
.eiatec-studies-navigation { position: relative; height: 40px; }
.eiatec-studies-navigation a, .eiatec-studies-navigation button {
  position: absolute; top: 0; display: flex; align-items: center; box-sizing: border-box; height: 40px; padding: 0;
  border: 0; border-radius: 12px; background: #aaca70; color: #fff;
  font-family: "EIATEC Wix Century Gothic", "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif; font-size: 16px; font-weight: 400;
  line-height: 22.4px; text-decoration: none; cursor: pointer;
}
/* As on Wix, "Anterior" starts at the button's left edge and "Siguiente" is centred. */
.eiatec-studies-navigation [data-study-direction="previous"] { left: 165px; width: 121px; justify-content: flex-start; }
.eiatec-studies-navigation [data-study-direction="next"] { left: 738px; width: 111px; justify-content: center; }
.eiatec-studies-navigation button:disabled { background: transparent; color: #d4d4d4; cursor: default; }
.eiatec-studies-page a:focus-visible, .eiatec-studies-page button:focus-visible { outline: 2px solid #1b80c3; outline-offset: 3px; }
/* The parent theme paints hovered and focused buttons pink; these keep the public look. */
.eiatec-studies-navigation a:is(:hover, :focus), .eiatec-studies-navigation button:not(:disabled):is(:hover, :focus) { background: #aaca70; color: #fff; }
.eiatec-studies-navigation button:disabled:is(:hover, :focus) { background: transparent; color: #d4d4d4; }

@media (max-width: 1000px) {
  .eiatec-studies-shell { width: auto; max-width: 640px; min-height: 0; padding: calc(20 * var(--u)) calc(20 * var(--u)); }
  .eiatec-studies-back {
    position: static; order: 1; width: 100%; height: calc(40 * var(--u)); gap: calc(4 * var(--u));
    font-size: calc(16 * var(--u)); line-height: calc(22.4 * var(--u));
  }
  .eiatec-studies-back svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
  .eiatec-study-card { order: 2; width: auto; min-height: 0; margin: calc(10 * var(--u)) 0 0; }
  .eiatec-study-title { width: auto; margin: 0 0 calc(18 * var(--u)); font-size: calc(24 * var(--u)); line-height: calc(35.6 * var(--u)); }
  .eiatec-study-description { font-size: calc(12.8 * var(--u)); }
  .eiatec-studies-empty { margin: 0; }
  .eiatec-studies-navigation { order: 3; height: calc(42 * var(--u)); margin-top: calc(10 * var(--u)); }
  .eiatec-studies-navigation a, .eiatec-studies-navigation button { height: calc(42 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); }
  .eiatec-studies-navigation [data-study-direction="previous"] { left: calc(13 * var(--u)); width: calc(115 * var(--u)); }
  .eiatec-studies-navigation [data-study-direction="next"] { left: calc(169 * var(--u)); width: calc(86 * var(--u)); }
  .eiatec-studies-close {
    position: static; order: 4; align-self: center; width: calc(120 * var(--u)); height: calc(42 * var(--u)); margin-top: calc(119 * var(--u));
  }
  .eiatec-studies-close svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
}
@media (max-width: 480px) {
  .eiatec-studies-page { --u: calc(100vw / 320); }
  .eiatec-studies-shell { max-width: none; }
}
