/* BeeSub dictionary pages. Colours and fonts come from styles.css. */
.dict-main { padding-block: 28px 56px; max-width: 920px; }
.dict-crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.dict-crumbs a { color: var(--text-soft); text-decoration: none; }
.dict-crumbs a:hover { color: var(--accent); }
.dict-hub-title { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.3; margin: 0 0 10px; }
.dict-title { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; margin: 18px 0 6px; font-weight: 900; }
.dict-title small { font-size: .42em; font-weight: 500; color: var(--text-muted); }
.dict-lead { color: var(--text-soft); font-size: 1.08rem; margin: 0 0 18px; }
.dict-main h2 { font-size: 1.15rem; margin: 30px 0 12px; color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pos { display: inline-block; font-size: .78rem; padding: 1px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-inline-end: 6px; }
.art { font-weight: 700; }
.art-der { color: var(--der); } .art-die { color: var(--die); } .art-das { color: var(--das); }

.dict-search { position: relative; margin: 14px 0 22px; }
.dict-search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text); }
.dict-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dict-results { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; inset-inline: 0; z-index: 20; background: var(--bg-card-hi); border: 1px solid var(--line-strong); border-radius: var(--radius); max-height: 60vh; overflow: auto; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.dict-results a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 9px; text-decoration: none; }
.dict-results a:hover, .dict-results a:focus { background: rgba(255,255,255,.06); }
.dict-results .none { padding: 10px 12px; color: var(--text-muted); }

.dict-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 10px 0 8px; }
.dict-card { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-card); text-decoration: none; }
.dict-card:hover { border-color: var(--accent); }
.dict-card strong { font-size: 1.2rem; }
.dict-card span { color: var(--text-soft); font-size: .92rem; }
.dict-card-top { color: var(--text-muted) !important; font-size: .85rem !important; }

.dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.dict-word { display: grid; gap: 1px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); text-decoration: none; }
.dict-word:hover { border-color: var(--accent); background: var(--bg-card-hi); }
.dict-word .ltr { font-weight: 600; }
.dict-gloss { color: var(--text-muted); font-size: .85rem; }
.dict-letters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dict-letters a { min-width: 40px; text-align: center; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; text-decoration: none; font-weight: 600; }
.dict-letters a:hover { border-color: var(--accent); color: var(--accent); }

.dict-entry { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.dict-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.ipa { color: var(--text-muted); font-size: .95rem; }
.dict-variant { color: var(--text-soft); }
.dict-morph { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 18px; margin: 0 0 14px; }
.dict-morph div { display: grid; }
.dict-morph dt { font-size: .78rem; color: var(--text-muted); }
.dict-morph dd { margin: 0; font-weight: 600; }
.dict-senses { margin: 0; padding-inline-start: 22px; display: grid; gap: 14px; }
.sense-fa { margin: 0; font-size: 1.1rem; font-weight: 500; }
.sense-guide, .sense-note { margin: 2px 0 0; font-size: .88rem; color: var(--text-muted); }
.dict-example { margin: 8px 0 0; padding: 8px 14px; border-inline-start: 3px solid var(--accent); background: rgba(255,255,255,.03); border-radius: 8px; }
.dict-example p { margin: 0; }
.dict-example p:first-child { font-weight: 500; }
.dict-example p + p { color: var(--text-soft); font-size: .92rem; }
.dict-defs, .dict-forms { margin: 12px 0 0; font-size: .92rem; color: var(--text-soft); }
.dict-defs > span:first-child, .dict-forms > span:first-child { color: var(--text-muted); }
.dict-cta { margin: 26px 0 10px; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--accent); background: var(--accent-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dict-cta p { margin: 0; }
.dict-source { font-size: .85rem; color: var(--text-muted); }
.dict-near { margin-top: 10px; }
.dict-sources { margin-top: 36px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .82rem; line-height: 1.9; }
.dict-sources a { color: var(--text-soft); }
@media (max-width: 560px) { .dict-entry { padding: 14px; } .dict-grid { grid-template-columns: 1fr 1fr; } }

.dict-keys { display: flex; gap: 8px; margin-top: 8px; }
.dict-keys button { min-width: 42px; padding: 6px 12px; font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text); cursor: pointer; }
.dict-keys button:hover { border-color: var(--accent); color: var(--accent); }
.say { font: inherit; font-size: .8rem; padding: 3px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-soft); cursor: pointer; vertical-align: middle; }
.say:hover { border-color: var(--accent); color: var(--accent); }
.say-sm { padding: 0 8px; margin-inline-start: 6px; }
