/*
 * AI Tools directory — styled on the same palette and class names as the home
 * page, so the shared site-enhance.js light theme applies here unchanged.
 */
:root {
  --ink: #0c0a08;
  --paper: #f4eee4;
  --muted: #9a8f80;
  --gold: #e8b86d;
  --gold-2: #c4923a;
  --line: rgba(232, 184, 109, 0.22);
  --card: #16110c;
  --sans: Outfit, "Siemreap", ui-sans-serif, system-ui, sans-serif;
  --km: "Siemreap", "Khmer OS Siemreap", Outfit, sans-serif;
  --orbit-idle: #0c0a08;
  --orbit-hover: #1a140c;
  --orbit-lang: #1a140c;
  --menu-idle: #d8cbb8;
  --menu-hover: #e8b86d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 12% -10%, #e8b86d24, transparent 42%),
    radial-gradient(circle at 100% 0%, #3b2a1222, transparent 36%),
    var(--ink);
}

header.nav .wrap {
  width: min(1400px, calc(100% - 24px));
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

a {
  color: inherit;
}

.km {
  font-family: var(--km);
  line-height: 1.75;
  letter-spacing: 0;
  word-spacing: normal;
  overflow-wrap: anywhere;
}

.brand .role {
  letter-spacing: 0.04em;
}

/* ---------- header ---------- */

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(12, 10, 8, 0.78);
  border-bottom: 1px solid var(--line);
}

.navin {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.brand b {
  display: block;
  font-size: 15px;
}

.brand .role {
  display: block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav.links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

nav.links a {
  text-decoration: none;
  color: var(--menu-idle, #d8cbb8);
  white-space: nowrap;
}

nav.links a:hover,
nav.links a[aria-current="page"] {
  color: var(--menu-hover, var(--gold));
}

.google-orbit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
}

.google-orbit-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.google-orbit-spin {
  position: absolute;
  inset: -90%;
  background: conic-gradient(
    from 0deg,
    transparent 0 54%,
    #4285f4 60%,
    #ea4335 70%,
    #fbbc05 80%,
    #34a853 90%,
    #4285f4 96%,
    transparent 100%
  );
  opacity: 0;
  animation: google-orbit-rotate 1.6s linear infinite;
  animation-play-state: paused;
}

.google-orbit:hover .google-orbit-spin,
.google-orbit:focus-visible .google-orbit-spin,
.google-orbit[data-orbit="on"] .google-orbit-spin {
  opacity: 1;
  animation-play-state: running;
}

.google-orbit-fill {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--orbit-fill, var(--orbit-idle, #0c0a08));
  opacity: 0;
}

.google-orbit:hover .google-orbit-fill,
.google-orbit:focus-visible .google-orbit-fill,
.google-orbit[data-orbit="on"] .google-orbit-fill {
  opacity: 1;
}

.google-orbit > :not(.google-orbit-clip) {
  position: relative;
  z-index: 2;
}

nav.links a.google-orbit {
  padding: 8px 14px;
}

nav.links a.google-orbit:hover {
  --orbit-fill: var(--orbit-hover);
}

@keyframes google-orbit-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-orbit-spin {
    animation: none !important;
    opacity: 1;
    background: conic-gradient(#4285f4, #ea4335, #fbbc05, #34a853, #4285f4);
  }
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex: none;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(180deg, #f0c98a, var(--gold-2, #c4923a));
  color: #1a140c;
}

.lang {
  border: 1px solid var(--line);
  background: #1a140c;
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.menu-btn {
  display: none;
}

.en-only {
  display: none;
}

html[lang="en"] .en-only {
  display: inline;
}

html[lang="en"] .km-only {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 46px 0 30px;
}

.tag {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: #cfc3b2;
  margin: 0 0 12px;
  max-width: 620px;
}

.lead.km {
  font-size: 16px;
}

.hero-art {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.credit {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 10, 8, 0.86);
  font-size: 12px;
}

.credit img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.credit span {
  color: var(--muted);
}

/* ---------- stats ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin: 8px 0 30px;
}

.strip div {
  background: #14100c;
  padding: 16px;
}

.strip b {
  display: block;
  font-size: 20px;
  color: var(--gold);
}

.strip span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- controls ---------- */

.controls {
  position: sticky;
  top: 65px;
  z-index: 15;
  padding: 12px 0 10px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 28px -26px #000;
}

.searchrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search {
  position: relative;
  flex: 1 1 320px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  padding: 11px 16px 11px 42px;
  outline: none;
}

.search input:focus {
  border-color: var(--gold-2);
}

.search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--paper);
  font: inherit;
  font-size: 13.5px;
  padding: 10px 14px;
}

.count {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: thin;
}

.cats button {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: #eadcc8;
  font: inherit;
  font-size: 12.5px;
  padding: 8px 13px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.25;
}

.cats button .k {
  font-family: var(--km);
  color: var(--muted);
}

.cats button:hover {
  border-color: var(--gold-2);
}

.cats button[aria-pressed="true"] {
  background: linear-gradient(180deg, #f0c98a, var(--gold-2));
  border-color: transparent;
  color: #1a140c;
}

.cats button[aria-pressed="true"] .k {
  color: #4a3410;
}

/* ---------- post cards ---------- */

.posts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 0 8px;
}

.post {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1b1510, #120e0b);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.post:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 22px 44px -20px rgba(232, 184, 109, 0.55);
}

.post-hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.thumb,
.entry-cover {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, var(--t1), var(--t2));
  border-bottom: 1px solid var(--line);
}

.thumb::before,
.entry-cover::before {
  content: "";
  display: block;
  padding-top: 62%;
}

.thumb::after,
.entry-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(232, 184, 109, 0.22);
}

.entry-cover {
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 16px;
}

.entry-cover::before {
  padding-top: 48%;
}

.entry-cover::after {
  border-radius: 24px;
}

.thumb-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.thumb.is-shot .thumb-shot,
.entry-cover.is-shot .thumb-shot {
  object-position: top center;
}

.thumb.is-ready .thumb-shot,
.entry-cover.is-ready .thumb-shot {
  opacity: 1;
  transform: scale(1);
}

.thumb-shot.is-miss {
  display: none;
}

.post:hover .thumb.is-ready .thumb-shot,
.entry-cover.is-ready:hover .thumb-shot {
  transform: scale(1.07);
}

.thumb-veil {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 4, 0.55));
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.thumb.is-ready .thumb-veil,
.entry-cover.is-ready .thumb-veil {
  opacity: 1;
}

.thumb-logo {
  position: absolute;
  left: 12px;
  bottom: 12px;
  top: auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 11px;
  background: rgba(255, 253, 247, 0.96);
  padding: 5px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb.is-ready .thumb-logo,
.entry-cover.is-ready .thumb-logo {
  opacity: 1;
}

.thumb-logo.is-miss {
  display: none;
}

.thumb-host {
  position: absolute;
  left: 54px;
  bottom: 16px;
  top: auto;
  z-index: 3;
  max-width: calc(100% - 78px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.58);
  color: #f6efe4;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb.is-ready .thumb-host,
.entry-cover.is-ready .thumb-host {
  opacity: 1;
}

.thumb-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  font-size: 40px;
  line-height: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.thumb.is-ready .thumb-icon,
.entry-cover.is-ready .thumb-icon {
  display: none;
}

.thumb .letter,
.entry-cover .letter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.thumb.is-ready .letter,
.entry-cover.is-ready .letter {
  display: none;
}

.thumb-brand {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(232, 184, 109, 0.22), transparent 58%),
    linear-gradient(160deg, var(--t1), var(--t2));
}

.thumb.is-ready .thumb-brand,
.entry-cover.is-ready .thumb-brand {
  display: none;
}

.thumb-brand-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.96);
  padding: 10px;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.7);
}

.thumb-brand-mark.is-miss {
  display: none;
}

.thumb-brand strong {
  display: block;
  color: #fff8ec;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.thumb-brand em {
  display: block;
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

html.pf-light .thumb-brand strong {
  color: #1a140c;
}

html.pf-light .post:hover {
  box-shadow: 0 22px 44px -22px rgba(92, 61, 10, 0.28);
}

.post-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-cats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  color: #eadcc8;
}

.post-cats span.km {
  color: var(--muted);
}

.post h3 {
  margin: 2px 0 0;
  font-size: 17.5px;
  line-height: 1.3;
}

.post .meta {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.post p {
  margin: 0;
  color: #c4b8a6;
  line-height: 1.6;
  font-size: 14.5px;
}

.post p.km {
  color: var(--muted);
  font-size: 14px;
}

.more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.badge-free {
  border: 1px solid rgba(122, 186, 122, 0.4) !important;
  background: rgba(122, 186, 122, 0.12);
  color: #a6d6a6 !important;
}

/* ---------- pagination ---------- */

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 26px 0 8px;
}

.pager button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--paper);
  font: inherit;
  font-size: 13.5px;
  padding: 9px 13px;
  cursor: pointer;
  min-width: 42px;
}

.pager button:hover:not(:disabled) {
  border-color: var(--gold-2);
}

.pager button[aria-current="true"] {
  background: linear-gradient(180deg, #f0c98a, var(--gold-2));
  border-color: transparent;
  color: #1a140c;
  font-weight: 700;
}

.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 26px 0 44px;
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--gold);
}

@media (max-width: 1280px) {
  nav.links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  nav.links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset: 68px 16px auto;
    z-index: 30;
    background: #16110c;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    gap: 4px;
  }

  nav.links.open a {
    padding: 8px 10px;
  }
}

@media (max-width: 1000px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .posts {
    grid-template-columns: 1fr;
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  nav.links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  nav.links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset: 68px 16px auto;
    z-index: 30;
    background: #16110c;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    gap: 4px;
  }

  nav.links.open a {
    padding: 8px 10px;
  }

  .controls {
    top: 62px;
  }
}

/* ---------- light theme ----------
 * The shared site-enhance.js flips the palette variables; these rules cover
 * this page's own hard-coded surfaces. Thumbnail tiles keep their jewel
 * gradients in both themes, since white glyphs sit on them.
 */
html.pf-light {
  --orbit-idle: #f6f1e7;
  --orbit-hover: #efe8da;
  --orbit-lang: #fffdf7;
  --menu-idle: #8a5a10;
  --menu-hover: #5c3d0a;
}

html.pf-light header.nav {
  background: rgba(246, 241, 231, 0.9);
}

html.pf-light nav.links a,
html.pf-light nav.links a.google-orbit {
  color: #8a5a10;
}

html.pf-light nav.links a:hover,
html.pf-light nav.links a.google-orbit:hover,
html.pf-light nav.links a[aria-current="page"] {
  color: #5c3d0a;
}

html.pf-light .lang,
html.pf-light .lang.google-orbit {
  background: #fffdf7;
  color: #8a5a10;
  border-color: rgba(138, 90, 16, 0.35);
}

html.pf-light nav.links.open {
  background: #fffdf7;
}

html.pf-light .lead {
  color: #4a4238;
}

html.pf-light .strip div {
  background: #efe8da;
}

html.pf-light .post {
  background: linear-gradient(180deg, #fffdf7, #f7f2e7);
}

html.pf-light .post p {
  color: #4a4238;
}

html.pf-light .post p.km {
  color: #6d6457;
}

html.pf-light .post-cats span {
  color: #554d42;
}

html.pf-light .cats button {
  color: #4a4238;
}

html.pf-light .credit {
  background: rgba(255, 253, 247, 0.92);
}

html.pf-light .credit span {
  color: #6d6457;
}

html.pf-light .search input,
html.pf-light select,
html.pf-light .pager button {
  color: #1f1a14;
}

html.pf-light .post .meta,
html.pf-light .count {
  color: #6d6457;
}

html.pf-light .entry-head {
  background: #fffdf7;
}

/* ---------- single entry ---------- */

.back {
  display: inline-block;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}

.back:hover {
  color: var(--gold);
}

.entry {
  max-width: 760px;
  margin: 0 auto 40px;
}

.entry-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(22, 17, 12, 0.92);
}

.entry-icon {
  font-size: 40px;
  line-height: 1;
}

.entry-head h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.entry-head .tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.entry-head .meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.entry-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 6px;
}

.entry-cats a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #eadcc8;
  text-decoration: none;
}

.entry-cats a:hover {
  border-color: var(--gold-2);
  color: var(--gold);
}

.entry-body {
  word-spacing: normal;
  overflow-wrap: break-word;
}

.entry-body h2 {
  margin: 28px 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.entry-body p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #cfc3b2;
}

.entry-body a {
  color: var(--gold);
}

.web-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 9px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0c98a, var(--gold-2));
  color: #1a140c !important;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 650;
}

.web-chip img,
.web-chip .web-globe {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
}

.web-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-chip em {
  margin-left: auto;
  font-style: normal;
  opacity: 0.7;
}

.web-chip.find {
  background: rgba(232, 184, 109, 0.1);
  border: 1px solid var(--line);
  color: var(--gold) !important;
}

.web-chip:hover {
  filter: brightness(1.06);
}

.web-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(232, 184, 109, 0.12), rgba(232, 184, 109, 0.04)),
    #16110c;
}

.web-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.web-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: #fffdf7;
  border: 1px solid var(--line);
}

.web-mark img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.web-mark.ghost {
  background: rgba(232, 184, 109, 0.1);
  color: var(--gold);
}

.web-kicker {
  margin: 0 0 3px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.web-host {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.web-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f0c98a, var(--gold-2));
  color: #1a140c !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(196, 146, 58, 0.22);
}

.web-cta .web-globe {
  width: 16px;
  height: 16px;
}

.web-cta em {
  font-style: normal;
  opacity: 0.7;
}

.web-cta:hover {
  filter: brightness(1.06);
}

.web-cta.ghost,
.web-panel.find .web-cta {
  background: transparent;
  border: 1px solid var(--gold-2);
  color: var(--gold) !important;
  box-shadow: none;
}

.web-globe {
  width: 18px;
  height: 18px;
}

.catalog {
  margin: 8px 0 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.catalog h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.related {
  margin: 28px 0 8px;
}

.related h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.related-grid a,
.related-grid a.related-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: var(--card);
}

.related-grid a:hover {
  border-color: var(--gold-2);
}

.related-grid .thumb {
  border-bottom: 1px solid var(--line);
}

.related-grid .thumb-host,
.related-grid .letter {
  display: none;
}

.related-grid .thumb-logo {
  width: 28px;
  height: 28px;
  left: 10px;
  bottom: 10px;
}

.related-grid .thumb-brand-mark {
  width: 44px;
  height: 44px;
  padding: 7px;
  border-radius: 12px;
}

.related-grid .thumb-brand strong {
  font-size: 15px;
}

.related-copy {
  display: block;
  padding: 12px 14px 14px;
}

.related-grid strong {
  display: block;
  margin-bottom: 4px;
}

.related-copy > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

html.pf-light .catalog,
html.pf-light .related-grid a {
  background: #fffdf7;
}

html.pf-light .web-panel {
  background: linear-gradient(180deg, #fff8ea, #fffdf7);
}

html.pf-light .web-host {
  color: #1f1a14;
}

html.pf-light .web-chip.find,
html.pf-light .web-cta.ghost,
html.pf-light .web-panel.find .web-cta {
  color: #8a6918 !important;
}

@media (max-width: 720px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .web-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .web-cta {
    justify-content: center;
  }
}

.entry-body p.km {
  font-family: var(--km);
  line-height: 1.9;
  color: #c4b8a6;
}

.entry-body p.pending {
  color: var(--muted);
  font-size: 15px;
}

.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 13.5px;
}

.entry-nav a {
  color: var(--gold);
  text-decoration: none;
  max-width: 46%;
}

html.pf-light .entry-body p {
  color: #4a4238;
}

html.pf-light .entry-body p.km {
  color: #554d42;
}

html.pf-light .entry-cats a {
  color: #4a4238;
}

html.pf-light .back {
  color: #6d6457;
}

body.view-entry .hero,
body.view-entry .strip {
  display: none;
}

.stat-ico {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 2px;
}

.facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #eadcc8;
  background: var(--card);
}

.summary-box {
  margin: 8px 0 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(232, 184, 109, 0.08);
}

.summary-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.summary-box p {
  margin: 0 0 8px;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.feat-list,
.feat-mini {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 18px;
}

.feat-list li,
.feat-mini li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.feat-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 14px;
  line-height: 1.45;
}

.feat-list i,
.feat-mini i {
  font-style: normal;
  flex: none;
}

.feat-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 4px;
}

.feat-mini li {
  color: #cfc3b2;
  font-size: 13px;
  line-height: 1.4;
}

.related-grid em {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
}

.from-site {
  margin: 0 0 22px;
}

.yt-hero {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0a0806;
}

.yt-frame {
  position: relative;
  padding-top: 56.25%;
}

.yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-caption {
  margin: 0;
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: 13px;
}

.yt-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.yt-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
}

.yt-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.yt-thumb span {
  display: block;
  padding: 8px 10px 10px;
  color: #eadcc8;
  font-size: 12px;
  line-height: 1.4;
}

.still-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.feat-media {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.feat-cards {
  display: grid;
  gap: 12px;
  margin: 8px 0 22px;
}

.feat-card {
  display: grid;
  grid-template-columns: minmax(0, 160px) 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.feat-visual img,
.feat-visual video {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  font-size: 13.5px;
}

.media-links a {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 720px) {
  .yt-thumbs,
  .still-row,
  .feat-card {
    grid-template-columns: 1fr;
  }
}

html.pf-light .facts span,
html.pf-light .feat-list li {
  background: #fffdf7;
  color: #4a4238;
}

html.pf-light .summary-box {
  background: #fff6e4;
}

html.pf-light .feat-mini li {
  color: #554d42;
}

@media (max-width: 720px) {
  .feat-list {
    grid-template-columns: 1fr;
  }
}
