/* The Room Journal: a quiet transport bar, a measured pace, and useful detail. */
.spaces-section .room-tabs {
  margin-bottom: 10px;
}

.room-carousel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px 24px;
  min-height: 76px;
  padding: 13px 0 16px;
}

.room-carousel-meta {
  display: flex;
  flex: 1 1 210px;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.room-carousel-meta > .eyebrow {
  display: block;
  margin: 0;
  color: #6c755e;
  font-size: 10px;
  letter-spacing: 1.7px;
  line-height: 1.7;
}

#room-carousel-count {
  display: block;
  flex-shrink: 0;
  padding-left: 18px;
  border-left: 1px solid #c9ceba;
  color: #825b3c;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.3px;
  line-height: 1.8;
  white-space: nowrap;
}

.room-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.room-carousel-controls > button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #bcc4ad;
  border-radius: 3px;
  background: #fcfaf3;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fffdf7;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.room-carousel-controls > button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.room-carousel-controls > button:hover {
  border-color: #96724f;
  background: #eeeadd;
  color: #865732;
}

.carousel-arrow {
  flex: 0 0 44px;
  width: 44px;
  padding: 12px;
}

.room-carousel-controls svg {
  display: block;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-play {
  min-width: 126px;
  gap: 9px;
  padding: 10px 15px;
  font-size: 11px;
  letter-spacing: .1px;
  line-height: 1.6;
  white-space: nowrap;
}

.carousel-play .pause-icon,
.carousel-play[aria-pressed='true'] .play-icon {
  display: none;
}

.carousel-play[aria-pressed='true'] .pause-icon {
  display: block;
}

.room-carousel-controls .carousel-play[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #faf2e4;
  box-shadow: inset 0 1px 0 #ffffff1a;
}

.room-carousel-controls .carousel-play[aria-pressed='true']:hover {
  background: #385344;
}

.room-carousel-progress {
  height: 2px;
  overflow: hidden;
  margin-bottom: 13px;
  background: #d9ddcc;
}

.room-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #9a6941, #caa36e);
  transform: scaleX(0);
  transform-origin: left center;
}

.is-touring .room-progress-fill,
.tour-suspended .room-progress-fill {
  animation: room-tour-progress 14s linear forwards;
}

.tour-suspended .room-progress-fill {
  animation-play-state: paused;
}

@keyframes room-tour-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.spaces-section .room-panel {
  overflow: hidden;
}

.spaces-section .room-scene {
  touch-action: pan-y;
}

.room-motion-note {
  display: block;
  max-width: 780px;
  min-height: 22px;
  margin: 13px 0 0;
  color: #68725e;
  font-size: 11px;
  line-height: 1.8;
}

.room-recipe {
  margin: 0 0 24px;
  padding: 13px 15px 12px;
  border-left: 2px solid #ae8557;
  background: #f1efe4;
}

.room-recipe > .eyebrow {
  display: block;
  margin: 0 0 5px;
  color: #805c3d;
  font-size: 10px;
  letter-spacing: 1.25px;
  line-height: 1.7;
}

.room-recipe > p {
  margin: 0;
  color: #52634e;
  font-size: 12px;
  line-height: 1.8;
}

.room-scene-caption > .text-button[data-room-article] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 0;
  color: #4b6049;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #a0aa8b;
  text-underline-offset: 4px;
}

.room-scene-caption > strong {
  display: block;
  margin-bottom: 4px;
  color: #4b6049;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -.2px;
  line-height: 1.5;
}

.room-scene-caption > .text-button[data-room-article]:hover {
  color: #8c5f39;
  text-decoration-color: currentColor;
}

.room-article .room-article-intro {
  padding-bottom: 20px;
  border-bottom: 1px solid #d7dccb;
  color: #4f634d;
  font-size: 14px;
  line-height: 1.9;
}

.room-article-recipe {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #d7dccb;
  border-left: 2px solid #a67c50;
  background: #f0efe3;
}

.room-article-recipe > .eyebrow,
.room-article-recipe > small {
  display: block;
  margin: 0 0 10px;
  color: #805c3d;
  font-size: 10px;
  letter-spacing: 1.3px;
  line-height: 1.8;
}

.room-article-recipe ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
}

.room-article-recipe li::marker {
  color: #a67c50;
}

.room-article-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 22px 0;
}

.room-article-palette .palette-chip {
  font-size: 11px;
}

@media (max-width: 680px) {
  .room-carousel-toolbar { gap: 12px 20px; padding-top: 4px; padding-bottom: 14px; }
  .room-carousel-meta { flex-basis: 100%; justify-content: space-between; }
  .room-carousel-controls { margin-left: auto; }
  .room-carousel-meta > .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  #room-carousel-count { padding-left: 13px; }
  .room-carousel-progress { margin-bottom: 11px; }
  .room-motion-note { margin-top: 12px; font-size: 11px; }
  .room-recipe { padding: 12px 13px; }
  .room-article-recipe { padding: 17px; }
}

@media (max-width: 360px) {
  .room-carousel-controls { width: 100%; justify-content: space-between; }
  .carousel-play { flex: 1 1 auto; min-width: 0; padding-inline: 11px; }
  .room-carousel-meta { gap: 12px; }
  .room-carousel-meta > .eyebrow { letter-spacing: 1px; }
  #room-carousel-count { font-size: 10px; letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .is-touring .room-progress-fill,
  .tour-suspended .room-progress-fill { animation: none; transform: scaleX(0); }
  .room-carousel-controls > button { transition: none; }
}
