/* Dehkhoda from the poem page (word-lookup.js). */
.wl-button { position: absolute; z-index: 60; padding: 3px 12px; border: 0; border-radius: 999px; background: var(--cocoa); color: var(--cream); font: 700 13px/1.6 var(--font-ui); cursor: pointer; box-shadow: 0 2px 8px rgba(36, 19, 10, .25); }
.wl-button:hover { background: #4A2C1B; }
.wl-card { position: absolute; z-index: 61; width: min(440px, calc(100vw - 16px)); padding: 14px 18px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 32px rgba(36, 19, 10, .18); font-size: 14px; display: flex; flex-direction: column; }
.wl-card > * { flex-shrink: 0; }
.wl-card > .wl-card__body { flex-shrink: 1; }
.wl-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.wl-card__label { font-size: 12px; font-weight: 700; color: #8A6A43; }
.wl-card__close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; font-size: 20px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.wl-card__close:hover { background: #F4F1EA; }
.wl-card__word { margin: 0 0 6px; font-family: var(--font-book); font-size: 26px; line-height: 1.4; }
.wl-card__others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.wl-card__chip { padding: 2px 10px; border: 1px solid #D9D2C7; border-radius: 999px; background: none; font: inherit; cursor: pointer; }
.wl-card__chip:hover { background: #F4F1EA; }
.wl-card__body { flex: 0 1 auto; min-height: 60px; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding-left: 6px; font-family: var(--font-book); font-size: 17px; line-height: 2; text-align: justify; }
.wl-card__entry + .wl-card__entry { margin-top: 12px; padding-top: 10px; border-top: 1px solid #EFEDE8; }
.wl-card__entry h3 { margin: 0 0 4px; font-size: 17px; }
.wl-card__status { margin: 4px 0 8px; }
.wl-card__link { display: inline-block; margin-top: 10px; font-weight: 700; color: #8A6A43; }
.wl-bar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 4px; background: var(--cocoa); color: var(--cream); border-radius: 14px; box-shadow: 0 6px 20px rgba(36, 19, 10, .3); }
.wl-bar__link { flex: 1; min-width: 0; padding: 10px 14px; color: var(--cream); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-bar__close { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--cream); font-size: 22px; cursor: pointer; }
.wl-button[hidden], .wl-card[hidden], .wl-bar[hidden] { display: none; }
/* The «دهخدا» and «ابجد» buttons side by side; the abjad card. */
.wl-buttons { position: absolute; z-index: 60; display: flex; gap: 6px; }
.wl-buttons .wl-button { position: static; }
.wl-buttons[hidden], .wl-buttons .wl-button[hidden], .wl-bar__link[hidden] { display: none; }
.ab-card__text { margin: 2px 0 0; font-family: var(--font-book); font-size: 19px; line-height: 1.8; }
.ab-card__total { margin: 0 0 4px; font-family: var(--font-book); font-size: 40px; line-height: 1.3; }
.ab-card__year { margin: 0; font-size: 14px; }
.ab-card__words { margin: 8px 0 0; font-size: 13px; line-height: 1.9; }
.wl-bar__abjad { flex: 0 0 auto; border-right: 1px solid rgba(254, 243, 199, .25); }
.wl-bar__link[hidden] + .wl-bar__abjad { flex: 1; border: 0; }
