@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');

body {
  background: #fff;
  color: #111;
  font: 12px 'Nanum Gothic', 'Malgun Gothic', sans-serif;
}

.cafe-shell {
  width: calc(100% - 24px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 0 30px;
}

.cafe-banner {
  display: flex;
  aspect-ratio: 1080 / 338;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7%;
  background: #edf1e9 url('../assets/images/reflux-notebook-banner.png') center / cover no-repeat;
  color: #fff;
}

.cafe-banner a, .cafe-banner p {
  background: #263e2ce6;
  color: inherit;
  padding: 6px 12px;
}

.cafe-banner a {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
}

.cafe-banner p { font-size: 14px; }

.cafe-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.cafe-profile { border-top: 2px solid #444; }

.cafe-profile h2 {
  padding: 13px 9px;
  text-align: center;
  border-bottom: 1px solid #dedede;
  font-size: 12px;
}

.cafe-profile-name {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 9px 0;
  font-size: 13px;
}

.cafe-profile-name span {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: #eaf4ed;
  color: #267147;
}

.cafe-profile p {
  padding: 8px 9px 12px;
  color: #888;
  line-height: 1.7;
}

.cafe-sidebar nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  padding: 8px 0;
}

.cafe-sidebar nav h2, .cafe-sidebar a { padding: 8px 10px; }
.cafe-sidebar nav h2 { font-size: 12px; }
.cafe-sidebar a { color: #333; }
.cafe-sidebar a:hover, .cafe-sidebar [aria-current='page'] {
  background: #f0fbf4;
  color: #009a46;
}

.cafe-layout > .wrap {
  width: 100%;
  max-width: none;
  min-width: 0;
  background: #fff;
  border: 1px solid #e3e5e4;
  border-radius: 6px;
  padding-bottom: 0;
}

.cafe-post-header { position: relative; padding: 30px 32px 0; }
.cafe-post-category { color: #00a950; font-size: 14px; line-height: 1.6; }

.cafe-post-header .post-title {
  margin: 17px 0 24px;
  padding: 0;
  font: 400 27px/1.5 'Nanum Gothic', 'Malgun Gothic', sans-serif;
  letter-spacing: -.6px;
  overflow-wrap: anywhere;
}

.cafe-post-header .profile-row { gap: 11px; padding: 0 90px 24px 0; }
.cafe-post-header .profile-row .avatar.placeholder { width: 40px; height: 40px; }
.cafe-post-header .profile-row .info .name { font-size: 14px; font-weight: 700; }
.cafe-post-header .profile-row .info .date { color: #969e99; font-size: 12px; margin-top: 7px; }

.cafe-comment-jump {
  position: absolute;
  right: 32px;
  bottom: 24px;
  color: #333;
  font-size: 13px;
}

.cafe-layout .post-title-divider { margin: 0 32px; }
.cafe-layout .post-body { padding: 10px 32px 30px; }
.cafe-layout .post-feedback { padding-left: 32px; padding-right: 32px; }
.cafe-layout .landing-comments { padding: 26px 32px; }
.cafe-back-top { padding: 20px 32px; text-align: right; }
.cafe-back-top a { display: inline-block; border: 1px solid #ddd; border-radius: 4px; padding: 12px; font-size: 13px; }
.cafe-layout .bottom-nav { position: static; min-height: 72px; border-radius: 0 0 6px 6px; }

@media (min-width: 768px) and (max-width: 850px) {
  .cafe-layout { grid-template-columns: 133px minmax(0, 1fr); gap: 13px; margin-top: 13px; }
}

@media (max-width: 767px) {
  .cafe-shell { width: 100%; padding: 0; }
  .cafe-banner { aspect-ratio: auto; min-height: 52px; padding: 0 16px; background: #315641; }
  .cafe-banner a { font-size: 17px; letter-spacing: -.6px; background: none; padding: 0; }
  .cafe-banner p, .cafe-profile, .cafe-sidebar nav h2, .cafe-comment-jump { display: none; }
  .cafe-layout { display: block; margin: 0; }
  .cafe-sidebar nav { flex-direction: row; gap: 6px; padding: 6px; border-top: 0; }
  .cafe-sidebar a { font-size: 13px; }
  .cafe-layout > .wrap { border: 0; border-radius: 0; }
  .cafe-post-header { padding: 22px 16px 0; }
  .cafe-post-header .post-title { font-size: 23px; line-height: 1.55; margin: 18px 0 22px; }
  .cafe-post-header .profile-row { padding-right: 0; }
  .cafe-layout .post-title-divider { margin: 0 16px; }
  .cafe-layout .post-body { padding: 22px 16px 30px; }
  .cafe-layout .landing-comments { padding: 24px 16px; }
  .cafe-layout .post-feedback, .cafe-back-top { padding-left: 16px; padding-right: 16px; }
}

.cafe-side-tabs {
  display: flex;
  align-items: center;
  height: 41px;
  border-top: 2px solid #444;
  border-bottom: 1px solid #dedede;
  text-align: center;
}

.cafe-side-tabs > * { width: 50%; }
.cafe-side-tabs span { border-left: 1px solid #e7e7e7; color: #929292; }
.cafe-profile { border-top: 0; border-bottom: 1px solid #dedede; }
.cafe-profile-name { padding: 15px 9px 12px; }
.cafe-profile-name .cafe-avatar, .cafe-post-header #avatar {
  background: #eaf4ed url('../assets/images/reflux-notebook-profile.png') center / cover no-repeat;
  color: transparent;
  flex: none;
}
.cafe-rank { margin-left: 4px; color: #969e99; font-size: 11px; font-weight: 400; }
.cafe-profile .cafe-about { display: block; padding: 6px 0 0; color: #888; font-size: 11px; }
.cafe-members { display: flex; justify-content: space-between; padding: 13px 9px 10px; }
.cafe-members [aria-disabled] { color: #929292; }
.cafe-join, .cafe-chat { display: block; width: 100%; border-radius: 5px; cursor: default; opacity: 1; }
.cafe-join { height: 38px; background: #5d5d5d; color: #fff; font-weight: 700; }
.cafe-chat { height: 40px; margin-top: 9px; border: 1px solid #ccc; color: #111; }
.cafe-sidebar nav { display: block; padding: 0; border: 0; }
.cafe-quick { padding: 10px 9px; border-bottom: 1px solid #dedede; }
.cafe-quick a { display: flex; justify-content: space-between; padding: 0; line-height: 1.9; }
.cafe-menu-group { padding-bottom: 7px; border-bottom: 1px solid #dedede; }
.cafe-sidebar nav h2 { margin: 0 0 6px; padding: 11px 10px 9px; border-bottom: 1px solid #dedede; }
.cafe-menu-group > a, .cafe-menu-group > span { display: block; padding: 3px 8px; line-height: 1.4; }
.cafe-menu-group > a::before, .cafe-menu-group > span::before { content: '└ ▤'; color: #a4a4a4; margin-right: 5px; }
.cafe-more { margin-top: 7px; border-top: 1px solid #dedede; border-bottom: 2px solid #777; padding: 12px 8px; }
.cafe-more summary { color: #777; cursor: pointer; }
.cafe-post-header .post-title { margin-top: 17px; margin-bottom: 24px; }

@media (max-width: 767px) {
  .cafe-sidebar { display: none; }
}



@media (min-width: 768px) {
  .cafe-banner {
    align-items: flex-start;
    justify-content: center;
    color: #244432;
  }

  .cafe-banner a, .cafe-banner p {
    max-width: 52%;
    padding: 0;
    background: none;
    word-break: keep-all;
  }

  .cafe-banner a {
    font-size: clamp(30px, 4.5vw, 52px);
    letter-spacing: -.045em;
  }

  .cafe-banner p {
    margin-top: 12px;
    color: #405b49;
    font-size: clamp(15px, 2vw, 21px);
    line-height: 1.55;
  }
}

@media (max-width: 767px) {
  .cafe-banner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-block: 8px;
  }

  .cafe-banner::before {
    content: '';
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf1e9 url('../assets/images/reflux-notebook-profile.png') center / cover no-repeat;
  }
}

.cafe-mobile-bar, .cafe-mobile-profile { display: none; }
.cafe-mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  max-height: 100dvh;
  height: 100dvh;
  width: min(330px, calc(100% - 42px));
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
}
.cafe-mobile-drawer::backdrop { background: #0006; }
.cafe-mobile-drawer-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #eee; }
.cafe-mobile-drawer-heading h2 { font-size: 17px; }
.cafe-mobile-drawer-heading button { width: 44px; height: 44px; font-size: 26px; }
.cafe-mobile-drawer-links { padding: 10px 16px 24px; font-size: 14px; }
.cafe-mobile-drawer-links h2 { font-size: 14px; padding: 11px 8px; border-bottom: 1px solid #eee; }
.cafe-mobile-drawer-links nav a, .cafe-mobile-drawer-links .cafe-menu-group > span { display: block; padding: 8px; }

@media (max-width: 767px) {
  .cafe-mobile-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: env(safe-area-inset-top, 0px) 15px 0;
    background: #00ae58;
    color: #fff;
  }
  .cafe-mobile-article .cafe-mobile-bar { position: sticky; top: 0; z-index: 20; }
  .cafe-mobile-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; color: inherit; }
  .cafe-mobile-back, .cafe-mobile-menu { display: grid; place-items: center; width: 44px; height: 44px; color: inherit; }
  .cafe-mobile-back { margin-left: -8px; }
  .cafe-mobile-menu { margin-right: -8px; }
  .cafe-mobile-back::before { content: ''; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
  .cafe-mobile-menu span { width: 19px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .cafe-mobile-article .cafe-banner, .cafe-mobile-article .bottom-nav { display: none; }
  .cafe-mobile-article .cafe-post-header .post-title { margin: 18px 0 22px; }
  .cafe-mobile-article #comments { scroll-margin-top: 68px; }
  .cafe-mobile-home .cafe-banner { display: block; aspect-ratio: 944 / 327; padding: 0; background: #edf1e9 url('../assets/images/reflux-notebook-banner.png') center / cover no-repeat; }
  .cafe-mobile-home .cafe-banner::before { content: none; }
  .cafe-mobile-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 12px 20px;
    background: #00ae58;
    color: #fff;
    font-size: 18px;
  }
  .cafe-mobile-profile img { border-radius: 50%; }
}
.cafe-mobile-counts { margin-top: 5px; font-size: 13px; font-weight: 400; }

@media (max-width: 767px) {
  .cafe-mobile-drawer-links .cafe-quick a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
  }
  .cafe-mobile-drawer-links .cafe-menu-group a { min-height: 35px; }
}
