:root {
  font-family:Arial,Helvetica,sans-serif;
  color:#173a3c;
  background:#f8fbf5;
  font-synthesis:none;
  --green:#205b4b;
  --muted:#4e6662;
  --sage:#e8f1e1;
  --word-primary:#234c3e;
  --story-surface:#ddeacf;
  --story-muted:#526b5c;
}
* {box-sizing:border-box}
body {margin:0;background:radial-gradient(ellipse at 90% 0,#e8f1e180,transparent 35%)}
a {color:inherit;text-decoration:none}
button,input,select {font:inherit;color:inherit}
button,a,select {touch-action:manipulation}
button,select {cursor:pointer}
img {max-width:100%;height:auto}
header,main,footer {width:min(1120px,88%);margin:auto}
header {display:flex;align-items:center;justify-content:space-between;gap:32px;padding:36px 0}
header .brand {width:176px;flex-shrink:0}
header img {display:block}
nav {display:flex;align-items:center;gap:28px;font-size:14px}
nav a[aria-current] {color:var(--green);font-weight:700}
.button {
  display:inline-flex;align-items:center;justify-content:center;gap:22px;
  background:linear-gradient(105deg,#235a4c,#174b3d 80%,#296650);
  color:#fff;border:0;border-radius:100px;min-height:54px;padding:15px 30px;font-weight:650;
}
.button:hover {background:#154738}
.small {min-height:44px;padding:12px 25px;font-size:14px}
main {padding:58px 0 76px}
.intro {max-width:720px}
.eyebrow {font-size:12px;letter-spacing:1.8px;text-transform:uppercase;font-weight:700;color:var(--green);margin:0 0 22px}
h1,h2,h3,p {margin:0}
h1 {font-family:Georgia,serif;font-weight:400;font-size:clamp(48px,7vw,78px);line-height:1.08;letter-spacing:-2.5px}
h1 em {font-style:normal;box-shadow:inset 0 -0.21em #ffdf66}
.intro>p:last-child {font-size:19px;line-height:1.65;color:var(--muted);margin-top:28px;max-width:630px}
form {display:flex;align-items:flex-end;gap:20px;margin-top:40px}
.search-row {flex:1;min-width:0}
.search-label,.translation-select,label {display:block;font-size:13px;font-weight:600;margin-bottom:10px}
.search-input {display:flex;padding:6px;border-radius:100px;background:#fff;gap:8px;box-shadow:0 10px 35px #426b3b0c}
input {min-width:0;width:100%;border:0;border-radius:100px;background:#fff;padding:10px 18px;font-size:17px;outline-offset:0}
select {
  --select-height:54px;
  --arrow-inset:calc((var(--select-height) - 6px) / 2);
  appearance:none;-webkit-appearance:none;
  display:block;max-width:100%;min-height:var(--select-height);border:0;background-color:#fff;border-radius:100px;margin-top:10px;
  /* A 12 × 6 chevron with equal top, bottom and inline-end space. */
  background-image:linear-gradient(45deg,transparent 42%,currentColor 42% 58%,transparent 58%),linear-gradient(135deg,transparent 42%,currentColor 42% 58%,transparent 58%);
  background-size:6px 6px;background-repeat:no-repeat;background-origin:border-box;
  background-position:right calc(var(--arrow-inset) + 6px) center,right var(--arrow-inset) center;
  padding-block:10px;padding-inline:18px calc(var(--arrow-inset) + 24px);
}
select:dir(rtl) {background-position:left var(--arrow-inset) center,left calc(var(--arrow-inset) + 6px) center}
@media(forced-colors:active) {
  select {appearance:auto;-webkit-appearance:auto;background-image:none}
}
.translation-select {margin-bottom:0;min-width:185px}
.translation-select select {width:100%}
.section-heading {display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:24px}
.section-heading span {font-size:13px;color:var(--muted)}
h2 {font-family:Georgia,serif;font-size:30px;font-weight:400;line-height:1.2;letter-spacing:-.6px}
.results,.discover,.other {margin-top:65px}
.discover {display:grid;grid-template-columns:1fr 1fr;column-gap:70px}
.discover .section-heading {grid-column:1/-1}
.result {position:relative;display:block;padding:20px 42px 20px 0;margin-bottom:12px}
.result>div {display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.result h3 {font:400 29px Georgia,serif}
.pos {font-size:14px;color:var(--muted)}
.level {font-size:11px;font-weight:700;border-radius:6px;padding:5px 8px;color:var(--green);background:var(--sage);white-space:nowrap}
/* Same base-family palette as admin/style.css; CEFR+ labels stay unchanged. */
.level[data-level="A1"] {color:#160475;background:#DBD9FE}
.level[data-level="A2"] {color:#003176;background:#C0E3FF}
.level[data-level="B1"] {color:#006A00;background:#C7EEC3}
.level[data-level="B2"] {color:#784800;background:#FFE58A}
.level[data-level="C1"] {color:#6D2800;background:#FFD7B1}
.level[data-level="C2"] {color:#6D0000;background:#FFCFD6}
.result p {color:var(--muted);font-size:16px;line-height:1.7;margin-top:12px;overflow-wrap:anywhere}
.result-arrow {position:absolute;right:4px;top:24px;font-size:24px;color:var(--green)}
.result:hover h3,.text-link:hover {text-decoration:underline;text-underline-offset:5px}
.hint,.empty p {font-size:15px;color:var(--muted);line-height:1.6;margin-top:14px}
.empty {padding:25px 0}
.editorial {max-width:750px;padding:45px 0 0}
.editorial p {line-height:1.8;color:var(--muted);margin-top:18px}
.text-link {display:inline-block;font-size:15px;font-weight:650;margin-top:22px}
.app-cta {display:grid;grid-template-columns:minmax(0,1fr) 204px;gap:44px;align-items:center;background:linear-gradient(120deg,#e3eed9,#eff5e9);border:1px solid #dce7d4;border-radius:32px;padding:40px;margin-top:72px}
.app-cta-copy {min-width:0}
.app-cta-voice {display:flex;align-items:center;gap:24px}
.app-cta-voco {display:block;width:112px;height:auto;flex-shrink:0}
.app-cta-bubble {position:relative;flex:1;min-width:0;padding:24px 28px;background:#fcfef9;border:1px solid #d7e3ce;border-radius:26px;box-shadow:0 6px 0 #ccdbc74d}
.app-cta-bubble::before {content:"";position:absolute;inset-inline-start:-10px;top:calc(50% - 9px);width:18px;height:18px;background:#fcfef9;border-left:1px solid #d7e3ce;border-bottom:1px solid #d7e3ce;transform:rotate(45deg)}
.app-cta h2 {font-size:clamp(28px,3vw,38px);line-height:1.16;letter-spacing:-.8px;text-wrap:balance}
.app-cta-description {font-size:15px;line-height:1.7;color:var(--muted);margin:24px 0 0;margin-inline-start:136px}
.app-cta-copy>.text-link {margin-inline-start:136px;min-height:44px;display:inline-flex;align-items:center;gap:9px;margin-top:14px}
.stores {display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px}
.store-status {font-size:12px;line-height:1.4;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:var(--green)}
.store-badges {display:flex;flex-direction:column;align-items:center;gap:26px}
.store-badges a {display:flex;align-items:center;justify-content:center;width:180px;height:56px;flex:none;overflow:hidden;background:#000;border:1px solid #a6a6a6;border-radius:10px;cursor:default}
/* Flatten SVG layers before clipping the old edge to avoid an antialiasing seam. */
.store-badges img {display:block;width:auto;height:52px;max-width:none;flex:none;filter:opacity(1);clip-path:inset(2px round 8px)}
.store-availability {max-width:190px;font-size:12px;line-height:1.65;color:var(--muted)}
@media(max-width:1000px) {
  .app-cta {grid-template-columns:1fr;gap:32px;padding:32px}
  .stores {padding-top:28px;border-top:1px solid #cfddc6}
  .store-badges {flex-direction:row;flex-wrap:wrap;justify-content:center;gap:28px}
  .store-availability {max-width:none}
}
.back {display:inline-block;font-size:14px;color:var(--muted);margin-bottom:40px}
.word {max-width:780px}
.word-level {margin-bottom:12px}
.word-level .level {display:inline-block;font-size:13.2px;line-height:15.6px;padding:6px 9.6px;border-radius:7.2px}
.word-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px}
.word-heading h1 {overflow-wrap:anywhere;min-width:0;font-size:clamp(44px,5vw,60px)}
.word-heading .pos {flex-shrink:0;line-height:1.4}
.pronunciations {display:flex;flex-wrap:wrap;column-gap:32px;row-gap:16px;margin-top:26px}
.pronunciation {display:flex;align-items:center;gap:12px;font-size:12px}
.ipa {font-family:Arial,sans-serif;font-size:16px}
.audio-button {display:flex;align-items:center;gap:7px;min-height:44px;background:#edf3e7;border:0;border-radius:13px;padding:12px;font-size:14px;font-weight:600}
.audio-button svg {width:18px;height:18px;fill:none;color:var(--word-primary);flex-shrink:0}
.audio-button:hover,.audio-button.playing {background:#dcebd1}
#audio-status {font-size:14px;color:var(--muted);margin-top:14px}
#audio-status:empty {display:none}
.meaning,.examples,.translation,.short-story {margin-top:32px}
.meaning h2,.examples h2,.translation h2,.short-story h2 {font:600 13px/1.35 Arial,sans-serif;text-transform:uppercase;letter-spacing:1.3px;color:var(--word-primary)}
.meaning>p {font:400 21px/1.5 Arial,Helvetica,sans-serif;margin-top:12px;overflow-wrap:anywhere}
.examples {padding-left:10px}
.examples h2 {margin-inset-inline-start:-10px;margin-bottom:16px}
blockquote {font-size:18px;line-height:1.55;margin:12px 0 0;padding:8px 15px 8px 14px;border-left:4px solid var(--word-primary);overflow-wrap:anywhere}
.examples mark,.short-story mark {background:none;padding:0;font-weight:700}
mark {background:#ffedaa;color:inherit;border-radius:3px;padding:1px 2px}
.short-story {background:var(--story-surface);border-radius:10px;padding:24px}
.short-story h2 {color:var(--story-muted)}
.story-reading {display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--story-muted);margin-top:8px}
.story-body {font:400 21px/1.55 Georgia,serif;margin-top:12px;white-space:pre-line;overflow-wrap:anywhere}
.translation form {align-items:center;flex-wrap:wrap;margin-top:20px;gap:14px}
.translation label {margin:0}
.translation select {--select-height:44px;margin:0}
.meaning>.translated {font-size:18px;line-height:1.6;font-style:italic;color:var(--muted);margin-top:12px}
.other h2 {margin-bottom:20px}
footer {display:flex;flex-wrap:wrap;gap:24px;padding:30px 0;font-size:12px;color:var(--muted)}
footer>a:first-child {font-weight:700;color:var(--green)}
footer p {width:100%;font-size:11px;line-height:1.6}
.skip {position:absolute;top:-100px;left:10px;background:#fff;padding:12px;z-index:10}
.skip:focus {top:10px}
:focus-visible {outline:3px solid #5c55b1;outline-offset:5px}
a,button,input,select {scroll-margin:20px}
@media(max-width:680px) {
  header {align-items:flex-start;gap:22px;padding:26px 0;flex-direction:column}
  header .brand {width:176px}
  nav {gap:18px;flex-wrap:wrap;font-size:12px}
  nav .button {font-size:12px;padding:12px 18px}
  main {padding-top:30px}
  h1 {letter-spacing:-1.8px}
  .intro>p:last-child {font-size:17px}
  form {align-items:stretch;flex-direction:column;gap:18px;margin-top:30px}
  .search-input .button {padding:12px 18px;gap:8px;font-size:14px}
  .search-input input {font-size:16px;padding:10px 12px}
  .translation-select {width:100%}
  .section-heading {align-items:flex-start;flex-direction:column;gap:10px}
  .discover {grid-template-columns:1fr}
  .results,.discover,.other {margin-top:48px}
  h2 {font-size:27px}
  .app-cta {gap:26px;padding:28px 20px;margin-top:52px;border-radius:26px}
  .app-cta-voice {flex-direction:column;align-items:flex-start;gap:20px}
  .app-cta-voco {width:96px;margin-inline-start:12px}
  .app-cta-bubble {padding:22px 20px;border-radius:22px;flex:auto;width:100%}
  .app-cta-bubble::before {inset-inline-start:48px;top:-10px;border:0;border-left:1px solid #d7e3ce;border-top:1px solid #d7e3ce}
  .app-cta h2 {font-size:29px}
  .app-cta-description {margin:22px 0 0}
  .app-cta-copy>.text-link {margin-inline-start:0}
  .stores {padding-top:26px}
  .word-heading h1 {font-size:48px}
  .meaning>p {font-size:19px;line-height:1.5}
  .short-story {padding:18px}
  .story-body {font-size:19px;line-height:1.55}
  .translation form {flex-direction:row}
  .pronunciations {gap:20px}
  .result>div {gap:10px}
  footer {gap:18px}
  blockquote {font-size:17px}
}
@media(prefers-reduced-motion:reduce) {* {scroll-behavior:auto!important}}

/* Match the app's Synonyms/Antonyms pills and meaning-selection sheet. */
.relation-group {margin-top:28px}
.relation-group h2 {font:600 11px/1.35 Arial,sans-serif;letter-spacing:.99px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.relation-chips {display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.relation-chip {display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:44px;padding:8px 17px;border:1px solid #587063;border-radius:100px;background:#f8faf4;color:var(--word-primary);font-size:17px;line-height:22px;overflow-wrap:anywhere}
.relation-chip:hover {background:var(--sage)}
.relation-text {border-color:#cbd8c6;cursor:default}
.relation-text:hover {background:#f8faf4}
.relation-choice {max-width:100%}
.relation-choice summary {cursor:pointer;list-style:none}
.relation-choice summary::-webkit-details-marker {display:none}
.relation-choice[open] {flex-basis:100%}
.relation-options {min-width:0}
.relation-choice>.relation-options {margin-top:12px;padding:20px;background:#f8faf4;border-radius:20px;box-shadow:0 12px 38px #426b3b12}
.relation-options h3 {font:600 24px/1.25 Georgia,serif;color:var(--word-primary);padding-inline-end:70px;overflow-wrap:anywhere}
.relation-options .hint {margin-top:8px}
.relation-options ul {list-style:none;padding:0;margin:14px 0 0}
.relation-options li+li {border-top:1px solid #cbd8c6}
.relation-options li a {display:block;padding:16px 0;min-height:44px;overflow-wrap:anywhere}
.relation-options li a:hover strong {text-decoration:underline}
.relation-options strong {font-size:17px}
.relation-options .pos {margin-inline-start:10px}
.relation-options li p {font-size:16px;line-height:1.5;margin-top:6px}
.relation-dialog {position:fixed;width:min(460px,calc(100% - 40px));max-height:80vh;margin:auto;padding:24px;border:0;border-radius:20px;background:#f8faf4;color:#1f3a30;overflow:auto;box-shadow:0 20px 70px #14382c26}
.relation-dialog::backdrop {background:#1f3a3066}
.relation-close {float:right;position:relative;z-index:1;min-height:44px;padding:0 8px;border:0;background:none;color:var(--word-primary);font-size:14px;cursor:pointer}
@media(max-width:680px) {.relation-dialog {padding:20px}}

.browse-navigation{margin:48px 0;line-height:2}.browse-navigation a{display:inline-block;min-width:28px}.browse-navigation h2{line-height:1.3}

/* Keep result headwords, entry headwords and relation-picker words serif. */
:root :is(h1,h2,h3):not(.word-heading h1,.result h3,.relation-options h3) {
  font-family:var(--site-heading-font);
  font-weight:700;
}

/* Browse links are a wrapping collection, rather than a single flex row. */
.browse-navigation { display:block; }
.browse-navigation p { margin-block-start:12px; }
.browse-navigation a { min-width:32px; min-height:32px; text-align:center; text-decoration:underline; text-underline-offset:3px; }
.search-input { border:1px solid #70876f; }
.search-input input { border:0; }
.search-help { font-size:13px; line-height:1.5; color:var(--muted); margin-top:10px; }
.translation-select select,.translation select { border:1px solid #70876f; }
.dictionary-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.result-list { margin:0; padding:0; list-style:none; }

/* Keep translated actions intact and align interface decoration in RTL. */
.search-input .button { flex-shrink:0; white-space:nowrap; overflow-wrap:normal; }
.app-cta-bubble:dir(rtl)::before { transform:rotate(-45deg); }
.relation-close:dir(rtl) { float:left; }

.store-badges a:not([aria-disabled="true"]) {cursor:pointer}
