/* ESP-016: scope overrides to vocabulary pages; shared lesson/native styles stay intact. */
.esp-word-page{min-width:0;width:100%;max-width:100%}
.esp-word-page .esp-category-heading,.esp-word-page .esp-category-breadcrumb{min-width:0;max-width:100%;overflow-wrap:anywhere}
.esp-word-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 32px;min-width:0}
.esp-word-types .esp-category-card{padding:20px;min-width:0}
.esp-word-types h2{margin:0;font-size:19px;white-space:normal;overflow-wrap:anywhere}
.esp-word-types p{margin:12px 0 0}
.esp-word-search{display:flex;flex-direction:column;gap:10px;width:100%;max-width:540px;min-width:0;margin-top:24px}
.esp-word-search input{width:100%;min-width:0;box-sizing:border-box;padding:14px;border:1px solid #45596f;border-radius:10px;background:#162334;color:#fff;font:inherit}
.esp-words-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 30px;min-width:0}
.esp-word-card{min-width:0;max-width:100%;padding:20px;border:1px solid #344558;border-radius:16px;background:#1b2837ed}
.esp-word-card[hidden]{display:none}
.esp-word-title{display:flex;align-items:center;gap:10px;min-width:0}
.esp-word-title h1,.esp-word-title h2{margin:0;min-width:0;overflow-wrap:anywhere}
.esp-word-title h2{font-size:21px}
.esp-word-title a{color:#f5f6f8;text-decoration:none}
.esp-word-title a:hover{text-decoration:underline;text-underline-offset:4px}
.esp-word-card p,.esp-word-card small{line-height:1.6;overflow-wrap:anywhere}
.esp-word-card small{color:var(--muted,#bdc8d5)}
.esp-word-meaning{font-size:22px;color:#f1c65d;line-height:1.6;overflow-wrap:anywhere}
/* Explicit min/max dimensions override mobile-ui.js's generic 44px minimum. */
.esp-word-page .esp-word-title>.esp-word-sound{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;aspect-ratio:1/1!important;border:0!important;border-radius:50%!important;background:#fff!important;padding:5px!important;margin:0!important;box-sizing:border-box!important;line-height:1!important;overflow:hidden!important;align-self:center}
.esp-word-page .esp-word-title>.esp-word-sound img{display:block!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;object-fit:contain!important}
.esp-word-sound[aria-busy=true]{outline:2px solid #f1c65d;outline-offset:3px}
.esp-word-sound:focus-visible,.esp-word-title a:focus-visible{outline:2px solid #f1c65d;outline-offset:3px}
.esp-word-audio-error{margin:16px 0 0;color:#f1c65d}
.esp-word-audio-error[hidden],.esp-word-audio-error:empty{display:none!important}
/* Self-contained lesson card grid: do not reuse .esp-category-lesson / .esp-category-day / .action.
   Those classes are repositioned by shared .mobile-ui selectors and used to push
   the Spanish sentence into a narrow column on phones. */
.esp-word-examples{display:grid;gap:14px;margin:18px 0 24px;min-width:0}
.esp-word-examples .esp-word-example{
 display:grid;
 grid-template-columns:minmax(0,1fr) max-content;
 grid-template-areas:"spanish action" "turkish action" "meta action";
 column-gap:20px;row-gap:9px;
 align-items:start;
 margin:0;padding:22px;min-width:0;max-width:100%;
 border-radius:16px;border:1px solid #344558;background:#1b2837ed;
 box-sizing:border-box;transition:border-color .15s
}
.esp-word-examples .esp-word-example:focus-within{border-color:#7d6530}
@media(hover:hover) and (pointer:fine){.esp-word-examples .esp-word-example:hover{border-color:#7d6530}}
.esp-word-example-spanish{grid-area:spanish;min-width:0;margin:0;font-size:20px;line-height:1.4;overflow-wrap:anywhere;text-align:left}
.esp-word-example-translation{grid-area:turkish;min-width:0;margin:0;line-height:1.6;overflow-wrap:anywhere;text-align:left}
.esp-word-examples .esp-word-example-meta{grid-area:meta;min-width:0;margin:0;color:var(--gold,#efbd42);font-size:13px;line-height:1.7;white-space:normal;overflow-wrap:anywhere;text-align:left}
.esp-word-category{color:inherit;text-decoration:underline;text-underline-offset:3px}
.esp-word-category:hover{color:#fff}
.esp-word-examples .esp-word-lesson-action{
 grid-area:action;display:inline-flex;align-items:center;justify-content:center;
 align-self:center;justify-self:end;white-space:nowrap;
 min-height:44px;padding:12px 16px;box-sizing:border-box;
 background:#33475a;color:#fff;text-decoration:none;
 border:0;border-radius:10px;font:600 14px Arial,sans-serif
}
.esp-word-examples .esp-word-lesson-action:focus-visible{outline:2px solid #f1c65d;outline-offset:3px}
@media(max-width:900px){.esp-word-types,.esp-words-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Exactly three rows on mobile: ES, TR, then metadata left / lesson button right. */
@media(max-width:620px){
 .esp-word-examples .esp-word-example{
  grid-template-columns:minmax(0,1fr) max-content;
  grid-template-areas:"spanish spanish" "turkish turkish" "meta action";
  gap:10px 12px;padding:18px;align-items:center
 }
 .esp-word-example-spanish{grid-area:spanish;margin:0}
 .esp-word-example-translation{grid-area:turkish;margin:0}
 .esp-word-examples .esp-word-example-meta{grid-area:meta;align-self:center}
 .esp-word-examples .esp-word-lesson-action{grid-area:action;align-self:center;justify-self:end}
}
@media(max-width:520px){.esp-word-types{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.esp-word-types .esp-category-card{padding:14px}.esp-word-types h2{font-size:16px}.esp-word-types p{font-size:12px}.esp-words-grid{grid-template-columns:1fr}}
@media(max-width:350px){.esp-word-types{grid-template-columns:1fr}.esp-word-examples .esp-word-example{padding:14px;gap:8px}.esp-word-examples .esp-word-lesson-action{font-size:12px;padding:10px 12px}}
