/* ============================================================
   Public site — small supplementary styles for dynamic content
   (alerts, pagers, timeline, fee table). Uses the design system
   variables so it blends with styles.css exactly.
   ============================================================ */

/* Rich text coming from the CMS — mirror the design's .prose look */
.rich-content { color: var(--ink-soft); line-height: 1.8; }
.rich-content > :first-child { margin-top: 0; }
.rich-content p { margin: 0 0 16px; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { font-family: var(--serif, Georgia); color: var(--green-900); margin: 28px 0 12px; line-height: 1.3; }
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.25rem; }
.rich-content ul, .rich-content ol { margin: 0 0 16px; padding-left: 22px; }
.rich-content li { margin: 6px 0; }
.rich-content a { color: var(--green-700); font-weight: 600; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 14px 0; }
.rich-content blockquote { margin: 16px 0; padding: 10px 18px; border-left: 3px solid var(--gold-500); background: var(--green-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft); }
.rich-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich-content th, .rich-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich-content th { background: var(--green-50); }

.muted { color: var(--ink-mute); }

/* Alerts (contact / enquiry success + error) */
.alert { padding: 13px 16px; border-radius: var(--radius); font-size: .94rem; border: 1px solid var(--line); }
.alert--ok { background: var(--green-50); border-color: var(--green-200); color: var(--green-800); }
.alert--err { background: var(--crimson-soft); border-color: var(--crimson); color: var(--crimson); }

/* Fee table on the faculty page */
.ftable th, .ftable td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ftable thead th { background: var(--green-50); color: var(--green-900); font-weight: 700; }
.ftable tbody tr:hover { background: var(--paper-2, var(--green-50)); }

/* Client-side pager (notices etc.) */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.pager button { min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--green-800); cursor: pointer; transition: background .15s, color .15s; font-family: inherit; }
.pager button:hover { background: var(--green-50); }
.pager button.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager__count { margin-right: auto; font-size: .85rem; color: var(--ink-mute); font-weight: 500; }
.pager__gap { padding: 0 4px; color: var(--ink-mute); }
.pager__nav { font-size: 1.1rem; line-height: 1; }

/* Notices side rail on the homepage notices block */
.notice-side { align-self: start; }

/* Timeline (about → history) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--green-100); }
.timeline__item { position: relative; padding: 0 0 26px 14px; }
.timeline__item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green-100); }
.timeline__year { display: inline-block; font-weight: 700; color: var(--green-800); font-family: var(--serif, Georgia); font-size: 1.05rem; margin-bottom: 4px; }
.timeline__body h4 { margin: 0 0 4px; color: var(--green-900); }
.timeline__body p { margin: 0; color: var(--ink-soft); }

/* Principal/Chairperson message two-column → stacks on mobile */
@media (max-width: 760px) {
  .msg-layout { grid-template-columns: 1fr !important; }
  .msg-layout > div:first-child { max-width: 260px; margin: 0 auto; }
}

/* award/achievement sidebar related cards */
.side-cards { display: flex; flex-direction: column; gap: 12px; }
.side-card { display: flex; gap: 10px; text-decoration: none; color: inherit; align-items: center; }
.side-card__media { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--paper, #f4f1ea); display: grid; place-items: center; }
.side-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-card__ph { color: var(--green-700, #2c6b4f); opacity: .6; }
.side-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.side-card__title { font-weight: 600; font-size: .92rem; line-height: 1.25; color: var(--ink, #1f2a24); }
.side-card:hover .side-card__title { color: var(--green-800, #14452f); }
.side-card__dt { font-size: .78rem; color: var(--ink-mute, #6b756f); }

/* single report file-download row */
.report-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, #e6e1d6); border-radius: 14px; background: var(--paper, #f8f6f0); }
.report-file__ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--green-50, #e9f2ec); color: var(--green-700, #2c6b4f); display: grid; place-items: center; }
.report-file__meta { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.report-file__meta strong { font-size: .95rem; color: var(--ink, #1f2a24); }
.report-file__ext { font-size: .78rem; color: var(--ink-mute, #6b756f); letter-spacing: .04em; }

/* alumni committees page */
.alm-committee { padding-bottom: 8px; border-bottom: 1px solid var(--line, #e6e1d6); }
.alm-committee:last-child { border-bottom: none; }
.alm-committee__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.alm-committee__years { font-size: .85rem; color: var(--ink-mute, #6b756f); }
.alm-committee__count { font-size: .82rem; color: var(--green-700, #2c6b4f); font-weight: 600; white-space: nowrap; }
.alm-committee__desc { color: var(--ink-soft, #4a554e); margin: 6px 0 16px; }

/* ── Justify body text everywhere applicable ──
   Rich-text/editor content paragraphs are justified for a clean block look.
   Inline alignment from the editor (style="text-align:…") and explicit
   alignment classes still win, because inline styles beat these rules and the
   [style] / .text-* selectors below are equal-or-higher specificity. */
.prose p,
.legal p,
.rich-content p,
.rich-content li,
.about__body p,
.fc-card__body p,
.profile p,
.report-file__meta + p,
.message-full p { text-align: justify; text-justify: inter-word; }

/* Respect any alignment the editor applied (don't force-justify these). */
.rich-content [style*="text-align"],
.prose [style*="text-align"],
.legal [style*="text-align"],
.rich-content .text-center, .rich-content .text-right, .rich-content .text-left,
.rich-content [align] { text-align: revert; }
.rich-content [style*="text-align: center"], .rich-content .text-center { text-align: center !important; }
.rich-content [style*="text-align: right"], .rich-content .text-right { text-align: right !important; }
.rich-content [style*="text-align: left"], .rich-content .text-left { text-align: left !important; }
