/* ============================================================
   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; }
}
