/* Red&Co: bundle "status", generated from src/ (support/bundles.php). Do not edit here: edit the sources. */

/* ===== src/vendor/redandco/pages/status.css ===== */
/* Red&Co: styles of views/vendor/redandco/pages/status.blade.php. Mobile / tablet rules (@media) at the end of the file. */

/* =========================================================
   Red&Co — Status and Calendar pages (loaded only on these pages)
   ========================================================= */
.rc-label-orange { color: var(--rc-orange-ink); }
@media (min-width: 768px) {
/* beyond mobile only: below, the generic common rule applies */
.rc-status-hero { --hero-h: 560px; }
}
.rc-status-hero.is-alert .rc-veil { filter: saturate(.45) brightness(.7); }
.rc-status-hero .rc-page-hero-inner { bottom: 56px; gap: 48px; }
.rc-status-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    padding-bottom: 16px;
}
.rc-status-text .rc-pill { align-self: flex-start; }
.rc-status-text h1 { font-size: clamp(var(--fs-title-l), 4.5vw, var(--fs-title-2xl)); line-height: var(--lh-tight); }
.rc-status-text p {
    margin: 0;
    font: 500 16px/1.5 var(--font-ui);
    color: rgba(var(--rc-fg-rgb), .85);
    text-wrap: pretty;
}
.rc-island {
    position: relative;
    flex-shrink: 0;
}
.rc-state-cube {
    position: absolute;
    filter: drop-shadow(0 8px 5px rgba(0, 0, 0, .45));
}
.rc-state-cube svg { display: block; overflow: visible; }
.rc-state-cube.is-alert {
    z-index: 2;
    filter: drop-shadow(0 0 14px var(--c));
    animation: rcCubeLift 1.6s var(--ease-wave) infinite alternate;
}
.rc-status {
    padding-top: 32px;
    padding-bottom: 120px; /* off-token: layout */
}
.rc-status-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 72px; /* off-token: layout */
    align-items: start;
}
.rc-status-grid.is-single { grid-template-columns: minmax(0, 420px); }   /* without services (sample data hidden from visitors) */
.rc-status-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rc-services {
    margin-top: 8px;
    border-bottom: 1px solid var(--rc-hair);
}
.rc-service {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--rc-hair);
}
.rc-service-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rc-service-cube {
    width: 30px;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
}
.rc-service-cube svg { overflow: visible; }
.rc-service-name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rc-service-name strong { font: 600 16px/1.2 var(--font-ui); }
.rc-service-name span { font: 500 14px/1 var(--font-ui); color: var(--rc-meta); }
.rc-live { color: var(--rc-fg-2) !important; }
.rc-bars {
    position: relative;
    display: flex;
    gap: 2px;
    height: 30px;
}
.rc-bar {
    position: relative;
    flex: 1;
    border-radius: var(--radius-2xs);
    background: var(--c);
    transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.rc-bar.is-ok { opacity: .55; }
.rc-bar:hover { opacity: 1; transform: scaleY(1.15); }
/* tooltip: common rule in _shared/chart-tooltip.css; the bar grows on hover (scaleY 1.15), the tooltip compensates */
.rc-bars .rc-bar:hover::after { transform: translateX(-50%) scaleY(.87); }
.rc-bars-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font: 500 12px/1 var(--font-ui);
    color: var(--rc-fg-3);
}
.rc-bars-legend strong { font-weight: 500; color: var(--rc-fg-2); }
/* Right column */
.rc-status-side {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.rc-status-side > * + * {
    padding-top: 32px;
    border-top: 1px solid var(--rc-hair);
}
.rc-players {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rc-players-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}
.rc-players-head > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rc-players-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.rc-players-count b { font: 400 var(--fs-title-2xl)/1 var(--font-display); }
.rc-players-count span { font: 500 14px/1 var(--font-ui); color: var(--rc-meta); }
.rc-chart {
    position: relative;
    color: var(--rc-fg);
}
.rc-chart svg {
    display: block;
    width: 100%;
    height: 110px;
    overflow: visible;
}
.rc-chart-grid {
    stroke: rgba(var(--rc-fg-rgb), .07);
    vector-effect: non-scaling-stroke;
}
.rc-chart-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.rc-chart-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: var(--radius-round);
    background: var(--rc-green);
    border: 3px solid var(--rc-outline);
    box-shadow: 0 0 10px var(--rc-green);
}
.rc-chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font: 500 12px/1 var(--font-ui);
    color: var(--rc-fg-3);
}
.rc-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.rc-planned {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.rc-planned-icon {
    margin-bottom: 8px;
    border-color: var(--rc-orange-ink);
    color: var(--rc-orange-ink);
}
.rc-planned strong { font: 600 16px/1.3 var(--font-ui); }
.rc-status-address {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 991.98px) {
@media (min-width: 768px) {
/* beyond mobile only: below, the generic common rule applies */
.rc-status-hero { --hero-h: 720px; }
}}
@media (max-width: 991.98px) {
.rc-status-hero .rc-page-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
.rc-island { transform: scale(.75); transform-origin: left bottom; margin: -40px 0 0; }
.rc-status-grid { grid-template-columns: 1fr; gap: 48px; }
.rc-status-side { position: static; }
}
@media (max-width: 575.98px) {
@media (min-width: 768px) {
/* beyond mobile only: below, the generic common rule applies */
.rc-status-hero { --hero-h: 640px; }
}}
@media (max-width: 575.98px) {
.rc-island { zoom: .6; transform: none; margin: 0; }
.rc-bars { gap: 1px; height: 24px; }
.rc-bars-legend span { display: none; }
}
/* Light theme: chart legends and axes dark enough (contrast ≥ 4.5) */
:where([data-bs-theme=light]) .rc-bars-legend,
:where([data-bs-theme=light]) .rc-chart-axis { color: var(--rc-fg-2); }
/* ---------- Status: "Since 2018" (distinct players per month, data/player-history.php) ---------- */
.rc-history {
    display: flex; flex-direction: column; gap: 20px; padding-top: 32px; border-top: 1px solid var(--rc-hair);
    margin-top: 72px; /* off-token: layout */
}
.rc-history-head { display: flex; flex-direction: column; gap: 4px; }
.rc-history-head .rc-meta { margin: 0; }
.rc-history-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rc-history-table summary { width: max-content; font: 600 14px/1.4 var(--font-ui); color: var(--rc-fg-2); cursor: pointer; }
.rc-history-table summary:hover { color: var(--rc-fg); }
.rc-history-table-wrap { max-height: 320px; margin-top: 12px; overflow: auto; border: var(--rc-card-border); border-radius: var(--radius-md); }
.rc-history-table table { width: 100%; border-collapse: collapse; font: 500 14px/1.4 var(--font-ui); font-variant-numeric: tabular-nums; }
.rc-history-table th, .rc-history-table td { padding: 8px 12px; border-bottom: 1px solid var(--rc-hair); text-align: right; color: var(--rc-fg-2); }
.rc-history-table th[scope=row], .rc-history-table thead th:first-child { text-align: left; color: var(--rc-fg); font-weight: 600; }
.rc-history-table thead th { position: sticky; top: 0; background: var(--rc-surface); font-weight: 700; color: var(--rc-fg); }
.rc-history-source { margin: 0; font: 500 14px/1.5 var(--font-ui); color: var(--rc-fg-2); }
@media (max-width: 767.98px) {
.rc-history { margin-top: 48px; padding-top: 24px; }
.rc-history-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rc-history-stats > div { flex-direction: row; align-items: baseline; gap: 12px; }
}
/* "Since 2018": two charts (presence 2019-2020, new players) */
.rc-history-part { display: flex; flex-direction: column; gap: 12px; }
.rc-history-part + .rc-history-part { margin-top: 12px; }
.rc-history-part h3 { margin: 0; font: 700 16px/1.3 var(--font-ui); color: var(--rc-fg); }
.rc-history-part h3 span { margin-left: 4px; font-weight: 500; color: var(--rc-fg-2); }
.rc-history-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
.rc-history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
.rc-history-stats { grid-template-columns: minmax(0, 1fr); }
/* =========================================================
   Status (MoStatus)
   ========================================================= */
/* 560 px hero: islet of cubes (66 px) centered above the text */
.rc-status-hero { --hero-h: 560px; }
.rc-status-hero .rc-page-hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    bottom: 26px;
}
.rc-status-hero .rc-island {
    order: -1;
    align-self: center;
    zoom: .635;
    transform: none;
    margin: 0;
}
.rc-status-text { gap: 12px; max-width: none; padding-bottom: 0; }
.rc-status-text .rc-pill { align-self: flex-start; }
.rc-status-text p { font-size: 16px; }
.rc-status-text .rc-meta { font-size: 12px; line-height: 1; color: var(--rc-fg-3); }
/* Content: players, services, maintenance, address (in this order) */
.rc-status.rc-container { padding: 16px 16px 48px; }
.rc-status-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.rc-status-side { display: contents; }
.rc-status-side > * + * { padding-top: 0; border-top: none; }
.rc-players { order: -1; gap: 16px; }
.rc-players-count { gap: 8px; }
.rc-players-count span { font-size: 14px; }
.rc-live { padding-bottom: 4px; font-size: 12px; }
.rc-chart svg { height: 100px; }
.rc-status-block { gap: 8px; }
.rc-services { margin-top: 8px; }
.rc-service { gap: 12px; padding: 16px 0; }
.rc-service-head { gap: 12px; }
.rc-service-cube { width: 24px; }
.rc-service-cube svg { width: 24px; height: auto; }
.rc-service-name { gap: 4px; }
.rc-service-name strong { font-size: 14px; }
.rc-service-name span {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Bars: the last 30 days only */
.rc-bars { gap: 2px; height: 22px; }
.rc-bar:nth-child(-n+60) { display: none; }
.rc-bars-legend { font-size: 12px; }
.rc-bars-legend span { display: inline; }
.rc-planned { gap: 4px; }
.rc-planned-icon { margin-bottom: 8px; }
.rc-status-address { gap: 12px; }
/* Light theme: secondary status text dark enough */
:where([data-bs-theme=light]) .rc-status-text .rc-meta { color: var(--rc-fg-2); }
}

/* ===== src/_shared/chart-tooltip.css ===== */
/* Red&Co: chart tooltip (service bars, history columns) and cube lift, on Status and the
   calendar. Mobile / tablet rules (@media) at the end of the
   file. */

@keyframes rcCubeLift {
    from { translate: 0 0; }
    to { translate: 0 -14px; }
}
/* Tooltip of the Status charts (service bars, history columns): one single rule */
.rc-bar:is(:hover, :focus-visible)::after,
.rc-history-col:is(:hover, :focus-visible)::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 5;
    width: max-content;
    max-width: 240px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--rc-raised);
    border: 1px solid var(--rc-chip-border);
    box-shadow: var(--shadow-pop);
    font: 600 12px/1.3 var(--font-ui);
    color: var(--rc-fg);
    transform: translateX(-50%);
    pointer-events: none;
}
.rc-history-col:first-child:is(:hover, :focus-visible)::after { left: 0; transform: none; }
.rc-history-col:last-child:is(:hover, :focus-visible)::after { left: auto; right: 0; transform: none; }

/* ===== src/vendor/redandco/pages/status/_week-chart.css ===== */
/* Red&Co: styles of views/vendor/redandco/pages/status/_week-chart.blade.php. Mobile / tablet rules (@media) at the end of the file. */

.rc-history-chart { position: relative; padding: 8px 0 0 32px; }
.rc-history-grid { position: absolute; left: 34px; right: 0; top: 8px; height: 220px; pointer-events: none; }
.rc-history-grid span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rc-hair); }
.rc-history-grid i { position: absolute; left: -34px; top: -8px; width: 28px; text-align: right; font: 500 12px/1 var(--font-ui); font-style: normal; font-variant-numeric: tabular-nums; color: var(--rc-fg-2); }
.rc-history-cols {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    align-items: end;
    height: 220px;
    border-bottom: 1px solid var(--rc-hair-strong);
}
/* whole column = hover area (larger than the bar) */
.rc-history-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; outline: none; cursor: default; }
.rc-history-bar { position: relative; width: min(24px, calc(100% - 1px)); min-width: 1px; min-height: 0; border-radius: var(--radius-2xs) var(--radius-2xs) 0 0; background: var(--rc-red); transition: filter var(--dur-fast); }
.rc-history-col:is(:hover, :focus-visible) .rc-history-bar { filter: brightness(1.25); }
.rc-history-col:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--rc-fg-rgb), .5); border-radius: var(--radius-2xs); }
.rc-history-col.is-empty .rc-history-bar { height: 2px !important; background: rgba(var(--rc-fg-rgb), .2); border-radius: var(--radius-2xs); }
.rc-history-bar b { position: absolute; left: 50%; white-space: nowrap; bottom: calc(100% + 6px); transform: translateX(-50%); font: 700 14px/1 var(--font-ui); color: var(--rc-fg); }
.rc-history-years { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 8px; }
.rc-history-years span { min-width: 0; overflow: visible; font: 600 12px/1 var(--font-ui); color: var(--rc-fg-2); white-space: nowrap; }
@media (max-width: 767.98px) {
.rc-history-cols, .rc-history-grid { height: 170px; }
/* 111 weeks: the chart keeps a readable width and scrolls; room above for the tooltip */
.rc-history-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin-top: -56px; padding-top: 64px; }
.rc-history-chart { min-width: 900px; }
.rc-history-years span { font-size: 12px; }
}
/* Off-scale week (the peak exceeds the ceiling): bar cut at the top, real figure shown */
.rc-history-col.is-clipped .rc-history-bar::before {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: 10px;
    height: 4px;
    background: var(--rc-bg);
    transform: skewY(-20deg);
}
.rc-history-col.is-clipped .rc-history-bar b { bottom: auto; top: 0; left: 6px; transform: none; padding: 4px 4px; border-radius: var(--radius-xs); background: var(--rc-bg); border: var(--rc-card-border); }
/* weeks without a log (server closed): discreet hatched band */
.rc-history-gap {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(135deg, rgba(var(--rc-fg-rgb), .05) 0 6px, transparent 6px 12px);
    border-left: 1px dashed var(--rc-hair);
    border-right: 1px dashed var(--rc-hair);
    pointer-events: none;
}
.rc-history-gap span { padding: 4px 8px; border-radius: var(--radius-lg); background: var(--rc-bg); border: var(--rc-card-border); font: 600 12px/1.2 var(--font-ui); color: var(--rc-fg-2); white-space: nowrap; }
.rc-history-col.is-none .rc-history-bar { display: none; }
