/* 문제지 만들기(workbook)와 동일 톤 */
:root {
  --site-primary: #48c78e;
  --site-primary-hover: #3ab57d;
  --site-primary-light: #e9f7f0;
  --site-header: #42445a;
  --site-bg: #f5f6f8;
  --site-card: #ffffff;
  --site-border: #dee2e6;
  --site-text: #212529;
  --site-muted: #6c757d;
  --site-danger: #dc3545;
  --site-radius: 6px;
  --site-nav-h: 58px;
  --site-nav-brand-w: 168px;
  --site-nav-actions-w: 240px;
  --site-nav-link-cols: 14;
}

* {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--site-bg);
  color: var(--site-text);
  padding-top: var(--site-nav-h);
}

#siteNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--site-nav-h);
  background: #ffffff;
  border-bottom: 1px solid var(--site-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.site-topnav {
  height: var(--site-nav-h);
  background: #ffffff;
  color: var(--site-text);
  display: grid;
  grid-template-columns: var(--site-nav-brand-w) minmax(0, 1fr) var(--site-nav-actions-w);
  align-items: center;
  column-gap: 0.25rem;
  padding: 0 0.5rem 0 0.65rem;
}

.site-topnav-brand {
  width: var(--site-nav-brand-w);
  height: calc(var(--site-nav-h) - 8px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}

.site-topnav-brand img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.site-nav-academy-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 56px;
  max-width: 132px;
  padding: 0;
  margin-right: 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.site-nav-academy-logo[hidden] {
  display: none !important;
}

.site-nav-academy-logo img {
  display: block;
  max-height: 42px;
  max-width: 128px;
  object-fit: contain;
}

.site-nav-academy-logo .site-nav-logo-cta {
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-topnav-links {
  display: grid;
  grid-template-columns: repeat(var(--site-nav-link-cols), minmax(0, 1fr));
  align-items: center;
  min-width: 0;
  width: 100%;
}

.site-topnav-links a {
  color: var(--site-text);
  text-decoration: none;
  /* 2026-09-21: 상단 메뉴 −1pt (약 0.97→0.90rem) */
  font-size: clamp(0.90rem, 0.98vw, 1.02rem);
  font-weight: 700;
  padding: 0.42rem 0.14rem;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-topnav-links a.is-nav-slot-empty {
  display: none !important;
}

.site-topnav-links a:hover {
  background: var(--site-primary-light);
  color: var(--site-primary-hover);
}

.site-topnav-links a.active {
  background: var(--site-primary-light);
  color: var(--site-primary-hover);
  font-weight: 700;
}
.site-nav-new,
.notice-hub-new {
  display: inline-block;
  margin-left: 4px;
  color: #ef4444;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  vertical-align: super;
  line-height: 1;
}
.site-nav-new[hidden],
.notice-hub-new[hidden] {
  display: none !important;
}

.site-topnav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  width: var(--site-nav-actions-w);
  flex-shrink: 0;
  margin-left: 0;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.site-topnav-actions .site-btn {
  pointer-events: auto;
  cursor: pointer;
}

.site-nav-menu-btn {
  display: none;
}

.site-nav-free-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0 0.15rem;
  user-select: none;
}

/* 전역 — 오늘 정규/보강 출석 요약 (로그아웃 아래 고정) */
.site-att-today-panel {
  position: fixed;
  top: calc(var(--site-nav-h) + 8px);
  right: 10px;
  z-index: 900;
  width: min(280px, calc(100vw - 20px));
  max-height: min(42vh, 320px);
  overflow: auto;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--site-border, #e2e8f0);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.78rem;
  line-height: 1.35;
  color: #334155;
}
.site-att-today-title {
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 6px;
  color: #0f172a;
}
.site-att-today-line {
  margin: 4px 0 2px;
}
.site-att-today-miss {
  color: #64748b;
  margin: 0 0 6px;
  word-break: keep-all;
}
@media (max-width: 720px) {
  .site-att-today-panel {
    right: 6px;
    left: 6px;
    width: auto;
    max-height: 28vh;
  }
}

.site-topnav .site-btn-ghost {
  color: var(--site-text);
  border: 1px solid var(--site-border);
  background: #fff;
}

.site-topnav .site-btn-ghost:hover {
  border-color: var(--site-primary);
  color: var(--site-primary-hover);
}

.site-btn {
  border: none;
  border-radius: var(--site-radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.site-btn[hidden] {
  display: none !important;
}

.site-btn-primary {
  background: var(--site-primary);
  color: #fff;
}

.site-btn-primary:hover {
  background: var(--site-primary-hover);
}

.site-btn-ghost {
  background: transparent;
  color: var(--site-text);
  border: 1px solid var(--site-border);
}

.site-btn-ghost:hover {
  border-color: var(--site-primary);
  color: var(--site-primary-hover);
}

.site-main {
  max-width: min(1680px, calc(100vw - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

/* 시험 채점 허브 — 문제지/채점/빠른인쇄/내문제지 공통 탭 */
.exam-hub-outer {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: min(1680px, calc(100% - 0.5rem));
  max-width: min(1680px, calc(100% - 0.5rem));
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  box-sizing: border-box;
}
.exam-hub-outer > .exam-hub-tabs {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  box-sizing: border-box;
}
.exam-hub-outer > .site-main,
.exam-hub-outer > .wb-app {
  max-width: none;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.exam-hub-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 12px;
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 8px;
}
.exam-hub-tabs a {
  text-decoration: none;
  color: #334155;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.86rem;
}
.exam-hub-tabs a:hover {
  background: #f1f5f9;
}
.exam-hub-tabs a.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}
/* 교재 메뉴 — 탭·오른쪽 칸이 내용 길이에 따라 줄지 않게 같은 너비 */
main.site-main:has(.tb-manual-nav) {
  width: min(1680px, calc(100% - 0.5rem));
  max-width: min(1680px, calc(100% - 0.5rem));
  box-sizing: border-box;
}
.tb-manual-nav {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  box-sizing: border-box;
}
main.site-main:has(.tb-manual-nav) .tb-outer,
main.site-main:has(.tb-manual-nav) .tb-mw-shell,
main.site-main:has(.tb-manual-nav) .tb-grade-shell {
  width: 100%;
}
@media (max-width: 1100px) {
  .tb-manual-nav {
    width: auto;
    min-width: 0;
    max-width: none;
  }
}
@media (max-width: 820px) {
  .exam-hub-outer {
    grid-template-columns: 1fr;
  }
  .exam-hub-outer > .exam-hub-tabs {
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .exam-hub-tabs {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.site-card {
  background: var(--site-card);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.site-card h1,
.site-card h2 {
  margin: 0 0 0.75rem;
}

.site-muted {
  color: var(--site-muted);
  font-size: 0.9rem;
}

.site-feed {
  display: grid;
  gap: 0.85rem;
}

.site-feed-item {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--site-card);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.site-feed-item:hover {
  border-color: var(--site-primary);
  box-shadow: 0 2px 10px rgba(72, 199, 142, 0.15);
}

.site-feed-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.site-feed-meta {
  font-size: 0.85rem;
  color: var(--site-muted);
}

.site-login-prompt {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--site-primary-light);
  border-radius: var(--site-radius);
  border: 1px dashed var(--site-primary);
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.site-table th,
.site-table td {
  border: 1px solid var(--site-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.site-table th {
  background: var(--site-header);
  color: #fff;
  font-weight: 600;
}

.site-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.site-modal-backdrop[hidden] {
  display: none !important;
}

.site-modal {
  position: relative;
  background: var(--site-card);
  border-radius: var(--site-radius);
  width: 100%;
  max-width: 400px;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.site-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--site-radius);
  background: transparent;
  color: var(--site-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.site-modal-close:hover {
  color: var(--site-text);
  background: var(--site-bg);
}

.site-modal h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.site-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.site-form input,
.site-form textarea,
.site-form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.site-form-error {
  color: var(--site-danger);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.site-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.site-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

/* 공통 입력 스타일 — .wb-app(문제지) 제외한 사이트 페이지 전역 */
.site-control,
body.site-body :is(.site-card, .site-modal, .att-main, .acal-main, .stu-toolbar, .stu-form-grid, .exam-content, .exam-panel, .sch-template) :is(
  select,
  input[type="date"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  input[type="text"],
  input[type="password"],
  textarea
):not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="radio"]) {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background-color: #fff;
  color: var(--site-text);
  min-height: 38px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-control:focus,
body.site-body :is(.site-card, .site-modal, .att-main, .acal-main, .stu-toolbar, .stu-form-grid, .exam-content, .exam-panel, .sch-template) :is(
  select,
  input[type="date"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  input[type="text"],
  input[type="password"],
  textarea
):not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="radio"]):focus {
  outline: none;
  border-color: var(--site-primary);
  box-shadow: 0 0 0 3px var(--site-primary-light);
}

/* select 전용 — .site-control 전체에 적용하면 month/date 네이티브 화살표가 죽음 */
select.site-control,
body.site-body :is(.site-card, .site-modal, .att-main, .att-layout, .acal-main, .stu-toolbar, .stu-form-grid, .stu-enroll-box, .exam-content, .exam-panel, .sch-template, .tte-pool, .tte-pool-filter, .alarm-filters, .um-page, .site-form) select,
body.site-body .site-form select,
body.site-body .site-modal select {
  padding-right: 2rem !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M2.1 3.8L6 7.7l3.9-3.9 1.1 1.1L6 9.9 1 4.9z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.65rem center !important;
  background-size: 12px 12px !important;
}

/* 출석 메뉴 표·툴바 목록 select도 ▼ 표시 */
body.site-body :is(.att-table, .sch-table, .rep-table, .alarm-table, .tte-day-hours) select {
  padding-right: 1.55rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M2.1 3.8L6 7.7l3.9-3.9 1.1 1.1L6 9.9 1 4.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 10px 10px;
}

body.site-body :is(.site-card, .site-modal, .stu-form-grid) textarea {
  min-height: 88px;
  resize: vertical;
}

/* 표 안 인라인 편집은 컴팩트 유지 */
:is(.att-table, .sch-table, .rep-table) :is(select, input, textarea) {
  min-height: 0;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.82rem;
  box-shadow: none;
}

.site-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  margin-bottom: 14px;
}

.site-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.site-btn-sm {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.site-auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.site-auth-tab {
  flex: 1;
  padding: 0.45rem;
  border: 1px solid var(--site-border);
  background: #fff;
  border-radius: var(--site-radius);
  cursor: pointer;
  font-weight: 600;
}

.site-auth-tab.active {
  background: var(--site-primary-light);
  border-color: var(--site-primary);
  color: var(--site-primary-hover);
}

.site-coming-soon {
  text-align: center;
  padding: 3rem 1rem;
}

.site-coming-soon h1 {
  color: var(--site-header);
}

/* 좁은 화면에서도 메뉴는 가로 한 줄 유지 (필요 시 가로 스크롤) */
@media (max-width: 1100px) {
  .site-topnav {
    padding: 0 0.35rem;
    column-gap: 0.15rem;
    --site-nav-brand-w: 110px;
    --site-nav-actions-w: 160px;
  }

  .site-topnav.is-logged-in {
    --site-nav-actions-w: 84px;
  }

  .site-topnav-links {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: repeat(var(--site-nav-link-cols), minmax(4.5rem, 1fr));
  }

  .site-topnav-links a {
    padding: 0.4rem 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    overflow: visible;
    text-overflow: clip;
  }

  .site-topnav-links::-webkit-scrollbar {
    height: 3px;
  }

  .site-topnav-links::-webkit-scrollbar-thumb {
    background: var(--site-border);
    border-radius: 2px;
  }
}

/* 브랜드 미니 안내 팝업 (alert 대체) */
.site-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.35);
  animation: site-notice-fade 0.15s ease-out;
}

.site-notice-backdrop[hidden] {
  display: none !important;
}

.site-notice {
  width: 100%;
  max-width: 320px;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: var(--site-radius);
  background: var(--site-card);
  border: 2px solid var(--site-primary);
  box-shadow: 0 10px 28px rgba(72, 199, 142, 0.22);
  text-align: center;
  animation: site-notice-pop 0.18s ease-out;
}

.site-notice.is-wide {
  max-width: 460px;
}

.site-notice-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--site-primary-hover);
}

.site-notice.is-title-lg .site-notice-title {
  font-size: 1.25rem; /* +4pt approx from 1rem */
}

.site-notice-caution {
  color: #e8837a;
  font-weight: 600;
}

.site-notice-message {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--site-text);
  word-break: keep-all;
  white-space: pre-line;
  max-height: min(50vh, 320px);
  overflow: auto;
  text-align: left;
}

.site-notice-ok {
  width: 100%;
  min-height: 2.35rem;
}

.site-notice-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.site-notice-actions .site-btn {
  flex: 1;
  min-height: 2.35rem;
}

@keyframes site-notice-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes site-notice-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 전체 화면 복원 로딩 — 내문제지 → 문제지 만들기 */
.site-flow-loading {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 246, 248, 0.94);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.site-flow-loading.is-visible {
  opacity: 1;
  pointer-events: all;
}

.site-flow-loading[hidden] {
  display: none !important;
}

/* 앱 허브 iframe embed — 상단·사이드 네비 숨김 */
html.app-embed #siteNav,
html.app-embed #site-nav-root,
html.app-embed .att-side-nav,
body.app-embed #siteNav,
body.app-embed #site-nav-root,
body.app-embed .att-side-nav {
  display: none !important;
}

.site-flow-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.site-flow-throbber {
  position: relative;
  width: 44px;
  height: 44px;
}

.site-flow-throbber span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 11px;
  margin-left: -2px;
  margin-top: -18px;
  border-radius: 2px;
  background: var(--site-primary);
  transform-origin: center 18px;
  opacity: 0.22;
  animation: site-flow-throb 1s ease-in-out infinite;
}

.site-flow-throbber span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: 0s;
}
.site-flow-throbber span:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.917s;
}
.site-flow-throbber span:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.833s;
}
.site-flow-throbber span:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.75s;
}
.site-flow-throbber span:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.667s;
}
.site-flow-throbber span:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.583s;
}
.site-flow-throbber span:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.site-flow-throbber span:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.417s;
}
.site-flow-throbber span:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.333s;
}
.site-flow-throbber span:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.25s;
}
.site-flow-throbber span:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.167s;
}
.site-flow-throbber span:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: -0.083s;
}

@keyframes site-flow-throb {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 1;
  }
}

.site-flow-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--site-primary-hover);
}

/* 비로그인 — 보호 메뉴·페이지 안내 (상단 로그인 버튼은 #siteNav 아래 노출) */
.site-login-gate {
  position: fixed;
  top: var(--site-nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(245, 246, 248, 0.94);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.site-login-gate.is-visible {
  opacity: 1;
  pointer-events: all;
}

.site-login-gate[hidden] {
  display: none !important;
}

/* 서브계정: 출석 사이드·링크 메인전용 메뉴 — JS 전에 숨겨 깜빡임 방지 */
html.att-is-sub [data-att-main-only],
body.att-is-sub [data-att-main-only] {
  display: none !important;
}

.site-login-gate-msg {
  margin: 0;
  max-width: 22rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--site-header);
}

/* ——— 좌측 서브메뉴 통일 (출석·학사일정·시험·세무 등) — docs/spec/side-nav-unify.md ———
   페이지별 인라인 CSS보다 우선하도록 html:not(.is-site-compact) body.site-body 로 스코프.
   컴팩트(모바일) 칩 레이아웃은 site-mobile.css 가 그대로 담당. */
@media (min-width: 821px) {
  html:not(.is-site-compact) body.site-body .exam-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  font-family: inherit;
}

@media (min-width: 901px) {
  html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) {
    width: 200px;
    max-width: 200px;
  }
}

html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) :is(a, button) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) :is(a, button):hover:not(:disabled):not(.is-active) {
  background: #f1f5f9;
  color: #0f172a;
}

html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) :is(a, button).is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) .site-muted {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 400;
}

html:not(.is-site-compact) body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) hr {
  border: none;
  border-top: 1px solid var(--site-border);
  margin: 6px 0;
}

body.site-body :is(.att-side-nav, .acal-side-nav, .exam-side-nav, .tax-side-nav, .sex-side-nav) :is(a, button)[hidden] {
  display: none !important;
}

/* 구독 만료 임박·유예·만료 띠 (site-auth.js updateSubscriptionBanner) */
.site-sub-banner { display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap; padding: 0.5rem 2.4rem 0.5rem 1rem; position: relative; font-size: 0.86rem; line-height: 1.5; background: #fffbeb; color: #92400e; border-bottom: 1px solid #fde68a; word-break: keep-all; }
.site-sub-banner[data-state="expired"] { background: #fef2f2; color: #991b1b; border-bottom-color: #fecaca; }
.site-sub-banner[hidden] { display: none; }
.site-sub-banner a { flex: none; padding: 2px 12px; border-radius: 999px; background: #42445a; color: #fff; font-weight: 800; font-size: 0.8rem; text-decoration: none; }
.site-sub-banner button { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.2rem; color: inherit; opacity: 0.6; cursor: pointer; }
