:root {
  --s48-gray: #808080;
  --s48-gray-dark: #5a5a5a;
  --s48-gray-light: #f4f4f4;
  --s48-text: #1b1b1b;
  --s48-white: #ffffff;
  --s48-accent: #2f2f2f;
  --s48-max: 1200px;
  --s48-radius: 8px;
  --s48-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--s48-text);
  background: var(--s48-gray-light);
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  background: var(--s48-gray);
  color: var(--s48-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header-inner,
.site-main,
.site-footer-inner {
  max-width: var(--s48-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1rem;
  min-height: 80px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-header-login-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  color: var(--s48-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header-login-btn:hover,
.site-header-login-btn.active {
  background: rgba(255, 255, 255, 0.16);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.site-brand img {
  height: 60px;
  width: auto;
  display: block;
}

.site-brand span {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.08rem;
  white-space: nowrap;
  line-height: 1.15;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: inherit;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav-toggle-bars::before { top: -6px; }
.site-nav-toggle-bars::after { top: 6px; }

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bars {
  background: transparent;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.85rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.84rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--s48-white);
}

.site-main {
  padding: 2rem 1.25rem 3rem;
}

.hero {
  background: linear-gradient(180deg, #8f8f8f 0%, var(--s48-gray) 100%);
  color: var(--s48-white);
  border-radius: var(--s48-radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--s48-shadow);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.hero p {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  font-size: 1.05rem;
}

.content-card {
  background: var(--s48-white);
  border-radius: var(--s48-radius);
  padding: 2rem;
  box-shadow: var(--s48-shadow);
}

.content-card h2 {
  margin-top: 0;
  color: var(--s48-gray-dark);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  border: none;
  background: var(--s48-white);
  color: var(--s48-accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(0.95); }

.btn-primary {
  background: var(--s48-accent);
  color: var(--s48-white);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field select {
  appearance: auto;
  cursor: pointer;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.9rem;
  color: #555;
}

.form-banner {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.form-banner.error { background: #fde8e8; color: #8a1f1f; }
.form-banner.success { background: #e8f6ea; color: #1f6a2d; }
.form-banner.info { background: #eef4ff; color: #1f3f7a; border: 1px solid #c8d9f5; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--s48-accent);
  color: #ddd;
  padding: 2rem 0;
  margin-top: 2rem;
}

.site-footer a { color: #fff; }

.site-footer-admin {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  opacity: 0.65;
}

.site-footer-admin a {
  color: #ccc;
  text-decoration: none;
}

.site-footer-admin a:hover {
  color: #fff;
  text-decoration: underline;
}

.confirm-dialog {
  border: none;
  border-radius: var(--s48-radius);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 2rem);
  box-shadow: var(--s48-shadow);
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.confirm-dialog-body {
  padding: 1.5rem;
}

.confirm-dialog-body h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--s48-gray-dark);
}

.confirm-dialog-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #444;
}

.confirm-dialog-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.confirm-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #333;
}

.confirm-checkbox-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.confirm-checkbox-row a {
  color: var(--s48-gray-dark);
  font-weight: 600;
}

.confirm-dialog-error {
  color: #8a1f1f;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.legal-page h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--s48-gray-dark);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  color: var(--s48-gray-dark);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-home-links {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.admin-portal-btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--s48-gray-dark);
  border-radius: var(--s48-radius);
  background: var(--s48-white);
  color: var(--s48-accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-portal-btn:hover {
  border-color: var(--s48-accent);
  background: var(--s48-gray-light);
  color: var(--s48-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.admin-portal-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

.admin-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pending { background: #f0f0f0; color: #444; }
.status-needs_info { background: #fff3cd; color: #7a5b00; }
.status-in_review { background: #e8eef8; color: #1c3f73; }
.status-board_review { background: #ede7f6; color: #4a2c7a; }
.status-board_vote { background: #fce4ec; color: #7a1f3d; }
.status-closed { background: #e8f5e9; color: #2e6b3f; }

.member-status-panel {
  border: 3px solid #1b1b1b;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #f5f5f5;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.member-status-panel .member-status-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.member-status-panel .member-status-value {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1b1b1b;
}

.member-status-panel .member-status-help {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
}

.member-status-panel.status-pending { background: #f3f3f3; border-color: #6b6b6b; }
.member-status-panel.status-needs_info { background: #fff8e1; border-color: #b8860b; }
.member-status-panel.status-in_review { background: #e8f1fb; border-color: #1c3f73; }
.member-status-panel.status-board_review { background: #f3ecfb; border-color: #4a2c7a; }
.member-status-panel.status-board_vote { background: #fdebf1; border-color: #7a1f3d; }
.member-status-panel.status-closed { background: #e9f6ec; border-color: #2e6b3f; }

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #f5f5f5;
  border: 2px solid #bdbdbd;
  border-radius: var(--s48-radius);
}

.admin-action-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.25rem;
  border: 3px solid #1b1b1b;
  border-radius: var(--s48-radius);
  background: #ececec;
  color: var(--s48-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-action-btn:hover {
  border-color: #000000;
  background: #dedede;
  color: #000000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 5px 14px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  filter: none;
}

.admin-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.14);
}

.admin-action-btn-primary {
  border-color: #000000;
  background: var(--s48-accent);
  color: var(--s48-white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 3px 10px rgba(0, 0, 0, 0.25);
}

.admin-action-btn-primary:hover {
  border-color: #000000;
  background: var(--s48-text);
  color: var(--s48-white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 5px 14px rgba(0, 0, 0, 0.3);
}

.admin-table tbody a {
  font-weight: 600;
  text-decoration: none;
}

.admin-table tbody a:hover {
  text-decoration: underline;
}

.admin-list-pane {
  border: 2px solid #d0d0d0;
  border-radius: var(--s48-radius);
  background: #fafafa;
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 1.25rem;
}

.admin-list-pane:last-child {
  margin-bottom: 0;
}

.admin-list-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-list-pane-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-list-pane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.15rem 0.55rem;
  border: 2px solid #bdbdbd;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: #444;
}

.request-card {
  border: 1px solid #e5e5e5;
  border-radius: var(--s48-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.request-card-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.request-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
}

.request-details div {
  margin: 0;
}

.request-details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin-bottom: 0.15rem;
}

.request-details dd {
  margin: 0;
}

.message-list {
  display: grid;
  gap: 0.75rem;
}

.message-card {
  border: 1px solid #e5e5e5;
  border-radius: var(--s48-radius);
  padding: 0.85rem 1rem;
  background: #fafafa;
}

.message-card.message-admin {
  border-color: #d6e4ff;
  background: #f5f8ff;
}

.message-meta {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: #666;
}

.message-body {
  margin: 0;
  white-space: pre-wrap;
}

.vote-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.vote-approve { background: #e8f5e9; color: #1f5f2d; }
.vote-deny { background: #ffebee; color: #7a1f1f; }
.vote-abstain { background: #f0f0f0; color: #444; }

.vote-panel {
  padding: 1rem;
  background: #f5f5f5;
  border: 2px solid #bdbdbd;
  border-radius: var(--s48-radius);
  margin-bottom: 1.25rem;
}

.vote-tally-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vote-tally-card {
  border: 2px solid #bdbdbd;
  border-radius: var(--s48-radius);
  background: #fff;
  padding: 0.85rem 1rem;
  text-align: center;
}

.vote-tally-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #1b1b1b;
}

.vote-tally-card span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 2px solid #d0d0d0;
  border-radius: var(--s48-radius);
  background: #fafafa;
  padding: 0.75rem 1rem;
}

.file-list a {
  font-weight: 700;
  text-decoration: none;
}

.file-list a:hover {
  text-decoration: underline;
}

.file-meta {
  font-size: 0.82rem;
  color: #666;
}

.testimonials-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial-card {
  border: 2px solid #d0d0d0;
  border-radius: var(--s48-radius);
  background: #fafafa;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-name {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--s48-accent);
}

.testimonial-quote {
  margin: 0;
  line-height: 1.65;
  color: #333;
}

.staff-intro {
  margin: 0 0 1.5rem;
  max-width: 48rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.staff-card {
  border: 2px solid #d0d0d0;
  border-radius: var(--s48-radius);
  background: #fafafa;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.staff-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e8e8e8;
}

.staff-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.staff-card-body h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  color: var(--s48-accent);
}

.staff-role {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.staff-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.staff-card-vacant-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #ececec 0%, #d8d8d8 100%);
  color: #666;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.events-intro {
  margin: 0 0 1rem;
  max-width: 48rem;
}

.events-calendar-embed {
  border: 2px solid #d0d0d0;
  border-radius: var(--s48-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.events-calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.event-card {
  border: 2px solid #d0d0d0;
  border-radius: var(--s48-radius);
  background: #fafafa;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.event-card img,
.event-card-cover-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8e8e8;
}

.event-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
}

.event-card-body h2,
.event-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--s48-accent);
}

.event-card-when,
.event-card-where {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.event-card-when {
  font-weight: 700;
}

.event-card-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

/* Homepage */
.home-page {
  background: #ebebeb;
}

.home-page .site-main {
  padding: 0;
  max-width: none;
}

.home-body {
  max-width: var(--s48-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  min-height: 500px;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(12, 12, 12, 0.92) 0%, rgba(35, 35, 35, 0.78) 42%, rgba(75, 75, 75, 0.5) 100%),
    url("/assets/images/home/hero.jpg") center 28% / cover no-repeat;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--s48-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  padding: 3.25rem 0 2.75rem;
  min-height: 500px;
}

.home-hero-content {
  color: var(--s48-white);
  max-width: 38rem;
}

.home-hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.home-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home-hero-content > p {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero .btn {
  min-width: 168px;
  font-size: 0.95rem;
}

.home-hero .btn-primary {
  background: var(--s48-white);
  color: var(--s48-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.home-hero .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--s48-white);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.home-hero-aside-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  border-radius: calc(var(--s48-radius) + 2px);
  padding: 1.35rem 1.4rem;
  color: var(--s48-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.home-hero-aside-label {
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.home-hero-aside-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.home-hero-aside-card li {
  padding-left: 1rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-hero-aside-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: -2.5rem 0 2rem;
  position: relative;
  z-index: 2;
}

.home-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  background: var(--s48-white);
  border: 1px solid #dcdcdc;
  border-radius: calc(var(--s48-radius) + 2px);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.home-action-card::after {
  content: "\2192";
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  font-size: 1.1rem;
  line-height: 1;
  color: #aaa;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-action-card:hover {
  transform: translateY(-4px);
  border-color: #b8b8b8;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.home-action-card:hover::after {
  transform: translateX(3px);
  color: var(--s48-accent);
}

.home-action-card-primary {
  background: linear-gradient(155deg, #454545 0%, #2a2a2a 55%, #1f1f1f 100%);
  border-color: #2a2a2a;
  color: var(--s48-white);
}

.home-action-card-primary:hover {
  border-color: #1b1b1b;
}

.home-action-card-primary::after {
  color: rgba(255, 255, 255, 0.55);
}

.home-action-card-primary:hover::after {
  color: var(--s48-white);
}

.home-action-card-primary .home-action-label,
.home-action-card-primary p {
  color: rgba(255, 255, 255, 0.82);
}

.home-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
}

.home-action-card strong {
  font-size: 1.12rem;
  line-height: 1.25;
  color: inherit;
}

.home-action-card p {
  margin: 0;
  padding-right: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  flex: 1 1 auto;
}

.home-crisis {
  background: linear-gradient(135deg, #fdeaea 0%, #f9d6d6 100%);
  color: #5c1a1a;
  border-radius: calc(var(--s48-radius) + 4px);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 20px rgba(140, 40, 40, 0.1);
  border: 1px solid #e8b4b4;
  border-left: 4px solid #c03939;
}

.home-crisis-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.35rem;
  align-items: center;
}

.home-crisis-label {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9b2c2c;
}

.home-crisis-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.25;
  color: #4a1515;
}

.home-crisis-copy p {
  margin: 0;
  color: #6b2a2a;
  line-height: 1.55;
  max-width: 36rem;
}

.home-crisis-options {
  display: grid;
  gap: 0.65rem;
}

.home-crisis-option {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e0a0a0;
  border-radius: var(--s48-radius);
  padding: 0.85rem 1rem;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-crisis-option:hover {
  background: #fff;
  border-color: #c44;
  box-shadow: 0 4px 12px rgba(140, 40, 40, 0.12);
}

.home-crisis-option strong {
  font-size: 1rem;
  color: #4a1515;
}

.home-crisis-option span {
  font-size: 0.88rem;
  color: #7a3333;
}

.home-panel {
  background: var(--s48-white);
  border-radius: calc(var(--s48-radius) + 4px);
  box-shadow: var(--s48-shadow);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.home-panel-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100%;
}

.home-panel-copy {
  padding: 2rem 1.85rem;
}

.home-panel-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--s48-accent);
  line-height: 1.2;
}

.home-panel-copy > p {
  margin: 0 0 1.35rem;
  color: #555;
  line-height: 1.6;
  max-width: 34rem;
}

.home-steps {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.home-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--s48-gray-light);
  border: 2px solid #d0d0d0;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--s48-accent);
}

.home-step strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--s48-accent);
}

.home-step p {
  margin: 0;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.45;
}

.home-panel-visual {
  position: relative;
  min-height: 280px;
  background: #ddd;
}

.home-panel-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.home-trust-item {
  text-align: center;
  background: var(--s48-white);
  border: 1px solid #e0e0e0;
  border-radius: calc(var(--s48-radius) + 2px);
  padding: 1.15rem 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.home-trust-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: var(--s48-accent);
}

.home-trust-item span {
  font-size: 0.88rem;
  color: #666;
}

.home-testimonials-section {
  margin-bottom: 1.75rem;
}

.home-section-header {
  margin-bottom: 1rem;
}

.home-section-header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--s48-accent);
}

.home-section-header p {
  margin: 0;
  max-width: 42rem;
  color: #555;
}

.home-testimonials-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.home-testimonial {
  margin: 0;
  background: var(--s48-white);
  border: 1px solid #e0e0e0;
  border-radius: calc(var(--s48-radius) + 2px);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-top: 3px solid var(--s48-gray);
}

.home-testimonial p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #333;
}

.home-testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--s48-gray-dark);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.home-testimonials-more {
  margin: 1rem 0 0;
}

.home-cta-band {
  background: linear-gradient(135deg, #2a2a2a 0%, #5c5c5c 100%);
  color: var(--s48-white);
  border-radius: calc(var(--s48-radius) + 4px);
  padding: 2rem 1.85rem;
  box-shadow: var(--s48-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.home-cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.home-cta-band p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-cta-band .btn-primary {
  background: var(--s48-white);
  color: var(--s48-accent);
}

.home-cta-band .btn-outline {
  background: transparent;
  color: var(--s48-white);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.site-footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer-content {
  display: grid;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.site-footer-powered {
  flex-shrink: 0;
  align-self: flex-end;
}

.site-footer-powered img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.88rem;
  opacity: 0.92;
  padding-top: 0.15rem;
}

.site-footer-legal a {
  text-decoration: none;
}

.site-footer-legal a:hover,
.site-footer-legal a.active {
  text-decoration: underline;
}

.site-footer-social {
  display: flex;
  gap: 0.85rem;
}

.site-footer-social a {
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-powered {
    align-self: flex-end;
  }
}

@media (max-width: 1024px) {
  .home-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero-layout,
  .home-panel-grid,
  .home-crisis-inner {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-layout {
    min-height: auto;
    padding: 2.5rem 0 2rem;
    gap: 1.25rem;
  }

  .home-hero-aside {
    max-width: 22rem;
  }

  .home-actions {
    margin-top: -1.5rem;
  }

  .home-panel-visual {
    min-height: 220px;
  }

  .home-trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-actions {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .home-body {
    padding-top: 1.25rem;
  }
}

@media (max-width: 1180px) {
  .site-brand span {
    font-size: 0.95rem;
  }

  .site-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  .site-nav ul {
    gap: 0.2rem 0.55rem;
  }
}

@media (max-width: 860px) {
  .site-header-inner {
    gap: 0.5rem;
    min-height: 72px;
    padding: 0 0.85rem;
  }

  .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.55rem;
  }

  .site-brand img {
    height: 48px;
  }

  .site-brand span {
    font-size: 0.82rem;
    white-space: normal;
    max-width: none;
    line-height: 1.2;
  }

  .site-header-actions {
    gap: 0.4rem;
  }

  .site-header-login-btn {
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--s48-gray-dark);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: flex-start;
  }
}