.site-notices {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px 120px;
  color: #111;
  font: 16px/1.65 Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-notices > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 2px solid #111;
}

.site-notices header p {
  margin: 0;
  color: #777;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
}

.site-notices h1 {
  margin: 3px 0 0;
  font-size: 42px;
  line-height: 1;
}

.site-notices button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
}

.site-notices .solid,
.site-notices > header button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: #111;
}

.site-notices article {
  border-bottom: 1px solid #bbb;
}

.notice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.notice-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 110px 30px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 12px;
  border: 0;
  background: #fff;
  text-align: left;
}

.notice-edit-button {
  align-self: center;
  min-width: 62px;
  margin-right: 12px;
}

.notice-edit-button:hover,
.notice-edit-button:focus {
  color: #fff;
  background: #111;
}

.notice-head > span {
  color: #777;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.notice-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.notice-head time {
  color: #777;
  font-size: 13px;
}

.notice-head b {
  justify-self: center;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}

.notice-head[aria-expanded="true"] b {
  transform: rotate(225deg);
}

.notice-new {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  color: #c40022;
  border: 1px solid #c40022;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .02em;
}

.notice-body {
  padding: 28px 82px 32px;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
}

.notice-content {
  max-width: 760px;
}

.notice-content h3 {
  margin: 30px 0 12px;
  padding: 10px 13px;
  color: #fff;
  background: #111;
  font-size: 17px;
  line-height: 1.3;
}

.notice-content h3:first-child {
  margin-top: 0;
}

.notice-content h4 {
  margin: 22px 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #111;
  font-size: 16px;
  line-height: 1.45;
}

.notice-content p {
  margin: 10px 0;
  white-space: normal;
}

.notice-content blockquote {
  margin: 10px 0;
  padding: 12px 14px;
  border-left: 4px solid #111;
  background: #fff;
  font-weight: 700;
}

.notice-content ul {
  margin: 10px 0 14px;
  padding-left: 20px;
}

.notice-content li + li {
  margin-top: 4px;
}

.notice-content hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  border-top: 1px dashed #999;
}

.notice-body > button {
  margin-top: 22px;
}

.notice-dialog,
.notice-dialog * {
  box-sizing: border-box;
}

.notice-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  height: min(820px, calc(100dvh - 48px));
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .14);
  font: 15px/1.6 Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translate(-50%, -50%);
}

.notice-dialog::backdrop {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(2px);
}

.notice-dialog form {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, .86fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  column-gap: 20px;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  overflow: hidden;
}

.notice-dialog form > header,
.notice-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  background: #fff;
}

.notice-dialog form > header {
  padding: 20px 0 15px;
  border-bottom: 2px solid #111;
}

.notice-dialog form > header small {
  color: #777;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
}

.notice-dialog h2 {
  margin: 3px 0 0;
  font-size: 26px;
  line-height: 1.2;
}

.notice-dialog form > header > div:last-child,
.notice-dialog footer > div {
  display: flex;
  gap: 8px;
}

.notice-dialog button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notice-dialog button:hover,
.notice-dialog button:focus-visible {
  background: #eee;
}

.notice-dialog .solid {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: #111;
}

.notice-dialog .solid:hover,
.notice-dialog .solid:focus-visible {
  background: #333;
}

.notice-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 16px 0;
}

.notice-dialog label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.notice-dialog input,
.notice-dialog textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  background: #fff;
  color: #111;
  font: inherit;
}

.notice-dialog .notice-editor-field {
  grid-column: 1;
  grid-row: 3;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  padding-bottom: 18px;
}

.notice-dialog textarea {
  height: 100%;
  min-height: 0;
  resize: none;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.notice-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid #ddd;
  background: #f5f5f5;
}

.notice-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
}

.notice-preview-box {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  margin-bottom: 18px;
  padding: 16px;
  overflow: auto;
  border: 1px solid #bbb;
  background: #fafafa;
}

.notice-preview-box > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

.notice-preview-box .notice-content {
  max-width: none;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: #b00020;
  font-weight: 700;
}

.notice-dialog footer {
  padding: 13px 0 18px;
  border-top: 1px solid #111;
}

.site-notices .danger,
.notice-dialog .danger {
  color: #b00020;
  border-color: #b00020;
}

.empty {
  padding: 60px;
  text-align: center;
  color: #777;
}

@media (max-width: 700px) {
  .site-notices {
    padding: 36px 14px 100px;
    font-size: 15px;
  }

  .site-notices h1 {
    font-size: 34px;
  }

  .notice-head {
    grid-template-columns: 50px minmax(0, 1fr) 24px;
    min-height: 70px;
    padding: 0 6px;
  }

  .notice-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-edit-button {
    justify-self: end;
    margin: -10px 6px 14px 0;
  }

  .notice-head time {
    display: none;
  }

  .notice-body {
    padding: 22px 16px;
  }

  .notice-form-grid {
    grid-template-columns: 1fr;
  }

  .notice-dialog {
    inset: 8px auto auto 8px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    transform: none;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .12);
  }

  .notice-dialog form {
    display: block;
    padding: 0 16px;
    overflow-y: auto;
  }

  .notice-dialog form > header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 14px 0 12px;
  }

  .notice-dialog h2 {
    font-size: 21px;
  }

  .notice-dialog form > header button {
    min-height: 38px;
    padding: 0 11px;
  }

  .notice-form-grid {
    grid-template-columns: 1fr;
  }

  .notice-dialog .notice-editor-field {
    padding-bottom: 16px;
  }

  .notice-dialog textarea {
    height: 46vh;
    min-height: 300px;
  }

  .notice-preview-box {
    max-height: none;
    margin-bottom: 16px;
    overflow: visible;
  }

  .notice-dialog footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 12px 0 14px;
  }
}
