/* Chrome for live pages. Class names stay off the template stylesheet
   so the homepage clinic layout is not restyled. */

.ddx-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 241, 232, 0.94);
  border-bottom: 2.5px solid rgba(28, 27, 24, 0.12);
  backdrop-filter: blur(12px);
}

.ddx-header-inner {
  width: min(1060px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ddx-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: #1c1b18;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.ddx-logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2.5px solid #1c1b18;
  border-radius: 10px;
  background: #2f5a22;
  padding: 4px;
}

.ddx-logo-mark img { width: 100%; height: 100%; display: block; }

.ddx-nav-details { margin-left: auto; }

.ddx-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 2px solid #1c1b18;
  background: #fffef9;
  color: #1c1b18;
  font: 700 0.95rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  list-style: none;
}

.ddx-nav-toggle::-webkit-details-marker { display: none; }

.ddx-nav-bars {
  width: 1rem;
  height: 2px;
  background: #1c1b18;
  box-shadow: 0 -5px 0 #1c1b18, 0 5px 0 #1c1b18;
}

.ddx-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #f4f1e8;
  border-bottom: 2.5px solid #1c1b18;
  padding: 0.4rem 1.25rem 1rem;
  flex-direction: column;
  gap: 0.15rem;
}

.ddx-nav-details[open] .ddx-nav { display: flex; }

.ddx-nav > a,
.ddx-guides-toggle {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #5c594c;
  font-weight: 600;
  text-decoration: none;
}

.ddx-guides { position: relative; min-width: 0; }

.ddx-guides-toggle {
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ddx-guides-caret { display: none; }

.ddx-guides-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ddx-guides-menu a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  color: #1c1b18;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ddx-guides-name { font-weight: 800; letter-spacing: -0.02em; }

.ddx-guides-desc {
  color: #646055;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.ddx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f5a22;
  color: #f5f2e6;
  padding: 10px 16px;
  border: 2.5px solid #1c1b18;
  border-radius: 999px;
  box-shadow: 0 3px 0 #1a3a14;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.ddx-nav .ddx-btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  color: #f5f2e6;
}

.ddx-part-of { margin: 0.35rem 0 1rem; font-weight: 600; }

.ddx-hub-intro {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.4rem;
}

.ddx-hub-intro p { margin: 0; }

.ddx-kicker {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #646055;
}

.ddx-card-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.ddx-symptom,
.ddx-spoke {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fffef9;
  color: #1c1b18;
  text-decoration: none;
  border: 2.5px solid #1c1b18;
  border-radius: 18px;
  padding: 0.95rem 1.05rem;
  box-shadow: 4px 5px 0 rgba(28, 27, 24, 0.08);
  font-weight: 800;
}

.ddx-spoke { font-weight: 500; }

.ddx-spoke strong { display: block; font-weight: 800; letter-spacing: -0.02em; }

.ddx-spoke span { display: block; margin-top: 0.25rem; color: #5c594c; font-weight: 500; }

.ddx-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.2rem;
}

.ddx-hub-links a {
  overflow-wrap: anywhere;
}

.ddx-final {
  background: #1c1b18;
  color: #f4f1e8;
  text-align: center;
  padding: 3.5rem 1.25rem;
  margin-top: 2rem;
}

.ddx-final-inner { width: min(40rem, 100%); margin: 0 auto; }

.ddx-final-kicker {
  margin: 0 0 0.6rem;
  font-family: Caveat, cursive;
  font-size: 1.6rem;
  color: #d8e6cc;
}

.ddx-final h2 {
  margin: 0 auto;
  max-width: 16em;
  color: #f4f1e8;
}

.ddx-final h2 span { color: #d8e6cc; }

.ddx-final p { margin: 0.9rem auto 0; max-width: 34rem; color: #d9d3c4; }

.ddx-final .ddx-btn { margin-top: 1.35rem; color: #f5f2e6; }

.ddx-crumbs { margin: 0 0 1rem; color: #646055; font-size: 0.92rem; }

.ddx-crumbs a { color: #3d6b2e; }

@media (max-width: 22.5rem) {
  .ddx-logo { font-size: 0.95rem; }
  .ddx-logo-mark { width: 32px; height: 32px; }
  .ddx-header-inner { width: min(1060px, calc(100% - 1.5rem)); }
}

@media (min-width: 40rem) {
  .ddx-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 68rem) {
  .ddx-nav-toggle { display: none; }

  .ddx-nav,
  .ddx-nav-details[open] .ddx-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .ddx-guides-toggle { width: auto; font-weight: 600; }

  .ddx-guides-caret {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.35rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
  }

  .ddx-guides-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 50;
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.4rem;
    background: #fffef9;
    border: 2.5px solid #1c1b18;
    border-radius: 16px;
    box-shadow: 4px 5px 0 rgba(28, 27, 24, 0.12);
  }

  .ddx-guides.is-open .ddx-guides-menu { display: flex; }

  .ddx-nav .ddx-btn { margin: 0 0 0 6px; }
}
