/* AwareCommunication v7 — FINAL CASCADE LAYER
   Loaded after the Awareverse footer so site-wide light-theme rules cannot
   recolour the notebook. Keep notebook content as dark ink on light paper. */

#content.avc-wrap .avc-book .avc-page {
  color:#2b241f !important;
  text-shadow:none !important;
}

#content.avc-wrap .avc-book .avc-page :where(p,li,label,span,div,legend) {
  color:#2b241f !important;
  text-shadow:none !important;
}

#content.avc-wrap .avc-book .avc-page :where(h2,h3,h4,strong) {
  color:#33261f !important;
  text-shadow:none !important;
}

#content.avc-wrap .avc-book .avc-page h2 {
  color:#382b23 !important;
  border-bottom-color:#514536 !important;
}

#content.avc-wrap .avc-book .avc-page h3,
#content.avc-wrap .avc-book .avc-page .avc-quote {
  color:#49372e !important;
}

#content.avc-wrap .avc-book .avc-page .avc-intro {
  color:#2b241f !important;
  font-weight:600 !important;
}

#content.avc-wrap .avc-book .avc-page .avc-why {
  background:#fffaf0 !important;
  border-left:6px solid #7354a6 !important;
  color:#2b241f !important;
  box-shadow:0 3px 9px rgba(0,0,0,.10) !important;
}
#content.avc-wrap .avc-book .avc-page .avc-why strong { color:#563b87 !important; }
#content.avc-wrap .avc-book .avc-page .avc-why p { color:#2b241f !important; }

#content.avc-wrap .avc-book .avc-page .avc-note {
  background:#f2dfb4 !important;
  border-color:#c8ae7b !important;
  color:#2b241f !important;
}
#content.avc-wrap .avc-book .avc-page .avc-note p,
#content.avc-wrap .avc-book .avc-page .avc-note strong { color:#2b241f !important; }

#content.avc-wrap .avc-book .avc-page .avc-note.blue {
  background:#cfe5ec !important;
  border-color:#9fbfc9 !important;
}
#content.avc-wrap .avc-book .avc-page .avc-note.blue strong { color:#183f4c !important; }
#content.avc-wrap .avc-book .avc-page .avc-note.blue p { color:#203b43 !important; }

#content.avc-wrap .avc-book .avc-page .avc-note.pink {
  background:#efc9c6 !important;
  border-color:#d7a5a2 !important;
}
#content.avc-wrap .avc-book .avc-page .avc-note.pink strong { color:#6a2935 !important; }
#content.avc-wrap .avc-book .avc-page .avc-note.pink p { color:#4d2930 !important; }

#content.avc-wrap .avc-book .avc-page .avc-takeaway {
  background:#e1efd9 !important;
  border:1px solid #9ebf94 !important;
  border-left:6px solid #4e7c4a !important;
  color:#243326 !important;
}
#content.avc-wrap .avc-book .avc-page .avc-takeaway strong { color:#28502d !important; }
#content.avc-wrap .avc-book .avc-page .avc-takeaway p { color:#243326 !important; }

#content.avc-wrap .avc-book .avc-page :where(.avc-choice,.avc-action,.avc-mini) {
  color:#2b241f !important;
  background:#fff9eb !important;
  border-color:#806b50 !important;
  text-shadow:none !important;
  opacity:1 !important;
}
#content.avc-wrap .avc-book .avc-page :where(.avc-choice,.avc-action,.avc-mini):hover,
#content.avc-wrap .avc-book .avc-page :where(.avc-choice,.avc-action,.avc-mini):focus-visible {
  color:#211a16 !important;
  background:#fffdf8 !important;
}

#content.avc-wrap .avc-book .avc-page :where(.avc-feedback,.avc-result,.avc-task,.avc-task legend,.avc-sourcebox) {
  color:#332e29 !important;
  text-shadow:none !important;
}
#content.avc-wrap .avc-book .avc-page .avc-sourcebox strong { color:#514033 !important; }
#content.avc-wrap .avc-book .avc-page .avc-sourcebox a { color:#51358c !important; }

/* Elements intentionally on dark wood remain light. */
#content.avc-wrap .avc-tabs .avc-tab { color:#fff7ec !important; text-shadow:none !important; }
#content.avc-wrap .avc-tabs .avc-tab.active { color:#39251d !important; }
#content.avc-wrap .avc-controls .avc-btn { color:#fff !important; text-shadow:none !important; }

/* v8: Awareverse theme can use -webkit-text-fill-color independently of color.
   Force actual ink inside the notebook as well as the CSS color property. */
#content.avc-wrap .avc-book .avc-page,
#content.avc-wrap .avc-book .avc-page p,
#content.avc-wrap .avc-book .avc-page li,
#content.avc-wrap .avc-book .avc-page label,
#content.avc-wrap .avc-book .avc-page span,
#content.avc-wrap .avc-book .avc-page div,
#content.avc-wrap .avc-book .avc-page strong,
#content.avc-wrap .avc-book .avc-page h2,
#content.avc-wrap .avc-book .avc-page h3,
#content.avc-wrap .avc-book .avc-page h4,
#content.avc-wrap .avc-book .avc-page button {
  -webkit-text-fill-color:#2b241f !important;
}
#content.avc-wrap .avc-book .avc-page h2 { -webkit-text-fill-color:#382b23 !important; }
#content.avc-wrap .avc-book .avc-page h3,
#content.avc-wrap .avc-book .avc-page .avc-quote { -webkit-text-fill-color:#49372e !important; }
#content.avc-wrap .avc-book .avc-page .avc-why strong { -webkit-text-fill-color:#563b87 !important; }
#content.avc-wrap .avc-book .avc-page .avc-note.blue strong { -webkit-text-fill-color:#183f4c !important; }
#content.avc-wrap .avc-book .avc-page .avc-note.blue p { -webkit-text-fill-color:#203b43 !important; }
#content.avc-wrap .avc-book .avc-page .avc-note.pink strong { -webkit-text-fill-color:#6a2935 !important; }
#content.avc-wrap .avc-book .avc-page .avc-note.pink p { -webkit-text-fill-color:#4d2930 !important; }
#content.avc-wrap .avc-book .avc-page .avc-takeaway,
#content.avc-wrap .avc-book .avc-page .avc-takeaway p { -webkit-text-fill-color:#243326 !important; }
#content.avc-wrap .avc-book .avc-page .avc-takeaway strong { -webkit-text-fill-color:#28502d !important; }
#content.avc-wrap .avc-book .avc-page .avc-sourcebox,
#content.avc-wrap .avc-book .avc-page .avc-sourcebox strong { -webkit-text-fill-color:#514033 !important; }
#content.avc-wrap .avc-book .avc-page .avc-sourcebox a,
#content.avc-wrap .avc-book .avc-page a { -webkit-text-fill-color:#51358c !important; }
#content.avc-wrap .avc-tabs .avc-tab { -webkit-text-fill-color:#fff7ec !important; }
#content.avc-wrap .avc-tabs .avc-tab.active { -webkit-text-fill-color:#39251d !important; }
#content.avc-wrap .avc-controls .avc-btn { -webkit-text-fill-color:#fff !important; }

/* v9: museum/notebook visual expansion */
#content.avc-wrap .avc-history-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:14px 0 8px!important}
#content.avc-wrap .avc-history-grid figure,#content.avc-wrap .avc-real-writing figure{margin:0!important;background:#fff8e8!important;border:1px solid #c7ab79!important;border-radius:9px!important;overflow:hidden!important;box-shadow:0 3px 8px rgba(63,42,24,.14)!important}
#content.avc-wrap .avc-history-grid img,#content.avc-wrap .avc-real-writing img{display:block!important;width:100%!important;height:150px!important;object-fit:cover!important;background:#d9c29a!important;filter:sepia(.12) saturate(.9)!important}
#content.avc-wrap .avc-history-grid figcaption,#content.avc-wrap .avc-real-writing figcaption{display:block!important;padding:9px 10px 11px!important;color:#2b241f!important;-webkit-text-fill-color:#2b241f!important;font-size:.86rem!important;line-height:1.35!important}
#content.avc-wrap .avc-history-grid figcaption strong,#content.avc-wrap .avc-real-writing figcaption strong{display:block!important;margin-bottom:3px!important;color:#30221b!important;-webkit-text-fill-color:#30221b!important;font-size:.95rem!important}
#content.avc-wrap .avc-history-grid figcaption span,#content.avc-wrap .avc-real-writing figcaption span{display:block!important;color:#493a31!important;-webkit-text-fill-color:#493a31!important}
#content.avc-wrap .avc-credit{font-size:.76rem!important;color:#6d5a4b!important;-webkit-text-fill-color:#6d5a4b!important;margin:6px 0 0!important}
#content.avc-wrap .avc-real-writing{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;margin:15px 0!important}
#content.avc-wrap .avc-real-writing img{height:210px!important}
#content.avc-wrap .avc-page h3{margin-top:14px!important;padding-bottom:4px!important;border-bottom:1px solid rgba(112,79,47,.22)!important}
#content.avc-wrap .avc-book{background:linear-gradient(90deg,#f6e8c8 0,#fff8e7 48%,#ead7b0 50%,#fff9e9 52%,#f6e8c8 100%)!important;border:3px solid #8a552f!important;box-shadow:0 14px 34px rgba(0,0,0,.35),inset 0 0 0 2px rgba(255,255,255,.35)!important}
#content.avc-wrap .avc-page{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,rgba(111,91,63,.08) 32px)!important}
@media(max-width:900px){#content.avc-wrap .avc-history-grid{grid-template-columns:1fr!important}#content.avc-wrap .avc-history-grid img{height:210px!important}#content.avc-wrap .avc-real-writing{grid-template-columns:1fr!important}}

/* v10 local historical illustration */
#content.avc-wrap .avc-local-history{margin:14px 0 18px;background:#f5e5bf;border:1px solid #b79561;border-radius:12px;overflow:hidden;box-shadow:0 5px 14px rgba(55,34,18,.16)}
#content.avc-wrap .avc-local-history img{display:block;width:100%;height:auto;max-height:470px;object-fit:cover;object-position:center top;background:#d8bd8c}
#content.avc-wrap .avc-local-history figcaption{display:grid;gap:4px;padding:10px 12px;color:#2b241f!important;-webkit-text-fill-color:#2b241f!important}
#content.avc-wrap .avc-local-history figcaption strong,#content.avc-wrap .avc-local-history figcaption span{color:#2b241f!important;-webkit-text-fill-color:#2b241f!important}
#content.avc-wrap .avc-local-history-writing img{max-height:390px}
@media(max-width:760px){#content.avc-wrap .avc-local-history img{max-height:none}}

/* v12 image safety — loaded last so global Awareverse image rules cannot crop lesson art. */
#content.avc-wrap figure.avc-concept-image > img,
#content.avc-wrap .avc-image-pair figure.avc-concept-image > img{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:50% 50% !important;
  aspect-ratio:auto !important;
}
