/* JF Stories Editoriais 1.0 — componente independente para Jaque Fonseca */
.jfse-host {
  --jfse-wine: #70213d;
  --jfse-mauve: #a67c8a;
  --jfse-gold: #c79665;
  --jfse-ink: #392c28;
  --jfse-muted: #6e615b;
  --jfse-line: #e5d7cb;
  --jfse-cream: #fcfaf7;
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--jfse-ink);
  font-family: Arial, Helvetica, sans-serif;
}
.jfse-host *, .jfse-host *::before, .jfse-host *::after { box-sizing: border-box; }
.jfse-host .jfse { max-width: 100%; min-width: 0; margin: 64px 0 0; }
.jfse-host .jfse__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 21px; }
.jfse-host .jfse__heading { min-width: 0; }
.jfse-host .jfse__eyebrow,
#jfapp.jf-home-refinada .jfse__eyebrow {
  margin: 0 0 7px; color: var(--jfse-wine); font: 700 11px/1.5 Arial, sans-serif; letter-spacing: .14em;
}
.jfse-host .jfse__title,
#jfapp.jf-home-refinada .jfse__title {
  margin: 0; color: var(--jfse-ink); font: 400 clamp(27px, 3vw, 42px)/1.16 Georgia, 'Times New Roman', serif; letter-spacing: -.02em;
}
.jfse-host .jfse__subtitle,
#jfapp.jf-home-refinada .jfse__subtitle {
  margin: 10px 0 0; color: var(--jfse-muted); font: 15px/1.55 Arial, sans-serif;
}
.jfse-host .jfse__tools { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.jfse-host .jfse__blog-link,
#jfapp.jf-home-refinada .jfse__blog-link {
  padding: 10px; color: var(--jfse-wine); font: 700 13px/1.4 Arial, sans-serif; text-decoration: none; white-space: nowrap;
}
.jfse-host .jfse__blog-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.jfse-host .jfse__arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid var(--jfse-line); border-radius: 50%; background: #fffdfa;
  color: var(--jfse-wine); font: 24px/1 Georgia, serif; cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.jfse-host .jfse__arrow:hover:not(:disabled) { background: #f2e8e3; border-color: var(--jfse-mauve); }
.jfse-host .jfse__arrow:disabled { opacity: .35; cursor: default; }
.jfse-host .jfse__track {
  display: flex; gap: clamp(13px, 1.9vw, 25px); align-items: flex-start; overflow-x: auto; overflow-y: hidden;
  max-width: 100%; padding: 7px 3px 16px; scroll-behavior: smooth; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--jfse-line) transparent; overscroll-behavior-inline: contain;
}
.jfse-host .jfse__item,
#jfapp.jf-home-refinada .jfse__item {
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  width: 119px; flex: 0 0 119px; min-width: 0; padding: 0;
  color: var(--jfse-ink); text-align: center; text-decoration: none; scroll-snap-align: start;
}
.jfse-host .jfse__ring {
  display: grid; place-items: center; width: 108px; height: 108px; padding: 5px;
  border: 2px solid var(--jfse-mauve); border-radius: 50%;
  background: var(--jfse-cream); transition: border-color .16s ease, transform .16s ease;
}
.jfse-host .jfse__item--pinned .jfse__ring { border-color: var(--jfse-wine); }
.jfse-host .jfse__item:hover .jfse__ring { border-color: var(--jfse-gold); transform: translateY(-3px); }
.jfse-host .jfse__circle {
  display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  border-radius: 50%; background: linear-gradient(145deg, #f1e7de, #dfc9c5); color: var(--jfse-wine);
}
.jfse-host .jfse__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; }
.jfse-host .jfse__book-icon { display: block; width: 48px; height: 48px; }
.jfse-host .jfse__item-title,
#jfapp.jf-home-refinada .jfse__item-title {
  display: -webkit-box; overflow: hidden; max-width: 119px; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  color: var(--jfse-ink); font: 500 13px/1.38 Arial, sans-serif; overflow-wrap: anywhere;
}
.jfse-host .jfse__item:hover .jfse__item-title { color: var(--jfse-wine); text-decoration: underline; text-underline-offset: 3px; }
.jfse-host .jfse__hint,
#jfapp.jf-home-refinada .jfse__hint {
  margin: 5px 0 0; color: var(--jfse-muted); font: 12px/1.4 Arial, sans-serif;
}
.jfse-host :is(a, button):focus-visible { outline: 3px solid var(--jfse-wine); outline-offset: 4px; }
.jfse-host .jfse__dialog:not([open]) { display: none; }
.jfse-host .jfse__dialog {
  position: fixed; inset: 0; margin: auto; padding: 0; width: min(710px, calc(100vw - 28px));
  max-width: calc(100vw - 28px); max-height: min(84dvh, 760px); border: 1px solid var(--jfse-line);
  border-radius: 16px; overflow: auto; background: #fffdfa; color: var(--jfse-ink);
  box-shadow: 0 22px 70px #27121d40;
}
.jfse-host .jfse__dialog::backdrop { background: #21151ac9; }
.jfse-host .jfse__dialog-card { position: relative; display: grid; grid-template-columns: minmax(0, 235px) minmax(0, 1fr); min-height: 284px; }
.jfse-host .jfse__dialog-art { display: grid; place-items: center; min-height: 270px; background: #efe5dd; overflow: hidden; }
.jfse-host .jfse__dialog-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jfse-host .jfse__preview-placeholder { font: italic 78px/1 Georgia, serif; letter-spacing: -.1em; color: var(--jfse-mauve); }
.jfse-host .jfse__dialog-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 41px 35px; }
.jfse-host .jfse__dialog-eyebrow,
#jfapp.jf-home-refinada .jfse__dialog-eyebrow {
  margin: 0 0 10px; color: var(--jfse-wine); font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
.jfse-host .jfse__dialog-title,
#jfapp.jf-home-refinada .jfse__dialog-title {
  margin: 0; color: var(--jfse-ink); font: 400 clamp(24px, 2.5vw, 34px)/1.15 Georgia, serif;
}
.jfse-host .jfse__dialog-summary,
#jfapp.jf-home-refinada .jfse__dialog-summary {
  margin: 15px 0 20px; color: var(--jfse-muted); font: 15px/1.5 Arial, sans-serif;
}
.jfse-host .jfse__read,
#jfapp.jf-home-refinada .jfse__read {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 9px;
  border: 1px solid var(--jfse-wine); border-radius: 7px; padding: 11px 18px;
  background: var(--jfse-wine); color: white; font: 700 14px/1.4 Arial, sans-serif; text-decoration: none;
}
.jfse-host .jfse__read:hover { background: #57172e; color: white; }
.jfse-host .jfse__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--jfse-line); border-radius: 50%;
  background: #fffdfa; color: var(--jfse-wine); font: 26px/1 Arial, sans-serif; cursor: pointer;
}
@media (max-width: 760px) {
  .jfse-host .jfse { margin-top: 46px; }
  .jfse-host .jfse__top { align-items: flex-start; flex-direction: column; gap: 12px; }
  .jfse-host .jfse__tools { width: 100%; justify-content: space-between; gap: 6px; }
  .jfse-host .jfse__blog-link, #jfapp.jf-home-refinada .jfse__blog-link { margin-right: auto; padding-left: 0; white-space: normal; }
  .jfse-host .jfse__item, #jfapp.jf-home-refinada .jfse__item { width: 101px; flex-basis: 101px; }
  .jfse-host .jfse__ring { width: 84px; height: 84px; padding: 4px; }
  .jfse-host .jfse__book-icon { width: 39px; height: 39px; }
  .jfse-host .jfse__item-title, #jfapp.jf-home-refinada .jfse__item-title { max-width: 101px; font-size: 12px; }
  .jfse-host .jfse__dialog-card { display: flex; flex-direction: column; }
  .jfse-host .jfse__dialog-art { height: min(34vh, 200px); min-height: 130px; }
  .jfse-host .jfse__dialog-body { padding: 27px 23px 26px; }
  .jfse-host .jfse__dialog-title, #jfapp.jf-home-refinada .jfse__dialog-title { font-size: 25px; }
  .jfse-host .jfse__dialog-summary, #jfapp.jf-home-refinada .jfse__dialog-summary { margin: 12px 0 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .jfse-host .jfse__track { scroll-behavior: auto; }
  .jfse-host .jfse__ring { transition: none; }
}

/* JF STORIES EDITORIAIS 1.1 — barra superior compacta, antes do hero.
   Todas as regras ficam isoladas no componente, sem alterar a home. */
.jfse-host {
  max-width: 100%;
  overflow: hidden;
}
.jfse-host .jfse {
  max-width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: 12px 0 13px;
  border-top: 1px solid var(--jfse-line);
  border-bottom: 1px solid var(--jfse-line);
}
.jfse-host .jfse__top {
  align-items: center;
  gap: 12px;
  margin: 0 0 11px;
}
.jfse-host .jfse__heading { min-width: 0; }
.jfse-host .jfse__eyebrow,
#jfapp.jf-home-refinada .jfse__eyebrow {
  margin: 0 0 2px;
  font: 700 9px/1.3 Arial,Helvetica,sans-serif;
  letter-spacing: .13em;
}
.jfse-host .jfse__title,
#jfapp.jf-home-refinada .jfse__title {
  margin: 0;
  font: 400 clamp(20px, 2vw, 25px)/1.18 Georgia,serif;
  letter-spacing: -.015em;
}
.jfse-host .jfse__subtitle,
#jfapp.jf-home-refinada .jfse__subtitle {
  margin: 2px 0 0;
  font: 12px/1.3 Arial,Helvetica,sans-serif;
}
.jfse-host .jfse__tools { gap: 6px; }
.jfse-host .jfse__blog-link,
#jfapp.jf-home-refinada .jfse__blog-link {
  font: 700 12px/1.3 Arial,Helvetica,sans-serif;
  padding: 8px 10px;
}
.jfse-host .jfse__arrow {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 21px;
}
.jfse-host .jfse__track {
  gap: clamp(10px, 1.35vw, 20px);
  max-width: 100%;
  padding: 4px 3px 8px;
  margin: 0;
  scrollbar-width: none;
}
.jfse-host .jfse__track::-webkit-scrollbar { display: none; }
.jfse-host .jfse__item,
#jfapp.jf-home-refinada .jfse__item {
  gap: 7px;
  width: 95px;
  flex-basis: 95px;
}
.jfse-host .jfse__ring {
  position: relative;
  width: 79px;
  height: 79px;
  padding: 3px;
  border-width: 2px;
}
.jfse-host .jfse__item--new .jfse__ring { border-color: var(--jfse-wine); }
.jfse-host .jfse__new-indicator {
  position: absolute;
  top: -6px;
  right: -12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  border: 1px solid #fffdfa;
  background: var(--jfse-wine);
  color: #fff;
  font: 700 9px/1 Arial,Helvetica,sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 1px 3px #392c2820;
}
.jfse-host .jfse__image { object-fit: cover; object-position: center; }
.jfse-host .jfse__book-icon { width: 35px; height: 35px; }
.jfse-host .jfse__item-title,
#jfapp.jf-home-refinada .jfse__item-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 95px;
  min-height: 31px;
  font: 500 12px/1.3 Arial,Helvetica,sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.jfse-host .jfse__hint,
#jfapp.jf-home-refinada .jfse__hint { display: none; }
@media (max-width: 760px) {
  .jfse-host .jfse {
    margin: 0 0 13px;
    padding: 9px 0 10px;
  }
  .jfse-host .jfse__top {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
  }
  .jfse-host .jfse__heading { flex: 1 1 auto; }
  .jfse-host .jfse__eyebrow,
  #jfapp.jf-home-refinada .jfse__eyebrow { font-size: 9px; }
  .jfse-host .jfse__title,
  #jfapp.jf-home-refinada .jfse__title { font-size: 20px; }
  .jfse-host .jfse__subtitle,
  #jfapp.jf-home-refinada .jfse__subtitle { display: none; }
  .jfse-host .jfse__tools {
    width: auto;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
  }
  .jfse-host .jfse__blog-link,
  #jfapp.jf-home-refinada .jfse__blog-link {
    margin: 0;
    padding: 8px 4px;
    font-size: 11px;
    white-space: nowrap;
  }
  .jfse-host .jfse__arrow { width: 32px; height: 32px; flex-basis: 32px; font-size: 20px; }
  .jfse-host .jfse__track { gap: 7px; padding: 5px 2px 5px; }
  .jfse-host .jfse__item,
  #jfapp.jf-home-refinada .jfse__item { width: 77px; flex-basis: 77px; gap: 6px; }
  .jfse-host .jfse__ring { width: 69px; height: 69px; padding: 3px; }
  .jfse-host .jfse__new-indicator { right: -9px; top: -6px; font-size: 8px; height: 16px; padding: 0 4px; }
  .jfse-host .jfse__item-title,
  #jfapp.jf-home-refinada .jfse__item-title {
    max-width: 77px;
    min-height: 30px;
    font-size: 11px;
    line-height: 1.32;
  }
  .jfse-host .jfse__book-icon { width: 32px; height: 32px; }
}
@media (max-width: 420px) {
  .jfse-host .jfse__top { flex-wrap: wrap; }
  .jfse-host .jfse__tools { width: 100%; justify-content: flex-start; }
  .jfse-host .jfse__blog-link,
  #jfapp.jf-home-refinada .jfse__blog-link { padding-left: 0; margin-right: auto; }
}
/* Toque é a navegação primária no celular; setas ficam apenas no desktop. */
.jfse-host .jfse__track { padding-top: 9px; }
@media (max-width: 760px) {
  .jfse-host .jfse__track { padding-top: 9px; }
  .jfse-host .jfse__arrow { display: none; }
  .jfse-host .jfse__tools { width: auto; }
}
@media (max-width: 420px) {
  .jfse-host .jfse__top { flex-wrap: nowrap; }
  .jfse-host .jfse__tools { width: auto; flex: 0 0 auto; }
}
