/* Riesgo Tecnológico V5.0.26: navegación simplificada, sin alterar diseño base. */
/* Main menu: 'Conocimientos' is now primary; subpages retain their existing URLs. */
.main-nav{gap:4px}
.main-nav .nav-link{font-size:.94rem;white-space:nowrap}

.rt-v526-route-pointer{margin:24px 0 27px;padding:19px 23px;border-left:3px solid #5179aa;
  background:linear-gradient(105deg,#eff4fb,#f8fafe);border-radius:0 12px 12px 0;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 23px}
.rt-v526-route-pointer p{margin:0;flex:1 1 340px;line-height:1.6;color:#3e5571;font-size:.98rem}
.rt-v526-route-pointer a{font-size:.94rem;font-weight:700;color:#163f79;white-space:normal;text-decoration:underline;text-underline-offset:3px}
.rt-v526-subnav{margin:0 0 18px;color:#d3e4ff;font-size:.88rem}
.rt-v526-subnav a{color:#f5f9ff;text-underline-offset:3px}

/* Eight genuine topics (not eight plus an unrelated ninth item). Keep a centered last row. */
.rt-v526-topic-pointer{margin:8px 0 0;font-size:.96rem;color:#455973}
.rt-v526-topic-pointer a{font-weight:700;color:#19467a}
@media(min-width:1101px){
  .knowledge-map--uniform.rt-v526-eight-areas{grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
  .knowledge-map--uniform.rt-v526-eight-areas > .knowledge-card{grid-column:span 2}
  .knowledge-map--uniform.rt-v526-eight-areas > .knowledge-card:nth-child(7){grid-column:2 / span 2}
  .knowledge-map--uniform.rt-v526-eight-areas > .knowledge-card:nth-child(8){grid-column:4 / span 2}
}
@media(max-width:1100px){
  .knowledge-map--uniform.rt-v526-eight-areas > .knowledge-card{grid-column:auto}
}

/* Related links: one compact continuation per template, not multiple competing grids. */
.rt-v526-short-related.section{padding-top:43px;padding-bottom:43px}
.rt-v526-short-related .manual-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.rt-v526-short-related .manual-card{min-height:0;padding:20px 22px}
.rt-v526-short-related .manual-card p{font-size:.94rem;line-height:1.55}

.rt-v526-chapter-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;
 border-top:1px solid #d6e2ef;border-bottom:1px solid #d6e2ef;margin:28px 0 25px;padding:17px 0}
.rt-v526-chapter-nav a,.rt-v526-chapter-nav span{font-weight:700;font-size:.94rem;line-height:1.5;color:#23466f}
.rt-v526-chapter-nav a:last-child,.rt-v526-chapter-nav span:last-child{text-align:right}
.rt-v526-chapter-nav a.rt-v526-chapter-index{text-align:center;padding:8px 13px;border:1px solid #c6d8ee;border-radius:9px;
 background:#f1f6fc;color:#123969;white-space:nowrap}
.rt-v526-chapter-nav .rt-v526-nav-muted{font-weight:400;color:#7b8a9a;font-size:.82rem}
.rt-v526-continuation-title{font-size:1.44rem;margin-top:16px!important;margin-bottom:14px!important}
.rt-v526-complementary{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.rt-v526-complementary a{display:inline-flex;align-items:center;padding:12px 15px;border:1px solid #d4e1f1;
 border-radius:10px;text-decoration:none!important;color:#164275!important;font-size:.92rem;font-weight:650;
 background:#f6f9fe;line-height:1.45;max-width:100%;overflow-wrap:anywhere}
.rt-v526-complementary a:hover{border-color:#9bb6d7;background:#e9f2ff}
/* Keep route numbers because they signify actual reading order. */
.route-long ol{grid-template-columns:minmax(0,1fr)!important;gap:9px}
.route-long ol li{display:flex;align-items:flex-start;gap:15px;min-height:0}
.route-long ol li::before{display:block!important;content:counter(rs,decimal-leading-zero)!important;
 font-size:.8rem;color:#466d9c;font-weight:750;min-width:23px;line-height:1.7}
.route-long ol li a{flex:1;min-width:0;overflow-wrap:anywhere}
/* Small documents use the same physical main container as the rest of the site. */
@media(max-width:980px){
  .rt-v526-short-related .manual-cards{grid-template-columns:1fr}
}
@media(max-width:720px){
 .main-nav .nav-link{font-size:1rem}
 .rt-v526-route-pointer{padding:16px 18px;gap:10px}
 .rt-v526-chapter-nav{gap:7px;grid-template-columns:1fr auto 1fr;padding:15px 0}
 .rt-v526-chapter-nav a,.rt-v526-chapter-nav span{font-size:.78rem}
 .rt-v526-chapter-nav a.rt-v526-chapter-index{font-size:.78rem;padding:8px 9px}
 .rt-v526-chapter-nav .rt-v526-nav-muted{font-size:.74rem}
 .rt-v526-complementary{flex-direction:column}
 .rt-v526-complementary a{width:100%}
}

/* Conocimientos: el índice de cada capítulo y los controles anterior/siguiente
   sustituyen al lateral de cinco enlaces redundantes. */
.manual-layout.rt-v526-chapter-layout{display:block!important}
.rt-v526-chapter-layout > .manual-article{width:100%;max-width:1000px;margin:0}
/* Contraste explícito de las acciones en el encabezado oscuro de Conocimientos. */
.manual-hero .manual-tools{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:22px}
.manual-hero .manual-tools a.button{display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;padding:11px 18px;border-radius:10px;font-size:.93rem;font-weight:700;line-height:1.4;text-decoration:none}
.manual-hero .manual-tools a.button.light{color:#0d2d5a;background:#fff;border:1px solid #fff}
.manual-hero .manual-tools a.button.outline-light{color:#fff;background:transparent;border:1px solid #b0c7e6}
.manual-hero .manual-tools a.button:hover{filter:brightness(1.07)}
@media(max-width:720px){
  .manual-hero .manual-tools{gap:9px}
  .manual-hero .manual-tools a.button{max-width:100%;white-space:normal}
}
