/* Page-specific styles for bylaws.html */
  #bylaws-page-root {
    --deep: #0D1026;
    --deep-2: #171B3D;
    --deep-3: #06070F;
    --leaf: #35AD51;
    --leaf-dark: #248238;
    --leaf-light: #8FD9A1;
    --sand: #F6F1E6;
    --sand-line: #E1D8C4;
    --ink: #12142A;
    --ink-soft: #565A72;
    --paper: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
  }
  #bylaws-page-root *{ box-sizing: border-box; }
  #bylaws-page-root h1, #bylaws-page-root h2, #bylaws-page-root h3, #bylaws-page-root h4 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; color: var(--deep); margin: 0;
  }
  #bylaws-page-root a { text-decoration: none; }
  #bylaws-page-root section { padding: 80px 40px; }
  #bylaws-page-root .kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    color: var(--leaf-dark); margin: 0 0 16px; background: rgba(53,173,81,0.12); padding: 7px 14px 7px 10px; border-radius: 20px;
  }
  #bylaws-page-root .kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
  #bylaws-page-root .kicker.on-dark { color: var(--leaf-light); background: rgba(143,217,161,0.12); }
  #bylaws-page-root .kicker.on-dark::before { background: var(--leaf-light); }
  #bylaws-page-root .btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 12px;
    font-weight: 700; font-size: 14.5px; cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease;
  }
  #bylaws-page-root .btn svg { width: 16px; height: 16px; flex: none; }
  #bylaws-page-root .btn-primary {
    background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-dark) 100%); color: #fff;
    box-shadow: 0 10px 22px -8px rgba(36,130,56,0.5);
  }
  #bylaws-page-root .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -8px rgba(36,130,56,0.55); }

  /* ============ PAGE HEADER ============ */
  #bylaws-page-root .page-header {
    position: relative; overflow: hidden;
    background: radial-gradient(130% 150% at 20% 0%, #142542 0%, var(--deep) 45%, var(--deep-3) 100%);
    padding: 90px 40px 60px; text-align: center;
  }
  #bylaws-page-root .page-header h1 { font-size: clamp(30px, 4.4vw, 46px); color: #fff; line-height: 1.15; }
  #bylaws-page-root .page-header .version { margin-top: 14px; font-size: 13.5px; color: var(--leaf-light); font-weight: 600; }

  /* ============ DOC LAYOUT ============ */
  #bylaws-page-root .doc-section { background: var(--paper); padding: 70px 40px 100px; }
  #bylaws-page-root .doc-layout {
    max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start;
  }
  #bylaws-page-root .doc-toc {
    position: sticky; top: 116px; background: var(--sand); border: 1px solid var(--sand-line); border-radius: 16px; padding: 24px;
    max-height: calc(100vh - 140px); overflow-y: auto;
  }
  #bylaws-page-root .doc-toc h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf-dark); margin-bottom: 14px; font-family: 'Inter', sans-serif; font-weight: 700; }
  #bylaws-page-root .doc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
  #bylaws-page-root .doc-toc li { counter-increment: toc; margin-bottom: 4px; }
  #bylaws-page-root .doc-toc a {
    display: block; font-size: 13px; color: var(--ink-soft); padding: 7px 10px; border-radius: 8px; line-height: 1.4;
    transition: background .15s ease, color .15s ease;
  }
  #bylaws-page-root .doc-toc a:hover { background: rgba(53,173,81,0.1); color: var(--leaf-dark); }
  #bylaws-page-root .doc-toc a::before { content: counter(toc) ". "; font-weight: 700; color: var(--leaf-dark); }

  #bylaws-page-root .doc-content { max-width: 760px; }
  #bylaws-page-root .doc-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--sand-line); }
  #bylaws-page-root .doc-preamble {
    background: var(--sand); border-radius: 16px; padding: 26px 28px; margin: 0 0 48px; border: 1px solid var(--sand-line);
  }
  #bylaws-page-root .doc-preamble p { margin: 0; font-size: 14.5px; font-style: italic; line-height: 1.75; color: var(--ink); }

  #bylaws-page-root .doc-article { margin-bottom: 52px; scroll-margin-top: 116px; }
  #bylaws-page-root .doc-article h2 { font-size: 22px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--leaf); }
  #bylaws-page-root .doc-article h3 { font-size: 16.5px; margin: 28px 0 10px; color: var(--leaf-dark); }
  #bylaws-page-root .doc-article h4 { font-size: 14.5px; margin: 20px 0 8px; color: var(--deep); }
  #bylaws-page-root .doc-article p { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 14px; }
  #bylaws-page-root .doc-article p em { color: var(--ink); }
  #bylaws-page-root .doc-article ul, #bylaws-page-root .doc-article ol.doc-list {
    margin: 0 0 16px; padding-left: 22px; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft);
  }
  #bylaws-page-root .doc-article li { margin-bottom: 6px; }
  #bylaws-page-root .doc-article li::marker { color: var(--leaf-dark); font-weight: 700; }
  #bylaws-page-root .doc-note {
    background: #EAF3DE; border-radius: 12px; padding: 16px 20px; font-size: 13.5px; color: var(--leaf-dark);
    line-height: 1.65; margin: 0 0 16px; font-weight: 600;
  }
  #bylaws-page-root .doc-annex { background: var(--sand); border-radius: 16px; padding: 26px 28px; border: 1px solid var(--sand-line); }
  #bylaws-page-root .doc-annex h3 { margin: 0 0 12px; font-size: 15px; }
  #bylaws-page-root .doc-annex ul { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

  @media (max-width: 980px) {
    #bylaws-page-root .doc-layout { grid-template-columns: 1fr; }
    #bylaws-page-root .doc-toc { position: static; max-height: none; }
  }

  /* ============ CONTACT ============ */
  #bylaws-page-root .contact { background: var(--sand); }
  #bylaws-page-root .contact-grid {
    max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  }
  #bylaws-page-root .contact-image { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11,59,76,0.35); }
  #bylaws-page-root .contact-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
  #bylaws-page-root .contact-card { background: var(--deep); border-radius: 22px; padding: 44px; color: #fff; }
  #bylaws-page-root .contact-card h3 { color: #fff; font-size: 22px; margin-bottom: 26px; }
  #bylaws-page-root .contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
  #bylaws-page-root .contact-row:last-of-type { margin-bottom: 0; }
  #bylaws-page-root .contact-icon {
    flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--leaf-light);
    display: flex; align-items: center; justify-content: center;
  }
  #bylaws-page-root .contact-icon svg { width: 17px; height: 17px; }
  #bylaws-page-root .contact-row h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #AEB4CC; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 700; }
  #bylaws-page-root .contact-row a { font-size: 14.5px; color: #fff; font-weight: 600; }
  #bylaws-page-root .contact-socials { display: flex; gap: 10px; margin-top: 28px; }
  #bylaws-page-root .contact-social {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
    display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s ease, transform .15s ease;
  }
  #bylaws-page-root .contact-social:hover { background: var(--leaf); transform: translateY(-2px); }
  #bylaws-page-root .contact-social svg { width: 16px; height: 16px; }
  @media (max-width: 900px) {
    #bylaws-page-root .contact-grid { grid-template-columns: 1fr; }
    #bylaws-page-root .contact-image { min-height: 220px; }
  }
