/*!
 * Farm Notes plugin styles
 * Version 1.0.0
 */

/* ═══════════════════════════════════════════════════════════════
   FARM NOTES — feed viewer /farm-notes/
   Instagram-style square grid, hero dark, body warm, lightbox dark
═══════════════════════════════════════════════════════════════ */

/* Avada wrapper padding OFF — full bleed hero + grid.
   fusion_get_option filter alone doesn't reliably suppress these for a page
   using the Default template — same issue documented for page-bio-preview.php
   etc in avada-custom-css-MASTER.css. Force via body class instead. */
body.fn-page #main,
body.fn-page #main .fusion-row {
  padding: 0 !important; margin: 0 !important; max-width: 100% !important;
}
body.fn-page .fusion-page-title-bar,
body.fn-page h1.entry-title { display: none !important; }

/* Site header (logo/nav bar) overlaps the hero image on other custom-template
   hero pages (about-us etc) via an Avada per-page setting — our pages use the
   Default template so they never got that setting, showing the header's solid
   background instead. Force the same overlay look via CSS. */
body.fn-page .fusion-header-wrapper {
  position: absolute !important; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent !important; box-shadow: none !important;
}
body.fn-page .fusion-header { background: transparent !important; }
body.fn-page #main { margin-top: 0 !important; }

.det-farm-notes-preview { color: var(--det-body); }
.det-farm-notes-preview a { color: inherit; text-decoration: none; }

/* HERO: hereda las clases ab-hero de about-hub-preview. Lo único propio es la
   bajada — about-hub nunca tuvo una, así que .ab-hero__sub no existe en ninguna
   otra hoja y se define acá. Escala con el título: 3.4rem → 2rem en ≤600px. */
.det-farm-notes-preview .ab-hero__sub {
  font-size: 1.15rem; font-weight: 400; line-height: 1.6;
  color: rgba(255,255,255,.82); max-width: 680px; margin: 18px 0 0;
  text-wrap: pretty;
}
@media (max-width: 600px) {
  .det-farm-notes-preview .ab-hero__sub { font-size: 1rem; margin-top: 14px; }
}

/* TOOLBAR — sticky chips */
.det-farm-notes-preview .fn-toolbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--det-line);
  padding: 16px var(--det-pad);
}
.det-farm-notes-preview .fn-toolbar__inner { max-width: 1280px; margin: 0 auto; }
.det-farm-notes-preview .fn-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.det-farm-notes-preview .fn-chip {
  background: transparent; border: 1.5px solid var(--det-line);
  color: var(--det-body); padding: 7px 16px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; border-radius: 25px; font-family: inherit;
  transition: all .2s;
}
.det-farm-notes-preview .fn-chip:hover { border-color: var(--det-dark); color: var(--det-dark); }
.det-farm-notes-preview .fn-chip.is-active { background: var(--det-dark); color: #fff; border-color: var(--det-dark); }

/* GRID */
.det-farm-notes-preview .fn-grid-section { background: #fff; padding: 40px var(--det-pad) 80px; }
.det-farm-notes-preview .fn-grid-section__inner { max-width: 1280px; margin: 0 auto; }
.det-farm-notes-preview .fn-count { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--det-body-soft); margin-bottom: 20px; font-weight: 600; }

.det-farm-notes-preview .fn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (max-width: 640px) { .det-farm-notes-preview .fn-grid { grid-template-columns: 1fr; gap: 0; } }

.det-farm-notes-preview .fn-tile {
  display: block; text-decoration: none; color: inherit;
  cursor: pointer; width: 100%; min-width: 0;
}
.det-farm-notes-preview .fn-tile__media {
  position: relative; width: 100%; display: block;
  height: 0; padding-top: 100%;   /* 1:1 aspect via padding-top hack (bulletproof) */
  overflow: hidden; background: var(--det-dark);
}
.det-farm-notes-preview .fn-tile__media img,
.det-farm-notes-preview .fn-tile__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease, opacity .3s ease;
}
.det-farm-notes-preview .fn-tile:hover .fn-tile__media img { transform: scale(1.04); opacity: .85; }

.det-farm-notes-preview .fn-tile__media .fn-tile__module {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.75); color: #fff;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 2px;
}
.det-farm-notes-preview .fn-tile__media .fn-tile__video-icon {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  color: #fff; background: rgba(0,0,0,.6);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.det-farm-notes-preview .fn-tile__video-icon svg { width: 12px; height: 12px; margin-left: 2px; }

.det-farm-notes-preview .fn-tile__media .fn-tile__caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 14px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.9));
  color: #fff; font-size: 12px; line-height: 1.35;
  opacity: 0; transition: opacity .25s ease; text-align: left;
}
.det-farm-notes-preview .fn-tile:hover .fn-tile__media .fn-tile__caption { opacity: 1; }
.det-farm-notes-preview .fn-tile__date { font-size: 9px; color: rgba(255,255,255,.75); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; font-weight: 600; }

.det-farm-notes-preview .fn-empty { text-align: center; padding: 60px 20px; color: var(--det-body-soft); font-size: 14px; font-style: italic; }

/* LIGHTBOX */
.det-farm-notes-preview .fn-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.det-farm-notes-preview .fn-lightbox.is-open { display: flex; }
.det-farm-notes-preview .fn-lightbox__close { position: absolute; top: 20px; right: 20px; background: transparent; border: 0; color: #fff; font-size: 34px; cursor: pointer; opacity: .7; transition: opacity .2s; z-index: 2; line-height: 1; padding: 0 8px; }
.det-farm-notes-preview .fn-lightbox__close:hover { opacity: 1; }
.det-farm-notes-preview .fn-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; opacity: .7; transition: all .2s; z-index: 2; line-height: 1; }
.det-farm-notes-preview .fn-lightbox__nav:hover { opacity: 1; background: rgba(0,0,0,.7); }
.det-farm-notes-preview .fn-lightbox__nav--prev { left: 20px; }
.det-farm-notes-preview .fn-lightbox__nav--next { right: 20px; }
@media (max-width: 700px) { .det-farm-notes-preview .fn-lightbox__nav { width: 36px; height: 36px; font-size: 20px; } }

.det-farm-notes-preview .fn-lightbox__inner { max-width: 1100px; width: 100%; max-height: 90vh; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; background: #0a0a0a; }
@media (max-width: 800px) { .det-farm-notes-preview .fn-lightbox__inner { grid-template-columns: 1fr; max-height: 95vh; } }
.det-farm-notes-preview .fn-lightbox__media { background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 400px; max-height: 90vh; }
@media (max-width: 800px) { .det-farm-notes-preview .fn-lightbox__media { min-height: 300px; max-height: 55vh; } }
.det-farm-notes-preview .fn-lightbox__media img,
.det-farm-notes-preview .fn-lightbox__media video { max-width: 100%; max-height: 90vh; object-fit: contain; display: block; }
.det-farm-notes-preview .fn-lightbox__info { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid rgba(255,255,255,.08); color: #fff; }
@media (max-width: 800px) { .det-farm-notes-preview .fn-lightbox__info { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 20px; } }
.det-farm-notes-preview .fn-lightbox__module { display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 5px 12px; border: 1px solid var(--det-primary); color: var(--det-primary); border-radius: 20px; margin-bottom: 18px; align-self: flex-start; }
.det-farm-notes-preview .fn-lightbox__caption { font-size: 16px; line-height: 1.55; color: #eee; margin: 0 0 20px; }
.det-farm-notes-preview .fn-lightbox__date { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.det-farm-notes-preview .fn-lightbox__unmute { margin-top: 12px; background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 8px 18px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; cursor: pointer; font-family: inherit; border-radius: 20px; align-self: flex-start; transition: all .2s; }
.det-farm-notes-preview .fn-lightbox__unmute:hover { background: rgba(255,255,255,.1); }


/* ═══════════════════════════════════════════════════════════════
   FARM NOTES — POST CONSOLE /farm-notes/post/
═══════════════════════════════════════════════════════════════ */

/* Avada wrapper off — covered by body.fn-page rule above (shared with the feed page) */

.det-farm-notes-post-preview { background: #fff; color: var(--det-body); }
.det-farm-notes-post-preview .fnp-wrap { max-width: 900px; margin: 0 auto; padding: 40px var(--det-pad) 80px; }

/* Tabs */
.det-farm-notes-post-preview .fnp-tabs { display: flex; gap: 4px; margin-bottom: 30px; border-bottom: 1px solid var(--det-line); }
.det-farm-notes-post-preview .fnp-tab {
  background: transparent; border: 0; color: var(--det-body-soft);
  padding: 14px 20px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; transition: all .2s;
  margin-bottom: -1px; font-weight: 700;
}
.det-farm-notes-post-preview .fnp-tab:hover { color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-tab.is-active { color: var(--det-dark); border-bottom-color: var(--det-dark); }

.det-farm-notes-post-preview .fnp-panel { display: none; }
.det-farm-notes-post-preview .fnp-panel.is-active { display: block; }

/* Cards */
.det-farm-notes-post-preview .fnp-card {
  background: var(--det-bg-alt); border: 1px solid var(--det-line);
  border-radius: 8px; padding: 26px; margin-bottom: 18px;
}
.det-farm-notes-post-preview .fnp-card__title {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--det-body-soft);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-weight: 700;
}
.det-farm-notes-post-preview .fnp-card__title small {
  text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--det-body-soft);
  margin-left: 10px; font-weight: normal;
}
.det-farm-notes-post-preview .fnp-num {
  background: var(--det-dark); color: #fff; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}

/* Type selector */
.det-farm-notes-post-preview .fnp-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.det-farm-notes-post-preview .fnp-type-btn {
  background: #fff; border: 2px solid var(--det-line); color: var(--det-dark);
  padding: 18px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; font-family: inherit; border-radius: 6px; transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.det-farm-notes-post-preview .fnp-type-btn:hover { border-color: var(--det-body); }
.det-farm-notes-post-preview .fnp-type-btn.is-active { border-color: var(--det-dark); background: var(--det-dark); color: #fff; }
.det-farm-notes-post-preview .fnp-type-btn svg { width: 26px; height: 26px; }

/* Drop zone */
.det-farm-notes-post-preview .fnp-drop {
  border: 2px dashed var(--det-line); border-radius: 8px;
  padding: 50px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: #fff;
}
.det-farm-notes-post-preview .fnp-drop:hover,
.det-farm-notes-post-preview .fnp-drop.is-drag { border-color: var(--det-dark); background: var(--det-bg-warm); }
.det-farm-notes-post-preview .fnp-drop svg { width: 44px; height: 44px; margin-bottom: 14px; opacity: .4; }
.det-farm-notes-post-preview .fnp-drop__label { font-size: 15px; margin-bottom: 6px; color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-drop__hint { font-size: 12px; color: var(--det-body-soft); }

.det-farm-notes-post-preview .fnp-processing { text-align: center; padding: 40px; color: var(--det-body); }
.det-farm-notes-post-preview .fnp-processing__msg { font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.det-farm-notes-post-preview .fnp-processing__hint { font-size: 11px; color: var(--det-body-soft); }

/* Crop */
.det-farm-notes-post-preview .fnp-crop__label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--det-body-soft); margin-bottom: 10px; font-weight: 700;
}
.det-farm-notes-post-preview .fnp-crop__wrap {
  width: 100%; max-height: 500px; min-height: 300px; background: #000;
  border-radius: 4px; overflow: hidden; margin-bottom: 12px;
}
.det-farm-notes-post-preview .fnp-crop__wrap img { display: block; max-width: 100%; }
.det-farm-notes-post-preview .fnp-info {
  font-size: 11px; color: var(--det-body-soft);
  padding: 8px 12px; background: #fff; border: 1px solid var(--det-line); border-radius: 4px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px;
}
.det-farm-notes-post-preview .fnp-info strong { color: var(--det-dark); }

/* Video */
.det-farm-notes-post-preview .fnp-video__player { background: #000; border-radius: 4px; overflow: hidden; }
.det-farm-notes-post-preview .fnp-video__player video { width: 100%; max-height: 400px; display: block; }
.det-farm-notes-post-preview .fnp-video__tools { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.det-farm-notes-post-preview .fnp-video__tools button {
  background: #fff; border: 1px solid var(--det-line); color: var(--det-dark);
  padding: 8px 14px; font-size: 11px; cursor: pointer; font-family: inherit;
  border-radius: 4px; font-weight: 600; letter-spacing: .5px;
}
.det-farm-notes-post-preview .fnp-video__tools button:hover { border-color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-info-inline { font-size: 11px; color: var(--det-body-soft); }

.det-farm-notes-post-preview .fnp-replace {
  background: transparent; border: 1px solid var(--det-line); color: var(--det-body-soft);
  padding: 6px 12px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; font-family: inherit; border-radius: 4px; margin-top: 10px;
}
.det-farm-notes-post-preview .fnp-replace:hover { color: var(--det-dark); border-color: var(--det-dark); }

/* Chips */
.det-farm-notes-post-preview .fnp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.det-farm-notes-post-preview .fnp-chip {
  background: #fff; border: 1.5px solid var(--det-line);
  color: var(--det-body); padding: 8px 16px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; border-radius: 25px; font-family: inherit; transition: all .2s;
}
.det-farm-notes-post-preview .fnp-chip:hover { border-color: var(--det-dark); color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-chip.is-selected { background: var(--det-dark); color: #fff; border-color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-note { font-size: 11px; color: var(--det-body-soft); font-style: italic; margin-top: 10px; }

/* Caption */
.det-farm-notes-post-preview .fnp-caption { position: relative; }
.det-farm-notes-post-preview .fnp-caption textarea {
  width: 100%; background: #fff; border: 1px solid var(--det-line);
  color: var(--det-dark); padding: 14px; font-size: 14px; line-height: 1.5; font-family: inherit;
  border-radius: 4px; min-height: 100px; resize: vertical;
}
.det-farm-notes-post-preview .fnp-caption textarea:focus { outline: none; border-color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-caption-count {
  position: absolute; bottom: 8px; right: 12px; font-size: 11px; color: var(--det-body-soft);
  background: rgba(255,255,255,.85); padding: 2px 6px; border-radius: 3px;
}
.det-farm-notes-post-preview .fnp-caption-count.is-over { color: #d00; }

/* Date */
.det-farm-notes-post-preview .fnp-date {
  background: #fff; border: 1px solid var(--det-line); color: var(--det-dark);
  padding: 12px 14px; font-size: 14px; font-family: inherit; border-radius: 4px;
}

/* ─── Descarga: fricción, no protección ───
   Nada de esto impide bajarse el archivo — si el navegador lo muestra, ya está en
   el dispositivo, y devtools o una captura de pantalla lo saltean siempre. Sólo
   evita el camino de un click: menú contextual, long-press en iOS y arrastrar la
   imagen al escritorio. Se aplica al media únicamente, para no romper el click
   derecho en links y texto, que la gente usa de forma legítima. */
.det-farm-notes-preview .fn-tile__media img,
.det-farm-note-single-preview .fns-story__img,
.det-farm-note-single-preview .fns-story__video {
  -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none;
}

/* Puerta /sign-in/: sin footer. Es una pantalla de entrada, no una página del
   sitio — el footer de Avada (widgets, copyright, redes) distrae y alarga el scroll
   de algo que tiene que resolverse en un gesto. El header se deja: sirve para volver. */
body.fn-signin .fusion-footer,
body.fn-signin .fusion-footer-widget-area,
body.fn-signin .fusion-footer-copyright-area,
body.fn-signin .fusion-tb-footer,
body.fn-signin .fusion-scroll-to-top-container { display: none !important; }

/* Gate de acceso + selector de herramienta.
   Sin scope al wrapper de la consola: el mismo markup se usa en /sign-in/, que es
   una página normal y no lo tiene. Los !important son contra el CSS global de Avada,
   que pinta todo input de blanco y pisa tipografías. */
.fn-gate { display: grid; place-items: center; min-height: 55vh; padding: 40px 20px; }
.fn-gate__card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid #e8dfc8;
  border-radius: 6px; padding: 36px 32px; box-shadow: 0 8px 30px rgba(0,0,0,.06); text-align: left;
}
.fn-gate__logo { display: block; height: 40px; width: auto; margin: 0 0 22px; }
.fn-gate__title { font-size: 22px !important; margin: 0 0 6px !important; color: #111 !important; }
.fn-gate__sub { font-size: 14px; color: #6b6b6b; margin: 0 0 20px; }
.fn-gate__error {
  background: #fdecec; border: 1px solid #f5c2c2; color: #9b1c1c;
  padding: 10px 12px; border-radius: 4px; font-size: 13px; margin: 0 0 16px;
}
.fn-gate label { display: block; font-size: 13px; margin-bottom: 14px; color: #111; }
.fn-gate input[type="text"],
.fn-gate input[type="password"] {
  width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid #e8dfc8 !important; border-radius: 4px; background: #fff !important; color: #111 !important;
}
.fn-gate .login-remember label { font-size: 13px; }
.fn-gate input[type="submit"] {
  width: 100%; background: #111 !important; color: #fff !important; border: 0 !important;
  border-radius: 4px; padding: 13px 20px; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; margin-top: 4px;
}
.fn-gate input[type="submit"]:hover { opacity: .88; }
.fn-gate__hint { font-size: 12px; color: #6b6b6b; margin: 18px 0 0; }

/* Selector de herramienta — sólo lo ve quien tiene los dos accesos. */
.fn-choose { max-width: 560px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.fn-choose__logo { height: 52px; width: auto; margin: 0 0 26px; display: inline-block; }
.fn-choose__title { font-size: 20px !important; font-weight: 600 !important; margin: 0 0 6px !important; color: #111 !important; }
.fn-choose__sub { margin: 0 0 28px; color: #6b6b6b; font-size: 14px; }
.fn-choose__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .fn-choose__opts { grid-template-columns: 1fr; } }
.fn-choose__opt {
  display: block; background: #fff; border: 1px solid #e8dfc8; border-radius: 6px;
  padding: 26px 20px; text-decoration: none !important; color: inherit !important;
  box-shadow: 0 6px 22px rgba(0,0,0,.05); transition: border-color .15s ease, transform .15s ease;
}
.fn-choose__opt:hover { border-color: #CB9831; transform: translateY(-2px); }
.fn-choose__opt .t { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.fn-choose__opt .d { display: block; font-size: 13px; color: #6b6b6b; line-height: 1.45; }
.fn-choose__out { margin-top: 26px; font-size: 13px; }
.fn-choose__out a { color: #6b6b6b; }

/* Social — colapsada por defecto. Publicar en el feed y publicar en redes son
   momentos distintos, y una nota es un snapshot breve: el formulario de carga no
   tiene que crecer por una acción que quizá ocurra semanas después.
   El contador va inline porque .fnp-caption-count es absolute y necesita su
   wrapper relative, que acá no existe. */
.det-farm-notes-post-preview .fnp-card--social { padding: 0; overflow: hidden; }
.det-farm-notes-post-preview .fnp-social-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; background: none; border: 0; cursor: pointer; padding: 22px 26px;
  font-family: inherit; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 700; color: var(--det-body-soft); text-align: left;
}
.det-farm-notes-post-preview .fnp-social-toggle:hover { color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-social-toggle__caret { transition: transform .18s ease; font-size: 14px; }
.det-farm-notes-post-preview .fnp-social-toggle.is-open .fnp-social-toggle__caret { transform: rotate(180deg); }
.det-farm-notes-post-preview .fnp-social-toggle.is-open { color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-social-body { padding: 0 26px 26px; }
.det-farm-notes-post-preview .fnp-social-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px;
}
.det-farm-notes-post-preview .fnp-social-publish {
  background: var(--det-dark); color: #fff; border: 0; border-radius: 4px;
  padding: 12px 20px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.det-farm-notes-post-preview .fnp-social-publish:hover { opacity: .85; }
.det-farm-notes-post-preview .fnp-social-status { font-size: 12px; color: var(--det-body-soft); }
.det-farm-notes-post-preview .fnp-social-status.is-error { color: #d00; }
.det-farm-notes-post-preview .fnp-social-hint {
  font-size: 12px; line-height: 1.5; color: var(--det-body-soft); margin: 14px 0 0;
}
.det-farm-notes-post-preview .fnp-sub-label {
  display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--det-body-soft); font-weight: 700; margin: 18px 0 8px;
}
.det-farm-notes-post-preview .fnp-sub-label:first-of-type { margin-top: 0; }
.det-farm-notes-post-preview .fnp-text,
.det-farm-notes-post-preview #fnp-caption-ig,
.det-farm-notes-post-preview #fnp-caption-fb {
  width: 100%; background: #fff; border: 1px solid var(--det-line);
  color: var(--det-dark); padding: 14px; font-size: 14px; line-height: 1.5;
  font-family: inherit; border-radius: 4px; resize: vertical;
}
.det-farm-notes-post-preview .fnp-text:focus,
.det-farm-notes-post-preview #fnp-caption-ig:focus,
.det-farm-notes-post-preview #fnp-caption-fb:focus { outline: none; border-color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-count-inline {
  text-align: right; font-size: 11px; color: var(--det-body-soft); margin-top: 6px;
}
.det-farm-notes-post-preview .fnp-count-inline.is-over { color: #d00; }

/* Sound (video only) */
.det-farm-notes-post-preview .fnp-mute {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--det-dark); cursor: pointer; user-select: none;
}
.det-farm-notes-post-preview .fnp-mute input {
  width: 18px; height: 18px; margin: 0; accent-color: var(--det-dark); cursor: pointer;
}

/* Submit row */
.det-farm-notes-post-preview .fnp-submit-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--det-line);
}
.det-farm-notes-post-preview .fnp-submit {
  background: var(--det-dark); color: #fff; border: 0;
  padding: 14px 36px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; border-radius: 4px; font-family: inherit; transition: all .2s;
}
.det-farm-notes-post-preview .fnp-submit:hover:not(:disabled) { background: var(--det-accent); }
.det-farm-notes-post-preview .fnp-submit:disabled { opacity: .3; cursor: not-allowed; }
.det-farm-notes-post-preview .fnp-cancel {
  background: transparent; border: 1px solid var(--det-line); color: var(--det-body-soft);
  padding: 12px 20px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; font-family: inherit; border-radius: 4px;
}

/* Toast */
.fnp-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px);
  background: #2d7a3d; color: #fff; padding: 14px 26px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  transition: transform .3s; z-index: 99999; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.fnp-toast.is-visible { transform: translateX(-50%) translateY(0); }
.fnp-toast.is-danger { background: #b12020; }

/* Modal */
.fnp-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center; z-index: 99998; padding: 20px;
}
.fnp-modal[hidden] { display: none !important; }
.fnp-modal__box {
  background: #fff; border-radius: 8px; padding: 28px; max-width: 420px;
  text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.fnp-modal__title { font-size: 17px; margin-bottom: 12px; font-weight: 700; color: var(--det-dark); }
.fnp-modal__msg { font-size: 13px; color: var(--det-body); margin-bottom: 22px; line-height: 1.4; }
.fnp-modal__actions { display: flex; gap: 10px; justify-content: center; }
.fnp-modal__btn {
  padding: 10px 22px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; font-family: inherit; border-radius: 4px;
  border: 1px solid var(--det-line); background: #fff; color: var(--det-dark);
}
.fnp-modal__btn:hover { background: var(--det-bg-alt); }
.fnp-modal__btn--danger { background: #b12020; border-color: #b12020; color: #fff; }
.fnp-modal__btn--danger:hover { background: #8a1919; }

/* MANAGE panel */
.det-farm-notes-post-preview .fnp-manage-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.det-farm-notes-post-preview .fnp-manage-count { font-size: 12px; color: var(--det-body-soft); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.det-farm-notes-post-preview .fnp-search {
  background: #fff; border: 1px solid var(--det-line); color: var(--det-dark);
  padding: 8px 12px; font-size: 13px; font-family: inherit; border-radius: 4px; min-width: 220px;
}
.det-farm-notes-post-preview .fnp-entries { display: flex; flex-direction: column; gap: 8px; }
.det-farm-notes-post-preview .fnp-entry {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--det-line); border-radius: 6px; padding: 10px;
  transition: all .2s;
}
.det-farm-notes-post-preview .fnp-entry:hover { border-color: var(--det-body); }
.det-farm-notes-post-preview .fnp-entry__thumb {
  width: 72px; height: 72px; background: #000; border-radius: 4px; overflow: hidden; position: relative;
}
.det-farm-notes-post-preview .fnp-entry__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.det-farm-notes-post-preview .fnp-entry__video-badge {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.75); color: #fff;
  border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.det-farm-notes-post-preview .fnp-entry__meta { min-width: 0; }
.det-farm-notes-post-preview .fnp-entry__cap {
  font-size: 13px; color: var(--det-dark); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.det-farm-notes-post-preview .fnp-entry__tags { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--det-body-soft); }
.det-farm-notes-post-preview .fnp-entry__mod { color: var(--det-dark); background: var(--det-bg-alt); padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.det-farm-notes-post-preview .fnp-entry__actions { display: flex; gap: 6px; }
.det-farm-notes-post-preview .fnp-ic {
  background: transparent; border: 1px solid var(--det-line); color: var(--det-body-soft);
  width: 32px; height: 32px; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
  font-family: inherit; font-size: 14px;
}
.det-farm-notes-post-preview .fnp-ic:hover { color: var(--det-dark); border-color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-ic--danger:hover { color: #b12020; border-color: #b12020; }

.det-farm-notes-post-preview .fnp-empty {
  text-align: center; padding: 40px 20px; color: var(--det-body-soft);
  font-size: 13px; font-style: italic;
}

/* Tab badge (pending comments count) */
.det-farm-notes-post-preview .fnp-badge {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px;
  background: #b12020; color: #fff; border-radius: 10px;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

/* COMMENTS panel */
.det-farm-notes-post-preview .fnp-comments-list { display: flex; flex-direction: column; gap: 8px; }
.det-farm-notes-post-preview .fnp-comment-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--det-line); border-radius: 6px; padding: 10px;
}
.det-farm-notes-post-preview .fnp-comment-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: #000; display: block;
}
.det-farm-notes-post-preview .fnp-comment-thumb--empty { background: var(--det-bg-alt); }
.det-farm-notes-post-preview .fnp-comment-meta { font-size: 11px; color: var(--det-body-soft); margin-bottom: 4px; }
.det-farm-notes-post-preview .fnp-comment-text { font-size: 13px; color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-comment-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.det-farm-notes-post-preview .fnp-comment-approve,
.det-farm-notes-post-preview .fnp-comment-reject {
  border: 1px solid var(--det-line); background: transparent; color: var(--det-body-soft);
  padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .2s; white-space: nowrap;
}
.det-farm-notes-post-preview .fnp-comment-approve:hover { color: #1a7a3c; border-color: #1a7a3c; }
.det-farm-notes-post-preview .fnp-comment-reject:hover { color: #b12020; border-color: #b12020; }
@media (max-width: 600px) {
  .det-farm-notes-post-preview .fnp-comment-row { grid-template-columns: 44px 1fr; }
  .det-farm-notes-post-preview .fnp-comment-actions { grid-column: 1 / -1; }
}

/* Approved commenters list */
.det-farm-notes-post-preview .fnp-commenters-list { display: flex; flex-direction: column; gap: 8px; }
.det-farm-notes-post-preview .fnp-commenter-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--det-line); border-radius: 6px; padding: 10px 14px;
}
.det-farm-notes-post-preview .fnp-commenter-info { font-size: 13px; color: var(--det-dark); }
.det-farm-notes-post-preview .fnp-commenter-email { font-size: 11px; color: var(--det-body-soft); }
.det-farm-notes-post-preview .fnp-commenter-status {
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 10px; margin-right: 8px;
}
.det-farm-notes-post-preview .fnp-commenter-status.is-active { background: #e6f4ea; color: #1a7a3c; }
.det-farm-notes-post-preview .fnp-commenter-status.is-muted { background: #fbe9e9; color: #b12020; }
.det-farm-notes-post-preview .fnp-commenter-mute,
.det-farm-notes-post-preview .fnp-commenter-unmute {
  border: 1px solid var(--det-line); background: transparent; color: var(--det-body-soft);
  padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .2s; white-space: nowrap;
}
.det-farm-notes-post-preview .fnp-commenter-mute:hover { color: #b12020; border-color: #b12020; }
.det-farm-notes-post-preview .fnp-commenter-unmute:hover { color: #1a7a3c; border-color: #1a7a3c; }

/* Comments panel on the single IG-Reels view. Lives INSIDE .fns-story__frame
   (which is position:relative + overflow:hidden), so inset:0 scopes it to the
   post card itself — slides up over the media like IG, never over the whole
   viewport. The frame's overflow:hidden both clips the rounded corners and
   hides the panel while it's translated out of view. */
/* Hidden via visibility+opacity, NOT by relying on the frame's overflow:hidden to
   clip the translated panel: iOS Safari fails to clip absolutely-positioned
   transformed children, so on mobile the form showed through before opening. */
.det-farm-note-single-preview .fns-comments {
  position: absolute; inset: 0; z-index: 30;
  background: #0b0b0b; color: #fff; padding: 18px 16px 24px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  transform: translateY(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
}
.det-farm-note-single-preview .fns-comments.is-open {
  transform: translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear 0s;
}
.det-farm-note-single-preview .fns-comments__close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 6px;
}
.det-farm-note-single-preview .fns-comments h4 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.6); margin: 0 0 14px;
}
.det-farm-note-single-preview .fns-comment-list { list-style: none; margin: 0 0 18px; padding: 0; }
.det-farm-note-single-preview .fns-comment-list ul { list-style: none; margin: 10px 0 0 20px; padding: 0; border-left: 1px solid rgba(255,255,255,.15); padding-left: 14px; }
.det-farm-note-single-preview .fns-comment { margin-bottom: 14px; }
.det-farm-note-single-preview .fns-comment__meta { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.det-farm-note-single-preview .fns-comment__author { color: #fff; font-weight: 700; }
.det-farm-note-single-preview .fns-comment__text { font-size: 14px; line-height: 1.4; }
.det-farm-note-single-preview .fns-comment__delete {
  background: none; border: none; color: rgba(255,80,80,.8); font-size: 11px; cursor: pointer;
  padding: 0; margin-top: 4px; font-family: inherit;
}
.det-farm-note-single-preview .fns-comment__delete:hover { color: #ff5050; }
.det-farm-note-single-preview .fns-comments-empty { font-size: 13px; color: rgba(255,255,255,.5); font-style: italic; margin-bottom: 18px; }
/* !important throughout: Avada styles every textarea/input site-wide with
   background-color: var(--form_bg_color), which is #ffffff here. Without this
   the fields render as a solid white slab over the dark panel. */
.det-farm-note-single-preview .fns-comments .comment-form-comment textarea,
.det-farm-note-single-preview .fns-comments .comment-form-author input,
.det-farm-note-single-preview .fns-comments .comment-form-email input {
  width: 100% !important; box-sizing: border-box !important;
  background: rgba(255,255,255,.08) !important; background-color: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important; border-radius: 6px !important; padding: 10px !important;
  font-family: inherit !important; font-size: 13px !important;
}
.det-farm-note-single-preview .fns-comments .comment-form-comment textarea { min-height: 70px; resize: vertical; }

/* Neutralise Avada's global comment-section styling inside our panel */
.det-farm-note-single-preview .fns-comments .comment-respond,
.det-farm-note-single-preview .fns-comments .comment-form {
  background: transparent !important; border: 0 !important;
  padding: 0 !important; margin: 0 !important; box-shadow: none !important;
}
.det-farm-note-single-preview .fns-comments .comment-reply-title {
  color: #fff !important; background: transparent !important;
  font-size: 13px !important; margin: 4px 0 10px !important; padding: 0 !important;
  border: 0 !important; box-shadow: none !important;
}
/* Avada decorates headings with a trailing rule (it rendered as a double line
   running off to the right of "Leave a comment"). The markup here is a bare <h3>
   with no children, so a border or a pseudo-element are the only things that can
   draw it — killing both covers every case without chasing which of Avada's
   stylesheets is responsible. */
.det-farm-note-single-preview .fns-comments .comment-reply-title::before,
.det-farm-note-single-preview .fns-comments .comment-reply-title::after {
  content: none !important; display: none !important; border: 0 !important;
}
.det-farm-note-single-preview .fns-comments .comment-form-author input::placeholder,
.det-farm-note-single-preview .fns-comments .comment-form-email input::placeholder { color: rgba(255,255,255,.4); }
.det-farm-note-single-preview .fns-comments-notice {
  font-size: 12px; color: rgba(255,255,255,.5); margin: 0 0 14px; line-height: 1.4;
}
.det-farm-note-single-preview .fns-comments .fn-hp { display: none !important; }
.det-farm-note-single-preview .fns-comments .comment-form > p { margin: 0 0 10px; }
.det-farm-note-single-preview .fns-comments .submit,
.det-farm-note-single-preview .fns-comments input[type="submit"] {
  background: #fff !important; background-color: #fff !important; color: #000 !important;
  border: none !important; border-radius: 20px !important;
  padding: 9px 20px !important; font-size: 12px !important; font-weight: 700;
  letter-spacing: .5px; cursor: pointer; text-transform: uppercase; width: auto !important;
}
.det-farm-note-single-preview .fns-comments-login {
  font-size: 13px; color: rgba(255,255,255,.75);
}
.det-farm-note-single-preview .fns-comments-login a { color: #fff; text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   SINGLE FARM NOTE — IG-column style fullscreen reader
   Fixed-width media column (like IG feed on mobile). Caption overlay
   over media (like IG). Same width for videos + photos.
═══════════════════════════════════════════════════════════════ */

.single-farm_note #main,
.single-farm_note #main .fusion-row { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
.single-farm_note .fusion-footer, .single-farm_note .fusion-footer-copyright-area,
.single-farm_note .fusion-footer-widget-area { display: none !important; }
.single-farm_note #wrapper { background: #000; }

/* Lock all scroll except .fns-feed */
html.single-farm_note, .single-farm_note body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

.det-farm-note-single-preview {
  position: fixed; inset: 0; background: #000;
  overflow: hidden !important; z-index: 1000; color: #fff;
  width: 100%; height: 100vh; height: 100dvh;
}
.det-farm-note-single-preview a { color: inherit; text-decoration: none; }

.det-farm-note-single-preview .fns-feed {
  height: 100vh; height: 100dvh; width: 100%;
  overflow-y: scroll !important; overflow-x: hidden !important;
  scroll-snap-type: y mandatory !important;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
.det-farm-note-single-preview .fns-feed::-webkit-scrollbar { display: none; }

.det-farm-note-single-preview .fns-story {
  /* scroll-snap-stop deliberately left at its default (normal): 'always' traps every
     gesture at the next note, which makes a mouse wheel or a quick flick feel stuck. */
  position: relative; scroll-snap-align: start;
  height: 100vh; height: 100dvh; width: 100%; max-width: 100%;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: #000; overflow: hidden !important;
}

/* Toolbar OUTSIDE the frame — no overlap possible */
.det-farm-note-single-preview .fns-story__toolbar {
  display: flex; gap: 10px; justify-content: center;
  width: 100%; max-width: 500px;
  padding: 0 20px;
  z-index: 20;
  position: relative;
  pointer-events: auto;
  touch-action: manipulation;
}
.det-farm-note-single-preview .fns-toolbar__btn {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff;
  padding: 10px 20px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; font-family: inherit; border-radius: 24px;
  transition: all .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,255,255,.3);
  min-height: 44px;   /* iOS min touch target */
}
.det-farm-note-single-preview .fns-toolbar__btn:hover,
.det-farm-note-single-preview .fns-toolbar__btn:active {
  background: rgba(255,255,255,.25); border-color: #fff;
}
@media (max-width: 700px) {
  .det-farm-note-single-preview .fns-story__toolbar { padding: 0 16px; }
  .det-farm-note-single-preview .fns-toolbar__btn { font-size: 11px; padding: 10px 16px; }
}

/* Frame = FIXED shape (4:5 IG-portrait). Same size for ALL posts, no layout shift on scroll. */
.det-farm-note-single-preview .fns-story__frame {
  position: relative;
  width: 100%; max-width: 500px;
  max-height: calc(100dvh - 90px);   /* leave room for toolbar below */
  aspect-ratio: 4 / 5;
  background: #111;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.det-farm-note-single-preview .fns-story__media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.det-farm-note-single-preview .fns-story__img,
.det-farm-note-single-preview .fns-story__video {
  width: 100%; height: 100%; display: block;
  object-fit: contain;         /* letterbox for non-4:5, no crop, no shift */
}

/* Placeholder: same footprint as a real note so the scroll container has its full
   height from first paint, with just a spinner until the content arrives. */
.det-farm-note-single-preview .fns-story--pending .fns-story__frame { background: #111; }
.det-farm-note-single-preview .fns-story__failed {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255,255,255,.7); font-size: 13px; text-align: center; padding: 20px;
}
.det-farm-note-single-preview .fns-story__failed p { margin: 0; }

.det-farm-note-single-preview .fns-story__loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
.det-farm-note-single-preview .fns-story__loading.is-visible { opacity: 1; }
.det-farm-note-single-preview .fns-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: fn-spin .8s linear infinite;
}
@keyframes fn-spin { to { transform: rotate(360deg); } }

/* Mobile: full-viewport frame */
@media (max-width: 700px) {
  .det-farm-note-single-preview .fns-story__frame {
    max-width: 100%; max-height: 100dvh;
    aspect-ratio: auto; height: 100dvh; width: 100%;
  }
}

/* Top overlay: back button + module + video badge */
.det-farm-note-single-preview .fns-story__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 100%);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  pointer-events: none;
}
.det-farm-note-single-preview .fns-story__top > * { pointer-events: auto; }
.det-farm-note-single-preview .fns-story__top-right {
  display: flex; gap: 8px; align-items: center;
}
.det-farm-note-single-preview .fns-story__module {
  display: inline-block; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700;
  padding: 4px 12px; border: 1px solid var(--det-primary);
  color: var(--det-primary); border-radius: 20px;
  background: rgba(0,0,0,.3);
}
.det-farm-note-single-preview .fns-story__video-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; background: rgba(255,255,255,.9); color: #000;
  border-radius: 20px;
}
.det-farm-note-single-preview .fns-story__video-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #e63946; animation: fns-pulse 1.8s ease-in-out infinite;
}
@keyframes fns-pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* Back button — aligned with frame top-left */
.det-farm-note-single-preview .fns-story__back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.55); color: #fff; padding: 6px 14px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  transition: background .2s;
}
.det-farm-note-single-preview .fns-story__back:hover { background: rgba(0,0,0,.85); }
.det-farm-note-single-preview .fns-story__back-arrow { font-size: 14px; }
/* count removed per request */

/* Bottom overlay: caption + date + actions */
.det-farm-note-single-preview .fns-story__bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 40px 20px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
  color: #fff;
  pointer-events: auto;
  touch-action: manipulation;
}
.det-farm-note-single-preview .fns-story__actions {
  pointer-events: auto; touch-action: manipulation;
}
.det-farm-note-single-preview .fns-story__caption {
  font-size: 15px; line-height: 1.5; color: #fff;
  margin: 0 0 10px; white-space: pre-line; font-weight: 400;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.det-farm-note-single-preview .fns-story__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.det-farm-note-single-preview .fns-story__date {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.75); font-weight: 600;
}
.det-farm-note-single-preview .fns-story__actions {
  display: flex; gap: 6px;
}
.det-farm-note-single-preview .fns-story__btn {
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 7px 14px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
  cursor: pointer; font-family: inherit; border-radius: 20px;
  transition: all .15s;
  touch-action: manipulation;   /* override parent pan-y — allow tap */
  pointer-events: auto;
  position: relative;
  z-index: 10;
  -webkit-tap-highlight-color: rgba(255,255,255,.2);
}
.det-farm-note-single-preview .fns-story__btn:hover,
.det-farm-note-single-preview .fns-story__btn:active {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6);
}

/* Back button now inside each story frame — see fns-story__back */

/* Prev/Next nav (desktop only, floating right) */
.det-farm-note-single-preview .fns-nav {
  position: fixed; right: 30px; z-index: 10;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); color: #fff;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.det-farm-note-single-preview .fns-nav:hover { background: rgba(0,0,0,.85); }
.det-farm-note-single-preview .fns-nav--up { top: calc(50% - 28px); transform: translateY(-50%); }
.det-farm-note-single-preview .fns-nav--down { top: calc(50% + 28px); transform: translateY(-50%); }

/* Mobile: hide desktop nav + smaller UI chrome */
@media (max-width: 700px) {
  .det-farm-note-single-preview .fns-nav { display: none; }
  .det-farm-note-single-preview .fns-story__frame { border-radius: 0 !important; box-shadow: none !important; }
  .det-farm-note-single-preview .fns-story__caption { font-size: 14px; }
  .det-farm-note-single-preview .fns-story__back-label { display: none; }  /* solo arrow on mobile */
  .det-farm-note-single-preview .fns-story__back { padding: 8px 10px; }
}