/* Key aphorism boxes, shared by both textbooks (EDCOR 310 and Econ 150).
   This file is identical in both repositories; change it in both, in matching pull requests.
   Each build copies it into the published assets folder and links it from every chapter.
   Chapters should not carry their own copies of these rules.
   The :has() test limits the box styles to Key aphorism cards, so other boxes that happen
   to use the .etb-aphorism class (the "How to Get the Most Out of This Book" pages) keep their own look. */
.etb-aphorism:has(> .etb-aphorism-label){margin:1.75rem 0;padding:1.1rem 1.5rem;border-top:2px solid #1a3a5c;border-bottom:2px solid #1a3a5c;text-align:center;}
.etb-aphorism-label{font-family:sans-serif;font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#1a3a5c;margin-bottom:.45rem;}
.etb-aphorism-line{font-family:Georgia,'Times New Roman',serif;font-size:21px;line-height:1.4;font-weight:700;color:#1a3a5c;margin:0 0 .25rem;}
.etb-aphorism-sub{font-family:sans-serif;font-size:13.5px;line-height:1.65;color:#4a5568;margin:.55rem auto 0;max-width:36rem;}
.etb-aphorism-sub a{color:#1a3a5c;}
.etb-aphorism-ol{text-align:left;max-width:34rem;margin:.6rem auto 0;padding-left:1.5rem;font-family:Georgia,'Times New Roman',serif;font-size:16.5px;line-height:1.55;font-weight:700;color:#1a3a5c;}
.etb-aphorism-ol li{margin:.4rem 0;}
/* Cards often sit inside body text, where rules such as ".etb-body p" and ".etb-body p:last-child" outrank the
   single-class rules above and push the source line off-center. These repeat the card spacing with enough weight to win. */
div.etb-aphorism > p.etb-aphorism-line{margin:0 0 .25rem;}
div.etb-aphorism > p.etb-aphorism-sub{margin:.55rem auto 0;}
div.etb-aphorism > ol.etb-aphorism-ol{margin:.6rem auto 0;}
/* "About the Aphorism": a collapsed box for a line's source or fuller meaning, placed nearby but not stacked on the card. */
details.etb-about-aphorism{background:#f4f7fa;border:1px solid #c7d7e2;border-left:4px solid #2a7a4f;border-radius:0 8px 8px 0;margin:1.5rem 0;}
details.etb-about-aphorism>summary{padding:.8rem 1rem;font-family:sans-serif;font-size:13px;font-weight:700;color:#1a3a5c;cursor:pointer;}
details.etb-about-aphorism[open]>summary{border-bottom:1px solid #c7d7e2;}
.etb-about-aphorism-body{padding:.8rem 1rem 1rem;font-family:sans-serif;font-size:13px;line-height:1.65;color:#293b4b;}
.etb-about-aphorism-body p{margin:0 0 .65rem;}
.etb-about-aphorism-body p:last-child{margin:0;}
.etb-about-aphorism-body a{color:#1a3a5c;}
/* "Learn more": a line's source or fuller meaning, folded inside the card itself so the two can't drift apart.
   Adopted November 27, 2026 as the rule for new and revised chapters. The older separate "About the Aphorism"
   box above stays styled until each chapter is converted during its own revision. */
details.etb-aphorism-more{margin:.7rem auto 0;max-width:36rem;text-align:left;}
details.etb-aphorism-more>summary{display:block;width:max-content;margin:0 auto;list-style:none;cursor:pointer;font-family:sans-serif;font-size:12px;font-weight:700;letter-spacing:.04em;color:#2a7a4f;padding:.2rem .45rem;border-radius:4px;}
details.etb-aphorism-more>summary::-webkit-details-marker{display:none;}
details.etb-aphorism-more>summary::after{content:" \25B8";}
details.etb-aphorism-more[open]>summary::after{content:" \25B4";}
details.etb-aphorism-more>summary:hover{text-decoration:underline;}
.etb-aphorism-more-body{margin-top:.5rem;padding:.75rem 1rem;background:#f4f7fa;border-left:3px solid #2a7a4f;border-radius:0 6px 6px 0;font-family:sans-serif;font-size:13px;line-height:1.65;color:#293b4b;}
div.etb-aphorism .etb-aphorism-more-body p{margin:0 0 .6rem;}
div.etb-aphorism .etb-aphorism-more-body p:last-child{margin:0;}
.etb-aphorism-more-body a{color:#1a3a5c;}
