/* Journals grid + details card (public /journals/ page) */
.rwh-jr, .rwh-jm {
  --rwh-orange: #f59e0b;
  --rwh-orange-dark: #d97706;
  --rwh-navy: #0f1729;
  --rwh-navy-2: #141f38;
  --rwh-ink: #1e293b;
  --rwh-muted: #64748b;
  --rwh-line: #e2e8f0;
  --rwh-soft: #f8fafc;
  --rwh-wa: #25d366;
  --rwh-radius: 18px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--rwh-ink);
  -webkit-font-smoothing: antialiased;
}
.rwh-jr *, .rwh-jm * { box-sizing: border-box; }
.rwh-jr button, .rwh-jm button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; text-transform: none; letter-spacing: normal; line-height: inherit; box-shadow: none; }
.rwh-jr a, .rwh-jm a { text-decoration: none; }
.rwh-jr ul, .rwh-jr li { list-style: none; margin: 0; padding: 0; }
.rwh-jr svg, .rwh-jm svg { width: 1em; height: 1em; flex: none; }

.rwh-jr { padding: 50px 0 40px; background: #fff; }
.rwh-jr__wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* toolbar */
.rwh-jr__tools { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.rwh-jr__search { position: relative; flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; margin: 0; }
.rwh-jr__search svg { position: absolute; left: 16px; font-size: 18px; color: var(--rwh-muted); pointer-events: none; }
.rwh-jr .rwh-jr__search input { width: 100%; height: 48px; margin: 0; padding: 0 16px 0 46px; border: 1.5px solid var(--rwh-line); border-radius: 999px; background: var(--rwh-soft); font: 400 15px/1 "Poppins", sans-serif; color: var(--rwh-ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.rwh-jr .rwh-jr__search input:focus { border-color: var(--rwh-orange); background: #fff; box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.rwh-jr__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.rwh-jr__chips::-webkit-scrollbar { display: none; }
.rwh-jr .rwh-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--rwh-line); background: #fff; font-size: 14px; font-weight: 500; color: var(--rwh-ink); transition: all .2s; white-space: nowrap; }
.rwh-jr .rwh-chip span { font-size: 12px; color: var(--rwh-muted); font-weight: 500; }
.rwh-jr .rwh-chip:hover { border-color: var(--rwh-orange); }
.rwh-jr .rwh-chip.is-active { background: var(--rwh-navy); border-color: var(--rwh-navy); color: #fff; }
.rwh-jr .rwh-chip.is-active span { color: #fbbf24; }

/* grid + cards */
.rwh-jr__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.rwh-jr__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rwh-line); border-radius: var(--rwh-radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.rwh-jr__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15, 23, 41, .35); border-color: transparent; }
.rwh-jr__card[hidden] { display: none; }
.rwh-jr .rwh-jr__open { display: flex; flex-direction: column; text-align: left; width: 100%; flex: 1; }
.rwh-jr .rwh-jr__open:focus-visible { outline: 3px solid var(--rwh-orange); outline-offset: -3px; }
.rwh-jr__cover { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--rwh-soft); overflow: hidden; }
.rwh-jr__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rwh-jr__card:hover .rwh-jr__cover img { transform: scale(1.04); }
.rwh-jr__noimg { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; font: 700 20px/1.2 "League Spartan", sans-serif; color: #fff; background: linear-gradient(160deg, var(--rwh-navy-2), var(--rwh-navy)); }
.rwh-jr__expand { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rwh-navy); font-size: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); opacity: 0; transform: scale(.8); transition: all .25s; }
.rwh-jr__card:hover .rwh-jr__expand, .rwh-jr__open:focus-visible .rwh-jr__expand { opacity: 1; transform: scale(1); }
.rwh-jr__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 6px; }
.rwh-jr__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rwh-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #fff7e6; color: #b45309; font: 600 12px/1 "Poppins", sans-serif; letter-spacing: .02em; }
.rwh-badge--q { background: var(--rwh-navy); color: #fbbf24; }
.rwh-jr__name { font: 600 17px/1.3 "League Spartan", "Poppins", sans-serif; color: var(--rwh-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rwh-jr__hl { font-size: 13px; line-height: 1.45; color: var(--rwh-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rwh-jr__actions { display: flex; gap: 10px; padding: 12px 18px 18px; }
.rwh-jr .rwh-jr__details { flex: 1; height: 44px; border-radius: 12px; border: 1.5px solid var(--rwh-line); font-size: 14px; font-weight: 600; color: var(--rwh-navy); transition: all .2s; }
.rwh-jr .rwh-jr__details:hover { border-color: var(--rwh-navy); background: var(--rwh-soft); }
.rwh-jr .rwh-jr__enquire { flex: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; background: linear-gradient(160deg, var(--rwh-orange), var(--rwh-orange-dark)); color: #fff; font-size: 14px; font-weight: 600; transition: filter .2s, transform .2s; }
.rwh-jr .rwh-jr__enquire:hover { filter: brightness(1.06); color: #fff; }
.rwh-jr__enquire svg { font-size: 18px; }
.rwh-jr__empty { text-align: center; padding: 40px 16px; color: var(--rwh-muted); font-size: 15px; }
.rwh-jr__empty a { color: var(--rwh-orange-dark); font-weight: 600; }

@media (max-width: 640px) {
  .rwh-jr { padding: 28px 0 24px; }
  .rwh-jr__wrap { padding: 0 14px; }
  .rwh-jr__tools { margin-bottom: 18px; gap: 12px; }
  .rwh-jr__search { max-width: none; flex-basis: 100%; }
  .rwh-jr__chips { margin: 0 -14px; padding: 2px 14px; }
  .rwh-jr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rwh-jr__card { border-radius: 14px; }
  .rwh-jr__card:hover { transform: none; }
  .rwh-jr__expand { opacity: 1; transform: none; width: 28px; height: 28px; font-size: 13px; top: 8px; right: 8px; }
  .rwh-jr__body { padding: 10px 12px 4px; gap: 6px; }
  .rwh-badge { height: 20px; padding: 0 8px; font-size: 10.5px; }
  .rwh-jr__name { font-size: 14.5px; }
  .rwh-jr__hl { display: none; }
  .rwh-jr__actions { padding: 8px 10px 10px; }
  .rwh-jr .rwh-jr__details { display: none; }
  .rwh-jr .rwh-jr__enquire { height: 38px; border-radius: 10px; font-size: 13px; }
}
@media (max-width: 340px) {
  .rwh-jr__grid { grid-template-columns: 1fr; }
}

/* ---------- details card (dialog) ---------- */
.rwh-jm { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; display: none; place-items: center; overflow: hidden; }
.rwh-jm[open] { display: grid; }
.rwh-jm::backdrop { background: rgba(15, 23, 41, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.rwh-jm.is-in::backdrop { opacity: 1; }
.rwh-jm__sheet { position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: #fff; border-radius: 24px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: translate(var(--rwh-dx, 0), var(--rwh-dy, 0)) scale(.4); transition: transform .42s cubic-bezier(.2, .9, .25, 1), opacity .3s ease; }
.rwh-jm.is-in .rwh-jm__sheet { opacity: 1; transform: none; }
.rwh-jm__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.rwh-jm__grid { display: grid; grid-template-columns: 300px 1fr; }
.rwh-jm__cover { position: relative; padding: 28px 26px; background: radial-gradient(circle at 30% 0%, #243256 0, var(--rwh-navy) 70%); display: flex; align-items: flex-start; justify-content: center; }
.rwh-jm__cover img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55); position: sticky; top: 0; }
.rwh-jm__content { padding: 34px 34px 30px; min-width: 0; }
.rwh-jm .rwh-jm__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--rwh-navy); box-shadow: 0 4px 16px rgba(15, 23, 41, .18); font-size: 20px; transition: transform .2s, background .2s; }
.rwh-jm .rwh-jm__close:hover { transform: rotate(90deg); background: var(--rwh-navy); color: #fff; }
.rwh-jm .rwh-jm__close:focus-visible { outline: 3px solid var(--rwh-orange); outline-offset: 2px; }
.rwh-jm__grab { display: none; }
.rwh-jm__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 48px 12px 0; }
.rwh-jm__title { margin: 0 40px 6px 0; font: 700 26px/1.2 "League Spartan", "Poppins", sans-serif; color: var(--rwh-navy); letter-spacing: -.01em; }
.rwh-jm__hl { margin: 0 0 18px; font-size: 14px; color: var(--rwh-muted); line-height: 1.5; }
.rwh-jm__times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.rwh-jm__time { padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, #fff7e6, #ffefd1); border: 1px solid #fde3b0; }
.rwh-jm__time small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #b45309; text-transform: uppercase; letter-spacing: .05em; }
.rwh-jm__time strong { display: block; margin-top: 4px; font: 700 20px/1.2 "League Spartan", sans-serif; color: var(--rwh-navy); }
.rwh-jm__facts { margin: 0 0 20px; padding: 0; border-top: 1px solid var(--rwh-line); }
.rwh-jm__fact { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rwh-line); margin: 0; }
.rwh-jm__fact dt { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; color: var(--rwh-muted); margin: 0; }
.rwh-jm__fact dt svg { font-size: 16px; color: var(--rwh-orange-dark); margin-top: 1px; }
.rwh-jm__fact dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rwh-ink); font-weight: 500; overflow-wrap: anywhere; }
.rwh-jm__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.rwh-jm .rwh-jm__link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--rwh-line); font-size: 13.5px; font-weight: 600; color: var(--rwh-navy); transition: all .2s; }
.rwh-jm .rwh-jm__link:hover { border-color: var(--rwh-navy); background: var(--rwh-navy); color: #fff; }
.rwh-jm .rwh-jm__link--main { border-color: var(--rwh-navy); }
.rwh-jm__cta { display: flex; gap: 10px; }
.rwh-jm .rwh-jm__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 600; transition: filter .2s; }
.rwh-jm .rwh-jm__btn--wa { background: linear-gradient(160deg, var(--rwh-orange), var(--rwh-orange-dark)); color: #fff; }
.rwh-jm .rwh-jm__btn--wa svg { font-size: 20px; }
.rwh-jm .rwh-jm__btn--quote { background: var(--rwh-navy); color: #fff; }
.rwh-jm .rwh-jm__btn:hover { filter: brightness(1.08); color: #fff; }

@media (max-width: 760px) {
  .rwh-jm__grid { grid-template-columns: 1fr; }
  .rwh-jm__cover { height: 240px; padding: 22px 0 0; overflow: hidden; align-items: stretch; }
  .rwh-jm__cover img { width: auto; height: 100%; border-radius: 12px 12px 0 0; position: static; }
}
/* phones: bottom sheet */
@media (max-width: 640px) {
  .rwh-jm { padding: 0; place-items: end stretch; }
  .rwh-jm__sheet { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(100%); opacity: 1; transition: transform .38s cubic-bezier(.2, .9, .25, 1); }
  .rwh-jm.is-dragging .rwh-jm__sheet { transition: none; }
  .rwh-jm__grab { display: block; position: absolute; top: 8px; left: 50%; z-index: 3; width: 44px; height: 5px; margin-left: -22px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
  .rwh-jm__cover { height: 210px; padding-top: 26px; }
  .rwh-jm .rwh-jm__close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 18px; }
  .rwh-jm__content { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
  .rwh-jm__title { font-size: 22px; margin-right: 0; }
  .rwh-jm__badges { margin-right: 0; }
  .rwh-jm__time { padding: 12px 14px; }
  .rwh-jm__time strong { font-size: 17px; }
  .rwh-jm__fact { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
  .rwh-jm__fact dd { font-size: 14px; padding-left: 24px; }
  .rwh-jm__cta { position: sticky; bottom: 0; margin: 0 -18px calc(-18px - env(safe-area-inset-bottom)); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--rwh-line); }
  .rwh-jm .rwh-jm__btn { height: 48px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rwh-jm__sheet, .rwh-jm::backdrop, .rwh-jr__card, .rwh-jr__cover img { transition: none !important; }
}
html.rwh-lock, html.rwh-lock body { overflow: hidden !important; }

/* card timelines */
.rwh-jr__times { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--rwh-line); }
.rwh-jr__time { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.35; color: var(--rwh-ink); font-weight: 500; }
.rwh-jr__time svg { font-size: 14px; color: var(--rwh-orange-dark); }
.rwh-jr__time b { font-weight: 600; color: var(--rwh-muted); min-width: 78px; flex: none; }
.rwh-jr__tv { flex: 1; min-width: 0; }

/* details card: key points + note */
.rwh-jm__points { list-style: none; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; display: grid; gap: 8px; }
.rwh-jm__points li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.45; color: #14532d; font-weight: 500; }
.rwh-jm__points svg { font-size: 18px; color: #16a34a; margin-top: 1px; }
.rwh-jm__note { display: flex; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 13.5px; line-height: 1.5; }
.rwh-jm__note svg { font-size: 18px; color: #2563eb; margin-top: 2px; }

/* why publish + community */
.rwh-why { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-top: 46px; }
.rwh-why h3 { margin: 0 0 14px; font: 700 24px/1.25 "League Spartan", "Poppins", sans-serif; color: var(--rwh-navy); }
.rwh-why__main { padding: 30px; border-radius: 22px; background: var(--rwh-soft); border: 1px solid var(--rwh-line); }
.rwh-why__main ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 22px !important; }
.rwh-why__main li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--rwh-ink); font-weight: 500; }
.rwh-why__main li svg { font-size: 20px; color: var(--rwh-orange-dark); margin-top: 1px; }
.rwh-why__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 18px; border-top: 1px solid var(--rwh-line); font-size: 14px; color: var(--rwh-muted); }
.rwh-why__contact a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--rwh-navy); }
.rwh-why__contact a svg { font-size: 16px; color: var(--rwh-orange-dark); }
.rwh-why__side { padding: 30px; border-radius: 22px; background: radial-gradient(circle at 100% 0%, #243256 0, var(--rwh-navy) 65%); color: #cbd5e1; display: flex; flex-direction: column; gap: 10px; }
.rwh-why__side h3 { color: #fff; margin: 0; }
.rwh-why__side p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; }
.rwh-why__kicker { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fbbf24; margin: 0 !important; }
.rwh-jr .rwh-why__btn { display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 600; transition: filter .2s; }
.rwh-jr .rwh-why__btn svg { font-size: 20px; }
.rwh-jr .rwh-why__btn--wa { background: var(--rwh-wa); color: #fff; }
.rwh-jr .rwh-why__btn--ig { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; }
.rwh-jr .rwh-why__btn:hover { filter: brightness(1.08); color: #fff; }

@media (max-width: 900px) {
  .rwh-why { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rwh-jr__times { gap: 3px; padding-top: 8px; }
  .rwh-jr__time { display: grid; grid-template-columns: 14px 1fr; column-gap: 6px; row-gap: 0; align-items: start; font-size: 12px; }
  .rwh-jr__time svg { grid-row: 1 / 3; font-size: 13px; margin-top: 2px; }
  .rwh-jr__time b { min-width: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.5; }
  .rwh-jr__tv { grid-column: 2; font-weight: 600; line-height: 1.3; }
  .rwh-why { margin-top: 30px; gap: 14px; }
  .rwh-why__main, .rwh-why__side { padding: 20px 18px; border-radius: 18px; }
  .rwh-why h3 { font-size: 21px; }
  .rwh-why__main ul { grid-template-columns: 1fr; }
}
