/* The Majlis Advisory: Insights preview
   Type is never pure black (#0B0B0C). Black is reserved for surfaces.
   Body on ivory/beige: warm charcoal #3A3734.
   Display on ivory: charcoal #1C1C1E; accents in deep gold #7E632A.
   Secondary on light: muted ink #5C5752 (Stone #8A8580 is 3.27:1 on ivory, below 4.5:1).
   On dark surfaces: Ivory or Beige type; Stone is acceptable for muted labels. */

@import url('/assets/fonts/fonts.css');

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/insights/fonts/CormorantGaramond.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/insights/fonts/CormorantGaramond-Italic.woff") format("woff");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #0B0B0C;
  --charcoal: #1C1C1E;
  --ink: #3A3734;
  --muted: #5C5752;
  --stone: #8A8580;
  --sand: #D9CBB4;
  --beige: #E8DFD0;
  --ivory: #F6F2EA;
  --gold: #B8995A;
  --gold-light: #C9AD72;
  --gold-deep: #7E632A;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--black);
  color: var(--ivory);
  padding: 0.5rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

/* Header: black surface, ivory type */
.header {
  background: var(--black);
  color: var(--ivory);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.15rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-block;
  font: 500 23px/1.3 var(--serif);
  letter-spacing: .14em;
  max-width: 210px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
}
.logo b {
  display: block;
  font: 500 9px/1.4 var(--sans);
  letter-spacing: .38em;
  margin-top: 9px;
  color: var(--ivory);
}
.menu-button {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}
.desktop-nav a {
  text-decoration: none;
  color: var(--ivory);
}
.desktop-nav a:hover { color: var(--sand); }
.desktop-nav a[aria-current="page"] {
  color: var(--gold-light);
}
.desktop-nav a.button {
  border: 1px solid var(--gold);
  color: var(--ivory);
  padding: 0.55rem 0.9rem;
  letter-spacing: 0.14em;
}
.desktop-nav a.button:hover {
  background: rgba(184, 153, 90, 0.12);
  color: var(--ivory);
}

/* Index hero */
.hero {
  background: var(--black);
  color: var(--ivory);
  padding: 4.5rem 1.75rem 4.25rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow, .kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1.25rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 0 0 1.4rem;
}
.hero .lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--beige);
  max-width: 34em;
  margin: 0 auto;
}

/* Article list */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.75rem;
}
.index-list {
  padding: 3.25rem 0 5rem;
  display: grid;
  gap: 1.25rem;
}
.article-card {
  display: block;
  background: var(--ivory);
  padding: 2.1rem 2.2rem 2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(126, 99, 42, 0.14);
}
.article-card:hover { border-color: var(--gold); }
.article-card .meta {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.article-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.article-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Article page */
.article-shell { padding: 3.25rem 0 5rem; }
.article {
  max-width: 720px;
  margin: 0 auto;
  background: var(--ivory);
  padding: 3.4rem 4rem 3.6rem;
  border: 1px solid rgba(126, 99, 42, 0.12);
}
.article .kicker { color: var(--gold-deep); margin-bottom: 1.1rem; }
.article h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.dek {
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.byline {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sand);
}
.keypoints {
  background: var(--beige);
  padding: 1.4rem 1.5rem 1.25rem;
  margin: 0 0 2.4rem;
}
.keypoints h2 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5C5752;
  margin: 0 0 0.85rem;
}
.keypoints ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
}
.keypoints li {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}
.keypoints li:last-child { margin-bottom: 0; }

.article .body p {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.75;
}
.article .body p:last-of-type { margin-bottom: 0; }

.close {
  margin: 2.4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand);
}
.close p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.close a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.sources {
  margin: 2.2rem 0 0;
}
.sources h2 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.sources ol {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
}
.sources ol, .sources a { overflow-wrap: anywhere; }
.sources a { color: var(--muted); }

.pager {
  max-width: 720px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pager a {
  color: var(--muted);
  text-decoration: none;
}
.pager a:hover { color: var(--gold-deep); }

/* Footer: black surface, ivory type */
.footer {
  background: var(--black);
  color: var(--ivory);
  padding: 2.6rem 1.75rem 2rem;
  font-family: var(--sans);
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #2A2A2C;
}
.footer .logo { display: inline-block; margin-bottom: 0.55rem; }
.tagline {
  margin: 0;
  color: var(--beige);
  font-size: 0.92rem;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}
.footer-email {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.footer-presence {
  padding: 1.15rem 0;
  color: var(--beige);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.location-separator { color: var(--stone); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #2A2A2C;
  color: var(--stone);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--beige); text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }

@media (max-width: 800px) {
  .header-inner { padding: 1rem 1.15rem; }
  .menu-button { display: inline-block; }
  .desktop-nav { display: none; }
  .hero { padding: 3.2rem 1.15rem 3rem; }
  .article { padding: 2.2rem 1.3rem 2.4rem; }
  .article-card { padding: 1.5rem 1.25rem; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .pager { padding: 0 1.15rem; }
}

/* Live-site additions */
.header { position: relative; }
.byline time, .article-card .meta time { white-space: nowrap; }
.sources a { color: inherit; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .desktop-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--black);
    padding: 1.25rem 1.15rem 1.5rem;
    border-top: 1px solid rgba(184, 153, 90, 0.25);
  }
  .desktop-nav.open a.button { text-align: center; }
}
@media (max-width: 650px) {
  .logo { font-size: 20px; }
  .logo b { font-size: 8px; }
}
