/* Glider Landing Planner — CSS scoped to shortcode container. */
.glp-app-root,.glp-app-root *{box-sizing:border-box}
.glp-app-root{--glp-ink:#16263a;--glp-muted:#62738b;--glp-blue:#2563eb;--glp-border:#dce4ee;--glp-panel:#fff;position:relative;left:50%;transform:translateX(-50%);width:min(1510px,calc(100vw - 22px));max-width:none!important;margin:12px 0 25px!important;font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:13px;color:var(--glp-ink);line-height:1.45}
.glp-app-root button,.glp-app-root input,.glp-app-root select{font:inherit;line-height:1.35}
.glp-app-root button{cursor:pointer;transition:background .12s,border .12s;color:inherit}
.glp-app-root button:disabled{opacity:.4;cursor:not-allowed}
.glp-app-root button:focus-visible,.glp-app-root input:focus-visible,.glp-app-root select:focus-visible{outline:2px solid #6898f1;outline-offset:2px}
.glp-app-root h2,.glp-app-root h3,.glp-app-root h1{margin:0;padding:0;font-family:inherit;color:inherit;line-height:1.25}
.glp-app-root p{margin:0}
.glp-app-root .glp-chart svg,.glp-app-root .glp-print svg{max-width:100%;height:auto;display:block}
.glp-shell{background:#f4f7fb;border:1px solid #d9e1ec;border-radius:14px;overflow:visible;box-shadow:0 10px 28px rgba(21,42,74,.09)}
.glp-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px 17px;background:#fff;border-bottom:1px solid var(--glp-border);flex-wrap:wrap}
.glp-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.glp-brand>div:nth-child(2){display:flex;flex-direction:column;gap:3px}
.glp-brand strong{font-size:16px;font-weight:760;letter-spacing:-.02em}
.glp-brand span{font-size:10px;color:#64748b;line-height:1.2}
.glp-logo{background:#12325e;border-radius:8px;color:white;font-weight:800;letter-spacing:.04em;padding:10px 9px;font-size:13px}
.glp-tool-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:end;flex:1;min-width:0}
.glp-project-name{width:180px;min-width:110px;max-width:200px;border:1px solid var(--glp-border);background:#f8fafc;border-radius:7px;padding:8px 10px!important;color:var(--glp-ink)!important;min-height:34px}
.glp-save-state{font-size:11px;color:#64748b;white-space:nowrap}
.glp-btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:7px 10px!important;min-height:32px;border:1px solid transparent!important;border-radius:7px!important;font-size:12px!important;font-weight:650;text-decoration:none!important;box-shadow:none!important}
.glp-btn-primary{background:#2458ce!important;color:#fff!important;border-color:#2458ce!important}.glp-btn-primary:hover{background:#1748b5!important}
.glp-btn-quiet{background:#f5f8fc!important;color:#38516c!important;border-color:#e1e8f1!important}.glp-btn-quiet:hover,.glp-btn-quiet.glp-active{background:#e4edff!important;border-color:#8daef5!important;color:#194aab!important}
.glp-btn-sub{background:#fff!important;color:#35577b!important;border-color:#ccd8e6!important}.glp-btn-sub:hover{background:#eef3fa!important}
.glp-btn-soft{background:#edf4ff!important;color:#2050a3!important;border-color:#d0e0f5!important}
.glp-app-body{display:grid;grid-template-columns:350px minmax(0,1fr);align-items:stretch;min-height:600px}
.glp-sidebar{align-self:stretch;min-height:0;border-right:1px solid var(--glp-border);background:#f8fafd;padding:0;position:relative}.glp-sidebar-scroll{position:sticky;top:40px;max-height:calc(100dvh - 52px);min-height:240px;overflow-y:auto;overscroll-behavior:contain;padding:16px 13px 20px;scrollbar-width:thin}
.glp-panel-heading{padding:2px 4px 12px}.glp-eyebrow{font-size:10px;color:#7d90a5;font-weight:800;letter-spacing:.14em}.glp-panel-heading h2{font-size:16px;margin-top:5px;font-weight:760}
.glp-panel{background:#fff;border:1px solid var(--glp-border);border-radius:9px;padding:14px;margin:0 0 10px;box-shadow:0 1px 3px rgba(42,56,77,.025)}
.glp-panel h3{font-size:13px;font-weight:750;margin:0 0 11px;display:flex;align-items:center;gap:7px}
.glp-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#94a3b8}.glp-dot.blue{background:#2563eb}.glp-dot.green{background:#059669}.glp-dot.purple{background:#8b5cf6}
.glp-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.glp-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0 0 9px;font-size:11px!important;font-weight:550;color:#44566c}
.glp-field span{overflow-wrap:anywhere}.glp-field em{font-style:normal;color:#8292a5;font-weight:450}
.glp-field input,.glp-field select{width:100%!important;max-width:none!important;min-width:0;min-height:33px!important;padding:5px 8px!important;background:#fff!important;border:1px solid #cdd9e8!important;color:#243951!important;border-radius:6px!important;font-size:12px!important;box-shadow:none!important}
.glp-field select{padding-right:15px!important}
.glp-check{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:#45556b;margin:6px 0 9px}.glp-check input{width:15px!important;height:15px!important;margin:0!important;accent-color:#2563eb}
.glp-tip{font-size:10px;line-height:1.65;color:#728298;margin-top:3px!important}.glp-muted{color:#8593a3;font-size:11px}
.glp-flex-between{display:flex;align-items:center;justify-content:space-between}.glp-flex-between small{color:#97a4b3}
.glp-preset,.glp-adds{display:flex;gap:6px;flex-wrap:wrap}.glp-preset{margin-bottom:10px}.glp-adds{margin-top:10px}
.glp-leg-list{display:flex;flex-direction:column;gap:6px}.glp-leg{border:1px solid #dce5ef;border-radius:8px;background:#fff;overflow:hidden}.glp-leg-active{border-color:#91b6ed;box-shadow:0 0 0 2px #e5efff}
.glp-leg-line{display:flex;align-items:center;gap:2px;min-height:38px}.glp-leg-title{display:flex;align-items:center;gap:7px;flex:1;min-width:0;text-align:left;padding:8px!important;border:0!important;background:transparent!important;color:#233f5b!important;font-size:11.5px!important;font-weight:650!important}.glp-leg-title>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.glp-leg-symbol{color:#2563eb;font-size:17px}
.glp-leg-buttons{display:flex;padding:0 4px;gap:2px}.glp-leg-buttons button{border:0!important;background:#f1f5f9!important;color:#516780!important;border-radius:4px!important;padding:2px 5px!important;font-size:13px!important;min-width:23px;min-height:25px}
.glp-leg-buttons button:hover{background:#dbeafe!important}
.glp-leg-edit{padding:10px;border-top:1px solid #dde7f3;background:#f7faff}.glp-leg-edit .glp-field{margin-bottom:7px}
.glp-main{min-width:0;padding:14px 16px 20px}
.glp-mapbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;flex-wrap:wrap}.glp-map-actions{display:flex;gap:6px;flex-wrap:wrap}.glp-map-hint{color:#8694a4;font-size:10px}
.glp-map{height:510px;width:100%;background:#e7edf3;border:1px solid #d7e3ee;border-radius:11px;overflow:hidden;z-index:0}
.glp-map-unavailable{display:flex;align-items:center;justify-content:center;text-align:center;height:100%;padding:35px;color:#ad382c}
/* Allow Leaflet to size its own SVG viewport. WP themes often constrain generic SVGs. */
.glp-app-root .glp-map .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}
.glp-map .leaflet-container{font-family:inherit}.glp-map .leaflet-control-attribution{font-size:10px}
.glp-point{height:25px;width:25px;display:flex;justify-content:center;align-items:center;border-radius:50%;font-size:11px;color:#fff;font-weight:800;box-shadow:0 2px 7px #0003;border:2px solid #fff}.glp-point-blue{background:#2563eb}.glp-point-green{background:#059669}
.glp-handle{background:#fff;border:2px solid #8559b8;box-shadow:0 2px 7px #0002;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:10px;border-radius:6px;font-weight:bold;color:#7c3aed}
.glp-overview{margin-top:14px;background:#fff;border:1px solid var(--glp-border);border-radius:11px;padding:15px 17px;overflow:hidden}
.glp-overview-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.glp-overview-top strong{font-size:13px;font-weight:750}.glp-overview-top small{color:#8695a8;font-size:10px}
.glp-chart-legend{display:flex;align-items:center;gap:7px;font-size:10px;color:#79889b}.glp-chart-legend i{display:inline-block;width:15px;border-top:3px solid}.glp-line-blue{border-color:#2563eb!important}.glp-line-orange{border-color:#db7a26!important;border-top-style:dashed!important}.glp-line-green{border-color:#059669!important}
.glp-chart{border:1px solid #edf1f6;border-radius:8px;overflow:hidden;margin-bottom:12px}.glp-chart svg{width:100%;min-height:140px}
.glp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.glp-stat{padding:10px 12px;background:#f4f8fc;border-radius:8px;display:flex;flex-direction:column;gap:4px;overflow:hidden}.glp-stat small{font-size:10px;color:#6c8097;white-space:normal}.glp-stat strong{font-size:17px;font-weight:780;color:#143c71;font-variant-numeric:tabular-nums}
.glp-checkpoints{border-top:1px solid #e9eef5;padding-top:14px}.glp-tablewrap{max-height:none;overflow-x:auto;overflow-y:visible;border:1px solid #e5ebf2;border-radius:7px}.glp-table{border-collapse:collapse;width:100%!important;table-layout:auto;margin:0!important;min-width:430px;font-size:11px}.glp-table thead{position:sticky;top:0;background:#eff4fb}.glp-table th,.glp-table td{padding:8px 10px;border-bottom:1px solid #e9eef4;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.glp-table th:first-child,.glp-table td:first-child{text-align:left;font-weight:600}.glp-table th{font-weight:700;color:#53677e}.glp-negative{color:#aa3b28;font-weight:800}.glp-positive{color:#25607d;font-weight:700}
.glp-diagnostics{border-top:1px solid #e9eef5;margin-top:16px;padding-top:14px}.glp-status-chip{padding:4px 8px;border-radius:30px;font-size:10px;font-weight:700}.glp-status-bad{background:#fce9e6;color:#aa3425}.glp-status-warn{background:#fff1d9;color:#965600}.glp-status-note{background:#edf2fa;color:#475d74}
.glp-alerts{max-height:150px;overflow:auto;display:grid;gap:4px}.glp-alert{border-left:3px solid #d4dbe6;background:#f6f8fb;padding:7px 9px;font-size:11px;line-height:1.5;color:#5c6a7b}.glp-inline-message{border-radius:7px;background:#fff3e0;border:1px solid #f2cf99;color:#8b4a16;padding:9px;margin-bottom:9px}
.glp-footnote{background:#f8fafc;padding:11px 16px;font-size:10px;line-height:1.6;color:#78879b;border-top:1px solid #dce6ee}.glp-footnote a{color:#315a95!important;text-decoration:underline!important}.glp-print{display:none}
@media(max-width:1120px){.glp-app-body{grid-template-columns:310px minmax(0,1fr)}.glp-toolbar{gap:7px}.glp-project-name{width:130px}.glp-sidebar-scroll{padding:12px 9px}.glp-main{padding:12px}.glp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.glp-app-root{width:calc(100vw - 12px)}.glp-shell{border-radius:9px}.glp-app-body{display:flex;flex-direction:column}.glp-main{width:100%;order:1;padding:10px}.glp-sidebar{width:100%;order:2;position:static;min-height:0;padding:0;border-right:0;border-top:1px solid #e0e8f2}.glp-sidebar-scroll{position:static;max-height:none;min-height:0;overflow:visible;padding:12px}.glp-map{height:390px}.glp-toolbar{padding:10px}.glp-tool-group{flex:1 1 100%;justify-content:start}.glp-project-name{max-width:none;flex:1;min-width:120px}.glp-overview{padding:12px}.glp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.glp-stat strong{font-size:15px}.glp-map-hint{display:none}.glp-brand strong{font-size:14px}.glp-panel{padding:12px}}
@media(max-width:460px){.glp-btn{padding:6px 8px!important;font-size:11px!important}.glp-map{height:350px}.glp-chart-legend{font-size:9px}.glp-tool-group{gap:4px}.glp-metrics{gap:6px}.glp-stat{padding:9px}.glp-stat strong{font-size:14px}}

/* v0.1.2: per-overlay opacity sliders and permanent checkpoint height/margin labels. */
.glp-opacity-field{display:flex;flex-direction:column;gap:7px;margin:12px 0 8px;color:#45556b;font-size:12px}
.glp-opacity-field>span{display:flex;align-items:center;justify-content:space-between;gap:8px}
.glp-opacity-field output{font-variant-numeric:tabular-nums;color:#315682;font-weight:700}
.glp-opacity-field input[type="range"]{display:block;width:100%;height:20px;padding:0!important;margin:0!important;accent-color:#2563eb;cursor:pointer;border:0!important;background:transparent!important;box-shadow:none!important}
.glp-app-root .glp-map .leaflet-tooltip.glp-checkpoint-label{background:rgba(255,255,255,.96);border:1px solid #bfd0e2;border-radius:7px;box-shadow:0 1px 5px rgba(15,23,42,.18);color:#27374b;padding:4px 7px;font-size:10px;line-height:1.4;white-space:nowrap!important;width:max-content!important;max-width:none!important;writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:normal!important;pointer-events:none;font-family:inherit}
.glp-app-root .glp-map .leaflet-tooltip.glp-checkpoint-label::before{border-top-color:#bfd0e2;border-bottom-color:#bfd0e2}
.glp-map-cp-content{display:flex;flex-direction:column;gap:3px}
.glp-map-cp-content strong{font-weight:800;color:#8b4c07}
.glp-map-cp-content span{font-weight:600;color:#30465e}
@media(max-width:760px){.glp-app-root .glp-map .leaflet-tooltip.glp-checkpoint-label{font-size:9px;padding:3px 5px;max-width:none!important}}

/* v0.1.3: Cocoon/WordPress generic tooltip styles must not rotate or wrap altitude labels. */
.glp-app-root .glp-map .leaflet-tooltip.glp-checkpoint-label .glp-map-cp-content{display:flex!important;flex-direction:column!important;align-items:center;gap:2px;white-space:nowrap!important;writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:normal!important}
.glp-app-root .glp-map .leaflet-tooltip.glp-checkpoint-label .glp-map-cp-content > *{display:block!important;white-space:nowrap!important;writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:normal!important}
.glp-app-root .glp-map .leaflet-tooltip.glp-checkpoint-label .glp-cp-height{font-variant-numeric:tabular-nums;font-weight:700}
.glp-app-root .glp-map .leaflet-tooltip.glp-checkpoint-label .glp-cp-margin{color:#92400e;font-weight:700;border-top:1px solid #e2e8f0;padding-top:2px}
.glp-app-root .glp-cp-margin-row td{background:#fffbeb!important;font-weight:700}

/* v0.1.5 — the left editor remains independently scrollable down to the diagnostics footer. */
.glp-checkpoints tr[data-leg-id].glp-checkpoint-active td{background:#fff1d6!important;border-top:1px solid #f59e0b!important;border-bottom:1px solid #f59e0b!important;color:#7c3d00!important;font-weight:750!important}
.glp-checkpoints .glp-table tr[data-leg-id]{transition:background .12s ease}
@media(min-width:761px){.glp-app-body{align-items:stretch}.glp-sidebar-scroll:focus-within{scrollbar-color:#94a3b8 #f1f5f9}}

/* v0.1.6: keep the required connector bank with the diagnostic section. */
.glp-diagnostic-bank{margin:8px 0 10px;padding:9px 11px;background:#f1f5fa;border-left:3px solid #64748b;color:#334155;font-size:12px}

/* v0.1.7 — compact map-first editing; the same data-path editor drives desktop and mobile. */
.glp-mobile-editor[hidden]{display:none!important}
.glp-mobile-editor{display:none}
.glp-map-add-badge{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:3px solid white;box-shadow:0 3px 12px #0f172a55;border-radius:50%;font-weight:900;font-size:21px;line-height:1;color:white;cursor:pointer;touch-action:manipulation}
.glp-map-add-blue{background:#2563eb}.glp-map-add-green{background:#059669}
@media (max-width:760px), (max-width:1050px) and (orientation:portrait){
  /* A transformed ancestor becomes the containing block for position:fixed.
     The app uses translateX() for centering on desktop; remove that transform
     in compact layouts and center using margin instead so the sheet anchors
     to the viewport, not to the long WordPress article. */
  .glp-app-root{width:calc(100vw - 12px);transform:none!important;margin-left:calc(6px - 50vw)!important}
  .glp-app-body{display:flex;flex-direction:column}
  .glp-main{width:100%;order:1;padding:10px}
  .glp-sidebar{width:100%;order:2;position:static;min-height:0;padding:0;border-right:0;border-top:1px solid #e0e8f2}
  .glp-sidebar-scroll{position:static;max-height:none;min-height:0;overflow:visible;padding:12px}
  .glp-map-hint{display:none}
  .glp-mobile-editor:not([hidden]){display:flex;flex-direction:column;position:fixed;z-index:10000;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,640px);max-height:min(68dvh,620px);background:#fff;border:1px solid #b8c9dd;border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -8px 34px #0f172a55;overflow:hidden}
  .glp-mobile-editor-head{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f0f6ff;border-bottom:1px solid #dce7f3;padding:11px 14px;flex-shrink:0}
  .glp-mobile-editor-head strong{font-size:14px;color:#1f3a56}
  .glp-mobile-editor-content{overflow-y:auto;overscroll-behavior:contain;padding:12px 14px 18px;min-height:0;max-height:60dvh}
  .glp-mobile-editor .glp-leg-edit{border:0;background:#fff;padding:0}
  .glp-mobile-editor .glp-field{font-size:12px!important}
  .glp-mobile-editor .glp-field input,.glp-mobile-editor .glp-field select{min-height:43px!important;font-size:16px!important}
  .glp-mobile-editor .glp-btn{min-height:42px!important}
  .glp-mobile-editor .glp-adds{padding:12px 0}
  .glp-mobile-editor .glp-adds .glp-btn{flex:1}
}

/* Leg reorder/delete remains accessible without scrolling to the desktop sidebar. */
.glp-mobile-leg-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #e2e8f0}
.glp-mobile-leg-actions .glp-btn{flex:1;min-width:85px}
.glp-mobile-leg-actions .glp-mobile-remove{color:#ae3023!important;border-color:#e7c4bd!important}


/* The computed side of a turn input is visible but not editable. */
.glp-field input[readonly] { opacity: .75; background: #f1f4f7; cursor: default; }

/* v0.1.15: compact desktop add popups and explicit deletion in the selected leg editor. */
.glp-desktop-leg-actions{padding:0 10px 11px;background:#f7faff;display:flex;justify-content:flex-end}
.glp-desktop-remove{color:#a63124!important;border-color:#e5bdb6!important}
.glp-app-root .glp-map-add-menu{display:flex;flex-direction:column;gap:7px;min-width:135px;font:12px/1.45 system-ui,sans-serif}
.glp-app-root .glp-map-add-menu strong{color:#28415e;font-weight:750;margin-bottom:2px}
.glp-app-root .glp-map-add-menu button{padding:7px 12px!important;border-radius:6px!important;border:1px solid #bfd0e7!important;background:#f6f9fe!important;color:#214b84!important;font-size:12px!important;text-align:left;min-height:34px}
.glp-app-root .glp-map-add-menu button:hover{background:#e3efff!important}
@media (max-width:760px), (max-width:1050px) and (orientation:portrait){
  .glp-desktop-leg-actions{display:none}
}
@media (max-width:760px), (max-width:1050px) and (orientation:portrait){
 .glp-map-add-badge{width:42px;height:42px;font-size:26px}
}
