﻿/* Corrections inherit the library's paper, ink, water, pills and station grid. */
.sector-picker{padding:28px 0 44px;border-top:1px solid var(--rule)}
.sector-picker>h2{margin:0 0 14px}
.sector-picker>.lead{max-width:65ch;margin-bottom:24px}
.sector-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0}
.sector-grid>li{display:flex;min-width:0}
.sector-card{display:flex;flex-direction:column;gap:16px;padding:24px;border:1px solid var(--rule);border-radius:18px;background:var(--sheet);text-decoration:none;color:var(--ink);width:100%;min-height:44px}
.sector-card h3{font-size:clamp(24px,2vw,30px);line-height:1.15;margin:0;max-width:22ch;min-height:2.3em}
.sector-card p{font-size:16px;color:var(--muted);margin:0;max-width:65ch}
.sector-count{font:400 13px/1.6 var(--mono);color:var(--muted);margin-top:auto}
.action-link,.door .go{font-size:16px;line-height:1.45;font-weight:600;color:var(--water);text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1.5px}
a.action-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
.sector-card .go{white-space:nowrap}
.sector-suggestions:empty{display:none}
.sector-suggestions{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 24px}
.sector-suggestions a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--muted);border-radius:999px;background:var(--sheet);font-size:16px;font-weight:600}
.sector-hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,3fr);gap:clamp(28px,5vw,72px);align-items:start;margin:10px 0 36px}
.sector-hero h1{max-width:21ch;margin-top:0}
.sector-hero .lead{max-width:65ch}
.sector-audience{max-width:65ch;font-size:16px;color:var(--muted);margin:0}
.sector-start{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:26px}
.sector-start .button{text-align:center}
.sector-tools{display:flex;gap:14px;margin-top:16px;align-items:center}
.sector-tools button{font-size:14px;padding:10px 16px}
.sector-hero .progress{margin:22px 0 18px;padding-top:16px;background:linear-gradient(rgba(19,41,61,.16),rgba(19,41,61,.16)) top/100% 5px no-repeat}
.sector-hero .progress span{height:5px;background:var(--ink);border-radius:3px}
.sector-detail .ruta li{flex-wrap:wrap;align-items:flex-start;padding:18px 0 18px 32px;gap:10px}
.ruta li.pending::before{content:counter(ruta,decimal-leading-zero);width:auto;height:auto;background:none;border-radius:0;left:0;top:20px}
.sector-detail .ruta a{grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:start}
.stage-poster{display:block;width:120px;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.stage-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.stage-meta{display:flex;align-items:center;gap:16px}
.stage-duration{font:400 13px/1.5 var(--mono);color:var(--muted);font-variant-numeric:tabular-nums}
.sector-detail .ruta small{display:block;font-size:16px}
.sector-detail .ruta .status{margin:0 0 0 136px}
.sector-detail .ruta .next{color:var(--ink);border-color:var(--muted);background:transparent}
.sector-practice{border-top:1px solid var(--rule);padding-top:38px;margin-top:18px;scroll-margin-top:150px}
.sector-practice>h2{margin-bottom:16px}
.sector-requests{list-style:none;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:stretch}
.sector-request{padding:28px;min-width:0;display:flex;flex-direction:column}
.sector-request:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:16px 36px}
.sector-request:last-child:nth-child(odd) h3{grid-column:1;margin-bottom:0}
.sector-request:last-child:nth-child(odd) .prompt{grid-column:2;grid-row:1/span 2;margin:0}
.sector-request:last-child:nth-child(odd) .actions{grid-column:1;align-content:end}
.sector-request h3{font-size:26px;margin:0 0 20px;max-width:30ch}
.sector-request .prompt{font-size:16px;line-height:1.65;white-space:normal;max-width:70ch;margin:0 0 22px;border-left:1px solid var(--muted);padding:0 0 0 18px}
.sector-request .prompt p{margin:0 0 14px}
.sector-request .prompt p:last-child{margin:0}
.sector-request .actions{gap:10px 20px}
.sector-request button{background:var(--ink);border-color:var(--ink);color:var(--sheet);flex:none}
.copy-action{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.copy-result{font-size:16px;line-height:1.4;color:var(--water)}
.copy-result:empty{display:none}
.sector-station{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:28px 50px;border-top:1px solid var(--rule);margin-top:40px;padding-top:32px}
.sector-station h2{margin:0;max-width:19ch}
.cota{display:block;font:400 13px/1.5 var(--mono);color:var(--water);margin-bottom:14px}
.sector-care ul{padding-left:24px;max-width:75ch;margin:0}
.sector-care li{margin:0 0 16px;padding-left:6px}
.sector-resources ul{list-style:none;margin:0;max-width:75ch}
.sector-resources li{border-bottom:1px solid var(--line);padding:4px 0}
.sector-roles .station-body{max-width:75ch}
.sector-roles a{display:flex;margin-bottom:12px}
.card-top .duration{position:static;padding:0;background:transparent;color:var(--muted);font:400 13px/1.5 var(--mono);font-variant-numeric:tabular-nums}
.card-top{flex-wrap:wrap}
.card-top .serial{margin-left:auto}
/* One scrollable navigation line; the header itself never exceeds the viewport. */
@media(max-width:1100px){
 .sector-detail .ruta a{flex-basis:100%}
 .barra{box-shadow:0 5px 12px -10px rgb(19 41 61 / .5);border-bottom-color:var(--rule)}
 .barra nav{display:flex;flex-wrap:nowrap;gap:20px;justify-content:flex-start;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--rule) var(--paper);padding:4px 6px;margin:0 -6px;width:calc(100% + 12px)}
 .barra nav a{flex:none;white-space:nowrap}
 .barra nav a:focus-visible{outline-offset:-3px}
}
@media(max-width:600px){
 .barra nav{gap:8px}
 .barra nav a{font-size:12.5px}
 .sector-grid,.sector-hero,.sector-requests,.sector-station{grid-template-columns:minmax(0,1fr)}
 .sector-picker{padding:24px 0 36px}
 .sector-card{padding:22px;gap:14px}
 .sector-card h3{font-size:28px;min-height:0}
 .sector-grid{gap:16px}
 .sector-hero{gap:24px;margin-top:8px}
 .sector-hero h1{font-size:38px}
 .sector-start{gap:10px;margin-top:22px}
 .sector-detail .ruta a{grid-template-columns:96px minmax(0,1fr);gap:12px;flex-basis:100%}
 .sector-detail .stage-copy{display:contents}
 .sector-detail .stage-meta{align-self:center;flex-wrap:wrap}
 .sector-detail .ruta strong,.sector-detail .ruta small{grid-column:1/-1}
 .stage-poster{width:96px}
 .sector-detail .ruta .status{margin-left:0}
 .sector-request{padding:22px}
 .sector-request h3{font-size:26px}
 .sector-request:last-child:nth-child(odd){display:flex;gap:0}
 .sector-request:last-child:nth-child(odd) h3{margin-bottom:20px}
 .sector-request:last-child:nth-child(odd) .prompt{margin-bottom:22px}
 .sector-practice{padding-top:28px}
 .sector-station{margin-top:32px;padding-top:26px;gap:20px}
}
@media(min-width:601px) and (max-width:1000px){
 .sector-grid{grid-template-columns:minmax(0,1fr)}
 .sector-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
 .sector-card h3{min-height:0}
 .sector-count{margin:0}
 .sector-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .sector-requests{grid-template-columns:minmax(0,1fr)}
 .sector-request:last-child:nth-child(odd){display:flex;gap:0}
 .sector-request:last-child:nth-child(odd) h3{margin-bottom:20px}
 .sector-request:last-child:nth-child(odd) .prompt{margin-bottom:22px}
 .sector-detail .ruta a{grid-template-columns:96px minmax(0,1fr);gap:12px}
 .stage-poster{width:96px}
 .sector-detail .ruta .status{margin-left:108px}
}
@media(hover:hover) and (pointer:fine){.sector-card:hover{border-color:var(--water)}.sector-card:hover h3{color:var(--water)}.sector-request button:hover{background:var(--water);border-color:var(--water)}}
@media print{
 @page{margin:16mm}
 html,body{background:#fff;color:#000;font-size:12pt}
 .barra,footer,.skip,noscript,.back,.sector-start,.sector-tools,.sector-roles,.sector-request .actions,.copy-result,.sector-request .sr-only{display:none!important}
 main{max-width:none;padding:0;min-height:0}
 .sector-hero{display:block;margin:0 0 24px}
 .sector-hero .hoja{box-shadow:none;background:#fff;padding:0;margin-top:18px}
 .sector-hero .hoja-cab,.sector-hero .readings,.sector-hero .registro-note{display:none}
 .sector-hero h1{font-size:28pt;max-width:none}
 .sector-hero .lead,.sector-audience,.etapa>.lead{color:#000}
 .sector-hero .progress{margin:20px 0}
 .etapa{display:block;break-inside:avoid;padding:18px 0}
 .etapa::before{display:block;margin-bottom:8px}
 .etapa h2,.sector-practice h2,.sector-care h2,.sector-resources h2{font-size:18pt;margin-bottom:12px;max-width:none}
 .etapa>.lead{margin:10px 0}
 .sector-detail .ruta li{padding-top:12px;padding-bottom:12px}
 .ruta li::before,.ruta li.pending::before{top:16px}
 .sector-detail .ruta strong{font-size:14pt}
 .ruta small,.ruta .serial,.stage-duration,.sector-request .prompt,.sector-count{color:#000}
 .stage-poster{display:none}
 .sector-detail .ruta a{display:block}
 .sector-detail .ruta .status{margin-left:0}
 .sector-requests,.sector-station{display:block}
 .sector-request,.sector-request:last-child:nth-child(odd){display:block;box-shadow:none;border-radius:0;background:#fff;padding:18px 0;border-bottom:1px solid #888;break-inside:avoid;margin:0}
 .sector-request h3{font-size:16pt;margin-bottom:16px!important}
 .sector-request .prompt{font-size:12pt;max-width:none}
 .sector-care{break-inside:avoid}
 .sector-care li{font-size:12pt}
 .sector-resources a{color:#000}
 a{text-decoration:none;color:#000}
}
