/* Public Scheduler, Contact Pill Switcher & Dynamic Blog Styles */
.contact-mode-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 44px;
}
.contact-mode-head p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.pill-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(7, 61, 44, .05);
}
.pill-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 14px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.pill-switch button:hover { color: var(--ink); }
.pill-switch button[aria-selected="true"] {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(7, 61, 44, .2);
}
.pill-switch button svg { flex-shrink: 0; }

.appt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, .62fr);
  gap: 40px;
  align-items: start;
}

.sched-card {
  padding: 34px 34px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(7, 61, 44, .07);
}
.sched-card h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.sched-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.sched-label {
  display: block;
  margin: 24px 0 12px;
  color: var(--ink);
  font: 700 15px/1.3 var(--sans);
}

.sched-control { position: relative; margin-bottom: 12px; }
.sched-select,
.sched-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #ced8cf;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}
.sched-select {
  padding-right: 42px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath fill='none' stroke='%231f2b25' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.sched-icon-wrap { position: relative; margin-bottom: 18px; }
.sched-icon-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  pointer-events: none;
}
.sched-icon-wrap .sched-input { padding-left: 44px; }
.sched-select:focus,
.sched-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 201, 103, .16);
}

.sched-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}
.sched-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #ced8cf;
  background: var(--white);
  color: var(--body);
  font: 500 15px/1 var(--sans);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.sched-seg button:first-child { border-radius: 5px 0 0 5px; }
.sched-seg button:last-child { border-radius: 0 5px 5px 0; margin-left: -1px; }
.sched-seg button[aria-pressed="true"] {
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--ink);
  background: #f2f7f3;
  color: var(--ink);
  font-weight: 700;
}

.sched-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sched-range { color: var(--ink); font: 700 16px/1.3 var(--sans); }
.sched-nav { display: flex; gap: 6px; }
.sched-nav button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.sched-nav button:hover:not(:disabled) { border-color: var(--green); background: var(--paper); }
.sched-nav button:disabled { opacity: .35; cursor: not-allowed; }

.sched-grid-14 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.day-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 108px;
  padding: 11px 10px 10px;
  border: 2px solid transparent;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  transition: transform .12s, border-color .15s, background-color .15s;
}
.day-tile.has-slots { background: #b6f3d1; color: var(--green-deep); }
.day-tile.has-slots:hover { background: #96ecc0; }
.day-tile.no-slots { background: #ecefed; color: #7c8982; }
.day-tile.no-slots:hover { border-color: #c7d1ca; }
.day-tile.is-selected {
  border-color: var(--green-deep);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(7, 61, 44, .22);
}
.day-tile .d-dow { display: block; font: 700 14px/1.2 var(--sans); }
.day-tile .d-date { display: block; margin-top: 2px; font-size: 13px; opacity: .9; }
.day-tile .d-cnt { display: block; margin-top: 16px; font: 800 16px/1.1 var(--serif); }
.day-tile .d-lbl { display: block; font-size: 12px; line-height: 1.2; opacity: .92; }

.sched-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 14px/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--gold); }

.slot-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.slot-head h3 { font-size: 18px; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-free { background: var(--button); }
.dot-taken { background: #c94a38; }
.dot-past { background: #adb8b2; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.slot-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #cbd7ce;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.slot-btn .s-time { font: 700 13.5px/1.25 var(--sans); }
.slot-btn .s-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 99px;
  font: 700 11px/1.2 var(--sans);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.slot-btn.is-free:hover { border-color: var(--gold); background: #f4fbf6; }
.slot-btn.is-free .s-tag { background: #dcf8e8; color: #065535; }
.slot-btn.is-picked {
  border-color: var(--green-deep);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(7, 61, 44, .18);
}
.slot-btn.is-picked .s-tag { background: var(--button); color: var(--button-ink); }
.slot-btn.is-taken {
  border-color: #e2d5d3;
  background: repeating-linear-gradient(-45deg, #faf6f5, #faf6f5 7px, #f3ecea 7px, #f3ecea 14px);
  color: #7c6e6b;
  cursor: not-allowed;
}
.slot-btn.is-taken .s-time { text-decoration: line-through; }
.slot-btn.is-taken .s-tag { background: #fbe4e0; color: #9c2f21; }
.slot-btn.is-past {
  border-color: #e2e7e4;
  background: #f5f7f6;
  color: #93a099;
  cursor: not-allowed;
}
.slot-btn.is-past .s-tag { background: #e6ece8; color: #68756e; }

.booking-box {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbf8;
}
.picked-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--button);
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
}
.picked-banner strong { font-weight: 700; }
.sched-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.sched-msg:empty { display: none; }
.sched-msg.ok { background: #dcf8e8; color: #064e31; border: 1px solid #9be4be; }
.sched-msg.err { background: #fde8e5; color: #8f2619; border: 1px solid #f3b8b0; }

.appt-side {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.appt-side h3 { font-size: 22px; margin-bottom: 8px; }
.appt-side p { font-size: 15px; color: var(--muted); }
.appt-checklist { margin: 18px 0 22px; padding: 0 0 0 18px; color: var(--body); font-size: 14px; }
.appt-checklist li + li { margin-top: 6px; }

/* Public Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 14px 32px rgba(7, 61, 44, .09); transform: translateY(-2px); }
.post-cover { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--green); }
.post-cover-fallback {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 20px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-2));
  color: var(--gold-2);
  font: 800 13px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.post-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-meta { margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.post-meta b { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }
.post-card h2 { margin-bottom: 10px; font-size: 21px; line-height: 1.3; }
.post-card p { flex: 1; color: var(--muted); font-size: 15px; }
.post-read { margin-top: 18px; color: var(--green); font-weight: 700; font-size: 14px; }

.article-view { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--green); font-weight: 700; font-size: 14px; }
.article-view h1 { font-size: 38px; line-height: 1.18; margin: 10px 0 14px; }
.article-byline { padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; margin-bottom: 28px; }
.article-prose p { margin-bottom: 18px; font-size: 17px; line-height: 1.8; color: var(--body); }
.article-prose h2 { margin: 32px 0 12px; font-size: 26px; }
.article-prose h3 { margin: 24px 0 10px; font-size: 20px; }
.article-prose ul { margin: 0 0 20px; padding-left: 22px; }
.article-prose li + li { margin-top: 8px; }
.article-prose a { color: var(--green-2); text-decoration: underline; font-weight: 600; }
.article-prose blockquote { margin: 0 0 18px; padding-left: 14px; border-left: 3px solid var(--button); color: var(--green); font-weight: 600; }

@media (max-width: 980px) {
  .appt-layout { grid-template-columns: 1fr; }
  .blog-grid, .slot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .sched-card { padding: 22px 18px; }
  .sched-grid-14 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot-grid, .blog-grid { grid-template-columns: 1fr; }
  .pill-switch { width: 100%; }
  .pill-switch button { padding: 0 14px; font-size: 13px; }
}
