/* Guide pages share a compact title block and one continuous map workspace. */
.guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 40px;
  padding: clamp(22px, 3.5vw, 46px) 0 24px;
}
.guide-head h1 {
  margin: 0;
  color: #f2f6fa;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.06;
  letter-spacing: -.055em;
}
.guide-head h1 span { color: inherit; }
.guide-head .lead {
  margin: 10px 0 0;
  max-width: 62ch;
  color: #afc0d0;
  font-size: 15px;
  line-height: 1.5;
}
.guide-head .intro-meta,
.guide-head .key-date {
  margin: 0;
  padding: 2px 0 2px 16px;
  text-align: left;
  border-left: 2px solid #28c5e0;
}
.guide-head .intro-meta p {
  margin: 2px 0;
  white-space: normal;
  color: #d3dfe8;
  font-size: 13px;
}
.guide-head .intro-meta strong { font-size: inherit; }
.guide-head .date { margin: 0; color: #a2b5c7; }
.guide-head .intro-meta a { color: #7ed9ef; }
.guide-head .key-date { line-height: 1.7; }
.guide-head.route-intro h1 { font-size: clamp(32px, 3.6vw, 52px); }

.map-heading,
.x01-tools,
.key-tools {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #2c3f51;
  border-top: 2px solid #62ccdf;
  background: #101923;
}
.map-heading h2 { font-size: 17px; letter-spacing: -.02em; }
.map-heading p { color: #b3c4d4; }
.map-layout,
.route-layout,
.x01-layout {
  gap: 0;
  align-items: stretch;
  border: 1px solid #2c3f51;
  border-top: 0;
  background: #0a111a;
}
.map-column, .route-map-column, .x01-panel { min-width: 0; }
.map-layout .location-panel,
.route-layout .location-panel,
.x01-layout .x01-sidebar {
  align-self: stretch;
  border: 0;
  border-left: 1px solid #2c3f51;
  border-radius: 0;
  background: #0e1721;
}
.map-column > .dmz-controls,
.route-map-column > .dmz-controls,
.x01-panel > .dmz-controls {
  padding: 8px 12px;
  margin: 0;
}
.dmz-controls button, #x01-controls button {
  min-height: 44px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.2;
}
.dmz-controls #x01-controls { margin: 0; }
#dmz-map-stage, #loot-route-stage, .x01-map {
  border-radius: 0;
  border-width: 1px 0;
}
.map-column > .map-caption,
.route-map-column > .map-caption,
.map-column > .dmz-icon-legend,
.route-map-column > .dmz-icon-legend,
.x01-panel > .dmz-icon-legend,
.route-map-column > #loot-route-stops { margin-inline: 14px; }
.route-map-column > #loot-route-stops { margin-bottom: 16px; }
.dmz-icon-legend { gap: 8px 16px; line-height: 1.4; }
.guide-head + .x01-section { margin-top: 0; }
.x01-tools { align-items: end; gap: 14px; }
.x01-tools label,
.key-tools label > span,
.key-search label {
  color: #c4d1de;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.x01-tools label:first-child { flex: 1; }
.x01-tools input, .x01-tools select, .key-tools select, .key-tools input {
  border-radius: 3px;
  color: #e7edf3;
  background: #0a1119;
}
.x01-tools input, .x01-tools select { font-size: 16px; }
.x01-count {
  padding: 8px 16px;
  margin: 0;
  border-inline: 1px solid #2c3f51;
  font-size: 13px;
  background: #0e1721;
}
.x01-panel .x01-map > svg { height: 100%; }
.x01-sidebar p { font-size: 14px; }
.x01-sidebar .x01-list { max-height: min(60vh, 580px); }
.key-workspace { border: 1px solid #2c3f51; border-top: 0; border-radius: 0; }
.key-map-head, .floor-select { padding: 9px 16px; }
.floor-select select { width: auto; }
.key-list-head, .key-map-head { background: #101923; }

.guide-notes {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(0, 2fr);
  gap: clamp(20px, 5vw, 78px);
  margin-top: 34px;
  margin-bottom: 34px;
  padding-block: 25px;
  border-block: 1px solid #293a49;
}
.guide-notes h2 { font-size: 22px; letter-spacing: -.04em; }
.guide-notes p { max-width: 82ch; font-size: 14px; line-height: 1.65; }
.guide-notes p:last-child { margin-bottom: 0; }
.guide-notes a, .season-notice a { color: #80d8ee; text-underline-offset: 3px; }
.season-notice {
  margin: 28px auto;
  padding: 12px 18px;
  border-left: 2px solid #5fc5d9;
  background: #101923;
  line-height: 1.6;
}
.key-info { padding-bottom: 12px; }
.guide-prep { margin: 24px auto; padding: 0; border: 0; }
.guide-prep > div { padding: 16px 0; border-top: 1px solid #334756; }
.share-section { gap: clamp(20px, 4vw, 54px); padding-block: 32px; }
.share-section .poster-preview { justify-self: end; width: min(100%, 700px); }
.share-copy h2 { font-size: clamp(24px, 2.6vw, 36px); }
.share-copy .share-footnote { margin-bottom: 0; }
#downloads .download-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.download-library article { min-width: 0; padding-top: 16px; border-top: 1px solid #364655; }
.download-library h3 { margin-bottom: 14px; font-size: 18px; }
.download-library img { display: block; width: 100%; height: auto; }
.download-library p a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 850px) {
  .guide-head { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }
  .guide-head .intro-meta, .guide-head .key-date {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px;
    padding: 0; border: 0;
  }
  .guide-head .intro-meta p, .guide-head .intro-meta a { margin: 0; }
  .guide-head .key-date br { display: none; }
  .x01-layout .x01-sidebar { border: 0; border-top: 1px solid #2c3f51; }
  .x01-tools { padding: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
  .x01-tools label:first-child { grid-area: 1 / 1 / 2 / 3; }
  .x01-tools label:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
  .x01-tools label:nth-child(3) { grid-area: 2 / 2 / 3 / 4; }
  .x01-tools > button { grid-area: 1 / 3 / 2 / 4; padding-inline: 12px; }
  .x01-tools input { width: 100%; min-width: 0; }
}
@media (max-width: 800px) {
  .map-layout .location-panel, .route-layout .location-panel {
    border: 0; border-top: 1px solid #2c3f51;
  }
  .guide-notes { grid-template-columns: 1fr; gap: 12px; }
  .guide-prep { gap: 0; }
  .share-section .poster-preview { justify-self: start; }
}
@media (max-width: 720px) {
  .guide-head { padding: 16px 0; }
  .guide-head .lead { font-size: 14px; }
  .map-heading { padding: 8px 12px; gap: 4px 12px; }
  .key-tools { padding: 12px; }
  .key-results { height: auto; max-height: 155px; min-height: 60px; }
  .key-list-head { padding-block: 8px; }
  .x01-map { min-height: min(340px, 92vw); }
  #downloads .download-library { grid-template-columns: 1fr; }
  .season-notice { width: 94%; margin-inline: auto; }
}
