/* ==========================================================================
   PhantomOS Theme -- Base Styles
   CSS custom properties are injected in header.php from theme mods.
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--phantomos-font-body, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--phantomos-text, #1e293b);
  background-color: var(--phantomos-bg, #f8fafc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--phantomos-font-headings, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--phantomos-primary, #1a365d);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--phantomos-primary-light, #2b4c7e);
}

/* ---------- Container ---------- */
.phantomos-container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Header ---------- */
.phantomos-header {
  background: #ffffff;
  border-bottom: 1px solid var(--phantomos-border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

.phantomos-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.phantomos-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.phantomos-logo {
  text-decoration: none;
  color: var(--phantomos-primary, #1a365d);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--phantomos-font-headings, system-ui, -apple-system, sans-serif);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.phantomos-logo:hover {
  color: var(--phantomos-primary, #1a365d);
}

.phantomos-logo .custom-logo,
.phantomos-logo__img {
  max-height: 40px;
  width: auto;
  display: block;
}

.phantomos-logo__text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--phantomos-primary, #1a365d);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* --- Mobile Menu Toggle --- */
.phantomos-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.phantomos-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--phantomos-text, #1e293b);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.phantomos-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.phantomos-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.phantomos-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Navigation --- */
.phantomos-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.phantomos-nav__list li {
  margin: 0;
}

.phantomos-nav__list a {
  text-decoration: none;
  color: var(--phantomos-muted, #64748b);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
  padding: 0.25rem 0;
  position: relative;
}

.phantomos-nav__list a:hover,
.phantomos-nav__list .current-menu-item > a,
.phantomos-nav__list .current_page_item > a {
  color: var(--phantomos-primary, #1a365d);
}

.phantomos-nav__list .current-menu-item > a::after,
.phantomos-nav__list .current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--phantomos-accent, #f59e0b);
  border-radius: 1px;
}

/* ---------- Main Content Area ---------- */
.phantomos-content-area {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.phantomos-content-area--wide {
  max-width: 1100px;
}

/* Review money-page: wider than default so 4-column comparison tables + 3-col product grids fit without horizontal scroll. */
.phantomos-content-area--review {
  max-width: 960px;
}

.phantomos-content-area--with-sidebar {
  max-width: 1100px;
}

/* ---------- Sidebar Layout ---------- */
.phantomos-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.phantomos-layout-sidebar__main {
  min-width: 0;
}

/* --- Sidebar Widgets --- */
.phantomos-sidebar {
  position: sticky;
  top: 80px;
}

.phantomos-widget {
  background: #ffffff;
  border: 1px solid var(--phantomos-border, #e2e8f0);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.phantomos-widget__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--phantomos-primary, #1a365d);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--phantomos-accent, #f59e0b);
}

/* ---------- Article / Typography ---------- */
.phantomos-article__header {
  margin-bottom: 2rem;
}

.phantomos-article__header--review {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--phantomos-border, #e2e8f0);
}

.phantomos-article__title,
.phantomos-review-headline__headline {
  font-size: clamp(1.5rem, 3vw, 1.875rem); /* 24px → 30px */
  font-weight: 700;
  line-height: 1.25;
  color: var(--phantomos-primary, #1a365d);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--phantomos-primary, #1a365d);
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--phantomos-text, #1e293b);
}

.entry-content p {
  margin-bottom: 1.25rem;
  color: var(--phantomos-text, #1e293b);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content a {
  color: var(--phantomos-primary, #1a365d);
  text-decoration: none;
}

.entry-content a:hover {
  color: var(--phantomos-primary-light, #2b4c7e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Never underline CTA-style buttons masquerading as links */
.entry-content a.phantomos-button,
.entry-content a.wp-block-button__link,
.entry-content a.phantomos-comparison-table__button,
.entry-content a.phantomos-product-review__cta-button,
.entry-content a.phantomos-product-review__tier-cta {
  text-decoration: none;
}

.entry-content blockquote {
  border-left: 4px solid var(--phantomos-accent, #f59e0b);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--phantomos-secondary, #e8f0fe);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--phantomos-muted, #64748b);
}

.entry-content img {
  border-radius: 8px;
}

/* --- Last updated badge --- */
.last-updated {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--phantomos-muted, #64748b);
  margin-bottom: 1rem;
}

.phantomos-article__header--review .last-updated {
  display: block;
  text-align: center;
}

/* ---------- Buttons ---------- */
.wp-block-button__link,
.phantomos-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  line-height: 1.4;
}

.wp-block-button__link,
.phantomos-button--primary {
  background: var(--phantomos-primary, #1a365d);
  color: #ffffff;
}

.wp-block-button__link:hover,
.phantomos-button--primary:hover {
  background: var(--phantomos-primary-light, #2b4c7e);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.wp-block-button__link:active,
.phantomos-button:active {
  transform: translateY(0);
}

/* Outline button */
.is-style-outline-primary .wp-block-button__link,
.phantomos-button--outline {
  background: transparent;
  color: var(--phantomos-primary, #1a365d);
  border: 2px solid var(--phantomos-primary, #1a365d);
}

.is-style-outline-primary .wp-block-button__link:hover,
.phantomos-button--outline:hover {
  background: var(--phantomos-primary, #1a365d);
  color: #ffffff;
}

/* Accent button (CTA) */
.is-style-accent .wp-block-button__link,
.phantomos-button--accent {
  background: var(--phantomos-accent, #f59e0b);
  color: #1e293b;
  font-weight: 700;
}

.is-style-accent .wp-block-button__link:hover,
.phantomos-button--accent:hover {
  background: #d97706;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Card style (group block) */
.is-style-card {
  background: #ffffff;
  border: 1px solid var(--phantomos-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ---------- Footer ---------- */
.phantomos-footer {
  background: var(--phantomos-primary, #1a365d);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.25rem;
  margin-top: 4rem;
}

.phantomos-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.phantomos-footer__brand {
  flex-shrink: 0;
}

.phantomos-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--phantomos-font-headings, system-ui, -apple-system, sans-serif);
  text-decoration: none;
}

.phantomos-footer__logo:hover {
  color: #ffffff;
}

.phantomos-footer__logo-img {
  max-height: 36px;
  width: auto;
  display: block;
  /* Turn any color logo into a white silhouette so it reads on the dark footer. */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.phantomos-footer__logo-text {
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.01em;
}

.phantomos-footer__tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0 0;
}

.phantomos-footer__nav {
  flex-shrink: 0;
}

.phantomos-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: flex-end;
}

.phantomos-footer__list li { list-style: none; }

.phantomos-footer__list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.phantomos-footer__list a:hover { color: #fff; }

.phantomos-footer__entity {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.phantomos-footer__entity-line { margin: 0 0 0.35rem; }

.phantomos-footer__entity-name { font-weight: 600; color: #fff; }

.phantomos-footer__entity-email {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.phantomos-footer__entity-email:hover { color: #fff; text-decoration: underline; }

.phantomos-footer__sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.35rem;
}

.phantomos-footer__disclosure {
  margin: 0.25rem 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 780px;
}

.phantomos-footer__bar {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.phantomos-footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ---------- 404 Page ---------- */
.phantomos-404 {
  text-align: center;
  padding: 4rem 0;
}

.phantomos-404__title {
  font-size: 2rem;
  color: var(--phantomos-primary, #1a365d);
  margin: 0 0 1rem;
}

.phantomos-404__text {
  color: var(--phantomos-muted, #64748b);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* ---------- Separator ---------- */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--phantomos-border, #e2e8f0);
  margin: 2rem 0;
}

.is-style-subtle .wp-block-separator,
.wp-block-separator.is-style-subtle {
  border-top-color: var(--phantomos-border, #e2e8f0);
  opacity: 0.5;
}

/* ---------- WordPress Admin Bar Offset ---------- */
.admin-bar .phantomos-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .phantomos-header {
    top: 46px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  /* Mobile menu toggle */
  .phantomos-menu-toggle {
    display: flex;
  }

  .phantomos-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    overflow-y: auto;
  }

  .phantomos-nav.is-open {
    transform: translateX(0);
  }

  .phantomos-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .phantomos-nav__list li {
    border-bottom: 1px solid var(--phantomos-border, #e2e8f0);
  }

  .phantomos-nav__list a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
  }

  .phantomos-nav__list .current-menu-item > a::after,
  .phantomos-nav__list .current_page_item > a::after {
    display: none;
  }

  /* Mobile overlay */
  .phantomos-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 104;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .phantomos-nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Content spacing */
  .phantomos-content-area {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .phantomos-article__title,
  .phantomos-review-headline__headline {
    font-size: 1.5rem; /* 24px on small viewports */
  }

  /* Footer */
  .phantomos-footer {
    padding: 2rem 0 1.25rem;
    margin-top: 2.5rem;
  }

  .phantomos-footer__top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
  }

  .phantomos-footer__list {
    justify-content: flex-start;
    gap: 0.5rem 1.25rem;
  }

  .phantomos-footer__entity,
  .phantomos-footer__bar {
    text-align: left;
  }

  /* Sidebar stacks below */
  .phantomos-layout-sidebar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .phantomos-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .phantomos-footer__list {
    justify-content: flex-start;
    gap: 0.5rem 1rem;
  }
  .phantomos-footer__top {
    flex-direction: column;
    gap: 1rem;
  }
  .phantomos-footer__entity,
  .phantomos-footer__bar { text-align: left; }
}

/* v2: Submenu (Guides dropdown) */
.phantomos-nav__list .menu-item-has-children { position: relative; }

/* Down-caret indicator on parent items with children */
.phantomos-nav__list .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 0.4em;
  font-size: 0.75em;
  color: var(--phantomos-muted, #64748b);
  display: inline-block;
  transition: transform 0.15s ease;
  vertical-align: middle;
  line-height: 1;
}
.phantomos-nav__list .menu-item-has-children:hover > a::after,
.phantomos-nav__list .menu-item-has-children:focus-within > a::after,
.phantomos-nav__list .menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}

.phantomos-nav__list .sub-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--phantomos-border);
  min-width: 220px; padding: .5rem 0; margin: 0; list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transition: opacity .15s ease;
  z-index: 50;
}
.phantomos-nav__list .menu-item-has-children:hover > .sub-menu,
.phantomos-nav__list .menu-item-has-children:focus-within > .sub-menu,
.phantomos-nav__list .menu-item-has-children.is-open > .sub-menu {
  opacity: 1; visibility: visible;
}

/* Submenu link states */
.phantomos-nav__list .sub-menu a {
  display: block;
  padding: .5rem 1rem;
  white-space: nowrap;
  color: var(--phantomos-text, #1e293b);
  background: transparent;
  font-size: 0.875rem;
  transition: background 0.12s ease, color 0.12s ease;
  border-left: 4px solid transparent;
}
.phantomos-nav__list .sub-menu a:hover {
  background: rgba(0,0,0,.04);
  color: var(--phantomos-primary, #1a365d);
  text-decoration: none;
}
/* Selected (current) sub-item: thin left accent border */
.phantomos-nav__list .sub-menu .current-menu-item > a,
.phantomos-nav__list .sub-menu .current_page_item > a {
  border-left: 4px solid var(--phantomos-primary, #1a365d);
  padding-left: calc(1rem - 0px); /* border already counted in padding box */
  color: var(--phantomos-primary, #1a365d);
  font-weight: 600;
  background: transparent;
}
/* Override the underline pseudo that applies to top-level items */
.phantomos-nav__list .sub-menu .current-menu-item > a::after,
.phantomos-nav__list .sub-menu .current_page_item > a::after {
  display: none;
}

@media (max-width: 768px) {
  .phantomos-nav__list .sub-menu { position: static; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; padding-left: 1rem; }
  .phantomos-nav__list .menu-item-has-children.is-open > .sub-menu { display:block; }
  /* Hide caret on mobile — hamburger handles it */
  .phantomos-nav__list .menu-item-has-children > a::after { display: none; }
}

/* v2: Compliance footer (option-driven) */
.phantomos-compliance-footer {
  background: var(--phantomos-bg, #f8fafc);
  border-top: 1px solid var(--phantomos-border, #e2e8f0);
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--phantomos-muted, #64748b);
  text-align: center;
}
.phantomos-compliance-footer__disclosure { margin: 0 0 .25rem; }
.phantomos-compliance-footer__entity { margin: 0; }
.phantomos-compliance-footer__entity a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   Home page — hero, featured review, and guide cards
   All selectors carry a .entry-content prefix so the card typography beats
   the generic .entry-content h3/p/a rules defined above (which would
   otherwise win on specificity).
   ========================================================================== */

/* Small uppercase label above each home section (Featured Review, Guides) */
.entry-content .phantomos-home-section-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #3A8C3F;
  font-weight: 700;
  margin: 0 0 1rem;
}

/* Centered hero — title + one-line supporting paragraph, generous whitespace */
.entry-content .phantomos-home-hero {
  display: block;
  text-align: center;
  padding: 4rem 1.25rem 3rem;
  border-bottom: 1px solid var(--phantomos-border, #e2e8f0);
  margin: 0 0 2rem;
}
.entry-content .phantomos-home-hero__title {
  font-size: 1.875rem;
  line-height: 1.35;
  color: var(--phantomos-primary, #1a365d);
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.entry-content .phantomos-home-hero__subtitle {
  font-size: 1rem;
  color: var(--phantomos-muted, #64748b);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
@media (max-width: 768px) { .entry-content .phantomos-home-hero__title { font-size: 1.5rem; } }
@media (max-width: 480px) {
  .entry-content .phantomos-home-hero        { padding: 2.5rem 1rem 2rem; }
  .entry-content .phantomos-home-hero__title { font-size: 1.375rem; }
}

/* Shared article-card look used by featured review + guide cards */
.entry-content .phantomos-featured-review__link,
.entry-content .phantomos-home-guide-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--phantomos-border, #e2e8f0);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  margin: 0 0 1rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.entry-content .phantomos-featured-review__link:hover,
.entry-content .phantomos-home-guide-card:hover {
  border-color: #C8D0D8;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}

/* Featured review (home) */
.phantomos-featured-review { margin: 0 0 2.25rem; }
.entry-content .phantomos-featured-review__thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg,#EDF2F7 0%,#E2E8F0 100%);
  border: 1px solid #E8ECF0;
  display: block;
}
.entry-content .phantomos-featured-review__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.entry-content .phantomos-featured-review__body { display: block; min-width: 0; }
.entry-content .phantomos-featured-review__badge {
  display: inline-block;
  background: #3A8C3F;
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: .5rem;
}
.entry-content .phantomos-featured-review__headline {
  font-size: 1.125rem;
  color: var(--phantomos-primary, #1a365d);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .375rem;
}
.entry-content .phantomos-featured-review__subheadline {
  font-size: .875rem;
  color: var(--phantomos-muted, #64748b);
  line-height: 1.6;
  margin: 0 0 .5rem;
}
.entry-content .phantomos-featured-review__meta { font-size: .75rem; color: #99aab5; display: inline-block; }

/* Guide cards grid */
.entry-content .phantomos-home-guides { display: block; margin: 2.25rem 0 2.5rem; }
.entry-content .phantomos-home-guide-card__thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  border: 1px solid #E8ECF0;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
}
.entry-content .phantomos-home-guide-card__body { display: block; min-width: 0; }
.entry-content .phantomos-home-guide-card__title {
  font-size: 1.125rem;
  color: var(--phantomos-primary, #1a365d);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .375rem;
}
.entry-content .phantomos-home-guide-card__teaser {
  font-size: .875rem;
  color: var(--phantomos-muted, #64748b);
  line-height: 1.6;
  margin: 0 0 .5rem;
}
.entry-content .phantomos-home-guide-card__meta { font-size: .75rem; color: #99aab5; display: inline-block; }

/* Tint variants — pair with each icon key; set border + background colour.
   Prefixed with .entry-content to match the specificity of the base thumb
   rule, so border-color reliably overrides the default border shorthand. */
.entry-content .phantomos-home-guide-card__thumb--tint-green  { background-color: #EEF6EE; border-color: #C8DCC8; }
.entry-content .phantomos-home-guide-card__thumb--tint-amber  { background-color: #FFF8EC; border-color: #F0D4A8; }
.entry-content .phantomos-home-guide-card__thumb--tint-navy   { background-color: #EEF4F8; border-color: #B8D2DE; }
.entry-content .phantomos-home-guide-card__thumb--tint-purple { background-color: #F4EEFB; border-color: #D0C0E0; }
.entry-content .phantomos-home-guide-card__thumb--tint-red    { background-color: #FCEEEE; border-color: #E8B8B8; }

/* Icon variants — inline SVG data URI layered on top of a matching gradient.
   The SVG stroke colour is chosen to sit on top of that gradient, so the icon
   class sets both the icon itself and the gradient it sits in. */
.entry-content .phantomos-home-guide-card__thumb--icon-book {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%231B3A5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>"),
    linear-gradient(135deg,#E6F0F5 0%,#CFE2EB 100%);
}
.entry-content .phantomos-home-guide-card__thumb--icon-warning {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23D4A947' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>"),
    linear-gradient(135deg,#FFF5E6 0%,#FFE8CC 100%);
}
.entry-content .phantomos-home-guide-card__thumb--icon-check {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%233A8C3F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='8' y='2' width='8' height='4' rx='1' ry='1'/><path d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/><path d='M9 14l2 2 4-4'/></svg>"),
    linear-gradient(135deg,#E8F0E8 0%,#D4E6D4 100%);
}
.entry-content .phantomos-home-guide-card__thumb--icon-dollar {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%235B3A8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='1' x2='12' y2='23'/><path d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/></svg>"),
    linear-gradient(135deg,#F0E8FA 0%,#E0D4F0 100%);
}
.entry-content .phantomos-home-guide-card__thumb--icon-x {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23C53030' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='15' y1='9' x2='9' y2='15'/><line x1='9' y1='9' x2='15' y2='15'/></svg>"),
    linear-gradient(135deg,#FCE8E8 0%,#F5D4D4 100%);
}

/* Mobile — stack thumb above body on narrow screens */
@media (max-width: 480px) {
  .entry-content .phantomos-featured-review__link,
  .entry-content .phantomos-home-guide-card { flex-direction: column; gap: .875rem; }
  .entry-content .phantomos-featured-review__thumb,
  .entry-content .phantomos-home-guide-card__thumb { width: 100%; height: 120px; flex: 0 0 auto; background-size: 48px 48px; }
  .entry-content .phantomos-featured-review__thumb { height: 160px; }
}
