:root {
  --lake-deep: #123f45;
  --lake: #1d6972;
  --lake-light: #7fb7b6;
  --pine: #254f36;
  --moss: #6f8b52;
  --fern: #dfe9d3;
  --sun: #f2c66d;
  --sand: #f7f1df;
  --paper: #fffdf6;
  --ink: #17312f;
  --muted: #526b66;
  --line: rgba(23, 49, 47, 0.16);
  --shadow: 0 18px 45px rgba(18, 63, 69, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(242, 198, 109, 0.28), transparent 28rem),
    linear-gradient(180deg, #edf7f2 0%, #f7f1df 54%, #e4ead7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(37, 79, 54, 0.12), transparent 38%),
    linear-gradient(300deg, rgba(29, 105, 114, 0.15), transparent 46%);
}

a {
  color: var(--lake-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(18, 63, 69, 0.9);
  box-shadow: 0 10px 24px rgba(18, 63, 69, 0.18);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand {
  color: #fffdf6;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.header-user {
  min-width: 0;
  color: rgba(255, 253, 246, 0.9);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.site-nav a,
.footer-links a {
  color: #fffdf6;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.14);
}

main {
  display: block;
}

.home-hero {
  min-height: 0;
  display: grid;
  align-items: start;
  padding: clamp(56px, 9vw, 104px) 0 60px;
  color: #fffdf6;
  background:
    linear-gradient(180deg, rgba(18, 63, 69, 0.08) 0%, rgba(18, 63, 69, 0.72) 100%),
    linear-gradient(90deg, rgba(18, 63, 69, 0.64), rgba(18, 63, 69, 0.08)),
    url('/images/lake_aerial_clean.png') center / cover no-repeat;
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lake-image {
  display: block;
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 0 52px;
  border: 1px solid rgba(255, 253, 246, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(8, 34, 38, 0.34);
}
.hero-content p {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.55;
}

.home-band {
  padding: 52px 0 60px;
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: var(--shadow);
}

.private-community-panel {
  display: block;
  text-align: center;
}

.status-panel h2 {
  margin: 0 0 10px;
  color: var(--pine);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.status-panel h2.private-community-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.35;
  white-space: nowrap;
}

.status-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.nature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nature-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--moss);
  background: rgba(223, 233, 211, 0.76);
  color: var(--pine);
  font-weight: 700;
}

.content-page {
  padding: 54px 0 66px;
}

.legal-page {
  max-width: 980px;
}

.legal-hero {
  padding: 30px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(223, 233, 211, 0.84));
  box-shadow: var(--shadow);
}

.legal-hero h1 {
  margin: 0 0 10px;
  color: var(--lake-deep);
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-hero p,
.legal-content {
  color: var(--muted);
  line-height: 1.75;
}

.legal-date {
  margin-top: 12px;
  color: var(--pine);
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 14px 36px rgba(18, 63, 69, 0.1);
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
}

.legal-toggle {
  width: 100%;
  min-height: 58px;
  border: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--lake-deep);
  background: rgba(247, 241, 223, 0.72);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.legal-toggle:hover {
  background: rgba(223, 233, 211, 0.86);
}

.legal-toggle span:last-child {
  min-width: 24px;
  text-align: center;
  color: var(--moss);
  font-size: 1.2rem;
}

.legal-content {
  display: none;
  padding: 18px 20px 22px;
}

.legal-content.show {
  display: block;
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content ul {
  margin: 0 0 0 20px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 8px;
}

.site-footer {
  padding: 24px 0;
  color: #fffdf6;
  background: linear-gradient(90deg, var(--pine), var(--lake-deep));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: var(--sun);
}


.progress-modal[hidden] {
  display: none;
}

.progress-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.progress-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 34, 38, 0.62);
}

.progress-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid rgba(255, 253, 246, 0.58);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(8, 34, 38, 0.34);
  color: var(--ink);
}

.progress-modal__dialog h2 {
  margin: 0 0 10px;
  color: var(--lake-deep);
}

.progress-modal__dialog p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.progress-modal__close {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--lake-deep);
  color: #fffdf6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.progress-modal__close:hover {
  background: var(--lake);
}

.attachment-modal[hidden] {
  display: none;
}

.attachment-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.attachment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 34, 38, 0.72);
}

.attachment-modal__dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  width: min(100%, 980px);
  height: min(88vh, 820px);
  border: 1px solid rgba(255, 253, 246, 0.58);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(8, 34, 38, 0.34);
  color: var(--ink);
  overflow: hidden;
}

.attachment-modal__header,
.attachment-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.attachment-modal__header {
  border-bottom: 1px solid var(--line);
}

.attachment-modal__eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.attachment-modal__header h2 {
  margin: 0;
  color: var(--lake-deep);
  font-size: 1.25rem;
}

.attachment-modal__close {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--lake-deep);
  color: #fffdf6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.attachment-modal__close:hover {
  background: var(--lake);
}

.attachment-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.attachment-modal__actions {
  border-top: 1px solid var(--line);
}

.contact-page {
  max-width: 880px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--lake-deep);
  font-weight: 700;
}

.form-row label span {
  color: #8f3d2c;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid rgba(23, 49, 47, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
}

.form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 3px solid rgba(127, 183, 182, 0.42);
  border-color: var(--lake);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.terms-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.terms-acceptance input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--lake-deep);
}

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

.form-submit {
  justify-self: start;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--lake-deep);
  color: #fffdf6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--lake);
}

.form-submit--danger {
  background: #7a3325;
}

.form-submit--danger:hover {
  background: #5f261b;
}

.form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.form-alert {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 8px;
  font-weight: 700;
}

.form-alert--success {
  border: 1px solid rgba(37, 79, 54, 0.28);
  background: rgba(223, 233, 211, 0.78);
  color: var(--pine);
}

.form-alert--error {
  border: 1px solid rgba(143, 61, 44, 0.28);
  background: rgba(255, 239, 229, 0.9);
  color: #7a3325;
}

.auth-page {
  max-width: 900px;
}

.member-page {
  max-width: 1040px;
}

.member-hero .hero-kicker {
  color: var(--moss);
}

.member-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 22px;
}

.member-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 14px 36px rgba(18, 63, 69, 0.1);
}

.member-panel h2 {
  margin: 0 0 10px;
  color: var(--pine);
  font-size: 1.35rem;
}

.member-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.member-access-level {
  margin-top: 10px !important;
  color: var(--pine) !important;
  font-weight: 700;
}

.member-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.member-resource-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.member-resource-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: 8px;
  background: rgba(223, 233, 211, 0.54);
  color: var(--pine);
  font-weight: 700;
}

.resource-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.resource-link {
  color: var(--pine);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-link:hover {
  color: var(--moss);
}

.resource-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  border-radius: 8px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.resource-image-link:hover {
  opacity: 0.84;
  transform: translateY(-1px);
}

.resource-image-link img {
  display: block;
  max-width: 42px;
  max-height: 28px;
  object-fit: contain;
}

.member-updates {
  margin-top: 22px;
}

.member-gallery {
  margin-top: 22px;
}

.comments-page {
  max-width: 1100px;
}

.comments-panel {
  margin-top: 28px;
}

.comment-create-form {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.comment-add-message {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.comment-create-disclosure > summary,
.comment-reply-disclosure > summary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  list-style: none;
}

.comment-create-disclosure > summary::-webkit-details-marker,
.comment-reply-disclosure > summary::-webkit-details-marker {
  display: none;
}

.comment-create-disclosure[open] > summary,
.comment-reply-disclosure[open] > summary {
  margin-bottom: 18px;
}

.comment-filter-form {
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: 8px;
  background: rgba(223, 233, 211, 0.32);
}

.comment-filter-row {
  display: flex;
  align-items: end;
  flex-wrap: nowrap;
  gap: 12px;
}

.comment-filter-user {
  flex: 0 1 260px;
  min-width: 210px;
}

.comment-filter-date {
  flex: 0 0 136px;
}

.comment-filter-date input[type="date"] {
  width: 136px !important;
  min-width: 136px;
  max-width: 136px;
  padding-left: 10px;
  padding-right: 8px;
}

.comment-filter-actions,
.comment-manage-actions,
.comment-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.comment-filter-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin-top: 0;
  padding-bottom: 1px;
}

.comment-manage-actions {
  width: 100%;
  justify-content: space-between;
}

.comment-delete-form {
  margin-left: auto;
}

.comment-delete-link {
  color: #7a3325;
}

.comment-delete-link:hover {
  color: #5f261b;
}

.comment-list {
  display: grid;
  gap: 18px;
}

.comment-list-heading {
  margin: 0 0 18px;
}

.comment-list-heading h2 {
  margin: 0 0 8px;
  color: var(--pine);
  font-size: 1.35rem;
}

.comment-list-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.comment-card {
  overflow: hidden;
  border: 1px solid rgba(23, 49, 47, 0.14);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 0 14px 32px rgba(18, 63, 69, 0.08);
}

.comment-card details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(223, 233, 211, 0.48);
  color: var(--pine);
  cursor: pointer;
  list-style: none;
}

.comment-card details > summary::-webkit-details-marker {
  display: none;
}

.comment-summary-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.comment-disclosure-icon {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--pine);
  transition: transform 160ms ease;
}

.comment-card details[open] > summary .comment-disclosure-icon {
  transform: rotate(90deg);
}

.comment-card details > summary .comment-subject {
  font-size: 1.06rem;
  font-weight: 400 !important;
  color: #7a4f2a !important;
  overflow-wrap: anywhere;
}

.comment-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.comment-card__body {
  padding: 22px 20px 24px;
  color: var(--ink);
  line-height: 1.75;
}

.comment-card__body > p:first-child {
  margin-top: 0;
}

.comment-attachment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: 8px;
  background: rgba(223, 233, 211, 0.32);
}

.comment-attachment__label {
  background: var(--lake-deep);
}

.comment-attachment__name {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.comment-attachment__view {
  flex: 0 0 auto;
}

.assoc-doc-list {
  display: grid;
  gap: 18px;
}

.assoc-doc-card__title {
  margin-bottom: 12px;
}

.assoc-doc-card__title h3 {
  margin: 0;
  color: var(--lake-deep);
  font-size: 1.1rem;
}

.lake-rule-title {
  color: var(--lake-deep);
  font-size: 1.1rem;
  font-weight: 700;
}

.lake-rule-edit-disclosure > summary {
  cursor: pointer;
  list-style: none;
}

.lake-rule-edit-disclosure > summary::-webkit-details-marker {
  display: none;
}

.lake-rule-edit-disclosure[open] > summary {
  margin-bottom: 18px;
}

.lake-rule-edit-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.lake-rule-actions {
  margin-top: 18px;
}

.help-page {
  max-width: 980px;
}

.help-card-list {
  display: grid;
  gap: 16px;
}

.help-card {
  overflow: hidden;
  border: 1px solid rgba(23, 49, 47, 0.14);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 0 14px 32px rgba(18, 63, 69, 0.08);
}

.help-card > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(223, 233, 211, 0.48);
  color: var(--pine);
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 700;
  list-style: none;
}

.help-card > summary::-webkit-details-marker {
  display: none;
}

.help-card__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lake-deep);
  color: #fffdf6;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 160ms ease;
}

.help-card[open] > summary .help-card__icon {
  transform: rotate(45deg);
}

.help-card__body {
  display: grid;
  gap: 12px;
  padding: 20px;
  color: var(--ink);
  line-height: 1.7;
}

.help-card__body h3,
.help-card__body p {
  margin: 0;
}

.help-steps,
.help-list {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.75;
}

.help-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-role-list article {
  padding: 14px 16px;
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: 8px;
  background: rgba(223, 233, 211, 0.26);
}

.comment-replies {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.comment-replies h3 {
  margin: 0;
  color: var(--pine);
  font-size: 1rem;
}

.comment-reply {
  padding: 16px;
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: 8px;
  background: rgba(250, 247, 237, 0.78);
}

.comment-reply p:last-child {
  margin-bottom: 0;
}

.comment-reply__status {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.comment-reply__meta {
  margin-top: 12px;
  text-align: right;
}

.comment-reply-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.comment-add-reply-button {
  margin-top: 6px;
}

.comments-empty,
.comments-readonly-note,
.comments-hidden-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.comments-readonly-note,
.comments-hidden-note {
  padding: 14px 16px;
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: 8px;
  background: rgba(223, 233, 211, 0.32);
}

.is-hidden-comment {
  border-style: dashed;
}

.status-pill--hidden {
  border-color: rgba(122, 51, 37, 0.22);
  background: rgba(255, 239, 229, 0.92);
  color: #7a3325;
}

.document-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.bylaws-browser {
  margin-top: 28px;
  padding: 34px;
}

.bylaws-note {
  max-width: 720px;
}

.bylaws-article-list {
  display: grid;
  gap: 28px;
}

.bylaws-section-list {
  display: grid;
  gap: 18px;
}

.bylaws-article-card {
  overflow: hidden;
  border: 1px solid rgba(23, 49, 47, 0.18);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 0 18px 38px rgba(18, 63, 69, 0.1);
}

.bylaws-section > summary {
  cursor: pointer;
  list-style: none;
}

.bylaws-section > summary::-webkit-details-marker {
  display: none;
}

.bylaws-article-header {
  display: grid;
  grid-template-columns: minmax(108px, auto) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  color: var(--pine);
  background: linear-gradient(90deg, rgba(223, 233, 211, 0.72), rgba(255, 253, 246, 0.94));
}

.bylaws-article-heading {
  display: contents;
}

.bylaws-article-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(61, 111, 66, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.76);
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bylaws-article-heading strong {
  font-size: 1.22rem;
  line-height: 1.35;
}

.bylaws-article-count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.bylaws-section-list {
  padding: 26px 28px 30px;
  border-top: 1px solid rgba(23, 49, 47, 0.1);
  background: rgba(250, 247, 237, 0.72);
}

.bylaws-section {
  overflow: hidden;
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 10px 22px rgba(18, 63, 69, 0.06);
}

.bylaws-section[open] {
  border-color: rgba(61, 111, 66, 0.24);
}

.bylaws-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--pine);
  font-weight: 800;
  background: rgba(223, 233, 211, 0.38);
}

.bylaws-section > summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(23, 49, 47, 0.08);
  color: var(--moss);
  font-size: 1rem;
  line-height: 1;
}

.bylaws-section[open] > summary::after {
  content: "-";
}

.bylaws-section-body {
  padding: 22px 22px 24px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.gallery-upload-form {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.gallery-upload-form[hidden],
.gallery-upload-form.is-hidden,
.gallery-share-link[hidden] {
  display: none !important;
}

.gallery-share-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
}

.gallery-upload-grid {
  align-items: stretch;
}

.file-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.file-picker__input {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}

.file-picker__button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--lake-deep);
  color: #fffdf6 !important;
  cursor: pointer;
}

.file-picker__button:hover {
  background: var(--lake);
}

.file-picker__name {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.file-picker__actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.file-picker__actions[hidden] {
  display: none;
}

.gallery-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px dashed rgba(23, 49, 47, 0.28);
  border-radius: 8px;
  background: rgba(223, 233, 211, 0.4);
  color: var(--muted);
  font-weight: 700;
  overflow: hidden;
}

.gallery-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
}

.gallery-rotate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: -6px;
}

.gallery-rotate-actions[hidden] {
  display: none;
}

.gallery-upload-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-upload-actions[hidden] {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.96);
}

.photo-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--fern);
}

.photo-card__body {
  padding: 14px;
}

.photo-card__body h3 {
  margin: 0 0 6px;
  color: var(--lake-deep);
  font-size: 1rem;
}

.photo-card__body p,
.empty-gallery {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.photo-delete-form {
  margin-top: 12px;
}

.text-button-danger {
  border: 0;
  padding: 0;
  background: transparent;
  color: #7a3325;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.text-button-danger:hover {
  color: #5f261b;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--lake-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.text-button:hover {
  color: var(--lake);
}

.member-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.member-action-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.member-feature-link {
  justify-content: center;
  width: 260px;
  max-width: 100%;
  text-align: center;
}

.auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: var(--shadow);
}

.auth-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.text-link {
  color: var(--lake-deep);
  font-weight: 700;
}

.text-link:hover {
  color: var(--lake);
}

.form-grid--address {
  grid-template-columns: minmax(0, 1.4fr) minmax(90px, 0.5fr) minmax(120px, 0.6fr);
}

.admin-page {
  max-width: 1040px;
}

.admin-user-list {
  display: grid;
  gap: 20px;
}

.admin-user-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 0 14px 36px rgba(18, 63, 69, 0.1);
}

.admin-user-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-user-card h2 {
  margin: 0 0 6px;
  color: var(--lake-deep);
  font-size: 1.35rem;
}

.admin-user-card p {
  margin: 0;
  color: var(--muted);
}

.admin-user-card__email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fffdf6;
  background: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill--pending {
  color: #4f3412;
  background: var(--sun);
}

.status-pill--active {
  background: var(--pine);
}

.status-pill--disabled {
  background: #7a3325;
}

.status-pill.status-pill--hidden {
  border-color: rgba(122, 51, 37, 0.22);
  background: rgba(255, 239, 229, 0.92);
  color: #7a3325;
}

.admin-user-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0 0 22px;
  padding: 0;
}

.admin-user-details div {
  min-width: 0;
}

.admin-user-details dt {
  color: var(--lake-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-user-details dd {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-user-form {
  display: grid;
  gap: 12px;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.admin-delete-form {
  display: none;
}

.admin-controls {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(170px, 240px);
  align-items: end;
  gap: 16px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--lake-deep);
}

.check-row--compact {
  font-size: 0.88rem;
}

.role-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 16px;
}

.role-fieldset legend {
  padding: 0 6px;
  color: var(--lake-deep);
  font-weight: 700;
}

.role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .status-panel {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 66px;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .header-user {
    text-align: left;
    white-space: normal;
  }

  .brand {
    font-size: 1.2rem;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .auth-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-dashboard {
    grid-template-columns: 1fr;
  }

  .member-section-header,
  .member-resource-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-filter-row {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .comment-filter-user,
  .comment-filter-date {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .comment-filter-user select,
  .comment-filter-date input[type="date"] {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }

  .comment-filter-actions {
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .comment-card details > summary {
    grid-template-columns: 1fr;
  }

  .comment-summary-title {
    align-items: flex-start;
  }

  .help-role-list {
    grid-template-columns: 1fr;
  }

  .bylaws-browser {
    padding: 22px;
  }

  .bylaws-article-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .bylaws-article-count {
    white-space: normal;
  }

  .bylaws-section-list {
    padding: 20px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-card__header,
  .admin-controls {
    grid-template-columns: 1fr;
  }

  .admin-user-card__header {
    flex-direction: column;
  }

  .admin-user-details {
    grid-template-columns: 1fr;
  }



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

  .status-panel,
  .legal-hero {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}














