/* Approved SAR proportions. Shared shell, natural content height.
   Loaded last on SAR only; hero and Industrial do not include this file. */
@media screen {
  body[data-sar-design] {
    --sar-page-gutter:clamp(28px,4.3vw,88px);
    --sar-content-width:1680px;
    --sar-shell-width:calc(var(--sar-content-width) + var(--sar-page-gutter)*2);
    --sar-masthead-height:56px;
    --sar-title-size:27px;
    --sar-brand-width:245px;
    --sar-section-title-size:28px;
    --sar-intro-size:14px;
  }
  body.tp-site[data-sar-design] {--tp-gutter:var(--sar-page-gutter)}
  body[data-sar-design] #thera-sar-editoriale .sar-study {--gutter:var(--sar-page-gutter)}

  body.tp-site[data-sar-design]>.tp-masthead,
  body[data-sar-design] #thera-sar-editoriale .study-tools {
    display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;
    box-sizing:border-box;width:100%;max-width:var(--sar-shell-width);
    min-height:var(--sar-masthead-height);height:auto;
    margin:0 auto;padding:6px var(--sar-page-gutter);
    gap:4px 20px;border:0;background:#f4f2ed;
  }
  body.tp-site[data-sar-design]>.tp-masthead::after {display:none}
  body[data-sar-design][data-top-contact-channel=sar]>.tp-masthead>.top-contact-links,
  body[data-sar-design][data-top-contact-channel=sar] #thera-sar-editoriale .study-tools>.top-contact-links {
    display:flex;align-items:center;flex-wrap:wrap;gap:4px 20px;margin:0;
  }
  body[data-sar-design][data-top-contact-channel=sar] :is(.tp-masthead,.study-tools) .top-contact-link {
    display:inline-flex;min-height:44px;padding:0;
    font:500 12px/1.4 Manrope,Arial,sans-serif;text-decoration:none;
  }
  body[data-sar-design] .sar-floating-slot,
  body[data-sar-design] #thera-sar-editoriale .sar-floating-slot.sar-topbar {
    max-width:var(--sar-content-width);margin:12px auto 0;
  }
  body.tp-site[data-sar-design] .sar-floating-slot {
    width:calc(100% - var(--sar-page-gutter)*2);
  }
  body[data-sar-design] .sar-floating-bar .sar-pages-trigger,
  body[data-sar-design] .sar-navigation-dialog .sar-pages-close {
    min-height:44px;line-height:21px;
  }
  body.tp-site[data-sar-design] .tp-shell,
  body.tp-site[data-sar-design][data-sar-sections=ready] .tp-shell {
    width:100%;max-width:var(--sar-shell-width);
    padding-inline:var(--sar-page-gutter);padding-top:24px;
  }
  body.tp-site[data-sar-design] .sar-floating-footer {
    width:calc(100% - var(--sar-page-gutter)*2)!important;
    max-width:var(--sar-content-width)!important;
  }
  body.tp-site[data-sar-design] .tp-reading :is(.page-header h1,.article-heading-panel h1,.post-heading h1,.form-hero h1),
  body.tp-site[data-sar-design] main.editorial-main>h1,
  body.tp-site[data-sar-design] .tp-special-main h1,
  body[data-sar-design] #thera-sar-editoriale .sar-page h1 {
    font-size:var(--sar-title-size);font-weight:700;line-height:1.25;
    letter-spacing:-.04em;margin-top:0;margin-bottom:10px;
  }
  /* Opening marks share one scale. Exported flyers, watermarks and menu marks
     retain their own functional dimensions. */
  body.tp-site[data-sar-design] .tp-reading .page-header img.page-logo,
  body.tp-site[data-sar-design] .article-brand-panel img.article-logo,
  body[data-sar-design] #thera-sar-editoriale .logo-frame {
    width:min(var(--sar-brand-width),100%)!important;
    max-width:100%!important;height:auto!important;max-height:none!important;
    flex-basis:auto;
  }
  /* Main section headings, not form steps, dialogs or article card titles. */
  body.tp-site[data-sar-design] .tp-reading .section-head h2,
  body.tp-site[data-sar-design] .tp-information .section-heading>.section-title,
  body[data-sar-design] #thera-sar-editoriale .section-title {
    font-size:var(--sar-section-title-size)!important;line-height:1.25;
    letter-spacing:-.035em;
  }
  body.tp-site[data-sar-design] .tp-reading .page-header>p,
  body.tp-site[data-sar-design] .tp-reading .post-heading>.intro,
  body.tp-site[data-sar-design] .tp-information .section-intro {
    font-size:var(--sar-intro-size);line-height:1.85;
  }
  @media(max-width:900px) {body[data-sar-design] {--sar-brand-width:190px}}
  @media(max-width:760px) {body[data-sar-design] {--sar-title-size:23px}}
  @media(max-width:699px) {
    body[data-sar-design] {
      --sar-page-gutter:max(28px,env(safe-area-inset-left),env(safe-area-inset-right));
      --sar-brand-width:150px;--sar-section-title-size:25px;
    }
  }
  @media(max-width:640px) {
    body[data-sar-design][data-sar-mobile=true] .sar-floating-slot,
    body[data-sar-design][data-sar-mobile=true] #thera-sar-editoriale .sar-floating-slot.sar-topbar {
      min-height:0;height:0;margin:0;padding:0;
    }
  }
  @media(max-width:500px) {body[data-sar-design] {--sar-title-size:19px}}
}
