/* In-page, one-tap interpretation control. Kept separate from the editorial site styles. */
.home-interpret-cta{cursor:pointer;gap:14px;white-space:nowrap}
.hero-live .home-interpret-cta[aria-pressed="true"]{
  border-color:var(--gold);
  color:var(--gold);
}
.home-translation-player{
  position:fixed;
  z-index:850;
  left:50%;
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  width:min(590px,calc(100vw - 26px));
  min-height:76px;
  padding:14px 18px 14px 22px;
  border:1px solid rgba(223,193,137,.7);
  border-radius:8px;
  background:var(--deep,#092c25);
  box-shadow:0 8px 35px rgba(0,0,0,.27);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.home-translation-player[hidden]{display:none!important}
.home-translation-content{min-width:0;flex:1}
.home-translation-eyebrow{
  color:var(--gold,#dec18b);
  font-size:9px;
  font-weight:700;
  letter-spacing:.15em;
}
.home-translation-content p{
  color:#f2f4ee;
  font-size:12px;
  font-weight:600;
  line-height:1.6;
  margin:5px 0 0;
}
.home-translation-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.home-translation-controls button{
  min-height:40px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  border:1px solid #c7d8cd;
  border-radius:3px;
  background:transparent;
  color:#fff;
  cursor:pointer;
}
.home-translation-controls #homeTranslationResume{
  border-color:var(--gold,#dec18b);
  background:var(--gold,#dec18b);
  color:var(--deep,#092c25);
}
.home-translation-controls button[hidden]{display:none}
.home-translation-controls button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:600px){
  .home-interpret-cta{min-height:47px}
  .home-translation-player{padding:11px 12px;min-height:74px;gap:8px}
  .home-translation-controls{gap:5px}
  .home-translation-controls button{padding:7px 9px;min-height:42px;font-size:11px}
  .home-translation-content p{font-size:11px}
}

/* The navigation control is a real button for iPhone audio activation,
   but intentionally looks exactly like the neighboring text links. */
.site-header .nav>.nav-interpret{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  flex:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#375b4b;
  font-family:inherit;
  font-size:12px;
  font-weight:650;
  line-height:inherit;
  white-space:nowrap;
  cursor:pointer;
  transition:color .15s;
}
.site-header .nav>.nav-interpret:hover,
.site-header .nav>.nav-interpret[aria-pressed="true"]{
  color:#a88241;
}

/* Reuse the YouTube action's existing .btn-online gold surface and hover
   rules instead of maintaining a separate mismatched color palette. */
#online .online-header-actions>.online-interpret-cta{cursor:pointer}

/* Fit the additional header action without obscuring existing nav items
   on mid-sized desktop widths; mobile retains the existing dropdown. */
@media(min-width:1101px) and (max-width:1450px){
  .site-header .header-inner{gap:clamp(8px,1.2vw,20px)}
  .site-header .nav{gap:clamp(5px,.65vw,10px)}
  .site-header .nav a{font-size:11px}
  .site-header .nav>.nav-interpret{font-size:11px;padding:0}
  .site-header .brand{gap:8px}
  .site-header .brand img{width:47px;height:44px}
  .site-header .brand strong{font-size:13px}
  .site-header .brand small{font-size:7px}
  #online .section-heading-row>.online-header-actions{flex-wrap:wrap;gap:8px}
}
@media(max-width:1100px){
  .site-header .nav>.nav-interpret{
    display:block;
    width:100%;
    padding:11px;
    margin:0;
    border:0;
    border-bottom:1px solid #dae3d9;
    min-height:0;
    font-size:14px;
    line-height:inherit;
    text-align:left;
  }
}
@media(max-width:560px){
  #online .online-header-actions>.online-interpret-cta{
    flex:1 1 100%;
    width:100%;
  }
}

/* Normalize native button rendering without changing translation behavior. */
.hero-live button.home-interpret-cta,
#online button.online-interpret-cta{
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  border:1px solid var(--gold,#dec18b);
  color:var(--gold,#dec18b);
}
.hero-live button.home-interpret-cta:is(:hover,:focus-visible,[aria-pressed="true"]),
#online button.online-interpret-cta:is(:hover,:focus-visible,[aria-pressed="true"]){
  background:var(--gold,#dec18b);
  color:#173e32;
}
