.alpha-main { padding-bottom: 42px; }
.alpha-location-search { margin: 0 0 10px; padding: 16px 20px; border: 1px solid #d6e0e9; border-radius: 12px; background: #fff; }
.alpha-location-search > label:first-of-type { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.alpha-search-row { display: flex; align-items: center; gap: 12px; }
.alpha-search-input { position: relative; flex: 1; min-width: 0; }
.alpha-search-input > input { width: 100%; box-sizing: border-box; border: 1px solid #bacbdb; border-radius: 8px; padding: 13px 15px; font: inherit; font-size: 15px; color: #103e70; background: #fff; }
.alpha-search-input > input:focus { outline: 2px solid #b28222; outline-offset: 2px; }
.alpha-search-submit { padding: 14px 24px; border: 0; border-radius: 8px; color: white; background: #103e70; font: inherit; font-weight: 600; cursor: pointer; }
.alpha-search-submit:hover { background: #082949; }
.alpha-search-clear { font-size: 13px; text-decoration: underline; white-space: nowrap; }
.alpha-surrounding { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 13px; cursor: pointer; min-height: 28px; }
.alpha-surrounding input { width: 18px; height: 18px; accent-color: #a16b05; }
#alpha-location-options { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; border: 1px solid #bacbdb; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #103e7022; }
#alpha-location-options[hidden] { display: none; }
#alpha-location-options li { padding: 12px; border-radius: 5px; cursor: pointer; font-size: 14px; }
#alpha-location-options li:hover, #alpha-location-options li[aria-selected="true"] { background: #fff2ca; }
#alpha-search-status { margin: 8px 0 0; font-size: 12px; color: #597186; }
#alpha-search-status:empty { display: none; }
.alpha-search-summary { margin: 0 0 22px; font-size: 13px; line-height: 1.7; }
.alpha-search-summary details { margin-top: 5px; color: #597186; }
.alpha-search-summary summary { cursor: pointer; }
.alpha-search-summary p { margin: 6px 0; }
.alpha-location-credit { font-size: 10px; line-height: 1.6; color: #657a8b; }
.alpha-location-credit a { text-decoration: underline; }
@media (max-width: 600px) {
  .alpha-location-search { padding: 16px; }
  .alpha-search-row { flex-wrap: wrap; gap: 10px; }
  .alpha-search-input { flex-basis: 100%; }
  .alpha-search-submit { min-height: 44px; padding: 12px 24px; }
}
.alpha-map-link { display: inline-flex; gap: 26px; align-items: center; margin-top: 12px; padding: 10px 18px; border-radius: 8px; background: #103e70; color: white; font-weight: 600; }
.alpha-map-link:hover { background: #082949; }
.alpha-hero { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 30px 0 22px; }
.alpha-hero h1 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -2px; font-weight: 600; margin: 0 0 10px; }
.alpha-hero h1 em { font-style: normal; color: #a16b05; }
.alpha-hero p { color: var(--muted); line-height: 1.8; margin: 0; }
.alpha-state label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.alpha-state > div { display: flex; gap: 8px; }
.alpha-state select { background: #fff; border: 1px solid #bacbdb; border-radius: 8px; padding: 12px; max-width: 270px; min-width: 0; }
.alpha-state button { background: #103e70; color: #fff; border-radius: 8px; padding: 12px 16px; white-space: nowrap; }
.alpha-state button:hover { background: #082949; }
.alpha-source { border-top: 1px solid var(--line); padding: 12px 0 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); }
.alpha-source > div { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; }
.alpha-source strong { color: var(--ink); }
.alpha-source small { overflow-wrap: anywhere; font-size: 11px; }
.alpha-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.alpha-board { background: #fff; border: 1px solid #d6e0e9; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 22px #103e7006; scroll-margin-top: 140px; }
.alpha-board > header { border-top: 3px solid #edaf0b; border-bottom: 1px solid var(--line); padding: 18px 20px; min-height: 172px; }
.alpha-board-kicker { display: flex; justify-content: space-between; gap: 10px; color: #805000; font-size: 9px; font-weight: 650; letter-spacing: .4px; }
.alpha-board h2 { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 14px 0 10px; letter-spacing: -.7px; }
.alpha-board header p { color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0; }
.alpha-list { margin: 0; padding: 0; list-style: none; max-height: 720px; overflow-y: auto; scrollbar-width: thin; }
.alpha-list > li { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 8px 11px; padding: 20px 16px; border-bottom: 1px solid #e8eef3; cursor: pointer; }
.alpha-list > li.is-expanded { background: #f5f9fd; }
.alpha-list > li:last-child { border-bottom: 0; }
.alpha-rank { flex-shrink: 0; font-size: 12px; font-weight: 650; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #597186; background: #f0f5f9; }
.alpha-rank-top { color: #805000; background: #fff0ba; }
.alpha-property { min-width: 0; flex: 1; }
.alpha-property-details { margin-top: 10px; }
.alpha-features { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: #465464; }
.alpha-feature { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.alpha-feature svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.alpha-feature.is-missing { font-size: 10px; color: var(--muted); }
.alpha-property-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.alpha-return { flex-shrink: 0; font-size: 19px; line-height: 1.4; color: #226147; letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.alpha-return-negative { color: #a34437; }
.alpha-property h3 { min-width: 0; font-size: 13px; line-height: 1.6; font-weight: 600; margin: 2px 0 0; overflow-wrap: anywhere; }
.alpha-toggle { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.alpha-toggle:hover { color: #946000; }
.alpha-toggle:focus-visible { outline: 2px solid #164c7b; outline-offset: 3px; border-radius: 2px; }
.alpha-property dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 16px 0 0; font-size: 10px; }
.alpha-property dl > div { min-width: 0; }
.alpha-property dl > div:only-child { grid-column: 1 / -1; }
.alpha-property dl > div + div { text-align: right; }
.alpha-property dt { color: var(--muted); }
.alpha-property dd { margin: 6px 0 0; font-size: 12px; line-height: 1.5; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.alpha-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.alpha-action-panel { grid-column: 1 / -1; display: grid; gap: 8px; }
.alpha-action-panel[hidden] { display: none; }
.alpha-save-form { min-width: 0; margin: 0; }
.alpha-action { display: flex; justify-content: center; align-items: center; box-sizing: border-box; width: 100%; height: 30px; padding: 4px 6px; border: 1px solid #103e70; border-radius: 5px; background: #103e70; color: #fff; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; text-decoration: none; }
.alpha-action:hover:not(:disabled) { background: #082949; }
.alpha-action:focus-visible { outline: 2px solid #164c7b; outline-offset: 2px; }
.alpha-action:disabled { opacity: .6; cursor: default; }
.alpha-save.is-saved { opacity: 1; }
.alpha-action-message { grid-column: 1 / -1; font-size: 11px; line-height: 1.5; color: #a34437; margin: 0; }
.alpha-action-message.is-success { color: #226147; }
.alpha-action-message:empty { display: none; }
.alpha-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 16px 20px; font-size: 11px; }
.alpha-pagination > span { color: #657a8b; }
.alpha-pagination a { font-weight: 600; color: #164c7b; padding: 6px 0; }
.alpha-pagination a:hover { text-decoration: underline; }
.alpha-notice { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; }
.alpha-notice a { text-decoration: underline; }
.alpha-empty { padding: 25px 20px; line-height: 1.7; }
.alpha-missing { font-size: 11px; color: var(--muted); }
.alpha-missing small { display: block; margin-top: 5px; line-height: 1.5; }
.alpha-method { margin-top: 30px; padding: 24px 0; border-top: 1px solid var(--line); }
.alpha-method h2 { font-size: 16px; margin: 0 0 18px; }
.alpha-method > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.alpha-method p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 0; }
.alpha-method strong { display: block; color: var(--ink); margin-bottom: 6px; }
.alpha-method code { font-size: 10px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .alpha-hero { flex-wrap: wrap; gap: 24px; }
  .alpha-boards { gap: 12px; }
  .alpha-board > header { padding: 20px 14px; }
  .alpha-board-kicker { flex-wrap: wrap; }
  .alpha-list > li { padding: 18px 12px; column-gap: 8px; }
}
@media (max-width: 1000px) {
  .alpha-boards, .alpha-method > div { grid-template-columns: 1fr; gap: 22px; }
  .alpha-board > header { min-height: auto; padding: 18px 20px; }
  .alpha-list { max-height: 590px; }
  .alpha-list > li { padding: 20px; column-gap: 14px; }
  .alpha-hero { padding-top: 24px; }
}
@media (max-width: 500px) {
  .alpha-state { width: 100%; }
  .alpha-state > div { flex-wrap: wrap; }
  .alpha-state select { flex: 1; max-width: 100%; width: 100%; }
  .alpha-state button { width: 100%; }
}

/* The list and map share the same filter dialog and button styles. */
.alpha-search-row .imap-filter-button { align-self: center; cursor: pointer; }
.alpha-search-row .imap-filter-count[hidden] { display: none; }
