.syls-resource-template-page {
  background: #f5f5f7;
}

.syls-resource-single {
  --syls-resource-bg: #f5f5f7;
  --syls-resource-card: rgba(255, 255, 255, 0.82);
  --syls-resource-card-solid: #fff;
  --syls-resource-text: #111827;
  --syls-resource-muted: #6b7280;
  --syls-resource-soft: #eef0f4;
  --syls-resource-line: rgba(17, 24, 39, 0.08);
  --syls-resource-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --syls-resource-title-size: clamp(34px, 4.4vw, 58px);
  --syls-resource-heading-icon: "✦";
  color: var(--syls-resource-text);
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 72px;
}

.syls-resource-single * {
  box-sizing: border-box;
}

.syls-resource-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 42px;
  align-items: center;
  min-height: 430px;
}

.syls-resource-hero-copy {
  padding: 24px 6px;
}

.syls-resource-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: #3f4653;
  font-size: 14px;
  line-height: 1.2;
}

.syls-resource-hero h1 {
  margin: 18px 0 14px;
  color: var(--syls-resource-text);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

.syls-resource-summary {
  color: #2f3746;
  font-size: 18px;
  line-height: 1.72;
  max-width: 520px;
}

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

.syls-resource-byline {
  margin-top: 26px;
}

.syls-resource-author-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.syls-resource-avatar,
.syls-resource-author-avatar {
  border-radius: 50%;
}

.syls-resource-author-mini strong,
.syls-resource-author-mini em {
  display: block;
  font-style: normal;
}

.syls-resource-author-mini strong {
  font-size: 14px;
  font-weight: 700;
}

.syls-resource-author-mini em {
  margin-top: 3px;
  color: var(--syls-resource-muted);
  font-size: 12px;
}

.syls-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.syls-resource-button,
.syls-resource-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.syls-resource-button:hover,
.syls-resource-download-button:hover {
  transform: translateY(-1px);
}

.syls-resource-button.is-dark {
  background: #111319;
  color: #fff;
  box-shadow: 0 14px 32px rgba(17, 19, 25, 0.18);
}

.syls-resource-button.is-light {
  background: rgba(255, 255, 255, 0.9);
  color: #111319;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.syls-resource-hero-media {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #e9edf3;
  box-shadow: var(--syls-resource-shadow);
}

.syls-resource-hero-media img,
.syls-resource-hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.syls-resource-meta-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(150px, auto);
  gap: 0;
  align-items: center;
  margin: 34px 0 42px;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: var(--syls-resource-card);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.syls-resource-meta-item {
  min-width: 0;
  padding: 4px 18px;
  text-align: center;
}

.syls-resource-meta-item span,
.syls-resource-meta-item strong {
  display: block;
}

.syls-resource-meta-item span {
  color: var(--syls-resource-muted);
  font-size: 13px;
}

.syls-resource-meta-item strong {
  margin-top: 7px;
  color: var(--syls-resource-text);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 720;
}

.syls-resource-meta-download {
  display: flex;
  justify-content: flex-end;
  padding-left: 10px;
}

.syls-resource-download-button {
  min-width: 132px;
  background: #0071e3;
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 113, 227, 0.26);
}

.syls-resource-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.syls-resource-main {
  min-width: 0;
}

.syls-resource-section {
  margin-bottom: 34px;
}

.syls-resource-section h2,
.syls-resource-related h2 {
  margin: 0 0 20px;
  color: var(--syls-resource-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--syls-resource-line);
}

.syls-resource-richtext,
.syls-resource-wp-content {
  color: #1d2430;
  font-size: 15px;
  line-height: 1.9;
}

.syls-resource-richtext p,
.syls-resource-wp-content p {
  margin: 0 0 18px;
}

.syls-resource-section.is-note .syls-resource-richtext {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.06);
  color: #6b7280;
  font-size: 13px;
  line-height: 1.8;
}

.syls-resource-section.is-note .syls-resource-richtext p {
  margin: 0 0 6px;
}

.syls-resource-main > .syls-resource-section:last-child {
  margin-bottom: 18px;
}

.syls-resource-main > .syls-resource-section.is-note:last-child {
  margin-bottom: 18px;
}

.syls-resource-entry-content {
  margin-bottom: 24px;
}

.syls-resource-content-grid + .syls-resource-fullwidth,
body.syls-resource-template-post.syls-reader-ui .syls-resource-content-grid + .syls-resource-fullwidth,
body.single-post.syls-reader-ui .syls-resource-content-grid + .syls-resource-fullwidth {
  margin-top: 0 !important;
}

.syls-resource-native-download {
  scroll-margin-top: 92px;
  margin: 24px 0 34px;
}

.syls-resource-native-download:empty {
  display: none;
}

.syls-resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 42px;
}

.syls-resource-tags a {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #434b5c;
  font-size: 13px;
  text-decoration: none;
}

.syls-resource-sidebar {
  position: sticky;
  top: 92px;
}

.syls-resource-author-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: var(--syls-resource-card);
  box-shadow: var(--syls-resource-shadow);
  backdrop-filter: blur(18px);
}

.syls-resource-author-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.syls-resource-author-head strong {
  display: block;
  color: var(--syls-resource-text);
  font-size: 16px;
  font-weight: 760;
}

.syls-resource-author-head p {
  margin: 5px 0 0;
  color: var(--syls-resource-muted);
  font-size: 12px;
  line-height: 1.45;
}

.syls-resource-author-action {
  margin-top: 18px;
}

.syls-resource-author-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.syls-resource-author-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--syls-resource-line);
  text-align: center;
}

.syls-resource-author-stats strong,
.syls-resource-author-stats em {
  display: block;
  font-style: normal;
}

.syls-resource-author-stats strong {
  font-size: 15px;
}

.syls-resource-author-stats em {
  margin-top: 4px;
  color: var(--syls-resource-muted);
  font-size: 11px;
}

.syls-resource-author-hot,
.syls-resource-donation,
.syls-resource-share {
  margin-top: 24px;
}

.syls-resource-author-hot h3,
.syls-resource-share h3 {
  margin: 0 0 12px;
  color: var(--syls-resource-text);
  font-size: 14px;
}

.syls-resource-author-hot a {
  display: block;
  margin-top: 9px;
  color: #1c2433;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.syls-resource-donation {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5eee7, #fff);
  text-align: center;
}

.syls-resource-donation strong {
  display: block;
  font-size: 15px;
}

.syls-resource-donation p {
  margin: 8px 0 14px;
  color: var(--syls-resource-muted);
  font-size: 12px;
}

.syls-resource-donation a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 18px;
  border-radius: 10px;
  background: #111319;
  color: #fff;
  text-decoration: none;
}

.syls-resource-share .share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.syls-resource-related {
  margin: 44px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.syls-resource-related-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.syls-resource-related-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(221, 228, 239, 0.88);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(20, 31, 52, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.syls-resource-related-card:hover,
.syls-resource-related-card:focus-visible {
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 18px 42px rgba(20, 31, 52, 0.1);
  transform: translateY(-2px);
}

.syls-resource-related-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(118px, 9vw, 154px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--syls-resource-soft);
}

.syls-resource-related-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.syls-resource-related-card strong {
  display: block;
  flex: 1 1 auto;
  margin-top: 10px;
  color: var(--syls-resource-text);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.syls-resource-related-card em {
  display: block;
  margin-top: 6px;
  color: var(--syls-resource-muted);
  font-size: 11px;
  font-style: normal;
}

html[data-syls-theme="dark"] .syls-resource-template-page,
html[data-theme="dark"] .syls-resource-template-page,
body.dark-theme.syls-resource-template-page,
body.syls-resource-template-page.dark-theme {
  background: #0d1117;
}

html[data-syls-theme="dark"] .syls-resource-single,
html[data-theme="dark"] .syls-resource-single,
body.dark-theme .syls-resource-single,
body[data-theme="dark"] .syls-resource-single {
  --syls-resource-bg: #0d1117;
  --syls-resource-card: rgba(23, 29, 39, 0.78);
  --syls-resource-card-solid: #171d27;
  --syls-resource-text: #f4f7fb;
  --syls-resource-muted: #9aa4b2;
  --syls-resource-soft: #1f2937;
  --syls-resource-line: rgba(255, 255, 255, 0.1);
  --syls-resource-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

html[data-syls-theme="dark"] .syls-resource-summary,
html[data-syls-theme="dark"] .syls-resource-richtext,
html[data-syls-theme="dark"] .syls-resource-wp-content,
html[data-theme="dark"] .syls-resource-summary,
html[data-theme="dark"] .syls-resource-richtext,
html[data-theme="dark"] .syls-resource-wp-content,
body.dark-theme .syls-resource-summary,
body.dark-theme .syls-resource-richtext,
body.dark-theme .syls-resource-wp-content {
  color: #d8dee8;
}

html[data-syls-theme="dark"] .syls-resource-kicker,
html[data-theme="dark"] .syls-resource-kicker,
body.dark-theme .syls-resource-kicker,
html[data-syls-theme="dark"] .syls-resource-tags a,
html[data-theme="dark"] .syls-resource-tags a,
body.dark-theme .syls-resource-tags a {
  background: rgba(255, 255, 255, 0.1);
  color: #dce3ef;
}

html[data-syls-theme="dark"] .syls-resource-button.is-light,
html[data-theme="dark"] .syls-resource-button.is-light,
body.dark-theme .syls-resource-button.is-light,
html[data-syls-theme="dark"] .syls-resource-author-follow,
html[data-theme="dark"] .syls-resource-author-follow,
body.dark-theme .syls-resource-author-follow {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
}

@media (max-width: 1024px) {
  .syls-resource-hero,
  .syls-resource-content-grid {
    grid-template-columns: 1fr;
  }

  .syls-resource-sidebar {
    position: static;
  }

  .syls-resource-meta-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .syls-resource-meta-download {
    justify-content: center;
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .syls-resource-single {
    padding: 24px 14px 48px;
  }

  .syls-resource-hero {
    gap: 20px;
    min-height: 0;
  }

  .syls-resource-hero-copy {
    padding: 4px 0;
  }

  .syls-resource-hero h1 {
    font-size: 34px;
  }

  .syls-resource-summary {
    font-size: 16px;
  }

  .syls-resource-hero-media {
    border-radius: 18px;
  }

  .syls-resource-meta-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px 0 30px;
    padding: 16px 10px;
  }

  .syls-resource-meta-item {
    padding: 6px 10px;
  }

  .syls-resource-download-button {
    width: 100%;
  }

  .syls-resource-sidebar {
    display: none;
  }

  .syls-resource-related-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .syls-resource-related-card {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}

/* ═══════════════════════════════════════════════════════
   NEW RESOURCE DETAIL PAGE — HERO RESTRUCTURE
   ═══════════════════════════════════════════════════════ */

/* ── Scope wrapper ── */
body.syls-resource-template-post.syls-reader-ui .syls-resource-single {
  position: relative;
  isolation: isolate;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(36px, 4.8vw, 66px) clamp(24px, 5vw, 78px) clamp(50px, 5vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(168, 179, 197, 0.34);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 560px 260px at 16% 0%, rgba(0, 113, 227, 0.085), transparent 66%),
    radial-gradient(ellipse 460px 220px at 88% 6%, rgba(38, 198, 185, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 28px 90px rgba(27, 38, 58, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-single::before,
body.syls-resource-template-post.syls-reader-ui .syls-resource-single::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(99, 115, 137, 0.13);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-single::before {
  top: -126px; left: 8%; width: 438px; height: 224px; transform: rotate(-7deg);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-single::after {
  top: 84px; right: -158px; width: 382px; height: 196px; transform: rotate(11deg);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-single > * {
  position: relative; z-index: 1;
}

/* ── Hero split (left copy / right media) ── */
body.syls-resource-template-post.syls-reader-ui .syls-resource-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 3fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: stretch;
  min-height: 420px !important;
  padding: 14px 0 34px;
  text-align: left;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-copy {
  --syls-resource-title-text-offset: calc(var(--syls-resource-title-size) * 1.22 + 12px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 320px;
  padding: 0;
}

/* ── Hero terms / kicker ── */
body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-terms {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 20px;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-main {
  order: 2;
  width: 100%;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-terms .syls-resource-kicker,
body.syls-resource-template-post.syls-reader-ui .syls-resource-kicker {
  text-decoration: none;
  min-height: 26px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  border-radius: 999px;
  border: 1px solid rgba(42, 157, 143, 0.24);
  background: rgba(38, 198, 185, 0.10);
  color: #168278;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-kicker.is-topic {
  border-color: rgba(0, 113, 227, 0.20);
  background: rgba(0, 113, 227, 0.08);
  color: #1f63c8;
}

/* ── Title split ── */
body.syls-resource-template-post.syls-reader-ui .syls-resource-hero h1.syls-resource-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--syls-resource-text);
  font-size: 1rem !important;
  line-height: 1.12;
  text-align: left;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.22em;
  height: 1.22em;
  margin-top: -0.06em;
  border: 1.5px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
  color: var(--syls-item-color, #0071e3);
  font-size: var(--syls-resource-title-size);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 12px color-mix(in srgb, currentColor 58%, transparent);
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 28%, transparent));
  animation: syls-resource-vinyl-spin 10s linear infinite;
  transition: border-color 0.2s ease;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-title-icon:hover {
  border-color: color-mix(in srgb, currentColor 58%, transparent);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-title-text,
body.syls-resource-template-post.syls-reader-ui .syls-resource-title-main,
body.syls-resource-template-post.syls-reader-ui .syls-resource-title-sub {
  display: block;
  min-width: 0;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-title-main {
  color: var(--syls-resource-text);
  font-size: var(--syls-resource-title-size);
  line-height: 1.16;
  font-weight: 820;
  letter-spacing: 0;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-title-sub {
  margin-top: 10px;
  color: #4b5565;
  font-size: calc(var(--syls-resource-title-size) - 2px);
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0;
}

@keyframes syls-resource-vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Author byline (pill + meta inline) ── */
body.syls-resource-template-post.syls-reader-ui .syls-resource-byline {
  order: 4;
  margin: 22px 0 0 var(--syls-resource-title-text-offset);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 36px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(25, 42, 70, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: inherit;
  text-decoration: none;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  color: #253047;
  font-size: 13px;
  white-space: nowrap;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini .avatar,
body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini img {
  width: 28px !important; height: 28px !important;
  min-width: 28px !important; max-width: 28px !important;
  min-height: 28px !important; max-height: 28px !important;
  flex: 0 0 28px !important;
  margin-right: 2px;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini .syls-user-name-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini .syls-user-name-vip img,
body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini .syls-user-name-vip svg {
  width: 13px !important; height: 13px !important;
  min-width: 13px !important; max-width: 13px !important;
  min-height: 13px !important; max-height: 13px !important;
  flex: 0 0 13px !important;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-meta-sep {
  color: #c0c7d0;
  font-size: 13px;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-meta-item {
  color: #8793a5;
  font-size: 13px;
  white-space: nowrap;
}

/* ── Summary ── */
body.syls-resource-template-post.syls-reader-ui .syls-resource-summary {
  max-width: 520px;
  margin: 0 0 0 var(--syls-resource-title-text-offset);
  color: #526071;
  font-size: 15px !important;
  line-height: 1.82;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-summary p {
  margin: 0;
}

/* ── Hero media ── */
body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media {
  position: relative;
  display: block !important;
  width: 100%;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 240px 160px at 18% 14%, rgba(255, 255, 255, 0.58), transparent 72%),
    #e8edf5;
  box-shadow:
    0 26px 72px rgba(31, 43, 64, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media::before {
  position: absolute;
  inset: 18px 22px auto auto;
  width: 148px; height: 64px;
  border: 1px solid rgba(100, 116, 139, 0.13);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media img,
body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media video {
  width: 100%; height: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media.is-placeholder {
  display: block !important;
}
body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media.is-placeholder img {
  object-fit: contain;
  padding: 58px;
  opacity: 0.58;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-actions {
  order: 3;
  justify-content: flex-start;
  margin-top: 22px;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-section h2,
body.syls-resource-template-post.syls-reader-ui .syls-resource-related h2,
body.syls-resource-template-post.syls-reader-ui .syls-resource-native-related h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-section h2::before,
body.syls-resource-template-post.syls-reader-ui .syls-resource-related h2::before,
body.syls-resource-template-post.syls-reader-ui .syls-resource-native-related h2::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.35em;
  width: 1.35em;
  height: 1.35em;
  border: 1px solid color-mix(in srgb, var(--syls-item-color, #0071e3) 28%, transparent);
  border-radius: 999px;
  color: var(--syls-item-color, #0071e3);
  font-size: 0.86em;
  line-height: 1;
  content: var(--syls-resource-heading-icon);
  animation: syls-resource-vinyl-spin 12s linear infinite;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-fullwidth {
  width: 100%; margin-top: 34px;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-fullwidth > .syls-comments {
  width: 100%;
  max-width: none;
}

/* ── Responsive ── */
@media (max-width: 1180px) {
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero {
    grid-template-columns: 1fr;
    min-height: 0 !important;
    text-align: center;
    align-items: start;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-copy {
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    max-width: 760px; margin: 0 auto;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero h1.syls-resource-title,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-summary {
    max-width: 680px;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-summary,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-byline {
    margin-left: 0;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-terms,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-actions {
    justify-content: center;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-byline {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.syls-resource-template-post.syls-reader-ui .syls-resource-title-icon,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-section h2::before,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-related h2::before,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-native-related h2::before {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

@media (max-width: 767px) {
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero {
    gap: 22px; padding-bottom: 26px;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero h1.syls-resource-title {
    --syls-resource-title-size: 30px; gap: 10px; max-width: 100%;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-title-sub {
    margin-top: 6px;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-summary {
    font-size: 15px !important;
  }
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media img,
  body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media video {
    min-height: 220px;
  }
}

/* ══════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════ */

/* body surface */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui,
body.dark-theme.syls-resource-template-post.syls-reader-ui {
  background: radial-gradient(ellipse 760px 360px at 50% -120px, rgba(58, 130, 246, 0.10), transparent 68%), #0d1117;
}

/* main card */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-single,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-single,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-single {
  border-color: rgba(255, 255, 255, 0.07);
  background: radial-gradient(ellipse 560px 260px at 16% 0%, rgba(56, 130, 246, 0.10), transparent 66%),
              radial-gradient(ellipse 460px 220px at 88% 6%, rgba(56, 210, 196, 0.08), transparent 70%),
              linear-gradient(180deg, rgba(22, 28, 36, 0.96), rgba(16, 21, 28, 0.88));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-single::before,
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-single::after,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-single::before,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-single::after,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-single::before,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-single::after {
  border-color: rgba(148, 163, 184, 0.10);
}

/* hero media */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media {
  border-color: rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse 240px 160px at 18% 14%, rgba(75, 130, 220, 0.22), transparent 72%), #131a24;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media::before,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media::before,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-hero-media::before {
  border-color: rgba(148, 163, 184, 0.18);
}

/* kicker */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-kicker,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-kicker,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-kicker {
  background: rgba(56, 210, 196, 0.12); color: #86e8e0;
  border-color: rgba(56, 210, 196, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-kicker.is-topic,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-kicker.is-topic,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-kicker.is-topic {
  border-color: rgba(104, 166, 255, 0.26);
  background: rgba(58, 124, 234, 0.14); color: #8bbaff;
}

/* title */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-title-main,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-title-main,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-title-main {
  color: var(--syls-resource-text);
}

html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-title-sub,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-title-sub,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-title-sub {
  color: #94a3b8;
}

/* summary */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-summary,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-summary,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-summary {
  color: #b0bac8;
}

/* author pill */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(23, 29, 39, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini strong,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini strong,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-author-mini strong {
  color: #e8ecf2;
}

html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-meta-sep,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-meta-sep,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-meta-sep {
  color: #5a6577;
}

/* ── Related posts: override parent swiper ── */
body.syls-resource-template-post .relates-thumb .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  transform: none !important;
}

body.syls-resource-template-post .relates-thumb .swiper-slide {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto;
  min-height: 0;
}

body.syls-resource-template-post .relates-thumb .swiper-slide .graphic {
  padding-bottom: 0 !important;
  position: relative;
  width: 100%;
  height: clamp(118px, 9vw, 154px) !important;
  overflow: hidden;
  border-radius: 12px;
}

body.syls-resource-template-post .relates-thumb .swiper-slide .graphic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.syls-resource-template-post .relates-thumb .swiper-slide {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.syls-resource-template-post .relates-thumb .swiper-slide > * {
  flex: 0 0 auto;
}

/* ── Dark: comments section ── */
html[data-syls-theme="dark"] body.syls-resource-template-post .syls-comments,
html[data-theme="dark"] body.syls-resource-template-post .syls-comments,
body.dark-theme.syls-resource-template-post .syls-comments {
  background: transparent !important;
}

html[data-syls-theme="dark"] body.syls-resource-template-post .syls-comments #comments,
html[data-theme="dark"] body.syls-resource-template-post .syls-comments #comments,
body.dark-theme.syls-resource-template-post .syls-comments #comments {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

/* comment title */
html[data-syls-theme="dark"] body.syls-resource-template-post #comments .title-theme,
html[data-theme="dark"] body.syls-resource-template-post #comments .title-theme,
body.dark-theme.syls-resource-template-post #comments .title-theme {
  color: #e4e8f0;
}

/* comment box: strip dark gray, use resource card bg */
html[data-syls-theme="dark"] body.syls-resource-template-post #comments .theme-box:not(.comment-signarea),
html[data-theme="dark"] body.syls-resource-template-post #comments .theme-box:not(.comment-signarea),
body.dark-theme.syls-resource-template-post #comments .theme-box:not(.comment-signarea) {
  background: transparent !important;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments .main-bg,
html[data-theme="dark"] body.syls-resource-template-post #comments .main-bg,
body.dark-theme.syls-resource-template-post #comments .main-bg {
  background: transparent !important;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments .main-shadow,
html[data-theme="dark"] body.syls-resource-template-post #comments .main-shadow,
body.dark-theme.syls-resource-template-post #comments .main-shadow {
  box-shadow: none !important;
}

/* sign-in prompt */
html[data-syls-theme="dark"] body.syls-resource-template-post #comments .comment-signarea,
html[data-theme="dark"] body.syls-resource-template-post #comments .comment-signarea,
body.dark-theme.syls-resource-template-post #comments .comment-signarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 14px;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments .muted-3-color,
html[data-theme="dark"] body.syls-resource-template-post #comments .muted-3-color,
body.dark-theme.syls-resource-template-post #comments .muted-3-color {
  color: #8892a0 !important;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments .em09.muted-3-color,
html[data-theme="dark"] body.syls-resource-template-post #comments .em09.muted-3-color,
body.dark-theme.syls-resource-template-post #comments .em09.muted-3-color {
  color: #5c6574 !important;
}

/* comment list items */
html[data-syls-theme="dark"] body.syls-resource-template-post #comments .commentlist > li,
html[data-theme="dark"] body.syls-resource-template-post #comments .commentlist > li,
body.dark-theme.syls-resource-template-post #comments .commentlist > li {
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments .comment-body,
html[data-theme="dark"] body.syls-resource-template-post #comments .comment-body,
body.dark-theme.syls-resource-template-post #comments .comment-body {
  background: transparent;
  color: #c4cdd8;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments .comment-text,
html[data-theme="dark"] body.syls-resource-template-post #comments .comment-text,
body.dark-theme.syls-resource-template-post #comments .comment-text {
  color: #b3bcc7;
}

/* comment reply link */
html[data-syls-theme="dark"] body.syls-resource-template-post #comments .comment-reply-link,
html[data-theme="dark"] body.syls-resource-template-post #comments .comment-reply-link,
body.dark-theme.syls-resource-template-post #comments .comment-reply-link {
  color: #6b8ac4;
  border-color: rgba(107, 138, 196, 0.25);
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments .comment-reply-link:hover,
html[data-theme="dark"] body.syls-resource-template-post #comments .comment-reply-link:hover,
body.dark-theme.syls-resource-template-post #comments .comment-reply-link:hover {
  color: #8aadf0;
  border-color: rgba(138, 173, 240, 0.4);
}

/* comment form */
html[data-syls-theme="dark"] body.syls-resource-template-post #respond,
html[data-theme="dark"] body.syls-resource-template-post #respond,
body.dark-theme.syls-resource-template-post #respond {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments textarea,
html[data-syls-theme="dark"] body.syls-resource-template-post #comments input[type="text"],
html[data-syls-theme="dark"] body.syls-resource-template-post #comments input[type="email"],
html[data-theme="dark"] body.syls-resource-template-post #comments textarea,
html[data-theme="dark"] body.syls-resource-template-post #comments input[type="text"],
html[data-theme="dark"] body.syls-resource-template-post #comments input[type="email"],
body.dark-theme.syls-resource-template-post #comments textarea,
body.dark-theme.syls-resource-template-post #comments input[type="text"],
body.dark-theme.syls-resource-template-post #comments input[type="email"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #dce2ec !important;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #comments textarea:focus,
html[data-syls-theme="dark"] body.syls-resource-template-post #comments input[type="text"]:focus,
html[data-theme="dark"] body.syls-resource-template-post #comments textarea:focus,
html[data-theme="dark"] body.syls-resource-template-post #comments input[type="text"]:focus,
body.dark-theme.syls-resource-template-post #comments textarea:focus,
body.dark-theme.syls-resource-template-post #comments input[type="text"]:focus {
  border-color: rgba(58, 130, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(58, 130, 246, 0.12);
}

/* submit button */
html[data-syls-theme="dark"] body.syls-resource-template-post #submit,
html[data-theme="dark"] body.syls-resource-template-post #submit,
body.dark-theme.syls-resource-template-post #submit {
  background: linear-gradient(135deg, #3a82f6, #2563eb);
  border-color: transparent;
  color: #fff;
}

html[data-syls-theme="dark"] body.syls-resource-template-post #submit:hover,
html[data-theme="dark"] body.syls-resource-template-post #submit:hover,
body.dark-theme.syls-resource-template-post #submit:hover {
  background: linear-gradient(135deg, #5a9df8, #3b74f2);
}

/* ── Dark: related posts bg fix ── */
html[data-syls-theme="dark"] .syls-resource-native-related *,
html[data-theme="dark"] .syls-resource-native-related *,
body.dark-theme .syls-resource-native-related * {
  background: transparent !important;
}

body.syls-resource-template-post .relates-thumb .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  transform: none !important;
}

/* ── Download box styling ── */
body.syls-resource-template-post .syls-resource-native-download .posts-pay,
body.syls-resource-template-post .syls-resource-native-download .zibpay-posts-pay {
  border: 1px solid var(--syls-resource-line);
  border-radius: 22px;
  background: var(--syls-resource-card);
  box-shadow: var(--syls-resource-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.syls-resource-template-post .syls-resource-native-download .posts-pay .pay-box,
body.syls-resource-template-post .syls-resource-native-download .pay-box {
  border: 0;
  background: transparent;
}

body.syls-resource-template-post .syls-resource-native-download .posts-pay .pay-thumb {
  border-radius: 18px;
  overflow: hidden;
}

/* ── Action bar (like / favorite / share) ── */
.syls-resource-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 32px 0 24px;
}

.syls-resource-action-bar-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.syls-resource-action-bar .syls-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.syls-resource-action-bar .syls-action-btn:hover {
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
}

.syls-resource-action-bar .syls-action-btn.actived {
  color: #0071e3;
}

.syls-resource-action-bar .syls-action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.syls-resource-action-bar .syls-action-btn text {
  font-size: 13px;
  font-weight: 600;
}

.syls-resource-action-bar .syls-action-btn count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  margin-left: 1px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.syls-resource-action-bar .syls-action-btn count:empty {
  display: none;
}

.syls-resource-action-bar .syls-action-btn:hover count,
.syls-resource-action-bar .syls-action-btn.actived count {
  color: #0071e3;
}

/* ── Dark: action bar ── */
html[data-syls-theme="dark"] .syls-resource-action-bar-inner,
html[data-theme="dark"] .syls-resource-action-bar-inner,
body.dark-theme .syls-resource-action-bar-inner {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

html[data-syls-theme="dark"] .syls-resource-action-bar .syls-action-btn,
html[data-theme="dark"] .syls-resource-action-bar .syls-action-btn,
body.dark-theme .syls-resource-action-bar .syls-action-btn {
  color: #94a3b8;
}

html[data-syls-theme="dark"] .syls-resource-action-bar .syls-action-btn count,
html[data-theme="dark"] .syls-resource-action-bar .syls-action-btn count,
body.dark-theme .syls-resource-action-bar .syls-action-btn count {
  color: #7d8a9c;
}

html[data-syls-theme="dark"] .syls-resource-action-bar .syls-action-btn:hover,
html[data-theme="dark"] .syls-resource-action-bar .syls-action-btn:hover,
body.dark-theme .syls-resource-action-bar .syls-action-btn:hover,
html[data-syls-theme="dark"] .syls-resource-action-bar .syls-action-btn.actived,
html[data-theme="dark"] .syls-resource-action-bar .syls-action-btn.actived,
body.dark-theme .syls-resource-action-bar .syls-action-btn.actived {
  background: rgba(58, 130, 246, 0.12);
  color: #8bbaff;
}

html[data-syls-theme="dark"] .syls-resource-action-bar .syls-action-btn:hover count,
html[data-theme="dark"] .syls-resource-action-bar .syls-action-btn:hover count,
body.dark-theme .syls-resource-action-bar .syls-action-btn:hover count,
html[data-syls-theme="dark"] .syls-resource-action-bar .syls-action-btn.actived count,
html[data-theme="dark"] .syls-resource-action-bar .syls-action-btn.actived count,
body.dark-theme .syls-resource-action-bar .syls-action-btn.actived count {
  color: #8bbaff;
}

/* ── Dark: disclaimer note ── */
html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-section.is-note .syls-resource-richtext,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-section.is-note .syls-resource-richtext,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-section.is-note .syls-resource-richtext {
  background: rgba(255, 255, 255, 0.04);
  color: #8892a0;
}

html[data-syls-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-meta-item,
html[data-theme="dark"] body.syls-resource-template-post.syls-reader-ui .syls-resource-meta-item,
body.dark-theme.syls-resource-template-post.syls-reader-ui .syls-resource-meta-item {
  color: #7d8a9c;
}

/* ══════════════════════════════════════════════
   Related posts & comments — Apple polish
   ══════════════════════════════════════════════ */

.syls-resource-native-related {
  margin-top: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.syls-resource-native-related > .syls-resource-related {
  margin-top: 0;
}

.syls-resource-native-related .relates {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.syls-resource-native-related .title-theme {
  margin-bottom: 18px;
  color: var(--syls-resource-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--syls-resource-line);
}

/* related card polish */
.syls-resource-native-related .graphic {
  border-radius: 16px;
  overflow: hidden;
}

.syls-resource-native-related .graphic img,
.syls-resource-native-related .graphic video {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.syls-resource-native-related .swiper-slide:hover .graphic img,
.syls-resource-native-related .relates .swiper-slide:hover img {
  transform: scale(1.04);
}

.syls-resource-native-related .graphic-text {
  padding: 10px 4px 4px;
}

.syls-resource-native-related .graphic-text .post-info {
  margin-top: 6px;
  color: var(--syls-resource-muted);
  font-size: 12px;
}

.syls-resource-native-related .graphic-text .post-info item {
  color: var(--syls-resource-muted);
}

/* ── Resource detail card: platform centering ── */
.syls-resource-detail-value.is-platforms {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px 0;
  line-height: 1.5;
}

.syls-resource-detail-value.is-platforms span {
  display: block;
}

/* Resource hero title icon: keep oversized category glyphs inside the circle. */
body.syls-resource-template-post.syls-reader-ui .syls-resource-title-icon {
  width: calc(var(--syls-resource-title-size) * 1.16) !important;
  height: calc(var(--syls-resource-title-size) * 1.16) !important;
  flex: 0 0 calc(var(--syls-resource-title-size) * 1.16) !important;
  overflow: hidden !important;
  font-size: calc(var(--syls-resource-title-size) * 0.62) !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: default !important;
  pointer-events: none !important;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-terms {
  justify-content: flex-start !important;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-terms .syls-resource-back {
  order: -1;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin-right: 2px !important;
  box-shadow: none !important;
}

body.syls-resource-template-post.syls-reader-ui .syls-resource-hero-terms .syls-resource-back i {
  font-size: 17px !important;
}
