/* Shared writing-room body: approved Gangwon Edu Modu Bold, without optical scaling. */
@font-face{font-family:SnackPlayHand;src:url('/main-site/assets/gangwon-modu-bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
#stories .memo-paper .memo-message,
#stories .memo-paper.is-own .memo-message,
#relay .relay-entry .relay-entry-body>p,
#relay .relay-first-entry .relay-entry-body>p,
#relay .hand-1 .relay-entry-body>p{font-family:SnackPlayHand,'Apple SD Gothic Neo','Malgun Gothic',sans-serif!important;font-size:14.5px!important;font-weight:700!important;font-synthesis:none;letter-spacing:-.15px}
/* Manuscript characters retain the cell's responsive size so narrow screens do not overflow. */
#poetry.room-system .poetry-character{font-family:SnackPlayHand,'Apple SD Gothic Neo','Malgun Gothic',sans-serif!important;font-weight:700!important;font-synthesis:none}
.post:is([data-room="101"],[data-room="102"],[data-room="103"]) :is(.post-text,.relay-text,.manuscript-cell,.relay-snapshot>strong,.work-summary h2,.work-summary>p){font-family:SnackPlayHand,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;font-weight:700;font-synthesis:none}
.post[data-room="102"] .relay-prefix .relay-text,
.post[data-room="102"] .relay-prefix .own-line .relay-text,
.post[data-room="101"] .memo-excerpt .post-text,
.post:is([data-room="101"],[data-room="102"]) .work-summary>p{font-size:14.5px;font-weight:700;color:#294c3d;line-height:1.65;letter-spacing:-.15px}
.post[data-room="103"] .manuscript-initial{font-weight:700;color:#713f2d}

/* The generated relay book uses sentence-text, not the legacy relay-entry body. */
#relay.room-system .sentence-content .sentence-text{font-family:SnackPlayHand,'Apple SD Gothic Neo','Malgun Gothic',sans-serif!important;font-size:14.5px!important;font-weight:700!important;font-synthesis:none;line-height:1.65;letter-spacing:-.15px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
/* PC reading uses the same approved face at a comfortable desktop text size. */
@media(min-width:1051px){
 #relay .relay-entry .relay-entry-body>p,#relay .relay-first-entry .relay-entry-body>p,#relay .hand-1 .relay-entry-body>p,#relay.room-system .sentence-content .sentence-text{font-size:19px!important;line-height:1.8!important}
 .memo-letter .memo-letter-body p{font-size:19px!important;line-height:1.85!important}
 .memo-letter .memo-letter-body .memo-letter-relay-line{grid-template-columns:36px minmax(0,1fr);gap:9px;margin-bottom:13px}
 .memo-letter .memo-letter-line-number{width:36px;height:25px;font-size:11px;margin-top:5px}
 .post[data-room="102"] .relay-prefix .relay-text,.post[data-room="102"] .relay-prefix .own-line .relay-text,.post[data-room="101"] .memo-excerpt .post-text,.post:is([data-room="101"],[data-room="102"]) .work-summary>p{font-size:17px;line-height:1.75}
 .post:not([data-room]) .book-story .post-text{font-size:16px;line-height:1.75}
}

/* One layout contract for the 101 paper: common baseline, readable type,
   and a reserved footer. Never shrink individual long/own/example notes. */
body[data-room-view] #stories.story-classroom.room-system .collection-board #room-memo-board .memo-paper:nth-child(n){min-height:max(164px,var(--memo-min-height,0px))!important}
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) .memo-writing-area:has(.memo-message){position:absolute!important;left:10%!important;right:10%!important;top:var(--memo-content-top,34px)!important;bottom:60px!important;width:auto!important;height:auto!important;display:block!important;container-type:normal!important}
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) .memo-writing-area .memo-message{position:static!important;inset:auto!important;transform:none!important;font-family:SnackPlayHand,sans-serif!important;font-size:16px!important;font-weight:700!important;line-height:1.4!important;letter-spacing:-.15px!important;min-height:4.2em!important;min-height:3lh!important;max-height:none!important;-webkit-line-clamp:unset!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;white-space:normal!important;text-align:start!important;text-align-last:auto!important;word-break:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;align-self:start!important}
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) .memo-writing-area .memo-time{position:absolute!important;left:0!important;right:0!important;top:auto!important;bottom:-52px!important;width:100%!important;margin:0!important;padding:0!important;max-width:100%!important;font-size:9px!important;line-height:13px!important;text-align:left!important}
@media(max-width:820px){
 body[data-room-view] #stories.story-classroom.room-system .collection-board #room-memo-board .memo-paper:nth-child(n){min-height:max(154px,var(--memo-min-height,0px))!important}
 body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) .memo-writing-area:has(.memo-message){top:var(--memo-content-top,34px)!important}
 body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) .memo-writing-area .memo-message{font-size:14px!important}
}
@media(max-width:350px){body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) .memo-writing-area .memo-message{font-size:13px!important}}

/* Keep the edit action inline and reserve the full byline for author and time. */
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper .memo-own-edit {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 4;
  pointer-events: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 19px !important;
  min-height: 19px !important;
  margin: 0 0 0 3px !important;
  padding: 1px 4px !important;
  border: 1px solid #b59064 !important;
  border-radius: 5px !important;
  background: #f3e1c6 !important;
  color: #634620 !important;
  font: 650 10px/1.2 system-ui,sans-serif !important;
}
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) > .daily-comment {
  right: 10% !important;
}
body[data-room-view] #stories.story-classroom.room-system .collection-board .memo-paper:nth-child(n) > .daily-comment {
  border-color: #a5bcc8 !important;
  background: #e8f1f5 !important;
  color: #305467 !important;
}

@font-face {
  font-family: SnackRoomTitle;
  src: url('/main-site/assets/room-title-elice-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@layer compact-corrections {
  html body[data-room-view] main #poetry.room-system .poetry-paper .poetry-character {
    font-family: SnackPlayHand, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
    font-weight: 700 !important;
    font-synthesis: none;
  }
  body[data-room-view] main .daily-integrated .room-heading .room-heading-copy h3,
  body[data-room-view] main .daily-integrated .mobile-writing-strip h3 > strong {
    font-family: SnackRoomTitle, 'Gowun Batang', serif !important;
    font-weight: 700 !important;
    font-synthesis: none;
  }
  @media (max-width: 1050px) {
    body[data-room-view] main .daily-integrated .mobile-writing-strip h3 > strong {
      font-size: clamp(15px, 4.55vw, 18px);
      letter-spacing: -.035em;
    }
  }
}
