/* base/global.css — Page-wide basics: box sizing, body, headings, links, images, helpers.
   Part of the split style.css. Keep the load order in includes/layout.php. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.38;
  font-size: 15px;
}

img { max-width: 100%; }

a { color: inherit; }

[lang="ta"] { font-family: var(--tamil), var(--sans); }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.05; margin: 0 0 .25em; }

h1 { font-size: 1.55rem; }

h2 { font-size: 1.28rem; }

h3 { font-size: 1.08rem; }

p { margin: 0 0 .45em; }

.member-act {
  min-height: 36px;
  padding: 0 16px;
  background: var(--maroon);
  color: #fff;
  border-color: #46131b;
  font-weight: 700;
}

.desk {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--ivory);
}

.add-member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 14px;
  align-items: start;
}

.add-member-grid .span-2 { grid-column: 1 / -1; }

.add-member:target { box-shadow: 0 0 0 2px rgba(184, 137, 58, .55); }

.pager { display: flex; gap: 8px; margin-top: 8px; }

.muted { color: #6e5d52; }

hr.fade { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

@media (max-width: 1100px) {
    .desk { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1101px) {
    .desk.is-nav-hidden { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .add-member-grid .span-2 { grid-column: auto; }
}

.print-only { display: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.company-sign { text-align: center; }

.settings-signature { display: block; max-width: 240px; max-height: 90px; object-fit: contain; background: #fff; border: 1px solid rgba(103, 31, 43, .25); padding: 8px; }

.customer-sign { min-height: 58px; display: flex; align-items: flex-end; }

@media (max-width: 760px) {
    img, svg, video { max-width: 100%; }
}

.member-person { display: flex; align-items: center; gap: 10px; }

.member-ava {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1e6e8;
  color: #310e14;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
}

#topup-proofs {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px dashed rgba(49, 14, 20, .25);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
}
