/* Author and library use the same reserved brand row as the publisher page. */
@font-face{font-family:'Service Copy Batang';src:url('/main-site/assets/iropke-batang-medium.otf') format('opentype');font-display:block}
body.public-author-portal,body.library-discovery-page{margin:0}
body.public-author-portal>.shared-brand-row,body.library-discovery-page>.shared-brand-row{box-sizing:border-box;margin:0;width:100%;padding-inline:3%;font-size:24px;color:#151915;background:#faf9f4;line-height:1.3}
body.public-author-portal>.shared-brand-row>span,body.library-discovery-page>.shared-brand-row>span{white-space:nowrap}
@media(min-width:1051px){body.public-author-portal>.shared-brand-row,body.library-discovery-page>.shared-brand-row{padding-left:27.7%;padding-right:36.9%}}
@media(max-width:760px){body.public-author-portal>.shared-brand-row,body.library-discovery-page>.shared-brand-row{padding-inline:12px;font-size:var(--mode-mobile-title-size)} }
@media(min-width:1051px){
 body.public-author-portal>.shared-brand-row,body.library-discovery-page>.shared-brand-row{
  --feed-inner-width:calc(min(100vw,1800px) - 48px);
  --brand-content-width:min(calc(var(--feed-inner-width)*.5),calc((100dvh - 130px)*.82));
  padding-left:calc(50% - var(--feed-inner-width)*.05 - var(--brand-content-width)*.5);
  padding-right:calc(50% + var(--feed-inner-width)*.05 - var(--brand-content-width)*.5);
  height:70px;
 }
 html body:is(.public-author-portal,.library-discovery-page)>.shared-brand-row>span{font-size:clamp(18px,1.65vw,24px);line-height:1.4;letter-spacing:-.035em}
 body:is(.public-author-portal,.library-discovery-page)>.shared-brand-row .shared-feed-link{width:50px;height:50px}
}

/* The service pages share the same header geometry and mode link. */
@font-face {
 font-family: 'Service Copy Elice';
 src: url('/snack-assets/fonts/EliceDigitalBaeum-Bold.otf') format('opentype');
 font-weight: 700;
 font-display: block;
}
html:has(> body > .site-brand-copy.shared-brand-row.service-brand-inline) { scrollbar-gutter: stable; }
html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-header.unified-shell {
 z-index: 122;
 background: #f6f8f2 !important;
}
html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-brand-copy.shared-brand-row.service-brand-inline {
 position: fixed !important;
 inset: 88px 0 auto !important;
 z-index: 121;
 display: flex;
 align-items: center;
 justify-content: space-between;
 transform: none;
 width: auto;
 height: 70px;
 margin: 0;
 padding: 0 3%;
 box-sizing: border-box;
 background: #f6f8f2 !important;
}
html body:has(> .service-brand-inline) > header.unified-shell > .shell-nav > :is(a, button) {
 height: 43px !important;
 min-height: 43px !important;
 transition-property: none !important;
 transform: none !important;
 translate: none !important;
}
html body > .site-brand-copy.shared-brand-row.service-brand-inline > span {
 font: 400 20px/1.3 'Service Copy Batang', serif !important;
 color: #151915;
 white-space: nowrap;
}
html body > .site-brand-copy.shared-brand-row.service-brand-inline > span > strong {
 font: 700 1em/1 'Service Copy Elice', sans-serif !important;
 letter-spacing: .04em !important;
}
html body > .site-brand-copy.shared-brand-row.service-brand-inline > .shared-feed-link {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 flex: none;
 gap: 7px;
 width: 44px;
 height: 44px;
}
html body > .site-brand-copy.shared-brand-row.service-brand-inline .shared-feed-link img { width: 40px; height: 40px; object-fit: contain; }
html body > .site-brand-copy.shared-brand-row.service-brand-inline .shared-feed-link::before { content: none; }
html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) {
 display: block;
 padding-top: 158px !important;
}
html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-header.unified-shell {
 position: fixed !important;
 inset: 0 0 auto !important;
 width: auto !important;
 height: 88px !important;
 min-height: 88px !important;
}
@media (min-width: 1280px) {
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) {
  padding-top: 88px !important;
  --service-menu-width: clamp(408px, calc(63.75vw - 408px), 510px);
 }
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-header.unified-shell {
  border-block: 1px solid #d6dfd0;
  padding-inline: 3vw !important;
 }
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-header.unified-shell > .shell-nav {
  flex-basis: var(--service-menu-width) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
 }
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-brand-copy.shared-brand-row.service-brand-inline {
  inset: 0 max(34.7vw, calc(3vw + var(--service-menu-width) + 18px)) auto max(23.25vw, calc(3vw + 300px)) !important;
  z-index: 123;
  width: auto;
  height: 88px;
  justify-content: center;
  gap: clamp(7.2px, .9vw, 16.2px);
  padding: 0 8px;
  background: transparent !important;
 }
 html body > .site-brand-copy.shared-brand-row.service-brand-inline > span {
  flex: 0 0 14.2em;
  min-width: 0;
  font-size: calc(clamp(16px, 1.32vw, 20px) + 1.5pt) !important;
 }
 html body.member-page:has(> .service-brand-inline) .my-main-tabs {
  top: 88px;
  scroll-margin-top: 88px;
 }
 html body > .site-brand-copy.shared-brand-row.service-brand-inline > span > strong {
  display: inline-block;
  transform: translateY(-.05em);
 }
 html body > .site-brand-copy.shared-brand-row.service-brand-inline > .shared-feed-link {
  position: relative;
  width: auto;
  height: 44px;
  padding: 0;
  border: 0;
  letter-spacing: normal;
  text-decoration: none !important;
 }
 html body > .site-brand-copy.shared-brand-row.service-brand-inline .shared-feed-link img { width: 44px; height: 44px; }
 html body > .site-brand-copy.shared-brand-row.service-brand-inline .shared-feed-link::after {
  content: attr(aria-label);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 102px;
  height: 24px;
  padding-inline: 9px 4px;
  border: 0;
  background: url('/main-site/assets/service-mode-bubble.svg') center / 100% 100% no-repeat;
  color: #574a36;
  font: 600 11px/1.35 system-ui, sans-serif;
  letter-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
 }
}
@media (max-width: 760px) {
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) { padding-top: 162px !important; }
 /* Let the feed fill the remaining viewport and scroll inside the frame. */
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline):has(> .community-layout) {
  display: flex;
 }
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-header.unified-shell {
  position: fixed !important;
  inset: 0 0 auto !important;
  height: 108px !important;
  min-height: 108px !important;
 }
 html body:has(> .site-brand-copy.shared-brand-row.service-brand-inline) > .site-brand-copy.shared-brand-row.service-brand-inline {
  inset: 108px 0 auto !important;
  height: 54px;
  padding-inline: 14px;
 }
 html body > .site-brand-copy.shared-brand-row.service-brand-inline > span { font-size: clamp(12px, 3.65vw, 15px) !important; }
}

.site-header #account-button[data-account-pending] > .account-signin-label { visibility: hidden !important; }

/* Keep room content and anchors below the same two-row header used by the feed. */
@media (max-width: 1050px) {
 html:has(body[data-room-view] > .service-brand-inline) {
  scroll-padding-top: 158px;
 }
 html body[data-room-view]:has(> .service-brand-inline) {
  --mode-mobile-header-height: 88px;
  --mode-mobile-row-height: 70px;
 }
}
@media (max-width: 760px) {
 html:has(body[data-room-view] > .service-brand-inline) {
  scroll-padding-top: 162px;
 }
 html body[data-room-view]:has(> .service-brand-inline) {
  --mode-mobile-header-height: 108px;
  --mode-mobile-row-height: 54px;
 }
}

@layer compact-corrections {
 @media (max-width: 1050px) {
  html body:has(> .service-brand-inline) > .site-header.unified-shell {
   position: fixed !important;
   inset: 0 0 auto !important;
   background: #f6f8f2 !important;
  }
 }
 @media (min-width: 761px) and (max-width: 1050px) {
  html body[data-room-view]:has(> .service-brand-inline) > .site-header.unified-shell {
   display: flex !important;
   padding: 16px 3% !important;
   height: 88px !important;
   min-height: 88px !important;
   gap: 20px !important;
  }
  html body[data-room-view]:has(> .service-brand-inline) > .site-header.unified-shell > .logo {
   font-size: 28px !important;
   translate: none;
  }
  html body[data-room-view]:has(> .service-brand-inline) > .site-header.unified-shell > .shell-nav {
   flex: 0 0 510px !important;
   width: auto !important;
   margin-left: auto !important;
   gap: 10px !important;
  }
  html body[data-room-view]:has(> .service-brand-inline) > .site-header.unified-shell > .shell-nav > :is(a, button) {
   height: 43px !important;
   min-height: 43px !important;
   font-size: 13px !important;
  }
 }
 @media (max-width: 760px) {
  html body:has(> .service-brand-inline) > .site-header.unified-shell {
   height: 108px !important;
   min-height: 108px !important;
  }
 }
}
