@font-face {
  font-family: "TC DejaVu Sans";
  src: url("fonts/DejaVuSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "TC Liberation Serif";
  src: url("fonts/LiberationSerif-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
html[lang="en"] .tc-fr, html[lang="fr"] .tc-en, #familySummary[hidden] { display: none !important; }
#belgianHeader .tc-mast {
  display: grid;
  position: relative;
  max-width: 1510px;
  margin: 0 auto;
  padding: 17px 24px 2px;
  box-sizing: border-box;
  background: white;
  color: #142e48;
}
.tc-lockup { display: flex; justify-self: center; align-items: center; gap: 29px; min-height: 87px; }
.tc-heading { width: 230px; text-align: center; }
.tc-title { font: 700 32px/1.12 "TC DejaVu Sans", "DejaVu Sans", sans-serif; letter-spacing: -1px; }
.tc-subtitle { color: #374f63; margin-top: 3px; font: italic 700 20px/1.15 "TC Liberation Serif", Georgia, serif; }
.tc-country { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 10px; font: 700 10px/1.1 system-ui,sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.tc-country img { width: 23px; height: 16px; }
.tc-separator { display: block; height: 61px; border-left: 1px solid #cfdae3; }
.tc-brand { display: grid; justify-items: center; gap: 3px; }
.tc-brand > img { display: block; width: 247px; height: auto; }
.tc-brand small { font: 400 10px/1.3 system-ui,sans-serif; color: #516575; }
.tc-brand a { color: #374f63; font-weight: 700; }
#belgianHeader .tc-mast .head-tools { position: absolute; top: 17px; right: 24px; display: flex; align-items: center; gap: 8px; margin: 0; }
#belgianHeader .tc-mast #aboutButton { display: inline-flex; align-items: center; color: #38546a; }
#belgianHeader .tc-mast .hmeta { position: static; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; flex-direction: row; gap: 2px 10px; margin-top: 8px; text-align: center; }
#belgianHeader .tc-mast .hupdated { color: #506779; }
.family-setting { margin: 16px 0 20px; border-block: 1px solid #d8e5e9; padding: 15px 0; }
.family-setting label { display: flex; align-items: center; gap: 9px; font-weight: 650; cursor: pointer; }
.family-setting input { width: 18px; height: 18px; accent-color: #127c89; }
.family-setting p,.family-summary p { margin: 6px 0 0; font-size: .88rem; color: #40586b; }
.family-summary { box-sizing: border-box; margin: 12px auto; width: min(100%,1000px); border: 1px solid #c5dade; padding: 14px clamp(12px,2vw,25px); border-radius: 12px; background: #f4fafb; color: #17374c; }
.family-summary h2 { font: 700 18px/1.25 system-ui,sans-serif; margin: 0 0 12px; }
.family-summary dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; gap: 10px; }
.family-summary dt { font-size: .8rem; }
.family-summary dd { font-size: 1.45rem; font-weight: 700; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.family-summary details { margin-top: 10px; font-size: .88rem; }
.family-summary summary { cursor: pointer; font-weight: 650; }
.family-summary ul { margin: 8px 0; padding-inline-start: 18px; line-height: 1.6; }
.family-summary li { margin-block: 4px; }
.family-summary a { color: #135987; display: inline-block; }
@media (max-width: 1040px) {
  #belgianHeader .tc-mast { padding: 7px 16px 0; }
  #belgianHeader .tc-mast .head-tools { position: static; grid-row: 1; justify-self: end; min-height: 28px; }
  .tc-lockup { grid-row: 2; min-height: 74px; }
}
@media (max-width: 580px) {
  #belgianHeader .tc-mast { padding-inline: 8px; }
  .tc-lockup { gap: clamp(7px,2.4vw,15px); }
  .tc-heading { width: auto; }
  .tc-title { font-size: clamp(20px,5.9vw,30px); }
  .tc-subtitle { font-size: clamp(15px,4.1vw,19px); margin-top: 2px; }
  .tc-country { margin-top: 5px; gap: 5px; font-size: 8px; }
  .tc-country img { width: 18px; height: 12px; }
  .tc-separator { height: 43px; }
  .tc-brand > img { width: clamp(100px,38vw,200px); }
  .tc-brand small { font-size: 9px; }
  #belgianHeader .tc-mast .hmeta { margin-top: 1px; gap: 0 6px; }
  .family-summary dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Keep controls reachable when the navigation would occupy most of the viewport. */
@media (max-height: 520px), (max-width: 760px) and (max-height: 800px) {
  #belgianHeader { position: relative; }
  #browseHome, #configure, #results, #publicationsPanel { scroll-margin-top: 12px; }
}
