.atlas-body { background: radial-gradient(circle at top, rgba(76, 118, 200, 0.16) 0%, #0a0b12 46%); color: #ffffff; }
.atlas-body a:not(.menu-item):not(.site-back-link) { color: #b8b4ff; }
.atlas-body .menu-dropdown { z-index: 1100; }
/* Small accents echo the gold and pale blue in the category illustrations. */
.atlas-map-body { --atlas-gold: #ecad2e; --atlas-gold-soft: #d5bc82; --atlas-ice: #97d7f1; }
.atlas-map-body .atlas-logo-heading .subtitle { color: var(--atlas-gold-soft); }
.atlas-map-body .atlas-frame { border-color: #ecad2e55; box-shadow: 0 12px 60px #0005, inset 0 0 0 3px #101523, inset 0 1px 0 #ecad2e33; }
.atlas-map-body .atlas-compass { color: var(--atlas-gold); opacity: 0.55; }
.atlas-map-body #reset-map { border-color: #ecad2e77; color: #f0dfb8; }
.atlas-map-body #reset-map:hover { border-color: var(--atlas-gold-soft); }
.atlas-map-body .atlas-tools .search-bar:focus { border-color: var(--atlas-ice); box-shadow: 0 0 12px #97d7f122; }
.atlas-map-body .atlas-legend h2 { color: var(--atlas-gold-soft); }
.atlas-legend-button { top: 1rem; right: 1rem; }
.atlas-legend { margin: auto; max-width: 480px; max-height: 80vh; overflow-y: auto; padding: 28px 32px; color: #e0dcff; }
.atlas-legend::backdrop { background: rgba(0, 0, 0, 0.7); }
.atlas-legend h2 { margin: 0 0 1rem; color: #fff; font-size: 1.5rem; text-align: center; letter-spacing: 2px; }
.atlas-legend h3 { margin: 1.25rem 0 0.75rem; color: #fff; }
.atlas-legend p { line-height: 1.6; margin: 0 0 1.25rem; }
.atlas-legend-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: #b8b4ff; padding: 0 6px; font-size: 28px; cursor: pointer; box-shadow: none; }
.atlas-legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.atlas-legend-list li { display: flex; align-items: center; gap: 0.85rem; color: #fff; font-size: 1.05rem; }
.atlas-legend-swatch { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1px solid #ffffff99; }
.atlas-legend-symbol { width: 20px; display: flex; justify-content: center; flex-shrink: 0; }
@media (max-width: 768px) {
  .atlas-legend-button { display: none; }
  .atlas-map-body .menu-dropdown { position: absolute; top: 0; left: 0; }
  /* Override the shared mobile controls that stay fixed to the viewport. */
  .atlas-map-body .menu-toggle,
  .atlas-map-body .menu-nav { position: absolute !important; }
  .atlas-map-body > .site-back-link { position: absolute; }
}
.atlas-page { width: min(1440px, 94%); margin: auto; padding: 62px 0 80px; }
.atlas-heading { text-align: center; margin: 12px auto 34px; max-width: 800px; }
.atlas-eyebrow { font-size: 0.8rem; letter-spacing: 0.23em; text-transform: uppercase; color: #b8b4ff; }
.atlas-heading h1 { font-weight: normal; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1; margin: 20px 0 8px; color: #d7e2ff; overflow-wrap: anywhere; }
.atlas-heading > p:last-child { font-size: 1.2rem; color: #b9c1d0; line-height: 1.5; }
.atlas-ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: #b8b4ff; margin: 18px auto; }
.atlas-ornament::before, .atlas-ornament::after { content: ''; height: 1px; width: 65px; background: linear-gradient(90deg, transparent, #6b8dd6); }
.atlas-ornament::after { transform: rotate(180deg); }
.atlas-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.atlas-tools label:first-child { flex: 1; }
.atlas-tools input { width: 100%; }


.atlas-tools button { white-space: nowrap; }
.atlas-frame { position: relative; padding: 6px; border: 2px solid #3732ad; background: #1f1a2e; box-shadow: 0 12px 60px #0005, inset 0 0 0 3px #101523; border-radius: 5px; }
.atlas-map { height: clamp(360px, 57vw, 640px); width: 100%; background: radial-gradient(ellipse, #141f33, #0d1422); border-radius: 2px; z-index: 1; font-family: 'Adobe Jenson Pro', Georgia, serif; }
.atlas-compass { pointer-events: none; position: absolute; z-index: 400; bottom: 40px; right: 28px; font-size: 60px; text-align: center; line-height: 0.85; color: #b8b4ff; opacity: 0.7; }
.atlas-compass span { display: block; font-size: 12px; letter-spacing: 0.15em; line-height: 2; }
.atlas-map-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; color: #aeb8ca; margin-top: 14px; }
.atlas-map .leaflet-bar { border: 1px solid #6b8dd6; box-shadow: 0 2px 10px #0005; }
.atlas-map .leaflet-bar a { background: linear-gradient(135deg, #3732ad, #4c76c8); color: #ffffff; border-bottom-color: #b8b4ff; width: 36px; height: 36px; line-height: 36px; }
.atlas-map .leaflet-bar a:hover { background: linear-gradient(135deg, #4c76c8, #6b8dd6); }
.atlas-map .leaflet-bar a.leaflet-disabled { color: #737b8a; background: #131d2e; }
.atlas-map .leaflet-control-attribution { background: #111a2ae8; color: #a8b4c8; font-size: 11px; }
.atlas-map .leaflet-control-attribution a { color: #b8b4ff; }
.atlas-tooltip { background: #141d30; border: 1px solid #6b8dd6; color: #d7e2ff; font-size: 15px; box-shadow: 0 3px 15px #0006; }
.holy-marker { display: grid; place-items: center; background: transparent; border: none; }
/* Outrank Leaflet's marker-pane image reset and keep intrinsic image dimensions
   from expanding the marker's grid cell beyond the selected size. */
.leaflet-container .holy-marker--image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.holy-marker--image:hover, .holy-marker--image:focus { filter: drop-shadow(0 0 5px #b8b4ff); }
.place-marker-settings { min-width: 0; border: 1px solid #6b8dd655; border-radius: 8px; padding: 16px; }
#marker-image-preview { max-width: 160px; max-height: 160px; object-fit: contain; margin: 12px 0; }
.holy-marker-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--marker-color, #ffe9a7); background: var(--marker-color, #e4ba50); box-shadow: 0 0 0 4px var(--marker-halo, #d8ad4426), 0 0 15px var(--marker-glow, #ecc26588); }
.holy-marker:hover .holy-marker-dot, .holy-marker:focus .holy-marker-dot { background: var(--marker-color, #fff0b7); filter: brightness(1.2); box-shadow: 0 0 0 7px var(--marker-halo-active, #d8ad443a), 0 0 20px var(--marker-color, #ecc265); }
.holy-marker--cluster { filter: drop-shadow(0 0 6px var(--marker-glow, #e4ba5088)); }
.holy-marker-cluster { width: 22px; height: 22px; background: var(--marker-background, var(--marker-color, #e4ba50)); clip-path: polygon(50% 0%, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0% 50%, 38% 36%); }
.holy-marker--cluster:hover .holy-marker-cluster, .holy-marker--cluster:focus .holy-marker-cluster { background: var(--marker-background, var(--marker-color, #ffe9a7)); filter: brightness(1.2); }
.holy-cluster-count { position: absolute; top: -2px; right: -3px; min-width: 14px; padding: 0 3px; border-radius: 9px; background: #171c26; border: 1px solid var(--marker-color, #e4ba50); color: #ffe9a7; font: bold 10px/13px Georgia, serif; text-align: center; }
@media (min-width: 769px) {
  #holy-map .holy-marker-dot { width: 7px; height: 7px; box-shadow: 0 0 0 2px var(--marker-halo, #d8ad4426), 0 0 9px var(--marker-glow, #ecc26577); }
  #holy-map .holy-marker:hover .holy-marker-dot, #holy-map .holy-marker:focus .holy-marker-dot { box-shadow: 0 0 0 4px var(--marker-halo-active, #d8ad443a), 0 0 12px var(--marker-color, #ecc265); }
}
.atlas-popover {
  position: fixed; z-index: 1050; width: min(300px, calc(100vw - 16px));
  display: flex; flex-direction: column; overflow: hidden;
  padding: 0.6rem 0.85rem 0.7rem; border: 1px solid #7c77ff; border-radius: 8px;
  background: linear-gradient(135deg, #2a2540 0%, #14101e 100%); color: #fff;
  box-shadow: 0 10px 30px #000b, 0 0 18px #7c77ff66;
  font-size: 1.1rem; overflow-wrap: anywhere;
}
.atlas-popover h2 { flex: none; margin: 0 1.6rem 0.4rem 0; color: #fff; font-size: 1.05rem; font-weight: 600; }
.atlas-popover--place { width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 0; overflow: visible; border: 1px solid #6b8dd6; border-radius: 3px; background: #141d30; box-shadow: 0 3px 15px #0006; font: 15px/1.5 'Adobe Jenson Pro', Georgia, serif; }
.atlas-popover--place h2 { margin: 0; font: inherit; text-align: center; }
.atlas-popover--place::after { content: ''; position: absolute; left: var(--popover-arrow-left, 50%); transform: translateX(-50%); border: 6px solid transparent; pointer-events: none; }
.atlas-popover--place[data-placement="above"]::after { top: 100%; border-top-color: #6b8dd6; }
.atlas-popover--place[data-placement="below"]::after { bottom: 100%; border-bottom-color: #6b8dd6; }
.atlas-body .atlas-popover a.atlas-popover-place-link { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 36px; padding: 6px 10px; color: inherit; text-align: center; text-decoration: none; }
.atlas-popover-place-link:focus-visible { outline: 2px solid #b8b4ff; outline-offset: 2px; }
.atlas-popover-contents { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.atlas-popover .atlas-cluster-close { position: absolute; top: 4px; right: 6px; padding: 2px 6px; background: transparent; border: 0; color: #b8b4ff; font-size: 1.2rem; line-height: 1; box-shadow: none; }
.atlas-popover .atlas-cluster-close:hover { color: #fff; transform: none; }
.atlas-cluster-category + .atlas-cluster-category { margin-top: 0.5rem; }
.atlas-cluster-category h3 { margin: 0 0 0.15rem; padding: 0.1rem 0; border-bottom: 1px solid currentColor; color: var(--category-color); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.atlas-popup-list { list-style: none; margin: 0; padding: 0; }
.atlas-popup-list li { padding: 0.25rem 0; line-height: 1.35; }
.atlas-popup-list li + li { border-top: 1px solid #7c77ff2e; }
.atlas-body .atlas-cluster-category .atlas-popup-list a { color: var(--category-color); text-decoration: underline; }
.atlas-popup-list a:hover { filter: brightness(1.25); }
.atlas-popup-list small { display: block; color: #9c98c4; font-size: 0.95rem; }
.atlas-directory { margin: 44px auto 0; }
.atlas-directory-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #394057; margin-bottom: 20px; }
.atlas-directory-heading h2 { font-size: 1.7rem; font-weight: normal; color: #d7e2ff; }
.atlas-directory-heading > span { color: #aeb8ca; }
.atlas-place-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.atlas-place-list li { border: 2px solid #3732ad; background: linear-gradient(135deg, #2a2540 0%, #1f1a2e 100%); border-radius: 16px; }
.atlas-place-list li:hover { border-color: #b8b4ff; }
.atlas-place-list li > a { display: flex; flex-direction: column; height: 100%; padding: 24px; text-decoration: none; }
.atlas-place-list h3 { font-size: 1.65rem; font-weight: normal; margin: 12px 0 6px; overflow-wrap: anywhere; }
.atlas-place-list p { color: #bec5d1; line-height: 1.6; margin: 8px 0; overflow-wrap: anywhere; }
.atlas-place-type { color: #b8b4ff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.13em; }
.atlas-place-list .atlas-place-location { color: #a4b1c7; font-size: 0.95rem; }
.atlas-read { display: block; margin-top: auto; padding-top: 20px; }
.atlas-read span { float: right; }
.atlas-place-list [hidden], [hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.holy-essay-page { position: relative; width: min(62rem, 92%); margin: 5rem auto 3rem; padding-bottom: 5rem; }
.holy-essay-page > article { position: relative; padding: 44px clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px); border: 2px solid #3732ad; border-radius: 16px; background: linear-gradient(135deg, #2a2540ee, #1f1a2eee); box-shadow: 0 12px 40px #0005; }
.holy-essay-heading { max-width: none; padding: 0 0 20px; margin: 0 auto 24px; border-bottom: 1px solid #b8b4ff2e; }
.holy-essay-heading h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: 0.01em; color: #fff; margin: 0 0 12px; }
.essay-heading-details { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }
.holy-essay-heading .essay-location { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; color: #b8b4ff; font-size: 1rem; line-height: 1.4; margin: 0; }
.essay-location span + span::before { content: '·'; margin-right: 10px; color: #9c98c4; }
.holy-essay-heading .essay-introduction { color: #d2cfea; font-size: 1.1rem; line-height: 1.6; max-width: 690px; margin: 14px auto 0; }
.holy-essay { max-width: 740px; margin: auto; color: #dddcd8; font-size: 1.3rem; line-height: 1.85; overflow-wrap: anywhere; }
/* Match the editor's typed spaces and tabs without preserving HTML layout whitespace. */
.holy-essay p, .holy-essay h2, .holy-essay h3, .holy-essay h4,
.holy-essay blockquote, .holy-essay li { white-space: pre-wrap; tab-size: 4; }
/* Semantic HTML can contain empty paragraphs without a placeholder <br>. */
.holy-essay p { margin: 0 0 1.3em; min-height: 1.85em; min-height: 1lh; }
.holy-essay h2, .holy-essay h3, .holy-essay h4 { color: #b8b4ff; font-weight: normal; line-height: 1.3; margin: 1.5em 0 0.65em; }
.holy-essay h2 { font-size: 1.7em; }
.holy-essay h3 { font-size: 1.35em; }
.holy-essay img { display: block; max-width: 100%; height: auto; max-height: 900px; margin: 28px auto; border-radius: 3px; }
.holy-essay blockquote { border-left: 2px solid #6b8dd6; padding: 8px 0 8px 25px; margin: 25px 0; color: #d7e2ff; font-style: italic; }
.holy-essay a { text-decoration: underline; text-underline-offset: 3px; }
.holy-essay figure { margin: 28px 0; }
.holy-essay figcaption { text-align: center; font-size: 0.85em; color: #aeb8ca; }
.holy-essay .essay-media { width: 100%; max-width: 560px; margin: 24px auto; }
.essay-media iframe, .essay-media video { display: block; box-sizing: border-box; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 1px solid #6b8dd655; border-radius: 8px; background: #080d18; }
.holy-essay .essay-media--substack { max-width: 420px; margin: 18px auto; }
.holy-essay a.essay-substack-card { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px; border: 1px solid #55516d; border-radius: 8px; background: #14101e; color: #eeeaf5; text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.essay-substack-publication { color: #aaa5b9; font-size: 0.65em; }
.essay-substack-title { color: #eeeaf5; font-size: 0.85em; font-weight: 600; }
.essay-substack-action { color: #b8b4ff; font-size: 0.65em; }
.holy-essay a.essay-substack-card:hover { border-color: #b8b4ff; background: #1d172b; }
.holy-essay a.essay-substack-card:focus-visible { outline: 2px solid #b8b4ff; outline-offset: 3px; }
.essay-media figcaption { margin-top: 8px; }
.holy-essay .essay-saint-link { display: flex; flex-direction: column; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 24px auto; text-align: center; text-decoration: none; }
.essay-saint-symbol { display: inline-block; position: relative; width: 240px; max-width: 100%; height: auto; aspect-ratio: 160 / 194; flex: 0 0 auto; border-radius: 6px; background: var(--saint-color, #c0392b); border: 2px solid var(--saint-color, #c0392b); box-shadow: 0 0 10px #c0392bb3, 0 0 22px #e74c3c66; }
.holy-essay .essay-saint-symbol img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 4px; margin: 0; }
.essay-saint-link:hover .essay-saint-symbol { border-color: #ff6b6b; box-shadow: 0 0 16px #ff6b6be6, 0 0 32px #c0392b99; }
#essay-embed-preview { border-top: 1px solid #6b8dd655; margin-top: 16px; padding-top: 16px; }
.holy-essay .ql-align-center { text-align: center; }
.holy-essay .ql-align-right { text-align: right; }
.holy-essay .ql-align-justify { text-align: justify; }
.holy-essay .ql-size-small { font-size: 0.75em; }
.holy-essay .ql-size-large { font-size: 1.5em; }
.holy-essay .ql-size-huge { font-size: 2.5em; }
.holy-essay ul, .holy-essay ol { margin: 0 0 1.3em; padding-left: 1.6em; }
.holy-essay ul { list-style: disc; }
.holy-essay ol { list-style: decimal; }
.holy-essay li { margin: 0.3em 0; }
.holy-essay li > ul, .holy-essay li > ol { margin-bottom: 0; }
.holy-essay .ql-indent-1 { --essay-indent: 1; }
.holy-essay .ql-indent-2 { --essay-indent: 2; }
.holy-essay .ql-indent-3 { --essay-indent: 3; }
.holy-essay .ql-indent-4 { --essay-indent: 4; }
.holy-essay .ql-indent-5 { --essay-indent: 5; }
.holy-essay .ql-indent-6 { --essay-indent: 6; }
.holy-essay .ql-indent-7 { --essay-indent: 7; }
.holy-essay .ql-indent-8 { --essay-indent: 8; }
.holy-essay [class*="ql-indent-"] { padding-left: min(calc(var(--essay-indent) * 2em), 30%); }
.place-preview-note { margin: 24px 0; padding: 15px; background: #302638; border: 1px solid #6b8dd6; border-radius: 5px; }
.place-editor-page { padding: 16px 0 60px; margin: 0 auto; }
.place-editor-page * { box-sizing: border-box; }
.place-editor-page .card { padding: 22px; margin-bottom: 14px; }
.saint-timeline-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-sizing: border-box; overflow-y: auto; padding: 24px; border: 1px solid #6b8dd6; border-radius: 12px; background: #182238; color: #ffffff; }
.saint-timeline-dialog::backdrop { background: #070b14bb; }
.saint-timeline-dialog h2 { margin-top: 0; }
.saint-timeline-dialog input { display: block; width: 100%; margin-top: 8px; }
.saint-timeline-dialog #saint-timeline-status { color: #bec5d1; }
.place-editor-page a { color: #d7e2ff; }
.place-editor-page label > input:not([type="file"]) { width: 100%; }
.place-editor-page .stack-form label > span { display: block; margin-bottom: 6px; }
.place-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.place-field-grid input, .place-field-grid select, .place-editor-page textarea { width: 100%; box-sizing: border-box; }
.location-map { height: 420px; }
.place-save-bar { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; }
.place-save-bar select { display: block; }
.place-error { padding: 16px; border: 1px solid #ee8a83; background: #481f2c; }
.province-results { list-style: none; padding: 0; margin: 0; max-height: 220px; overflow-y: auto; }
.province-results button { width: 100%; text-align: left; border-radius: 4px; margin-bottom: 4px; background: #201e3d; }
.place-editor-page .ql-toolbar.ql-snow { position: sticky; top: 0; z-index: 5; border: 1px solid #53618a; background: #e9e6df; border-radius: 8px 8px 0 0; margin-bottom: -0.8rem; }
.place-editor-page .ql-toolbar button { border-radius: 0; background: transparent; padding: 3px 5px; }
.place-editor-page .ql-toolbar .ql-undo, .place-editor-page .ql-toolbar .ql-redo { color: #444; font-size: 21px; line-height: 18px; }
.place-image-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.place-editor-page .ql-toolbar button:hover { transform: none; }
.place-editor-page .ql-container.ql-snow { border: 1px solid #53618a; border-radius: 0 0 8px 8px; background: #151627; font-family: 'Adobe Jenson Pro', Georgia, serif; font-size: 20px; }
.place-editor-page .ql-editor { min-height: 450px; line-height: 1.7; overflow-wrap: anywhere; }
.place-editor-page .ql-editor img { max-width: 100%; }
.place-editor-page .ql-editor.ql-blank::before { color: #aab2c6; }
.place-editor-page .ql-snow .ql-tooltip { color: #222; z-index: 10; white-space: normal; max-width: min(400px, 80vw); }
.place-editor-page .ql-snow .ql-tooltip input { color: #222; background: white; }
.place-editor-page .ql-snow .ql-tooltip a { color: #17589a; }
.place-editor-page #image-status { margin: 0; }
.atlas-body :focus-visible, .place-editor-page :focus-visible { outline: 2px solid #b8b4ff; outline-offset: 4px; }
@media (max-width: 760px) {
  .atlas-page { padding-top: 66px; }
  .atlas-tools { flex-wrap: wrap; }
  .atlas-tools label:first-child { flex-basis: 100%; }
  .atlas-tools label:nth-child(2) { flex: 1; min-width: 0; }
  .atlas-tools select { width: 100%; }
  .atlas-map-caption { flex-direction: column; }
  .atlas-place-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-field-grid { grid-template-columns: 1fr; }
  .location-map { height: 340px; }
  .place-save-bar { align-items: stretch; flex-direction: column; }
  .place-save-bar select { width: 100%; }
  .atlas-directory-heading h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .atlas-place-list { grid-template-columns: 1fr; }
  .atlas-heading > p:last-child { font-size: 1.08rem; }
  .atlas-tools button { font-size: 0.9rem; padding: 12px; }
  .holy-essay { font-size: 1.18rem; }
}

/* Keep the first frame hidden until all province geometry has been painted. */
.atlas-map:not(.is-ready) .leaflet-map-pane { opacity: 0; }
.atlas-map { overscroll-behavior: contain; }
.atlas-map #particles-js { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.atlas-map #particles-js canvas { display: block; vertical-align: bottom; }
.atlas-map #particles-js .atlas-star-texture { visibility: hidden; }
.atlas-map #particles-js .atlas-star-parallax { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-map:not(.is-ready) #particles-js { visibility: hidden; }

.atlas-logo-heading { text-align: center; margin: 0 auto 32px; }
.atlas-logo-heading h1 { margin: 0; line-height: 1; }
.atlas-logo-link { display: inline-block; max-width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.2s ease, filter 0.2s ease, opacity 0.15s ease; }
.atlas-logo-link:focus-visible { outline: 2px solid #b8b4ff; outline-offset: 6px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .atlas-logo-link:hover { transform: translateY(-2px); filter: drop-shadow(0 0 24px rgba(184, 180, 255, 0.7)); }
}
@media (hover: none), (pointer: coarse) {
  .atlas-logo-link:active { opacity: 0.8; }
}
.atlas-logo-heading .title-image { width: auto; max-width: 100%; max-height: 200px; }
.atlas-tools .search-bar:focus-visible { outline: none; }

.essay-title-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 180px; object-fit: contain; margin: 0 auto 16px; border-radius: 6px; }
.atlas-body .holy-essay-page a.essay-map-button { position: absolute; top: 12px; right: 12px; display: inline-block; margin: 0; padding: 4px 7px; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; border: 1px solid #7c77ff; border-radius: 6px; background: linear-gradient(135deg, #3732ad, #4c76c8); color: #fff; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.atlas-body .holy-essay-page a.essay-map-button:hover { transform: translateY(-2px); box-shadow: 0 4px 16px #6b8dd666; }
#title-image-preview { display: block; max-width: 100%; max-height: 180px; object-fit: contain; margin: 12px auto; }
@media (max-width: 768px) { .essay-title-image { max-height: 140px; } }
