/* MISAC Help Center. Rides on the site variables from articles/header.php
   (--primary magenta, --secondary blue, square corners everywhere). */

.dk-shell { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 292px minmax(0, 1fr); align-items: start; background: #fff; border-left: 1px solid var(--divider); border-right: 1px solid var(--divider); }
.dk-main { padding: 28px 48px 56px; min-width: 0; }

/* ---------- sidebar ---------- */
.dk-side { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; border-right: 1px solid var(--divider); background: #fcfcfd; display: flex; flex-direction: column; scrollbar-width: thin; }
.dk-side-top { position: sticky; top: 0; background: #fcfcfd; padding: 18px 16px 12px; border-bottom: 1px solid var(--divider); z-index: 2; }
.dk-side-home { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; margin-bottom: 12px; }
.dk-side-home .material-symbols-outlined { color: var(--primary); font-size: 22px; }
.dk-nav { padding: 8px 0 16px; flex: 1; }
.dk-sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); user-select: none; }
.dk-sec > summary::-webkit-details-marker { display: none; }
.dk-sec > summary:hover { background: var(--primary-tint); }
.dk-sec > summary .material-symbols-outlined { font-size: 19px; color: var(--secondary); }
.dk-sec[open] > summary { color: var(--primary); }
.dk-sec[open] > summary .material-symbols-outlined { color: var(--primary); }
.dk-sec-t { flex: 1; }
.dk-count { font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--divider); padding: 1px 7px; line-height: 18px; }
.dk-sec a { display: block; padding: 6px 16px 6px 45px; font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); text-decoration: none; border-left: 3px solid transparent; }
.dk-sec a:hover { color: var(--primary); background: var(--primary-tint); }
.dk-sec a.active { color: var(--primary); font-weight: 600; background: var(--primary-tint); border-left-color: var(--primary); }
.dk-sec a.dk-sec-all { font-size: 12.5px; font-weight: 600; color: var(--secondary); }
.dk-sec[open] { padding-bottom: 8px; border-bottom: 1px solid var(--divider); }
.dk-grp { padding: 10px 16px 4px 45px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.dk-side-foot { padding: 14px 16px 22px; font-size: 12.5px; color: var(--text-secondary); border-top: 1px solid var(--divider); }
.dk-side-foot a { color: var(--secondary); font-weight: 600; }
.dk-side-toggle { display: none; }

/* ---------- search ---------- */
.dk-search { position: relative; display: flex; align-items: center; border: 1px solid var(--border); background: #fff; }
.dk-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.dk-search > .material-symbols-outlined { font-size: 18px; color: var(--text-muted); padding-left: 10px; }
.dk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 9px 8px; font: inherit; font-size: 14px; color: var(--text); }
.dk-search kbd { font: 600 11px/1 'Roboto', sans-serif; color: var(--text-muted); border: 1px solid var(--border); padding: 3px 6px; margin-right: 8px; }
.dk-results { position: absolute; left: -1px; right: -1px; top: 100%; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--primary); box-shadow: 0 12px 32px rgba(0,0,0,.14); max-height: 70vh; overflow-y: auto; z-index: 50; }
.dk-results a { display: block; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--divider); color: var(--text); }
.dk-results a:last-child { border-bottom: 0; }
.dk-results a.on, .dk-results a:hover { background: var(--primary-tint); }
.dk-results b { display: block; font-size: 14px; font-weight: 600; }
.dk-results small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary); margin: 1px 0 2px; }
.dk-results span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }
.dk-results mark { background: #fde7f3; color: inherit; }
.dk-results .dk-none { padding: 14px; font-size: 13px; color: var(--text-secondary); }

/* ---------- page head ---------- */
.dk-crumbs { font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.dk-crumbs a { color: var(--text-secondary); text-decoration: none; }
.dk-crumbs a:hover { color: var(--primary); }
.dk-head { padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--divider); }
.dk-kicker { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--secondary); margin-bottom: 10px; }
.dk-kicker .material-symbols-outlined { font-size: 18px; }
.dk-kind { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--primary-soft); background: var(--primary-tint); padding: 1px 7px; margin-left: 6px; }
.dk-head h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -.4px; color: var(--text); margin-bottom: 10px; }
.dk-lede { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 760px; }
.dk-meta { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- article ---------- */
.dk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: start; }
.dk-article { max-width: 800px; min-width: 0; font-size: 16px; line-height: 1.75; color: var(--text); }
.dk-article h2 { font-size: 23px; line-height: 1.3; font-weight: 700; margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--divider); scroll-margin-top: 84px; }
.dk-article h2:first-child { margin-top: 12px; border-top: 0; padding-top: 0; }
.dk-article h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--primary); margin-bottom: 14px; }
.dk-article h2:first-child::before { display: none; }
.dk-article h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; scroll-margin-top: 84px; }
.dk-article h4 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.dk-article p { margin: 0 0 14px; }
.dk-article a { color: var(--secondary); text-decoration: underline; text-decoration-color: var(--secondary-soft); text-underline-offset: 3px; }
.dk-article a:hover { color: var(--primary); text-decoration-color: var(--primary); }
.dk-article strong { font-weight: 700; color: #111; }
.dk-article ul, .dk-article ol { margin: 0 0 16px; padding-left: 0; }
.dk-article ul > li { list-style: none; position: relative; padding-left: 22px; margin-bottom: 7px; }
.dk-article ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; background: var(--primary); }
.dk-article ol > li { list-style: none; position: relative; padding-left: 44px; margin-bottom: 12px; min-height: 28px; }
.dk-article ol > li::before { content: counter(list-item); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--secondary); color: #fff; font-size: 13px; font-weight: 700; }
.dk-article li > ul, .dk-article li > ol { margin: 8px 0 0; }
.dk-article li p { margin-bottom: 8px; }
.dk-article code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: #f3f4f6; border: 1px solid var(--divider); padding: 1px 5px; }
.dk-article pre { background: #17212b; color: #e6edf3; padding: 16px 18px; overflow-x: auto; margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; }
.dk-article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.dk-article hr { border: 0; border-top: 1px solid var(--divider); margin: 32px 0; }
.dk-note { border-left: 4px solid var(--secondary); background: var(--secondary-tint); padding: 14px 18px; margin: 0 0 18px; }
.dk-note p:last-child { margin-bottom: 0; }
.dk-table { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); }
.dk-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.dk-table th { position: sticky; top: 0; background: var(--secondary-tint); color: var(--secondary-dark); text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--secondary-soft); white-space: nowrap; }
.dk-table td { padding: 9px 12px; border-top: 1px solid var(--divider); vertical-align: top; }
.dk-table tr:nth-child(even) td { background: #fafbfc; }
/* natural size, never stretched (a cropped dialog is 420px wide); the caption wraps to the picture */
.dk-shot { display: table; max-width: 100%; margin: 6px 0 26px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-card); }
.dk-shot a { display: block; line-height: 0; cursor: zoom-in; }
.dk-shot img { display: block; width: auto; max-width: 100%; height: auto; }
.dk-shot figcaption { display: table-caption; caption-side: bottom; font-size: 13px; line-height: 1.5; color: var(--text-secondary); padding: 9px 14px; border: 1px solid var(--border); border-top: 0; background: #fafbfc; }

/* ---------- on this page ---------- */
.dk-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; border-left: 1px solid var(--divider); padding: 4px 0 4px 16px; }
.dk-toc-t { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.dk-toc a { display: block; font-size: 13px; line-height: 1.4; color: var(--text-secondary); text-decoration: none; padding: 5px 0 5px 10px; margin-left: -17px; border-left: 2px solid transparent; }
.dk-toc a:hover { color: var(--primary); }
.dk-toc a.on { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

/* ---------- pager and help band ---------- */
.dk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 28px; max-width: 800px; }
.dk-pager a { display: block; border: 1px solid var(--border); padding: 14px 18px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; transition: border-color .15s; }
.dk-pager a:hover { border-color: var(--primary); color: var(--primary); }
.dk-pager small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.dk-next { text-align: right; grid-column: 2; }
.dk-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--primary-tint); border: 1px solid var(--primary-soft); border-left: 4px solid var(--primary); padding: 20px 24px; max-width: 800px; margin-top: 24px; }
.dk-band strong { font-size: 16px; }
.dk-band p { font-size: 14px; color: var(--text-secondary); margin: 2px 0 0; }
.dk-band-links { display: flex; flex-direction: column; gap: 6px; }
.dk-band-links a { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.dk-band-links a:hover { color: var(--primary); }
.dk-band-links .material-symbols-outlined { font-size: 18px; color: var(--primary); }

/* ---------- section index ---------- */
.dk-index { max-width: 860px; margin-top: 26px; }
.dk-index h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); padding-bottom: 8px; border-bottom: 2px solid var(--secondary); margin-bottom: 4px; }
.dk-index h2 span { color: var(--text-muted); margin-left: 6px; }
.dk-index-list { list-style: none; }
.dk-index-list li { padding: 14px 0; border-bottom: 1px solid var(--divider); }
.dk-index-list a { font-size: 16.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.dk-index-list a:hover { color: var(--primary); }
.dk-index-list p { margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

/* ---------- hub ---------- */
.dk-hub { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; }
.dk-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding: 52px 0 44px; border-bottom: 1px solid var(--divider); }
.dk-hero h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -.6px; margin-bottom: 14px; }
.dk-search-big { margin-top: 24px; max-width: 640px; border-width: 2px; }
.dk-search-big input { font-size: 17px; padding: 14px 10px; }
.dk-search-big > .material-symbols-outlined { font-size: 24px; padding-left: 14px; }
.dk-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.dk-popular a { color: var(--text); border: 1px solid var(--border); background: #fff; padding: 4px 10px; text-decoration: none; font-weight: 500; }
.dk-popular a:hover { border-color: var(--primary); color: var(--primary); }
.dk-hero-start { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--secondary); padding: 20px 22px; align-self: start; }
.dk-start-t { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.dk-hero-start ol { list-style: none; counter-reset: s; }
.dk-hero-start li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--divider); }
.dk-hero-start li::before { content: counter(s); flex: 0 0 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.dk-hero-start li a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.dk-hero-start li a:hover { color: var(--primary); }
.dk-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--secondary); text-decoration: none; }
.dk-more:hover { color: var(--primary); }
.dk-more::after { content: " \2192"; }
.dk-dir { columns: 2 420px; column-gap: 56px; padding: 40px 0 16px; }
.dk-dir-sec { break-inside: avoid; padding: 0 0 26px 18px; margin-bottom: 26px; border-left: 3px solid var(--primary); }
.dk-dir-sec.blue { border-left-color: var(--secondary); }
.dk-dir-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.dk-dir-sec h2 a { color: var(--text); text-decoration: none; flex: 0 1 auto; }
.dk-dir-sec h2 a:hover { color: var(--primary); }
.dk-dir-sec h2 .material-symbols-outlined { font-size: 22px; color: var(--primary); }
.dk-dir-sec.blue h2 .material-symbols-outlined { color: var(--secondary); }
.dk-dir-sec > p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 4px 0 10px; }
.dk-dir-sec ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.dk-dir-sec li a { display: block; font-size: 14px; line-height: 1.45; padding: 3px 0; color: var(--text); text-decoration: none; }
.dk-dir-sec li a:hover { color: var(--primary); text-decoration: underline; }
.dk-other { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 1px solid var(--border); border-left: 4px solid var(--secondary); background: #fff; padding: 20px 24px; margin-top: 8px; }
.dk-other p { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.dk-btn { background: var(--secondary); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 18px; text-decoration: none; }
.dk-btn:hover { background: var(--secondary-dark); }
.dk-hub .dk-band { max-width: none; }

/* ---------- picture zoom ---------- */
.dk-lightbox { position: fixed; inset: 0; z-index: 5000; background: rgba(12, 18, 26, .88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.dk-lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .dk-cols { grid-template-columns: minmax(0, 1fr); }
  .dk-toc { display: none; }
}
@media (max-width: 960px) {
  .dk-shell { grid-template-columns: minmax(0, 1fr); border: 0; }
  .dk-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); height: 100vh; z-index: 3000; transform: translateX(-100%); transition: transform .2s; }
  .dk-side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .dk-side-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; padding: 8px 14px; font: 600 14px 'Roboto', sans-serif; color: var(--text); cursor: pointer; margin-bottom: 16px; }
  .dk-side-toggle .material-symbols-outlined { font-size: 18px; color: var(--primary); }
  .dk-main { padding: 20px 16px 48px; }
  .dk-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0; }
  .dk-hub { padding: 0 16px 48px; }
}
@media (max-width: 600px) {
  .dk-lede { font-size: 16px; }
  .dk-pager { grid-template-columns: 1fr; }
  .dk-next { grid-column: 1; }
  .dk-dir { columns: 1; }
  .dk-dir-sec ul { grid-template-columns: 1fr; }
  .dk-search kbd { display: none; }
  .dk-article ol > li { padding-left: 38px; }
}
@media print {
  .misac-header, .misac-announcement, .misac-footer, .dk-side, .dk-toc, .dk-pager, .dk-band, .dk-side-toggle, #progress-bar { display: none !important; }
  .dk-shell { display: block; border: 0; }
  .dk-main { padding: 0; }
}

/* the guide's opening paragraph, in place of a "What it is" heading */
.dk-intro { font-size: 17.5px; line-height: 1.7; color: #333; margin-bottom: 8px; }
.dk-intro p:last-child { margin-bottom: 0; }
