/* Relógio de medicações 24h — estilos restritos ao shortcode [med_clock_24h]. */
.mc24, .mc24 * { box-sizing: border-box; }
.mc24 {
  --mc24-blue: #2563EB;
  --mc24-blue-soft: #D7EAFE;
  --mc24-orange: #F97316;
  --mc24-violet: #9333EA;
  --mc24-teal: #0F766E;
  --mc24-ink: #162235;
  --mc24-muted: #617083;
  --mc24-border: #E1E7ED;
  width: 100%;
  max-width: 1140px;
  margin: 16px auto;
  padding: clamp(16px, 3.2vw, 36px);
  border: 1px solid var(--mc24-border);
  border-radius: 20px;
  background: #fff;
  color: var(--mc24-ink);
  box-shadow: 0 6px 28px rgba(20, 35, 55, .045);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  isolation: isolate;
}
.mc24 .mc24__title { margin: 0 0 8px; font-size: clamp(21px, 2.7vw, 29px); font-weight: 750; line-height: 1.25; color: var(--mc24-ink); }
.mc24 .mc24__intro { margin: 0; max-width: 720px; color: var(--mc24-muted); font-size: 14px; }
.mc24__header { margin-bottom: clamp(14px, 2.5vw, 24px); }
.mc24__layout { display: grid; grid-template-columns: minmax(265px, .93fr) minmax(0, 1.3fr); align-items: center; gap: clamp(14px, 3.5vw, 36px); }
.mc24__controls { display: grid; gap: 12px; min-width: 0; }
.mc24__field {
  --mc24-accent: var(--mc24-blue);
  --mc24-tint: #F3F7FF;
  padding: 14px 16px;
  border: 1px solid var(--mc24-border);
  border-left: 5px solid var(--mc24-accent);
  border-radius: 12px;
  background: linear-gradient(100deg, var(--mc24-tint), #fff 70%);
}
.mc24__field--sucralfato { --mc24-accent: var(--mc24-blue); --mc24-tint: #F3F7FF; }
.mc24__field--citrato { --mc24-accent: var(--mc24-orange); --mc24-tint: #FFF8ED; }
.mc24__field--gabapentina { --mc24-accent: var(--mc24-violet); --mc24-tint: #FBF5FF; }
.mc24__field--adicional { --mc24-accent: var(--mc24-teal); --mc24-tint: #F0FBF8; }
.mc24 .mc24__label { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; color: var(--mc24-ink); font-weight: 700; font-size: 15px; cursor: pointer; }
.mc24__swatch { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--mc24-accent); }
.mc24__field--gabapentina .mc24__swatch { border-radius: 2px; transform: rotate(45deg) scale(.8); }
.mc24__choose { display: flex; align-items: center; gap: 10px; }
.mc24 .mc24__select {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  appearance: auto;
  padding: 8px 12px;
  border: 1px solid #B7C4D1;
  border-radius: 9px;
  background: #fff;
  color: #142238;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.mc24 .mc24__select:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.mc24 .mc24__times { margin: 9px 0 0; min-height: 18px; color: #596779; font-size: 12.5px; overflow-wrap: anywhere; }
.mc24__visual { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.mc24__clock { display: block; width: 100%; max-width: 610px; height: auto; overflow: visible; }
.mc24__key { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 15px; margin: 0; font-size: 12.5px; color: #3E4B5B; }
.mc24__key-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mc24__legend-color { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.mc24__legend-color--sucralfato { background: var(--mc24-blue); }
.mc24__legend-color--citrato { background: var(--mc24-orange); }
.mc24__legend-color--gabapentina { background: var(--mc24-violet); border-radius: 2px; transform: rotate(45deg) scale(.78); }
.mc24__legend-color--adicional { background: var(--mc24-teal); }
.mc24__result { margin-top: 22px; padding: 14px 17px; border: 1px solid var(--mc24-border); border-radius: 12px; background: #F8FAFC; color: #233145; font-size: 13.5px; }
.mc24__result-heading { display: block; font-weight: 750; margin-bottom: 7px; }
.mc24__result-line { margin: 5px 0 0; }
.mc24__result-line--hit { font-weight: 650; }
.mc24__result-chip { display: inline-block; padding: 1px 6px; border-radius: 5px; background: #DFEAFD; color: #1D4ED8; font-weight: 700; }
.mc24 .mc24__footnote { margin: 12px 0 0; max-width: 950px; color: #687585; font-size: 12px; line-height: 1.5; }
@media (max-width: 820px) {
  .mc24__layout { grid-template-columns: 1fr; gap: 12px; }
  .mc24__visual { order: -1; }
  .mc24__clock { max-width: 560px; }
  .mc24__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .mc24 { padding: 14px 10px 16px; border-radius: 14px; }
  .mc24__header { padding: 0 6px; }
  .mc24__controls { grid-template-columns: 1fr; padding: 0 5px; }
  .mc24__key { gap: 7px 11px; font-size: 11.5px; }
  .mc24__result, .mc24 .mc24__footnote { margin-left: 5px; margin-right: 5px; }
}

/* Versão 1.2 — mensagem central e ondas que se abrem ±2h a partir das doses. */
.mc24__center-message {
  fill: #42546B;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -.25px;
  pointer-events: none;
}
.mc24__center-message-accent {
  fill: #2563EB;
  font-weight: 760;
}
.mc24__pulse-arc {
  stroke-dasharray: 0 110;
  stroke-opacity: 0;
  pointer-events: none;
  animation: mc24-pulse-out 3.6s ease-in-out infinite;
}
@keyframes mc24-pulse-out {
  0% { stroke-dasharray: 0 110; stroke-opacity: 0; }
  14% { stroke-opacity: .38; }
  55% { stroke-dasharray: 102 110; stroke-opacity: .40; }
  78%, 100% { stroke-dasharray: 102 110; stroke-opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mc24__pulse-arc { animation: none; stroke-opacity: 0; }
}

/* Versão 1.3 — alertas localizados, figuras exclusivas e resultados acessíveis. */
.mc24__band--conflict {
  fill: #D7EAFE;
  animation: mc24-band-color-alert 3.6s ease-in-out infinite;
}
@keyframes mc24-band-color-alert {
  0%, 100% { fill: #D7EAFE; }
  47%, 65% { fill: #FCE2E6; }
}
.mc24__external-marker--conflict {
  animation: mc24-marker-blink 1.45s ease-in-out infinite;
}
@keyframes mc24-marker-blink {
  0%, 42%, 100% { opacity: 1; }
  60%, 75% { opacity: .25; }
}
.mc24__hour--clear {
  fill: #15803D;
  font-weight: 750;
}
.mc24__hour--conflict {
  fill: #B91C1C;
  font-weight: 800;
  animation: mc24-hour-blink 1.45s ease-in-out infinite;
}
@keyframes mc24-hour-blink {
  0%, 42%, 100% { fill: #B91C1C; opacity: 1; }
  60%, 75% { fill: #F87171; opacity: .37; }
}
.mc24__result-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 27px;
  line-height: 1.4;
}
.mc24__result-line--hit { color: #A91E28; }
.mc24__result-line--clear { color: #176A37; }
.mc24__status-icon {
  display: inline-flex;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  font-family: system-ui, sans-serif;
}
.mc24__status-icon--clear { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.mc24__status-icon--conflict { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.mc24__field--sucralfato .mc24__swatch,
.mc24__legend-color--sucralfato { border-radius: 6px; width: 8px; }
.mc24__field--adicional .mc24__swatch,
.mc24__legend-color--adicional {
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@media (prefers-reduced-motion: reduce) {
  .mc24__band--conflict { animation: none; fill: #FCE2E6; }
  .mc24__external-marker--conflict { animation: none; opacity: 1; }
  .mc24__hour--conflict { animation: none; fill: #B91C1C; opacity: 1; }
}
