/* Blog & News Manager — the few extra parts it adds to a website.
   Neutral on purpose: fonts and text colours come from the website itself;
   the accent colour can be set in Settings (--rv-accent). */
:root { --rv-accent: currentColor; --rv-line: rgba(127, 127, 127, 0.28); --rv-soft: rgba(127, 127, 127, 0.08); }

[data-rv-item][hidden] { display: none !important; }

/* Search, filters and pages above / below a blog list */
.rv-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 24px; width: 100%; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chip { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--rv-line); border-radius: 999px; font-size: 13px; line-height: 1.2; text-decoration: none; color: inherit; background: transparent; }
.rv-chip:hover { border-color: var(--rv-accent); }
.rv-chip.is-active { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }
.rv-search { position: relative; display: flex; align-items: center; flex: 0 1 300px; margin: 0; }
.rv-search svg { position: absolute; left: 12px; opacity: 0.55; pointer-events: none; }
.rv-search input { width: 100%; padding: 9px 14px 9px 38px; border: 1px solid var(--rv-line); border-radius: 999px; font: inherit; font-size: 14px; color: inherit; background: transparent; }
.rv-search input:focus { outline: 2px solid var(--rv-accent); outline-offset: 1px; }
.rv-empty, .rv-empty-list { margin: 20px 0; opacity: 0.8; }
.rv-empty a { color: var(--rv-accent); text-decoration: underline; }
.rv-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; width: 100%; }
.rv-pager[hidden] { display: none; }
.rv-pager button { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rv-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.rv-pager button[aria-current="page"] { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }
.rv-pager button[disabled] { opacity: 0.35; cursor: default; }

/* Extra parts inside articles */
.rv-meta { opacity: 0.75; font-size: 0.92em; }
.rv-figure { margin: 0 0 1.4em; }
.rv-figure img { max-width: 100%; height: auto; display: block; }
.rv-toc { border: 1px solid var(--rv-line); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.6em; }
.rv-toc__title { font-weight: 700; margin: 0 0 6px; }
.rv-toc ol { margin: 0; padding-left: 1.3em; }
.rv-toc li { margin: 4px 0; }
.rv-toc a { color: inherit; }
.rv-table, .rv-embed { margin: 0 0 1.4em; }
.rv-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rv-table table { width: 100%; min-width: 480px; border-collapse: collapse; }
.rv-table th, .rv-table td { border: 1px solid var(--rv-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.rv-table th { background: var(--rv-soft); }
.rv-table caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 8px; }
.rv-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.rv-embed--map { aspect-ratio: 4 / 3; background: var(--rv-soft); }
.rv-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-extras { margin-top: 2em; }
.rv-faq { margin: 2em 0; }
.rv-faq__item { border-bottom: 1px solid var(--rv-line); padding: 10px 0; }
.rv-faq__item summary { cursor: pointer; font-weight: 700; list-style-position: inside; }
.rv-faq__answer { padding: 8px 0 4px; }
.rv-readmore a { color: var(--rv-accent); text-decoration: underline; }
.rv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.8em 0; padding-top: 1.2em; border-top: 1px solid var(--rv-line); }
.rv-share__label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px; }
.rv-share__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rv-line); display: inline-grid; place-items: center; color: inherit; background: transparent; cursor: pointer; }
.rv-share__btn:hover { border-color: var(--rv-accent); }
.rv-share__done { font-size: 13px; }
.rv-share__done[hidden] { display: none; }
.rv-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.6em 0; }
.rv-prevnext__link { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rv-line); border-radius: 12px; color: inherit; text-decoration: none; }
.rv-prevnext__link--next { text-align: right; }
.rv-prevnext__dir { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.rv-related { margin-top: 2.4em; }
.rv-related__title { margin-bottom: 0.8em; }
/* the copied card box keeps its side-by-side layout but not the listing page's big top/bottom spacing */
.rv-related__list > * { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
@media (max-width: 640px) {
  .rv-tools { flex-direction: column; align-items: stretch; }
  .rv-search { flex: none; width: 100%; }
  .rv-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .rv-chip { flex: none; }
  .rv-prevnext { grid-template-columns: 1fr; }
  .rv-prevnext__link--next { text-align: left; }
}
