/* inicio.css -- the one Inicio (inicio.js, 2026-10-20). app.css tokens only: square corners,
   1px ink hairlines, mono capitals for labels, Georgia for figures. Phone first; on a computer the
   personal part spans the page and the role blocks go two columns under it. */

.ini { display: flex; flex-direction: column; }

/* The personal part: semana.js's screens, a little wider than a phone on a computer. */
.ini-me .sm { max-width: 720px; margin: 0 auto; padding-bottom: 24px; }
/* Its segment in the app's own style: square, hairline, the chosen one ink on paper. */
.sm-tabs { gap: 0; padding: 0; border: 1px solid var(--hairline); border-radius: 0; background: var(--card); }
.sm-tab { border-radius: 0; border-left: 1px solid var(--hairline); font-family: var(--mono); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; }
.sm-tab:first-child { border-left: 0; }
.sm-tab.is-on { background: var(--ink); color: var(--paper); }
/* The icon above the word, so the four words keep their width on a phone. */
.sm-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-top: 7px; padding-bottom: 7px; }
.sm-tab .tab-ico { width: 14px; height: 14px; }
.sm-tab-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-head .tab-ico { width: 15px; height: 15px; }

/* "TUS OTRAS FUNCIONES" */
.ini-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 8px 0 8px; }

/* Blocks stacked so their borders touch. */
.ini-blocks { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding: 1px 0 0 1px; }
.ini-block { background: var(--card); border: 1px solid var(--hairline); margin: -1px 0 0 -1px; min-width: 0; }
.ini-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border: 0;
  background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.ini-head:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.ini-name { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; }
.ini-tag { flex-shrink: 0; padding: 2px 8px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.ini-tag.is-due { border-color: var(--alarm); color: var(--alarm); }
.ini-tag.is-wait { color: var(--faint); }
.ini-chev { flex-shrink: 0; width: 14px; font-size: 18px; line-height: 1; color: var(--ink); transition: transform .15s; }
.ini-block.is-open .ini-chev { transform: rotate(90deg); }
.ini-block.is-open .ini-head { border-bottom: 1px solid var(--hairline); }
.ini-body { padding: 12px 14px 14px; container-type: inline-size; }
.ini-more { margin: 12px 0 0; }

/* Inside a block a role home is not a page of cards: its sections lose their own box and are
   separated by a rule; figures in Georgia. */
.ini-body .card { border: 0; margin: 0; }
.ini-body .st { gap: 0; }
.ini-body .st > div:not([class]) { gap: 0; }
.ini-body .st-sec { padding: 12px 0; border-top: 1px solid var(--rule); }
.ini-body .st > div:not([class]) > .st-sec:first-child,
.ini-body .st > div:not([class]) > .us-h2 + div > .st-sec:first-child { border-top: 0; padding-top: 0; }
.ini-body .st-kpi-v { font-family: var(--serif); font-weight: 400; }
.ini-body .sm-inbox { padding: 0; margin: 12px 0 0; max-width: none; }

/* Narrow (a phone, or a block in a column): a pipeline stacks its stages instead of scrolling
   sideways, and the figures go two to a row. */
@container (max-width: 640px) {
  .st-board { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow-x: visible; gap: 6px; }
  .st-col { padding: 6px 8px; }
  /* An empty stage is one line with its 0, not a box saying "nada". */
  .st-col-empty { display: none; }
  .st-col:has(> .st-col-empty) .st-col-head { border-bottom: 0; padding-bottom: 2px; }
  .st-col:has(> .st-col-empty) .st-col-t, .st-col:has(> .st-col-empty) .st-col-n { color: var(--muted); }
  a.st-alert { display: block; }
  .st-strip { gap: 6px; }
  .st-kpi { min-width: 0; flex: 1 1 40%; padding: 8px 10px; }
  .st-kpi-v { font-size: 18px; }
  .st-strip-go { flex-basis: 100%; padding: 4px 0 0; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-sec-head { flex-wrap: wrap; }
  .st-table { font-size: 12px; }
}

@media (min-width: 900px) {
  .ini-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ini-label { margin-top: 16px; }
}

/* The «Avisos» card, above every Inicio tab (inicio.js avisosCard). */
.ini-av { background: var(--card); border: 1px solid var(--hairline); padding: 10px 14px 6px; margin: 0 0 14px; }
.ini-av-h { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.ini-av-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.ini-av-row { display: grid; grid-template-columns: 20px 44px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.ini-av-tick { margin: 0; width: 16px; height: 16px; align-self: start; cursor: pointer; }
.ini-av-d { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }
.ini-av-t { min-width: 0; overflow-wrap: anywhere; }
.ini-av-row .st-link { white-space: nowrap; }
