/* =====================================================================
   GMC-78 · mobile-app.css
   Phone-la oka mobile application laga: chinna text, chinna buttons,
   compact app bar, bottom tab bar, 2-column photo grids, swipe rows.
   Loaded after site.css, only on screens up to 1060px (media on <link>).
   ===================================================================== */

/* ---------- base: small, app-like type ---------- */
:root {
  --gap: 10px;
  --r: 12px;
  --tab: 54px;
  --bar: 48px;
  --side: 10px;
}
html {
  font-size: 13.5px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 8px);
}
body {
  font-size: 13.5px;
  line-height: 1.5;
  overscroll-behavior-y: none;
  -webkit-user-select: none;
  user-select: none;
  padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom));
}
p, li, td, th, h1, h2, h3, h4, input, textarea { -webkit-user-select: text; user-select: text; }
h1 { font-size: 1.55rem; line-height: 1.12; }
h2 { font-size: 1.2rem; line-height: 1.18; }
h3 { font-size: 1rem; line-height: 1.22; }
h4, h5, h6 { font-size: 0.85rem; }
p { font-size: 0.86rem; }
.wrap,
.hero-inner.wrap,
.stats .wrap,
.site-header .wrap { padding-inline: var(--side) !important; }
a, button { touch-action: manipulation; }
a:active, button:active, .btn:active, .tile:active, .g-item:active, .re:active, .lr:active { transform: scale(0.97); transition: transform 0.08s; }
.reveal { transform: none; transition-duration: 0.3s; }

/* ---------- app bar (top) ---------- */
.site-header,
body.inner .site-header,
.site-header.solid {
  background: rgba(14, 28, 56, 0.98);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap { height: var(--bar); gap: 8px; }
.brand { gap: 8px; }
.brand .em { width: 34px; height: 34px; box-shadow: none; }
.brand img { height: 26px; }
.brand .bt { font-size: 0.86rem; line-height: 1.05; }
.brand small { font-size: 0.5rem; letter-spacing: 0.2em; margin-top: 2px; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  height: calc(var(--tab) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -2px 10px rgba(14, 28, 56, 0.08);
}
.tabbar a, .tabbar button { font-size: 0.6rem; gap: 2px; letter-spacing: 0.02em; }
.tabbar .ic { width: 20px; height: 20px; }
.tabbar .on::before { width: 26px; height: 2px; }

/* slide-up menu (More) */
.m-link { font-size: 0.9rem; padding: 12px 4px; }
.m-sub a { font-size: 0.82rem; padding: 8px 4px; }
.m-sub h6 { font-size: 0.62rem; }

/* ---------- buttons: all small ---------- */
.btn,
.hero .btn,
.btn.dark,
.btn.ghost,
.btn.ghost-dark {
  padding: 7px 14px;
  font-size: 0.74rem;
  gap: 5px;
  border-width: 1.5px;
  min-height: 0;
  line-height: 1.2;
}
.btn .ic { width: 13px; height: 13px; }
.btns, .lr-more { gap: 7px; }
.lr-more { margin-top: 14px; }
.lr-more .btn { flex: 1 1 auto; }
.nlink, .link, .bk-go { font-size: 0.74rem; }

/* ---------- hero ---------- */
.hero { min-height: 64svh; padding-top: calc(var(--bar) + env(safe-area-inset-top)); }
.hero-inner { padding: 36px 0 62px; }
.hero .motto, .motto2 { font-size: 0.58rem; letter-spacing: 0.16em; padding: 4px 9px; }
.hero h1 { font-size: 1.7rem; line-height: 1.1; }
.hero p.lead { font-size: 0.82rem; line-height: 1.45; margin-top: 8px; max-width: 30em; }
.hero .btns { margin-top: 14px; gap: 6px; }
.hero .btn { padding: 7px 12px; font-size: 0.72rem; }
.hero .cap { font-size: 0.62rem; }
.hero .dots { bottom: 10px; }

/* ---------- stats ticker ---------- */
.counter { padding: 6px 20px; gap: 6px; }
.counter b { font-size: 1.05rem; }
.counter span { font-size: 0.6rem; letter-spacing: 0.05em; }
.mq span { font-size: 0.68rem; padding-right: 30px; }

/* ---------- sections ---------- */
.section { padding: 24px 0; }
.sec-head { margin-bottom: 14px; gap: 10px; }
.sec-head::before { width: 3px; }
.sec-head h2 { font-size: 1.12rem; }
.sec-head p { font-size: 0.78rem; margin-top: 4px; line-height: 1.4; }
.latest-bare { padding-top: 16px; }
.quiet { font-size: 1.05rem; }

/* ---------- explore tiles: 2 columns, app-launcher look ---------- */
.tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { border-radius: 14px; }
.tile .ph { aspect-ratio: 4 / 3; }
.tile img { object-fit: cover; }
.tile .in { padding: 9px 10px; gap: 8px; align-items: flex-start; }
.tile .badge { width: 26px; height: 26px; flex: none; }
.tile .badge .ic { width: 14px; height: 14px; }
.tile h3 { font-size: 0.82rem; }
.tile p { font-size: 0.66rem; line-height: 1.3; }

/* ---------- latest re-union photos ---------- */
.lr-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lr { padding: 4px; border-radius: 12px; }
.lr img { border-radius: 9px; aspect-ratio: 4 / 3; object-fit: cover; }
.lr-tag { left: 10px; bottom: 10px; font-size: 0.55rem; padding: 3px 8px; }

/* ---------- history timeline (stacked boxes) ---------- */
.tl-grid { grid-template-columns: 1fr; gap: 12px; }
.tl-grid .tl { border-radius: 14px; padding: 16px 16px 18px; }
.tl-grid .tl b { font-size: 1.6rem; }
.tl-grid .tl h3 { font-size: 0.98rem; margin: 3px 0 6px; }
.tl-grid .tl p { font-size: 0.86rem; line-height: 1.5; }

/* ---------- re-union cards ---------- */
.re-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.re { width: auto; border-radius: 14px; }
.re .tx { padding: 9px 11px 12px; }
.re small { font-size: 0.6rem; }
.re h3 { font-size: 0.86rem; }
.re p { font-size: 0.68rem; line-height: 1.35; }
.re .link { font-size: 0.68rem; }

/* ---------- photo galleries: 2 columns, small frames ---------- */
.gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.g-item { padding: 4px; border-radius: 12px; box-shadow: 0 1px 5px rgba(14, 28, 56, 0.08); }
.g-item:hover { transform: none; box-shadow: 0 1px 5px rgba(14, 28, 56, 0.08); }
.g-item img { border-radius: 8px; }
.g-cap { font-size: 0.66rem; padding: 5px 3px 2px; }
.nm-gallery .g-item,
.nm-gallery .g-item:hover { height: 150px; flex-basis: calc(var(--ar, 0.7) * 150px); }

/* lightbox */
.lb-btn { width: 34px; height: 34px; }
.lb-nav { width: 34px; height: 34px; }
.lb-top { padding: 8px 10px; font-size: 0.74rem; }

/* ---------- inner page banner ---------- */
.banner { padding: calc(var(--bar) + 22px) 0 20px; }
.banner h1 { font-size: 1.4rem; }
.banner p { font-size: 0.8rem; margin-top: 6px; }
.crumb { font-size: 0.68rem; margin-bottom: 6px; }

/* ---------- news / events ---------- */
.ev-head h3 { font-size: 0.95rem; }
.ev-head p { font-size: 0.78rem; }
.ev-head time { font-size: 0.66rem; }

/* ---------- people / faculty / memorial ---------- */
.people li, .dept-block li { font-size: 0.8rem; }
.night { padding: 28px 0; }
.night p { font-size: 0.82rem; }

/* ---------- features (portraits, statues) ---------- */
.feat { padding: 12px; gap: 12px; border-radius: 14px; }
.feat h3 { font-size: 0.95rem; margin-bottom: 6px; }
.feat p { font-size: 0.8rem; }
.fmedia { gap: 8px; }
.fthumbs { gap: 6px; }

/* ---------- history page, prose ---------- */
.prose p { font-size: 0.84rem; line-height: 1.55; }
.prose h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.side-nav a { font-size: 0.78rem; }
.with-side { gap: 14px; }

/* ---------- gifts, books, tables ---------- */
.gifts li { padding: 9px 11px; font-size: 0.78rem; }
.gifts b { font-size: 0.86rem; }
.books-wrap { gap: 12px; }
.bk-t { font-size: 0.74rem; }
table { font-size: 0.74rem; }
th, td { padding: 6px 8px; }
.prose table, .section table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- video block, split blocks ---------- */
.vsplit, .split { gap: 16px; }
.vside h2 { font-size: 1.05rem; }
.vside p { font-size: 0.8rem; }
.vfacts li { font-size: 0.74rem; padding: 7px 0; }
.vfacts b { font-size: 1rem; }

/* ---------- call-to-action ---------- */
.cta { padding: 30px 0; }
.cta h2 { font-size: 1.1rem; }
.cta p { font-size: 0.8rem; }

/* ---------- forms ---------- */
input, textarea, select { font-size: 16px; } /* 16px stops iOS zoom-in when typing */
input, textarea, select { border-radius: 10px; padding: 9px 11px; }
label { font-size: 0.78rem; }

/* ---------- footer ---------- */
.site-footer { padding: 24px 0 18px; }
.footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.site-footer h5 { font-size: 0.66rem; margin-bottom: 8px; }
.site-footer li, .site-footer a, .site-footer p { font-size: 0.74rem; }
.f-contact li { margin-bottom: 9px; }
.footer-bottom { font-size: 0.64rem; flex-direction: column; gap: 4px; }

/* very small phones */
@media (max-width: 360px) {
  html, body { font-size: 13px; }
  .hero h1 { font-size: 1.5rem; }
}

/* tablets in portrait (700 - 1060): still app-like, a touch bigger */
@media (min-width: 700px) and (max-width: 1060px) {
  html, body { font-size: 15px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .re-cards { grid-template-columns: repeat(3, 1fr); }
  .tl-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
}
