/* Only the opted-in blog routes receive ddq-browsing. Keep the existing palette. */
.ddq-browsing :is(.ddq-latest-posts, .ddq-date-archives) {
  box-sizing: border-box;
  min-width: 0;
  color: #193a37;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.ddq-browsing .ddq-latest-posts { margin: 2.5rem 0; }
.ddq-browsing .ddq-latest-posts > h2 {
  margin: 0 0 1.25rem;
  color: #193a37;
  font-size: 1.5rem;
  line-height: 1.5;
}
.ddq-browsing .ddq-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.ddq-browsing .ddq-latest-card {
  min-width: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #dbe2d6;
  border-radius: 8px;
}
.ddq-browsing .ddq-latest-card .ddq-post-date { color: #5f706a; font-size: 1rem; }
.ddq-browsing .ddq-latest-card h3 { margin: .5rem 0; font-size: 1.125rem; line-height: 1.7; }
.ddq-browsing .ddq-latest-card .ddq-post-excerpt { margin: .65rem 0 0; font-size: 1rem; line-height: 1.8; }
.ddq-browsing :is(.ddq-latest-card h3, .ddq-latest-more) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #195b4d;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.ddq-browsing .ddq-latest-more { margin: 1rem 0 0; }
.ddq-browsing #secondary .ddq-date-archives {
  margin: 0 0 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #dbe2d6;
  border-radius: 8px;
}
.ddq-browsing #secondary .ddq-date-archives h2 {
  margin: 0 0 .75rem;
  color: #193a37;
  font-size: 1.125rem;
  line-height: 1.6;
}
.ddq-browsing .ddq-archive-month { border-top: 1px solid #dbe2d6; }
.ddq-browsing .ddq-archive-month summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: .55rem 0;
  color: #195b4d;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
  cursor: pointer;
}
.ddq-browsing .ddq-archive-count { white-space: nowrap; font-weight: 400; }
.ddq-browsing #secondary .ddq-date-archives a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .25rem;
  color: #195b4d;
  font-size: 1rem;
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.ddq-browsing #secondary .ddq-archive-days { margin: .25rem 0 .75rem; padding: 0; list-style: none; }
.ddq-browsing #secondary .ddq-archive-days li { margin: 0; padding: 0; }
.ddq-browsing :is(.ddq-latest-posts, .ddq-date-archives) :is(a, summary):focus-visible {
  outline: 3px solid #9b650b;
  outline-offset: 3px;
  border-radius: 2px;
}

/* A formerly narrow, single-column container needs room for the new sidebar. */
@media (min-width: 922px) {
  .ddq-browsing .ddv2 .hero h1 { font-size: clamp(26px, 2.5vw, 36px); }
  .ddq-browsing.ast-right-sidebar #content > .ast-container {
    width: 100%;
    max-width: 1240px;
  }
  .ddq-browsing.ast-right-sidebar #primary {
    box-sizing: border-box;
    min-width: 0;
    width: calc(100% - 296px);
    padding-right: 32px;
  }
  .ddq-browsing.ast-right-sidebar #secondary {
    box-sizing: border-box;
    min-width: 0;
    width: 296px;
    padding-left: 24px;
  }
}
@media (max-width: 921px) {
  .ddq-browsing.ast-right-sidebar #primary,
  .ddq-browsing.ast-right-sidebar #secondary { width: 100%; min-width: 0; }
  .ddq-browsing.ast-right-sidebar #secondary { margin-top: 1.5rem; padding: 1.5rem 0 0; }
}
@media (max-width: 760px) {
  .ddq-browsing .ddq-latest-grid { grid-template-columns: minmax(0, 1fr); }
  .ddq-browsing .ddq-latest-card { padding: 1rem; }
}
@media print {
  .ddq-browsing #secondary .ddq-date-archives { display: none; }
}
