/* ============================================
   Public word pages (/vocabulaire-arabe, /alphabet-arabe): on top of the
   country guides' layout (country.css), the lists of words with their
   sound, the expressions, the themes and the letters
   ============================================ */
.wp-hero { padding-bottom: 72px; }
.wp-hero .cp-hero-glyph { font-size: clamp(6rem, 16vw, 13rem); bottom: -6%; }
.wp-first { padding-top: 8px; }
.wp-intro { margin: -6px 0 18px; color: var(--text-muted); line-height: 1.6; }

/* A word: its sound, the Arabic, how it is said, its meaning */
.wp-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wp-list-head h2 { margin: 0; font-family: var(--font-heading); font-size: 1.75rem; color: var(--navy); }
.wp-hint { margin: 0 0 16px; font-size: 0.88rem; color: var(--text-muted); }
.wp-hint i { color: var(--gold-dark); margin-right: 6px; }
.wp-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wp-word {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 4px 16px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.wp-word.is-playing, .wp-word:has(.wp-play.is-playing) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.18); }
.wp-ar { font-family: var(--font-arabic); font-size: 1.65rem; line-height: 1.7; color: var(--navy); text-align: right; }
.wp-ar--small { font-size: 1.25rem; line-height: 1.5; }
.wp-tr { font-size: 0.9rem; font-style: italic; color: var(--gold-dark); }
.wp-meaning { font-size: 0.95rem; color: var(--text); }
.wp-past { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 6px; border-top: 1px dashed var(--gray-200); }
.wp-past-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

.wp-play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--gold-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wp-play:hover, .wp-play:focus-visible { background: var(--navy); color: var(--gold-light); }
.wp-play.is-playing { background: var(--gold); color: var(--navy-dark); }
.wp-play:disabled { opacity: 0.35; cursor: default; }
.wp-play--small { width: 30px; height: 30px; font-size: 0.8rem; }
.wp-play--none { background: transparent; cursor: default; }
.wp-play-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.wp-play-all:hover { background: var(--cream); }
.wp-play-all i { color: var(--gold-dark); }

/* An expression: the words by variety of Arabic */
.wp-kind { margin-top: 18px; }
.wp-kind:first-of-type { margin-top: 0; }
.wp-kind h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--navy); }
.wp-kind h3 span { margin-left: 8px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; color: var(--text-muted); }
.wp-inline-cta { margin-top: 18px; }

/* Links to other pages */
.wp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-chips a { padding: 7px 14px; border-radius: var(--radius-full); background: var(--white); border: 1px solid var(--gray-200); color: var(--navy); font-size: 0.9rem; text-decoration: none; }
.wp-chips a:hover { border-color: var(--gold); }
.wp-chips .wp-chip-more { border-color: transparent; background: transparent; font-weight: 600; color: var(--gold-dark); }
.wp-chips .wp-chip-more:hover { color: var(--navy); }

/* The list of all the pages */
.wp-hub { padding-bottom: 64px; }
.wp-expressions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.wp-expression {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.wp-expression:hover { border-color: var(--gold); transform: translateY(-2px); }
.wp-expression-ar { font-family: var(--font-arabic); font-size: 1.7rem; line-height: 1.6; color: var(--navy); text-align: right; }
.wp-expression-name { font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.wp-group-icon { color: var(--gold); margin-right: 4px; font-size: 1.3rem; }
.wp-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wp-theme {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
}
.wp-theme:hover { border-color: var(--gold); }
.wp-theme em { flex-shrink: 0; font-style: normal; font-size: 0.8rem; color: var(--text-muted); }
.wp-alphabet-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-decoration: none;
}
.wp-alphabet-card:hover { color: var(--white); box-shadow: 0 12px 30px rgba(11, 26, 51, 0.2); }
.wp-alphabet-letters { flex-shrink: 0; font-family: var(--font-arabic); font-size: 2rem; color: var(--gold-light); }
.wp-alphabet-card strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; }
.wp-alphabet-card span span { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.wp-alphabet-card > i { margin-left: auto; color: var(--gold-light); }

/* The alphabet */
.wp-letters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wp-letter { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--gray-200); }
.wp-letter-ch {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-arabic);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}
.wp-letter-ch.is-playing, .wp-letter-ch:hover { background: var(--gold); color: var(--navy-dark); }
.wp-letter-body { min-width: 0; flex: 1; }
.wp-letter-body h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.05rem; color: var(--navy); }
.wp-letter-sound { margin: 2px 0 8px; font-size: 0.86rem; color: var(--text-muted); }
.wp-forms { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 6px; }
.wp-forms li { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 10px; background: var(--cream); }
.wp-forms span { font-family: var(--font-arabic); font-size: 1.45rem; line-height: 1.5; color: var(--navy); }
.wp-forms small { font-size: 0.68rem; color: var(--text-muted); text-align: center; }
.wp-letter-word { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.wp-tag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: var(--radius-full); background: #fbefdc; color: #8a4b08; font-size: 0.75rem; }

@media (max-width: 760px) {
  .wp-word { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; }
  .wp-word .wp-ar { grid-column: 2; text-align: left; }
  .wp-word .wp-tr, .wp-word .wp-meaning { grid-column: 2; }
  .wp-word .wp-play { grid-row: 1 / span 3; align-self: center; }
  .wp-past { grid-column: 2; }
  .wp-letters { grid-template-columns: minmax(0, 1fr); }
  .wp-list-head { flex-wrap: wrap; }
  .wp-alphabet-card { flex-wrap: wrap; gap: 12px; }
  .wp-alphabet-card > i { display: none; }
}
