/* =====================
       TOKENS
    ===================== */
    :root {
      --cream:       #FAF7F2;
      --cream-dark:  #F0EAE0;
      --green:       #2D5016;
      --green-light: #4A7A28;
      --gold:        #C9A84C;
      --gold-light:  #E8D08A;
      --brown:       #2A1F14;
      --brown-mid:   #6B5040;
      --brown-light: #A08070;
      --white:       #FFFFFF;
    }

    /* =====================
       RESET & BASE
    ===================== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      background: var(--cream);
      color: var(--brown);
      font-family: 'Lato', sans-serif;
      font-weight: 400;
      line-height: 1.6;
    }

    /* =====================
       HEADER
    ===================== */
    header {
      background: var(--green);
      padding: 3rem 2rem 2.5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    header::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 60px,
        rgba(255,255,255,0.03) 60px,
        rgba(255,255,255,0.03) 61px
      );
    }

    .header-eyebrow {
      font-family: 'Lato', sans-serif;
      font-weight: 300;
      font-size: 0.75rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold-light);
      margin-bottom: 0.75rem;
    }

    header h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.2rem, 5vw, 3.5rem);
      font-weight: 700;
      color: var(--cream);
      line-height: 1.15;
    }

    header h1 em {
      font-style: italic;
      color: var(--gold);
    }

    .header-sub {
      margin-top: 0.75rem;
      font-size: 0.95rem;
      color: rgba(250,247,242,0.65);
      font-weight: 300;
    }

    /* Book spine divider */
    .spine-divider {
      display: flex;
      justify-content: center;
      gap: 4px;
      padding: 1.25rem 0;
      background: var(--cream-dark);
      border-top: 1px solid rgba(42,31,20,0.08);
      border-bottom: 1px solid rgba(42,31,20,0.08);
    }

    .spine {
      width: 12px;
      border-radius: 1px 3px 3px 1px;
      height: 36px;
    }

    /* =====================
       SEARCH BAR
    ===================== */
    .search-bar-wrapper {
      background: var(--white);
      border-bottom: 1px solid rgba(42,31,20,0.08);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(42,31,20,0.07);
    }

    .search-bar-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0.85rem 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .search-field-wrap {
      position: relative;
      flex: 1;
      min-width: 200px;
    }

    .search-icon {
      position: absolute;
      left: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--brown-light);
      font-size: 1rem;
      pointer-events: none;
    }

    .search-input {
      width: 100%;
      padding: 0.6rem 0.9rem 0.6rem 2.4rem;
      border: 1.5px solid var(--cream-dark);
      border-radius: 8px;
      font-family: 'Lato', sans-serif;
      font-size: 0.9rem;
      color: var(--brown);
      background: var(--cream);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .search-input:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
      background: var(--white);
    }

    .search-input::placeholder { color: var(--brown-light); }

    /* Member pills */
    .pills-wrap {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
      align-items: center;
    }

    .pill-label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--brown-light);
      font-weight: 700;
      margin-right: 0.2rem;
      white-space: nowrap;
    }

    .pill {
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      border: 1.5px solid var(--cream-dark);
      background: var(--cream);
      font-family: 'Lato', sans-serif;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--brown-mid);
      cursor: pointer;
      transition: background 0.18s, border-color 0.18s, color 0.18s;
      white-space: nowrap;
    }

    .pill:hover {
      border-color: var(--green-light);
      color: var(--green);
    }

    .pill.active {
      background: var(--green);
      border-color: var(--green);
      color: var(--white);
    }

    /* Search results count */
    .search-count {
      font-size: 0.78rem;
      color: var(--brown-light);
      white-space: nowrap;
    }

    .search-count strong { color: var(--green); }

    /* Reset button */
    .search-reset {
      padding: 0.55rem 1rem;
      border-radius: 8px;
      border: 1.5px solid var(--cream-dark);
      background: transparent;
      font-family: 'Lato', sans-serif;
      font-size: 0.8rem;
      color: var(--brown-mid);
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s;
      white-space: nowrap;
    }

    .search-reset:hover { border-color: var(--brown-light); color: var(--brown); }

    /* Highlight match */
    .search-highlight {
      background: var(--gold-light);
      border-radius: 2px;
      padding: 0 1px;
    }

    /* Card hidden by filter */
    .member-card.hidden-by-search {
      display: none;
    }

    /* Session hidden when all cards hidden */
    .session.hidden-by-search {
      display: none;
    }

    /* Empty session message */
    .no-results-session {
      display: none;
      padding: 1rem 0 0.5rem;
      font-size: 0.85rem;
      color: var(--brown-light);
      font-style: italic;
    }

    /* Global no results */
    .no-results-global {
      display: none;
      text-align: center;
      padding: 3rem 1rem;
      color: var(--brown-light);
    }

    .no-results-global .nr-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

    .no-results-global p {
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      font-style: italic;
    }

    /* =====================
       MAIN CONTAINER
    ===================== */
    main {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem 4rem;
    }

    /* =====================
       SESSION BLOCK
    ===================== */
    .session {
      margin-bottom: 3.5rem;
    }

    .session-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.75rem;
      user-select: none;
    }

    .session-number {
      width: 44px;
      height: 44px;
      background: var(--green);
      color: var(--gold);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      font-weight: 700;
      flex-shrink: 0;
    }

    .session-title-block h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.45rem;
      font-weight: 700;
      color: var(--brown);
      line-height: 1.2;
    }

    .session-title-block .session-date {
      font-size: 0.8rem;
      color: var(--brown-light);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 300;
    }

    .session-toggle {
      margin-left: auto;
      width: 28px;
      height: 28px;
      border: 1.5px solid var(--brown-light);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--brown-light);
      font-size: 1rem;
      transition: transform 0.3s ease, border-color 0.2s;
      flex-shrink: 0;
    }

    .session.open .session-toggle {
      transform: rotate(180deg);
      border-color: var(--green);
      color: var(--green);
    }

    .session-rule {
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, var(--gold), transparent);
    }

    /* =====================
       MEMBERS GRID
    ===================== */
    .members-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
      gap: 1.5rem;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
      opacity: 0;
    }

    .session.open .members-grid {
      max-height: 2000px;
      opacity: 1;
    }

    /* =====================
       MEMBER CARD
    ===================== */
    .member-card {
      background: var(--white);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(42,31,20,0.07);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      display: flex;
      flex-direction: column;
    }

    .member-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(42,31,20,0.13);
    }

    /* Member top */
    .member-top {
      background: var(--cream-dark);
      padding: 1.25rem 1rem 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      border-bottom: 3px solid var(--gold);
    }

    .member-avatar {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--white);
      box-shadow: 0 2px 8px rgba(42,31,20,0.15);
    }

    .member-name {
      font-family: 'Playfair Display', serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--brown);
      text-align: center;
    }

    /* Book section */
    .member-book {
      flex: 1;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
    }

    .book-cover {
      width: 70px;
      height: 100px;
      object-fit: cover;
      border-radius: 3px 6px 6px 3px;
      box-shadow: 3px 3px 10px rgba(42,31,20,0.2), -1px 0 0 rgba(0,0,0,0.1);
    }

    .book-cover-placeholder {
      width: 90px;
      height: 120px;
      border-radius: 3px 6px 6px 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      box-shadow: 3px 3px 10px rgba(42,31,20,0.15), -1px 0 0 rgba(0,0,0,0.08);
    }

    .livre-images{
      width: 100%;
      border-radius: 9px 9px 9px 9px;
    }

    .book-info {
      text-align: center;
    }

    .book-title {
      font-family: 'Playfair Display', serif;
      /*font-size: 1.25rem;*/
      font-weight: 700;
      color: var(--brown);
      line-height: 1.3;
      margin-top: 1.2rem;
    }

    .book-author {
      font-size: 0.9rem;
      color: var(--brown-light);
      font-weight: 300;
    }

    /* =====================
       FOOTER
    ===================== */
    footer {
      text-align: center;
      padding: 2rem 1rem;
      background: var(--green);
      color: rgba(250,247,242,0.5);
      font-size: 0.78rem;
      letter-spacing: 0.05em;
    }

    footer strong { color: var(--gold); font-weight: 400; }

    /* =====================
       RESPONSIVE
    ===================== */
    @media (max-width: 600px) {
      .members-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
      header { padding: 2rem 1rem 1.75rem; }
    }

    /* =====================
       REDUCED MOTION
    ===================== */
    @media (prefers-reduced-motion: reduce) {
      .members-grid, .member-card, .session-toggle { transition: none; }
    }

