:root {
  --acero-noche: #10202d;
  --acero-sombra: #142737;
  --acero-tinta: #142b3a;
  --acero-suave: #3c5366;
  --acero-plata: #e7ebee;
  --acero-papel: #f4f6f7;
  --acero-borde: #aab8c3;
  --acero-luz: #caddEB;
  --acero-reflejo: #85a9c6;
}
body.steel-page {
  --paper: var(--acero-papel); --surface: #e7edf1; --panel: #dce6ed;
  --ink: var(--acero-tinta); --muted: var(--acero-suave); --line: var(--acero-borde);
  --accent: #244f71; --ed-accent: #244f71; --ed-ink: var(--acero-tinta);
  --ed-muted: var(--acero-suave); --ed-panel: #e8eef2; --ed-line: var(--acero-borde);
  --ed-paper: #eff3f6; --ed-aura: #809daf1a; --folio: #f3f6f8; --shadow: #142a3b;
  color-scheme: light;
}
.steel-page .head, .steel-workshop .masthead {
  background: var(--acero-noche); color: #eff5fa; border-color: #354d61;
}
.steel-page .head-line, .steel-workshop .mast-inner { min-height: 68px; }
.room-links {
  display: flex; align-items: center; gap: clamp(.65rem,2vw,1.65rem);
  margin-inline-start: auto; flex: 0 0 auto; color: #e5eef6;
}
.room-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .15em;
  font: 650 .84rem/1.2 Manrope, system-ui, sans-serif; white-space: nowrap; text-decoration: none;
}
.room-links a:hover { color: #c6e1f9; text-decoration: underline; text-underline-offset: .32em; }
.room-links a:last-child { border: 1px solid #637e92; border-radius: 2rem; padding: .14rem .85rem; min-height: 36px; }
.room-links a:last-child:hover { background: #253b4b; }
.steel-workshop .mast-links { gap: clamp(.5rem,1.65vw,1.5rem); }
.steel-workshop .room-links { margin-inline-start: 0; }
.steel-page .page-hero {
  background: repeating-linear-gradient(0deg, transparent 0 23px, #314f6412 23px 24px),
    linear-gradient(113deg,#f1f5f7 16%,#dfe8ef 85%,#e8eef3);
}
.steel-page .hero-body { border-top: 1px solid #aab8c36b; margin-top: .7rem; }
.steel-page .hero-body h1 { text-wrap: balance; color: #122a3a; }
.steel-page .hero-body .section-art {
  position: relative;
  border-color: #869aa9;
  background: radial-gradient(ellipse at 52% 41%,#395064,#122333 78%);
  box-shadow: 6px 6px 0 #91a7b84a;
  filter: saturate(.33);
}
.steel-page .lead { color: #3e566a; }
.steel-page .aiiab-pie, .steel-workshop .aiiab-pie {
  --ed-line: #4b6379; --ed-accent: #c4dbee; --pie-paper: #10202d; --pie-muted: #c3d3df;
}
.steel-page .aiiab-pie p { color: var(--pie-muted); }
.steel-page .local { border-radius: 2px; }
.steel-page .local li { border-color: #aebdc9; }
.steel-page .aiiab-lectura .lectura-block, .steel-page .lectura-head { border-radius: 0; border-color: #adbdca; }
.steel-page .lectura-block > ol > li, .steel-page .lectura-fuentes, .steel-page .ed-ejercicio { background: #e3ebf2; }
.steel-page .lectura-block th { background: #d8e4ed; }
.steel-page .fieldwork { background: #172d3e; }
.steel-page .fieldwork .kicker, .steel-page .instrument-panel>a { color: #c8e3fa; }
.steel-page .fieldwork p { color: #e0ebf5; }
.steel-page .instrument-layout {
  border-color: #698297; background: linear-gradient(123deg,#243b4e,#162736);
}
.steel-page .instrument-layout nav { border-color: #698297; }
.steel-page .instrument-layout nav a { border-color: #658199; color: #e7f0f8; }
.steel-page .instrument-layout nav a[aria-current] { color: #142b3a; background: linear-gradient(105deg,#baccdb,#e0e9f0 66%,#bccbd6); }
.steel-page .instrument-display { background: #122737; }
.steel-page.theme-ia .instrument-display {
  background: repeating-linear-gradient(0deg,transparent 0 26px,#b2c8dd18 26px 27px),#122737;
}
.steel-page .evidence-bars meter::-webkit-meter-bar { background: #39536a; }
.steel-page .evidence-bars meter::-webkit-meter-optimum-value { background: #b0d1ea; }
.steel-page .evidence-bars meter::-moz-meter-bar { background: #b0d1ea; }
.steel-page .reader-path { background: #e1e8ee; border-color: #b3c0cc; }
.steel-page .reader-path a:hover, .steel-page .reader-path a[aria-current] { background: #cbdbe8; }
.steel-page .action, .steel-page .skip-nav { background: #274c68; color: #fbfcff; }
.steel-page .action:hover, .steel-page .skip-nav:focus { background: #193c58; color: #fff; }

/* Reading travels on the page; the reference lives in the adjacent grid column. */
.steel-page .has-reading-panel {
  grid-template-columns: minmax(265px,.78fr) minmax(0,1.35fr);
  gap: clamp(22px,4vw,66px);
  align-items: start;
}
.reading-rail { min-width: 0; }
.reading-panel {
  --reading-progress: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(151deg,#263a4a,#10212f 76%);
  border: 1px solid #526b80;
  box-shadow: 7px 8px 0 #9cadbb33;
  color: #eaf3fb;
}
.reading-plate {
  display: grid; align-items: end; position: relative; isolation: isolate;
  min-height: 118px; height: clamp(140px,15vw,218px);
  overflow: hidden; border-bottom: 1px solid #688298;
  background: radial-gradient(ellipse at 67% 34%,#6e8aa1,#263c51 53%,#111f30);
}
.reading-plate img, .reading-noise { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; }
.reading-plate img {
  object-fit: cover; object-position: center 52%; filter: saturate(.27);
  opacity: .91; transform: scale(1.035);
}
.reading-noise {
  background: linear-gradient(90deg,#09172589,transparent 72%),
    repeating-linear-gradient(0deg,#aac4df14 0 1px,transparent 1px 7px);
}
.reading-ticks {
  position: absolute; inset: auto 12px 6px; height: 7px; opacity: .54;
  background: repeating-linear-gradient(90deg,#bdd3e5 0 1px,transparent 1px 10px);
  border-bottom: 1px solid #90adca;
}
.reading-nav { padding: 12px 13px 13px; }
.steel-page .reading-label {
  margin: 0 10px 5px; color: #adcae1; font: 650 11px/1.6 Manrope, sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
}
.reading-nav ol { list-style: none; margin: 0; padding: 0; }
.reading-nav a {
  display: grid; grid-template-columns: 8px minmax(0,1fr); gap: 9px; align-items: center;
  min-height: 42px; padding: 6px 9px;
  font-size: .86rem; line-height: 1.37; font-weight: 650;
  color: #e1edf8; text-decoration: none;
}
.reading-nav a::before {
  content: ''; width: 5px; height: 5px; border: 1px solid #99b4cd; border-radius: 50%;
}
.reading-nav a:hover { color: #f9fcff; background: #9dbbc529; }
.reading-nav a[aria-current="location"] {
  color: #112638;
  background: linear-gradient(110deg,#a2b8c9,#e3ebf3 73%,#c3d2df);
}
.reading-nav a[aria-current="location"]::before { background: #466d8e; border-color: #466d8e; }
.reading-meter { height: 3px; background: #3f5668; }
.reading-meter span { display: block; width: 100%; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--reading-progress)); background: #bcdbf4; }
.reading-area { margin-top: 12px; border: 1px solid #afbdc9; background: #ebf0f4; }
.reading-area summary { cursor: pointer; padding: 10px 13px; min-height: 42px; font-size: .87rem; font-weight: 700; }
.reading-area .local { border: 0; border-top: 1px solid #afbdc9; max-height: 23vh; overflow: auto; padding: .75rem; }
.has-reading-panel .lectura-block {
  scroll-margin-block-start: 16px;
  padding: clamp(22px,3.6vw,55px) clamp(17px,3.6vw,53px);
  background: var(--acero-papel);
  border-block-end: 1px solid #bac8d4;
}
.has-reading-panel .lectura-block h3 {
  margin-block-end: .62em;
  font: 485 clamp(1.7rem,3vw,3.18rem)/1.08 Manrope,system-ui,sans-serif;
  letter-spacing: -.051em;
}
.has-reading-panel .lectura-block :is(p,li,dd) { line-height: 1.72; }
.reader-diagram {
  position: relative; z-index: 1; align-self: center; margin: 13px clamp(14px,3vw,29px);
  color: #e0edf9; background: #102234ea; border: 1px solid #6590b0;
  box-shadow: 0 0 24px #13203570;
}
.reader-diagram > div {
  display: grid; grid-template-columns: auto 1fr; gap: .28rem .75rem;
  align-items: center; padding: .68rem .9rem;
}
.reader-diagram > [hidden] { display: none; }
.reader-diagram span { color: #b5cfe6; font: 600 10px/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .045em; }
.reader-diagram strong { font-size: .81rem; line-height: 1.35; font-weight: 650; }
.reader-diagram .reveal-plate { animation: recheck 450ms ease-out both; }
@keyframes recheck { from { opacity: .6; clip-path: inset(0 52% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@media (min-width: 901px) and (min-height: 680px) {
  .reading-rail { position: sticky; top: clamp(15px,4vh,52px); }
  .reading-nav ol { max-height: clamp(124px,36vh,295px); overflow: auto; scrollbar-width: thin; }
  .has-reading-panel .lectura-block:first-of-type { border-top: 1px solid #bac8d4; }
  .reading-stage .lectura-block { min-block-size: min(48svh,455px); }
}
@media (max-width: 900px), (max-height: 679px) {
  .steel-page .has-reading-panel { grid-template-columns: minmax(0,1fr); }
  .reading-plate { height: 118px; }
  .reading-panel:not(:has(.reader-diagram)) .reading-plate { display: none; }
  .reading-nav { padding: 8px 12px; }
  .reading-nav a { min-height: 44px; }
  .reading-area .local { max-height: none; }
}
@media (max-width: 760px) {
  .steel-page .head-line, .steel-workshop .mast-inner { min-height: 56px; }
  .steel-workshop .mast-links { display: none; }
  .steel-workshop .room-links { margin-inline-start: auto; }
  .steel-page .hero-body .section-art { max-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .reader-diagram .reveal-plate { animation: none; }
}
html.lectura-quiet .reveal-plate { animation: none; }

/* The original workshop and lens keep their optically aligned source at both zoom levels. */
.steel-workshop .taller .plate-photo, .steel-workshop .optical-loupe { filter: grayscale(1) sepia(.16) hue-rotate(160deg) saturate(2); }
.steel-workshop .folio, .steel-workshop .taller {
  background: radial-gradient(#6e8da629 .65px,transparent .85px) 0 0/5px 5px,
    linear-gradient(112deg,#f0f3f5,#dce4eb);
}
.steel-workshop .taller h1, .steel-workshop .taller h1 em { color: #1a354a; }
.steel-workshop .rubrica, .steel-workshop .folio-imprint, .steel-workshop .folio-imprint code { color: #3d596e; }
.steel-workshop .folio-lead, .steel-workshop .folio-lead strong { color: #2d465b; }
.steel-workshop .vitrina-bar, .steel-workshop .specimen-label { background: #102333; }
.steel-workshop .lens-switch[aria-pressed="true"], .steel-workshop .glass-target[aria-pressed="true"] span { background: #d0e2ef; border-color: #f0f7fd; color: #172a3b; }
.steel-workshop .lens-switch[aria-pressed="true"] b { color: #244259; }
.steel-workshop .chapter-strip, .steel-workshop .site-foot { background: #142939; }
.steel-workshop .library, .steel-workshop .legacy-reading { background: #e5edf3; }
.steel-workshop .story { color: #122f43; }
.guide-site .guide-index a[aria-current="location"] {
  color: #f3f8fd; background: #28485e; border-left: 3px solid #aac6df;
}
.steel-page .aiiab-lectura .lectura-block > :is(ol,ul):has(> li + li):not(:has(> li > a:first-child)) {
  background: #e6edf3;
  color: #304a5e;
  border-color: #adbdca;
  border-inline-start-color: #6b8da8;
}
.steel-page .aiiab-lectura .lectura-block > :is(ol,ul) li::marker { color: #3d678b; }
.steel-page .aiiab-lectura .lectura-block th { color: #18374d; background: #d8e4ed; }

/* Keep the Atlas caption readable over bright cloud frames. */
.public-site .hero-caption[data-act="1"] {
  position: relative;
  isolation: isolate;
}
.public-site .hero-caption[data-act="1"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.2rem -1.65rem -1.2rem -1.25rem;
  border-radius: .2rem;
  background: linear-gradient(100deg, #0c1b29f2 0%, #0c1b29ed 76%, #102437c9 100%);
  box-shadow: 0 0 28px #091b2b45;
  pointer-events: none;
}
.public-site .hero-caption[data-act="1"] :is(h2,.tint,p) { color: #edf4f9; }
#cabecera-aiiab .lobby-map { color: #edf4f9; text-underline-offset: .22em; }
#cabecera-aiiab .lobby-map:hover { text-decoration: underline; }
.tools-directory { padding-block: 0 clamp(2rem, 5vw, 5rem); }
.tools-directory h2 { font-size: clamp(1.5rem, 3vw, 2.85rem); margin-bottom: .6rem; letter-spacing: -.045em; }
.tools-directory ul { list-style: none; margin: 0; padding: 0; }
.tools-directory li { border-top: 1px solid #b2c0cc; padding-block: .85rem; }
.tools-directory a { font-weight: 750; }
#modo-local { scroll-margin-top: 20px; }
#modo-local:target { outline: 2px solid #547a98; outline-offset: 2px; }
.aiiab-pie .pie-grid:not(:has(.pie-redes)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
@media (max-width: 430px) {
  #cabecera-aiiab .mast-inner { padding-inline: 12px; gap: 7px; }
  #cabecera-aiiab .lobby-tools { gap: 8px; }
  #cabecera-aiiab .lobby-tools a { font-size: .77rem; }
  #cabecera-aiiab .lobby-tools .architecture-search { padding-inline: 9px; }
  .public-site .hero-caption[data-act="1"]::before { inset-inline: -.65rem; }
}
