/* VR Escapadas · Blog V5.4.1 · refinamiento visual de articulos individuales.
   Se carga SOLAMENTE en /blog/{slug}; ningun dato, SEO o modulo social cambia.
   CSS posterior a app.css y vr-asistente-v51.css (donde proceda). */

/* El indice principal solo se muestra una vez: lateral en escritorio,
   acordeon integrado en el flujo de lectura en tableta y movil. */
@media (min-width: 901px) {
  .post-page details.pa-v36-inline-index { display: none; }
  .post-page .pa-toc {
    max-height: none;
    overflow: visible;
    padding: 0;
    border-radius: 19px;
  }
  .post-page .pa-toc .pa-v541-side-index {
    display: block;
    min-width: 0;
  }
  .post-page .pa-v541-side-index > summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 8px;
    padding: 18px 21px;
    list-style: none;
    cursor: pointer;
    border-radius: 18px;
    color: #183d32;
  }
  .post-page .pa-v541-side-index > summary::-webkit-details-marker { display: none; }
  .post-page .pa-v541-side-index > summary .eyebrow {
    grid-column: 1 / -1;
    font-size: 11px;
    letter-spacing: .12em;
  }
  .post-page .pa-v541-side-index > summary strong {
    font: 500 27px/1.12 var(--serif, Georgia, serif);
  }
  .post-page .pa-v541-side-index > summary small {
    color: #648174;
    font-size: 11px;
    white-space: nowrap;
  }
  .post-page .pa-v541-side-index > summary::after {
    content: "⌄";
    grid-column: 2;
    grid-row: 1;
    font-size: 20px;
    color: #1f5a47;
    transition: transform .15s ease;
  }
  .post-page .pa-v541-side-index[open] > summary::after { transform: rotate(180deg); }
  .post-page .pa-v541-side-index[open] > summary {
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid #e2eae4;
  }
  .post-page .pa-v541-side-index nav {
    display: grid;
    max-height: min(40dvh, 340px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    padding: 0 21px 12px;
  }
  .post-page .pa-v541-side-index nav a {
    font-size: 12.5px;
    line-height: 1.5;
    padding: 10px 0;
    overflow-wrap: anywhere;
    border-color: #e5ece6;
  }
  .post-page .pa-v541-side-index nav a:hover,
  .post-page .pa-v541-side-index nav a:focus-visible {
    color: #135947;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .post-page .pa-v541-side-index nav a.sub { padding-left: 15px; }
  .post-page .pa-sidebar-sticky { gap: 18px; }
  .post-page .pa-plan p { font-size: 13px; line-height: 1.58; }
  .post-page .pa-plan-link { font-size: 12px; }
}

/* Foco visible y anclas bajo la cabecera fija. */
.post-page .pa-v36-inline-index summary:focus-visible,
.post-page .pa-v541-side-index summary:focus-visible,
.post-page .pa-v36-inline-index a:focus-visible {
  outline: 3px solid #bda66e;
  outline-offset: 3px;
}
.post-page .pa-prose h2[id],
.post-page .pa-prose h3[id] { scroll-margin-top: 105px; }

/* Pequeños acentos editoriales sin inventar texto ni insertar imágenes. */
.post-page .pa-prose h2 + p { margin-top: 0; }
.post-page .pa-prose h2.pa-v36-break { border-top-color: #cfded2; }
.post-page .pa-prose figure figcaption { font-size: 12px; line-height: 1.5; }

/* El asistente del articulo mantiene su funcionamiento y panel existentes,
   pero el acceso cerrado ya no tapa el CTA del lateral. */
.vrbot.vrbot-blog-article {
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.vrbot-blog-article .vrbot-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 7px 23px rgba(18,63,53,.22);
}
.vrbot-blog-article .vrbot-toggle::before {
  content: "✦";
  color: #fff;
  font-size: 23px;
  line-height: 1;
}
.vrbot-blog-article .vrbot-toggle[aria-expanded="true"]::before { content: "×"; font-size: 29px; }
.vrbot-blog-article .vrbot-panel {
  right: 0;
  bottom: 60px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 96px);
}

@media (max-width: 900px) {
  .post-page .pa-toc { display: none; }
  .post-page details.pa-v36-inline-index { display: block; }
  .post-page .pa-layout { min-width: 0; }
  .post-page .pa-prose { min-width: 0; overflow-wrap: anywhere; }
  .post-page .pa-prose img, .post-page .pa-prose video { max-width: 100%; }
  .post-page .pa-v36-inline-index nav a {
    min-height: 44px;
    font-size: 13px;
    align-items: center;
  }
}
@media (max-width: 390px) {
  .post-page .pa-hero h1 { font-size: clamp(31px, 8.6vw, 34px); }
  .post-page .pa-excerpt { font-size: 15px; line-height: 1.55; }
  .post-page .pa-v36-summary>span { font-size: 11px; padding: 8px 9px; }
  .post-page .pa-v36-inline-index { padding: 15px; }
  .post-page .pa-v36-inline-index summary { min-height: 23px; }
  .post-page .pa-prose h2 { font-size: clamp(27px, 7.3vw, 30px); }
  .post-page .pa-prose>p.pa-v36-lead { font-size: 17px; }
  .post-page .pa-prose figure { margin: 28px 0; }
  .post-page .pa-plan { padding: 22px 19px; }
}
@media (max-width: 680px) {
  .vrbot.vrbot-blog-article {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .vrbot-blog-article .vrbot-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }
  .vrbot-blog-article .vrbot-panel {
    bottom: 58px;
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100dvh - 94px);
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .vrbot-blog-article .vrbot-panel {
    bottom: 54px;
    max-height: calc(100dvh - 68px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .post-page .pa-v541-side-index > summary::after { transition: none; }
}
