.tool-switcher { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0 1.25rem; }
.tool-switcher a { padding:.45rem .8rem; border:1px solid #b9c9da; border-radius:.5rem; color:#17457a; }
.tool-switcher [aria-current="page"] { background:#173e72; border-color:#173e72; color:#fff; }
.tool-drop { position:relative; display:grid; gap:.4rem; place-items:center; margin:0; padding:1.5rem 1rem; min-height:9rem; border:2px dashed #7394ba; border-radius:.85rem; background:#eff6ff; color:#182e4a; cursor:pointer; text-align:center; }
.tool-drop:focus-within, .tool-drop.is-dragging { outline:3px solid #2764a9; outline-offset:2px; background:#e1efff; }
.tool-drop input[type="file"] { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.tool-drop-title { font-size:1.15rem; font-weight:700; }
.tool-drop-button { padding:.4rem .8rem; border-radius:.4rem; background:#2263ab; color:#fff; font-weight:700; }
.tool-file-status { margin:.45rem 0 1rem; overflow-wrap:anywhere; }
.tool-file-status:empty { display:none; }
.tool-file-status.is-error { color:#a01d24; }

/* Give the tools a centered, visible position below the brand on small screens. */
#header .header-row { display:grid; grid-template-columns:minmax(0,1fr); justify-items:center; row-gap:.25rem; padding:.35rem 0; }
#header #logo { margin:0; justify-self:center; }
#header #primary-menu-trigger { display:none; }
#header .primary-menu { width:100%; justify-content:center; }
#header #menu-container { display:flex; width:auto; flex-wrap:wrap; align-items:center; justify-content:center; gap:.2rem .35rem; padding:0; }
#header .primary-menu .menu-item { border:0; }
#header .primary-menu .menu-link { padding:.6rem .55rem; border-radius:.45rem; color:#173e72; font-weight:700; letter-spacing:normal; }
#header .primary-menu .menu-link:hover,
#header .primary-menu .menu-link:focus-visible,
#header .primary-menu .menu-link[aria-current="page"] { background:#e7f1ff; }
.tool-switcher { justify-content:center; }

@media (min-width:992px) {
  #header .header-row { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  #header #logo { justify-self:start; }
  #header .primary-menu { grid-column:2; }
}
