/*
 * Real Journey Travels — 2026 design refresh layer.
 *
 * Loaded after style.css. It only restyles; markup contracts and the
 * light/dark/high-contrast token values stay owned by style.css and
 * theme.json. Every colour is a token so all three modes inherit it.
 */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  scroll-padding-top: calc(var(--rjt-header-height, 4.25rem) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
}

::selection {
  background: var(--wp--custom--surface--accent-light, #e0f2fe);
  color: var(--wp--preset--color--rjt-text, #0f172a);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: var(--wp--custom--focus--width, 2px) solid var(--wp--custom--focus--color, #0369a1);
  outline-offset: 3px;
  border-radius: var(--wp--custom--radius--sm, 8px);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(p, li) {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Header: sticky, translucent, compact on scroll
   -------------------------------------------------------------------------- */
.site-header {
  --rjt-header-height: 4.25rem;

  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--wp--preset--color--rjt-card, #fff) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid
    color-mix(in srgb, var(--wp--preset--color--rjt-border, #cbd5e1) 70%, transparent);
  transition: box-shadow var(--wp--custom--motion--base, 200ms)
    var(--wp--custom--motion--ease, ease);
}

.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header.is-scrolled {
  box-shadow: var(--wp--custom--shadow--sm);
}

.site-header .rjt-header-inner {
  min-height: var(--rjt-header-height);
  padding-block: 0.5rem;
}

.rjt-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--wp--preset--color--rjt-text, #0f172a);
  text-decoration: none;
}

.rjt-brand__mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--wp--custom--radius--md, 12px);
  box-shadow: var(--wp--custom--shadow--sm);
}

.site-header .wp-block-site-title {
  margin: 0;
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-header .wp-block-site-title a {
  color: inherit;
  text-decoration: none;
}

.site-header .wp-block-navigation {
  gap: 0.25rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
}

.site-header .wp-block-navigation-item__content {
  padding: 0.5rem 0.875rem;
  border-radius: var(--wp--custom--radius--pill, 999px);
  color: var(--wp--preset--color--rjt-muted, #334155);
  text-decoration: none;
  transition:
    background-color var(--wp--custom--motion--fast, 120ms) ease,
    color var(--wp--custom--motion--fast, 120ms) ease;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .current-menu-item > .wp-block-navigation-item__content,
.site-header .wp-block-navigation-item__content[aria-current='page'] {
  background: var(--wp--custom--surface--alt, #f1f5f9);
  color: var(--wp--preset--color--rjt-text, #0f172a);
}

.site-header .rjt-header-actions {
  gap: 0.5rem;
}

.site-header .rjt-auth-btn {
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  box-shadow: none;
}

.site-header .rjt-auth-btn--primary {
  box-shadow: 0 6px 16px -8px
    color-mix(in srgb, var(--wp--preset--color--rjt-navy, #163883) 70%, transparent);
}

/* Mobile overlay menu: full-height sheet with large tap targets. */
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 1.25rem;
  background: var(--wp--preset--color--rjt-card, #fff);
  color: var(--wp--preset--color--rjt-text, #0f172a);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block;
  padding: 0.875rem 0.25rem;
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 650;
  border-bottom: 1px solid var(--wp--custom--surface--border-light, #e2e8f0);
}

@media (max-width: 781px) {
  .site-header .rjt-header-inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .site-header .rjt-auth-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-header .rjt-auth-btn {
    width: 2.5rem;
    padding: 0;
    justify-content: center;
  }

  .site-header .wp-block-site-title {
    font-size: var(--wp--preset--font-size--base);
    white-space: nowrap;
  }

  .rjt-brand__mark {
    width: 2rem;
    height: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link,
.rjt-auth-btn {
  transition:
    transform var(--wp--custom--motion--fast, 120ms) var(--wp--custom--motion--ease, ease),
    box-shadow var(--wp--custom--motion--base, 200ms) var(--wp--custom--motion--ease, ease),
    background-color var(--wp--custom--motion--fast, 120ms) ease,
    border-color var(--wp--custom--motion--fast, 120ms) ease,
    color var(--wp--custom--motion--fast, 120ms) ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.rjt-auth-btn:hover {
  transform: translateY(-1px);
}

.wp-element-button:active,
.wp-block-button__link:active,
.rjt-auth-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Cards: one surface language for every content card
   -------------------------------------------------------------------------- */
:where(
  .rjt-place-card,
  .rjt-tour-card,
  .rjt-viator-card,
  .rjt-destination-tour-card,
  .rjt-dest-card,
  .rjt-child-area-card,
  .rjt-nearby-card,
  .rjt-review-card
) {
  border-radius: var(--wp--custom--radius--lg, 20px);
  border: 1px solid var(--wp--custom--surface--border-light, #e2e8f0);
  background: var(--wp--preset--color--rjt-card, #fff);
  box-shadow: var(--wp--custom--shadow--sm);
  overflow: hidden;
  transition:
    transform var(--wp--custom--motion--base, 200ms) var(--wp--custom--motion--ease, ease),
    box-shadow var(--wp--custom--motion--base, 200ms) var(--wp--custom--motion--ease, ease),
    border-color var(--wp--custom--motion--base, 200ms) ease;
}

:where(
  .rjt-place-card,
  .rjt-tour-card,
  .rjt-viator-card,
  .rjt-destination-tour-card,
  .rjt-dest-card,
  .rjt-child-area-card,
  .rjt-nearby-card
):hover {
  transform: translateY(-3px);
  border-color: var(--wp--preset--color--rjt-border, #cbd5e1);
  box-shadow: var(--wp--custom--shadow--md);
}

:where(.rjt-viator-card__img, .rjt-destination-tour-card__img) {
  transition: transform 600ms var(--wp--custom--motion--ease, ease);
}

:where(.rjt-viator-card, .rjt-destination-tour-card):hover
  :where(.rjt-viator-card__img, .rjt-destination-tour-card__img) {
  transform: scale(1.04);
}

:where(.rjt-dest-chip, .rjt-hero-badge, .rjt-distance-badge) {
  border-radius: var(--wp--custom--radius--pill, 999px);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
:where(
  .rjt-form-input,
  .rjt-form-select,
  .rjt-form-textarea,
  .wp-block-search__input,
  input[type='email'],
  input[type='password'],
  input[type='text'],
  input[type='search'],
  textarea,
  select
) {
  box-sizing: border-box;
  min-height: 2.875rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--wp--preset--color--rjt-border, #cbd5e1);
  border-radius: var(--wp--custom--radius--md, 12px);
  background: var(--wp--preset--color--rjt-card, #fff);
  color: var(--wp--preset--color--rjt-text, #0f172a);
  font: inherit;
  transition:
    border-color var(--wp--custom--motion--fast, 120ms) ease,
    box-shadow var(--wp--custom--motion--fast, 120ms) ease;
}

:where(
  .rjt-form-input,
  .rjt-form-select,
  .rjt-form-textarea,
  input,
  textarea,
  select
):focus-visible {
  border-color: var(--wp--preset--color--rjt-accent, #0369a1);
  box-shadow: 0 0 0 4px var(--wp--custom--surface--focus-ring, rgb(3 105 161 / 0.5));
  outline: none;
}

:where(.rjt-form-input, .rjt-form-textarea, input, textarea)::placeholder {
  color: var(--wp--custom--surface--text-light, #475569);
  opacity: 0.8;
}

.wp-block-search__inside-wrapper {
  gap: 0.5rem;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--wp--preset--spacing--2-xl, 4rem);
  border-top: 1px solid var(--wp--custom--surface--border-light, #e2e8f0);
  background: var(--wp--custom--surface--alt, #f1f5f9);
  color: var(--wp--preset--color--rjt-muted, #334155);
}

.site-footer .wp-block-navigation {
  gap: 0.25rem 1.25rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--wp--preset--color--rjt-text, #0f172a);
}

.rjt-footer-tagline {
  max-width: 34rem;
}

/* --------------------------------------------------------------------------
   Header account controls
   -------------------------------------------------------------------------- */
.rjt-account {
  position: relative;
  display: flex;
  align-items: center;
}

.rjt-account__guest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Text links, not the old icon button: keep them compact pills at every width. */
.site-header .rjt-account .rjt-auth-btn {
  align-self: center;
  width: auto;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.rjt-account__guest[hidden],
.rjt-account__member[hidden] {
  display: none;
}

.rjt-auth-btn--ghost {
  border-color: transparent;
  background: transparent;
}

.rjt-avatar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.125rem;
  border: 2px solid transparent;
  border-radius: var(--wp--custom--radius--pill, 999px);
  background: none;
  cursor: pointer;
}

.rjt-avatar-btn[aria-expanded='true'] {
  border-color: var(--wp--preset--color--rjt-sky, #00aeef);
}

.rjt-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--wp--custom--radius--pill, 999px);
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--rjt-navy, #163883),
    var(--wp--preset--color--rjt-accent, #0369a1)
  );
  color: var(--wp--custom--surface--on-accent, #fff);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rjt-avatar--lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: var(--wp--preset--font-size--lg);
}

.rjt-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: var(--wp--custom--radius--pill, 999px);
  background: var(--wp--preset--color--rjt-red, #e01e42);
  color: var(--wp--custom--surface--on-accent, #fff);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.rjt-badge[hidden] {
  display: none;
}

.rjt-avatar-btn .rjt-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  box-shadow: 0 0 0 2px var(--wp--preset--color--rjt-card, #fff);
}

.rjt-account-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 15rem;
  padding: 0.5rem;
  border: 1px solid var(--wp--custom--surface--border-light, #e2e8f0);
  border-radius: var(--wp--custom--radius--md, 12px);
  background: var(--wp--preset--color--rjt-card, #fff);
  box-shadow: var(--wp--custom--shadow--lg);
}

.rjt-account-menu[hidden] {
  display: none;
}

.rjt-account-menu__name {
  margin: 0.25rem 0.75rem 0.5rem;
  color: var(--wp--preset--color--rjt-muted, #334155);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
}

.rjt-account-menu a,
.rjt-account-menu__signout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: var(--wp--custom--radius--sm, 8px);
  background: none;
  color: var(--wp--preset--color--rjt-text, #0f172a);
  font: inherit;
  font-size: var(--wp--preset--font-size--sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.rjt-account-menu a:hover,
.rjt-account-menu__signout:hover {
  background: var(--wp--custom--surface--alt, #f1f5f9);
}

.rjt-account-menu__signout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--wp--custom--surface--border-light, #e2e8f0);
  border-radius: 0 0 var(--wp--custom--radius--sm, 8px) var(--wp--custom--radius--sm, 8px);
  color: var(--wp--preset--color--rjt-muted, #334155);
}

@media (max-width: 781px) {
  .rjt-account__guest .rjt-auth-btn--ghost {
    display: none;
  }

  .rjt-account__guest .rjt-auth-btn {
    width: auto;
    padding: 0.5rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   Save button, item tools, upvotes
   -------------------------------------------------------------------------- */
.rjt-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid color-mix(in srgb, currentcolor 35%, transparent);
  border-radius: var(--wp--custom--radius--pill, 999px);
  background: color-mix(in srgb, var(--wp--preset--color--rjt-card, #fff) 14%, transparent);
  color: inherit;
  font: inherit;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.rjt-save-btn[aria-pressed='true'] svg {
  fill: var(--wp--preset--color--rjt-red, #e01e42);
  stroke: var(--wp--preset--color--rjt-red, #e01e42);
}

.rjt-save-btn[aria-pressed='true'] svg path {
  animation: rjt-pop 260ms var(--wp--custom--motion--ease, ease);
}

@keyframes rjt-pop {
  50% {
    transform: scale(1.25);
  }
}

.rjt-item-tools {
  display: inline-flex;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.rjt-item-tool {
  padding: 0;
  border: 0;
  background: none;
  color: var(--wp--custom--surface--text-light, #475569);
  font: inherit;
  font-size: var(--wp--preset--font-size--xs);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.rjt-item-tool[hidden] {
  display: none;
}

.rjt-item-tool:hover {
  color: var(--wp--preset--color--rjt-text, #0f172a);
}

.rjt-upvote-btn[aria-pressed='true'] {
  border-color: var(--wp--preset--color--rjt-accent, #0369a1);
  background: var(--wp--custom--surface--accent-light, #e0f2fe);
  color: var(--wp--preset--color--rjt-navy, #163883);
}

.rjt-upvote-btn[aria-busy='true'] {
  opacity: 0.6;
}

.rjt-upvote-btn--small {
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  font-size: var(--wp--preset--font-size--xs);
}

.rjt-answer-actions {
  display: inline-flex;
  align-items: center;
}

.rjt-modal-links {
  margin: 0.75rem 0 0;
  font-size: var(--wp--preset--font-size--sm);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sheets (report dialog) and toasts
   -------------------------------------------------------------------------- */
dialog.rjt-sheet {
  width: min(32rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--wp--custom--radius--lg, 20px);
  background: var(--wp--preset--color--rjt-card, #fff);
  color: var(--wp--preset--color--rjt-text, #0f172a);
  box-shadow: var(--wp--custom--shadow--lg);
}

dialog.rjt-sheet::backdrop {
  background: rgb(15 23 42 / 0.55);
  backdrop-filter: blur(3px);
}

.rjt-sheet__body {
  display: grid;
  gap: 0.875rem;
  padding: 1.5rem;
}

.rjt-sheet__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--xl);
}

.rjt-sheet__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.rjt-radio-list {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.rjt-radio-list legend {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.rjt-radio {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--wp--custom--surface--border-light, #e2e8f0);
  border-radius: var(--wp--custom--radius--md, 12px);
  cursor: pointer;
}

.rjt-radio:has(input:checked) {
  border-color: var(--wp--preset--color--rjt-accent, #0369a1);
  background: var(--wp--custom--surface--accent-light, #e0f2fe);
}

@media (max-width: 600px) {
  dialog.rjt-sheet,
  dialog.rjt-ugc-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--wp--custom--radius--lg, 20px) var(--wp--custom--radius--lg, 20px) 0 0;
  }
}

.rjt-toasts {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 100001;
  display: grid;
  gap: 0.5rem;
  width: min(26rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.rjt-toast {
  padding: 0.875rem 1.125rem;
  border-radius: var(--wp--custom--radius--md, 12px);
  background: var(--wp--preset--color--rjt-text, #0f172a);
  color: var(--wp--preset--color--rjt-page, #f8fafc);
  font-size: var(--wp--preset--font-size--sm);
  box-shadow: var(--wp--custom--shadow--lg);
  animation: rjt-toast-in 220ms var(--wp--custom--motion--ease, ease);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.rjt-toast--error {
  background: var(--wp--preset--color--rjt-red, #e01e42);
  color: var(--wp--custom--surface--on-accent, #fff);
}

.rjt-toast.is-leaving {
  opacity: 0;
  transform: translateY(0.5rem);
}

@keyframes rjt-toast-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

/* --------------------------------------------------------------------------
   Wide layouts
   The "wide" groups that hold these components are themselves constrained
   layouts, so core clamps their children back to the 768px reading width and
   a two-column place page ends up with a ~400px main column on desktop.
   Reading text keeps the narrow measure; grids and split layouts use the
   wide size they were designed for.
   -------------------------------------------------------------------------- */
.wp-block-group.alignwide > :is(.rjt-place-layout-grid, .rjt-hero-grid, .wp-block-query, .rjt-hero-breadcrumbs) {
  max-width: none;
}

.rjt-place-card :is(.rjt-overview-body, .rjt-guide-body) {
  max-width: 68ch;
}

.rjt-guide-body :is(h3, h4) {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.rjt-guide-body h3 {
  font-size: 1.15rem;
}

.rjt-guide-body h4 {
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Opening hours
   -------------------------------------------------------------------------- */
.rjt-hours-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rjt-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}

.rjt-hours-day {
  color: var(--wp--preset--color--rjt-muted, #334155);
}

/* --------------------------------------------------------------------------
   Listing cards (destination and list hubs)
   -------------------------------------------------------------------------- */
.wp-block-query .wp-block-post-template.is-layout-grid > li {
  display: flex;
}

.wp-block-query .wp-block-post-template.is-layout-grid > li > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.wp-block-query .wp-block-post-template.is-layout-grid > li > .wp-block-group:is(:hover, :focus-within) {
  border-color: var(--wp--preset--color--rjt-accent, #0369a1);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.1);
  transform: translateY(-2px);
}

.wp-block-query .wp-block-post-template.is-layout-grid .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--wp--custom--surface--alt, #f1f5f9);
}

.wp-block-query .wp-block-post-template.is-layout-grid .wp-block-post-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.wp-block-query .wp-block-post-template.is-layout-grid .wp-block-post-title a {
  color: var(--wp--preset--color--rjt-text, #0f172a);
  text-decoration: none;
}

.wp-block-query .wp-block-post-template.is-layout-grid .wp-block-post-excerpt {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  font-size: 0.925rem;
  color: var(--wp--preset--color--rjt-muted, #334155);
}

.wp-block-query .wp-block-post-template.is-layout-grid .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.wp-block-query .wp-block-post-template.is-layout-grid .wp-block-post-excerpt__more-text {
  margin-top: auto;
  padding-top: 0.75rem;
}

.wp-block-query .wp-block-post-template.is-layout-grid .wp-block-post-excerpt__more-link {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sections that may render nothing
   -------------------------------------------------------------------------- */
.rjt-nearby-section:not(:has(*)) {
  display: none;
}

/* --------------------------------------------------------------------------
   Homepage: community feed and experience cards
   -------------------------------------------------------------------------- */
.wp-block-group.alignwide > :is(.rjt-home-community, .rjt-viator-shelf, .rjt-forum-feed) {
  max-width: none;
}

.rjt-community-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.rjt-community-topic-pill {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--wp--preset--color--rjt-border, #cbd5e1);
  border-radius: 0.625rem;
  background: var(--wp--custom--surface--alt, #f8fafc);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rjt-community-topic-pill:is(:hover, :focus-within) {
  border-color: var(--wp--preset--color--rjt-accent, #0369a1);
  box-shadow: 0 4px 14px rgb(15 23 42 / 0.08);
}

.rjt-topic-pill-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wp--preset--color--rjt-text, #0f172a);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.rjt-topic-pill-meta {
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--rjt-muted, #334155);
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}
