/* Language navigation is independent from the app's language preference. */
/* 语言切换在页脚首栏、品牌下方：下拉选择，选项由构建按 locales 注入；几何与 .button.small 同款。 */
.footer-grid .site-language {
  display: block;
  width: fit-content;
  min-width: 140px;
  min-height: 39px;
  margin-top: 16px;
  padding: 10px 34px 10px 16px;
  font-size: 13px;
  color: #e6eee7;
  border: 1px solid #ffffff26;
  border-radius: var(--control-radius);
  background: #ffffff0f
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%238b9b90' stroke-width='1.5'/></svg>")
    no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
}
.footer-grid .site-language:hover {
  border-color: #ffffff45;
}
.footer-grid .site-language:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.footer-grid .site-language option {
  color: #1c2b2c;
  background: #fff;
}
.ai-time-proposed::after {
  content: none;
}
/* Shared calendar examples: reserve time, then use the remaining title space. */
.app-cal-event strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--calendar-title-lines, 1);
  line-clamp: var(--calendar-title-lines, 1);
  white-space: normal;
  text-overflow: clip;
  line-height: 1.35;
}
.app-cal-event .calendar-preview-time {
  white-space: nowrap;
  line-height: 12px;
  margin-top: 2px;
}
.app-cal-event[data-calendar-compact] {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.app-cal-event[data-calendar-compact] strong {
  flex: 1;
  min-width: 0;
}
.app-cal-event[data-calendar-compact] .calendar-preview-time {
  flex: none;
  margin-top: 0;
}
.app-month-time {
  display: none;
}
/* Hero leads break at the clause comma (markup <br>); Chinese keeps one line. */
@media (min-width: 801px) {
  html[lang="en"] .changelog-hero .lead br {
    display: inline;
  }
}
html[lang="en"] .about-signature {
  color: var(--ink);
  font-family: var(--ap-hand, "Bradley Hand"), "Segoe Print", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}
html[lang="en"] .coach-intro h1 {
  font-size: clamp(32px, 4.3vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
html[lang="en"] .hero-punctuation,
html[lang="en"] .closing-punctuation,
html[lang="en"] .coach-intro .hang {
  display: none;
}
html[lang="en"] .coach-intro {
  max-width: 1000px;
}
html[lang="en"] .coach-intro .lead {
  max-width: 720px;
}
html[lang="en"] .app-note p,
html[lang="en"] .work-note p {
  line-height: 1.35;
}
html[lang="en"] .site-header nav {
  gap: 22px;
}
/* English headings wrap by meaning; do not inherit Chinese no-break choices. */
html[lang="en"] h1,
html[lang="en"] h2 {
  text-wrap: balance;
}
html[lang="en"] .org-title-break {
  display: inline;
}
html[lang="en"] .calendar-copy h2 {
  font-size: clamp(28px, 3.25vw, 48px);
  line-height: 1.2;
}
html[lang="en"]:not([data-site-access="internal"]) a[href="/en/download"] {
  display: none !important;
}
@media (max-width: 640px) {
  [data-cal-panel="week"] {
    overflow-x: auto;
  }
  [data-cal-panel="week"] > .app-cal-head,
  [data-cal-panel="week"] > .app-cal-body {
    min-width: 720px;
  }
  html[lang="en"] .coach-intro h1 {
    font-size: clamp(28px, 7.3vw, 40px);
  }
  html[lang="en"] .coach-intro .lead br {
    display: none;
  }
  .site-language {
    /* 移动端放大到 16px，避免 iOS Safari 聚焦下拉时自动缩放页面。 */
    font-size: 16px;
  }
}
