/* Estilos globais da interface web da BDTD. */
:root {
  --text: #0000009d;
  --bg: #f8f9fa;
  --panel: #ffffff;
  --blue: #1094ab;
  --blue-soft: #64c4d2;
  --orange: #fcb421;
  --line: #dddddd;
  --table-row-hover: #e8f4fa;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.4;
  color: var(--text);
  background-color: var(--bg);
}

#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, 95vw);
  margin: 0 auto;
}

.top-links-bar {
  background-color: #757575;
  position: relative;
  z-index: 900;
}

.top-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: nowrap;
  min-height: 24px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.top-links::-webkit-scrollbar {
  display: none;
}

.top-links li {
  display: flex;
  align-items: center;
}

.top-links li + li::before {
  content: "|";
  color: rgba(255, 255, 255, 0.55);
  margin: 0 10px;
}

.top-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.top-links a:hover {
  color: #d9d9d9;
}

.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.usp-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.usp-badge img {
  display: block;
  height: 58px;
  width: auto;
}

.bdtd-brand {
  display: flex;
  align-items: center;
  margin-left: 25px;
}

.bdtd-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.bdtd-badge img {
  display: block;
  height: 75px;
  width: auto;
}

.site-title-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 25px;
  line-height: 1.05;
  font-size: clamp(20px, 1.5vw, 24px);
}

.site-title-stack > div {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.01em;
  text-shadow: 0 0 0.4px rgba(95, 68, 25, 0.25);
}

.site-title-stack > div:first-child {
  font-size: 0.88em;
  font-weight: 500;
  color: #a88343;
}

.site-title-stack > div:nth-child(2) {
  margin-top: -4px;
  font-size: 1.54em;
  font-weight: 600;
  color: #845f25;
}

.beta-tag-note {
  display: inline-block;
  align-self: flex-end;
  margin-top: 4px;
  position: relative;
  white-space: nowrap;
  color: var(--blue-soft);
  font-family: "Kalam", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: rotate(-4deg);
}

.header-navigation {
  flex: 1 1 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.header-nav-menu,
.header-nav-menu ul,
.header-nav-menu li {
  list-style: none;
}

.header-nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  width: 100%;
  column-gap: 24px;
  row-gap: 6px;
}

.header-nav-menu > li {
  position: relative;
}

.header-nav-menu > li > a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  white-space: nowrap;
}

.header-nav-menu > li > a i {
  color: var(--orange);
  font-size: 14px;
}

.header-nav-menu > li > a:hover {
  color: var(--orange);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.header-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  border-bottom: 1px solid #ededed;
  position: relative;
}

.sub-menu li:last-child {
  border-bottom: 0;
}

.sub-menu li a {
  display: block;
  text-decoration: none;
  padding: 12px 18px;
  color: #666666;
  font-size: 16px;
}

.sub-menu li a:hover {
  background-color: #f8f9fa;
  color: var(--orange);
}

.menu-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.25s ease;
}

.sub-menu li:hover > .sub-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.language-switcher-header {
  width: auto;
  min-width: 112px;
  position: relative;
  flex-shrink: 0;
}

.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
  text-decoration: none;
  background: #f8f9fa;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.language-toggle .fa-globe {
  color: var(--blue-soft);
}

.language-toggle .fa-caret-down {
  color: var(--orange);
}

.current-language {
  white-space: nowrap;
}

.language-toggle:hover {
  color: var(--blue-soft);
  border-color: var(--blue-soft);
}

.language-dropdown {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

.language-switcher-header:hover .language-dropdown {
  display: block;
}

.language-switcher-header:focus-within .language-dropdown {
  display: block;
}

.language-dropdown li {
  border-bottom: 1px solid #ececec;
}

.language-dropdown li:last-child {
  border-bottom: 0;
}

.language-dropdown a {
  display: block;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.language-dropdown a:hover {
  background-color: #f8f9fa;
  color: var(--orange);
}

.header-bars {
  display: flex;
  flex-direction: column;
}

.color-bar {
  width: 100%;
  height: 10px;
}

.blue-bar {
  background-color: var(--blue-soft);
}

.orange-bar {
  background-color: var(--orange);
}

.site-content {
  flex: 1;
  padding: 30px 0;
}

.main-content {
  background-color: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.alert-banner {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-banner-error {
  color: #8a1f2a;
  background: #fdecee;
  border-color: #f3c3c8;
}

.alert-banner-info {
  color: #1f5161;
  background: #edf7fb;
  border-color: #cce3ec;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(220px, 0.72fr);
  gap: 18px;
}

.hero-copy {
  background: linear-gradient(125deg, #eef8fb 0%, #ffffff 100%);
  border: 1px solid #d9e8ef;
  border-radius: 12px;
  padding: 24px;
}

.hero-overline {
  margin-bottom: 8px;
  color: #4f7382;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.hero-title {
  margin-bottom: 12px;
  color: #1f5161;
  line-height: 1.25;
  font-size: 24px;
}

.hero-description {
  margin: 0;
  line-height: 1.7;
  color: #4d5f70;
  max-width: 56ch;
}

.overview-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e3ebf1;
  background: #ffffff;
}

.section-header {
  margin-bottom: 14px;
}

.section-title {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.2;
}

.section-description {
  margin: 0;
  line-height: 1.65;
  color: #5a6979;
}

.statistics-section {
  width: min(360px, 100%);
  justify-self: end;
  align-self: start;
  padding: 14px;
  border-color: #d8e5ed;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(10, 44, 62, 0.08);
}

.statistics-section .section-title {
  margin-bottom: 8px;
  font-size: 21px;
}

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-total {
  text-align: center;
  background: #1d89a0;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: none;
}

.stat-total .stat-number {
  font-size: 1.45em;
  font-weight: 700;
}

.stat-total .stat-label {
  font-size: 0.86em;
  opacity: 0.92;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-item {
  background: #ffffff;
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
  min-width: 0;
  padding: 8px 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-item .stat-number {
  font-size: 1.02em;
  font-weight: 700;
  color: var(--text);
}

.stat-item .stat-label {
  font-size: 0.85em;
  color: #7f8c8d;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.search-section {
  padding: 0;
}

.advanced-search-container {
  background: linear-gradient(180deg, #f7fbff 0%, #eff6fc 100%);
  border: 1px solid #cfdeea;
  box-shadow: 0 6px 18px rgba(10, 44, 62, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.advanced-search-header {
  position: relative;
  margin-bottom: 16px;
  text-align: left;
}

.advanced-search-header h3 {
  font-size: 18px;
  color: #294d5a;
  margin-bottom: 4px;
}

.advanced-search-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-help-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8cddd;
  border-radius: 999px;
  background: #ffffff;
  color: #2c6177;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.search-help-toggle:hover {
  border-color: #7ea5ba;
  background: #f4f9fd;
}

.search-help-toggle:focus-visible {
  outline: 2px solid #7ea5ba;
  outline-offset: 2px;
}

.search-help-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(100%, 620px);
  padding: 12px 14px;
  border: 1px solid #bfd7e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 58, 78, 0.18);
  z-index: 15;
}

.search-help-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #294d5a;
}

.search-help-title-sorting {
  margin-top: 18px;
}

.search-help-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #3d5565;
  font-size: 13px;
  line-height: 1.35;
}

.search-help-emphasis {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: #eaf4fb;
  color: #1f5161;
  font-weight: 700;
}

.advanced-search-header p:not(.search-help-title) {
  font-size: 14px;
  font-weight: 400;
  color: #5c6f7e;
  margin: 0;
}

.document-type-selection {
  padding: 14px;
  background: #ffffff;
  border: 1px dashed #d6e4ee;
  border-radius: 8px;
  margin-bottom: 16px;
}

.document-types-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 0;
}

.year-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.area-search-fields {
  grid-template-columns: minmax(0, 1fr);
}

.area-search-fields.is-collapsed {
  display: none;
}

.area-search-options {
  margin-bottom: 14px;
}

.year-totals-inline-fields {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.year-totals-inline-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.year-range-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-range-label {
  min-width: 92px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #666666;
}

.year-range-input {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
}

.year-range-input:focus {
  outline: none;
  border-color: #bfbfbf;
  box-shadow: 0 0 0 1px #d4d4d4;
}

.document-type-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  min-width: max-content;
  font-size: 15px;
}

.document-type-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #eeeeee;
}

.document-type-checkbox:hover input ~ .checkmark {
  background-color: #f0f0f0;
}

.document-type-checkbox input:checked ~ .checkmark {
  background-color: var(--orange);
  border-color: var(--orange);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.document-type-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.checkmark::after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.search-criteria-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-criterion {
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.criterion-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-select {
  min-width: 90px;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 13px;
}

.field-select {
  min-width: 155px;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 14px;
}

.contains-label {
  font-size: 14px;
  font-weight: 700;
  color: #666666;
}

.criterion-input {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
}

.criterion-input:focus {
  outline: none;
  border-color: #bfbfbf;
  box-shadow: 0 0 0 1px #d4d4d4;
}

.document-type-criterion-select {
  display: none;
  flex: 0 0 auto;
  width: calc(var(--doc-type-select-ch, 20) * 1ch);
  max-width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
}

.document-type-criterion-select:focus {
  outline: none;
  border-color: #bfbfbf;
  box-shadow: 0 0 0 1px #d4d4d4;
}

.exact-term-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #3f3f3f;
  white-space: nowrap;
  user-select: none;
}

.exact-term-option input {
  margin: 0;
}

.sort-controls-fields {
  margin-top: 14px;
}

.sort-controls-panel {
  border: 1px solid #cfdeea;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcff 0%, #edf5fb 100%);
  box-shadow: 0 3px 10px rgba(15, 63, 86, 0.07);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sort-controls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: end;
}

.sort-field-group,
.sort-direction-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sort-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5a7283;
}

.sort-field-select {
  width: auto;
  min-width: 180px;
  max-width: min(100%, 230px);
}

.sort-direction-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sort-direction-btn {
  border: 1px solid #c8d8e5;
  border-radius: 6px;
  background: #ffffff;
  color: #355061;
  font-size: 12px;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.sort-direction-btn:hover {
  border-color: #8eb0c6;
  background: #f1f7fc;
}

.sort-direction-btn.is-active {
  border-color: #2f8fa4;
  background: #dff0f7;
  color: #1f5161;
}

.sort-direction-btn:disabled {
  cursor: not-allowed;
  border-color: #d9e3ec;
  background: #f5f8fb;
  color: #9eacb8;
}

.year-range-criterion {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.year-criterion-label {
  font-size: 13px;
  font-weight: 700;
  color: #666666;
}

.year-criterion-input {
  width: 90px;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
}

.year-criterion-input:focus {
  outline: none;
  border-color: #bfbfbf;
  box-shadow: 0 0 0 1px #d4d4d4;
}

.search-criterion.is-year-field .contains-label,
.search-criterion.is-year-field .criterion-input,
.search-criterion.is-year-field .exact-term-option,
.search-criterion.is-year-field .document-type-criterion-select {
  display: none;
}

.search-criterion.is-year-field .year-range-criterion {
  display: flex;
}

.search-criterion.is-document-type-field .criterion-input,
.search-criterion.is-document-type-field .exact-term-option,
.search-criterion.is-document-type-field .year-range-criterion {
  display: none;
}

.search-criterion.is-document-type-field .document-type-criterion-select {
  display: block;
}

.btn-add-criterion-inline,
.btn-remove-criterion {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-criterion-inline {
  background: var(--blue);
}

.btn-add-criterion-inline:hover {
  background: #5ab2c0;
}

.btn-remove-criterion {
  cursor: pointer;
  background: #6c757d;
}

.btn-remove-criterion:hover {
  background: #5a6268;
}

.criterion-row .btn-add-criterion-inline,
.criterion-row .btn-remove-criterion {
  margin-left: auto;
}

.btn-remove-criterion.is-reserved-hidden {
  visibility: hidden;
  pointer-events: none;
}

.is-hidden {
  display: none;
}

.criteria-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.search-criteria-container + .document-type-selection,
.criteria-actions + .document-type-selection {
  margin-top: 12px;
}

.criteria-actions .btn-add {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-height: 34px;
  padding: 8px 14px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.search-submit {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.search-submit button {
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-add {
  background: var(--blue);
}

.btn-add:hover {
  background: #5ab2c0;
}

.btn-search-advanced {
  background: var(--orange);
}

.btn-search-advanced:hover {
  background: #f3ac1d;
}

.btn-cancel {
  background: #6c757d;
}

.btn-cancel:hover {
  background: #5a6268;
}

.results-panel {
  margin-top: 0;
  border: 1px solid #e3ebf1;
  border-radius: 12px;
  background: #ffffff;
  padding: 22px;
}

.results-stale-notice {
  margin: 0;
  text-align: center;
}

.results-search-action-highlight {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

.institutional-panel {
  padding: 28px;
}

.institutional-content {
  color: #2f3a47;
  font-size: 16px;
  line-height: 1.65;
}

.institutional-content p {
  margin: 0 0 14px;
}

.institutional-content h3 {
  margin: 26px 0 12px;
  font-size: 22px;
  color: #1f5161;
}

.institutional-content h4 {
  margin: 20px 0 10px;
  font-size: 17px;
  color: #2f3a47;
}

.institutional-content ul,
.institutional-content ol {
  margin: 0 0 14px 20px;
  padding: 0;
}

.institutional-content li {
  margin-bottom: 8px;
}

.institutional-content a {
  color: #1f5161;
  text-decoration: underline;
}

.institutional-content a:hover {
  color: #f3ac1d;
}

.institutional-panel-credits {
  border-color: #d6e5ee;
  background: linear-gradient(180deg, #f9fcff 0%, #ffffff 35%);
}

.institutional-panel-credits .section-title {
  color: #1f5161;
}

.credits-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credits-intro {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--blue-soft);
  border-radius: 8px;
  background: #edf7fb;
  color: #355061;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.credits-card {
  background: #ffffff;
  border: 1px solid #d7e6ef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(27, 75, 97, 0.08);
  padding: 18px;
}

.credits-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  color: #214f60;
}

.credits-card-wide {
  margin-top: 2px;
}

.credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credits-list li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed #d9e3ea;
}

.credits-list li:first-child {
  padding-top: 0;
}

.credits-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.credits-role,
.credits-name,
.credits-note {
  display: block;
}

.credits-role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5d7485;
  margin-bottom: 4px;
}

.credits-name {
  color: #243340;
  line-height: 1.45;
}

.credits-name + .credits-name {
  margin-top: 2px;
}

.credits-note {
  margin-top: 4px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: italic;
  background: #f1f4f7;
  color: #5f6f7d;
}

.publication-collapsed {
  display: none;
}

.statistics-results-panel .stats-container {
  max-width: 760px;
  margin: 0 auto;
  gap: 12px;
}

.statistics-results-panel .results-header {
  justify-content: center;
}

.statistics-results-panel .section-title {
  text-align: center;
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.results-panel .section-title {
  margin-bottom: 0;
  font-size: 24px;
}

.results-meta {
  margin: 0;
  font-size: 14px;
  color: #697688;
}

.results-meta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid #dde2ea;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: #ecf1f6;
  color: #2f3a47;
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid #d5dbe2;
}

.table-header-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-sort-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-sort-btn {
  min-width: 30px;
  height: 26px;
  border: 1px solid #c8d8e5;
  border-radius: 6px;
  background: #ffffff;
  color: #355061;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.table-sort-btn i {
  font-size: 12px;
}

.table-sort-btn:hover {
  border-color: #8eb0c6;
  background: #f1f7fc;
}

.table-sort-btn:focus-visible {
  outline: 2px solid #6aa6c9;
  outline-offset: 1px;
}

.table-sort-btn.is-active {
  border-color: #2f8fa4;
  background: #dff0f7;
  color: #1f5161;
}

td {
  padding: 10px 11px;
  color: #3b3b3b;
  border-bottom: 1px solid #eceff3;
}

.table-drilldown-link {
  color: #1f5161;
  text-decoration: none;
  font-weight: 600;
}

.table-drilldown-link:hover {
  color: #f3ac1d;
  text-decoration: underline;
}

.results-table td .table-drilldown-link {
  font-weight: 400;
}

.results-table .result-title-cell .table-drilldown-link,
.results-table .result-author-cell .table-drilldown-link {
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background-color: #fafbfd;
}

tbody tr {
  transition: background-color 0.15s ease;
}

tbody tr:hover,
tbody tr:focus-within {
  background-color: var(--table-row-hover);
}

.empty-state {
  text-align: center;
  padding: 18px 0;
  color: #727d8c;
}

.pagination {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 8px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #f6f9fc;
  color: #36506c;
  text-decoration: none;
  font-weight: 600;
}

.pagination-link:hover {
  border-color: #8fa7c2;
  background: #eaf1f7;
}

.pagination-link.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.pagination-status {
  color: #5a6778;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pagination-status-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pagination-range {
  color: #697688;
  font-size: 14px;
}

.pagination-jump-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-jump-label {
  color: #5a6778;
  font-size: 13px;
  font-weight: 600;
}

.pagination-jump-input {
  width: 78px;
  padding: 6px 8px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #ffffff;
  color: #2f4156;
  font-weight: 600;
}

.pagination-jump-input:focus {
  border-color: #7c9abb;
  box-shadow: 0 0 0 2px rgba(124, 154, 187, 0.2);
  outline: none;
}

.pagination-jump-button {
  padding: 7px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #f6f9fc;
  color: #36506c;
  font-weight: 700;
  cursor: pointer;
}

.pagination-jump-button:hover {
  border-color: #8fa7c2;
  background: #eaf1f7;
}

.crest-placeholder {
  width: 76px;
  height: 76px;
  margin: 26px auto 6px;
  display: grid;
  place-content: center;
  border-radius: 999px;
  border: 2px solid #cecece;
  color: #bebebe;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.55;
}

.thesis-page-content {
  gap: 20px;
}

.thesis-share-bar {
  margin: 0;
  padding: 0 0 6.5px;
}

.thesis-share-label {
  margin: 0;
  padding: 0 0 6.5px;
  font-weight: 700;
  color: #000000;
}

.thesis-share-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.thesis-share-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #ffffff;
  color: #3065d1;
  text-decoration: none;
  font-size: 16px;
}

.thesis-share-link:hover {
  color: #77a4ff;
  border-color: #bfcff3;
  text-decoration: none;
}

.thesis-share-link[data-share-network="whatsapp"] {
  color: #25d366;
}

.thesis-share-link[data-share-network="facebook"] {
  color: #1877f2;
}

.thesis-share-link[data-share-network="x"] {
  color: #000000;
}

.thesis-share-link[data-share-network="linkedin"] {
  color: #0a66c2;
}

.thesis-legacy-columns {
  display: flex;
  align-items: flex-start;
  gap: 19.5px;
}

.thesis-legacy-main-column {
  flex: 1 1 auto;
  min-width: 0;
}

.thesis-services-wrap {
  display: flex;
  flex-direction: column;
  flex: 0 0 220px;
  align-items: stretch;
  margin: 0 0 13px;
  gap: 10px;
}

.thesis-services-wrap .thesis-share-bar {
  width: 220px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d8e1ef;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffceb 0%, #fff7cc 100%);
  box-shadow: 0 18px 34px rgba(23, 49, 77, 0.1);
}

.thesis-services-wrap .thesis-share-label {
  display: block;
  text-align: left;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f8fdd 0%, #2f6fbe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.thesis-services-wrap .thesis-share-links {
  margin-top: 10px;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 6px;
}

.thesis-services-wrap .thesis-share-link {
  flex: 0 0 auto;
}

.thesis-services-toggle-wrap {
  width: 220px;
  text-align: right;
}

.thesis-services-toggle {
  border: 1px solid #d8e1ef;
  border-radius: 999px;
  background: #ffffff;
  color: #1f4f9f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  box-shadow: 0 10px 20px rgba(23, 49, 77, 0.08);
}

.thesis-services-toggle:hover {
  color: #17314d;
  background: #f5f8fc;
}

.thesis-services-menu {
  width: 220px;
  border: 1px solid #d8e1ef;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffceb 0%, #fff7cc 100%);
  padding: 12px;
  box-shadow: 0 18px 34px rgba(23, 49, 77, 0.1);
}

.thesis-services-menu.is-collapsed {
  display: none;
}

.thesis-share-bar.is-collapsed {
  display: none;
}

.thesis-services-title {
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4f8fdd 0%, #2f6fbe 100%);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.thesis-services-separator {
  border: 0;
  border-top: 1px solid rgba(23, 49, 77, 0.12);
  margin: 6px 0;
}

.thesis-services-item {
  padding: 0;
}

.thesis-services-item a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #2455a2;
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.thesis-services-item a:hover {
  color: #17314d;
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(2px);
}

.thesis-services-item a:focus-visible,
.thesis-services-toggle:focus-visible,
.thesis-share-link:focus-visible {
  outline: 2px solid #1f4f9f;
  outline-offset: 2px;
}

.thesis-services-dialog {
  position: fixed;
  inset: 0;
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  height: min(80vh, 720px);
  max-height: 80vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.thesis-services-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.thesis-services-dialog-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}

.thesis-services-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #d9dde3;
  background: #f5f8fc;
}

.thesis-services-dialog-title {
  margin: 0;
  color: #17314d;
  font-size: 18px;
  font-weight: 700;
}

.thesis-services-dialog-close {
  border: 1px solid #b9c6d8;
  border-radius: 999px;
  background: #ffffff;
  color: #17314d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 14px;
}

.thesis-services-dialog-close:hover {
  background: #eef3f9;
}

.thesis-services-dialog-status {
  padding: 12px 18px;
  color: #4f6176;
  font-size: 14px;
}

.thesis-services-dialog-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.thesis-services-dialog-frame[hidden],
.thesis-services-dialog-status[hidden] {
  display: none;
}

.thesis-summary-panel .section-title {
  margin-bottom: 0;
}

.thesis-doi-row {
  margin: 6px 0 0;
  color: #405466;
  font-size: 14px;
}

.thesis-label-inline {
  font-weight: 700;
}

.thesis-main-title {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: #2f3a47;
}

.thesis-details-panel {
  padding-top: 18px;
}

.thesis-metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.thesis-meta-item {
  padding: 12px 14px;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: #fdfefe;
}

.thesis-meta-item dt {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5d7485;
}

.thesis-meta-item dd {
  margin: 0;
  color: #2f3a47;
  line-height: 1.5;
}

.thesis-meta-item-wide {
  grid-column: 1 / -1;
}

.thesis-inline-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.thesis-text-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thesis-text-panel .section-title {
  font-size: 22px;
}

.thesis-text-strong {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #2a4252;
}

.thesis-subtitle {
  margin: 8px 0 2px;
  color: #1f5161;
  font-size: 18px;
}

.thesis-text-block {
  margin: 0;
  color: #2f3a47;
  line-height: 1.7;
  white-space: pre-line;
}

.thesis-keywords-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.thesis-alt-title {
  margin-top: 14px;
}

.thesis-date-row {
  margin-top: 10px;
  color: #2f3a47;
}

.thesis-legacy-panel {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15.6px;
  line-height: 1.35;
  color: #000000;
}

.thesis-legacy-panel.results-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.thesis-legacy-type-title {
  margin: 0;
  padding: 6.5px 0 13px;
  color: #3065d1;
  font-size: 1.43em;
  font-weight: 700;
  line-height: 1.2;
}

.thesis-legacy-section-title {
  margin: 0;
  padding: 6.5px 0 13px;
  color: #3065d1;
  font-size: 1.43em;
  font-weight: 700;
  line-height: 1.2;
}

.thesis-legacy-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.thesis-legacy-label {
  flex: 0 0 299px;
  width: 299px;
  max-width: 299px;
  color: #000000;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.35;
  padding: 0 8px 6.5px 0;
}

.thesis-legacy-value {
  flex: 1 1 auto;
  min-width: 0;
  color: #000000;
  line-height: 1.35;
  padding: 0 0 6.5px;
}

.thesis-legacy-row-summary {
  flex-direction: column;
}

.thesis-legacy-row-summary .thesis-legacy-label,
.thesis-legacy-row-summary .thesis-legacy-value {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  padding-right: 0;
}

.thesis-legacy-summary {
  text-align: justify;
  white-space: pre-line;
}

.thesis-legacy-spacer {
  height: 13px;
}

.thesis-legacy-file-list {
  display: block;
  margin: 0 0 6.5px;
}

.thesis-legacy-file-line {
  color: #000000;
  line-height: 1.35;
  margin: 0;
  padding: 0 0 6.5px;
}

.thesis-legacy-footer-note {
  margin: 0;
  color: #000000;
  font-size: 1em;
  line-height: 1.35;
  padding: 0 0 6.5px;
}

.thesis-legacy-panel .table-drilldown-link {
  color: #3065d1;
  font-weight: 400;
}

.thesis-legacy-panel .table-drilldown-link:hover {
  color: #77a4ff;
  text-decoration: none;
}

.thesis-legacy-panel .thesis-inline-search-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.thesis-legacy-panel .thesis-inline-search-link:hover,
.thesis-legacy-panel .thesis-inline-search-link:focus-visible {
  color: #3065d1;
  text-decoration: underline;
}

.thesis-legacy-panel .thesis-email-reveal-btn {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.thesis-legacy-panel .catalog-usp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.thesis-legacy-panel .catalog-usp-link::after {
  content: "↗";
  font-size: 11px;
  line-height: 1;
}

.thesis-legacy-panel .catalog-usp-logo {
  display: block;
  height: 14px;
  width: auto;
}

.thesis-warning {
  margin: 0;
  padding: 0 0 6.5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #cc0000;
  line-height: 1.35;
}

.thesis-warning-soft {
  margin-top: 0;
}

.thesis-file-tag {
  margin-left: 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #000000;
  font-size: 1em;
  font-weight: 400;
  padding: 0;
  line-height: 1.35;
}

.thesis-references-list {
  margin: 0 0 6.5px;
  padding: 6.5px 6.5px 6.5px 24px;
  display: block;
  gap: 0;
  line-height: 1.35;
  color: #000000;
  background-color: #cccccc;
}

.thesis-references-list li {
  margin-bottom: 6.5px;
}

.thesis-references-list li:last-child {
  margin-bottom: 0;
}

.site-footer {
  background-color: var(--blue);
  color: #ffffff;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1360px) {
  .header-content {
    gap: 18px;
  }

  .site-title-stack {
    margin-left: 16px;
  }

  .header-nav-menu {
    column-gap: 16px;
  }

  .header-nav-menu > li > a {
    font-size: 17px;
  }
}

@media (max-width: 1240px) {
  .header-container {
    padding: 12px 0;
    flex-wrap: wrap;
    min-height: auto;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .header-navigation {
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .header-nav-menu {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-title-stack {
    font-size: 20px;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 20px;
  }

  .statistics-section {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 980px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .header-container {
    padding: 6px 0;
    gap: 8px;
  }

  .top-links {
    justify-content: flex-start;
    min-height: 24px;
  }

  .header-content {
    gap: 6px;
  }

  .logo-section {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .bdtd-brand {
    margin-left: 0;
  }

  .usp-badge img {
    height: 37px;
  }

  .bdtd-badge img {
    height: 44px;
  }

  .site-title-stack {
    margin-left: 8px;
    line-height: 1.08;
    font-size: 15px;
  }

  .beta-tag-note {
    margin-top: 3px;
    font-size: 17px;
  }

  .header-nav-menu {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
    row-gap: 0;
  }

  .header-nav-menu > li > a {
    padding: 2px 0;
    font-size: 15px;
    line-height: 1.2;
  }

  .sub-menu,
  .sub-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    margin: 0 0 0 8px;
  }

  .sub-menu li a {
    padding: 6px 10px;
    font-size: 14px;
  }

  .header-nav-menu > li:hover > .sub-menu,
  .sub-menu li:hover > .sub-sub-menu {
    display: block;
  }

  .language-switcher-header {
    align-self: flex-start;
  }

  .language-toggle {
    padding: 6px 10px;
    font-size: 13px;
  }

  .main-content {
    padding: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-panel {
    padding: 18px;
  }

  .credits-card {
    padding: 16px;
  }

  .results-meta-group {
    align-items: flex-start;
  }

  .thesis-metadata-grid {
    grid-template-columns: 1fr;
  }

  .thesis-text-panel .section-title {
    font-size: 20px;
  }

  .thesis-legacy-type-title {
    font-size: 24px;
  }

  .thesis-legacy-columns {
    flex-direction: column;
    gap: 13px;
  }

  .thesis-services-wrap {
    flex: 0 0 auto;
    margin: 0 0 13px;
    align-items: flex-start;
    width: 100%;
  }

  .thesis-services-toggle-wrap,
  .thesis-services-wrap .thesis-share-bar,
  .thesis-services-menu {
    width: min(100%, 320px);
  }

  .thesis-services-dialog {
    width: min(100vw - 16px, 920px);
    height: min(85vh, 720px);
    border-radius: 10px;
  }

  .thesis-services-dialog-header {
    padding: 12px 14px;
  }

  .thesis-services-dialog-title {
    font-size: 16px;
  }

  .thesis-legacy-row {
    flex-direction: column;
    gap: 0;
  }

  .thesis-legacy-label,
  .thesis-legacy-value {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    padding-right: 0;
  }

  .pagination {
    justify-content: center;
  }

  .year-range-fields {
    grid-template-columns: 1fr;
  }

  .search-help-popover {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .criterion-row {
    flex-direction: column;
    align-items: stretch;
  }

  .criteria-actions {
    justify-content: center;
  }

  .criteria-actions .btn-add {
    min-height: 38px;
    width: auto;
  }

  .operator-select,
  .field-select,
  .criterion-input,
  .document-type-criterion-select,
  .exact-term-option,
  .btn-add-criterion-inline,
  .btn-remove-criterion {
    width: 100%;
  }

  .search-criterion.is-year-field .year-range-criterion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .year-criterion-input {
    width: 100%;
  }

  .btn-add-criterion-inline,
  .btn-remove-criterion {
    height: 38px;
  }
}

@media (max-width: 560px) {
  .header-container {
    padding: 4px 0;
  }

  .header-content {
    gap: 4px;
  }

  .logo-section {
    gap: 4px;
  }

  .usp-badge img {
    height: 28px;
  }

  .bdtd-badge img {
    height: 34px;
  }

  .site-title-stack {
    margin-left: 6px;
    font-size: 12px;
    line-height: 1.05;
  }

  .beta-tag-note {
    margin-top: 1px;
    font-size: 14px;
  }

  .header-nav-menu {
    column-gap: 8px;
  }

  .header-nav-menu > li > a {
    padding: 1px 0;
    font-size: 14px;
  }

  .language-toggle {
    padding: 5px 8px;
    font-size: 12px;
  }

  .site-content {
    padding: 18px 0;
  }

  .main-content {
    padding: 16px;
  }

  .hero-copy,
  .overview-card {
    padding: 16px;
  }

  .hero-title {
    font-size: 18px;
  }

  .section-title {
    font-size: 22px;
  }

  .thesis-main-title {
    font-size: 16px;
  }

  .thesis-subtitle {
    font-size: 17px;
  }

  .thesis-legacy-type-title {
    font-size: 21px;
  }

  .thesis-legacy-section-title {
    font-size: 20px;
  }

  .results-panel {
    padding: 14px;
  }

  .credits-intro {
    padding: 12px;
    font-size: 15px;
  }

  .credits-card h3 {
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .search-submit {
    flex-direction: column;
  }

  .search-submit button {
    width: 100%;
    justify-content: center;
  }
}
