

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }


.pb-reveal { opacity: 1; transform: none; }
.pb-reveal.pb-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pb-reveal { opacity: 1; transform: none; transition: none; }
}


.is-hidden { opacity: 0; pointer-events: none; }
#topShading.is-hidden { display: none; }


#mobileBackdrop.is-open { opacity: 1; pointer-events: auto; }
#mobileMenu.is-open { transform: translateX(0); }


.ptcontent { color: #3B4460; font-size: 15px; line-height: 1.8; }
.ptcontent h1, .ptcontent h2, .ptcontent h3, .ptcontent h4 {
  color: #0F1C3F; margin: 24px 0 12px;
}
.ptcontent p { margin: 0 0 16px; }
.ptcontent a { color: #FF5C5C; text-decoration: underline; }
.ptcontent img { border-radius: 12px; margin: 16px 0; }
.ptcontent ul, .ptcontent ol { margin: 0 0 16px; padding-left: 24px; }
.ptcontent ul { list-style: disc; }
.ptcontent ol { list-style: decimal; }
.ptcontent li { margin-bottom: 6px; }

.ptcontent table {
  width: auto !important; max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  table-layout: fixed;
  border: 1px solid #E8E6DF;
  border-radius: 8px;
  overflow: hidden;
}
.ptcontent table td,
.ptcontent table th {
  width: auto !important;
  border: 1px solid #E8E6DF;
  padding: 10px 14px;
  vertical-align: top;
  word-break: break-word;
  font-size: 14px;
  color: #3B4460;
}
.ptcontent table th {
  background: #F3F2EC;
  color: #0F1C3F; font-weight: 600;
}
.ptcontent table tr:nth-child(even) td { background: #FAFAF7; }
.ptcontent table p, .ptcontent table b, .ptcontent table strong {
  padding: 0; margin: 0;
}


#backToTopBtn {
  display: none;
  position: fixed; bottom: 24px; right: 24px; z-index: 45;
  width: 46px; height: 46px;
  background: #0F1C3F; color: #fff;
  border: none; border-radius: 12px;
  align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  text-align: center; line-height: 46px;
  box-shadow: 0 6px 18px rgba(15,28,63,0.28);
  transition: background .2s ease, transform .2s ease;
}
#backToTopBtn:hover { background: #FF5C5C; transform: translateY(-2px); }


#copy-message {
  position: fixed; bottom: 80px; right: 24px; z-index: 46;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid #FF5C5C;
  color: #FF5C5C;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 12px rgba(15,28,63,0.06), 0 20px 48px rgba(15,28,63,0.10);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
#copy-message.is-visible { opacity: 1; transform: translateY(0); }


.mg-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mg-tile {
  grid-column: span 1;
  aspect-ratio: 4 / 3;
}
.mg-mosaic > *:nth-child(1) { grid-column: span 2; }

@media (min-width: 1024px) {
  .mg-mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 12px;
  }
  .mg-mosaic > *:nth-child(1) { grid-column: span 3; }
  .mg-tile {
    grid-column: span 3;
    aspect-ratio: auto;
  }
  
  .mg-tile-sm .mg-cap { display: none; }
  .mg-tile-sm .mg-score { font-size: 8.5px; }
}
