/* Import two Google Fonts: one for headings, one for body text.
   "Cinzel Decorative" gives a slightly magical, old-world look for headings.
   "Libre Baskerville" is a classic serif that suits newspaper text. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap');

/* General body styles: a parchment-like background and brown-ish text */
body {
    font-family: 'Libre Baskerville', serif;
    background-color: #fdf6e3; /* light parchment color */
    color: #3e2723; /* dark brown */
    margin: 0;
    padding: 0;
}

/* Container styles - you can use a background image if available */
.container {
    background-color: rgba(253, 246, 227, 0.8); /* semi-transparent parchment overlay */
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}

/* Headings styling: using the decorative font for a newspaper headline feel */
h1, h2, h3, h4, h5 {
    font-family: 'Cinzel Decorative', cursive;
    color: #5d4037;
}

/* Card styling for each issue */
.card {
    border: 2px solid #5d4037;
    background-color: #fbf8f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

/* Card header styling */
.card-header {
    background-color: #d7ccc8;
    font-family: 'Cinzel Decorative', cursive;
    border-bottom: 2px solid #5d4037;
    font-size: 1.2rem;
}

/* Card body text styling to mimic printed newspaper text */
.card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 6rem !important;
}

/* Card title for each article */
.card-title {
    font-size: 2rem;     /* Adjust this value if you need it even larger */
    font-weight: bold;   /* Ensures the text is bold */
    margin-bottom: 1rem;
}

/* Link styling for a classic look */
a {
    color: #6d4c41;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Button styling: using earthy tones */
.btn-primary {
    background-color: #5d4037;
    border: none;
}
.btn-primary:hover {
    background-color: #4e342e;
}

/* For additional newspaper-like flair, you can add a drop-cap to paragraphs */
p:first-letter {
    float: left;
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
    padding-right: 8px;
    color: #5d4037;
}

/* Responsive adjustments (Bootstrap handles most of this, but you can fine-tune if needed) */
@media (max-width: 576px) {
    .card-title {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 1rem;
    }
}

.offcanvas-start {
  top: 4rem !important;
  height: calc(100% - 4rem) !important;
}

/* --- Sticky nav bar --- */
.dp-nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;                 /* adjust if you want taller/shorter */
  background: #fbf8f0;          /* or whatever your parchment bg is */
  border-bottom: 1px solid #e0dcd3;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 1030;
}

/* — your own brown button — */
.dp-menu-btn {
  position: absolute;
  left: 1rem;
}

/* Title sits in the center */
.dp-nav-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.75rem;
  margin: 0;
}

/* Editor Panel button on the right */
.dp-editor-btn {
  position: absolute;
  right: 1rem;
}

/* Push page down by the bar’s height */
.dp-body-offset {
  padding-top: 56px;            /* same as .dp-nav-bar height */
}

/* Offcanvas starts below the bar */
.offcanvas-start {
  top: 56px !important;
  height: calc(100% - 56px) !important;
}

[id^="issue-"],
[id^="article-"] {
  scroll-margin-top: 56px;
}

/* Mobile: make the fixed‐bar title smaller so it stays on one line */
@media (max-width: 576px) {
  .dp-nav-title {
    font-size: 1.25rem;  /* tweak this value until it fits */
  }
}

/* override the offcanvas toggle button to use our brown palette */
#offcanvasToggle {
  background-color: #5d4037 !important;
  border-color:    #5d4037 !important;
  color:           #fff     !important;
}

#offcanvasToggle:hover,
#offcanvasToggle:focus {
  background-color: #4e342e !important;
  border-color:    #4e342e !important;
  outline: none;
}

/* add bullet to article links in the sidebar */
#sidebar .offcanvas-body a.ps-3 {
  position: relative;      /* to position the pseudo‑element */
  padding-left: 1.2rem;    /* make room for the bullet */
  font-size: 0.85rem;      /* whatever size you settled on */
}

#sidebar .offcanvas-body a.ps-3::before {
  content: "•";            /* the bullet character */
  position: absolute;
  left: 0;
  top: 0.2em;              /* adjust this to vertically center on your line-height */
  color: #6d4c41;          /* match your link color */
  font-weight: bold;       /* optional */
}