/* TechErics — one shared header and footer for every page.
   Scoped to .tec-header / .tec-footer with explicit values so page styles cannot change them. */
.tec-header, .tec-header *, .tec-footer, .tec-footer * { box-sizing: border-box; }
.tec-header a, .tec-footer a { text-decoration: none; }

/* ---------- Header ---------- */
header.tec-header {
  display: block !important; position: sticky !important; top: 0 !important; z-index: 9990 !important; height: auto !important; min-height: 0 !important;
  width: 100% !important; margin: 0 !important; padding: 0 !important;
  background: rgba(255, 255, 255, .94) !important; border-bottom: 1px solid #e2e8f0 !important;
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  box-shadow: none !important; transform: none !important;
}
.tec-header .tec-bar { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 18px; position: relative; }
.tec-header .tec-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #0f172a !important; }
.tec-header .tec-brand img { width: 32px; height: 32px; display: block; }
.tec-header .tec-brand b { font: 800 1.02rem/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif; letter-spacing: .02em; color: #0f172a !important; }
.tec-header .tec-brand span { font: 700 .62rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; color: #475569 !important; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 8px; }
.tec-header .tec-nav { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.tec-header .tec-nav li { margin: 0; padding: 0; list-style: none; }
.tec-header .tec-nav a { display: block; padding: 8px 11px; border-radius: 9px; font: 500 .9rem/1.2 Inter, system-ui, sans-serif; color: #334155 !important; white-space: nowrap; }
.tec-header .tec-nav a:hover { background: #f1f5f9; color: #0f172a !important; }
.tec-header .tec-nav a[aria-current="page"], .tec-header .tec-nav a.is-active { color: #1d4ed8 !important; background: #eff6ff; font-weight: 600; }
.tec-header .tec-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: #2563eb; color: #fff !important; font: 700 .85rem/1 Inter, system-ui, sans-serif; }
.tec-header .tec-cta:hover { background: #1d4ed8; }
.tec-header .tec-menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0; }
.tec-header .tec-menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #0f172a; transition: transform .2s, opacity .2s; }
.tec-header .tec-menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tec-header .tec-menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.tec-header .tec-menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) { .tec-header .tec-nav a { padding: 8px 8px; font-size: .86rem; } }
@media (max-width: 980px) {
  .tec-header .tec-menu-btn { display: inline-flex; }
  .tec-header .tec-cta { display: none; }
  .tec-header .tec-nav { display: none; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(15, 23, 42, .14); }
  .tec-header.is-open .tec-nav { display: flex; }
  .tec-header .tec-nav a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Footer ---------- */
footer.tec-footer {
  display: block !important; width: 100% !important; margin: 0 !important; padding: 48px 0 0 !important;
  background: #f8fafc !important; border-top: 1px solid #e2e8f0 !important; color: #475569 !important;
  font: 400 .92rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; text-align: left !important;
}
.tec-footer .tec-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.tec-footer .tec-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.tec-footer .tec-about p { margin: 12px 0 0; max-width: 340px; color: #475569 !important; }
.tec-footer h2 { margin: 0 0 12px !important; font: 700 .78rem/1.2 Inter, system-ui, sans-serif !important; letter-spacing: .08em; text-transform: uppercase; color: #0f172a !important; }
.tec-footer ul { margin: 0; padding: 0; list-style: none; }
.tec-footer li { margin: 0 0 8px; padding: 0; list-style: none; }
.tec-footer a { color: #475569 !important; }
.tec-footer a:hover { color: #1d4ed8 !important; text-decoration: underline; }
.tec-footer .tec-brand { display: flex; align-items: center; gap: 10px; color: #0f172a !important; }
.tec-footer .tec-brand img { width: 28px; height: 28px; }
.tec-footer .tec-brand b { font: 800 1rem/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif; color: #0f172a; }
.tec-footer .tec-bottom { margin-top: 36px; padding: 18px 0 24px; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #64748b; }
@media (max-width: 860px) { .tec-footer .tec-grid { grid-template-columns: 1fr 1fr; } .tec-footer .tec-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .tec-footer .tec-grid { grid-template-columns: 1fr; } }

/* ---------- Non-blocking notice (replaces alert() pop-ups) ---------- */
.tec-notice { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99999; max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 12px; background: #0f172a; color: #fff; font: 500 .92rem/1.45 Inter, system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .25); white-space: pre-line; }
@media print { header.tec-header, footer.tec-footer, .tec-notice { display: none !important; } }
