/* home-open-status.css — ป้าย «วันนี้เปิดไหม» แบบ A2-2 บนฮีโร่หน้าแรก แทน .hours เดิม */
.chrome .os {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  max-width: 420px;
  text-align: center;
  font-family: "LINE Seed Sans TH", "Noto Sans Thai", sans-serif;
  color: #211b25;
}
.chrome .os-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 6px 12px 6px 10px;
  min-height: 36px;
  max-width: 100%;
  margin: 0;
  border: 0;
  font: inherit;
  color: inherit;
  background: #fbf8fc;
  text-align: inherit;
  cursor: pointer;
}
.chrome .os-pill:focus-visible {
  outline: 2px solid #7d4485;
  outline-offset: 2px;
}
.chrome .os-pill [data-ico] svg,
.chrome .os-pop-actions a svg {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}
.chrome .os-text { min-width: 0; text-wrap: pretty; }
.chrome .os-state {
  margin: 0;
  font: 700 16px/1.3 "LINE Seed Sans TH", "Noto Sans Thai", sans-serif;
  display: inline;
}
.chrome .os-sub {
  margin: 0;
  font: 400 13px/1.4 "LINE Seed Sans TH", "Noto Sans Thai", sans-serif;
  display: inline;
}
.chrome .os-sub::before { content: " · "; }
.chrome .os-caret {
  width: 16px;
  height: 16px;
  flex: none;
  margin-left: 2px;
  transition: transform 160ms ease;
}
.chrome .os-pill[aria-expanded="true"] .os-caret {
  transform: rotate(180deg);
}
.chrome .os[data-kind="open"] .os-pill,
.chrome .os[data-kind="no_groups"] .os-pill {
  background: #e7f3ea;
  color: #175c36;
}
.chrome .os[data-kind="before"] .os-pill,
.chrome .os[data-kind="before_no_groups"] .os-pill {
  background: #f3eee3;
  color: #5c4010;
}
.chrome .os[data-kind="after"] .os-pill,
.chrome .os[data-kind="weekly"] .os-pill {
  background: #ebdcee;
  color: #7d4485;
}
.chrome .os[data-kind="holiday"] .os-pill {
  background: #f6e8ea;
  color: #7a2d38;
}
.chrome .os-pop {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-6px);
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  background: #ebdcee;
  color: #211b25;
  border-radius: 8px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.chrome .os-pop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.chrome .os-pop-kicker {
  margin: 0 0 8px;
  font: 700 12px/1.3 "LINE Seed Sans TH", "Noto Sans Thai", sans-serif;
  color: #7d4485;
}
.chrome .os-pop-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
.chrome .os-pop-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbf8fc;
  color: #7d4485;
  font: 700 13px/1.3 "LINE Seed Sans TH", "Noto Sans Thai", sans-serif;
  text-decoration: none;
}
.chrome .os-pop-actions a:focus-visible {
  outline: 2px solid #7d4485;
  outline-offset: 2px;
}
.chrome .os-week {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fbf8fc;
  border-radius: 8px;
  overflow: hidden;
}
.chrome .os-week li {
  display: grid;
  grid-template-columns: 28px 28px 1fr;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  min-height: 32px;
  font: 400 13px/1.35 "LINE Seed Sans TH", "Noto Sans Thai", sans-serif;
  color: #211b25;
}
.chrome .os-week .dow { font-weight: 700; color: #7d4485; }
.chrome .os-week .date { color: #7d4485; font-size: 12px; }
.chrome .os-week li.is-today .dow,
.chrome .os-week li.is-today .note { font-weight: 700; }
.chrome .os-week .note {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.chrome .os-week .note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
}
.chrome .os-pop-err {
  margin: 8px 0 0;
  font: 400 13px/1.4 "LINE Seed Sans TH", "Noto Sans Thai", sans-serif;
  color: #7a2d38;
}
.chrome .os-pop-err a { color: #7d4485; font-weight: 700; text-decoration: none; }
.chrome .os-pop-err a:focus-visible {
  outline: 2px solid #7d4485;
  outline-offset: 2px;
}
/* เลื่อนพ้นฮีโร่แล้วไม่ใช้พื้นโปร่งแบบ .hours เดิม — คงสีสถานะบนปุ่ม */
body.scrolled .chrome .os .os-pill {
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (max-width: 900px) {
  .chrome .os {
    left: 68px;
    right: 16px;
    top: 72px;
    transform: none;
    max-width: none;
    text-align: left;
  }
  .chrome .os-pill {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    min-height: 44px;
    width: 100%;
  }
  .chrome .os-state,
  .chrome .os-sub { display: block; }
  .chrome .os-sub::before { content: none; }
  .chrome .os-state { font-size: 15px; }
  .chrome .os-pop {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: translateY(-6px);
  }
  .chrome .os-pop.is-open { transform: translateY(0); }
  /* ให้ชื่อหน่วยงานไม่ทับป้าย */
  .hero.a3 .a3-ht { margin-top: 52px; }
}
/* มือถือซ่อนโลโก้มุมแล้ว ป้ายเวลาไม่ต้องเว้นที่โลโก้ จึงชิดบนและอยู่กึ่งกลาง ไม่ไปกองกับชื่อหน่วยงาน */
@media (max-width: 768px) {
  .chrome .os {
    left: 16px;
    right: 16px;
    top: 8px;
    width: auto;
    transform: none;
    text-align: center;
  }
  .chrome .os-pill {
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    max-width: 100%;
  }
  .chrome .os-text { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .chrome .os-caret,
  .chrome .os-pop { transition: none !important; }
}
