/* General Conditions Section - Scoped Styles */

.gc {
  margin: 3rem 0;
  padding: 0;
}

.gc__header {
  margin-bottom: 2rem;
}

.gc__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading-color, #1a1a1a);
  margin: 0 0 0.75rem 0;
  font-family: var(
    --heading-font,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif
  );
}

.gc__intro {
  font-size: 0.95rem;
  color: var(--default-color, #4a5568);
  line-height: 1.6;
  margin: 0;
}

.gc__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gc__row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-color, #ffffff);
  border: 1px solid
    color-mix(in srgb, var(--default-color, #e2e8f0), transparent 80%);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.gc__row:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .gc__row {
    grid-template-columns: 40px 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
}

.gc__icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.125rem;
  font-size: 1.5rem;
  color: var(--accent-color, #e67e22);
}

.gc__icon i {
  display: block;
}

.gc__content {
  min-width: 0;
}

.gc__item-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--heading-color, #1a1a1a);
  margin: 0 0 0.5rem 0;
  font-family: var(
    --heading-font,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif
  );
}

.gc__text {
  font-size: 0.9375rem;
  color: var(--default-color, #4a5568);
  line-height: 1.6;
  margin: 0;
}

.gc__hours {
  font-weight: 600;
  color: var(--accent-color, #e67e22);
  margin-bottom: 0.25rem;
}

.gc__note {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color, #718096), transparent 20%);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Children section specific styles */

.gc__children-intro {
  margin-bottom: 1.25rem;
}

.gc__table-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
}

.gc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.gc__table-caption {
  font-weight: 600;
  color: var(--heading-color, #1a1a1a);
  text-align: left;
  padding-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.gc__table tbody tr {
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color, #e2e8f0), transparent 50%);
}

.gc__table tbody tr:last-child {
  border-bottom: none;
}

.gc__table tbody tr:nth-child(odd) {
  background: color-mix(in srgb, var(--accent-color, #f7f7f7), transparent 95%);
}

.gc__table td {
  padding: 0.875rem;
  vertical-align: top;
}

.gc__table td:first-child {
  font-weight: 600;
  color: var(--heading-color, #1a1a1a);
  width: 30%;
  min-width: 120px;
}

.gc__table td:last-child {
  color: var(--default-color, #4a5568);
}

.gc__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gc__bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.375rem;
  line-height: 1.5;
}

.gc__bullets li:last-child {
  margin-bottom: 0;
}

.gc__bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color, #e67e22);
  font-weight: bold;
}

.gc__notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.875rem;
  background: color-mix(in srgb, var(--accent-color, #fff8f0), transparent 70%);
  border-left: 3px solid var(--accent-color, #e67e22);
  border-radius: 4px;
}

.gc__note-item {
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--default-color, #718096), transparent 10%);
  line-height: 1.5;
  margin: 0;
}

/* Screen reader only helper */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive adjustments */

@media (max-width: 640px) {
  .gc {
    margin: 2rem 0;
  }

  .gc__title {
    font-size: 1.375rem;
  }

  .gc__intro {
    font-size: 0.875rem;
  }

  .gc__item-title {
    font-size: 1rem;
  }

  .gc__text {
    font-size: 0.875rem;
  }

  .gc__table {
    font-size: 0.875rem;
  }

  .gc__table td {
    display: block;
    width: 100%;
    padding: 0.625rem;
  }

  .gc__table td:first-child {
    padding-bottom: 0.375rem;
    font-weight: 700;
    border-bottom: 1px dashed
      color-mix(in srgb, var(--default-color, #e2e8f0), transparent 50%);
  }

  .gc__table td:last-child {
    padding-top: 0.375rem;
  }

  .gc__table tbody tr {
    border-bottom: 2px solid
      color-mix(in srgb, var(--default-color, #e2e8f0), transparent 50%);
    padding: 0.5rem 0;
  }
}

/* Dark mode support (if applicable) */

@media (prefers-color-scheme: dark) {
  .gc__title {
    color: #f7fafc;
  }

  .gc__intro,
  .gc__text {
    color: #cbd5e0;
  }

  .gc__row {
    background: #2d3748;
    border-color: #4a5568;
  }

  .gc__item-title {
    color: #f7fafc;
  }

  .gc__table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
  }

  .gc__notes {
    background: rgba(230, 126, 34, 0.1);
  }
}
