/* Typography emphasis styling using brand colors */

/* Italic text - uses turquoise for vibrant emphasis */
em, i {
  color: #49A5B9; /* turquoise from brand palette */
  font-style: italic;
}

/* Bold text - uses sea-blue for strong emphasis */
strong, b {
  color: #003865; /* sea-blue from brand palette */
  font-weight: 700;
}

/* Bold + Italic combination - uses dark green for special emphasis */
strong em, strong i, b em, b i,
em strong, i strong, em b, i b {
  color: #546223; /* dark-green from brand palette */
  font-weight: 700;
  font-style: italic;
}

/* Blockquote styling with brand accent */
blockquote {
  background-color: #EFEEED; /* oatmeal from brand palette */
  border-left: 4px solid #49A5B9; /* turquoise accent */
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #10232E; /* midnight-blue for text */
}

blockquote p {
  margin: 0;
}

blockquote p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Fix navbar logo size - SVG needs explicit dimensions */
.navbar-logo {
  max-height: 40px !important;
  width: auto !important;
  height: 40px !important;
}

/* Category pill badges */
.listing-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.listing-category:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Unique colors for each category using brand palette */
/* Dark backgrounds use white text, lighter backgrounds use dark text for WCAG AA compliance */

/* Energy & Climate - turquoise (lighter) - uses dark text */
.listing-category[onclick*="RW5lcmd5JTIwJTI2JTIwQ2xpbWF0ZQ=="] {
  background-color: #49A5B9 !important;
  color: #10232E !important; /* midnight-blue for contrast */
}

/* Technology - sea-blue (dark) - uses white text */
.listing-category[onclick*="VGVjaG5vbG9neQ=="] {
  background-color: #003865 !important;
  color: #FFFFFF !important;
}

/* Finance & Markets - dark-green (dark) - uses white text */
.listing-category[onclick*="RmluYW5jZSUyMCUyNiUyME1hcmtldHM="] {
  background-color: #546223 !important;
  color: #FFFFFF !important;
}

/* Policy - capp-red (medium) - darkened for better contrast with white */
.listing-category[onclick*="UG9saWN5"] {
  background-color: #7D152C !important; /* darkened from #9F1B37 */
  color: #FFFFFF !important;
}

/* Strategy - midnight-blue (dark) - uses white text */
.listing-category[onclick*="U3RyYXRlZ3k="] {
  background-color: #10232E !important;
  color: #FFFFFF !important;
}

/* Reflections - dark-grey (medium) - darkened for better contrast */
.listing-category[onclick*="UmVmbGVjdGlvbnM="] {
  background-color: #5A5C5B !important; /* darkened from #707372 */
  color: #FFFFFF !important;
}

/* About page capabilities list styling - override jolla template */
.quarto-about-jolla #quarto-document-content ul {
  list-style: none;
  padding-left: 0;
  text-align: left !important;
}

.quarto-about-jolla #quarto-document-content ul li {
  margin-bottom: 0.75rem;
  text-align: left !important;
}

.quarto-about-jolla #quarto-document-content ul li strong {
  display: inline;
  margin-right: 0.5rem;
  font-weight: 600;
}

/* Landing page - hide default Quarto title block */
.page-layout-custom #title-block-header {
  display: none;
}

/* Landing page - compact responsive layout */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.landing-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.landing-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #003865;
}

.landing-hero p {
  font-size: 1.1rem;
  color: #707372;
  max-width: 800px;
  margin: 0 auto;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.landing-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.landing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.landing-card h3 a {
  text-decoration: none;
  color: #003865;
}

.landing-card p {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 0.5rem;
}

.landing-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #dee2e6;
  color: #707372;
}

.landing-footer .btn {
  margin: 0 0.5rem;
}

/* Mobile responsive - stack to 1 column on small screens */
@media (max-width: 768px) {
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .landing-hero h1 {
    font-size: 2rem;
  }

  .landing-hero p {
    font-size: 1rem;
  }

  .landing-container {
    padding: 1.5rem 1rem;
  }

  .landing-card {
    padding: 1.25rem;
  }
}

/* Tablet - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .landing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
