/* Hogwarts Memorial Archive — unified headings (all four pages) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Noto+Serif+Thai:wght@400;500;600;700&display=swap');

/* Restrict changes to page headers: leave house tabs, forms, cards and modals alone. */
body .archive-header,
body .my-characters-heading.archive-header,
body .registry-heading.archive-header {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 24px 12px 0 !important;
  margin: 0 auto 38px !important;
  gap: 0 !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
}
body .archive-header .archive-star,
body .archive-header .my-characters-star.archive-star {
  display: block !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  color: #c2a172 !important;
  font: 400 30px/1 Georgia, serif !important;
  letter-spacing: 0 !important;
}
body .archive-header .archive-eyebrow,
body .registry-heading.archive-header .archive-eyebrow,
body .my-characters-heading.archive-header .archive-eyebrow {
  display: block !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: #c6a879 !important;
  font-family: Georgia, 'Noto Serif Thai', serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
}
body .archive-header h1,
body .registry-heading.archive-header h1,
body .my-characters-heading.archive-header h1,
body .character-page .archive-header h1,
body .container > .archive-header h1 {
  display: block !important;
  margin: 0 0 13px !important;
  padding: 0 !important;
  color: #ede4d6 !important;
  font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif !important;
  font-size: clamp(42px, 5vw, 58px) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow: none !important;
}
body .archive-header .archive-subtitle,
body .registry-heading.archive-header .archive-subtitle,
body .my-characters-heading.archive-header .archive-subtitle {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d4c4b0 !important;
  font-family: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}
@media (max-width: 600px) {
  body .archive-header,
  body .my-characters-heading.archive-header,
  body .registry-heading.archive-header { padding-top: 20px !important; margin-bottom: 30px !important; }
  body .archive-header .archive-eyebrow { font-size: 10px !important; letter-spacing: 1.6px !important; }
  body .archive-header .archive-subtitle { font-size: 19px !important; }
}


/* ขยายหัวข้อเฉพาะหน้าแรก */
body:has(#registerBtn) .archive-header h1 {
  font-size: clamp(64px, 7vw, 90px) !important;
  line-height: 1.1;
}


/* ให้ปุ่ม Register ใช้ฟอนต์เดียวกับปุ่มหน้าแรก */
.new-character-button,
.new-character-button:link,
.new-character-button:visited {
  font-family: Georgia, "Noto Serif Thai", serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #f5ede1 !important;
}

.new-character-button:hover {
  color: #ffffff !important;
}


/* ทำให้ตัวเลขใน Student Profile สูงเท่ากัน */
.profile-preview .preview-uid,
.profile-preview #previewUID,
.profile-preview #previewFirstDay {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
