/* =========================================================
   EZee Link Publications / Phoca Download
   Component-specific layout only. Global typography, links and
   .btn visuals remain owned by el-template.css.
   ========================================================= */

/* Year / issue filters */
.el-year-filter-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 12px 18px;

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--theme-color) 2.5%, var(--surface-color)) 0%,
      var(--surface-color) 100%
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--theme-color) 13%,
      var(--border-color)
    );

  border-radius: 8px;

  box-shadow:
    0 3px 12px rgba(0,0,0,.035);

  color: var(--text-color);
  font-family: var(--font-body);
}

.el-year-filter-form label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: auto;
  margin: 0;
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Calendar icon before Select Year */
.el-year-filter-form label:nth-of-type(1)::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-color: var(--theme-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 2v4M18 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Divider + publication icon before Select Issue */
.el-year-filter-form label:nth-of-type(2) {
  margin-left: 16px;
  padding-left: 32px;
}

.el-year-filter-form label:nth-of-type(2)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 34px;
  background:
    color-mix(
      in srgb,
      var(--theme-color) 35%,
      transparent
    );
  transform: translateY(-50%);
}

.el-year-filter-form label:nth-of-type(2)::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background-color: var(--theme-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 5.5c2.8-.9 5.7-.5 9.5 1.5v13c-3.8-2-6.7-2.4-9.5-1.5v-13zM21.5 5.5c-2.8-.9-5.7-.5-9.5 1.5v13c3.8-2 6.7-2.4 9.5-1.5v-13z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 5.5c2.8-.9 5.7-.5 9.5 1.5v13c-3.8-2-6.7-2.4-9.5-1.5v-13zM21.5 5.5c-2.8-.9-5.7-.5-9.5 1.5v13c3.8-2 6.7-2.4 9.5-1.5v-13z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.el-year-filter-form select {
  min-width: 230px;
  min-height: 40px;
  margin: 0;
  padding: 8px 38px 8px 13px;

  border: 1px solid
    color-mix(
      in srgb,
      var(--theme-color) 17%,
      var(--border-color)
    );

  border-radius: 5px;

  background-color: var(--surface-color);
  color: var(--text-color);

  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;

  cursor: pointer;

  box-shadow: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.el-year-filter-form select:first-of-type {
  min-width: 210px;
}

.el-year-filter-form select:last-of-type {
  flex: 1 1 320px;
  max-width: 390px;
}

.el-year-filter-form select:hover {
  border-color:
    color-mix(
      in srgb,
      var(--theme-color) 38%,
      var(--border-color)
    );
}

.el-year-filter-form select:focus,
.el-year-filter-form select:focus-visible {
  border-color: var(--theme-color);
  outline: 0;
  box-shadow:
    0 0 0 3px
    color-mix(
      in srgb,
      var(--theme-color) 8%,
      transparent
    );
}

/* Keep the selector visually separated from the navigation above */
.el-year-filter-form {
  margin-top: 18px;
}

/* Featured issue */
.el-featured-issue {
  max-width: 1100px;
  margin: 40px auto 50px;
  padding: 28px 30px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--surface-color);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.el-featured-issue a {
  text-decoration: none;
}

.el-featured-issue p {
  margin: 5px 0;
}

.el-featured-issue .el-featured-inner {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.el-featured-issue .el-featured-image {
  flex: 0 0 260px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--surface-color);
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.el-featured-issue .el-featured-image a {
  display: block;
}

.el-featured-issue .el-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s ease;
}

@media (hover:hover) {
  .el-featured-issue .el-featured-image:hover img {
    transform: scale(1.025);
  }
}

.el-featured-issue .el-featured-content {
  flex: 1 1 400px;
  min-width: 0;
  color: var(--text-color);
  font-family: var(--font-body);
}

.el-featured-issue .el-featured-title {
  margin: 0 0 14px;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: 1.25;
}

.el-featured-issue .el-featured-details {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted-color);
  font-size: 15px;
  line-height: 1.6;
}

.el-featured-issue .el-featured-details li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 22px;
}

.el-featured-issue .el-featured-details li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--theme-accent);
  font-weight: 700;
}

/* Access / subscription notice */
.el-featured-issue .el-info-box {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-left: 4px solid var(--theme-accent);
  border-radius: 4px;
  background: color-mix(in srgb,var(--theme-accent) 8%,var(--surface-color));
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.6;
}

.el-featured-issue .el-info-box a {
  color: var(--link-color);
}

.el-featured-issue .el-info-box a:hover,
.el-featured-issue .el-info-box a:focus-visible {
  color: var(--link-hover-color);
}

/* IITW promotional content */
.el-featured-issue .el-iitw-title {
  margin: 0 0 8px;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: 1.25;
  text-align: center;
}

.el-featured-issue .el-iitw-tagline {
  margin: 0 0 20px;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.el-featured-issue .el-iitw-copy {
  margin: 0 0 10px;
  color: var(--text-color);
  font-size: var(--font-size-body);
  line-height: 1.65;
}

/* Actions: global .btn owns visual styling */
.el-featured-issue .el-featured-actions,
.el-subscription-card .el-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.el-featured-issue .el-featured-actions {
  margin-top: 20px;
}

.el-featured-issue .el-featured-actions form {
  margin: 0;
}

/* Other issues */
.el-featured-issue .el-other-issues-list {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border-color);
}

.el-featured-issue .el-other-issues-list h3 {
  margin: 0 0 16px;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: 1.3;
}

.el-featured-issue .el-issue-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
  gap: 18px 16px;
  margin-top: 15px;
}

.el-featured-issue .el-issue-thumb {
  min-width: 0;
  text-align: center;
}

.el-featured-issue .el-issue-thumb a {
  display: block;
  color: var(--text-color);
}

.el-featured-issue .el-issue-thumb img {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform .24s ease,box-shadow .24s ease;
  transform-origin: center bottom;
}

@media (hover:hover) {
  .el-featured-issue .el-issue-thumb {
    position: relative;
    z-index: 1;
  }

  .el-featured-issue .el-issue-thumb a {
    position: relative;
    z-index: 1;
  }

  .el-featured-issue .el-issue-thumb a:hover {
    z-index: 50;
  }

  .el-featured-issue .el-issue-thumb a:hover img {
    position: relative;
    z-index: 50;
    transform: scale(2.15);
    transform-origin: center bottom;
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
  }

  .el-featured-issue .el-issue-thumb:hover {
    z-index: 50;
  }
}

.el-featured-issue .el-issue-thumb a:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 3px;
}

.el-featured-issue .el-issue-title {
  margin-top: 8px;
  color: var(--muted-color);
  font-size: 12px;
  line-height: 1.45;
}

/* Subscription card */
.el-subscription-card {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 28px;
  row-gap: 0;

  max-width: none;
  margin: 32px auto 0;
  padding: 30px 34px 28px;

  border: 1px solid
    color-mix(
      in srgb,
      var(--button-blue) 38%,
      var(--border-color)
    );
  border-left: 5px solid var(--button-blue);
  border-radius: 10px;

  background:
    radial-gradient(
      circle at 92% 18%,
      color-mix(in srgb,var(--button-blue) 13%,transparent) 0%,
      transparent 24%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb,var(--button-blue) 7%,var(--surface-color)) 0%,
      color-mix(in srgb,var(--button-blue) 3%,var(--surface-color)) 50%,
      color-mix(in srgb,var(--button-blue) 12%,var(--surface-color)) 100%
    );

  color: var(--text-color);
  font-family: var(--font-body);

  box-shadow:
    0 10px 26px rgba(0,0,0,.055);
}


/* Decorative open-book watermark */
.el-subscription-card::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 42px;
  width: 112px;
  height: 82px;
  z-index: 0;
  opacity: .28;
  background-color: var(--button-blue);

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 88'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M60 18C48 9 34 8 18 13v54c16-5 30-4 42 5V18zm0 0c12-9 26-10 42-5v54c-16-5-30-4-42 5V18zM18 67l-8 5V20l8-4m84 51 8 5V20l-8-4'/%3E%3C/svg%3E")
    center / contain no-repeat;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 88'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M60 18C48 9 34 8 18 13v54c16-5 30-4 42 5V18zm0 0c12-9 26-10 42-5v54c-16-5-30-4-42 5V18zM18 67l-8 5V20l8-4m84 51 8 5V20l-8-4'/%3E%3C/svg%3E")
    center / contain no-repeat;

  pointer-events: none;
}

.el-subscription-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 420px;
  height: 210px;
  border-radius: 50%;
  background:
    color-mix(
      in srgb,
      var(--button-blue) 8%,
      transparent
    );
  transform: rotate(-12deg);
  pointer-events: none;
}

.el-subscription-card > * {
  position: relative;
  z-index: 1;
}

.el-subscription-card h3 {
  grid-column: 1 / -1;

  margin: 0 0 5px;

  color: var(--theme-color);
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: 1.3;
}

.el-subscription-card .el-subtitle {
  grid-column: 1 / -1;

  margin: 0 0 24px;

  color: color-mix(
    in srgb,
    var(--button-blue) 72%,
    var(--theme-color)
  );
  font-size: var(--font-size-body);
  font-weight: 600;
}

.el-subscription-card .el-benefits-group {
  min-width: 0;
  margin: 0;
  padding: 0 0 4px;
}

.el-subscription-card .el-benefits-group + .el-benefits-group {
  padding-left: 24px;
  border-left: 1px solid
    color-mix(
      in srgb,
      var(--button-blue) 16%,
      var(--border-color)
    );
}

.el-subscription-card h4 {
  margin: 0 0 11px;
  padding-left: 10px;

  border-left: 3px solid var(--theme-accent);

  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.el-subscription-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.el-subscription-card li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 25px;

  color: var(--text-color);
  font-size: 14px;
  line-height: 1.55;
}

.el-subscription-card li:last-child {
  margin-bottom: 0;
}

.el-subscription-card .el-cta-buttons {
  grid-column: 1 / -1;

  justify-content: center;
  gap: 14px;

  margin-top: 26px;
  padding-top: 22px;

  border-top: 1px solid
    color-mix(
      in srgb,
      var(--button-blue) 13%,
      var(--border-color)
    );
}

.el-subscription-card .el-cta-buttons .btn {
  min-width: 220px;
}

.el-subscription-card .el-cta-buttons .btn:first-child:not(.el-dark):not(.blue) {
  border-color: var(--button-blue);
  background: var(--surface-color);
  color: var(--button-blue);
}

.el-subscription-card .el-cta-buttons .btn:first-child:not(.el-dark):not(.blue):hover {
  border-color: var(--button-blue-hover);
  background:
    color-mix(
      in srgb,
      var(--button-blue) 5%,
      var(--surface-color)
    );
  color: var(--button-blue-hover);
}

.el-subscription-card .el-cta-buttons .btn:last-child {
  background: var(--button-blue);
  border-color: var(--button-blue);
  color: var(--theme-on-color);
}

.el-subscription-card .el-cta-buttons .btn:last-child:hover {
  background: var(--button-blue-hover);
  border-color: var(--button-blue-hover);
  color: var(--theme-on-color);
}

/* Subscription card responsive */
@media (max-width: 700px) {
  .el-subscription-card::before {
    top: 18px;
    right: 18px;
    width: 76px;
    height: 56px;
    opacity: .18;
  }

  .el-subscription-card {
    grid-template-columns: minmax(0,1fr);
    padding: 24px 20px;
  }

  .el-subscription-card h3,
  .el-subscription-card .el-subtitle,
  .el-subscription-card .el-cta-buttons {
    grid-column: 1;
  }

  .el-subscription-card .el-benefits-group + .el-benefits-group {
    margin-top: 22px;
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid
      color-mix(
        in srgb,
        var(--button-blue) 13%,
        var(--border-color)
      );
  }

  .el-subscription-card .el-cta-buttons {
    flex-direction: column;
  }

  .el-subscription-card .el-cta-buttons .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Empty state */
.el-publications-empty {
  margin: 40px 0 0;
  color: var(--muted-color);
  text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
  .el-year-filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    margin-top: 14px;
  }

  .el-year-filter-form label {
    flex: 0 0 auto;
    min-width: 0;
  }

  .el-year-filter-form label:nth-of-type(2) {
    margin-left: 0;
    margin-top: 4px;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid
      color-mix(
        in srgb,
        var(--theme-color) 12%,
        var(--border-color)
      );
  }

  .el-year-filter-form label:nth-of-type(2)::after {
    display: none;
  }

  .el-year-filter-form select,
  .el-year-filter-form select:first-of-type,
  .el-year-filter-form select:last-of-type {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .el-featured-issue {
    margin: 28px auto 36px;
    padding: 22px 18px;
  }

  .el-featured-issue .el-featured-inner {
    flex-direction: column;
    gap: 24px;
  }

  .el-featured-issue .el-featured-image {
    flex: none;
    width: min(260px,100%);
    margin: 0 auto;
  }

  .el-featured-issue .el-featured-content {
    width: 100%;
  }

  .el-featured-issue .el-featured-actions,
  .el-subscription-card .el-cta-buttons {
    flex-direction: column;
  }

  .el-featured-issue .el-featured-actions .btn,
  .el-subscription-card .el-cta-buttons .btn {
    width: 100%;
  }

  .el-featured-issue .el-featured-actions form {
    width: 100%;
  }

  .el-featured-issue .el-featured-actions form .btn {
    width: 100%;
  }

}

@media (max-width: 420px) {
  .el-featured-issue .el-issue-thumbnails {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px 12px;
  }
}

/* =========================================================
   IITW guest / unauthorized promotional view
   Dedicated presentation only; authorized IITW continues to use
   the standard Publications layout.
   ========================================================= */
.el-iitw-guest {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb,var(--theme-color) 18%,var(--border-color));
  background:
    radial-gradient(circle at 8% 8%,color-mix(in srgb,var(--theme-accent) 13%,transparent),transparent 34%),
    linear-gradient(135deg,var(--surface-color) 0%,var(--page-background) 100%);
}

.el-iitw-guest::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg,var(--theme-color),var(--theme-accent));
}

.el-iitw-guest .el-featured-inner {
  align-items: center;
}

.el-iitw-guest .el-featured-content {
  flex: 1 1 560px;
}

.el-iitw-guest .el-featured-image {
  flex: 0 0 300px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.el-iitw-guest .el-info-box {
  margin: 0;
  padding: 24px;
  border: 1px solid color-mix(in srgb,var(--theme-color) 12%,var(--border-color));
  border-left: 4px solid var(--theme-accent);
  background: color-mix(in srgb,var(--surface-color) 94%,var(--theme-accent));
  box-shadow: 0 5px 18px rgba(0,0,0,.05);
}

.el-iitw-guest .el-iitw-title {
  margin-bottom: 6px;
}

.el-iitw-guest .el-iitw-tagline {
  color: var(--theme-accent);
}

.el-iitw-guest .el-iitw-copy:last-child {
  margin-bottom: 0;
}

.el-iitw-guest .el-iitw-sample-action {
  margin: 0 0 20px;
}

.el-iitw-guest .el-iitw-sample-action .btn {
  min-width: 220px;
}

/* Guest mobile priority:
   Sample Copy CTA must be the first visible content. */
@media (max-width: 700px) {
  .el-iitw-guest {
    padding: 22px 18px 24px;
  }

  .el-iitw-guest .el-featured-inner {
    display: contents;
  }

  .el-iitw-guest {
    display: flex;
    flex-direction: column;
  }

  .el-iitw-guest .el-featured-content {
    display: contents;
  }

  .el-iitw-guest .el-iitw-sample-action {
    order: 1;
    width: 100%;
    margin: 0 0 18px;
  }

  .el-iitw-guest .el-iitw-sample-action .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .el-iitw-guest .el-info-box {
    order: 2;
    width: 100%;
    padding: 20px 16px;
  }

  .el-iitw-guest .el-featured-image {
    order: 3;
    width: min(280px,82%);
    margin: 22px auto 0;
  }

  .el-iitw-guest .el-iitw-title {
    font-size: clamp(24px,var(--h2-size),30px);
  }

  .el-iitw-guest .el-iitw-tagline {
    font-size: 16px;
  }
}


/* Large issue-cover preview on hover — retained for readability */
.el-other-issues .el-issue-cover:hover {
  transform: scale(1.8);
  z-index: 20;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
