/* The admin page; the admin host serves no main.css, so this sheet carries its own base. */
@font-face {
  font-family: "MapoGoldenPier";
  src: url("../assets/fonts/MapoGoldenPier.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
}

.admin {
  max-width: 40rem;
  margin: 0 auto;
  padding: 32px var(--gutter) 72px;
}

h1 {
  margin: 0 0 24px;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 400;
}

section {
  margin: 0 0 56px;
}

/* An action set as quiet text with a hairline underline, as on the invitation. Padding makes the tap area. */
.text-button {
  padding: 12px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-decoration: underline 1px var(--line);
  text-underline-offset: 6px;
  cursor: pointer;
}

.text-button:disabled {
  color: var(--line);
  cursor: default;
}

.admin__button {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--ink-soft);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.admin__button[hidden] {
  display: none;
}

.admin__button:disabled {
  border-color: var(--line);
  color: var(--ink-soft);
  cursor: default;
}

.text-button:focus-visible,
.admin__button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.admin__status {
  margin: 8px 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.admin__status:empty {
  display: none;
}

.admin__note {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.signed-out__note {
  margin: 0 0 16px;
  font-size: 0.92rem;
}

.signed-in__account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

/* 참석 회신 */
.replies__summary {
  margin: 0 0 12px;
  font-size: 0.86rem;
}

.replies__bands {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.replies__bands th,
.replies__bands td {
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: right;
}

.replies__bands th:first-child {
  text-align: left;
}

.replies__bands thead th {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.replies__csv {
  display: inline-block;
  margin: 4px 0 0 -12px; /* the text, inside the link's padding, lines up with the table */
}

.replies__csv[hidden] {
  display: none;
}

.replies__list,
.posts__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.reply,
.chain {
  padding: 14px 2px 10px;
  border-top: 1px solid var(--line);
}

.reply:last-child,
.chain:last-child {
  border-bottom: 1px solid var(--line);
}

.reply p,
.version p {
  margin: 0 0 4px;
}

.reply__head {
  font-size: 0.92rem;
}

.reply__answer {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.reply__flags {
  color: var(--ink);
  font-size: 0.8rem;
  text-decoration: underline 1px var(--seal);
  text-underline-offset: 4px;
}

.reply__party,
.reply__times {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* 방명록 */
.posts__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  min-inline-size: 0; /* a fieldset otherwise grows to its content's width */
  margin: 0;
  padding: 0;
  border: 0;
}

.posts__filter legend {
  margin: 0 0 2px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.posts__choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.86rem;
  cursor: pointer;
}

.posts__choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.posts__show-hidden {
  margin: 4px 0 0;
}

.posts__count {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.chain.is-hidden {
  background: var(--paper-highlight);
}

.version__meta {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.version__detail,
.version__kept-note,
.version__gone {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.version__name {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.version__message {
  font-size: 0.86rem;
  white-space: pre-line; /* the guest's line breaks, from text set with textContent */
  overflow-wrap: anywhere;
}

.version.is-kept .version__message {
  color: var(--ink-soft);
}

.chain__actions {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
}

.chain__history summary {
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  cursor: pointer;
}

.chain__history .version {
  margin: 0 0 0 4px;
  padding: 8px 0 8px 12px;
  border-left: 1px solid var(--line);
}

/* 자동 게시 */
.pause__state {
  margin: 0;
  font-size: 0.92rem;
}

.pause .admin__note {
  margin-top: 12px;
}
