/* ──────────────────────────────────────────────────────────────────
   /branding — brand system workshop view styles
   Extends styles.css. Adds showcase-specific patterns.
   ────────────────────────────────────────────────────────────────── */

/* Active nav state */
.nav-links a.active {
  color: var(--hayyan-green);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px; left: 0; right: 0;
  height: 3px; background: var(--heritage-gold);
}

/* ─── Intro band ─── */
.brand-intro {
  background: linear-gradient(180deg, var(--bone) 0%, var(--ivory) 100%);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--hairline);
}
.brand-intro .lede { max-width: 880px; margin-bottom: 28px; }
.brand-jump {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
}
.brand-jump a {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hayyan-green);
  transition: all .15s ease;
}
.brand-jump a:hover {
  background: var(--hayyan-green);
  color: white;
  border-color: var(--hayyan-green);
}

.brand-section { padding: 88px 0; }
.brand-section.alt { background: var(--bone); }

/* ─── Name cards ─── */
.name-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 24px;
}
.name-card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px 26px 28px;
  position: relative;
  transition: all .2s ease;
}
.name-card.recommended {
  border: 2px solid var(--hayyan-green);
  box-shadow: 0 12px 28px rgba(11,110,71,0.10);
}
.name-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--hayyan-green);
  color: white;
  margin-bottom: 16px;
}
.name-pill.backstop { background: var(--heritage-gold-deep); }
.wordmark-frame {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 28px 20px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  min-height: 140px;
}
.wordmark-frame img { max-height: 90px; max-width: 100%; }
.name-card h3 { margin-bottom: 4px; }
.name-card .score-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 12px;
}
.name-card .score-num {
  font-family: var(--display); font-size: 32px; font-weight: 800;
  color: var(--hayyan-green); letter-spacing: -0.025em;
}
.name-card .score-lbl { font-size: 13px; color: var(--ink-40); font-weight: 600; }
.name-card p { font-size: 14px; line-height: 1.55; color: var(--ink-60); margin-bottom: 16px; }

.score-bars { list-style: none; padding: 0; margin: 0; }
.score-bars li {
  display: grid;
  grid-template-columns: 100px 1fr 22px;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-60);
  padding: 4px 0;
}
.score-bars li > span:first-child { font-weight: 600; }
.score-bars .bar {
  height: 6px;
  background: var(--bone);
  border-radius: 3px;
  overflow: hidden;
}
.score-bars .bar i {
  display: block;
  height: 100%;
  background: var(--hayyan-green);
  border-radius: 3px;
}
.score-bars .n { font-weight: 700; color: var(--hayyan-green-deep); text-align: right; }

/* ─── Rank table ─── */
.rank-table-wrap {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table thead {
  background: var(--hayyan-green-deep);
  color: white;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.rank-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}
.rank-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  vertical-align: middle;
}
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table tbody tr:nth-child(even) { background: var(--ivory); }
.rank-table tbody tr.row-recommended {
  background: rgba(11,110,71,0.06) !important;
}
.rank-table tbody tr.row-recommended td { font-weight: 600; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pill-rec  { background: var(--hayyan-green);    color: white; }
.pill-alt  { background: var(--bone);            color: var(--hayyan-green-deep); border: 1px solid var(--hairline); }
.pill-warn { background: #FBF1D5;                color: #8C6F19; border: 1px solid #C9A227; }
.pill-out  { background: #FAEBEB;                color: #9B1C1C; border: 1px solid #E5A2A2; }

/* ─── Excluded grid ─── */
.excluded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.excluded-item {
  background: white;
  border: 1px solid var(--hairline);
  border-left: 4px solid #E5A2A2;
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
}
.excluded-item h4 { color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.excluded-item p { font-size: 13px; color: var(--ink-60); line-height: 1.5; margin: 0; }

/* ─── Logo gallery ─── */
.logo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.logo-frame {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.logo-frame.dark .logo-frame-inner { background: var(--hayyan-green-deep); }
.logo-frame.dark { background: var(--hayyan-green-deep); border-color: var(--hayyan-green-deep); }
.logo-frame-inner {
  padding: 48px 32px;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.logo-frame-inner img { max-height: 120px; max-width: 100%; }
.logo-meta {
  padding: 18px 22px 20px;
  background: white;
}
.logo-meta h4 { color: var(--hayyan-green-deep); margin-bottom: 6px; font-size: 16px; }
.logo-meta p { font-size: 13px; line-height: 1.55; color: var(--ink-60); margin: 0; }

.logo-dark-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.logo-dark-row .logo-frame-inner { min-height: 180px; padding: 36px 24px; }

/* ─── Swatch grid ─── */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.swatch {
  border-radius: 6px;
  padding: 18px 18px 16px;
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.swatch.large { min-height: 170px; padding: 22px 22px 20px; grid-column: span 2; }
.swatch-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  font-style: normal;
}
.swatch.large .swatch-name { font-size: 20px; }
.swatch-hex {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
}
.swatch-token {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.7;
  margin-top: 6px;
}
.swatch-role {
  font-family: var(--sans);
  font-size: 11px;
  margin-top: 10px;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

/* ─── Palette comparison ─── */
.palette-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.palette-option {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
}
.palette-option.recommended { border: 2px solid var(--hayyan-green); }
.palette-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  min-height: 110px;
}
.palette-strip > div { height: 100%; }
.palette-meta { padding: 18px 22px; }
.palette-meta h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; margin-bottom: 6px;
}
.palette-meta p { font-size: 13px; line-height: 1.55; color: var(--ink-60); margin: 0; }
.rec-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--hayyan-green);
  color: white;
}
.rec-pill.alt { background: var(--bone); color: var(--hayyan-green-deep); border: 1px solid var(--hairline); }
.rec-pill.out { background: #FAEBEB; color: #9B1C1C; border: 1px solid #E5A2A2; }

/* ─── Typography showcase ─── */
.type-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.type-spec {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 22px 26px;
}
.type-spec.arabic-spec { background: var(--ivory); border-left: 4px solid var(--heritage-gold); }
.type-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heritage-gold-deep);
  margin-bottom: 14px;
}
.type-sample {
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
}
.type-sample.h-display { font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: -0.025em; line-height: 1.1; color: var(--hayyan-green-deep); }
.type-sample.h-700 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.18; color: var(--hayyan-green-deep); }
.type-sample.b-body { font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.62; color: var(--ink); max-width: 720px; }
.type-sample.eb-sample { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.18em; color: var(--heritage-gold-deep); }
.type-sample.ar { font-family: var(--arabic); }
.type-sample.h-display.ar { font-size: 32px; }
.type-sample.b-body.ar { font-size: 16px; line-height: 1.85; }

.type-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-40);
}

/* ─── Tagline cards ─── */
.tagline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tagline-card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 22px 24px 22px;
  position: relative;
}
.tagline-card.recommended {
  border: 2px solid var(--hayyan-green);
  background: linear-gradient(180deg, white 0%, rgba(11,110,71,0.03) 100%);
}
.tagline-card.arabic-tagline { background: var(--ivory); border-left: 4px solid var(--heritage-gold); }
.tagline-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--hayyan-green);
  color: white;
  margin-bottom: 12px;
}
.tagline-pill.alt { background: var(--bone); color: var(--hayyan-green-deep); border: 1px solid var(--hairline); }
.tagline-pill.held { background: #FBF1D5; color: var(--heritage-gold-deep); }
.tagline-pill.ar { background: var(--heritage-gold); color: var(--hayyan-green-deep); }
.tagline-quote {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.28;
  color: var(--hayyan-green-deep);
  margin-bottom: 12px;
}
.tagline-quote.ar {
  font-family: var(--arabic);
  font-size: 24px;
  letter-spacing: 0;
  text-align: right;
}
.tagline-rationale { font-size: 13px; line-height: 1.55; color: var(--ink-60); }
.tagline-rationale strong { color: var(--ink); }

/* ─── Voice register ─── */
.voice-table {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}
.voice-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--hayyan-green-deep);
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.voice-header > div { padding: 12px 22px; }
.voice-header > div:first-child { border-right: 1px solid rgba(255,255,255,0.18); color: var(--heritage-gold); }
.voice-header > div:last-child { color: rgba(255,255,255,0.6); }
.voice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}
.voice-row:last-child { border-bottom: none; }
.voice-row > div { padding: 16px 22px; font-size: 14px; line-height: 1.55; }
.voice-yes { background: rgba(11,110,71,0.04); color: var(--ink); border-right: 1px solid var(--hairline); }
.voice-no { background: rgba(155,28,28,0.03); color: var(--ink-60); text-decoration: line-through; text-decoration-color: rgba(155,28,28,0.4); }

.voice-references {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 22px 26px;
}
.voice-references h4 { color: var(--hayyan-green-deep); margin-bottom: 10px; }
.voice-references p { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.voice-references ul { padding-left: 18px; font-size: 14px; }
.voice-references li { margin-bottom: 6px; color: var(--ink-60); }
.voice-references strong { color: var(--ink); }

/* ─── Misc ─── */
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bone);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--hayyan-green-deep);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .name-cards, .logo-gallery, .tagline-grid { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch.large { grid-column: span 2; }
  .excluded-grid { grid-template-columns: 1fr 1fr; }
  .palette-option { grid-template-columns: 1fr; }
  .palette-strip { min-height: 60px; }
  .logo-dark-row { grid-template-columns: 1fr; }
  .rank-table-wrap { overflow-x: auto; }
}
@media (max-width: 720px) {
  .excluded-grid { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: 1fr; }
  .swatch.large { grid-column: span 1; }
}
