/* Articles front page (page-articles.php). Ported from the V1 Revised prototype
   (PriceTag_Page_Articles.html, desktop "v2ad" layout): bold headlines, text labels,
   thin rules instead of shadows. Plain CSS so it ships without a theme rebuild. */

.pt-af {
  --rule: #e5e7eb;
  --muted: #6b7280;
  --accent: #b42318;
  color: #111827;
  font-family: "Noto Sans Thai", Arial, Helvetica, sans-serif;
}
.pt-af a { color: inherit; text-decoration: none; }
.pt-af a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pt-af img { display: block; width: 100%; height: auto; object-fit: cover; background: #f3f4f6; }
.pt-af img.is-placeholder { object-fit: contain; padding: 12%; }
.pt-af b { font-weight: 700; color: #111827; }
.pt-af em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); display: block; margin: 8px 0 2px; }
.pt-af [hidden] { display: none !important; }

.pt-af-meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pt-af-by { color: #111827; font-weight: 600; }
.pt-af-teaser { display: block; font-size: 14px; line-height: 1.6; color: #374151; margin-top: 4px; }

/* Breadcrumb, masthead and topic tabs: kept tight to the header so the page starts
   with the stories rather than white space. */
.pt-af-crumbs { margin: 8px 0 4px; }
.pt-af-mast { padding: 0; border-bottom: 3px solid #111827; }
.pt-af-mast h1 { font-size: 28px; font-weight: 700; margin: 0; line-height: 1.2; }
.pt-af-mast p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.pt-af-topics { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); }
.pt-af-topics::-webkit-scrollbar { display: none; }
.pt-af-topics button { flex: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #374151; padding: 10px 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -3px; white-space: nowrap; }
.pt-af-topics button[aria-selected="true"] { color: #111827; border-bottom-color: var(--accent); }

/* Front: lead, two seconds, most read */
.pt-af-front { display: grid; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.pt-af-lead img { aspect-ratio: 16 / 9; }
.pt-af-lead b { display: block; font-size: 22px; line-height: 1.35; margin-top: 2px; }
.pt-af-lead .pt-af-teaser { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-af-second { display: grid; gap: 16px; align-content: start; }
.pt-af-second a + a { border-top: 1px solid var(--rule); padding-top: 14px; }
.pt-af-second img { aspect-ratio: 16 / 10; }
.pt-af-second b { display: block; font-size: 16px; line-height: 1.45; }

.pt-af-popular h2,
.pt-af-h { font-size: 18px; font-weight: 700; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #111827; display: flex; justify-content: space-between; align-items: baseline; }
.pt-af-h button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.pt-af-popular ol { list-style: none; margin: 0; padding: 0; }
.pt-af-popular li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 6px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.pt-af-popular .pt-rank { width: 36px; height: 39px; max-width: none; margin-top: -2px; }
.pt-af-n { font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1.2; text-align: center; }
.pt-af-popular b { display: block; font-size: 14.5px; line-height: 1.45; }

/* Latest list and side column */
.pt-af-body { display: grid; gap: 32px; padding: 20px 0; }
.pt-af-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pt-af-row:first-child { padding-top: 4px; }
.pt-af-row img { aspect-ratio: 16 / 10; }
.pt-af-row em { margin-top: 0; }
.pt-af-row b { display: block; font-size: 16px; line-height: 1.4; }
.pt-af-row .pt-af-teaser { display: none; }
.pt-af-empty { color: var(--muted); padding: 14px 0; }
.pt-af-more { margin-top: 14px; width: 100%; border: 1px solid #111827; background: #fff; font: inherit; font-weight: 700; padding: 10px; cursor: pointer; }
.pt-af-more:hover { background: #111827; color: #fff; }
.pt-af-side { display: grid; gap: 24px; align-content: start; }
.pt-af-mini { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.pt-af-mini img { aspect-ratio: 4 / 3; }
.pt-af-mini b { font-size: 14px; line-height: 1.45; }
.pt-af-mmeta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }

/* A row of four per topic */
.pt-af-block { padding: 16px 0 4px; }
.pt-af-four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pt-af-four img { aspect-ratio: 16 / 10; }
.pt-af-four b { display: block; font-size: 15px; line-height: 1.45; margin-top: 8px; }

@media (min-width: 640px) {
  .pt-af-row { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
  .pt-af-row b { font-size: 18px; }
  .pt-af-row .pt-af-teaser { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (min-width: 1024px) {
  .pt-af-crumbs { margin: 12px 0 2px; }
  .pt-af-mast h1 { font-size: 34px; }
  .pt-af-front { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .pt-af-front > * { padding: 0 20px; border-left: 1px solid var(--rule); }
  .pt-af-front > :first-child { padding-left: 0; border-left: 0; }
  .pt-af-front > :last-child { padding-right: 0; }
  .pt-af-lead b { font-size: 26px; }
  .pt-af-body:has(.pt-af-side) { grid-template-columns: minmax(0, 1fr) 300px; }
  .pt-af-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* A single topic: that topic's list with "most read" beside it, front stories hidden */
.pt-af, .pt-am { scroll-margin-top: 110px; }
.pt-af-h small { font-size: 12px; font-weight: 400; color: #5a6a82; }
.pt-af-topicpop,
.pt-af.is-topic .pt-af-front,
.pt-af.is-topic .pt-af-side,
.pt-af.is-topic .pt-af-block { display: none; }
.pt-af.is-topic .pt-af-topicpop { display: block; }
@media (min-width: 1024px) {
  .pt-af.is-topic .pt-af-body { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* Hover: the picture zooms a little inside its frame, the headline turns blue, and a
   "read" arrow slides in, so each story invites a click. Off for reduced motion. */
.pt-af-lead, .pt-af-second a, .pt-af-row, .pt-af-four a, .pt-af-mini { display: block; }
.pt-af-row, .pt-af-mini { display: grid; }
.pt-af-lead img, .pt-af-second img, .pt-af-row img, .pt-af-four img, .pt-af-mini img { transition: transform .35s ease, filter .35s ease; }
.pt-af-lead, .pt-af-second a, .pt-af-row, .pt-af-four a, .pt-af-mini { overflow: hidden; }
.pt-af :is(.pt-af-lead, .pt-af-second a, .pt-af-row, .pt-af-four a, .pt-af-mini) img { clip-path: inset(0 round 0); }
.pt-af b { transition: color .2s ease; }
.pt-af a:hover b { color: #004aeb; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pt-af a:hover img { transform: scale(1.05); filter: saturate(1.1); }
.pt-af-row b::after, .pt-af-four b::after, .pt-af-second b::after, .pt-af-lead b::after { content: " →"; display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; color: #004aeb; }
.pt-af a:hover b::after { opacity: 1; transform: translateX(0); }
.pt-af-row { border-radius: 8px; transition: background-color .2s ease; }
.pt-af-row:hover { background: #f5f8ff; }
.pt-af-popular li { transition: background-color .2s ease; }
.pt-af-popular li:hover { background: #f5f8ff; }
.pt-af-topics button { transition: color .2s ease, border-color .2s ease; }
.pt-af-topics button:hover { color: #004aeb; border-bottom-color: #c7d6ff; }
.pt-af-h button:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .pt-af *, .pt-af *::after { transition: none !important; transform: none !important; }
}

/* ── Phone and tablet layout (under 1024px) ────────────────────────────────
   Ported from the prototype's phone articles page (.v2a-* in v2-system.css):
   masthead card, cover slideshow, numbered most-read list, topic pills with a
   card feed, and a sideways row of head-to-head pieces. */
.pt-am { display: grid; gap: 20px; padding: 4px 0 8px; color: #1f2933; font-family: "Noto Sans Thai", Arial, Helvetica, sans-serif; }
.pt-am a { color: inherit; text-decoration: none; }
.pt-am [hidden] { display: none !important; }
@media (min-width: 1024px) { .pt-am { display: none; } }
@media (max-width: 1023.98px) { .pt-af { display: none; } }

.pt-am-mast { display: grid; gap: 4px; border-radius: 18px; padding: 16px 16px 14px; background: radial-gradient(120% 140% at 100% 0, #2c5cf5 0, #0b1f44 60%); color: #fff; }
.pt-am-mast h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: #fff; }
.pt-am-mast p { margin: 0; font-size: 13px; opacity: .9; }
.pt-am-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pt-am-stats > span { display: grid; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 7px 8px; font-size: 11px; opacity: .95; }
.pt-am-stats b { font-size: 17px; font-weight: 700; }

/* Slideshow: cover fills the slide, title over a dark gradient */
.pt-am-hero { display: grid; gap: 8px; }
.pt-am-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.pt-am-track::-webkit-scrollbar { display: none; }
.pt-am-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: block; height: 236px; border-radius: 16px; overflow: hidden; background: #0b1f44; color: #fff; }
.pt-am-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-am-count { position: absolute; z-index: 2; top: 10px; left: 12px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .35); border-radius: 999px; padding: 2px 8px; }
.pt-am-slide-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 56px 14px 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .66) 34%, rgba(0, 0, 0, .92) 100%); }
.pt-am-slide-text b { font-size: 16px; line-height: 1.3; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-am-slide-teaser { font-size: 12px; line-height: 1.45; color: #e5e9f0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-am-slide-text small { font-size: 11px; opacity: .85; }
.pt-am-badge { justify-self: start; font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: rgba(255, 255, 255, .2); color: #fff; }
.pt-am-badge.is-hot { background: #ef4444; }
.pt-am-badge.is-new { background: #12b76a; }
.pt-am-dots { display: flex; justify-content: center; gap: 6px; }
.pt-am-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cbd2d9; overflow: hidden; cursor: pointer; transition: width .2s; }
.pt-am-dots button[aria-current] { width: 28px; background: #d5dbe4; }
.pt-am-dots button[aria-current] i { position: absolute; inset: 0; background: #1d4ed8; transform-origin: left; animation: pt-am-fill 5s linear; }
.pt-am-hero.is-held .pt-am-dots i { animation-play-state: paused; }
@keyframes pt-am-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Section headings */
.pt-am-sec { display: grid; gap: 8px; scroll-margin-top: 90px; }
.pt-am-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pt-am-h small { display: block; font-size: 11px; font-weight: 800; color: #e4572e; letter-spacing: .02em; }
.pt-am-h h2 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; color: #0b1f44; }

/* Most read */
.pt-am-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pt-am-top a { display: grid; grid-template-columns: 36px minmax(0, 1fr) 64px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.pt-am-n { display: grid; place-items: center; font-size: 22px; font-weight: 900; line-height: 1; color: #cbd2d9; }
.pt-am-n .pt-rank { width: 34px; height: 37px; max-width: none; object-fit: contain; border-radius: 0; background: none; }
.pt-am-top b { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-am-top small { font-size: 11px; color: #7b8794; }
.pt-am-top img { width: 64px; height: 46px; object-fit: cover; border-radius: 8px; background: #f1f5f9; }

/* Topic pills and the card feed */
.pt-am-topics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pt-am-topics::-webkit-scrollbar { display: none; }
.pt-am-topics button { flex: none; border: 1.5px solid #d5dbe4; background: #fff; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; font-weight: 600; color: #1f2933; cursor: pointer; white-space: nowrap; }
.pt-am-topics button[aria-selected="true"] { background: #0b1f44; border-color: #0b1f44; color: #fff; }
.pt-am-feed { display: grid; gap: 10px; }
.pt-am-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 8px; box-shadow: 0 1px 2px rgba(11, 31, 68, .05); }
.pt-am-thumb { position: relative; display: block; width: 112px; height: 96px; border-radius: 10px; background: #f1f5f9; overflow: hidden; }
.pt-am-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-am-thumb img.is-placeholder { object-fit: contain; padding: 14%; }
.pt-am-body { display: grid; gap: 3px; min-width: 0; padding-top: 2px; }
.pt-am-topic { font-size: 10.5px; font-weight: 800; color: #1d4ed8; }
.pt-am-body b { font-size: 14px; line-height: 1.35; font-weight: 600; color: #1f2933; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-am-teaser { font-size: 12px; line-height: 1.45; color: #52606d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-am-meta { font-size: 11px; color: #7b8794; }
.pt-am-card.is-lead { grid-template-columns: 1fr; gap: 8px; padding: 0; overflow: hidden; }
.pt-am-card.is-lead .pt-am-thumb { width: 100%; height: 190px; border-radius: 0; }
.pt-am-card.is-lead .pt-am-body { padding: 0 12px 12px; }
.pt-am-card.is-lead .pt-am-body b { font-size: 17px; -webkit-line-clamp: 3; }
.pt-am-empty { font-size: 13px; color: #7b8794; }
.pt-am-more { border: 1px solid #c9d2e3; background: #fff; border-radius: 10px; padding: 10px; font: inherit; font-weight: 700; color: #0b1f44; cursor: pointer; }

/* Head to head: sideways row */
.pt-am-vs { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pt-am-vs::-webkit-scrollbar { display: none; }
.pt-am-vscard { scroll-snap-align: start; display: grid; gap: 6px; align-content: start; background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 10px; }
.pt-am-vscover { position: relative; display: block; height: 120px; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.pt-am-vscover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-am-vscover i { position: absolute; right: 8px; top: 8px; font-style: normal; font-weight: 900; font-size: 12px; color: #fff; background: #e4572e; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.pt-am-vscard b { font-size: 14px; line-height: 1.4; font-weight: 600; }
.pt-am-vscard small { font-size: 12px; color: #52606d; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Tablets: two-column feed and wider slides, as the prototype does on larger screens */
@media (min-width: 640px) {
  .pt-am-slide { height: 320px; }
  .pt-am-slide-text b { font-size: 20px; }
  .pt-am-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-am-card.is-lead, .pt-am-more, .pt-am-empty { grid-column: 1 / -1; }
  .pt-am-card.is-lead { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .pt-am-card.is-lead .pt-am-thumb { height: 240px; }
  .pt-am-card.is-lead .pt-am-body { padding: 14px; }
  .pt-am-vs { grid-auto-columns: 42%; }
}

/* Touch feedback (no hover on phones) */
.pt-am-card, .pt-am-vscard, .pt-am-slide, .pt-am-top a { transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.pt-am-card:active, .pt-am-vscard:active, .pt-am-slide:active { transform: scale(.98); }
@media (hover: hover) {
  .pt-am-card:hover, .pt-am-vscard:hover { box-shadow: 0 6px 18px rgba(11, 31, 68, .12); }
  .pt-am a:hover b { color: #004aeb; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-am *, .pt-am-dots i { transition: none !important; animation: none !important; }
}

/* Phone layout extras: 1-minute tips (stories), 60-second clips, sales calendar,
   price quiz, shop by category. From the prototype's .v2a-* styles. */
.pt-am-stories { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.pt-am-stories::-webkit-scrollbar { display: none; }
.pt-am-story { flex: none; display: grid; justify-items: center; gap: 4px; width: 64px; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.pt-am-ring { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: conic-gradient(#f59e0b, #ef4444, #7c3aed, #1d4ed8, #f59e0b); }
.pt-am-story.is-seen .pt-am-ring { background: #cbd2d9; }
.pt-am-ring span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 2px solid #fff; font-size: 24px; }
.pt-am-story small { font-size: 11px; font-weight: 600; color: #1f2933; text-align: center; line-height: 1.2; }

.pt-am-ov-open { overflow: hidden; }
.pt-am-ov { position: fixed; inset: 0; z-index: 1300; background: rgba(5, 10, 25, .85); display: grid; place-items: center; padding: 12px; font-family: "Noto Sans Thai", Arial, sans-serif; }
.pt-am-ov[hidden] { display: none !important; }
.pt-am-ov-card { position: relative; width: 100%; max-width: 380px; height: min(640px, 86vh); border-radius: 20px; background: var(--bg); color: #fff; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 14px 18px 22px; overflow: hidden; }
.pt-am-bars { display: flex; gap: 4px; position: relative; z-index: 2; }
.pt-am-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.pt-am-bars i.is-done { background: #fff; }
.pt-am-bars i.is-now::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: pt-am-fill 4s linear forwards; }
.pt-am-ov-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; position: relative; z-index: 2; }
.pt-am-ov-top button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 20px; cursor: pointer; }
.pt-am-ov-text { align-self: center; margin: 0; font-size: 24px; font-weight: 800; line-height: 1.4; }
.pt-am-ov-cta { position: relative; z-index: 2; display: block; text-align: center; background: #fff; color: #0b1f44 !important; font-weight: 800; border-radius: 12px; padding: 12px; text-decoration: none; }
.pt-am-ov-hint { font-size: 12px; opacity: .7; text-align: center; }
.pt-am-ov-prev, .pt-am-ov-next { position: absolute; top: 60px; bottom: 80px; width: 40%; border: 0; background: none; cursor: pointer; z-index: 1; }
.pt-am-ov-prev { left: 0; }
.pt-am-ov-next { right: 0; width: 60%; }

.pt-am-shorts { display: grid; grid-auto-flow: column; grid-auto-columns: 34%; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pt-am-shorts::-webkit-scrollbar { display: none; }
.pt-am-short { position: relative; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #0b1f44, #1d4ed8); display: block; }
.pt-am-short img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.pt-am-play { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px; display: grid; place-items: center; }
.pt-am-short-t { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 18px 7px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; }
.pt-am-short-t b { font-size: 11.5px; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-am-short-t small { font-size: 10px; opacity: .85; }

.pt-am-band { margin: 0 -16px; padding: 14px 16px; background: #fffaf2; border-top: 1px solid #e9eef5; border-bottom: 1px solid #e9eef5; }
.pt-am-cal { display: grid; gap: 6px; }
.pt-am-calrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #f3e2c4; border-radius: 12px; padding: 8px 10px; }
.pt-am-caldate { display: grid; justify-items: center; border-radius: 10px; background: #e4572e; color: #fff; padding: 4px 0; line-height: 1.1; }
.pt-am-caldate b { font-size: 18px; color: #fff; }
.pt-am-caldate small { font-size: 10px; }
.pt-am-calbody { display: grid; gap: 1px; min-width: 0; }
.pt-am-calbody b { font-size: 14px; color: #0b1f44; }
.pt-am-calbody small { font-size: 11.5px; color: #52606d; }
.pt-am-left { font-size: 12px; font-weight: 800; color: #b54708; background: #fffaeb; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pt-am-band .pt-am-more { margin-top: 8px; width: 100%; }

.pt-am-quiz { display: grid; gap: 10px; border-radius: 16px; padding: 14px; background: linear-gradient(135deg, #fff7ed, #fef3c7); border: 1px solid #fde68a; }
.pt-am-quiz-top { display: flex; justify-content: space-between; align-items: center; }
.pt-am-quiz-tag { font-size: 12px; font-weight: 800; color: #b54708; background: #fff; border-radius: 999px; padding: 3px 10px; }
.pt-am-quiz-top img { width: 72px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; }
.pt-am-quiz > b { font-size: 15px; line-height: 1.35; color: #0b1f44; }
.pt-am-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pt-am-opts button { border: 1.5px solid #f5c26b; background: #fff; border-radius: 10px; padding: 10px 4px; font: inherit; font-size: 14px; font-weight: 800; color: #0b1f44; cursor: pointer; }
.pt-am-opts button.is-right { background: #12b76a; border-color: #12b76a; color: #fff; }
.pt-am-opts button.is-wrong { background: #fee4e2; border-color: #f04438; color: #b42318; }
.pt-am-opts button:disabled { cursor: default; }
.pt-am-why { margin: 0; font-size: 12.5px; line-height: 1.5; color: #3e4c59; }
.pt-am-why a { color: #1d4ed8; font-weight: 700; }

.pt-am-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pt-am-guides a { display: grid; justify-items: center; gap: 2px; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 10px 4px; text-align: center; }
.pt-am-guides img { width: 34px; height: 34px; object-fit: contain; }
.pt-am-guides b { font-size: 12px; font-weight: 600; line-height: 1.3; }
.pt-am-guides small { font-size: 10px; color: #7b8794; }
@media (min-width: 640px) { .pt-am-shorts { grid-auto-columns: 22%; } .pt-am-guides { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .pt-am-bars i.is-now::after { animation: none; transform: none; } }

/* Masthead as the prototype's light blue banner with Taggy, and the pinned campaign box (5 Nov) */
@media (min-width: 1024px) {
  .pt-af-mast { position: relative; margin: 0 0 18px; padding: 26px 260px 0 28px; border: 0; border-radius: 20px; background: linear-gradient(100deg, #e4eeff 0%, #cfe0ff 55%, #9fbef9 100%); overflow: hidden; }
  .pt-af-mast h1 { color: #00184a; font-weight: 900; }
  .pt-af-mast p { color: #3b4f73; font-size: 16px; }
  .pt-af-topics { border-top: 0; }
  .pt-af-topics button { color: #3b4f73; }
  .pt-af .pt-af-mast img.pt-af-taggy { position: absolute; right: 36px; top: 50%; width: auto !important; height: 150px !important; max-height: 150px; aspect-ratio: auto !important; object-fit: contain !important; transform: translateY(-50%); border-radius: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
}
.pt-af-taggy { display: none; }
@media (min-width: 1024px) { .pt-af-taggy { display: block; } }
.pt-acm { position: relative; display: grid; gap: 18px; margin: 22px 0; padding: 26px 18px 18px; border: 2px solid #00184a; border-radius: 6px; background: #fffaf2; font-family: "Noto Sans Thai", Arial, sans-serif; color: #00184a; }
.pt-acm-pin { position: absolute; top: -12px; left: 18px; padding: 2px 10px; border-radius: 4px; background: #c0262d; color: #fff; font-size: 13px; font-weight: 800; }
.pt-acm h2 { margin: 0; font-size: 20px; font-weight: 800; }
.pt-acm-main > p { margin: 4px 0 12px; font-size: 14px; color: #57657b; }
.pt-acm ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: acm; }
.pt-acm ol li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding-top: 10px; border-top: 1px solid #ece3d3; counter-increment: acm; }
.pt-acm ol li::before { content: counter(acm); grid-row: span 2; font-size: 20px; font-weight: 800; color: #c0262d; }
.pt-acm ol b { font-size: 15px; }
.pt-acm ol span { font-size: 14px; line-height: 1.5; color: #3b4f73; }
.pt-acm h3 { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid #00184a; font-size: 17px; font-weight: 800; }
.pt-acm ul { margin: 0; padding: 0; list-style: none; }
.pt-acm ul li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid #ece3d3; }
.pt-acm time { font-size: 14px; font-weight: 800; color: #c0262d; }
.pt-acm ul span { display: grid; }
.pt-acm ul b { font-size: 15px; font-weight: 700; }
.pt-acm ul small { font-size: 13px; color: #57657b; }
.pt-acm ul em { font-style: normal; font-size: 13px; font-weight: 800; color: #c0262d; white-space: nowrap; }
@media (min-width: 1024px) {
  .pt-acm { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; padding: 28px 24px 20px; }
  .pt-acm ol { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
