.cafe-home { min-width: 0; color: #252825; font-size: 14px; }
.cafe-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 170px;
  padding: 28px 32px;
  border: 1px solid #e3e8e2;
  background: #f5f8f4;
}
.cafe-intro img { width: 82px; height: 82px; border-radius: 50%; }
.cafe-intro h1 { font-size: 24px; font-weight: 800; margin: 0 0 9px; }
.cafe-intro p { margin: 0; color: #46584b; line-height: 1.65; }
.home-board { margin-top: 26px; scroll-margin-top: 16px; }
.home-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
  border-bottom: 2px solid #444;
}
.home-board-heading h2 { margin: 0; font-size: 17px; }
.home-board-heading a { color: #4d6052; font-size: 13px; }
.home-board table { width: 100%; border-collapse: collapse; }
.home-board th, .home-board td { text-align: left; padding: 11px 8px; border-bottom: 1px solid #e5e5e5; }
.home-board th { color: #59645c; font-weight: 700; }
.home-board td:not(:first-child) { white-space: nowrap; color: #59645c; font-size: 13px; }
.home-board td:first-child { overflow-wrap: anywhere; }
.home-board td:first-child a:hover { text-decoration: underline; }
.home-board .home-empty { text-align: center; padding: 36px 12px; color: #59645c; }
.home-board-search { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.home-board-search input, .home-board-search button, .home-board-more {
  font: inherit;
  min-height: 38px;
  border: 1px solid #d7ddd7;
  border-radius: 4px;
  padding: 6px 12px;
}
.home-board-search input { flex: 0 1 240px; min-width: 0; }
.home-board-search button, .home-board-more { color: #245239; background: #f3f7f3; cursor: pointer; }
.home-board-more { display: block; margin: 15px auto; }
.mobile-home-nav { display: none; }
@media (max-width: 767px) {
  .cafe-home { padding: 0 16px 24px; }
  .mobile-home-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; }
  .mobile-home-nav a { padding: 6px 0; color: #245239; }
  .cafe-intro { min-height: auto; padding: 18px 14px; gap: 12px; }
  .cafe-intro img { width: 54px; height: 54px; }
  .cafe-intro h1 { font-size: 20px; }
  .home-board td, .home-board th { padding: 10px 5px; }
  .home-board td:nth-child(2), .home-board th:nth-child(2) { display: none; }
}

@media (max-width: 767px) {
  .cafe-mobile-home .cafe-home { padding-inline: 0; }
  .cafe-mobile-home .cafe-intro { display: none; }
  .cafe-mobile-home .mobile-home-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 8px solid #f5f6f8;
  }
  .cafe-mobile-home .mobile-home-nav a {
    flex: none;
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #e7e9eb;
    border-radius: 24px;
    color: #151515;
  }
  .cafe-mobile-home .mobile-home-nav a[aria-current='page'] {
    background: #00ae58;
    border-color: #00ae58;
    color: #fff;
  }
  .cafe-mobile-home .home-board { margin: 16px 16px 0; }
}

@media (min-width: 768px) {
  .cafe-home {
    padding: 30px 32px 12px;
    border: 1px solid #e3e5e4;
    border-radius: 6px;
    background: #fff;
  }
}

.home-example-note { margin: 12px 0; color: #536258; line-height: 1.5; }
.home-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0; }
.home-pagination a { padding: 7px 9px; border: 1px solid #e3e8e2; border-radius: 4px; }
.home-pagination a[aria-current='page'] { background: #245239; border-color: #245239; color: #fff; }
@media (max-width: 767px) {
  .cafe-mobile-home .cafe-banner { display: none; }
  .cafe-mobile-home .cafe-mobile-drawer .cafe-quick a > span:nth-child(2) { display: none; }
  .cafe-mobile-home .home-board td, .cafe-mobile-home .home-board th { font-size: 12px; }
  .cafe-mobile-home .home-board td:first-child { font-size: 14px; }
}

.home-mobile-pinned, .home-mobile-join { display: none; }

@media (max-width: 767px) {
  .cafe-mobile-home .cafe-mobile-bar { min-height: 52px; padding-inline: 12px; }
  .cafe-mobile-home .cafe-mobile-title { font-size: 16px; }
  .cafe-mobile-home .cafe-mobile-profile { min-height: 91px; padding: 9px 16px 15px; }
  .cafe-mobile-home .cafe-mobile-counts { color: #dcf4e6; }
  .cafe-mobile-home .cafe-home { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .cafe-mobile-home .home-board { margin: 0; }
  .cafe-mobile-home .home-board-heading { display: none; }
  .cafe-mobile-home .home-example-note { margin: 5px 16px; font-size: 12px; }
  .home-mobile-pinned { display: block; }
  .home-mobile-pinned a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 56px;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 700;
  }
  .home-mobile-pinned a:first-child { border-top: 1px solid #f0f0f0; }
  .home-mobile-pinned span { flex: none; padding: 3px 6px; border-radius: 12px; background: #555; color: #fff; font-size: 11px; }
  .cafe-mobile-home .home-board table, .cafe-mobile-home .home-board tbody { display: block; }
  .cafe-mobile-home .home-board thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .cafe-mobile-home .home-board tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: end;
    gap: 10px 7px;
    min-height: 89px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  .cafe-mobile-home .home-board tbody td {
    display: block;
    border: 0;
    padding: 0;
    font-size: 11px;
    color: #667069;
  }
  .cafe-mobile-home .home-board tbody td:first-child {
    grid-column: 1 / -1;
    color: #242824;
    font-size: 16px;
    line-height: 1.5;
  }
  .cafe-mobile-home .home-board td:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cafe-mobile-home .home-board td:nth-child(4)::before { content: '조회 '; }
  .cafe-mobile-home .home-board td:nth-child(5)::before { content: '♡ '; }
  .cafe-mobile-home .home-board .home-empty { padding: 16px 0; }
  .cafe-mobile-home .home-example .home-example-note { margin-left: 0; }
  .home-mobile-join {
    display: block;
    position: fixed;
    z-index: 10;
    inset: auto 16px calc(12px + env(safe-area-inset-bottom)) 16px;
    height: 49px;
    border-radius: 13px;
    box-shadow: 0 4px 14px #0001;
    background: #00ae58;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    opacity: 1;
  }
}

.home-mobile-comments { display: none; }

@media (max-width: 767px) {
  .cafe-mobile-home .home-board tbody tr:has(.home-mobile-comments) {
    position: relative;
    padding-right: 72px;
  }
  .home-mobile-comments {
    display: grid;
    place-content: center;
    gap: 2px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    min-height: 58px;
    border-radius: 12px;
    background: #f4f5f6;
    color: #667069;
    text-align: center;
    font-size: 10px;
  }
  .home-mobile-comments strong { color: #242824; font-size: 14px; }
}

.cafe-home-detail .cafe-intro { display: none; }
.home-example-header { padding-bottom: 22px; }
.home-example-header h1 {
  margin: 18px 0 24px;
  color: #111;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-example-byline { display: flex; align-items: center; gap: 9px; }
.home-example-byline strong { font-size: 15px; font-weight: 400; }
.home-example-byline p { margin-top: 6px; color: #858c87; font-size: 12px; }
.home-example-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border: 10px solid #e7e9e9;
  border-radius: 50%;
  background: #fff;
}
.home-example-lock {
  min-height: 370px;
  padding: 52px 16px 72px;
  border-top: 7px solid #f2f3f4;
  text-align: center;
}
.home-lock-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 18px;
  margin: 10px auto 20px;
  border: 2px solid #aeb8b2;
  border-radius: 4px;
}
.home-lock-icon::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 50%;
  width: 14px;
  height: 12px;
  border: 2px solid #aeb8b2;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transform: translateX(-50%);
}
.home-lock-icon::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 4px;
  top: 5px;
  left: calc(50% - 1px);
  background: #aeb8b2;
}
.home-example-lock h2 { margin: 0; font-size: 18px; line-height: 1.5; color: #111; }
.home-example-lock p { margin: 10px 0 26px; color: #727b75; font-size: 14px; line-height: 1.5; }
.home-example-lock a { display: inline-block; padding: 10px 22px; border: 1px solid #dce3de; border-radius: 6px; color: #111; }
.home-example-footer, .home-example-stats { display: flex; align-items: center; gap: 16px; }
.home-example-footer { justify-content: space-between; border-top: 1px solid #e3e5e4; padding: 15px 0; }
.home-example-heart { color: #e84050; font-size: 20px; vertical-align: middle; }

@media (max-width: 767px) {
  .cafe-home-detail .cafe-mobile-profile,
  .cafe-home-detail .mobile-home-nav,
  .cafe-home-detail .home-mobile-join { display: none; }
  .cafe-mobile-home.cafe-home-detail .cafe-home { padding-bottom: 0; }
  .cafe-home-detail .cafe-mobile-bar { position: sticky; top: 0; z-index: 20; }
  .home-example-header { padding: 22px 16px; }
  .home-example-footer { padding: 15px 16px calc(15px + env(safe-area-inset-bottom)); }
}

.cafe-mobile-bar .home-detail-return { display: none; }
@media (max-width: 767px) {
  .cafe-home-detail .cafe-mobile-bar .home-detail-return { display: grid; }
  .cafe-home-detail .cafe-mobile-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
