/* Shared forum cards (including the homepage) and scoped topic presentation. */
.cpa-site .cpa-forum-intro { color: var(--cpa-muted, #b1bdca); line-height: 1.65; margin: 0 0 28px; max-width: 70ch; }
.cpa-site .cpa-forum-section + .cpa-forum-section { margin-top: 32px; }
.cpa-site .cpa-forum-section > h2 { margin: 0 0 14px; font-size: 19px; line-height: 1.4; }
.cpa-site .cpa-forum-list { display: grid; gap: 10px; }
.cpa-site .cpa-forum-card { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 20px; align-items: center; padding: 20px; border: 1px solid #364453; border-radius: 10px; background: #17212c; }
.cpa-site .cpa-forum-card-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.cpa-site .cpa-forum-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid #574432; background: #2d2925; color: #ffad49; font-size: 18px; }
.cpa-site .cpa-forum-thumb { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; object-fit: cover; }
.cpa-site .cpa-forum-card-main > div { min-width: 0; }
.cpa-site .cpa-forum-card h3 { margin: 0 0 7px; font-size: 17px; line-height: 1.4; }
.cpa-site .cpa-forum-card h3 > a, .cpa-site .cpa-forum-topic-row h3 > a { color: #f5f5f5; }
.cpa-site .cpa-forum-card h3 > a:hover, .cpa-site .cpa-forum-topic-row h3 > a:hover { color: #ffad49; }
.cpa-site .cpa-forum-card p { margin: 0; font-size: 13px; line-height: 1.6; color: #b8c3cf; }
.cpa-site .cpa-forum-latest { min-width: 0; padding-left: 18px; border-left: 1px solid #364453; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.cpa-site .cpa-forum-latest > a { display: block; color: #d9e1e9; font-weight: 600; margin-bottom: 5px; }
.cpa-site .cpa-forum-latest p, .cpa-site .cpa-forum-latest > span { color: #b1bdca; font-size: 12px; }
.cpa-site .cpa-forum-latest p a { color: #b1bdca; }
.cpa-site #forum_topics { row-gap: 10px; }
.cpa-site .cpa-forum-topics-heading > h2 { margin: 8px 0 12px; font-size: 18px; }
.cpa-site .cpa-forum-topic-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 130px; width: calc(100% - 30px); margin: 0 15px; align-items: start; gap: 14px; padding: 18px; background: #17212c; border: 1px solid #364453; border-radius: 10px; }
.cpa-site .cpa-forum-topic-row h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.cpa-site .cpa-forum-topic-row h3 > i { font-size: 12px; margin-right: 5px; color: #b1bdca; }
.cpa-site .cpa-forum-topic-summary { min-width: 0; overflow-wrap: anywhere; }
.cpa-site .cpa-forum-topic-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; line-height: 1.5; color: #b1bdca; margin: 0; }
.cpa-site .cpa-forum-topic-meta a { color: #c5d2df; }
.cpa-site .cpa-forum-topic-last { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #b1bdca; line-height: 1.5; padding-left: 14px; border-left: 1px solid #364453; }
.cpa-site .cpa-forum-topic .topic-answers > div[id^="answer_"] { padding: 0 0 20px; margin-bottom: 24px; border-bottom: 1px solid #364453; min-width: 0; }
.cpa-site .cpa-forum-topic .topic-answers > div[id^="answer_"]:last-child { border-bottom: 0; margin-bottom: 0; }
.cpa-site .cpa-forum-topic .top-area { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #364453; font-size: 13px; }
.cpa-site .cpa-forum-topic .top-area .right-side > a { color: #b1bdca; }
.cpa-site .cpa-forum-topic .center-area { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 24px; }
.cpa-site .cpa-forum-topic .center-area > .left-side { min-width: 0; font-size: 12px; line-height: 1.6; color: #b1bdca; overflow-wrap: anywhere; }
.cpa-site .cpa-forum-topic .center-area > .left-side > p { margin: 0 0 6px; }
.cpa-site .cpa-forum-topic .center-area > .left-side > .cpa-forum-bot-label { color: #d5e1ec; font-weight: 600; margin-bottom: 14px; }
.cpa-site .cpa-forum-topic .center-area > .left-side > br { display: none; }
.cpa-site .cpa-forum-topic .center-area > .right-side { min-width: 0; overflow-wrap: anywhere; }
.cpa-site .cpa-forum-topic .with_code { font-size: 15px; line-height: 1.8; color: #dde5ed; }
.cpa-site .cpa-forum-topic .with_code > :first-child { margin-top: 0; }
.cpa-site .cpa-forum-topic .with_code p { margin-bottom: 18px; }
.cpa-site .cpa-forum-topic .with_code h3 { margin: 26px 0 12px; font-size: 20px; line-height: 1.45; color: #f5f5f5; }
.cpa-site .cpa-forum-topic .with_code ul, .cpa-site .cpa-forum-topic .with_code ol { padding-left: 24px; margin: 0 0 20px; }
.cpa-site .cpa-forum-topic .with_code li { margin: 8px 0; }
.cpa-site .cpa-forum-topic .with_code code { color: #ffd39d; background: #111923; padding: 3px 6px; border: 1px solid #364453; border-radius: 4px; white-space: normal; overflow-wrap: anywhere; }
.cpa-site .cpa-forum-topic .with_code img { max-width: 100%; height: auto; }
.cpa-site .cpa-forum-topic .with_code table { display: block; max-width: 100%; overflow-x: auto; }
.cpa-site .cpa-forum-topic .signature, .cpa-site .cpa-forum-topic .edited { color: #b1bdca; font-size: 12px; margin-top: 20px; border-top: 1px solid #364453; padding-top: 14px; }
.cpa-site .cpa-forum-topic .bottom-area { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cpa-site .cpa-forum-topic .disabled_input { height: auto; padding: 14px 18px; color: #b1bdca; }
.cpa-site .cpa-forum-topic .mce-panel { background: #17212c; border-color: #445365; }
.cpa-site .cpa-forum-topic .mce-btn, .cpa-site .cpa-forum-topic .mce-container, .cpa-site .cpa-forum-topic .mce-btn button { color: #dde5ed; }
.cpa-site .cpa-forum-topic .mce-btn { background: #253240; }
.cpa-site .cpa-forum-topic .mce-ico { color: #dde5ed; }
.cpa-site .cpa-forum-topic .mce-statusbar { color: #b1bdca; }
.cpa-site .cpa-forum-card a:focus-visible, .cpa-site .cpa-forum-topic-row a:focus-visible { outline: 2px solid #ffad49; outline-offset: 4px; border-radius: 2px; }
@media (max-width: 1199px) {
  .cpa-site .cpa-forum-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cpa-site .cpa-forum-latest { margin-left: 56px; padding-left: 0; border-left: 0; }
  .cpa-site .cpa-forum-topic-row { grid-template-columns: 36px minmax(0, 1fr); }
  .cpa-site .cpa-forum-topic-last { grid-column: 2; flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; }
  .cpa-site .cpa-forum-topic-row > .cpa-forum-icon { width: 36px; height: 36px; font-size: 15px; }
  .cpa-site .cpa-forum-topic .center-area { grid-template-columns: 172px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
  .cpa-site .cpa-forum-card { padding: 16px; }
  .cpa-site .cpa-forum-section > h2 { font-size: 18px; }
  .cpa-site .cpa-forum-card h3 { font-size: 16px; }
  .cpa-site .cpa-forum-topic .center-area { grid-template-columns: minmax(0, 1fr); gap: 18px; }



  .cpa-site .cpa-forum-topic .center-area > .clearfix { display: none; }
  .cpa-site .cpa-forum-topic .with_code { font-size: 14px; }
  .cpa-site .cpa-forum-topic .with_code h3 { font-size: 18px; }
}

/* Shared cards need their styles on the homepage as well as /forum. */
.cpa-site .cpa-forum-card {
  background: linear-gradient(135deg, #1c2835, #151e28);
  border-color: #3c4c5e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 5px 14px rgba(0,0,0,.12);
}
.cpa-site .cpa-forum-latest-label { display: block; color: #9faec0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.cpa-site .cpa-home .cpa-forum-section > h2 { font-size: 17px; line-height: 1.5; padding-bottom: 10px; border-bottom: 1px solid #3a4858; }
.cpa-site .cpa-home .cpa-forum-card { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 18px; }
.cpa-site .cpa-home .cpa-forum-card h3 { font-size: 16px; }
.cpa-site .cpa-home .cpa-forum-card h3 > a { color: #f1f5f9; }
.cpa-site .cpa-home .cpa-forum-latest { margin: 0 0 0 56px; border: 0; border-top: 1px solid #334253; padding: 12px 0 0; }
.cpa-site .cpa-home .cpa-forum-latest > a { color: #ffb55d; font-size: 13px; }
.cpa-site .cpa-home .cpa-forum-list { gap: 14px; }
.cpa-site .cpa-home .cpa-forum-section + .cpa-forum-section { margin-top: 28px; }

/* A bounded author card gives each message a clear author/content hierarchy. */
.cpa-site .cpa-forum-topic .center-area { align-items: start; }
.cpa-site .cpa-forum-topic .center-area > .cpa-forum-author {
  align-self: start;
  padding: 20px 14px 14px;
  border: 1px solid #405064;
  border-top: 3px solid #e49642;
  border-radius: 10px;
  background: linear-gradient(155deg, #253344 0%, #151f2b 80%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 16px rgba(0,0,0,.16);
  text-align: center;
}
.cpa-site .cpa-forum-topic .topic-answers > div[id^="answer_"] > .center-area > .cpa-forum-author > img {
  width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 14px; border: 1px solid #53657b; background: #101720;
}
.cpa-site .cpa-forum-topic .cpa-forum-author > .cpa-forum-author-name { display: block; margin-bottom: 10px; color: #f5f7fa; font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.cpa-site .cpa-forum-topic .cpa-forum-author > .cpa-forum-author-name:hover { color: #ffb55d; }
.cpa-site .cpa-forum-topic .center-area > .cpa-forum-author > .cpa-forum-author-role { display: inline-block; color: #d6e3ef; background: #1b2a3a; border: 1px solid #40536a; border-radius: 5px; padding: 4px 7px; margin: 0 0 18px; font-size: 11px; line-height: 1.5; }
.cpa-site .cpa-forum-topic .cpa-forum-author-stats { display: grid; gap: 0; margin: 0; padding: 0; text-align: left; }
.cpa-site .cpa-forum-topic .cpa-forum-author-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #344457; }
.cpa-site .cpa-forum-topic .cpa-forum-author-stats dt { margin: 0; color: #b9c6d6; font-size: 11px; font-weight: 400; }
.cpa-site .cpa-forum-topic .cpa-forum-author-stats dd { margin: 0; color: #e9eff6; font-size: 12px; font-weight: 600; }
.cpa-site .cpa-forum-topic .cpa-forum-post-label { color: #bcc9d8; font-size: 12px; font-weight: 600; }
.cpa-site .cpa-forum-topic .cpa-forum-author-name:focus-visible { outline: 2px solid #ffb55d; outline-offset: 4px; border-radius: 3px; }
@media (max-width: 767px) {
  .cpa-site .cpa-home .cpa-forum-card { padding: 15px; }
  .cpa-site .cpa-forum-topic .center-area > .cpa-forum-author { display: grid; grid-template-columns: 64px minmax(0,1fr); column-gap: 14px; row-gap: 6px; padding: 16px; text-align: left; }
  .cpa-site .cpa-forum-topic .topic-answers > div[id^="answer_"] > .center-area > .cpa-forum-author > img { grid-row: 1 / 3; width: 64px; height: 64px; margin: 0; }
  .cpa-site .cpa-forum-topic .cpa-forum-author > .cpa-forum-author-name { margin: 0; align-self: end; }
  .cpa-site .cpa-forum-topic .center-area > .cpa-forum-author > .cpa-forum-author-role { margin: 0; justify-self: start; align-self: start; }
  .cpa-site .cpa-forum-topic .cpa-forum-author-stats { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 8px; }
  .cpa-site .cpa-forum-topic .cpa-forum-author-stats > div { display: grid; gap: 4px; }
}
