.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.language-toggle__button {
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

.language-toggle__button.is-active {
  color: var(--color-primary);
  background: var(--color-white);
}

.section {
  margin-bottom: 30px;
  padding: 30px;
  border: 1px solid rgba(219, 227, 234, 0.9);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-secondary);
}

.section__title {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
}

.section__kicker {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-copy {
  display: grid;
  gap: 12px;
}

.profile-copy p {
  margin: 0;
  font-size: 1.02rem;
}

.entry-list {
  display: grid;
  gap: 22px;
}

.entry {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--color-surface), #fbfcfd);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.entry:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 134, 193, 0.38);
  box-shadow: var(--shadow-hover);
}

.entry__header {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.entry__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.entry__title {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.22rem;
  line-height: 1.35;
}

.entry__meta,
.entry__role {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.entry__role {
  font-weight: 600;
}

.entry__body {
  display: grid;
  gap: 9px;
}

.entry__body p {
  margin: 0;
}

.entry__body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.entry__body li {
  margin: 6px 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.link-row a {
  font-weight: 600;
}

.note {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.94rem;
}

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

.skill-group {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--color-surface-muted);
}

.skill-group__title {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(46, 134, 193, 0.18);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__portrait {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 22px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}
.entry--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  column-gap: 24px;
  align-items: start;
}
.entry--photo > :not(.entry__photo) { grid-column: 1; }
.entry__photo { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.entry__photo-toggle { display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: zoom-in; }
.entry__photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.entry__photo figcaption { margin-top: 7px; color: var(--color-muted); font-size: 0.78rem; text-align: center; }
.entry__photo-toggle:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 4px; }

.photo-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 56px 24px;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.photo-lightbox[open] { display: grid; place-items: center; }
.photo-lightbox::backdrop { background: transparent; }
.photo-lightbox__shade { position: absolute; inset: 0; background: rgba(28, 32, 39, 0.76); }
.photo-lightbox__figure { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.photo-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 148px);
  max-height: calc(100dvh - 148px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
  transform-origin: center;
  pointer-events: auto;
}
.photo-lightbox__caption { margin-top: 12px; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; }
.photo-lightbox__close { position: absolute; right: 18px; top: 14px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.2); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.photo-lightbox__close:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.visitor-map-slot { position: relative; width: 80px; height: 46px; }
.visitor-map-widget { width: 80px; margin: 0; }
.visitor-map-panel { overflow: hidden; border-radius: 6px; background: #2f7daf; }
.visitor-map-header { padding: 2px 3px 0; color: #fff; text-align: center; }
.visitor-map-header strong { display: block; font-size: 7px; line-height: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#visitor-map { height: 34px; background: #2f7daf; z-index: 0; }
.visitor-map-trigger { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; background: transparent; cursor: zoom-in; }
.visitor-map-trigger:hover { border-color: rgba(255,255,255,.7); }
.visitor-map-trigger:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.visitor-map-lightbox .visitor-map-widget { width: min(860px, calc(100vw - 48px)); pointer-events: auto; transform-origin: center; }
.visitor-map-lightbox .visitor-map-panel { border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.3); }
.visitor-map-lightbox .visitor-map-header { padding: 14px 16px 0; }
.visitor-map-lightbox .visitor-map-header strong { font-size: 1.15rem; line-height: 1.5; }
.visitor-map-lightbox #visitor-map { height: min(420px, calc(100dvh - 180px)); }
.visitor-map-lightbox .visitor-map-status { color: #fff; }
.visitor-map-slot .visitor-map-status { display: none; }
.visitor-map-widget .leaflet-container { font-family: inherit; }
.visitor-map-widget .leaflet-interactive:focus-visible { outline: 2px solid #ffbc19; }

.visitor-map-status { margin: 10px 0 0; color: var(--color-muted); font-size: .8rem; text-align: center; }
.visitor-map-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
