/* Styles for experts.html only. Loaded after styles.css, which is not changed. */

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

/* Visually hidden, still read by screen readers */
.ex-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Breadcrumb links need more than colour to stand out */
.ex-hero .crumb a { text-decoration: underline; }

/* The WhatsApp button uses white text on #25D366, which fails contrast.
   This darker green is used on this page only. */
.whatsapp-fab {
  background: #0E7A3E;
}

.whatsapp-fab:hover { background: #0A5F30; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Hero */
.ex-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--green-dark);
  margin: 8px 0 16px;
}

.ex-hero .lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.ex-intro {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 28px;
}

/* Frameworks */
.ex-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .ex-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .ex-cards { grid-template-columns: repeat(4, 1fr); }
}

.ex-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ex-card h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.ex-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.ex-note {
  color: var(--muted);
  margin-top: 24px;
}

.ex-legal {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Calendar */
.ex-calendar-section { background: var(--surface); }

.ex-tz {
  color: var(--muted);
  font-weight: 600;
}

.ex-label {
  font-weight: 700;
  color: var(--green-dark);
  margin: 24px 0 10px;
}

.ex-month {
  font-weight: 700;
  color: var(--green-dark);
  text-transform: capitalize;
  margin-bottom: 8px;
}

.ex-dates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}

.ex-date {
  flex: 0 0 auto;
  min-width: 80px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-dark);
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

.ex-date-wd,
.ex-date-mo {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: capitalize;
}

.ex-date-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.ex-date-closed {
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
}

.ex-date[aria-checked="true"] {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.ex-date[aria-checked="true"] .ex-date-wd,
.ex-date[aria-checked="true"] .ex-date-mo { color: var(--white); }

.ex-date:disabled {
  background: var(--surface);
  border-style: dashed;
  cursor: not-allowed;
}

.ex-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ex-slot {
  min-height: 44px;
  min-width: 88px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ex-slot[aria-checked="true"] {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  font-weight: 800;
}

.ex-empty {
  color: var(--muted);
  font-weight: 600;
}

.ex-summary {
  margin-top: 18px;
  min-height: 1.6em;
  font-weight: 700;
  color: var(--green-dark);
}

.ex-reserve {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.ex-help {
  color: var(--muted);
  font-size: 0.9rem;
}

.ex-reserve .btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

/* Expert block */
.ex-expert h2 {
  color: var(--green-dark);
  margin-bottom: 16px;
}

.ex-context {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--text);
}

.ex-context-slot strong { color: var(--green-dark); }

.ex-edit {
  color: var(--green);
  font-weight: 700;
  margin-left: 6px;
}

.ex-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.ex-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-field > span {
  font-weight: 600;
  color: var(--green-dark);
}

.ex-field input,
.ex-field select,
.ex-field textarea {
  font: inherit;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}

.ex-form .btn { justify-self: start; }

.ex-form .ex-note { margin-top: 0; }

.ex-form .form-status {
  min-height: 1.4em;
  font-weight: 600;
  color: var(--green-dark);
}
