/* ==========================================================================
   responsive.css — Media Queries (Mobile-First)
   ========================================================================== */

/* ==========================================================================
   Base (mobile, <600px) — Single column, stacked layout
   ========================================================================== */

.prophet-card {
  margin: 0.75rem;
  padding: 1.25rem 1rem;
}

.prophet-name {
  font-size: 1.6rem;
}

.prophet-title {
  font-size: 0.95rem;
}

.prophet-photo-frame {
  max-width: 150px;
}

/* Mobile: single-column newspaper */
.prophet-newspaper {
  grid-template-columns: 1fr;
}

.prophet-bottom-articles {
  grid-template-columns: 1fr;
}

/* Portrait mobile: hero first, then side columns (DOM order is left → centre → right) */
@media (max-width: 599px) {
  .prophet-newspaper--portrait .prophet-column--center {
    order: -1;
  }

  .prophet-newspaper--portrait .prophet-column--left {
    order: 0;
  }

  .prophet-newspaper--portrait .prophet-column--right {
    order: 1;
  }
}

/* ==========================================================================
   Tablet (600px+) — Two-column with photo on top
   ========================================================================== */

@media (min-width: 600px) {
  .prophet-card {
    margin: 1.25rem auto;
    padding: var(--card-padding);
  }

  .prophet-name {
    font-size: 2rem;
  }

  .prophet-title {
    font-size: 1.1rem;
  }

  .prophet-newspaper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
  }

  .prophet-column--center,
  .prophet-newspaper--wide .prophet-column--hero-wide {
    grid-column: 1 / -1;
    grid-row: 1;
    border-bottom: 1px solid var(--color-divider);
    border-right: none;
    padding: 0.5rem 0;
  }

  .prophet-card--wide .prophet-newspaper--wide .prophet-column--hero-wide {
    padding: 0.25rem 0;
  }

  .prophet-newspaper--wide {
    grid-template-columns: 1fr;
  }

  .prophet-newspaper--wide .prophet-column--left {
    grid-row: 2;
    border-right: none;
    border-top: 1px solid var(--color-divider);
  }

  .prophet-newspaper--wide .prophet-newspaper__bottom {
    grid-row: 3;
  }

  .prophet-newspaper--wide .prophet-hero-below {
    grid-template-columns: 1fr;
  }

  .prophet-card--wide .prophet-banner .prophet-dropcap {
    font-size: 3rem;
  }

  .prophet-column--left {
    border-right: 1px solid var(--color-divider);
    border-bottom: none;
    padding-right: 0.6rem;
  }

  .prophet-column--right {
    padding-left: 0.6rem;
  }

  /* Portrait: 3 columns on one row — sides flank the centre hero (not below it) */
  .prophet-newspaper--portrait {
    grid-template-columns: minmax(6.5rem, 1fr) minmax(140px, auto) minmax(6.5rem, 1fr);
    grid-template-rows: auto;
    align-items: start;
  }

  .prophet-newspaper--portrait .prophet-column--left {
    grid-column: 1;
    grid-row: 1;
    border-right: 1px solid var(--color-divider);
    border-bottom: none;
    padding-right: 0.6rem;
  }

  .prophet-newspaper--portrait .prophet-column--center {
    grid-column: 2;
    grid-row: 1;
    border-bottom: none;
    border-left: 1px solid var(--color-divider);
    border-right: 1px solid var(--color-divider);
    padding: 0.25rem 0.5rem;
  }

  .prophet-newspaper--portrait .prophet-column--right {
    grid-column: 3;
    grid-row: 1;
    padding-left: 0.6rem;
  }

  .prophet-bottom-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.8rem;
  }

  .prophet-photo-frame {
    max-width: 180px;
  }

  .prophet-dropcap {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   Desktop (900px+) — True 3-column newspaper layout
   ========================================================================== */

@media (min-width: 900px) {
  .prophet-card {
    margin: 2rem auto;
    padding: 2rem 2.5rem;
  }

  .prophet-name {
    font-size: 2.4rem;
  }

  .prophet-newspaper {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto;
    gap: 0;
  }

  /* Wide hero: left column + spanning hero (no narrow centre column) */
  .prophet-newspaper--wide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
    align-items: start;
    row-gap: 0;
  }

  .prophet-newspaper--wide .prophet-column--left {
    grid-column: 1;
    grid-row: 1;
    border-right: 1px solid var(--color-divider);
    align-self: start;
  }

  .prophet-newspaper--wide .prophet-column--hero-wide {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0 0.65rem;
    border-bottom: none;
    align-self: start;
  }

  .prophet-newspaper--wide .prophet-photo-block {
    width: 100%;
    align-items: stretch;
  }

  .prophet-newspaper--wide .prophet-hero-below {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
  }

  .prophet-newspaper--wide .prophet-newspaper__bottom {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .prophet-bottom-articles--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
  }

  .prophet-card--wide .prophet-photo-frame--wide video.prophet-hero-video {
    min-height: 0;
  }

  .prophet-column--center {
    grid-column: 2;
    grid-row: 1;
    border-bottom: none;
    border-left: 1px solid var(--color-divider);
    border-right: 1px solid var(--color-divider);
    padding: 0 0.8rem;
    min-width: 200px;
  }

  .prophet-newspaper--portrait {
    grid-template-columns: minmax(9rem, 1fr) minmax(200px, auto) minmax(9rem, 1fr);
    align-items: start;
  }

  .prophet-newspaper--portrait .prophet-column--center {
    min-width: 200px;
  }

  .prophet-card--portrait .prophet-newspaper--portrait .prophet-column--left,
  .prophet-card--portrait .prophet-newspaper--portrait .prophet-column--right {
    align-self: start;
  }

  .prophet-column--left {
    grid-column: 1;
    border-right: none;
    border-bottom: none;
    padding-right: 0.8rem;
  }

  .prophet-column--right {
    grid-column: 3;
    padding-left: 0.8rem;
  }

  .prophet-photo-frame {
    max-width: 200px;
  }

  .prophet-photo-frame--wide {
    max-width: 100%;
  }

  .prophet-photo-frame--wide video.prophet-hero-video {
    min-height: 220px;
  }

  .prophet-contact-item {
    font-size: 0.95rem;
  }

  .prophet-bottom-articles:not(.prophet-bottom-articles--wide) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 0.8rem;
  }

  .prophet-bottom-articles:not(.prophet-bottom-articles--wide) .prophet-article--bottom {
    border-bottom: none;
    border-right: 1px dotted var(--color-divider);
    padding-right: 0.8rem;
  }

  .prophet-bottom-articles:not(.prophet-bottom-articles--wide) .prophet-article--bottom:last-child {
    border-right: none;
    padding-right: 0;
  }

  .prophet-dropcap {
    font-size: 4rem;
  }
}

/* ==========================================================================
   Very small screens (<360px) — Extra compact
   ========================================================================== */

@media (max-width: 359px) {
  .prophet-card {
    margin: 0.25rem;
    padding: 0.75rem;
  }

  .prophet-name {
    font-size: 1.35rem;
  }

  .prophet-title {
    font-size: 0.85rem;
  }

  .prophet-photo-frame {
    max-width: 120px;
  }

  .prophet-newspaper {
    grid-template-columns: 1fr;
  }

  .prophet-bottom-articles {
    grid-template-columns: 1fr;
  }

  .prophet-qr img {
    width: 80px;
    height: 80px;
  }

  .prophet-dropcap {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   Phase 12 — Drop caps, masthead ornaments & fidelity details
   ========================================================================== */

/* Mobile base — incantations are too cramped to show */
.prophet-incantation {
  display: none;
}

.prophet-article-text .prophet-dropcap {
  font-size: 2.4rem;
}

.prophet-banner .prophet-dropcap {
  font-size: 3.1rem;
}

.prophet-flourish {
  font-size: 1.15rem;
}

.prophet-index-strip {
  gap: 0.3rem 0.7rem;
}

.prophet-index-item {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

@media (min-width: 600px) {
  .prophet-incantation {
    display: block;
  }

  .prophet-article-text .prophet-dropcap {
    font-size: 2.8rem;
  }

  .prophet-banner .prophet-dropcap {
    font-size: 4rem;
  }

  .prophet-flourish {
    font-size: 1.4rem;
  }

  .prophet-index-item {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
}

@media (min-width: 900px) {
  .prophet-article-text .prophet-dropcap {
    font-size: 3rem;
  }

  .prophet-banner .prophet-dropcap {
    font-size: 4.4rem;
  }
}

@media (max-width: 359px) {
  .prophet-article-text .prophet-dropcap {
    font-size: 2rem;
  }

  .prophet-banner .prophet-dropcap {
    font-size: 2.5rem;
  }

  .prophet-exclusive-label {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }
}
