/* Styles propres à une page, chargés après style.css par cette page seulement
   (bloc page_css de base.html). Sortis de style.css pour l'alléger. */

.panorama-legend-swatch{ width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.topo-subtitle-h{ font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 26px 0 10px; }

.topo-days{ font-size: 14px; color: var(--ink-soft); }

.topo-days a{ color: var(--indigo); }

.topo-days-label{ font-family: var(--font-ui); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }

.topo-lieu-num{
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topo-map-full{
  position: absolute; left: 54px; top: 10px; z-index: 500;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font: 600 13px/1 var(--font-ui); cursor: pointer;
  box-shadow: 0 2px 8px rgba(33, 28, 21, 0.18);
}

.topo-map-wrap.is-full .topo-map-full{ left: auto; right: 64px; }

.topo-profile{ margin: 16px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 10px 4px; }

.topo-profile figcaption{ font-family: var(--font-ui); font-size: 11.5px; color: var(--ink-soft); padding: 4px 4px 6px; }

.topo-profile{ overflow-x: auto; }

.topo-visugpx{ margin-top: 16px; }

.topo-steps{ position: relative; }

.topo-block{ position: relative; margin: 0 0 26px; }

.topo-block--text{ padding-left: 58px; }

.topo-block--text::before{
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -26px;
  border-left: 2px dotted var(--line);
}

.topo-step-title{ display: flex; align-items: center; gap: 14px; margin-left: -58px; font-style: italic; font-weight: 600; font-size: clamp(19px, 2.6vw, 23px); color: var(--ink); margin-bottom: 10px; }

.topo-step-num{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--brass);
  color: var(--brass);
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topo-step-body{ font-size: 16.5px; line-height: 1.72; }

.topo-step-body p{ margin-bottom: 12px; }

.topo-photo{ margin: 0; }

.topo-photo img{ width: 100%; height: auto; border-radius: var(--radius-sm); }

.topo-photo figcaption{ font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

.topo-photo figcaption strong{ color: var(--ink); margin-right: 4px; }

.topo-pano-title{ font-style: italic; font-weight: 600; font-size: 20px; margin-bottom: 10px; }

.topo-pano{ position: relative; }

.topo-pano-scroll{ overflow-x: auto; border-radius: var(--radius-sm); background: var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }

.topo-pano-legend{ display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; }

.topo-pano-legend li{ display: flex; align-items: center; gap: 8px; }

.topo-pano-legend .panorama-legend-swatch{ width: 18px; height: 4px; border-radius: var(--radius-xs); }

.topo-pano-caption{ margin-top: 8px; font-size: 15px; color: var(--ink-soft); }

.topo-download{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
  background: var(--indigo);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
}

.topo-download .topo-section-title{ color: var(--paper); margin-bottom: 8px; }

.topo-download-text{ flex: 1 1 380px; font-size: 15px; opacity: 0.95; }

.topo-download-actions{ display: flex; flex-wrap: wrap; gap: 10px; }

.topo-download-actions a{ display: inline-flex; align-items: center; gap: 6px; }

.topo-download .btn-primary{ background: var(--brass); border-color: var(--brass); color: #2B1E05; text-decoration: none; font-size: 14px; padding: 12px 18px; }

.topo-download .btn-primary small{ opacity: 0.7; }

.topo-download .btn-ghost{ border-color: var(--paper); color: var(--paper); }

.topo-download .btn-ghost:hover{ background: var(--paper); color: var(--indigo); }

.topo-block-admin{ display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

.topo-block--text .topo-block-admin{ margin-left: -58px; }

.topo-block-edit{ flex-basis: auto; }

.topo-block-edit[open]{ flex-basis: 100%; order: 10; }

.topo-block-edit > summary{ list-style: none; }

.topo-block-edit > summary::-webkit-details-marker{ display: none; }

.topo-block-edit form{ margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }

.topo-kind-choice{ border: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

.topo-kind-choice legend{ font-family: var(--font-ui); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }

.topo-kind-choice label{ display: flex; align-items: center; gap: 6px; cursor: pointer; }

.topo-summit-choices{ display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin: 12px 0 16px; }

.topo-summit-choices label{ display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }

.topo-summit-choices small{ color: var(--ink-soft); font-family: var(--font-ui); font-size: 11px; }

.topo-summit-day{ margin-left: auto; }

.topo-delete{ margin-top: 10px; }

@media (max-width: 760px){
  .topo-block--text{ padding-left: 0; }
  .topo-block--text::before{ display: none; }
  .topo-step-title{ margin-left: 0; }
  .topo-step-num{ width: 34px; height: 34px; font-size: 14px; }
  .topo-block--text .topo-block-admin{ margin-left: 0; }
  .topo-download{ padding: 20px; }
}

.topo-practical{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 26px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.topo-practical-item{ background: var(--card); padding: 4px 16px 12px; }

.topo-practical-item .topo-subtitle-h{ margin: 12px 0 6px; }

.topo-practical-text{ font-size: 15px; line-height: 1.6; }

.topo-practical-text p{ margin-bottom: 6px; }

.topo-photo figcaption p{ display: inline; }

.topo-schemas{ margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }

.topo-schema-figure{
  margin: 0;
  background: #FBF7EC;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(33, 28, 21, 0.08);
  scroll-margin-top: 70px;
}

.topo-schema-canvas svg{ display: block; width: 100%; height: auto; }

.topo-schema-figure.is-empty .topo-schema-canvas{ display: none; }

.topo-schema-empty{ padding: 26px 20px 6px; color: var(--ink-soft); font-style: italic; }

.topo-schema-caption{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.topo-schema-name{ font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.topo-schema-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.topo-schema-actions .inline-form{ display: inline; margin: 0; }

.topo-schema-dl{
  font: 600 13px var(--font-ui);
  color: var(--indigo);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  cursor: pointer;
}

.topo-schema-dl:hover{ border-color: var(--indigo); }

.topo-schema-edit{ font-size: 13px; padding: 7px 12px; }

.topo-icon-btn{ background: none; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 5px 9px; cursor: pointer; color: var(--ink); }

.topo-icon-btn:hover{ border-color: var(--indigo); }

.topo-icon-btn--danger:hover{ border-color: var(--danger); }

.topo-schema-new{ margin-bottom: 0; }

html.ts-editor-open{ overflow: hidden; }

.ts-editor{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: #EAE4D6;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}

.ts-editor[hidden]{ display: none; }

.ts-editor button{ font: inherit; cursor: pointer; }

.ts-top{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 12px;
  background: var(--indigo);
  color: var(--paper);
}

.ts-title{
  flex: 1 1 240px;
  min-width: 0;
  font: italic 600 18px var(--font-display);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
}

.ts-title::placeholder{ color: rgba(251, 247, 236, 0.55); }

.ts-top-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.ts-top-actions button{
  min-width: 34px;
  padding: 6px 10px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xs);
}

.ts-top-actions button:hover{ background: rgba(255, 255, 255, 0.18); }

.ts-top-actions button[aria-pressed="true"]{ background: var(--brass); border-color: var(--brass); color: #2B1E05; }

.ts-top-actions .ts-primary{ background: var(--brass); border-color: var(--brass); color: #2B1E05; font-weight: 700; }

.ts-top-actions .ts-primary:disabled{ opacity: 0.6; }

.ts-sep{ width: 1px; height: 22px; background: rgba(255, 255, 255, 0.25); margin: 0 2px; }

.ts-flash{ font-family: var(--font-ui); font-size: 12px; color: #E9C97F; min-width: 0; }

.ts-flash.is-error{ color: #FFB4A2; }

.ts-body{ flex: 1; display: grid; grid-template-columns: 236px 1fr 262px; min-height: 0; }

.ts-palette, .ts-side{ overflow-y: auto; background: #F7F2E6; padding: 10px; }

.ts-palette{ border-right: 1px solid var(--line); }

.ts-side{ border-left: 1px solid var(--line); }

.ts-tools{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }

.ts-tools button, .ts-btn, .ts-helpers button{
  padding: 7px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--ink);
  text-align: left;
}

.ts-tools button.is-active{ background: var(--indigo); border-color: var(--indigo); color: var(--paper); }

.ts-opt{ display: flex; align-items: center; gap: 7px; margin: 5px 2px; font-size: 13px; cursor: pointer; }

.ts-group{ margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }

.ts-group > summary{ cursor: pointer; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 4px 0; }

.ts-group-list{ display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.ts-sym{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 2px 2px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  text-align: left;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
}

.ts-sym svg{ flex-shrink: 0; background: #FBF7EC; border-radius: var(--radius-xs); }

.ts-sym:hover{ border-color: var(--line); background: #fff; }

.ts-sym.is-active{ border-color: var(--indigo); background: #fff; box-shadow: inset 3px 0 0 var(--indigo); }

.ts-stage{ position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.ts-canvas{ flex: 1; min-height: 0; touch-action: none; user-select: none; cursor: default; }

.ts-canvas svg{ display: block; width: 100%; height: 100%; }

.ts-canvas[data-mode="draw"]{ cursor: crosshair; }

.ts-canvas[data-mode="pan"]{ cursor: grab; }

.ts-canvas .ts-item{ cursor: move; }

.ts-canvas[data-mode="draw"] .ts-item{ cursor: crosshair; }

.ts-canvas .ts-item.is-selected{ filter: drop-shadow(0 0 3px rgba(45, 65, 89, 0.55)); }

.ts-h{ fill: #fff; stroke: var(--indigo); cursor: grab; }

.ts-h--mid{ fill: rgba(255, 255, 255, 0.6); stroke-dasharray: none; opacity: 0.85; cursor: copy; }

.ts-sel{ fill: none; stroke: var(--indigo); pointer-events: none; }

.ts-cursor{ fill: var(--indigo); opacity: 0.6; pointer-events: none; }

.ts-editor.is-preview .ts-canvas{ overflow: auto; padding: 18px; }

.ts-editor.is-preview .ts-canvas svg{ height: auto; max-width: 1100px; margin: 0 auto; box-shadow: 0 6px 20px rgba(33, 28, 21, 0.15); }

.ts-hint{
  margin: 0;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: #F7F2E6;
  border-top: 1px solid var(--line);
}

.ts-side h3{ font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 0 10px; }

.ts-props{ padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }

.ts-field{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-soft); }

.ts-field input[type="text"], .ts-field input[type="number"], .ts-field select{
  font: 14px var(--font-body);
  color: var(--ink);
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #fff;
}

.ts-range{ display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 12.5px; color: var(--ink-soft); }

.ts-prop-actions{ display: flex; gap: 6px; margin-top: 8px; }

.ts-btn.ts-danger{ color: var(--danger); }

.ts-muted{ color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

.ts-keys kbd{ font-family: var(--font-ui); font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0 4px; }

.ts-radio{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }

.ts-radio label{ display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }

.ts-file{ display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; margin: 6px 0; }

.ts-file[hidden]{ display: none; }

.ts-helpers{ display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }

.ts-helpers button:disabled{ opacity: 0.45; cursor: default; }

.ts-format{ font-family: var(--font-ui); font-size: 11.5px; color: var(--ink-soft); margin-top: 10px; }

.ts-float{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 5px;
  background: rgba(33, 28, 21, 0.86);
  color: var(--paper);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(33, 28, 21, 0.3);
  font-size: 13px;
}

.ts-float:empty, .ts-float[hidden]{ display: none; }

.ts-float > span{ padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ts-float button{
  min-height: 38px;
  min-width: 38px;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper);
  white-space: nowrap;
}

.ts-float button:disabled{ opacity: 0.45; }

.ts-float .ts-float-primary{ background: var(--brass); color: #2B1E05; font-weight: 700; }

.ts-float .ts-float-danger{ background: rgba(255, 140, 120, 0.25); }

.ts-tabs{ display: none; }

@media (max-width: 900px){
  .ts-top{ gap: 6px; padding: 6px 8px; flex-wrap: wrap; }
  .ts-role{ flex: 0 0 auto; max-width: 42%; }
  .ts-title{ flex: 1 1 0; font-size: 15px; padding: 5px 8px; }
  .ts-top-actions{ flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .ts-top-actions button{ flex-shrink: 0; min-height: 36px; }
  .ts-top-actions .ts-primary{ order: -2; }
  .ts-top-actions .ts-close{ order: -3; }
  .ts-top-actions .ts-flash{ order: -1; flex-shrink: 0; }
  .ts-top-actions .ts-flash:empty{ display: none; }
  .ts-body{ display: flex; flex-direction: column; }
  .ts-stage{ order: 0; flex: 1 1 auto; min-height: 0; }
  .ts-hint{ display: none; }
  .ts-palette, .ts-side{ order: 2; flex: 0 0 auto; max-height: 42vh; border: none; border-top: 1px solid var(--line); }
  .ts-editor:not([data-tab="symbols"]) .ts-palette{ display: none; }
  .ts-editor:not([data-tab="props"]):not([data-tab="bg"]) .ts-side{ display: none; }
  .ts-editor[data-tab="props"] .ts-bg-panel{ display: none; }
  .ts-editor[data-tab="bg"] .ts-props{ display: none; }
  .ts-palette .ts-group-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
  .ts-sym{ min-height: 40px; }
  .ts-tools button{ min-height: 40px; }
  .ts-tabs{
    order: 1;
    display: flex;
    gap: 4px;
    padding: 5px 6px;
    background: var(--indigo);
  }
  .ts-tabs button{
    flex: 1;
    min-height: 40px;
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--paper);
    font-size: 13px;
  }
  .ts-tabs button[aria-pressed="true"]{ background: var(--brass); border-color: var(--brass); color: #2B1E05; font-weight: 700; }
  .ts-tabs .ts-tabs-hide{ flex: 0 0 44px; }
  .ts-editor:not([data-tab]) .ts-tabs-hide, .ts-editor[data-tab=""] .ts-tabs-hide{ display: none; }
}

@media (max-width: 700px){
  .topo-schema-canvas{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topo-schema-canvas svg{ width: 680px; max-width: none; }
}

.topo-nom-link{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 16px;
  border: 1px dashed var(--brass);
  border-radius: var(--radius-sm);
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
}

.topo-nom-link small{ font-weight: 400; color: var(--ink-soft); font-family: var(--font-ui); font-size: 12px; }

.topo-nom-link:hover{ background: var(--card); }

.topo-nomenclature{ max-width: 980px; margin: 0 auto; padding: 30px 20px 60px; }

.topo-nom-header p{ max-width: 720px; margin: 10px 0 18px; font-size: 16px; line-height: 1.6; }

.topo-nom-note{ color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; max-width: 760px; margin: 8px 0 14px; }

.ts-nomenclature{ columns: 2 420px; column-gap: 28px; }

.ts-nom-group{ break-inside: avoid; margin-bottom: 22px; }

.ts-nom-group h3{
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brass);
  margin-bottom: 4px;
}

.ts-nom-wrap{ overflow-x: auto; margin-bottom: 18px; }

.ts-nom-table{ width: 100%; border-collapse: collapse; font-size: 14px; }

.ts-nom-table th, .ts-nom-table td{ text-align: left; vertical-align: middle; padding: 6px 8px; border-bottom: 1px solid var(--line); }

.ts-nom-table tbody th{ font-weight: 600; white-space: nowrap; }

.ts-nom-table tbody td:last-child{ color: var(--ink-soft); line-height: 1.4; }

.ts-nom-table thead th{ font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.ts-nom-sym{ width: 60px; padding-left: 0 !important; }

.ts-nom-sym svg{ display: block; background: #FBF7EC; border-radius: var(--radius-xs); }

.ts-grade-table tbody th{ font-family: var(--font-ui); }

.ts-grade{ display: inline-block; min-width: 38px; text-align: center; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--g); color: #fff; font: 700 13px var(--font-ui); }

.ts-mono{ font-family: var(--font-ui); white-space: nowrap; }

@media (max-width: 600px){
  .ts-nom-table tbody th{ white-space: normal; }
}

.topo-schema-index{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.topo-schema-index-label{ font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }

.topo-schema-index a{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.topo-schema-index a:hover{ border-color: var(--indigo); }

.topo-schema-index b{ display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); color: #fff; font: 700 12px var(--font-ui); }

.topo-schema-label{ display: inline-flex; align-items: center; gap: 10px; }

.topo-schema-num{ font: 700 12px var(--font-ui); color: #fff; background: var(--indigo); border-radius: var(--radius-xs); padding: 2px 6px; }

.topo-schema-role{ font: 700 11.5px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

.topo-schema-label .topo-schema-name{ text-transform: none; letter-spacing: normal; font: italic 600 16px var(--font-display); color: var(--indigo); }

.topo-schema-index strong{ font-weight: 600; }

.ts-role{ font: 600 13px var(--font-ui); color: var(--paper); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-xs); padding: 7px 8px; }

.ts-role option{ color: var(--ink); }

.topo-seo-grid{ display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; margin-top: 14px; }

.seo-gauge{ height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 14px; }

.seo-gauge-fill{ display: block; height: 100%; width: var(--p); border-radius: 999px; margin: 0; padding: 0; }

.seo-checks{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

.seo-checks li{ display: flex; gap: 10px; line-height: 1.4; }

.seo-check-mark{ flex-shrink: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; }

.seo-checks .is-ok .seo-check-mark{ background: #557A46; }

.seo-checks .is-ko .seo-check-mark{ background: var(--danger); }

.seo-checks .is-ok strong{ font-weight: 500; color: var(--ink-soft); }

.seo-weight{ font-family: var(--font-ui); color: var(--ink-soft); }

.seo-hint{ color: var(--ink-soft); font-size: 13px; }

.serp{ display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-family: Arial, sans-serif; margin-bottom: 8px; }

.serp-site{ font-size: 14px; color: #202124; }

.serp-url{ font-size: 12px; color: #4d5156; }

.serp-title{ font-size: 19px; color: #1a0dab; line-height: 1.3; margin-top: 4px; }

.serp-desc{ font-size: 14px; color: #4d5156; line-height: 1.5; }

.seo-tools{ margin: 4px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

@media (max-width: 800px){
  .topo-seo-grid{ grid-template-columns: 1fr; }
}

.topo-pick-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; max-height: 620px; overflow-y: auto; padding-right: 4px; }

.topo-pick-item{ display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; font-size: 12.5px; }

.topo-pick-item.is-suggested{ border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }

.topo-pick-item img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--line); }

.topo-pick-meta{ display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; flex: 1; }

.topo-pick-context{ color: var(--ink-soft); font-family: var(--font-ui); font-size: 11px; }

.topo-pick-alt{ line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.topo-pick-actions{ display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); }

.topo-pick-actions label{ display: flex; align-items: center; gap: 4px; cursor: pointer; }

.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topos-index{ max-width: 1180px; margin: 0 auto; padding: 36px 24px 70px; }

.topos-index-header{ max-width: 760px; margin-bottom: 22px; }

.topos-index-title{ font: italic 600 clamp(32px, 5vw, 46px) var(--font-display); color: var(--indigo); margin: 4px 0 8px; }

.topos-index-header p{ font-size: 16px; line-height: 1.6; }

.topos-index-header a{ color: var(--indigo); }

.topos-search input{
  width: 100%;
  font: 16px var(--font-body);
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%236B6250' stroke-width='1.6'/%3E%3Cpath d='M11 11 L15 15' stroke='%236B6250' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 13px center;
}

.topos-search input:focus{ outline: none; border-color: var(--indigo); }

.topos-filters{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }

.topos-chips{ display: flex; flex-wrap: wrap; gap: 6px; }

.topos-chips + .topos-chips{ margin-top: 8px; }

.topos-chips-label{ align-self: center; margin: 0 2px 0 8px; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.topos-chip input{ position: absolute; opacity: 0; pointer-events: none; }

.topos-chip span{ display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; background: #fff; }

.topos-chip input:checked + span{ background: var(--indigo); border-color: var(--indigo); color: var(--paper); }

.topos-chip input:focus-visible + span{ outline: 2px solid var(--brass); outline-offset: 2px; }

.topos-selects{ display: flex; flex-wrap: wrap; gap: 10px; }

.topos-selects label{ display: flex; flex-direction: column; gap: 3px; font: 11px var(--font-ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.topos-selects select{ font: 14px var(--font-body); padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }

.topos-count{ font-family: var(--font-ui); font-size: 13px; color: var(--ink-soft); margin: 18px 0 10px; }

.topos-card a{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topos-card a:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(33, 28, 21, 0.12); }

.topos-card-img{ position: relative; aspect-ratio: 16 / 9; background: var(--indigo); display: block; }

.topos-card-img img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.topos-card-noimg{ display: grid; place-items: center; height: 100%; font-size: 40px; color: rgba(251, 247, 236, 0.5); }

.topos-card-diff{ position: absolute; top: 10px; right: 10px; }

.topos-card-draft{ position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--ink); font: 600 11px var(--font-ui); padding: 3px 8px; border-radius: var(--radius-xs); }

.topos-card-body{ display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }

.topos-card-kicker{ font: 11.5px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

.topos-card-title{ font: italic 600 21px/1.2 var(--font-display); color: var(--indigo); }

.topos-card-sub{ font-size: 14px; color: var(--ink-soft); line-height: 1.4; }

.topos-card-facts{ display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 13.5px var(--font-ui); margin-top: 2px; }

.topos-card-summits{ font-size: 13.5px; line-height: 1.4; }

.topos-card-foot{ margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font: 12px var(--font-ui); color: var(--ink-soft); }

.topos-seo{ margin-top: 48px; }

.topos-seo-table a{ color: var(--indigo); }

@media (max-width: 600px){
  .topos-index{ padding: 24px 16px 50px; }
}

.topo-comments{ max-width: 760px; }

.topo-comments-count{ font-family: var(--font-ui); font-size: 0.6em; font-style: normal; color: var(--ink-soft); }

.topo-comments-intro{ color: var(--ink-soft); margin: 4px 0 22px; }

.topo-comments > .comment-list{ margin-bottom: 26px; }

.topo-comment-form{ border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 20px 22px; }

.topo-comment-form .comment-reply-indicator,
.topo-comment-form .comment-identity-row{ justify-content: flex-start; gap: 6px; }

.topo-comment-form .comment-reply-indicator button,
.topo-comment-form .comment-identity-change{ margin-left: auto; }

.topos-new-panel{ margin: 0 0 22px; }

.topos-new-panel > summary{ display: inline-block; list-style: none; cursor: pointer; }

.topos-new-panel > summary::-webkit-details-marker{ display: none; }

.topos-new-form{ margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }

.topos-new-row{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 16px; }

.topos-new-places{ border: 0; padding: 0; margin: 4px 0 0; }

.topos-new-places legend{ margin-bottom: 8px; }

.topos-new-checks{ display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; }

@media (max-width: 640px){
  .topos-new-row{ grid-template-columns: 1fr; }
}

.topo-step-facts{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: -2px 0 14px;
  padding: 0;
}

.topo-step-fact{
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
}

.topo-step-fact--distance::before{ content: "↔ "; color: var(--ink-soft); font-weight: 400; }

.topo-step-fact--up::before{ content: "↗ "; color: var(--ink-soft); font-weight: 400; }

.topo-step-fact--down::before{ content: "↘ "; color: var(--ink-soft); font-weight: 400; }

.topo-step-fact--duration::before{ content: "⏱ "; font-weight: 400; }

.topo-step-fact--grade{ background: var(--indigo); border-color: var(--indigo); color: var(--paper); }

.topo-step-gallery{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 4px; }

.topo-step-gallery--single{ grid-template-columns: minmax(0, 1fr); }

.topo-step-img{ margin: 0; min-width: 0; }

.topo-step-img-inner{ position: relative; width: fit-content; max-width: 100%; margin: 0 auto; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; line-height: 0; }

.topo-step-img-inner img{ display: block; width: auto; max-width: 100%; height: auto; max-height: 460px; }

.topo-step-img-inner .topo-pano-overlay{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.topo-step-img figcaption{ font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

.topo-step-img figcaption .topo-pano-legend{ margin-top: 4px; }

.topo-step-img-admin{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }

.topo-step-img-admin form{ margin: 0; }

.topo-step-img-admin .btn-danger{ padding: 3px 9px; }

@media (max-width: 640px){
  .topo-step-gallery{ grid-template-columns: minmax(0, 1fr); }
}

.topo-step-fields{ border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px 2px; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0 10px; }

.topo-step-fields legend{ font-family: var(--font-ui); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); padding: 0 4px; }

.topo-step-fields .field{ margin-bottom: 8px; min-width: 0; }

.topo-day{ margin: 34px 0 16px; padding: 12px 0 10px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; scroll-margin-top: 80px; }

.topo-day:first-of-type{ margin-top: 8px; }

.topo-day-title{ font-family: var(--font-display); font-size: 26px; font-style: italic; margin: 0; }

.topo-day-kicker{ font-family: var(--font-ui); font-style: normal; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); vertical-align: middle; }

.topo-day-facts{ margin: 0; }

.topo-reorder-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 18px; }

.step-gallery-grid{ flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; padding: 12px 18px; }

.step-gallery-item{ position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font-size: 12px; color: var(--ink-soft); line-height: 1.3; }

.step-gallery-item img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 3px solid transparent; }

.step-gallery-item input{ position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; }

.step-gallery-item:has(input:checked) img{ border-color: var(--brass); }

.step-gallery-item.is-suggested span::before{ content: "★ "; color: var(--brass); }

.topo-place-fields{ border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px 8px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; min-width: 0; }

.topo-place-fields legend{ font-family: var(--font-ui); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); padding: 0 4px; }

.topo-place-fields .field{ margin-bottom: 8px; min-width: 0; }

.topo-place-fields .field-hint{ grid-column: 1 / -1; }

.topo-tabs-share{
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}

.topo-tabs-share:hover{ background: var(--card); }

.topos-map-wrap{
  margin: 0 0 18px;
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  border: 1px solid var(--line);
}
