/* WP-SECTION: DirectoryHero */
.scc-directory-hero {
  background: linear-gradient(135deg, var(--scc-primary) 0%, var(--scc-primary-light) 100%);
  color: white;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  padding-top: calc(120px + clamp(2rem, 5vw, 4rem));
  text-align: center;
  min-height: max(35vh, 300px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scc-directory-hero h1 {
  font-family: var(--scc-font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--scc-weight-bold);
  margin-bottom: 1rem;
}

.scc-directory-hero p {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-lg);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* WP-SECTION: DirectorySnapshot */
.scc-directory-snapshot {
  background: white;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
  border-bottom: 1px solid var(--scc-border-light);
}

.scc-directory-snapshot__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .scc-directory-snapshot__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scc-directory-snapshot__stat .value {
  font-family: var(--scc-font-heading);
  font-size: 2.5rem;
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  line-height: var(--scc-leading-tight);
  display: block;
}

.scc-directory-snapshot__stat .label {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WP-SECTION: DirectoryToolbar */
.scc-directory-toolbar {
  background: white;
  padding: 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.scc-directory-toolbar.is-stuck {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scc-directory-toolbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scc-toolbar-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .scc-toolbar-row1 {
    flex-direction: column;
    align-items: flex-start;
  }
}

.scc-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
  width: 100%;
}

.scc-search-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--scc-border-input);
  border-radius: 8px;
  padding: 0 1rem 0 2.5rem;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-base);
  transition: all 0.2s ease;
}

.scc-search-input:focus {
  outline: none;
  border-color: var(--scc-success);
  box-shadow: 0 0 0 3px rgba(62, 112, 56, 0.15);
}

.scc-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--scc-muted-text);
  width: 18px;
  height: 18px;
}

.scc-results-count {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-muted-text);
  white-space: nowrap;
}

.scc-toolbar-row2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.scc-filter-select {
  height: 40px;
  border: 1px solid var(--scc-border-input);
  border-radius: 6px;
  padding: 0 2rem 0 0.75rem;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-foreground);
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23474d45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  appearance: none;
  cursor: pointer;
}

.scc-filter-select:focus {
  outline: none;
  border-color: var(--scc-success);
  box-shadow: 0 0 0 2px rgba(62, 112, 56, 0.15);
}

.scc-clear-all {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-success);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.scc-clear-all:hover {
  text-decoration: underline;
}

.scc-toolbar-row3 {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scc-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  font-weight: var(--scc-weight-medium);
}

.scc-filter-tag button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.7;
}

.scc-filter-tag button:hover {
  opacity: 1;
}

.scc-toolbar-row4 {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scc-toolbar-row4::-webkit-scrollbar {
  display: none;
}

.scc-alpha-btn {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  min-width: 32px;
  text-align: center;
  transition: background 0.2s;
}

.scc-alpha-btn:not(:disabled):hover, .scc-alpha-btn.is-active {
  background: var(--scc-secondary);
}

.scc-alpha-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 576px) {
  .scc-alpha-btn {
    font-size: var(--scc-text-sm);
    padding: 0.375rem;
    min-width: 28px;
  }
}

/* WP-SECTION: DirectoryGrid */
.scc-directory-main {
  background: var(--scc-surface-subtle);
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
}

.scc-directory-main__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.scc-type-nudge {
  background: rgba(148, 211, 234, 0.12);
  border-left: 4px solid var(--scc-secondary);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeIn 0.3s ease;
}

@media (min-width: 768px) {
  .scc-type-nudge {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.scc-type-nudge__message {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-foreground);
  margin: 0;
}

.scc-type-nudge__cta {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-success);
  font-weight: var(--scc-weight-semibold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.scc-type-nudge__cta:hover {
  text-decoration: underline;
}

.scc-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .scc-featured-grid {
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .scc-featured-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.scc-featured-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.scc-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .scc-featured-card {
    flex-direction: column;
  }
}

.scc-featured-img {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

@media (max-width: 768px) {
  .scc-featured-img {
    flex: none;
    height: 120px;
  }
}

.scc-featured-img span {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-5xl);
  color: white;
  font-weight: var(--scc-weight-bold);
}

.scc-featured-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.scc-featured-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xs);
  color: var(--scc-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--scc-weight-bold);
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.scc-coop-name {
  font-family: var(--scc-font-heading);
  font-size: var(--scc-text-lg);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  margin: 0 0 0.5rem 0;
}

a.scc-coop-name {
  color: var(--scc-success);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

a.scc-coop-name:hover {
  text-decoration: underline;
}

.scc-featured-desc {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-foreground);
  margin: 0 0 1rem 0;
  line-height: var(--scc-leading-normal);
  flex: 1;
}

.scc-card-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.scc-badge {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-xs);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: var(--scc-weight-medium);
}

.scc-badge--state {
  background: var(--scc-border-light);
  color: var(--scc-foreground);
}

.scc-featured-year {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-muted-text);
  font-style: italic;
  margin-left: auto;
}

.scc-divider {
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
}

.scc-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--scc-border-light);
  z-index: 1;
}

.scc-divider span {
  position: relative;
  z-index: 2;
  background: var(--scc-surface-subtle);
  padding: 0 1rem;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  color: var(--scc-muted-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--scc-weight-semibold);
}

.scc-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 991px) {
  .scc-directory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .scc-directory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.scc-standard-card {
  background: white;
  border: 1px solid var(--scc-border-light);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scc-standard-card:hover {
  border-color: var(--scc-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@media (max-width: 576px) {
  .scc-standard-card {
    padding: 0.625rem;
    gap: 0.5rem;
  }
}

.scc-standard-card .scc-coop-name {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-sm);
  margin: 0;
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
}

a.scc-coop-name {
  color: var(--scc-success);
}

@media (max-width: 576px) {
  .scc-standard-card .scc-coop-name {
    font-size: var(--scc-text-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.scc-standard-card .scc-badge {
  font-size: var(--scc-text-xs);
}

@media (max-width: 576px) {
  .scc-standard-card .scc-badge {
    font-size: var(--scc-text-xs);
  }
  .scc-standard-card .scc-card-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.scc-letter-anchor {
  scroll-margin-top: 220px;
  grid-column: 1 / -1;
  height: 0;
  margin: 0;
}

.scc-load-more {
  display: block;
  margin: 3rem auto 0;
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-base);
  font-weight: var(--scc-weight-semibold);
  color: var(--scc-success);
  background: transparent;
  border: 2px solid var(--scc-success);
  border-radius: 6px;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.scc-load-more:hover {
  background: var(--scc-success);
  color: white;
}

.scc-directory-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
}

.scc-directory-empty__message {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-lg);
  color: var(--scc-foreground);
  font-weight: var(--scc-weight-semibold);
  margin-bottom: 0.5rem;
}

.scc-directory-empty__suggestion {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-base);
  color: var(--scc-muted-text);
}

.scc-directory-empty__clear {
  color: var(--scc-success);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* WP-SECTION: DirectoryJoinCTA */
.scc-join-cta {
  background: var(--scc-surface-warm);
  padding: clamp(3rem, 8vw, 5rem) 1rem;
}

.scc-join-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 991px) {
  .scc-join-cta__inner {
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

.scc-join-cta__content {
  flex: 0 0 60%;
}

.scc-join-cta__img {
  flex: 0 0 40%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.scc-join-cta__img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .scc-join-cta__img {
    width: 100%;
    max-height: 250px;
  }
  .scc-join-cta__img img {
    height: 100%;
    object-fit: cover;
  }
  .scc-join-cta__content {
    flex: none;
  }
}

.scc-join-cta h2 {
  font-family: var(--scc-font-heading);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: var(--scc-weight-bold);
  color: var(--scc-primary);
  margin-bottom: 1rem;
}

.scc-join-cta p.scc-lead {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-lg);
  color: var(--scc-foreground);
  line-height: var(--scc-leading-relaxed);
  margin-bottom: 2rem;
}

.scc-join-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.scc-join-benefits li {
  font-family: var(--scc-font-sans);
  font-size: var(--scc-text-base);
  color: var(--scc-foreground);
  margin-bottom: 1rem;
  line-height: var(--scc-leading-normal);
}

.scc-join-benefits strong {
  color: var(--scc-primary);
  font-weight: var(--scc-weight-bold);
}


/* WP-SECTION: DirectoryCTA */
.scc-dual-cta {
  background: var(--scc-primary);
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  text-align: center;
  color: white;
}

.scc-dual-cta__inner {
  max-width: 800px;
  margin: 0 auto;
}

.scc-dual-cta h2 {
  font-family: var(--scc-font-heading);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: var(--scc-weight-bold);
  margin-bottom: 2.5rem;
}

.scc-dual-cta__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

@media (max-width: 576px) {
  .scc-dual-cta__buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}