/* Đá Gà Campuchia News: warm ink and cream, rooster red, one accent per silo */
:root {
  --ink: #17120e; --ink-2: #251d17; --ink-3: #3a2f26;
  --paper: #f5eee3; --card: #fffaf2; --line: #e2d6c4; --line-dark: #4a3c30;
  --text: #221b15; --muted: #6c6157; --on-ink: #f6eee2; --on-ink-muted: #c9bba8;
  --red: #c4381f; --red-dark: #9c2914; --gold: #c99a3e;
  --c-tin-tuc: #c4381f; --c-thomo: #b07a24; --c-truc-tiep: #1f5866; --c-kien-thuc: #3f6b35; --c-giong-ga: #7a4a8c;
  --radius: 14px; --shadow: 0 1px 2px rgba(23,18,14,.08), 0 8px 24px rgba(23,18,14,.10);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* header */
.top { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line-dark); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 40px; height: 40px; flex-shrink: 0; transition: transform .3s ease; }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.brand-name { font: 800 21px/1.1 var(--serif); letter-spacing: .2px; }
.brand-name small { display: inline-block; margin-left: 6px; padding: 2px 6px 1px; border-radius: 4px; background: var(--red);
  font: 700 11px/1.3 var(--sans); letter-spacing: 1.5px; vertical-align: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { position: relative; text-decoration: none; padding: 9px 12px; border-radius: 8px; font: 500 15px/1.2 var(--sans); color: var(--on-ink-muted);
  transition: color .2s ease, background-color .2s ease; }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover, .nav a:focus-visible { color: #fff; background: rgba(196, 56, 31, .16); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--gold); }
.nav a[aria-current]::after { transform: scaleX(1); background: var(--gold); }
.age { flex-shrink: 0; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 3px 9px; font: 700 12px/1.2 var(--sans); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 9px; background: transparent; border: 1px solid var(--line-dark); color: var(--on-ink);
  border-radius: 10px; padding: 9px 13px; font: 600 15px var(--sans); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.burger { position: relative; width: 18px; height: 14px; display: inline-block; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* site description under the menu bar */
.intro { background: var(--ink-2); color: var(--on-ink-muted); border-bottom: 1px solid var(--line-dark); }
.intro .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 11px; padding-bottom: 11px; }
.intro p { margin: 0; font-size: 15px; line-height: 1.5; }
.since { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-dark); border-radius: 999px; padding: 4px 12px 4px 4px;
  font: 500 13px/1.2 var(--sans); color: var(--on-ink); }
.since b { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 4px 9px; font-weight: 700; }

/* hero: Patrick's Figma (2026-11-06). Lead story large on the left, the next two stacked on the right; the text sits on the
   image over a gradient that darkens toward the text */
.hero { background: var(--ink); color: var(--on-ink); padding: 28px 0 40px; overflow-x: clip; }
.kicker { font: 700 13px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 250px 250px; gap: 16px; }
.story { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); isolation: isolate; }
.story.lead { grid-row: 1 / span 2; }
.story .media { position: absolute; inset: 0; z-index: -2; }
.story .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story:hover .media img { transform: scale(1.03); }
.story .shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23,18,14,0) 25%, rgba(23,18,14,.55) 52%, rgba(23,18,14,.88) 78%, rgba(23,18,14,.94) 100%); }
.story .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px 24px; display: flex; flex-direction: column; align-items: center;
  gap: 9px; text-align: center; }
.cat { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1.2 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--red)); }
.story .cat { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.story.side .shade { background: linear-gradient(180deg, rgba(23,18,14,.18) 0%, rgba(23,18,14,.62) 32%, rgba(23,18,14,.9) 62%, rgba(23,18,14,.95) 100%); }
.story h2 { margin: 0; font: 700 21px/1.28 var(--serif); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.story.lead h2 { font-size: 31px; }
.story p { margin: 0; color: #e9dfd2; font-size: 15px; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story.lead p { font-size: 16px; -webkit-line-clamp: 3; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; margin-top: 4px;
  font: 600 15px/1 var(--sans); padding: 11px 18px; border-radius: 999px; transition: background-color .15s, transform .15s; }
.cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.cta svg { width: 16px; height: 16px; }
.cta::after { content: ''; position: absolute; inset: 0; }   /* the whole card is clickable through the CTA */

/* about */
.about { padding: 44px 0; border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.about h2 { font: 800 30px/1.2 var(--serif); margin: 0 0 12px; }
.about p { margin: 0 0 14px; color: var(--muted); }
.about ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 48px; position: relative; font-weight: 500; }
.about li::before { content: ''; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.about .links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; }

/* sections with an interactive card deck */
.sec { padding: 52px 0; --c: var(--red); overflow-x: clip; }
.sec:nth-of-type(even) { background: #efe6d8; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { margin: 0 0 6px; font: 800 30px/1.2 var(--serif); display: flex; align-items: center; gap: 12px; }
.sec-head h2::before { content: ''; width: 6px; height: 28px; border-radius: 3px; background: var(--c); }
.sec-head p { margin: 0; color: var(--muted); max-width: 640px; }
.see-all { flex-shrink: 0; font-weight: 600; color: var(--c); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.deck-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 44px; align-items: start; }
.deck { position: relative; height: 470px; touch-action: pan-y; outline: none; }
.deck-cards { list-style: none; margin: 0; padding: 0; position: relative; height: 100%; }
.dcard { position: absolute; inset: 0 22px 22px 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transform-origin: 50% 100%; user-select: none;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease; will-change: transform; }
.dcard a { display: flex; flex-direction: column; height: 100%; text-decoration: none; -webkit-user-drag: none; }
.dcard .media { flex-shrink: 0; aspect-ratio: 16 / 10; background: #e8dccb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dcard .media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dcard .media.small img { width: auto; height: auto; max-height: 100%; object-fit: contain; }
.dcard .txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dcard .cat { color: var(--c); }
.dcard h3 { margin: 0; font: 700 21px/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dcard p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard .more { margin-top: auto; font-weight: 600; color: var(--c); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.dcard .more svg { width: 16px; height: 16px; flex-shrink: 0; }
.dcard[data-pos="0"] { cursor: grab; }
.dcard.dragging { transition: none; cursor: grabbing; }
.dcard.thrown { opacity: 0; }
.deck-ctl { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.deck-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--c); background: var(--card); color: var(--c); display: grid; place-items: center; cursor: pointer; }
.deck-btn:hover { background: var(--c); color: #fff; }
.deck-btn svg { width: 18px; height: 18px; }
.deck-count { font: 600 15px var(--sans); color: var(--muted); min-width: 64px; text-align: center; }
.deck-hint { font-size: 14px; color: var(--muted); margin-left: auto; }
.deck-list { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--line); }
.deck-list li { border-bottom: 1px solid var(--line); }
.deck-list button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 8px 14px 48px; position: relative; cursor: pointer;
  font: 500 16px/1.45 var(--sans); color: var(--text); border-radius: 8px; }
.deck-list button::before { counter-increment: n; content: counter(n, decimal-leading-zero); position: absolute; left: 8px; top: 14px;
  font: 700 15px/1.45 var(--serif); color: var(--muted); }
.deck-list button:hover { background: rgba(0,0,0,.035); }
.deck-list button[aria-current="true"] { color: var(--c); font-weight: 600; }
.deck-list button[aria-current="true"]::before { color: var(--c); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 40px 0 28px; font-size: 15px; }
.foot .notice { display: flex; gap: 14px; align-items: flex-start; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 16px 18px; margin-bottom: 28px; color: var(--on-ink); }
.foot .notice b { flex-shrink: 0; border: 2px solid var(--gold); color: var(--gold); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; font: 800 14px var(--sans); }
.foot .notice p { margin: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h3 { color: var(--on-ink); font: 700 16px var(--sans); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-ink); }
.foot .copy { border-top: 1px solid var(--line-dark); margin-top: 28px; padding-top: 18px; font-size: 14px; }

@media (max-width: 960px) {
  .about .wrap, .deck-wrap, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-rows: 220px 220px; }
  .story.lead h2 { font-size: 26px; }
  .deck-wrap { gap: 22px; }
  .deck { height: 450px; max-width: 460px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 6px 0 12px;
    border-bottom: 1px solid var(--line-dark); box-shadow: 0 18px 30px rgba(0,0,0,.35);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .25s ease; }
  .nav a { border-radius: 0; padding: 15px 20px; font-size: 17px; border-left: 3px solid transparent; display: flex; justify-content: space-between; align-items: center; }
  .nav a::after { position: static; width: 8px; height: 8px; border-radius: 0; background: none; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg); opacity: .5; transition: opacity .2s ease, transform .2s ease; }
  .nav a:hover, .nav a:focus-visible, .nav a:active { background: var(--ink-2); border-left-color: var(--red); color: #fff; }
  .nav a:hover::after, .nav a:focus-visible::after { transform: translateX(3px) rotate(45deg); opacity: 1; background: none; }
  .nav a[aria-current] { border-left-color: var(--gold); }
  .nav a[aria-current]::after { transform: rotate(45deg); background: none; }
  .menu-btn { display: inline-flex; }
  .intro .wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 10px; padding-bottom: 12px; }
  .intro p { font-size: 14px; }
  .hero { padding: 20px 0 28px; }
  .hero-grid { grid-template-rows: 400px 270px; gap: 12px; }
  .story.lead p { -webkit-line-clamp: 2; }
  .story.lead { grid-row: auto; grid-column: 1 / span 2; }
  .story .body { padding: 14px 12px 14px; gap: 7px; }
  .story.lead .body { padding: 18px 18px 20px; }
  .story h2 { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .story.lead h2 { font-size: 24px; -webkit-line-clamp: 3; }
  .story p { font-size: 13px; }
  .story.side p { -webkit-line-clamp: 2; }
  .story.side .cat { font-size: 10px; letter-spacing: 1px; }
  .story.side .cta { padding: 9px 13px; font-size: 13px; }
  .age { display: none; }
  .nav .lang-sw { margin: 6px 12px 0; align-self: flex-start; }
  .brand-name { font-size: 17px; }
  .brand-name small { font-size: 10px; padding: 2px 5px 1px; margin-left: 5px; }
  .brand { gap: 9px; }
  .brand svg { width: 34px; height: 34px; }
  .top .wrap { gap: 10px; min-height: 60px; }
  .menu-btn { padding: 8px 11px; gap: 7px; font-size: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head h2, .about h2 { font-size: 25px; }
  .deck { height: 430px; }
  .dcard { inset: 0 30px 22px 0; }
  .deck-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dcard, .cta, .nav, .nav a, .story .media img, .burger i, .brand svg { transition: none; }
}

/* ---------- inner pages: articles, betting pages, hubs, trust pages ---------- */
.post { padding: 26px 0 10px; }
.post-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.post > .post-wrap > .cat, .hub .cat { color: var(--c); }
.post h1, .hub h1 { font: 800 36px/1.22 var(--serif); margin: 10px 0 14px; letter-spacing: -.2px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.meta .by { color: var(--text); font-weight: 600; }
.meta .checked { display: inline-flex; align-items: center; gap: 5px; color: var(--c-kien-thuc); font-weight: 600; }
.meta .checked svg, .updated svg { width: 15px; height: 15px; flex-shrink: 0; }
.post-hero { margin: 22px 0 6px; background: #e8dccb; border-radius: var(--radius); overflow: hidden; display: flex; justify-content: center; }
.post-hero img { width: auto; max-width: 100%; }
.notice18 { display: flex; gap: 14px; align-items: flex-start; background: #fbf2e3; border: 1px solid #ecd4a8; border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 14px 16px; margin: 22px 0; font-size: 15px; line-height: 1.55; }
.notice18 b { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); color: #8a6420; display: grid; place-items: center; font: 800 13px var(--sans); }
.notice18 p { margin: 0; }
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.prose h2 { font: 700 27px/1.3 var(--serif); margin: 38px 0 12px; }
.prose h3 { font: 700 21px/1.35 var(--serif); margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-dark); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose th { background: #efe5d6; }
.prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--muted); }
.pimg { margin: 8px 0 24px; background: #e8dccb; border-radius: 12px; overflow: hidden; display: flex; justify-content: center; }
.pimg img { width: auto; max-width: 100%; }
.ref a { color: var(--red); text-decoration: none; font: 600 12px var(--sans); padding: 0 1px; }
.faq { margin: 40px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.faq h2, .sources h2, .update-note h2, .related h2, .hub-sec h2 { font: 800 26px/1.25 var(--serif); margin: 26px 0 14px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.qa h3 { margin: 0 0 6px; font: 600 17px/1.45 var(--sans); }
.qa p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.sources ol { margin: 0; padding-left: 22px; font-size: 15px; }
.sources li { margin-bottom: 8px; scroll-margin-top: 80px; }
.sources a { color: var(--text); font-weight: 600; }
.sources .url { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.updated { display: flex; gap: 8px; align-items: center; margin: 26px 0 0; padding: 12px 14px; background: #edf2e7; border-radius: 10px; color: #35552c; font-size: 14px; }
.updated a { color: inherit; }
.update-note { margin-top: 36px; border-top: 1px solid var(--line); }
.update-note > p { color: var(--muted); font-size: 16px; }
.archive { border: 1px dashed #bfae96; border-radius: 12px; background: #f1e9dc; margin-top: 10px; }
.archive summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 15px; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.archive summary::-webkit-details-marker { display: none; }
.archive summary::before { content: '+'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 15px/1 var(--sans); }
.archive[open] summary::before { content: '\2212'; }
.archive-body { padding: 4px 18px 18px; font-size: 15px; color: #5d5249; border-top: 1px dashed #bfae96; overflow-wrap: break-word; }
.archive-body h2 { font: 700 20px/1.3 var(--serif); }
.related { margin: 46px 0 30px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; }
.card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .media { aspect-ratio: 16 / 10; background: #e8dccb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media.small img { width: auto; height: auto; max-height: 100%; object-fit: contain; }
.card .txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card .cat { color: var(--c); }
.card h3 { margin: 0; font: 700 18px/1.35 var(--serif); }
.card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card time { margin-top: auto; font-size: 13px; color: var(--muted); }
.hub { padding: 26px 0 50px; }
.hub-intro { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0 0 22px; }
.hub-sec { margin-top: 34px; scroll-margin-top: 80px; }
.hub-sec > p { color: var(--muted); margin: -6px 0 16px; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1.5px solid var(--c-kien-thuc); color: var(--c-kien-thuc); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s; }
.chip span { background: var(--c-kien-thuc); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.chip:hover { background: var(--c-kien-thuc); color: #fff; }
.chip:hover span { background: #fff; color: var(--c-kien-thuc); }
.subhubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.subhub { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--ink); color: var(--on-ink-muted); border-radius: 14px; padding: 18px; border-left: 4px solid var(--c-thomo); }
.subhub b { color: var(--on-ink); font: 700 20px var(--serif); }
.subhub:hover { background: var(--ink-2); }
.contact { font-weight: 600; }
.contact.pending { color: var(--muted); font-style: italic; font-weight: 400; }
@media (max-width: 760px) {
  .post h1, .hub h1 { font-size: 27px; }
  .post-wrap { padding: 0 16px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .faq h2, .sources h2, .update-note h2, .related h2, .hub-sec h2 { font-size: 22px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hub-intro { font-size: 16px; }
}
.pimg { flex-direction: column; align-items: center; }
.pimg figcaption { padding: 8px 12px 10px; font-size: 14px; color: var(--muted); text-align: center; }
.updated span { flex: 1; }

/* phase 2 components (2026-11-06): photo credits, galleries, paper citations, drafts, match-pair tables, language note */
.post-hero { flex-direction: column; align-items: center; }
.post-hero figcaption, .gimg figcaption { font-size: 13px; line-height: 1.5; color: var(--muted, #6b5f52); padding: 8px 12px 10px; text-align: left; align-self: stretch; background: #f3ebdf; }
.post-hero figcaption a, .gimg figcaption a { color: inherit; }
.gallery { margin: 36px 0 8px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gimg { margin: 0; background: #e8dccb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.gimg img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gimg.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.citation { margin: 28px 0 0; padding: 16px 18px; border-left: 4px solid var(--c-kien-thuc); background: #f3ebdf; border-radius: 0 12px 12px 0; font-size: 15px; }
.citation b { display: block; margin-bottom: 4px; }
.citation p { margin: 4px 0; overflow-wrap: anywhere; }
.draft-flag { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 8px; background: #fff1c2; color: #6b4a00; font-weight: 600; font-size: 14px; }
.pairs { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
.pairs table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.pairs th, .pairs td { padding: 9px 10px; border-bottom: 1px solid #e2d6c4; text-align: left; white-space: nowrap; }
.pairs th { background: var(--ink, #17120e); color: #fff; font-weight: 600; }
.lang-note { margin-top: 28px; font-size: 15px; }
.lang-sw { margin-left: 8px; padding: 6px 10px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font: 600 14px/1 'Noto Sans Khmer', var(--sans); }
.lang-sw:hover, .lang-sw:focus-visible { background: rgba(196, 56, 31, .3); }
.km-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.km-list li { background: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.km-list a { font-weight: 600; }
.km-list span { font-size: 14px; color: var(--muted, #6b5f52); }
.vet-note { margin: 26px 0 0; padding: 14px 16px; border-radius: 12px; background: #eef4ea; border-left: 4px solid var(--c-kien-thuc); display: flex; gap: 12px; align-items: flex-start; }
.vet-note b { flex-shrink: 0; color: var(--c-kien-thuc); }
.vet-note p { margin: 0; font-size: 15px; }
.folk-note { margin: 18px 0 4px; padding: 14px 16px; border-radius: 12px; background: #fbf3df; border-left: 4px solid var(--c-thomo); display: flex; gap: 12px; align-items: flex-start; }
.folk-note b { flex-shrink: 0; color: #7a5410; }
.folk-note p { margin: 0; font-size: 15px; }
@media (max-width: 560px) { .folk-note, .vet-note { flex-direction: column; gap: 4px; } }
.trust-links { margin: 30px 0 0; padding: 16px 18px; background: #f3ebdf; border-radius: 12px; }
.trust-links h2 { font-size: 17px; margin: 0 0 8px; }
.trust-links ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
