/* RE+ drawer — a quiet, in-flow extension of the Solarix black and gold system. */
.replus-drawer {
  --replus-gold: #DDBE78;
  --replus-ink: #0A0B0F;
  --replus-paper: #F6F4EF;
  position: relative;
  z-index: 4;
  width: 100%;
  box-sizing: border-box;
  color: var(--replus-paper);
  background: #101116;
  border-bottom: 1px solid rgba(221, 190, 120, .42);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.replus-drawer *,
.replus-drawer *::before,
.replus-drawer *::after { box-sizing: border-box; }

.replus-drawer__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.replus-drawer__toggle {
  width: 100%;
  min-height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--replus-paper);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.replus-drawer__teaser {
  color: rgba(246, 244, 239, .9);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .025em;
}

.replus-drawer__teaser span { padding: 0 2px; color: var(--replus-gold); }

.replus-drawer__chevron {
  flex: 0 0 auto;
  color: var(--replus-gold);
  transition: transform .18s ease;
}

.replus-drawer[data-open="true"] .replus-drawer__chevron { transform: rotate(180deg); }

.replus-drawer__toggle:hover .replus-drawer__teaser { color: #fff; }
.replus-drawer__toggle:focus-visible,
.replus-drawer__panel a:focus-visible,
.replus-drawer__panel button:focus-visible,
.replus-drawer__schedule summary:focus-visible {
  outline: 2px solid var(--replus-gold);
  outline-offset: 3px;
}

.replus-drawer__panel {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease;
}

.replus-drawer__panel[hidden] { display: none !important; }
.replus-drawer__panel[data-visible="true"] { opacity: 1; transform: translateY(0); }

.replus-drawer__content {
  display: grid;
  grid-template-columns: minmax(210px, .95fr) minmax(320px, 1.4fr) minmax(190px, .85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: 8px 0 26px;
  border-top: 1px solid rgba(246, 244, 239, .12);
}

.replus-drawer__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.replus-drawer__logo {
  display: block;
  width: 74px;
  height: auto;
  flex: 0 0 74px;
}

.replus-drawer__location {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(246, 244, 239, .62);
  font-size: 12px;
  line-height: 1.4;
}

.replus-drawer__location span:first-child { color: rgba(246, 244, 239, .9); }
.replus-drawer__location i { color: var(--replus-gold); font-style: normal; }

.replus-drawer__status { min-width: 0; }

.replus-drawer__status-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.replus-drawer__status-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--replus-gold);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .12em;
}

.replus-drawer__live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #8AB998;
}

.replus-drawer__status-detail {
  margin: 0;
  color: rgba(246, 244, 239, .82);
  font-size: 13px;
  line-height: 1.5;
}

.replus-drawer__countdown {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 8px;
  color: var(--replus-paper);
  font-variant-numeric: tabular-nums;
}

.replus-drawer__countdown[hidden],
.replus-drawer__countdown [hidden] { display: none !important; }

.replus-drawer__countdown-unit { display: inline-flex; align-items: baseline; gap: 4px; }
.replus-drawer__countdown-unit strong { font-size: 17px; line-height: 1; font-weight: 500; }
.replus-drawer__countdown-unit span { color: rgba(246, 244, 239, .6); font-size: 10px; letter-spacing: .04em; }
.replus-drawer__countdown-separator { color: var(--replus-gold); }

.replus-drawer__schedule { margin-top: 12px; }
.replus-drawer__schedule summary {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(246, 244, 239, .72);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.replus-drawer__schedule summary::-webkit-details-marker { display: none; }
.replus-drawer__schedule summary svg { color: var(--replus-gold); transition: transform .18s ease; }
.replus-drawer__schedule[open] summary svg { transform: rotate(180deg); }

.replus-drawer__days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(246, 244, 239, .15);
  border-bottom: 1px solid rgba(246, 244, 239, .15);
}

.replus-drawer__day {
  min-width: 0;
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid rgba(246, 244, 239, .12);
  color: rgba(246, 244, 239, .58);
}

.replus-drawer__day:last-child { border-right: 0; }
.replus-drawer__day.is-current { color: var(--replus-gold); background: rgba(221, 190, 120, .07); }
.replus-drawer__day strong { font-size: 10px; line-height: 1.3; font-weight: 600; letter-spacing: .035em; }
.replus-drawer__day span { font-size: 11px; line-height: 1.35; }
.replus-drawer__timezone { margin: 8px 0 0; color: rgba(246, 244, 239, .48); font-size: 10px; line-height: 1.4; }

.replus-drawer__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.replus-drawer__meeting,
.replus-drawer__close {
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(221, 190, 120, .72);
  color: var(--replus-gold);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.replus-drawer__meeting:hover { color: var(--replus-ink); background: var(--replus-gold); border-color: var(--replus-gold); }
.replus-drawer__close { min-height: 44px; border-color: transparent; color: rgba(246, 244, 239, .6); }
.replus-drawer__close:hover { color: var(--replus-paper); }

@media (max-width: 780px) {
  .replus-drawer__inner { padding: 0 22px; }
  .replus-drawer__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 18px 26px;
    padding: 8px 0 22px;
  }
  .replus-drawer__identity { grid-column: 1 / -1; }
  .replus-drawer__logo { width: 64px; flex-basis: 64px; }
  .replus-drawer__actions { align-self: end; }
}

@media (max-width: 520px) {
  .replus-drawer__inner { padding: 0 16px; }
  .replus-drawer__toggle { justify-content: space-between; }
  .replus-drawer__content { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
  .replus-drawer__identity { gap: 14px; }
  .replus-drawer__logo { width: 58px; flex-basis: 58px; }
  .replus-drawer__status-head { gap: 5px 10px; }
  .replus-drawer__schedule { margin-top: 8px; }
  .replus-drawer__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .replus-drawer__meeting { min-height: 48px; }
  .replus-drawer__close { min-width: 60px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .replus-drawer__chevron,
  .replus-drawer__panel,
  .replus-drawer__schedule summary svg,
  .replus-drawer__meeting,
  .replus-drawer__close { transition: none; }
}
