/* Cinedex Stuff */

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-variant-numeric: oldstyle-nums;     /* text figures (ascenders/descenders) everywhere in body */
    padding-bottom: 1.25rem;
    padding-top: 0;
}

h1, h2 {
    font-weight: 600;
}

/* ---- Type treatment — old feel, new fonts, applied across the whole site
   (the podcast pages are part of Cinedex — one cohesive site). The front page
   keeps its own hero sizing via frontpage.css. ---- */
h1, h2, h3, h4, h5, h6 { font-family: "Montserrat", sans-serif; font-variant-numeric: lining-nums; }
.jumbotron h1 { text-transform: uppercase; }
.jumbotron p { font-family: "Montserrat", sans-serif; font-size: 1.5rem; font-weight: 300; }
.table { font-variant-numeric: oldstyle-nums proportional-nums; }  /* tables read as text by default */
.btn { font-variant-numeric: lining-nums; }                  /* UI/button numbers are lining */

/* Tables default to old-style proportional figures (above). True number columns
   — issue numbers and page indices that read as data — opt into lining, tabular
   figures so they align in a column. */
.tabular-figures { font-variant-numeric: lining-nums tabular-nums; }

/* Click-to-sort headers (sortable-tables.js) carry a type-appropriate Bootstrap
   Icons sort glyph: muted to signal the column is sortable, full-strength for
   the active sort column. */
.sortable th .sort-icon { opacity: .3; font-size: .85em; }
.sortable th .sort-icon.sort-icon-active { opacity: 1; }

/* Leading icons in link tables sit in a fixed-width centered box so the link
   text after them lines up (icon glyphs and image icons differ in width). */
.table td > .bi:first-child,
.table td > .artofthetitle-a:first-child {
  display: inline-block;
  width: 1.5em;
  text-align: center;
  background-position: center;
  left: 0;
}

/* Page-range markers (text + photo) get the same fixed-width box as the other
   table icons, so both lines share one left edge regardless of row order. */
.table td .glyphicon-camera-color {
  display: inline-block;
  width: 1.5em;
  text-align: center;
}

.section-head {
    padding-bottom: 0;
    margin-bottom: 0;
    margin-top: 0;
}

.article-title {
    padding-bottom: 0;
    margin-bottom: 0;   /* no negative pull — BS5 table cells have a white bg that would clip the border */
    margin-top: 1em;
    border-bottom: 0.0625rem solid #ddd;
}

td.article-key {
    width: 4.5em;
}

td.cinefex-index-published {
    width: 9em; /* so that all of the month-year dates will lay out without wrapping */
}

/* External-service links (#48): a row of consistent logo + label buttons. The
   brand glyph is a self-hosted Simple Icons mask, recolored to the button's
   text color so logo and label always share one color and one size. */
.service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 5px;
}

.btn-service {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-service:hover,
.btn-service:focus {
    filter: brightness(1.12);
    text-decoration: none;
}

.btn-service::before {
    content: "";
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    background-color: currentColor;
    -webkit-mask: var(--logo) no-repeat center / contain;
            mask: var(--logo) no-repeat center / contain;
}

.btn-letterboxd { background-color: #202830; color: #fff; --logo: url("/static/images/brands/letterboxd.fbccf858cabe.svg"); }
.btn-tmdb       { background-color: #01b4e4; color: #fff; --logo: url("/static/images/brands/tmdb.f40c7f77a3e2.svg"); }
.btn-imdb       { background-color: #f5c518; color: #000; --logo: url("/static/images/brands/imdb.6d16806f0cb3.svg"); }
.btn-wikipedia  { background-color: #202122; color: #fff; --logo: url("/static/images/brands/wikipedia.5a8c94bfaa03.svg"); }

/* Copy-short-link: a .btn-service pill (#115). It uses a Bootstrap Icons glyph
   inline rather than the brand ::before mask, so suppress the mask. */
.btn-copylink { background-color: #4a5568; color: #fff; border: 0; cursor: pointer; }
.btn-copylink::before { content: none; }

.short-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 5px;
}

.glyphicon-camera-color {
    color: #bfddff;
}

/* Episode Links colums (Subscribe, Download, Listen) */

#episode-links-subscribe {
    margin-top: 0;
}

/* The Optical Navbar */

.navbar {
    font-family: "Montserrat", sans-serif;
}

/* Navbar matches the home page exactly; only the background color differs.
   The search field uses the body face (IBM Plex Sans), not the navbar's
   Montserrat, so it reads the same as the home-page field. */
.navbar-inverse .form-control {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
}

.navbar-inverse .navbar-brand {
    font-weight: 600;
    color: #e8e7db;
    font-size: 1.25rem;
}

.navbar-inverse .navbar-nav>li>a {
    font-weight: 400;
    color: #e8e7db;
    font-size: 1.25rem;
}

.navbar-optical {
    border-radius: 0;
    margin-bottom: 0;
    --bs-navbar-nav-link-padding-x: 0.9375rem;   /* spacing between nav items (BS5 default 0.3125rem) */
}

.navbar-optical a {
    text-decoration: none;
    color: #e8e7db;
}

.navbar-optical .container-fluid {
    background-color: #550000;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #e8e7db;
}

/* Bootstrap Icons sizing/layout utilities (the icon font ships none of its own) */

.bi-fw {            /* fixed-width: line up icon-led items in menus and lists */
    display: inline-block;
    width: 1.25em;
    text-align: center;
}

.bi-2x {
    font-size: 2em;
}

.bi-svg {          /* inline brand SVGs (e.g. Tumblr) that the icon font lacks */
    vertical-align: -0.125em;
}

.no-bullet {
    list-style-type: none;
    list-style-position: inside;
}

.no-bullet li {
    position: relative;
}

.no-bullet > ul {
    padding-left: 0;
}

/* Art of the Title link icon */

span.artofthetitle-a {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("/static/img/artofthetitle-a-black.44807bfd6e11.svg");
    background-repeat: no-repeat;
    position: relative;
    top: 0.1em;
}

/* Podcast Index Page */

.episode-index-banner-small {
    width: 100%;
    max-width: 100%;
    margin-top: 1em;
}

/* Anti-spam form fields */

/* Off-screen honeypot: a real input kept out of sight and out of the a11y tree.
   Not display:none (some bots special-case it); positioned off-canvas instead. */
.hp-field { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }