/* public/assets/css/deu-dict.css — TỪ ĐIỂN ĐỨC – VIỆT (/dictionary, public/deu/dictionary.php — audit Đợt 3, 16/10/2026).
   Cùng khuôn các trang Luyện thi: dải đậm + thẻ trắng chồng mép dải. Chỉ token (design-tokens / site-deu / learn-shell) ⇒ tự đúng nền tối. */

.ddc svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ddc-band { --lv-band-pb: 88px; }
.ddc-title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.ddc-title span { color: var(--color-brand-gold); }
.ddc-form { display: flex; gap: 8px; margin-top: 18px; max-width: 640px; }
.ddc-input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 16px;
    background: var(--color-surface); color: var(--color-ink); }
.ddc-input:focus { outline: none; box-shadow: var(--shadow-focus); }
.ddc-form .lv-btn { height: 48px; padding: 0 22px; }

.ddc-body { position: relative; z-index: 1; margin-top: -60px; }
.ddc-count { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--lv-on, var(--color-on-dark)); }
.ddc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ddc-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.ddc-item__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ddc-item__w { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.ddc-item__w h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--lv-ink); word-break: break-word; }
.ddc-ipa { font-size: 13.5px; color: var(--lv-muted); }
.ddc-art { display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 700; align-self: center; }
.ddc-art--der { background: var(--color-gender-der-soft); color: var(--color-gender-der-fg); }
.ddc-art--die { background: var(--color-gender-die-soft); color: var(--color-gender-die-fg); }
.ddc-art--das { background: var(--color-gender-das-soft); color: var(--color-gender-das-fg); }
.ddc-item__acts { display: flex; gap: 6px; flex: none; }
.ddc-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--lv-hair);
    background: var(--lv-surface); color: var(--lv-muted); cursor: pointer; transition: border-color .15s, color .15s; }
.ddc-ic:hover { border-color: var(--color-primary); color: var(--lv-brand-fg); }
.ddc-ic.is-playing { background: var(--lv-wash); }
.ddc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ddc-tags span { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
    background: var(--lv-sunken); color: var(--lv-text); }
.ddc-mean { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--lv-ink); line-height: 1.45; }
.ddc-forms { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--lv-text); }
.ddc-forms small { font-size: 12px; color: var(--lv-muted); margin-right: 2px; }
.ddc-note { margin: 0; font-size: 13px; color: var(--lv-muted); line-height: 1.5; }
/* Khớp qua dạng chia (Kho từ Đợt 1, 07/11/2026): "kommt: Präsens (er/sie/es)" */
.ddc-hit { margin: 0; font-size: 14px; color: var(--lv-muted); line-height: 1.5; }
.ddc-hit b { font-weight: 600; color: var(--lv-ink); }
.ddc-ex { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; padding: 10px 12px; border-radius: 12px; background: var(--lv-sunken); }
.ddc-ex .ddc-ic { width: 28px; height: 28px; }
.ddc-ex p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--lv-ink); line-height: 1.5; }
.ddc-ex small { font-size: 13px; color: var(--lv-muted); }

.ddc-help { padding: 18px 20px; margin-bottom: 24px; }
.ddc-help h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--lv-ink); }
.ddc-help ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--lv-text); line-height: 1.55; }
.ddc-help__none { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--lv-ink); }

@media (max-width: 600px) {
  .ddc-form .lv-btn { padding: 0 16px; }
  .ddc-list { grid-template-columns: minmax(0, 1fr); }
}

/* ── Trang một từ /dictionary/<slug> (public/deu/word.php — SEO Đợt 3, 17/10/2026) ── */
.ddw-crumb { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--lv-mint); }
.ddw-crumb a { color: inherit; text-decoration: none; }
.ddw-crumb a:hover { color: var(--lv-on); text-decoration: underline; }
.ddw-title { margin: 0; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; overflow-wrap: anywhere; }
.ddw-title__art { font-weight: 700; color: var(--color-brand-gold); }
.ddw-title__sep { margin: 0 .3em; opacity: .5; font-weight: 500; }
.ddw-band .lv-band__context { font-size: 17px; }
.ddw-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; margin-bottom: 28px; }
.ddw-main, .ddw-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ddw-side { position: sticky; top: calc(var(--lv-top-h, 64px) + 16px); }
.ddw-entry { gap: 12px; padding: 20px 22px; }
.ddw-entry .ddc-item__w h2 { font-size: 26px; }
.ddw-mean { font-size: 17px; }
.ddw-table-wrap { display: flex; flex-direction: column; gap: 6px; }
.ddw-table { width: 100%; max-width: 460px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--lv-hair); border-radius: 12px; overflow: hidden; font-size: 15px; }
.ddw-table th { padding: 8px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--lv-muted); background: var(--lv-sunken); }
.ddw-table td { padding: 8px 12px; border-top: 1px solid var(--lv-hair); color: var(--lv-ink); }
.ddw-table td + td, .ddw-table th + th { border-left: 1px solid var(--lv-hair); }
.ddw-a { font-weight: 700; }
.ddw-a--der { color: var(--color-gender-der-fg); }
.ddw-a--die { color: var(--color-gender-die-fg); }
.ddw-a--das { color: var(--color-gender-das-fg); }
.ddw-cap { margin: 0; font-size: 12.5px; color: var(--lv-muted); }
.ddw-forms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ddw-forms div { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 1px solid var(--lv-hair); border-radius: 12px; }
.ddw-forms dt { font-size: 12px; font-weight: 600; color: var(--lv-muted); }
.ddw-forms dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--lv-ink); }
.ddw-note { font-size: 14px; }
.ddw-hint { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; color: var(--lv-text);
    background: color-mix(in srgb, var(--color-brand-gold) 12%, var(--lv-surface)); }
.ddw-hint b { color: var(--lv-ink); margin-right: 4px; }
.ddw-hint a { font-weight: 600; color: var(--lv-brand-fg); white-space: nowrap; }
.ddw-sec { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ddw-sec h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--lv-ink); }
.ddw-mates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ddw-mates a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; text-decoration: none; border: 1px solid var(--lv-hair); }
.ddw-mates a:hover { border-color: var(--color-primary); }
.ddw-mates b { font-size: 14.5px; color: var(--lv-ink); }
.ddw-mates span { font-size: 13px; color: var(--lv-muted); }
.ddw-sets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ddw-sets a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px;
    font-size: 14.5px; font-weight: 600; color: var(--lv-ink); text-decoration: none; line-height: 1.4; }
.ddw-sets a:hover { background: var(--lv-sunken); color: var(--lv-brand-fg); }
.ddw-sets small { flex: none; font-size: 12px; font-weight: 700; color: var(--lv-muted); }
.ddw-cta p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--lv-text); }
.ddw-cta .btn { align-self: flex-start; }
.ddw-pn { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ddw-pn__a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; text-decoration: none; min-width: 0; }
.ddw-pn__a small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--lv-muted); }
.ddw-pn__a b { font-size: 16px; color: var(--lv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddw-pn__a--next { text-align: right; align-items: flex-end; }
.ddw-pn__a:hover b { color: var(--lv-brand-fg); }
.ddw-pn__all { font-size: 13.5px; font-weight: 600; color: var(--lv-brand-fg); white-space: nowrap; }

/* ── Danh sách từ A tới Z /dictionary/a1|a2|b1 (public/deu/dictionary-level.php) ── */
.ddl-lv { display: flex; gap: 8px; margin-top: 16px; }
.ddl-lv a { display: inline-grid; place-items: center; min-width: 52px; height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
    color: var(--lv-on); text-decoration: none; background: var(--lv-glass); border: 1px solid var(--lv-line-d); }
.ddl-lv a[aria-current] { background: var(--color-surface); color: var(--lv-deep-ink); border-color: transparent; }
.ddl-az { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; margin-bottom: 14px; position: sticky; top: calc(var(--lv-top-h, 64px) + 8px); z-index: 2; }
.ddl-az a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--lv-ink); text-decoration: none; }
.ddl-az a:hover { background: var(--lv-sunken); color: var(--lv-brand-fg); }
.ddl-group { padding: 16px 20px 18px; margin-bottom: 14px; scroll-margin-top: calc(var(--lv-top-h, 64px) + 72px); }
.ddl-group h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; color: var(--lv-ink); }
.ddl-group h2 small { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--lv-muted); }
.ddl-group ul { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 24px; }
.ddl-group li { break-inside: avoid; }
.ddl-group a { display: block; padding: 5px 0; font-size: 14.5px; line-height: 1.4; text-decoration: none; color: var(--lv-text); }
.ddl-group a b { font-weight: 700; color: var(--lv-ink); }
.ddl-group a span { color: var(--lv-muted); }
.ddl-group a:hover b { color: var(--lv-brand-fg); text-decoration: underline; }
.ddl-cta { margin-bottom: 28px; }
.ddc-browse { margin: 14px 0 0; font-size: 14.5px; color: var(--lv-text); line-height: 1.6; }
.ddc-browse a { font-weight: 700; color: var(--lv-brand-fg); }
.ddc-item__w h2 a { color: inherit; text-decoration: none; }
.ddc-item__w h2 a:hover { color: var(--lv-brand-fg); text-decoration: underline; }

@media (max-width: 900px) {
  .ddw-cols { grid-template-columns: minmax(0, 1fr); }
  .ddw-side { position: static; }
}
@media (max-width: 600px) {
  .ddw-entry { padding: 16px; }
  .ddw-pn { grid-template-columns: 1fr 1fr; }
  .ddw-pn__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .ddl-group ul { columns: 1; }
  .ddw-mates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ddl-az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ddl-az a { width: 30px; height: 30px; flex: none; }
}

/* Trang trình độ chia theo chữ cái (17/10/2026): lưới ô chữ, mỗi ô 5 từ đầu + link xem đủ. */
.ddl-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ddl-letter { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; min-width: 0; }
.ddl-letter h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 24px; font-weight: 800; color: var(--lv-ink); }
.ddl-letter h2 a { color: inherit; text-decoration: none; }
.ddl-letter h2 a:hover { color: var(--lv-brand-fg); }
.ddl-letter h2 small { font-size: 13px; font-weight: 600; color: var(--lv-muted); }
.ddl-letter ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ddl-letter li a { display: block; padding: 3px 0; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--lv-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddl-letter li a b { color: var(--lv-ink); }
.ddl-letter li a span { color: var(--lv-muted); }
.ddl-letter li a:hover b { color: var(--lv-brand-fg); text-decoration: underline; }
.ddl-letter__all { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--lv-brand-fg); text-decoration: none; }
.ddl-letter__all:hover { text-decoration: underline; }
.ddl-az a[aria-current] { background: var(--color-primary); color: var(--color-on-dark); }
@media (max-width: 600px) { .ddl-letters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ddl-letter { padding: 12px 14px; } .ddl-letter h2 { font-size: 20px; }
  .ddl-letter li a span { display: none; } }

/* SEO Đợt 4 (06/11/2026): câu trả lời "X là der, die hay das?" và bảng chia động từ ba thì (trang /dictionary/<từ>). */
.ddw-ans { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--lv-sunken); color: var(--lv-ink); font-size: 15px; line-height: 1.6; }
.ddw-ans b { font-weight: 700; }
.ddw-conj { display: flex; flex-direction: column; gap: 10px; }
.ddw-conj__h { margin: 0; font-size: 16px; font-weight: 700; color: var(--lv-ink); }
.ddw-conj__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ddw-table--conj { max-width: none; }
.ddw-table--conj caption { caption-side: top; text-align: left; padding: 0 2px 6px; font-size: 13px; font-weight: 700; color: var(--lv-muted); }
.ddw-table--conj th[scope="row"] { width: 1%; white-space: nowrap; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--lv-muted); background: var(--lv-sunken); border-top: 1px solid var(--lv-hair); }
.ddw-table--conj tr:first-child th[scope="row"], .ddw-table--conj tr:first-child td { border-top: 0; }
.ddw-table--conj td { padding: 7px 12px; }
