/* Self-hosting and accessibility additions; visual styling lives in assets/*.css. */
.language-switch {
  position: fixed;
  z-index: 45;
  top: 18px;
  right: 20px;
  padding: 7px 13px;
  color: #373931;
  background: #fffef9e8;
  border: 1px solid #333c1826;
  border-radius: 20px;
  font: 500 13px/1.3 Inter, system-ui, sans-serif;
  text-decoration: none;
}
.language-switch:focus-visible { outline: 2px solid #73805e; outline-offset: 3px; }
.resume-letter__paper .language-switch { position: absolute; top: 15px; right: 56px; z-index: 3; }
.resume-letter:has(> .page-tools) .language-switch { display: none; }
.page-tools {
  position: fixed;
  z-index: 95;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.page-tool, .page-tools .sound-toggle {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #252620;
  background: #fffefa;
  border: 1px solid #deded7;
  border-radius: 10px;
  box-shadow: 0 1px 3px #22221812;
  cursor: pointer;
  text-decoration: none;
}
.page-tool:hover, .page-tools .sound-toggle:hover, .time-tool[open] > summary { color: #111; background: #f3f3ee; }
.page-tool:focus-visible, .page-tools .sound-toggle:focus-visible { outline: 2px solid #63714e; outline-offset: 2px; }
.page-tool > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.time-tool { position: relative; }
.time-tool > summary { list-style: none; }
.time-tool > summary::-webkit-details-marker { display: none; }
.time-tool__panel {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  width: max-content;
  padding: 10px 12px;
  color: #34362f;
  background: #fffefa;
  border: 1px solid #deded7;
  border-radius: 10px;
  box-shadow: 0 3px 14px #22221816;
  font: 500 13px/1.5 Inter, system-ui, sans-serif;
}
.page-tools .cloud-dialkit { position: static; margin-top: 6px; }
.page-tools .cloud-dialkit__panel.sky-pill { background: #43463f; color: white; }
@media print { .page-tools { display: none; } }
@media print { .language-switch { display: none; } }
a[aria-disabled="true"] { cursor: default; }
.side-nav__link[aria-disabled="true"]:hover { opacity: .34; transform: none; }
.footer-signature__nav a[aria-disabled="true"]:hover { color: #0000004d; }
@media (max-width: 720px) {
  .footer-signature__row { display: none; }
}
.editorial__cta[aria-disabled="true"]:hover { background-color: #111; }
.editorial__cta[aria-disabled="true"]:active { scale: 1; }
:lang(zh-CN) .about-group--headline .reading-line { letter-spacing: normal; }
/* An empty list has one paragraph directly inside the panel. */
.panel__table > .timeline-experiment__body:only-child {
  max-width: none;
  text-align: center;
  white-space: normal;
}
.contact-links {
  padding: 12px clamp(28px, 4vw, 64px) 20px;
  color: #33342e;
  font-family: Inter, system-ui, sans-serif;
}
.contact-links h2 { margin: 0 0 12px; font-family: inherit; font-size: 18px; font-weight: 500; line-height: 1.35; text-align: center; }
.contact-links__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.visitor-count { margin: 0; text-align: center; color: #65665f; font: 500 13px/1.5 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  min-height: 40px;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #deded7;
  border-radius: 7px;
  background: #fafaf7;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.contact-link img, .contact-link svg { flex: none; }
.contact-link span { min-width: 0; overflow-wrap: anywhere; }
.contact-link--email { background: #f2f1e9; }
.contact-link[href]:hover { background: #edede6; border-color: #b9bbae; }
.contact-link:focus-visible { outline: 2px solid #63714e; outline-offset: 3px; }
.contact-link[aria-disabled="true"] { color: #777971; border-style: dashed; }
@media (max-width: 600px) {
  .contact-link { flex: 0 0 calc(50% - 4px); min-width: 0; justify-content: center; min-height: 44px; }
  .contact-link--email { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sunny-video { animation: none; }
}
@media print {
  .page-shell, .side-nav, .sound-toggle, .click-spark-canvas,
  .resume-letter__close, .resume-letter__actions { display: none !important; }
  .resume-letter { display: block !important; visibility: visible !important; position: static; height: auto; overflow: visible; }
  .resume-letter__stage { display: block; padding: 0; }
  .resume-letter__paper { width: 100%; padding: 16px; border: 0; box-shadow: none; }
  .resume-letter canvas { display: none; }
  .resume-letter__role { break-inside: avoid; }
}
