/* Gurukulam Global School — About, Academics and Campus pages (Builder A).
   Shares .page-head, .cta-band, .safety-item, .empty-state from pages.css and every base.css component. */

/* ---------- Page head ---------- */
.page-head .breadcrumb { list-style: none; padding: 0; }
.page-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.page-head__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }

/* ---------- Split copy + photo ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.split--rev > .split__media { order: -1; }
.split__copy .lead { margin-top: 18px; }
.split__copy .prose { margin-top: 20px; }
.photo { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-photo); background: var(--surface); min-width: 0; }
.split__media, .split__copy, .photo-card, .message__side { min-width: 0; }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--arch { border-radius: 200px 200px 28px 28px; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo__cap { font-size: var(--meta); color: var(--muted); margin-top: 12px; }

/* ---------- Values, chips, stats ---------- */
.values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.value { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-btn); background: var(--surface); border: 1.5px solid var(--line-2); font-weight: 600; color: var(--ink); font-size: 1rem; }
.value::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.value:nth-child(2)::before { background: var(--magenta); }
.value:nth-child(3)::before { background: var(--sky); }
.value:nth-child(4)::before { background: var(--teal); }
.value:nth-child(5)::before { background: var(--purple); }
.stat-strip--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-strip--6 .stat:nth-child(3) { border-right: 0; }
.stat-strip--6 .stat { padding-bottom: 8px; }
.pill-status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: var(--r-btn); background: var(--surface); border: 1.5px solid var(--teal); color: var(--ink); font-weight: 600; font-size: 1rem; }
.pill-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 96px 24px minmax(0, 1fr); gap: 0 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline li:last-child { border-bottom: 0; }
.timeline__year { font-family: var(--font-display); font-size: 1.5rem; color: var(--orange-text); line-height: 1.2; }
.timeline__dot { width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--ground-2); }
.timeline h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 600; }
.timeline p { color: var(--text-2); font-size: 1rem; margin-top: 4px; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.person { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.person .avatar { width: 64px; height: 64px; font-size: 1.25rem; margin-bottom: 12px; }
.person h3 { font-family: var(--font-text); font-size: 1.1875rem; font-weight: 600; }
.person__role { font-size: var(--meta); color: var(--muted); font-weight: 500; }
.person p { font-size: 1rem; color: var(--text-2); margin-top: 6px; }

/* ---------- Principal message ---------- */
.message { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
.message__side { position: sticky; top: calc(var(--header-h-scrolled) + 24px); }
.message__side .photo { width: 100%; }
.message__name { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-top: 20px; }
.message__role { font-size: var(--meta); color: var(--muted); margin-top: 4px; }
.message__body .quote { margin-bottom: 28px; }
.message__sign { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 1rem; }

/* ---------- Tiles (summary numbers, helplines, evidence) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 26px 28px; border-radius: var(--r-tile); display: flex; flex-direction: column; }
.tile > * { display: block; }
.tile__value { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--ink); }
.tile__label { font-size: 1rem; font-weight: 500; color: var(--ink); margin-top: 10px; }
.tile__note { font-size: var(--meta); color: var(--muted); margin-top: 4px; }
.tile--helpline .tile__value { color: var(--teal); font-family: var(--font-text); font-weight: 700; font-size: 2rem; }
.tile a.tile__value { text-decoration: none; }

/* ---------- Sub-navigation (stage pages, calendar years) ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-btn); border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---------- Feature grid (facilities, activities, evidence) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.tile-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile-card .icon-tile { margin-bottom: 8px; }
.tile-card h3 { font-family: var(--font-text); font-size: 1.1875rem; font-weight: 600; }
.tile-card p { font-size: 1rem; color: var(--text-2); }
.tile-card__num { font-family: var(--font-display); font-size: 1.75rem; color: var(--orange-text); line-height: 1.1; }
.tile-card__num--bracket { color: var(--muted); font-size: 1.125rem; font-family: var(--font-text); font-weight: 500; }
.photo-card { overflow: hidden; display: flex; flex-direction: column; }
.photo-card .photo { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; }
.photo-card__body { padding: 24px 26px 28px; }
.photo-card h3 { font-family: var(--font-text); font-size: 1.1875rem; font-weight: 600; }
.photo-card p { font-size: 1rem; color: var(--text-2); margin-top: 6px; }
.photo-card .chip { margin-bottom: 10px; }

/* ---------- Lists with proof ---------- */
.proof-list { display: grid; gap: 16px; margin-top: 36px; }
.proof-list .safety-item p a { color: var(--sky-deep); }
.doc-list { display: grid; gap: 14px; margin-top: 28px; }
.doc-list .doc-card { padding: 22px 26px; gap: 20px; }
.doc-list .doc-card__icon { width: 52px; height: 64px; }
.doc-list .doc-card__icon svg { width: 26px; height: 26px; }
.doc-list .doc-card__title { font-size: 1.125rem; }
.doc-list .btn { flex: 0 0 auto; }

/* ---------- Calendar ---------- */
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.cal-tools form { display: flex; align-items: center; gap: 12px; }
.cal-tools .select { width: auto; min-width: 160px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-month { margin-top: 44px; }
.cal-month h2 { font-size: 1.75rem; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.cal-month__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.cal-month .event-card { align-items: flex-start; box-shadow: none; padding-bottom: 8px; }
.cal-month__list > div { background: var(--surface); border-radius: var(--r-tile); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.event-card__ics { display: inline-flex; align-items: center; gap: 6px; font-size: var(--meta); font-weight: 600; color: var(--teal); margin: 0 24px 10px 116px; min-height: 44px; align-self: flex-start; }
.event-card__ics:hover { color: var(--ink); }
.event-card__ics svg { width: 14px; height: 14px; }
.event-card--holiday .date-tile { background: var(--maroon); }

/* ---------- Teachers table ---------- */
.teachers-group { margin-top: 48px; }
.teachers-group h2 { font-size: 1.75rem; }
.teachers-group .meta { margin: 6px 0 18px; }
.teachers-group .table td:first-child { white-space: normal; }

/* ---------- Video ---------- */
.video { aspect-ratio: 16 / 9; border-radius: var(--r-img); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-photo); margin-top: 36px; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video--pending { display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--on-ink-2); }
.video--pending strong { display: block; color: var(--on-ink); font-size: 1.25rem; margin-bottom: 8px; }

/* ---------- Quote list (parents speak) ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.quotes .quote-card { padding: 32px 34px; }

/* ---------- Notes ---------- */
.note { margin-top: 28px; }
.section h2 + .lead, .section h2 + .prose { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .page-head__intro, .split, .split--rev { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split--rev > .split__media { order: 0; }
  .split__media .photo { max-width: 560px; }
  .people, .grid-3, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip--6 .stat:nth-child(3) { border-right: 1px solid var(--line); }
  .stat-strip--6 .stat:nth-child(even) { border-right: 0; }
  .message { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .message__side { position: static; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; }
  .message__side .photo { aspect-ratio: 1; border-radius: 50%; }
  .message__name { margin-top: 0; }
}
@media (max-width: 767px) {
  .people, .grid-3, .grid-2, .tiles, .tiles--3, .quotes, .cal-month__list { grid-template-columns: minmax(0, 1fr); }
  .stat-strip--6 { grid-template-columns: minmax(0, 1fr); }
  .stat-strip--6 .stat, .stat-strip--6 .stat:nth-child(3) { border-right: 0; }
  .timeline li { grid-template-columns: 24px minmax(0, 1fr); gap: 0 16px; }
  .timeline__year { grid-column: 2; }
  .timeline__dot { grid-row: 1 / 3; }
  .timeline h3, .timeline p { grid-column: 2; }
  .tile { padding: 22px; }
  .tile__value { font-size: 1.875rem; }
  .doc-list .doc-card { flex-direction: column; align-items: flex-start; }
  .doc-list .doc-card .btn { width: 100%; }
  .event-card__ics { margin-left: 92px; margin-right: 18px; }
  .cal-tools { flex-direction: column; align-items: flex-start; }
  .cal-tools form { width: 100%; }
  .cal-tools .select { flex: 1 1 auto; }
  .message__side { grid-template-columns: 96px minmax(0, 1fr); }
  .message__body .quote { font-size: 1.375rem; }
}

/* /academics/stages: four stage blocks on one page */
.stage-block { scroll-margin-top: 96px; }
.stage-block .page-head__intro { margin-top: 0; }
.stage-block__title { margin-top: 14px; }
.stage-block .mt { margin-top: 32px; }
.section--tint { background: var(--surface); }

/* Page head without a photo: keep the measure readable */
.page-head__text { max-width: 720px; }

/* Management council: round photographs instead of initials */
.people--photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person__photo { display: block; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin-bottom: 14px; box-shadow: 0 0 0 4px var(--ground-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .people--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .person__photo { width: 96px; height: 96px; } }

/* About page head: founder photo left (same frame as the Principal's page), the story right */
.founder { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 28px; }
.founder__side .photo { width: 100%; }
.founder__side .message__name { margin-top: 16px; }
.founder__copy .prose { margin-top: 18px; max-width: 60ch; }
@media (max-width: 1023px) {
  .founder { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .founder__side { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; }
  .founder__side .photo { aspect-ratio: 1; border-radius: 50%; }
  .founder__side .message__name { margin-top: 0; }
}
@media (max-width: 640px) { .founder__side { grid-template-columns: 96px minmax(0, 1fr); } }
