/* =============================================================
   MIRAI — Content pages (insight articles, Contact)
   Dark masthead under the transparent header, then a white
   reading column. Tokens come from css/header.css.
   Logical properties (inline-start/end) so Arabic mirrors itself.
   ============================================================= */

/* ===== BLOCK: Masthead ===== */
.page-masthead {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: var(--void);
  color: var(--white);
  overflow: hidden;
}

.page-masthead-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-masthead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.55) 0%, rgba(8, 8, 16, 0.85) 100%);
}

.page-masthead-inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 56px;
}

.page-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.page-masthead h1 {
  margin: 0 0 16px;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
}

.page-masthead h1 em {
  font-style: italic;
  color: var(--red);
}

.page-standfirst {
  margin: 0;
  max-width: 60ch;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-light);
}

/* ===== BLOCK: Reading column ===== */
.page-body {
  background: var(--white);
  color: var(--text-body);
  padding: 56px 24px 96px;
}

.insight-article,
.insight-more,
.contact-panel {
  max-width: 760px;
  margin: 0 auto;
}

.insight-article h2,
.insight-more h2,
.contact-panel h2 {
  margin: 48px 0 16px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.2;
  color: var(--text-dark);
}

.insight-article p,
.insight-article li {
  font-size: 1rem;
  line-height: 1.75;
}

.insight-article p { margin: 0 0 18px; }

.insight-article ul,
.insight-article ol {
  margin: 0 0 22px;
  padding-inline-start: 1.4em;
}

.insight-article li { margin-bottom: 10px; }

.insight-article strong {
  font-weight: 600;
  color: var(--text-dark);
}

.insight-article a.cite {
  color: var(--red-dark);
  text-decoration: none;
  font-size: 0.85em;
}

.insight-article a.cite:hover { text-decoration: underline; }

/* ===== BLOCK: Call to action (also used on the homepage-style cards) ===== */
.insight-cta {
  margin: 36px 0 12px;
  padding: 28px 28px 30px;
  background: var(--void-2);
  color: var(--gray-light);
  border-inline-start: 3px solid var(--red);
  border-radius: 2px;
}

.insight-cta h3 {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--white);
}

.insight-article .insight-cta p {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.insight-cta-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease;
}

.insight-cta-button:hover,
.contact-button:hover { background: var(--red-dark); }

/* ===== BLOCK: References ===== */
.insight-references {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 0.5px solid var(--gray-light);
}

.insight-references ol { padding-inline-start: 1.6em; }

.insight-references li {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 10px;
  scroll-margin-top: 80px;   /* clears the fixed header when [n] jumps here */
}

.insight-references li:target { background: var(--yellow); }

.insight-references a {
  color: var(--red-dark);
  word-break: break-word;
}

/* ===== BLOCK: More insights ===== */
.insight-more { margin-top: 72px; }

.insight-more ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.insight-more-card {
  display: block;
  height: 100%;
  padding: 22px 22px 24px;
  border: 0.5px solid var(--gray-light);
  border-radius: 2px;
  color: var(--text-body);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.insight-more-card:hover { border-color: var(--red); }

.insight-more-card h3 {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.insight-more-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* "Read the insight" line on homepage cards — arrow nudges like the hero Learn More */
.insight-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.insight-more-link .arrow { display: inline-block; --nudge: 1; }
html[dir="rtl"] .insight-more-link .arrow { --nudge: -1; }   /* keyframes: css/herocarousel.css */

.insight-more-card:hover .insight-more-link .arrow,
.insight-more-card:focus-visible .insight-more-link .arrow {
  animation: hero-cta-nudge 0.9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .insight-more-card:hover .insight-more-link .arrow { animation: none; }
}

/* ===== BLOCK: Homepage Insights section ===== */
.home-insights {
  background: var(--white);
  padding: 8px 24px 96px;
}

.home-insights .insight-more {
  max-width: 1200px;
  margin-top: 0;
}

.home-insights .insight-more h2 { margin-top: 0; }

.home-insights .insight-more ul { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .home-insights .insight-more ul { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-insights { padding: 0 16px 72px; }
}

/* ===== BLOCK: Contact page ===== */
.contact-panel > p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.contact-card {
  padding: 22px 22px 24px;
  border: 0.5px solid var(--gray-light);
  border-radius: 2px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-gray);
}

.contact-card p,
.contact-card address {
  margin: 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--red-dark);
  word-break: break-word;
}

/* ===== BLOCK: Responsive ===== */
@media (max-width: 640px) {
  .page-masthead { min-height: 52vh; }
  .page-masthead-inner { padding: 96px 16px 40px; }
  .page-body { padding: 40px 16px 72px; }
  .insight-more ul,
  .contact-grid { grid-template-columns: 1fr; }
  .insight-cta { padding: 22px 18px 24px; }
}
