﻿

* { 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: #4B5162; font-size: 15px; line-height: 1.8; }
.ptcontent h1, .ptcontent h2, .ptcontent h3, .ptcontent h4 {
  color: #111319; margin: 26px 0 12px;
  font-family: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.ptcontent h1 { font-size: 26px; }
.ptcontent h2 { font-size: 20px; }
.ptcontent h3 { font-size: 17px; }
.ptcontent p { margin: 0 0 16px; }
.ptcontent a { color: #C63B1E; text-decoration: underline; text-underline-offset: 2px; }
.ptcontent img { border-radius: 16px; 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 #E5E7F0;
  border-radius: 10px;
  overflow: hidden;
}
.ptcontent table td,
.ptcontent table th {
  width: auto !important;
  border: 1px solid #E5E7F0;
  padding: 10px 14px;
  vertical-align: top;
  word-break: break-word;
  font-size: 14px;
  color: #4B5162;
}
.ptcontent table th {
  background: #F4F5F9;
  color: #111319; font-weight: 600;
}
.ptcontent table tr:nth-child(even) td { background: #FAFAFD; }
.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: #111319; color: #fff;
  border: none; border-radius: 999px;
  align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  text-align: center; line-height: 46px;
  box-shadow: 0 10px 24px rgba(17,19,25,0.28);
  transition: background .2s ease, transform .2s ease;
}
#backToTopBtn:hover { background: #FF4D2A; transform: translateY(-2px); }


#copy-message {
  position: fixed; bottom: 80px; right: 24px; z-index: 46;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid #FF4D2A;
  color: #C63B1E;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(17,19,25,0.06), 0 20px 48px rgba(17,19,25,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; }
}
