/* ===== PewPew CI ===== */
@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_Rg.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_Bd.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_XBd.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-VariableFont_wght.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  /* Brand colors (PewPew CI-Brandbook) */
  --pp-green: #357a3b;
  --pp-light: #c2dfa5;
  --pp-yellow: #fccd2e;
  --pp-cream: #fefbe7;

  /* Dark UI built from the CI */
  --bg: #0b0d0a;
  --bg-2: #111410;
  --card: #151915;
  --line: #262c24;
  --text: var(--pp-cream);
  --muted: #a7ab9c;
  --accent: var(--pp-light);

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
  --font: "Nunito", "LINE Seed Sans TH", system-ui, sans-serif;
  --font-th: "LINE Seed Sans TH", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-th);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hl { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* sparkle mark (from the logo) */
.spark { display: inline-block; width: 26px; height: 22px; vertical-align: middle; margin-left: 6px; color: var(--pp-yellow); }
.spark.sm { width: 18px; height: 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 10, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: 12px; }
.main-nav a { position: relative; font-weight: 700; font-size: 15px; color: var(--text); opacity: .85; padding: 8px 0; transition: opacity .2s, color .2s; }
.main-nav a:hover { opacity: 1; color: var(--accent); }
.main-nav a.active { color: var(--accent); opacity: 1; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--pp-yellow); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; width: 240px; }
.search svg { width: 16px; height: 16px; flex: none; opacity: .7; }
.search input { background: none; border: 0; outline: 0; width: 100%; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.socials { display: flex; gap: 14px; }
.socials a { display: grid; place-items: center; width: 22px; height: 22px; opacity: .9; transition: color .2s, transform .2s; }
.socials a:hover { color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* ===== Cards (shared) ===== */
.card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(194, 223, 165, .45); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.card .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 14px 16px 16px; }
.card h3 { font-size: 16px; font-weight: 700; line-height: 1.45; }
.card p.excerpt { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.date { display: block; font-family: var(--font); font-size: 12px; color: var(--muted); margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--pp-light); color: #1d3a1f;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 5px 10px; border-radius: 999px;
}
.tag.yellow { background: var(--pp-yellow); color: #2b2408; }
.tag.outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.thumb .tag { position: absolute; left: 12px; bottom: 12px; }
.arrow-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(254, 251, 231, .55); transition: .2s; flex: none; }
.arrow-btn svg { width: 14px; height: 14px; }
.card:hover .arrow-btn { background: var(--accent); border-color: var(--accent); color: #1d3a1f; }
.card-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* overlay cards (image with text on top) */
.card.overlay .thumb { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
.card.overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.82) 100%); pointer-events: none; }
.card.overlay .overlay-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; }
.card.overlay .overlay-body .date { color: rgba(254, 251, 231, .8); }
.card.overlay .thumb .tag { display: none; }

/* ===== Hero ===== */
.hero { padding: 24px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; }
.hero-main { min-height: 520px; border-radius: var(--radius-lg); }
.hero-main .overlay-body { padding: 36px 40px; }
.hero-main h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; line-height: 1.18; margin-top: 14px; }
.hero-main p.lead { font-size: 17px; color: rgba(254, 251, 231, .88); margin-top: 12px; max-width: 560px; }
.hero-main .card-row { margin-top: 18px; }
.hero-main .arrow-btn { width: 44px; height: 44px; }
.hero-main .arrow-btn svg { width: 18px; height: 18px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.hero-side .card { min-height: 250px; }
.hero-side h2 { font-size: 21px; font-weight: 700; line-height: 1.35; margin-top: 10px; }

/* ===== Section heads ===== */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head h3 { font-size: 22px; font-weight: 800; }
.see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 14px; }
.see-all svg { width: 16px; height: 16px; transition: transform .2s; }
.see-all:hover svg { transform: translateX(4px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ===== Category bubbles ===== */
.cats { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; cursor: pointer; background: none; border: 0; }
.cat .bubble { position: relative; width: 108px; height: 108px; border-radius: 50%; padding: 5px; border: 2px solid var(--line); transition: border-color .25s, transform .25s; }
.cat .bubble img, .cat .bubble .icon { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cat .bubble .icon { display: grid; place-items: center; background: var(--card); }
.cat .bubble .icon svg { width: 40px; height: 40px; }
.cat:hover .bubble { transform: translateY(-4px); border-color: rgba(194, 223, 165, .6); }
.cat.active { color: var(--accent); }
.cat.active .bubble { border: 3px solid var(--accent); }
.cat.active .bubble::after { content: ""; position: absolute; right: -14px; top: -14px; width: 26px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cg fill='%23fccd2e'%3E%3Crect x='3' y='1' width='4' height='11' rx='1' transform='rotate(-25 5 6)'/%3E%3Crect x='10' y='4' width='14' height='4' rx='1' transform='rotate(-25 17 6)'/%3E%3Crect x='11' y='13' width='13' height='4' rx='1'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }

/* ===== Feature sections (intro + big card) ===== */
.feature { display: grid; grid-template-columns: 1fr 2.05fr; gap: 40px; align-items: center; }
.feature-intro .tag { margin-bottom: 18px; }
.feature-intro h2 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; line-height: 1.15; }
.feature-intro p { color: var(--muted); margin: 18px 0 26px; font-size: 15px; max-width: 340px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; transition: .2s; }
.btn-outline svg { width: 16px; height: 16px; }
.btn-outline:hover { background: var(--accent); color: #1d3a1f; }
.feature-card { min-height: 380px; border-radius: var(--radius-lg); }
.feature-card h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.3; margin-top: 10px; }
.feature-card p { color: rgba(254, 251, 231, .82); font-size: 14px; margin-top: 8px; max-width: 520px; }
.feature-card .card-row .arrow-btn { width: 38px; height: 38px; }
.feature + .grid-3, .feature + .sub-head { margin-top: 28px; }
.sub-head { margin-top: 40px; }

/* ===== Video ===== */
.play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(254, 251, 231, .92); color: #111; transition: transform .25s, background .25s; }
.play svg { width: 26px; height: 26px; margin-left: 4px; }
.card:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--pp-yellow); }
.play.sm { width: 46px; height: 46px; top: 50%; }
.play.sm svg { width: 18px; height: 18px; margin-left: 3px; }
.duration { position: absolute; right: 12px; bottom: 12px; z-index: 3; font-family: var(--font); font-weight: 700; font-size: 12px; background: rgba(0,0,0,.75); padding: 2px 8px; border-radius: 6px; }
.feature-card .duration { right: 20px; bottom: 20px; }
.video-meta { display: flex; justify-content: space-between; font-family: var(--font); font-size: 12px; color: var(--muted); margin-top: 10px; }
.video-meta span { display: inline-flex; align-items: center; gap: 5px; }
.video-meta svg { width: 14px; height: 14px; }

/* ===== Newsletter ===== */
.newsletter { position: relative; padding: 72px 0 0; overflow: hidden; }
.nl-inner { position: relative; display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 40px; align-items: center; }
.nl-note { font-family: var(--font-th); color: var(--pp-yellow); font-size: 14px; transform: rotate(-6deg); display: inline-block; margin-bottom: 14px; line-height: 1.35; }
.nl-title { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; line-height: 1.2; }
.nl-sub { color: var(--muted); font-size: 14px; margin-top: 10px; }
.nl-form { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 20px; align-items: center; }
.nl-form svg { width: 18px; height: 18px; opacity: .7; flex: none; }
.nl-form input[type=email] { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; padding: 8px 0; }
.nl-form input::placeholder { color: var(--muted); }
.nl-form:focus-within { border-color: var(--accent); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #1d3a1f; font-weight: 800; border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.btn-primary svg { width: 16px; height: 16px; }
.btn-primary:hover { background: var(--pp-yellow); transform: translateY(-1px); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-top: 12px; padding-left: 8px; cursor: pointer; }
.consent input { accent-color: var(--pp-green); margin-top: 3px; }
.nl-msg { font-size: 14px; color: var(--accent); margin-top: 10px; padding-left: 8px; min-height: 1.4em; }
.nl-mascot { position: relative; width: 240px; }
.nl-mascot img { width: 100%; }
.bubble-say { position: absolute; left: -36px; top: -36px; background: var(--pp-yellow); color: #2b2408; font-weight: 800; font-size: 14px; line-height: 1.25; text-align: center; padding: 16px 14px; border-radius: 50% 50% 50% 12%; width: 108px; height: 96px; display: grid; place-items: center; transform: rotate(-8deg); }
.photo-strip { display: flex; gap: 14px; margin-top: 56px; padding: 0 0 4px; transform: rotate(-1.5deg); width: 110%; margin-left: -5%; }
.photo-strip img { flex: 1 1 0; min-width: 0; height: 170px; object-fit: cover; border-radius: 12px; }
.photo-strip img:nth-child(odd) { transform: translateY(10px) rotate(1deg); }
.photo-strip img:nth-child(even) { transform: rotate(-1deg); }

/* ===== Footer ===== */
.site-footer { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 0; margin-top: 40px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1.4fr; gap: 32px; position: relative; z-index: 1; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 20px; max-width: 280px; }
.footer-col h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.follow li a { display: flex; gap: 10px; align-items: flex-start; }
.follow svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--text); }
.follow strong { display: block; color: var(--text); font-size: 13px; }
.follow small { display: block; font-size: 12px; color: var(--muted); }
.footer-cta h4 { font-size: 16px; }
.footer-cta p { color: var(--muted); font-size: 14px; }
.footer-mascot { position: absolute; right: -40px; bottom: 30px; width: 380px; opacity: .14; pointer-events: none; }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0; font-family: var(--font); font-size: 13px; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; font-family: var(--font-th); }
.to-top span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: .2s; }
.to-top svg { width: 14px; height: 14px; }
.to-top:hover span { background: var(--accent); color: #1d3a1f; border-color: var(--accent); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .main-nav { gap: 20px; }
  .search { width: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nl-inner { grid-template-columns: 1fr 1fr; }
  .nl-mascot { display: none; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; margin-left: auto; }
  .header-tools { display: none; }
  .main-nav {
    position: fixed; top: 84px; left: 0; right: 0; height: calc(100vh - 84px); height: calc(100dvh - 84px);
    flex-direction: column; gap: 0; margin: 0; padding: 12px 24px;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .main-nav a { font-size: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .main-nav .mobile-search { display: flex; margin: 20px 0 12px; width: 100%; }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  body.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature-intro p { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cats { overflow-x: auto; justify-content: flex-start; gap: 22px; padding-bottom: 6px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat .bubble { width: 88px; height: 88px; }
  .cat { flex: none; padding-top: 14px; }
}
@media (min-width: 961px) { .main-nav .mobile-search { display: none; } }
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { height: 70px; }
  .brand img { height: 42px; }
  .main-nav { top: 70px; height: calc(100vh - 70px); height: calc(100dvh - 70px); }
  .hero { padding-bottom: 40px; }
  .hero-main { min-height: 440px; }
  .hero-main .overlay-body { padding: 22px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side .card { min-height: 220px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { gap: 12px; }
  .card .body { padding: 10px 12px 12px; }
  .card h3 { font-size: 14px; }
  .feature-card { min-height: 300px; }
  .nl-inner { grid-template-columns: 1fr; gap: 24px; }
  .nl-form { flex-wrap: wrap; border-radius: 18px; padding: 10px 10px 10px 16px; }
  .nl-form .btn-primary { width: 100%; justify-content: center; }
  .photo-strip img { height: 110px; }
  .photo-strip img:nth-child(n+6) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* =====================================================
   Article detail page
   ===================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--pp-yellow)); transform-origin: 0 50%; transform: scaleX(0); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 24px 0 8px; font-size: 13px; color: var(--muted); list-style: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "›"; color: var(--accent); margin-right: 10px; }
.crumbs [aria-current] { color: var(--text); opacity: .8; }

/* head */
.article-head { max-width: 900px; margin: 0 auto; text-align: center; padding: 28px 0 30px; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.25; margin: 18px 0 14px; letter-spacing: -.01em; }
.article-head .dek { font-size: 17px; color: #c9ccbd; line-height: 1.8; max-width: 740px; margin: 0 auto; }
.byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pp-green); display: grid; place-items: center; overflow: hidden; }
.byline .avatar img { width: 78%; }
.byline strong { color: var(--text); }
.byline .sep { color: var(--pp-yellow); }

/* hero image */
.article-hero { position: relative; margin: 6px 0 22px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--card); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(8, 10, 7, .75)); }
.article-hero .tag { position: absolute; left: 24px; bottom: 22px; z-index: 1; }
.article-hero figcaption { position: absolute; right: 24px; bottom: 24px; z-index: 1; font-size: 12px; color: rgba(254, 251, 231, .75); }

/* AI summary bar */
.ai-bar { max-width: 960px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; background: var(--card); border: 1px solid #2d3826; border-radius: var(--radius); }
.ai-copy { display: flex; align-items: center; gap: 12px; }
.ai-copy .ai-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(53, 122, 59, .35); color: var(--pp-yellow); }
.ai-copy .ai-icon svg { width: 22px; height: 18px; }
.ai-copy strong { display: block; font-size: 15px; }
.ai-copy small { display: block; font-size: 12px; color: var(--muted); }
.ai-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #384331; border-radius: 999px; font-family: var(--font); font-size: 13px; font-weight: 700; transition: .2s; }
.ai-links a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ai-links a:hover { border-color: var(--accent); color: var(--accent); background: rgba(194, 223, 165, .06); }

.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 30px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; cursor: pointer; transition: .2s; }
.chip-btn svg { width: 16px; height: 16px; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.chip-btn.primary { background: var(--accent); border-color: var(--accent); color: #1d3a1f; }
.chip-btn.primary:hover { background: var(--pp-yellow); border-color: var(--pp-yellow); color: #2b2408; }
.chip-btn.on:not(.primary) { color: var(--pp-yellow); border-color: var(--pp-yellow); }
.chip-btn.on svg { fill: currentColor; }

/* TOC */
.article-wrap { max-width: 780px; margin: 0 auto; }
.toc { margin: 0 0 36px; background: var(--card); border: 1px solid #35452c; border-radius: var(--radius); overflow: hidden; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 800; color: var(--accent); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; }
.toc summary .chev { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--pp-yellow); transition: transform .25s; flex: none; }
.toc summary .chev svg { width: 14px; height: 14px; transform: rotate(90deg); }
.toc[open] summary .chev { transform: rotate(180deg); }
.toc summary:hover .chev { border-color: var(--accent); }
.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding: 0 20px 14px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; color: #b9bfae; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font); font-weight: 800; font-size: 12px; color: var(--pp-yellow); padding-top: 2px; }
.toc a:hover, .toc a.active { color: var(--accent); }

/* body */
.article-body { font-size: 17px; line-height: 1.95; color: #d3d6ca; }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-size: 28px; line-height: 1.4; font-weight: 800; color: var(--text); margin-top: 56px; padding-left: 16px; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 20px; font-weight: 800; color: var(--accent); margin-top: 34px; }
.article-body h2 + p, .article-body h3 + p { margin-top: 12px; }
.article-body strong { color: var(--text); }
.article-body a:not(.card) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body h2, .article-body h3, .faq { scroll-margin-top: 104px; }
.takeaways { background: linear-gradient(130deg, rgba(53, 122, 59, .28), rgba(21, 25, 21, .9)); border: 1px solid #466332; border-radius: 16px; padding: 22px 26px; }
.article-body .takeaways h2 { all: unset; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--accent); }
.takeaways ul { padding-left: 20px; margin-top: 10px; }
.takeaways li { padding: 3px 0; }
.takeaways li::marker { color: var(--pp-yellow); }
.photo { margin-top: 34px; margin-bottom: 34px; }
.photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.quote { font-size: 22px; line-height: 1.6; font-weight: 700; color: var(--text); border-left: 3px solid var(--pp-yellow); background: var(--card); padding: 20px 24px; border-radius: 0 12px 12px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.table-wrap th { text-align: left; background: rgba(53, 122, 59, .35); color: var(--accent); font-weight: 800; }
.table-wrap th, .table-wrap td { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--pp-yellow); font-weight: 700; }
.info-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; list-style: none; }
.info-box li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.info-box li:last-child { border-bottom: 0; }
.info-box svg { width: 18px; height: 18px; flex: none; margin-top: 6px; color: var(--pp-yellow); }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; }
.hashtags a { font-size: 13px; border: 1px solid #38432f; color: #c4cbb6 !important; text-decoration: none !important; border-radius: 999px; padding: 6px 14px; transition: .2s; }
.hashtags a:hover { border-color: var(--accent); color: var(--accent) !important; }

/* FAQ */
.faq { margin-top: 56px; }
.faq h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 800; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font); font-size: 22px; line-height: 1; color: var(--pp-yellow); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 18px; color: #c3c7b8; font-size: 16px; }
.refs { font-size: 14px; color: var(--muted); }

/* author */
.author-box { display: flex; gap: 20px; align-items: center; margin-top: 48px; padding: 24px; background: var(--card); border: 1px solid #2b3822; border-radius: 16px; }
.author-box .pic { width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--pp-green); display: grid; place-items: center; }
.author-box .pic img { width: 72%; }
.author-box small { font-size: 12px; font-weight: 700; color: var(--pp-yellow); letter-spacing: .02em; }
.author-box h3 { font-size: 19px; font-weight: 800; color: var(--text); margin: 2px 0 6px; }
.author-box p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.author-box .socials { margin-top: 10px; }
.author-box .socials a { text-decoration: none; color: var(--text); }

/* related / latest */
.related-sec { margin-top: 72px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* inline newsletter card */
.nl-card { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 32px 40px; border-radius: var(--radius-lg); background: linear-gradient(110deg, rgba(53, 122, 59, .45), var(--card)); border: 1px solid #354c2c; }
.nl-card h2 { font-size: 26px; font-weight: 800; }
.nl-card p { font-size: 14px; color: #c1c8b4; }
.nl-card form { flex: 1 1 360px; max-width: 460px; }
.nl-card .nl-msg { padding-left: 20px; margin-top: 8px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: #111; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .article-hero { aspect-ratio: 16 / 9; }
  .ai-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .crumbs { padding-top: 16px; font-size: 12px; }
  .crumbs li:last-child { display: none; }
  .article-head { padding: 16px 0 22px; }
  .article-head .dek { font-size: 15px; }
  .byline { font-size: 12px; }
  .article-hero { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-left: -4px; margin-right: -4px; }
  .article-hero figcaption { display: none; }
  .article-hero .tag { left: 16px; bottom: 16px; }
  .ai-bar { padding: 16px; }
  .ai-links { gap: 6px; }
  .ai-links a { padding: 7px 12px; font-size: 12px; }
  .chip-btn { padding: 8px 14px; font-size: 12px; }
  .toc ol { grid-template-columns: 1fr; }
  .article-body { font-size: 16px; line-height: 1.9; }
  .article-body h2 { font-size: 23px; margin-top: 44px; }
  .article-body h3 { font-size: 18px; }
  .takeaways { padding: 18px 20px; }
  .quote { font-size: 19px; padding: 16px 18px; }
  .author-box { flex-direction: column; text-align: center; padding: 22px 18px; }
  .author-box .socials { justify-content: center; }
  .related-sec { margin-top: 48px; }
  .nl-card { padding: 24px 20px; }
  .nl-card h2 { font-size: 22px; }
}

/* ===== Draft placeholders (remove once real content is in) ===== */
.ph { display: inline; padding: 1px 8px; border-radius: 6px; border: 1px dashed var(--pp-yellow); background: rgba(252, 205, 46, .1); color: var(--pp-yellow); font-size: .9em; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ph-img { width: 100%; height: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; border: 2px dashed rgba(252, 205, 46, .6); border-radius: var(--radius); background: repeating-linear-gradient(135deg, rgba(252, 205, 46, .05) 0 14px, transparent 14px 28px), var(--card); color: var(--pp-yellow); }
.ph-img strong { font-size: 18px; font-weight: 800; }
.ph-img span { font-size: 14px; color: var(--text); opacity: .85; }
.ph-img small { font-family: var(--font); font-size: 12px; color: var(--muted); }
.article-hero .ph-img { border-radius: 0; border: 0; }
.article-hero:has(.ph-img)::after { display: none; }

/* ===== Sponsored disclosure + promo ===== */
.disclosure { margin-top: 14px; font-size: 12px; color: var(--muted); }
.disclosure::before { content: "Sponsored"; font-family: var(--font); font-weight: 800; font-size: 11px; color: #2b2408; background: var(--pp-yellow); border-radius: 999px; padding: 2px 8px; margin-right: 8px; }
.promo-box { border: 1px solid rgba(252, 205, 46, .45); background: linear-gradient(130deg, rgba(252, 205, 46, .1), var(--card) 60%); border-radius: 16px; padding: 22px 26px; }
.promo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--pp-yellow); }
.promo-box ul { list-style: none; margin: 14px 0; display: grid; gap: 8px; }
.promo-box li { padding-left: 18px; position: relative; line-height: 1.6; font-size: 15px; }
.promo-box li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.promo-box li strong { font-family: var(--font); color: var(--pp-yellow); letter-spacing: .02em; }
.promo-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.promo-box .btn-primary { text-decoration: none !important; color: #1d3a1f !important; }
.promo-box .ph { margin-left: 10px; }
@media (max-width: 640px) {
  .promo-box { padding: 18px; }
  .promo-box .btn-primary { width: 100%; justify-content: center; }
  .promo-box .ph { display: inline-block; margin: 10px 0 0; }
}
.nw { white-space: nowrap; }

/* ===== Article image ratios & steps ===== */
.article-hero.ratio-16x9 { aspect-ratio: 16 / 9; }
.article-hero.ratio-16x9::after { inset: 70% 0 0; }
.photo.ratio-5x4 img { aspect-ratio: 5 / 4; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; margin-bottom: 34px; }
.photo-pair .photo { margin: 0; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; line-height: 1.7; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-yellow); color: #2b2408; font-family: var(--font); font-weight: 800; font-size: 15px; margin-top: 2px; }
.tip-note { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed rgba(194, 223, 165, .5); border-radius: 14px; padding: 14px 18px; font-size: 15px; }
.tip-note svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 4px; }
@media (max-width: 640px) {
  .article-hero.ratio-16x9 { aspect-ratio: 16 / 9; margin-left: 0; margin-right: 0; }
  .photo-pair { grid-template-columns: 1fr; }
}
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
