/* ==========================================================================
   Newsletter platform additions
   Built on top of the original styles.css design system. Nothing above this
   file is modified, so the existing front page keeps its exact look.
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-link:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   HERO CTA ROW: primary download + catalog button
   -------------------------------------------------------------------------- */
.hero-cta-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
}

.hero-cta-row .btn {
  flex: 0 1 auto;
}

.hero-catalog-btn {
  background: transparent;
  color: var(--color-dark);
  min-width: 240px;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
}

.hero-catalog-btn:hover {
  opacity: 1;
  background: var(--bg-surface);
  border-color: var(--color-dark);
  transform: translateY(-1px);
}

.hero-catalog-btn svg {
  flex-shrink: 0;
}

.hero-cover-placeholder {
  width: 100%;
  aspect-ratio: 1131 / 1600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  color: var(--color-gray-muted);
}

.hero-cover-placeholder .latin-text {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--color-dark);
}

.hero-cover-placeholder small {
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   DOWNLOAD GATE: intro choices, returning user, status messages
   -------------------------------------------------------------------------- */
.gate-choice-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.gate-choice-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fbfbfb;
  color: var(--color-dark);
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
}

.gate-choice-card:hover {
  background: #ffffff;
  border-color: var(--color-dark);
  transform: translateX(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.gate-choice-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: var(--color-orange-subtle);
  color: var(--color-orange);
}

.gate-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.gate-choice-copy strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.5;
}

.gate-choice-copy small {
  font-size: 0.8rem;
  color: var(--color-gray-muted);
  line-height: 1.5;
  font-weight: 500;
}

.gate-choice-arrow {
  color: var(--color-gray-muted);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.gate-session-note {
  background: var(--color-orange-subtle);
  border-right: 3px solid var(--color-orange);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.83rem;
  color: var(--color-gray-dark);
  line-height: 1.7;
  border-radius: 6px;
}

.gate-field-label {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  display: block;
  color: var(--color-dark);
}

.gate-field-hint {
  margin: -0.85rem 0 1rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--color-gray-muted);
}

.phone-country-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 190px;
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0.85rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fbfbfb;
  color: var(--color-dark);
  font-family: inherit;
  font-size: 0.85rem;
  direction: ltr;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phone-country-trigger:hover {
  background: #ffffff;
}

.phone-country-trigger:focus-visible {
  outline: none;
  border-color: var(--color-dark);
  box-shadow: 0 0 0 3px rgba(238, 114, 38, 0.12);
}

.phone-country-trigger .country-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-flag {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.phone-country-trigger .country-dial {
  flex-shrink: 0;
  color: var(--color-gray-muted);
  font-size: 0.78rem;
}

.country-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.45;
}

.country-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  direction: rtl;
}

.country-panel-search {
  padding: 0.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.country-panel-search input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fbfbfb;
  color: var(--color-dark);
  font-family: inherit;
  font-size: 0.85rem;
}

.country-panel-search input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-dark);
}

.country-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.3rem;
  overscroll-behavior: contain;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-dark);
  font-family: inherit;
  text-align: right;
  cursor: pointer;
}

.country-option[data-active='true'] {
  background: #f4f4f5;
}

.country-option[aria-selected='true'] .country-name-ar {
  font-weight: 700;
}

.country-option .country-name {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.country-option .country-name-ar {
  font-size: 0.88rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-option .country-name-en {
  color: var(--color-gray-muted);
  font-size: 0.7rem;
  line-height: 1.35;
  direction: ltr;
  text-align: right;
}

.country-option .country-dial {
  flex-shrink: 0;
  color: var(--color-gray-muted);
  font-size: 0.76rem;
}

.country-panel-empty {
  padding: 1.1rem 0.8rem;
  color: var(--color-gray-muted);
  font-size: 0.85rem;
  text-align: center;
}

.gate-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-gray-muted);
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.gate-privacy svg {
  color: var(--color-orange);
  flex-shrink: 0;
  margin-top: 0.18rem;
}

.gate-error {
  background: #fff5f5;
  border: 1px solid #f0c2c2;
  color: #8a1f1f;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.gate-info {
  background: var(--bg-surface);
  border: 1px solid var(--color-gray-hairline);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-gray-dark);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  border-radius: 8px;
}

.gate-info strong {
  color: var(--color-dark);
  font-size: 0.9rem;
}

.gate-link-btn {
  background: none;
  border: none;
  color: var(--color-orange);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.gate-link-btn:hover {
  opacity: 0.72;
}

.gate-switch-link {
  display: block;
  margin: 1rem auto 0;
  text-align: center;
  font-weight: 600;
  color: var(--color-gray-muted);
}

.gate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gate-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50% !important;
  display: inline-block;
  flex-shrink: 0;
  animation: gateSpin 0.8s linear infinite;
}

@keyframes gateSpin {
  to {
    transform: rotate(360deg);
  }
}

.download-card-issue-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gray-dark);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.gate-browse-link {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--color-gray-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
}

.gate-browse-link:hover {
  opacity: 0.72;
}

.btn:disabled,
.btn-download-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   ISSUE CATALOG
   -------------------------------------------------------------------------- */
.catalog-main {
  background: var(--bg-pure);
  min-height: 60vh;
}

.catalog-hero {
  padding: 4.5rem 0 3.25rem;
  text-align: center;
  border-bottom: 1px solid var(--color-gray-hairline);
  background: var(--bg-pure);
}

.catalog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-dark);
  margin: 0.55rem 0 0.8rem;
  line-height: 1.2;
}

.catalog-sub {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-gray-dark);
}

.catalog-section {
  padding: 3.5rem 0 5rem;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem 1.5rem;
}

.issue-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-gray-hairline);
  overflow: hidden;
  text-align: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease, border-color 0.25s ease;
}

.issue-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.22);
}

.issue-card-cover {
  position: relative;
  aspect-ratio: 1131 / 1600;
  background: var(--bg-surface);
  overflow: hidden;
  border-bottom: 1px solid var(--color-gray-hairline);
}

.issue-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.issue-card:hover .issue-card-cover img {
  transform: scale(1.035);
}

.issue-card-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-gray-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

.issue-card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.issue-card-body {
  padding: 1.15rem 1.05rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.issue-card-number {
  font-family: var(--font-latin);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: 0.09em;
}

.issue-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.55;
  margin: 0.3rem 0 0.7rem;
}

.issue-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.73rem;
  color: var(--color-gray-muted);
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-gray-hairline);
}

.issue-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-dark);
}

.issue-card:hover .issue-card-link {
  color: var(--color-orange);
}

.catalog-empty {
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--color-gray-light);
  background: var(--bg-subtle);
  color: var(--color-gray-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-empty strong {
  font-size: 1.05rem;
  color: var(--color-dark);
}

.catalog-empty span {
  font-size: 0.9rem;
  color: var(--color-gray-muted);
}

/* --------------------------------------------------------------------------
   ISSUE PAGE BREADCRUMB
   -------------------------------------------------------------------------- */
.issue-breadcrumb-bar {
  border-bottom: 1px solid var(--color-gray-hairline);
  background: var(--bg-pure);
  padding: 0.9rem 0;
  font-size: 0.8rem;
  color: var(--color-gray-muted);
}

.issue-breadcrumb-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.issue-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--color-gray-light);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--color-dark);
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.15s ease, box-shadow 0.2s ease;
}

.issue-breadcrumb-link:hover {
  opacity: 1;
  color: var(--color-orange);
  background: #ffffff;
  border-color: var(--color-orange);
  box-shadow: 0 4px 12px rgba(238, 114, 38, 0.1);
  transform: translateY(-1px);
}

.issue-breadcrumb-title {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-gray-muted);
}

.issue-breadcrumb-date {
  white-space: nowrap;
  font-family: var(--font-latin);
  font-size: 0.72rem;
  color: var(--color-gray-muted);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.not-found-main {
  padding: 6rem 0 7rem;
  text-align: center;
  min-height: 55vh;
}

.not-found-code {
  font-family: var(--font-latin);
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.not-found-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.not-found-text {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  color: var(--color-gray-dark);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADDITIONS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-cta-row {
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-cta-row .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-catalog-btn {
    min-width: 0;
  }

  .catalog-hero {
    padding: 3.25rem 0 2.5rem;
  }

  .catalog-title {
    font-size: 1.8rem;
  }

  .catalog-sub {
    font-size: 0.93rem;
  }

  .issues-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem 1.1rem;
  }

  .issue-breadcrumb-title {
    display: none;
  }
}

@media (max-width: 600px) {
  .issues-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .issue-card-body {
    padding: 0.85rem 0.75rem 1rem;
  }

  .issue-card-title {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .issue-card-number {
    font-size: 0.6rem;
  }

  .issue-card-meta {
    font-size: 0.66rem;
  }

  .issue-card-link {
    font-size: 0.72rem;
  }

  .issue-card-badge {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.58rem;
    padding: 0.22rem 0.45rem;
  }

  .catalog-section {
    padding: 2.5rem 0 3.5rem;
  }

  .gate-choice-card {
    padding: 0.9rem 0.85rem;
    gap: 0.65rem;
  }

  .gate-choice-icon {
    width: 30px;
    height: 30px;
  }

  .gate-choice-copy strong {
    font-size: 0.88rem;
  }

  .gate-choice-copy small {
    font-size: 0.74rem;
  }

  .gate-choice-arrow {
    display: none;
  }

  .issue-breadcrumb-date {
    display: none;
  }

  .not-found-main {
    padding: 4rem 0 5rem;
  }

  .not-found-code {
    font-size: 3rem;
  }

  .not-found-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 400px) {
  .header-cta-btn {
    font-size: 0.66rem;
    padding: 0.5rem 0.6rem;
  }

  .brand-name-ar {
    font-size: 0.72rem;
  }
}

/* --------------------------------------------------------------------------
   IMAGE SKELETONS + PAGE LOADING STATES
   -------------------------------------------------------------------------- */
.skeleton,
.cover-image-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ececef;
}

.skeleton::after,
.cover-image-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.62) 50%,
    transparent 100%
  );
  animation: skeletonShimmer 1.35s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.cover-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg-surface);
}

.cover-image > img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cover-image.is-loaded > img {
  opacity: 1;
}

.cover-image.is-loaded .cover-image-skeleton,
.cover-image.is-error .cover-image-skeleton {
  opacity: 0;
  visibility: hidden;
}

.cover-image-skeleton {
  position: absolute;
  inset: 0;
}

.hero-photo-centered-wrap .cover-image {
  aspect-ratio: 1131 / 1600;
}

.hero-photo-centered-wrap .cover-image > img {
  height: 100%;
  object-fit: cover;
}

.hero-photo-centered-wrap .cover-image > .hero-cover-placeholder {
  height: 100%;
}

.issue-card-cover .cover-image {
  height: 100%;
}

.issue-card-cover .cover-image > img {
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.issue-card-cover .cover-image > .issue-card-cover-fallback {
  height: 100%;
}

.download-card-visual .cover-image {
  width: 76px;
  aspect-ratio: 1131 / 1600;
}

.download-card-visual .cover-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-card-cover-placeholder {
  display: block;
  width: 76px;
  aspect-ratio: 1131 / 1600;
  background: var(--bg-surface);
}

.page-skeleton {
  min-height: 60vh;
}

.skeleton-eyebrow {
  width: 170px;
  height: 12px;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
}

.skeleton-display {
  width: min(560px, 82%);
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 8px;
}

.skeleton-subhead {
  width: min(250px, 55%);
  height: 18px;
  margin: 0 auto 1.4rem;
  border-radius: 999px;
}

.skeleton-copy {
  width: min(680px, 90%);
  height: 14px;
  margin: 0 auto 0.7rem;
  border-radius: 999px;
}

.skeleton-copy-short {
  width: min(480px, 70%);
}

.skeleton-hero-cover {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1131 / 1600;
  margin: 2rem auto 2.5rem;
  border-radius: 2px;
}

.skeleton-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.skeleton-button {
  width: 220px;
  height: 52px;
  border-radius: 12px;
}

.skeleton-section {
  padding: 3.5rem 0 5rem;
}

.skeleton-heading {
  width: 260px;
  height: 30px;
  margin: 0 auto 2rem;
  border-radius: 6px;
}

.skeleton-heading-center {
  margin-top: 0.75rem;
}

.skeleton-copy-center {
  margin-top: 0.75rem;
}

.skeleton-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.skeleton-tile {
  height: 180px;
  border-radius: 10px;
}

.skeleton-issue-card {
  overflow: hidden;
  border: 1px solid var(--color-gray-hairline);
  border-radius: 0;
  background: #ffffff;
}

.skeleton-card-cover {
  width: 100%;
  aspect-ratio: 1131 / 1600;
  border-radius: 0;
}

.skeleton-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 0.7rem;
  border-radius: 999px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-line-xs {
  width: 34%;
  height: 10px;
}

.skeleton-line-sm {
  width: 58%;
}

.skeleton-line-lg {
  width: 82%;
  height: 16px;
}

.skeleton-breadcrumb {
  width: 125px;
  height: 32px;
  border-radius: 999px;
}

/* Consistent click feedback for synchronous controls. */
button,
.btn,
.issue-card,
.gate-choice-card,
.issue-breadcrumb-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:not(:disabled):active,
.btn:not(:disabled):active,
.issue-card:active,
.gate-choice-card:not(:disabled):active,
.issue-breadcrumb-link:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.96);
}

button[aria-busy="true"],
.btn[aria-busy="true"],
.btn-download-action[aria-busy="true"] {
  cursor: progress;
  opacity: 0.78;
}

button:focus-visible,
.btn:focus-visible,
.issue-card:focus-visible,
.gate-choice-card:focus-visible,
.issue-breadcrumb-link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .issue-breadcrumb-bar .container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .issue-breadcrumb-title {
    order: 3;
    flex-basis: 100%;
    text-align: right;
  }

  .skeleton-grid-3 {
    grid-template-columns: 1fr;
  }

  .skeleton-tile {
    height: 140px;
  }

  .skeleton-button {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after,
  .cover-image-skeleton::after {
    animation: none;
  }

  .cover-image > img {
    transition: none;
  }
}
