* { box-sizing: border-box; }

html { font-size: 14px; }

:root {
  --link: #0000ee;
  --link-visited: #551a8b;
  --link-hover: #6a488a;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.4;
  background-color: #fafafa;
  background-image: radial-gradient(#0000001f 1px, transparent 1px);
  background-size: 20px 20px;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover); }


header.site-header {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  border-bottom: 3px solid #000;
}

header.site-header .title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

header.site-header h1 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.5px;
}

header.site-header .subtitle {
  font-size: 0.78rem;
  color: #bbb;
}

nav.site-nav {
  margin-top: 6px;
  font-size: 0.85rem;
}

nav.site-nav > a,
nav.site-nav summary {
  color: #fff;
  text-decoration: none;
  margin-right: 14px;
  border-bottom: 1px solid transparent;
}

nav.site-nav > a:hover,
.nav-more summary:hover {
  border-bottom: 1px solid #fff;
}

.nav-more {
  display: inline-block;
  position: relative;
}

.nav-more summary {
  cursor: pointer;
  list-style: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: " \25BE";
  font-size: 0.7em;
}

.nav-more[open] summary::after {
  content: " \25B4";
}

.nav-more-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #1a1a1a;
  border: 1px solid #555;
  padding: 6px 0;
  min-width: 110px;
  z-index: 50;
}

.nav-more-menu a {
  display: block;
  padding: 6px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-right: 0; 
  border-bottom: none; 
}

.nav-more-menu a:hover {
  background: #333;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}
.lang-btn {
  background: transparent;
  border: 1px solid #555;
  padding: 2px 6px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
}
.lang-btn:hover { background: #333; opacity: 0.85; }
.lang-flag { display: block; width: 22px; height: 15px; }
.lang-btn-active { opacity: 1; border-color: #fff; }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px 60px;
}

footer.site-footer .footer-about { max-width: 760px; margin: 6px auto 8px; line-height: 1.45; }

footer.site-footer {
  border-top: 1px solid #999;
  margin-top: 30px;
  padding: 10px 16px;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
}


.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #999;
  background: #f2f2f2;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.toolbar label {
  font-size: 0.8rem;
  font-weight: bold;
}

.toolbar.toolbar-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.toolbar.toolbar-stacked .toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar.toolbar-stacked .toolbar-row select,
.toolbar.toolbar-stacked .toolbar-row input[type="text"] {
  flex: 1;
  min-width: 120px;
}
.toolbar.toolbar-stacked .toolbar-row-end {
  justify-content: flex-start;
}

select, input[type="text"], textarea, button {
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid #666;
  padding: 5px 7px;
  background: #fff;
  color: #000;
}

button {
  background: #e6e6e6;
  cursor: pointer;
  font-weight: bold;
}

button:hover { background: #d6d6d6; }
button:active { background: #c2c2c2; }
button:disabled { color: #888; cursor: not-allowed; }

button.primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #000;
}
button.primary:hover { background: #333; }

button.danger {
  background: #fff;
  color: #900;
  border-color: #900;
}
button.danger:hover { background: #fde8e8; }


table.note-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid #999;
  font-size: 0.85rem;
}

table.note-table th {
  background: #d9d9d9;
  border: 1px solid #999;
  text-align: left;
  padding: 6px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

table.note-table td {
  border: 1px solid #ccc;
  padding: 5px 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

table.note-table tr {
  background: rgba(255, 255, 255, 0.096);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

table.note-table tr:hover { background: #b3b3b3; }

.col-thumb-header { width: 78px; }
.col-thumb {
  width: 78px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.row-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #999;
  display: block;
}
.col-post {
  padding: 0;
}

.row-link-block {
  display: block;
  color: #000;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.col-thumb .row-link-block {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.promo-row {
  margin-top: 3px;
  padding: 0 8px 5px;
}

.col-post .row-link-block {
  padding: 2px 8px;
}
.post-title {
  font-weight: bold;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-link-block:hover .post-title { color: #cc0000; }

.post-meta-line {
  margin-top: 3px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.post-meta-line .cat-tag {
  display: inline-block;
  color: #333;
  border: 1px solid #999;
  padding: 1px 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.excerpt {
  color: #444;
  font-size: 0.8rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-row { text-align: center; color: #777; padding: 20px; }
table.note-table td.empty-row { padding: 20px; }


.status {
  font-size: 0.8rem;
  padding: 6px 8px;
  margin: 6px 0;
  border: 1px solid transparent;
}
.status-info { color: #333; }
.status-error { color: #900; border-color: #900; background: #fdeaea; }
.status-success { color: #175a17; border-color: #175a17; background: #eaf7ea; }


.field-group { margin-bottom: 12px; }
.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 3px;
}
.field-group input[type="text"],
.field-group textarea,
.field-group select {
  width: 100%;
}
.hint {
  font-size: 0.72rem;
  color: #666;
  margin-top: 2px;
}

fieldset {
  border: 1px solid #999;
  margin-bottom: 14px;
  padding: 10px 12px;
}
legend {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0 4px;
}


.static-content {
  max-width: 680px;
}

.static-content h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 6px;
  border-bottom: 1px solid #999;
  padding-bottom: 4px;
}

.static-content p {
  margin: 8px 0;
}

.static-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.static-content li {
  margin: 3px 0;
}


.map-box {
  border: 1px solid #999;
  height: 340px;
  margin-bottom: 4px;
  position: relative;
  isolation: isolate;
}

.map-box.small { height: 220px; }

.map-degraded-notice {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 1000;
  background: #fffef0;
  border: 1px solid #999;
  padding: 6px 8px;
  font-size: 0.75rem;
  text-align: center;
}


.note-header {
  border: 1px solid #999;
  border-bottom: none;
  background: #f2f2f2;
  padding: 8px 12px;
}
.note-header h2 { margin: 0 0 4px; font-size: 1.1rem; overflow-wrap: anywhere; }
.note-meta { font-size: 0.78rem; color: #444; }
.note-meta .cat-tag {
  display: inline-block;
  border: 1px solid #666;
  padding: 1px 6px;
  margin-right: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.note-body-box {
  border: 1px solid #999;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}


ul.comment-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #999;
}
.comment {
  border-bottom: 1px solid #ddd;
  padding: 8px 10px;
  transition: background-color 0.6s ease;
}
.comment:last-child { border-bottom: none; }
.comment-highlighted { background-color: #fff6c9; }
.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 2px;
}
.comment-nick { font-weight: bold; color: #000; }
.comment-message { font-size: 0.85rem; white-space: pre-wrap; overflow-wrap: anywhere; }


.dialog-box {
  border: 2px solid #000;
  background: #fffef0;
  padding: 16px;
  max-width: 520px;
  margin: 20px auto;
}
.dialog-box h2 { margin-top: 0; font-size: 1rem; }
.keyphrase-display {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  border: 1px dashed #666;
  background: #fff;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  letter-spacing: 0.5px;
}
.warning-box {
  border: 2px solid rgb(75, 0, 0);
  background: #c0c0c0;
  color: rgb(0, 0, 0);
  padding: 8px 10px;
  font-size: 0.78rem;
  margin-top: 10px;
  margin-bottom: 10px;
}


.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
#radius-modal {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}
#radius-slider { width: 100%; }


.link-btn {
  background: none;
  border: none;
  color: var(--link);
  font-weight: normal;
  font-size: 0.75rem;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { background: none; color: #cc0000; }
.link-btn:disabled { color: #888; text-decoration: none; cursor: default; }

.report-flag-btn {
  background: #fff0f0;
  color: #900;
  border: 1px solid #900;
  font-weight: bold;
  font-size: 0.8rem;
  margin: 0px 0px 10px 0px;
  padding: 4px 10px;
  cursor: pointer;
}
.report-flag-btn:hover { background: #ffe0e0; }
.report-flag-btn:disabled { background: #f2f2f2; color: #888; border-color: #ccc; cursor: default; }

.report-row { margin-top: 4px; }

.report-form {
  border: 1px dashed #c99;
  background: #fff8f8;
  padding: 6px 8px;
  margin-top: 4px;
}
.report-form textarea,
.report-form select,
.report-form input[type="text"] {
  width: 100%;
  margin-bottom: 4px;
}


.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.file-btn {
  display: inline-block;
  border: 1px solid #666;
  background: #e6e6e6;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
}
.file-btn:hover { background: #d6d6d6; }


.days-left-super-faint {
  color: #363636;
  font-size: 0.68rem;
  margin: 0 0 4px;
}

.note-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.note-title-row h2 { margin: 0; flex: 1; }
.options-btn {
  flex-shrink: 0;
  background: #e6e6e6;
  font-size: 0.78rem;
  padding: 4px 9px;
}

#options-panel {
  border: 1px dashed #999;
  padding: 10px 12px;
  margin-top: 8px;
  margin-bottom: 14px;
  background: #fbfbfb;
}
.options-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
#edit-form {
  border-top: 1px dashed #ccc;
  margin-top: 10px;
  padding-top: 10px;
}


.admin-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.admin-layout[hidden] {
  display: none;
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 180px;
  flex-shrink: 0;
  border: 1px solid #999;
  background: #f2f2f2;
  padding: 10px;
}
.admin-sidebar .admin-nav-btn {
  width: 100%;
  text-align: left;
}
.admin-sidebar-spacer {
  flex: 1;
  min-height: 12px;
}
.admin-content {
  flex: 1;
  min-width: 0;
}
@media (max-width: 640px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar .admin-nav-btn { width: auto; flex: 1; }
  .admin-sidebar-spacer { display: none; }
}


.note-options-row td {
  background: #fbfbfb;
  padding: 10px 12px !important;
}
.note-options-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


.truncatable {
  cursor: pointer;
  border-bottom: 1px dashed #888;
}
.truncatable:hover { background: #fff6c9; }
.truncatable.expanded {
  display: inline-block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-bottom-style: solid;
}

@media (max-width: 640px) {
  .col-thumb, .col-thumb-header { width: 58px; }
  .row-thumb { width: 44px; height: 44px; }
}

.leaflet-gesture-handling-scroll-warning:after {
  content: none;
}

.scroll-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  font-size: 1.1rem;
  z-index: 462;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.scroll-zoom-hint.visible {
  opacity: 1;
}

tr.promoted-row {
  background: #fffbe0;
}

tr.promoted-row:hover .post-title {
  color: #664242;
}

.promoted-badge {
  display: inline-block;
  background: #fff3b0;
  border: 1px solid #d4b106;
  color: #6b5900;
  font-size: 0.68rem;
  text-transform: uppercase;
  padding: 1px 5px;
}

.promoted-badge {
  color: #6b5900;
  text-decoration: none;
}

.promoted-badge:hover {
  text-decoration: underline;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.reader-card {
  border: 3px #545454;
  border-style: dotted dotted solid dotted;
  border-bottom-style: none;
  padding: 16px 0;
  text-align: center;
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.096);
}

.reader-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.reader-title {
  font-size: 1.4rem;
  margin: 0 0 6px;
  padding: 0 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.reader-report { margin-top: 10px; padding: 0 12px; }
.reader-report .report-form { text-align: left; max-width: 480px; margin: 6px auto 0; }
.reader-meta-line {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reader-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
}
.reader-photo {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.nav-more-menu .toggle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-weight: normal;
  cursor: pointer;
}

.view-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.reader-toggle-btn { font-size: 1rem; line-height: 1; padding: 4px 8px; }
.reader-toggle-btn[aria-pressed="true"] { background: #fff; }
body.dark-mode-on .reader-toggle-btn[aria-pressed="true"] { background: #e6e6e6; color: #111; }

body.dark-mode-on {
  color: #e6e6e6;
  background-color: #000;
  background-image: radial-gradient(#ffffff18 1px, transparent 1px);
  background-size: 20px 20px;
  --link: #8ab4ff;
  --link-visited: #b79ddf;
  --link-hover: #d2c2f0;
}


body.dark-mode-on .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9); }

body.dark-mode-on footer.site-footer { color: #aaa; border-top-color: #555; }
body.dark-mode-on .note-meta { color: #bbb; }
body.dark-mode-on .status-info { color: #ddd; }
body.dark-mode-on .empty-row { color: #aaa; }
body.dark-mode-on .days-left-super-faint { color: #b6b6b6; }
body.dark-mode-on p[style*="color:#555"] { color: #aaa !important; }

body.dark-mode-on table.note-table { border-color: #555; }
body.dark-mode-on table.note-table td { border-color: #444; }
body.dark-mode-on table.note-table th { background: #2a2a2a; color: #fff; border-color: #555; }
body.dark-mode-on .toolbar { background: #2a2a2a; color: #fff; border-color: #555; }
body.dark-mode-on table.note-table tr:hover { background: #3f3f3f; }
body.dark-mode-on .row-link-block { color: #f3f3f3; }
body.dark-mode-on .row-link-block:hover .post-title { color: #ff8a8a; }
body.dark-mode-on .post-title,
body.dark-mode-on .excerpt,
body.dark-mode-on .cat-tag,
body.dark-mode-on .hint { color: #f3f3f3; }

body.dark-mode-on .reader-title,
body.dark-mode-on .reader-body,
body.dark-mode-on .reader-card-link { color: #fff; }
body.dark-mode-on .reader-card .hint { color: #aaa; }
body.dark-mode-on .reader-card .cat-tag { color: #ccc; border-color: #666; }

body.dark-mode-on .note-header { background: #2a2a2a; border-color: #555; }
body.dark-mode-on .note-body-box,
body.dark-mode-on ul.comment-list,
body.dark-mode-on fieldset,
body.dark-mode-on .map-box,
body.dark-mode-on .static-content h3 { border-color: #555; }
body.dark-mode-on .comment { border-bottom-color: #333; }
body.dark-mode-on .comment-meta { color: #aaa; }
body.dark-mode-on .comment-nick { color: #fff; }
body.dark-mode-on .comment-highlighted { background-color: #4a4520; }
body.dark-mode-on #options-panel { background: #1c1c1c; border-color: #666; }
body.dark-mode-on #edit-form { border-top-color: #444; }
body.dark-mode-on .report-form { background: #2a1a1a; border-color: #844; }

body.dark-mode-on .dialog-box { background: #1c1c1c; border-color: #888; }
body.dark-mode-on .keyphrase-display { background: #000; color: #fff; border-color: #888; }
body.dark-mode-on .warning-box { background: #3a1f1f; color: #ffdada; border-color: #a33; }
body.dark-mode-on .map-degraded-notice { background: #2a2a1a; color: #eee; border-color: #666; }
body.dark-mode-on .status-error { color: #ff9c9c; background: #3a1515; border-color: #c44; }
body.dark-mode-on .status-success { color: #8fe0a0; background: #12301a; border-color: #3a8; }

body.dark-mode-on .admin-sidebar { background: #2a2a2a; border-color: #555; }
body.dark-mode-on .note-options-row td { background: #1c1c1c; }
body.dark-mode-on .truncatable:hover { background: #4a4520; }

body.dark-mode-on select,
body.dark-mode-on input[type="text"],
body.dark-mode-on input[type="email"],
body.dark-mode-on input[type="password"],
body.dark-mode-on textarea { background: #1c1c1c; color: #eee; border-color: #666; }
body.dark-mode-on ::placeholder { color: #888; }
body.dark-mode-on button { background: #333; color: #eee; border-color: #777; }
body.dark-mode-on button:hover { background: #444; }
body.dark-mode-on button:active { background: #222; }
body.dark-mode-on button:disabled { color: #777; }
body.dark-mode-on button.primary { background: #e6e6e6; color: #111; border-color: #fff; }
body.dark-mode-on button.primary:hover { background: #fff; }
body.dark-mode-on button.danger,
body.dark-mode-on .report-flag-btn { background: #2a1414; color: #ff8a8a; border-color: #c44; }
body.dark-mode-on button.danger:hover,
body.dark-mode-on .report-flag-btn:hover { background: #3a1a1a; }
body.dark-mode-on .report-flag-btn:disabled { background: #222; color: #777; border-color: #444; }
body.dark-mode-on .file-btn { background: #333; color: #eee; border-color: #777; }
body.dark-mode-on .file-btn:hover { background: #444; }

body.dark-mode-on .lang-btn { background: transparent; color: inherit; border-color: #555; }
body.dark-mode-on .lang-btn:hover { background: #333; }
body.dark-mode-on .lang-btn-active { border-color: #fff; }
body.dark-mode-on .link-btn { background: none; border: none; color: var(--link); }
body.dark-mode-on .link-btn:hover { background: none; color: #ff8a8a; }
body.dark-mode-on .link-btn:disabled { color: #777; }

.char-counter-wrap { position: relative; }
.char-counter-wrap > input,
.char-counter-wrap > textarea { width: 100%; margin-bottom: 0; }
.char-counter-wrap.is-input > input { padding-right: 4.8rem; }
.char-counter-wrap.is-textarea > textarea { padding-bottom: 1.6rem; }
.report-form .char-counter-wrap, .field-group .char-counter-wrap { margin-bottom: 4px; }
.field-group .char-counter-wrap { margin-bottom: 0; }
.char-count {
  position: absolute;
  font-size: 0.7rem;
  line-height: 1;
  color: #777;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.char-counter-wrap.is-input .char-count { right: 8px; top: 50%; transform: translateY(-50%); }
.char-counter-wrap.is-textarea .char-count { right: 22px; bottom: 7px; }
.char-count.near-limit { color: #b36b00; }
.char-count.at-limit { color: #c00; font-weight: bold; }
body.dark-mode-on .char-count { color: #aaa; }
body.dark-mode-on .char-count.near-limit { color: #ffb84d; }
body.dark-mode-on .char-count.at-limit { color: #ff7a7a; }

.email-hint { margin-top: 4px; font-size: 0.85rem; }
.email-hint-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.map-search { margin: 0 0 8px; }
.map-search-row { display: flex; gap: 6px; }
.map-search-input { flex: 1 1 auto; min-width: 0; }
.map-search-btn { flex: 0 0 auto; cursor: pointer; }
.map-search-status { margin: 6px 0 0; font-size: 0.9rem; }
.map-search-status.is-error { color: #c00; }
.map-search-results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid #999; background: #fff; }
.map-search-results li + li { border-top: 1px solid #ddd; }
.map-search-result { display: block; width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.map-search-result:hover, .map-search-result:focus { background: #eee; }
body.dark-mode-on .map-search-status.is-error { color: #ff7a7a; }
body.dark-mode-on .map-search-results { background: #1e1e1e; border-color: #555; }
body.dark-mode-on .map-search-results li + li { border-top-color: #444; }
body.dark-mode-on .map-search-result:hover, body.dark-mode-on .map-search-result:focus { background: #333; }

.scrambled { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; opacity: 0.7; user-select: none; }

.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; color: #222; border-top: 2px solid #999; box-shadow: 0 -2px 8px rgba(0,0,0,0.15); font-size: 0.9rem; }
.consent-text { margin: 0; flex: 1 1 320px; }
.consent-buttons { display: flex; gap: 8px; }
.consent-buttons button { min-width: 110px; padding: 8px 14px; font: inherit; cursor: pointer; }
.consent-settings { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
body.dark-mode-on .consent-banner { background: #1d1d1d; color: #eee; border-top-color: #666; }
body.dark-mode-on .consent-buttons button { background: #333; color: #eee; border: 1px solid #777; }

.comment-no-notify { margin: 6px 0 0; padding: 6px 10px; font-size: 0.85rem; line-height: 1.4; color: #5a3a00; background: #fff6e0; border-left: 3px solid #c77f00; }
.comment-no-notify[hidden] { display: none; }
body.dark-mode-on .comment-no-notify { color: #f3e3c0; background: #2b2412; border-left-color: #e0a030; }

.comment-notify-on { margin: 6px 0 0; font-size: 0.85rem; line-height: 1.4; color: #1e6b2e; }
.comment-notify-on::before { content: "\2713\00a0"; font-weight: bold; }
.comment-notify-on[hidden] { display: none; }
body.dark-mode-on .comment-notify-on { color: #7fd48f; }

/* Footer buttons: big enough to tap comfortably (at least 48x48 px, with space around them) */
footer.site-footer .consent-settings,
footer.site-footer .link-btn { display: inline-block; min-width: 48px; min-height: 48px; padding: 14px 10px; box-sizing: border-box; line-height: 1.2; }

/* Photo viewer (js/lightbox.js). To change how dark the background is, edit the number in --lightbox-dim:
   0 = fully see-through, 1 = solid black. */
img.zoomable { cursor: zoom-in; }
.lightbox { --lightbox-dim: 0.6; position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, var(--lightbox-dim)); }
.lightbox-scroll {
  position: absolute; inset: 0; overflow: hidden; display: flex;
  touch-action: pinch-zoom; overscroll-behavior: contain;
}
.lightbox-img { display: block; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; will-change: transform; -webkit-user-drag: none; }
.lightbox.zoomed .lightbox-img { cursor: grab; }
.lightbox.zoomed .lightbox-img:active { cursor: grabbing; }
.lightbox-close {
  position: fixed; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #aaa; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 1;
}
.lightbox-close:hover, .lightbox-close:focus-visible { background: #fff; color: #000; }
