/* Public tools share the landing palette without changing private account pages. */
.tools-page [hidden], .explore-section [hidden] { display: none !important; }
.tools-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tools-page .header-inner { flex-wrap: wrap; padding-block: 12px; }
.tools-page .header-inner > .button { gap: 9px; }
.tools-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 20px 0; }
.tools-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 17px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); background: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; }
.tools-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: white; }
.tools-nav a:hover { border-color: #8b76ab; }
.tools-main { padding-block: 42px 60px; }
.tools-hero { max-width: 830px; margin-bottom: 32px; }
.tools-hero h1 { max-width: 850px; font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
.tools-hero .eyebrow { color: #695583; }
.tool-intro { margin-top: 22px; max-width: 740px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.tools-panel { margin-block: 24px; padding: 24px; background: var(--lilac); border: 1px solid #d8cde9; border-radius: 22px; }
.tools-panel label, .tools-panel legend { display: block; font-weight: 650; font-size: 15px; line-height: 1.5; }
.tools-panel input[type="search"], .tools-panel select { width: 100%; min-width: 0; min-height: 48px; margin-top: 8px; padding: 12px 14px; border: 1px solid #9b95a8; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
.tools-panel input::placeholder { color: #657084; opacity: 1; }
.tools-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.tools-filters > * { flex: 1 1 220px; min-width: 0; }
.tools-filters .tools-search { flex-basis: 350px; }
.tools-panel .button { gap: 10px; min-height: 48px; background: var(--white); }
.tools-result-status { margin-block: 24px 18px; color: #4d5b73; font-size: 14px; line-height: 1.6; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 20px 0; list-style: none; }
.tools-grid > li { min-width: 0; }
.tool-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
article.tool-card { height: 100%; }
.tool-card h2, .tool-card h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tool-card p { color: #4d5b73; font-size: 15px; line-height: 1.75; }
.tool-card p + p { margin-top: 12px; }
.tool-card summary { min-height: 48px; cursor: pointer; }
.tool-card summary::marker { color: #765d99; }
.tool-card summary h2, .tool-card summary h3 { display: inline; }
.tool-card[open] { border-color: #a294bc; box-shadow: 0 5px 18px #19284908; }
.career-name { font-size: 19px; font-weight: 650; line-height: 1.45; }
.career-details { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.career-meta { display: block; margin-top: 12px; font-size: 13px; line-height: 1.6; color: #4d5b73; }
.career-details dl { margin: 0; }
.career-details dt { font-size: 13px; font-weight: 650; color: #695583; }
.career-details dd { margin: 4px 0 14px; font-size: 15px; line-height: 1.6; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding: 0; list-style: none; }
.tool-tag { display: inline-block; padding: 6px 10px; border-radius: 9px; background: var(--blue); color: #344e6a; font-size: 12px; line-height: 1.5; }
.tools-empty { margin: 20px 0; padding: 28px; border: 1px dashed #a294bc; border-radius: 20px; text-align: center; color: var(--muted); line-height: 1.7; }
.tools-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-block: 28px; }
.tools-pagination .button { min-height: 48px; gap: 10px; }
.tools-page button:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.tool-source, .tools-source-note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tool-source a, .tools-source-note a { text-decoration: underline; text-underline-offset: 3px; }
.tools-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px; margin-top: 38px; border: 1px solid #d8cde9; border-radius: 22px; background: #eee9f6; }
.tools-cta h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
.tools-cta p { max-width: 700px; font-size: 15px; line-height: 1.7; }
.tools-cta .button { gap: 12px; }
.tools-page .site-footer { margin-top: 0; }
.tools-page .footer-inner { flex-wrap: wrap; gap: 20px; }
.tools-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 30px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.tools-panel h2 + p { margin-top: 14px; line-height: 1.75; }
#glossary-search-help { margin-top: 8px; font-size: 13px; color: #4d5b73; }
.tools-page a, .tools-page button, .tools-page summary { scroll-margin-top: 150px; }
.tools-page :focus-visible { outline: 3px solid #365fc2; outline-offset: 4px; }
.explore-section { background: #f0edf6; border-top: 1px solid var(--line); }
.explore-section .section-description { max-width: 690px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.explore-card { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 28px; border: 1px solid #d8cde9; border-radius: 24px; background: var(--white); }
.explore-card > span { font-size: 30px; }
.explore-card p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.explore-card .button { margin-top: auto; min-height: 48px; padding-inline: 17px; gap: 12px; }
@media (max-width: 900px) {
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { padding: 24px; }
}
@media (max-width: 760px) {
  .tools-main { padding-top: 30px; }
  .tools-nav { gap: 7px; padding-top: 16px; }
  .tools-nav a { flex: 1 1 100px; padding-inline: 10px; font-size: 12px; }
  .tools-hero h1 { font-size: clamp(35px, 9vw, 49px); }
  .tool-intro { font-size: 16px; }
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .tools-panel, .tool-card, .tools-cta { padding: 20px; border-radius: 18px; }
  .tools-filters { gap: 14px; }
  .tools-filters > * { flex-basis: 100%; }
  .tools-page .header-inner > .button { max-width: 150px; font-size: 12px; padding-inline: 12px; }
  .tools-cta .button { width: 100%; }
}
