/* ==========================================================================
   prophet-card.css — Daily Prophet Card Layout & Styling
   ========================================================================== */

/* --- Card Container --- */
.prophet-card {
  position: relative;
  max-width: var(--card-max-width);
  margin: 1.5rem auto;
  padding: var(--card-padding);
  background-color: var(--color-parchment);
  background-image: url('/images/parchment-bg.svg');
  background-repeat: repeat;
  background-size: 300px 300px;
  border: 3px double var(--color-parchment-dark);
  border-radius: 2px;
  box-shadow:
    0 0 15px var(--color-shadow),
    0 0 40px rgba(44, 24, 16, 0.15),
    inset 0 0 30px rgba(44, 24, 16, 0.05);
  overflow-x: clip;
  overflow-y: visible;
}

/* --- Vignette Overlay --- */
.prophet-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(44, 24, 16, 0.15) 80%,
    rgba(44, 24, 16, 0.35) 100%
  );
  z-index: 5;
}

/* ==========================================================================
   Header / Masthead Area
   ========================================================================== */

.prophet-header {
  text-align: center;
  padding-bottom: var(--section-gap);
  position: relative;
  z-index: 1;
}

.prophet-title {
  font-family: var(--font-gothic);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-ink-faded);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.prophet-date {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--color-ink-faded);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Decorative horizontal rule */
.prophet-rule {
  border: none;
  border-top: 2px solid var(--color-ink);
  border-bottom: 1px solid var(--color-ink);
  height: 5px;
  margin: 0.4rem 0;
  position: relative;
}

.prophet-rule--thin {
  border-top: 1px solid var(--color-divider);
  border-bottom: none;
  height: auto;
  margin: 0.6rem 0;
}

.prophet-rule--ornament {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  height: 7px;
  position: relative;
}

.prophet-rule--ornament::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-parchment);
  padding: 0 0.5rem;
  font-size: 0.6rem;
  color: var(--color-gold);
}

/* ==========================================================================
   Masthead — Cardholder Name
   ========================================================================== */

.prophet-masthead {
  text-align: center;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.prophet-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: 0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ==========================================================================
   Subtitle — Title & Company
   ========================================================================== */

.prophet-subtitle {
  text-align: center;
  padding-bottom: var(--section-gap);
  position: relative;
  z-index: 1;
}

.prophet-subtitle-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-ink-light);
  margin-bottom: 0.1rem;
}

.prophet-subtitle-company {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--color-ink-faded);
}

/* ==========================================================================
   Section Headers — Decorative Labels
   ========================================================================== */

.prophet-section-header {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-ink-faded);
  text-align: center;
  margin: var(--section-gap) 0 0.5rem;
  position: relative;
  z-index: 1;
}

.prophet-section-header::before,
.prophet-section-header::after {
  content: '—';
  margin: 0 0.4em;
  color: var(--color-divider);
}

/* ==========================================================================
   Dynamic Panel Grid Layout — Newspaper 3-Column
   ========================================================================== */

/* --- Top Banner Article --- */
.prophet-banner {
  padding: 0.6rem 0;
  position: relative;
  z-index: 1;
}

.prophet-banner-inner {
  position: relative;
  padding: 0.4rem 0;
}

/* ==========================================================================
   Illuminated Drop Caps
   ========================================================================== */

.prophet-dropcap {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.78;
  color: var(--color-ink);
  text-transform: uppercase;
  margin: 0.02em 0.07em 0 0;
  -webkit-user-select: none;
  user-select: none;
}

/* First word is a single letter — give the initial breathing room */
.prophet-dropcap--standalone {
  margin-right: 0.16em;
}

/* Framed / boxed initial — echoes the boxed initials in the samples */
.prophet-dropcap--framed {
  padding: 0.04em 0.11em 0.01em;
  margin-right: 0.18em;
  border: 2px double var(--color-divider);
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.16), rgba(244, 232, 193, 0.5));
  box-shadow: inset 0 0 6px rgba(44, 24, 16, 0.16);
}

/* Article-context drop cap */
.prophet-article-text .prophet-dropcap {
  font-size: 2.9rem;
}

/* Word spans — inline-block for GSAP opacity; normal word wrapping in columns */
.prophet-word {
  display: inline-block;
  overflow-wrap: break-word;
}

/* Small-caps run-in lede — the opening words of every story */
.prophet-lede {
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink);
}

/* --- Banner article — the lead story --- */
.prophet-banner .prophet-article-text {
  font-family: var(--font-body);
  font-size: 0.99rem;
  line-height: 1.62;
  color: var(--color-ink-light);
  margin: 0;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.prophet-banner .prophet-dropcap {
  font-size: 4.2rem;
  line-height: 0.72;
}

/* --- Newspaper 3-Column Grid --- */
.prophet-newspaper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.prophet-column {
  position: relative;
}

.prophet-column--left,
.prophet-column--right {
  padding: 0.4rem 0;
}

.prophet-column--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.6rem 0;
}

/* Column divider lines (newspaper style) */
.prophet-column--left {
  border-bottom: 1px solid var(--color-divider);
}

.prophet-column--center {
  border-bottom: 1px solid var(--color-divider);
}

/* --- Article panels --- */
.prophet-article {
  padding: 0.5rem 0;
  position: relative;
}

.prophet-article-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-ink-light);
  margin: 0;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow: visible;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

/* Contain floated drop caps so the next paragraph cannot overlap */
.prophet-article-text::after {
  content: '';
  display: block;
  clear: both;
}

.prophet-article,
.prophet-hero-below,
.prophet-bottom-articles,
.prophet-newspaper__bottom {
  min-width: 0;
  max-width: 100%;
}

/* Portrait side columns need a real minimum width (avoid letter-by-letter stacking) */
.prophet-newspaper--portrait .prophet-column--left,
.prophet-newspaper--portrait .prophet-column--right {
  min-width: 7.5rem;
}

/* Drop caps are now real <span> elements (see _paragraph.ejs and the
   "Illuminated Drop Caps" rules above) so GSAP can animate them. The article
   spotlight during text rotation is animated by GSAP — background, lift,
   and shadow — so no static .prophet-article--active rule is needed. */

/* --- Bottom Article Row --- */
.prophet-bottom-articles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0.4rem 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

.prophet-article--bottom {
  border-bottom: 1px dotted var(--color-divider);
  padding: 0.5rem 0;
  min-width: 0;
  overflow: visible;
}

.prophet-article--bottom:last-child {
  border-bottom: none;
}

/* --- Photo Block (center column) --- */
.prophet-photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0;
}

/* --- Footer inner layout --- */
.prophet-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.prophet-photo-frame {
  position: relative;
  display: inline-block;
  border: 3px double var(--color-parchment-dark);
  padding: 4px;
  background: var(--color-parchment);
  box-shadow:
    1px 2px 6px var(--color-shadow),
    inset 0 0 8px rgba(44, 24, 16, 0.1);
  transform: rotate(-1.5deg);
  max-width: 180px;
  overflow: hidden;
}

.prophet-photo-frame img,
.prophet-photo-frame video.prophet-hero-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: sepia(0.72) contrast(1.18) brightness(0.9) saturate(0.55) grayscale(0.12);
  will-change: transform;
}

.prophet-photo-frame video.prophet-hero-video {
  background: var(--color-parchment);
}

/* Extra parchment tone layer on video (matches newspaper ink palette) */
.prophet-video-tone {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(44, 24, 16, 0.35) 100%),
    linear-gradient(180deg, rgba(244, 232, 193, 0.12) 0%, rgba(180, 150, 100, 0.22) 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* Square portrait hero (Dr. Wong style) */
.prophet-photo-frame--portrait {
  max-width: 200px;
  aspect-ratio: 1 / 1;
}

.prophet-photo-frame--portrait video.prophet-hero-video,
.prophet-photo-frame--portrait img.prophet-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  min-height: 160px;
}

/* Wide cinematic hero (Reid Howle style) */
.prophet-photo-frame--wide {
  max-width: 100%;
  width: 100%;
  transform: rotate(-0.6deg);
}

.prophet-photo-frame--wide video.prophet-hero-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 140px;
  object-fit: cover;
}

.prophet-center-below {
  width: 100%;
  max-width: 220px;
  margin-top: 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px dotted var(--color-divider);
}

.prophet-hero-below {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-divider);
}

.prophet-article--hero-below {
  padding: 0.35rem 0;
  overflow: visible;
}

/* ==========================================================================
   Wide hero layout (16:9) — compact vertical rhythm (Reid Howle)
   ========================================================================== */

.prophet-rule--compact {
  margin: 0.2rem 0;
}

.prophet-card--wide .prophet-subtitle {
  padding-bottom: 0.45rem;
}

.prophet-card--wide .prophet-exclusive {
  margin: 0.3rem 0 -0.05rem;
}

.prophet-card--wide .prophet-banner {
  padding: 0.25rem 0 0.15rem;
}

.prophet-card--wide .prophet-banner-inner {
  padding: 0.15rem 0;
}

.prophet-card--wide .prophet-banner .prophet-dropcap {
  font-size: 3.4rem;
}

.prophet-card--wide .prophet-newspaper--wide {
  padding: 0.15rem 0 0.25rem;
}

.prophet-card--wide .prophet-column--left {
  padding: 0.2rem 0;
}

.prophet-card--wide .prophet-column--hero-wide {
  padding: 0;
}

.prophet-card--wide .prophet-photo-block {
  padding: 0;
}

.prophet-card--wide .prophet-photo-caption {
  margin-top: 0.2rem;
  margin-bottom: 0.1rem;
}

.prophet-card--wide .prophet-hero-below {
  margin-top: 0.3rem;
  padding-top: 0.35rem;
  gap: 0.35rem;
}

.prophet-card--wide .prophet-article-text {
  font-size: 0.76rem;
  line-height: 1.48;
}

.prophet-card--wide .prophet-article-text .prophet-dropcap {
  font-size: 2.35rem;
  line-height: 0.75;
}

.prophet-card--wide .prophet-article-text[data-framed] .prophet-dropcap--framed,
.prophet-card--wide .prophet-article--bottom .prophet-dropcap {
  font-size: 2rem;
}

.prophet-card--wide .prophet-column--left .prophet-article,
.prophet-card--wide .prophet-article--hero-below,
.prophet-card--wide .prophet-article--bottom {
  padding: 0.5rem 0.65rem;
  margin: 0.1rem 0;
}

.prophet-card--wide .prophet-section-header {
  margin: 0.35rem 0 0.35rem;
}

.prophet-card--wide .prophet-newspaper__bottom {
  padding: 0.4rem 0 0.15rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--color-divider);
}

.prophet-card--wide .prophet-bottom-articles--wide .prophet-article--bottom {
  border-bottom: none;
  padding: 0.5rem 0.6rem;
}

/* ==========================================================================
   Square-centre layout (Alvin Wong style) — compact columns + centre connections
   ========================================================================== */

.prophet-card--portrait .prophet-subtitle {
  padding-bottom: 0.45rem;
}

.prophet-card--portrait .prophet-exclusive {
  margin: 0.3rem 0 -0.05rem;
}

.prophet-card--portrait .prophet-banner {
  padding: 0.25rem 0 0.15rem;
}

.prophet-card--portrait .prophet-banner-inner {
  padding: 0.15rem 0;
}

.prophet-card--portrait .prophet-newspaper--portrait {
  padding: 0.15rem 0 0.05rem;
}

.prophet-card--portrait .prophet-column--right .prophet-ornament {
  margin-top: 0.15rem;
}

.prophet-card--portrait .prophet-rule--ornament {
  margin: 0.35rem 0 0.2rem;
}

.prophet-card--portrait .prophet-index-strip {
  margin-top: 0.15rem;
  padding: 0.4rem 0.5rem;
}

.prophet-card--portrait .prophet-footer {
  padding-top: 0.35rem;
}

.prophet-card--portrait .prophet-column--left,
.prophet-card--portrait .prophet-column--right {
  padding: 0.2rem 0;
}

.prophet-card--portrait .prophet-column--center {
  padding: 0.25rem 0.5rem;
}

.prophet-card--portrait .prophet-article-text {
  font-size: 0.76rem;
  line-height: 1.48;
}

.prophet-card--portrait .prophet-article-text .prophet-dropcap {
  font-size: 2.35rem;
}

.prophet-card--portrait .prophet-column--left .prophet-article,
.prophet-card--portrait .prophet-column--right .prophet-article,
.prophet-card--portrait .prophet-center-below .prophet-article {
  padding: 0.45rem 0.55rem;
  margin: 0.08rem 0;
}

.prophet-card--portrait .prophet-center-below {
  margin-top: 0.35rem;
  padding-top: 0.3rem;
}

.prophet-card--portrait .prophet-column--center .prophet-article--connections-slot {
  width: 100%;
  margin-top: 0.25rem;
}

/* Bottom-right grid cell — LinkedIn & X (wide layout) */
.prophet-article--connections-slot {
  padding: 0.65rem 0.6rem;
  border: 1px double var(--color-parchment-dark);
  background: rgba(244, 232, 193, 0.42);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 5.5rem;
}

.prophet-social--slot {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.35rem 0 0;
}

.prophet-social--slot .prophet-social-link {
  justify-content: center;
  min-height: 2.25rem;
  font-size: 0.72rem;
}

.prophet-connections-hint {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-style: italic;
  color: var(--color-ink-faded);
  text-align: center;
  margin: 0.25rem 0 0;
}

/* Decorative newspaper filler blocks */
.prophet-ornament {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border: 1px double var(--color-parchment-dark);
  background: rgba(244, 232, 193, 0.45);
  text-align: center;
}

.prophet-ornament-rule {
  border-top: 1px solid var(--color-divider);
  margin-bottom: 0.35rem;
}

.prophet-ornament-title {
  font-family: var(--font-gothic);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-faded);
  margin-bottom: 0.25rem;
}

.prophet-ornament-body {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-ink-light);
}

.prophet-ornament-flourish {
  margin-top: 0.35rem;
  font-size: 0.55rem;
  color: var(--color-ink-faded);
  letter-spacing: 0.35em;
}

/* Warm-color overlay for aged newspaper photograph look */
.prophet-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(180, 150, 100, 0.15);
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}

/* Film grain texture overlay */
.prophet-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/grain-overlay.png');
  background-repeat: repeat;
  background-size: 64px 64px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  z-index: 3;
  pointer-events: none;
}

/* Photo vignette — darkens edges for depth */
.prophet-photo-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 4;
  pointer-events: none;
}

/* Shimmer sweep element — positioned off-screen initially */
.prophet-photo-shimmer {
  position: absolute;
  top: -10%;
  left: -60%;
  width: 50%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.07) 60%,
    transparent 100%
  );
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}

.prophet-photo-caption {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--color-ink-faded);
  text-align: center;
  margin-top: 0.4rem;
}

/* No-photo fallback — shows placeholder portrait SVG */
.prophet-photo-frame--empty {
  width: 140px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-parchment-dark) 0%,
    var(--color-parchment) 50%,
    var(--color-parchment-dark) 100%
  );
  overflow: hidden;
}

/* Disable grain/warm overlays on empty frame */
.prophet-photo-frame--empty::before,
.prophet-photo-frame--empty::after {
  display: none;
}

.prophet-photo-frame--empty img {
  width: 60%;
  height: auto;
  opacity: 0.35;
  filter: sepia(40%) brightness(0.9);
}

/* --- Info Column (legacy, now inside panels) --- */
.prophet-info-column {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Contact Details
   ========================================================================== */

.prophet-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prophet-contact-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-ink-light);
  padding: 0.3rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prophet-contact-item a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.prophet-contact-icon {
  flex-shrink: 0;
  width: 1.2em;
  text-align: center;
  font-style: normal;
  color: var(--color-ink-faded);
}

.prophet-contact-item a {
  color: var(--color-ink-light);
  text-decoration-color: var(--color-divider);
}

.prophet-contact-item a:hover {
  color: var(--color-red);
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.prophet-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0.4rem 0 0;
  margin: 0;
}

.prophet-social-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--color-ink-light);
  background: rgba(44, 24, 16, 0.06);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.prophet-social-link:hover,
.prophet-social-link:active {
  color: var(--color-red);
  background: rgba(139, 0, 0, 0.06);
  border-color: var(--color-red);
}

/* ==========================================================================
   Headlines / Blurbs Area
   ========================================================================== */

.prophet-headlines {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0;
}

.prophet-blurb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prophet-blurb {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink-light);
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--color-divider);
  position: relative;
}

.prophet-blurb:last-child {
  border-bottom: none;
}

.prophet-blurb::before {
  content: '❧';
  margin-right: 0.4em;
  color: var(--color-gold);
  font-size: 0.8em;
}

/* ==========================================================================
   Footer — QR Code & Tagline
   ========================================================================== */

.prophet-footer {
  text-align: center;
  padding-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.prophet-qr {
  display: inline-block;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--color-parchment-dark);
  box-shadow: 0 1px 4px rgba(44, 24, 16, 0.15);
  margin-bottom: 0.4rem;
}

.prophet-qr img {
  display: block;
  width: 100px;
  height: 100px;
}

.prophet-footer-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--color-ink-faded);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Utility & Edge Cases
   ========================================================================== */

/* Long names: prevent overflow */
.prophet-name,
.prophet-subtitle-title,
.prophet-subtitle-company {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Hide sections that are empty (driven by EJS, but just in case) */
.prophet-headlines:empty,
.prophet-social:empty {
  display: none;
}

/* ==========================================================================
   Mobile share bar — Web Share, vCard, tel (public actions only)
   ========================================================================== */

.prophet-share-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(244, 232, 193, 0.97);
  border-top: 1px double var(--color-parchment-dark);
  box-shadow: 0 -4px 16px rgba(44, 24, 16, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.prophet-share-bar__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
  background: rgba(255, 252, 245, 0.85);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.prophet-share-bar__btn--primary {
  background: var(--color-ink);
  color: var(--color-parchment);
  border-color: var(--color-ink);
}

.prophet-share-bar__btn:active,
.prophet-share-bar__btn--primary:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.prophet-share-bar__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.prophet-share-bar__hint {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
  text-align: center;
  background: var(--color-ink);
  color: var(--color-parchment);
  border-radius: 6px;
}

body:has(.prophet-share-bar) main {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .prophet-share-bar {
    position: static;
    margin: 0.75rem auto 0;
    max-width: var(--card-max-width, 960px);
    border-radius: var(--admin-radius, 8px);
    border: 1px double var(--color-parchment-dark);
    box-shadow: var(--admin-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
  }

  .prophet-share-bar__btn {
    flex-direction: row;
    font-size: 0.72rem;
    gap: 0.35rem;
    min-height: 44px;
  }

  body:has(.prophet-share-bar) main {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Animation Initial States
   Elements are hidden before GSAP reveals them during the entrance animation.
   The .no-js class on <body> ensures content is visible without JS.
   ========================================================================== */

body:not(.no-js) .prophet-header,
body:not(.no-js) .prophet-masthead,
body:not(.no-js) .prophet-subtitle,
body:not(.no-js) .prophet-rule--ornament,
body:not(.no-js) .prophet-exclusive,
body:not(.no-js) .prophet-banner,
body:not(.no-js) .prophet-newspaper,
body:not(.no-js) .prophet-bottom-articles,
body:not(.no-js) .prophet-index-strip,
body:not(.no-js) .prophet-footer {
  opacity: 0;
}

body:not(.no-js) .prophet-rule {
  transform: scaleX(0);
}

/* Blurb display area for animated blurb rotation */
.prophet-blurb-display {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink-light);
  padding: 0.35rem 0;
  position: relative;
  overflow: hidden;
}

.prophet-blurb-display::before {
  content: '❧';
  margin-right: 0.4em;
  color: var(--color-gold);
  font-size: 0.8em;
}

/* .no-js fallback: show the static blurb list and hide the animated display */
.no-js .prophet-blurb-list {
  display: block !important;
}

.no-js .prophet-blurb-display {
  display: none;
}

/* ==========================================================================
   Reduced Motion — disable all custom transitions
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  body:not(.no-js) .prophet-header,
  body:not(.no-js) .prophet-masthead,
  body:not(.no-js) .prophet-subtitle,
  body:not(.no-js) .prophet-rule--ornament,
  body:not(.no-js) .prophet-exclusive,
  body:not(.no-js) .prophet-banner,
  body:not(.no-js) .prophet-newspaper,
  body:not(.no-js) .prophet-bottom-articles,
  body:not(.no-js) .prophet-index-strip,
  body:not(.no-js) .prophet-footer,
  body:not(.no-js) .prophet-rule {
    opacity: 1;
    transform: none;
  }

  /* Static photo with aged filters only — no shimmer/breathing */
  .prophet-photo-shimmer {
    display: none;
  }

  .prophet-photo-frame img {
    animation: none !important;
  }

  /* Disable the ambient "living newspaper" motion layer entirely */
  .prophet-alive,
  .prophet-alive *,
  .prophet-alive *::before,
  .prophet-alive *::after {
    animation: none !important;
  }
}

/* ==========================================================================
   Masthead Ornamentation
   ========================================================================== */

.prophet-masthead-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.prophet-titlewrap {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.prophet-flourish {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-gold);
}

.prophet-incantation {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-style: italic;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--color-ink-faded);
  white-space: nowrap;
}

.prophet-incantation--left { text-align: right; }
.prophet-incantation--right { text-align: left; }

.prophet-crestline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.2rem 0 0.15rem;
}

.prophet-crest-rule {
  height: 1px;
  width: clamp(36px, 18%, 90px);
  background: linear-gradient(90deg, transparent, var(--color-divider), transparent);
}

.prophet-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 0.8rem;
  box-shadow: inset 0 0 5px rgba(184, 134, 11, 0.3);
}

.prophet-date-orn {
  color: var(--color-gold);
  margin: 0 0.3rem;
}

/* ==========================================================================
   Exclusive Tag + Manicule
   ========================================================================== */

.prophet-exclusive {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0.45rem 0 -0.15rem;
  padding: 0.2rem 0.62rem 0.2rem 0.46rem;
  background: var(--color-ink-deep);
  color: var(--color-parchment);
  border: 1px solid var(--color-ink);
  box-shadow: 1.5px 1.5px 0 var(--color-shadow);
  position: relative;
  z-index: 2;
}

.prophet-manicule {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  transform-origin: 65% 50%;
}

.prophet-exclusive-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* ==========================================================================
   Article panels — rounded so the rotation spotlight reads cleanly
   ========================================================================== */

.prophet-article {
  border-radius: 3px;
}

/* ==========================================================================
   Page-Index Strip
   ========================================================================== */

.prophet-index-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.5rem;
  margin-top: 0.3rem;
  overflow: hidden;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.prophet-index-item {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-ink-faded);
}

.prophet-index-item b {
  margin-left: 0.12rem;
  color: var(--color-red);
  font-size: 0.8rem;
}

/* Moving highlight sweep across the strip */
.prophet-index-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  pointer-events: none;
  transform: translateX(-130%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ==========================================================================
   Hero Photo — independent motion layer for the "living photograph"
   ========================================================================== */

.prophet-photo-motion {
  position: relative;
  display: block;
  width: 100%;
  will-change: transform;
}

/* ==========================================================================
   Ambient "Living Newspaper" Motion Layer
   CSS keyframes, enabled once GSAP adds .prophet-alive after the entrance.
   Durations are deliberately mismatched so the card never pulses in sync.
   ========================================================================== */

@keyframes prophet-parchment-flicker {
  0%, 100% { opacity: 1; }
  45%      { opacity: 0.992; }
  72%      { opacity: 0.984; }
}

@keyframes prophet-name-shimmer {
  0%, 100% { text-shadow: 0 0 0 rgba(184, 134, 11, 0); }
  50%      { text-shadow: 0 0 11px rgba(184, 134, 11, 0.3); }
}

@keyframes prophet-rule-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes prophet-ornament-twinkle {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(224, 185, 74, 0);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    text-shadow: 0 0 9px rgba(224, 185, 74, 0.9);
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@keyframes prophet-manicule-wiggle {
  0%, 68%, 100% { transform: translateX(0) rotate(0deg); }
  80%           { transform: translateX(3px) rotate(-8deg); }
  90%           { transform: translateX(1px) rotate(-3deg); }
}

@keyframes prophet-dropcap-sheen {
  0%, 100% { color: var(--color-ink); }
  50%      { color: var(--color-ink-deep); }
}

@keyframes prophet-flourish-sway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(7deg); }
}

@keyframes prophet-crest-spin {
  0%, 100% {
    transform: rotate(0deg);
    box-shadow: inset 0 0 5px rgba(184, 134, 11, 0.3);
  }
  50% {
    transform: rotate(9deg);
    box-shadow: inset 0 0 10px rgba(224, 185, 74, 0.6);
  }
}

@keyframes prophet-date-flicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.72; }
}

@keyframes prophet-index-sweep {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(360%); }
}

.prophet-alive.prophet-card {
  animation: prophet-parchment-flicker 7s ease-in-out infinite;
}
.prophet-alive .prophet-name {
  animation: prophet-name-shimmer 5.5s ease-in-out infinite;
}
.prophet-alive .prophet-rule {
  animation: prophet-rule-glow 4.3s ease-in-out infinite;
}
.prophet-alive .prophet-rule--ornament {
  animation: prophet-rule-glow 5.7s ease-in-out infinite;
}
.prophet-alive .prophet-rule--ornament::after {
  animation: prophet-ornament-twinkle 3.7s ease-in-out infinite;
}
.prophet-alive .prophet-manicule {
  animation: prophet-manicule-wiggle 4.9s ease-in-out infinite;
}
.prophet-alive .prophet-flourish--left {
  animation: prophet-flourish-sway 8s ease-in-out infinite;
}
.prophet-alive .prophet-flourish--right {
  animation: prophet-flourish-sway 8.6s ease-in-out infinite reverse;
}
.prophet-alive .prophet-crest {
  animation: prophet-crest-spin 11s ease-in-out infinite;
}
.prophet-alive .prophet-date {
  animation: prophet-date-flicker 6.1s ease-in-out infinite;
}
.prophet-alive .prophet-index-strip::after {
  animation: prophet-index-sweep 9s ease-in-out infinite;
}

/* Drop-cap ink sheen — staggered by region so they never pulse together */
.prophet-alive .prophet-dropcap {
  animation: prophet-dropcap-sheen 6.5s ease-in-out infinite;
}
.prophet-alive .prophet-column--right .prophet-dropcap { animation-delay: -3.2s; }
.prophet-alive .prophet-banner .prophet-dropcap { animation-delay: -1.8s; }
.prophet-alive .prophet-bottom-articles .prophet-article:nth-child(odd) .prophet-dropcap {
  animation-delay: -4.1s;
}
.prophet-alive .prophet-bottom-articles .prophet-article:nth-child(even) .prophet-dropcap {
  animation-delay: -2.3s;
}

/* ==========================================================================
   Directory / Landing Page Grid
   ========================================================================== */

.prophet-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.prophet-directory-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--color-divider);
  border-radius: 2px;
  background: rgba(244, 232, 193, 0.5);
  text-decoration: none;
  color: var(--color-ink);
  min-height: 44px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.prophet-directory-card:hover,
.prophet-directory-card:active {
  background: rgba(244, 232, 193, 0.85);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.prophet-directory-photo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 2px double var(--color-parchment-dark);
  overflow: hidden;
  background: var(--color-parchment);
}

.prophet-directory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(30%) contrast(1.1) brightness(0.95);
}

.prophet-directory-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-ink-faded);
  opacity: 0.4;
}

.prophet-directory-info {
  min-width: 0;
}

.prophet-directory-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.prophet-directory-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-ink-faded);
  margin-top: 0.15rem;
}

@media (min-width: 500px) {
  .prophet-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
