/* Reset top margin just in case */
html, body {
  margin: 0;
}

/* Hide the control checkbox (the toggle for the banner) */
.gp-banner-toggle {
  display: none;
}

/* Force-hide by id in case theme styles target checkboxes */
#gp-banner-dismiss.gp-banner-toggle {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Base styles for the top banner */
.gp-top-banner {
  /* Not fixed: it will sit above the header and push it down */
  width: 100%;
  background: #111827;          /* dark background */
  color: #f9fafb;               /* near white text */
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #374151;
  z-index: 9999;
}

/* Inner layout */
.gp-top-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Text */
.gp-top-banner-text {
  flex: 1;
}

.gp-top-banner a {
  color: #60a5fa;
  text-decoration: underline;
}

.gp-top-banner strong {
  font-weight: 600;
}

/* Close button */
.gp-banner-close {
  cursor: pointer;
  font-size: 18px;
  padding: 0 6px;
  line-height: 1;
  border-radius: 999px;
  user-select: none;
}

.gp-banner-close:hover {
  background: #1f2937;
}

/* When the checkbox is checked → hide the banner */
.gp-banner-toggle:checked ~ .gp-top-banner {
  display: none;
}

/* No more margin-top hacks on #wrapper/#page */

/* Mobile tweaks */
@media (max-width: 768px) {
  .gp-top-banner-inner {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ---------------- Existing custom styles ---------------- */

code {
  display: block; /* Makes the code element appear on a separate line */
  background-color: #2d2d2d; /* Dark background for the code block */
  border: 1px solid #444; /* Slightly lighter border for subtle contrast */
  border-radius: 5px; /* Rounded corners for a modern look */
  padding: 10px; /* Adds space inside the borders */
  margin: 10px 0; /* Adds space outside the borders, separating it from other content */
  white-space: pre-wrap; /* Ensures that code lines wrap and are easily readable */
  font-family: 'Courier New', Courier, monospace; /* Monospace font for code */
  color: #dcdcdc; /* Light grey text for high contrast and readability */
  overflow-x: auto; /* Adds a horizontal scrollbar if the code overflows */
  font-weight: bold; /* Makes the text bolder */
  font-size: 16px; /* Increases the font size for better readability */
}

em {
  font-style: normal; /* Removes the default italic style if desired */
  background-color: #eee; /* Light grey background to highlight the text */
  border-radius: 3px; /* Adds rounded corners for a subtle pill effect */
  padding: 2px 4px; /* Adds a little space around the text */
  font-weight: bold; /* Makes the text bolder */
  color: #333; /* Darker text for contrast */
  font-family: 'Courier New', Courier, monospace; /* Changes font to monospace for command-like appearance */
}

.brands-section {
  z-index: -1;
}

/* Style for the blockquote */
blockquote {
  font-family: inherit;
  font-size: 1.5em; /* Larger font size for the quote */
  color: #555; /* Dark grey color for the text */
  background-color: #f9f9f9; /* Light grey background */
  border-left: 5px solid #ccc; /* Solid left border */
  margin: 1.5em 10px; /* Spacing around the quote */
  padding: 0.5em 40px; /* Padding inside the quote */
  quotes: "“" "”" "‘" "’"; /* Defines the quotation marks to use */
}

/* Style for the cite element */
cite {
  display: block; /* Makes cite a block to ensure it appears on a new line */
  text-align: right; /* Aligns the author to the right */
  color: #999; /* Light grey color for the author */
  margin-top: 10px; /* Space between the quote and author */
  font-style: italic; /* Italic font style for the author */
  font-size: 0.8em; /* Smaller font size for the author */
  font-weight: normal; /* Normal font weight for the author */
}

/* Adding a fancy quotation mark to the left */
blockquote:before {
  content: open-quote; /* Open quote */
  font-size: 4em; /* Large font size for the quote mark */
  line-height: 0.1em; /* Adjust line height for positioning */
  margin-right: 0.25em; /* Space between quote mark and text */
  vertical-align: -0.4em; /* Aligns with the text correctly */
  color: #ccc; /* Color of the quote mark */
  font-family: "Times New Roman", Times, serif; /* Stylish font family for the quote mark */
}

/* Adjust the bottom quote mark if needed */
blockquote:after {
  content: close-quote; /* Close quote */
  font-size: 4em; /* Large font size for the quote mark */
  line-height: 0.1em; /* Adjust line height for positioning */
  vertical-align: -0.4em; /* Aligns with the text correctly */
  color: #ccc; /* Color of the quote mark */
  opacity: 0; /* Makes the bottom quote invisible */
}
