/* TextPlus.net shared layout: header, footer, independence notice, mobile nav.
   Loaded after each page's inline critical CSS so these rules take precedence. */
body > header.site-header{background:#2563eb;color:#fff;padding:.9rem 0;box-shadow:0 2px 4px rgba(0,0,0,.1)}
header.site-header .container{max-width:1200px;margin:0 auto;padding:0 1rem}
header.site-header a{color:#fff;text-decoration:none}
header.site-header .header-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem 1.5rem}
header.site-header .logo{font-size:1.4rem;font-weight:700;display:flex;align-items:center;gap:.5rem;margin:0}
header.site-header nav ul{display:flex;list-style:none;gap:1.25rem;flex-wrap:wrap;margin:0;padding:0}
header.site-header nav a{display:block;padding:.4rem 0;font-weight:500}
header.site-header nav a:hover,header.site-header nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px}
body > footer.site-footer{background:#1f2937;color:#9ca3af;padding:2.5rem 0 1.5rem;margin-top:4rem;text-align:left;font-size:.95rem}
footer.site-footer .container{max-width:1200px;margin:0 auto;padding:0 1rem}
footer.site-footer .footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1.5rem}
footer.site-footer h2{color:#fff;font-size:1rem;margin:0 0 .6rem;border:0;padding:0}
footer.site-footer ul{list-style:none;margin:0;padding:0}
footer.site-footer li{margin:0;padding:0;line-height:1.4}
footer.site-footer a{color:#cbd5e1;display:inline-block;padding:.2rem 0;text-decoration:none}
footer.site-footer a:hover{color:#fff;text-decoration:underline}
footer.site-footer .footer-note{margin:2rem 0 0;padding-top:1.25rem;border-top:1px solid #374151;font-size:.85rem;line-height:1.6;color:#9ca3af}
footer.site-footer .footer-note p{margin:0 0 .5rem}
.independence-note{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;border-radius:8px;padding:1rem 1.25rem;margin:1.5rem 0;line-height:1.6}
.independence-note a{color:#9a3412;text-decoration:underline}
.sms-meta{display:block}
.sms-meta .warn{color:#b45309;font-weight:600}
code,kbd{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
img,svg,video{max-width:100%}
table{max-width:100%}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
textarea,input,select{max-width:100%}
@media(max-width:640px){
  header.site-header .header-content{justify-content:flex-start}
  header.site-header nav ul{gap:1rem}
  header.site-header .logo{font-size:1.25rem}
  main h1{font-size:1.9rem !important;line-height:1.2}
  .container{padding-left:1rem;padding-right:1rem}
}
.breadcrumb{font-size:.9rem;color:#6b7280;margin-bottom:1.25rem}
.breadcrumb a{color:#6b7280}
.tp-more{max-width:900px;margin-top:2.5rem;line-height:1.6}
.tp-more h2{font-size:1.45rem;font-weight:700;color:#111827;line-height:1.25;margin:2rem 0 .75rem}
.tp-more p{margin-bottom:1rem}
.tp-more ol,.tp-more ul{margin:0 0 1rem 1.5rem}
.tp-more li{margin-bottom:.4rem}
.tp-more details{border:1px solid #e5e7eb;border-radius:8px;padding:.8rem 1rem;margin:.6rem 0}
.tp-more summary{cursor:pointer;font-weight:600}
.tp-more details p{margin:.6rem 0 0}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.quick{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:1.5rem;margin:0 auto 2rem;max-width:800px}
.quick h2{font-size:1.4rem;margin-bottom:.75rem}
.quick textarea{width:100%;min-height:110px;padding:.8rem;border:2px solid #e5e7eb;border-radius:8px;font:inherit;resize:vertical}
.quick textarea:focus,.tool-search input:focus{outline:none;border-color:#2563eb}
.quick-stats{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin:.75rem 0;align-items:baseline}
.quick-stats b{font-size:1.4rem;color:#2563eb}
#qNote{font-size:.9rem;color:#6b7280}
.quick-links{margin:0;font-size:.95rem;line-height:2}
.quick-links a{margin-right:.9rem;white-space:nowrap}
.tool-search{max-width:800px;margin:0 auto}
.tool-search label{display:block;margin-bottom:.4rem}
.tool-search input{width:100%;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font:inherit}
.tool-search [hidden]{display:none}
.tool-card[hidden],.category[hidden]{display:none}
