/* 출석체크(list_check) — 레퍼런스 톤 (밝은 블루 히어로 + 주간 스탬프 그리드) */

.idx-page.idx-page--logged-in .element-check,
.idx-page.idx-page--logged-in .element-check.idx-em-surface {
  --purple: #118be0;
  --ck-blue: #118be0;
  --ck-blue-deep: #0d7bc8;
  --ck-border: #e5e8ec;
  --ck-head: #ffffff;
  --ck-surface: #ffffff;
  --ck-soft: #ffffff;
  --ck-text: #222;
  --ck-muted: #666;
  --ck-badge: #6b5a2e;
  width: 100%;
  max-width: var(--gov-content-w, 1200px);
  margin: 0 auto;
  padding: 12px var(--gov-content-pad, 12px) 28px;
  box-sizing: border-box;
  background: transparent;
}

.idx-page.idx-page--logged-in .idx-main-wrap:has(.element-check),
.idx-page.idx-page--logged-in .idx-main-wrap-full:has(.element-check) {
  width: min(var(--gov-content-w, 1200px), 100%);
  max-width: var(--gov-content-w, 1200px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .element-check .main-content-wrapper,
.idx-page.idx-page--logged-in .element-check .main-content {
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
}

.idx-page.idx-page--logged-in .element-check .home {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  gap: 0 !important;
}

.idx-page.idx-page--logged-in .element-check .board-list,
.idx-page.idx-page--logged-in .element-check .board-list-2 {
  gap: 0 !important;
  width: 100%;
}

.idx-page.idx-page--logged-in .element-check .board-title {
  display: flex;
  align-items: center;
  height: auto !important;
  min-height: 44px;
  padding: 10px 16px !important;
  background: #3a4656 !important;
  border: 1px solid #3a4656 !important;
  border-bottom: 0 !important;
  border-radius: 6px 6px 0 0 !important;
  gap: 8px;
  overflow: hidden;
}

.idx-page.idx-page--logged-in .element-check .board-title img {
  display: none !important;
}

.idx-page.idx-page--logged-in .element-check .board-title .text-wrapper-14 {
  color: #fff !important;
  font: 700 16px/1.2 "Noto Sans KR", Helvetica, sans-serif !important;
  letter-spacing: -0.02em;
  text-align: left;
  margin: 0;
}

.idx-page.idx-page--logged-in .element-check .bet-list.att-week-panel {
  background: var(--ck-surface) !important;
  border: 1px solid var(--ck-border) !important;
  border-top: 0 !important;
  border-radius: 0 0 6px 6px !important;
  padding: 0 !important;
  gap: 0;
  box-shadow: 0 2px 10px rgba(15, 40, 70, 0.06);
  align-items: stretch !important;
  overflow: hidden;
}

/* ----- 히어로 ----- */
.idx-page.idx-page--logged-in .element-check .att-week-hero {
  position: relative;
  background: var(--ck-blue);
  border-radius: 0;
  padding: 28px 20px 22px;
  color: #fff;
  text-align: center;
  margin: 0;
}

.idx-page.idx-page--logged-in .element-check .att-week-hero__month-count {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  margin: 0;
  padding: 0;
  font: 400 11px/1.35 "Noto Sans KR", Helvetica, sans-serif;
  color: #fff;
  opacity: 0.95;
  text-align: right;
  white-space: normal;
  max-width: 120px;
}

.idx-page.idx-page--logged-in .element-check .att-week-hero__month-count strong {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
}

.idx-page.idx-page--logged-in .element-check .att-week-hero__title {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0 auto 10px;
  padding: 0 120px;
  box-sizing: border-box;
  font: 700 34px/1.15 Georgia, "Times New Roman", "Noto Serif KR", serif;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
}

.idx-page.idx-page--logged-in .element-check .att-week-hero__event {
  font: 700 16px/1.4 "Noto Sans KR", Helvetica, sans-serif;
  margin: 0 0 8px;
  color: #fff;
}

.idx-page.idx-page--logged-in .element-check .att-week-hero__meta {
  font: 400 13px/1.5 "Noto Sans KR", Helvetica, sans-serif;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
}

.idx-page.idx-page--logged-in .element-check .att-week-hero__badge {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(80, 55, 20, 0.55);
  color: #fff;
  font: 500 11px/1.3 "Noto Sans KR", Helvetica, sans-serif;
}

.idx-page.idx-page--logged-in .element-check .att-week-title[hidden] {
  display: none !important;
}

/* ----- 주간 달력 그리드 ----- */
.idx-page.idx-page--logged-in .element-check .att-week-cal {
  background: #fff;
  border-top: 1px solid var(--ck-border);
  border-bottom: 1px solid var(--ck-border);
}

.idx-page.idx-page--logged-in .element-check .att-week-dow {
  margin: 0;
  padding: 0;
  background: #fff !important;
  border: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-dow .day {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: #fff !important;
  border: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-dow .frame-6 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 2px 4px;
  background: transparent !important;
  border: none !important;
  border-right: 1px solid var(--ck-border) !important;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .element-check .att-week-dow .frame-6:last-child {
  border-right: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-dow .text-wrapper-16 {
  color: #222 !important;
  font: 500 13px/1.3 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-stamps {
  margin: 0;
  padding: 0;
  background: #fff !important;
  border: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-stamps .att-week-row,
.idx-page.idx-page--logged-in .element-check .att-week-stamps .element {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: #fff !important;
  border: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-stamps .element-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 110px;
  padding: 10px 6px 14px;
  background: #fff !important;
  border: none !important;
  border-right: 1px solid var(--ck-border) !important;
  border-top: 1px solid var(--ck-border) !important;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .element-check .att-week-stamps .element-2:last-child {
  border-right: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-stamps .element-2.is-attended {
  background: #f3f9ff !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-stamps .frame-9,
.idx-page.idx-page--logged-in .element-check .att-week-stamps .att-day-num {
  display: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-week-stamps .frame-8 {
  width: 72px;
  height: 72px;
  max-width: 88%;
  object-fit: contain;
  filter: none !important;
}

.idx-page.idx-page--logged-in .element-check img[src*="ico-check-pink"],
.idx-page.idx-page--logged-in .element-check img[src*="ico-stamp-pink"] {
  filter: none !important;
}

/* ----- 지급 버튼 ----- */
.idx-page.idx-page--logged-in .element-check .att-claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 560px;
  margin: 28px auto 8px;
  padding: 14px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--ck-blue);
  color: #fff;
  font: 800 17px/1.2 "Noto Sans KR", Helvetica, sans-serif;
  cursor: pointer;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .element-check .att-claim-btn[hidden] {
  display: none !important;
}

.idx-page.idx-page--logged-in .element-check .att-claim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.idx-page.idx-page--logged-in .element-check .att-claim-btn:not(:disabled):hover {
  background: var(--ck-blue-deep);
}

.idx-page.idx-page--logged-in .element-check .att-claim-btn__ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.idx-page.idx-page--logged-in .element-check .att-claim-btn__txt {
  color: #fff;
}

.idx-page.idx-page--logged-in .element-check .att-claim-msg {
  margin: 6px 16px 0;
  font: 500 12px/1.4 "Noto Sans KR", Helvetica, sans-serif;
  color: var(--ck-muted);
  text-align: center;
}

.idx-page.idx-page--logged-in .element-check .att-claim-msg[hidden] {
  display: none !important;
}

/* ----- 참여 방법 ----- */
.idx-page.idx-page--logged-in .element-check .att-howto {
  margin: 16px 0 0;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--ck-border);
  background: #fff;
}

.idx-page.idx-page--logged-in .element-check .att-howto__title {
  font: 700 14px/1.4 "Noto Sans KR", Helvetica, sans-serif;
  color: var(--ck-blue);
  margin: 0 0 8px;
}

.idx-page.idx-page--logged-in .element-check .att-howto__body {
  margin: 0;
  font: 400 13px/1.6 "Noto Sans KR", Helvetica, sans-serif;
  color: #333;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .idx-page.idx-page--logged-in .element-check .att-week-hero {
    padding: 24px 14px 18px;
  }

  .idx-page.idx-page--logged-in .element-check .att-week-hero__title {
    font-size: 26px;
    padding: 0 96px;
  }

  .idx-page.idx-page--logged-in .element-check .att-week-hero__month-count {
    top: 10px;
    right: 10px;
    font-size: 10px;
    max-width: 96px;
  }

  .idx-page.idx-page--logged-in .element-check .att-week-stamps .element-2 {
    min-height: 84px;
    padding: 8px 2px 10px;
  }

  .idx-page.idx-page--logged-in .element-check .att-week-stamps .frame-8 {
    width: 48px;
    height: 48px;
  }

  .idx-page.idx-page--logged-in .element-check .att-claim-btn {
    width: calc(100% - 24px);
    margin-top: 20px;
    font-size: 15px;
  }
}
