/* Student Dictionary (dictionary.html) */
html.site.page-dictionary .h-hero { min-height: 0 !important; height: auto !important; padding-bottom: 40px; }
html.site.page-dictionary .h-hero h1 span { display: block; }
.dc-search { position: relative; max-width: 560px; margin: 28px auto 0; }
.dc-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--hb, #094570); pointer-events: none; }
.dc-search input { width: 100%; height: 56px; border: 0; border-radius: 999px; padding: 0 22px 0 50px; font: inherit; font-size: 17px; color: #062F4D; background: #fff; box-shadow: 0 0 0 1px #D5E0E8, 0 16px 40px -18px rgba(6,47,77,.35); outline: none; }
.dc-search input:focus { box-shadow: 0 0 0 2px #094570, 0 16px 40px -18px rgba(6,47,77,.35); }
html[dir="rtl"] .dc-search svg { left: auto; right: 18px; }
html[dir="rtl"] .dc-search input { padding: 0 50px 0 22px; }
.dc-sec { padding-top: 34px; }
.dc-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; direction: rtl; margin: 0 auto 18px; max-width: 900px; }
.dc-letters button { min-width: 44px; height: 44px; padding: 0 8px; border: 0; border-radius: 12px; background: #fff; color: #062F4D; cursor: pointer; font: 700 22px/1 'Amiri', serif; box-shadow: 0 0 0 1px #D5E0E8; transition: background .15s, color .15s; }
.dc-letters button:hover:not(:disabled) { background: #E3F2FD; }
.dc-letters button[aria-pressed="true"] { background: #094570; color: #fff; box-shadow: none; }
.dc-letters button:disabled { opacity: .35; cursor: default; }
.dc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.dc-chips button { border: 0; border-radius: 999px; padding: 8px 16px; font: 600 14px/1 inherit; font-family: inherit; background: #fff; color: #4B6577; cursor: pointer; box-shadow: 0 0 0 1px #D5E0E8; }
.dc-chips button[aria-pressed="true"] { background: #E3F2FD; color: #062F4D; box-shadow: 0 0 0 1.5px #094570; }
.dc-count { text-align: center; color: #4B6577; font-size: 14px; margin: 0 0 22px; min-height: 1.4em; }
.dc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.dc-card { background: #fff; border-radius: 20px; padding: 22px 22px 20px; box-shadow: 0 0 0 1px #D5E0E8; display: flex; flex-direction: column; gap: 10px; }
.dc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dc-w { font-family: 'Amiri', serif; font-size: 40px; line-height: 1.25; color: #062F4D; margin: 0; direction: rtl; }
.dc-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; padding-top: 6px; }
.dc-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #094570; background: #E3F2FD; border-radius: 999px; padding: 4px 10px; }
.dc-tag.top { color: #4B6577; background: #F1F4F7; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: #4B6577; }
.dc-meta b { color: #062F4D; font-weight: 600; }
.dc-meta .ar { font-family: 'Amiri', serif; font-size: 19px; color: #062F4D; }
.dc-en { font-size: 18px; font-weight: 600; color: #062F4D; margin: 0; }
.dc-ar { font-family: 'Amiri', serif; font-size: 19px; color: #4B6577; margin: 0; direction: rtl; text-align: right; }
.dc-ex { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: #F1F4F7; }
.dc-ex .a { font-family: 'Amiri', serif; font-size: 22px; line-height: 1.6; color: #062F4D; direction: rtl; text-align: right; margin: 0; }
.dc-ex .e { font-size: 14px; color: #4B6577; margin: 4px 0 0; }
.dc-more { text-align: center; margin-top: 26px; }
.dc-empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: #4B6577; }
.dc-note { text-align: center; color: #4B6577; font-size: 14px; max-width: 620px; margin: 34px auto 0; }
.dc-note a { color: #094570; font-weight: 600; text-decoration: underline; }
@media (max-width: 520px) { .dc-w { font-size: 34px; } .dc-letters button { min-width: 40px; height: 40px; font-size: 20px; } }

.dc-modes { display: flex; justify-content: center; gap: 6px; margin: 0 auto 20px; padding: 5px; width: max-content; max-width: 100%; border-radius: 999px; background: #E5EBF0; }
.dc-modes button { border: 0; border-radius: 999px; padding: 10px 20px; font: 600 15px/1 inherit; font-family: inherit; background: transparent; color: #4B6577; cursor: pointer; }
.dc-modes button[aria-pressed="true"] { background: #094570; color: #fff; }
.dc-study { max-width: 620px; margin: 0 auto; }
.dc-fc { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dc-prog { color: #4B6577; font-size: 14px; margin: 0; }
.dc-flip { width: 100%; min-height: 260px; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px #D5E0E8, 0 24px 50px -28px rgba(6,47,77,.4); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 22px; font-family: inherit; color: #062F4D; }
.dc-flip.on { background: #E3F2FD; }
.dc-flip .dc-w { font-size: clamp(54px, 14vw, 84px); }
.dc-flip .hint { font-size: 13.5px; color: #4B6577; }
.dc-flip .dc-en { font-size: 24px; } .dc-flip .dc-ar { text-align: center; }
.dc-flip .a { font-family: 'Amiri', serif; font-size: 24px; line-height: 1.6; direction: rtl; }
.dc-flip .e { font-size: 14.5px; color: #4B6577; }
.dc-row { display: flex; gap: 12px; justify-content: center; }
.dc-btn { border: 0; border-radius: 999px; padding: 14px 26px; font: 700 16px/1 inherit; font-family: inherit; background: #094570; color: #fff; cursor: pointer; }
.dc-btn.line { background: #fff; color: #094570; box-shadow: 0 0 0 1.5px #094570; }
.dc-done { font-size: 20px; color: #062F4D; margin: 10px 0; }
.dc-qt { margin: 0; color: #4B6577; } .dc-w.big { font-size: clamp(54px, 14vw, 84px); margin: 0; }
.dc-opts { display: grid; gap: 10px; width: 100%; }
.dc-opt { border: 0; border-radius: 16px; padding: 16px 18px; font: 600 17px/1.3 inherit; font-family: inherit; text-align: center; background: #fff; color: #062F4D; cursor: pointer; box-shadow: 0 0 0 1px #D5E0E8; }
.dc-opt:hover:not(:disabled) { background: #E3F2FD; }
.dc-opt.ok { background: #DDF3E4; box-shadow: 0 0 0 2px #2E8B57; } .dc-opt.bad { background: #FBE3E1; box-shadow: 0 0 0 2px #C0392B; }
.dc-fb { margin: 0; font-weight: 600; color: #062F4D; }
.dc-rev { list-style: none; padding: 0; margin: 0; text-align: left; } .dc-rev li { padding: 8px 0; border-bottom: 1px solid #E5EBF0; } .dc-rev span { font-family: 'Amiri', serif; font-size: 22px; margin-right: 8px; }
/* word of the day card (dashboard) */
.wotd { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.wotd .dc-w { font-size: 46px; margin: 0; }
.wotd .t { flex: 1; min-width: 200px; } .wotd .dc-en { margin: 0 0 6px; } .wotd .dc-ex { margin: 8px 0 0; }
.site.page-dictionary [hidden], .dc-more [hidden], .wotd [hidden] { display: none !important; }

/* reading help: Latin spelling, listen button, synonyms */
.dc-wrap { min-width: 0; }
.dc-tr { margin: 2px 0 0; font-size: 15px; font-style: italic; color: #4B6577; direction: ltr; text-align: left; }
.dc-top { align-items: center; }
.dc-say { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #094570; background: #E3F2FD; transition: background .15s, transform .15s; }
.dc-say:hover { background: #CDE8FB; }
.dc-say:active { transform: scale(.94); }
.dc-say:focus-visible { outline: 2px solid #094570; outline-offset: 2px; }
.dc-syn { margin: 0; font-size: 14px; color: #4B6577; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.dc-syn .ar { font-family: 'Amiri', serif; font-size: 19px; color: #062F4D; font-weight: 400; }
.dc-exa { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dc-exa .a { flex: 1; }
.dc-exa .dc-say { width: 32px; height: 32px; background: #fff; }
