/* Download centre */
.dl-toolbar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin: 28px 0 8px; }
.dl-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-tabs button { border: 1px solid #dbe6f0; background: #fff; color: #27415f; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.dl-tabs button i { color: #0aa9c9; margin-right: 4px; }
.dl-tabs button:hover { border-color: #0aa9c9; }
.dl-tabs button.is-active { background: linear-gradient(120deg, #0aa9c9, #0f6fc2); border-color: transparent; color: #fff; }
.dl-tabs button.is-active i { color: #fff; }
#dlSearch { flex: 1 1 240px; max-width: 320px; padding: 11px 16px; border: 1px solid #dbe6f0; border-radius: 999px; font-size: 14px; outline: none; }
#dlSearch:focus { border-color: #0aa9c9; box-shadow: 0 0 0 3px rgba(10, 169, 201, .15); }

.dl-group { margin-top: 38px; scroll-margin-top: 100px; }
.dl-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #e8f0f6; }
.dl-group-head h3 { margin: 0; font-size: 22px; }
.dl-group-head p { margin: 2px 0 0; color: #5b6b7f; font-size: 14px; }
.dl-group-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, #0aa9c9, #0f6fc2); flex: none; }
.dl-lock { border: 1px solid #dbe6f0; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.dl-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid #e3ecf4; border-radius: 16px; color: #0f2a4d; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dl-card:hover { transform: translateY(-3px); border-color: #0aa9c9; box-shadow: 0 14px 34px rgba(15, 42, 77, .12); color: #0f2a4d; }
.dl-ext { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e9f7fb; color: #0aa9c9; font-size: 20px; flex: none; }
.dl-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl-info b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.dl-info small { color: #6b7c90; margin-top: 3px; }
.dl-go { color: #0aa9c9; }
.dl-empty, .dl-none { color: #6b7c90; font-style: italic; margin: 8px 0; }
.dl-none { text-align: center; margin-top: 30px; }

.dl-unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px; background: #f6fafc; border: 1px dashed #b9d3e3; border-radius: 16px; }
.dl-unlock > i { color: #0aa9c9; font-size: 20px; }
.dl-unlock input { flex: 1 1 200px; max-width: 300px; padding: 11px 14px; border: 1px solid #dbe6f0; border-radius: 10px; }
.dl-msg { color: #d33; font-size: 14px; }

@media (max-width: 575px) { .dl-grid { grid-template-columns: 1fr; } #dlSearch { max-width: none; } }

/* Visual (brochure) cards */
.dl-card.dl-visual { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.dl-card.dl-visual:hover { transform: translateY(-3px); }
.dl-thumb { display: block; height: 300px; overflow: hidden; background: #eef4f9; border-bottom: 1px solid #e3ecf4; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s; }
.dl-visual:hover .dl-thumb img { transform: scale(1.04); }
.dl-visual .dl-info { padding: 14px 18px 4px; }
.dl-visual .dl-info em { font-style: normal; color: #5b6b7f; font-size: 13px; margin-top: 4px; line-height: 1.4; }
.dl-actions { display: flex; gap: 10px; padding: 12px 18px 18px; }
.dl-actions a { flex: 1; text-align: center; padding: 9px 10px; border: 1px solid #dbe6f0; border-radius: 10px; font-size: 14px; font-weight: 600; color: #27415f; text-decoration: none; }
.dl-actions a:hover { border-color: #0aa9c9; }
.dl-actions a.is-primary { background: linear-gradient(120deg, #0aa9c9, #0f6fc2); color: #fff; border-color: transparent; }
.dl-grid:has(.dl-visual) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Guide pop-up reader */
.dl-guide { cursor: pointer; text-align: left; width: 100%; font: inherit; }
.gd-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10,25,45,.6); }
.gd-modal.is-open { display: flex; }
.gd-box { background: #fff; width: min(920px, 100%); max-height: 90vh; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.gd-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e3ecf4; }
.gd-head h3 { margin: 0; font-size: 20px; flex: 1; }
.gd-head button { border: 0; background: #eef4f9; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.gd-body { padding: 20px 24px 28px; overflow-y: auto; line-height: 1.65; color: #2b3a4d; }
.gd-body h2 { font-size: 22px; margin: 26px 0 10px; color: #0f6fc2; }
.gd-body h3 { font-size: 18px; margin: 20px 0 8px; }
.gd-body h4, .gd-body h5 { font-size: 16px; margin: 16px 0 6px; }
.gd-body ul { padding-left: 20px; margin: 0 0 12px; }
.gd-body code { background: #eef4f9; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.gd-body pre { background: #f4f7fa; padding: 12px; border-radius: 8px; overflow-x: auto; }
.gd-tw { overflow-x: auto; margin: 0 0 14px; }
.gd-body table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.gd-body th, .gd-body td { border: 1px solid #dbe6f0; padding: 7px 10px; text-align: left; vertical-align: top; }
.gd-body th { background: #f1f7fb; }
[dir=rtl] .gd-body th, [dir=rtl] .gd-body td { text-align: right; }
@media (max-width: 575px) { .gd-body { padding: 16px; } }

/* Guide cards (v4): vertical layout, grouped */
.dl-grid:has(.dl-guide) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dl-sub { grid-column: 1 / -1; margin: 18px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f6fc2; display: flex; align-items: center; gap: 12px; }
.dl-sub::after { content: ""; flex: 1; height: 1px; background: #dbe7f1; }
.dl-sub:first-child { margin-top: 4px; }
.dl-card.dl-guide { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; min-height: 100%; }
.dl-guide .dl-ext { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #0aa9c9, #0f6fc2); color: #fff; }
.dl-guide .dl-info { width: 100%; }
.dl-guide .dl-info b { font-size: 16px; }
.dl-guide .dl-info small { font-size: 13.5px; line-height: 1.5; margin-top: 6px; }
.dl-read { margin-top: 12px; font-size: 13px; font-weight: 600; color: #0aa9c9; display: inline-flex; align-items: center; gap: 6px; }
.dl-guide:hover .dl-read i { transform: translateX(3px); }
.dl-read i { transition: transform .2s; }
[dir=rtl] .dl-guide { text-align: right; }
[dir=rtl] .dl-read i { transform: scaleX(-1); }

.gd-body ul.gd-check { list-style: none; padding-left: 0; }
.gd-body ul.gd-check li { margin: 0 0 6px; }
.gd-body ul.gd-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.gd-body ul.gd-check input { margin-top: 5px; width: 17px; height: 17px; flex: none; accent-color: #0f6fc2; }
@media print { .gd-modal { position: static; background: none; padding: 0; } .gd-box { max-height: none; box-shadow: none; } }

.gd-body ul.gd-check li { margin-bottom: 12px; }
.gd-body ul.gd-check .gd-desc { display: block; font-size: 13px; color: #5b6b7f; line-height: 1.5; margin-top: 2px; font-weight: 400; }

/* checklist layout v2 */
.gd-body ul.gd-check label { text-transform: none; font-weight: 400; letter-spacing: 0; font-size: 15px; margin: 0; }
.gd-body ul.gd-check .gd-txt { display: block; flex: 1; min-width: 0; }
.gd-body ul.gd-check li.gd-doc { border: 1px solid #dbe6f0; border-radius: 10px; padding: 10px 14px; margin: 0 0 10px; background: #fff; }
.gd-body ul.gd-check li.gd-doc:hover { background: #f7fbfe; }
.gd-body ul.gd-check .gd-head2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.gd-body ul.gd-check .gd-id { background: #e6f1fb; color: #0f6fc2; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.gd-body ul.gd-check .gd-name { font-weight: 700; color: #12263f; }
.gd-body ul.gd-check .gd-desc { display: block; margin: 0; }
.gd-body ul.gd-check .gd-desc span { display: block; font-size: 13px; line-height: 1.5; color: #5b6b7f; }
.gd-body ul.gd-check .gd-desc span:first-child { color: #2b3a4d; }

/* v6: counts, back-to-top, modal tools, checklist progress, print */
.dl-count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: #e6f1fb; color: #0f6fc2; font-size: 12px; font-weight: 700; text-align: center; }
.dl-tabs button.is-active .dl-count { background: rgba(255,255,255,.25); color: #fff; }
.dl-up { position: fixed; right: 20px; bottom: 80px; z-index: 900; width: 44px; height: 44px; border: 0; border-radius: 50%; background: linear-gradient(120deg,#0aa9c9,#0f6fc2); color: #fff; box-shadow: 0 6px 18px rgba(15,111,194,.35); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s; }
.dl-up.is-show { opacity: 1; visibility: visible; }
.gd-head #gdLink, .gd-head #gdPrint { font-size: 14px; }
.gd-head button.is-done { background: #d9f5e5; color: #17803d; }
.gd-box:focus { outline: none; }
.gd-progress { margin: 14px 0 18px; padding: 12px 14px; border: 1px solid #dbe7f1; border-radius: 12px; background: #f6fafe; }
.gd-pbar { height: 8px; border-radius: 999px; background: #e1ebf4; overflow: hidden; }
.gd-pbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#0aa9c9,#0f6fc2); transition: width .25s; }
.gd-ptxt { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: #27415f; }
.gd-ptxt button { border: 0; background: none; color: #0f6fc2; font-size: 13px; cursor: pointer; text-decoration: underline; }
@media print {
  body.gd-printing > *:not(.gd-modal) { display: none !important; }
  body.gd-printing .gd-modal { position: static !important; display: block !important; background: none; overflow: visible; }
  body.gd-printing .gd-box { max-height: none !important; box-shadow: none; width: 100%; max-width: none; }
  body.gd-printing .gd-body { overflow: visible !important; max-height: none !important; }
  body.gd-printing .gd-head button, body.gd-printing .gd-ptxt button { display: none !important; }
}
