/* Shared consultation layout: original sections, compact hierarchy, complete reading. */
main:has(.portal-reading){max-width:1080px;padding:26px 40px 56px}
body:has(.portal-reading) .header-inner{min-height:80px;padding-block:12px;gap:28px}
.portal-reading{color:#34465b}
.portal-reading .trans-breadcrumb{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0 0 20px;font-size:12px;line-height:1.6;color:#64748b}
.portal-reading .trans-breadcrumb a{color:#3163b3;text-decoration:none}
.portal-reading .trans-breadcrumb a:hover{text-decoration:underline}
.portal-reading .portal-section-heading{display:block;position:static;width:auto;min-height:0;padding:8px 0 18px;margin:0 0 20px;background:none;border:0;border-radius:0;box-shadow:none}
.portal-reading .portal-section-heading h1{font-size:clamp(28px,3vw,34px);font-weight:650;line-height:1.2;letter-spacing:-.035em;color:#17345c;margin:0;max-width:none;overflow-wrap:anywhere}
.portal-reading .portal-original-title{font-size:16px;font-weight:400;line-height:1.6;color:#526984;margin:8px 0 0}
.portal-reading .portal-dossier{display:block;margin:0;padding:0;background:none;border:0;box-shadow:none}
.portal-reading .portal-body{width:100%;max-width:none;min-width:0}
.portal-reading .portal-body>.rds-body{display:block;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.portal-reading .portal-body>.rds-body+.rds-body{margin-top:22px}
.portal-reading .portal-body p,.portal-reading .portal-body li{font-size:16px;line-height:1.7;letter-spacing:0;color:#34465b;overflow-wrap:anywhere}
.portal-reading .portal-body p{margin:0 0 16px;max-width:none}
/* Reading copy is justified as required; headings and controls retain their alignment. */
.portal-reading .portal-body :is(p,li){text-align:justify;text-align-last:start;hyphens:auto}
.portal-reading .portal-body .rds-fechas p{text-align:start;hyphens:none}
/* Paragraphs and lists use the full available width of their own content block. */
.portal-reading .portal-body :is(p,ul,ol,li){max-width:none}
.portal-reading :is(.portal-dossier,.portal-reading-group,.portal-document-close,.portal-related){width:100%;min-width:0}
.portal-reading .portal-body strong{font-weight:650;color:#263b53}
.portal-reading .portal-body h2{font-size:20px;font-weight:650;line-height:1.4;letter-spacing:-.015em;color:#17345c;margin:24px 0 14px;scroll-margin-top:24px}
.portal-reading .portal-body h3{font-size:18px;line-height:1.5;color:#17345c;margin:22px 0 12px}
.portal-reading .portal-body ul,.portal-reading .portal-body ol{padding-left:22px;margin:0 0 18px}
.portal-reading .portal-body li{margin:8px 0;padding-left:3px}
.portal-reading .portal-body li::marker{color:#3163b3}
.portal-reading .portal-body a:not(.ui-action){color:#285ba6;text-decoration:underline;text-decoration-color:#a9bedf;text-decoration-thickness:1px;text-underline-offset:3px}
.portal-reading .portal-body a:not(.ui-action):hover{color:#17345c;text-decoration-color:currentColor}
.portal-reading .portal-reading-group{display:block;margin:22px 0;padding:0;border:1px solid #dfe7f2;border-radius:10px;background:#fff;overflow:hidden}
.portal-reading .portal-body .portal-reading-group>h2{font-size:20px;font-weight:650;line-height:1.4;margin:0;padding:14px 20px;color:#17345c;background:#edf3fb}
.portal-reading .portal-group-content{padding:18px 20px}
.portal-reading .portal-group-content>:last-child{margin-bottom:0}
.portal-reading .portal-group-content>h2:first-child{margin-top:0}
.portal-reading .portal-group-content>.rds-list:only-child{margin:0;padding-left:19px}
.portal-reading .portal-group-content>.rds-list:only-child>li{margin:0;padding:12px 0 12px 3px}
.portal-reading .portal-group-content>.rds-list:only-child>li+li{border-top:1px solid #edf0f5}
.portal-reading .portal-group-content>.rds-list:only-child>li:first-child{padding-top:0}
.portal-reading .portal-group-content>.rds-list:only-child>li:last-child{padding-bottom:0}
.portal-reading .portal-group-content>.rds-list:only-child>li>a:first-child{font-weight:600}
.portal-reading .portal-document-close{display:block;background:#f7f9fc;border-radius:9px;margin-top:24px;padding:18px 20px}
.portal-reading .portal-body .rds-fechas{display:block;margin:22px 0 14px;padding:0;background:none;border:0;border-radius:0}
.portal-reading .portal-body .rds-fechas p{font-size:13px;line-height:1.6;color:#627084;margin:0 0 4px}
.portal-reading .portal-body .rds-docs{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0;padding:0;background:none;border-radius:0}
.portal-reading .portal-body .portal-document-close .rds-fechas{margin:0 0 14px}
.portal-reading .portal-body .portal-document-close .rds-docs{margin:0}
.portal-reading .portal-body .rds-doc-btn.ui-action{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 16px;font-size:13px;line-height:1.5;font-weight:600;border-radius:999px;text-decoration:none;box-shadow:none}
.portal-reading .rds-ayuda{display:block;padding:18px 0;margin:0;border-bottom:1px solid #e4e8ef;background:none;border-radius:0}
.portal-reading .rds-ayuda:first-of-type{padding-top:0}
.portal-reading .rds-ayuda:last-of-type{border-bottom:0}
.portal-reading .rds-ayuda .ambito{display:inline-block;font-size:12px;line-height:1.5;font-weight:600;color:#315f9e;background:#edf3fc;border-radius:6px;padding:3px 8px;margin-right:8px}
.portal-reading .rds-ayuda p{margin-bottom:12px}
.portal-reading .rds-ayuda ul{list-style:none;padding:0;margin-bottom:0}
.portal-reading .rds-ayuda li{padding:0;margin:5px 0}
.portal-reading .rds-img-wrap{padding:0;margin:20px 0;background:none}
.portal-reading .rds-img-wrap img{display:block;max-width:100%;width:auto;height:auto;max-height:none}
.portal-reading .rds-cert{display:grid;grid-template-columns:240px minmax(0,1fr);gap:26px;align-items:start;padding:22px 0;margin:0;border-bottom:1px solid #e4e8ef;background:none;border-radius:0}
.portal-reading .rds-cert-img img{display:block;max-width:100%;height:auto;max-height:none}
.portal-reading .rds-cert-text h2{margin-top:0}
.portal-reading .portal-related{display:block;margin:32px 0 0;padding:24px 0 0;border:0;border-top:1px solid #dce3ed;background:none;border-radius:0}
.portal-reading .portal-related-heading{margin-bottom:16px}
.portal-reading .portal-related h2{font-size:20px;line-height:1.4;letter-spacing:-.015em;margin:0;color:#17345c}
.portal-reading .portal-related-nav{display:flex;flex-wrap:wrap;gap:8px}
.portal-reading .portal-related-nav>a{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:auto;min-height:44px;padding:9px 14px;border:1px solid #dce3ef;border-radius:999px;background:#fff;color:#46566a;font-size:13px;line-height:1.5;text-decoration:none;font-weight:400}
.portal-reading .portal-related-nav>a:hover{background:#f3f6fb;border-color:#adc2e0}
.portal-reading .portal-related-nav>.portal-back{background:#3163b3;border-color:#3163b3;color:#fff;font-weight:600}
.portal-reading .portal-related-nav>.portal-back:hover{background:#254e92}
.portal-reading a:focus-visible{outline:3px solid #3163b3;outline-offset:4px}
@media(max-width:640px){
 main:has(.portal-reading){padding:22px 20px 44px}
 body:has(.portal-reading) .header-inner{gap:18px;padding-block:14px}
 .portal-reading .trans-breadcrumb{font-size:12px;gap:6px 8px;margin-bottom:18px}
 .portal-reading .portal-section-heading{padding:6px 0 16px;margin-bottom:18px}
 .portal-reading .portal-body p,.portal-reading .portal-body li{font-size:16px;line-height:1.7}
 .portal-reading .portal-body .portal-reading-group>h2{font-size:18px;padding:13px 16px}
 .portal-reading .portal-group-content{padding:16px}
 .portal-reading .portal-document-close{padding:17px 16px}
 .portal-reading .rds-cert{grid-template-columns:1fr;gap:20px}
 .portal-reading .rds-cert-img img{max-width:240px}
}
@media print{
 body>header,body>footer,.skip,.portal-reading .trans-breadcrumb,.portal-reading .portal-related{display:none!important}
 main:has(.portal-reading){max-width:none;padding:0}
 .portal-reading .portal-section-heading{padding:0;margin-bottom:20px}
 .portal-reading .portal-reading-group{border:0;overflow:visible;break-inside:auto;margin:20px 0}
 .portal-reading .portal-body .portal-reading-group>h2{background:none;padding:0;break-after:avoid}
 .portal-reading .portal-group-content{padding:10px 0 0}
 .portal-reading .portal-document-close{background:none;padding:0}
 .portal-reading .portal-body p,.portal-reading .portal-body li{font-size:11pt;line-height:1.6;color:#222}
 .portal-reading .portal-group-content>.rds-list:only-child>li{padding:7px 0}
 .portal-reading .portal-body h2,.portal-reading .portal-body h3{break-after:avoid}
 .portal-reading .rds-ayuda,.portal-reading .rds-cert,.portal-reading .rds-docs{break-inside:avoid}
 .portal-reading .action-icon{display:none}
}
