.downloads_list {
  padding: 13rem 0px 14rem;
  background-color: #fff;
}
/* table-like list: header row + one row per file */
.downloads_list .files {
  margin-top: 6.4rem;
}
.downloads_list .files_head,
.downloads_list .file {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) 13rem 13rem 15rem 21rem;
  align-items: center;
  column-gap: 2.4rem;
}
.downloads_list .files_head {
  padding: 2rem 2.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--text2);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.downloads_list .file {
  position: relative;
  padding: 3.2rem 2.4rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}
.downloads_list .file:hover {
  background-color: var(--light);
}
/* brochure cover thumbnail (Nano Banana 2.1, img/jobs-brochures.js) */
.downloads_list .thumb {
  flex-shrink: 0;
  display: block;
  width: 8rem;
  height: 10rem;
  overflow: hidden;
  border-radius: 0.8rem;
  background-color: var(--light);
}
.downloads_list .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.downloads_list .file:hover .thumb img {
  transform: scale(1.05);
}
.dl_file .thumb {
  flex-shrink: 0;
  width: 6.4rem;
  height: 8rem;
  overflow: hidden;
  border-radius: 0.6rem;
}
.dl_file .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.downloads_list .doc {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  min-width: 0px;
}

.downloads_list .kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}
.downloads_list .kind em {
  color: var(--text);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.downloads_list .name h3 {
  margin-top: 1rem;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.downloads_list .name p {
  margin-top: 0.6rem;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1.55;
}
.downloads_list .meta {
  display: contents;
}
.downloads_list .meta dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.downloads_list .meta dd {
  color: var(--title);
  font-weight: 500;
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
}
/* download button (17 Nov 2026, client: orange, not white): solid orange pill, graphite text, white circle with a down arrow
   (same look as the other filled buttons of the site) */
.dl_btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  height: 5.6rem;
  border-radius: var(--pill);
  color: var(--dark);
  font-weight: 500;
  font-size: 1.7rem;
  white-space: nowrap;
  background: var(--grad_orange);
  transition: filter 0.3s, transform 0.3s;
}
.dl_btn span {
  padding: 0px 1.4rem 0px 2.4rem;
}
.dl_btn::after {
  content: '';
  flex-shrink: 0;
  width: 4.4rem;
  height: 4.4rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M22 14v14M16.5 22.5 22 28l5.5-5.5M15 31h14' fill='none' stroke='%2315181c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100%;
  transition: transform 0.4s var(--ease);
}
.dl_btn:hover {
  filter: brightness(1.04);
  transform: translateY(-0.2rem);
}
.dl_btn:hover::after {
  transform: translateY(0.3rem);
}

/* contact step: modal */
.dl_modal {
  position: fixed;
  inset: 0px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.dl_modal[hidden] {
  display: none;
}
.dl_shade {
  position: absolute;
  inset: 0px;
  background-color: rgba(21, 24, 28, 0.55);
  animation: dl_fade 0.3s var(--ease);
}
.dl_panel {
  position: relative;
  width: 100%;
  max-width: 72rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding: 5.6rem 6rem 6rem;
  border-radius: var(--radius);
  background-color: #fff;
  box-shadow: 0px 3.2rem 8rem rgba(21, 24, 28, 0.18);
  animation: dl_rise 0.4s var(--ease);
}
@keyframes dl_fade {
  from { opacity: 0; }
}
@keyframes dl_rise {
  from { opacity: 0; transform: translateY(2.4rem); }
}
.dl_close {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background-color: var(--light);
  transition: background-color 0.3s;
}
.dl_close::before,
.dl_close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.8rem;
  height: 1.5px;
  background-color: var(--title);
  transform: translate(-50%, -50%) rotate(45deg);
}
.dl_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.dl_close:hover {
  background-color: var(--soft);
}
.dl_file {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0px 6rem 3.2rem 0px;
  border-bottom: 1px solid var(--line);
}

.dl_file .dl_label {
  display: block;
  color: var(--text2);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dl_file strong {
  display: block;
  margin-top: 0.4rem;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.3;
}
.dl_file .dl_meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 1.6rem;
}
.dl_form,
.dl_done {
  margin-top: 4rem;
}
.dl_modal .tcon h2 {
  font-size: 4.8rem;
}
.dl_modal .tcon p {
  margin-top: 1.6rem;
  font-size: 1.8rem;
}
.dl_form .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.6rem;
}
.dl_form .fields label > span:first-child {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--title);
  font-weight: 500;
  font-size: 1.5rem;
}
.dl_form input[type='text'],
.dl_form input[type='email'] {
  display: block;
  width: 100%;
  height: 5.6rem;
  padding: 0px 1.8rem;
  border: 1px solid var(--light);
  border-radius: var(--radius_s);
  font-size: 1.7rem;
  background-color: var(--light);
  transition: border-color 0.3s, background-color 0.3s;
}
.dl_form input[type='text']:focus,
.dl_form input[type='email']:focus {
  border-color: var(--primary);
  background-color: #fff;
}
.dl_form .invalid input {
  border-color: #c2410c;
  background-color: #fff;
}
.dl_form .check {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 2.8rem;
  cursor: pointer;
}
.dl_form .check input {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
}
.dl_form .check span:not(.wpcf7-list-item-label) {
  margin: 0px;
  color: var(--text);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.55;
}
/* CF7 acceptance nests the checkbox; flatten so the row matches downloads.html */
.dl_form .check .wpcf7-form-control-wrap,
.dl_form .check .wpcf7-acceptance,
.dl_form .check .wpcf7-list-item,
.dl_form .check .wpcf7-list-item > label {
  display: contents;
}
.dl_form .check .wpcf7-list-item {
  margin: 0;
}
.dl_form .check .wpcf7-list-item-label {
  margin: 0;
  color: var(--text);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.55;
}
.dl_form .check .wpcf7-list-item-label::before,
.dl_form .check .wpcf7-list-item-label::after {
  content: none;
}
.dl_form .check a {
  color: var(--link);
  text-decoration: underline;
}
.dl_form .err {
  margin-top: 1.6rem;
  color: #c2410c;
  font-size: 1.5rem;
}
.dl_form .btn,
.dl_done .btn {
  margin-top: 3.2rem;
}
/* thank-you state */
.dl_done .ok {
  display: block;
  width: 6.4rem;
  height: 6.4rem;
  margin-bottom: 2.8rem;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='m21 33 7.5 7.5L44 25' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100%;
}
body.dl_lock {
  overflow: hidden;
}

@media screen and (min-width: 769px) and (max-width: 1280px) {
  .downloads_list .files_head,
  .downloads_list .file {
    grid-template-columns: minmax(0px, 1fr) 9rem 10rem 12rem 19rem;
    column-gap: 1.6rem;
  }
  .downloads_list .doc {
    gap: 2.4rem;
  }
}

/* tablet / mobile: one card-like row per file, meta inline, button full width */
@media screen and (max-width: 1024px) {
  .downloads_list .files_head {
    display: none;
  }
  .downloads_list .file {
    grid-template-columns: 1fr auto;
    row-gap: 2rem;
  }
  .downloads_list .doc {
    grid-column: 1 / -1;
  }
  .downloads_list .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0px;
  }
  .downloads_list .meta div + div::before {
    content: '·';
    margin: 0px 1rem;
    color: var(--text2);
  }
  .downloads_list .meta div {
    display: flex;
  }
  .downloads_list .meta dd {
    color: var(--text);
    font-size: 1.7rem;
  }
}

@media screen and (max-width: 768px) {
  .downloads_list {
    padding: 64px 0px 72px;
  }
  .downloads_list .files {
    margin-top: 20px;
  }
  .downloads_list .file {
    row-gap: 10px;
    padding: 24px 0px;
  }
  .downloads_list .file:hover {
    background-color: transparent;
  }
  .downloads_list .doc {
    align-items: flex-start;
    gap: 16px;
  }

  .downloads_list .thumb {
    width: 56px;
    height: 70px;
  }
  .downloads_list .kind {
    gap: 8px;
  }
  .downloads_list .kind em {
    font-size: 11px;
  }
  .downloads_list .name h3 {
    margin-top: 6px;
    font-size: 19px;
  }
  .downloads_list .name p {
    font-size: 14px;
  }
  .downloads_list .meta {
    padding-left: 60px;
  }
  .downloads_list .meta dd {
    font-size: 14px;
  }
  .downloads_list .meta div + div::before {
    margin: 0px 8px;
  }
  /* phone: meta line + round download button on the same row */
  .downloads_list .file {
    grid-template-columns: 1fr auto;
  }
  .downloads_list .meta {
    align-self: center;
  }
  .dl_btn {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
  }
  .dl_btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .dl_btn::after {
    width: 44px;
    height: 44px;
    margin: 0px;
    background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M22 14v14M16.5 22.5 22 28l5.5-5.5M15 31h14' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100%;
  }
  .dl_modal {
    align-items: flex-end;
    padding: 0px;
  }
  .dl_panel {
    max-height: 92vh;
    padding: 28px 20px 32px;
    border-radius: 20px 20px 0px 0px;
  }
  .dl_close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .dl_file {
    gap: 14px;
    padding: 0px 48px 20px 0px;
  }
  .dl_file .dl_label {
    font-size: 11px;
  }
  .dl_file strong {
    font-size: 16px;
  }
  .dl_file .dl_meta {
    font-size: 13px;
  }
  .dl_form,
  .dl_done {
    margin-top: 24px;
  }
  .dl_modal .tcon h2 {
    font-size: 28px;
  }
  .dl_modal .tcon p {
    margin-top: 10px;
    font-size: 15px;
  }
  .dl_form .fields {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }
  .dl_form .fields label > span:first-child {
    margin-bottom: 6px;
    font-size: 14px;
  }
  .dl_form input[type='text'],
  .dl_form input[type='email'] {
    height: 48px;
    font-size: 16px;
  }
  .dl_form .check {
    margin-top: 18px;
  }
  .dl_form .check .wpcf7-list-item-label {
    font-size: 13px;
  }
  .dl_form .btn,
  .dl_done .btn {
    width: 100%;
    justify-content: space-between;
    margin-top: 22px;
  }
  .dl_done .ok {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
  }
}
