/* =========================================
   Record Page – ประวัติวันพีช (One Piece)
   ใช้กับไฟล์ pages/record.php
   ========================================= */

/* -------------------------
   Wrapper หลักของหน้านี้
   ------------------------- */
.main-content{
  padding-top:0px;
  padding-bottom:0px;
}

/* กล่องบทความรวม */
.article-section{
  padding-top:0px;
  padding-bottom:0px;
}

/* จำกัดความกว้าง “เท่ากับ Hero Slider” */
.article-section .container{
  max-width:1280px;        
  margin-left:auto;
  margin-right:auto;
}

/* -------------------------
   กล่องบทความ (ตัวกรอบ)
   ------------------------- */
.opz-article{
  margin-top:20px;                   
  margin-bottom:20px;                
  background-color:var(--card);
  border-radius:var(--radius-xl);
  padding:20px;                      
  box-shadow:var(--shadow);
  color:var(--text);
}

/* clearfix */
.opz-article::after{
  content:"";
  display:block;
  clear:both;
}

/* -------------------------
   Typography หลัก
   ------------------------- */
.article-header{
  margin-bottom:24px;
}

.article-title{
  margin-top:0;
  margin-bottom:12px;
  font-size:22px;
  font-weight:800;
  line-height:1.35;
  letter-spacing:0.3px;
}

.article-intro{
  margin-top:0;
  margin-bottom:18px;
  font-size:18px;
  line-height:1.7;
  color:var(--muted);
}

/* meta */
.article-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:4px;
  margin-bottom:8px;
  font-size:12px;
  color:var(--muted);
}

.article-meta span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

/* รูปปก */
.article-hero-image{
  margin-top:20px;
}

.article-hero-caption{
  font-size:12px;
  color:var(--muted);
}

/* -------------------------
   Block / Section
   ------------------------- */
.article-block{
  margin-top:24px;
  margin-bottom:24px;
}

/* เส้นแบ่งระหว่างแต่ละ section */
.article-block + .article-block{
  padding-top:20px;
  border-top:1px solid var(--border-soft);
}

.article-block h2,
.article-block h3{
  margin-top:0;
  margin-bottom:8px;
  font-weight:700;
  line-height:1.4;
}

.article-block h2{
  font-size:20px;
}

.article-block h3{
  font-size:20px;
}

.article-block p{
  margin-top:0;
  margin-bottom:12px;
  font-size:18px;
  line-height:1.8;
}

.article-block ul{
  margin-top:4px;
  margin-bottom:16px;
  padding-left:22px;
}

.article-block li{
  margin-bottom:6px;
}

.article-block strong{
  color:#ffffff;
}

/* -------------------------
   สารบัญ
   ------------------------- */
.article-toc{
  margin-top:16px;
  margin-bottom:24px;
  padding:16px;
  border-radius:16px;
  background-color:#050818;
  border:1px solid var(--border-soft);
  box-shadow:0 10px 24px rgba(0,0,0,0.35);
}

.article-toc h2{
  margin-top:0;
  margin-bottom:10px;
  font-size:16px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:6px;
}

.article-toc .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 10px;
  border-radius:999px;
  background-color:var(--accent);
  font-size:14px;
  font-weight:700;
}

.article-toc-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.article-toc-list a{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:6px;
  border-radius:10px;
  color:var(--muted);
  font-size:14px;
  text-decoration:none;
  transition:0.16s ease;
}

.article-toc-list a::before{
  content:"•";
  flex:0 0 auto;
  font-size:16px;
  color:var(--accent);
}

.article-toc-list a:hover,
.article-toc-list a:focus{
  background-color:rgba(255,255,255,0.06);
  color:#ffffff;
  transform:translateX(2px);
}

/* -------------------------
   Sidebar TOC (จอใหญ่)
   ------------------------- */
@media (min-width:992px){
  .article-toc{
    float:right;
    width:260px;
    margin-left:32px;
  }

  .article-title{
    font-size:22px;
  }
}

/* -------------------------
   มือถือ
   ------------------------- */
@media (max-width:600px){
  .opz-article{
    padding:20px;
    border-radius:16px;
  }

  .article-title{
    font-size:22px;
  }

  .article-intro{
    font-size:16px;
  }

  .article-block{
    margin-top:16px;
    margin-bottom:16px;
  }
}

/* -------------------------
   ลิงก์ทั่วไป
   ------------------------- */
.opz-article a{
  color:var(--nav-hover);
  text-decoration:none;
  transition:0.16s ease;
}

.opz-article a:hover{
  color:#ffffff;
  text-decoration:underline;
  text-decoration-color:var(--accent);
}
