/* ============================================================
   status.cuestio.com, the approved design's layer (2026-11-04) as built (the Cuestio status page plan, Task 10:
   the proposal tag's rules and the design-time controls are gone, nothing else changed)
   The status page's layer on the dashboard's kit, "papel y sello" (cuestio.css, copied unchanged from the
   dashboard's kit). Every colour is a kit token except --aviso and --aviso-suave below.
   The kit's own pieces reused as they are: .entry/.entry-top/.entry-main/.entry-foot (the public page shell),
   .brand, .page-title, .sec-title, .card, .figure, .micro, .chip (ok, warn, plain), .iconbtn,
   .btn.sec.sm, .vh, .ic. New components carry their reason beside them.
   ============================================================ */

:root {
  /* NEW TOKEN (the one the brief allows). "Degraded" needs its own ink: the kit's --caro already means outage and no
     kit token reads as a warning (tried: --caro for both, which leaves degraded and outage one colour; --lavanda and
     --sello, which the kit keeps for identity and selection). #c67f00 is the most orange step that passes the dataviz
     validator beside --verde and --caro on --papel and --papel-2 (CVD ΔE 9.6, normal vision 15.8, contrast 3.05 and
     3.26). It paints marks and rules only, never text (a tinta glyph on it reads at 5.5:1). --aviso-suave is 10 % of
     it on white, as --caro-suave (#f7ece9) is of --caro. */
  --aviso: #c67f00;
  --aviso-suave: #f9f2e6;
}

/* ---------- the day mark: one shape AND one glyph per state, never colour alone ----------
   (a component: considered the kit's .chip dot, which tells states by colour and fill only; reused the kit's .seal
   and .stamp ring as the paper hairline inside the filled marks). Shapes: circle = operational (a seal), triangle =
   degraded (the warning glyph's own outline over its fill), square = outage, dashed empty square = no data, hollow
   square with a clock = pending. Tried first: a square for operational and a circle for outage; thirteen green
   squares with a tick read as ticked checkboxes, so the seal took the common state and the square the rare one.
   --mk sets the size; 26px in the grid. */
.mk { --mk: 26px; position: relative; display: inline-grid; place-items: center; width: var(--mk); height: var(--mk); flex: none; color: var(--papel-2); vertical-align: middle; }
.mk::before { content: ""; position: absolute; }
.mk .ic { position: relative; width: 62%; height: 62%; vertical-align: 0; }
.mk.op::before { inset: 0; border-radius: 50%; background: var(--verde); box-shadow: inset 0 0 0 2px var(--verde), inset 0 0 0 3px var(--papel-2); }
.mk.deg { color: var(--tinta); }
.mk.deg::before { inset: 0; background: var(--aviso); clip-path: polygon(50% 11%, 93.5% 86%, 6.5% 86%); }
.mk.deg .ic { width: 100%; height: 100%; }
.mk.out::before { inset: 1px; border-radius: var(--r-chip); background: var(--caro); box-shadow: inset 0 0 0 2px var(--caro), inset 0 0 0 3px var(--papel-2); }
.mk.out .ic { width: 56%; height: 56%; }
.mk.nd::before { inset: 3px; border-radius: var(--r-chip); border: 1.5px dashed var(--tinta-3); }
.mk.pen { color: var(--tinta-2); }
.mk.pen::before { inset: 3px; border-radius: var(--r-chip); border: 1.5px solid var(--tinta-3); background: var(--papel-2); }
.mk.pen .ic { width: 54%; height: 54%; }
/* the header when a feed is stale: the no-data square with the history glyph, the same glyph every stale figure wears */
.mk.stale { color: var(--tinta-2); }
.mk.stale::before { inset: 3px; border-radius: var(--r-chip); border: 1.5px dashed var(--tinta-3); }
.mk.stale .ic { width: 54%; height: 54%; }
.mk.sm { --mk: 16px; }
.mk.sm::before { box-shadow: none; }
.mk.sm.nd::before, .mk.sm.pen::before { inset: 2px; border-width: 1.2px; }
.mk.lg { --mk: 34px; }

/* ---------- the shell: the kit's .entry-top and .entry-foot, their content held to the main column's width
   (an extension: the kit's bars run edge to edge while .entry-main centres at 1100px, so the wordmark sat 90px left
   of the content at 1280) ---------- */
.st-top, .st-foot { padding-left: 0; padding-right: 0; }
.st-in { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.st-foot .st-in { flex-wrap: wrap; gap: 8px 24px; justify-content: flex-start; }
.st-foot .sep { flex: 1; }

/* ---------- the page head: the title, then the state of the moment ---------- */
.st-head { margin-bottom: 26px; }
.st-now { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0 0; }
.st-now .mk { margin-top: 1px; }
.st-now .t { display: block; font-size: 1.3rem; font-weight: 660; font-stretch: 106%; letter-spacing: -0.006em; line-height: 1.3; }
.st-now .micro { display: block; margin-top: 3px; }

/* the language switch: two buttons, the current one in the stamp's soft tone (the kit's .nav current-page pair) */
.lang { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 0.82rem; color: var(--tinta-3); }
.lang button { border: 0; background: none; padding: 6px 9px; border-radius: var(--r-chip); cursor: pointer; font-family: var(--mono); font-weight: 600; color: var(--tinta-2); letter-spacing: 0.04em; }
.lang button:hover { color: var(--tinta); background: var(--papel-2); }
.lang button[aria-pressed="true"] { color: var(--sello-tinta); background: var(--sello-suave); }

/* ---------- one block per product (the kit's .card; container queries so a block lays out by its own width) ---------- */
.blk { container: blk / inline-size; margin-top: 18px; padding: 20px 22px 22px; }
.blk + .blk { margin-top: 22px; }
.blk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.blk-head h2 { font-size: 1.2rem; font-stretch: 108%; font-weight: 680; letter-spacing: -0.008em; }
/* the legend: each state's mark and word, so a reader learns the shapes once (dataviz: a legend for every encoding) */
.ley { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--tinta-2); }
.ley li { display: inline-flex; align-items: center; gap: 6px; }
.ver14 { display: none; }

/* the grid: a real table (a row per component, a column per day), its twin for assistive tech by construction */
.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grid col.c-lbl { width: 236px; }
.grid col.c-fig { width: 132px; }
.grid thead th { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; color: var(--tinta-2); text-align: center; padding: 18px 0 8px; position: relative; vertical-align: bottom; }
.grid thead th .mes { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: 0.66rem; color: var(--tinta-3); white-space: nowrap; }
.grid thead th.hoy { color: var(--tinta); font-weight: 600; }
.grid tbody th { text-align: left; font-weight: 400; padding: 12px 14px 12px 0; vertical-align: middle; }
.grid tbody tr > * { border-top: 1px solid var(--linea); }
.grid .cn { display: block; font-weight: 640; font-size: 0.95rem; line-height: 1.3; }
.grid .cs { display: block; font-size: 0.82rem; color: var(--tinta-2); line-height: 1.35; margin-top: 1px; }
.grid td.dc { padding: 6px 1px; text-align: center; vertical-align: middle; }
.grid td.fig { padding: 10px 0 10px 12px; text-align: right; vertical-align: middle; font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: var(--tinta-2); }
.grid td.fig b { font-weight: 600; color: var(--tinta); }
.grid td.fig .ln { display: block; white-space: nowrap; }
.grid td.fig .wr { white-space: normal; }

/* a day's cell: the whole cell is the button (the hit target is bigger than the mark: dataviz) */
.d { position: relative; width: 100%; min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 2px; border: 0; background: none; padding: 4px 0; border-radius: var(--r-ctl); cursor: pointer; color: var(--tinta); }
.d[aria-expanded="true"] { background: var(--sello-suave); box-shadow: inset 0 0 0 1.5px var(--sello); }
.d .dn, .d .dm { display: none; }
/* the pending cell's word under its mark ("pendiente"); on the outer columns the label grows inward so it never
   widens the page */
.d .pl { pointer-events: none; /* a caption that may hang over a neighbour must never take its tap */ display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--mono); font-size: 0.62rem; line-height: 1.2; color: var(--tinta-2); white-space: nowrap; }
.d.tip-r .pl { justify-self: end; align-items: flex-end; }
.d.tip-l .pl { justify-self: start; align-items: flex-start; }
/* the hover and focus readout: the state leads, the date follows (dataviz); a CSS label, no script, never the only way.
   display:none until shown, so a readout at the edge never widens the page; the outer columns align it inward */
.d::after { content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); z-index: 6; pointer-events: none; white-space: nowrap; background: var(--tinta); color: var(--papel); font-family: var(--mono); font-size: 0.72rem; padding: 4px 8px; border-radius: var(--r-chip); }
.d.tip-l::after { left: 0; transform: none; }
.d.tip-r::after { left: auto; right: 0; transform: none; }
.d:focus-visible::after { display: block; }
@media (hover: hover) {
  .d:hover { background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea-2); }
  .d[aria-expanded="true"]:hover { background: var(--sello-suave); box-shadow: inset 0 0 0 1.5px var(--sello); }
  .d:hover::after { display: block; }
}

/* the day's detail, under the grid: the kit's .note shape (a left rule in the state's colour on paper) with a notch
   that points at the chosen cell */
.det { position: relative; margin: 14px 0 2px; padding: 14px 16px 16px; background: var(--papel); border: 1px solid var(--linea); border-left: 2px solid var(--det-c, var(--sello)); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.det[hidden] { display: none; }
.det::before { content: ""; position: absolute; top: -7px; left: var(--notch, 40px); width: 12px; height: 12px; background: var(--papel); border-left: 1px solid var(--linea); border-top: 1px solid var(--linea); transform: rotate(45deg); }
.det[data-st="op"] { --det-c: var(--verde); }
.det[data-st="deg"] { --det-c: var(--aviso); }
.det[data-st="out"] { --det-c: var(--caro); }
.det[data-st="nd"], .det[data-st="pen"] { --det-c: var(--tinta-3); }
.det-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.det-head h3 { font-size: 1rem; font-weight: 640; line-height: 1.35; padding-top: 4px; }
.det-head h3 .micro { margin-left: 8px; color: var(--tinta-2); }
.det-x { margin: -4px -6px 0 0; }
.det-st { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 6px 0 0; }
.det-st b { font-weight: 640; }
.det-why { margin: 6px 0 0; color: var(--tinta); max-width: 62ch; }
.det-n { margin: 4px 0 0; font-family: var(--mono); font-size: 0.86rem; color: var(--tinta-2); }
.det-msgs { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--linea-2); }
.det-msgs > h4 { font-size: 0.86rem; font-weight: 620; color: var(--tinta-2); margin: 0 0 6px; }
.det-msgs .none { margin: 0; font-size: 0.9rem; color: var(--tinta-2); }

/* ---------- the block's foot: "Precios del día" in numbers (the "Fuera de servicio" list left the public page on
   the owner's word of 2026-11-06 12:3x: no store name anywhere public) ---------- */
.blk-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--linea-2); }
.blk-foot h3 { font-size: 0.95rem; font-weight: 640; margin: 0 0 10px; }
.blk-foot h3 .micro { margin-left: 8px; color: var(--tinta-2); font-weight: 400; }
.cif { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0; }
.cif > div { display: grid; gap: 4px; }
.cif .figure { font-size: 1.45rem; }
.cif .lbl { font-size: 0.86rem; color: var(--tinta-2); }

/* every figure from a stale feed: grey, with the history glyph (scenario "Sin datos recientes") */
.stale, .grid td.fig .stale, .grid td.fig b .stale, .cif .figure .stale { color: var(--tinta-3); }
.stale-ic { width: 0.95em; height: 0.95em; color: var(--tinta-3); vertical-align: -0.12em; margin-right: 3px; }

/* ---------- "Novedades": the messages of the 14 days, newest first, one ledger row per date ---------- */
.nov { margin-top: 34px; }
.nov > h2 { margin-bottom: 10px; }
.nov-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.nov-day { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 18px; padding: 12px 2px; border-bottom: 1px solid var(--linea); }
.nov-day.vacio { padding: 8px 2px; align-items: baseline; }
.nov-date { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--tinta-2); padding-top: 2px; line-height: 1.5; }
.nov-day.vacio .nov-date { padding-top: 0; }
.nov-none { margin: 0; font-size: 0.9rem; color: var(--tinta-3); }
.nov-msgs { display: grid; gap: 12px; }
/* one family for both kinds: a left rule in the impact's colour, the same type; a note is its sentences, an
   incident is a title over its updates (a component: considered the kit's .note, whose filled ground is too loud
   for a fortnight of rows, and .req-msg, whose rule carries no state) */
.msg { border-left: 2px solid var(--msg-c, var(--linea-2)); padding: 2px 0 2px 14px; }
.msg[data-imp="deg"] { --msg-c: var(--aviso); }
.msg[data-imp="out"] { --msg-c: var(--caro); }
.msg-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.msg-head h4 { font-size: 0.98rem; font-weight: 660; line-height: 1.35; }
.msg-body { margin: 0; max-width: 72ch; }
.msg-meta { margin: 3px 0 0; font-size: 0.82rem; color: var(--tinta-2); }
.msg-meta .num { color: var(--tinta-2); }
.ups { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ups li { display: grid; grid-template-columns: 46px 118px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; font-size: 0.92rem; }
.ups .num { font-size: 0.8rem; color: var(--tinta-2); }
.ups b { font-weight: 620; }
/* the incident's state chip: the kit's .chip; "degraded" needs a variant (the kit's .chip.warn is the outage's caro).
   Text stays ink, the dot carries --aviso (text never wears a status colour) */
.chip.aviso { background: var(--aviso-suave); color: var(--tinta); border-color: transparent; }
.chip.aviso::before { background: var(--aviso); }

/* ---------- the footer: the kit's .entry-foot ---------- */
.entry-foot a { color: var(--tinta-2); }
.entry-foot a:hover { color: var(--sello-tinta); }

/* ---------- responsive: the block by its own width (container queries), the page by the viewport ---------- */
/* a narrower block: each row's label above its cells, the 14 days on one line, each cell numbered */
@container blk (max-width: 820px) {
  .grid, .grid tbody { display: block; }
  .grid colgroup, .grid thead { display: none; }
  .grid tbody tr { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; padding: 12px 0 8px; border-top: 1px solid var(--linea); }
  .grid tbody tr > * { border-top: 0; }
  .grid tbody th { grid-row: 1; grid-column: 1 / 10; padding: 0 10px 8px 0; }
  .grid td.fig { grid-row: 1; grid-column: 10 / 15; padding: 0 0 8px 8px; align-self: start; }
  .grid td.dc { display: block; padding: 0 1px; align-self: start; }
  .d { min-height: 0; padding: 4px 0 5px; }
  .d .dn { display: block; font-family: var(--mono); font-size: 0.7rem; line-height: 1.2; color: var(--tinta-2); }
  /* every cell keeps its month line (same height); it shows where a line starts and where the month changes */
  .d .dm { display: block; visibility: hidden; font-family: var(--mono); font-size: 0.6rem; line-height: 1.1; color: var(--tinta-3); }
  .d.m-start .dm, .d.m-change .dm { visibility: visible; }
  .d.hoy .dn { color: var(--tinta); font-weight: 600; }
}
/* a phone-width block: the newest week, and "ver 14 días" shows the other week above it (two lines of seven) */
@container blk (max-width: 540px) {
  .grid tbody tr { grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 6px; }
  .grid tbody th { grid-column: 1 / 5; }
  .grid td.fig { grid-column: 5 / 8; }
  .grid td.dc.old { display: none; }
  .blk.dias14 .grid td.dc.old { display: block; }
  .d.m-start .dm { visibility: hidden; }
  .d.m-week .dm, .d.m-change .dm, .blk.dias14 .d.m-start .dm { visibility: visible; }
  .ver14 { display: inline-flex; }
  .blk-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .blk { padding: 16px 14px 18px; }
  .st-now .t { font-size: 1.15rem; }
  .nov-day:not(.vacio) { grid-template-columns: minmax(0, 1fr); }
  .nov-day.vacio { grid-template-columns: 112px minmax(0, 1fr); }
  .ups li { grid-template-columns: 42px minmax(0, 1fr); }
  .ups li > span:last-child { grid-column: 2; }
  .entry-foot .sep { display: none; }
}
