/* New Core Curriculum resource announcement and its featured coverage list. */
#o2c-announcements .cc-feature-collections {
  position: relative;
  z-index: 3;
  margin-top: 12px;
  border-top: 1px solid #dce5df;
  padding-top: 10px;
}
#o2c-announcements .cc-feature-collections > summary {
  cursor: pointer;
  color: #22695f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
#o2c-announcements .cc-feature-collections h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #294c42;
}
#o2c-announcements .cc-feature-collections ul {
  margin: 0;
  padding-left: 18px;
  color: #456456;
  font-size: 13px;
  line-height: 1.65;
}
#o2c-announcements .cc-launch .cc-coverage {
  display: grid;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
#o2c-announcements .cc-launch .cc-coverage > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #f7faf8;
  color: #40534a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
#o2c-announcements .cc-launch .cc-coverage > li > span { min-width: 0; }
#o2c-announcements .cc-launch .cc-coverage strong {
  display: block;
  min-width: 78px;
  box-sizing: border-box;
  padding: 5px 8px;
  border-radius: 6px;
  background: #e9f2ed;
  white-space: nowrap;
  color: #22695f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#o2c-announcements .cc-launch .cc-collection {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  margin: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
#o2c-announcements .cc-launch .cc-collection:first-of-type { margin-top: 18px; }
#o2c-announcements .cc-launch .cc-collection > summary {
  display: grid;
  width: 100%;
  max-width: 560px;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #fff;
  color: #193e34;
  cursor: pointer;
  list-style: none;
  text-align: left;
}
#o2c-announcements .cc-launch .cc-collection > summary > span:first-child { min-width: 0; }
#o2c-announcements .cc-collection > summary::-webkit-details-marker { display: none; }
#o2c-announcements .cc-launch .cc-collection > summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: #edf5f0;
  color: #297d77;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
#o2c-announcements .cc-launch .cc-collection > summary:hover { background: #f7faf8; }
#o2c-announcements .cc-launch .cc-collection[open] { margin-bottom: 16px; }
#o2c-announcements .cc-launch .cc-collection[open] > summary { background: #f2f8f5; border-color: #b7d1c4; }
#o2c-announcements .cc-launch .cc-collection[open] > summary::after { content: '−'; }
/* Keep the picker compact and stable while the PDF gets its own larger surface. */
#o2c-announcements .cc-launch .cc-collection > .cc-pdf-viewer {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #fff;
}
#o2c-announcements .cc-launch .cc-collection-name { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; }
#o2c-announcements .cc-launch .cc-collection-lesson { display: block; margin-top: 3px; color: #68766f; font-size: 13px; line-height: 1.45; }
#o2c-announcements .cc-launch .cc-collection-count {
  margin: 0;
  min-width: 78px;
  box-sizing: border-box;
  padding: 5px 8px;
  border-radius: 6px;
  background: #edf4f0;
  white-space: nowrap;
  color: #52796d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#o2c-announcements .cc-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
}
#o2c-announcements .cc-resource-grid .o2c-gallery {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  background: transparent;
}
#o2c-announcements .cc-resource-grid .o2c-gallery-grid { display: block; margin: 0; padding: 0; }
#o2c-announcements .cc-resource-grid .o2c-gallery-item { margin: 0; }
#o2c-announcements .cc-resource-grid .o2c-gallery-link { display: block; border: 1px solid #dce5df; border-radius: 10px; overflow: hidden; background: #f6f8f7; }
#o2c-announcements .cc-resource-grid .o2c-gallery-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  padding: 12px;
  aspect-ratio: auto;
  background: #f4f7f5;
}
#o2c-announcements .cc-resource-grid .o2c-gallery-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
#o2c-announcements .cc-resource-grid figcaption { margin-top: 10px; color: #193e34; font-size: 17px; font-weight: 700; }
#o2c-announcements .cc-pdf-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #22695f; font-size: 14px; font-weight: 700; }
#o2c-announcements .cc-pdf-link svg { width: 16px; height: 16px; }
#o2c-announcements .cc-collection > summary:focus-visible,
#o2c-announcements .cc-feature-collections > summary:focus-visible { outline: 2px solid #297d77; outline-offset: -4px; border-radius: 8px; }

#o2c-announcements #o2c-feed .cc-feed-previews {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
  width: min(100%, 680px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 16px;
  background: #f1f6f3;
  border: 1px solid #dce5df;
  border-radius: 12px;
}
#o2c-announcements #o2c-feed .cc-feed-previews figure { margin: 0; min-width: 0; }
#o2c-announcements #o2c-feed .cc-feed-previews img { width: 100% !important; height: 240px !important; max-height: none !important; object-fit: contain !important; }
#o2c-announcements #o2c-feed .cc-feed-previews figcaption { margin-top: 8px; color: #456456; font-size: 13px; line-height: 1.5; text-align: center; }

@media (max-width: 680px) {
  #o2c-announcements .cc-launch .cc-coverage { grid-template-columns: 1fr; grid-auto-rows: auto; }
  #o2c-announcements .cc-launch .cc-coverage > li { min-height: 62px; padding: 12px 14px; }
  #o2c-announcements .cc-resource-grid { grid-template-columns: 1fr; padding: 16px; }
  #o2c-announcements .cc-resource-grid .o2c-gallery-preview { height: min(430px, 100vw); }
  #o2c-announcements .cc-launch .cc-collection > summary { grid-template-columns: minmax(0, 1fr) 28px; padding: 14px; gap: 10px; }
  #o2c-announcements .cc-launch .cc-collection-name { font-size: 16px; }
  #o2c-announcements .cc-launch .cc-collection-count { display: none; }
  #o2c-announcements #o2c-feed .cc-feed-previews { gap: 10px; padding: 10px; }
  #o2c-announcements #o2c-feed .cc-feed-previews img { height: 180px !important; }
}
