.board-layout {
  display: grid;
  grid-template-columns: minmax(175px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 46px);
}
.board-directory {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.board-directory a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 12px;
  border-inline-start: 3px solid transparent;
  border-radius: 4px 12px 12px 4px;
  color: var(--md-on-surface);
  text-decoration: none;
}
.board-directory a:hover { background: var(--md-surface-container); }
.board-directory a[aria-current="page"] {
  border-inline-start-color: var(--md-primary);
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
}
.board-directory a small,
.board-document small { display: block; }
.board-directory a .icon { flex-shrink: 0; }
.board-content {
  min-height: 220px;
  padding: clamp(16px, 2.4vw, 32px);
  border: 1px solid var(--md-outline-variant);
  border-radius: 18px;
  background: var(--md-surface-container);
  overflow-wrap: anywhere;
}
.board-heading, .board-reply-head, .board-topic-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.board-heading h2 { margin: 0; font-size: 24px; }
.board-heading p { margin: 4px 0 0; }
.board-topic-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--md-outline-variant);
}
.board-topic-row:first-of-type { margin-top: 18px; border-top: 1px solid var(--md-outline-variant); }
.board-topic-row h3 { margin: 0; }
.board-topic-row h3 a { color: var(--md-on-surface); }
.board-topic-aside, .board-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.board-flags { margin-top: 10px; }
.board-flags:empty { display: none; }
.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
  color: var(--md-on-surface-variant);
  font-size: .9rem;
}
.board-body { max-width: 73ch; margin: 18px 0 0; }
.board-return { display: inline-block; margin-bottom: 12px; }
.board-document {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid var(--md-outline-variant);
  border-radius: 12px;
  text-decoration: none;
}
.board-reply-head, .board-reply { border-top: 1px solid var(--md-outline-variant); padding: 14px 0; }
.board-reply-head { margin-top: 24px; align-items: center; }
.board-reply-head h3 { margin: 0; }
.board-moderation { margin-top: 14px; color: var(--md-on-surface-variant); }
.board-moderation li p { margin: 3px 0 8px; }
.board-pages { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-top: 16px; }
.board-pages a { padding: 6px 0; }
.board-role-options { margin-block: 10px; }
@media (max-width: 760px) {
  .board-layout { grid-template-columns: minmax(0, 1fr); }
  .board-directory { flex-direction: row; flex-wrap: wrap; }
  .board-directory a { min-height: 42px; }
}

/* The board landing page is a directory, with activity subordinate to purpose. */
.board-overview { border: 1px solid var(--md-card-outline); border-radius: 18px; background: var(--md-card); overflow: hidden; }
.board-overview-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(180px, 28%); gap: 20px; align-items: start; padding: 26px 28px; }
.board-overview-item + .board-overview-item { border-top: 1px solid var(--md-outline-variant); }
.board-overview-symbol { display: grid; place-items: center; width: 48px; height: 48px; color: var(--md-primary); background: var(--md-primary-container); border-radius: 14px; }
.board-overview-symbol .icon { width: 24px; height: 24px; }
.board-overview-copy h2 { margin: 0 0 6px; font-size: 20px; }
.board-overview-copy h2 a { color: var(--md-on-surface); text-decoration: none; }
.board-overview-copy h2 a:hover { text-decoration: underline; }
.board-overview-copy p { max-width: 66ch; margin: 0 0 10px; color: var(--md-on-surface-variant); }
.board-overview-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--md-on-surface-variant); }
.board-overview-latest { display: flex; flex-direction: column; gap: 5px; padding-inline-start: 22px; border-inline-start: 1px solid var(--md-outline-variant); overflow-wrap: anywhere; }
.board-overview-latest > span, .board-overview-latest time { font-size: 13px; color: var(--md-on-surface-variant); }
.board-overview-latest a { font-weight: 500; text-decoration: none; }
.board-overview-latest a:hover { text-decoration: underline; }
.board-directory .board-directory-home { margin-bottom: 12px; border-bottom: 1px solid var(--md-outline-variant); border-radius: 0; }
.board-media { margin: 24px 0 0; max-width: 900px; }
.board-media > a { display: grid; place-items: center; min-height: 80px; background: var(--md-surface-lowest); border: 1px solid var(--md-outline-variant); border-radius: 12px; overflow: hidden; }
.board-media img { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; object-fit: contain; }
.board-media .board-document { margin-top: 8px; }
@media (max-width: 900px) {
 .board-overview-item { grid-template-columns: 44px minmax(0,1fr); gap: 12px 16px; padding: 22px; }
 .board-overview-latest { grid-column: 2; padding: 10px 0 0; border-inline-start: 0; border-top: 1px solid var(--md-outline-variant); }
 .board-overview-symbol { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
 .board-overview-item { padding: 20px 16px; grid-template-columns: 36px minmax(0,1fr); gap: 12px; }
 .board-overview-symbol { width: 36px; height: 36px; border-radius: 10px; }
 .board-overview-symbol .icon { width: 20px; height: 20px; }
 .board-overview-copy h2 { font-size: 18px; }
 .board-overview-copy h2 a { display: inline-block; min-height: 32px; padding-block: 3px; }
 .board-overview-latest a { min-height: 32px; padding-block: 4px; }
 .board-media img { max-height: 360px; }
}

.board-media-unavailable { padding: 20px; margin: 0; border: 1px solid var(--md-outline-variant); border-radius: 12px; color: var(--md-on-surface-variant); }
