/* TechnologyDude Network Footer — scoped to .tdn so it can sit inside any theme. */
.tdn {
  --tdn-bg: #f2f4f6; --tdn-card: #ffffff; --tdn-line: #dde2e7; --tdn-ink: #1b2129; --tdn-muted: #5b6672; --tdn-focus: #b42318;
  box-sizing: border-box; clear: both; width: 100%;
  background: var(--tdn-bg); border-top: 1px solid var(--tdn-line);
  padding: 28px 16px 32px; margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.4;
}
.tdn.tdn-dark { --tdn-bg: #0f1114; --tdn-card: #1a1d22; --tdn-line: #2a2f36; --tdn-ink: #f1f3f5; --tdn-muted: #a3acb6; --tdn-focus: #ffcc33; }
.tdn *, .tdn *::before, .tdn *::after { box-sizing: border-box; }
.tdn-heading {
  max-width: 1100px; margin: 0 auto 14px; padding: 0;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tdn-muted);
}
.tdn-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1100px;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.tdn-list li { margin: 0; padding: 0; list-style: none; min-width: 0; }
.tdn-list li::before { content: none; }
.tdn-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%;
  padding: 14px 12px 14px; border: 1px solid var(--tdn-line); border-radius: 10px;
  background: var(--tdn-card); color: var(--tdn-ink) !important; text-decoration: none !important; text-align: center;
  transition: border-color .15s, transform .15s;
}
.tdn-card:hover { border-color: var(--tdn-muted); transform: translateY(-1px); }
.tdn-card:focus-visible { outline: 3px solid var(--tdn-focus); outline-offset: 2px; }
/* Logos were drawn on white, so they sit on a white plate in both styles. */
.tdn-logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 72px; margin-bottom: 6px; border-radius: 6px; background: #ffffff; padding: 6px;
}
.tdn-logo img { display: block; max-width: 100%; max-height: 60px; width: auto; height: auto; margin: 0; border: 0; box-shadow: none; }
.tdn-name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.tdn-blurb { font-size: 13px; color: var(--tdn-muted); }
@media (max-width: 480px) { .tdn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tdn-card { padding: 12px 8px; } .tdn-logo { height: 60px; } .tdn-logo img { max-height: 48px; } .tdn-name { font-size: 14px; } .tdn-blurb { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .tdn-card { transition: none; } .tdn-card:hover { transform: none; } }

/* v1.1: "Part of the Think Better Initiative" band, above the site cards. */
.tdn { --tdn-init-bg: #e6f4f7; --tdn-init-line: #b9dfe6; --tdn-init-accent: #1f6f7d; }
.tdn.tdn-dark { --tdn-init-bg: #14252a; --tdn-init-line: #23454d; --tdn-init-accent: #7fd0de; }
.tdn-init {
  max-width: 1100px; margin: 0 auto 24px; display: flex; gap: 18px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--tdn-init-line); border-left: 5px solid #f5a623; border-radius: 10px; background: var(--tdn-init-bg);
}
.tdn-init-logo { flex: 0 0 auto; width: 64px; height: auto; border-radius: 8px; background: #ffffff; padding: 4px; margin: 0; border: 0; box-shadow: none; }
.tdn-init-body { min-width: 0; }
.tdn-init-title { margin: 0 0 4px; padding: 0; font-size: 18px; font-weight: 800; color: var(--tdn-ink); }
.tdn-init-text { margin: 0 0 8px; padding: 0; font-size: 15px; color: var(--tdn-muted); max-width: 70ch; }
.tdn-init-link { font-size: 15px; font-weight: 700; color: var(--tdn-init-accent) !important; text-decoration: none !important; }
.tdn-init-link:hover { text-decoration: underline !important; }
.tdn-init-link:focus-visible { outline: 3px solid var(--tdn-focus); outline-offset: 2px; }
@media (max-width: 560px) { .tdn-init { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; } .tdn-init-logo { width: 52px; } .tdn-init-title { font-size: 17px; } }

/* v1.2: copyright as the last line of the footer. */
.tdn-copy { max-width: 1100px; margin: 22px auto 0; padding: 14px 0 0; border-top: 1px solid var(--tdn-line); font-size: 13px; color: var(--tdn-muted); text-align: center; }
