/* feature-rail.css — the "explore" sidebar (includes/feature_rail.php) and the
   two-column wrapper it sits in. Same card language as /community/. */

/* ── Layout: content + right rail (rail drops below content under 1100px) ── */
.jfr-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.jfr-layout > .jfr-main { min-width: 0; width: 100%; max-width: 60rem; margin: 0 auto; padding-left: 0; padding-right: 0; }
.jfr-layout > .jfr { width: 100%; max-width: 60rem; margin: 0 auto 3rem; }
@media (min-width: 1100px) {
  .jfr-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .jfr-layout > .jfr-main { max-width: none; margin: 0; }
  .jfr-layout > .jfr { max-width: none; margin: 0 0 3rem; align-self: stretch; align-content: start; }
  /* On long pages the last card (Explore more) follows the reader down. */
  .jfr-layout > .jfr > .jfr-card:last-child { position: sticky; top: 90px; }
}
/* Places: its own wrapper keeps the padding, the rail adds the column. */
.jfr-layout--places { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.jfr-layout--places > .jpl-wrap { max-width: none; padding-left: 0; padding-right: 0; }
@media (min-width: 1100px) { .jfr-layout--places > .jfr { margin-top: 1.5rem; } }

/* ── Rail ── */
.jfr { display: grid; gap: 16px; font-size: 14px; }
@media (min-width: 640px) and (max-width: 1099.98px) { .jfr-layout > .jfr { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 640px) and (max-width: 991.98px) { .jfr-col--below > .jfr { grid-template-columns: 1fr 1fr; align-items: start; } }

.jfr-card { position: relative; background: #fff; border: 1px solid #f0e2c4; border-radius: 18px; padding: 16px; box-shadow: 0 8px 24px rgba(85,16,26,.06); }
.jfr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jfr-title { margin: 0; font-family: Georgia, serif; font-size: 17px; font-weight: 700; color: #7a1620; line-height: 1.25; }
.jfr-title i { color: #b8860b; margin-right: 4px; }
.jfr-eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #b8860b; }
.jfr-text { margin: 6px 0 10px; color: #6b5444; line-height: 1.5; }
.jfr-more { font-weight: 800; font-size: 13px; color: #7a1620; text-decoration: none; padding: 4px 10px; border-radius: 20px; background: #fdf3df; }
.jfr-more:hover { background: #f9e8c4; color: #55101a; }

/* App */
.jfr-app { color: #fff4da; border: 0; background: radial-gradient(120% 90% at 100% 0%, #a8322a 0%, #7a1620 45%, #4a0d16 100%); box-shadow: 0 12px 30px rgba(85,16,26,.28); overflow: hidden; }
.jfr-app::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(226,194,117,.12); pointer-events: none; }
.jfr-app .jfr-eyebrow { color: #e2c275; }
.jfr-app .jfr-title { color: #fff; font-size: 20px; }
.jfr-app .jfr-text { color: #f6e3c8; }
.jfr-ticks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.jfr-ticks i { color: #e2c275; margin-right: 6px; }
.jfr-app__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.jfr-app__cta .japp-badge img { display: block; height: 44px; width: auto; background: transparent; }
.jfr-link-light { color: #e2c275; font-weight: 800; font-size: 13px; text-decoration: none; }
.jfr-link-light:hover { color: #fff; }

/* Community */
.jfr-reels { display: flex; gap: 8px; margin: 2px 0 12px; }
.jfr-reel { position: relative; flex: 1 1 0; min-width: 0; max-width: 64px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #2a1215; text-decoration: none; color: #fff; box-shadow: 0 3px 8px rgba(59,29,11,.15); }
.jfr-reel img { width: 100%; height: 100%; max-width: none; object-fit: cover; background: transparent; }
.jfr-reel__txt { position: absolute; inset: 4px; display: grid; place-items: center; text-align: center; font-family: Georgia, serif; font-weight: 700; font-size: 9.5px; line-height: 1.2; overflow: hidden; }
a.jfr-reel--new, a.jfr-reel--new:hover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7a1620; background: #fdf3df; border: 2px dashed #e2c275; box-shadow: none; font-size: 10.5px; font-weight: 800; }
.jfr-reel--new i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #7a1620; color: #fff; font-size: 15px; }
.jfr-posts { list-style: none; margin: 0 0 12px; padding: 0; }
.jfr-posts li { padding: 8px 0; border-top: 1px dashed #f0e2c4; }
.jfr-posts a { display: block; color: #3b1d0b; font-weight: 700; line-height: 1.35; text-decoration: none; }
.jfr-posts a:hover { color: #7a1620; text-decoration: underline; }
.jfr-posts span { font-size: 12px; color: #9a8270; }
.jfr-btns { display: flex; gap: 8px; }
.jfr-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; border-radius: 30px; font-weight: 800; font-size: 13.5px;
  text-decoration: none; color: #7a1620; background: #fdf3df; border: 1px solid #ecd9a8; white-space: nowrap; }
.jfr-btn:hover { color: #55101a; background: #f9e8c4; }
a.jfr-btn--main, a.jfr-btn--main:hover { color: #fff; background: linear-gradient(135deg, #7a1620, #a8322a); border-color: transparent; }

/* Panchang */
.jfr-next { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: #fdf7ea; border-left: 4px solid #b8860b; line-height: 1.35; }
.jfr-next span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #b8860b; }
.jfr-next a, .jfr-next b { font-weight: 800; color: #7a1620; text-decoration: none; }
.jfr-next a:hover { text-decoration: underline; }
.jfr-next small { display: block; color: #6b5444; font-size: 12.5px; }
.jfr-trad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.jfr-trad a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #7a1620, #a8322a); box-shadow: 0 6px 14px rgba(122,22,32,.2); transition: transform .15s; }
.jfr-trad a + a { background: linear-gradient(135deg, #8a6508, #c99a3e); box-shadow: 0 6px 14px rgba(138,101,8,.2); }
.jfr-trad a:hover { transform: translateY(-2px); color: #fff; }
.jfr-trad b { font-size: 14.5px; }
.jfr-trad span { font-size: 11.5px; opacity: .9; }
.jfr-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 13px; }
.jfr-mini:empty { display: none; }
.jfr-mini a { color: #7a1620; font-weight: 700; text-decoration: none; }
.jfr-mini a:hover { text-decoration: underline; }

/* Explore grid */
.jfr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.jfr-tile { display: flex; flex-direction: column; gap: 1px; padding: 10px; border-radius: 14px; text-decoration: none; background: #fffaf2; border: 1px solid #f3e6cb; transition: transform .15s, box-shadow .15s; }
.jfr-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59,29,11,.10); border-color: color-mix(in srgb, var(--t) 35%, #f3e6cb); }
.jfr-tile i { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border-radius: 10px; color: #fff; font-size: 16px; background: var(--t); }
.jfr-tile b { color: #3b1d0b; font-size: 13.5px; line-height: 1.25; }
.jfr-tile span { color: #8a7362; font-size: 12px; }

/* Phone/tablet quick-links row (the rail itself sits far below on long pages). */
.jfq { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 10px; margin: 0 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jfq::-webkit-scrollbar { display: none; }
.jfq-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 30px; font-weight: 700; font-size: 13.5px;
  white-space: nowrap; text-decoration: none; color: #7a1620; background: #fff; border: 1px solid #ecd9a8; box-shadow: 0 2px 6px rgba(59,29,11,.06); }
.jfq-chip i { color: #b8860b; }
.jfq-chip:hover { background: #fdf3df; color: #55101a; }
a.jfq-chip--app, a.jfq-chip--app:hover { color: #fff; background: linear-gradient(135deg, #7a1620, #a8322a); border-color: transparent; }
a.jfq-chip--app i { color: #e2c275; }
.jfr-layout > .jfq { grid-column: 1 / -1; width: 100%; max-width: 60rem; margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) { .jfq { display: none; } }

@media print { .jfr, .jfq { display: none !important; } }
