/* Buttons inside table cells */
button {
  cursor: ns-resize;
  color: white;
  padding: 6px;
  border: none;
  border-radius: 10px;
  background-color: red;
  text-align: left;
  outline: none;
}

[id] {
  scroll-margin-top: 90px;
}

:root {
  --base-font-size: 16px;
  /* slider will adjust this */
}

html {
  font-size: var(--base-font-size);
}

body {
  font-size: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* Font size here affects the body text of the documents */
  /* font size above is normally at "auto" */
  font-size: 1rem;
}

/* Table cells */
td {
  text-align: left;
  vertical-align: top;
  padding: 10px;
  font-size: 1rem;
}

/* Back-to-top button */
#myBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 20px;
  /* Place the button at the bottom of the page */
  right: 30px;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
  border: none;
  /* Remove borders */
  outline: none;
  /* Remove outline */
  background-color: red;
  /* Set a background color */
  color: white;
  /* Text color */
  cursor: pointer;
  /* Add a mouse pointer on hover */
  padding: 15px;
  /* Some padding */
  border-radius: 10px;
  /* Rounded corners */
  font-size: 1.25rem;
  /* Top Button font size */
}

#myBtn:hover {
  background-color: #555;
  /* Add a dark grey background on hover */
}

/* Collapsible controls */
.collapsible {
  background-color: #bbb;
  color: black;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: .5px solid black;
  text-align: left;
  outline: none;
}

.collapsible:hover {
  background-color: #ccc;
}

/* Collapsible content container (hidden by default) */
.content {
  padding: 0 18px;
  display: block;
  overflow: hidden;
  background-color: #f1f1f1;
}

/* Collapsible +/- icon */
.collapsible::after {
  /* Unicode character for "plus" sign */
  content: "\2796";
  font-size: 0.8125rem;
  /* Font size here affects the size of the + and - icons */
  color: white;
  float: right;
  margin-left: 5px;
}

.active::after {
  /* Unicode character for "minus" sign */
  content: "\2796";
}

/* Blockquotes */
blockquote {
  margin-left: 30px;
  margin-right: 30px;
  font-size: 0.875rem;
}

/* Footnote reference number */
.footnumber {
  background-color: yellow;
  color: blue;
  cursor: pointer;
  /* Add a background and pointer on hover via JS/CSS */
}

.footnumber:hover {
  background-color: #ccc;
}

/* Footnote popup/content (hidden by default) */
.footnote {
  padding: 20px;
  display: none;
  color: blue;
  margin: 5px;
}

/* Utility padding */
.leftpad {
  padding-left: 40px;
}

.leftpad30 {
  padding-left: 30px;
}

/* Section numbers */
.sectionnumber {
  font-weight: bold;
  color: red;
}

.sectionmarkerlist ::marker {
  content: "§" counter(list-item)" ";
  color: #00961b;
}

.parenthesismarkerlist ::marker {
  content: counter(list-item)") ";
}

.regularlist ::marker {
  content: counter(list-item)". ";
  color: black;
}

.smollist ::marker {
  list-style-type: lower-latin;
  color: blue;
}

/* Titles */
.title1 {
  font-weight: bolder;
  /* Font size here affects the title 1 text */
  font-size: 1.25rem;
}

.title2 {
  font-weight: bold;
  color: green;
  font-size: 1.125rem;
}

.title3 {
  font-style: italic;
  color: red;
  font-size: 1rem;
}

.title4 {
  color: black;
  font-size: 0.875rem;
}

.small {
  font-variant-caps: small-caps;
}

/* SPECIFICALLY LITURGICAL TEXTS */

.chant {
  width: 100%;
  max-width: 800px;
}

.chantshort {
  width: 50%;
  max-width: 400px;
}

.amen {
  width: 22%;
  max-width: 220px;
}

sup {
  color: red;
  font-weight: normal;
}

.norm {
  font-weight: normal;
}

.lit1red {
  font-weight: bold;
  font-size: 1.5rem;
  color: red;
  text-align: center;
}

.lit1black {
  font-weight: bold;
  font-size: 1.5rem;
  color: black;
  text-align: center;
}

.lit2red {
  font-weight: bold;
  font-size: 1.25rem;
  color: red;
  margin-bottom: 0px;
}

.lit2black {
  font-weight: bold;
  font-size: 1.25rem;
  color: black;
}

.lit3red {
  font-size: 0.8rem;
  padding-left: 15px;
  color: red;
}

.lit3black {
  font-size: 0.8rem;
  padding-left: 15px;
  color: black;
}

.lit {
  padding-left: 30px;
  margin-top: 0px;
}

.litbold {
  padding-left: 30px;
  font-weight: bold;
  margin-top: 0px;
}

.gospel {
  font-weight: bold;
  padding-left: 2em;
  text-indent: -2em;
  margin-top: 0px;
  margin-bottom: 0px;
}

.nospace {
  margin-top: 0px;
  margin-bottom: 0px;
}

.ind {
  padding-left: 2em;
  text-indent: -1.6em;
}

.right {
  float: right;
  font-weight: normal;
}

.center {
  text-align: center;
}

.black {
  color: black;
}

.red {
  color: red;
}

.basicbutton {
  text-decoration: none;
  background-color: blue;
  color: white;
  padding: 4px;
  border-radius: 4px;
}

/* Language columns */
.english,
.latin {
  display: table-cell;
}

/* Hide a column */
.hidecolumn {
  display: none;
}

/* Generic buttons (outside table-cell buttons above) */
button:hover {
  background-color: #555;
}

/* Language columns default visible */
.english,
.latin {
  display: table-cell;
}

/* Hide when JS adds the class 'hide-column' (hyphen) */
.english.hide-column,
.latin.hide-column {
  display: none !important;
}

/* Backward compatibility in case some pages still use the old class name */
.english.hidecolumn,
.latin.hidecolumn {
  display: none !important;
}

.hide-column {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* ----- Slider UI style (optional minimal styling) ----- */
/* Keep slider UI size independent of the global base by using absolute px */
.font-size-control {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #bbb;
  border-bottom: 1px solid #ddd;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  /* was 0.875rem */
}

.font-size-control input[type="range"] {
  width: 16px;
  /* keep as-is */
}

.font-size-control label,
.font-size-control output {
  font-size: 20px;
  /* lock these too */
}

.font-size-control label {
  font-weight: bold;
  margin-right: 4px;
}

.font-size-control output {
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.font-size-control input[type="range"] {
  width: 400px;
}

.font-size-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.font-size-control-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.font-size-control-right button {
  padding: 6px 10px;
}

.font-size-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.font-size-control-left,
.font-size-control-center {
  display: flex;
  gap: 8px;
  align-items: center;
}

.font-size-control-right button {
  padding: 6px 10px;
  /* optional */
}



.print-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background-color: #c53f3f;
  /* match your theme */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #9f2f2f;
  font-size: 14px;
  /* keep fixed size near title */
  line-height: 1.2;
}

.print-pdf-btn:hover,
.print-pdf-btn:focus {
  background-color: #a83636;
  outline: none;
}

.print-pdf-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(197, 63, 63, 0.3);
}


.site-search {
  margin: 16px 0;
}

.site-search form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-search input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.site-search button[type="submit"] {
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  background: #eee;
  border-radius: 6px;
}

.site-search-results {
  margin-top: 12px;
}

.site-search-results .result {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.site-search-results .result a {
  color: #1a3a7a;
  text-decoration: none;
}

.site-search-results .result a:hover {
  text-decoration: underline;
}

.site-search-results .meta {
  color: #555;
  font-size: 0.875rem;
  margin-top: 2px;
}

/* Top button in the bar (unchanged on purpose) */
#backToTopBtn {
  padding: 6px 10px;
  font-size: 16px;
  border-radius: 10px;
}

/* Expand/Collapse All (now scales with the slider) */
.showall {
  padding: 0.375rem 0.625rem;
  /* 6px 10px */
  font-size: 1rem;
  /* scales with slider */
  border-radius: 0.625rem;
  /* 10px */
}

@media (max-width: 600px) {
  #backToTopBtn {
    font-size: 16px;
    /* scales with slider if you use rem; ~16px default */
  }

  .font-size-control label,
  .font-size-control output {
    font-size: 16px;
  }

  .font-size-control input[type="range"] {
    width: 100px;
  }
}