.noticeboard {
  padding-block: clamp(1.8rem, 4vw, 3.4rem) clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  scroll-margin-block-start: 1rem;
}
.noticeboard .section-head p { max-width: none; }
.wall-board {
  padding: clamp(1.3rem, 3vw, 2.5rem);
  border: 1px solid #b9c5a7;
  border-radius: .95rem;
  outline: 1px dashed #a9b89b;
  outline-offset: -.55rem;
  background-color: #e1e9d8;
  background-image: radial-gradient(#95a68766 .8px, transparent .9px);
  background-size: 8px 8px;
}
.wall-masonry {
  --wall-columns: 3;
  --wall-gap: clamp(1rem, 1.8vw, 1.55rem);
  column-count: var(--wall-columns);
  column-gap: var(--wall-gap);
}
.wall-grid { display: contents; }
.wall-masonry :is(.wall-form, .wall-note) { break-inside: avoid; margin: 0 0 var(--wall-gap); }
@media (min-width: 621px) {
  .wall-masonry.wall-measured {
    display: grid;
    grid-template-columns: repeat(var(--wall-columns), minmax(0, 1fr));
    grid-auto-flow: row dense;
    grid-auto-rows: 4px;
    row-gap: 0;
    align-items: start;
  }
  .wall-measured :is(.wall-form, .wall-note) { grid-row-end: span var(--wall-rows, 1); margin: 0; }
}
.wall-form {
  --focus: #ffda8c;
  position: relative;
  display: grid;
  min-width: 0;
  gap: .85rem;
  padding: clamp(1.05rem, 2vw, 1.6rem);
  border-radius: .25rem .35rem .55rem .24rem;
  background: #2d5945;
  color: #fff9e9;
  box-shadow: 0 4px 8px #233d3138;
}
.wall-form::before, .wall-note::before {
  content: '';
  position: absolute;
  top: -.47rem;
  width: 3.8rem;
  height: .95rem;
  background: repeating-linear-gradient(-52deg, #f3e8c4 0 6px, #c68271 6px 10px);
  clip-path: polygon(2% 0, 100% 0, 98% 22%, 100% 43%, 98% 65%, 100% 87%, 98% 100%, 0 100%, 2% 78%, 0 57%, 2% 36%, 0 14%);
  transform: rotate(-5deg);
  pointer-events: none;
}
.wall-form::before { right: 1.15rem; }
.wall-form-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.wall-form-heading img { width: 2.85rem; height: 2.6rem; object-fit: contain; transform: rotate(6deg); }
.wall-form h3 { color: inherit; font: 400 1.75rem/1.2 var(--display); }
.wall-tags { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.wall-choice { position: relative; cursor: pointer; }
.wall-choice span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.15rem;
  padding: .22rem .65rem;
  border: 1px solid #a4b6a3;
  border-radius: 2rem;
  font: 600 .94rem/1.2 var(--sans);
}
.wall-choice span::before {
  content: '';
  width: .65rem;
  height: .65rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.wall-choice input:checked + span { border-color: #ffd297; background: #ffdfac; color: #493822; }
.wall-choice input:checked + span::before { background: currentColor; box-shadow: inset 0 0 0 2px #ffdfac; }
.wall-choice:hover span { border-color: #ffdfac; }
.wall-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.wall-field { display: grid; gap: .25rem; }
.wall-field label { font: 650 1rem/1.35 var(--sans); }
.wall-field small, #wall-count { font: 400 .87rem/1.35 var(--sans); color: #e3eddd; }
.wall-message-label { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
#wall-count { font-variant-numeric: tabular-nums; }
.wall-field input[name], .wall-field textarea {
  min-height: 2.55rem;
  padding: .53rem .65rem;
  border: 1px solid #d2dac8;
  border-radius: .38rem;
  background: #fffdf6;
  font-size: 1rem;
}
.wall-field textarea { min-height: 4.4rem; }
.wall-submit { width: 100%; min-height: 2.85rem; border-color: #ffdea5; background: #ffdfa7; color: #463421; }
.wall-submit:hover { border-color: #eab77a; background: #ffdaa1; }
.wall-form .error { margin: 0; color: #fff3e3; }
.wall-controls { text-align: center; }
.wall-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: .5rem;
}
.wall-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: .28rem .65rem;
  border: 1px solid #a8b79d;
  border-radius: .45rem;
  background: var(--paper-light);
  color: var(--pine);
  font: 650 1rem/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
a.wall-page:hover { border-color: var(--pine); background: #f4eed9; }
.wall-page[aria-current='page'] { background: var(--pine); border-color: var(--pine); color: #fff9e9; }
.wall-page[aria-disabled='true'] { background: transparent; border-color: transparent; color: #5b6857; }
.wall-step:last-child { flex-direction: row-reverse; }
.wall-ellipsis { padding-inline: .12rem; }
.wall-note {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: clamp(1.1rem, 2.1vw, 1.65rem);
  border: 1px solid #baad8866;
  border-radius: .2rem .32rem .65rem .2rem;
  background: #fff1cd;
  box-shadow: 1px 4px 7px #44523820;
  overflow-wrap: anywhere;
}
.wall-note::before { left: 1.45rem; background: repeating-linear-gradient(-45deg, #dec995 0 3px, #eddbb1 3px 6px); }
.wall-note[data-kind='question'] { background: #e9f3e7; }
.wall-note[data-kind='hello'] { background: #fbe4db; }
.noticeboard[data-wall-page='1'] .wall-grid > [data-post]:first-child {
  border-color: #a44940;
  box-shadow: inset 3px 0 #a44940, 1px 4px 7px #44523820;
}
.wall-note-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .14rem .56rem;
  border: 1px solid currentColor;
  border-radius: 2rem;
  color: #73512a;
  font: 650 .82rem/1.28 var(--sans);
}
.wall-note[data-kind='question'] .wall-note-tag { color: #356149; }
.wall-note[data-kind='hello'] .wall-note-tag { color: #8b4143; }
.wall-note-tag .icon { width: .85rem; height: .85rem; }
.wall-body { white-space: pre-wrap; font: 400 1.16rem/1.45 var(--serif); }
.wall-note footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .5rem;
  width: 100%;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px dashed #bab396;
  color: var(--pine-soft);
  font: 600 .95rem/1.45 var(--sans);
}
.wall-delete { margin-left: auto; padding: .25rem; border: 0; background: transparent; color: var(--red-dark); font: inherit; text-decoration: underline; text-underline-offset: .18em; }
.wall-welcome { background: #fff9e9; }
.wall-welcome .wall-note-tag { margin-right: 2rem; color: var(--red-dark); }
.wall-robin { position: absolute; top: .65rem; right: .75rem; width: 2.8rem; }
.wall-welcome h3 { max-width: 23ch; font: 400 clamp(1.35rem, 1.75vw, 1.65rem)/1.19 var(--display); letter-spacing: -.025em; }
.wall-welcome p { max-width: 40ch; font: 400 1.08rem/1.45 var(--serif); }
.wall-note .wall-official-credit { color: #665139; font-size: .88rem; }
.wall-form .wall-feedback:not(:empty) { margin-top: .9rem; }
.wall-feedback { font-size: 1rem; }
@media (max-width: 980px) {
  .wall-masonry { --wall-columns: 2; }
}
@media (max-width: 620px) {
  .wall-masonry { --wall-columns: 1; --wall-gap: 1.35rem; }
  .wall-page-label { display: none; }
  .wall-page { min-width: 2.2rem; padding-inline: .45rem; }
}
@media (max-width: 390px) {
  .wall-board { padding-inline: .85rem; }
  .wall-pagination { gap: .2rem; }
  .wall-page { min-width: 2rem; padding-inline: .35rem; }
}
@media (forced-colors: active) {
  .wall-choice input:checked + span { outline: 2px solid Highlight; }
  .wall-choice input:checked + span::before { background: Highlight; }
}
