/* Smart CSC Desk site-wide custom overrides. Loaded after portal.css. */
:root {
  --brand: #0b5c3b;
  --brand-strong: #073d27;
  --soft: #e3f3ea;
  --custom-focus: #0b5c3b;
}

::selection {
  background: var(--brand);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--custom-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.not-found-main {
  width: 100%;
  display: grid;
  align-items: center;
  min-height: 58vh;
}

.not-found-layout {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 7vw, 88px);
  align-items: center;
}

.not-found {
  width: 100%;
  padding: 44px 16px;
}

.not-found-code {
  margin: 0;
  color: var(--brand);
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.035em;
}

.not-found h1 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.not-found-copy {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

.not-found-search h2 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 1.2rem;
}

.not-found-search .search {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.not-found-tool-results {
  margin-top: 12px;
}

.not-found-tool-results .tool-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.not-found-tool-results .tool-card {
  padding: 10px;
  box-shadow: none;
}

.not-found-tool-results .tool-card .ic {
  flex-basis: 34px;
  height: 34px;
}

.not-found-tool-results .empty {
  padding: 8px 0;
  margin: 0;
  text-align: left;
}

@media (max-width: 720px) {
  .not-found-main {
    min-height: 0;
  }

  .not-found-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .not-found {
    padding: 32px 8px 8px;
  }

  .not-found-search {
    padding: 8px;
  }
}

.faq-page-group h2 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1.2rem;
}

.faq-page-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq-page-item summary {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.faq-page-item summary::marker {
  color: var(--brand);
}

.faq-page-item p {
  margin: 9px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.hdr nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hdr nav a::before {
  content: "";
  width: 18px;
  height: 18px;
  background: center / contain no-repeat;
}
.hdr nav a[href$="#tools"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d%3D'M3 3h7v7H3z M14 3h7v7h-7z M3 14h7v7H3z M14 14h7v7h-7z'%2F%3E%3C/svg%3E"); }
.hdr nav a[href$="#links"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d%3D'M10 13a4 4 0 0 0 6 0l3-3a4 4 0 0 0-6-6l-2 2 M14 11a4 4 0 0 0-6 0l-3 3a4 4 0 0 0 6 6l2-2'%2F%3E%3C/svg%3E"); }

.menu-toggle { display: none; }

#site-footer {
  border-top: 1px solid #e5e5e5;
}

@media (max-width: 640px) {
  #site-header {
    width: 100%;
  }

  .hdr {
    width: 100%;
    padding: 8px 10px;
    gap: 6px;
  }

  .hdr .logo {
    max-width: 100%;
    gap: 7px;
    font-size: 1.05rem;
  }

  .hdr .logo img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .hdr { position: relative; }
  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: white;
    background: transparent;
    font: 24px/1 sans-serif;
    cursor: pointer;
  }
  .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .menu-toggle[aria-expanded="true"] {
    background: rgb(255 255 255 / 12%);
    border-radius: 8px;
  }

  .hdr nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(190px, calc(100% - 20px));
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: var(--brand);
    color: white;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 0 0 0 12px;
    box-shadow: 0 8px 18px -8px rgb(0 0 0 / 30%);
  }

  .hdr nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    color: inherit;
    font: 500 15px/1.3 system-ui, sans-serif;
  }

  .hdr nav a + a { border-top: 1px solid rgb(255 255 255 / 18%); }
  .hdr nav a:hover, .hdr nav a:focus-visible { background: rgb(255 255 255 / 12%); }
}

#site-header {
  background: #124c3f;
}

@media (max-width: 640px) {
  .hdr nav {
    background: #124c3f;
  }
}

}

#site-header {
  background: #fff;
  color: #0b5c3b;
  border-bottom: 1px solid #e5e5e5;
}

.hdr .logo,
.hdr nav a {
  color: #0b5c3b;
}

.hdr nav a:hover,
.hdr nav a:focus-visible {
  background: #e3f3ea;
}

.hdr nav a[href$="#tools"]::before,
.hdr nav a[href$="#links"]::before {
  filter: brightness(0) saturate(100%) invert(24%) sepia(26%) saturate(1100%) hue-rotate(102deg) brightness(93%) contrast(92%);
}

@media (max-width: 640px) {
  .menu-toggle {
    color: #0b5c3b;
  }

  .menu-toggle[aria-expanded="true"] {
    background: #e3f3ea;
  }

  .hdr nav {
    background: #fff;
    color: #0b5c3b;
    border: 1px solid #e5e5e5;
    border-radius: 0 0 0 12px;
  }

  .hdr nav a + a {
    border-top: 1px solid #e5e5e5;
  }

  .hdr nav a:hover,
  .hdr nav a:focus-visible {
    background: #e3f3ea;
  }
}

.hero-card {
  background: linear-gradient(135deg, #17483b, #123b32);
}

.hdr .logo {
  gap: 0;
  font-weight: 800;
  letter-spacing: -.035em;
}

.logo-smart { color: #0b5c3b; }
.logo-csc { color: #253f35; }
.logo-desk { color: #6b8f71; }

.hdr .logo {
  font-size: 19px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .hdr .logo {
    font-size: 18px;
  }
}
