/* LPC Members Portal — stylesheet */
:root {
    --brand: #6b3f2b;          /* warm wood / cross tone */
    --brand-600: #57331f;
    --brand-050: #f4ece5;
    --accent: #b8863b;         /* muted gold */
    --ink: #241d18;
    --muted: #7c7168;
    --line: #eceae4;          /* NativeChurch border tone */
    --bg: #f8f7f3;            /* NativeChurch page background */
    --card: #ffffff;
    --ok-bg: #e6f4ea; --ok-fg: #1d6b39;
    --err-bg: #fbe9e7; --err-fg: #b3261e;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(36,29,24,.05), 0 8px 24px rgba(36,29,24,.06);
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0; font-family: var(--sans); color: var(--ink);
    background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }

/* ---------- Auth (login / register) ---------- */
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 24px;
    background: radial-gradient(120% 120% at 50% 0%, #fff 0%, var(--brand-050) 70%, #ece0d5 100%); }
.auth-wrap { width: 100%; max-width: 410px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    padding: 34px 30px; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1 { font-size: 1.5rem; margin: 14px 0 4px; }
.auth-head p { color: var(--muted); margin: 0; font-size: .93rem; }
.auth-logo { width: auto; height: 40px; max-width: 100%; display: inline-block; }
.stack { display: grid; gap: 15px; }
.stack label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: #4a4038; }
.stack input { font: inherit; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.stack input:focus { outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184,134,59,.18); }
.hint { font-weight: 400; color: var(--muted); }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer; background: #efe7df; color: var(--ink); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); text-decoration: none; }
.btn.sm { padding: 7px 12px; font-size: .82rem; }

/* ---------- App shell ---------- */
body.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand); color: #f3e9df; display: flex; flex-direction: column;
    padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: grid; gap: 8px; padding: 6px 6px 18px; justify-items: start; }
.brand-card { display: block; background: #fff; border-radius: 10px; padding: 9px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.brand-card img { display: block; height: 30px; width: auto; }
.brand-sub { color: #e3cdb8; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .1em; padding-left: 3px; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px;
    border-radius: 10px; color: #e6d5c6; font-size: .92rem; font-weight: 550; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.16); color: #fff; }
.sidebar nav svg { width: 19px; height: 19px; flex: none; }
.pill { margin-left: auto; background: var(--accent); color: #3a2510; font-style: normal;
    font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.logout { margin-top: auto; padding-top: 16px; }
.logout button { width: 100%; display: flex; align-items: center; gap: 10px; background: none;
    border: none; color: #d8c4b2; font: inherit; font-weight: 550; padding: 10px 12px;
    border-radius: 10px; cursor: pointer; }
.logout button:hover { background: rgba(0,0,0,.15); color: #fff; }
.logout svg { width: 18px; height: 18px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between;
    padding: 20px 30px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar h1 { font-size: 1.3rem; }
.who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-050); color: var(--brand); font-weight: 700; font-size: .82rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.3rem; }
.content { padding: 26px 30px; display: grid; gap: 20px; align-content: start; flex: 1; }
.foot { padding: 18px 30px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin: 16px 30px 0; }
.auth-card .alert { margin: 0 0 16px; }
.alert.ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert.err { background: var(--err-bg); color: var(--err-fg); }

/* ---------- Hero / greeting ---------- */
.hero { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 100%);
    color: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.hero .eyebrow { margin: 0; color: #e3cdb8; font-size: .82rem; text-transform: uppercase;
    letter-spacing: .08em; }
.hero h2 { font-size: 1.9rem; margin: 2px 0 6px; }
.hero .muted { color: #ecdccf; margin: 0; }

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.stat-label { color: var(--muted); font-size: .82rem; }
.stat-value { font-size: 1.55rem; font-weight: 700; color: var(--brand-600); }
.stat-value.sm { font-size: 1.1rem; }

/* ---------- Cards & grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.link { font-size: .85rem; font-weight: 600; }
.empty { color: var(--muted); font-size: .9rem; padding: 8px 0; margin: 0; }
.center { text-align: center; display: grid; gap: 12px; place-items: center; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid #f1eae3; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl.striped tbody tr:nth-child(even) { background: #fbf8f4; }
.chip { background: var(--brand-050); color: var(--brand-600); font-size: .76rem;
    padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.total-banner { display: flex; align-items: center; justify-content: space-between;
    background: var(--brand-050); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.total-banner span { color: var(--brand-600); font-weight: 600; font-size: .9rem; }
.total-banner strong { font-size: 1.3rem; color: var(--brand-600); }
.year-filter select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Service lists ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-list li { display: flex; gap: 14px; align-items: center; }
.svc-date { display: grid; place-items: center; width: 46px; height: 46px; flex: none;
    background: var(--brand-050); border-radius: 10px; line-height: 1; }
.svc-date .d { font-size: 1.15rem; font-weight: 700; color: var(--brand-600); }
.svc-date .mo { font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.svc-list small { display: block; color: var(--muted); font-size: .82rem; }
.svc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.svc-row { display: flex; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.svc-date.lg { width: 62px; height: 62px; }
.svc-date.lg .yr { font-size: .64rem; color: var(--muted); }
.svc-body strong { font-size: 1rem; }
.svc-body .theme { margin: 3px 0 8px; color: var(--brand); font-style: italic; font-size: .9rem; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .84rem; }
.muted-rows .svc-row { opacity: .82; }
.svc-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px 18px; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.svc-people > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.svc-people dt { color: var(--muted); font-size: .82rem; margin: 0; }
.svc-people dd { margin: 0; font-size: .85rem; font-weight: 600; text-align: right; }

/* ---------- Definition lists (profile) ---------- */
.profile-head { display: flex; align-items: center; gap: 20px; }
.deflist { margin: 0; display: grid; gap: 2px; }
.deflist > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0;
    border-bottom: 1px solid #f1eae3; }
.deflist > div:last-child { border-bottom: none; }
.deflist dt { color: var(--muted); font-size: .86rem; margin: 0; }
.deflist dd { margin: 0; font-weight: 550; }
.note, .muted { color: var(--muted); }
.note { font-size: .82rem; margin: 14px 0 0; }
.muted { color: var(--muted); }

/* ---------- Notifications ---------- */
.notif-list, .notif-full { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notif-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 10px; }
.notif-list li.unread { border-color: var(--accent); background: #fdf8ef; }
.notif-list small { display: block; color: var(--muted); font-size: .8rem; }
.tag { background: var(--brand-050); color: var(--brand-600); font-size: .72rem; font-weight: 700;
    padding: 3px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; flex: none; }
.notif-full li { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.notif-full li.unread { border-left: 3px solid var(--accent); background: #fdf8ef; }
.nf-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.nf-top time { margin-left: auto; color: var(--muted); font-size: .8rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notif-full p { margin: 6px 0 0; color: #4a4038; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    body.app { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap;
        align-items: center; padding: 12px; gap: 6px; }
    .brand { padding: 6px 8px; }
    .sidebar nav { grid-auto-flow: column; margin-left: auto; }
    .sidebar nav a span:not(.pill) { display: none; }
    .logout { margin: 0 0 0 6px; padding: 0; }
    .logout button span, .logout button { font-size: 0; }
    .logout svg { width: 20px; height: 20px; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .content, .topbar, .foot { padding-left: 18px; padding-right: 18px; }
    .deflist > div { grid-template-columns: 120px 1fr; }
}
@media (max-width: 460px) {
    .stat-row { grid-template-columns: 1fr; }
}
