/* Guild Notice builder (profile.html, js/guildnotice.js) and the notice look shared with the GM page (gm.html). */

/* ---- a rendered notice (js/guildnotice-render.js) ---- */
.gn-render { font-size: 12px; line-height: 1.55; color: #2a3340; word-wrap: break-word; overflow-wrap: anywhere; }
.gn-render a { color: #1d6fd1; text-decoration: underline; }
.gn-render img.gn-img { display: block; max-width: 100%; height: auto; margin: 6px 0; border-radius: 3px; }
.gn-render .gn-missing { display: inline-block; padding: 2px 6px; border: 1px dashed #b9cbd8; color: #8a99a8; font-size: 10px; }

/* ---- builder dialog ---- */
.gn-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.gn-dialog h2 small { font-weight: normal; color: #6b7d8f; font-size: 12px; }
.gn-layout { display: grid; grid-template-columns: 200px 1fr; gap: 14px; }
.gn-list { margin: 0; padding: 0; list-style: none; }
.gn-list li { margin-bottom: 4px; }
.gn-list button { display: block; width: 100%; padding: 6px 8px; border: 1px solid #c9d8e3; border-radius: 3px; background: #fff;
  text-align: left; font-size: 11px; cursor: pointer; color: #2a3340; }
.gn-list button:hover { background: #f6fafc; }
.gn-list button[aria-current="true"] { border-color: #f07c12; background: #fff7ee; }
.gn-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-list span { color: #6b7d8f; font-size: 10px; }
.gn-flag, .gn-list .gn-flag { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 2px; background: #d33; color: #fff; font-size: 9px; font-weight: bold; }
.gn-new { width: 100%; margin-top: 4px; padding: 5px 0; }
.gn-side-hint { margin-top: 8px; }

.gn-editor label { margin-bottom: 6px; }
.gn-editor input[type="text"] { height: 26px; }
.gn-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0; }
.gn-toolbar button, .gn-toolbar label.gn-tool { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px;
  margin: 0; padding: 0 8px; border: 1px solid #b9cbd8; border-radius: 3px; background: #fff; font-size: 12px; font-weight: normal; color: #2a3340; cursor: pointer; }
.gn-toolbar button:hover, .gn-toolbar label.gn-tool:hover { background: #f6fafc; }
.gn-toolbar input[type="color"] { width: 30px; height: 26px; margin: 0; padding: 1px; border: 1px solid #b9cbd8; background: #fff; cursor: pointer; }
.gn-toolbar .gn-sep { width: 1px; height: 20px; margin: 0 2px; background: #c9d8e3; }
.gn-text { display: block; width: 100%; min-height: 180px; padding: 6px; border: 1px solid #b9cbd8; font: 12px/1.5 Consolas, "Courier New", monospace; resize: vertical; }
.gn-count { margin: 2px 0 0; font-size: 10px; color: #6b7d8f; text-align: right; }
.gn-count.over { color: #d33; font-weight: bold; }
.gn-preview-box { margin-top: 8px; padding: 10px 12px; min-height: 60px; border: 1px solid #c9d8e3; background: #fafafa; }
.gn-preview-box .gn-ptitle { margin: 0 0 2px; color: #d01818; font-weight: bold; font-size: 13px; }
.gn-preview-box .gn-pmeta { margin: 0 0 8px; color: #6b7d8f; font-size: 10px; }
.gn-preview-label { margin: 10px 0 2px; font-size: 11px; font-weight: bold; color: #4a4a55; }

.gn-pics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gn-pic { position: relative; width: 92px; padding: 3px; border: 1px solid #c9d8e3; border-radius: 3px; background: #fff; text-align: center; }
.gn-pic img { display: block; width: 84px; height: 64px; object-fit: contain; margin: 0 auto 3px; background: #f1f4f7; }
.gn-pic button { width: 100%; margin-top: 2px; padding: 2px 0; font-size: 10px; }
.gn-pics-empty { font-size: 11px; color: #8a99a8; }
.gn-upload input { display: none; }

.gn-btns { margin-top: 12px; flex-wrap: wrap; }
.gn-btns .gn-delete { margin-right: auto; color: #c0392b; }

@media (max-width: 700px) {
  .gn-layout { grid-template-columns: 1fr; }
}
