/* ufos.dev — Articles (feed, reading page, editor, review). Loaded only on these pages. */
:root { --serif: var(--sans); --read-w: 720px; }

/* ---------- Shared bits ---------- */
.a-cat { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.f-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #2a1800;
  background: linear-gradient(135deg, #ffe066, #ff9f0a); box-shadow: 0 2px 10px rgba(255, 159, 10, .3);
}
.f-badge::before { content: "✦"; font-size: 10px; }
.f-badge.sm { padding: 2px 9px; font-size: 10px; margin-left: 6px; vertical-align: 2px; }
.a-pill, .vote-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; color: var(--text);
  font-size: 13.5px; font-weight: 650; white-space: nowrap; text-decoration: none; position: relative; z-index: 2;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box; border: 1px solid transparent; box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: transform .3s var(--spring), background .2s;
}
.a-pill:hover { text-decoration: none; background: linear-gradient(var(--lens), var(--lens)) padding-box, var(--edge) border-box; }
.a-pill:active { transform: scale(.94); }
.a-pill svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.a-pill.icon-only { padding: 0 10px; }
.a-pill.is-pick { color: #ffb300; }
.vote-pill { padding: 0; gap: 0; overflow: hidden; }
.v-btn { display: grid; place-items: center; width: 34px; height: 32px; border: 0; background: none; color: var(--text-2); border-radius: 999px; }
.v-btn svg { width: 16px; height: 16px; fill: currentColor; }
.v-btn:hover { background: var(--lens); color: var(--text); }
.v-btn.up.on, .v-btn.up:hover { color: #ff7a45; }
.v-btn.down.on, .v-btn.down:hover { color: #6ea8ff; }
.v-score { min-width: 26px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.am-ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 90% at 30% 10%, rgba(94, 240, 192, .22), transparent 60%), radial-gradient(100% 80% at 90% 100%, rgba(124, 92, 255, .25), transparent 60%), var(--tile); }
.am-ph .logo-mark { width: 34%; height: auto; opacity: .55; }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff375f; color: #fff; font-size: 11px; vertical-align: 1px; }
.status.s-rejected { background: rgba(255, 105, 97, .16); color: var(--danger); }

/* ---------- Feed ---------- */
.articles-page { max-width: 900px; }
.articles-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.articles-head .lead { margin: 0; }
.articles-head-actions { display: flex; gap: 6px; align-items: center; }
.articles-head-actions .btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn.rss { color: #ff9f0a; display: grid; }
.cat-row { margin: 16px 0 6px; max-width: 100%; }
.cat-row .mine-tab { margin-left: 6px; }
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0 14px; border-bottom: 1px solid var(--panel-line); }
.sort-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.view-toggle { margin: 0; }
.view-toggle a { display: grid; place-items: center; padding: 5px 10px; }
.view-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.dropdown { position: relative; }
.dd-trigger {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 15px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box; border: 1px solid transparent; box-shadow: inset 0 1px 0 var(--glass-hi);
}
.dd-trigger svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.dropdown.open .dd-trigger svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 180px; padding: 6px; border-radius: 18px; display: grid;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top left; transition: opacity .18s, transform .25s var(--spring), visibility .18s;
}
.dropdown.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text); font-size: 14.5px; font-weight: 550; }
.dd-menu a:hover { background: var(--lens); text-decoration: none; }
.dd-menu a[aria-current] { font-weight: 750; }
.dd-menu a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.a-search { position: relative; flex: 1 1 180px; max-width: 320px; margin-right: auto; }
@media (max-width: 600px) { .a-search { order: 3; flex-basis: 100%; max-width: none; } .articles-head-actions { width: 100%; justify-content: space-between; flex-direction: row-reverse; } }
.a-search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: var(--text-3); pointer-events: none; }
.a-search input[type=search] { height: 36px; padding: 0 14px 0 34px; border-radius: 999px; font-size: 14.5px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }

.a-featured {
  position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); margin: 18px 0 6px; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--panel); border: 1px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, rgba(255, 214, 10, .55), rgba(255, 159, 10, .15) 40%, var(--panel-line) 70%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 50px rgba(0, 0, 0, .25);
  transition: transform .35s var(--spring);
}
.a-featured:hover { transform: translateY(-2px); }
.f-img { min-height: 220px; background: var(--tile); }
.f-img img { width: 100%; height: 100%; object-fit: cover; }
.f-body { padding: 18px 20px; display: grid; gap: 8px; align-content: center; min-width: 0; }
.f-body h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 800; margin: 0; letter-spacing: -.02em; position: relative; z-index: 2; }
.f-body h2 a { color: var(--text); }
.f-excerpt { color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.f-read { margin-left: auto; position: relative; z-index: 2; }
@media (max-width: 640px) { .a-featured { grid-template-columns: 1fr; } .f-img { min-height: 0; aspect-ratio: 16 / 9; } .f-read { display: none; } }

.a-overlay { position: absolute; inset: 0; z-index: 1; }
.a-list { display: grid; gap: 10px; margin-top: 14px; }
.a-card {
  position: relative; display: grid; gap: 10px; padding: 14px 16px 12px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--panel-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .2s, border-color .2s, transform .35s var(--spring);
}
@media (hover: hover) { .a-card:hover { background: color-mix(in srgb, var(--panel) 70%, var(--lens)); border-color: color-mix(in srgb, var(--panel-line) 50%, var(--text-3)); } }
.a-card:active { transform: scale(.995); }
.a-body { display: grid; gap: 4px; min-width: 0; }
.a-source { margin: 0; font-size: 12.5px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; position: relative; z-index: 2; }
.a-source a:not(.a-cat) { color: var(--text); font-weight: 600; }
.a-title { font-size: 18px; font-weight: 750; line-height: 1.25; margin: 0; letter-spacing: -.015em; }
.a-title a { color: var(--text); position: relative; z-index: 2; }
.a-excerpt { margin: 0; color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-reason { margin: 4px 0 0; font-size: 13.5px; color: var(--danger); }
.a-thumb { border-radius: 16px; overflow: hidden; background: var(--tile); }
.a-thumb img { width: 100%; max-height: 340px; object-fit: cover; }
.a-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (min-width: 700px) {
  .a-card:has(.a-thumb) { grid-template-columns: minmax(0, 1fr) 220px; grid-template-rows: auto 1fr; }
  .a-card:has(.a-thumb) .a-thumb { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 16 / 11; align-self: start; }
  .a-card:has(.a-thumb) .a-thumb img { height: 100%; max-height: none; }
  .a-card .a-foot { align-self: end; }
}
/* Compact */
.a-list[data-view="compact"] { gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--panel-line); background: var(--panel); }
.a-list[data-view="compact"] .a-card { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-rows: auto !important; gap: 12px; align-items: center;
  border: 0; border-bottom: 1px solid var(--panel-line); border-radius: 0; background: none; box-shadow: none; padding: 10px 14px; }
.a-list[data-view="compact"] .a-card:last-child { border-bottom: 0; }
.a-list[data-view="compact"] .a-thumb, .a-list[data-view="compact"] .a-excerpt, .a-list[data-view="compact"] .a-foot > :not(.vote-pill):not(.a-pill:first-child:last-child) { display: none; }
.a-list[data-view="compact"] .a-foot { order: -1; grid-column: 1; grid-row: 1; }
.a-list[data-view="compact"] .a-body { grid-column: 2; grid-row: 1; }
.a-list[data-view="compact"] .vote-pill { height: 30px; }
.a-list[data-view="compact"] .v-btn { width: 28px; height: 28px; }
.a-list[data-view="compact"] .a-title { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .a-list[data-view="compact"] .a-by { font-size: 12px; } .a-list[data-view="compact"] .a-card { gap: 10px; padding: 10px 12px; } }
body.feed-compact .f-img, body.feed-compact .f-excerpt { display: none; }
body.feed-compact .a-featured { grid-template-columns: 1fr; }
.load-more-wrap { display: flex; justify-content: center; margin: 22px 0 6px; }
.load-more-wrap .btn { min-width: 180px; }
.load-more-wrap .btn.loading { opacity: .6; pointer-events: none; }

/* ---------- Reading page ---------- */
.read-progress { position: fixed; right: 5px; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 22px); bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  width: 4px; border-radius: 4px; background: var(--lens); z-index: 44; pointer-events: none; }
.read-progress span { display: block; width: 100%; height: 0; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent); transition: height .12s linear; }
.read-label {
  position: fixed; right: 18px; bottom: calc(18px + var(--safe-b)); z-index: 45; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--accent); pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--spring);
}
.read-label.show { opacity: 1; transform: none; }
@media (max-width: 767px) { .read-label { display: none; } }

.article-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 14px 16px 48px; }
.article-page .banner { margin: 0 0 14px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.has-toc .art-layout { grid-template-columns: 240px minmax(0, 1fr); }
@media (max-width: 960px) { .has-toc .art-layout { grid-template-columns: minmax(0, 1fr); } }
.toc-fab, .toc-backdrop { display: none; }

.art-card { min-width: 0; max-width: 860px; width: 100%; margin: 0 auto; }
.has-toc .art-card { margin: 0; }

.toc-sidebar {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 24px); max-height: calc(100vh - var(--topbar-h) - 48px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--panel-line) transparent; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent);
}
.toc-inner { padding: 14px 0 10px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.toc-header { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; border-bottom: 1px solid var(--panel-line); }
.toc-header svg { width: 15px; height: 15px; fill: var(--accent); }
.toc-title { flex: 1; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.toc-count { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--lens); border-radius: 999px; padding: 1px 8px; }
.toc-nav { padding: 8px 0 6px; display: grid; }
.toc-link {
  position: relative; display: block; padding: 5px 14px 5px 28px; font-size: 13px; line-height: 1.35; color: var(--text-2);
  border-left: 2px solid transparent; transition: color .18s, background .18s, border-color .18s, padding-left .2s var(--ease);
}
.toc-link::before { content: ""; position: absolute; left: 13px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); translate: 0 -50%; transition: background .18s, scale .2s; }
.toc-link:hover { color: var(--text); background: var(--lens); text-decoration: none; }
.toc-link[data-level="3"] { padding-left: 40px; font-size: 12.5px; }
.toc-link[data-level="3"]::before { left: 27px; width: 4px; height: 4px; }
.toc-link[data-level="4"] { padding-left: 52px; font-size: 12px; color: var(--text-3); }
.toc-link[data-level="4"]::before { left: 39px; width: 3px; height: 3px; }
.toc-link.is-active { color: var(--accent); font-weight: 650; border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent); }
.toc-link.is-active::before { background: var(--accent); scale: 1.5; box-shadow: 0 0 6px var(--accent); }
.toc-link.is-passed { color: var(--text-3); }
.toc-progress { display: flex; align-items: center; gap: 8px; padding: 8px 14px 2px; border-top: 1px solid var(--panel-line); font-size: 11px; font-weight: 700; color: var(--text-2); }
.toc-track { flex: 1; height: 3px; border-radius: 3px; background: var(--lens); overflow: hidden; }
.toc-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .15s; }
.toc-mobile { display: none; margin: 0 0 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-line); }
.toc-mobile summary { padding: 12px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--text-2); transition: rotate .2s; }
.toc-mobile[open] summary::after { rotate: 90deg; }
.toc-mobile nav { display: grid; padding: 0 0 10px; }


.art-head { display: grid; gap: 10px; margin-bottom: 18px; }
.art-kicker { margin: 4px 0 0; }
.art-title { font-size: clamp(30px, 5.2vw, 46px); font-weight: 850; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
.art-dek { font-family: var(--serif); font-size: clamp(18px, 2.3vw, 21px); line-height: 1.5; color: var(--text-2); margin: 0; text-wrap: pretty; }
.art-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.art-meta a { color: var(--text); font-weight: 650; }
.art-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.art-cover { margin: 0 0 24px; border-radius: var(--radius-lg); overflow: hidden; background: var(--tile); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.art-cover img { width: 100%; max-height: 560px; object-fit: cover; cursor: zoom-in; }

/* Article text */
.art-body { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.art-body::after { content: ""; display: table; clear: both; }
.art-body > * { max-width: var(--read-w); }
.art-body p { margin: 0 0 1.1em; }
.art-body p:empty, .art-body p:has(> br:only-child) { margin: 0; height: .6em; }
.art-body a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.art-body h2, .art-body h3, .art-body h4 { font-family: var(--sans); scroll-margin-top: calc(var(--topbar-h) + 40px); border-radius: 8px; }
.art-body h2 { font-size: 1.45em; font-weight: 800; margin: 1.9em 0 .55em; padding-bottom: .3em; border-bottom: 1px solid var(--panel-line); letter-spacing: -.02em; }
.art-body h3 { font-size: 1.12em; font-weight: 750; margin: 1.6em 0 .4em; }
.art-body h4 { font-size: .95em; font-weight: 700; margin: 1.4em 0 .3em; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.art-body h2:first-child, .art-body .infobox + h2 { margin-top: .4em; }
@keyframes hflash { 0% { background: var(--accent-soft); box-shadow: 0 0 0 8px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
.art-body .flash { animation: hflash 1.4s ease-out; }
.art-body ul, .art-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.art-body li { margin: .25em 0; }
.art-body li.ql-indent-1 { margin-left: 1.5em; } .art-body li.ql-indent-2 { margin-left: 3em; } .art-body li.ql-indent-3 { margin-left: 4.5em; }
.art-body .ql-align-center { text-align: center; } .art-body .ql-align-right { text-align: right; } .art-body .ql-align-justify { text-align: justify; }
.art-body blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-soft); font-style: italic; color: var(--text); }
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body cite { display: block; margin-top: 6px; font-size: .78em; font-style: normal; color: var(--text-2); font-family: var(--sans); }
.art-body img { border-radius: 14px; margin: 1.2em 0; height: auto; cursor: zoom-in; }
.art-body figure { margin: 1.4em 0; }
.art-body figure img { margin: 0; }
.art-body figcaption { font-size: 14px; color: var(--text-2); margin-top: 6px; font-family: var(--sans); }
.art-body .embed { border-radius: var(--radius); margin: 1.4em 0; }
.art-body figure .embed { margin: 0; }
.art-body .art-embed { max-width: var(--read-w); }
.art-body pre { font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; }
.art-body code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--lens); padding: 1px 6px; border-radius: 6px; }
.art-body pre code { background: none; padding: 0; }
.art-body hr { border: 0; height: 1px; background: var(--panel-line); margin: 2em 0; }
.art-body table { border-collapse: collapse; width: 100%; font-size: .82em; font-family: var(--sans); margin: 1.2em 0; display: block; overflow-x: auto; }
.art-body th, .art-body td { padding: 8px 10px; border-bottom: 1px solid var(--panel-line); text-align: left; vertical-align: top; }
.art-body th { color: var(--text-2); font-weight: 650; }
.art-body mark { background: rgba(255, 214, 10, .35); color: inherit; border-radius: 3px; padding: 0 2px; }
.art-body .callout, .art-body .note, .art-body .warning {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.6; margin: 1.4em 0; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 159, 10, .09); border: 1px solid rgba(255, 159, 10, .28);
}
.art-body .note { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.art-body .warning { background: rgba(255, 105, 97, .09); border-color: rgba(255, 105, 97, .3); }
.art-body .callout-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ff9f0a; margin-bottom: 4px; }
.infobox {
  float: right; clear: right; width: 290px; margin: 4px 0 20px 26px; padding: 14px 16px; border-radius: 18px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.45;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box; border: 1px solid transparent; box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
.art-body .infobox { max-width: 290px; }
.infobox-title { font-weight: 750; text-align: center; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--panel-line); }
.infobox table { width: 100%; border-collapse: collapse; display: table; font-size: inherit; margin: 0; }
.infobox th, .infobox td { padding: 5px 0; border: 0; vertical-align: top; }
.infobox th { color: var(--text-2); font-weight: 600; padding-right: 12px; white-space: nowrap; width: 1%; }
@media (max-width: 760px) { .infobox, .art-body .infobox { float: none; width: auto; max-width: none; margin: 0 0 20px; } }
.art-tags { margin: 28px 0 0; }
.art-body .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.2em 0; font-family: var(--sans); font-size: 14px; line-height: 1.4; }
.references { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--panel-line); font-size: 14px; color: var(--text-2); }
.references h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 10px; }
.references ol { padding-left: 22px; display: grid; gap: 6px; margin: 0; overflow-wrap: anywhere; }
.see-also { margin-top: 30px; }
.see-also-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 10px; }
.art-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.art-mini { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); }
.art-mini:hover { text-decoration: none; background: color-mix(in srgb, var(--panel) 70%, var(--lens)); }
.art-mini img, .art-mini .am-ph { width: 76px; height: 76px; flex: none; border-radius: 12px; object-fit: cover; }
.art-mini span { display: grid; gap: 2px; min-width: 0; }
.art-mini small { font-size: 12px; }
.art-mini b { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.profile-arts { padding-top: 4px; }
.art-after { max-width: 860px; margin: 10px auto 0; }
.has-toc .art-after { margin-left: calc(240px + 28px); }
@media (max-width: 960px) { .has-toc .art-after { margin-left: auto; } }

/* History */
.back-link { display: inline-block; margin: 6px 0 4px; font-weight: 600; }
.rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rev-list li { display: grid; gap: 1px; padding: 8px 12px; border-radius: 14px; }
.rev-list li.on { background: var(--accent-soft); }
.rev-snapshot .art-body { font-size: 17px; }

/* ---------- Editor ---------- */
.write-page { max-width: 1180px; }
.write-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.write-head .page-title { margin-bottom: 4px; }
.write-errors ul { margin: 0; padding-left: 18px; }
.write-errors, .restore-bar { margin: 12px 0 0; }
.write-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 16px; }
@media (max-width: 960px) { .write-layout { grid-template-columns: minmax(0, 1fr); } .write-side { order: 2; } }
.write-form { gap: 18px; }
.title-input { font-size: 21px !important; font-weight: 750; letter-spacing: -.01em; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .two { grid-template-columns: minmax(0, 1fr); } }
.tags-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 10px; border-radius: 14px; background: var(--field); border: 1px solid var(--panel-line); cursor: text; }
.tags-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tags-wrap input { flex: 1; min-width: 90px; border: 0 !important; background: none !important; box-shadow: none !important; padding: 4px 2px !important; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 650; }
.tag-chip .rm { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; width: 20px; height: 20px; border-radius: 50%; opacity: .7; }
.tag-chip .rm:hover { opacity: 1; background: var(--lens); }
.counter { text-align: right; font-size: 12px; }
.counter.warn { color: var(--warn); }
.cover-box { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 10px; border-radius: 18px; border: 1.5px dashed var(--panel-line); }
.cover-box img { display: none; width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; }
.cover-box.has img { display: block; }
.cover-box:not(.has) #coverRemove { display: none; }
.cover-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cover-actions input[type=url] { flex: 1 1 200px; padding: 8px 12px; font-size: 14.5px; }
.body-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.body-label > span { font-size: 13px; font-weight: 650; color: var(--text-2); }
.mode-toggle { margin: 0; }

.editor-wrap .ql-toolbar.ql-snow {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 14px); z-index: 5;
  border: 1px solid var(--panel-line); border-radius: 16px 16px 0 0; padding: 6px 8px; font-family: inherit;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.editor-wrap .ql-container.ql-snow { border: 1px solid var(--panel-line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--field); font-family: var(--serif); font-size: 18px; color: var(--text); }
.editor-wrap .ql-editor { min-height: 420px; line-height: 1.7; padding: 18px 20px; }
.editor-wrap .ql-editor.ql-blank::before { color: var(--text-3); font-style: normal; left: 20px; right: 20px; }
.editor-wrap .ql-editor h2, .editor-wrap .ql-editor h3, .editor-wrap .ql-editor h4 { font-family: var(--sans); margin: 1em 0 .3em; }
.editor-wrap .ql-editor blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--text-2); }
.editor-wrap .ql-editor img { border-radius: 10px; }
.editor-wrap .ql-editor a { color: var(--accent); }
.editor-wrap .ql-editor .ql-code-block-container { background: var(--panel); border-radius: 10px; color: var(--text); }
.editor-wrap .ql-snow .ql-stroke { stroke: var(--text-2); }
.editor-wrap .ql-snow .ql-fill, .editor-wrap .ql-snow .ql-stroke.ql-fill { fill: var(--text-2); }
.editor-wrap .ql-snow .ql-picker { color: var(--text-2); }
.editor-wrap .ql-snow button:hover .ql-stroke, .editor-wrap .ql-snow .ql-active .ql-stroke, .editor-wrap .ql-snow .ql-picker-label:hover .ql-stroke { stroke: var(--accent); }
.editor-wrap .ql-snow button:hover .ql-fill, .editor-wrap .ql-snow .ql-active .ql-fill { fill: var(--accent); }
.editor-wrap .ql-snow button:hover, .editor-wrap .ql-snow .ql-active, .editor-wrap .ql-snow .ql-picker-label:hover, .editor-wrap .ql-snow .ql-picker-item:hover, .editor-wrap .ql-snow .ql-picker-item.ql-selected { color: var(--accent) !important; }
.editor-wrap .ql-snow .ql-picker-options { background: color-mix(in srgb, var(--bg) 90%, var(--text) 10%); border: 1px solid var(--panel-line) !important; border-radius: 12px; box-shadow: var(--glass-shadow); padding: 6px 10px; }
.editor-wrap .ql-snow .ql-picker.ql-header { width: 112px; }
.editor-wrap .ql-snow .ql-tooltip { background: color-mix(in srgb, var(--bg) 90%, var(--text) 10%); color: var(--text); border: 1px solid var(--panel-line); border-radius: 14px; box-shadow: var(--glass-shadow); padding: 8px 12px; z-index: 6; }
.editor-wrap .ql-snow .ql-tooltip input[type=text] { width: 220px; height: 32px; padding: 4px 10px; border-radius: 10px; font-size: 14px; }
.editor-wrap .ql-snow .ql-tooltip a { color: var(--accent); }
.editor-wrap .ql-toolbar.ql-snow .ql-formats { margin-right: 4px; }
@media (max-width: 600px) {
  .editor-wrap .ql-toolbar.ql-snow { top: calc(env(safe-area-inset-top, 0px) + 6px); }
  .editor-wrap .ql-toolbar.ql-snow .ql-formats { margin-right: 2px; }
  .editor-wrap .ql-editor { padding: 14px; min-height: 340px; }
  .editor-wrap .ql-container.ql-snow { font-size: 17px; }
}
.html-source { min-height: 420px; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace !important; border-radius: 16px !important; white-space: pre-wrap; tab-size: 2; }
.editor-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 4px 0; font-size: 12.5px; color: var(--text-2); }
.shortcut-hint { margin-left: auto; color: var(--text-3); }
@media (max-width: 600px) { .shortcut-hint { display: none; } }
kbd { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 6px; background: var(--lens); border: 1px solid var(--panel-line); color: var(--text-2); }
.facts-edit { border-radius: 18px; border: 1px solid var(--panel-line); padding: 4px 14px 12px; }
.facts-edit summary { padding: 10px 0; font-weight: 650; cursor: pointer; }
.facts-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.fact-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.fact-row input:not([type=checkbox]) { padding: 8px 12px; font-size: 14.5px; }
@media (max-width: 480px) { .fact-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) auto; } }
.publish-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.draft-saved { font-size: 13px; opacity: 0; transition: opacity .3s; }
.draft-saved.show { opacity: 1; }
.del-btn { margin-left: auto; }
.write-side { display: grid; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 30px); }
@media (max-width: 960px) { .write-side { position: static; } }
.side-card { padding: 14px 16px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-line); font-size: 14px; }
.side-card.ok { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.side-card h3 { font-size: 15px; margin: 0 0 4px; }
.side-card p { margin: 0; }
.side-card summary { font-weight: 700; cursor: pointer; }
.side-card[open] summary { margin-bottom: 8px; }
.toc-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-preview li { padding: 2px 0 2px 10px; border-left: 2px solid var(--panel-line); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-preview li[data-level="3"] { padding-left: 22px; color: var(--text-2); }
.toc-preview li[data-level="4"] { padding-left: 34px; color: var(--text-3); font-size: 12.5px; }
.toc-empty { font-size: 13px; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 13.5px; }
.snippet { font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; padding: 8px 10px; border-radius: 10px; background: var(--field); margin: 6px 0 0; }
.keys { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; font-size: 13px; }
.keys dt { color: var(--text-2); } .keys dd { margin: 0; text-align: right; }

/* ---------- Admin review ---------- */
.rv-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.review-card { gap: 10px; }
.rv-top { display: flex; gap: 12px; align-items: flex-start; }
.rv-top > input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.rv-thumb { width: 92px; height: 70px; object-fit: cover; border-radius: 12px; flex: none; }
.rv-main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.rv-title { font-size: 17px; font-weight: 750; color: var(--text); }
.rv-author { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.rv-excerpt { margin: 0; color: var(--text-2); }
.rv-preview summary { cursor: pointer; font-weight: 650; color: var(--accent); }
.rv-preview .art-body { font-size: 16px; max-height: 480px; overflow-y: auto; margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--field); }
.is-pick { color: #ffb300; }
@media (max-width: 520px) { .rv-thumb { display: none; } }

/* Phones and tablets: contents drawer (kept last so it wins over the desktop sidebar rules) */
@media (max-width: 960px) {
  /* The same contents sidebar as on desktop, sliding in from the side */
  .toc-sidebar { position: fixed; z-index: 101; top: 0; bottom: 0; right: 0; width: min(320px, 86vw); max-height: none; padding: calc(env(safe-area-inset-top, 0px) + 14px) 12px 20px;
    background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-left: 1px solid var(--panel-line);
    -webkit-mask-image: none; mask-image: none; transform: translateX(105%); transition: transform .28s var(--ease); box-shadow: var(--glass-shadow); }
  body.toc-open .toc-sidebar { transform: none; }
  .toc-backdrop { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .4); }
  .toc-backdrop[hidden] { display: none; }
  .toc-fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 46; right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
    padding: 9px 14px; border-radius: 999px; color: var(--text); font: 650 14px/1 inherit; font-family: inherit; cursor: pointer; }
  .toc-fab svg { width: 17px; height: 17px; fill: var(--accent); }
  .toc-fab b { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
  .toc-mobile { display: none !important; }
}

/* Easy writing: quick buttons, live contents, templates, focus mode */
.ez-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; margin-bottom: 8px; border-radius: 16px; border: 1px solid var(--panel-line); background: var(--field); }
.ez-bar button, .ez-tpl summary { border: 1px solid var(--panel-line); background: var(--panel, transparent); color: var(--text); border-radius: 999px; padding: 7px 12px; font: 600 13.5px var(--sans); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; list-style: none; white-space: nowrap; }
.ez-bar button:hover, .ez-tpl summary:hover { border-color: var(--accent); background: var(--accent-soft); }
.ez-bar button b { font-weight: 800; color: var(--accent); }
.ez-bar button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.ez-bar button i { font-style: normal; font-size: 11.5px; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.ez-sp { flex: 1; }
.ez-tpl { position: relative; } .ez-tpl summary::-webkit-details-marker { display: none; }
.ez-tpl-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, 86vw); border-radius: 16px; padding: 6px; display: grid; gap: 2px; box-shadow: var(--glass-shadow); }
.ez-tpl-menu button { border: 0 !important; border-radius: 12px !important; display: grid !important; justify-items: start; text-align: left; padding: 9px 12px !important; white-space: normal !important; background: none !important; }
.ez-tpl-menu button:hover { background: var(--accent-soft) !important; }
.ez-tpl-menu small { color: var(--text-2); font-weight: 500; font-size: 12.5px; }
.live-toc { border: 1px dashed var(--panel-line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.lt-head { font-size: 14px; margin-bottom: 4px; }
.live-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.live-toc li button { width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: 600 14px/1.35 var(--sans); padding: 5px 8px; border-radius: 8px; cursor: pointer; white-space: pre-wrap; }
.live-toc li.lt-l3 button { padding-left: 26px; font-weight: 500; color: var(--text-2); }
.live-toc li.lt-l4 button { padding-left: 44px; font-weight: 500; font-size: 13px; color: var(--text-3); }
.live-toc li button:hover { background: var(--field); }
.live-toc li.on button { background: var(--accent-soft); color: var(--accent); }
.lt-empty { margin: 4px 0 0; }
.ql-editor .ez-flash { animation: ezFlash 1.2s ease-out; border-radius: 6px; }
@keyframes ezFlash { 0% { background: var(--accent-soft); } 100% { background: transparent; } }
.editor-wrap .ql-editor h2 { font-size: 26px; border-bottom: 1px solid var(--panel-line); padding-bottom: 4px; }
.editor-wrap .ql-editor h3 { font-size: 21px; }
/* Focus mode: just the writing, full screen */
body.write-focus { overflow: hidden; }
body.write-focus .body-field { position: fixed; inset: 0; z-index: 900; background: var(--bg); padding: 14px max(14px, calc(50vw - 430px)); overflow-y: auto; margin: 0; }
body.write-focus.write-html .body-field { padding: 14px; }
body.write-focus .editor-wrap .ql-toolbar.ql-snow { top: 0; }
body.write-focus .editor-wrap .ql-editor { min-height: 70vh; font-size: 19px; }
@media (max-width: 600px) { .ez-bar { gap: 5px; padding: 6px; } .ez-bar button, .ez-tpl summary { padding: 6px 10px; font-size: 12.5px; } .ez-sp { display: none; } }

/* UAP Encyclopedia pages */
.a-cat.k-wiki { background: rgba(100, 210, 255, .16); color: #64d2ff; }
[data-theme="light"] .a-cat.k-wiki { color: #0a6fa8; }
.wiki-stub { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 159, 10, .12); border: 1px solid rgba(255, 159, 10, .4); font-size: 14.5px; line-height: 1.5; }
.wiki-stub > span { font-size: 22px; }
.art-body a.wl { text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 70%, transparent); }
.art-body a.wl:hover { border-bottom-style: solid; }
.art-body .wiki-events li { margin: 6px 0; }
.art-body .wiki-events small { color: var(--text-2); }

/* Encyclopedia promo on the Articles page */
.wiki-promo { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 16px; border-radius: 18px; text-decoration: none; color: inherit;
  background: linear-gradient(120deg, rgba(124, 92, 255, .16), rgba(0, 200, 255, .12)); border: 1px solid rgba(124, 92, 255, .3); }
.wiki-promo:hover { border-color: rgba(124, 92, 255, .6); }
.wiki-promo-ic { font-size: 28px; line-height: 1; }
.wiki-promo b { display: block; font-size: 1.05rem; }
.wiki-promo small { display: block; opacity: .8; }
.wiki-promo-go { margin-left: auto; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .wiki-promo { padding: 12px 14px; gap: 10px; } .wiki-promo-go { display: none; } }

/* Editor: HTML mode with a live preview, locked boxes in the visual editor, templates, preview page */
.html-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.html-split.no-preview { grid-template-columns: minmax(0, 1fr); }
.html-split .html-source { width: 100%; }
.html-preview { position: sticky; top: 80px; border: 1px solid var(--panel-line); border-radius: 16px; overflow: hidden; background: var(--bg); display: grid; grid-template-rows: auto 1fr; height: min(78vh, 900px); }
.html-preview.off { height: auto; position: static; }
.html-preview.off iframe { display: none; }
.html-preview .hp-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--panel-line); font-size: 13.5px; background: var(--panel); }
.html-preview .hp-head .link-btn { margin-left: auto; }
.html-preview iframe { width: 100%; height: 100%; border: 0; background: var(--bg); }
@media (max-width: 1100px) { .html-split { grid-template-columns: minmax(0, 1fr); } .html-preview { position: static; height: 70vh; } }
.editor-wrap .ql-editor .ql-rawbox { position: relative; margin: 10px 0 14px; padding: 26px 12px 10px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--panel); font-family: var(--sans); font-size: 14px; cursor: default; user-select: none; overflow: hidden; }
.editor-wrap .ql-editor .ql-rawbox::before { content: "📦 Box kept as it is — edit it in HTML mode"; position: absolute; top: 4px; left: 10px; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.editor-wrap .ql-editor .ql-rawbox .infobox { float: none; margin: 0; max-width: 340px; }
.editor-wrap .ql-editor .ql-rawbox table { border-collapse: collapse; } .editor-wrap .ql-editor .ql-rawbox th, .editor-wrap .ql-editor .ql-rawbox td { padding: 3px 8px; text-align: left; }
.tpl-dialog { width: min(980px, 94vw); max-height: 88vh; overflow: auto; border: 1px solid var(--panel-line); border-radius: 22px; padding: 18px 20px 22px; color: var(--text); background: color-mix(in srgb, var(--bg) 94%, var(--text) 6%); box-shadow: var(--glass-shadow); }
.tpl-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .tpl-head h2 { margin: 0; }
.tpl-dialog h3 { margin: 18px 0 8px; font-size: 15px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tpl-card { display: grid; gap: 4px; }
.tpl-use { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); cursor: pointer; font: inherit; }
.tpl-use:hover, .tpl-use:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.tpl-use .tpl-ic { font-size: 26px; line-height: 1; }
.tpl-use b { display: block; font-size: 15.5px; }
.tpl-use small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.tpl-use .tpl-outline { color: var(--text-3); margin-top: 6px; } .tpl-use .tpl-outline b { display: inline; font-size: inherit; font-weight: 600; color: var(--text-2); }
.tpl-use .tpl-facts { color: var(--accent); }
.tpl-del { justify-self: end; font-size: 12.5px; }
.tpl-ask { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0; }
.tpl-maker { margin-top: 18px; border: 1px dashed var(--panel-line); border-radius: 16px; padding: 10px 14px; }
.tpl-maker summary { cursor: pointer; }
.tpl-form { display: grid; gap: 10px; margin-top: 10px; }
.preview-bar { position: sticky; top: 70px; z-index: 50; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px auto; max-width: 1200px; }
.publish-row { flex-wrap: wrap; }

/* ---------- 📍 Map location (article editor, app/artgeo.php, assets/geoedit.js) ---------- */
.geo-edit { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--panel-line); border-radius: var(--radius); background: var(--panel); }
.geo-edit > summary { cursor: pointer; font-weight: 650; }
.geo-edit[open] > summary { margin-bottom: 8px; }
.geo-map { height: 280px; border-radius: var(--radius); overflow: hidden; margin: 8px 0 12px; background: #0b0b10; }
.geo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .geo-fields { grid-template-columns: 1fr; } .geo-map { height: 220px; } }
.geo-mode { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
