/* ==========================================================================
   pages/publishers.css — OUR PUBLISHERS (3205:598)
   ========================================================================== */

/* ---- Hero (50/50 split — solid blue + bookshelf photo) ------------------ */
.publishers-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}
@media (min-width: 900px) {
  .publishers-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.publishers-hero__panel {
  display: flex;
  align-items: center;
  order: 2;
  padding: var(--space-48) var(--container-pad);
  color: var(--color-white);
  background: var(--color-brand);
}
@media (min-width: 900px) {
  .publishers-hero__panel {
    order: 1;
    padding-block: var(--space-40);
    padding-inline: clamp(2.5rem, 3vw + 1rem, 5rem);
  }
}

.publishers-hero__content {
  max-width: 573px;
}
.publishers-hero__title {
  margin-bottom: var(--space-24);
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  color: var(--color-white);
}
.publishers-hero__text {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-white);
}

.publishers-hero__media {
  order: 1;
  overflow: hidden;
}
@media (min-width: 900px) {
  .publishers-hero__media {
    order: 2;
  }
}
.publishers-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.publisher-grid { align-items: stretch; }
.publisher { min-height: 100%; }

/* ---- Trusted publisher cards -------------------------------------------- */
.trusted-publishers {
  background: linear-gradient(180deg, #e3f2fa 0%, #eef7fc 50%, #f5fafd 100%);
}
.trusted-publishers .section__head {
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
}
.trusted-publishers__eyebrow {
  margin-bottom: var(--space-12);
  color: #1e81b0;
}
.trusted-publishers .section__title {
  margin-bottom: 0;
}

.publisher-card-grid {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 600px) {
  .publisher-card-grid {
    gap: 1.75rem;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .publisher-card-grid {
    gap: var(--space-32);
    grid-template-columns: repeat(4, 1fr);
  }
}

.publisher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.125rem 1.125rem 1.25rem;
  background: var(--color-white);
  border: 1px solid #d6e9f5;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(14, 121, 177, 0.06),
    0 8px 24px rgba(14, 121, 177, 0.1);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.publisher-card:hover {
  box-shadow:
    0 2px 4px rgba(14, 121, 177, 0.08),
    0 14px 36px rgba(14, 121, 177, 0.14);
}

.publisher-card__tabs {
  display: flex;
  align-self: stretch;
  gap: 0;
  margin-bottom: 1rem;
  padding: 3px;
  background: #eef6fc;
  border: 1px solid #d4e8f4;
  border-radius: 10px;
}
.publisher-card__tab {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: #5a7a8f;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.publisher-card__tab:hover {
  text-decoration: none;
}
.publisher-card__tab.is-current {
  color: var(--color-white);
  box-shadow: 0 2px 6px rgba(14, 121, 177, 0.18);
}
.publisher-card__tab:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.publisher-card__tab--info.is-current,
.publisher-card__tab--info:hover {
  color: var(--color-white);
  background: #1e81b0;
}
.publisher-card__tab--info:not(.is-current):hover {
  color: #1e81b0;
  background: rgba(30, 129, 176, 0.08);
}
.publisher-card__tab--promo.is-current,
.publisher-card__tab--promo:hover {
  color: var(--color-white);
  background: #f58233;
}
.publisher-card__tab--promo:not(.is-current):hover {
  color: #d96a1a;
  background: rgba(245, 130, 51, 0.1);
}

.publisher-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 13.5rem;
  margin-bottom: 0.75rem;
}

.publisher-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: 0;
  margin-bottom: 1rem;
  padding: clamp(0.625rem, 1.75vw, 0.875rem);
  overflow: hidden;
  background: var(--color-white);
  border: none;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(30, 129, 176, 0.1);
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease);
}
.publisher-card__logo:hover {
  box-shadow:
    inset 0 0 0 1px rgba(30, 129, 176, 0.16),
    0 4px 14px rgba(14, 121, 177, 0.1);
}

.publisher-card__details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0.875rem 1rem;
  background: linear-gradient(180deg, #f8fbfe 0%, #f2f8fd 100%);
  border: 1px solid #d9ebf6;
  border-radius: 12px;
}
.publisher-card__details-empty {
  flex: 1 1 auto;
  margin: 0;
  padding: 1.25rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  font-style: italic;
  text-align: center;
  color: var(--color-text-muted);
  background: #f8fbfe;
  border: 1px dashed #c5dff0;
  border-radius: 12px;
}

.publisher-card__detail {
  display: grid;
  grid-template-columns: minmax(5.5rem, 6.5rem) minmax(0, 1fr);
  gap: 0.375rem 0.75rem;
  align-items: start;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(30, 129, 176, 0.1);
}
@media (max-width: 359px) {
  .publisher-card__detail {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
.publisher-card__detail:first-child {
  padding-top: 0;
}
.publisher-card__detail:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.publisher-card__label {
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e81b0;
}
.publisher-card__value {
  font-size: 0.8125rem;
  font-weight: var(--fw-regular);
  line-height: 1.45;
  color: #2c3e50;
  word-break: break-word;
}
.publisher-card__value a {
  color: #1e81b0;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.publisher-card__value a:hover {
  text-decoration: underline;
}

.publisher-card__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.publisher-card__name {
  margin: 0 0 var(--space-8);
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  text-align: center;
  color: #1e81b0;
}
.publisher-card__text {
  margin: 0 0 var(--space-16);
  font-size: 0.8125rem;
  font-weight: var(--fw-regular);
  line-height: 1.55;
  text-align: center;
  color: #4a5568;
}
.publisher-card__text-accent {
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publisher-card__offer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #d4ecf8 0%, #c5e4f4 100%);
  border: 1px solid #a8d4ea;
  border-radius: 12px;
}
.publisher-card__offer-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #1e81b0;
}
.publisher-card__offer-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.publisher-card__offer p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1a3e5c;
}

.publisher-card__cta.btn {
  margin-top: auto;
  min-height: 50px;
  padding-inline: var(--space-24);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-pill);
  background: #1e81b0;
  border-color: #1e81b0;
  transform: none;
}
.publisher-card__cta.btn:hover {
  transform: none;
  background: #186a92;
  border-color: #186a92;
}

.publisher-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #e8f2f8;
}
.trusted-publishers .link-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: #1e81b0;
  text-decoration: none;
}
.trusted-publishers .link-icon:hover { text-decoration: none; }
.trusted-publishers .link-icon--visit .link-icon__label {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.trusted-publishers .link-icon--visit:hover .link-icon__label {
  text-decoration-style: solid;
}
.trusted-publishers .link-icon img {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}
