/* Deliberately plain blocks. Compact profiles are defined below. */
.avh-ad-demo{display:none}
@media(min-width:1024px){
  .avh-ad-layout-demo .avh-ad-demo{display:flex;justify-content:center;box-sizing:border-box;width:100%;margin:26px auto;clear:both;container-type:inline-size}
  .avh-ad-layout-demo .avh-ad-demo[hidden]{display:none!important}
  .avh-ad-demo .avh-ad-demo-box{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:970px;max-width:100%;height:90px;padding:8px 18px;border:1px solid #3973ad;border-radius:7px;background:#10253e;color:#e6f0ff;text-align:center;font:400 13px/1.2 Montserrat,Arial,sans-serif;overflow-wrap:anywhere;flex:none}
  .avh-ad-demo .avh-ad-demo-code{font-size:12px;line-height:1.2;letter-spacing:.04em;color:#8dbfff;font-weight:700}
  .avh-ad-demo .avh-ad-demo-name{font-size:14px;color:#edf5ff}
  .avh-ad-demo .avh-ad-demo-size,.avh-ad-demo .avh-ad-demo-status{font-size:12px;color:#adccef}
  .avh-ad-demo-wide .avh-ad-demo-box,.avh-ad-demo-horizontal .avh-ad-demo-box,.avh-ad-demo-interval .avh-ad-demo-box,.avh-ad-demo-anchor .avh-ad-demo-box{gap:4px}
  .avh-ad-demo-wide .avh-ad-demo-status,.avh-ad-demo-horizontal .avh-ad-demo-status,.avh-ad-demo-interval .avh-ad-demo-status,.avh-ad-demo-anchor .avh-ad-demo-status{font-size:11px}
  .avh-ad-demo-horizontal .avh-ad-demo-box,.avh-ad-demo-interval .avh-ad-demo-box,.avh-ad-demo-anchor .avh-ad-demo-box{width:728px}
  .avh-ad-demo-rectangle .avh-ad-demo-box{width:300px;height:250px;padding:20px;gap:14px}
  .avh-ad-demo-end .avh-ad-demo-box{width:336px;height:280px;padding:20px;gap:14px}
  .avh-ad-demo-tall .avh-ad-demo-box{width:300px;height:600px;padding:25px;gap:28px;background:#101721;border-color:#455161}
  .avh-ad-layout-demo .avh-ad-demo-page{width:min(1180px,calc(100% - 80px))}
  .avh-ad-layout-demo .avh-press-sidebar>.avh-ad-demo{margin:0}
  .avh-ad-layout-demo .avh-press-reading-layout{margin-top:0}
  .avh-ad-layout-demo .avh-press-ad-slot,.avh-ad-layout-demo .avh-google-sidebar{display:none!important}
  .avh-ad-layout-demo .work-details>.avh-ad-demo{margin:0 0 24px}
  .avh-ad-layout-demo .work-columns{grid-template-columns:minmax(0,1fr) 300px;gap:32px}
  .avh-ad-layout-demo .work-details{position:static}
  .avh-ad-layout-demo .avh-ad-demo-rail{display:none}
  .avh-ad-layout-demo .avh-ad-demo-anchor{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);z-index:25;width:728px;max-width:calc(100% - 60px);margin:0;box-shadow:0 4px 20px #0005;container-type:normal}
  .avh-ad-demo-anchor .avh-ad-demo-box{background:#10253e}
  .avh-ad-demo-close{position:absolute;right:-12px;top:-16px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #7095c4;border-radius:50%;background:#13263d;color:#eff6ff;font:22px/1 Arial,sans-serif;cursor:pointer}
  .avh-ad-demo-close:focus-visible{outline:2px solid #a4cfff;outline-offset:3px}
  .avh-ad-demo-anchor-open{padding-bottom:120px}
  body.avh-reader-ready.avh-ad-demo-anchor-open{padding-bottom:120px!important}
  .avh-ad-layout-demo .book-pdf>.avh-ad-demo,.avh-ad-layout-demo .reading-content>.avh-ad-demo{margin:16px auto}
  .avh-panel-mode .avh-ad-demo-anchor{display:none!important}
}
@media(min-width:1200px){
  .avh-ad-layout-with-rails:not([data-ad-layout-page="LE"]){--avh-demo-content:min(1220px,calc(100vw - 400px))}
  .avh-ad-layout-with-rails #inicio.shell,.avh-ad-layout-with-rails .work-main.shell,.avh-ad-layout-with-rails.av-home .avh-press-story-with-sidebar,.avh-ad-layout-with-rails .avh-press-related.shell,.avh-ad-layout-with-rails .avh-ad-demo-page{width:var(--avh-demo-content);max-width:none;margin-left:auto;margin-right:auto}
  .avh-ad-layout-demo .avh-press-reading-layout{grid-template-columns:minmax(0,1fr) 300px;gap:32px}
  .avh-ad-layout-demo .avh-ad-demo-rail{display:flex;position:fixed;top:118px;width:160px;max-height:calc(100vh - 134px);margin:0;z-index:8;container-type:normal}
  .avh-ad-demo-rail .avh-ad-demo-box{width:160px;height:600px;max-height:calc(100vh - 134px);gap:22px;padding:18px 12px;background:#101721;border-color:#455161}
  .avh-ad-layout-demo .avh-ad-demo-left{left:calc((100vw - var(--avh-demo-content)) / 2 - 180px)}
  .avh-ad-layout-demo .avh-ad-demo-right{right:calc((100vw - var(--avh-demo-content)) / 2 - 180px)}
}
@container(max-width:969px){.avh-ad-demo-wide .avh-ad-demo-box{width:728px}}
@container(max-width:727px){.avh-ad-demo-wide .avh-ad-demo-box,.avh-ad-demo-horizontal .avh-ad-demo-box{width:468px;height:90px}}
@container(max-width:335px){.avh-ad-demo-end .avh-ad-demo-box{width:300px;height:250px}}
@media print{.avh-ad-demo{display:none!important}.avh-ad-layout-demo{padding-bottom:0}}
/* Real display units never use the demonstration's fixed/mirrored positioning. */
@media(min-width:1024px){
  .avh-ad-layout-demo [data-ad-real]{flex-direction:column;align-items:center;gap:6px}
  [data-ad-real] .avh-ad-demo-box{padding:0;border:0;border-radius:0;background:transparent;gap:0;overflow:visible}
  .avh-position-ad-label{font:10px/1.4 Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#9aabba}
  .avh-position-google{width:100%;height:100%;flex:none}
  .avh-panel-mode [data-ad-real]{display:none!important}
}
@media(min-width:1200px){
  .avh-ad-layout-demo .avh-ad-demo-rail[data-ad-real]{position:absolute;max-height:none;top:118px}
  .avh-ad-demo-rail[data-ad-real] .avh-ad-demo-box{height:600px;max-height:none;background:transparent}
}

/* Compact inventory is distinct from desktop inventory, including in the PWA. */
body[data-ad-layout-device="mobile"] .avh-ad-demo,body[data-ad-layout-device="app"] .avh-ad-demo{display:flex;justify-content:center;box-sizing:border-box;width:100%;margin:24px auto;clear:both;container-type:normal}
body[data-ad-layout-device="mobile"] .avh-ad-demo[hidden],body[data-ad-layout-device="app"] .avh-ad-demo[hidden]{display:none!important}
.avh-ad-demo[data-ad-device="mobile"] .avh-ad-demo-box,.avh-ad-demo[data-ad-device="app"] .avh-ad-demo-box{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:320px;max-width:100%;height:100px;padding:7px 10px;border:1px solid #536579;border-radius:4px;background:#101a27;color:#e6edf7;text-align:center;font:400 11px/1.25 Arial,sans-serif}
.avh-ad-demo:is([data-ad-device="mobile"],[data-ad-device="app"]) .avh-ad-demo-code{font-size:10px;color:#b2c9e7}
.avh-ad-demo:is([data-ad-device="mobile"],[data-ad-device="app"]) .avh-ad-demo-name{font-size:12px;color:#e6edf7}
.avh-ad-demo:is([data-ad-device="mobile"],[data-ad-device="app"]) :is(.avh-ad-demo-size,.avh-ad-demo-status){font-size:10px;color:#b8c8dc}
.avh-ad-demo-rectangle:is([data-ad-device="mobile"],[data-ad-device="app"]) .avh-ad-demo-box{width:300px;height:250px;gap:12px}
.avh-ad-demo:is(.avh-ad-demo-mobile-slim,.avh-ad-demo-interval,.avh-ad-demo-anchor):is([data-ad-device="mobile"],[data-ad-device="app"]) .avh-ad-demo-box{height:50px;gap:2px}
.avh-ad-demo:is(.avh-ad-demo-mobile-slim,.avh-ad-demo-interval,.avh-ad-demo-anchor):is([data-ad-device="mobile"],[data-ad-device="app"]) .avh-ad-demo-status{display:none}
body:is([data-ad-layout-device="mobile"],[data-ad-layout-device="app"]) .avh-ad-demo-anchor{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(8px + env(safe-area-inset-bottom));z-index:25;width:min(320px,calc(100% - 40px));margin:0}
body[data-ad-layout-device="app"]:has(#app .nav-bottom) .avh-ad-demo-anchor{bottom:calc(86px + env(safe-area-inset-bottom))}
.avh-ad-demo:is([data-ad-device="mobile"],[data-ad-device="app"]) .avh-ad-demo-close{position:absolute;right:-12px;top:-24px;width:28px;height:28px;border:1px solid #788b9e;border-radius:50%;padding:0;background:#142131;color:#fff;font:20px/1 Arial,sans-serif;cursor:pointer}
body:is([data-ad-layout-device="mobile"],[data-ad-layout-device="app"]).avh-ad-demo-anchor-open{padding-bottom:90px}
body[data-ad-layout-device="app"].avh-ad-demo-anchor-open #app .app-main{padding-bottom:155px}
.avh-ad-demo:is([data-ad-device="mobile"],[data-ad-device="app"])[data-ad-real]{flex-direction:column;align-items:center;gap:6px}
.avh-ad-demo:is([data-ad-device="mobile"],[data-ad-device="app"])[data-ad-real] .avh-ad-demo-box{padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
body:is([data-ad-layout-device="mobile"],[data-ad-layout-device="app"]) :is(.avh-google-sidebar,.avh-press-ad-slot){display:none!important}
.avh-position-ad-label{font:10px/1.4 Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#9aabba}
.avh-position-google{width:100%;height:100%;flex:none}
body:is([data-ad-layout-device="mobile"],[data-ad-layout-device="app"]) .avh-press-reading-layout{display:block}
body:is([data-ad-layout-device="mobile"],[data-ad-layout-device="app"]) .avh-press-sidebar{grid-template-columns:minmax(0,1fr)}
body[data-ad-layout-device="app"]:has(.avh-reader-return) .avh-ad-demo-anchor{bottom:70px}
.avh-panel-mode .avh-ad-demo-anchor,.avh-panel-mode [data-ad-real]{display:none!important}
@media print{.avh-ad-demo{display:none!important}}
/* The selected compact format controls both examples and real display containers. */
.avh-ad-demo[data-ad-device][data-ad-format="320x50"] .avh-ad-demo-box{width:320px;height:50px;gap:2px}
.avh-ad-demo[data-ad-device][data-ad-format="300x250"] .avh-ad-demo-box{width:300px;height:250px;gap:12px}
.avh-ad-demo[data-ad-device][data-ad-format="320x100"] .avh-ad-demo-box{width:320px;height:100px;gap:4px}
.avh-ad-demo[data-ad-format="320x50"] .avh-ad-demo-status{display:none}
.avh-ad-demo:is([data-ad-format="300x250"],[data-ad-format="320x100"]) .avh-ad-demo-status{display:block!important}
/* Desktop choices keep sidebar widths and horizontal heights independent. */
.avh-ad-layout-demo .work-details>.details-card+.avh-ad-demo{margin:24px 0 0}
.avh-ad-demo[data-ad-device="desktop"][data-ad-format="250x250"] .avh-ad-demo-box{width:250px;height:250px;gap:12px}
.avh-ad-demo[data-ad-device="desktop"][data-ad-format="300x600"] .avh-ad-demo-box{width:300px;height:600px;gap:28px}
.avh-ad-demo[data-ad-device="desktop"][data-ad-format="728x90"] .avh-ad-demo-box{width:728px;height:90px;gap:4px}
.avh-ad-demo[data-ad-device="desktop"][data-ad-format="970x90"] .avh-ad-demo-box{width:970px;height:90px;gap:4px}
.avh-ad-demo[data-ad-device="desktop"][data-ad-format="970x250"] .avh-ad-demo-box{width:970px;height:250px;gap:14px}
@container(max-width:969px){.avh-ad-demo[data-ad-device="desktop"][data-ad-format="970x90"] .avh-ad-demo-box{width:728px}}
@container(max-width:727px){.avh-ad-demo[data-ad-device="desktop"]:is([data-ad-format="970x90"],[data-ad-format="728x90"]) .avh-ad-demo-box{width:468px}}
