/* The plaza does not load Home's global reset or the Legal footer stylesheet.
   Supply the missing page shell locally; do not change the Home teaser. */
body.novelight-page-community {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* The plaza alone adopts the ivory discovery-page language.
   The dark community teaser on Home remains unchanged. */
body.novelight-page-community,
body.novelight-page-community .community-page {
  background: #f7f4ed !important;
  color: #352719;
}
body.novelight-page-community .community-page {
  min-height: 70vh;
  padding: 42px 0 76px;
  font-size: 17px;
  line-height: 1.75;
}
body.novelight-page-community .community-page h1 {
  margin: 0 0 10px;
  color: #302214;
  font-size: clamp(32px, 3.5vw, 44px);
}
body.novelight-page-community .community-page .community-intro {
  color: #5d4b36;
  font-size: 18px;
  line-height: 1.75;
}
body.novelight-page-community .community-page :is(h2, h3) { color: #382718; }
body.novelight-page-community .community-tabs { gap: 12px; margin: 28px 0 34px; }
body.novelight-page-community .community-tab {
  padding: 12px 20px;
  background: #fffdf8;
  border-color: #bf9a60;
  color: #513817;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
body.novelight-page-community .community-tab[aria-current=page] {
  background: #d2a555;
  color: #261904;
  border-color: #94621d;
}
body.novelight-page-community .community-filters button {
  padding: 10px 16px;
  border-color: #ad8852;
  background: #fffdf8;
  color: #513718;
  font-size: 16px;
}
body.novelight-page-community .community-filters button[aria-pressed=true] { background: #ead2a5; }
/* Only ivory notification/board surfaces belong in this group. A card in
   :is() with an ID selector inherits ID specificity and defeats later
   .community-card navy rules, even when declared after this block. */
body.novelight-page-community :is(#communityNotifications, .board-compose, .board-detail, .board-thread-card, .board-reply) {
  background: #fffdf8;
  color: #352719;
  border: 1px solid #d8c4a1;
  box-shadow: 0 4px 16px rgba(65,46,22,.05);
}
/* Card appearance, text sizes and controls are defined only in
   novelight-community-card.css (loaded by Home and the plaza). */
body.novelight-page-community :is(.community-state, .community-filter-status, .community-notice-feedback) {
  color: #5a4730;
  font-size: 16px;
}
body.novelight-page-community .community-state { background: #fffdf8; border-color: #dcc7a3; }
body.novelight-page-community :is(.community-notice-count, .community-notice-list li, .board-heading p, .board-meta) {
  color: #65513a;
  font-size: 15px;
}
body.novelight-page-community :is(.community-notice-unread, .community-notice-read) {
  background: #f7e9cf;
  opacity: 1;
}
body.novelight-page-community .community-notice-list a { color: #765017; }
body.novelight-page-community :is(.community-notice-mark, .community-notice-all-read, .community-notice-filter) {
  background: #f6ead5;
  color: #553914;
  border-color: #ba975d;
  font-size: 15px;
}
body.novelight-page-community :is(.board-compose input:not([type=checkbox]), .board-compose textarea, .board-compose select, .board-filter-label select, .board-reply-form textarea) {
  background: #fff;
  color: #30251a;
  border: 1px solid #ad9775;
  border-radius: 8px;
  font-size: 17px;
}
body.novelight-page-community .community-page .community-refresh,
body.novelight-page-community #communityBoardInfo .community-refresh {
  background: #c99945;
  border: 1px solid #a87521;
  color: #261904;
  font-size: 16px;
}
body.novelight-page-community .board-heading h2 { font-size: 25px; }
body.novelight-page-community :is(.board-compose label, .board-filter-label, .board-reply-form label, .board-detail-body) {
  color: #3c3023;
  font-size: 17px;
}
body.novelight-page-community .board-secondary {
  background: #f9f0df;
  color: #654217;
  border-color: #ba9256;
  font-size: 16px;
}
body.novelight-page-community .board-thread-card h3 { color: #352414; font-size: 20px; }
body.novelight-page-community .board-thread-card p { color: #493b2c; font-size: 17px; }
body.novelight-page-community .board-category { color: #83551a; font-size: 15px; }
body.novelight-page-community .board-reply p { color: #453627; font-size: 17px; }
body.novelight-page-community .board-reply .board-secondary { font-size: 15px; }
@media(max-width:640px) {
  body.novelight-page-community .community-page { padding: 28px 0 56px; font-size: 16px; }
  body.novelight-page-community .community-page h1 { font-size: 30px; }
  body.novelight-page-community .community-page .community-intro { font-size: 16px; }
}

/* Compact shared help icon beside the board tab, not beside the page title. */
body.novelight-page-community .community-tabs .nl-help-info.community-help-inline {
  display: inline-grid;
  place-items: center;
  align-self: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0 0 0 6px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}
@media (max-width: 700px) {
  body.novelight-page-community .community-tabs .nl-help-info.community-help-inline {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    margin-left: 4px;
    font-size: 14px;
  }
}

/* The timeline and board share one footer. Keep links inside the same centered
   content width and allow them to wrap instead of collapsing at the left edge. */
body.novelight-page-community .site-footer {
  border-top: 1px solid rgba(234, 196, 106, 0.16);
  background: #081426;
  color: #aeb7c4;
}
body.novelight-page-community .site-footer .footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 14px;
  line-height: 1.7;
}
body.novelight-page-community .site-footer .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}
body.novelight-page-community .site-footer a {
  color: #c9d0d9;
  text-decoration: none;
}
body.novelight-page-community .site-footer a:is(:hover, :focus-visible) {
  color: #eac46a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  body.novelight-page-community .site-footer .footer-inner {
    width: calc(100% - 28px);
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  body.novelight-page-community .site-footer .footer-links {
    gap: 8px 16px;
  }
}
