/*
Theme Name: Ratna Journal
Theme URI: https://htpgemstones.com/blogs/
Author: DFOX MEDIA
Description: The HTP Gemstones blog. Wears the shop's own header, footer and styles (fetched from the shop), with a journal layout: lead story, read by stone, topic shelves, article list and a reading page with "In this article" and shop links.
Version: 1.3.3
Requires PHP: 7.4
Text Domain: ratna-journal
*/

/* The shop's site.css supplies the type, colours, buttons, header and footer. */
.rj { background: #fff; }
.rj #main { display: block; }
.rj .wrap { max-width: var(--wrap-max, 1320px); }

/* Masthead */
.rj-mast { background: var(--ivory, #faf6ee); border-bottom: 1px solid var(--ivory-line, #efe5d2); padding: 30px 0 44px; }
.rj-mast-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.rj-mast h1 { margin: 6px 0 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
.rj-mast h1 .deva { color: var(--gold, #b4660a); font-size: .6em; margin-left: 6px; }
.rj-mast .lede { margin: 12px 0 20px; max-width: 560px; }
.rj-mast--small { padding: 22px 0 30px; }
.rj-mast--small h1 { font-size: clamp(28px, 3vw, 38px); }
.rj-search { position: relative; max-width: 560px; }
.rj-search input { width: 100%; font: inherit; font-size: 16px; padding: 14px 56px 14px 18px; border: 1px solid var(--line, #e3e7ee); border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(29, 47, 95, .06); }
.rj-search input:focus { outline: 2px solid var(--saffron, #f7941d); outline-offset: 1px; }
.rj-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--night, #1d2f5f); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rj-search button svg { width: 18px; height: 18px; }
.rj-try { margin: 12px 0 0; font-size: 14px; color: var(--muted, #6b7380); }
.rj-try a { margin-left: 8px; color: var(--ink, #0d222e); }
.rj-lead { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--ivory-line, #efe5d2); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(29, 47, 95, .08); }
.rj-lead-img img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.rj-lead-body { padding: 20px 24px 22px; display: grid; gap: 8px; }
.rj-lead-body h2 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.25; }
.rj-lead-body h2 a, .rj-card h3 a, .rj-row h3 a { color: var(--ink, #0d222e); text-decoration: none; }
.rj-lead-body h2 a:hover, .rj-card h3 a:hover, .rj-row h3 a:hover { color: var(--saffron-deep, #b4660a); }
.rj-lead-body p { margin: 0; color: var(--ink-2, #3a4652); }
.rj-flag { display: inline-block; margin-right: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--saffron, #f7941d); color: var(--ink, #0d222e); padding: 3px 10px; border-radius: 999px; }
.rj-cat { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--saffron-deep, #b4660a); text-decoration: none; }
.rj-meta { font-size: 13.5px; color: var(--muted, #6b7380); }

/* Read by stone */
.rj-stones { border-bottom: 1px solid var(--line, #e3e7ee); padding: 18px 0; }
.rj-stones .wrap { display: flex; gap: 18px; align-items: center; }
.rj-stones b { flex: none; font-weight: 500; }
.rj-stones-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.rj-stones-row::-webkit-scrollbar { display: none; }
.rj-stones-row a { flex: none; display: grid; justify-items: center; gap: 4px; width: 86px; padding: 8px 4px; border-radius: 14px; text-decoration: none; color: var(--ink, #0d222e); font-size: 13px; text-align: center; transition: background .15s ease; }
.rj-stones-row a:hover { background: var(--ivory, #faf6ee); }
.rj-stones-row img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .14)); transition: transform .2s ease; }
.rj-stones-row a:hover img { transform: translateY(-3px) scale(1.06); }

/* Shelves */
.rj-shelf { padding: 48px 0 8px; }
.rj-shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.rj-shelf-head h2 { margin: 0; font-size: 26px; }
.rj-shelf-head p { margin: 4px 0 0; color: var(--muted, #6b7380); }
.rj-shelf-nav { display: flex; gap: 8px; align-items: center; }
.rj-more { font-weight: 500; color: var(--saffron-deep, #b4660a); text-decoration: none; white-space: nowrap; margin-left: 8px; }
.rj-shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rj-shelf-track::-webkit-scrollbar { display: none; }
.rj-shelf-track > * { scroll-snap-align: start; }
.rj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e3e7ee); border-radius: 16px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.rj-card:hover { box-shadow: 0 16px 32px rgba(13, 34, 46, .1); transform: translateY(-3px); }
.rj-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rj-card-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; flex: 1; }
.rj-card h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.rj-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* Advice band */
.rj-advice { margin: 48px 0 0; background: var(--night, #1d2f5f); color: #dfe4f2; }
.rj-advice .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 36px; }
.rj-advice h2 { color: #fff; margin: 4px 0 6px; }
.rj-advice p { margin: 0; }
.rj-advice-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.rj-advice .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Latest list with the rail */
.rj-latest { padding: 52px 0 64px; }
.rj-latest-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.rj-list { display: grid; }
.rj-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line, #e3e7ee); }
.rj-row:first-child { border-top: 0; padding-top: 4px; }
.rj-row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px; color: var(--muted, #6b7380); }
.rj-row h3 { margin: 6px 0 6px; font-size: 21px; font-weight: 500; line-height: 1.3; }
.rj-row p { margin: 0; color: var(--ink-2, #3a4652); font-size: 15.5px; }
.rj-row-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.rj-rail { display: grid; gap: 16px; position: sticky; top: calc(var(--head-h, 120px) + 16px); }
.rj-rail-card { background: #fff; border: 1px solid var(--line, #e3e7ee); border-radius: 18px; padding: 20px; display: grid; gap: 10px; }
.rj-rail-card > b { font-size: 17px; font-weight: 500; }
.rj-rail-card p { margin: 0; color: var(--ink-2, #3a4652); font-size: 15px; }
.rj-rail-start { background: var(--ivory, #faf6ee); border-color: var(--ivory-line, #efe5d2); }
.rj-topics { list-style: none; margin: 0; padding: 0; display: grid; }
.rj-topics a { display: block; padding: 9px 0; border-bottom: 1px dashed var(--line, #e3e7ee); color: var(--ink, #0d222e); text-decoration: none; }
.rj-topics li:last-child a { border-bottom: 0; }
.rj-topics a:hover, .rj-topics a[aria-current] { color: var(--saffron-deep, #b4660a); }
.rj-empty { background: var(--ivory, #faf6ee); border-radius: 18px; padding: 28px; display: grid; gap: 10px; justify-items: start; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--line, #e3e7ee); border-radius: 999px; color: var(--ink, #0d222e); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--night, #1d2f5f); border-color: var(--night, #1d2f5f); color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Article */
.rj-post-head { background: var(--ivory, #faf6ee); border-bottom: 1px solid var(--ivory-line, #efe5d2); padding: 24px 0 0; }
.rj-post-head h1 { margin: 10px 0 12px; max-width: 900px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
.rj-post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted, #6b7380); font-size: 14.5px; }
.rj-post-img { margin: 24px 0 -60px; }
.rj-post-img img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 48px rgba(13, 34, 46, .14); }
.rj-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-top: 96px; }
.rj-content { font-size: 17.5px; line-height: 1.75; color: var(--ink-2, #3a4652); max-width: 780px; }
.rj-content h2 { font-size: 27px; color: var(--ink, #0d222e); margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--head-h, 120px) + 20px); }
.rj-content h3 { font-size: 21px; color: var(--ink, #0d222e); margin: 1.5em 0 .4em; }
.rj-content img { max-width: 100%; height: auto; border-radius: 14px; }
.rj-content figure { margin: 1.6em 0; }
.rj-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.4em 0; }
.rj-content th, .rj-content td { border: 1px solid var(--line, #e3e7ee); padding: 10px 12px; text-align: left; vertical-align: top; }
.rj-content th { background: var(--ivory, #faf6ee); color: var(--ink, #0d222e); }
.rj-content blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid var(--saffron, #f7941d); background: var(--ivory, #faf6ee); border-radius: 0 12px 12px 0; }
.rj-content a { color: var(--saffron-deep, #b4660a); }
.rj-post-rail { display: grid; gap: 16px; position: sticky; top: calc(var(--head-h, 120px) + 16px); }
.rj-toc { background: #fff; border: 1px solid var(--line, #e3e7ee); border-radius: 18px; padding: 18px 20px; }
.rj-toc[hidden] { display: none; }
.rj-toc b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron-deep, #b4660a); margin-bottom: 8px; }
.rj-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 46vh; overflow: auto; }
.rj-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2, #3a4652); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.rj-toc a:hover { background: var(--ivory, #faf6ee); }
.rj-toc a.is-on { background: var(--night, #1d2f5f); color: #fff; }
.rj-shop { justify-items: center; text-align: center; background: var(--ivory, #faf6ee); border-color: var(--ivory-line, #efe5d2); }
.rj-shop img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .16)); }
.rj-post-foot { max-width: var(--wrap-max, 1320px); padding-top: 28px; padding-bottom: 8px; }
.rj-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line, #e3e7ee); border-bottom: 1px solid var(--line, #e3e7ee); max-width: 780px; }
.rj-share a, .rj-share button { font: inherit; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line, #e3e7ee); background: #fff; color: var(--ink, #0d222e); text-decoration: none; cursor: pointer; }
.rj-share a:hover, .rj-share button:hover { border-color: var(--ink, #0d222e); }
.rj-post-foot .note { max-width: 780px; }
.rj-related { padding-bottom: 0; }

/* Phones: "In this article" folded above the text */
.rj-toc-fold { display: none; border: 1px solid var(--line, #e3e7ee); border-radius: 14px; background: #fff; }
.rj-toc-fold summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 500; display: flex; justify-content: space-between; }
.rj-toc-fold summary::-webkit-details-marker { display: none; }
.rj-toc-fold summary span { color: var(--muted, #6b7380); font-weight: 400; font-size: 14px; }
.rj-toc-fold ol { list-style: none; margin: 0; padding: 0 8px 10px; }
.rj-toc-fold a { display: block; padding: 8px; color: var(--ink-2, #3a4652); text-decoration: none; border-top: 1px dashed var(--line, #e3e7ee); }

/* Fallback chrome (only if the shop cannot be reached) */
.rj-fallback-head { border-bottom: 1px solid #e3e7ee; padding: 14px 0; }
.rj-fallback-head .wrap { display: flex; justify-content: space-between; align-items: center; }
.rj-fallback-foot { border-top: 1px solid #e3e7ee; padding: 24px 0; color: #6b7380; font-size: 14px; }

@media (max-width: 1100px) {
  .rj-shelf-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .rj-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-latest-grid, .rj-post-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 900px) {
  .rj-mast-grid, .rj-latest-grid, .rj-post-grid { grid-template-columns: 1fr; }
  .rj-rail, .rj-post-rail { position: static; }
  .rj-post-rail .rj-toc { display: none; }
  .rj-toc-fold { display: block; }
  .rj-advice .wrap { flex-direction: column; align-items: flex-start; }
  .rj-shelf-track { grid-auto-columns: 72%; }
  .rj-shelf-nav .sc-btn { display: none; }
  .rj-stones .wrap { flex-direction: column; align-items: stretch; gap: 8px; }
  .rj-post-img { margin-bottom: -30px; }
  .rj-post-grid { padding-top: 56px; }
}
@media (max-width: 600px) {
  .rj-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
  .rj-row h3 { font-size: 17px; }
  .rj-row p { display: none; }
  .rj-grid4 { grid-template-columns: 1fr; }
  .rj-content { font-size: 16.5px; }
}

/* Cookie notice (CookieYes plugin): a small card in the site's style. The plugin sets colours
   inline, so these rules need !important; the consent behaviour itself is untouched. */
.rj .cky-consent-container { width: 360px !important; left: 20px !important; bottom: 20px !important; }
.rj .cky-consent-container .cky-consent-bar { padding: 16px 18px 14px !important; border-radius: 16px !important; border: 1px solid var(--ivory-line, #efe5d2) !important; background: #fff !important; box-shadow: 0 16px 40px rgba(13, 34, 46, .16) !important; font-family: Jost, system-ui, sans-serif !important; }
.rj .cky-consent-container .cky-title { margin: 0 0 4px !important; font-size: 15px !important; font-weight: 600 !important; color: var(--ink, #0d222e) !important; line-height: 1.3 !important; }
.rj .cky-consent-container .cky-notice-des, .rj .cky-consent-container .cky-notice-des p { margin: 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--ink-2, #3a4652) !important; }
.rj .cky-consent-container .cky-notice-btn-wrapper { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; margin-top: 12px !important; }
.rj .cky-consent-container .cky-btn { flex: 1 1 auto !important; margin: 0 !important; padding: 7px 10px !important; min-height: 0 !important; font-family: inherit !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.2 !important; border-radius: 999px !important; border: 1px solid var(--line, #d7dce4) !important; background: #fff !important; color: var(--ink, #0d222e) !important; }
.rj .cky-consent-container .cky-btn:hover { border-color: var(--ink, #0d222e) !important; opacity: 1 !important; }
.rj .cky-consent-container .cky-btn-accept { order: -1; background: var(--saffron, #f7941d) !important; border-color: var(--saffron, #f7941d) !important; color: var(--ink, #0d222e) !important; font-weight: 600 !important; }
.rj .cky-consent-container .cky-btn-customize { flex: 0 0 auto !important; border-color: transparent !important; text-decoration: underline; padding-inline: 4px !important; }
.rj .cky-consent-container .cky-banner-btn-close { top: 10px !important; right: 10px !important; }
.rj .cky-consent-container .cky-banner-btn-close img { width: 10px !important; height: 10px !important; }
/* Its "Customize" window and the small re-open button */
.rj .cky-modal, .rj .cky-preference-center { font-family: Jost, system-ui, sans-serif !important; border-radius: 16px !important; }
.rj .cky-modal .cky-btn { border-radius: 999px !important; font-family: inherit !important; }
.rj .cky-modal .cky-btn-accept, .rj .cky-modal .cky-btn-preferences { background: var(--saffron, #f7941d) !important; border-color: var(--saffron, #f7941d) !important; color: var(--ink, #0d222e) !important; }
.rj .cky-btn-revisit-wrapper { background: var(--night, #1d2f5f) !important; }
@media (max-width: 600px) {
  .rj .cky-consent-container { width: auto !important; left: 10px !important; right: 10px !important; bottom: 10px !important; }
  .rj .cky-consent-container .cky-consent-bar { padding: 12px 14px !important; }
  .rj .cky-consent-container .cky-notice-des p { font-size: 12.5px !important; }
  .rj .cky-consent-container .cky-notice-group, .rj .cky-consent-container .cky-notice-btn-wrapper { flex-direction: row !important; }
  .rj .cky-consent-container .cky-notice-btn-wrapper { margin-top: 10px !important; }
  .rj .cky-consent-container .cky-btn { width: auto !important; margin: 0 !important; }
}
.rj .cky-modal .cky-btn-reject { background: #fff !important; border-color: var(--line, #d7dce4) !important; color: var(--ink, #0d222e) !important; }

/* The journal's own header */
.rj-head { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line, #e3e7ee); }
.admin-bar .rj-head { top: 32px; }
.rj-head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.rj-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink, #0d222e); flex: none; }
.rj-brand img { height: 40px; width: auto; }
.rj-brand-name { display: grid; padding-left: 14px; border-left: 1px solid var(--line, #e3e7ee); font-size: 21px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.rj-brand-name .deva { display: inline; color: var(--gold, #b4660a); font-size: .72em; font-weight: 500; margin-left: 4px; }
.rj-brand-name small { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b7380); margin-top: 3px; }
.rj-nav { flex: 1; min-width: 0; }
.rj-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; justify-content: center; }
.rj-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink, #0d222e); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.rj-nav a:hover { background: var(--ivory, #faf6ee); }
.rj-nav a[aria-current] { background: var(--night, #1d2f5f); color: #fff; }
.rj-nav .rj-search, .rj-nav .rj-nav-top, .rj-nav .rj-store--drawer { display: none; }
.rj-brand-name > :first-child, .rj-brand-name { white-space: nowrap; }
.rj-head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.rj-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line, #e3e7ee); border-radius: 50%; background: #fff; color: var(--ink, #0d222e); cursor: pointer; font-size: 22px; line-height: 1; }
.rj-icon svg { width: 18px; height: 18px; }
.rj-icon:hover, .rj-icon[aria-expanded="true"] { border-color: var(--ink, #0d222e); }
.rj-store { white-space: nowrap; }
.rj-menu-btn { display: none; }
.rj-head-search { border-top: 1px solid var(--line, #e3e7ee); background: var(--ivory, #faf6ee); padding: 14px 0; }
.rj-head-search[hidden] { display: none; }
.rj-head-search .rj-search { max-width: 720px; margin: 0 auto; }
@media (max-width: 1240px) { .rj-nav a { padding: 8px 9px; font-size: 14.5px; } .rj-brand-name small { display: none; } }
@media (max-width: 1080px) {
  .rj-head-row { min-height: 64px; gap: 12px; justify-content: space-between; }
  .rj-menu-btn { display: grid; }
  .rj-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 80; background: #fff; box-shadow: -20px 0 50px rgba(13, 34, 46, .2); padding: 16px; overflow-y: auto; display: none; flex-direction: column; gap: 14px; }
  body.rj-menu-open .rj-nav { display: flex; animation: rjSlide .22s ease; }
  body.rj-menu-open .rj-head { z-index: 90; }
  body.rj-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(13, 34, 46, .4); }
  .rj-nav .rj-nav-top { display: flex; justify-content: space-between; align-items: center; }
  .rj-nav-top b { font-size: 18px; }
  .rj-nav .rj-search { display: block; }
  .rj-nav .rj-search input { box-shadow: none; }
  .rj-nav ul { flex-direction: column; justify-content: flex-start; gap: 0; }
  .rj-nav ul a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line, #e3e7ee); font-size: 16px; }
  .rj-nav ul a[aria-current] { background: none; color: var(--saffron-deep, #b4660a); }
  .rj-nav .rj-store--drawer { display: inline-flex; justify-content: center; margin-top: auto; }
}
@media (max-width: 600px) {
  .rj-brand img { height: 32px; }
  .rj-brand-name { font-size: 17px; padding-left: 10px; }
  .rj-head-actions .rj-store { padding: 9px 12px; font-size: 13.5px; }
  .rj-head-actions .rj-store span { display: none; }
  .rj-head-actions [data-rj-search-toggle] { display: none; }
}
@media (max-width: 400px) { .rj-brand { gap: 8px; } .rj-brand img { height: 26px; } .rj-brand-name { font-size: 15px; padding-left: 8px; } .rj-brand-name .deva { display: none; } .rj-head-actions { gap: 6px; } .rj-head-actions .rj-store { padding: 8px 10px; font-size: 12.5px; } .rj-head-actions .rj-icon { width: 38px; height: 38px; } }

@keyframes rjSlide { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.rj-menu-open .rj-nav { animation: none; } }

/* The journal's own footer */
.rj-foot { margin-top: 56px; background: var(--night, #1d2f5f); color: #c9cfe3; }
.rj-foot a { color: #e9ecf6; text-decoration: none; }
.rj-foot a:hover { color: #fff; text-decoration: underline; }
.rj-foot-cta { background: var(--ivory, #faf6ee); color: var(--ink, #0d222e); border-top: 1px solid var(--ivory-line, #efe5d2); }
.rj-foot-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; }
.rj-foot-cta b { display: block; font-size: 20px; font-weight: 500; }
.rj-foot-cta span { color: var(--ink-2, #3a4652); font-size: 15px; }
.rj-foot-cta a { color: inherit; }
.rj-foot-cta a:hover { text-decoration: none; }
.rj-foot-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.rj-foot-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: 48px; padding-block: 48px 36px; }
.rj-foot-name { font-size: 26px; font-weight: 600; color: #fff !important; }
.rj-foot-name .deva { color: var(--saffron, #f7941d); font-size: .7em; margin-left: 4px; }
.rj-foot-brand p { margin: 10px 0 18px; font-size: 15px; line-height: 1.6; }
.rj-foot-brand .rj-search input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; font-size: 15px; padding-block: 12px; }
.rj-foot-brand .rj-search input::placeholder { color: #aab3cf; }
.rj-foot-brand .rj-search button { background: var(--saffron, #f7941d); color: var(--ink, #0d222e); width: 38px; height: 38px; }
.rj-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.rj-foot-cols h4 { margin: 0 0 12px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rj-foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.rj-foot-popular a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.rj-foot-contact { display: grid; gap: 8px; align-content: start; font-size: 14.5px; }
.rj-foot-contact p { margin: 0; }
.rj-foot-contact .btn-wa { justify-self: start; margin-bottom: 4px; color: #fff; }
.rj-foot-addr { color: #aab3cf; font-size: 13.5px; line-height: 1.55; margin-top: 4px !important; }
.rj-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #aab3cf; }
.rj-foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 16px; }
.rj-foot-links { display: flex; gap: 16px; }
@media (max-width: 1100px) { .rj-foot-main { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 760px) {
  .rj-foot-cta .wrap { flex-direction: column; align-items: flex-start; }
  .rj-foot-cols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .rj-foot-contact { grid-column: 1 / -1; }
  .rj-foot-bottom .wrap { flex-direction: column; }
}

/* The shop logo also sits at the top of the footer */
.rj-foot-logo { display: inline-block; margin-bottom: 18px; padding: 10px 14px; background: #fff; border-radius: 12px; }
.rj-foot-logo img { display: block; height: 40px; width: auto; }

/* Front page masthead: most read on the left, the newest article on the right */
.rj-mast-grid { align-items: stretch; }
.rj-mast-copy { display: flex; flex-direction: column; }
.rj-mast-copy h1 { margin-bottom: 18px; }
.rj-top { flex: 1; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ivory-line, #efe5d2); border-radius: 22px; padding: 18px 22px 8px; box-shadow: 0 18px 40px rgba(29, 47, 95, .06); }
.rj-top-head { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-deep, #b4660a); padding-bottom: 6px; }
.rj-top ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }
.rj-top li { flex: 1; display: flex; border-top: 1px solid var(--line, #e3e7ee); }
.rj-top li:first-child { border-top: 0; }
.rj-top a { flex: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr) 84px; gap: 14px; align-items: center; padding: 12px 0; color: var(--ink, #0d222e); text-decoration: none; }
.rj-top-no { font-size: 26px; font-weight: 600; line-height: 1; color: var(--saffron, #f7941d); text-align: center; }
.rj-top-body { display: grid; gap: 3px; }
.rj-top-body .rj-cat { font-size: 11.5px; }
.rj-top-title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.rj-top a:hover .rj-top-title { color: var(--saffron-deep, #b4660a); }
.rj-top-img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
@media (max-width: 600px) { .rj-top a { grid-template-columns: 28px minmax(0, 1fr) 64px; gap: 10px; } .rj-top-img { width: 64px; height: 52px; } .rj-top-title { font-size: 15.5px; } }

/* Shelves: three articles at a time; room above so the hover lift is not clipped */
.rj-shelf-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; padding-top: 6px; margin-top: -6px; }
@media (max-width: 1100px) { .rj-shelf-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 900px) { .rj-shelf-track { grid-auto-columns: 78%; gap: 16px; } }

/* "Find the Right Gemstone for You": premium consultation (featured) and free report */
.rj-choose { margin-top: 48px; padding: 56px 0; background: var(--ivory, #faf6ee); border-block: 1px solid var(--ivory-line, #efe5d2); }
.rj-choose-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.rj-choose-head h2 { margin: 6px 0 8px; }
.rj-choose-head p { margin: 0; color: var(--ink-2, #3a4652); }
.rj-choose-cards { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; max-width: 1040px; margin: 0 auto; }
.rj-choose-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line, #e3e7ee); border-radius: 20px; padding: 26px; }
.rj-choose-card.is-premium { border: 1.5px solid var(--saffron, #f7941d); box-shadow: 0 18px 40px rgba(180, 102, 10, .12); }
.rj-choose-tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--saffron, #f7941d); color: var(--ink, #0d222e); }
.rj-choose-tag.is-free { background: #e7f6ec; color: #15803d; }
.rj-choose-card h3 { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.2; }
.rj-choose-price { margin: 0; display: flex; gap: 10px; align-items: baseline; }
.rj-choose-price b { font-size: 30px; font-weight: 600; }
.rj-choose-price s { color: var(--muted, #6b7380); font-size: 17px; }
.rj-choose-sub { margin: 0; color: var(--ink-2, #3a4652); }
.rj-choose-card ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.rj-choose-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2, #3a4652); line-height: 1.45; font-size: 15.5px; }
.rj-choose-card li svg { width: 18px; height: 18px; margin-top: 3px; color: #15803d; }
.rj-choose-card .btn-block { margin-top: auto; justify-content: center; }
@media (max-width: 860px) { .rj-choose { padding: 40px 0; } .rj-choose-cards { grid-template-columns: 1fr; } .rj-choose-card { padding: 22px 18px; } }

/* Keep Reading: three cards, as on the shelves */
.rj-grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .rj-grid4 { grid-template-columns: 1fr; max-width: 520px; } }

/* Footer brand: logo on top, then "Ratna Journal रत्न" on one line */
.rj-foot-brand .rj-foot-logo { display: block; width: fit-content; }
.rj-foot-brand .rj-foot-name { display: block; white-space: nowrap; line-height: 1.2; }
.rj-foot-brand .rj-foot-name .deva { display: inline; margin: 0 0 0 6px; vertical-align: baseline; }

/* "Read more" on article cards and rows */
.rj-readmore { justify-self: start; align-self: flex-start; display: inline-flex; gap: 6px; margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--saffron-deep, #b4660a); text-decoration: none; }
.rj-readmore span { transition: transform .15s ease; }
.rj-readmore:hover { text-decoration: underline; text-underline-offset: 3px; }
.rj-readmore:hover span { transform: translateX(3px); }
.rj-card-body .rj-readmore { margin-top: auto; padding-top: 4px; }

/* Tall pictures in the article text are capped (the featured image stays the wide banner) */
.rj-content img { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px; margin-inline: auto; }
