/* Teacher William — shared shell for every app.
   The same header, footer and back-to-top as the home page, so all apps look like one site.
   Only the shell is shared; each app keeps its own content styles. */

@font-face { font-family: "Buixots"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/buixots.woff2") format("woff2"); }

.tw-shell-top,
.tw-shell-footer,
.tw-shell-footer-bottom {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
}

.tw-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(1.5rem, 8vw, 7rem);
  background: transparent;
}

.tw-shell-logo {
  font-family: "Buixots", system-ui, sans-serif;
  font-size: 2.86rem;
  line-height: 1;
  text-transform: uppercase;
  color: #2563eb;
  text-decoration: none;
}

.tw-shell-lang {
  min-height: 46px;
  padding: .6rem 2.2rem .6rem 1rem;
  border: 2px solid #2563eb;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  font-family: system-ui, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Menú: Our apps · Links · idioma, en pastilles com al selector */
.tw-shell-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); flex-wrap: wrap; justify-content: flex-end; }
.tw-shell-nav a { display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.2rem; border: 2px solid #2563eb; border-radius: 999px; background: #fff; color: #2563eb; font-family: system-ui, Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: 700; text-decoration: none; }
.tw-shell-nav a:hover { background: #eef4ff; }

.tw-shell-footer {
  padding: 40px clamp(1.5rem, 8vw, 7rem) 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.tw-shell-site {
  font-family: "Buixots", system-ui, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  text-transform: uppercase;
  color: #1e293b;
  text-decoration: none;
}

.tw-shell-footer-bottom {
  padding: 6px clamp(1.5rem, 8vw, 7rem) 28px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.tw-shell-up {
  position: fixed;
  right: 18px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, filter .2s ease;
}

.tw-shell-up:hover { filter: brightness(.9); }
.tw-shell-up.is-visible { opacity: 1; pointer-events: auto; }
.tw-shell-up img { width: 22px; height: 22px; filter: brightness(0) invert(1); }

/* Titles and links underline on hover, as in the ICT app */
.tw-shell-logo:hover,
.tw-shell-site:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

@media (max-width: 700px) {
  .tw-shell-logo { font-size: 2rem; }
  .tw-shell-lang { min-height: 40px; font-size: .9rem; }
  .tw-shell-nav a { min-height: 40px; padding: .4rem .9rem; font-size: .9rem; }
  .tw-shell-up { right: 12px; bottom: 16px; width: 46px; height: 46px; }
  .tw-shell-up img { width: 20px; height: 20px; }
}
