/* DKHL V2.2: OPT-IN mobile-only adjustments. Keep selectors scoped to Modern V2. */
@media (max-width: 849px) {
  body.dkhlm-site.dkhl22-mobile-enabled :is(.dkhlm-section,.dkhlm-content-area,.dkhlm-archive,.dkhlm-app) { overflow-wrap: break-word; }
  body.dkhlm-site.dkhl22-mobile-enabled :is(.dkhlm-section,.dkhlm-footer) .col-inner { min-width:0; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section { padding-top:42px!important; padding-bottom:42px!important; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section :is(h1,h2) { text-wrap:balance; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-title-area { padding-top:18px; padding-bottom:24px; margin-bottom:22px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-breadcrumb { padding-block:14px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app .academy-heading { padding:18px 0 24px; margin-bottom:16px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app .academy-sidebar { padding:14px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-hero-art > .col-inner { max-width:260px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-banner .img-inner { border-radius:12px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .dkhlm-intro { margin-bottom:12px; }
}
@media (max-width: 599px) {
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-container,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app .wrap { width:calc(100% - 28px); }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section { padding-top:30px!important; padding-bottom:30px!important; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section :is(h2,h3) { letter-spacing:-.02em; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section h2 { font-size:clamp(22px,6vw,28px); line-height:1.27; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section p { line-height:1.55; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-hero h1 { font-size:clamp(28px,8vw,35px); }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-hero .dkhlm-hero-note { margin-top:8px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-hero .dkhlm-hero-art { padding-bottom:4px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-hero-art > .col-inner { padding:12px 12px 3px;max-width:190px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-emblem { max-width:116px; }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .row > .col.dkhlm-course-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .row > .col.dkhlm-info-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .row > .col.dkhlm-tool-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .row > .col.dkhl21-license-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-section .row > .col.dkhl26-course-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-section .row > .col.dkhl26-study-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-section .row > .col.dkhl26-value-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-section .row > .col.dkhl26-step-card {
    flex:0 0 50%!important; width:50%!important; max-width:50%!important;
    padding-left:5px!important; padding-right:5px!important; padding-bottom:10px!important; min-width:0;
  }
  /* 3-item groups: put the third card on its own wide row instead of a stranded half-width card. */
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .row > .col.dkhlm-info-card:nth-child(odd):last-child,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .row > .col.dkhlm-tool-card:nth-child(odd):last-child,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .row > .col.dkhl21-license-card:nth-child(odd):last-child,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-section .row > .col.dkhl26-study-card:nth-child(odd):last-child,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-section .row > .col.dkhl26-value-card:nth-child(odd):last-child {
    flex-basis:100%!important; width:100%!important; max-width:100%!important;
  }
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-course-card > .col-inner,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-info-card > .col-inner,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-tool-card > .col-inner,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl21-license-card > .col-inner,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-course-card > .col-inner,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-step-card > .col-inner,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-study-card > .col-inner,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-value-card > .col-inner {
    min-width:0; padding:14px 12px; border-radius:13px; box-shadow:none;
  }
  body.dkhlm-site.dkhl22-mobile-enabled :is(.dkhlm-course-card,.dkhlm-info-card,.dkhlm-tool-card,.dkhl21-license-card) .dkhlm-eyebrow { font-size:10px; letter-spacing:.02em; margin-bottom:8px; }
  body.dkhlm-site.dkhl22-mobile-enabled :is(.dkhlm-course-card,.dkhlm-info-card,.dkhlm-tool-card,.dkhl21-license-card) h3 {font-size:clamp(18px,5vw,23px);line-height:1.25;margin:4px 0 10px; overflow-wrap:anywhere;}
  body.dkhlm-site.dkhl22-mobile-enabled :is(.dkhlm-course-card,.dkhlm-info-card,.dkhlm-tool-card,.dkhl21-license-card) p:not(.dkhlm-eyebrow):not(.dkhlm-number) {font-size:13px;line-height:1.45; display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:10px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-section .col :is(.button,.dkhlm-btn) {min-height:42px;padding:9px 10px;font-size:12.5px;line-height:1.4;overflow-wrap:anywhere;}
  body.dkhlm-site.dkhl22-mobile-enabled :is(.dkhlm-course-card,.dkhlm-tool-card,.dkhl21-license-card) .button {width:100%;margin:3px 0 0;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-course-card .button {margin-top:auto;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-number {width:34px;height:34px;min-width:34px;font-size:14px!important;margin-bottom:10px!important;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-course-card h3 {font-size:23px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-course-note {padding:14px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-course-note p {font-size:13px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-step-card .dkhl26-step-number {font-size:24px;margin-bottom:8px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-course-card .col-inner:before,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl26-value-card .col-inner:before {height:3px;margin-bottom:9px;width:27px;}
  /* Article lists are PREVIEWS. Full posts are still read on their existing URLs. */
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-card-grid,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-card-grid > *,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-grid > * {min-width:0;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-article-card,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-card {border-radius:12px; box-shadow:none;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-card-cover {aspect-ratio:16/9;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-card-copy {padding:12px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-card > :not(img) {margin-left:12px;margin-right:12px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-card > img {aspect-ratio:16/9;object-fit:cover;width:100%;height:auto;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-card-copy h2,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-card h3 {font-size:15px;line-height:1.42;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-card-copy > p:not(.dkhlm-eyebrow),
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-card p {font-size:12.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:9px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-card-copy .dkhlm-eyebrow,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-card-top {font-size:10px;letter-spacing:0;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-read-link,
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-directory .editorial-card > .text-link {font-size:12px;padding-top:5px;padding-bottom:12px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-article-card:nth-child(odd):last-child {grid-column:span 2;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-extra-card[hidden] {display:none!important;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-more-posts {display:flex;align-items:center;justify-content:center;width:100%;max-width:280px;margin:16px auto 24px;min-height:44px;border:1px solid #bdcfdd;border-radius:11px;background:#fff;color:#123c5b;font-size:14px;font-weight:700;letter-spacing:0;text-transform:none;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-more-posts[hidden] {display:none!important;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-toc {padding:13px 16px;margin-bottom:20px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-prose {line-height:1.7;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-prose figure {margin:18px 0;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-prose :is(p,li) {overflow-wrap:break-word;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-reading-aside {margin-top:20px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-related-details {border:1px solid #d9e5ef;border-radius:13px;overflow:hidden;background:#f7fafc;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-related-details > summary {display:flex;align-items:center;min-height:46px;cursor:pointer;padding:10px 16px;color:#0b355a;font-weight:700;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-related-details > summary::after {content:'+';margin-left:auto;font-size:19px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-related-details[open] > summary::after {content:'−';}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-related-details .dkhlm-aside-card {border:0;border-top:1px solid #d9e5ef;border-radius:0;padding:16px;}
  /* Contact: compact, with real links only; keep unverified social URLs hidden. */
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-contact-panel > .col-inner {padding:14px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-contact-panel .contact-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-contact-panel .contact-card {padding:12px;min-width:0;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-contact-panel .contact-card:first-child {grid-column:1 / -1;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-contact-panel .contact-card :is(h3,p) {font-size:12px;overflow-wrap:anywhere;line-height:1.4;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl21-channels-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl21-channels {padding:12px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl21-channel {min-width:0;min-height:44px;padding:9px;font-size:12px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl21-dock {right:12px;bottom:max(14px,env(safe-area-inset-bottom));}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl21-dock-toggle {padding:9px 13px;min-height:44px;font-size:13px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl21-dock-menu {max-height:min(340px,60vh);overflow-y:auto;}
  body.dkhlm-site.dkhl22-mobile-enabled.dkhl22-input-focus .dkhl21-dock {display:none;}
  /* 3-column footer: brand full, link groups half + half. */
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-footer {padding:30px 0!important;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-footer .row > .col:first-child:nth-last-child(3) ~ .col {flex:0 0 50%!important;width:50%!important;max-width:50%!important;min-width:0;padding-left:7px!important;padding-right:7px!important;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-footer .dkhlm-footer-logo {max-width:54px;margin-bottom:8px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-footer .dkhlm-brand-name {margin-bottom:5px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-footer li {font-size:13px;line-height:1.5;margin-bottom:5px;}
  /* Academy: only visual compactness; do not alter quiz JS, IDs or localStorage. */
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app .academy-heading h1 {font-size:26px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app .academy-heading p {font-size:13px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app .academy-sidebar nav {grid-template-columns:repeat(2,minmax(0,1fr));}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app .academy-sidebar nav button {font-size:12px;line-height:1.35;padding:9px 7px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app :is(.stats-grid,.academy-actions,.chapter-grid,.fixed-exams,.sim-library) {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app :is(.stats-grid,.academy-actions,.chapter-grid,.fixed-exams,.sim-library) > * {min-width:0;}
  body.dkhlm-site.dkhl22-mobile-enabled .dkhlm-app :is(.stat-box,.academy-action,.chapter-card,.exam-tile,.sim-tile) {padding:12px;}
}
@media(min-width:600px) {
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-related-details > summary {display:none;}
}
@media(prefers-reduced-motion:reduce) {
  body.dkhlm-site.dkhl22-mobile-enabled .dkhl22-more-posts {transition:none;}
}
