.rg-metadata {
  color: var(--pst-color-text-muted);
  font-size: 0.85rem;
}

.rg-read-time {
  margin: 0 0 2.5rem;
  font-size: 0.85rem;
  color: var(--pst-color-text-muted);
}

.rg-read-time:has(+ .rg-platforms) {
  margin-bottom: 0.4rem;
}

.rg-read-time::before {
  content: "\f017";
  display: inline-block;
  width: 1rem;
  margin-right: 0.35rem;

  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  text-align: center;
}

.rg-release-date {
  margin: 0 0 0.5rem;
}

.rg-release-date::before {
  content: "\f073";
  display: inline-block;
  width: 1rem;
  margin-right: 0.35rem;

  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  text-align: center;
}

.rg-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;

  margin: 0 0 2.5rem;
  line-height: 1.5;
}

.rg-platforms-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.rg-platforms-label::before {
  content: "\f058";
  display: inline-block;
  width: 1rem;
  margin-right: 0.35rem;

  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  text-align: center;
}

.rg-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;

  color: var(--pst-color-text-base);
  white-space: nowrap;
}

.rg-platform-badge-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  object-fit: contain;
}

html[data-theme="dark"] .rg-platform-badge-icon {
  filter: none !important;
  background: transparent !important;
}

html[data-theme="dark"] .bd-content img.rg-platform-bedge-icon {
  background: transparent !important;
  filter: none !important;
}

html[data-theme="dark"] .wn-tags-icon {
  background: transparent !important;
  filter: none !important;
}

.bd-content img {
  margin-bottom: 1rem;
}

/* Brand color overrides for PyData Sphinx Theme */

html[data-theme="light"] {
  --pst-color-primary: #007A55;          
  --pst-color-secondary: #00A4CE;
  --pst-color-secondary-highlight: var(--pst-color-primary);
  --pst-color-link: var(--pst-color-primary);
  --pst-color-link-hover: var(--pst-color-secondary);
}

html[data-theme="dark"] {
  --pst-color-primary: #00A4CE;          
  --pst-color-secondary: #56ECBB;
  --pst-color-secondary-highlight: var(--pst-color-primary);     
  --pst-color-link: var(--pst-color-primary);
  --pst-color-link-hover: var(--pst-color-secondary);
}


.rg-hero {
  text-align: center;
  margin: 3rem auto;
}

.rg-hero h1 {
  margin-bottom: 1rem;
}

.rg-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--pst-color-text-muted);
}



.rg-home-search {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 2rem auto 3rem;

    --pf-input-height: 56px;
    --pf-input-font-size: 16px;
    --pf-border-radius: 8px;
    --pf-border-focus: var(--pst-color-secondary);
    --pf-outline-focus: var(--pst-color-secondary);
}

.rg-home-search pagefind-searchbox {
    display: block;
    width: 100%;
}

.rg-home-search .pf-searchbox {
    width: 100%;
    max-width: none !important;
}

.rg-sidebar-feedback {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.rg-sidebar-feedback-title {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pst-color-text-base);
}

.rg-sidebar-feedback-actions {
  display: flex;
  gap: 0.5rem;
}

.rg-feedback-option {
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  align-items: center;
  gap: 0.35rem;

  padding: 0.4rem 0.75rem;

  background: transparent;
  border: 1px solid var(--pst-color-border);
  border-radius: 999px;

  color: var(--pst-color-text-muted);

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.rg-feedback-option:hover:not(:disabled) {
  border-color: var(--pst-color-primary);
  color: var(--pst-color-primary);
}

.rg-feedback-option i {
  font-size: 0.9rem;
}

.rg-feedback-option span {
  font-size: 0.85rem;
}

.rg-feedback-option:disabled {
  cursor: default;
}

.rg-feedback-option:disabled[aria-pressed="false"] {
  opacity: 0.55;
}

.rg-feedback-option[aria-pressed="true"] {
  color: var(--pst-color-primary);
  border-color: var(--pst-color-primary);
  background-color: var(--pst-color-surface);
}

.rg-feedback-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--pst-color-text-muted);
}

.rg-feedback-status:empty {
  margin: 0;
}

.prev-next-area {
  margin-top: 3rem;
  padding-top: 1.5rem;
}


/* Shared styles */

.wn-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 20px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.wn-tags a {
    padding: 2px 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.wn-tags a:hover,
.wn-tags a:focus-visible {
    color: #000;
    background-color: var(--pst-color-primary);
    border-color: var(--pst-color-primary);
    text-decoration: none;
}

.wn-tags a:active {
    color: #000;
    background-color: var(--pst-color-primary);
    border-color: var(--pst-color-primary);
}


/* Light theme */

html[data-theme="light"] .wn-tags a {
    color: #333;
    background-color: #e4e4e4;
    border-color: #e4e4e4;
}


/* Dark theme */

html[data-theme="dark"] .wn-tags {
    margin: 7px 0;
}

html[data-theme="dark"] .wn-tags a {
    color: #eee;
    background-color: rgb(48 50 61 / 75%);
    border-color: rgb(48 50 61 / 75%);
}


/* Keep interaction colors after theme-specific rules */

html[data-theme="light"] .wn-tags a:hover,
html[data-theme="light"] .wn-tags a:focus-visible,
html[data-theme="light"] .wn-tags a:active {
    color: #fff;
    background-color: var(--pst-color-primary);
    border-color: var(--pst-color-primary);
    text-decoration: none;
}

html[data-theme="dark"] .wn-tags a:hover,
html[data-theme="dark"] .wn-tags a:focus-visible,
html[data-theme="dark"] .wn-tags a:active {
    color: #000;
    background-color: var(--pst-color-primary);
    border-color: var(--pst-color-primary);
    text-decoration: none;
}

/* Large tables style override */

.rg-reference-table {
  table-layout: fixed;
  width: 100%;
}

.rg-reference-table th,
.rg-reference-table td {
  overflow-wrap: anywhere;
}

.rg-reference-table code.literal span.pre {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Code blocks content wrapping */

.wrap-code pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Release summaries only: the head script adds in-iframe when embedded. */
html.in-iframe {
    --pst-header-height: 0px;
}

html.in-iframe :is(
    .bd-header,
    .bd-header-announcement,
    .bd-sidebar-primary,
    .bd-sidebar-secondary,
    .bd-header-article,
    .bd-footer-article,
    .prev-next-footer,
    .bd-footer-content,
    .bd-footer,
    .rg-sidebar-feedback,
    .headerlink,
    #pst-skip-link,
    #pst-back-to-top,
    #hubspot-messages-iframe-container
) {
    display: none !important;
}

/* Keep PyData's flex layout and padding; remove only its width limits. */
html.in-iframe .bd-container__inner,
html.in-iframe .bd-main .bd-content .bd-article-container {
    max-width: none;
}

/* PyData adds extra article padding at desktop widths. */
html.in-iframe .bd-main .bd-content .bd-article-container .bd-article {
    padding: 0;
}
