/* ABR Community Board — scoped styles */



.abr-board {

  --abr-bg: #f4f7fb;

  --abr-card: #ffffff;

  --abr-text: #152033;

  --abr-muted: #5f6f86;

  --abr-accent: #2563eb;

  --abr-accent-hover: #1d4ed8;

  --abr-accent-soft: #e8f0fe;

  --abr-border: #dde4ee;

  --abr-radius: 12px;

  --abr-shadow: 0 1px 3px rgba(21, 32, 51, 0.06);

  --abr-shadow-hover: 0 8px 24px rgba(37, 99, 235, 0.1);

  color: var(--abr-text);

  font-family: inherit;

  line-height: 1.6;

  max-width: 960px;

  margin: 0 auto;

  padding: 0 1rem 3rem;

}



/* Hero */

.abr-board__hero {

  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);

  border: 1px solid var(--abr-border);

  border-radius: calc(var(--abr-radius) + 4px);

  margin-bottom: 1.5rem;

  padding: 1.5rem 1.35rem 1.25rem;

}



.abr-board__hero-inner {

  align-items: flex-start;

  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  justify-content: space-between;

  margin-bottom: 1.25rem;

}



.abr-board__eyebrow {

  color: var(--abr-accent);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  margin: 0 0 0.35rem;

  text-transform: uppercase;

}



.abr-board__title {

  font-size: clamp(1.5rem, 3.5vw, 2rem);

  line-height: 1.3;

  margin: 0 0 0.45rem;

}



.abr-board__lead {

  color: var(--abr-muted);

  font-size: 0.9375rem;

  margin: 0;

  max-width: 520px;

}



.abr-board__lead a {

  color: var(--abr-accent);

  font-weight: 600;

  text-decoration: underline;

  text-underline-offset: 2px;

}



.abr-board__hero-cta {

  flex-shrink: 0;

  white-space: nowrap;

}



.abr-board__guide {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem 1rem;

  list-style: none;

  margin: 0;

  padding: 0.875rem 0 0;

  border-top: 1px solid rgba(221, 228, 238, 0.8);

}



.abr-board__guide li {

  align-items: center;

  color: var(--abr-muted);

  display: flex;

  font-size: 0.8125rem;

  gap: 0.45rem;

}



.abr-board__guide-num {

  align-items: center;

  background: var(--abr-accent);

  border-radius: 50%;

  color: #fff;

  display: inline-flex;

  flex-shrink: 0;

  font-size: 0.6875rem;

  font-weight: 700;

  height: 1.35rem;

  justify-content: center;

  width: 1.35rem;

}



/* Toolbar */

.abr-board__toolbar {

  background: var(--abr-card);

  border: 1px solid var(--abr-border);

  border-radius: var(--abr-radius);

  box-shadow: var(--abr-shadow);

  display: flex;

  flex-direction: column;

  gap: 1rem;

  margin-bottom: 0.75rem;

  padding: 1rem 1.1rem;

}



.abr-board__toolbar-label {

  color: var(--abr-muted);

  display: block;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.04em;

  margin-bottom: 0.5rem;

  text-transform: uppercase;

}



.abr-board__cats {

  display: flex;

  flex-wrap: wrap;

  gap: 0.4rem;

}



.abr-board__cat {

  background: #f8fafc;

  border: 1px solid var(--abr-border);

  border-radius: 8px;

  color: var(--abr-muted);

  cursor: pointer;

  font-size: 0.8125rem;

  font-weight: 600;

  padding: 0.4rem 0.75rem;

  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;

}



.abr-board__cat:hover {

  background: var(--abr-accent-soft);

  border-color: #93c5fd;

  color: var(--abr-accent);

}



.abr-board__cat.is-active {

  background: var(--abr-accent);

  border-color: var(--abr-accent);

  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);

  color: #fff;

}



.abr-board__actions {

  align-items: center;

  display: flex;

  flex-wrap: wrap;

  gap: 0.65rem;

}



.abr-board__search-wrap {
  flex: 1 1 180px;
}

.abr-board__search {
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9bb0' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
  background-position: 0.85rem center;
  background-repeat: no-repeat;
  background-size: 0.95rem;
  border: 1px solid var(--abr-border);
  border-radius: 8px;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.55rem 0.85rem 0.55rem 2.6rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.abr-board__search::-webkit-search-decoration,
.abr-board__search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.abr-board__search:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}



/* Buttons */

.abr-board__btn {

  align-items: center;

  background: var(--abr-card);

  border: 1px solid var(--abr-border);

  border-radius: 8px;

  color: var(--abr-text);

  cursor: pointer;

  display: inline-flex;

  font: inherit;

  font-size: 0.875rem;

  font-weight: 600;

  gap: 0.35rem;

  justify-content: center;

  padding: 0.55rem 1rem;

  text-decoration: none;

  transition: background 0.15s, border-color 0.15s, transform 0.1s;

}



.abr-board__btn:hover {

  background: #f1f5f9;

}



.abr-board__btn--primary {

  background: var(--abr-accent);

  border-color: var(--abr-accent);

  color: #fff;

}



.abr-board__btn--primary:hover {

  background: var(--abr-accent-hover);

  border-color: var(--abr-accent-hover);

}



.abr-board__btn-icon {

  font-size: 1.05rem;

  font-weight: 700;

  line-height: 1;

}



/* Status bar */

.abr-board__status {

  color: var(--abr-muted);

  font-size: 0.8125rem;

  margin-bottom: 0.65rem;

  min-height: 1.25rem;

  padding: 0 0.15rem;

}



.abr-board__status strong {

  color: var(--abr-text);

  font-weight: 700;

}



/* List table */

.abr-board__table-wrap {

  background: var(--abr-card);

  border: 1px solid var(--abr-border);

  border-radius: var(--abr-radius);

  box-shadow: var(--abr-shadow);

  overflow: hidden;

}



.abr-board__table-head {

  background: #f8fafc;

  border-bottom: 1px solid var(--abr-border);

  color: var(--abr-muted);

  display: none;

  font-size: 0.75rem;

  font-weight: 700;

  gap: 0.75rem;

  letter-spacing: 0.03em;

  padding: 0.65rem 1rem;

  text-transform: uppercase;

}



.abr-board__col--title { flex: 1 1 auto; min-width: 0; }

.abr-board__col--author { flex: 0 0 88px; text-align: center; }

.abr-board__col--date { flex: 0 0 96px; text-align: center; }

.abr-board__col--comments { flex: 0 0 52px; text-align: center; }



.abr-board__list {

  display: flex;

  flex-direction: column;

}



.abr-board__item {

  align-items: center;

  background: transparent;

  border: 0;

  border-bottom: 1px solid var(--abr-border);

  color: inherit;

  cursor: pointer;

  display: flex;

  flex-wrap: wrap;

  font: inherit;

  gap: 0.5rem 0.75rem;

  padding: 0.9rem 1rem;

  text-align: left;

  transition: background 0.15s;

  width: 100%;

}



.abr-board__item:last-child {

  border-bottom: 0;

}



.abr-board__item:hover {

  background: #f8fbff;

}



.abr-board__item:focus-visible {

  background: var(--abr-accent-soft);

  outline: 2px solid var(--abr-accent);

  outline-offset: -2px;

}



.abr-board__item-main {

  align-items: flex-start;

  display: flex;

  flex: 1 1 100%;

  gap: 0.65rem;

  min-width: 0;

}



.abr-board__item-body {

  flex: 1 1 auto;

  min-width: 0;

}



.abr-board__item-top {

  align-items: center;

  display: flex;

  flex-wrap: wrap;

  gap: 0.4rem;

  margin-bottom: 0.25rem;

}



.abr-board__badge {

  background: var(--abr-accent-soft);

  border-radius: 4px;

  color: var(--abr-accent);

  font-size: 0.6875rem;

  font-weight: 700;

  padding: 0.12rem 0.45rem;

  white-space: nowrap;

}



.abr-board__item-title {

  font-size: 0.975rem;

  font-weight: 700;

  line-height: 1.4;

  margin: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.abr-board__item-excerpt {

  color: var(--abr-muted);

  display: none;

  font-size: 0.8125rem;

  line-height: 1.45;

  margin: 0.2rem 0 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.abr-board__item-chevron {

  color: #c0cad8;

  flex-shrink: 0;

  font-size: 1.1rem;

  line-height: 1;

  margin-top: 0.15rem;

  transition: color 0.15s, transform 0.15s;

}



.abr-board__item:hover .abr-board__item-chevron {

  color: var(--abr-accent);

  transform: translateX(2px);

}



.abr-board__item-meta {

  align-items: center;

  color: #8b9bb0;

  display: flex;

  flex: 1 1 100%;

  flex-wrap: wrap;

  font-size: 0.75rem;

  gap: 0.5rem 0.85rem;

}



.abr-board__item-meta span {

  align-items: center;

  display: inline-flex;

  gap: 0.3rem;

}



.abr-board__item-meta-cell {

  display: none;

}



.abr-board__avatar {

  align-items: center;

  background: linear-gradient(135deg, #93c5fd, #2563eb);

  border-radius: 50%;

  color: #fff;

  display: inline-flex;

  flex-shrink: 0;

  font-size: 0.6875rem;

  font-weight: 700;

  height: 1.65rem;

  justify-content: center;

  width: 1.65rem;

}



.abr-board__comment-badge {

  align-items: center;

  background: #f1f5f9;

  border-radius: 999px;

  color: var(--abr-muted);

  display: inline-flex;

  font-size: 0.6875rem;

  font-weight: 700;

  gap: 0.2rem;

  padding: 0.15rem 0.45rem;

}



.abr-board__comment-badge--hot {

  background: #fef3c7;

  color: #b45309;

}



.abr-board__empty,

.abr-board__loading {

  color: var(--abr-muted);

  padding: 2.5rem 1.25rem;

  text-align: center;

}



.abr-board__empty-icon {

  display: block;

  font-size: 2rem;

  margin-bottom: 0.5rem;

  opacity: 0.5;

}



.abr-board__empty-title {

  color: var(--abr-text);

  font-size: 1rem;

  font-weight: 700;

  margin: 0 0 0.35rem;

}



.abr-board__empty-desc {

  font-size: 0.875rem;

  margin: 0;

}



/* Pagination */

.abr-board__pagination {

  display: flex;

  flex-wrap: wrap;

  gap: 0.35rem;

  justify-content: center;

  margin-top: 1rem;

}



.abr-board__page {

  background: var(--abr-card);

  border: 1px solid var(--abr-border);

  border-radius: 8px;

  color: var(--abr-muted);

  cursor: pointer;

  font: inherit;

  font-size: 0.875rem;

  font-weight: 600;

  min-width: 2.25rem;

  padding: 0.4rem 0.6rem;

  transition: background 0.15s, border-color 0.15s, color 0.15s;

}



.abr-board__page:hover {

  border-color: #93c5fd;

  color: var(--abr-accent);

}



.abr-board__page.is-active {

  background: var(--abr-accent);

  border-color: var(--abr-accent);

  color: #fff;

}



/* Detail view */

.abr-board__back {

  align-items: center;

  background: var(--abr-card);

  border: 1px solid var(--abr-border);

  border-radius: 8px;

  color: var(--abr-accent);

  cursor: pointer;

  display: inline-flex;

  font: inherit;

  font-size: 0.875rem;

  font-weight: 600;

  gap: 0.35rem;

  margin-bottom: 1rem;

  padding: 0.45rem 0.85rem;

  transition: background 0.15s;

}



.abr-board__back:hover {

  background: var(--abr-accent-soft);

}



.abr-board__detail {

  background: var(--abr-card);

  border: 1px solid var(--abr-border);

  border-radius: var(--abr-radius);

  box-shadow: var(--abr-shadow);

  margin-bottom: 1.25rem;

  padding: 1.35rem 1.4rem;

}



.abr-board__detail-title {

  font-size: 1.35rem;

  line-height: 1.35;

  margin: 0.35rem 0 0.75rem;

}



.abr-board__detail-body {

  border-top: 1px solid var(--abr-border);

  line-height: 1.75;

  margin-top: 1rem;

  padding-top: 1rem;

}



.abr-board__detail-body p {

  margin: 0 0 0.75rem;

}



.abr-board__meta {

  align-items: center;

  color: #8b9bb0;

  display: flex;

  flex-wrap: wrap;

  font-size: 0.8125rem;

  gap: 0.75rem;

}



.abr-board__meta-item {

  align-items: center;

  display: inline-flex;

  gap: 0.35rem;

}



/* Comments */

.abr-board__comments {

  background: var(--abr-card);

  border: 1px solid var(--abr-border);

  border-radius: var(--abr-radius);

  box-shadow: var(--abr-shadow);

  padding: 1.15rem 1.25rem 1.25rem;

}



.abr-board__comments-head {

  border-bottom: 1px solid var(--abr-border);

  margin-bottom: 1rem;

  padding-bottom: 0.65rem;

}



.abr-board__comments-title {

  font-size: 1rem;

  margin: 0;

}



.abr-board__comments-count {

  background: var(--abr-accent-soft);

  border-radius: 999px;

  color: var(--abr-accent);

  font-size: 0.8125rem;

  font-weight: 700;

  padding: 0.1rem 0.5rem;

}



.abr-board__comment {

  border-bottom: 1px solid var(--abr-border);

  display: flex;

  gap: 0.65rem;

  margin-bottom: 0;

  padding: 0.85rem 0;

}



.abr-board__comment:last-of-type {

  border-bottom: 0;

  margin-bottom: 0.5rem;

}



.abr-board__comment-body {

  flex: 1 1 auto;

  min-width: 0;

}



.abr-board__comment-meta {

  color: #8b9bb0;

  font-size: 0.75rem;

  margin-bottom: 0.25rem;

}



.abr-board__comment-meta strong {

  color: var(--abr-text);

  font-weight: 600;

}



.abr-board__comment-text {

  font-size: 0.9375rem;

  line-height: 1.55;

}



.abr-board__comment-label {

  display: block;

  font-size: 0.8125rem;

  font-weight: 600;

  margin-bottom: 0.4rem;

}



.abr-board__comment-form textarea {

  background: #f8fafc;

  border: 1px solid var(--abr-border);

  border-radius: 8px;

  display: block;

  font: inherit;

  padding: 0.75rem;

  resize: vertical;

  transition: border-color 0.15s, box-shadow 0.15s;

  width: 100%;

}



.abr-board__comment-form textarea:focus {

  border-color: #93c5fd;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);

  outline: none;

}



.abr-board__comment-foot {

  display: flex;

  justify-content: flex-end;

  margin-top: 0.65rem;

}



.abr-board__login-hint {

  background: #f8fafc;

  border-radius: 8px;

  color: var(--abr-muted);

  font-size: 0.875rem;

  margin: 0;

  padding: 0.85rem 1rem;

  text-align: center;

}



.abr-board__login-hint a {

  color: var(--abr-accent);

  font-weight: 600;

}



/* Write dialog */

.abr-board__dialog {

  border: 0;

  border-radius: calc(var(--abr-radius) + 2px);

  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);

  max-width: 540px;

  padding: 0;

  width: calc(100% - 2rem);

}



.abr-board__dialog::backdrop {

  background: rgba(15, 23, 42, 0.5);

}



.abr-board__write-form {

  padding: 1.25rem 1.35rem 1.35rem;

}



.abr-board__dialog-head {

  align-items: center;

  display: flex;

  justify-content: space-between;

  margin-bottom: 0.35rem;

}



.abr-board__dialog-head h2 {

  font-size: 1.125rem;

  margin: 0;

}



.abr-board__dialog-desc {

  color: var(--abr-muted);

  font-size: 0.8125rem;

  margin: 0 0 1rem;

}



.abr-board__dialog-close {

  background: #f1f5f9;

  border: 0;

  border-radius: 6px;

  color: var(--abr-muted);

  cursor: pointer;

  font-size: 1.25rem;

  height: 2rem;

  line-height: 1;

  width: 2rem;

}



.abr-board__dialog-close:hover {

  background: #e2e8f0;

  color: var(--abr-text);

}



.abr-board__field {

  display: block;

  margin-bottom: 0.85rem;

}



.abr-board__field span {

  display: block;

  font-size: 0.8125rem;

  font-weight: 600;

  margin-bottom: 0.35rem;

}



.abr-board__field input,

.abr-board__field select,

.abr-board__field textarea {

  background: #f8fafc;

  border: 1px solid var(--abr-border);

  border-radius: 8px;

  font: inherit;

  padding: 0.6rem 0.75rem;

  transition: border-color 0.15s, box-shadow 0.15s;

  width: 100%;

}



.abr-board__field input:focus,

.abr-board__field select:focus,

.abr-board__field textarea:focus {

  border-color: #93c5fd;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);

  outline: none;

}



.abr-board__dialog-foot {

  display: flex;

  gap: 0.5rem;

  justify-content: flex-end;

  margin-top: 0.75rem;

}



.abr-board__form-msg {

  color: #dc2626;

  font-size: 0.875rem;

  margin: 0.25rem 0 0;

}



/* Desktop table layout */

@media (min-width: 720px) {

  .abr-board__toolbar {

    align-items: flex-end;

    flex-direction: row;

    justify-content: space-between;

  }



  .abr-board__toolbar-block {

    flex: 1 1 auto;

    min-width: 0;

  }



  .abr-board__actions {

    flex: 0 0 auto;

  }



  .abr-board__table-head {

    display: flex;

  }



  .abr-board__item {

    flex-wrap: nowrap;

    gap: 0.75rem;

    padding: 0.85rem 1rem;

  }



  .abr-board__item-main {

    flex: 1 1 auto;

  }



  .abr-board__item-excerpt {

    display: block;

  }



  .abr-board__item-meta {

    display: none;

  }



  .abr-board__item-meta-cell {

    align-items: center;

    color: #8b9bb0;

    display: flex;

    flex-shrink: 0;

    font-size: 0.8125rem;

    justify-content: center;

  }



  .abr-board__item-meta-cell--author {

    flex: 0 0 88px;

    gap: 0.35rem;

  }



  .abr-board__item-meta-cell--date {

    flex: 0 0 96px;

  }



  .abr-board__item-meta-cell--comments {

    flex: 0 0 52px;

  }



  .abr-board__item-meta-cell .abr-board__avatar {

    height: 1.5rem;

    width: 1.5rem;

    font-size: 0.625rem;

  }

}



@media (max-width: 719px) {

  .abr-board__hero-cta {

    width: 100%;

  }



  .abr-board__write-btn {

    width: 100%;

  }

}



.abr-board__toolbar--simple .abr-board__actions {

  width: 100%;

}



.abr-board__item-top:empty {

  display: none;

}



.abr-board__detail-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  justify-content: flex-end;

  margin: -0.5rem 0 1.25rem;

}



.abr-board__btn--danger {

  background: #fff;

  border-color: #fecaca;

  color: #dc2626;

}



.abr-board__btn--danger:hover {

  background: #fef2f2;

  border-color: #fca5a5;

  color: #b91c1c;

}

