/* Homepage — today's 1996 archive issue */

.arkiva-today {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary, #2a2a2a);
  background: #000;
  appearance: none;
  border: 0;
  -webkit-appearance: none;
}

.arkiva-today:hover,
.arkiva-today:focus-visible {
  background: #000;
  outline: none;
}

.arkiva-today__kicker {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 4.25rem;
  height: 4.25rem;
  box-sizing: border-box;
  padding: 0.25rem;
  background: #fff;
}

.arkiva-today__kicker img {
  display: block;
  width: 60%;
  height: auto;
  object-fit: contain;
  filter: invert(1);
}

.arkiva-today__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.arkiva-today__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.arkiva-today__date {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
  font-family: var(--altFont);
}

.arkiva-today__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 4.25rem;
  min-height: 4.25rem;
  padding: 0 0.9rem;
  font-family: var(--altFont);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--caption, #990f3d);
  white-space: nowrap;
}

.arkiva-today:hover .arkiva-today__cta,
.arkiva-today:focus-visible .arkiva-today__cta {
  background: #fff;
  color: #000;
}

.arkiva-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.arkiva-modal.is-open {
  display: flex;
}

.arkiva-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(72rem, 92vw);
  height: min(56.25rem, 88vh);
  height: min(56.25rem, 88dvh);
  max-height: calc(100dvh - 2rem);
  background: #000;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.arkiva-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  background: #000;
}

.arkiva-modal__heading {
  min-width: 0;
}

.arkiva-modal__kicker {
  margin: 0;
  font-family: var(--altFont);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff !important;
}

.arkiva-modal__title {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
  font-family: var(--altFont);
}

.arkiva-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.arkiva-modal__external {
  font-family: var(--altFont);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary, #666);
  white-space: nowrap;
}

.arkiva-modal__external:hover {
  color: var(--caption, #990f3d);
  text-decoration: underline;
}

.arkiva-modal__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-secondary, #f4f4f4);
  color: var(--text-primary, #2a2a2a);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arkiva-modal__close:hover,
.arkiva-modal__close:focus-visible {
  background: var(--border-color, #d0d0d0);
  outline: none;
}

.arkiva-modal__frame {
  flex: 1;
  min-height: 0;
  background: var(--bg-secondary, #f4f4f4);
}

.arkiva-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-card, #fff);
}

body.arkiva-modal-open {
  overflow: hidden;
}

@media screen and (max-width: 47.9375rem) {
  .arkiva-today {
    gap: 0 12px;
    padding: 0;
  }

  .arkiva-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .arkiva-modal__dialog {
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .arkiva-modal__external {
    display: none;
  }
}

@media screen and (min-width: 48rem) {
  .arkiva-modal {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arkiva-today {
    transition: none;
  }
}
