/* web26_cct.css — Convenio Colectivo en texto (convenio.php): índice, buscador y artículos. Va bajo .w26 (assets/web26.css). */
.w26 .cct-aviso { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; font-size: .88rem; line-height: 1.5; color: var(--w-ink2); background: var(--w-50); border: 1px solid var(--w-200); }
.w26 .cct-aviso i { margin-top: 3px; color: var(--w-600); }
.w26 .cct-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.w26 .cct-indice { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; border-radius: 20px; border: 1px solid var(--w-line); background: var(--w-card); box-shadow: var(--w-sombra); }
.w26 .cct-indice-h { position: sticky; top: 0; z-index: 1; padding: 14px 18px; font-weight: 800; font-size: .9rem; color: var(--w-800); background: var(--w-card); border-bottom: 1px solid var(--w-line); }
.w26 .cct-indice nav { display: flex; flex-direction: column; padding: 8px; }
.w26 .cct-indice a { text-decoration: none; color: var(--w-ink2); border-radius: 10px; transition: background .15s, color .15s; }
.w26 .cct-indice a:hover { background: var(--w-100); color: var(--w-800); }
.w26 .cct-t { display: block; padding: 9px 12px; margin-top: 4px; font-size: .84rem; line-height: 1.3; color: var(--w-ink) !important; }
.w26 .cct-t b { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--w-700); }
.w26 .cct-t small { display: block; margin-top: 2px; font-size: .72rem; color: var(--w-ink2); }
.w26 .cct-c { display: block; padding: 5px 12px 5px 24px; font-size: .78rem; line-height: 1.3; }
.w26 .cct-buscar { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 8px; border-radius: 999px; border: 1px solid var(--w-line); background: var(--w-card); box-shadow: var(--w-sombra-alta); }
.w26 .cct-buscar i { color: var(--w-600); }
.w26 .cct-buscar input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--w-ink); font: inherit; font-size: .95rem; }
.w26 .cct-x { border: 0; background: var(--w-100); color: var(--w-800); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.w26 .cct-resultado { min-height: 1.4em; margin: 0 6px 6px; font-size: .84rem; font-weight: 700; color: var(--w-700); }
.w26 .cct-h-titulo { margin: 34px 0 10px; padding-top: 6px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--w-800); scroll-margin-top: 150px; }
.w26 .cct-h-cap { margin: 20px 0 8px; font-size: .95rem; font-weight: 800; color: var(--w-700); scroll-margin-top: 150px; }
.w26 .cct-art { margin: 0 0 12px; padding: 16px 20px 6px; scroll-margin-top: 150px; transition: box-shadow .4s, border-color .4s; }
.w26 .cct-art[hidden], .w26 .cct-h-titulo[hidden], .w26 .cct-h-cap[hidden] { display: none; }
.w26 .cct-art header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.w26 .cct-num { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--w-500), var(--w-800)); }
.w26 .cct-pag { margin-left: auto; font-size: .76rem; font-weight: 700; color: var(--w-ink2); text-decoration: none; }
.w26 .cct-pag:hover { color: var(--w-700); }
.w26 .cct-link { color: var(--w-ink2); opacity: .6; font-size: .8rem; }
.w26 .cct-link:hover { opacity: 1; color: var(--w-700); }
.w26 .cct-texto { font-size: .95rem; line-height: 1.7; color: var(--w-ink); }
.w26 .cct-texto p { margin: 0 0 10px; text-align: left; }
.w26 .cct-texto .cct-inc { padding-left: 14px; border-left: 3px solid var(--w-200); }
.w26 .cct-texto mark { padding: 0 2px; border-radius: 4px; color: inherit; background: #fde68a; }
html[data-theme="dark"] .w26 .cct-texto mark { background: #854d0e; color: #fff; }
.w26 .cct-flash { border-color: var(--w-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-500) 30%, transparent); }
@media (max-width: 960px) {
  .w26 .cct-layout { grid-template-columns: 1fr; }
  .w26 .cct-indice { position: static; max-height: 280px; }
  .w26 .cct-buscar { top: 64px; }
}

.w26 .cct-tabla-w { margin: 4px 0 14px; overflow-x: auto; }
.w26 .cct-tabla-t { margin: 0 0 6px !important; font-size: .82rem; font-weight: 800; color: var(--w-700); }
.w26 .cct-tabla { border-collapse: collapse; width: 100%; max-width: 640px; font-size: .86rem; }
.w26 .cct-tabla th, .w26 .cct-tabla td { padding: 7px 12px; border: 1px solid var(--w-line); text-align: left; }
.w26 .cct-tabla thead th { background: var(--w-100); color: var(--w-800); font-size: .78rem; }
.w26 .cct-tabla td { text-align: center; font-variant-numeric: tabular-nums; }
.w26 .cct-tabla tbody th { font-weight: 700; background: var(--w-50); }
.w26 .cct-tabla-n { margin: 4px 0 0 !important; font-size: .76rem; color: var(--w-ink2); }
.w26 .cct-grupo { display: block; margin: 14px 12px 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--w-700); }
.w26 .cct-s small { display: block; font-size: .7rem; opacity: .75; }

/* ---- Celular y tablet (≤ 960px): índice plegable, nada se sale del ancho, tarjetas y buscador más compactos ---- */
.w26 .cct-layout > *, .w26 .cct-cuerpo { min-width: 0; }
.w26 .cct-texto, .w26 .cct-h-titulo, .w26 .cct-h-cap { overflow-wrap: anywhere; }
.w26 .cct-chev { display: none; margin-left: auto; transition: transform .2s; }
@media (max-width: 960px) {
  .w26 .cct-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .w26 .cct-indice { position: static; max-height: none; overflow: hidden; }
  .w26 .cct-indice-h { position: static; display: flex; align-items: center; gap: 8px; cursor: pointer; border-bottom: 0; }
  .w26 .cct-chev { display: inline-block; }
  .w26 .cct-indice.abierto .cct-indice-h { border-bottom: 1px solid var(--w-line); }
  .w26 .cct-indice.abierto .cct-chev { transform: rotate(180deg); }
  .w26 .cct-indice nav { display: none; max-height: 60vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  .w26 .cct-indice.abierto nav { display: flex; }
  .w26 .cct-c { padding: 9px 12px 9px 20px; font-size: .84rem; }
  .w26 .cct-t { padding: 11px 12px; }
}
@media (max-width: 640px) {
  .w26 .cct-aviso { padding: 10px 12px; font-size: .82rem; }
  .w26 .cct-buscar { top: 8px; padding: 0 12px; }
  .w26 .cct-buscar input { padding: 12px 0; font-size: 16px; }
  .w26 .cct-x { width: 34px; height: 34px; }
  .w26 .cct-h-titulo { margin: 24px 0 8px; font-size: 1.08rem; scroll-margin-top: 76px; }
  .w26 .cct-h-cap { margin: 16px 0 6px; font-size: .9rem; scroll-margin-top: 76px; }
  .w26 .cct-art { padding: 14px 14px 4px; margin-bottom: 10px; scroll-margin-top: 76px; }
  .w26 .cct-art header { flex-wrap: wrap; row-gap: 4px; }
  .w26 .cct-texto { font-size: .93rem; line-height: 1.65; }
  .w26 .cct-texto .cct-inc { padding-left: 10px; }
  .w26 .cct-tabla-w { margin-left: -4px; margin-right: -4px; -webkit-overflow-scrolling: touch; }
  .w26 .cct-tabla { font-size: .8rem; }
  .w26 .cct-tabla th, .w26 .cct-tabla td { padding: 6px 8px; }
}
/* Tablas del texto: no se cortan palabras; si no entran, la tabla se desliza de costado dentro de su caja */
.w26 .cct-tabla, .w26 .cct-tabla th, .w26 .cct-tabla td { overflow-wrap: normal; word-break: normal; }
.w26 .cct-tabla-w { max-width: 100%; border-radius: 10px; }
@media (max-width: 640px) { .w26 .cct-tabla { min-width: 460px; } .w26 .cct-tabla-w { box-shadow: inset -14px 0 10px -12px rgba(0,0,0,.18); } }
