/* Thought Club, 28 Nov 2026: Elisabeth's notes (S-2026-11-28-002). Loaded last on every changed page. */

/* Footer: the menu's pages in one row, in the menu's order, instead of four columns of sixteen links. */
.tc-footer--slim .tc-footer__main { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr); align-items: end; gap: 28px 56px; }
.tc-footer--slim .tc-footer__brand { grid-column: auto; max-width: none; }
.tc-foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.tc-foot-links a { white-space: nowrap; }
.tc-footer .tc-foot-links li { margin: 0; }
.tc-footer--slim .tc-foot-links a { font-weight: 600; }
@media (max-width: 900px) {
  .tc-footer--slim .tc-footer__main { grid-template-columns: 1fr; align-items: start; }
  .tc-foot-links { justify-content: flex-start; gap: 2px 22px; }
}

/* Spanish pages (older footer markup) */
.tc-footer--slim-es .fgrid { grid-template-columns: 1fr 1.4fr; align-items: end; }
.tc-footer--slim-es .tc-foot-links { list-style: none; margin: 0; padding: 0; }
.tc-footer--slim-es .tc-foot-links a { font-weight: 600; }
@media (max-width: 900px) {
  .tc-footer--slim-es .fgrid { grid-template-columns: 1fr; }
}

/* About, Collaborators: Neil Brown's title under his name */
.res .tc-role { display: block; font-size: .86rem; line-height: 1.4; color: var(--muted, #5b6b6c); margin: -4px 0 12px; }

/* Phones and tablets: the menu in her order, left to right, in one row under the logo that slides sideways when it
   is wider than the screen (Power Hours no longer jumps to the logo's row; the header keeps its two rows). */
@media (max-width:900px){
  header.site nav.main{display:flex; order:4; flex:0 0 100%; flex-wrap:nowrap; overflow-x:auto; gap:2px;
    margin:0; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
  header.site nav.main::-webkit-scrollbar{display:none;}
  header.site nav.main > a, header.site nav.main > a[href$="power-hours.html"]{display:inline-block; order:0; margin-left:0; flex:0 0 auto;}
  header.site nav.main > a:last-of-type{margin-right:28px;}
}
@media (max-width:560px){
  header.site nav.main{mask-image:linear-gradient(90deg,#000 86%,transparent); -webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);}
}

/* 30 Nov 2026: the logo top left was cut off (Joshua, screenshot). With the six menu items of 28 Nov the header row
   was wider than the page, so the logo shrank: cut to "thought" at most desktop widths, gone at about 950 to 1050 px.
   The logo never shrinks now; the menu is a little tighter; between 901 and 1180 px the header takes the two rows
   it already uses on tablets (logo, then the menu). */
header.site .brand{flex-shrink:0;}
@media (min-width:901px){
  nav.main{gap:2px;}
  nav.main a{padding:10px 11px;}
  header.site .lang{margin-left:6px;}
  header.site .lang a{padding:8px 12px;}
}
@media (min-width:901px) and (max-width:1180px){
  header.site .bar{flex-wrap:wrap; height:auto; row-gap:4px; padding-top:8px; padding-bottom:6px;}
  header.site .brand{order:1;}
  header.site .tc-acct{order:2; margin-left:auto;}
  header.site nav.main{order:4; flex:0 0 100%; margin:0; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none;}
  header.site nav.main::-webkit-scrollbar{display:none;}
  header.site nav.main > a{flex:0 0 auto; padding:8px 9px;}
  header.site nav.main .lang{margin-left:auto;}
}
