/* Doctecq Help — clean, calm docs styling (matches Doctecq brand #2E5077) */
:root {
  --ink: #14233b; --muted: #64748b; --brand: #2E5077; --brand-2: #1e3a5f;
  --bg: #f5f7fb; --card: #ffffff; --line: #e6eaf2; --ok: #16a34a; --err: #dc2626;
  --r: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.65 'Inter', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }

.topbar { background: var(--brand); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.brand span { font-weight: 400; opacity: .85; }
.topbar nav a { color: #dbe6f5; margin-left: 18px; font-size: 13.5px; }
.topbar nav a:hover { color: #fff; text-decoration: none; }

.hero { text-align: center; padding: 46px 0 10px; }
.hero h1 { font-size: 28px; margin: 0 0 18px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.hero-search input { flex: 1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
        padding: 22px 24px; margin: 18px 0; box-shadow: 0 2px 10px rgba(20,35,59,.04); }
.card.narrow { max-width: 420px; margin: 40px auto; }
.card h1 { margin-top: 0; font-size: 24px; }
.card h2 { margin-top: 0; font-size: 19px; }

input[type=text], input[type=search], input[type=email], input[type=password],
input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46,80,119,.12); }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 13.5px; }
label input, label select, label textarea { margin-top: 6px; font-weight: 400; }
label.check { font-weight: 400; } label.check input { width: auto; margin-right: 8px; }

button, .btn { display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button:hover, .btn:hover { background: var(--brand-2); color: #fff; text-decoration: none; }
button.ghost, .btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--line); }
button.primary { background: var(--ok); }
button.small { padding: 5px 10px; font-size: 12.5px; }
.row-actions { display: flex; gap: 10px; margin-top: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline { display: inline; } .inline-search { display: flex; gap: 8px; margin: 12px 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.grid3 .span3 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } }

.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.section-card { display: flex; flex-direction: column; gap: 2px; padding: 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.section-card:hover { border-color: var(--brand); text-decoration: none; }

table.list { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
table.list th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 10px; }
table.list td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.thumb { max-height: 44px; border-radius: 6px; border: 1px solid var(--line); }

.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700;
  background: #eef3fb; color: var(--brand); vertical-align: middle; }
.tag.pub { background: #dcfce7; color: var(--ok); }
.tag.draft { background: #f1f5f9; color: var(--muted); }
.tag.internal { background: #fee2e2; color: var(--err); }

.flash { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.flash.ok { background: #dcfce7; color: #14532d; }
.flash.err { background: #fee2e2; color: #7f1d1d; }

.muted { color: var(--muted); } .small { font-size: 13px; }
.result { margin: 8px 0; } .crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px; }

.article-body h2 { font-size: 20px; margin: 26px 0 8px; }
.article-body h3 { font-size: 17px; margin: 22px 0 6px; }
.article-body img { max-width: 100%; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.article-body code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.article-body pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body .note { border-left: 4px solid var(--brand); background: #eef3fb; padding: 10px 14px;
  border-radius: 0 8px 8px 0; margin: 12px 0; }
.article-body ol li, .article-body ul li { margin: 6px 0; }

.shots { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.shots h3 { margin: 0 0 10px; font-size: 17px; }
.shots-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.shots-tab { background: #fff; color: var(--brand); border: 1.5px solid var(--line); padding: 6px 16px; border-radius: 8px; font-size: 13px; }
.shots-tab.active { background: var(--brand); color: #fff; }
.shots-pane { display: none; }
.shots-pane.active { display: block; }
.shots figure { margin: 0 0 16px; }
.shots figure img { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; }
.shots-pane[data-dev="android"] figure img { max-width: 320px; }
.shots figcaption { color: var(--muted); font-size: 13px; margin-top: 4px; }

.foot { padding: 26px 18px 40px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* AI assistant widget */
#dq-ask-btn { position: fixed; right: 20px; bottom: 20px; z-index: 9998; border-radius: 30px;
  padding: 12px 22px; box-shadow: 0 6px 20px rgba(46,80,119,.35); font-weight: 700; }
#dq-ask-panel { position: fixed; right: 20px; bottom: 20px; z-index: 9999; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 40px); background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(20,35,59,.25); flex-direction: column; overflow: hidden; }
#dq-ask-head { background: var(--brand); color: #fff; padding: 12px 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; }
#dq-ask-close { background: transparent; padding: 0 6px; font-size: 20px; line-height: 1; }
#dq-ask-close:hover { background: transparent; }
#dq-ask-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dq-msg { padding: 9px 13px; border-radius: 12px; font-size: 14px; line-height: 1.5; max-width: 88%; }
.dq-bot { background: #eef3fb; color: var(--ink); align-self: flex-start; }
.dq-user { background: var(--brand); color: #fff; align-self: flex-end; }
.dq-src { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.dq-src a { font-size: 13px; font-weight: 600; }
.dq-steps { margin: 8px 0 4px 18px; padding: 0; font-size: 13.5px; line-height: 1.5; }
.dq-steps li { margin: 4px 0; }
.dq-fig { margin: 8px 0; }
.dq-fig img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; display: block; }
.dq-fig figcaption { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dq-esc { margin-top: 8px; font-size: 13px; }
#dq-ask-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); flex-shrink: 0; }
#dq-ask-form input { flex: 1; }
#dq-ask-form button { padding: 10px 16px; }
