body{font-family:Manrope,Arial,sans-serif}
.mast{position:relative;z-index:5;color:#101112;background:#f5f4f0;border-bottom:1px solid #d5d4ce;font-family:Manrope,Arial,sans-serif}.mast .navbar{width:min(1200px,calc(100% - 8vw));margin:auto;display:flex;align-items:center;gap:32px;min-height:75px}.mast .brand,.mast .account,.mast nav a{text-decoration:none;color:inherit}.mast .brand{display:flex;align-items:center;white-space:nowrap;font-size:1.52rem;font-weight:800;letter-spacing:-.075em}.mast .brand img{width:30px;height:30px;margin-right:8px}.mast .brand span{font-weight:490}.mast nav{display:flex;align-items:center;gap:clamp(18px,2.4vw,38px);padding:0;width:auto;margin:0 0 0 auto}.mast nav a,.mast .account,.mast .nav-toggle{font-size:.94rem;font-weight:620}.mast nav a{padding:12px 0;border-bottom:2px solid transparent}.mast nav a:hover,.mast nav a[aria-current]{border-color:#76542f}.mast .account,.mast .nav-toggle{border:1px solid #777b74;border-radius:99px;background:transparent;padding:8px 16px;white-space:nowrap}.mast .nav-toggle{display:none}.mast a:focus-visible,.mast button:focus-visible{outline:3px solid #76542f;outline-offset:3px}
@media(max-width:680px){.mast .navbar{width:calc(100% - 36px);min-height:62px;gap:9px}.mast .brand{font-size:1.31rem}.mast .brand img{width:24px;height:24px;margin-right:5px}.mast .nav-toggle{display:block;margin-left:auto}.mast nav{display:none;position:absolute;top:100%;left:0;right:0;background:#f5f4f0;padding:8px 18px 15px;border-bottom:1px solid #d5d4ce;flex-wrap:wrap;justify-content:center}.mast nav.open{display:flex}.mast .account,.mast .nav-toggle{padding:7px 10px;font-size:.85rem}}
aside[data-ad-slot]:empty{display:none}
.portal-return{background:#10161c;color:#f5f4f0;display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;justify-content:center;padding:1.5rem;margin-top:2rem;font:500 .95rem/1.5 "DM Sans",sans-serif}
.portal-return button,.portal-return a{color:inherit;background:transparent;border:0;text-decoration:underline;padding:0;font:inherit;cursor:pointer}

.mast .navbar .brand img { width: 137px; height: auto; margin: 0; }
@media(max-width:680px){.mast .navbar .brand img { width: 116px; }}

@media(min-width:681px) and (max-width:980px) {
  .mast .navbar { min-height:62px; gap:12px; }
  .mast .navbar .nav-toggle { display:block; margin-left:auto; }
  .mast .navbar nav { display:none; position:absolute; inset:100% 0 auto; width:auto; margin:0; padding:8px 20px; background:#f5f4f0; border-bottom:1px solid #d5d4ce; }
  .mast .navbar nav.open { display:flex; justify-content:center; flex-wrap:wrap; gap:.4rem 1.1rem; }
}

/* Published archive readers and lessons use the same controls as the storefront.
   Leave the fixed dimensions of the printable workshop sheets to the document. */
@media screen {
  .mast .wrap.navbar { box-sizing:border-box; }
  body:has(>.portal-return) main > :is(.intro, h1):first-child h1,
  body:has(>.portal-return) main > h1:first-child,
  body:has(>.portal-return) .product-hero-grid h1 {
    font:550 clamp(2.6rem,5.4vw,5.8rem)/1.04 var(--display);
    letter-spacing:-.055em;
  }
  body:has(>.portal-return) .product-hero { background:var(--coal);color:#f5f4ef; }
  body:has(>.portal-return) .product-hero-grid h1 em { font:italic 400 1em/1 Georgia,serif; color:var(--warm); }
  body:has(>.portal-return) :is(.product-card,.product-hero-shot) { border-color:var(--rule); border-radius:4px; }
  body:has(>.portal-return) .product-copy summary::marker { color:var(--accent); }
  body:has(>.portal-return) .product-copy details[open] summary { border-bottom:1px solid var(--rule); }
  body:has(>.portal-return) :is(.product-search input,#catalog-filter) {
    min-height:44px; color:var(--ink); background:#fff; border:1px solid var(--instrument-line);
    border-radius:3px; font:inherit;
  }
  body:has(>.portal-return) .btn.warm { background:var(--sand); color:#201b16; border-radius:3px; }
  body:has(>.portal-return) .btn.warm:hover { background:var(--sand-hover); }
  body:has(>.portal-return) .btn.warm:active { background:var(--warm); }
  body:has(>.portal-return) main > video { border-radius:4px; background:var(--coal); }
  body:has(>.acervo-documento) { max-width:none; padding:0; }
  .acervo-documento { width:min(1100px,calc(100% - 2rem)); margin:0 auto; padding-block:clamp(1.5rem,5vw,4rem); }
  .acervo-documento table { display:block; max-width:100%; overflow:auto; }
  .acervo-documento a { color:var(--accent); }
  .acervo-documento summary { min-height:36px; padding-block:5px; cursor:pointer; }
  .portal-return { font-family:var(--body); }
  .portal-return :is(a,button) { display:inline-flex; align-items:center; min-height:44px; }
}
@media print { body>.mast,body>.portal-return,body>.privacy-banner { display:none; } }
