@import url('/main-site/global-cursor.css?v=1');
/* One shared four-item menu. Login and signed-in balance occupy identical cells. */
body>.site-header.unified-shell{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;position:relative!important;gap:20px!important;min-height:88px!important;height:88px!important;padding:16px 3%!important;overflow:visible!important;background:#fffffaf5;border-bottom:1px solid #d6dfd0}
body>.site-header.unified-shell .logo{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;font:700 28px/1 Arial,sans-serif!important;letter-spacing:-1.3px!important;margin:0!important;white-space:nowrap!important}
body>.site-header.unified-shell .logo>span{font-weight:400!important;font-style:normal!important}body>.site-header.unified-shell .brand-cookie{display:inline-block!important;width:27px!important;height:27px!important;margin-left:8px!important}
body>.site-header.unified-shell .shell-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:10px!important;flex:0 0 426px!important;margin-left:auto!important;padding:0!important}
body>.site-header.unified-shell .shell-nav>a,body>.site-header.unified-shell .shell-nav>button{grid-column:auto!important;grid-row:auto!important;flex-wrap:nowrap!important;box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:100%!important;min-width:0!important;height:43px!important;min-height:43px!important;margin:0!important;border:1px solid #c6d4bd!important;border-radius:7px!important;padding:4px 6px!important;background:linear-gradient(#fffef9,#edf2e6)!important;color:#3d583e!important;font:500 14px/1.25 Arial,'Apple SD Gothic Neo',sans-serif!important;letter-spacing:0!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:inset 0 1px 0 #fff,0 2px 4px #32452b12}
body>.site-header.unified-shell #account-button .account-label,body>.site-header.unified-shell #account-button .account-signin-label{display:block!important;font:inherit!important;line-height:1.2!important;white-space:nowrap!important}
body>.site-header.unified-shell #account-button .account-amount{display:inline!important;font:600 12px/1.2 Arial,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;color:inherit!important;margin:0!important}
body>.site-header.unified-shell .account-signin-label br{display:none!important}body>.site-header.unified-shell .site-visit-count{position:absolute!important;left:3%!important;top:68px!important;font-size:9px!important}
@media(max-width:760px){body>.site-header.unified-shell{display:block!important;height:112px!important;min-height:112px!important;padding:12px 14px!important}body>.site-header.unified-shell .logo{font-size:25px!important;margin-bottom:11px!important}body>.site-header.unified-shell .brand-cookie{display:inline-block!important;width:23px!important;height:23px!important}body>.site-header.unified-shell .shell-nav{width:100%!important;gap:8px!important;margin:0!important}body>.site-header.unified-shell .shell-nav>a,body>.site-header.unified-shell .shell-nav>button{height:43px!important;min-height:43px!important;font-size:12px!important;padding:3px!important}body>.site-header.unified-shell #account-button .account-amount{font-size:11px!important}body>.site-header.unified-shell .site-visit-count{left:auto!important;right:14px!important;top:21px!important;font-size:8px!important}}
@media(max-width:340px){body>.site-header.unified-shell .shell-nav{gap:5px!important}body>.site-header.unified-shell .shell-nav>a,body>.site-header.unified-shell .shell-nav>button{font-size:11px!important}}
body>.site-header.unified-shell :is(.shell-category,.author-settlement-link,#account-button){grid-column:auto!important;grid-row:auto!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:4px!important;width:100%!important;max-width:none!important;height:43px!important;min-height:43px!important;white-space:nowrap!important;font-size:13px!important}
@media(max-width:760px){body>.site-header.unified-shell :is(.shell-category,.author-settlement-link,#account-button){font-size:12px!important;height:43px!important;min-height:43px!important}body>.site-header.unified-shell #account-button .account-amount{display:inline!important;font-size:11px!important}}
body>.site-header.unified-shell{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;flex-shrink:0!important;top:auto!important;left:auto!important;transform:none!important}
body>.site-header.unified-shell .site-visit-count{bottom:auto!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;line-height:1.3!important}
body>.site-header.unified-shell #account-button{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;white-space:nowrap!important;overflow:hidden!important}
body>.site-header.unified-shell #account-button .sp-amount{display:inline-flex!important;white-space:nowrap!important;gap:1px!important}
body>.site-header.unified-shell #account-button .sp-unit{background:none!important;padding:0!important;border:0!important;font:inherit!important}
/* Give the two service labels a little breathing room without resizing cells. */
body>.site-header.unified-shell .shell-nav>a{letter-spacing:.06em!important;word-spacing:.12em!important}
body>.site-header.unified-shell #account-button .account-amount,body>.site-header.unified-shell #account-button .account-amount :is(.sp-number,.sp-unit){color:#78400b!important;font-weight:800!important}

/* Match the room viewport to the shared header, so the clipped body never scrolls. */
@media(max-width:1050px){body[data-room-view]>main{height:calc(100dvh - 88px)!important}}
@media(max-width:760px){body[data-room-view]>main{height:calc(100dvh - 112px)!important}}

:root{--shared-header-height:88px}@media(max-width:760px){:root{--shared-header-height:112px}}

/* Mobile common row: brand / retained visitor totals / notification bell. */
@media(max-width:760px){body>.site-header.unified-shell{display:grid!important;grid-template-columns:max-content minmax(0,1fr) 31px!important;grid-template-rows:31px 43px;column-gap:6px!important;row-gap:9px!important;height:108px!important;min-height:108px!important;padding:12px 14px!important}body>.site-header.unified-shell>.logo{grid-column:1;grid-row:1;margin:0!important;align-self:center}body>.site-header.unified-shell>.shell-nav{grid-column:1/-1;grid-row:2;margin:0!important;width:100%!important;min-width:0!important}body>.site-header.unified-shell>#site-visit-count{position:static!important;grid-column:2;grid-row:1;justify-self:end;align-self:center;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important;font:400 8px/1.4 Arial,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;min-width:0!important}body>.site-header.unified-shell>#site-visit-count b{font:600 8px/1.4 Arial,sans-serif!important}body>.site-header.unified-shell>#activity-bell{position:relative!important;grid-column:3;grid-row:1;inset:auto!important;align-self:center;justify-self:end;margin:0!important}#site-visit-count[hidden]{display:none!important}}
@media(max-width:350px){body>.site-header.unified-shell>.logo{font-size:21px!important}body>.site-header.unified-shell .brand-cookie{width:20px!important;height:20px!important;margin-left:5px!important}body>.site-header.unified-shell{column-gap:4px!important}body>.site-header.unified-shell>#site-visit-count,body>.site-header.unified-shell>#site-visit-count b{font-size:7.5px!important}}

@media(min-width:761px){body>.site-header.unified-shell>#site-visit-count{left:auto!important;right:max(24px,calc((100vw - 780px)/2))!important;text-align:right!important}}
/* PC room workspaces reserve the shared header in document flow. */
@media(min-width:1051px){
 body[data-room-view]{display:flex!important;flex-direction:column!important;height:100dvh!important;overflow:hidden!important}
 body[data-room-view]>.site-header.unified-shell{position:relative!important;top:0!important;flex:0 0 88px!important;z-index:80}
 body[data-room-view]>main{display:block!important;flex:1 1 0!important;min-height:0!important;height:calc(100dvh - 88px)!important;max-height:calc(100dvh - 88px)!important;padding:0!important;margin:0!important;overflow:hidden!important}
 body[data-room-view] main>:is(#stories,#relay,#poetry,#series).story-classroom.room-system{height:100%!important;max-height:100%!important;min-height:0!important}
 body>.site-header.unified-shell>#site-visit-count{position:static!important;order:1;margin:0 0 0 20px!important;left:auto!important;right:auto!important;top:auto!important;align-self:center;font:400 11px/1.4 Arial,'Apple SD Gothic Neo',sans-serif!important;text-align:left!important}
 body>.site-header.unified-shell>#site-visit-count b{font-size:11px!important}
 body>.site-header.unified-shell>.shell-nav{order:2}
}
body>.site-header.unified-shell .logo{text-decoration:none!important}
body > .site-header.unified-shell > .shell-nav > #account-button {
  position: relative;
  isolation: isolate;
}

body > .site-header.unified-shell > .shell-nav > #account-button.has-new-rewards::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, #f6dd9a, #fff4d2, #efd18b);
  animation: service-reward-tint 2.4s ease-in-out infinite;
}

@keyframes service-reward-tint {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body > .site-header.unified-shell > .shell-nav > #account-button.has-new-rewards::after {
    animation: none;
    opacity: 1;
  }
}

body > .site-header.unified-shell .shell-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  flex-basis: 510px !important;
}
@media (max-width: 760px) {
  body > .site-header.unified-shell > .shell-nav { gap: 5px !important; }
  body > .site-header.unified-shell > .shell-nav > :is(a,button) {
    font-size: clamp(9px, 2.9vw, 12px) !important;
    letter-spacing: 0 !important;
  }
  body > .site-header.unified-shell > .logo { translate: -1px 0; }
}

/* Keep the desktop bell immediately before the service menu. */
@media (min-width: 761px) {
  body > .site-header.unified-shell > #activity-bell {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 34px;
    order: 2;
    margin-inline-start: auto !important;
  }
  body > .site-header.unified-shell > .shell-nav {
    flex: 0 1 510px !important;
    min-width: 0;
    order: 3;
  }
  body > .site-header.unified-shell:has(> #activity-bell:not([hidden])) > .shell-nav {
    margin-inline-start: 0 !important;
  }
}
@media (min-width: 761px) and (max-width: 1050px) {
  body:not([data-room-view]) > .site-header.unified-shell {
    gap: 10px !important;
  }
  body:not([data-room-view]) > .site-header.unified-shell > #site-visit-count {
    position: static !important;
    order: 1;
    white-space: nowrap;
  }
  body:not([data-room-view]) > .site-header.unified-shell > .shell-nav > :is(a, button) {
    font-size: clamp(11px, 1.45vw, 14px) !important;
  }
}

:root { --snackbooks-logo-ink: #283b30; }

/* Override both visited and default link colors on every shared header. */
body > .site-header.unified-shell > .logo,
body > .site-header.unified-shell > .logo:visited,
body > .site-header.unified-shell > .logo > span {
  color: var(--snackbooks-logo-ink) !important;
}

/* A flat face and a narrow paper edge, shared by all four controls. */
body > .site-header.unified-shell > .shell-nav > :is(a, #account-button) {
  box-sizing: border-box !important;
  padding-inline: 4px !important;
  border: 1px solid #d3dbd1 !important;
  border-radius: 8px !important;
  background: #f9fbf7 !important;
  box-shadow: 0 2px 0 #bac8b8 !important;
  color: #253f32 !important;
  font-weight: 650 !important;
  text-shadow: none !important;
  text-decoration: none;
  white-space: nowrap !important;
}

body > .site-header.unified-shell > .shell-nav > :is(a, #account-button):hover {
  border-color: #aabdab !important;
}

body > .site-header.unified-shell > .shell-nav > a:is(.is-selected, [aria-current="page"]),
body[data-room-view="series"] > .site-header.unified-shell > .shell-nav > .personal-library-link,
body > .site-header.unified-shell > .shell-nav > #account-button[aria-current="page"] {
  border-color: #efd0ad !important;
  background: #ffe6cc !important;
  box-shadow: 0 2px 0 #e9b27f !important;
  color: #000 !important;
}

body > .site-header.unified-shell > .shell-nav > #account-button .account-amount,
body > .site-header.unified-shell > .shell-nav > #account-button .account-amount :is(.sp-number, .sp-unit) {
  color: inherit !important;
}

body > .site-header.unified-shell > .shell-nav > #account-button.has-new-rewards[aria-current="page"]::after {
  background: linear-gradient(115deg, #ffe6cc, #fff2d9, #ffe6cc);
}

@media (max-width: 760px) {
  body > .site-header.unified-shell > .shell-nav > #account-button {
    gap: 2px !important;
    padding-inline: 2px !important;
  }

  body > .site-header.unified-shell > .shell-nav > #account-button .account-amount {
    font-size: clamp(8px, 2.65vw, 11px) !important;
  }
}

@media (max-width: 360px) {
  body > .site-header.unified-shell > .shell-nav > :is(a, #account-button) {
    font-size: 9px !important;
    padding-inline: 2px !important;
  }
}

.site-brand-copy {
  flex: none;
  box-sizing: border-box;
  width: min(100%, 1800px);
  margin: 0 auto;
  padding: 14px 3% 10px;
  font-size: clamp(14px, 1.5vw, 21px);
  line-height: 1.45;
  letter-spacing: -.025em;
}
@font-face {
  font-family: 'Iropke Batang';
  src: url('/main-site/assets/iropke-batang-medium.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

.site-brand-copy,
.community-stage .community-brandline {
  color: #171717;
  font-family: 'Iropke Batang', Batang, serif;
  font-weight: 400;
}

:is(.site-brand-copy, .community-brandline) strong {
  color: inherit;
  font-weight: 700;
}
@media (max-width: 760px) {
  .site-brand-copy { padding: 10px 14px 8px; }
}

:root {
  --mode-mobile-header-height: 94px;
  --mode-mobile-row-height: 56px;
  --mode-mobile-inset: 12px;
  --mode-mobile-title-size: clamp(13px, 3.75vw, 16px);
  --mode-mobile-icon-size: 48px;
  --mode-mobile-background: #faf9f4;
}

@layer compact-corrections {
  @media (max-width: 1050px) {
    html:root:has(body[data-room-view] > .playground-mode-row) {
      scrollbar-width: none;
      scrollbar-gutter: auto;
    }

    html body[data-room-view] > .site-header.unified-shell {
      background: #fffffa !important;
    }
  }
}

@media (max-width: 760px) {
  body > .site-header.unified-shell > .logo {
    font-size: 22px !important;
    translate: none;
  }

  body > .site-header.unified-shell > #site-visit-count {
    position: static !important;
    justify-self: end;
    margin: 0 !important;
  }

  body > .site-header.unified-shell > #activity-bell {
    position: relative !important;
    inset: auto !important;
    justify-self: end;
    margin: 0 !important;
  }

  body > .site-header.unified-shell {
    grid-template-columns: max-content minmax(0, 1fr) 31px !important;
    column-gap: 5px !important;
    background: #fffffa !important;
  }
}

@media (max-width: 1050px) {
  body[data-room-view] > .playground-mode-row {
    background: var(--mode-mobile-background) !important;
    box-shadow: 0 2px 0 var(--mode-mobile-background);
  }
}

@media (max-width: 760px) {
  html body > .site-header.unified-shell {
    grid-template-rows: 29px 39px !important;
    row-gap: 7px !important;
    padding: 8px var(--mode-mobile-inset) 9px !important;
  }

  html body > .site-header.unified-shell > .shell-nav > :is(a, #account-button) {
    height: 39px !important;
    min-height: 39px !important;
  }

  html body > .site-header.unified-shell > #site-visit-count,
  html body > .site-header.unified-shell > #site-visit-count b {
    font: 600 8px/1.4 Arial, sans-serif !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
  }
}


@media (max-width: 760px) {
  html body > .site-header.unified-shell > #site-visit-count:not([hidden]) {
    display: inline-flex !important;
    align-items: center;
    gap: 3px !important;
  }
}

@media (max-width: 760px) {
  html body > .site-header.unified-shell > #site-visit-count > span {
    padding: 0;
  }
}

/* Shared service chrome reserves its own space above each page. */
.site-brand-copy.shared-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--mode-mobile-row-height);
  padding-block: 0;
  background: var(--mode-mobile-background);
}
.shared-brand-row .shared-feed-link {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--mode-mobile-icon-size);
  height: var(--mode-mobile-icon-size);
}
.shared-feed-link img { display: block; width: 100%; height: 100%; }

@media (min-width: 761px) {
  body:has(> .shared-brand-row) > .site-header.unified-shell {
    position: sticky !important;
    top: 0 !important;
    z-index: 122;
    background: #fffffa !important;
  }
  body > .shared-brand-row {
    position: sticky;
    top: 88px;
    z-index: 121;
  }
}

@layer compact-corrections {
  @media (max-width: 760px) {
    html:root:has(body > .site-header.unified-shell) {
      scrollbar-width: none;
      scrollbar-gutter: auto;
    }
    /* The service row reserves its own combined header and title height. */
    html body:has(> .shared-brand-row):not(:has(> .community-layout):has(> .service-brand-inline)) {
      padding-top: calc(var(--mode-mobile-header-height) + var(--mode-mobile-row-height)) !important;
    }
    html body > .site-header.unified-shell {
      position: fixed !important;
      inset: 0 0 auto !important;
      height: var(--mode-mobile-header-height) !important;
      min-height: var(--mode-mobile-header-height) !important;
      z-index: 122;
      background: #fffffa !important;
    }
    html body:has(> .community-layout):not(:has(> .service-brand-inline)) {
      padding-top: var(--mode-mobile-header-height) !important;
    }
  }
}

@media (max-width: 760px) {
  body > .shared-brand-row {
    position: fixed;
    inset: var(--mode-mobile-header-height) 0 auto;
    z-index: 121;
    padding-inline: var(--mode-mobile-inset);
    font-size: var(--mode-mobile-title-size);
    line-height: 1.25;
  }
}

body.member-page:has(> .shared-brand-row) .my-main-tabs {
  top: 144px;
  scroll-margin-top: 144px;
}
@media (max-width: 760px) {
  body.member-page:has(> .shared-brand-row) .my-main-tabs {
    top: calc(var(--mode-mobile-header-height) + var(--mode-mobile-row-height));
    scroll-margin-top: calc(var(--mode-mobile-header-height) + var(--mode-mobile-row-height));
  }
}

@font-face {
  font-family: 'Elice Digital Baeum';
  src: url('/snack-assets/fonts/EliceDigitalBaeum-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

html body > .site-brand-copy.shared-brand-row > span {
  font-family: 'Iropke Batang', Batang, serif;
  font-weight: 400;
  font-size: calc(1em - 2px);
}
html body > .site-brand-copy.shared-brand-row > span > strong {
  font-family: 'Elice Digital Baeum', sans-serif;
  font-size: calc(1em + 2px);
  font-weight: 700;
}

@layer compact-corrections {
  @media (min-width: 761px) and (max-width: 1050px) {
    html body.pantry-page:has(> .shared-brand-row) {
      padding-top: 0 !important;
    }
    html body.pantry-page > .site-header.unified-shell {
      position: sticky !important;
    }
  }
}

/* Match the copy and mode button across the main navigation destinations. */
:root {
  --mode-mobile-background: #f8faf6;
  --mode-mobile-title-size: clamp(13px, 4.1vw, 16px);
}

html body > .site-header.unified-shell {
  background: #fcfdfa !important;
}

html body :is(.community-title-row .community-brandline, .playground-mode-row .site-brand-copy, .shared-brand-row > span) {
  font-family: 'Iropke Batang', Batang, serif !important;
  font-size: clamp(18px, 1.65vw, 24px) !important;
  font-weight: 400;
  line-height: 1.4 !important;
  letter-spacing: -.025em;
}

html body :is(.community-title-row .community-brandline, .playground-mode-row .site-brand-copy, .shared-brand-row > span) strong {
  font-family: 'Elice Digital Baeum', sans-serif !important;
  font-size: 1.1em !important;
  font-weight: 700;
  letter-spacing: .04em;
  position: relative;
  top: .08em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  html body :is(.community-title-row .community-brandline, .playground-mode-row .site-brand-copy, .shared-brand-row > span) {
    font-size: var(--mode-mobile-title-size) !important;
    line-height: 1.25 !important;
  }

  html body > .shared-brand-row {
    padding-inline: var(--mode-mobile-inset);
  }
}

@media (min-width: 1251px) {
  html body > .shared-brand-row {
    --title-frame: calc(min(100vw, 1800px) - 48px);
    --title-left: calc((100% - var(--title-frame)) / 2 + var(--title-frame) * .2 + 36px);
    --title-right: calc((100% - var(--title-frame)) / 2 + var(--title-frame) * .55 - min(var(--title-frame) * .25, (100dvh - 130px) * .41));
    width: 100%;
    height: 70px;
    padding-inline: var(--title-left) var(--title-right);
  }

  html body.pantry-page > .shared-brand-row {
    left: 0;
    top: var(--shared-header-height);
    transform: none;
  }

  html body > .shared-brand-row .shared-feed-link {
    width: 50px;
    height: 50px;
  }
}

/* The service-page copy and link share one position without a separate panel. */
html body > .site-brand-copy.shared-brand-row {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 761px) and (max-width: 1250px) {
  html body > .site-brand-copy.shared-brand-row {
    width: 100%;
    height: 70px;
    margin-inline: 0;
    padding-inline: 3%;
  }

  html body > .site-brand-copy.shared-brand-row .shared-feed-link {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 760px) {
  html body > .site-brand-copy.shared-brand-row {
    width: 100%;
    margin-inline: 0;
    padding-inline: var(--mode-mobile-inset);
  }
}

@media (min-width: 1251px) {
  html body:has(> .site-header.unified-shell) > .site-brand-copy.shared-brand-row {
    width: 100%;
    max-width: none;
    height: 70px;
    margin: 0;
    padding: 0 var(--title-right) 0 var(--title-left);
  }
}

/* Keep scrolling profile content behind the fixed branding on My Page. */
html body.member-page > .site-brand-copy.shared-brand-row {
  background: #f6f6f2 !important;
}

@media (min-width: 761px) {
  body.member-page:has(> .shared-brand-row) .my-main-tabs {
    top: 158px;
    scroll-margin-top: 158px;
  }
}
