/* หน้ารวมบทความ /blog: 7 พ.ย. 2569 (ใช้คู่กับ _blog_index.php และ css/tt-article.css)
   สีและฟอนต์ตามธีมเดิม: กรมท่า #272c40 ทอง #b98e44 / #c0b596 ฟอนต์ Prompt */
.tt-blg { font-family: Prompt, sans-serif; color: var(--tt-ink); }
.tt-blg > section { display: block; width: 100%; }
.tt-blg .tt-blg-wrap { max-width: 1180px; margin: 0 auto; }
.tt-blg .tt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tt-blg section.tt-blg-sec { padding: 64px 0; }
.tt-blg .tt-blg-h2 { margin: 0 0 22px; font-size: 26px; line-height: 1.35; font-weight: 600; color: var(--tt-navy); letter-spacing: 0; }

/* หัวหน้า */
.tt-blg section.tt-blg-hero { padding: 52px 0 44px; background-color: var(--tt-navy); background-image: linear-gradient(rgba(27, 32, 48, .9), rgba(27, 32, 48, .86)), var(--tt-hero-img, none); background-size: cover; background-position: center; color: #fff; }
.tt-blg .tt-blg-hero .tt-crumbs ol { color: #aea795; }
.tt-blg .tt-blg-hero .tt-crumbs a { color: #d9d3c6; }
.tt-blg .tt-blg-hero .tt-crumbs a:hover { color: #fff; }
.tt-blg .tt-blg-hero .tt-crumbs li + li::before { color: #7f7a6c; }
.tt-blg .tt-blg-hero .tt-crumbs [aria-current] { color: #fff; }
.tt-blg .tt-blg-hero h1 { margin: 6px 0 14px; max-width: 22em; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; font-weight: 600; color: #fff; letter-spacing: 0; text-wrap: balance; }
.tt-blg .tt-blg-lead { max-width: 46em; margin: 0 0 26px; font-size: 17px; line-height: 1.7; color: var(--tt-on-navy); }

/* ค้นหา */
.tt-blg .tt-search { position: relative; max-width: 640px; margin: 0; }
.tt-blg .tt-search .tt-ic { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--tt-muted); pointer-events: none; }
.tt-blg .tt-search input { width: 100%; height: 56px; margin: 0; padding: 0 18px 0 50px; border: 1px solid transparent; border-radius: 8px; background: #fff; color: var(--tt-ink); font: 400 16px/1.4 Prompt, sans-serif; box-shadow: none; }
.tt-blg .tt-search input::placeholder { color: #8a8f9c; }
.tt-blg .tt-search input:focus { outline: 2px solid var(--tt-gold); outline-offset: 2px; border-color: transparent; }
.tt-blg .tt-results { max-width: 640px; margin: 10px 0 0; padding: 14px 18px; background: #fff; border-radius: 8px; color: var(--tt-ink); }
.tt-blg .tt-results-n { margin: 0 0 6px; font-size: 14px; color: var(--tt-muted); }
.tt-blg .tt-results ul { list-style: none; margin: 0; padding: 0; }
.tt-blg .tt-results li { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; justify-content: space-between; margin: 0; padding: 9px 0; border-top: 1px solid var(--tt-line); list-style: none; }
.tt-blg .tt-results li a { color: var(--tt-navy); font-weight: 500; font-size: 15.5px; line-height: 1.5; text-decoration: none; }
.tt-blg .tt-results li a:hover { color: var(--tt-gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.tt-blg .tt-results li span { font-size: 13px; color: var(--tt-muted); }

/* ปุ่มกลุ่มหัวข้อ / หมวด */
.tt-blg .tt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tt-blg .tt-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid rgba(192, 181, 150, .45); border-radius: 999px; color: #ece6d8; font-size: 14.5px; line-height: 1.3; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.tt-blg .tt-chips a span { color: #aea795; font-size: 13px; }
.tt-blg .tt-chips a:hover, .tt-blg .tt-chips a[aria-current] { background: var(--tt-gold-soft); border-color: var(--tt-gold-soft); color: var(--tt-navy-900); }
.tt-blg .tt-chips a:hover span, .tt-blg .tt-chips a[aria-current] span { color: var(--tt-navy); }
.tt-blg .tt-chips-light a { border-color: var(--tt-line); color: var(--tt-navy); background: #fff; }
.tt-blg .tt-chips-light a span { color: var(--tt-muted); }
.tt-blg .tt-chips-light a:hover { background: var(--tt-paper); border-color: var(--tt-gold); color: var(--tt-navy); }
.tt-blg .tt-cat-h { margin: 36px 0 0; font-size: 16px; font-weight: 600; color: var(--tt-navy); }

/* รายการบทความแบบแถว */
.tt-blg .tt-rows { list-style: none; margin: 0; padding: 0; }
.tt-blg .tt-rows li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--tt-line); }
.tt-blg .tt-rows li:first-child { border-top: 1px solid var(--tt-line); }
.tt-blg .tt-rows a { display: flex; gap: 16px; align-items: center; padding: 14px 0; color: var(--tt-navy); text-decoration: none; }
.tt-blg .tt-rows img { flex: none; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--tt-paper); }
.tt-blg .tt-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tt-blg .tt-row-t { font-size: 16px; line-height: 1.5; font-weight: 500; }
.tt-blg .tt-rows a:hover .tt-row-t { color: var(--tt-gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.tt-blg .tt-row-d { font-size: 13.5px; color: var(--tt-muted); }
.tt-blg .tt-row-cat { font-size: 13px; color: var(--tt-gold-ink); font-weight: 500; }
.tt-blg .tt-rows-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.tt-blg .tt-rows-2 li:nth-child(2) { border-top: 1px solid var(--tt-line); }

/* คู่มือเด่น */
.tt-blg .tt-feat-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tt-blg .tt-feat-main { display: block; color: var(--tt-navy); text-decoration: none; }
.tt-blg .tt-feat-main img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--tt-paper); }
.tt-blg .tt-feat-body { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.tt-blg .tt-feat-t { font-size: 22px; line-height: 1.45; font-weight: 600; }
.tt-blg .tt-feat-main:hover .tt-feat-t { color: var(--tt-gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.tt-blg .tt-feat-d { font-size: 16px; line-height: 1.7; color: var(--tt-muted); }

/* กลุ่มหัวข้อ */
.tt-blg .tt-hub + .tt-hub, .tt-blg .tt-feat + .tt-hub { border-top: 1px solid var(--tt-line); }
.tt-blg .tt-hub-alt { background: #faf8f4; }
.tt-blg .tt-hub-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.tt-blg .tt-hub-intro { position: sticky; top: 116px; }
.tt-blg .tt-hub-intro .tt-blg-h2 { margin-bottom: 10px; }
.tt-blg .tt-hub-desc { margin: 0 0 8px; font-size: 16px; line-height: 1.7; color: var(--tt-muted); }
.tt-blg .tt-hub-count { margin: 0 0 18px; font-size: 14px; font-weight: 500; color: var(--tt-gold-ink); }
.tt-blg .tt-hub-svc { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--tt-muted); }
.tt-blg .tt-hub-svc .tt-lnk { margin-left: 4px; }
.tt-blg .tt-more { margin: 16px 0 0; }
.tt-blg .tt-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--tt-gold-line); border-radius: 6px; background: #fff; color: var(--tt-navy); font-size: 15px; font-weight: 500; cursor: pointer; list-style-position: inside; }
.tt-blg .tt-more summary:hover { border-color: var(--tt-gold); }
.tt-blg .tt-more ul { columns: 2; column-gap: 36px; list-style: none; margin: 14px 0 0; padding: 0; }
.tt-blg .tt-more li { break-inside: avoid; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--tt-line); list-style: none; font-size: 15px; line-height: 1.5; }
.tt-blg .tt-more a { color: var(--tt-navy); text-decoration: none; }
.tt-blg .tt-more a:hover { color: var(--tt-gold-ink); text-decoration: underline; text-underline-offset: 3px; }

/* แถบบริการ */
.tt-blg section.tt-band { padding: 36px 0; background: var(--tt-navy); color: #fff; }
.tt-blg .tt-band-in { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.tt-blg .tt-band-h { margin: 0 0 6px; font-size: 22px; line-height: 1.4; font-weight: 600; color: #fff; }
.tt-blg .tt-band-t { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tt-on-navy); }
.tt-blg .tt-band .tt-btn { flex: none; }

/* อ่านมากที่สุด + ทีม */
.tt-blg .tt-two { border-top: 1px solid var(--tt-line); }
.tt-blg .tt-two-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.tt-blg .tt-ranked { counter-reset: tt-rank; list-style: none; margin: 0; padding: 0; }
.tt-blg .tt-ranked li { counter-increment: tt-rank; display: flex; gap: 16px; align-items: baseline; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--tt-line); list-style: none; }
.tt-blg .tt-ranked li::before { content: counter(tt-rank); flex: none; width: 1.4em; font-size: 22px; font-weight: 600; color: var(--tt-gold); line-height: 1; }
.tt-blg .tt-ranked a { color: var(--tt-navy); font-size: 16px; line-height: 1.5; font-weight: 500; text-decoration: none; }
.tt-blg .tt-ranked a:hover { color: var(--tt-gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.tt-blg .tt-team { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; list-style: none; margin: 0 0 18px; padding: 0; }
.tt-blg .tt-team li { margin: 0; padding: 0; list-style: none; }
.tt-blg .tt-team a { display: flex; gap: 12px; align-items: center; color: var(--tt-navy); text-decoration: none; }
.tt-blg .tt-team img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: #e9e4da; }
.tt-blg .tt-team a > span { display: flex; flex-direction: column; min-width: 0; }
.tt-blg .tt-team-n { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.tt-blg .tt-team-r { font-size: 13.5px; line-height: 1.45; color: var(--tt-muted); }
.tt-blg .tt-team a:hover .tt-team-n { color: var(--tt-gold-ink); text-decoration: underline; text-underline-offset: 3px; }

/* การ์ดบทความ (การ์ดเดิมของเว็บ) */
.tt-blg .tt-latest { border-top: 1px solid var(--tt-line); }
.tt-blg .tt-blg-cards { max-width: 1210px; margin: 0 auto; }
.tt-blg .tt-blg-cards img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 1199.98px) {
  .tt-blg .tt-hub-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 991.98px) {
  .tt-blg section.tt-blg-sec { padding: 48px 0; }
  .tt-blg section.tt-blg-hero { padding: 36px 0 32px; }
  .tt-blg .tt-feat-grid, .tt-blg .tt-hub-grid, .tt-blg .tt-two-grid { grid-template-columns: 1fr; gap: 28px; }
  .tt-blg .tt-hub-intro { position: static; }
  .tt-blg .tt-feat-main { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: center; }
  .tt-blg .tt-feat-body { padding-top: 0; }
  .tt-blg .tt-band-in { flex-direction: column; align-items: flex-start; }
  .tt-blg .tt-rows-2 { grid-template-columns: 1fr; }
  .tt-blg .tt-rows-2 li:nth-child(2) { border-top: 0; }
}
@media (max-width: 575.98px) {
  .tt-blg .tt-blg-h2 { font-size: 22px; }
  .tt-blg .tt-blg-lead { font-size: 16px; }
  .tt-blg .tt-chips { flex-wrap: nowrap; gap: 6px; margin-right: -15px; padding-right: 15px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tt-blg .tt-chips::-webkit-scrollbar { display: none; }
  .tt-blg .tt-chips a { flex: none; font-size: 14px; padding: 6px 12px; white-space: nowrap; }
  .tt-blg .tt-chips-light { flex-wrap: wrap; margin-right: 0; padding-right: 0; overflow: visible; }
  .tt-blg .tt-chips-light a { white-space: normal; }
  .tt-blg .tt-rows img { width: 80px; height: 60px; }
  .tt-blg .tt-more ul { columns: 1; }
  .tt-blg .tt-team { grid-template-columns: 1fr; }
  .tt-blg .tt-band .tt-btn { width: 100%; }
  .tt-blg .tt-feat-t { font-size: 20px; }
  .tt-blg .tt-feat-main { display: block; }
  .tt-blg .tt-feat-body { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-blg .tt-chips a { transition: none; }
}
