html.page-schedule {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Sticky search + group filter */
.sch-toolbar {
  position: sticky;
  top: var(--site-header-h);
  z-index: 35;
  margin: 0 -1rem;
  padding: 0.25rem 1rem 0.75rem;
  background: #fff;
}

.sch-search {
  position: relative;
  display: flex;
  align-items: center;
}

.sch-search-icon {
  position: absolute;
  left: 0.85rem;
  width: 15px;
  height: 15px;
  color: #a3a3a3;
  pointer-events: none;
}

.sch-search input {
  width: 100%;
  height: 2.5rem;
  padding: 0 2.4rem 0 2.35rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #fafafa;
  font: inherit;
  font-size: 14px;
  color: #171717;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sch-search input::placeholder {
  color: #a3a3a3;
}

.sch-search input:placeholder-shown {
  padding-right: 0.9rem;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .sch-search input::placeholder {
    font-size: 13px;
  }
}

.sch-search input::-webkit-search-cancel-button {
  display: none;
}

.sch-search input:focus {
  border-color: #111;
  background: #fff;
}

.sch-search-clear {
  position: absolute;
  right: 0.4rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  font-size: 16px;
  line-height: 1;
  color: #737373;
}

.sch-search-clear:hover {
  color: #111;
  background: #f0f0f0;
}

.sch-groups {
  display: flex;
  gap: 0.375rem;
  margin: 0.625rem -1rem 0;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sch-groups::-webkit-scrollbar {
  display: none;
}

.sch-group-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #fff;
  padding: 0.3rem 0.75rem;
  font-size: 12.5px;
  font-weight: 500;
  color: #737373;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sch-group-count {
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #b5b5b5;
}

.sch-group-btn:hover:not(.is-active) {
  border-color: #111;
  color: #111;
}

.sch-group-btn.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
  font-weight: 600;
}

.sch-group-btn.is-active .sch-group-count {
  color: #a3a3a3;
}

.sch-group-btn.is-empty:not(.is-active) {
  color: #c4c4c4;
}

/* Month bar */
.sch-monthbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 0.25rem;
}

.sch-month-step {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: #171717;
  transition: background-color 0.15s ease;
}

.sch-month-step:hover:not(:disabled) {
  background: #f5f5f5;
}

.sch-month-step:disabled {
  color: #d4d4d4;
  cursor: default;
}

.sch-month-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #111;
}

.sch-month-caret {
  width: 12px;
  height: 12px;
  color: #a3a3a3;
  transition: transform 0.2s ease;
}

.sch-month-label[aria-expanded="true"] .sch-month-caret {
  transform: rotate(180deg);
}

/* Year × month picker */
.sch-picker {
  margin: 0.25rem 0 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.sch-picker-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.sch-picker-year {
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #111;
}

.sch-picker-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
}

.sch-picker-month {
  height: 1.875rem;
  border-radius: 0.375rem;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #404040;
}

.sch-picker-month:hover:not(:disabled):not(.is-current) {
  background: #f5f5f5;
}

.sch-picker-month:disabled {
  color: #e0e0e0;
  cursor: default;
}

.sch-picker-month.is-current {
  background: #111;
  color: #fff;
}

/* Mini calendar */
.sch-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 0.125rem;
  text-align: center;
}

.sch-picker:not(.hidden) + .sch-cal {
  display: none;
}

.sch-cal-dow {
  padding: 0.375rem 0;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #a3a3a3;
}

.sch-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #d4d4d4;
  cursor: default;
}

.sch-cal-day.has {
  color: #171717;
  cursor: pointer;
}

.sch-cal-day.has.is-sat {
  color: #5194ff;
}

.sch-cal-day.has.is-sun,
.sch-cal-day.has.is-holiday {
  color: #ff322e;
}

.sch-cal-day.has::after {
  content: "";
  position: absolute;
  bottom: 0.3rem;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #111;
}

.sch-cal-day.has.is-many::after {
  width: 10px;
}

.sch-cal-mark {
  position: absolute;
  top: 0.05rem;
  left: calc(50% + 5px);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

@media (hover: hover) {
  .sch-cal-day.has:hover {
    background: #f5f5f5;
  }
}

.sch-cal-day.is-active {
  background: #111;
  color: #fff !important;
}

@media (hover: hover) {
  .sch-cal-day.is-active:hover {
    background: #404040;
  }
}

.sch-cal-day.is-active::after {
  background: #fff;
}

.sch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin: 0.75rem 0 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #111;
  font-size: 12px;
  color: #737373;
}

.sch-meta strong {
  font-weight: 700;
  color: #111;
}

.sch-source {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 11.5px;
  color: #737373;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sch-source:hover {
  color: #111;
}

/* Search result head */
.sch-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin: 0.5rem 0 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #111;
  font-size: 12px;
  color: #737373;
}

.sch-result-head strong {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.sch-result-reset {
  font-size: 11.5px;
  color: #737373;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sch-result-reset:hover {
  color: #111;
}

/* Day list */
.sch-day {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: calc(var(--site-header-h) + var(--sch-toolbar-h, 6rem) + 0.5rem);
}

.sch-day-head {
  position: sticky;
  top: calc(var(--site-header-h) + var(--sch-toolbar-h, 6rem) + 0.75rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: Oswald, Pretendard, sans-serif;
  color: #111;
}

.sch-day-ym {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #a3a3a3;
}

.sch-day-num {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.sch-day-dow {
  margin-top: 0.125rem;
  font-size: 11px;
  font-weight: 500;
  color: #737373;
}

.sch-day-holiday {
  margin-top: 0.25rem;
  font-family: Pretendard, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: #ff322e;
  word-break: keep-all;
}

.sch-day.is-sat .sch-day-num,
.sch-day.is-sat .sch-day-dow {
  color: #5194ff;
}

.sch-day.is-sun .sch-day-num,
.sch-day.is-sun .sch-day-dow,
.sch-day.is-holiday .sch-day-num,
.sch-day.is-holiday .sch-day-dow {
  color: #ff322e;
}

.sch-day-body {
  min-width: 0;
}

.sch-banner {
  margin: 0 0 0.875rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #111;
  background: #f7f7f7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
  word-break: keep-all;
}

.sch-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sch-item {
  padding: 0 0 0.875rem;
  margin: 0 0 0.875rem;
  border-bottom: 1px dashed #ececec;
}

.sch-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.sch-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.3rem;
}

/* 글자는 원문 세부 분류명, 점은 필터 분류 색(--c) */
.sch-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.25rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #404040;
}

.sch-tag::before,
.sch-group-btn[style]::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--c, #a3a3a3);
}

.sch-time {
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #111;
}

.sch-tz {
  margin-left: 0.2rem;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #a3a3a3;
}

.sch-badge {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  background: #f1f1f1;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #737373;
}

.sch-member {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid #171717;
  border-radius: 0.25rem;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #171717;
}

.sch-member svg {
  width: 0.85em;
  height: 0.85em;
}

.sch-line .sch-member,
.sch-line .sch-badge {
  margin-right: 0.35em;
  padding: 0 0.35rem;
  font-size: 10px;
  line-height: 1.45;
  vertical-align: 0.12em;
}

.sch-line {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  color: #171717;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sch-line.is-sub {
  position: relative;
  padding-left: 1.05em;
  font-weight: 400;
  color: #404040;
}

.sch-line.is-sub::before {
  content: "└";
  position: absolute;
  left: 0;
  color: #cbd5e1;
}

.sch-line.is-cont {
  padding-left: 1.05em;
  font-weight: 400;
  color: #404040;
}

.sch-line.is-desc {
  display: -webkit-box;
  margin-top: 0.125rem;
  padding-left: 1.05em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: #8a8a8a;
  cursor: pointer;
}

.sch-line.is-desc.is-open {
  display: block;
}

.sch-line s,
.sch-item.is-canceled .sch-line {
  color: #a3a3a3;
}

.sch-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.sch-link:hover,
.sch-postgrp:has(.sch-post:hover) .sch-post {
  color: #000;
  text-decoration-color: #111;
}

.sch-id {
  font-weight: 600;
  color: #171717;
}

/* @id 앞 플랫폼 로고 (흑백) */
.sch-pf {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.25em;
  vertical-align: -0.14em;
  color: #737373;
}

.sch-pf--xme {
  color: #111;
}

.sch-pf--txt {
  width: auto;
  height: auto;
  padding: 0 0.25em;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 0.08em;
}

/* 규현 본인 계정 프로필 (원문 아이콘) */
.sch-pfp {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.3em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -0.22em;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.sch-pfp--gyuram-story {
  box-shadow: none;
}

.sch-item mark {
  background: #fff1a8;
  color: inherit;
  border-radius: 2px;
}

.sch-thumbs {
  display: flex;
  gap: 0.375rem;
  margin: 0.5rem 0 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sch-thumb {
  flex-shrink: 0;
  display: block;
  height: 96px;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #f5f5f5;
}

.sch-thumb img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}

.sch-thumbs.is-tall .sch-thumb {
  height: 160px;
}

.sch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.45rem 0 0;
}

.sch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  color: #525252;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sch-chip:hover {
  border-color: #111;
  color: #111;
}

.sch-chip .sch-pf,
.sch-chip .sch-pfp {
  margin-right: 0.1em;
  vertical-align: 0;
}

.sch-chip .ext-arrow {
  font-size: 9px;
  color: #a3a3a3;
}

.sch-empty {
  padding: 3rem 0;
  text-align: center;
  font-size: 13px;
  color: #a3a3a3;
}

.sch-more {
  display: block;
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 0.75rem 0;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: #404040;
}

.sch-more:hover {
  border-color: #111;
  color: #111;
}

/* Prev / next month at the bottom */
.sch-pager {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sch-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #404040;
}

.sch-pager-btn:hover {
  color: #111;
}

.sch-pager-btn:disabled {
  visibility: hidden;
}

.sch-loading {
  padding: 3rem 0;
  text-align: center;
  font-size: 12px;
  color: #a3a3a3;
}

.sch-main.is-search .sch-side {
  display: none;
}

@media (min-width: 1024px) {
  .sch-groups {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .sch-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .sch-side {
    position: sticky;
    top: calc(var(--site-header-h) + var(--sch-toolbar-h, 6rem));
  }

  .sch-main.is-search .sch-side {
    display: block;
  }

  .sch-main.is-search .sch-meta {
    visibility: hidden;
  }

  .sch-result-head {
    margin-top: 0.75rem;
  }

  .sch-day {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0 1.25rem;
  }

  .sch-day-num {
    font-size: 28px;
  }

  .sch-thumb {
    height: 120px;
  }

  .sch-thumbs.is-tall .sch-thumb {
    height: 200px;
  }
}
