/* Free tools: shared directory and phone checkers. Keep site chrome in chrome.css.
   Type scale matches surface.css hero headings and the existing feature pages. */
.tools-page { color: var(--fg); }
.tools-page *, .tools-page *::before, .tools-page *::after { box-sizing: border-box; }
.tools-page [hidden] { display: none !important; }
.tool-frame { max-width: 1640px; margin: 0 auto; padding: 0 clamp(20px,4vw,80px); }
.tool-breadcrumb { display: flex; flex-wrap: wrap; gap: 13px; padding-top: 32px; font-size: 12px; color: var(--mut2); }
.tool-breadcrumb a { color: var(--mut2); }
.tool-breadcrumb a:hover { color: #2461c9; }
.tool-eyebrow, .tool-label { display: block; font: 400 12px/1.5 Sora,system-ui,sans-serif; letter-spacing: .14em; color: #596278; }
.tool-eyebrow { color: #2461c9; margin-bottom: 17px; }
.tools-page h1 { font: 300 clamp(34px,3.6vw,46px)/1.1 Sora,system-ui,sans-serif; letter-spacing: -.025em; max-width: 24ch; margin: 0 0 12px; font-weight: 300 !important; }
.tools-page h2 { font: 300 clamp(28px,3.2vw,40px)/1.2 Sora,system-ui,sans-serif; letter-spacing: -.025em; margin: 0; }
.tool-lead { font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--mut); margin: 0; }
.tool-workspace { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(35px,6vw,100px); align-items: center; padding: 52px 0 70px; }
.tool-form { margin-top: 32px; }
.tool-form label { display: block; font-size: 13px; font-weight: 400; margin-bottom: 10px; }
.tool-input-row { display: flex; gap: 10px; }
.tool-input-wrap { display: flex; align-items: center; flex: 1; min-width: 0; border: 1px solid #cdd4df; background: #fff; }
.tool-input-wrap:focus-within { outline: 2px solid #3078e8; outline-offset: 2px; }
.tool-input-wrap:has([aria-invalid="true"]) { border-color: #b42318; }
.tool-input-wrap svg { width: 19px; height: 19px; flex: none; margin-left: 15px; color: #6c7890; }
.tool-input-wrap input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; padding: 15px 12px; font: 400 15px/1.4 'JetBrains Mono',monospace; color: var(--fg); }
.tool-input-wrap input::placeholder { color: #738098; opacity: 1; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; flex: none; padding: 15px 20px; border: 1px solid #2461c9; border-radius: 0; background: #2461c9; color: #fff; font: 400 14.5px/1.4 Sora,system-ui,sans-serif; cursor: pointer; transition: background .2s; }
.tool-button:hover { background: #1d4fa8; color: #fff; }
.tool-button span { font-size: 18px; line-height: 1; }
.tool-button:disabled { opacity: .65; cursor: wait; }
.tool-hint { font-size: 13px; line-height: 1.6; color: var(--mut2); margin: 10px 0 0; }
.tool-error { font-size: 12px; color: #b42318; line-height: 1.6; margin: 10px 0 0; }
.tool-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--mut2); }
.tool-examples > span { margin-right: 3px; }
.tool-examples button { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e1e5ec; color: var(--fg); padding: 7px 9px; font-size: 12px; cursor: pointer; }
.tool-examples button:hover { border-color: #aabddb; background: #f7f9fc; }
.tool-examples button span { color: #2461c9; }
.tool-result-wrap { padding: 28px; background: radial-gradient(#d9e0eb .8px,transparent .8px) 0 0/12px 12px,#f8fafd; border: 1px solid #edf0f5; }
.tool-result { background: #fff; border: 1px solid #dce2eb; box-shadow: 0 8px 28px -18px #1f245044; min-height: 375px; }
.tool-result-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 24px; border-bottom: 1px solid #e6e9f0; }
.tool-tag { background: #edf4ff; color: #2461c9; padding: 4px 8px; font: 400 12px/1.5 Sora,system-ui,sans-serif; white-space: nowrap; }
.tool-carrier { display: flex; align-items: center; gap: 16px; padding: 26px 24px 20px; }
.tool-carrier-icon { display: grid; place-items: center; background: #edf4ff; border: 1px solid #dce8fa; color: #2461c9; width: 52px; height: 52px; flex: none; }
.tool-carrier-icon svg { width: 29px; height: 29px; }
.tools-page .tool-carrier h2 { font-size: 30px; font-weight: 400; margin-top: 3px; }
.tool-facts { margin: 0; padding: 0 24px 12px; }
.tool-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #edf0f5; font-size: 14.5px; line-height: 1.5; }
.tool-facts > div:last-child { border: 0; }
.tool-facts dt { color: var(--mut2); }
.tool-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.tool-facts > div:first-child dd { font-family: 'JetBrains Mono',monospace; }
.tool-result-bottom { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 24px; border-top: 1px solid #e6e9f0; background: #fafbfd; font-size: 12px; color: #67728a; }
.tool-result-bottom button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: transparent; color: #2461c9; font-size: 12px; cursor: pointer; }
.tool-result-bottom svg { width: 14px; height: 14px; }
.tool-result-message { padding: 30px 24px; }
.tool-result-message h2 { font-size: 23px; margin: 20px 0 12px; }
.tool-result-message p { font-size: 15px; line-height: 1.7; color: var(--mut); }
.tool-text-button { padding: 10px 0; border: 0; background: transparent; color: #2461c9; font-size: 12px; cursor: pointer; }
.tool-how { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; padding: 42px 0 54px; border-top: 1px solid #e6e9f0; }
.tool-how ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; list-style: none; margin: 0; padding: 0; }
.tool-step { font: 400 11px 'JetBrains Mono',monospace; color: #2461c9; }
.tool-how h3 { font-size: 19px; font-weight: 400; margin: 18px 0 10px; }
.tool-how p { font-size: 14.5px; font-weight: 300; line-height: 1.7; color: var(--mut); margin: 0; max-width: 30ch; }
.tool-faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; padding: 65px 0; border-top: 1px solid #e6e9f0; }
.tool-faq details { border-bottom: 1px solid #e6e9f0; }
.tool-faq details:first-child { border-top: 1px solid #e6e9f0; }
.tool-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; }
.tool-faq summary span { color: #2461c9; font-size: 20px; }
.tool-faq summary:focus-visible { outline: 2px solid #3078e8; outline-offset: 3px; }
.tool-faq p { margin: 0 28px 24px 0; font-size: 15px; line-height: 1.7; color: var(--mut); }
.tool-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid #e6e9f0; padding: 50px 0 65px; }
.tool-cta p { font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--mut); margin: 13px 0 0; }
.tools-heading { padding: 52px 0 38px; }
.tools-grid { margin-bottom: 58px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
@media (max-width: 1100px) { .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.tools-card { display: flex; flex-direction: column; border: 1px solid #e1e5ec; padding: 28px; color: var(--fg); }
.tools-card-available { transition: border-color .2s,box-shadow .2s; }
.tools-card-available:hover { border-color: #9cbced; box-shadow: 0 8px 26px -16px #1f245044; color: var(--fg); }
.tools-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 30px; }
.tools-card h2 { font-size: 19px; font-weight: 400; }
.tools-card p { font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--mut); margin: 13px 0 30px; }
.tools-card-link { display: flex; justify-content: space-between; margin-top: auto; font-size: 12px; color: #2461c9; }
.tool-skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 15px 20px; background: #fff; color: #2461c9; }
.tool-skip:focus { top: 10px; }
@media (max-width: 1100px) {
  .tool-workspace { gap: 30px; }
  .tool-input-row { flex-direction: column; }
  .tool-result-wrap { padding: 20px; }
  .tools-card { padding: 22px; }
  .tools-grid { gap: 16px; }
}
@media (max-width: 800px) {
  .tool-workspace { grid-template-columns: 1fr; gap: 35px; padding-top: 35px; }
  .tool-input-row { flex-direction: row; }
  .tool-how, .tool-faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .tool-faq-layout { padding: 45px 0; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-card { padding: 25px; }
  .tools-card-top { margin-bottom: 22px; }
  .tools-card p { max-width: 55ch; }
  .tool-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .tool-breadcrumb { padding-top: 24px; }
  .tool-input-row { flex-direction: column; }
  .tool-input-wrap input { font-size: 16px; }
  .tool-button { min-height: 48px; }
  .tool-examples button { padding: 10px; }
  .tool-examples > span { flex-basis: 100%; margin-bottom: 3px; }
  .tool-result-wrap { padding: 14px; }
  .tool-result-top, .tool-result-bottom { padding-left: 16px; padding-right: 16px; }
  .tool-carrier { padding-left: 16px; padding-right: 16px; }
  .tool-facts { padding-left: 16px; padding-right: 16px; }
  .tool-facts > div { gap: 10px; flex-wrap: wrap; }
  .tool-how ol { grid-template-columns: 1fr; gap: 26px; }
  .tool-how li { padding-left: 38px; position: relative; }
  .tool-step { position: absolute; left: 0; top: 2px; }
  .tool-how h3 { margin-top: 0; }
  .tool-how p { max-width: 100%; }
  .tools-heading { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-page * { transition: none !important; }
}

/* Result notes explain what each check establishes, including in copied results. */
.tool-result-note { margin: 0; padding: 0 24px 20px; color: var(--mut2); font-size: 13px; line-height: 1.7; }
.tools-page [data-validity="invalid"] #result-value { color: #b42318; }
.tools-page [data-validity="invalid"] .tool-carrier-icon { color: #b42318; border-color: #f3cec9; background: #fff4f2; }
@media (max-width:480px) { .tool-result-note { padding-left:16px; padding-right:16px; } }
