/* رهیاب — های‌وبمستر */
.hwks {
	--hwks-accent: #0f6e5a;
	--hwks-accent-2: #0b5546;
	--hwks-bg: #ffffff;
	--hwks-soft: #f4f7f6;
	--hwks-line: #e2e8e6;
	--hwks-text: #1d2725;
	--hwks-muted: #6b7a76;
	direction: rtl;
	text-align: right;
	color: var(--hwks-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.8;
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}
.hwks *, .hwks *::before, .hwks *::after { box-sizing: border-box; }
.hwks-card {
	background: var(--hwks-bg);
	border: 1px solid var(--hwks-line);
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.hwks-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.hwks-title { font-size: 20px; margin: 0 0 2px; line-height: 1.5; }
.hwks-title-sub { font-weight: 400; color: var(--hwks-muted); font-size: 16px; }
.hwks-denied-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.hwks-muted { color: var(--hwks-muted); font-size: 13px; margin: 0; }
.hwks-status {
	white-space: nowrap; font-size: 12px; padding: 3px 10px; border-radius: 99px;
	background: var(--hwks-soft); color: var(--hwks-muted); border: 1px solid var(--hwks-line);
}
.hwks-status.is-busy { color: #8a5a00; background: #fff6e0; border-color: #f3dfaa; }
.hwks-status.is-ok { color: var(--hwks-accent); background: #e6f4f0; border-color: #bfe3d8; }
.hwks-status.is-warn { color: #a33; background: #fdeeee; border-color: #f2caca; }

.hwks-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.hwks-input {
	flex: 1 1 260px; min-width: 0; height: 46px; padding: 0 14px; font: inherit;
	border: 1.5px solid var(--hwks-line); border-radius: 12px; background: #fff; color: inherit;
}
.hwks-input:focus { outline: none; border-color: var(--hwks-accent); box-shadow: 0 0 0 3px rgba(15, 110, 90, .12); }
.hwks-seg { display: inline-flex; background: var(--hwks-soft); border: 1px solid var(--hwks-line); border-radius: 12px; padding: 3px; }
.hwks-seg button {
	border: 0; background: transparent; padding: 0 14px; border-radius: 9px; font: inherit; font-size: 14px; cursor: pointer; color: var(--hwks-muted);
}
.hwks-seg button.is-on { background: var(--hwks-text); color: #fff; }

.hwks-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px;
	border: 1.5px solid var(--hwks-line); border-radius: 12px; background: #fff; color: var(--hwks-text);
	font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.hwks-btn:hover { border-color: var(--hwks-accent); color: var(--hwks-accent); }
.hwks-btn-primary { background: var(--hwks-accent); border-color: var(--hwks-accent); color: #fff; }
.hwks-btn-primary:hover { background: var(--hwks-accent-2); color: #fff; }
.hwks-btn[hidden] { display: none; }

.hwks-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 6px; }
.hwks-opts label, .hwks-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }
.hwks-opts small { color: var(--hwks-muted); font-size: 12px; }
.hwks input[type="checkbox"] { accent-color: var(--hwks-accent); width: 16px; height: 16px; margin: 0; }

.hwks-letters-box { margin-top: 10px; border-top: 1px dashed var(--hwks-line); padding-top: 10px; }
.hwks-letters-box summary { cursor: pointer; font-size: 14px; }
.hwks-letters-actions { margin: 8px 0; display: flex; gap: 12px; }
.hwks-link { border: 0; background: none; padding: 0; color: var(--hwks-accent); cursor: pointer; font: inherit; font-size: 13px; }
.hwks-letters { display: flex; flex-wrap: wrap; gap: 6px; }
.hwks-letter {
	width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--hwks-line); background: #fff;
	color: var(--hwks-muted); cursor: pointer; font: inherit; font-size: 14px; padding: 0;
}
.hwks-letter.is-on { background: #e6f4f0; border-color: #bfe3d8; color: var(--hwks-accent); font-weight: 700; }

.hwks-progress { margin-top: 14px; }
.hwks-progress[hidden], .hwks-results[hidden] { display: none; }
.hwks-bar { height: 8px; background: var(--hwks-soft); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.hwks-bar span { display: block; height: 100%; width: 0; background: var(--hwks-accent); transition: width .25s; }

.hwks-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hwks-toolbar .hwks-btn, .hwks-select { height: 40px; }
.hwks-filter { flex: 1 1 200px; height: 40px; }
.hwks-select { border: 1.5px solid var(--hwks-line); border-radius: 12px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; }
.hwks-spacer { flex: 1 1 0; }
.hwks .hwks-select { width: auto; flex: 0 0 auto; min-width: 160px; margin: 0; }
.hwks .hwks-input { width: auto; margin: 0; }
.hwks .hwks-filter { flex: 1 1 200px; }
.hwks-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.hwks-chip {
	border: 1px solid var(--hwks-line); background: #fff; border-radius: 99px; padding: 3px 12px;
	font: inherit; font-size: 13px; cursor: pointer; color: var(--hwks-text);
}
.hwks-chip.is-on { background: var(--hwks-text); color: #fff; border-color: var(--hwks-text); }
.hwks-chip-n { opacity: .65; font-size: 12px; }
.hwks-summary { margin-bottom: 8px; }

.hwks-table-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--hwks-line); border-radius: 12px; }
.hwks-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.hwks-table th {
	position: sticky; top: 0; background: var(--hwks-soft); text-align: right; font-weight: 600;
	padding: 8px 10px; border-bottom: 1px solid var(--hwks-line); font-size: 13px; color: var(--hwks-muted); z-index: 1;
}
.hwks-table td { padding: 7px 10px; border-bottom: 1px solid var(--hwks-line); vertical-align: middle; }
.hwks-table tr:hover td { background: #fafcfb; }
.hwks-num { color: var(--hwks-muted); font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.hwks-kw { font-weight: 500; min-width: 170px; }
.hwks-tag { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--hwks-soft); white-space: nowrap; }
.hwks-tag-suffix { background: #e6f4f0; color: #0f6e5a; }
.hwks-tag-prefix { background: #eaf0fb; color: #2a59a8; }
.hwks-tag-middle { background: #f4ecfb; color: #7a3fb0; }
.hwks-tag-mods { background: #fff3e0; color: #9a5b00; }
.hwks-tag-deep { background: #fdecef; color: #b03a52; }
.hwks-act { white-space: nowrap; width: 1%; }
.hwks-icon {
	border: 0; background: none; color: var(--hwks-muted); cursor: pointer; font: inherit; font-size: 12px;
	padding: 2px 6px; text-decoration: none; border-radius: 6px;
}
.hwks-icon:hover { color: var(--hwks-accent); background: var(--hwks-soft); }
.hwks-foot { text-align: center; margin-top: 4px; }
.hwks-denied .hwks-card { text-align: center; padding: 32px 20px; }
.hwks-denied p { margin: 0 0 14px; }

@media (max-width: 640px) {
	.hwks-card { padding: 14px; border-radius: 12px; }
	.hwks-head { flex-direction: column; }
	.hwks-row > * { flex: 1 1 100%; }
	.hwks-seg { justify-content: center; }
	.hwks-seg button { flex: 1; height: 40px; }
	.hwks-spacer { display: none; }
	.hwks .hwks-select, .hwks .hwks-filter { flex: 1 1 100%; }
	.hwks-table th:nth-child(4), .hwks-table td:nth-child(4),
	.hwks-table th:nth-child(5), .hwks-table td:nth-child(5) { display: none; }
}

/* ================= مستندات رهیاب ================= */
.hwks-docs { margin-top: 56px; }
.hwks-docs h2, .hwks-docs h3, .hwks-docs h4 { font-family: inherit; color: var(--hwks-text); letter-spacing: 0; }
.hwks-docs p { margin: 0; }
.hwks-docs ul, .hwks-docs ol { margin: 0; padding: 0; list-style: none; }
.hwks-docs li { margin: 0; }

.rd-hero { text-align: center; padding: 40px 24px 28px; border-radius: 24px;
	background: radial-gradient(1200px 300px at 50% -40%, rgba(15,110,90,.12), transparent 70%), var(--hwks-soft);
	border: 1px solid var(--hwks-line); }
.rd-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; color: var(--hwks-accent); background: #e6f4f0;
	border: 1px solid #bfe3d8; border-radius: 99px; padding: 2px 12px; margin-bottom: 12px; }
.rd-h2 { font-size: 28px; line-height: 1.5; margin: 0 0 10px; font-weight: 800; }
.rd-lead { max-width: 720px; margin: 0 auto !important; color: var(--hwks-muted); font-size: 15px; line-height: 2; }
.rd-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px auto 0; max-width: 880px; }
.rd-badge { display: flex; align-items: center; gap: 12px; text-align: right; background: #fff; border: 1px solid var(--hwks-line);
	border-radius: 14px; padding: 12px 14px; }
.rd-badge strong { display: block; font-size: 14px; }
.rd-badge small { display: block; font-size: 12px; color: var(--hwks-muted); line-height: 1.6; }
.rd-badge-ico { flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--hwks-accent); display: grid; place-items: center; }
.rd-badge-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rd-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.rd-toc a { font-size: 13px; color: var(--hwks-text); text-decoration: none; background: #fff; border: 1px solid var(--hwks-line);
	border-radius: 99px; padding: 4px 14px; transition: all .15s; }
.rd-toc a:hover { border-color: var(--hwks-accent); color: var(--hwks-accent); }

.rd-block { padding: 44px 0 0; scroll-margin-top: 90px; }
.rd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rd-head h3 { font-size: 21px; margin: 0; font-weight: 800; line-height: 1.5; }
.rd-num { font-size: 13px; font-weight: 700; color: var(--hwks-accent); background: #e6f4f0; border-radius: 10px; padding: 3px 9px; }
.rd-sub { color: var(--hwks-muted); font-size: 14px; margin: 0 0 18px !important; max-width: 820px; line-height: 2; }

/* گام‌ها */
.rd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px !important; counter-reset: none; }
.rd-steps li { position: relative; background: #fff; border: 1px solid var(--hwks-line); border-radius: 16px; padding: 18px 16px 16px; }
.rd-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: -13px; width: 14px; height: 2px; background: var(--hwks-line); }
.rd-steps strong { display: block; font-size: 15px; margin: 10px 0 4px; }
.rd-steps p { font-size: 13px; color: var(--hwks-muted); line-height: 1.9; }
.rd-step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hwks-text); color: #fff; font-weight: 700; font-size: 14px; }

/* الگوها */
.rd-patterns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rd-pat { background: #fff; border: 1px solid var(--hwks-line); border-radius: 16px; padding: 16px; border-top-width: 4px; }
.rd-pat-suffix { border-top-color: #0f6e5a; } .rd-pat-middle { border-top-color: #7a3fb0; } .rd-pat-prefix { border-top-color: #2a59a8; }
.rd-pat-mods { border-top-color: #c27a00; } .rd-pat-deep { border-top-color: #b03a52; }
.rd-q { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 12px 0 10px; padding: 8px; border-radius: 10px;
	background: var(--hwks-soft); border: 1px dashed var(--hwks-line); font-size: 13px; min-height: 42px; }
.rd-q span { background: #fff; border: 1px solid var(--hwks-line); border-radius: 7px; padding: 1px 7px; }
.rd-q b { border-radius: 7px; padding: 1px 7px; color: #fff; font-weight: 700; }
.rd-pat-suffix .rd-q b { background: #0f6e5a; } .rd-pat-middle .rd-q b { background: #7a3fb0; } .rd-pat-prefix .rd-q b { background: #2a59a8; }
.rd-pat-mods .rd-q b { background: #c27a00; } .rd-pat-deep .rd-q b { background: #b03a52; }
.rd-pat p { font-size: 13px; color: var(--hwks-muted); line-height: 1.9; }
.rd-pat a { color: var(--hwks-accent); text-decoration: none; }
.rd-note { margin-top: 14px; font-size: 13px; color: var(--hwks-muted); background: var(--hwks-soft); border-radius: 12px; padding: 10px 14px; border-right: 3px solid var(--hwks-accent); }

/* جریان داده */
.rd-flow { display: flex; align-items: stretch; gap: 0; margin: 6px 0 18px; }
.rd-node { flex: 1 1 0; text-align: center; background: #fff; border: 1px solid var(--hwks-line); border-radius: 14px; padding: 12px 8px; min-width: 0; }
.rd-node strong { display: block; font-size: 14px; }
.rd-node small { display: block; font-size: 12px; color: var(--hwks-muted); }
.rd-node-k { display: inline-block; font-size: 11px; color: var(--hwks-muted); background: var(--hwks-soft); border-radius: 99px; padding: 0 8px; margin-bottom: 4px; }
.rd-node-g { border-color: #bcd0f5; background: #f3f7ff; } .rd-node-g .rd-node-k { background: #dfe9fc; color: #2a59a8; }
.rd-node-out { border-color: #bfe3d8; background: #f1faf7; } .rd-node-out .rd-node-k { background: #d6efe7; color: var(--hwks-accent); }
.rd-arrow { flex: 0 0 26px; position: relative; }
.rd-arrow::before { content: ""; position: absolute; top: 50%; right: 4px; left: 8px; height: 2px; background: #b9c6c2; }
.rd-arrow::after { content: ""; position: absolute; top: calc(50% - 4px); left: 4px; border: 5px solid transparent; border-right-color: #b9c6c2; border-width: 5px 7px 5px 0; }
.rd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-card { border-radius: 16px; padding: 16px 18px; border: 1px solid var(--hwks-line); background: #fff; }
.rd-card h4 { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.rd-card li { position: relative; padding-right: 26px; font-size: 13.5px; line-height: 1.9; margin-bottom: 4px; }
.rd-card li::before { position: absolute; right: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.rd-card-yes { background: #f6fbf9; border-color: #cfe9e0; }
.rd-card-yes li::before { content: "✓"; background: #d6efe7; color: var(--hwks-accent); }
.rd-card-no { background: #fdf7f7; border-color: #f2dada; }
.rd-card-no li::before { content: "✕"; background: #f8dede; color: #b03a52; }

/* تحقیق عمیق */
.rd-deep { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; margin-top: 12px; }
.rd-tree { background: var(--hwks-soft); border: 1px solid var(--hwks-line); border-radius: 18px; padding: 18px; }
.rd-tree-seed { display: table; margin: 0 auto 14px; background: var(--hwks-text); color: #fff; border-radius: 10px; padding: 4px 14px; font-size: 14px; font-weight: 700; }
.rd-tree-l1 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.rd-tree-col { display: flex; flex-direction: column; gap: 6px; }
.rd-leaf { background: #fff; border: 1px solid var(--hwks-line); border-radius: 9px; padding: 5px 9px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.rd-leaf em { font-style: normal; font-size: 10.5px; border-radius: 99px; padding: 0 7px; white-space: nowrap; }
.rd-leaf-1 { border-color: #bfe3d8; } .rd-leaf-1 em { background: #e6f4f0; color: var(--hwks-accent); }
.rd-leaf-2 { margin-right: 16px; border-color: #f2cdd5; position: relative; } .rd-leaf-2 em { background: #fdecef; color: #b03a52; }
.rd-leaf-2::before { content: ""; position: absolute; right: -11px; top: 50%; width: 10px; height: 1px; background: #d9b5bd; }
.rd-rules { counter-reset: rr; display: flex; flex-direction: column; gap: 10px; }
.rd-rules li { counter-increment: rr; position: relative; padding: 12px 52px 12px 14px; background: #fff; border: 1px solid var(--hwks-line); border-radius: 14px; font-size: 13.5px; line-height: 1.9; color: var(--hwks-muted); }
.rd-rules li strong { color: var(--hwks-text); }
.rd-rules li::before { content: counter(rr); position: absolute; right: 14px; top: 12px; width: 26px; height: 26px; border-radius: 8px; background: #fdecef; color: #b03a52; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.rd-chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rd-chip { font-size: 12.5px; background: #fff; border: 1px dashed #c9d4d1; border-radius: 99px; padding: 3px 12px; color: var(--hwks-muted); }

/* ستون‌ها */
.rd-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.rd-col { background: #fff; border: 1px solid var(--hwks-line); border-radius: 16px; padding: 16px; }
.rd-col-k { display: inline-block; font-size: 13px; font-weight: 700; background: var(--hwks-soft); border: 1px solid var(--hwks-line); border-radius: 8px; padding: 1px 10px; margin-bottom: 10px; }
.rd-col p { font-size: 13px; color: var(--hwks-muted); line-height: 1.95; }
.rd-lv { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #e6f4f0; color: var(--hwks-accent); font-size: 12px; margin-left: 4px; }
.rd-lv-2 { background: #fdecef; color: #b03a52; margin-right: 6px; }

/* خروجی */
.rd-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.rd-mini { background: var(--hwks-soft); border-radius: 16px; padding: 16px; }
.rd-mini strong { display: block; font-size: 14px; margin-bottom: 6px; }
.rd-mini p { font-size: 13px; color: var(--hwks-muted); line-height: 1.9; }

/* پرسش‌ها */
.rd-faq { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rd-faq details { background: #fff; border: 1px solid var(--hwks-line); border-radius: 14px; overflow: hidden; transition: border-color .15s; }
.rd-faq details[open] { border-color: #bfe3d8; }
.rd-faq summary { cursor: pointer; list-style: none; padding: 14px 18px 14px 44px; font-weight: 700; font-size: 14.5px; position: relative; }
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 7px;
	background: var(--hwks-soft); display: grid; place-items: center; font-weight: 400; color: var(--hwks-accent); }
.rd-faq details[open] summary::after { content: "−"; background: #e6f4f0; }
.rd-faq details p { padding: 0 18px 16px; font-size: 13.5px; color: var(--hwks-muted); line-height: 2; }

@media (max-width: 1000px) {
	.rd-patterns { grid-template-columns: repeat(3, 1fr); }
	.rd-cols, .rd-grid4, .rd-steps { grid-template-columns: repeat(2, 1fr); }
	.rd-steps li::after { display: none; }
	.rd-deep { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.hwks-docs { margin-top: 36px; }
	.rd-hero { padding: 28px 16px 20px; border-radius: 18px; }
	.rd-h2 { font-size: 22px; }
	.rd-badges, .rd-two { grid-template-columns: 1fr; }
	.rd-patterns, .rd-cols, .rd-grid4, .rd-steps { grid-template-columns: 1fr; }
	.rd-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 14px; }
	.rd-step-n { grid-row: span 2; }
	.rd-steps strong { margin: 2px 0 2px; }
	.rd-flow { flex-direction: column; }
	.rd-arrow { flex-basis: 22px; }
	.rd-arrow::before { top: 3px; bottom: 7px; right: 50%; left: auto; width: 2px; height: auto; }
	.rd-arrow::after { top: auto; bottom: 2px; left: calc(50% - 4px); border-width: 7px 5px 0 5px; border-color: #b9c6c2 transparent transparent; }
	.rd-tree-l1 { grid-template-columns: 1fr; }
	.rd-block { padding-top: 36px; }
}
.hwks-foot a { color: var(--hwks-accent); text-decoration: none; margin-right: 6px; }
