/* Gem Win presentation refresh: layout, reading comfort and keyboard access. */
body.gw-ui-refreshed {
  color-scheme: dark;
  color: #f3eaf0;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.gw-ui-refreshed::before { opacity: .2; }
body.gw-ui-refreshed .wrap {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
body.gw-ui-refreshed :is(main, section, article, .art-g, .hero-g, .hero-i, .box, .prose, .side) { min-width: 0; }
body.gw-ui-refreshed :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid #f6d499;
  outline-offset: 4px;
  border-radius: 6px;
}
body.gw-ui-refreshed :is(h1, h2, h3, [id]) { scroll-margin-top: 120px; }
body.gw-ui-refreshed .top { font-size: 12px; line-height: 1.6; padding: 7px 16px; letter-spacing: .015em; }

/* One row on desktop, a contained menu drawer on smaller screens. */
body.gw-ui-refreshed .hd { z-index: 100; background: rgba(20, 7, 17, .96); box-shadow: 0 6px 24px #0003; }
body.gw-ui-refreshed .hd .hd-in {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  height: 88px;
  min-height: 88px;
  padding-top: 7px;
  padding-bottom: 7px;
}
body.gw-ui-refreshed .hd .hd-in > a.logo {
  flex: 0 0 144px;
  justify-content: flex-start;
  width: 144px;
  height: auto;
  min-height: 0;
  margin: 0;
  background: none;
}
body.gw-ui-refreshed .hd .hd-in > a.logo > img.gw-site-logo { display: block; width: 144px; height: auto; }
body.gw-ui-refreshed .hd .nav {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
}
body.gw-ui-refreshed .hd .nav ul { justify-content: flex-end; flex-wrap: nowrap; column-gap: 3px; row-gap: 0; }
body.gw-ui-refreshed .hd .nav a {
  display: block;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  color: #eee1e8;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
body.gw-ui-refreshed .hd .nav a:hover,
body.gw-ui-refreshed .hd .nav .current-menu-item > a { background: #ffffff0a; color: #f6d499; }
body.gw-ui-refreshed .hd .nav-btn { display: none; }

/* Existing media and copy keep their place, with a quieter reading hierarchy. */
body.gw-ui-refreshed .hero-g { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; padding-top: 48px; padding-bottom: 80px; align-items: center; }
body.gw-ui-refreshed .hero h1 { font-size: clamp(30px, 3.25vw, 44px); line-height: 1.18; letter-spacing: -.025em; margin: 18px 0; background: none; color: #f6e5c7; filter: none; text-shadow: none; }
body.gw-ui-refreshed .hero p { max-width: 58ch; color: #e1d2dc; font-size: 16.5px; line-height: 1.8; }
body.gw-ui-refreshed .kick { padding: 6px 12px; font-size: 12px; line-height: 1.6; letter-spacing: .015em; border-color: #f3c77c40; }
body.gw-ui-refreshed .hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
body.gw-ui-refreshed .facts { gap: 26px; margin-top: 25px; }
body.gw-ui-refreshed .facts span { font-size: 13px; color: #d4c0cc; }
body.gw-ui-refreshed .facts b { font-size: 23px; }
body.gw-ui-refreshed .hero-i .gws-in { border-radius: 20px; box-shadow: 0 16px 40px #0005, 0 0 0 1px #d4ac6b80; }
body.gw-ui-refreshed .quick { margin-top: -28px; }
body.gw-ui-refreshed .quick-g { padding: 12px; border-radius: 18px; background: #21101d; border: 1px solid #cfad773d; box-shadow: 0 8px 24px #0003; }
body.gw-ui-refreshed .quick-g .q { font-size: 13px; line-height: 1.5; padding: 10px 6px; }
body.gw-ui-refreshed .sec { padding-top: 56px; }
body.gw-ui-refreshed .sh { gap: 20px; margin-bottom: 24px; }
body.gw-ui-refreshed :is(.sec h2, .sh h2, .faq h2, .rel h2, .box h2, .art h1) { background: none; color: #f5dfb7; }
body.gw-ui-refreshed :is(.sec h2, .sh h2, .faq h2, .rel h2) { font-size: clamp(23px, 2.2vw, 29px); line-height: 1.3; letter-spacing: -.02em; }
body.gw-ui-refreshed .sh p { max-width: 70ch; margin-top: 9px; line-height: 1.7; color: #cdbbc7; }
body.gw-ui-refreshed :is(.box, .toc, .prose, details, .g) { background: linear-gradient(150deg, #ffffff04, #ffffff00), #1d0e19; border: 1px solid #d3ac703d; border-radius: 18px; box-shadow: 0 8px 24px #0002; }
body.gw-ui-refreshed .box { padding: 28px; }
body.gw-ui-refreshed .box h2 { font-size: 23px; line-height: 1.4; }
body.gw-ui-refreshed .box.warn { background: #2a1422; border-color: #ceac6a60; }
body.gw-ui-refreshed .duo { gap: 24px; }
body.gw-ui-refreshed .steps { list-style: none; }
body.gw-ui-refreshed .steps li { margin-bottom: 18px; line-height: 1.8; }
body.gw-ui-refreshed .steps li::marker { content: ''; }
body.gw-ui-refreshed .guides { gap: 16px; }
body.gw-ui-refreshed .guides .g { padding: 20px; }
body.gw-ui-refreshed .g:hover { filter: none; border-color: #e2bf8480; }

/* A continuous article instead of a nested page scrollbar. */
body.gw-ui-refreshed .art-g { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding-top: 18px; align-items: start; }
body.gw-ui-refreshed .art h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; letter-spacing: -.025em; margin: 12px 0 16px; }
body.gw-ui-refreshed .crumbs { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
body.gw-ui-refreshed .lead { max-width: 74ch; font-size: 17px; line-height: 1.8; color: #d6c4d0; }
body.gw-ui-refreshed .prose { padding: 32px; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
body.gw-ui-refreshed.home .prose { max-height: none; overflow: visible; overscroll-behavior: auto; border: 1px solid #d3ac703d; border-radius: 18px; }
body.gw-ui-refreshed .gw-scroll-hint { display: none; }
body.gw-ui-refreshed .prose p { margin-bottom: 19px; }
body.gw-ui-refreshed .prose :is(h2, h3) { max-width: 32ch; letter-spacing: -.015em; }
body.gw-ui-refreshed .prose h2 { margin-top: 36px; margin-bottom: 16px; font-size: 25px; line-height: 1.4; color: #f1d5a3; }
body.gw-ui-refreshed .prose h3 { margin-top: 27px; margin-bottom: 12px; font-size: 20px; line-height: 1.5; }
body.gw-ui-refreshed .prose :is(ul, ol) { padding-left: 23px; margin-bottom: 22px; }
body.gw-ui-refreshed .prose li { margin: 8px 0; }
body.gw-ui-refreshed .prose table { display: table; width: 100%; font-size: 14px; line-height: 1.7; margin: 20px 0 26px; }
body.gw-ui-refreshed .prose :is(th, td) { padding: 13px 15px; border-color: #d3ac7033; }
body.gw-ui-refreshed .prose th { background: #352031; }
body.gw-ui-refreshed .prose figure { margin: 26px 0; }
body.gw-ui-refreshed .toc { padding: 24px; margin-bottom: 24px; }
body.gw-ui-refreshed .toc li { padding-left: 3px; margin: 8px 0; line-height: 1.6; }
body.gw-ui-refreshed.home .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; }
body.gw-ui-refreshed .side .box { padding: 22px; margin-bottom: 20px; }
body.gw-ui-refreshed .side h2 { font-size: 18px; }
body.gw-ui-refreshed .side li { margin: 10px 0; font-size: 14px; line-height: 1.7; }
body.gw-ui-refreshed details { margin: 12px 0; padding: 0 20px; }
body.gw-ui-refreshed summary { padding: 18px 0; line-height: 1.65; font-size: 16px; cursor: pointer; }
body.gw-ui-refreshed details[open] { padding-bottom: 20px; }
body.gw-ui-refreshed .rel { margin-top: 36px; }
body.gw-ui-refreshed .ft { margin-top: 64px; padding-top: 44px; color: #ccbac6; }
body.gw-ui-refreshed .ft-g { gap: 32px; }
body.gw-ui-refreshed .ft :is(p, li) { font-size: 14px; line-height: 1.8; }
body.gw-ui-refreshed .ft h3 { font-size: 16px; margin-bottom: 16px; color: #e6c38a; }

/* The existing unavailable-link page uses the reference's quiet status-card layout. */
body.gw-ui-refreshed main.wrap.go { max-width: 880px; margin-top: 64px; margin-bottom: 72px; }
body.gw-ui-refreshed .go .box { padding: 62px 42px; border: 1.5px solid #d5b160; background: #150f14; box-shadow: 0 10px 36px #0003; }
body.gw-ui-refreshed .go h1 { color: #f4cf79; background: none; font-size: 30px; line-height: 1.4; margin-bottom: 27px; }
body.gw-ui-refreshed .go h1::before { content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 13px 3px 0; background: #e35b63; }
body.gw-ui-refreshed .go p { max-width: 64ch; margin: 18px auto 0; line-height: 1.9; color: #e3d8df; }

@media (max-width: 1100px) {
  body.gw-ui-refreshed .hd .hd-in { height: 84px; min-height: 84px; gap: 16px; }
  body.gw-ui-refreshed .hd .hd-in > a.logo { flex-basis: 136px; width: 136px; }
  body.gw-ui-refreshed .hd .hd-in > a.logo > img.gw-site-logo { width: 136px; }
  body.gw-ui-refreshed .hd .nav-btn { position: static; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; }
  body.gw-ui-refreshed .hd .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; padding: 12px 24px 18px; background: #190b15; border-bottom: 1px solid #d5b16055; box-shadow: 0 16px 28px #0005; }
  body.gw-ui-refreshed .hd .nav.open { display: block; }
  body.gw-ui-refreshed .hd .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  body.gw-ui-refreshed .hd .nav a { padding: 13px 12px; font-size: 15px; }
  body.gw-ui-refreshed .hero-g { gap: 28px; }
}
@media (max-width: 960px) {
  body.gw-ui-refreshed .art-g { grid-template-columns: minmax(0, 1fr); }
  body.gw-ui-refreshed .side { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  body.gw-ui-refreshed .side .box { margin-bottom: 0; }
}
@media (max-width: 860px) {
  body.gw-ui-refreshed .hero-g { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 64px; gap: 28px; }
  body.gw-ui-refreshed .hero h1 { font-size: 34px; max-width: 24ch; }
  body.gw-ui-refreshed .hero p { font-size: 16px; }
  body.gw-ui-refreshed .quick-g { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  body.gw-ui-refreshed .duo { grid-template-columns: minmax(0, 1fr); }
  body.gw-ui-refreshed .ft-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.gw-ui-refreshed .wrap { width: calc(100% - 32px); }
  body.gw-ui-refreshed .top { font-size: 11px; padding: 6px 12px; }
  body.gw-ui-refreshed .hd .hd-in { height: 80px; min-height: 80px; }
  body.gw-ui-refreshed .hd .hd-in > a.logo { flex-basis: 128px; width: 128px; }
  body.gw-ui-refreshed .hd .hd-in > a.logo > img.gw-site-logo { width: 128px; }
  body.gw-ui-refreshed .hero h1 { font-size: 31px; line-height: 1.23; }
  body.gw-ui-refreshed .hero .cta { gap: 12px; }
  body.gw-ui-refreshed .facts { gap: 22px; flex-wrap: wrap; }
  body.gw-ui-refreshed .sec { padding-top: 40px; }
  body.gw-ui-refreshed .sh { margin-bottom: 20px; }
  body.gw-ui-refreshed .box { padding: 22px; }
  body.gw-ui-refreshed .guides { grid-template-columns: minmax(0, 1fr); }
  body.gw-ui-refreshed .prose { padding: 24px 20px; font-size: 15.5px; line-height: 1.9; }
  body.gw-ui-refreshed .prose h2 { font-size: 23px; }
  body.gw-ui-refreshed .prose h3 { font-size: 19px; }
  body.gw-ui-refreshed .prose table { display: block; max-width: 100%; overflow-x: auto; }
  body.gw-ui-refreshed .prose :is(th, td) { padding: 11px 12px; min-width: 125px; }
  body.gw-ui-refreshed.home .toc ol { grid-template-columns: minmax(0, 1fr); }
  body.gw-ui-refreshed .side { grid-template-columns: minmax(0, 1fr); }
  body.gw-ui-refreshed .toc { padding: 20px; }
  body.gw-ui-refreshed details { padding-left: 17px; padding-right: 17px; }
  body.gw-ui-refreshed .ft-g { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  body.gw-ui-refreshed .ft { margin-top: 48px; padding-top: 32px; }
  body.gw-ui-refreshed main.wrap.go { margin-top: 36px; margin-bottom: 44px; }
  body.gw-ui-refreshed .go .box { padding: 36px 22px; }
  body.gw-ui-refreshed .go h1 { font-size: 25px; }
  body.gw-ui-refreshed .go p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  body.gw-ui-refreshed *, body.gw-ui-refreshed *::before, body.gw-ui-refreshed *::after { scroll-behavior: auto; transition-duration: 0s; animation-duration: 0s; }
}
