/* ============================================
   SIPO live component styles — Arranged Marriage
   ============================================
   Only two surfaces are styled here:
     .status-strip  — live open/closed bar under the nav
     [data-am]      — API-filled contact & hours text

   Colours follow the site palette so the strip
   reads as part of the design, not bolted on.
   ============================================ */

:root {
    --am-gold: #bfa15b;
    --am-ink: #141d27;
    --am-open: #1f6f4a;
    --am-closed: #8c2f2f;
    --am-unknown: #4a4a4a;
}

/* ---------- Status strip ---------- */
.status-strip {
    position: sticky;
    top: var(--nav-h, 48px);
    z-index: 90;
    background: #0b1119;
    border-bottom: 1px solid rgba(191, 161, 91, 0.35);
    font-family: 'AM Sans', -apple-system, system-ui, sans-serif;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 13px;
    line-height: 1.3;
    color: #f1f0f0;
}

.status-row + .status-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--am-unknown);
    flex: none;
}

.status-row[data-state="open"] .status-dot {
    background: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
    animation: am-pulse 2.2s ease-out infinite;
}

.status-row[data-state="closed"] .status-dot { background: #e05555; }

@keyframes am-pulse {
    to { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); }
}

.status-place {
    font-weight: 700;
    color: var(--am-gold);
    white-space: nowrap;
}

.status-word { font-weight: 700; white-space: nowrap; }
.status-row[data-state="open"] .status-word { color: #7fe0a8; }
.status-row[data-state="closed"] .status-word { color: #ffb3b3; }

.status-detail {
    color: rgba(241, 240, 240, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-cta {
    margin-left: auto;
    flex: none;
    padding: 5px 14px;
    border: 1px solid var(--am-gold);
    border-radius: 2px;
    color: var(--am-gold);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.02em;
    transition: background 0.18s ease, color 0.18s ease;
}

.status-cta:hover { background: var(--am-gold); color: var(--am-ink); }

.status-offer {
    padding: 7px 18px;
    background: rgba(191, 161, 91, 0.14);
    border-top: 1px solid rgba(191, 161, 91, 0.3);
    color: var(--am-gold);
    font-size: 12.5px;
}

/* ---------- API-filled page text ---------- */
/* These sit inside the fixed design canvas, so they
   inherit their font from the element they replace. */
[data-am] a {
    color: inherit;
    text-decoration: none;
}

[data-am] a:hover { text-decoration: underline; }

[data-am="hours"] {
    display: block;
    height: auto;
}

.am-hours-row {
    display: block;
    white-space: nowrap;
}

.am-hours-day {
    display: inline-block;
    min-width: calc(150 * var(--u, 1px));
}

.am-hours-time { display: inline-block; }

/* While a value is still being fetched, keep the printed
   text visible — never flash an empty box. */
[data-am][data-am-state="static"] { opacity: 1; }

@media (max-width: 700px) {
    .status-row { flex-wrap: wrap; gap: 6px 8px; font-size: 12px; padding: 7px 12px; }
    .status-detail { flex-basis: 100%; order: 5; }
    .status-cta { margin-left: auto; }
}
