/* ============================================================================
   Mahila Teachers' Training College — Design System
   ----------------------------------------------------------------------------
   Colours, type and components. The college's CONTENT is not in this file —
   it is in the data/ folder. You should not need to edit this file to make a
   normal daily update.
   ============================================================================ */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Jodhpur indigo — the institutional voice */
  --ink-900: #0d1c33;
  --ink-800: #12274a;
  --ink-700: #17325c;
  --ink-600: #1f4275;
  --ink-500: #2d5590;

  /* Marigold / sandstone — Rajasthan warmth, used sparingly */
  --gold-700: #8a5a12;   /* accent text on light backgrounds (AA) */
  --gold-600: #a86f18;
  --gold-500: #c8892a;   /* rules, borders, icons */
  --gold-400: #dfa845;
  --gold-200: #f0d9a8;
  --gold-50:  #fdf6e7;

  /* Neutrals — warm, never cold grey */
  --paper:    #fbf9f5;
  --surface:  #ffffff;
  --sand-100: #f4efe6;
  --sand-200: #e8e0d2;
  --sand-300: #d8ccb8;

  --text:       #1f242c;
  --text-muted: #5b6470;
  --text-faint: #8a939f;

  --alert:   #a8291f;
  --alert-bg:#fdf0ee;
  --ok:      #1f6b46;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space & shape */
  --wrap: 1180px;
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(13, 28, 51, .06);
  --shadow-md: 0 6px 18px -8px rgba(13, 28, 51, .22);
  --shadow-lg: 0 18px 44px -20px rgba(13, 28, 51, .35);

  --header-h: 64px;
}

/* ------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ink-600); text-decoration-color: var(--gold-200); text-underline-offset: 3px; }
a:hover { color: var(--gold-700); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink-800);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.24rem; }
h4 { font-size: 1.04rem; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink-800); color: #fff; padding: .8rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ 3. LAYOUT */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(3.2rem, 6vw, 5rem); }
.section--tint  { background: var(--sand-100); }
.section--ink   { background: var(--ink-800); color: #e8edf5; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--paper { background: var(--surface); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------- 4. SECTION HEADINGS */
.sec-head { max-width: 720px; margin-bottom: 2.4rem; }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .7rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-500);
}
.sec-head--center .eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--gold-500);
}
.section--ink .eyebrow { color: var(--gold-400); }
.section--ink .eyebrow::before, .section--ink .eyebrow::after { background: var(--gold-400); }

.sec-head p { color: var(--text-muted); font-size: 1.04rem; }
.section--ink .sec-head p { color: #c4d0e2; }

/* A small diamond rule used to close a heading block */
.rule-diamond {
  display: flex; align-items: center; gap: 10px; margin: 1.1rem 0 0;
}
.rule-diamond::before, .rule-diamond::after {
  content: ""; height: 1px; background: var(--sand-300); flex: 1;
}
.rule-diamond span {
  width: 7px; height: 7px; background: var(--gold-500);
  transform: rotate(45deg); flex: none;
}

/* ------------------------------------------------------------ 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  letter-spacing: .01em;
  padding: .82rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold-600); color: #fff; border-color: var(--gold-600); }
.btn--primary:hover { background: var(--gold-700); border-color: var(--gold-700); color: #fff; }
.btn--ink { background: var(--ink-700); color: #fff; border-color: var(--ink-700); }
.btn--ink:hover { background: var(--ink-800); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-700); border-color: var(--sand-300); }
.btn--ghost:hover { border-color: var(--ink-700); color: var(--ink-700); background: #fff; }
.btn--onink { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--onink:hover { background: #fff; color: var(--ink-800); border-color: #fff; }
.btn--sm { padding: .55rem 1.05rem; font-size: .84rem; }

/* -------------------------------------------------------------- 6. CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--sand-200);
  border-radius: var(--r-md);
  padding: 1.6rem;
  position: relative;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--sand-300); }
.card__top-rule { position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold-500); border-radius: var(--r-md) var(--r-md) 0 0; }

/* --------------------------------------------------------- 7. TOP BAR */
.topbar {
  background: var(--ink-900);
  color: #b9c6da;
  font-size: .81rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 40px; flex-wrap: wrap; }
.topbar__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar a { color: #d5dfec; text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__badge {
  background: rgba(200,137,42,.18); color: var(--gold-400);
  border: 1px solid rgba(200,137,42,.4);
  padding: .12rem .5rem; border-radius: 2px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}

/* --------------------------------------------------------- 8. MASTHEAD */
.masthead { background: var(--surface); border-bottom: 1px solid var(--sand-200); }
.masthead .wrap { display: flex; align-items: center; gap: 1.15rem; padding-block: 1.05rem; }
.masthead__logo { width: 66px; height: 66px; flex: none; }
.masthead__text { min-width: 0; }
.masthead__name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.18rem, 2.5vw, 1.72rem);
  color: var(--ink-800); line-height: 1.18; margin: 0;
  letter-spacing: -.015em;
}
.masthead__sub {
  font-size: .82rem; color: var(--text-muted); margin: .3rem 0 0;
  letter-spacing: .03em;
}
.masthead__sub strong { color: var(--gold-700); font-weight: 600; }
.masthead__aside { margin-left: auto; display: flex; align-items: center; gap: .7rem; }

/* --------------------------------------------------------- 9. NAVIGATION */
.nav { background: var(--ink-700); position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow-sm); }
.nav .wrap { display: flex; align-items: center; gap: .2rem; min-height: var(--header-h); }
.nav__list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; flex: 1; flex-wrap: wrap; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .35rem; height: var(--header-h);
  padding: 0 .92rem;
  color: #dbe4f0; text-decoration: none;
  font-size: .885rem; font-weight: 500; letter-spacing: .012em;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: rgba(255,255,255,.09); color: #fff; }
.nav__link[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-500); background: rgba(255,255,255,.06); }
.nav__caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .75; }

.nav__drop {
  position: absolute; top: 100%; left: 0; min-width: 232px;
  background: var(--surface); border: 1px solid var(--sand-200);
  border-top: 3px solid var(--gold-500);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-lg);
  list-style: none; margin: 0; padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover > .nav__drop, .nav__item:focus-within > .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a {
  display: block; padding: .58rem .8rem; border-radius: var(--r-sm);
  color: var(--ink-700); text-decoration: none; font-size: .875rem;
}
.nav__drop a:hover { background: var(--gold-50); color: var(--gold-700); }

.nav__search { display: flex; align-items: center; margin-left: auto; }
.nav__search input {
  width: 168px; height: 36px; padding: 0 .75rem;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-sm) 0 0 var(--r-sm);
  font: inherit; font-size: .85rem;
}
.nav__search input::placeholder { color: rgba(255,255,255,.62); }
.nav__search button {
  height: 36px; padding: 0 .8rem; cursor: pointer;
  background: var(--gold-600); color: #fff;
  border: 1px solid var(--gold-600); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.nav__search button:hover { background: var(--gold-700); }

.nav__toggle {
  display: none; align-items: center; gap: .6rem;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff; font: inherit; font-size: .88rem; font-weight: 600;
  padding: .5rem .9rem; border-radius: var(--r-sm); cursor: pointer;
}
.nav__burger { width: 18px; height: 12px; position: relative; flex: none; }
.nav__burger span, .nav__burger::before, .nav__burger::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: .2s;
}
.nav__burger::before { top: 0; } .nav__burger span { top: 5px; } .nav__burger::after { bottom: 0; }
.nav--open .nav__burger::before { top: 5px; transform: rotate(45deg); }
.nav--open .nav__burger span { opacity: 0; }
.nav--open .nav__burger::after { bottom: 5px; transform: rotate(-45deg); }

/* -------------------------------------------------------------- 10. HERO */
.hero { position: relative; background: var(--ink-800); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='120' viewBox='0 0 90 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.5'%3E%3Cpath d='M45 118V58a25 25 0 0 1 50 0v60'/%3E%3Cpath d='M-5 118V58a25 25 0 0 1 50 0v60'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .9;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--gold-500) 0 34%, var(--ink-600) 34% 67%, var(--gold-500) 67% 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.2rem; align-items: center;
  padding-block: clamp(3rem, 6vw, 4.6rem);
}
.hero__kicker {
  display: inline-block; font-size: .76rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400);
  border: 1px solid rgba(223,168,69,.42); background: rgba(223,168,69,.1);
  padding: .34rem .8rem; border-radius: 2px; margin-bottom: 1.3rem;
}
.hero h1 { color: #fff; margin-bottom: .7rem; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__lead { font-size: 1.09rem; color: #c8d5e8; max-width: 46ch; margin-bottom: 1.9rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow-lg);
}
.hero__figure figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(13,28,51,.86); color: #e6ecf5;
  font-size: .74rem; letter-spacing: .04em;
  padding: .35rem .7rem; border-radius: 2px;
  border-left: 3px solid var(--gold-500);
}

/* --------------------------------------------------- 11. CREDENTIAL BAR */
.creds { background: var(--ink-900); border-top: 1px solid rgba(255,255,255,.08); }
.creds__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; margin: 0; padding: 0;
}
.creds__item {
  padding: 1.15rem 1.3rem;
  border-left: 1px solid rgba(255,255,255,.09);
  color: #cdd8e8;
}
.creds__item:first-child { border-left: 0; }
.creds__label { display: block; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-400); margin-bottom: .28rem; font-weight: 700; }
.creds__value { font-size: .93rem; font-weight: 500; color: #fff; line-height: 1.4; }

/* -------------------------------------------------------- 12. TICKER */
.ticker { display: flex; align-items: stretch; background: var(--gold-50); border-bottom: 1px solid var(--gold-200); }
.ticker__tag {
  flex: none; display: flex; align-items: center; gap: .5rem;
  background: var(--alert); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  padding: .7rem 1.05rem;
}
.ticker__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blip 1.5s infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ticker__viewport { overflow: hidden; flex: 1; position: relative; }
.ticker__track { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; padding: .7rem 1.2rem; animation: slide 42s linear infinite; }
.ticker:hover .ticker__track, .ticker__track:focus-within { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { font-size: .875rem; color: var(--ink-800); text-decoration: none; }
.ticker__item::before { content: "◆"; color: var(--gold-500); margin-right: .6rem; font-size: .6rem; vertical-align: middle; }
.ticker__item:hover { color: var(--gold-700); }
.ticker__date { color: var(--text-faint); font-size: .8rem; margin-left: .5rem; }

/* --------------------------------------------------------- 13. STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-200); border: 1px solid var(--sand-200); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--surface); padding: 1.7rem 1.35rem; text-align: center; }
.stat__value { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--ink-700); line-height: 1; }
.stat__label { font-size: .84rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-top: .55rem; }
.stat__note { font-size: .74rem; color: var(--text-faint); margin-top: .45rem; line-height: 1.4; }

/* -------------------------------------------------------- 14. NOTICES */
.notice-item {
  display: flex; gap: 1.1rem; padding: 1.05rem 0;
  border-bottom: 1px dashed var(--sand-300);
}
.notice-item:last-child { border-bottom: 0; }
.notice-date {
  flex: none; width: 60px; text-align: center;
  background: var(--ink-700); color: #fff; border-radius: var(--r-sm);
  padding: .45rem .3rem; height: fit-content;
}
.notice-date__d { display: block; font-family: var(--serif); font-size: 1.32rem; font-weight: 700; line-height: 1; }
.notice-date__m { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; color: var(--gold-400); }
.notice-date__y { display: block; font-size: .66rem; color: rgba(255,255,255,.65); }
.notice-body { min-width: 0; }
.notice-title { font-family: var(--serif); font-size: 1.03rem; font-weight: 600; color: var(--ink-800); margin: 0 0 .28rem; }
.notice-desc { font-size: .89rem; color: var(--text-muted); margin: 0; }
.notice-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: .45rem; }

.chip {
  display: inline-block; font-size: .69rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 2px;
  background: var(--sand-100); color: var(--text-muted); border: 1px solid var(--sand-200);
}
.chip--new { background: var(--alert); color: #fff; border-color: var(--alert); }
.chip--gold { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-200); }
.chip--ok { background: #eaf4ee; color: var(--ok); border-color: #c7e2d3; }

/* ------------------------------------------------------- 15. FACULTY */
.faculty-card { background: var(--surface); border: 1px solid var(--sand-200); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .22s ease, transform .22s ease; }
.faculty-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.faculty-card__photo { aspect-ratio: 4 / 5; background: var(--sand-100); overflow: hidden; border-bottom: 3px solid var(--gold-500); }
.faculty-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.faculty-card__body { padding: 1.1rem 1.15rem 1.3rem; }
.faculty-card__name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink-800); margin: 0 0 .18rem; }
.faculty-card__role { font-size: .82rem; color: var(--gold-700); font-weight: 600; letter-spacing: .03em; margin: 0 0 .6rem; }
.faculty-card__meta { font-size: .82rem; color: var(--text-muted); margin: 0; }
.faculty-card__meta strong { color: var(--text); font-weight: 600; }
.faculty-card__email { font-size: .78rem; word-break: break-all; display: inline-block; margin-top: .5rem; }

/* ---------------------------------------------------- 16. ACHIEVEMENTS */
.ach-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding: 1.5rem; }
.ach-card__fig { font-family: var(--serif); font-size: 2.9rem; font-weight: 700; color: var(--gold-400); line-height: 1; }
.ach-card__title { font-family: var(--serif); font-size: 1.06rem; color: #fff; margin: .55rem 0 .45rem; }
.ach-card__detail { font-size: .855rem; color: #b9c8dd; margin: 0; }

/* ------------------------------------------------------- 17. GALLERY */
.gal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--sand-200); background: var(--sand-100); }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal-tile:hover img { transform: scale(1.05); }
.gal-tile figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(13,28,51,.9));
  color: #fff; font-size: .78rem; padding: 1.7rem .8rem .65rem;
}

/* -------------------------------------------------- 18. SPLIT / PROSE */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--narrow-left { grid-template-columns: .82fr 1.18fr; }
.prose p { color: var(--text-muted); }
.prose p:first-of-type { color: var(--text); font-size: 1.06rem; }

.pullquote {
  border-left: 3px solid var(--gold-500);
  background: var(--gold-50);
  padding: 1.05rem 1.3rem;
  font-family: var(--serif); font-size: 1.06rem; font-style: italic;
  color: var(--ink-800);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; font-size: .95rem; color: var(--text-muted); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 9px; background: var(--gold-500); transform: rotate(45deg);
}
.step-list { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.step-list li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: .85rem; font-size: .95rem; color: var(--text-muted); }
.step-list li::before {
  content: counter(s); position: absolute; left: 0; top: -.05em;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-700); color: #fff;
  font-size: .78rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ------------------------------------------------- 19. DATA NOTICES */
/* Honest labelling of information that is out of date or missing. */
.datestamp {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .76rem; color: var(--text-muted);
  background: var(--sand-100); border: 1px solid var(--sand-200);
  padding: .28rem .65rem; border-radius: 2px;
}
.datestamp::before { content: "◷"; color: var(--gold-600); }

.callout {
  border: 1px solid var(--gold-200); background: var(--gold-50);
  border-left: 4px solid var(--gold-500);
  padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .9rem; color: var(--ink-800);
}
.callout strong { color: var(--gold-700); }

/* Any [ADD ...] token left in the content is highlighted so it cannot ship
   unnoticed. Remove the placeholder text and the highlight disappears. */
.todo {
  background: #fff3cd; color: #7a5600;
  border: 1px dashed #d4a72c; border-radius: 2px;
  padding: .04em .38em; font-size: .92em; font-weight: 600;
  font-family: var(--sans); white-space: normal;
}

/* -------------------------------------------------------- 20. FOOTER */
.footer { background: var(--ink-900); color: #a9b8cd; font-size: .89rem; }
.footer__main { padding-block: 3.2rem 2.4rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 2.4rem; }
.footer h4 {
  color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.05rem;
  padding-bottom: .55rem; border-bottom: 1px solid rgba(255,255,255,.13);
}
.footer h4 span { color: var(--gold-500); }
.footer a { color: #b9c6da; text-decoration: none; }
.footer a:hover { color: var(--gold-400); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .48rem; }
.footer__brand { display: flex; gap: .9rem; margin-bottom: 1rem; }
.footer__brand img { width: 52px; height: 52px; flex: none; }
.footer__brand-name { font-family: var(--serif); font-size: 1.08rem; color: #fff; font-weight: 600; line-height: 1.3; }
.footer__addr { font-style: normal; line-height: 1.75; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .81rem; color: #8899b0;
}

/* ------------------------------------------------- 21. SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------- 22. PAGE BANNER */
.page-hero { background: var(--ink-800); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='120' viewBox='0 0 90 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.5'%3E%3Cpath d='M45 118V58a25 25 0 0 1 50 0v60'/%3E%3Cpath d='M-5 118V58a25 25 0 0 1 50 0v60'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold-500); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero h1 { color: #fff; margin: 0 0 .4rem; }
.page-hero p { color: #bccbe0; max-width: 62ch; margin: 0; }
.crumb { font-size: .8rem; color: #9db0ca; margin-bottom: .85rem; letter-spacing: .03em; }
.crumb a { color: #cbd8e8; text-decoration: none; }
.crumb a:hover { color: var(--gold-400); }
.crumb span { margin: 0 .45rem; opacity: .55; }

/* ----------------------------------------------- 23. DEFINITION LIST */
.dl { margin: .9rem 0 0; }
.dl-row { display: grid; grid-template-columns: 42% 58%; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--sand-200); }
.dl--wide .dl-row { grid-template-columns: 32% 68%; }
.dl-row:first-child { border-top: 0; padding-top: 0; }
.dl dt { font-size: .8rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.dl dd { margin: 0; font-size: .88rem; color: var(--text); }

/* -------------------------------------------------------- 24. TABLES */
.table-scroll { overflow-x: auto; border: 1px solid var(--sand-200); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.table caption { text-align: left; }
.table th, .table td { padding: .72rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sand-200); }
.table thead th {
  background: var(--ink-700); color: #fff; font-family: var(--sans);
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  border-bottom: 0; position: sticky; top: 0;
}
.table tbody tr:nth-child(even) { background: #fcfaf6; }
.table tbody tr:hover { background: var(--gold-50); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th[scope="row"] { font-weight: 600; color: var(--ink-700); font-size: .86rem; background: var(--sand-100); }
.row--gold { background: var(--gold-50) !important; }
.medal { color: var(--gold-600); font-size: 1rem; }
.nowrap { white-space: nowrap; }

.cal-block { margin-bottom: 2.2rem; }
.cal-block__head {
  font-size: 1.02rem; margin: 0 0 .8rem; padding-bottom: .55rem;
  border-bottom: 2px solid var(--gold-500); display: inline-block;
}

/* ------------------------------------------------------- 25. FILTERS */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter-btn {
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  padding: .45rem 1rem; border-radius: 100px;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--sand-300);
  transition: all .16s ease;
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--gold-700); }
.filter-btn.is-active { background: var(--ink-700); color: #fff; border-color: var(--ink-700); }

.tag {
  display: inline-block; font-size: .66rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .1rem .45rem; border-radius: 2px; margin-left: .4rem;
  background: var(--sand-100); color: var(--text-muted); border: 1px solid var(--sand-200);
  vertical-align: 1px;
}
.tag--celebration { background: #fdf0f3; color: #96305a; border-color: #f2d3de; }
.tag--competition { background: #f3f0fd; color: #4b3a96; border-color: #ded6f5; }
.tag--workshop    { background: #eef6fd; color: #1c5480; border-color: #cfe3f3; }
.tag--examination { background: #fdf2e8; color: #96551a; border-color: #f3ddc4; }
.tag--holiday     { background: #f3f4f6; color: #5b6470; border-color: #e2e5ea; }
.tag--practicum   { background: #eef7f0; color: #256b41; border-color: #cfe6d7; }
.tag--internship  { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-200); }
.tag--academic    { background: #f1f4f9; color: var(--ink-600); border-color: #dbe3ee; }

.empty { color: var(--text-muted); font-style: italic; padding: 1.6rem 0; text-align: center; }

/* ----------------------------------------------------- 26. DOWNLOADS */
.dl-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--sand-200);
  border-radius: var(--r-md); padding: 1.05rem 1.2rem;
}
.dl-card__icon {
  flex: none; width: 42px; height: 48px; display: grid; place-items: center;
  background: var(--alert-bg); color: var(--alert); border: 1px solid #f0d4d0;
  border-radius: 3px; font-size: .66rem; font-weight: 800; letter-spacing: .05em;
}
.dl-card__title { font-size: 1rem; margin: 0 0 .18rem; }
.dl-card__note { font-size: .84rem; color: var(--text-muted); margin: 0; }

/* ----------------------------------------------------- 27. LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9, 18, 33, .93);
  display: grid; place-items: center; padding: 24px;
}
.lightbox img { max-width: min(1000px, 92vw); max-height: 78vh; border-radius: var(--r-md); }
.lightbox__cap { color: #dbe4f0; text-align: center; margin-top: 1rem; font-size: .92rem; }
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.4rem; line-height: 1; border-radius: 50%;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.gal-tile--empty { cursor: default; opacity: .82; }
.gal-tile[data-full] { cursor: zoom-in; }

.map-empty {
  display: grid; place-items: center; text-align: center; min-height: 320px;
  background: var(--sand-100); border: 1px dashed var(--sand-300); border-radius: var(--r-md); padding: 1.5rem;
}

/* ---------------------------------------------------- 28. FORM FIELDS */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .93rem; color: var(--text);
  padding: .68rem .8rem; background: var(--surface);
  border: 1px solid var(--sand-300); border-radius: var(--r-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink-500); box-shadow: 0 0 0 3px rgba(45,85,144,.14); outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-hint { font-size: .78rem; color: var(--text-faint); margin: .3rem 0 0; }

/* --------------------------------------------------- 29. SEARCH PAGE */
.search-big { display: flex; gap: .6rem; margin-bottom: 1.4rem; }
.search-big input {
  flex: 1; font: inherit; font-size: 1.02rem;
  padding: .9rem 1.1rem; border: 1.5px solid var(--sand-300);
  border-radius: var(--r-sm); background: var(--surface);
}
.search-big input:focus { border-color: var(--ink-500); outline: none; box-shadow: 0 0 0 3px rgba(45,85,144,.14); }
.search-count { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.6rem; }

.result {
  display: block; padding: 1.05rem 1.2rem; margin-bottom: .8rem;
  background: var(--surface); border: 1px solid var(--sand-200);
  border-left: 3px solid var(--gold-500); border-radius: 0 var(--r-md) var(--r-md) 0;
  text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.result:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.result__type { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.result__title { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-800); margin: .25rem 0 .2rem; }
.result__snip { font-size: .88rem; color: var(--text-muted); margin: 0; }
.result mark { background: var(--gold-200); color: var(--ink-900); padding: 0 .12em; border-radius: 2px; }

/* ------------------------------------------------------- 30. HELPERS */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2.1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section-cta { display: flex; justify-content: center; margin-top: 2.4rem; }
