/* Shared page chrome for non-home pages */
.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(196, 154, 60, 0.14), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}
.page-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.65rem;
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 40rem;
  line-height: 1.6;
}
.page-section {
  padding: 2.5rem 0 4rem;
}

.completePage {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.completePage .page-hero {
  padding: 4.25rem 0 3rem;
}

.completePage .page-section {
  flex: 1;
  align-items: flex-start;
  padding: 2.5rem 0 5rem;
}

.completeReceiptWrap {
  width: 100%;
  max-width: 44rem;
}

.completeLoading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-500);
  margin-bottom: 1rem;
}

.completeLoading[hidden] {
  display: none;
}

.completeLoading p {
  margin: 0;
}

.completeSpinner {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(11, 28, 51, 0.12);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: complete-spin 0.75s linear infinite;
}

.completeDots {
  display: inline-flex;
  width: 1.1em;
  margin-left: 0.05em;
}

.completeDots span {
  opacity: 0.2;
  animation: complete-dot 1.2s ease-in-out infinite;
}

.completeDots span:nth-child(2) {
  animation-delay: 0.2s;
}

.completeDots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes complete-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes complete-dot {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .completeSpinner {
    animation: none;
    border-top-color: rgba(11, 28, 51, 0.25);
  }

  .completeDots span {
    animation: none;
    opacity: 0.55;
  }
}

.orderReceipt {
  display: grid;
  gap: 1.75rem;
}

.orderReceiptGreeting {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.orderReceiptNote {
  color: var(--ink-600);
  margin: 0.35rem 0 0;
  line-height: 1.6;
}

.orderReceiptBlock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.orderReceiptHeading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.orderReceiptTableWrap {
  overflow-x: auto;
}

.orderReceiptTable,
.orderReceiptSummary {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.orderReceiptTable th,
.orderReceiptTable td,
.orderReceiptSummary th,
.orderReceiptSummary td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.orderReceiptTable thead th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
}

.orderReceiptQty,
.orderReceiptPrice {
  white-space: nowrap;
  width: 5rem;
}

.orderReceiptPrice {
  text-align: right;
  width: 7rem;
}

.orderReceiptTable thead th:last-child,
.orderReceiptTable tbody td:last-child {
  text-align: right;
}

.orderReceiptSummaryWrap {
  margin-top: 1rem;
}

.orderReceiptSummary th {
  width: 38%;
  color: var(--ink-600);
  font-weight: 600;
}

.orderReceiptSummary td {
  text-align: right;
  font-weight: 600;
  color: var(--ink-900);
}

.orderReceiptTotalRow th,
.orderReceiptTotalRow td {
  border-bottom: none;
  padding-top: 0.85rem;
  font-size: 1.02rem;
  color: var(--navy-900);
}

.orderReceiptAddress {
  color: var(--ink-700);
  line-height: 1.65;
}

.orderReceiptAddress p {
  margin: 0 0 0.35rem;
}

.orderReceiptLink {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-section .section-meta {
  color: var(--ink-500);
  margin-bottom: 1.25rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-700);
  cursor: pointer;
  font-weight: 600;
}
.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.course-grid,
.material-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}
.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line);
  color: var(--ink-500);
  text-align: center;
}

/* FAQ accordion */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 650;
  font-family: var(--font-display);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-600);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 0 1.25rem;
  color: var(--ink-700);
  line-height: 1.65;
}

/* Auth forms */
.auth-page {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem 4rem;
  background:
    linear-gradient(165deg, rgba(7, 17, 31, 0.04), transparent 40%),
    var(--cream-50);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.auth-card h1 {
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
}
.auth-card .lead {
  color: var(--ink-500);
  margin-bottom: 1.5rem;
}
.auth-form {
  display: grid;
  gap: 0.85rem;
}
.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
}
.auth-form input,
.auth-form textarea,
.auth-form select {
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--cream-50);
}
.auth-form textarea { min-height: 6rem; resize: vertical; }
.auth-form .row-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.auth-form .row-check input { width: auto; min-height: auto; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: none;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-400); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-900);
  font-weight: 600;
  cursor: pointer;
}
.btn-google {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 2.75rem;
  font-weight: 600;
  cursor: pointer;
}
.form-error {
  color: #b42318;
  font-size: 0.92rem;
}
.form-success {
  color: #027a48;
  font-size: 0.95rem;
}
.auth-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-700);
}
.auth-links a { text-decoration: underline; text-underline-offset: 2px; }
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.auth-tabs button {
  flex: 1;
  min-height: 2.4rem;
  border: 1px solid var(--line);
  background: var(--cream-50);
  cursor: pointer;
  font-weight: 600;
}
.auth-tabs button.is-active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

/* Cart / checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.cart-table th,
.cart-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.cart-table th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cart-summary {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  max-width: 24rem;
  margin-left: auto;
}
.cart-summary .total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.75rem 0 1.25rem;
}

/* My Campus layout */
.campus-layout {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}
@media (min-width: 900px) {
  .campus-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}
.campus-nav {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.campus-nav a {
  padding: 0.55rem 0.65rem;
  font-weight: 600;
  color: var(--ink-700);
}
.campus-nav a.is-active,
.campus-nav a:hover {
  background: var(--cream-100);
  color: var(--navy-900);
}
.campus-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.campus-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-plain li {
  border-bottom: 1px solid var(--line);
}
.list-plain a,
.list-plain .list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  align-items: baseline;
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--cream-100);
  color: var(--navy-800);
}
.badge.done { background: rgba(2, 122, 72, 0.12); color: #027a48; }
.badge.wait { background: rgba(180, 35, 24, 0.1); color: #b42318; }

/* Contact */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}
.contact-form .grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .contact-form .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Detail */
.detail-hero {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (min-width: 900px) {
  .detail-hero { grid-template-columns: 1.2fr 0.8fr; }
}
.detail-hero img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.buy-panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.25rem;
  height: fit-content;
}
.buy-panel .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

/* Learn lock — 헤더는 Next와 같이 유지, 푸터만 숨김 */
body.learn-lock #site-footer { display: none; }
.learn-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--navy-950);
  color: var(--white);
}
.learn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.learn-body {
  display: grid;
  gap: 0;
}
@media (min-width: 900px) {
  .learn-body { grid-template-columns: 280px 1fr; }
}
.learn-sidebar {
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
  overflow: auto;
  background: rgba(255,255,255,0.03);
}
.learn-main {
  padding: 1.25rem;
}
.learn-main .player {
  aspect-ratio: 16/9;
  background: #000;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
}

/* Story (lightweight if gwc-story.css missing extras) */
.story-chapter {
  padding: 3rem 0;
}
.story-chapter .chapter-label {
  color: var(--gold-600);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.story-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.people-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.people-list li {
  padding: 0.75rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--gold-500);
}

/* Coming soon */
.coming-soon-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(196,154,60,0.2), transparent 50%), var(--navy-950);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}
.coming-soon-page .brand { color: var(--gold-400); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; }
.coming-soon-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }

.note-muted {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 0.75rem;
}
