.tab-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
  color: #60727a;
  font-size: 0.875rem;
  text-align: left;
  white-space: nowrap;
  transition:
  background 0.18s,
  color 0.18s;
}

.tab-button span:first-child {
  color: #91a0a3;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.tab-button:hover {
  background: #fff;
  color: #172b35;
}

.tab-button.active-tab {
  background: #e5f1ed;
  color: #147d72;
  font-weight: 600;
}

.tab-button.active-tab span:first-child {
  color: #147d72;
}

.page-title {
  max-width: 48rem;
  margin-top: 1rem;
  font-family: Georgia, ui-serif, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.eyebrow {
  color: #147d72;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: #60727a;
  font-size: 1rem;
  line-height: 1.8;
}

.topic-card {
  border: 1px solid #dfe6e2;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 16px 50px rgba(23, 43, 53, 0.035);
}

.topic-number {
  color: #147d72;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.topic-card h2 {
  margin-top: 1.8rem;
  font-family: Georgia, ui-serif, serif;
  font-size: 1.35rem;
}

.topic-card p {
  margin-top: 0.7rem;
  color: #60727a;
  font-size: 0.875rem;
  line-height: 1.7;
}

.topic-card a {
  display: inline-block;
  margin-top: 1.15rem;
  color: #147d72;
  font-size: 0.83rem;
  font-weight: 600;
}

.section-label {
  margin-bottom: 1.25rem;
  color: #60727a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.timeline-item {
  position: relative;
  margin-left: 0.35rem;
  border-left: 1px solid #dfe6e2;
  padding: 0 0 1.6rem 1.4rem;
}

.timeline-item::before {
  position: absolute;
  top: 0.25rem;
  left: -0.3rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #147d72;
  content: '';
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  color: #147d72;
  font-size: 0.75rem;
  font-weight: 600;
}

.timeline-item h3 {
  margin-top: 0.4rem;
  font-family: Georgia, ui-serif, serif;
  font-size: 1.25rem;
}

.timeline-item p:not(.timeline-date) {
  margin-top: 0.3rem;
  color: #60727a;
  font-size: 0.875rem;
}

.contact-card {
  display: block;
  border: 1px solid #dfe6e2;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  transition:
  border-color 0.18s,
  transform 0.18s;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: #147d72;
}

.contact-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.3rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #e5f1ed;
  color: #147d72;
}

.contact-icon::before {
  width: 1.5rem;
  height: 1.5rem;
  background-color: currentColor;
  content: '';
}

.email-icon::before {
  -webkit-mask: url('logos/email.svg') center / contain no-repeat;
  mask: url('logos/email.svg') center / contain no-repeat;
}

.matrix-icon::before {
  -webkit-mask: url('logos/matrix.svg') center / contain no-repeat;
  mask: url('logos/matrix.svg') center / contain no-repeat;
}

.location-icon::before {
  -webkit-mask: url('logos/location.svg') center / contain no-repeat;
  -webkit-mask-source-type: alpha;
  mask: url('logos/location.svg') center / contain no-repeat;
  mask-mode: alpha;
}

.paper-row {
  padding: 1.25rem 0.25rem;
}

.paper-title {
  color: #172b35;
  font-family: Georgia, ui-serif, serif;
  font-size: 1.15rem;
  line-height: 1.45;
}

.paper-title a:hover {
  color: #147d72;
}

.paper-meta {
  margin-top: 0.45rem;
  color: #60727a;
  font-size: 0.82rem;
  line-height: 1.6;
}

.paper-tag {
  display: inline-flex;
  margin-top: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: #e5f1ed;
  color: #147d72;
  font-size: 0.7rem;
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dfe6e2;
  padding: 1rem 0;
}

.site-brand {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9999px;
  background: #172b35;
  color: #fff;
  font-family: Georgia, ui-serif, serif;
  font-size: 0.875rem;
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 30;
  display: none;
  width: min(22rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 7rem);
  flex-direction: column;
  gap: 0.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #dfe6e2;
  border-radius: 1rem;
  padding: 0.5rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 43, 53, 0.12);
}

.site-nav.mobile-open {
  display: flex;
}

.site-nav .tab-button {
  justify-content: flex-start;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
}

.header-contact {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dfe6e2;
  border-radius: 9999px;
  padding: 0.55rem 0.9rem;
  background: #fff;
  color: #172b35;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    border-color 0.18s,
    color 0.18s;
}

.header-contact:hover {
  border-color: #147d72;
  color: #147d72;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dfe6e2;
  border-radius: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  color: #172b35;
  font-size: 0.875rem;
}

.menu-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 390px) {
  .site-brand [data-profile-text='name'] {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-nav {
    position: static;
    display: flex;
    width: auto;
    max-height: none;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: center;
    gap: 0.2rem;
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav .tab-button {
    width: auto;
    justify-content: center;
    padding: 0.6rem 0.55rem;
    font-size: 0.8rem;
  }

  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .header-contact {
    display: inline-flex;
  }
}
