﻿/* =====================================================================
   Lions District 316D — site stylesheet
   The only stylesheet of the site (no Bootstrap or other framework). Loaded by Site1.Master on every page.
   1. Design tokens (light + dark)      5. Header and navigation
   2. Base: reset, layout grid, buttons and form fields, small utilities
   3. Base elements                     6. Footer
   4. Utility bar                       7. Shared components   8. Home page
   Layout classes start with "ld-". A few plain names (btn, form-control, form-select, form-label, form-text,
   container, row, col-*, m-0 ...) are kept from the older pages and are defined in section 2.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --ld-blue: #00338D;        /* Lions Blue: links, primary buttons (11.3:1 on white) */
  --ld-blue-700: #002566;
  --ld-navy: #0B1F44;        /* hero, utility bar, footer */
  --ld-gold: #EBB700;        /* Lions Gold: main call to action and focus ring. Never text on white. */
  --ld-gold-hover: #F5C518;
  --ld-bg: #F5F7FA;          /* page */
  --ld-surface: #FFFFFF;     /* cards, header */
  --ld-surface-2: #EEF2F8;   /* chips, icon tiles, hovers */
  --ld-text: #172033;        /* body text (15.2:1) */
  --ld-muted: #566176;       /* secondary text (6.2:1 on white) */
  --ld-line: #DCE3EE;
  --ld-link: var(--ld-blue);
  --ld-on-navy: #C9D4EA;
  --ld-on-navy-strong: #D2DBEC;
  --ld-notice-bg: #FFF7DB;
  --ld-notice-text: #3D2E00;
  --ld-notice-line: #F0DC9A;
  --ld-success: #1E7F4F;
  --ld-danger: #B42318;
  --ld-shadow: 0 1px 2px rgba(11, 31, 68, .06), 0 8px 24px rgba(11, 31, 68, .06);
  --ld-radius-sm: 8px;
  --ld-radius: 14px;
  --ld-radius-lg: 18px;
  --ld-font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ld-font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --ld-container: 1200px;
  --ld-gutter: 24px;
  --ld-section: 80px;
  color-scheme: light;
}
[data-theme="dark"] {
  --ld-blue: #7EA6FF;
  --ld-blue-700: #A9C3FF;
  --ld-bg: #0B1220;
  --ld-surface: #121C2E;
  --ld-surface-2: #18243A;
  --ld-text: #E7ECF4;        /* 15.8:1 on page */
  --ld-muted: #A6B1C4;       /* 7.9:1 on cards */
  --ld-line: #26344D;
  --ld-link: #9DBBFF;        /* 8.9:1 on cards */
  --ld-notice-bg: #2A2410;
  --ld-notice-text: #F3E4B0;
  --ld-notice-line: #4A3E14;
  --ld-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (max-width: 767.98px) {
  :root { --ld-gutter: 16px; --ld-section: 56px; }
}

/* ---------- 2. Base: reset, grid, buttons and form fields ---------- */
/* reset (what every browser should agree on) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 600; line-height: 1.2; }
h1 { font-size: calc(1.375rem + 1.5vw); }  h2 { font-size: calc(1.325rem + .9vw); }  h3 { font-size: calc(1.3rem + .6vw); }
h4 { font-size: calc(1.275rem + .3vw); }   h5 { font-size: 1.25rem; }                h6 { font-size: 1rem; }
@media (min-width: 1200px) { h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; } }
p { margin-top: 0; margin-bottom: 1rem; }
ol, ul { padding-left: 2rem; margin-top: 0; margin-bottom: 1rem; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
dl { margin-top: 0; margin-bottom: 1rem; }  dt { font-weight: 700; }  dd { margin-bottom: .5rem; margin-left: 0; }
address { margin-bottom: 1rem; font-style: normal; line-height: inherit; }
blockquote, figure { margin: 0 0 1rem; }
b, strong { font-weight: bolder; }
small, .small { font-size: .875em; }
sub, sup { position: relative; font-size: .75em; line-height: 0; vertical-align: baseline; }  sub { bottom: -.25em; }  sup { top: -.5em; }
hr { margin: 1rem 0; color: inherit; border: 0; border-top: 1px solid; opacity: .25; }
pre, code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1em; }
pre { display: block; margin-top: 0; margin-bottom: 1rem; overflow: auto; font-size: .875em; }
img, svg { vertical-align: middle; }
table { caption-side: bottom; border-collapse: collapse; }
th { text-align: inherit; text-align: -webkit-match-parent; }
thead, tbody, tfoot, tr, td, th { border-color: inherit; border-style: solid; border-width: 0; }
label { display: inline-block; }
button { border-radius: 0; }
button:focus:not(:focus-visible) { outline: 0; }
input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
[role="button"] { cursor: pointer; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; }
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.25rem; line-height: inherit; }
legend + * { clear: left; }
iframe { border: 0; }
summary { display: list-item; cursor: pointer; }
progress { vertical-align: baseline; }
[hidden] { display: none !important; }

/* page width and a 12-column grid (row / col-6 / col-md-4 ...) */
.container, .container-fluid { width: 100%; margin-left: auto; margin-right: auto; padding-left: var(--ld-gutter); padding-right: var(--ld-gutter); }
.container { max-width: var(--ld-container); }
.row { --gx: 1.5rem; --gy: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--gy)); margin-left: calc(-.5 * var(--gx)); margin-right: calc(-.5 * var(--gx)); }
.row > * { flex: 0 0 auto; width: 100%; max-width: 100%; padding-left: calc(.5 * var(--gx)); padding-right: calc(.5 * var(--gx)); margin-top: var(--gy); }
.row > .col { flex: 1 0 0%; }
.g-0 { --gx: 0; --gy: 0; } .g-2 { --gx: .5rem; --gy: .5rem; } .g-3 { --gx: 1rem; --gy: 1rem; } .g-4 { --gx: 1.5rem; --gy: 1.5rem; }
.col-3 { width: 25%; } .col-4 { width: 33.3333%; } .col-6 { width: 50%; } .col-8 { width: 66.6667%; } .col-12 { width: 100%; }
@media (min-width: 768px) {
  .row > .col-md-2 { width: 16.6667%; } .row > .col-md-3 { width: 25%; } .row > .col-md-4 { width: 33.3333%; } .row > .col-md-5 { width: 41.6667%; }
  .row > .col-md-6 { width: 50%; } .row > .col-md-7 { width: 58.3333%; } .row > .col-md-8 { width: 66.6667%; } .row > .col-md-9 { width: 75%; }
  .row > .col-md-12 { width: 100%; }
}

/* small utilities still used by a few pages */
.m-0 { margin: 0 !important; }   .mt-2 { margin-top: .5rem !important; }   .my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.me-4 { margin-right: 1.5rem !important; }   .ms-auto { margin-left: auto !important; }
.d-block { display: block !important; }   .d-none { display: none !important; }   .flex-grow-1 { flex-grow: 1 !important; }

/* buttons (.btn .btn-primary .btn-outline-secondary .btn-outline-danger .btn-warning .btn-sm) */
.btn {
  --bs-btn-color: var(--ld-text); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--bs-btn-color); --bs-btn-hover-bg: var(--bs-btn-bg); --bs-btn-hover-border-color: var(--bs-btn-border-color);
  --bs-btn-active-color: var(--bs-btn-hover-color); --bs-btn-active-bg: var(--bs-btn-hover-bg); --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
  --bs-btn-disabled-color: var(--bs-btn-color); --bs-btn-disabled-bg: var(--bs-btn-bg); --bs-btn-disabled-border-color: var(--bs-btn-border-color);
  display: inline-block; padding: .375rem .75rem; font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.5; text-align: center;
  text-decoration: none; vertical-align: middle; cursor: pointer; user-select: none;
  color: var(--bs-btn-color); background: var(--bs-btn-bg); border: 1.5px solid var(--bs-btn-border-color); border-radius: var(--ld-radius-sm);
  transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { color: var(--bs-btn-hover-color); background: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); text-decoration: none; }
.btn:active { color: var(--bs-btn-active-color); background: var(--bs-btn-active-bg); border-color: var(--bs-btn-active-border-color); }
.btn:focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 2px; }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] { color: var(--bs-btn-disabled-color); background: var(--bs-btn-disabled-bg); border-color: var(--bs-btn-disabled-border-color); opacity: .65; pointer-events: none; }
.btn-primary { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; }
.btn-outline-secondary { --bs-btn-color: var(--ld-muted); --bs-btn-border-color: var(--ld-line); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #5c6779; --bs-btn-hover-border-color: #5c6779; }
.btn-outline-danger { --bs-btn-color: var(--ld-danger); --bs-btn-border-color: var(--ld-danger); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ld-danger); --bs-btn-hover-border-color: var(--ld-danger); }
[data-theme="dark"] .btn-outline-danger { --bs-btn-color: #FF9A8F; --bs-btn-border-color: #FF9A8F; }
.btn-sm { padding: .25rem .6rem; font-size: .875rem; }
.btn-primary {
  --bs-btn-bg: #00338D; --bs-btn-border-color: #00338D;
  --bs-btn-hover-bg: #002566; --bs-btn-hover-border-color: #002566;
  --bs-btn-active-bg: #001C4F; --bs-btn-active-border-color: #001C4F;
  --bs-btn-disabled-bg: #E3E8F0; --bs-btn-disabled-border-color: #E3E8F0; --bs-btn-disabled-color: #7A8597;
}
.btn-warning, .ld-btn-gold {
  --bs-btn-color: #0B1F44; --bs-btn-bg: #EBB700; --bs-btn-border-color: #EBB700;
  --bs-btn-hover-color: #0B1F44; --bs-btn-hover-bg: #F5C518; --bs-btn-hover-border-color: #F5C518;
  --bs-btn-active-color: #0B1F44; --bs-btn-active-bg: #D9A800; --bs-btn-active-border-color: #D9A800;
}
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { min-height: 36px; }

/* form fields (.form-control .form-select .form-label .form-text) */
.form-control, .form-select {
  display: block; width: 100%; min-height: 44px; padding: .45rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5;
  color: var(--ld-text); background-color: var(--ld-surface); background-clip: padding-box;
  border: 1.5px solid var(--ld-line); border-radius: var(--ld-radius-sm); appearance: none; transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: var(--ld-muted); opacity: 1; }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: var(--ld-surface-2); opacity: 1; }
.form-control:focus, .form-select:focus, .form-check-input:focus { outline: 0; border-color: var(--ld-blue); box-shadow: 0 0 0 3px rgba(235, 183, 0, .6); }
textarea.form-control { min-height: calc(1.5em + 1rem + 3px); }
.form-control[type="file"] { overflow: hidden; padding: .375rem .5rem; }
.form-control::file-selector-button { margin: -.2rem .75rem -.2rem 0; padding: .3rem .8rem; border: 0; border-radius: 6px; font: inherit; font-weight: 600;
                                      color: var(--ld-text); background: var(--ld-surface-2); cursor: pointer; }
.form-control-sm { min-height: 36px; padding: .25rem .5rem; font-size: .875rem; }
.form-select {
  padding-right: 2.5rem; background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px 12px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23566176' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
[data-theme="dark"] .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23A6B1C4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select[multiple], .form-select[size]:not([size="1"]) { padding-right: .75rem; background-image: none; }
.form-label { margin-bottom: .5rem; font-weight: 600; }
.form-text { margin-top: .25rem; font-size: .875em; color: var(--ld-muted); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--ld-danger); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .25); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ld-bg);
  color: var(--ld-text);
  font-family: var(--ld-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > form { flex: 1 0 auto; display: flex; flex-direction: column; }
.ld-main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ld-font-head); letter-spacing: -.01em; color: var(--ld-text); }
a { color: var(--ld-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ld-blue-700); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 2px; border-radius: 4px; }
.ld-ic { width: 1.125em; height: 1.125em; flex: 0 0 auto; vertical-align: -.15em; }
.ld-wrap { max-width: var(--ld-container); margin: 0 auto; padding-left: var(--ld-gutter); padding-right: var(--ld-gutter); }
.ld-eyebrow { margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ld-muted); }
.ld-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ld-gold); color: #0B1F44; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.ld-skip:focus { top: 12px; color: #0B1F44; }
.visually-hidden,
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }

/* the site's own buttons (header, footer, home and most pages) */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--ld-radius-sm);
  font: 600 15px/1 var(--ld-font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s;
}
.ld-btn:hover { transform: translateY(-1px); text-decoration: none; }
a.ld-btn-gold, .ld-btn-gold { background: var(--ld-gold); color: #0B1F44; }
a.ld-btn-gold:hover, .ld-btn-gold:hover { background: var(--ld-gold-hover); color: #0B1F44; }
a.ld-btn-blue, .ld-btn-blue { background: #00338D; color: #fff; }
a.ld-btn-blue:hover, .ld-btn-blue:hover { background: #002566; color: #fff; }
a.ld-btn-ghost-light, .ld-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
a.ld-btn-ghost-light:hover, .ld-btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
a.ld-btn-outline, .ld-btn-outline { background: var(--ld-surface); color: var(--ld-text); border-color: var(--ld-line); }
a.ld-btn-outline:hover, .ld-btn-outline:hover { border-color: var(--ld-blue); color: var(--ld-blue); }
.ld-btn-sm { min-height: 36px; padding: 8px 14px; font-size: 14px; }

/* ---------- 4. Utility bar ---------- */
.ld-util { background: var(--ld-navy); color: var(--ld-on-navy); font-size: 13px; }
.ld-util .ld-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.ld-util-links, .ld-util-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ld-util-links { list-style: none; margin: 0; padding: 0; }
.ld-util a { color: var(--ld-on-navy); text-decoration: none; }
.ld-util a:hover { color: #fff; text-decoration: underline; }
.ld-theme-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; background: none; border: 0; color: var(--ld-on-navy); font: 500 13px var(--ld-font-body); cursor: pointer; }
.ld-theme-btn:hover { color: #fff; }
.ld-theme-btn .ld-sun, [data-theme="dark"] .ld-theme-btn .ld-moon { display: none; }
[data-theme="dark"] .ld-theme-btn .ld-sun { display: inline; }
.ld-util-user { color: #fff; font-weight: 600; }
@media (max-width: 767.98px) { .ld-util-links { display: none; } .ld-util .ld-wrap { justify-content: flex-end; } }

/* ---------- 5. Header and navigation ---------- */
.ld-header { position: sticky; top: 0; z-index: 1020; background: var(--ld-surface); border-bottom: 1px solid var(--ld-line); }
.ld-header .ld-wrap { position: relative; display: flex; align-items: center; gap: 24px; min-height: 76px; }
.ld-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.ld-brand img { width: 48px; height: 48px; display: block; }
.ld-brand-t1 { display: block; font: 600 12px/1.2 var(--ld-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ld-muted); }
.ld-brand-t2 { display: block; font: 800 20px/1.15 var(--ld-font-head); color: var(--ld-text); }
.ld-burger { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); background: var(--ld-surface); color: var(--ld-text); cursor: pointer; }
.ld-burger .ld-ic { width: 22px; height: 22px; }
.ld-burger .ld-i-close, .ld-burger[aria-expanded="true"] .ld-i-menu { display: none; }
.ld-burger[aria-expanded="true"] .ld-i-close { display: block; }
.ld-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ld-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ld-nav-item { position: relative; }
.ld-nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: 500 15px var(--ld-font-body); color: var(--ld-text); text-decoration: none; white-space: nowrap;
}
.ld-nav-link:hover, .ld-nav-item.is-open > .ld-nav-link { background: var(--ld-surface-2); color: var(--ld-text); }
.ld-nav-link[aria-current="page"], .ld-nav-link.is-active { color: var(--ld-blue); box-shadow: inset 0 -2px 0 var(--ld-gold); }
.ld-nav-link .ld-chev { width: 14px; height: 14px; transition: transform .15s; }
.ld-nav-item.is-open > .ld-nav-link .ld-chev { transform: rotate(180deg); }
.ld-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 1030; min-width: 240px; margin: 4px 0 0; padding: 8px;
  list-style: none; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: 10px; box-shadow: var(--ld-shadow);
}
.ld-menu-end { left: auto; right: 0; }
.ld-nav-item.is-open > .ld-menu { display: block; animation: ld-pop .15s ease-out; }
.ld-menu a, .ld-menu .ld-menu-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 6px; border: 0; background: none;
  color: var(--ld-text); text-decoration: none; font: 400 14px var(--ld-font-body); text-align: left; cursor: pointer;
}
.ld-menu a:hover, .ld-menu .ld-menu-btn:hover, .ld-menu a[aria-current="page"] { background: var(--ld-surface-2); color: var(--ld-blue); }
.ld-menu-head { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ld-muted); }
.ld-menu-sep { height: 1px; margin: 6px 4px; background: var(--ld-line); }
.ld-nav-cta { margin-left: 8px; }
@media (hover: hover) and (min-width: 1200px) {
  .ld-nav-item:hover > .ld-menu { display: block; }
}
/* long menus never run off the bottom of the window (the header stays at the top, so the page cannot scroll them into view) */
@media (min-width: 1200px) {
  .ld-menu { max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  /* district admin account menu: Uploads | Data | Approvals side by side, Log out under the last column */
  .ld-menu-cols { width: 700px; columns: 3; column-gap: 8px; }
  .ld-menu-cols > li { break-inside: avoid; }
  .ld-menu-cols > .ld-menu-head:not(:first-child) { break-before: column; }
  .ld-menu-cols > .ld-menu-sep { display: none; }
  .ld-menu-cols > li:last-child { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ld-line); }
}
.ld-util-logout { margin-left: 12px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none; }
.ld-util-logout:hover, .ld-util-logout:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 1199.98px) {
  .ld-burger { display: inline-flex; }
  .ld-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 1030;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--ld-gutter) 20px;
    background: var(--ld-surface); border-bottom: 1px solid var(--ld-line); box-shadow: var(--ld-shadow);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .ld-nav.is-open { display: flex; animation: ld-pop .15s ease-out; }
  .ld-nav-list { flex-direction: column; align-items: stretch; }
  .ld-nav-link { width: 100%; justify-content: space-between; }
  .ld-nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ld-gold); }
  .ld-menu { position: static; box-shadow: none; border: 0; margin: 0; padding: 0 0 6px 12px; min-width: 0; }
  .ld-nav-cta { margin: 12px 0 0; }
}
@media (max-width: 575.98px) {
  .ld-header .ld-wrap { min-height: 64px; }
  .ld-brand img { width: 40px; height: 40px; }
  .ld-brand-t2 { font-size: 17px; }
}

/* ---------- 6. Footer ---------- */
.ld-footer { margin-top: var(--ld-section); background: var(--ld-navy); color: var(--ld-on-navy); font-size: 15px; }
.ld-footer-cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding: 64px 0 48px; }
.ld-footer h2 { font: 700 14px var(--ld-font-head); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.ld-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ld-footer a { color: var(--ld-on-navy); text-decoration: none; }
.ld-footer a:hover { color: #fff; text-decoration: underline; }
.ld-footer-brand { display: flex; align-items: center; gap: 12px; }
.ld-footer-brand img { width: 44px; height: 44px; }
.ld-footer-brand small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ld-footer-brand b { display: block; font: 800 18px/1.2 var(--ld-font-head); color: #fff; }
.ld-footer-line { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; line-height: 1.55; }
.ld-footer-line .ld-ic { margin-top: 3px; }
.ld-social { display: flex; gap: 8px; margin-top: 20px; }
.ld-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.ld-social a:hover { border-color: #fff; text-decoration: none; }
.ld-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #9FB0CF; }
.ld-footer-bottom ul { flex-direction: row; gap: 20px; }
.ld-footer-bottom a { color: #9FB0CF; }
@media (max-width: 991.98px) { .ld-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 575.98px) { .ld-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 0 32px; } }

/* ---------- 7. Shared components ---------- */
.ld-section { padding: var(--ld-section) 0; }
.ld-section-alt { background: var(--ld-surface); border-top: 1px solid var(--ld-line); border-bottom: 1px solid var(--ld-line); }
.ld-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.ld-section-head h2 { font: 800 clamp(1.75rem, 1.2rem + 1.6vw, 2.125rem)/1.15 var(--ld-font-head); letter-spacing: -.015em; margin: 6px 0 0; }
.ld-section-head p { margin: 8px 0 0; color: var(--ld-muted); max-width: 620px; }
.ld-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.ld-more:hover { text-decoration: underline; }
@media (max-width: 767.98px) { .ld-section-head { flex-direction: column; align-items: flex-start; gap: 12px; } }

.ld-card { background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-tag { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--ld-surface-2); color: var(--ld-blue); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ld-icon-tile { width: 44px; height: 44px; border-radius: 10px; background: var(--ld-surface-2); color: var(--ld-blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ld-icon-tile .ld-ic { width: 22px; height: 22px; }
.ld-empty { color: var(--ld-muted); font-size: 14px; padding: 12px 0; margin: 0; }

.ld-notice { background: var(--ld-notice-bg); color: var(--ld-notice-text); border-bottom: 1px solid var(--ld-notice-line); }
.ld-notice .ld-wrap { display: flex; flex-direction: column; padding-top: 4px; padding-bottom: 4px; font-size: 15px; }
.ld-notice-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; }
.ld-notice-row + .ld-notice-row { border-top: 1px dashed var(--ld-notice-line); }
.ld-notice .ld-ic { width: 20px; height: 20px; flex: 0 0 auto; }
.ld-notice-text { flex: 1 1 auto; min-width: 0; }
.ld-notice a.ld-notice-more { color: inherit; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.ld-notice a.ld-notice-img { flex: 0 0 auto; display: block; line-height: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .15s ease; }
.ld-notice a.ld-notice-img:hover { transform: scale(1.05); }
.ld-notice-img img { width: 96px; height: 64px; object-fit: cover; }
@media (max-width: 575.98px) {
  .ld-notice-row { flex-wrap: wrap; gap: 6px 10px; }
  .ld-notice-text { flex: 1 1 0; min-width: 160px; }
  .ld-notice-img img { width: 72px; height: 48px; }
  .ld-notice a.ld-notice-more { flex-basis: 100%; }
}

/* reveal on scroll (site.js adds .is-visible). Without JavaScript everything stays visible. */
.js .ld-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .ld-reveal.is-visible { opacity: 1; transform: none; }

@keyframes ld-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .ld-reveal { opacity: 1; transform: none; }
}

/* ---------- 8. Home page ---------- */
.ld-hero { background: var(--ld-navy); color: #fff; overflow: hidden; }
.ld-hero .ld-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.ld-hero .ld-eyebrow { color: var(--ld-gold); }
.ld-hero h1 { font: 800 clamp(2.25rem, 1.4rem + 3vw, 3.5rem)/1.05 var(--ld-font-head); letter-spacing: -.02em; margin: 16px 0 20px; color: #fff; }
.ld-hero-lead { font-size: 1.125rem; color: var(--ld-on-navy-strong); margin: 0 0 32px; max-width: 520px; }
.ld-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ld-hero-media { position: relative; }
.ld-hero-media > img { display: block; width: 100%; aspect-ratio: 1440 / 500; object-fit: cover; border-radius: 16px; background: #13284f; }
/* sits just below the photo, overlapping only its bottom edge, so the picture stays clear */
.ld-hero-badge { position: absolute; left: 16px; top: calc(100% - 12px); display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 10px; background: #fff; color: #0B1F44; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.ld-hero-badge img { width: 28px; height: 32px; }
.ld-hero-badge b { display: block; font: 700 13px/1.2 var(--ld-font-head); }
.ld-hero-badge span { font-size: 11.5px; color: #566176; }
@media (max-width: 991.98px) { .ld-hero .ld-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 56px; } }
@media (max-width: 575.98px) {
  .ld-hero-lead { font-size: 1rem; }
  .ld-hero-ctas .ld-btn { flex: 1 1 100%; }
  .ld-hero-badge { left: 10px; }
}

.ld-stats { background: var(--ld-surface); border-bottom: 1px solid var(--ld-line); }
.ld-stats .ld-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-stat { padding: 28px 24px; border-left: 1px solid var(--ld-line); }
.ld-stat:first-child { border-left: 0; padding-left: 0; }
.ld-stat b { display: block; font: 800 2rem/1.1 var(--ld-font-head); color: var(--ld-blue); }
.ld-stat span { font-size: 14px; color: var(--ld-muted); }
@media (max-width: 767.98px) {
  .ld-stats .ld-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-stat { padding: 20px 12px 20px 0; border-left: 0; border-top: 1px solid var(--ld-line); }
  .ld-stat:nth-child(-n+2) { border-top: 0; }
  .ld-stat b { font-size: 1.625rem; }
}

.ld-home-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.ld-dg { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.ld-dg-top { display: flex; align-items: center; gap: 16px; }
.ld-dg-top > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ld-gold); }
.ld-dg-name { font: 700 1.1875rem/1.25 var(--ld-font-head); margin: 0; }
.ld-dg-role { font-size: 14px; color: var(--ld-muted); }
.ld-dg blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.65; }
.ld-dg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ld-theme-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--ld-surface-2); font-size: 13px; font-weight: 600; }
.ld-theme-tag img { width: 28px; height: 31px; }
.ld-dg-top > div { flex: 1 1 auto; min-width: 0; }
.ld-dg-name .ld-dg-mjf { font-size: .62em; font-weight: 600; color: var(--ld-muted); letter-spacing: .02em; white-space: nowrap; }
.ld-dg-top > img.ld-dg-logo { width: 84px; height: 84px; border: 0; border-radius: 0; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .15)); }
.ld-theme-tag-text { padding: 6px 14px; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 420px) { .ld-dg-top > img.ld-dg-logo { width: 64px; height: 64px; } }
.ld-quick-title { font: 800 1.625rem/1.2 var(--ld-font-head); margin: 6px 0 20px; }
.ld-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.ld-quick a { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px; color: var(--ld-text); text-decoration: none; transition: border-color .15s, transform .15s; }
.ld-quick a:hover { border-color: var(--ld-blue); transform: translateY(-2px); color: var(--ld-text); }
.ld-quick b { font: 700 1rem/1.3 var(--ld-font-head); }
.ld-quick span.ld-quick-desc { font-size: 14px; line-height: 1.5; color: var(--ld-muted); }
@media (max-width: 991.98px) { .ld-home-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) {
  .ld-dg { padding: 24px; }
  .ld-quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .ld-quick a { padding: 16px; }
  .ld-quick span.ld-quick-desc { display: none; }
}

/* home page: latest circulars in four columns (DCS / DCT, GAT / DC, RC / ZC, Clubs), each a short list */
.ld-ccols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ld-ccol { display: flex; flex-direction: column; min-width: 0; background: var(--ld-surface); border: 1px solid var(--ld-line); border-top: 3px solid var(--ld-blue); border-radius: var(--ld-radius); padding: 16px 16px 8px; }
.ld-ccol-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ld-line); }
.ld-ccol-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ld-text); }
.ld-ccol-all { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ld-blue); text-decoration: none; white-space: nowrap; }
.ld-ccol-all:hover { text-decoration: underline; }
.ld-clist { list-style: none; margin: 0; padding: 0; }
.ld-clist > li + li { border-top: 1px solid var(--ld-line); }
.ld-crow { display: flex; align-items: flex-start; gap: 10px; padding: 11px 6px; margin: 0 -6px; border-radius: 8px; color: var(--ld-text); text-decoration: none; }
a.ld-crow:hover { background: var(--ld-surface-2); color: var(--ld-text); }
a.ld-crow:hover .ld-ctitle { color: var(--ld-blue); }
a.ld-crow:focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 1px; }
.ld-ckind { flex: 0 0 auto; min-width: 38px; margin-top: 2px; padding: 2px 0; border-radius: 4px; text-align: center; background: #00338D; color: #fff; font: 700 10px/1.4 var(--ld-font-body); letter-spacing: .04em; }
.ld-ckind.is-pdf { background: #B42318; }
.ld-ckind.is-word { background: #1F5BB5; }
.ld-ckind.is-excel { background: #1E7F4F; }
.ld-ckind.is-image { background: #6B4FBB; }
.ld-ctext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ld-ctitle { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ld-cdate { font-size: 12.5px; color: var(--ld-muted); }
.ld-ccol .ld-empty { margin: 12px 0; }
@media (max-width: 1099.98px) { .ld-ccols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .ld-ccols { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.ld-panel { padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--ld-bg); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); }
.ld-panel h3 { font: 700 1.125rem/1.3 var(--ld-font-head); margin: 0; }
.ld-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0; list-style: none; background: var(--ld-surface-2); border-radius: 10px; }
.ld-tabs li { flex: 1 1 auto; }
.ld-tab { width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ld-muted); font: 600 14px var(--ld-font-body); cursor: pointer; }
.ld-tab:hover { color: var(--ld-text); }
.ld-tab[aria-selected="true"] { background: var(--ld-surface); color: var(--ld-blue); box-shadow: 0 1px 3px rgba(11, 31, 68, .12); }
.ld-list { list-style: none; margin: 0; padding: 0; }
.ld-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--ld-line); }
.ld-list li:first-child { border-top: 0; }
.ld-list a { display: block; font-weight: 500; line-height: 1.4; color: var(--ld-text); text-decoration: none; }
.ld-list a:hover { color: var(--ld-blue); text-decoration: underline; }
.ld-list .ld-title { display: block; font-weight: 500; line-height: 1.4; }
.ld-list small { color: var(--ld-muted); font-size: 13px; }
.ld-file { width: 36px; height: 36px; border-radius: 8px; background: var(--ld-surface); border: 1px solid var(--ld-line); color: var(--ld-blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ld-date { flex: 0 0 auto; width: 52px; padding: 6px 0; border-radius: 8px; background: #00338D; color: #fff; text-align: center; line-height: 1.1; }
.ld-date b { display: block; font: 800 1.25rem var(--ld-font-head); }
.ld-date span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ld-gold); }
@media (max-width: 575.98px) { .ld-tabs li { flex: 1 1 40%; } }

.ld-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ld-project { overflow: hidden; display: flex; flex-direction: column; }
.ld-project > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ld-surface-2); }
.ld-project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ld-project h3, .ld-project h4 { font: 700 1.125rem/1.3 var(--ld-font-head); margin: 0; }
.ld-project p { margin: 0; font-size: 15px; color: var(--ld-muted); }
.ld-project-wide { grid-column: span 2; flex-direction: row; }
.ld-project-wide > img { width: 50%; aspect-ratio: auto; height: auto; min-height: 260px; }
.ld-project-wide .ld-project-body { justify-content: center; padding: 32px; }
.ld-project-wide h3, .ld-project-wide h4 { font-size: 1.5rem; }
@media (max-width: 991.98px) { .ld-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .ld-projects { grid-template-columns: minmax(0, 1fr); }
  .ld-project-wide { grid-column: auto; flex-direction: column; }
  .ld-project-wide > img { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .ld-project-wide .ld-project-body { padding: 20px 22px 24px; }
  .ld-project-wide h3, .ld-project-wide h4 { font-size: 1.125rem; }
}

.ld-join { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px; border-radius: var(--ld-radius-lg); background: #00338D; color: #fff; }
.ld-join h2 { font: 800 1.875rem/1.2 var(--ld-font-head); margin: 0 0 8px; color: #fff; }
.ld-join p { margin: 0; color: var(--ld-on-navy-strong); max-width: 560px; }
.ld-join-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 575.98px) { .ld-join { padding: 32px 24px; } .ld-join-ctas .ld-btn { flex: 1 1 100%; } }

/* ---------- 9. Permanent projects: home panel ---------- */
.ld-subhead { font: 700 1.25rem/1.3 var(--ld-font-head); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.ld-subhead::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--ld-gold); }
.ld-clubproj { margin-top: 48px; padding: 32px; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius-lg); }
.ld-clubproj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.ld-clubproj-head p { margin: 0; color: var(--ld-muted); max-width: 640px; }
.ld-distproj { margin-top: 24px; }
.ld-distproj .ld-cp-mini-img { width: 112px; height: 84px; }
.ld-distproj .ld-cp-mini p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-clubproj-head .ld-subhead { margin-bottom: 8px; }
.ld-cp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ld-cp-mini { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); background: var(--ld-bg); position: relative; transition: border-color .15s; }
.ld-cp-mini:hover { border-color: var(--ld-blue); }
.ld-cp-mini-img { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.ld-cp-mini-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ld-cp-mini h4 { font: 700 1rem/1.35 var(--ld-font-head); margin: 0; }
.ld-cp-mini h4 a { color: var(--ld-text); text-decoration: none; }
.ld-cp-mini h4 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }      /* whole card is clickable */
.ld-cp-mini h4 a:hover { color: var(--ld-blue); }
.ld-cp-mini p { margin: 0; font-size: 14px; color: var(--ld-muted); }
.ld-cp-ph { display: flex; align-items: center; justify-content: center; background: var(--ld-surface-2); color: var(--ld-blue); }
.ld-cp-ph .ld-ic { width: 36px; height: 36px; }
@media (max-width: 767.98px) {
  .ld-clubproj { padding: 20px; margin-top: 40px; }
  .ld-clubproj-head { flex-direction: column; align-items: flex-start; }
  .ld-cp-list { grid-template-columns: minmax(0, 1fr); }
  .ld-cp-mini-img { width: 72px; height: 72px; }
}

/* ---------- 10. Inner page header, breadcrumbs ---------- */
.ld-pagehead { background: var(--ld-navy); color: #fff; padding: 40px 0 44px; }
.ld-pagehead h1 { font: 800 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1.1 var(--ld-font-head); color: #fff; margin: 12px 0 12px; letter-spacing: -.02em; }
.ld-pagehead-lead { margin: 0; max-width: 680px; font-size: 1.0625rem; color: var(--ld-on-navy-strong); }
.ld-pagehead-stats { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ld-on-navy); font-size: 15px; }
.ld-pagehead-stats b { font: 800 1.375rem var(--ld-font-head); color: var(--ld-gold); margin-right: 4px; }
.ld-crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ld-on-navy); }
.ld-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.ld-crumbs a { color: var(--ld-on-navy); text-decoration: none; }
.ld-crumbs a:hover { color: #fff; text-decoration: underline; }
.ld-crumbs [aria-current="page"] { color: #fff; }
.ld-section-tight { padding-top: 32px; }

/* ---------- 11. Filters (data-ld-filter in site.js) ---------- */
.ld-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 20px; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-filter { display: flex; flex-direction: column; gap: 6px; flex: 0 1 220px; min-width: 160px; }
.ld-filter-grow { flex: 1 1 280px; }
.ld-filter label { font-size: 14px; font-weight: 600; }
.ld-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--ld-line); border-radius: var(--ld-radius-sm); background: var(--ld-surface); color: var(--ld-text); font: 400 15px var(--ld-font-body); }
.ld-input:focus { outline: 3px solid var(--ld-gold); outline-offset: 1px; border-color: var(--ld-blue); }
select.ld-input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566176' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.ld-input-icon { position: relative; }
.ld-input-icon .ld-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ld-muted); }
.ld-input-icon .ld-input { padding-left: 38px; }
.ld-filter-count { margin: 16px 0 20px; font-size: 14px; color: var(--ld-muted); }
.ld-filter-empty { text-align: center; padding: 40px 16px; }
.ld-filter-empty p { margin: 0 0 12px; }
/* a public list with nothing to show yet (e.g. District cabinet before it is published) */
.ld-page-empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--ld-line); border-radius: 14px; background: var(--ld-surface); }
.ld-page-empty .ld-ic { width: 40px; height: 40px; color: var(--ld-muted); margin-bottom: 10px; }
.ld-page-empty h2 { font-size: 1.35rem; margin: 0 0 6px; }
.ld-page-empty p { margin: 0; color: var(--ld-muted); }
@media (max-width: 575.98px) { .ld-filters { padding: 16px; } .ld-filter { flex: 1 1 130px; min-width: 0; } .ld-filter-grow { flex: 1 1 100%; } .ld-filters > .ld-btn { flex: 1 1 100%; } }

/* ---------- 12. Club projects page ---------- */
.ld-cp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ld-cp-card { overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 96px; }
.ld-cp-card[hidden] { display: none; }
.ld-cp-card:target { outline: 3px solid var(--ld-gold); outline-offset: 2px; }
.ld-cp-card-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
span.ld-cp-card-img.ld-cp-ph { display: flex; }
span.ld-cp-card-img .ld-ic { width: 48px; height: 48px; }
.ld-cp-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.ld-cp-card h2 { font: 700 1.1875rem/1.3 var(--ld-font-head); margin: 0; }
.ld-cp-club { margin: 0; font-weight: 600; color: var(--ld-blue); font-size: 15px; }
.ld-cp-summary { margin: 0; font-size: 15px; color: var(--ld-muted); }
.ld-cp-facts { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--ld-line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.ld-cp-facts > div { display: flex; gap: 5px; align-items: center; }
.ld-cp-facts dt { display: flex; align-items: center; font-weight: 400; color: var(--ld-muted); }
.ld-cp-facts dt .ld-ic { margin-right: 6px; }
.ld-cp-facts dt::after { content: ":"; }
.ld-cp-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 991.98px) { .ld-cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ld-cp-grid { grid-template-columns: minmax(0, 1fr); } }

.ld-blank { padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ld-blank h2 { font: 700 1.375rem var(--ld-font-head); margin: 0; }
.ld-blank p { margin: 0; color: var(--ld-muted); max-width: 520px; }
.ld-callout { margin-top: 48px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--ld-notice-bg); color: var(--ld-notice-text); border: 1px solid var(--ld-notice-line); border-radius: var(--ld-radius-lg); }
.ld-callout h2 { font: 700 1.375rem/1.3 var(--ld-font-head); margin: 0 0 8px; color: inherit; }
.ld-callout p { margin: 0; max-width: 640px; }
.ld-callout-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575.98px) { .ld-callout { padding: 24px; } .ld-callout-ctas .ld-btn { flex: 1 1 100%; } }

/* ---------- 13. Admin screens ---------- */
.ld-pagehead-admin { padding: 28px 0 32px; }
.ld-pagehead-admin h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); }
.ld-alert { padding: 14px 16px; border-radius: var(--ld-radius-sm); border: 1px solid; margin: 0 0 20px; font-size: 15px; }
.ld-alert ul { margin: 6px 0 0; padding-left: 20px; }
.ld-alert-ok { background: #E8F5EE; border-color: #A9D8BE; color: #14532D; }
.ld-alert-err { background: #FDECEA; border-color: #F2B8B5; color: #7A1A12; }
.ld-alert-info { background: var(--ld-surface-2); border-color: var(--ld-line); color: var(--ld-text); }
[data-theme="dark"] .ld-alert-ok { background: #0F2A1C; border-color: #1F5A3B; color: #B7E4CB; }
[data-theme="dark"] .ld-alert-err { background: #2E1412; border-color: #6B2620; color: #F6C6C1; }
.ld-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ld-badge-ok { background: #E8F5EE; color: #14532D; }
.ld-badge-warn { background: #FFF4D1; color: #5C4300; }
.ld-badge-muted { background: var(--ld-surface-2); color: var(--ld-muted); }
[data-theme="dark"] .ld-badge-ok { background: #0F2A1C; color: #B7E4CB; }
[data-theme="dark"] .ld-badge-warn { background: #2A2410; color: #F3E4B0; }

.ld-admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.ld-admin-search { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ld-admin-search .form-select { width: auto; min-width: 200px; }
.ld-admin-search .form-control { width: 240px; }
.ld-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--ld-surface-2); border-radius: 10px; }
.ld-seg-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 7px; color: var(--ld-muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.ld-seg-btn:hover { color: var(--ld-text); }
.ld-seg-btn.is-on { background: var(--ld-surface); color: var(--ld-blue); box-shadow: 0 1px 3px rgba(11, 31, 68, .12); }

.ld-table-wrap { background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); overflow-x: auto; }
.ld-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ld-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ld-muted); padding: 12px 16px; border-bottom: 1px solid var(--ld-line); white-space: nowrap; }
.ld-table td { padding: 12px 16px; border-bottom: 1px solid var(--ld-line); vertical-align: middle; }
.ld-table tbody tr:last-child td { border-bottom: 0; }
.ld-table tbody tr:hover { background: var(--ld-bg); }
.ld-row-project { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.ld-row-project b { display: block; font-weight: 600; line-height: 1.35; }
.ld-row-project small { color: var(--ld-muted); }
.ld-row-thumb { flex: 0 0 auto; width: 64px; height: 44px; border-radius: 6px; object-fit: cover; }
span.ld-row-thumb .ld-ic { width: 22px; height: 22px; }
.ld-row-actions { text-align: right; white-space: nowrap; }
.ld-row-actions .btn { margin: 2px 0 2px 4px; }
.ld-admin-foot { margin: 20px 0 0; font-size: 14px; }
@media (max-width: 767.98px) {
  .ld-admin-search { margin-left: 0; width: 100%; }
  .ld-admin-search .form-select, .ld-admin-search .form-control { width: 100%; min-width: 0; }
  .ld-admin-search > * { flex: 1 1 100%; }
  .ld-table-wrap { background: none; border: 0; overflow: visible; }
  .ld-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .ld-table, .ld-table tbody, .ld-table tr, .ld-table td { display: block; width: 100%; }
  .ld-table tr { background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); margin-bottom: 12px; padding: 8px 0; }
  .ld-table td { border: 0; padding: 6px 16px; display: flex; gap: 12px; align-items: center; }
  .ld-table td[data-label]::before { content: attr(data-label); flex: 0 0 72px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ld-muted); }
  .ld-table td[data-label="Project"]::before, .ld-table td[data-label="Report"]::before { display: none; }
  .ld-row-project { min-width: 0; }
  .ld-row-actions { text-align: left; white-space: normal; flex-wrap: wrap; padding-top: 10px !important; }
  .ld-row-actions .btn { margin: 0; }
}

.ld-admin-form { padding: 28px; margin-bottom: 24px; }
.ld-admin-h2 { font: 700 1.375rem/1.3 var(--ld-font-head); margin: 0 0 20px; }
.ld-admin-fixed { margin: 0; padding: 10px 12px; border-radius: var(--ld-radius-sm); background: var(--ld-surface-2); font-weight: 600; }
.ld-help-row { display: flex; justify-content: space-between; gap: 12px; }
.ld-field-err { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ld-danger); }
[data-theme="dark"] .ld-field-err { color: #F6A39B; }
.ld-check { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; cursor: pointer; }
.ld-check input { width: 20px; height: 20px; accent-color: #00338D; cursor: pointer; }
.ld-check label { cursor: pointer; }
.ld-photo-field { display: flex; gap: 16px; align-items: flex-start; }
.ld-photo-current { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--ld-radius-sm); border: 1px solid var(--ld-line); }
.ld-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ld-line); }
.ld-count-over { color: var(--ld-danger) !important; font-weight: 600; }
@media (max-width: 575.98px) {
  .ld-admin-form { padding: 20px; }
  .ld-photo-field { flex-direction: column; }
  .ld-form-actions .btn { flex: 1 1 100%; }
}

/* ---------- 14. Messages from older pages (AdminKit.Say: class "mp-note ok" / "mp-note err") ---------- */
.mp-note { display: block; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--ld-radius-sm); border: 1px solid; font-size: 15px; }
.mp-note.ok { background: #E8F5EE; border-color: #A9D8BE; color: #14532D; }
.mp-note.err { background: #FDECEA; border-color: #F2B8B5; color: #7A1A12; }

/* ---------- 15. Activity report review ---------- */
.ld-badge-err { background: #FDECEA; color: #7A1A12; }
[data-theme="dark"] .ld-badge-err { background: #2E1412; color: #F6C6C1; }
.ld-col-check { width: 44px; }
.ld-col-check input, .ld-row-check input { width: 20px; height: 20px; accent-color: #00338D; cursor: pointer; }
.ld-col-results { font-size: 14px; color: var(--ld-muted); max-width: 260px; }
.ld-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--ld-radius-sm); background: var(--ld-surface-2); }
.ld-bulk-count { font-size: 14px; font-weight: 600; margin-right: auto; }
.ld-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 0; font-size: 14px; color: var(--ld-muted); }
.ld-pager .aspNetDisabled { opacity: .45; pointer-events: none; }
.ld-report { padding: 28px; }
.ld-back { display: inline-block; margin-bottom: 16px; font-weight: 600; text-decoration: none; }
.ld-back:hover { text-decoration: underline; }
.ld-report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.ld-report-head .ld-admin-h2 { margin: 4px 0 4px; }
.ld-report-club { margin: 0; color: var(--ld-muted); }
.ld-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0 0 24px; }
.ld-facts-grid > div { background: var(--ld-bg); border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); padding: 10px 14px; }
.ld-facts-grid dt { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ld-muted); }
.ld-facts-grid dd { margin: 2px 0 0; font-weight: 600; }
.ld-report-h3 { font: 700 1.0625rem var(--ld-font-head); margin: 0 0 10px; }
.ld-report-desc { margin: 0 0 24px; white-space: pre-line; max-width: 820px; }
.ld-photo-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ld-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ld-radius-sm); border: 1px solid var(--ld-line); transition: transform .15s; }
.ld-photo-grid a:hover img { transform: scale(1.02); }
.ld-review-note { margin-bottom: 20px; }
.ld-review-box { padding-top: 20px; border-top: 1px solid var(--ld-line); }
.ld-review-box .ld-form-actions { border-top: 0; padding-top: 0; margin-top: 16px; }
@media (max-width: 767.98px) {
  .ld-report { padding: 20px; }
  .ld-report-head { flex-direction: column; }
  .ld-table td.ld-col-check { position: absolute; width: auto; padding: 4px; }
  .ld-table tr { position: relative; }
  .ld-table td.ld-col-check { right: 8px; top: 8px; }
  .ld-col-results { max-width: none; }
}

/* ---------- 16. My reports (club admins) ---------- */
.ld-myreports { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ld-myreport { display: flex; gap: 16px; align-items: flex-start; padding: 16px; }
.ld-myreport.is-rejected { border-color: #E9B4AE; box-shadow: inset 4px 0 0 #B42318, var(--ld-shadow); }
.ld-myreport-img { flex: 0 0 auto; width: 120px; height: 84px; border-radius: 8px; object-fit: cover; }
span.ld-myreport-img .ld-ic { width: 28px; height: 28px; }
.ld-myreport-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ld-myreport-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ld-myreport-top small { color: var(--ld-muted); }
.ld-myreport h3 { font: 700 1.0625rem/1.35 var(--ld-font-head); margin: 2px 0 0; }
.ld-myreport-results { margin: 0; font-size: 14px; color: var(--ld-muted); }
.ld-myreport-note { margin: 6px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--ld-notice-bg); color: var(--ld-notice-text); font-size: 14px; }
.ld-myreport-actions { flex: 0 0 auto; align-self: center; }
.ld-note { padding: 14px 16px; border-radius: var(--ld-radius-sm); border: 1px solid; margin: 0 0 20px; }
.ld-note-warn { background: #FFF4D1; border-color: #F0DC9A; color: #3D2E00; }
.ld-note-info { background: var(--ld-surface-2); border-color: var(--ld-line); color: var(--ld-text); }
[data-theme="dark"] .ld-note-warn { background: #2A2410; border-color: #4A3E14; color: #F3E4B0; }
.ld-note-title { margin: 0 0 4px; font-weight: 700; }
.ld-note-text { margin: 0; white-space: pre-line; }
.ld-note-inline { padding: 12px 14px; margin: 0 0 20px; border-radius: var(--ld-radius-sm); background: #FFF4D1; color: #3D2E00; border: 1px solid #F0DC9A; }
[data-theme="dark"] .ld-note-inline { background: #2A2410; color: #F3E4B0; border-color: #4A3E14; }
.ld-photo-edit li { display: flex; flex-direction: column; gap: 4px; }
.ld-photo-edit .ld-check { min-height: 36px; font-size: 14px; }
@media (max-width: 575.98px) {
  .ld-myreport { flex-wrap: wrap; }
  .ld-myreport-img { width: 88px; height: 64px; }
  .ld-myreport-body { flex-basis: calc(100% - 104px); }
  .ld-myreport-actions { flex-basis: 100%; }
  .ld-myreport-actions .btn { width: 100%; }
}

/* ---------- 17. LCI refresh ---------- */
.ld-steps { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.ld-steps code { font-size: 13px; background: var(--ld-surface-2); padding: 1px 6px; border-radius: 4px; color: var(--ld-text); }
.ld-table-compact { width: 100%; border-collapse: collapse; font-size: 15px; }
.ld-table-compact th, .ld-table-compact td { padding: 10px 12px; border-bottom: 1px solid var(--ld-line); text-align: left; }
.ld-table-compact thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ld-muted); }
.ld-table-compact tbody th { font-weight: 600; }
.ld-table-compact tbody tr:last-child th, .ld-table-compact tbody tr:last-child td { border-bottom: 0; }

/* ---------- 18. Contest claim (club form + district view) ---------- */
.ld-claim-month { align-items: flex-end; }   /* the month box and its button on one line, bottoms level */
.ld-claim-month .form-control, .ld-claim-month .btn { height: 44px; margin: 0; }
.ld-claim-month .btn { display: inline-flex; align-items: center; padding: 0 18px; white-space: nowrap; font-weight: 600; }
.ld-claim-month .ld-claim-state { align-self: flex-end; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 0 auto; }
/* Telugu items and headings: the site fonts have no Telugu letters, so name the Telugu fonts phones and Windows have */
.ld-claim, .ld-claim-tabs, .ld-claim-table { font-family: Inter, "Segoe UI", "Nirmala UI", "Noto Sans Telugu", Gautami, system-ui, sans-serif; }
.ld-claim-sechead h2 { font-family: "Plus Jakarta Sans", "Segoe UI", "Nirmala UI", "Noto Sans Telugu", Gautami, system-ui, sans-serif; }
.ld-claim-state { margin: 0 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ld-muted); }
.ld-claim-tabs { margin: 24px 0 16px; }
.ld-claim-tabtotal { font-weight: 500; color: var(--ld-muted); white-space: nowrap; }
.ld-claim-panel:focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 4px; border-radius: var(--ld-radius); }
.ld-claim-sec { padding: 20px 22px 8px; margin: 0 0 16px; }
.ld-claim-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ld-gold); }
.ld-claim-sechead h2 { margin: 0; font: 700 1.125rem/1.4 var(--ld-font-head); }
.ld-claim-sechead p { margin: 0; font-size: 14px; color: var(--ld-muted); }
.ld-claim-sechead b { color: var(--ld-blue); font-size: 1.05rem; }
.ld-claim-cols, .ld-claim-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 4rem 5.5rem minmax(10rem, 16rem); gap: 8px 14px; align-items: center; }
.ld-claim-cols { padding: 10px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ld-muted); }
.ld-claim-cols span:first-child { grid-column: 1 / 3; }
.ld-claim-list { list-style: none; margin: 0; padding: 0; }
.ld-claim-row { padding: 10px 0; border-top: 1px solid var(--ld-line); }
.ld-claim-no { font: 700 13px var(--ld-font-head); color: var(--ld-muted); text-align: right; }
.ld-claim-item { margin: 0; font-size: 15px; line-height: 1.55; }
.ld-claim-max { font-weight: 600; text-align: center; }
.ld-claim-max small { display: none; }
.ld-claim-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ld-claim-pts { text-align: center; font-weight: 600; }
.ld-claim .form-control:disabled { background: var(--ld-surface-2); opacity: 1; }
.ld-claim-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 8px 0 12px; padding: 12px 18px;
  background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: 0 -6px 24px rgba(11, 31, 68, .10); }
.ld-claim-sum { margin: 0; font-size: 15px; color: var(--ld-muted); }
.ld-claim-sum b { font: 800 1.6rem/1 var(--ld-font-head); color: var(--ld-blue); margin: 0 4px; }
.ld-claim-bad { margin: 0; font-size: 14px; font-weight: 600; color: var(--ld-danger); }
.ld-claim-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.ld-claim-table td:first-child { width: 3rem; color: var(--ld-muted); }
.ld-claim-tsec th { background: var(--ld-surface-2); color: var(--ld-text); text-transform: none; letter-spacing: 0; font-size: 14px; }
.ld-claim-zero td { color: var(--ld-muted); }
.ld-claim-missing { margin-top: 24px; padding: 16px 20px; }
.ld-claim-missing summary { cursor: pointer; font-weight: 600; }
.ld-claim-missing-list { columns: 3 220px; margin: 12px 0 0; padding-left: 18px; font-size: 14px; }
@media (max-width: 767.98px) {
  .ld-claim-cols { display: none; }
  .ld-claim-row { grid-template-columns: 1.75rem 6.5rem minmax(0, 1fr); grid-template-areas: "no item item" "no max max" "no pts rem"; gap: 6px 10px; }
  .ld-claim-no { grid-area: no; align-self: start; padding-top: 2px; }
  .ld-claim-item { grid-area: item; }
  .ld-claim-max { grid-area: max; text-align: left; font-size: 14px; }
  .ld-claim-max small { display: inline; font-weight: 400; color: var(--ld-muted); }
  .ld-claim-field { grid-area: pts; display: flex; flex-direction: column; gap: 2px; }
  .ld-claim-remfield { grid-area: rem; }
  .ld-claim-lbl { position: static; width: auto; height: auto; clip: auto; font-size: 12px; font-weight: 600; color: var(--ld-muted); }
  .ld-claim-sec { padding: 16px 14px 4px; }
  .ld-claim-bar { padding: 10px 14px; }
  .ld-claim-actions { width: 100%; margin-left: 0; }
  .ld-claim-actions .btn { flex: 1 1 0; }
  .ld-claim-state { margin-left: 0; }
}

/* ---------- 19. Public pages: files, covers, people, circulars, calendar, gallery, activities, clubs ---------- */
.ld-note-plain { margin: 0 0 20px; }
p.ld-note-plain:not(.ld-note) { margin: 0; }
.ld-fgroup { margin: 0 0 32px; }
.ld-fgroup[hidden] { display: none; }
.ld-fhelp { margin: 24px 0 0; font-size: 14px; color: var(--ld-muted); }
.ld-subhead-note { font: 500 14px var(--ld-font-body); color: var(--ld-muted); }
.ld-page-tabs { margin: 0 0 24px; }
.ld-tab-count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--ld-surface-2); font-size: 12px; line-height: 20px; color: var(--ld-muted); }
.ld-tab[aria-selected="true"] .ld-tab-count { background: var(--ld-blue); color: #fff; }

/* file cards (documents, formats) */
.ld-flist, .ld-circs, .ld-covers, .ld-people, .ld-gal-grid, .ld-act-facts { list-style: none; margin: 0; padding: 0; }
.ld-flist { display: grid; gap: 12px; }
.ld-fcard { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-fcard[hidden] { display: none; }
.ld-fcard.is-off { opacity: .65; }
.ld-ftype { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 54px; border-radius: 6px 14px 6px 6px; font: 800 11px var(--ld-font-head); letter-spacing: .04em; color: #fff; background: #566176; }
.ld-ftype-pdf { background: #B42318; }
.ld-ftype-doc { background: #1D5BBF; }
.ld-ftype-xls { background: #1E7F4F; }
.ld-ftype-img { background: #7A4DB8; }
.ld-fcard-body { flex: 1 1 auto; min-width: 0; }
.ld-fcard-title { margin: 0; font: 700 1rem/1.4 var(--ld-font-head); }
.ld-fcard-desc { margin: 4px 0 0; font-size: 14px; color: var(--ld-muted); }
.ld-fcard-meta { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ld-muted); }
.ld-fcard-actions { flex: 0 0 auto; display: flex; gap: 8px; }

/* cover grids (directories, newsletters) */
.ld-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.ld-cover-item[hidden] { display: none; }
.ld-cover-card { display: flex; flex-direction: column; height: 100%; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); overflow: hidden; color: var(--ld-text); text-decoration: none; box-shadow: var(--ld-shadow); transition: transform .2s ease, box-shadow .2s ease; }
a.ld-cover-card:hover, a.ld-cover-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 31, 68, .16); color: var(--ld-text); }
.ld-cover-card.is-off { opacity: .6; }
.ld-cover-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: var(--ld-surface-2); color: var(--ld-muted); }
.ld-cover-img > .ld-ic { width: 40px; height: 40px; }
.ld-cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ld-cover-new { position: absolute; top: 10px; left: 10px; }
.ld-cover-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.ld-cover-title { font: 700 1rem var(--ld-font-head); }
.ld-cover-sub { font-size: 13px; color: var(--ld-muted); }
.ld-cover-cta { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ld-link); }
.ld-cover-card.is-off .ld-cover-cta { color: var(--ld-muted); }

/* people cards (leaders, cabinet, MJF, club members) */
.ld-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ld-people-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ld-person { display: flex; gap: 14px; padding: 16px; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-person[hidden] { display: none; }
.ld-person-photo { position: relative; flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--ld-surface-2); color: var(--ld-muted); border: 3px solid var(--ld-surface); box-shadow: 0 0 0 2px var(--ld-gold); }
.ld-person-photo > .ld-ic { width: 32px; height: 32px; }
.ld-person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ld-person-body { min-width: 0; flex: 1 1 auto; }
.ld-person-role { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ld-blue); }
.ld-person-role2 { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--ld-muted); }
.ld-person-name { margin: 4px 0 6px; font: 700 1.05rem/1.35 var(--ld-font-head); }
.ld-person-name small { font-size: .8em; font-weight: 600; color: var(--ld-muted); }
.ld-person-name .ld-tag { margin-left: 4px; vertical-align: 2px; }
.ld-person-past, .ld-person-club { margin: 0 0 4px; font-size: 14px; color: var(--ld-muted); }
.ld-person-line { display: flex; gap: 8px; margin: 4px 0 0; font-size: 14px; color: var(--ld-text); overflow-wrap: anywhere; }
.ld-person-line .ld-ic { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--ld-muted); }
.ld-person-addr { margin: 6px 0 0; font-style: normal; font-size: 14px; color: var(--ld-muted); }
.ld-people-sm .ld-person { flex-direction: column; align-items: center; text-align: center; }
.ld-memorial .ld-person-photo { box-shadow: 0 0 0 2px var(--ld-muted); filter: grayscale(1); }
.ld-people > .ld-empty { grid-column: 1 / -1; }

/* ===== Past Governors in perpetuity (districtleaders.aspx): framed memorial cards ===== */
.ld-pdg-intro { margin: 0 0 20px; color: var(--ld-muted); font-style: italic; text-align: center; }
.ld-pdg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ld-pdg { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 22px 26px;
          background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-pdg::before { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--ld-gold) 45%, transparent); border-radius: calc(var(--ld-radius) - 4px); pointer-events: none; }
.ld-pdg-frame { display: block; padding: 5px; border-radius: 50%;
                background: conic-gradient(from 210deg, #f6dd8a, var(--ld-gold), #8a6a12, var(--ld-gold), #f6dd8a, var(--ld-gold), #8a6a12, #f6dd8a);
                box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.ld-pdg-photo { position: relative; display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
                background: var(--ld-surface-2); color: var(--ld-muted); border: 4px solid var(--ld-surface); }
.ld-pdg-photo > .ld-ic { width: 44px; height: 44px; }
.ld-pdg-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ld-pdg-name { margin: 18px 0 4px; font: 700 1.15rem/1.35 var(--ld-font-head); }
.ld-pdg-name small { font-size: .8em; font-weight: 600; color: var(--ld-muted); }
.ld-pdg-year { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ld-blue); }
.ld-pdg-club { margin: 0; font-size: 14px; color: var(--ld-muted); }
.ld-pdg-dates { margin: 0 0 2px; font-size: 13.5px; color: var(--ld-muted); }
.ld-pdg-remember { margin-bottom: 6px; font-weight: 600; color: var(--ld-text); }
.dl-demise { max-width: 260px; margin: 6px 0 0 26px; }
.dl-demise[hidden] { display: none; }
.dl-list { margin: 0 0 22px; }
.dl-table .dl-pos { display: block; line-height: 1.45; }
.dl-table .dl-pos i { display: inline-block; min-width: 100px; margin-right: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ld-muted); text-transform: uppercase; letter-spacing: .03em; }
.dl-table .dl-pos-none { color: var(--ld-muted); }
#dl-form { scroll-margin-top: 90px; }
.dl-list .mj-tools h5 { flex: 1 1 auto; }
.dl-list #dlSearch { max-width: 320px; }
.dl-table td { vertical-align: top; }
.dl-table td .um-sub { display: block; }
.dl-table .dl-order { width: 72px; padding: 6px 8px; text-align: center; }
.dl-table .dl-order-carried { color: var(--ld-muted); font-style: italic; }
.dl-orderbar { margin-top: 14px; align-items: center; }
.dl-yearbar { margin: 0 0 16px; }
.dl-yearshow { margin-left: auto; color: var(--ld-muted); font-size: 14px; }
.dl-posnote { font-weight: 400; font-size: 13px; color: var(--ld-muted); }
.dl-sections { margin-top: 22px; }
.dl-sections .mj-tools h5 { flex: 1 1 auto; }
.dl-seclist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dl-seclist li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--ld-line); border-radius: 10px; background: var(--ld-surface); }
.dl-seclist li > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-seclist li span:not(.dl-secorder) { font-size: 14px; color: var(--ld-muted); }
.dl-secorder { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--ld-surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.dl-nohead { color: var(--ld-muted); font-weight: 500; font-style: italic; }
.dl-span2 { grid-column: span 2; }
@media (max-width: 760px) { .dl-span2 { grid-column: auto; } }
.dl-demise label { display: block; font-weight: 600; margin: 0 0 4px; }
.ld-pdg-grid + .ld-empty, .ld-pdg-grid ~ .ld-empty { text-align: center; }
@media (max-width: 991.98px) { .ld-pdg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 575.98px) { .ld-pdg-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .ld-pdg-photo { width: 128px; height: 128px; } }

/* figure pages (multiple district, convention, past governors) */
.ld-figure { margin: 0; padding: 16px; text-align: center; }
.ld-figure img { max-width: 100%; height: auto; border-radius: var(--ld-radius-sm); }
.ld-figure-narrow { max-width: 520px; margin: 0 auto; }
.ld-figure-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }

/* circulars */
.ld-circ-cats { margin: 0 0 16px; }
.ld-circ-card { padding: 8px 22px 4px; }
.ld-circ-card .ld-fgroup { margin: 16px 0; }
.ld-circ-card .ld-subhead { font-size: 1rem; margin-bottom: 4px; }
.ld-circ { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ld-line); }
.ld-circ[hidden] { display: none; }
.ld-circ .ld-ftype { width: 34px; height: 40px; font-size: 9.5px; border-radius: 4px 10px 4px 4px; }
.ld-circ-title { font-weight: 600; }
.ld-circ-date { font-size: 13px; color: var(--ld-muted); white-space: nowrap; }
.ld-cat-gat { color: #8A4B00; }
.ld-cat-rc { color: #1E7F4F; }
.ld-cat-club { color: #7A4DB8; }

/* calendar */
.ld-cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.ld-cal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* a button that looks like a link (e.g. "copy the calendar link") */
.ld-linkbtn { display: inline; padding: 0; border: 0; background: none; color: var(--ld-blue); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ld-linkbtn:hover { text-decoration-thickness: 2px; }
.ld-linkbtn:focus-visible { outline: 2px solid var(--ld-blue); outline-offset: 2px; border-radius: 2px; }
.ld-embed { overflow: hidden; padding: 0; }
.ld-embed iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; }

/* gallery */
.ld-gal-bar { margin: 0 0 24px; }
.ld-gal { margin: 0 0 24px; overflow: hidden; }
.ld-gal-head { padding: 18px 22px; border-bottom: 3px solid var(--ld-gold); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ld-gal-head h2 { margin: 0; font: 700 1.2rem/1.35 var(--ld-font-head); }
.ld-gal-date { font-size: 14px; font-weight: 600; color: var(--ld-muted); }
.ld-gal-desc { flex-basis: 100%; margin: 4px 0 0; color: var(--ld-muted); font-size: 15px; }
.ld-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 16px; }
.ld-gal-grid a, .ld-act-media a { display: block; position: relative; overflow: hidden; border-radius: var(--ld-radius-sm); background: var(--ld-surface-2); aspect-ratio: 4 / 3; }
.ld-gal-grid img, .ld-act-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ld-gal-grid a:hover img, .ld-act-media a:hover img { transform: scale(1.04); }
.ld-gal > .ld-empty { padding: 16px 22px; }

/* photo viewer */
.ld-lightbox { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; background: rgba(5, 12, 28, .92); padding: 56px 64px; }
.ld-lightbox[hidden] { display: none; }
.ld-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.ld-lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer; }
.ld-lb-btn:hover { background: rgba(255, 255, 255, .26); }
.ld-lb-btn:focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 2px; }
.ld-lb-close { top: 12px; right: 12px; }
.ld-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ld-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.ld-lightbox.is-single .ld-lb-prev, .ld-lightbox.is-single .ld-lb-next { display: none; }
.ld-lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; color: #D2DBEC; font-size: 14px; }

/* club activity reports */
.ld-act-kinds { margin: 0 0 16px; }
.ld-acts { display: grid; gap: 20px; margin-top: 8px; }
.ld-act { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; padding: 18px; }
.ld-act-media { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start; }
.ld-act-media .is-main { grid-column: 1 / -1; }
.ld-act-media li[hidden] { display: none; }
.ld-act-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11, 31, 68, .55); color: #fff; font: 700 1.1rem var(--ld-font-head); }
.ld-act-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--ld-radius-sm); background: var(--ld-surface-2); color: var(--ld-muted); }
.ld-act-noimg .ld-ic { width: 40px; height: 40px; }
.ld-act-title { margin: 4px 0 2px; font: 700 1.2rem/1.35 var(--ld-font-head); }
.ld-act-club { margin: 0 0 12px; font-weight: 600; color: var(--ld-blue); }
.ld-act-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ld-act-facts li { padding: 6px 12px; border-radius: 999px; background: var(--ld-surface-2); font-size: 14px; color: var(--ld-muted); }
.ld-act-facts b { color: var(--ld-text); }
.ld-act-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ld-act-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ld-text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

/* one club */
.ld-club { padding: 20px 22px 4px; margin: 0 0 24px; }
.ld-club-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; }
.ld-club-head h2 { margin: 0; font: 700 1.35rem/1.3 var(--ld-font-head); }
.ld-club-facts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

@media (max-width: 767.98px) {
  .ld-fcard { flex-wrap: wrap; }
  .ld-fcard-actions { flex-basis: 100%; }
  .ld-fcard-actions .ld-btn { flex: 1 1 0; justify-content: center; }
  .ld-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ld-people { grid-template-columns: 1fr; }
  .ld-people-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ld-people-sm .ld-person { padding: 14px 10px; }
  .ld-circ-card { padding: 4px 14px; }
  .ld-circ { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
  .ld-circ .ld-ftype { grid-row: span 2; }
  .ld-circ .ld-tag, .ld-circ-date { grid-column: 2; justify-self: start; }
  .ld-circ-date { margin-top: -2px; }
  .ld-embed iframe { height: 560px; }
  .ld-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  .ld-gal-head { padding: 14px 16px; }
  .ld-act { grid-template-columns: 1fr; padding: 14px; }
  .ld-lightbox { padding: 56px 8px 48px; }
  .ld-lb-prev, .ld-lb-next { top: auto; bottom: 8px; transform: none; }
  .ld-lb-cap { bottom: 22px; }
}

/* ---------- 20. Login and sign-up ---------- */
/* desktop: title and details on the left, form on the right. phones: title, form, details. */
.ld-auth { padding: 48px 0 72px; background: linear-gradient(180deg, var(--ld-navy) 0, var(--ld-navy) 280px, var(--ld-bg) 280px); }
.ld-auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-areas: "head card" "more card"; gap: 24px 40px; align-items: start; }
.ld-auth-head { grid-area: head; color: var(--ld-on-navy); padding-top: 8px; }
.ld-auth-card { grid-area: card; padding: 28px 28px 24px; }
.ld-auth-more { grid-area: more; }
.ld-auth-head .ld-eyebrow { color: var(--ld-gold); }
.ld-auth-head h1 { margin: 6px 0 10px; font: 800 clamp(2rem, 4vw, 2.75rem)/1.1 var(--ld-font-head); color: #fff; }
.ld-auth-lead { margin: 0; font-size: 1.0625rem; max-width: 36em; }
.ld-auth-list, .ld-auth-steps { margin: 0 0 20px; padding: 22px 24px; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); color: var(--ld-text); display: grid; gap: 14px; }
.ld-auth-list { list-style: none; }
.ld-auth-list li { display: flex; gap: 12px; align-items: flex-start; }
.ld-auth-list .ld-ic { flex: 0 0 auto; width: 22px; height: 22px; color: var(--ld-blue); margin-top: 1px; }
.ld-auth-steps { padding-left: 44px; }
.ld-auth-steps li::marker { font-weight: 800; color: var(--ld-blue); }
.ld-auth-alt { margin: 0; color: var(--ld-muted); }
.ld-auth-h2 { margin: 0 0 18px; font: 700 1.375rem var(--ld-font-head); }
.ld-auth-field { margin: 0 0 18px; }
.ld-auth-field .form-label { font-weight: 600; margin-bottom: 6px; }
.ld-auth-hint { margin: 6px 0 0; font-size: 13px; color: var(--ld-muted); }
.ld-auth-pass { position: relative; }
.ld-auth-pass .ld-input { padding-right: 76px; }
.ld-auth-reveal { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 32px; padding: 4px 12px; border: 0; border-radius: 6px; background: var(--ld-surface-2); color: var(--ld-blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.ld-auth-reveal:focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 1px; }
.ld-auth-submit { width: 100%; justify-content: center; min-height: 48px; font-size: 1rem; margin-top: 4px; }
.ld-auth-help { margin: 16px 0 0; font-size: 14px; color: var(--ld-muted); }
.ld-auth-card .ld-alert { margin-bottom: 18px; }
.ld-auth-card .ld-form-actions { margin-top: 8px; padding-top: 0; border-top: 0; }
@media (max-width: 899.98px) {
  /* the navy band grows with the heading, so a long intro or a large text size never ends up white-on-light */
  .ld-auth { padding: 0 0 48px; background: var(--ld-bg); }
  .ld-auth-grid { grid-template-columns: 1fr; grid-template-areas: "head" "card" "more"; gap: 20px; }
  .ld-auth-head { margin: 0 calc(-1 * var(--ld-gutter)); padding: 28px var(--ld-gutter) 72px; background: var(--ld-navy); }
  .ld-auth-card { margin-top: -72px; padding: 22px 18px 20px; }
}

/* ---------- 21. Admin forms (the older admin pages, restyled in the new design) ----------
   These pages keep their proven forms and code; their class names (adm-*, btn-pill, mp-note ...) get the new look here,
   including dark mode. The old colour names used inside those pages map onto the new tokens. */
:root {
  --royal: var(--ld-blue); --royal-dark: var(--ld-blue-700); --gold: var(--ld-gold); --gold-soft: var(--ld-notice-bg);
  --ink: var(--ld-text); --muted: var(--ld-muted); --paper: var(--ld-bg); --line: var(--ld-line); --ld-brand: #00338D;
}
.lions-page { padding-bottom: 56px; }
.lions-page > .container, .lions-page > .container-fluid { max-width: var(--ld-container); margin-left: auto; margin-right: auto; padding-left: var(--ld-gutter); padding-right: var(--ld-gutter); }
.lions-page .adm-wrap { margin-left: auto; margin-right: auto; }
.form-group { margin-bottom: 1rem; }                       /* older name, still used in some forms */
.adm-wrap { max-width: 1000px; }
.adm-card { background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 22px 24px; margin-top: 24px; box-shadow: var(--ld-shadow); }
.adm-card h5, .adm-card .h5 { font: 700 1.125rem var(--ld-font-head); color: var(--ld-text); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.adm-card h5::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--ld-gold); }
.adm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.adm-form .full { grid-column: 1 / -1; }
.adm-form label { display: block; font-weight: 600; color: var(--ld-text); font-size: 14px; margin-bottom: 6px; }
.adm-input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--ld-line); border-radius: var(--ld-radius-sm); background: var(--ld-surface); color: var(--ld-text); font: 400 15px var(--ld-font-body); }
.adm-input:focus { outline: 3px solid var(--ld-gold); outline-offset: 1px; border-color: var(--ld-blue); }
textarea.adm-input { min-height: 96px; }
.adm-help { display: block; color: var(--ld-muted); font-size: 13px; margin-top: 4px; }
.adm-error, .adm-error span { color: var(--ld-danger); font-size: 13px; font-weight: 500; }
.adm-current { color: var(--ld-muted); font-size: 14px; }
.adm-buttons { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ld-line); display: flex; flex-wrap: wrap; gap: 10px; }
.adm-searchbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 12px; }
.adm-searchbar .adm-input { flex: 1 1 240px; max-width: 380px; }
.adm-searchbar .adm-year { flex: 0 0 170px; }      /* Lionistic year filter on the News, Events and Circulars admin pages */
/* Newsletters and directories admin page */
.adm-tabs { margin: 24px 0 20px; }
/* Cabinet posts and Cabinet planner */
.cab-yearbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 24px 0 18px; }
.cab-yearbar label { margin: 0; font-weight: 700; }
.cab-yearbar .adm-year { flex: 0 0 auto; width: auto; min-width: 210px; }
.cab-summary { color: var(--ld-muted); font-size: 13.5px; flex: 1 1 260px; }
.cab-empty p { color: var(--ld-muted); }
/* Cabinet posts: rows edited in place */
.cab-howto { margin: 0 0 12px; }
.cab-grid td { vertical-align: middle; }
.cab-grid .cab-in { margin: 0; padding: 7px 10px; min-height: 38px; }
.cab-grid .cab-in-order { width: 84px; }
.cab-grid .cab-in-seats { width: 84px; }
.cab-grid .cab-in-name { width: 100%; min-width: 220px; }
/* the Post column takes all the spare width; the others shrink to their contents */
.cab-grid th, .cab-grid td { width: 1%; white-space: nowrap; }
.cab-grid th:nth-child(2), .cab-grid td:nth-child(2) { width: auto; white-space: normal; }
.cab-grid td:last-child { text-align: right; }
.cab-grid .cab-in.is-dirty, .cab-grid tr:has(.cab-state.is-dirty) .cab-in { border-color: var(--ld-gold); }
.cab-state { display: inline-block; min-width: 92px; margin-right: 8px; font-size: 12.5px; color: var(--ld-muted); white-space: nowrap; }
.cab-state.is-ok { color: #1E7F4F; font-weight: 600; }
.cab-state.is-err { color: #9B1C1C; font-weight: 600; white-space: normal; }
.cab-state.is-busy { color: var(--ld-blue); }
.cab-state.is-dirty { color: #7A4B00; }
.cab-grid tr.cab-moved td { animation: cab-glow 2.5s ease-out; }
@keyframes cab-glow { 0%, 30% { background: #FFF4D6; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cab-grid tr.cab-moved td { animation: none; background: #FFF4D6; } }
.cab-addrow { margin-top: 18px; }
.cab-addline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cab-addline label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 13.5px; }
.cab-add-order, .cab-add-seats { flex: 0 0 96px; }
.cab-add-name { flex: 1 1 260px; }
.cab-addline .adm-input { margin: 0; }
.cab-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cab-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cab-post { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--ld-line); border-left: 4px solid #1E7F4F; border-radius: 10px; background: var(--ld-surface); }
.cab-post.is-open { border-left-color: var(--ld-gold); }
.cab-post-name { font-size: 14px; color: var(--ld-text); }
.cab-post-people { display: flex; flex-wrap: wrap; gap: 6px; }
.cab-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ld-surface-2); font-size: 12.5px; color: var(--ld-text); }
.cab-chip.is-vacant { background: transparent; border: 1px dashed var(--ld-line); color: var(--ld-muted); }
.cab-chip.is-over { background: #FDECEC; color: #9B1C1C; }
.cab-table .adm-input { min-width: 160px; }
.cab-row-post { min-width: 200px; }
.cab-table .ld-combo { min-width: 240px; }       /* searchable post box in each row */
.cab-publish p { margin: 0 0 8px; }
@media (max-width: 767.98px) { .cab-posts { grid-template-columns: minmax(0, 1fr); } }
/* Club list (LCI): number, name, region and zone edited in place; the name column takes the spare width */
.club-grid .club-in-id { width: 104px; }
.club-grid .club-in-name { width: 100%; min-width: 220px; }
.club-grid .club-in-rz { width: 170px; }
.club-add-id { flex: 0 0 130px; }
.club-add-rz { flex: 0 0 180px; }

/* Lions clubs: which year's club list is shown */
.ld-filter-note { display: block; margin-top: 6px; font-size: 13px; color: var(--ld-muted); }
.ld-pagehead-lead a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ld-pagehead-lead a:hover { color: var(--ld-gold); }
.adm-sub { display: block; color: var(--ld-muted); font-size: 12.5px; font-weight: 400; }
.adm-cover-thumb { display: block; width: 44px; height: 58px; object-fit: cover; border-radius: 4px; border: 1px solid var(--ld-line); background: var(--ld-surface-2); }
.adm-cover-thumb.is-none { background: repeating-linear-gradient(135deg, var(--ld-surface-2) 0 6px, var(--ld-bg) 6px 12px); }
.adm-cover-row { display: flex; gap: 14px; align-items: flex-start; }
.adm-cover-row > div { flex: 1 1 auto; min-width: 0; }
.adm-cover-row .adm-cover-thumb { width: 72px; height: 96px; flex: 0 0 auto; }
.adm-cover-row .adm-current { display: block; flex: 0 0 auto; width: 72px; font-size: 12px; }
.adm-table-wrap { overflow-x: auto; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.adm-table { width: 100%; border-collapse: collapse; background: var(--ld-surface); color: var(--ld-text); }
.adm-table-wrap .adm-table { border: 0; }
.adm-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ld-muted); background: var(--ld-surface); padding: 12px 14px; border-bottom: 1px solid var(--ld-line); white-space: nowrap; }
.adm-table td { padding: 11px 14px; border-top: 1px solid var(--ld-line); vertical-align: middle; font-size: 15px; }
.adm-table tr:hover td { background: var(--ld-bg); }
.adm-table a { color: var(--ld-link); font-weight: 600; text-decoration: none; }
.adm-table a:hover { text-decoration: underline; }
.adm-act { margin-right: 12px; white-space: nowrap; }
.adm-act.danger, .adm-table a.danger { color: var(--ld-danger) !important; }
.adm-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.adm-badge.on { background: #E8F5EE; color: #14532D; }
.adm-badge.off { background: var(--ld-surface-2); color: var(--ld-muted); }
.adm-badge.warn { background: #FFF4D6; color: #7A4B00; }
.adm-none { color: var(--ld-muted); }
.adm-pager td { text-align: center; padding: 12px; background: var(--ld-bg); }
.adm-pager a, .adm-pager span { display: inline-block; min-width: 32px; padding: 4px 10px; margin: 0 2px; border-radius: 6px; }
.adm-pager span { background: var(--ld-brand); color: #fff; }
.adm-denied { background: var(--ld-surface); border: 1px solid var(--ld-line); border-left: 5px solid var(--ld-danger); border-radius: var(--ld-radius); padding: 28px; margin-top: 32px; text-align: center; }
.adm-denied .ld-ic { width: 36px; height: 36px; color: var(--ld-danger); }
.adm-msg, .mp-note { display: block; border-radius: var(--ld-radius-sm); padding: 12px 16px; margin-top: 24px; font-weight: 500; border: 1px solid; }
.adm-msg.ok, .mp-note.ok { background: #E8F5EE; border-color: #A9D8BE; color: #14532D; }
.adm-msg.err, .mp-note.err { background: #FDECEA; border-color: #F2B8B5; color: #7A1A12; }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 16px; border: 1.5px solid var(--ld-line); border-radius: var(--ld-radius-sm);
  background: var(--ld-surface); color: var(--ld-link); font: 600 14px var(--ld-font-body); line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-pill:hover { border-color: var(--ld-blue); color: var(--ld-link); text-decoration: none; }
.btn-pill.primary { background: var(--ld-brand); border-color: var(--ld-brand); color: #fff; }
.btn-pill.primary:hover { background: #002566; border-color: #002566; color: #fff; }
.btn-pill.danger { color: var(--ld-danger); }
.btn-pill.danger:hover { background: var(--ld-danger); border-color: var(--ld-danger); color: #fff; }
.btn-pill.active, .btn-pill[aria-pressed="true"] { background: var(--ld-brand); border-color: var(--ld-brand); color: #fff; box-shadow: inset 0 -3px 0 var(--ld-gold); }
.btn-pill.lg { min-height: 44px; padding: 9px 22px; font-size: 15px; }
.btn-pill:focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 2px; }
.empty-state, .empty-note { color: var(--ld-muted); text-align: center; padding: 28px 16px; }
.year-picker, .search-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 12px; }
.year-picker label, .search-bar label { font-weight: 600; margin: 0; }
.year-picker select, .search-bar input { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--ld-line); border-radius: var(--ld-radius-sm); background: var(--ld-surface); color: var(--ld-text); }
.lions-page .card { border-color: var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); background: var(--ld-surface); }
.lions-page .card-body { padding: 24px; }
.lions-page label { font-weight: 600; }
.ld-photo-preview { width: 140px; height: 100px; object-fit: cover; border-radius: var(--ld-radius-sm); border: 1px solid var(--ld-line); background: var(--ld-surface-2); }
@media (max-width: 767.98px) {
  .adm-form { grid-template-columns: 1fr; }
  .adm-card { padding: 18px 16px; }
  .adm-buttons .btn-pill { flex: 1 1 auto; }
  .lions-page .card-body { padding: 18px 14px; }
}

/* ---------- 22. Address labels (print) ---------- */
.ld-labels-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.ld-labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ld-label { padding: 12px 14px; background: var(--ld-surface); border: 1px dashed var(--ld-line); border-radius: 6px; font-size: 13px; line-height: 1.45; break-inside: avoid; }
.ld-label b { font-size: 14px; }
.ld-label small { color: var(--ld-muted); }
@media print {
  @page { size: A4; margin: 4.5mm 0; }           /* 8 rows x 36 mm = 288 mm, the printable height of A4 on most printers */
  .ld-pagehead, .ld-labels-bar, .ld-fhelp { display: none !important; }
  .ld-section { padding: 0 !important; }
  .ld-wrap { max-width: none; padding: 0; }
  .ld-labels { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .ld-label { height: 36mm; padding: 4mm 6mm; border: 0; border-radius: 0; background: #fff; color: #000; font-size: 10pt; overflow: hidden; }
  .ld-label small { color: #000; }
}

/* ---------- 23. Report an activity (same look as the My reports edit form) ---------- */
.ld-rform { padding: 26px 28px; }
.ld-rform-who { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 8px; padding: 12px 16px; border-radius: var(--ld-radius-sm); background: var(--ld-surface-2); color: var(--ld-muted); font-size: 14px; }
.ld-rform-who b { color: var(--ld-text); }
.ld-rform-h2 { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; font: 700 1.125rem var(--ld-font-head); }
.ld-rform-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ld-brand); color: #fff; font-size: 14px; }
.ld-rform-hint { margin: -4px 0 8px; color: var(--ld-muted); font-size: 14px; }
.ld-rform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ld-rform-grid div:not([class*="ld-rf"]) { display: contents; }   /* the type-specific panels just pass their fields into the grid */
.ld-rf .form-label { display: block; font-weight: 600; margin-bottom: 6px; }
.ld-rf-wide { grid-column: 1 / -1; }
.ld-rf-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--ld-line); border-radius: var(--ld-radius-sm); }
.ld-rf-check .form-label { margin: 0; }
.ld-rf-check .ld-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ld-rf-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ld-brand); }
.ld-rf textarea.form-control { min-height: 140px; }
.ld-rphotos { margin-top: 16px; }
.ld-rphotos-help { margin: 0 0 12px; }
.ld-rphoto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ld-rphoto { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--ld-line); border-radius: var(--ld-radius-sm); background: var(--ld-bg); }
.ld-rphoto.is-main { border-style: solid; border-color: var(--ld-gold); }
.ld-rphoto .ld-photo-preview { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.ld-rphoto .form-label { margin: 0; font-weight: 600; font-size: 14px; }
@media (max-width: 767.98px) {
  .ld-rform { padding: 18px 14px; }
  .ld-rform-grid { grid-template-columns: 1fr; }
  .ld-rphoto-grid { grid-template-columns: 1fr; gap: 10px; }
  .ld-rphoto { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: start; }
  .ld-rphoto .ld-photo-preview { grid-row: 1 / span 2; }
  .ld-rphoto .form-control { font-size: 13px; }
}

/* ---------- 24. Today's greetings (home page) ---------- */
.ld-greet { padding: 40px 0 44px; border-bottom: 1px solid var(--ld-line);
  background:
    radial-gradient(circle at 8% 20%, rgba(235, 183, 0, .22) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 30%, rgba(0, 51, 141, .16) 0 3px, transparent 4px),
    radial-gradient(circle at 80% 85%, rgba(235, 183, 0, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 20% 90%, rgba(0, 51, 141, .14) 0 2px, transparent 3px),
    linear-gradient(180deg, var(--ld-notice-bg), var(--ld-bg)); }
.ld-greet-head { text-align: center; margin: 0 auto 8px; max-width: 640px; }
.ld-greet-head .ld-eyebrow { color: var(--ld-notice-text); }
.ld-greet-head h2 { margin: 4px 0 6px; font: 800 clamp(1.5rem, 3vw, 2rem)/1.2 var(--ld-font-head); }
.ld-greet-head p:last-child { margin: 0; color: var(--ld-muted); }
.ld-greet-h3 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 14px; font: 700 1.125rem var(--ld-font-head); }
.ld-greet-h3 .ld-ic { width: 24px; height: 24px; color: #B98F00; }
[data-theme="dark"] .ld-greet-h3 .ld-ic { color: var(--ld-gold); }
.ld-greet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
/* birthdays: the member's own photo in a gold ring */
.ld-greet-b { width: 168px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 12px 16px; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-greet-photo { position: relative; width: 96px; height: 96px; margin-bottom: 10px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--ld-surface-2); color: var(--ld-blue); font: 800 1.5rem var(--ld-font-head); border: 3px solid var(--ld-surface); box-shadow: 0 0 0 3px var(--ld-gold); }
.ld-greet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ld-greet-b b, .ld-greet-a b { font: 700 15px/1.35 var(--ld-font-head); }
.ld-greet-b small, .ld-greet-a small { font-size: 13px; color: var(--ld-muted); line-height: 1.4; }
/* anniversaries: the family photo, wide */
.ld-greet-a { width: 280px; display: flex; flex-direction: column; background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); overflow: hidden; }
.ld-greet-fam { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--ld-surface-2); color: var(--ld-muted); border-bottom: 3px solid var(--ld-gold); }
.ld-greet-fam > .ld-ic { width: 44px; height: 44px; }
.ld-greet-fam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ld-greet-a-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 16px; text-align: center; }
@media (max-width: 767.98px) {
  .ld-greet { padding: 28px 0 32px; }
  /* phones: one row that scrolls sideways */
  .ld-greet-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ld-gutter); padding: 4px var(--ld-gutter) 12px; margin: 0 calc(-1 * var(--ld-gutter)); }
  .ld-greet-list > li { flex: 0 0 auto; scroll-snap-align: start; }
  .ld-greet-b { width: 148px; }
  .ld-greet-a { width: 240px; }
}

/* ---------- 25. Searchable drop-down (site.js section 11) ---------- */
.ld-combo { position: relative; }
.ld-combo-input { padding-right: 44px; }
.ld-combo-btn { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ld-muted); cursor: pointer; }
.ld-combo-btn .ld-ic { width: 18px; height: 18px; transition: transform .15s; }
.ld-combo.is-open .ld-combo-btn .ld-ic { transform: rotate(180deg); }
.ld-combo-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; }
.ld-combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1010; max-height: min(360px, 60vh); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); box-shadow: var(--ld-shadow); }
.ld-combo-list[hidden] { display: none; }
.ld-combo-list [role="option"] { padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.ld-combo-list [role="option"]:hover, .ld-combo-list .is-active { background: var(--ld-surface-2); color: var(--ld-blue); }
.ld-combo-list [aria-selected="true"] { font-weight: 600; }
.ld-combo-none { padding: 10px 12px; color: var(--ld-muted); font-size: 14px; }
/* combo with photos (Cabinet planner: members): a round photo, or the initials, before each name */
.ld-face { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ld-surface-2); color: var(--ld-blue); font-size: 13px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--ld-line); }
.ld-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; background: var(--ld-surface); }
.ld-combo-photos .ld-combo-list [role="option"] { display: flex; align-items: center; gap: 12px; padding: 6px 10px; }
.ld-combo-photos .ld-combo-list { max-height: min(420px, 60vh); }
.ld-combo-text { min-width: 0; overflow-wrap: anywhere; }
.ld-combo-face { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; font-size: 12px; pointer-events: none; }
.ld-combo.has-face .ld-combo-input { padding-left: 46px; }
.ld-combo-input:disabled { background: var(--ld-surface-2); cursor: not-allowed; }
.ld-combo-btn:disabled { cursor: not-allowed; opacity: .5; }

/* ---------- 26. Wide people cards: family photo across the top (District leaders, District cabinet) ---------- */
.ld-people-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ld-people-wide .ld-person { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.ld-people-wide .ld-person-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; border: 0; box-shadow: none; border-bottom: 3px solid var(--ld-gold); }
.ld-people-wide .ld-person-photo img { object-position: center 30%; }    /* family photos: keep heads in view */
.ld-people-wide .ld-person-photo > .ld-ic { width: 48px; height: 48px; }
.ld-people-wide .ld-person-photo:not(:has(img)) { aspect-ratio: auto; height: 96px; }   /* no photo (or a broken one): a short strip, not a big empty box */
.ld-people-wide .ld-person-body { padding: 16px 18px 18px; }
@media (max-width: 767.98px) {
  .ld-people-wide { grid-template-columns: 1fr; gap: 16px; }
}
/* District cabinet: four cards per row on a computer, three on a small laptop, two on a tablet, one on a phone */
.ld-people-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ld-people-4 .ld-person-body { padding: 14px 14px 16px; }
.ld-people-4 .ld-person-photo:not(:has(img)) { aspect-ratio: 4 / 3; height: auto; }   /* same photo area on every card, so each row lines up */
.ld-people-4 .ld-person-name { font-size: 1rem; }
.ld-people-4 .ld-person-club, .ld-people-4 .ld-person-line, .ld-people-4 .ld-person-addr { font-size: 13.5px; }
@media (max-width: 1199.98px) { .ld-people-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .ld-people-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ld-people-4 { grid-template-columns: 1fr; } }

/* ---------- 27. Admin review fixes (Activity reports, Club projects, Contest claims) ---------- */
/* fields on white cards are white, like the other admin pages */
.form-control, .form-select { background-color: var(--ld-surface); }
.ld-nowrap { white-space: nowrap; }
.ld-label-hint { font-weight: 400; }
/* space between the month filter and an open claim, and inside a claim */
.ld-filters + .ld-card { margin-top: 24px; }
.ld-report .ld-claim-sum { margin-bottom: 24px; }
.ld-report .ld-table-wrap { margin-bottom: 24px; }
/* contest claims on a phone: "1. Club name" heads each card instead of a separate "#" line */
.ld-rank-inline { display: none; }
@media (max-width: 767.98px) {
  .ld-table td.ld-cell-rank { display: none; }
  .ld-table td.ld-cell-title::before { display: none; }
  .ld-table td.ld-cell-title { font-size: 16px; }
  .ld-rank-inline { display: inline; color: var(--ld-muted); }
}

/* ---------- Print ---------- */
@media print {
  .ld-util, .ld-header, .ld-footer, .ld-notice, .ld-hero-ctas, .ld-join { display: none !important; }
  body { background: #fff; color: #000; }
  .ld-hero { background: #fff; color: #000; }
  .ld-hero h1 { color: #000; }
}

/* ===== User accounts (usermanagement.aspx) ===== */
.um-wrap { max-width: 1180px; }
.um-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; padding: 12px 16px; background: var(--ld-surface);
  border: 1px solid var(--ld-line); border-radius: var(--ld-radius); }
.um-who p { flex: 1 1 320px; margin: 0; color: var(--ld-ink); }
.um-who label { font-weight: 600; margin: 0; }
.um-who .adm-input { width: auto; flex: 0 0 auto; min-width: 210px; }
@media (max-width: 575.98px) { .um-who .adm-input { flex: 1 1 100%; } }
.um-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .um-grid { grid-template-columns: minmax(0, 1fr); } }
.um-find { display: flex; gap: 8px; margin-bottom: 14px; }
.um-find .adm-input { flex: 1; min-width: 0; }
.um-person { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.um-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--ld-gold, #EBB700); background: var(--ld-surface-2); flex: 0 0 auto; }
.um-name { font-size: 1.15rem; font-weight: 700; color: var(--ld-ink); }
.um-sub { color: var(--ld-muted); font-size: 13.5px; }
.um-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; align-items: center; margin: 0 0 12px; }
.um-facts dt { font-weight: 600; color: var(--ld-muted); font-size: 13.5px; }
.um-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.um-note { margin: 0 0 12px; }
.um-roles { border: 1px solid var(--ld-line); border-radius: 10px; padding: 10px 14px 12px; margin: 0 0 14px; }
.um-roles legend { float: none; width: auto; font-size: 14px; font-weight: 700; color: var(--ld-blue); padding: 0 6px; margin: 0; }
.um-radio { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.um-roles input[type="radio"] { margin: 0; }
.um-roles label { margin: 0; font-weight: 400; }
.um-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.um-search .adm-input { flex: 1 1 200px; min-width: 0; }
.um-search span { color: var(--ld-muted); font-size: 13.5px; }
.um-clickhelp { display: block; margin: 0 0 10px; }
.um-scroll { max-height: 560px; overflow: auto; border-radius: 10px; }
.um-scroll .adm-table th { position: sticky; top: 0; z-index: 1; }
.um-users tbody tr { cursor: pointer; }
.um-id { font-weight: 700; }
.um-role { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ld-surface-2); color: var(--ld-ink); white-space: nowrap; }
.um-role.club_admin { background: #E6EEF9; color: #00338D; }
.um-role.district_admin { background: #EBB700; color: #1A1A1A; }
.um-role.district_governor { background: #00338D; color: #ffffff; }
.um-requests { margin-bottom: 22px; }
.um-tempbox { display: block; }
.um-temp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15em; letter-spacing: .06em; user-select: all; }
.um-delete { margin-top: 16px; padding: 12px 14px; border: 1px dashed #d9a3a3; border-radius: 10px; background: rgba(200, 40, 40, .04); }
.um-delete label { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 8px; }
.um-delete-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.um-delete-row .adm-input { flex: 0 1 180px; min-width: 0; }

/* ===== "Do you want to call?" box for phone numbers (site.js, part 12) ===== */
.ld-calldlg { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ld-calldlg[hidden] { display: none; }
.ld-calldlg-back { position: absolute; inset: 0; background: rgba(10, 20, 45, .55); }
.ld-calldlg-box { position: relative; width: min(100%, 360px); background: var(--ld-surface, #fff); color: var(--ld-ink, #14213D); border-radius: 16px;
  padding: 22px 20px 18px; box-shadow: 0 18px 50px rgba(0, 20, 60, .35); text-align: center; }
.ld-calldlg-q { margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; }
.ld-calldlg-num { margin: 0 0 18px; font-size: 1.35rem; font-weight: 800; color: var(--ld-blue, #00338D); letter-spacing: .02em; overflow-wrap: anywhere; }
.ld-calldlg-actions { display: grid; gap: 10px; }
.ld-calldlg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.ld-calldlg-btn .ld-ic { width: 20px; height: 20px; }
.ld-calldlg-btn.call { background: var(--ld-blue, #00338D); color: #fff; }
.ld-calldlg-btn.wa { background: #1FAF54; color: #fff; }
.ld-calldlg-btn.cancel { background: transparent; color: var(--ld-ink, #14213D); border-color: var(--ld-line, #D5DBE7); }
.ld-calldlg-btn:hover { filter: brightness(1.06); text-decoration: none; }
.ld-calldlg-btn:focus-visible { outline: 3px solid var(--ld-gold, #EBB700); outline-offset: 2px; }
.ld-calldlg-btn[hidden] { display: none; }
html.ld-calldlg-open { overflow: hidden; }

/* LCI data refresh: upload a LionPortal report */
.lci-upload { margin-bottom: 24px; }
.lci-upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; margin: 12px 0 10px; }
@media (max-width: 720px) { .lci-upload-grid { grid-template-columns: minmax(0, 1fr); } }
.lci-check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 12px; }

/* Contest rules (admincontestrules.aspx): questions edited in place, grouped under the form's headings */
.cr-grid .cr-in-no { width: 70px; text-align: center; }
.cr-grid .cr-in-no[readonly] { background: var(--ld-surface-2); color: var(--ld-muted); cursor: not-allowed; }
.cr-grid .cr-in-max { width: 88px; text-align: right; }
.cr-grid .cr-in-item { width: 100%; min-width: 280px; resize: vertical; line-height: 1.45; font-family: inherit; }
.cr-grid td { vertical-align: top; }
.cr-grid .cr-claims { text-align: center; padding-top: 14px; }
.cr-grid tr.cr-head th { background: var(--ld-surface-2); color: var(--ld-blue); font-weight: 700; font-size: 14.5px; padding: 10px 12px; text-align: left;
  white-space: normal; border-top: 2px solid var(--ld-gold, #EBB700); }
.cr-grid tr.cr-head th span { display: inline-block; margin-left: 10px; font-weight: 600; font-size: 12.5px; color: var(--ld-muted); }
.cr-grid td:last-child { white-space: normal; width: 170px; min-width: 150px; }
.cr-grid td:last-child .cab-state { display: block; margin-bottom: 4px; }
.cr-add-no { flex: 0 0 90px; }
.cr-add-max { flex: 0 0 120px; }

/* MJF / PMJF data (adminmjf.aspx) */
.mj-form { margin-bottom: 22px; }
.mj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 8px 0 12px; }
@media (max-width: 900px) { .mj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mj-grid { grid-template-columns: minmax(0, 1fr); } }
.mj-grid label { display: block; font-weight: 600; margin: 0 0 4px; }
.mj-lookup { display: flex; gap: 8px; }
.mj-lookup .adm-input { flex: 1; min-width: 0; }
.mj-who { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ld-blue); }
.mj-who.err { color: var(--ld-danger, #A1161E); }
.mj-who.warn { color: #8A5A00; font-weight: 500; }
.mj-check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 6px; }
.mj-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 10px; }
.mj-tools .adm-input { flex: 0 1 340px; }
.mj-person { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.mj-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: 0 0 auto; background: var(--ld-surface-2); }
.mj-person .um-sub { display: block; }
.mj-table tr.mj-demised td { opacity: .7; }
.mj-span2 { grid-column: span 2; }
.mj-span3 { grid-column: 1 / -1; }
@media (max-width: 560px) { .mj-span2 { grid-column: auto; } }
.mj-photonow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mj-photonow img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--ld-surface-2); }
.mj-photolabel { font-weight: 600; font-size: 13.5px; color: var(--ld-muted); }
.mj-yearlabel { font-weight: 600; margin: 0; }
.mj-year { flex: 0 0 auto; width: auto; min-width: 190px; }
textarea.adm-input { min-height: 0; resize: vertical; }

/* ===== Site content (adminsitecontent.aspx) ===== */
.sc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.sc-card .um-sub, .mj-table td > .um-sub { display: block; }
.sc-jump a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ld-line); background: var(--ld-surface); font-size: 14px; font-weight: 600; text-decoration: none; }
.sc-jump a:hover { border-color: var(--ld-blue); }
.sc-card { margin-bottom: 22px; scroll-margin-top: 90px; }
.sc-yearbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--ld-surface); border: 1px solid var(--ld-line); }
.sc-yearnote { font-weight: 600; color: var(--ld-blue); }
.sc-card h5[id] { scroll-margin-top: 90px; }
.sc-sub { margin: 18px 0 6px; font-weight: 700; }
.sc-label { display: block; font-weight: 600; margin: 10px 0 4px; }
.sc-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .sc-grid2 { grid-template-columns: minmax(0, 1fr); } }
.sc-pic { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin: 8px 0 4px; }
.sc-pic > div { flex: 1 1 260px; min-width: 0; }
.sc-thumb { width: 120px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--ld-surface-2); border: 1px solid var(--ld-line); }
.sc-thumb-wide { width: 300px; max-width: 100%; height: 104px; }
.sc-stats { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 8px 12px; margin: 8px 0 4px; }
.sc-stat-h { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ld-muted); }
.sc-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ld-line); }
.mj-person img.sc-rowimg { width: 64px; height: 42px; border-radius: 8px; }
.sc-file { overflow-wrap: anywhere; font-size: 14px; }
.sc-dg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--ld-surface-2); margin: 6px 0 12px; }
.sc-dg > img:first-child { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ld-gold); }
.sc-dg > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; }
.sc-dg > div span { font-size: 14px; color: var(--ld-muted); }
.sc-dglogo { width: 48px; height: 54px; object-fit: contain; }



/* ===== District projects (districtprojects.aspx) ===== */
.dp-list { display: grid; gap: 26px; }
.dp-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; overflow: hidden; padding: 0; scroll-margin-top: 90px; }
.dp-flip .dp-media { order: 2; }
.dp-media { position: relative; min-height: 280px; background: var(--ld-surface-2); }
.dp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.dp-body .ld-tag { align-self: flex-start; }
.dp-title { margin: 0; font: 700 1.35rem/1.3 var(--ld-font-head); }
.dp-body p { margin: 0; color: var(--ld-text); line-height: 1.65; }
@media (max-width: 767.98px) {
  .dp-item { grid-template-columns: minmax(0, 1fr); }
  .dp-flip .dp-media { order: 0; }
  .dp-media { min-height: 0; aspect-ratio: 16 / 9; }
  .dp-body { padding: 20px 18px 22px; }
}
.ld-subhead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ld-subhead-row .ld-subhead { margin-bottom: 0; }

/* ===== Documents and forms (documentsandforms.aspx) ===== */
.df-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.df-jump a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--ld-line); background: var(--ld-surface); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.df-jump a:hover { border-color: var(--ld-blue); }
.df-part { scroll-margin-top: 90px; margin-top: 26px; }
.df-part + .df-part { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--ld-line); }
.df-title { margin: 0 0 12px; font: 700 1.5rem/1.3 var(--ld-font-head); }


/* ===== One leader's page (leader.aspx), after the District 316D profile book ===== */
.ldp-head { padding-bottom: 18px; }
.ldp-band { margin: 6px 0 0; }
.ldp-band span { display: inline-block; padding: 8px 22px; border-radius: 6px; font: 800 clamp(1rem, 2.4vw, 1.45rem)/1.2 var(--ld-font-head); letter-spacing: .04em; text-transform: uppercase; color: #fff;
                 background: linear-gradient(90deg, #E5322D, #C4176C); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.ldp-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; align-items: start; margin-top: 6px; }
.ldp-photo { margin: 0; position: relative; z-index: 1; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 6px solid var(--ld-surface);
             box-shadow: 0 10px 30px rgba(0, 0, 0, .18); background: var(--ld-surface-2); display: flex; align-items: center; justify-content: center; color: var(--ld-muted); }
.ldp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ldp-photo > .ld-ic { width: 72px; height: 72px; }
.ldp-side { display: flex; flex-direction: column; gap: 14px; margin-left: -28px; padding-top: 10px; position: relative; z-index: 2; }
.ldp-positions { margin: 0 0 0 28px; padding: 12px 18px; background: #0B2C6E; color: #fff; text-align: center; border-radius: 4px;
                 font: 800 .98rem/1.35 var(--ld-font-head); letter-spacing: .03em; text-transform: uppercase; }
.ldp-card { padding: 18px 20px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
.ldp-name { margin: 0 0 10px; font: 800 1.3rem/1.25 var(--ld-font-head); color: #C8102E; }
.ldp-name small { font-size: .78em; font-weight: 600; color: var(--ld-muted); }
.ldp-cardgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.ldp-details { margin: 0; display: grid; gap: 4px; font-size: 14.5px; }
.ldp-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.ldp-row dt { font-weight: 700; margin: 0; }
.ldp-row dt::after { content: " :"; }
.ldp-row dd { margin: 0; overflow-wrap: anywhere; }
.ldp-slogan { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; max-width: 190px; font-size: 13px; }
.ldp-slogan img { width: 92px; height: 92px; object-fit: contain; margin-bottom: 4px; }
.ldp-slogan-label { text-transform: uppercase; color: var(--ld-muted); font-weight: 600; font-size: 12px; }
.ldp-slogan b { color: #C8102E; text-transform: uppercase; font-size: 13.5px; line-height: 1.3; }
.ldp-signin { margin: 12px 0 0; font-size: 13.5px; color: var(--ld-muted); }
.ldp-demised .ldp-photo { box-shadow: 0 0 0 3px var(--ld-gold), 0 10px 30px rgba(0, 0, 0, .18); }
.ldp-profile { margin: 34px 0 0; padding: 26px 30px; background: var(--ld-surface-2); border-radius: 14px; }
.ldp-profile h2 { margin: 0 0 16px; text-align: center; font: 700 1.3rem/1.35 var(--ld-font-head); }
.ldp-profile h2 span { color: #C8102E; }
.ldp-profile p { margin: 0 0 12px; text-align: justify; line-height: 1.7; font-size: 15.5px; }
.ldp-profile p:last-child { margin-bottom: 0; }
.ldp-sec + .ldp-sec { margin-top: 20px; }
.ldp-sec h3 { margin: 0 0 8px; font: 700 1.05rem/1.35 var(--ld-font-head); color: #0B2C6E; padding-left: 10px; border-left: 4px solid #C8102E; }
.ldp-sec p:last-child { margin-bottom: 0; }
.ldp-acts { margin-top: 36px; }
.ldp-actlist { display: grid; gap: 18px; margin-top: 12px; }
.ldp-act { padding: 18px 20px; }
.ldp-act header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ldp-act h3 { margin: 0; font: 700 1.08rem/1.35 var(--ld-font-head); }
.ldp-act-desc { margin: 8px 0 0; color: var(--ld-text); }
.ldp-act-photos { margin-top: 12px; }
.ldp-more { margin: 8px 0 0; font-size: 13.5px; color: var(--ld-muted); }
.ld-person-link { text-decoration: none; transition: transform .15s ease; }
.ld-person-link:hover, .ld-pdg-frame:hover { transform: scale(1.04); }
.ld-pdg-frame { transition: transform .15s ease; }
.ld-person-name a, .ld-pdg-name a { color: inherit; text-decoration: none; }
.ld-person-name a:hover, .ld-pdg-name a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .ldp-top { grid-template-columns: minmax(0, 1fr); }
  .ldp-side { margin: -26px 12px 0; padding-top: 0; }
  .ldp-positions { margin: 0; }
}
@media (max-width: 520px) {
  .ldp-cardgrid { grid-template-columns: minmax(0, 1fr); }
  .ldp-slogan { max-width: none; }
  .ldp-row { grid-template-columns: 92px minmax(0, 1fr); }
  .ldp-profile { padding: 20px 16px; }
  .ldp-profile p { text-align: left; }
}


/* ===== One member's page (member.aspx), opened from the club pages and the District cabinet ===== */
.mp-head { padding-bottom: 14px; }
.mp-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 30px; padding: 26px; align-items: start; }
.mp-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--ld-surface-2);
            display: flex; align-items: center; justify-content: center; color: var(--ld-muted); border: 5px solid var(--ld-surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.mp-photo > .ld-ic { width: 72px; height: 72px; }
.mp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: 1; }
.mp-name { margin: 0 0 4px; font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--ld-font-head); }
.mp-name small { font-size: .62em; font-weight: 600; color: var(--ld-muted); }
.mp-name .ld-tag { vertical-align: middle; font-size: 13px; }
.mp-club { margin: 0 0 12px; font-weight: 600; }
.mp-club a { text-decoration: none; }
.mp-roles { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-role { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; background: var(--ld-surface-2); border-left: 4px solid var(--ld-blue); }
.mp-role-cabinet { border-left-color: var(--ld-gold); }
.mp-role b { font-size: 14.5px; }
.mp-role span { font-size: 12.5px; color: var(--ld-muted); }
.mp-details { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ld-line); }
.mp-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ld-line); }
.mp-row dt { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ld-muted); font-size: 14px; }
.mp-row dt .ld-ic { width: 18px; height: 18px; flex: 0 0 auto; }
.mp-row dd { margin: 0; overflow-wrap: anywhere; }
.mp-signin { margin: 14px 0 0; font-size: 14px; color: var(--ld-muted); }
.mp-more { margin: 16px 0 0; }
@media (max-width: 767.98px) {
  .mp-card { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .mp-photo { max-width: 300px; width: 100%; margin: 0 auto; }
  .mp-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* District cabinet group tabs (districtcabinet.aspx) */
.dc-tabs { margin-bottom: 16px; }
.dc-tabs li { flex: 0 1 auto; }
.ld-people > .ld-person.dc-out { display: none; }
.cc-card { margin-bottom: 22px; }
.cc-grid th[scope="row"] { font-weight: 600; text-align: left; min-width: 180px; position: sticky; left: 0; background: var(--ld-surface); z-index: 1; }
.cc-grid th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--ld-text); }
.cc-grid th[scope="row"] .um-sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--ld-muted); }
.cc-grid .cc-cat { text-align: center; vertical-align: middle; width: 1%; min-width: 64px; padding-left: 6px; padding-right: 6px; }
.cc-grid .cc-none { color: var(--ld-muted); }
/* the grid scrolls inside its own box, so its header row (the short names) and the post column stay in view */
.cc-card .adm-table-wrap { max-height: 75vh; overflow: auto; }
.cc-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--ld-surface); box-shadow: inset 0 -1px 0 var(--ld-line); }
.cc-grid thead th:first-child { left: 0; z-index: 3; }
@media (max-width: 575.98px) { .cc-grid th[scope="row"] { min-width: 120px; font-size: 13.5px; } .cc-grid .cc-cat { min-width: 44px; padding-left: 2px; padding-right: 2px; } .cc-grid thead .cc-cat { font-size: 10.5px; letter-spacing: 0; } }
.cc-grid thead .cc-cat { font-size: 12.5px; line-height: 1.25; }
.cc-grid .cc-off { opacity: .55; }
.cc-grid input[type="radio"] { width: 20px; height: 20px; accent-color: var(--ld-blue); cursor: pointer; }
.cc-grid tbody tr:hover th, .cc-grid tbody tr:hover td { background: var(--ld-surface-2); }

/* ===================== Admin area: side menu (AdminMenu.cs, Site1.Master) and dashboard ===================== */
.ld-admin { display: grid; grid-template-columns: 252px minmax(0, 1fr); align-items: start; }
.ld-admin-main { min-width: 0; }
.ld-admin-main .ld-pagehead-admin .ld-wrap, .ld-admin-main .adm-wrap { margin-left: 0; }
.ld-admin-side { position: sticky; top: 76px; max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--ld-surface); border-right: 1px solid var(--ld-line); padding: 16px 12px 32px; font-size: 14.5px; }
.ld-admin-role { font: 700 .8125rem var(--ld-font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ld-blue);
  padding: 4px 10px 12px; border-bottom: 1px solid var(--ld-line); margin-bottom: 8px; }
.ld-admin-group { padding: 6px 0; }
.ld-admin-head { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ld-muted); padding: 8px 10px 4px; }
.ld-admin-side ul { list-style: none; margin: 0; padding: 0; }
.ld-admin-side a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--ld-radius-sm); color: var(--ld-text); text-decoration: none; line-height: 1.3; }
.ld-admin-side a .ld-ic { width: 16px; height: 16px; flex: none; color: var(--ld-muted); }
.ld-admin-side a:hover { background: var(--ld-bg); color: var(--ld-blue); }
.ld-admin-side a.is-current { background: var(--ld-blue); color: #fff; font-weight: 600; }
.ld-admin-side a.is-current .ld-ic { color: var(--ld-gold); }
[data-theme="dark"] .ld-admin-side a.is-current { background: #1D3A75; }
.ld-admin-toggle { display: none; }
.ld-admin-scrim[hidden] { display: none; }

@media (max-width: 991.98px) {
  .ld-admin { display: block; }
  .ld-admin-toggle { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 12px; bottom: 16px; z-index: 1030;
    padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ld-blue); color: #fff; font-weight: 600; box-shadow: var(--ld-shadow); }
  .ld-admin-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1045; width: min(300px, 86vw); max-height: none;
    transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 32px rgba(0, 0, 0, .25); }
  .ld-admin-side.is-open { transform: none; }
  .ld-admin-scrim { position: fixed; inset: 0; z-index: 1040; background: rgba(11, 31, 68, .45); }
}
@media (prefers-reduced-motion: reduce) { .ld-admin-side { transition: none; } }
@media print { .ld-admin { display: block; } .ld-admin-side, .ld-admin-toggle, .ld-admin-scrim { display: none !important; } }

.ld-dash-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 24px; }
.ld-dash-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--ld-surface); border: 1px solid var(--ld-line);
  border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); color: var(--ld-text); text-decoration: none; }
.ld-dash-tile:hover { border-color: var(--ld-blue); color: var(--ld-text); }
.ld-dash-label { font-size: 14px; font-weight: 600; color: var(--ld-muted); }
.ld-dash-value { font: 800 2rem/1.1 var(--ld-font-head); color: var(--ld-blue); }
.ld-dash-note { font-size: 13px; color: var(--ld-muted); }
.ld-dash-tile.is-alert { border-color: var(--ld-gold); background: var(--ld-notice-bg); }
.ld-dash-tile.is-alert .ld-dash-value { color: var(--ld-notice-text); }
.ld-dash-groups { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.ld-dash-group { background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 16px 18px; }
.ld-dash-group h2 { font: 700 1rem var(--ld-font-head); margin: 0 0 8px; }
.ld-dash-group ul { list-style: none; margin: 0; padding: 0; }
.ld-dash-group a { display: flex; align-items: center; gap: 8px; padding: 5px 0; text-decoration: none; }
.ld-dash-group a .ld-ic { width: 16px; height: 16px; color: var(--ld-muted); }

/* Cabinet address labels: whose labels to print */
.ld-labels-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 14px 16px; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); background: var(--ld-surface); }
.ld-labels-pick legend { float: left; width: 100%; margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.ld-labels-pick label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--ld-line); border-radius: 999px; cursor: pointer; font-size: 14.5px; }
.ld-labels-pick input { width: 18px; height: 18px; accent-color: var(--ld-blue); }
.ld-labels-pick label:has(input:checked) { border-color: var(--ld-blue); background: var(--ld-bg); font-weight: 600; }
.ld-label[hidden] { display: none !important; }

/* Contest rules per year: tabs, tab names, headings edited in place */
.cr-wrap { max-width: 1100px; }
.cr-hint { display: block; margin: 0 0 12px; }
.cr-tabs { margin-bottom: 16px; }
.cr-tabs .ld-tab { text-align: left; }
.cr-tabedit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; background: var(--ld-surface);
  border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); }
.cr-tabedit .adm-input { flex: 1 1 220px; width: auto; min-height: 40px; }
.cr-tabno { font-weight: 700; color: var(--ld-blue); }
.cr-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cr-headline label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ld-muted); font-weight: 600; }
.cr-headline .adm-input { min-height: 38px; padding: 6px 10px; }
.cr-grid .cr-in-head { flex: 1 1 260px; width: auto; font-weight: 700; color: var(--ld-blue); }
.cr-grid .cr-in-tab { flex: 0 0 auto; width: auto; }
.cr-headline .cab-state { min-width: 0; }
.cr-none p { margin: 0 0 10px; }
.cr-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cr-copy label { margin: 0; font-weight: 600; }
.cr-adds .adm-card { margin-top: 18px; }
.cr-add-tab { flex: 0 0 160px; }
.cr-wrap button.adm-act, .cr-wrap input[type="submit"].adm-act { padding: 0; border: 0; background: none; font: 600 14px var(--ld-font-body); text-decoration: underline; cursor: pointer; }
.cab-yearbar input[type="submit"].adm-act { margin-left: auto; }

/* Club contest claim (clubcontestclaim.aspx): same table look as Contest rules */
.ld-claim .cr-hint { margin-top: 20px; }
.ld-claim-grid td { vertical-align: middle; }
.ld-claim-grid .ld-claim-no { width: 3.5rem; text-align: center; font-weight: 700; color: var(--ld-muted); }
.ld-claim-grid .ld-claim-item { font-size: 15px; line-height: 1.5; min-width: 240px; }
.ld-claim-grid .ld-claim-max { width: 6rem; text-align: center; font-weight: 600; }
.ld-claim-grid .ld-claim-ptscell { width: 7rem; }
.ld-claim-grid .ld-claim-refcell { width: 36%; min-width: 220px; }
.ld-claim-grid .adm-input { min-height: 40px; padding: 7px 10px; }
.ld-claim-grid .ld-claim-pts { text-align: center; font-weight: 700; }
.ld-claim-grid .adm-input:disabled { background: var(--ld-surface-2); color: var(--ld-text); opacity: 1; }
.ld-claim-grid tr.cr-head th { font-family: "Plus Jakarta Sans", "Segoe UI", "Nirmala UI", "Noto Sans Telugu", Gautami, system-ui, sans-serif; }
.ld-claim-secsum { float: right; font-weight: 500 !important; color: var(--ld-muted) !important; font-size: 13px !important; }
.ld-claim-secsum b { color: var(--ld-blue); font-size: 15px; }
@media (max-width: 720px) {
  .ld-claim-grid, .ld-claim-grid tbody, .ld-claim-grid tr, .ld-claim-grid td, .ld-claim-grid th { display: block; width: auto !important; min-width: 0 !important; }
  .ld-claim-grid thead { display: none; }
  .ld-claim-grid .ld-claim-secsum { float: none; display: block; margin: 4px 0 0 !important; }
  .ld-claim-grid tr.ld-claim-tr { display: grid; grid-template-columns: 2rem 6rem minmax(0, 1fr); grid-template-areas: "no item item" "no max max" "no pts ref"; gap: 6px 10px;
    padding: 10px 12px; border-top: 1px solid var(--ld-line); }
  .ld-claim-grid tr.ld-claim-tr td { padding: 0; border: 0; }
  .ld-claim-grid .ld-claim-no { grid-area: no; text-align: left; }
  .ld-claim-grid .ld-claim-item { grid-area: item; }
  .ld-claim-grid .ld-claim-max { grid-area: max; text-align: left; font-size: 14px; }
  .ld-claim-grid .ld-claim-max small { display: inline; color: var(--ld-muted); }
  .ld-claim-grid .ld-claim-ptscell { grid-area: pts; }
  .ld-claim-grid .ld-claim-refcell { grid-area: ref; }
}

/* Member data changes (adminmemberchanges.aspx) */
.mc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.mc-head h5 { margin: 0 0 4px; }
.mc-head h5::before { display: none; }
.mc-head p { margin: 0; }
.mc-table th[scope="row"] { width: 22%; font-weight: 600; text-align: left; }
.mc-table td { width: 39%; vertical-align: top; white-space: pre-line; }
.mc-table tr.mc-changed td:last-child { background: var(--ld-notice-bg); color: var(--ld-notice-text); font-weight: 600; }
.mc-toggle { margin: 8px 0 0; padding: 0; border: 0; background: none; color: var(--ld-link); font: 600 14px var(--ld-font-body); text-decoration: underline; cursor: pointer; }
.mc-photos { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 14px; }
.mc-photo { margin: 0; padding: 10px 12px; border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); display: grid; grid-template-columns: repeat(2, 120px); gap: 6px 12px; }
.mc-photo figcaption { grid-column: 1 / -1; font-weight: 600; font-size: 14px; }
.mc-photo div span { display: block; font-size: 12px; color: var(--ld-muted); margin-bottom: 4px; }
.mc-photo div.is-new span { color: var(--ld-notice-text); font-weight: 700; }
.mc-photo img { width: 120px; height: 140px; object-fit: cover; border-radius: 8px; background: var(--ld-surface-2); }
.mc-nophoto { display: grid; place-items: center; width: 120px; height: 140px; border-radius: 8px; background: var(--ld-surface-2); color: var(--ld-muted); font-size: 13px; }
.mc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ld-line); }
.mc-actions .adm-input { flex: 1 1 260px; width: auto; }
.mc-none { margin-top: 24px; }

/* District leader data: profile title */
.dl-ptitle { margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); background: var(--ld-bg); }
.dl-ptitle > label { display: block; font-weight: 700; margin-bottom: 6px; }
.dl-ptitle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dl-ptitle-row .adm-input { flex: 1 1 320px; width: auto; }
.dl-ptitle-lion { font-weight: 600; color: var(--ld-muted); }
.dl-ptitle-lion label { margin: 0 0 0 6px; cursor: pointer; }
.dl-ptitle-lion input { width: 18px; height: 18px; vertical-align: -3px; accent-color: var(--ld-blue); }
/* District leader data: Add / Update / Delete after the profile sections, kept in view at the bottom of the screen */
.dl-savebar { position: sticky; bottom: 0; z-index: 5; margin-top: 22px; padding: 14px 16px; background: var(--ld-surface);
  border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: 0 -6px 18px rgba(11, 31, 68, .08); }

/* leader.aspx profile in Telugu fonts (loaded by leader.aspx): title, subheadings, paragraphs */
.ldp-profile h2 { font-family: "Sree Krushnadevaraya", "Plus Jakarta Sans", "Nirmala UI", Gautami, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.5; }
.ldp-profile h3, .ldp-profile p b { font-family: "Ramabhadra", "Plus Jakarta Sans", "Nirmala UI", Gautami, sans-serif; font-weight: 400; }
.ldp-profile h3 { font-size: 1.2rem; line-height: 1.5; }
.ldp-profile p { font-family: "Mallanna", "Inter", "Nirmala UI", Gautami, sans-serif; font-size: 17px; line-height: 1.8; }
.ld-admin-note { margin: 0 4px 10px; padding: 8px 10px; border-radius: var(--ld-radius-sm); background: var(--ld-notice-bg); color: var(--ld-notice-text); font-size: 13px; line-height: 1.4; }

/* ===================== Dues and payments (admindues, adminclubdues, clubdues, donate, adminpayments) ===================== */
.du-wrap { max-width: 1200px; }
.du-wide { max-width: none; }
.du-grid .adm-input, .du-clubs .adm-input { min-height: 38px; padding: 6px 9px; }
.du-grid td { vertical-align: middle; }
.du-grid td:first-child { min-width: 260px; }
.du-num { width: 5.2rem; text-align: right; }
.du-amt { width: 7.5rem; text-align: right; }
.du-chk { text-align: center; }
.du-chk input { width: 18px; height: 18px; accent-color: var(--ld-blue); }
.du-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.du-add { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ld-line); }
.du-add h6 { font-weight: 700; margin: 0 0 10px; }
.du-addline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.du-addline label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.du-add-name { flex: 1 1 260px; }
.du-form textarea { min-height: 70px; }
.du-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 6px; }
.du-search { flex: 1 1 220px; max-width: 320px; }
.du-help { display: block; margin: 4px 0 10px; }
.du-tablewrap { max-height: calc(100vh - 160px); overflow: auto; }
.du-clubs thead th { position: sticky; top: 0; z-index: 2; background: var(--ld-surface); box-shadow: inset 0 -1px 0 var(--ld-line); }
.du-clubs tfoot td, .du-clubs tfoot th { position: sticky; bottom: 0; background: var(--ld-bg); font-weight: 700; box-shadow: inset 0 1px 0 var(--ld-line); }
.du-clubs th[scope="row"] { text-align: left; font-weight: 400; min-width: 200px; }
.du-club { display: block; font-weight: 600; }
.du-r { text-align: right; white-space: nowrap; }
.du-total { font-weight: 700; }
.du-joined { display: block; font-size: 11.5px; }
.du-changed { border-color: var(--ld-gold) !important; background: var(--ld-notice-bg) !important; }
.du-differs { background: var(--ld-notice-bg); }
.du-inv { min-width: 170px; }
.du-invno { font-weight: 700; display: block; }
.du-acts { display: flex; gap: 10px; margin-top: 2px; }
.du-issue { padding: 4px 14px; min-height: 0; font-size: 13.5px; }
.du-clubs .um-sub, .pay-payer .um-sub { display: block; }

.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 22px; align-items: start; }
.pay-to { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.pay-to dt { font-weight: 500; color: var(--ld-muted); font-size: 14px; }
.pay-to dd { margin: 0; font-weight: 700; word-break: break-word; }
.pay-upi { margin: 14px 0 0; }
.pay-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 12px 0 0; }
.pay-figs div { padding: 10px 12px; border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); }
.pay-figs dt { font-size: 13px; color: var(--ld-muted); font-weight: 500; }
.pay-figs dd { margin: 2px 0 0; font: 800 1.15rem var(--ld-font-head); color: var(--ld-blue); }
.pay-figs .pay-due { border-color: var(--ld-gold); background: var(--ld-notice-bg); }
.pay-figs .pay-due dd { color: var(--ld-notice-text); }
.pay-form { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pay-donor { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; }
.pay-donor label { margin: 0 0 0 6px; font-weight: 600; }
.pay-check { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--ld-line); }
.pay-check:first-of-type { border-top: 0; }
.pay-check-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 320px; }
.pay-amt { font: 800 1.2rem var(--ld-font-head); color: var(--ld-blue); }
.pay-ref { font-family: ui-monospace, Consolas, monospace; }
.pay-check-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 1 460px; }
.pay-check-act .adm-input { flex: 1 1 220px; width: auto; }
.pay-totals { margin: 16px 0 10px; }
.um-treasurer { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ld-line); }
.um-treasurer .um-sub { display: block; margin-top: 4px; }

/* Pay to: amount and QR codes (PaymentStore.PayToHtml, scripts/js/pay.js) */
.pay-qr { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ld-line); }
.pay-amount label { display: block; font-weight: 700; margin-bottom: 6px; }
.pay-amount-row { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.pay-amount-row span { font-weight: 700; }
.pay-amount-row .adm-input { font: 700 1.25rem var(--ld-font-head); text-align: right; }
.pay-amount .um-sub { display: block; margin-top: 4px; }
.pay-codes { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 16px; }
.pay-code { margin: 0; width: 200px; text-align: center; }
.pay-code-img { width: 200px; height: 200px; padding: 8px; background: #fff; border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); display: grid; place-items: center; }
.pay-code-img svg, .pay-code-img img { width: 100%; height: 100%; object-fit: contain; }
.pay-code figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.35; }
.pay-code figcaption b { display: block; }
.pay-code figcaption span { color: var(--ld-muted); }
.pay-after { margin: 10px 0 0; }
@media (min-width: 992px) { .pay-upi { display: none; } }        /* the UPI-app button is for phones */
.ba-qr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; }
.ba-qr > div { flex: 1 1 260px; }
.ba-qr-img { width: 140px; height: 140px; object-fit: contain; background: #fff; border: 1px solid var(--ld-line); border-radius: var(--ld-radius-sm); padding: 6px; }

/* Multiple District 316: two teams */
.md-tabs { margin-bottom: 18px; }
.md-panel:focus { outline: none; }
.md-team { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; }
.md-team input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.md-team label { margin: 0; padding: 7px 14px; border: 1px solid var(--ld-line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; background: var(--ld-surface); }
.md-team input:checked + label { background: var(--ld-blue); border-color: var(--ld-blue); color: #fff; }
.md-team input:focus-visible + label { outline: 3px solid var(--ld-gold); outline-offset: 2px; }

/* donate page: hidden spam trap */
.pay-hp { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
/* donate page: verify the email first */
.pay-verify { max-width: 640px; }
.pay-verify .du-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pay-code { font-size: 1.4rem; letter-spacing: .3em; max-width: 12em; }
.pay-label { display: block; font-weight: 600; margin-bottom: 6px; }
.pay-verified { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; word-break: break-all; }
/* club page: club dues for the year (signed-in members) */
.ld-club-dues .ld-dues-total { border-color: var(--ld-blue, #00338d); }
.ld-club-dues .ld-dues-due { background: #fff4e5; border-color: #f0a640; }
.ld-club-dues .ld-dues-due dd { color: #8a4b00; font-size: 1.15rem; }
.ld-club-dues .ld-dues-clear { background: #eaf7ee; border-color: #6fbf87; }
.ld-club-dues .ld-dues-clear dd { color: #1d6b36; font-size: 1.15rem; }
.ld-dues-note { margin: -12px 0 18px; font-size: .9rem; color: var(--ld-muted); }
.ld-club-dir { margin: -8px 0 24px; }
/* view only until 1 July (next year's DG-elect / District Admin / Cabinet Treasurer) */
.ld-viewonly { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--ld-radius-sm);
               background: var(--ld-notice-bg); color: var(--ld-notice-text); border: 1px solid rgba(0, 0, 0, .08); line-height: 1.45; }
.ld-viewonly .ld-ic { flex: 0 0 auto; margin-top: 2px; }
.ld-admin-view { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 11px; line-height: 18px; font-weight: 600;
                 background: rgba(0, 0, 0, .07); color: inherit; opacity: .8; vertical-align: middle; }
.is-viewonly, .is-viewonly:hover, a.is-viewonly { opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(1); }
/* club page: district leaders on a gold card, their present district position under the name */
.ld-person.is-leader { background: linear-gradient(135deg, #fffaf0 0%, #fff1c7 100%); border-color: #e9c55a; box-shadow: inset 4px 0 0 var(--ld-gold), var(--ld-shadow); }
.ld-person-leader { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 4px; font-size: 13px; font-weight: 700; line-height: 1.35; color: #6b4d00; }
.ld-person-leader .ld-ic { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: #a67800; }
[data-theme="dark"] .ld-person.is-leader { background: linear-gradient(135deg, #3a3110 0%, #2c2408 100%); border-color: #8a6d12; }
[data-theme="dark"] .ld-person-leader { color: #f6d25c; }
[data-theme="dark"] .ld-person-leader .ld-ic { color: #f6d25c; }

/* Multiple District 316: DGs & VDGs tab (council title, three groups) */
.md-council-title { margin: 4px 0 16px; font-size: clamp(20px, 3.2vw, 26px); line-height: 1.25; color: var(--ld-blue); text-align: center; }
.md-council-title::after { content: ""; display: block; width: 72px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--ld-gold); }
.md-group + .md-group { margin-top: 28px; }
.md-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--ld-blue); }
.md-group-title::before { content: ""; flex: 0 0 6px; height: 22px; border-radius: 3px; background: var(--ld-gold); }
.md-group-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ld-line); }
.md-group-none { margin: 0; color: var(--ld-muted); font-style: italic; }
.md-group:not(:has(.ld-person:not([hidden]))):has(.ld-person) { display: none; }

/* Service activities (serviceactivities): LCI-reported activities of clubs and of the district */
.svc-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.svc-years { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.svc-years .ld-seg-btn { white-space: nowrap; }
.svc-filters { margin-bottom: 8px; }
.svc-sig { align-self: flex-end; }
.svc-overview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin: 16px 0 8px; }
.svc-panel { padding: 18px 20px; display: flex; flex-direction: column; }
.svc-panel .ld-subhead { margin: 0 0 12px; font-size: 1.05rem; }
.svc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.svc-bars a { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 9.5rem; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 6px; color: var(--ld-text); text-decoration: none; font-size: 14px; }
.svc-bars a:hover, .svc-bars a.is-on { background: var(--ld-surface-2); }
.svc-bars a.is-on .svc-bar-label { color: var(--ld-blue); font-weight: 700; }
.svc-bar { height: 10px; border-radius: 5px; background: var(--ld-surface-2); overflow: hidden; }
.svc-bar span { display: block; height: 100%; border-radius: 5px; background: var(--ld-blue); }
.svc-bars a.is-on .svc-bar span { background: var(--ld-gold); }
.svc-bar-num { color: var(--ld-muted); white-space: nowrap; font-size: 13px; text-align: right; }
.svc-bar-num b { color: var(--ld-text); }
.svc-months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; flex: 1 1 auto; min-height: 170px; max-height: 320px; }
.svc-months li { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; font-size: 11px; color: var(--ld-muted); }
.svc-month-bar { flex: 1 1 auto; width: 100%; max-width: 26px; display: flex; align-items: flex-end; }
.svc-month-bar span { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--ld-gold); }
.svc-months b { font-size: 12px; color: var(--ld-text); }
.svc-h2 { margin: 28px 0 10px; }
.svc-rank td:first-child { color: var(--ld-muted); width: 3rem; }
.svc-more { margin-top: 10px; }
.svc-more summary { cursor: pointer; font-weight: 600; color: var(--ld-blue); padding: 6px 0; }
.svc-act { display: block; }
@media (min-width: 992px) { .svc-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.svc-desc { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.svc-desc-more summary { cursor: pointer; list-style: none; }
.svc-desc-more summary::-webkit-details-marker { display: none; }
.svc-desc-more[open] summary { display: none; }
.svc-read { color: var(--ld-blue); font-weight: 600; white-space: nowrap; }
.svc-id { margin: 10px 0 0; font-size: 12px; color: var(--ld-muted); letter-spacing: .03em; }
.svc-howto { margin-top: 32px; padding: 18px 20px; border-left: 4px solid var(--ld-gold); }
.svc-howto .ld-subhead { margin: 0 0 8px; font-size: 1.05rem; }
.svc-howto p { margin: 0 0 8px; }
.svc-note { font-size: 13px; color: var(--ld-muted); }
@media (max-width: 767.98px) {
  .svc-overview { grid-template-columns: minmax(0, 1fr); }
  .svc-bars a { grid-template-columns: minmax(0, 1fr) auto; }
  .svc-bar-num { text-align: left; }
  .svc-bar { grid-column: 1 / -1; grid-row: 2; }
  .svc-months { min-height: 140px; height: 140px; }
  /* the club table stays a table on phones: #, club, activities, people served */
  .ld-table-wrap:has(.svc-rank) { background: var(--ld-surface); border: 1px solid var(--ld-line); }
  .ld-table.svc-rank { display: table; font-size: 14px; }
  .svc-rank thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .svc-rank tbody { display: table-row-group; }
  .svc-rank tr { display: table-row; border: 0; margin: 0; padding: 0; background: none; }
  .svc-rank th, .svc-rank td { display: table-cell; width: auto; padding: 8px 8px; border-bottom: 1px solid var(--ld-line); }
  .svc-rank th { font-size: 11px; white-space: normal; }
  .svc-rank td[data-label]::before { display: none; }
  .svc-rank th:nth-child(n+5), .svc-rank td:nth-child(n+5) { display: none; }
  .svc-rank td:first-child { width: 2rem; }
  .svc-months li span:last-child { font-size: 10px; }
}

/* Service photos: on the activity cards, the "In pictures" strip, the home page, and the club / review pages (sp-) */
.svc-media { margin: -4px -4px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-media .is-main a { aspect-ratio: 16 / 9; }
.svc-media li:not(.is-main) a { aspect-ratio: 16 / 9; }
.svc-pics { margin: 8px 0 4px; }
.svc-pics .ld-subhead-row { margin: 28px 0 10px; }
.svc-pics .svc-h2 { margin: 0; }
.svc-pic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc-pic-grid a, .ld-pics a { position: relative; display: block; overflow: hidden; border-radius: var(--ld-radius-sm); aspect-ratio: 4 / 3; background: var(--ld-surface-2); color: #fff; text-decoration: none; }
.svc-pic-grid img, .ld-pics img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.svc-pic-grid a:hover img, .ld-pics a:hover img { transform: scale(1.04); }
.svc-pic-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(to top, rgba(11, 31, 68, .88), rgba(11, 31, 68, 0)); display: grid; gap: 2px; font-size: 13px; line-height: 1.3; }
.svc-pic-cap b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-pic-cap span { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-pics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-club-pics { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ld-club-pics a { display: block; overflow: hidden; border-radius: var(--ld-radius-sm); aspect-ratio: 4 / 3; background: var(--ld-surface-2); }
.ld-club-pics img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991.98px) { .ld-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .svc-pic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ld-pics { gap: 10px; } }

.sp-grid { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sp-item { display: grid; gap: 8px; align-content: start; }
.sp-item.is-off .sp-img { opacity: .45; }
.sp-img { display: block; overflow: hidden; border-radius: var(--ld-radius-sm); aspect-ratio: 4 / 3; background: var(--ld-surface-2); }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sp-cover { background: var(--ld-gold); color: #0B1F44; }
.sp-note { display: block; width: 100%; font-size: 13px; color: var(--ld-muted); }
.sp-when { font-size: 12px; color: var(--ld-muted); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-none { color: var(--ld-muted); font-style: italic; }
.sp-upload { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ld-line); }
.sp-consent { align-items: flex-start; gap: 8px; }
.sp-review { margin-bottom: 20px; }
.sp-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sp-review-head .ld-admin-h2 { margin-bottom: 2px; }
.sp-club { margin: 0; font-weight: 600; color: var(--ld-blue); }
.sp-desc { margin: 8px 0 0; font-size: 14px; color: var(--ld-muted); }
.sp-note-row { display: grid; gap: 4px; }
.sp-modes { margin: 0 0 16px; }

/* ---------- Regions and zones (adminregionszones, regionszones) ---------- */
.rz-bar, .rz-pub-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin: 0 0 16px; }
.rz-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rz-stats li { padding: 8px 14px; border-radius: 999px; background: var(--ld-surface-2); border: 1px solid var(--ld-line); font-size: 14px; color: var(--ld-muted); }
.rz-stats li b { color: var(--ld-text); font-size: 16px; margin-right: 2px; }
.rz-stats li.is-ok { border-color: var(--ld-success); }
.rz-stats li.is-short { border-color: var(--ld-danger); }
.rz-downloads { display: flex; gap: 8px; margin-left: auto; }
.rz-step { margin: 0 0 22px; }
.rz-step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.rz-step-head .ld-admin-h2 { margin: 0; }
.rz-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: var(--ld-gold); color: #0B1F44; font-size: 15px; vertical-align: 2px; }
.rz-structure { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; margin: 0 0 10px; }
.rz-radios { display: flex; gap: 18px; padding: 8px 0; }
.rz-radios label { margin-left: 6px; }
.rz-small { width: 96px; }
.rz-perregion { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.rz-perregion:empty { display: none; }
.rz-pr { display: grid; gap: 4px; font-size: 13px; color: var(--ld-muted); }
[hidden].rz-if-regions, [hidden].rz-if-zones { display: none !important; }
.rz-region { margin: 0 0 18px; padding: 0; overflow: hidden; }
.rz-region-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; padding: 16px 20px; background: var(--ld-navy); color: var(--ld-on-navy); }
.rz-region-head label { color: var(--ld-on-navy); }
.rz-region-head .rz-count { color: var(--ld-on-navy-strong); margin-left: auto; }
.rz-region-title { margin: 0 8px 6px 0; font-size: 20px; color: var(--ld-on-navy-strong); }
.rz-chair { flex: 1 1 260px; min-width: 0; }
.rz-chair select { width: 100%; }
.rz-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; padding: 16px; }
.rz-region.is-plain .rz-zones { padding: 16px; }
.rz-zone { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--ld-line); border-left: 4px solid var(--ld-gold); border-radius: var(--ld-radius-sm); background: var(--ld-surface); }
.rz-zone-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rz-zone-title { margin: 0; font-size: 17px; color: var(--ld-blue); }
.rz-zone-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.rz-zone-fields .rz-chair { grid-column: 1 / -1; }
.rz-count { font-size: 13px; font-weight: 600; color: var(--ld-muted); white-space: nowrap; }
.rz-count.is-ok { color: var(--ld-success); }
.rz-count.is-short { color: #a15c00; }
.rz-count.is-over { color: var(--ld-danger); }
.rz-clubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.rz-clubs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 4px 5px 10px; border-radius: 6px; background: var(--ld-surface-2); font-size: 14px; }
.rz-x { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ld-danger); font-size: 18px; line-height: 1; text-decoration: none; }
.rz-x:hover, .rz-x:focus-visible { background: var(--ld-danger); color: #fff; }
.rz-add { display: flex; gap: 8px; }
.rz-add select { flex: 1 1 auto; min-width: 0; }
.rz-save { display: flex; justify-content: flex-end; margin: 0 0 8px; }
/* public page */
.rz-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.rz-jump a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ld-line); background: var(--ld-surface); font-size: 14px; text-decoration: none; }
.rz-jump a:hover { border-color: var(--ld-gold); }
.rz-pub-region { margin: 0 0 30px; scroll-margin-top: 90px; }
.rz-pub-region-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 18px 22px; margin: 0 0 14px; border-radius: var(--ld-radius); background: var(--ld-navy); color: var(--ld-on-navy); }
.rz-pub-region-head h2 { margin: 0; color: var(--ld-on-navy-strong); font-size: 24px; }
.rz-pub-region-head p { margin: 2px 0 0; }
.rz-pub-region-head .rz-person small, .rz-pub-region-head .rz-person span span { color: var(--ld-on-navy); }
.rz-pub-region-head .rz-person b { color: var(--ld-on-navy-strong); }
.rz-pub-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.rz-pub-zone { display: grid; gap: 12px; align-content: start; padding: 18px; border-top: 4px solid var(--ld-gold); }
.rz-pub-zone h3 { margin: 0; font-size: 18px; color: var(--ld-blue); }
.rz-pub-zone h3 small { font-size: 13px; font-weight: 600; color: var(--ld-muted); margin-left: 4px; }
.rz-person { display: flex; align-items: center; gap: 12px; }
.rz-person .ld-person-photo { width: 56px; height: 56px; }
.rz-person .ld-person-photo > .ld-ic { width: 24px; height: 24px; }
.rz-person > span:last-child { display: grid; line-height: 1.3; }
.rz-person small { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ld-muted); }
.rz-person span span { font-size: 13px; color: var(--ld-muted); }
.rz-tbn { font-style: italic; font-weight: 400; }
.rz-pub-clubs { margin: 0; padding: 10px 0 0 22px; border-top: 1px solid var(--ld-line); display: grid; gap: 3px; font-size: 14px; }
@media (max-width: 575.98px) {
  .rz-zones, .rz-pub-zones { grid-template-columns: 1fr; padding: 12px; }
  .rz-pub-zones { padding: 0; }
  .rz-zone-fields { grid-template-columns: 1fr; }
  .rz-downloads { margin-left: 0; }
  .rz-region-head .rz-count { margin-left: 0; }
}
.rz-add { flex-direction: column; align-items: stretch; }
.rz-add .ld-btn { align-self: flex-start; }
.rz-add select[multiple] { padding: 4px; }
.rz-radios-v { flex-direction: column; gap: 6px; padding: 4px 0 0; }
.rz-radios-v span { display: flex; align-items: flex-start; gap: 6px; }
.rz-numbering { margin: 4px 0 10px; }
/* Regions and zones: a family photo in a small rectangle (the circle would cut people off) */
.rz-person .ld-person-photo.is-wide { width: 92px; height: 64px; border-radius: 10px; }
.rz-person .ld-person-photo.is-wide img { object-fit: cover; object-position: center 30%; }

/* ---------- Region / zone dashboard (chairdashboard), member photos for awards (memberphotoszip), Web Admins ---------- */
.cz-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin: 0 0 16px; }
.cz-reports { margin: 0 0 18px; }
.cz-rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.cz-rep-grid h3 { margin: 0 0 8px; font-size: 15px; }
.cz-rep-grid .ld-btn { margin: 0 6px 6px 0; }
.cz-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 0 0 14px; }
.cz-club { display: grid; gap: 10px; align-content: start; padding: 16px 18px; border-top: 4px solid var(--ld-gold); }
.cz-club-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cz-club-head h3 { margin: 0; font-size: 17px; }
.cz-club-head h3 a { text-decoration: none; color: var(--ld-blue); }
.cz-officers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.cz-officers small { display: inline-block; min-width: 76px; color: var(--ld-muted); }
.cz-tel { white-space: nowrap; margin-left: 4px; }
.cz-facts { margin: 0; display: grid; gap: 6px; }
.cz-facts > div { display: grid; grid-template-columns: 86px 1fr; gap: 8px; padding: 6px 10px; border-radius: 6px; background: var(--ld-surface-2); border-left: 3px solid var(--ld-line); font-size: 14px; }
.cz-facts > div.is-ok { border-left-color: var(--ld-success); }
.cz-facts > div.is-short { border-left-color: var(--ld-danger); }
.cz-facts dt { font-weight: 700; }
.cz-facts dd { margin: 0; }
.cz-facts small { color: var(--ld-muted); }
.cz-links { margin: 0; font-size: 13px; }
.mp-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin: 0 0 16px; }
.mp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mp-tools .ld-input { width: 200px; }
.mp-club { margin: 0 0 22px; }
.mp-club h2 small { font-weight: 600; margin-left: 6px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mp-member { padding: 10px; display: grid; gap: 8px; }
.mp-member[hidden] { display: none; }
.mp-name { margin: 0; font-size: 14px; line-height: 1.3; }
.mp-name small { color: var(--ld-muted); }
.mp-photos { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.mp-pick { position: relative; display: grid; gap: 4px; justify-items: center; padding: 6px; border: 2px solid var(--ld-line); border-radius: 8px; cursor: pointer; font-size: 12px; color: var(--ld-muted); }
.mp-pick input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--ld-blue); }
.mp-pick img { width: 100%; height: 86px; object-fit: cover; border-radius: 4px; }
.mp-pick:has(input:checked) { border-color: var(--ld-blue); background: var(--ld-surface-2); }
.mp-pick.is-none { cursor: default; opacity: .55; }
.mp-none { display: flex; align-items: center; justify-content: center; width: 100%; height: 86px; border-radius: 4px; background: var(--ld-surface-2); }
.mp-send { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 12px 16px; margin: 8px 0 0; background: var(--ld-surface); border-top: 1px solid var(--ld-line); box-shadow: 0 -4px 12px rgba(0,0,0,.06); z-index: 5; }
.um-webadmins { margin-top: 18px; }
.um-wa-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.um-wa-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--ld-line); border-radius: 6px; }
@media (max-width: 575.98px) { .cz-clubs, .mp-grid { grid-template-columns: 1fr; } .mp-tools .ld-input { width: 100%; } }
.mp-naming { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 8px 0 0; padding: 14px 18px; border: 1px solid var(--ld-line); }
.mp-naming legend { font-weight: 700; padding: 0 6px; }
.mp-naming label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.mp-naming small { color: var(--ld-muted); }
.mp-naming .form-text { flex-basis: 100%; margin: 0; }
/* club member list and photos (clubmembersexport) */
.cx-club { margin: 0 0 16px; max-width: 420px; }
.cx-card { display: grid; gap: 14px; }
.cx-card .ld-admin-h2 { margin: 0; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- About pages: tab strip (AboutTabs), history (about), IPs & IDs (ipsids, dignitary), editing (admincontentpages) ---------- */
.ld-about-tabs { background: var(--ld-surface); border-bottom: 1px solid var(--ld-line); position: relative; z-index: 2; }
.ld-about-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ld-about-tabs a { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px 11px; white-space: nowrap; font-size: 14.5px; font-weight: 600;
                   color: var(--ld-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.ld-about-tabs a:hover { color: var(--ld-text); border-bottom-color: var(--ld-line); }
.ld-about-tabs a.is-current { color: var(--ld-blue); border-bottom-color: var(--ld-gold); }
.ld-about-tabs .ld-ic { width: 13px; height: 13px; }
.cp-wrap { max-width: 980px; }
.cp-edit { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 0 0 10px; }
.cp-article, .cp-profile { padding: 24px 28px; }
.cp-panel { padding-top: 6px; }
.cp-section { margin: 0 0 22px; overflow: hidden; }
.cp-section h2 { font-size: 20px; margin: 0 0 8px; color: var(--ld-blue); }
.cp-section p, .cp-section li { line-height: 1.7; }
.cp-section-photo { float: right; width: min(42%, 340px); margin: 4px 0 12px 20px; border-radius: 10px; }
.cp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cp-person { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px; align-items: start; }
.cp-person-photo { position: relative; display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 50%;
                   overflow: hidden; background: var(--ld-surface-2); border: 3px solid var(--ld-gold); color: var(--ld-muted); }
.cp-person-photo > .ld-ic { width: 40px; height: 40px; }
.cp-person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cp-person-photo.is-wide { border-radius: 12px; height: 80px; }
.cp-person-body h2 { margin: 2px 0 4px; font-size: 19px; }
.cp-person-body h2 a { text-decoration: none; color: var(--ld-text); }
.cp-meta { margin: 0 0 6px; font-size: 13.5px; color: var(--ld-muted); }
.cp-summary { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; }
.cp-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.cp-profile-head { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--ld-line); }
.cp-profile-photo { width: 160px; height: 160px; }
.cp-profile-photo.is-wide { height: 116px; }
.cp-profile-head h2 { margin: 2px 0 6px; font-size: 26px; }
.cpa-kinds { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--ld-line); }
.cpa-kinds a { padding: 10px 14px; font-weight: 600; text-decoration: none; color: var(--ld-muted); border-bottom: 3px solid transparent; }
.cpa-kinds a.is-current { color: var(--ld-blue); border-bottom-color: var(--ld-gold); }
.cpa-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.cpa-layout.is-single { grid-template-columns: 1fr; }
.cpa-list { padding: 12px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
.cpa-add { width: 100%; margin: 0 0 10px; text-align: center; }
.cpa-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cpa-list li a { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ld-text); }
.cpa-list li a span { display: grid; line-height: 1.25; }
.cpa-list li a small { color: var(--ld-muted); font-size: 12px; }
.cpa-list li.is-current a, .cpa-list li a:hover { background: var(--ld-surface-2); }
.cpa-thumb { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.cpa-edit { display: grid; gap: 16px; }
.cpa-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.cpa-head .ld-admin-h2 { margin: 0; }
.cpa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.cpa-wide { grid-column: 1 / -1; }
.cpa-small { max-width: 120px; }
.cpa-check { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 14px; }
.cpa-body { min-height: 220px; font-family: inherit; line-height: 1.55; }
.cpa-photo { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.cpa-photo-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cpa-sections { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.cpa-sections li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--ld-line); border-radius: 8px; }
.cpa-sections li div { display: grid; min-width: 0; }
.cpa-sections li small { color: var(--ld-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpa-sec-actions { display: flex; gap: 10px; font-size: 14px; }
.cpa-secform { border-top: 1px solid var(--ld-line); padding-top: 14px; }
.cpa-secform h3 { margin: 0 0 10px; font-size: 17px; }

/* ---------- Lions clubs: grid of all clubs, About our club ---------- */
.lc-grid-wrap { margin: 0 0 18px; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); background: var(--ld-surface); }
.lc-grid-wrap > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 16px; color: var(--ld-blue); list-style-position: inside; }
.lc-grid-find { padding: 0 18px 10px; }
.lc-grid-find .ld-input { max-width: 340px; }
.lc-grid { list-style: none; margin: 0; padding: 0 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 520px; overflow: auto; }
.lc-grid li[hidden] { display: none; }
.lc-grid a { display: grid; gap: 2px; padding: 9px 12px; border: 1px solid var(--ld-line); border-left: 3px solid var(--ld-gold); border-radius: 8px; text-decoration: none;
             color: var(--ld-text); background: var(--ld-surface-2); height: 100%; }
.lc-grid a:hover, .lc-grid li.is-current a { border-color: var(--ld-blue); }
.lc-grid b { font-size: 14.5px; }
.lc-grid span { font-size: 13px; color: var(--ld-muted); display: flex; align-items: center; gap: 4px; }
.lc-grid span .ld-ic { width: 13px; height: 13px; }
.lc-grid small { font-size: 12px; color: var(--ld-muted); }
.lc-intro { max-width: 820px; margin: 0 0 18px; }
.lc-intro p, .lc-intro li { line-height: 1.7; }
.lc-projects { margin-top: 10px; }
@media (max-width: 860px) {
  .cpa-layout { grid-template-columns: 1fr; }
  .cpa-list { position: static; max-height: none; }
}
@media (max-width: 575.98px) {
  .cp-person { grid-template-columns: 80px 1fr; }
  .cp-person-photo { width: 80px; height: 80px; }
  .cp-profile-head { grid-template-columns: 1fr; justify-items: start; }
  .cp-article, .cp-profile { padding: 16px; }
  .cp-section-photo { float: none; width: 100%; margin: 0 0 12px; }
  .cpa-grid { grid-template-columns: 1fr; }
  .cpa-sections li { grid-template-columns: 1fr; }
}
/* Find a club (findclub) */
.fc-bar { align-items: flex-end; }
.fc-grid { max-height: none; overflow: visible; padding: 0; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* club links (lionsclub "About our club") and approving them (adminclubprofiles) */
.lc-where { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--ld-muted); font-weight: 600; }
.lc-where .ld-ic { width: 16px; height: 16px; }
.lc-links { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ld-line);
              background: var(--ld-surface); font-size: 14px; font-weight: 600; text-decoration: none; }
.lc-links a:hover { border-color: var(--ld-blue); }
.lc-links .ld-ic { width: 16px; height: 16px; }
.cpr-list { display: grid; gap: 16px; }
.cpr-item { padding: 18px 20px; }
.cpr-fields { margin: 0 0 14px; display: grid; gap: 8px; }
.cpr-field { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--ld-surface-2); }
.cpr-field.is-changed { border-left: 3px solid var(--ld-gold); }
.cpr-field dt { font-weight: 700; }
.cpr-field dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cpr-field dd p { margin: 0 0 6px; }
.cpr-field details { margin-top: 6px; font-size: 13px; color: var(--ld-muted); }
.cpr-decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cpr-decide .ld-input { flex: 1 1 280px; }
@media (max-width: 575.98px) { .cpr-field { grid-template-columns: 1fr; } }

/* ---------- Become a club member (joinlions), Be a blood donor (blooddonor), Blood Centre (bloodcentre) and their admin pages ---------- */
.vf-wrap { max-width: 860px; }
.vf-form { padding: 22px 24px; }
.vf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vf-req { color: var(--ld-danger); }
.vf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.vf-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--ld-blue); }
.vf-done { padding: 26px 28px; border-top: 4px solid var(--ld-gold); margin: 0 0 16px; }
.vf-done h2 { margin: 0 0 8px; color: var(--ld-blue); }
.vf-light { color: inherit; text-decoration: underline; }
.bc-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bc-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 0 20px; }
.bc-photo { width: 100%; border-radius: 12px; display: block; }
.bc-address { display: flex; gap: 8px; align-items: flex-start; margin: 0; line-height: 1.55; }
.bc-address .ld-ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ld-blue); flex: none; }
.bc-donate { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; padding: 20px 24px;
             border-left: 4px solid var(--ld-danger); }
.bc-donate h2 { margin: 0 0 4px; font-size: 20px; }
.bc-donate p { margin: 0; }
.jr-list { display: grid; gap: 14px; }
.jr-item { padding: 16px 20px; border-left: 4px solid var(--ld-line); }
.jr-item.jr-new { border-left-color: var(--ld-gold); }
.jr-item.jr-joined { border-left-color: var(--ld-success); }
.jr-facts { margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.jr-facts > div { display: grid; gap: 1px; }
.jr-facts dt { font-size: 12px; color: var(--ld-muted); text-transform: uppercase; letter-spacing: .03em; }
.jr-facts dd { margin: 0; overflow-wrap: anywhere; }
.jr-facts .jr-wide { grid-column: 1 / -1; }
.jr-decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jr-decide .ld-input { width: auto; }
.jr-decide input.ld-input { flex: 1 1 260px; }
.bd-groups { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bd-groups a { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ld-line); background: var(--ld-surface);
               text-decoration: none; color: var(--ld-text); font-weight: 600; }
.bd-groups a.is-current { border-color: var(--ld-danger); background: #fdecec; }
.bd-groups b { color: var(--ld-danger); }
.bd-filters { align-items: center; }
.bd-table-wrap { overflow-x: auto; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); background: var(--ld-surface); }
.bd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bd-table th, .bd-table td { padding: 9px 12px; border-bottom: 1px solid var(--ld-line); text-align: left; vertical-align: top; }
.bd-table th { font-size: 12.5px; color: var(--ld-muted); background: var(--ld-surface-2); }
.bd-table td small { display: block; color: var(--ld-muted); font-size: 12.5px; }
.bd-table tr.is-paused td { opacity: .55; }
.bd-group { display: inline-block; min-width: 38px; padding: 2px 8px; border-radius: 6px; background: #fdecec; color: var(--ld-danger); font-weight: 700; text-align: center; }
.bd-ok { color: var(--ld-success); font-size: 12.5px; }
.bd-wait, .bd-private { color: var(--ld-muted); font-size: 12.5px; }
.bd-actions { white-space: nowrap; }
.bd-actions a { margin-right: 10px; }
@media (max-width: 700px) { .bc-top { grid-template-columns: 1fr; } }
/* District leaders: a Governor's DG year, logo and theme (shown instead of the address to visitors) */
.ld-dgcard { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ld-surface-2); border-left: 3px solid var(--ld-gold); }
.ld-dgcard-logo { width: 54px; height: 54px; object-fit: contain; flex: none; border-radius: 6px; background: #fff; }
.ld-dgcard p { margin: 0; }
.ld-dgcard-year { font-weight: 700; font-size: 14px; color: var(--ld-blue); }
.ld-dgcard-theme { font-style: italic; font-size: 14px; line-height: 1.4; }
