/* WeatherLabs — the Applications page around the cards, drawer and ask
   results (apps.css). */

.apx-head { border-bottom: 0; padding-bottom: clamp(20px, 3vw, 32px); }
.apx-head-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 64px; align-items: end; }
.apx-lead { margin-top: 0; }
@media (max-width: 900px) { .apx-head-in { grid-template-columns: 1fr; } }

/* ---- the search / ask box ------------------------------------------------------ */
.apx-tools { position: relative; padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.apx-mode { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.apx-mode-btn { min-height: 38px; padding: 0 16px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text2); transition: background .2s, color .2s, box-shadow .2s; }
.apx-mode-btn:hover { color: var(--text); }
.apx-mode-btn[aria-checked='true'] { background: var(--bg2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line2); }
.apx-form { display: flex; gap: 10px; align-items: stretch; }
.apx-field { position: relative; flex: 1; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 12px 0 18px; border-radius: 14px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); transition: box-shadow .2s; }
.apx-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-dim), var(--shadow); }
.apx-ic { display: inline-flex; color: var(--text3); }
.apx-ic svg { width: 20px; height: 20px; }
.apx-input { flex: 1; min-width: 0; height: 58px; border: 0; background: transparent; font-size: 17px; color: var(--text); }
.apx-input:focus { outline: none; }
.apx-input::placeholder { color: var(--text3); }
.apx-kbd { flex: none; min-width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid var(--line2); border-bottom-width: 2px; font-family: var(--mono); font-size: 12px; color: var(--text3); }
.apx-field:focus-within .apx-kbd { display: none; }
.apx-clear { flex: none; }
.apx-submit { --h: 60px; border-radius: 14px; padding: 0 24px; }
.apx-hint { min-height: 1.4em; margin-top: 10px; font-size: .86rem; color: var(--text3); }
.apx-ask { margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 40px; align-items: start; }
.apx-ask .ask-out { margin-top: 0; }
.apx-ask .ask-out[hidden] + .apx-asked { grid-column: 1 / -1; }
.apx-asked { padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.apx-asked .kicker { margin-bottom: 8px; }
@media (max-width: 900px) { .apx-ask { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .apx-form { flex-direction: column; }
  .apx-submit { --h: 52px; width: 100%; }
  .apx-input { font-size: 16px; }
  .apx-kbd { display: none; }
}

/* ---- filters ---------------------------------------------------------------------- */
.apx-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 26px; }
.apx-sectors { display: flex; flex-wrap: wrap; gap: 8px; }
.apx-status, .apx-view { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.apx-st { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--text2); transition: background .2s, color .2s; }
.apx-st:hover:not(:disabled) { color: var(--text); }
.apx-st[aria-pressed='true'] { background: var(--bg2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line2); }
.apx-st:disabled { opacity: .4; cursor: not-allowed; }
.apx-st .count { font-family: var(--mono); font-size: .66rem; opacity: .7; }
.apx-st svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .apx-sectors { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .apx-sectors::-webkit-scrollbar { display: none; }
  .apx-sectors .chip { flex: none; }
  .apx-st { min-height: 40px; }
  .apx-view .apx-st { min-height: 44px; }
}

/* ---- results ---------------------------------------------------------------------- */
.apx-results { padding-top: clamp(28px, 4vw, 44px); }
.apx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.apx-count { font-size: .9rem; color: var(--text3); min-height: 1.4em; }
.apx-count b { color: var(--text); font-weight: 500; }
.apx-empty { padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); border: 1px dashed var(--accent-ring); background: radial-gradient(120% 120% at 0% 100%, var(--accent-dim), transparent 62%), var(--bg2); max-width: 760px; }
.apx-empty-h { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; line-height: 1.15; margin-bottom: 10px; }
.apx-empty p:not(.apx-empty-h) { color: var(--text2); font-weight: 300; line-height: 1.7; }
.apx-empty em { color: var(--accent); }
.apx-empty-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---- pressure lines behind the page head (sparingly) ----------------------- */
.apx-head { position: relative; overflow: hidden; isolation: isolate; }
.apx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.apx-lines path { fill: none; stroke: color-mix(in srgb, var(--accent) 14%, transparent); stroke-width: 1; }
.apx-lines path.is-major { stroke: color-mix(in srgb, var(--accent) 24%, transparent); }

/* ---- point alerts, a product of its own ------------------------------------ */
.apx-more .section-title { margin-bottom: 28px; }
.apx-product { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; padding: clamp(22px, 3vw, 34px); }
.apx-product .ac-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.apx-product .ac-name { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin-bottom: 8px; }
.apx-product-end { display: grid; gap: 12px; align-content: end; justify-items: start; }
.apx-product .ac-actions { justify-content: flex-start; }
.apx-fine { margin-top: 22px; font-size: .86rem; color: var(--text3); max-width: 760px; line-height: 1.6; font-weight: 300; }
@media (max-width: 760px) { .apx-product { grid-template-columns: 1fr; } }
