.translation-strip,
.translation-strip * {
  box-sizing: border-box;
}

.translation-strip {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid #c8e0dc;
  background: linear-gradient(90deg, #e8f6f2, #f3fbfa);
  color: #173c39;
  font-family: Frutiger W01, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.translation-strip__inner {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-quick-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(8,121,111,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #075f59;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.top-quick-actions a:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 5px 14px rgba(7,95,89,.12);
  text-decoration: underline;
}

.top-quick-actions a:focus-visible {
  outline: 4px solid #ffdd00;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #212b32;
}

.top-quick-actions__icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg,#007f78,#005eb8);
  color: #fff;
}

.top-quick-actions__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Larger practice identity across every page using the shared header. */
.site-header .brand-row {
  min-height: 116px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header .brand {
  flex: 0 1 auto;
  min-width: 0;
}

.site-header .practice-logo {
  display: block;
  width: 300px !important;
  max-width: min(300px, 46vw) !important;
  height: auto !important;
  max-height: 95px !important;
  object-fit: contain;
  object-position: left center;
}

.translation-panel {
  position: relative;
}

.translation-panel summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 4px;
  color: #08796f;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.translation-panel summary::-webkit-details-marker {
  display: none;
}

.translation-panel summary::after {
  content: "⌄";
  margin-left: 3px;
  font-size: 19px;
  text-decoration: none;
}

.translation-panel[open] summary::after {
  content: "⌃";
}

.translation-panel summary:focus-visible,
.translation-panel select:focus-visible,
.translation-all:focus-visible {
  outline: 4px solid #ffdd00;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #212b32;
}

.translation-panel__content {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: min(680px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid #c8e0dc;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(4, 63, 60, 0.2);
}

.translation-panel__content h2 {
  margin: 0 0 7px;
  color: #063f3c;
  font-size: 24px;
  line-height: 1.2;
}

.translation-panel__content > p {
  margin: 0 0 16px;
  color: #4b6171;
  font-size: 15px;
}

.translation-panel__content label {
  display: block;
  margin-bottom: 6px;
  color: #173c39;
  font-size: 15px;
  font-weight: 850;
}

.gtranslate_wrapper {
  min-height: 50px;
}

.gtranslate_wrapper select,
.gtranslate_wrapper .gt_selector {
  width: 100% !important;
  min-height: 50px;
  padding: 10px 42px 10px 13px !important;
  border: 2px solid #4c6272 !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: #173c39 !important;
  font: inherit !important;
  font-size: 16px !important;
}

.translation-panel__content .translation-fallback {
  margin: 12px 0 0;
  color: #4b6171;
  font-size: 13px;
}

.translation-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
}

.translation-actions select {
  width: 100%;
  min-height: 48px;
  padding: 9px 42px 9px 12px;
  border: 2px solid #4c6272;
  border-radius: 9px;
  background: #fff;
  color: #173c39;
  font: inherit;
  font-size: 16px;
}

.translation-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid #08796f;
  border-radius: 9px;
  background: #08796f;
  color: #fff !important;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
}

.translation-all:hover {
  border-color: #045a53;
  background: #045a53;
  text-decoration: underline !important;
}

.translation-panel__content .translation-warning {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #f47738;
  border-radius: 4px 10px 10px 4px;
  background: #fff4e5;
  color: #3b4650;
  font-size: 14px;
}

@media (max-width: 780px) {
  .site-header .brand-row {
    min-height: 92px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header .practice-logo {
    width: 205px !important;
    max-width: 68vw !important;
    max-height: 72px !important;
  }

  .translation-panel__content {
    position: relative;
    top: auto;
    width: 100%;
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(4, 63, 60, 0.15);
  }

  .translation-actions {
    grid-template-columns: 1fr;
  }

  .translation-all {
    width: 100%;
  }

  .translation-strip__inner {
    gap: 8px;
  }

  .translation-panel summary {
    font-size: 14px;
  }

  .top-quick-actions {
    gap: 5px;
  }

  .top-quick-actions a {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .top-quick-actions__icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
  }

  .top-quick-actions__icon svg {
    display: block;
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
  }

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

@media (prefers-reduced-motion: reduce) {
  .translation-panel *,
  .translation-panel *::before,
  .translation-panel *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
