/* =========================================================
   LOOPO & CO. SHARED STYLES
   This one file is used by several pages. Change a colour here
   and every page that links to it updates at once.
   ========================================================= */

/* ---------- 1. COLOURS ---------- */
:root {
  --cream: #F6F1E7;
  --cream-light: #FBF8F1;
  --green: #1F3A2E;
  --green-dark: #142820;
  --green-tint: #E3EBE4;
  --green-text: #2F4A3C;
  --ink: #1C1B18;
  --muted: #4F5249;
  --line: #EFE9DD;
  --border: #CFC6B4;
  --tan: #D9C9A8;
  --white: #FFFFFF;
}

/* ---------- 2. PAGE BASICS ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.45;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
}

.lead { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Small heading above a group of items */
.section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- 3. BUTTONS ---------- */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--green); color: var(--white); border: none; min-height: 54px; font-size: 16px; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.button-secondary:hover { background: var(--green-tint); }

/* A visible outline for keyboard users, on anything clickable */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #2F7A4F;
  outline-offset: 3px;
}

.small-note { margin: 0; font-size: 12px; color: #5B5F57; text-align: center; }

/* ---------- 4. LISTS OF ROWS (used on records + transfer) ---------- */
.list {
  background: var(--white);
  border-radius: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li + li { border-top: 1px solid var(--line); }

/* ---------- 5. BOTTOM NAVIGATION ---------- */
.bottom-nav {
  position: sticky;   /* stays stuck to the bottom of the screen */
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--cream-light);
  border-top: 1px solid #E6DECF;
}
.bottom-nav a {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.bottom-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
