/* Long-form article typography: lists, figures, references, request modal.
   Moved out of duplicate <style> blocks; linked after main.css on the pages that had it. */
/* -------------------------
   Responsive Layout
------------------------- */
@media screen and (max-width: 768px) {
  .col-8.col-12-mobile {
    width: 100% !important;
    margin-bottom: 2em;
  }
  .col-4.col-12-mobile {
    width: 100% !important;
  }
  .row.gtr-200 {
    flex-direction: column;
  }
}

/* -------------------------
   Whitepaper Lists
------------------------- */
#content ul,
#content ol {
  margin: 1em 0 1.5em 1.5em;
  padding: 0;
  line-height: 1.6;
}

#content ul li,
#content ol li {
  margin-bottom: 0.6em;
  padding-left: 0.5em;
  position: relative;
}

/* Custom bullets */
#content ul {
  list-style-type: none;
}
#content ul li::before {
  content: "•";
  color: #2c5530;
  font-weight: bold;
  position: absolute;
  left: -1.2em;
}

/* Ordered list markers */
#content ol {
  list-style-type: decimal;
  padding-left: 1.5em;
}
#content ol li::marker {
  color: #2c5530;
  font-weight: 600;
}

/* Sub-list bullets lighter */
#content ul ul li::before {
  color: #888;
  font-size: 0.8em;
}

/* -------------------------
   Montshield Button
------------------------- */
.btn-montshield {
  display: inline-block;
  padding: 0.5em 1em;       /* smaller size */
  font-size: 0.9em;
  font-weight: 500;
  border-radius: 5px;
  background-color: #2c5530; /* Montshield green */
  color: #fff;
  border: none;
  text-align: center;
  cursor: pointer;
}

/* no hover effect */
.btn-montshield:hover,
.btn-montshield:focus,
.btn-montshield:active {
  background-color: #2c5530;
  color: #fff;
}

/* -------------------------
   Modal
------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0,0,0,0.5);
}
.modal.show { display: block; }

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
}

.modal-content {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.modal-header,
.modal-footer {
  padding: 1rem;
  border: 0;
}

.modal-header {
  background: #2c5530;
  color: #fff;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  position: relative;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  color: #fff !important;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body .form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-body .form-control {
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.95em;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.modal-footer {
  background: #f8f9fa;
  color: #666;
  font-size: 0.9em;
  border-top: none;
}

/* -------------------------
   Modal Close Button
------------------------- */
.btn-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-close::before {
  content: "✕";
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff; /* always white */
  line-height: 1;
}

/* no hover effect on close button */
.btn-close:hover::before,
.btn-close:focus::before {
  color: #fff;
}
