/* Airco Accreditation Landing page. All overrides are scoped to this page. */
.airco-accreds-index .airco-accreds-index__files.files-sec { margin-top: 65px; margin-bottom: 75px; }
.airco-accreds-index__files .row { align-items: stretch; }
.airco-accreds-index__files .col { display: flex; }
.airco-accreds-index__files .airco-accreds-index__card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 235px;
  color: #212c27;
  background: #fff;
  border: 1px solid #ebeeeb;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.airco-accreds-index__files .airco-accreds-index__card:hover,
.airco-accreds-index__files .airco-accreds-index__card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  text-decoration: none;
}
.airco-accreds-index__files .airco-accreds-index__image { width: 43%; margin-right: 30px; display: flex; align-items: center; justify-content: center; flex: 0 0 43%; }
.airco-accreds-index__files .airco-accreds-index__image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.airco-accreds-index__image-placeholder { width: 140px; height: 155px; display:flex; align-items:center; justify-content:center; background:#f5f8f6; font-size:14px; font-weight:700; color:#67916f; }
.airco-accreds-index__files .airco-accreds-index__info { display:flex; flex:1; min-width:0; flex-direction:column; align-items:flex-start; gap:14px; }
/* The accreditation artwork is displayed directly, not inside the theme's
   green .icon roundel. The fixed area balances wide and tall uploaded logos
   without distortion or cropping. */
.airco-accreds-index__files .airco-accreds-index__brand-logo {
  display: flex;
  flex: 0 0 95px;
  align-items: center;
  justify-content: center;
  width: min(160px, 100%);
  max-width: 100%;
  height: 95px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}
.airco-accreds-index__files .airco-accreds-index__brand-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 95px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
/* Original PDF-only legacy records retain their document icons. */
.airco-accreds-index__files .airco-accreds-index__roundel { display:flex; flex:0 0 82px; align-items:center; justify-content:center; width:82px; height:82px; overflow:hidden; color:#fff; }
.airco-accreds-index__files .airco-accreds-index__roundel img { display:block; max-width: 72%; max-height: 70%; width: auto; height:auto; object-fit:contain; }
.airco-accreds-index__files .airco-accreds-index__title { margin:0; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; display:block; overflow-wrap:anywhere; }
/* The card itself opens the detail page, apart from the separate PDF link.
   The two anchors are siblings, not nested links, for valid accessible HTML. */
.airco-accreds-index__files .airco-accreds-index__card--detail { position:relative; }
.airco-accreds-index__files .airco-accreds-index__actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 18px;
}
.airco-accreds-index__action { color:#1b7136; font-size:14px; font-weight:700; }
.airco-accreds-index__files a.airco-accreds-index__action { color:#1b7136; text-decoration:none; }
.airco-accreds-index__files a.airco-accreds-index__action:hover,
.airco-accreds-index__files .airco-accreds-index__card--detail:hover .airco-accreds-index__action--details,
.airco-accreds-index__files a.airco-accreds-index__card--legacy:hover .airco-accreds-index__action { text-decoration:underline; }
/* Stretched detail link preserves the existing full-card click target. */
.airco-accreds-index__files .airco-accreds-index__action--details::after {
  content:'';
  position:absolute;
  inset:0;
}
.airco-accreds-index__files .airco-accreds-index__action--details:focus-visible::after {
  outline:2px solid #1b7136;
  outline-offset:2px;
}
/* This explicit z-index places Download PDF above the stretched detail link. */
.airco-accreds-index__files .airco-accreds-index__action--pdf {
  position:relative;
  z-index:1;
}
.airco-accreds-index__files .airco-accreds-index__action--pdf:focus-visible {
  outline:2px solid #1b7136;
  outline-offset:3px;
}
.airco-accreds-index__empty { font-size:17px; padding: 40px 10px; color:#425a49; }
@media (max-width: 1199px) {
  .airco-accreds-index__files .airco-accreds-index__card { padding:30px 20px; }
  .airco-accreds-index__files .airco-accreds-index__image { margin-right: 22px; }
}
@media (max-width: 767px) {
  .airco-accreds-index .airco-accreds-index__files.files-sec { margin-top: 45px; margin-bottom: 50px; }
  .airco-accreds-index__files .airco-accreds-index__image { flex-basis: 38%; width: 38%; margin-right:20px; }
  .airco-accreds-index__files .airco-accreds-index__image img { max-height:170px; }
}
@media (max-width: 430px) {
  .airco-accreds-index__files .airco-accreds-index__card { padding:22px 16px; min-height:190px; }
  .airco-accreds-index__files .airco-accreds-index__image { width:34%; flex-basis:34%; margin-right:14px; }
  .airco-accreds-index__files .airco-accreds-index__brand-logo { height:72px; width:min(120px, 100%); flex-basis:72px; }
  .airco-accreds-index__files .airco-accreds-index__brand-logo img { max-height:72px; }
  .airco-accreds-index__files .airco-accreds-index__roundel { width:56px; height:56px; flex-basis:56px; }
  .airco-accreds-index__files .airco-accreds-index__title { font-size:19px; }
  .airco-accreds-index__files .airco-accreds-index__action { font-size:12px; }
  .airco-accreds-index__files .airco-accreds-index__actions { column-gap:12px; }
}


/* Mobile card composition v1.2.8
   The classic theme switches .files-sec .file to flex-direction:column on
   smaller viewports; without this override the logo becomes a left-aligned
   block below the certificate preview. Keep them side by side, with card
   title and links across the full card width underneath. The rule only
   affects cards made by this plugin and does not touch desktop or legacy. */
@media (max-width: 1030px) {
  .airco-accreds-index__files .airco-accreds-index__card--detail.airco-accreds-index__card--has-logo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    justify-items: center;
    column-gap: 12px;
    row-gap: 14px;
    padding: 24px 18px;
    min-height: 0;
    height: auto;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__image {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 145px;
    object-fit: contain;
  }
  /* Flatten this visual-only span so its children can occupy grid cells. */
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__info {
    display: contents;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__brand-logo {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
    height: auto;
    min-height: 65px;
    flex: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__brand-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__title {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    text-align: center;
    line-height: 1.25;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__actions {
    grid-row: 3;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    text-align: center;
    gap: 8px 14px;
  }
  /* When no logo is uploaded, avoid a blank second column. */
  .airco-accreds-index__files .airco-accreds-index__card--detail.airco-accreds-index__card--no-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 18px;
    min-height: 0;
  }
  .airco-accreds-index__files .airco-accreds-index__card--no-logo .airco-accreds-index__image {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .airco-accreds-index__files .airco-accreds-index__card--no-logo .airco-accreds-index__image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 145px;
  }
  .airco-accreds-index__files .airco-accreds-index__card--no-logo .airco-accreds-index__info {
    display: flex;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .airco-accreds-index__files .airco-accreds-index__card--no-logo .airco-accreds-index__actions {
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .airco-accreds-index__files .airco-accreds-index__card--detail.airco-accreds-index__card--has-logo {
    column-gap: 8px;
    row-gap: 12px;
    padding: 20px 12px;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__image img {
    max-height: 122px;
  }
  .airco-accreds-index__files .airco-accreds-index__card--has-logo .airco-accreds-index__brand-logo img {
    max-height: 76px;
  }
}
