/* ============================================================
   Answer Copies page (/answer-copies/) — page-scoped styles.
   Extends tokens from main.css (.yatharth-page-wrapper scope).
   Mobile-first: base styles are 375px-ready, min-width enhances.

   This is the proof page. The homepage and all four course
   templates deep-link into #ravi-raaz … #maya-chahar, so every
   .ac-topper carries scroll-margin-top to clear the fixed header.
   ============================================================ */

/* Shared accessibility helper (not defined in main.css). */
.ac-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.ac-hero {
  padding: var(--s-5) 20px var(--s-5);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 140, 43, 0.10), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(231, 29, 57, 0.07), transparent 60%),
    #ffffff;
}

.ac-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(231, 29, 57, 0.07);
  color: #C8102E;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 30px;
  margin: 0 0 var(--s-2);
}

.ac-eyebrow svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.ac-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 var(--s-2);
  max-width: 20ch;
}

.ac-hero h1 em {
  font-style: normal;
  color: #e71d39;
}

.ac-hero-sub {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 var(--s-2);
  max-width: 64ch;
}

.ac-hero-sub[lang="hi"] {
  color: #6b635d;
  font-size: 0.98rem;
}

/* --- Hero stat strip --- */
.ac-hero-stats {
  list-style: none;
  margin: var(--s-3) 0 var(--s-3);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-1);
}

.ac-hero-stats li {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: var(--e-1);
}

.ac-hero-stats li:last-child {
  grid-column: 1 / -1;
}

.ac-hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #e71d39;
}

.ac-hero-stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .ac-hero { padding: var(--s-6) 20px; }
  .ac-hero-stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
  .ac-hero-stats li:last-child { grid-column: auto; }
  .ac-hero-stats strong { font-size: 2rem; }
}

/* --- Hero CTAs --- */
.ac-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-2);
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ac-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.ac-btn-call {
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, #FF515A 0%, #FF8C2B 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 81, 90, 0.24);
}

.ac-btn-wa {
  background: #128C4A;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 140, 74, 0.20);
}

.ac-btn-apply {
  background: #ffffff;
  color: #14100E;
  border: 1px solid #d9d3ce;
}

.ac-btn:hover,
.ac-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--e-2);
}

.ac-btn-apply:hover,
.ac-btn-apply:focus-visible {
  border-color: #e71d39;
  color: #e71d39;
}

@media (max-width: 420px) {
  .ac-cta-row { display: grid; grid-template-columns: 1fr; }
  .ac-btn { width: 100%; }
}

.ac-batch-note {
  margin: var(--s-2) 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   JUMP BAR — the anchor index other templates depend on
   ------------------------------------------------------------ */
.ac-jump {
  background: #fbf9f8;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-3) 20px;
}

.ac-jump-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ac-jump-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a807a;
  margin: 0 0 12px;
}

.ac-jump-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ac-jump-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  padding: 9px 8px 9px 15px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #14100E;
  text-decoration: none;
  min-height: 40px;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ac-jump-list a:hover,
.ac-jump-list a:focus-visible {
  border-color: #e71d39;
  color: #e71d39;
  box-shadow: var(--e-1);
}

.ac-jump-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 20px;
  background: rgba(231, 29, 57, 0.09);
  color: #C8102E;
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   GENERIC SECTION SHELL
   ------------------------------------------------------------ */
.ac-section {
  scroll-margin-top: 90px;
  padding: var(--s-6) 20px;
  background-color: #ffffff;
}

.ac-section-tint {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbf9f8 100%);
}

.ac-page .section-intro-text {
  text-align: left;
}

/* ------------------------------------------------------------
   WHY STUDY — 4 cards
   ------------------------------------------------------------ */
.ac-why-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}

.ac-why-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: var(--s-3);
  box-shadow: var(--e-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ac-why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e-2);
}

.ac-why-card svg {
  width: 26px;
  height: 26px;
  fill: #e71d39;
  margin-bottom: 12px;
}

.ac-why-card h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111111;
  margin: 0 0 8px;
}

.ac-why-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .ac-why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
}

@media (min-width: 1000px) {
  .ac-why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------
   EVALUATION PARAMETERS — numbered
   ------------------------------------------------------------ */
.ac-param-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  counter-reset: none;
}

.ac-param-card {
  position: relative;
  background: #fbf9f8;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: var(--s-3);
}

.ac-param-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, #FF515A 0%, #FF8C2B 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.ac-param-card h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111111;
  margin: 0 0 8px;
}

.ac-param-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .ac-param-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
}

@media (min-width: 1000px) {
  .ac-param-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------
   DIRECTORY — one server-rendered section per topper
   ------------------------------------------------------------ */
.ac-directory {
  background:
    linear-gradient(180deg, #fbf9f8 0%, #ffffff 100%);
}

.ac-topper {
  /* Fixed header clearance — deep links from the homepage and the
     four course templates land here. Do not remove. */
  scroll-margin-top: 90px;
  max-width: 1200px;
  margin: 0 auto var(--s-3);
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: var(--s-3) var(--s-2) var(--s-2);
  box-shadow: var(--e-1);
}

.ac-topper:target {
  border-color: #FF8C2B;
  box-shadow: 0 0 0 3px rgba(255, 140, 43, 0.16), var(--e-2);
}

@media (min-width: 700px) {
  .ac-topper { padding: var(--s-4); margin-bottom: var(--s-4); }
}

/* --- Topper header --- */
.ac-topper-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas:
    "photo id"
    "count count";
  gap: 14px;
  align-items: start;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-2);
}

.ac-topper-photo {
  grid-area: photo;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 140, 43, 0.35);
  background: #f3efec;
}

.ac-topper-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdece1 0%, #fbdfe3 100%);
  box-shadow: 0 0 0 2px rgba(231, 29, 57, 0.18);
}

.ac-topper-photo-fallback svg {
  width: 30px;
  height: 30px;
  fill: #C8102E;
}

.ac-topper-id {
  grid-area: id;
  min-width: 0;
}

.ac-topper-id h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111111;
  margin: 0 0 7px;
  overflow-wrap: break-word;
}

.ac-rank-chip {
  display: inline-block;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, #FF515A 0%, #FF8C2B 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 5px 12px;
  border-radius: 30px;
  margin: 0 0 8px;
}

.ac-topper-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.ac-copy-count {
  grid-area: count;
  margin: 0;
  align-self: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #8a807a;
  background: #fbf9f8;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}

.ac-copy-count strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #e71d39;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

@media (min-width: 700px) {
  .ac-topper-head {
    grid-template-columns: 88px 1fr auto;
    grid-template-areas: "photo id count";
    gap: var(--s-2);
    align-items: center;
  }
  .ac-topper-photo { width: 88px; height: 88px; }
  .ac-topper-photo-fallback svg { width: 40px; height: 40px; }
  .ac-topper-id h3 { font-size: 1.4rem; }
  .ac-copy-count { white-space: nowrap; }
}

/* --- PDF chip grid --- */
.ac-pdf-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 620px) {
  .ac-pdf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1020px) {
  .ac-pdf-grid { grid-template-columns: repeat(3, 1fr); }
}

.ac-pdf-link {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  min-height: 56px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ac-pdf-link:hover,
.ac-pdf-link:focus-visible {
  border-color: #e71d39;
  box-shadow: var(--e-1);
  transform: translateY(-2px);
}

.ac-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(231, 29, 57, 0.07);
  flex-shrink: 0;
}

.ac-pdf-icon svg {
  width: 18px;
  height: 18px;
  fill: #C8102E;
}

.ac-pdf-text {
  min-width: 0;
}

.ac-pdf-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #14100E;
  overflow-wrap: break-word;
}

.ac-pdf-link:hover .ac-pdf-title,
.ac-pdf-link:focus-visible .ac-pdf-title {
  color: #e71d39;
}

.ac-pdf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.ac-pdf-tag,
.ac-pdf-date,
.ac-pdf-checked {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1.3;
}

.ac-pdf-tag {
  background: #f3efec;
  color: #6b635d;
}

.ac-pdf-date {
  background: rgba(255, 140, 43, 0.12);
  color: #9a5310;
  font-variant-numeric: tabular-nums;
}

.ac-pdf-checked {
  background: rgba(21, 128, 61, 0.09);
  color: #15803D;
}

.ac-pdf-open {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8a807a;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 7px;
  flex-shrink: 0;
}

.ac-pdf-link:hover .ac-pdf-open,
.ac-pdf-link:focus-visible .ac-pdf-open {
  color: #e71d39;
  border-color: rgba(231, 29, 57, 0.35);
}

.ac-topper-foot {
  margin: var(--s-2) 0 0;
}

.ac-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a807a;
  text-decoration: none;
}

.ac-back-link:hover,
.ac-back-link:focus-visible {
  color: #e71d39;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   CONVERSION BAND — single-column variant of the shared box
   ------------------------------------------------------------ */
.ac-enquiry {
  scroll-margin-top: 90px;
}

.ac-enquiry .enquiry-gradient-box {
  grid-template-columns: 1fr;
}

/* ------------------------------------------------------------
   RELATED PROGRAMS
   ------------------------------------------------------------ */
.ac-prog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}

@media (min-width: 640px) {
  .ac-prog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
}

@media (min-width: 1000px) {
  .ac-prog-grid { grid-template-columns: repeat(4, 1fr); }
}

.ac-prog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: var(--s-3);
  text-decoration: none;
  box-shadow: var(--e-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ac-prog-card:hover,
.ac-prog-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(231, 29, 57, 0.3);
  box-shadow: var(--e-2);
}

.ac-prog-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #111111;
  margin: 0 0 8px;
}

.ac-prog-card p {
  margin: 0 0 var(--s-2);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex-grow: 1;
}

.ac-prog-go {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: #e71d39;
}

.ac-prog-go::after {
  content: ' \2192';
  transition: transform 0.2s ease;
}

/* ------------------------------------------------------------
   MOTION PREFERENCES
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ac-btn,
  .ac-why-card,
  .ac-pdf-link,
  .ac-prog-card {
    transition: none;
  }
  .ac-btn:hover,
  .ac-why-card:hover,
  .ac-pdf-link:hover,
  .ac-prog-card:hover {
    transform: none;
  }
}

/* ============================================================
   IDENTITY-OPTIONAL LAYER
   The page leads with the script, not the person. When the
   identity toggle is off there is no photo column, and the
   writer line is plain text rather than a rank badge.
   ============================================================ */

.ac-topper-head-nophoto {
  grid-template-columns: 1fr;
  grid-template-areas:
    "id"
    "count";
}

.ac-topper-head-nophoto .ac-topper-photo-fallback { display: none; }

.ac-writer-line {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5b5350;
  margin: 0 0 6px;
}

/* --- Provenance note --- */
.ac-provenance {
  border: 1px solid var(--hairline);
  border-left: 4px solid #FF8C2B;
  border-radius: 12px;
  background: #fffaf5;
  padding: var(--s-2);
  margin: var(--s-2) 0 var(--s-3);
}

.ac-provenance h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #111111;
  margin: 0 0 8px;
}

.ac-provenance p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4a4340;
  margin: 0;
}

/* --- Compliance disclaimer --- */
.ac-disclaimer p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #6b6360;
  max-width: 78ch;
  margin: 0 auto;
}
