/* =========================================================
   Catalunyaar — "6 Indian Writers Who Call Catalunya Home"
   Self-contained stylesheet. Scoped under .cyr-indian-writers-catalonia
   so it never touches the shared site CSS (snippet 5647) and never
   breaks if that snippet is toggled off. Paste into a WPCode CSS
   snippet, set to run on this post only (or site-wide, it's scoped
   either way) and Active.
   ========================================================= */

.cyr-indian-writers-catalonia {
  /* ---- design tokens, local to this post ---- */
  --iw-cream:      #fbf3e1;
  --iw-paper:      #fffdf8;
  --iw-card:       #ffffff;
  --iw-ink:        #241b14;
  --iw-ink-soft:   #5a4d3f;
  --iw-line:       #ece0c8;

  --iw-green:      #2d5738;
  --iw-green-dark: #1c3324;
  --iw-green-tint: #e7efe3;

  --iw-gold:       #b9862f;
  --iw-gold-light: #f4c467;
  --iw-gold-tint:  #faf1dd;

  --iw-coral:      #c5502f;
  --iw-coral-tint: #fbe9e1;

  --iw-teal:       #2d7d6a;
  --iw-teal-tint:  #e2f1ec;

  --iw-shadow-sm: 0 1px 2px rgba(36,27,20,0.06), 0 1px 1px rgba(36,27,20,0.04);
  --iw-shadow-md: 0 6px 20px rgba(36,27,20,0.08), 0 2px 6px rgba(36,27,20,0.05);
  --iw-shadow-lg: 0 16px 40px rgba(36,27,20,0.14), 0 4px 12px rgba(36,27,20,0.06);

  --iw-radius: 18px;
  --iw-radius-sm: 10px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--iw-ink);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto;
}

.cyr-indian-writers-catalonia * { box-sizing: border-box; }

.cyr-indian-writers-catalonia h1,
.cyr-indian-writers-catalonia h2,
.cyr-indian-writers-catalonia h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--iw-green-dark);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.cyr-indian-writers-catalonia h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 0.6em;
}

.cyr-indian-writers-catalonia h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 2.1em 0 0.7em;
}

.cyr-indian-writers-catalonia p {
  margin: 0 0 1.05em;
  font-size: 1.03rem;
}

.cyr-indian-writers-catalonia a {
  color: var(--iw-green);
  text-decoration: underline;
  text-decoration-color: rgba(45,87,56,0.35);
  text-underline-offset: 2px;
}
.cyr-indian-writers-catalonia a:hover { text-decoration-color: currentColor; }

.cyr-indian-writers-catalonia strong { color: var(--iw-ink); }

/* ---------------------------------------------------------
   Hero (SVG illustration block)
   --------------------------------------------------------- */
.cyr-hero {
  border-radius: var(--iw-radius);
  overflow: hidden;
  margin: 0 0 1.6em;
  box-shadow: var(--iw-shadow-lg);
  background: linear-gradient(135deg, var(--iw-green-dark), var(--iw-green) 65%, #2f6a4a);
  padding: 2.2em 1em 1.4em;
}
.cyr-hero svg { display: block; width: 100%; height: auto; line-height: 0; }

.cyr-cover-collage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 0 0.5em;
}
.cyr-cover {
  height: 210px;
  width: auto;
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  border: 3px solid var(--iw-paper);
  object-fit: cover;
  transition: transform 0.2s ease, z-index 0s;
  position: relative;
}
.cyr-cover:hover { transform: translateY(-10px) scale(1.04) rotate(0deg) !important; z-index: 10; }

.cyr-cover.cc-1 { transform: rotate(-9deg) translateY(6px); margin-right: -22px; z-index: 1; }
.cyr-cover.cc-2 { transform: rotate(5deg) translateY(-8px); margin-right: -22px; z-index: 2; }
.cyr-cover.cc-3 { transform: rotate(-4deg) translateY(4px); margin-right: -22px; z-index: 3; }
.cyr-cover.cc-4 { transform: rotate(6deg) translateY(-6px); margin-right: -22px; z-index: 3; }
.cyr-cover.cc-5 { transform: rotate(-6deg) translateY(2px); margin-right: -22px; z-index: 2; }
.cyr-cover.cc-6 { transform: rotate(8deg) translateY(-4px); margin-right: 0; z-index: 1; }

.cyr-hero-caption {
  margin: 1.4em 0 0 !important;
  padding: 0;
  color: var(--iw-cream);
  font-size: 0.92rem !important;
  font-style: italic;
  text-align: center;
}
.cyr-hero-caption em { color: var(--iw-gold-light); font-style: normal; font-weight: 600; }

@media (max-width: 640px) {
  .cyr-cover-collage { flex-wrap: wrap; row-gap: 14px; }
  .cyr-cover { height: 130px; }
  .cyr-cover.cc-1, .cyr-cover.cc-2, .cyr-cover.cc-3,
  .cyr-cover.cc-4, .cyr-cover.cc-5, .cyr-cover.cc-6 { margin-right: -14px; }
}

/* ---------------------------------------------------------
   Stat hero strip
   --------------------------------------------------------- */
.cyr-stat-hero {
  background: linear-gradient(135deg, var(--iw-green-dark), var(--iw-green) 65%, #2f6a4a);
  border-radius: var(--iw-radius);
  padding: 1.9em 1.8em 1.7em;
  margin: 0 0 1.8em;
  box-shadow: var(--iw-shadow-md);
  text-align: center;
}
.cyr-stat-eyebrow {
  color: var(--iw-gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.1em;
  opacity: 0.92;
}
.cyr-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
}
.cyr-stat {
  padding: 0.2em 0.3em;
}
.cyr-stat-num {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25em;
}
.cyr-stat-label {
  display: block;
  color: var(--iw-cream);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* ---------------------------------------------------------
   Table of contents pills
   --------------------------------------------------------- */
.cyr-toc {
  padding: 1.1em 1.2em;
  background: var(--iw-paper);
  border: 1px solid var(--iw-line);
  border-radius: var(--iw-radius-sm);
  margin: 0 0 1.6em;
}
.cyr-toc-label {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--iw-ink-soft);
  margin-bottom: 0.75em;
}
.cyr-toc-label svg { flex: 0 0 auto; opacity: 0.7; }
.cyr-toc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.cyr-toc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.42em 0.9em;
  background: var(--iw-cream);
  border: 1px solid var(--iw-line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--iw-green-dark);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cyr-toc-pill:hover {
  background: var(--iw-green-tint);
  box-shadow: var(--iw-shadow-sm);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Quickbox (callout)
   --------------------------------------------------------- */
.cyr-quickbox {
  background: var(--iw-gold-tint);
  border-left: 4px solid var(--iw-gold);
  border-radius: 0 var(--iw-radius-sm) var(--iw-radius-sm) 0;
  padding: 1.1em 1.3em;
  margin: 0 0 2em;
}
.cyr-quickbox p { margin: 0; font-size: 0.98rem; }
.cyr-quickbox svg { vertical-align: -3px; margin-right: 0.15em; }

/* ---------------------------------------------------------
   Author cards — the visual centerpiece
   --------------------------------------------------------- */
.cyr-author-card {
  position: relative;
  background: var(--iw-card);
  border: 1px solid var(--iw-line);
  border-radius: var(--iw-radius);
  padding: 1.7em 1.7em 1.5em;
  margin: 0 0 1.5em;
  box-shadow: var(--iw-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cyr-author-card:hover {
  box-shadow: var(--iw-shadow-md);
  transform: translateY(-2px);
}

/* left accent bar, colour keyed to tint */
.cyr-author-card::before {
  content: "";
  position: absolute;
  top: 1.4em;
  bottom: 1.4em;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--iw-green);
}
.cyr-author-card.tint-teal::before  { background: var(--iw-teal); }
.cyr-author-card.tint-gold::before  { background: var(--iw-gold); }
.cyr-author-card.tint-coral::before { background: var(--iw-coral); }
.cyr-author-card.tint-green::before { background: var(--iw-green); }

.cyr-author-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9em;
  margin: 0 0 1em;
}

.cyr-avatar-teal, .cyr-avatar-gold, .cyr-avatar-coral, .cyr-avatar-green {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
}
.cyr-avatar-teal  { background: linear-gradient(145deg, var(--iw-teal), #1f5c4e); }
.cyr-avatar-gold  { background: linear-gradient(145deg, var(--iw-gold), #96691f); }
.cyr-avatar-coral { background: linear-gradient(145deg, var(--iw-coral), #99381f); }
.cyr-avatar-green { background: linear-gradient(145deg, var(--iw-green), var(--iw-green-dark)); }

.cyr-author-head h2 {
  margin: 0.15em 0 0.1em;
  font-size: 1.35rem;
}

.cyr-genre-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22em 0.6em;
  border-radius: 999px;
  margin-bottom: 0.35em;
}
.cyr-genre-tag.b-teal  { background: var(--iw-teal-tint);  color: var(--iw-teal); }
.cyr-genre-tag.b-gold  { background: var(--iw-gold-tint);  color: var(--iw-gold); }
.cyr-genre-tag.b-coral { background: var(--iw-coral-tint); color: var(--iw-coral); }
.cyr-genre-tag.b-green { background: var(--iw-green-tint); color: var(--iw-green); }

.cyr-author-tag {
  margin: 0;
  font-size: 0.85rem;
  color: var(--iw-ink-soft);
  font-style: italic;
}

.cyr-author-card p {
  font-size: 0.99rem;
}
.cyr-author-card p:last-of-type { margin-bottom: 1.1em; }

.cyr-pullquote {
  position: relative;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--iw-green-dark);
  background: var(--iw-cream);
  border-radius: var(--iw-radius-sm);
  padding: 0.9em 1.1em 0.9em 2.6em;
  margin: 1.1em 0 !important;
  font-size: 0.97rem !important;
}
.cyr-pullquote svg {
  position: absolute;
  left: 0.9em;
  top: 1em;
  opacity: 0.55;
}

.cyr-book-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 0.3em;
}

.cyr-book-row a.cyr-btn,
.cta-box a.cyr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.55em 1.05em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--iw-green);
  color: #fff !important;
  box-shadow: var(--iw-shadow-sm);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.cyr-book-row a.cyr-btn:hover,
.cta-box a.cyr-btn:hover {
  background: var(--iw-green-dark);
  transform: translateY(-1px);
}

.cyr-btn-outline {
  background: transparent !important;
  color: var(--iw-green) !important;
  border: 1.5px solid var(--iw-green);
  box-shadow: none;
}
.cyr-btn-outline:hover {
  background: var(--iw-green-tint) !important;
  color: var(--iw-green-dark) !important;
}

/* ---------------------------------------------------------
   Numbered steps list
   --------------------------------------------------------- */
.cyr-steps {
  list-style: none;
  margin: 0 0 1.8em;
  padding: 0;
  display: grid;
  gap: 0.8em;
}
.cyr-steps li {
  display: flex;
  align-items: center;
  gap: 1em;
  background: var(--iw-paper);
  border: 1px solid var(--iw-line);
  border-radius: var(--iw-radius-sm);
  padding: 1em 1.2em;
  font-size: 0.99rem;
}
.cyr-step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--iw-green);
}
.cyr-steps li:nth-child(4n+1) .cyr-step-num { background: var(--iw-green); }
.cyr-steps li:nth-child(4n+2) .cyr-step-num { background: var(--iw-teal); }
.cyr-steps li:nth-child(4n+3) .cyr-step-num { background: var(--iw-gold); }
.cyr-steps li:nth-child(4n+4) .cyr-step-num { background: var(--iw-coral); }

/* ---------------------------------------------------------
   Checklist ("why we built this list this way")
   --------------------------------------------------------- */
.cyr-checklist {
  margin: 0 0 1.8em;
  padding: 1.4em 1.5em;
  background: var(--iw-green-tint);
  border-radius: var(--iw-radius);
}
.cyr-checklist h3 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.08rem;
  margin: 0 0 0.9em;
}
.cyr-checklist h3 svg { fill: var(--iw-green); flex: 0 0 auto; }
.cyr-checklist p {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.97rem;
  margin: 0 0 0.7em;
}
.cyr-checklist p:last-child { margin-bottom: 0; }
.cyr-tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--iw-green);
  fill: #fff;
  margin-top: 0.05em;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.cyr-faq-item {
  border-bottom: 1px solid var(--iw-line);
  padding: 1.1em 0;
}
.cyr-faq-item:last-child { border-bottom: none; }
.cyr-faq-item > strong {
  display: block;
  font-size: 1.05rem;
  margin: 0 0 0.4em;
  color: var(--iw-ink);
}
.cyr-faq-item p { margin: 0; font-size: 0.96rem; color: var(--iw-ink-soft); }

/* ---------------------------------------------------------
   CTA box
   --------------------------------------------------------- */
.cta-box {
  background: linear-gradient(135deg, var(--iw-green-dark), var(--iw-green));
  border-radius: var(--iw-radius);
  padding: 1.8em;
  margin: 2em 0;
  text-align: center;
  box-shadow: var(--iw-shadow-md);
}
.cta-box p { color: var(--iw-cream); margin: 0 0 1.1em; font-size: 1rem; }
.cta-box p strong { color: #fff; }
.cta-box p.cta-title {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.cyr-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  justify-content: center;
}
.cta-box a.cyr-btn { background: var(--iw-gold-light); color: var(--iw-green-dark) !important; }
.cta-box a.cyr-btn:hover { background: #fff; }
.cta-box a.cyr-btn-outline {
  background: transparent !important;
  border: 1.5px solid var(--iw-cream);
  color: var(--iw-cream) !important;
}
.cta-box a.cyr-btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------
   Social footer
   --------------------------------------------------------- */
.cyr-social-footer {
  text-align: center;
  margin: 2em 0 1.2em;
  padding: 1.6em 1em;
  border-top: 1px solid var(--iw-line);
}
.cyr-social-label {
  font-size: 0.85rem;
  color: var(--iw-ink-soft);
  margin: 0 0 0.9em;
}
.cyr-social-icons {
  display: flex;
  justify-content: center;
  gap: 0.7em;
}
.cyr-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--iw-shadow-sm);
}
.cyr-social-icon:hover { transform: translateY(-2px) scale(1.05); box-shadow: var(--iw-shadow-md); }
.cyr-social-icon.s-wa { background: #25d366; }
.cyr-social-icon.s-ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.cyr-social-icon.s-fb { background: #1877f2; }
.cyr-social-icon.s-yt { background: #ff0000; }

/* ---------------------------------------------------------
   Sign-off
   --------------------------------------------------------- */
.cyr-signoff {
  text-align: center;
  font-style: italic;
  color: var(--iw-ink-soft);
  font-size: 0.92rem;
  margin: 0 0 1em;
}

/* ---------------------------------------------------------
   Scroll-reveal support (JS toggles .iw-visible)
   --------------------------------------------------------- */
.iw-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.iw-reveal.iw-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .iw-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 560px) {
  .cyr-indian-writers-catalonia { padding: 0 0.2em; }
  .cyr-stat-grid { gap: 0.3em; }
  .cyr-author-card { padding: 1.4em 1.2em 1.2em; }
  .cyr-author-head { gap: 0.7em; }
  .cyr-steps li { padding: 0.9em 1em 0.9em 3.2em; }
}