.docs-speech { margin: 0 0 42px; padding: 26px 28px; color: var(--navy); background: var(--cream); border: 1px solid var(--line); }
.docs-speech h2 { margin: 0 0 10px; font: 600 32px/1.15 var(--serif); letter-spacing: -.02em; }
.docs-speech__intro { margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.docs-speech__controls { display: flex; flex-wrap: wrap; gap: 10px; }
.docs-speech__button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 15px; border: 1px solid #b7b2a8; border-radius: 0; background: transparent; color: var(--navy); font: 700 14px/1.4 var(--sans); cursor: pointer; }
.docs-speech__button--primary { border-color: var(--navy); background: var(--navy); color: #fff; }
.docs-speech__button:hover:not(:disabled) { border-color: var(--navy); background: #eae5dc; }
.docs-speech__button--primary:hover:not(:disabled) { background: var(--navy-3); color: #fff; }
.docs-speech__button:disabled { cursor: default; opacity: .5; }
.docs-speech__button svg { flex: 0 0 18px; }
.docs-speech__settings { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 20px; margin: 6px 0 18px; }
.docs-speech__field { display: grid; gap: 6px; min-width: 105px; max-width: 100%; color: var(--navy); font-size: 14px; line-height: 1.5; font-weight: 600; }
.docs-speech__field select { min-height: 44px; max-width: 100%; padding: 8px 30px 8px 10px; border: 1px solid #b7b2a8; border-radius: 0; background: #fff; color: var(--navy); font: 500 14px/1.4 var(--sans); }
.docs-speech__check { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.docs-speech__check input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); }
.docs-speech__status { margin: 18px 0 0; font-size: 14px; line-height: 1.65; }
.docs-speech__progress { margin: 3px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); font-variant-numeric: tabular-nums; }
.docs-speech__progress:empty { display: none; }
.docs-speech__help { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 8px; }
.docs-speech__help summary { display: list-item; min-height: 44px; padding: 11px 0; color: var(--navy); font-size: 14px; line-height: 1.6; cursor: pointer; }
.docs-speech__help p, .docs-speech noscript p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.docs-speech :is(button,select,input,summary):focus-visible { outline: 3px solid #996b23; outline-offset: 4px; }
@media(max-width:700px) {
 .docs-speech { padding: 21px 18px; margin-bottom: 32px; }
 .docs-speech h2 { font-size: 29px; }
 .docs-speech__controls { gap: 8px; }
 .docs-speech__button { padding-inline: 11px; font-size: 14px; gap: 6px; }
 .docs-speech__settings { gap: 12px 16px; }
 .docs-speech__field select { font-size: 16px; }
 .docs-speech__check { flex-basis: 100%; }
}
@media print { .docs-speech { display: none; } }

.docs-reader-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.docs-reader-listen-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #d5b469; font: 700 13px/1.5 var(--sans); text-decoration: none; }
.docs-reader-listen-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.docs-reader-listen-link:focus-visible { outline: 3px solid #996b23; outline-offset: 4px; }
.docs-speech [hidden] { display: none; }
.docs-speech__retry { margin-top: 14px; }
.docs-speech h3 { margin: 24px 0 12px; font: 700 16px/1.5 var(--sans); }
.docs-speech__platform { border-top: 1px solid var(--line); }
.docs-speech__platform:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.docs-speech__platform summary { font-weight: 600; }
.docs-speech__help a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.docs-speech__help a:focus-visible { outline: 3px solid #996b23; outline-offset: 3px; }
.docs-speech__field { min-width: 0; flex: 0 1 auto; }
.docs-speech__field select { width: 100%; }
#docs-speech-title { scroll-margin-top: 130px; }
@media (max-width: 700px) {
 .docs-reader-actions { gap: 8px 22px; }
 .docs-speech__controls .docs-speech__button--primary { flex-basis: 100%; }
 .docs-speech__controls .docs-speech__button:not(.docs-speech__button--primary) { flex: 1; }
 .docs-speech__field { flex: 1 1 130px; }
}
@media print { .docs-reader-listen-link { display: none; } }
