/* The keeper's notice banner (inc/notice.php). Colours come from the Tavern's tokens, so every page colour scheme fits. */
.rc-notice {
  --tone: var(--gold, #d6b26a);
  position: relative; z-index: 11;
  background: color-mix(in srgb, var(--tone) 16%, var(--dusk, #15122a));
  border-bottom: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  color: var(--ink, #ece4d2);
  font-family: var(--f-body, Georgia, serif); font-size: 17px; line-height: 1.45;
}
.rc-notice-downtime { --tone: var(--ember, #c8462f); }
.rc-notice-event { --tone: var(--mana, #5e7be6); }
.rc-notice .wrap { display: flex; align-items: center; gap: 12px; padding-block: 9px; }
.rc-notice p { margin: 0; flex: 1; min-width: 0; }
.rc-notice-icon { font-size: 20px; line-height: 1; }
.rc-notice-label {
  font-family: var(--f-head, Georgia, serif); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tone) 70%, var(--ink, #ece4d2)); margin-right: 6px; white-space: nowrap;
}
.rc-notice a { color: var(--gold, #d6b26a); }
.rc-notice-link { white-space: nowrap; }
.rc-notice-x {
  flex: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ink-dim, #b9b0a0); font-size: 22px; line-height: 1;
  border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
}
.rc-notice-x:hover { color: var(--ink, #ece4d2); border-color: var(--tone); }
/* wp-admin preview: show it on the Tavern's night colours */
.rc-notice-preview { max-width: 1000px; border-radius: 6px; overflow: hidden; background: #0b0a12; }
.rc-notice-preview .wrap { max-width: none; padding-left: 16px; padding-right: 16px; }

/* events switched on at the Keeper's desk (inc/keeper.php): a gentle glow on the sign */
body.rc-ev-halloween .bar { border-bottom-color: #e0782a; box-shadow: 0 1px 22px #e0782a38; }
body.rc-ev-halloween .mark b { text-shadow: 0 0 14px #e0782a99; }
/* Day of the Dead (DSL's October holiday): marigold glow, a garland on the sign and a row of candles that flicker */
body.rc-ev-dead .bar { border-bottom-color: #f2a516; box-shadow: 0 1px 24px #f2a51640, 0 1px 60px #8d5cf622; }
body.rc-ev-dead .mark b { text-shadow: 0 0 14px #f2a516aa, 0 0 30px #8d5cf666; }
body.rc-ev-dead .tav-sign { position: relative; }
body.rc-ev-dead .tav-sign::before {
  content: ""; display: block; width: min(560px, 92%); height: 16px; margin-bottom: 2px;
  background: radial-gradient(circle at 8px 8px, #f7b32b 0 5px, #e2731b 5.5px 7px, transparent 7.5px) 0 0 / 22px 16px space no-repeat,
              linear-gradient(#5b8f3a, #5b8f3a) 0 7px / 100% 2px no-repeat;
  filter: drop-shadow(0 0 6px #f2a51677);
}
body.rc-ev-dead .tav-sign::after {
  content: "🕯️ 💀 🕯️ 🌼 🕯️ 💀 🕯️"; letter-spacing: .35em; font-size: clamp(16px, 2.4vw, 22px); line-height: 1;
  filter: drop-shadow(0 0 8px #f2a516aa); animation: rc-candle 3.2s ease-in-out infinite alternate;
}
body.rc-ev-dead .tav-sign h1 { text-shadow: 0 2px 18px #f2a51677, 0 0 40px #8d5cf644; }
@keyframes rc-candle { 0% { opacity: .82; filter: drop-shadow(0 0 5px #f2a51688); } 40% { opacity: 1; } 70% { opacity: .9; filter: drop-shadow(0 0 11px #f2a516cc); } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.rc-ev-dead .tav-sign::after { animation: none; } }
@media (max-width: 600px) { body.rc-ev-dead .tav-sign::after { content: "🕯️ 💀 🌼 💀 🕯️"; } }   /* leaves room for Nuit's hiding spots */
/* Harvest Festival (DSL's November holiday): amber glow, a garland of wheat and apples on the sign */
body.rc-ev-harvest .bar { border-bottom-color: #d99a2b; box-shadow: 0 1px 24px #d99a2b40, 0 1px 60px #b5452222; }
body.rc-ev-harvest .mark b { text-shadow: 0 0 14px #e8b04baa, 0 0 30px #b5452255; }
body.rc-ev-harvest .tav-sign::before {
  content: ""; display: block; width: min(560px, 92%); height: 16px; margin-bottom: 2px;
  background: radial-gradient(circle at 11px 8px, #c83a24 0 5px, #8e2416 5.5px 6.5px, transparent 7px) 0 0 / 44px 16px space no-repeat,
              radial-gradient(4px 7px at 33px 8px, #e8c25a 0 85%, transparent 100%) 0 0 / 44px 16px space no-repeat,
              linear-gradient(#8a6a2e, #8a6a2e) 0 7px / 100% 2px no-repeat;
  filter: drop-shadow(0 0 6px #e8b04b66);
}
body.rc-ev-harvest .tav-sign::after { content: "🌾 🍎 🍺 🎃 🍺 🍎 🌾"; letter-spacing: .35em; font-size: clamp(16px, 2.4vw, 22px); line-height: 1; filter: drop-shadow(0 0 8px #e8b04b99); }
body.rc-ev-harvest .tav-sign h1 { text-shadow: 0 2px 18px #e8b04b77, 0 0 40px #b5452244; }
@media (max-width: 600px) { body.rc-ev-harvest .tav-sign::after { content: "🌾 🍎 🍺 🍎 🌾"; } }
body.rc-ev-winter .bar { border-bottom-color: #9fd3ff; box-shadow: 0 1px 22px #9fd3ff30; }
body.rc-ev-winter .mark b { text-shadow: 0 0 14px #cfe9ff99; }

/* report buttons and the report form */
.report-btn { font-size: 14px; color: var(--ink-dim, #b9b0a0); }
.report-btn:hover { color: var(--gold, #d6b26a); }
.report-page { margin-left: 14px; }
.report-footer { text-align: center; margin: 14px 0 0; font-size: 15px; color: var(--ink-dim, #b9b0a0); }
dialog.rc-report {
  width: min(460px, calc(100vw - 32px)); padding: 20px 22px; border-radius: 8px;
  background: var(--dusk, #15122a); color: var(--ink, #ece4d2); border: 1px solid var(--gold, #d6b26a);
  box-shadow: 0 20px 60px #000c; font-family: var(--f-body, Georgia, serif); font-size: 17px;
}
dialog.rc-report::backdrop { background: #05040acc; }
dialog.rc-report h2 { margin: 0 0 6px; font-family: var(--f-head, Georgia, serif); font-size: 20px; color: var(--gold, #d6b26a); }
dialog.rc-report textarea { width: 100%; min-height: 110px; padding: 10px 12px; font: inherit; border-radius: 4px; border: 1px solid var(--gold-deep, #8a6a2e); background: #07060c; color: var(--ink, #ece4d2); }
.rc-report-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* the Keeper's desk */
.kd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.kd-facts div { border: 1px solid var(--gold-deep, #8a6a2e); border-radius: 4px; padding: 8px 12px; }
.kd-facts dt { font-size: 14px; color: var(--ink-dim, #b9b0a0); }
.kd-facts dd { margin: 0; font-family: var(--f-head, Georgia, serif); font-size: 24px; color: var(--gold, #d6b26a); }
.kd-quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--gold-deep, #8a6a2e); color: var(--ink-dim, #b9b0a0); font-style: italic; }
.kd-hidden .body, .kd-handled .body { opacity: .5; }
.kd-switch select, .kd-switch input[type=date] { padding: 6px 8px; font: inherit; border-radius: 4px; border: 1px solid var(--gold-deep, #8a6a2e); background: #07060c; color: var(--ink, #ece4d2); }
