.ais-SearchBox-input {
     width: 100%;
     max-width: 684px;
}
 select.form-control {
     -webkit-appearance: menulist;
}
 #navbar {
     display: block;
}
 #navbar td {
     display: inline-block;
     text-align: left;
}

body.dark {
  background-color: rgb(14,20,10);
  color: #fff;
}

table.dark {
    color: #fff;
}

li.dark::marker {
    color: black;
}

a.dark {
    text-decoration: none;
    border-bottom: 1px solid black;
}

.caption {
    color: black;
}

.fa-square-x-light {
    color: #f22d34;
}

.fa-square-x-dark {
    color: #f22d34;
}

.fa-square-x-light:hover {
    color: black;
}

.fa-square-x-dark:hover {
    color: white;
}

.stickiedPostTable {
    margin: 0;
    min-height: 75px;
    padding-top: 25px;
    margin-bottom: 30px;
    background-color: #F2D7D5;
    width: 100%;
    border: 1px solid black;
}

.stickiedPostTable-dark {
    margin: 0px;
    height: 75px;
    padding-top: 25px;
    margin-bottom: 30px;
    background-color: #ad3c36;
    width: 100%;
    border: 1px solid white;
}

.jrpm-form-switch .jrpm-form-check-input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    outline: 0;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/></svg>");
}
.jrpm-form-switch .jrpm-form-check-input:checked {
    background-color: #f22d34;
    border-color: #f22d34;
    border: none;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1.0)'/></svg>");
}

/* create a pdfButton base class, then a -light and -dark subclass */

.submitButton {
    color: white;
    background-color: #f22d34;
    height: 40px;
    width: 115px;
    font-size: 12px;
    border: 1px solid black;
}

.newsletterCTAButton {
    color: white;
    background-color: #f22d34;
    height: 50px;
    width: 200px;
    font-size: 12px;
    border: 1px solid black;
}

.pdfButton {
    color: white;
    background-color: #f22d34;
    height: 50px;
    width: 115px;
    font-size: 12px;
    border: 1px solid black;
}

.pdfButton-dark {
    color: white;
    background-color: #f22d34;
    height: 50px;
    width: 115px;
    font-size: 12px;
    border: 1px solid white;
}

/* In-article PDF embeds (scripts/pdf.js; also hardens legacy hexo-pdf .row markup).
   Bare .row + <embed> often collapses height so consecutive PDFs overlap.
   Size ~one US-letter page at content width (8.5×11 → height ≈ 1.294× width). */
.pdf-embed {
    display: block;
    width: 100%;
    clear: both;
    margin: 1.75rem 0 2.25rem 0;
    box-sizing: border-box;
}

.pdf-embed-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.pdf-embed-object,
.pdf-embed-frame {
    display: block;
    width: 100%;
    /* Letter page + a bit extra for browser PDF chrome / fit. */
    aspect-ratio: 8.5 / 12.25;
    height: auto;
    max-height: 90vh;
    border: 1px solid #d3d3d3;
    box-sizing: border-box;
    margin: 0;
}

.pdf-embed-fallback {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
}

/* Fallback if aspect-ratio is ignored on embed (older engines) */
@supports not (aspect-ratio: 8.5 / 12.25) {
    .pdf-embed-object,
    .pdf-embed-frame {
        height: 808px;
        min-height: 808px;
    }
}

/* Legacy hexo-pdf output still in some generated HTML until rebuild */
.row > embed[type="application/pdf"] {
    display: block;
    width: 100%;
    aspect-ratio: 8.5 / 12.25;
    height: auto;
    max-height: 90vh;
    margin: 1.75rem 0 2.25rem 0;
    box-sizing: border-box;
}

.row:has(> embed[type="application/pdf"]) {
    display: block;
    width: 100%;
    clear: both;
    margin: 1.75rem 0 2.25rem 0;
}

.nohighlight {
    text-decoration-color: none;
    background-image: none;
}

 .bottom-text-p {
     margin-bottom: 0;
}
 .pillimg {
     min-width: 30px;
     width: 65px;
}
 img[src*="whitepill.png"],
 img[src*="redpill.png"] {
     filter: drop-shadow(0 0 1.25px rgba(0, 0, 0, 0.45));
}
 .pilltd {
     width: 65px;
}
 .pilllabeltd {
     width: 12%;
}
 .pilltxt {
     width: 150px;
     padding-left: 15px;
}
 .pilltxtmeaning {
     font-style: italic;
     font-size: 12px;
     padding-right: 15px;
     white-space: nowrap;
}
 /* Desktop: four items spread across the bar. .pillstack
    unwraps so name and meaning stay separate columns.
    Mobile: .pillstack is the third cell — name over
    meaning, centered, with a tight 4px gap. */
 table.table:has(.pillimg),
 .jrpm-post-article table.table:has(.pillimg) ~ table.table:has(.pillimg) {
     display: block;
     width: 100%;
     max-width: 100%;
     height: auto !important;
     min-height: 75px;
     box-sizing: border-box;
}
 table.table:has(.pillimg) > tbody {
     display: block;
     width: 100%;
}
 table.table:has(.pillimg) > tbody > tr {
     display: flex;
     align-items: center;
     justify-content: space-evenly;
     gap: 0.75rem;
     padding: 0 1.25rem;
     min-height: 75px;
     width: 100%;
     max-width: 100%;
     min-width: 0;
     box-sizing: border-box;
}
 table.table:has(.pillimg) > tbody > tr > td {
     width: auto;
     max-width: none;
     min-width: 0;
     flex: 0 1 auto;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     vertical-align: middle;
     padding: 0;
     border: 0;
     box-shadow: none;
}
 table.table:has(.pillimg) > tbody > tr > td.pillstack {
     display: contents;
}
 table.table:has(.pillimg) .pillratingtxttd,
 table.table:has(.pillimg) .pillratingtxt {
     width: auto;
     max-width: none;
     min-width: 0;
     white-space: nowrap;
     padding-left: 0 !important;
}
 table.table:has(.pillimg) .pilltd {
     flex: 0 0 auto;
     width: auto;
}
 table.table:has(.pillimg) .pillimg {
     width: 65px;
     min-width: 65px;
     flex-shrink: 0;
}
 table.table:has(.pillimg) .pilltxt {
     width: auto;
     max-width: none;
     white-space: nowrap;
     padding-left: 0;
     line-height: 1.15;
}
 table.table:has(.pillimg) .pilltxtmeaning {
     padding-right: 0;
     line-height: 1.15;
}
 .pilltxtparent {
     display: inline;
     padding-top: 3px;
}
 .pillratingtxttd {
     width: 125px;
}
 .pillratingtxt {
     width: 100px;
     font-size: 12px;
     font-weight: bold;
     padding-left: 15px !important;
     min-width: 20%;
}
 ::selection {
     color: black;
     background: #f22d34;
}
 .footerLineBreak {
     display: none;
}

.posTopLeft-Crop {
    object-position: left top;
}
.posTopRight-Crop {
    object-position: right top;
}
.posTop-Crop {
    object-position: top;
}

.banner,
.banner-dark {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 75px;
    object-fit: cover;
}

.banner {
    outline: 1px solid black;
    outline-offset: -1px;
}

.banner-dark {
    outline: 1px solid white;
    outline-offset: -1px;
}

.affiliateAdBanner {
    max-height: 75px;
    background: url("banners/coffeebrandcoffee.png");
}

@media (max-width: 420px){

    .affiliateAdBanner {
        max-height: 75px;
        background: url("banners/coffeebrandcoffee_300px.png");
    }

}

 @media (max-width: 670px){
     .footerLineBreak {
         display: initial;
    }
}
/* the redpill box breaks down at 425px, so need custom layout for that */
 @media (max-width: 425px) {
     .pillratingtxt {
         width: 75px;
         display: inline-block;
    }
     .pillratingtxttd {
         max-width: 75px;
    }
}
 @media (max-width: 640px) {
     table.table:has(.pillimg) > tbody > tr {
         justify-content: flex-start;
         padding: 0.45rem 0.75rem;
    }
     table.table:has(.pillimg) > tbody > tr > td.pillstack {
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         text-align: center;
         gap: 4px;
         padding-left: 1rem;
    }
     table.table:has(.pillimg) .pillratingtxt {
         width: auto;
         display: inline;
         white-space: nowrap;
         padding-left: 0 !important;
    }
     table.table:has(.pillimg) .pillratingtxttd {
         max-width: none;
    }
}
/* top table breaks down at 366 */

.vertical-lines {
  list-style-type: none; /* Remove default bullet points */
  padding: 0;
}

.vertical-lines li {
  position: relative;
  padding-left: 20px; /* Space for the vertical line */
}

.vertical-lines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px; /* Width of the line */
  background-color: black; /* Color of the line */
}

/* Adjust the line for the last item */
.vertical-lines li:last-child::before {
  height: 50%; /* Adjust based on the content height */
}
/*
 * Post title meta toolbar (right of Published date).
 * Order L→R: impressions+chart | X | moon | toggle
 * Uses real sizes (not transform:scale) so layout boxes match visuals and nothing overlaps.
 */
.post-meta-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0 4px 0 16px;
  white-space: nowrap;
  line-height: 1;
  vertical-align: top;
}
.post-meta-impressions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.post-meta-impressions-num {
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}
.post-meta-chart {
  color: black;
  line-height: 1;
  width: 1em;
  text-align: center;
}
.post-meta-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  text-decoration: none;
}
.post-meta-x i {
  padding: 0 !important;
  line-height: 1;
  width: 1em;
  text-align: center;
}
/* Moon (left) + switch (right) — site-wide dark mode control order */
.post-meta-darkmode {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 48px;
}
.post-meta-darkmode #darkModeIcon {
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0 !important;
  width: 1em;
  text-align: center;
  flex: 0 0 auto;
  order: 0;
}
/* Homepage sits next to the RedPills heading; keep same moon→toggle order */
.index-darkmode {
  justify-content: flex-end;
}
/* Static pages / collection hubs: align with title row */
.page-darkmode {
  justify-content: flex-end;
  margin-top: 0.25em;
}
.post-meta-switch-wrap {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  order: 1;
}
.post-meta-switch-wrap .form-check-input,
.post-meta-switch-wrap .jrpm-form-check-input {
  cursor: pointer;
  /* ~2x default bootstrap switch without transform:scale layout bugs */
  width: 3.5rem !important;
  height: 1.75rem !important;
  margin: 0 !important;
  margin-left: 0 !important;
  float: none !important;
  position: static !important;
  flex: 0 0 auto;
}
.post-meta-table td {
  overflow: visible;
}
/* Stack Published / short URL / Collection tightly; icon height must not insert gaps */
.post-meta-left {
  line-height: 1.35;
}
.post-meta-line {
  display: block;
  margin: 0;
  padding: 0;
}
.post-meta-line + .post-meta-line {
  margin-top: 4px;
}
body.dark .post-meta-chart {
  color: #fff;
}

