/* The site navigation on tools, scoped to avoid styling the forms. */
@scope (.shared-site-chrome) {
  :scope {
    --white: #fff;
    --line: #cfd8e4;
    --ground: #f1f4f8;
    --muted: #4f5e72;
    color: var(--ink);
    font: 16px/1.58 Georgia, "Times New Roman", serif;
  }
  a { color: inherit; }
  .nav-shell { display: block; padding: 0; }
  /* Match the shared site header instead of inheriting document-form defaults. */
  .nav-shell .brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; letter-spacing: .015em; }
  .nav-shell .brand-wordmark { margin: 0; }
  .icon-btn,.menu-btn { font: inherit; line-height: 1; }
  .search-head h2 { margin: 0; line-height: 1.08; }
  dialog#search-dialog { text-align: left; box-shadow: none; }
  #search-dialog .icon-btn { min-width: 0; }
svg { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1240px, calc(100% - 100px)); margin-inline: auto; }
:focus-visible { outline: 3px solid #4971a8; outline-offset: 4px; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 10; transform: translateY(-250%); padding: .65rem 1rem; color: var(--ink); background: white; }
.skip:focus { transform: none; }
.utility { color: #dce4ef; background: var(--marble-background); font-size: .72rem; letter-spacing: .055em; }
.utility .wrap { display: flex; min-height: 33px; align-items: center; justify-content: space-between; gap: 16px; }
.utility .wrap > span:first-child { text-transform: none; font-weight: 500; letter-spacing: .025em; line-height: 1.45; }
.utility a { text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility span span { margin-inline: 10px; opacity: .65; }
.nav-shell { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--white); }
.nav-shell .wrap {
  min-height: 86px;
  padding-block: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; font-weight: 760; font-size: 1.43rem; letter-spacing: -.055em; line-height: 1; }
.brand small { font-size: .56em; margin-left: .25em; font-weight: 600; letter-spacing: .055em; }
.mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: clamp(18px, 2.65vw, 40px); align-items: center; margin-left: auto; }
.nav > a { font-size: .91rem; text-decoration: none; font-weight: 650; white-space: nowrap; }
.nav > a:hover, .nav > a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.nav .portal-link { display: flex; align-items: center; gap: 8px; padding: 9px 14px; color: white; background: var(--marble-background); border-radius: 4px; }
.portal-link svg { width: 15px; height: 15px; }
.nav .portal-link:hover { text-decoration: none; background: var(--marble-hover); }
.nav .portal-link[aria-current] { text-decoration: underline; }
.actions { display: flex; align-items: center; gap: 7px; }
.icon-btn,.menu-btn { border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 4px; padding: 8px; line-height: 1; }
.icon-btn:hover,.menu-btn:hover { background: var(--ground); }
.menu-btn { display: none; }
dialog#search-dialog { width: min(530px,calc(100% - 30px)); max-height: 85vh; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: white; padding: 23px; }
dialog::backdrop { background: #091426a8; }
.search-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.search-head h2 { font-size: 2rem; }
.search-input { width: 100%; margin-block: 5px 10px; padding: 9px; border: 1px solid #8293ac; border-radius: 3px; color: var(--ink); background: var(--ground); }
.search-label { font-size: .9rem; font-weight: 650; }
.search-status { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 49px; padding: 10px 2px; text-decoration: none; font-size: .94rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.list svg { width: 16px; height: 16px; }
@media (max-width: 840px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px #15253b24; padding: 12px 18px 18px; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .nav a { padding: 8px; }
  .nav .portal-link { justify-content: space-between; margin-top: 5px; }
}

  @media (max-width: 980px) {
    .wrap { width: calc(100% - 62px); }
    .nav-shell .wrap { gap: 15px; }
    .nav { gap: 18px; }
    .nav.open { gap: 6px; }
  }
  @media (max-width: 760px) {
    .wrap { width: calc(100% - 36px); }
    .utility .wrap { justify-content: center; }
    .utility .wrap > span:first-child { display: none; }
    .nav-shell .wrap { min-height: 70px; padding-block: 6px; }
  }
  @media (max-width: 520px) {
    .utility { font-size: .67rem; }
    .utility span span { margin-inline: 5px; }
  }
}

.tool-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: min(1240px, calc(100% - 36px));
  margin: 12px auto;
  font-size: .88rem;
}
.tool-shortcuts a { color: #14243b; font-weight: 650; }
@media print {
  .shared-site-chrome, .tool-shortcuts { display: none !important; }
}
