/* ===== Beginner's guide (/guide and /guide/<slug>) ===== */
.guide-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); margin-bottom: 12px; }
.guide-lead { color: var(--text-2); max-width: 680px; margin: 0 auto 24px; font-size: 1.05rem; }

/* Path at a glance */
.guide-path {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	counter-reset: gp;
}
.guide-path li { counter-increment: gp; }
.gp-item {
	position: relative;
	height: 100%;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 18px 16px;
	background: var(--card);
	border: 1px solid var(--surface-border);
	border-radius: 16px;
	color: inherit;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gp-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(108, 71, 255, .3); color: inherit; }
.gp-item::before {
	content: counter(gp, persian);
	position: absolute;
	top: -10px; inset-inline-end: 12px;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--gradient);
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.gp-icon {
	width: 40px; height: 40px;
	flex-shrink: 0;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: var(--primary-soft);
	color: var(--primary-ink);
	font-size: 1.15rem;
}
.gp-text { display: flex; flex-direction: column; min-width: 0; }
.gp-text strong { font-size: .95rem; line-height: 1.5; }
.gp-text small { color: var(--muted); font-size: .8rem; line-height: 1.7; }
@media (max-width: 991.98px) { .guide-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .guide-path { grid-template-columns: minmax(0, 1fr); } }

.guide-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 28px auto 0;
	max-width: 760px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--note-bg);
	border: 1px solid var(--note-border);
	color: var(--note-text);
	font-size: .9rem;
}
.guide-note i { font-size: 1.1rem; margin-top: 2px; }

/* Layout: sticky table of contents + topics */
.guide-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	padding-top: 40px;
}
.guide-toc { position: sticky; top: calc(var(--nav-h, 68px) + 20px); align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.guide-toc h2 { font-size: .85rem; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.guide-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.guide-toc a {
	display: block;
	padding: 7px 12px;
	border-radius: 10px;
	color: var(--text-2);
	text-decoration: none;
	font-size: .9rem;
	line-height: 1.6;
	border-inline-start: 3px solid transparent;
	transition: background .15s ease, color .15s ease;
}
.guide-toc a:hover { background: var(--primary-soft); color: var(--primary-ink); }
.guide-toc a[aria-current="true"] { background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; border-inline-start-color: var(--primary); }
@media (max-width: 991.98px) {
	.guide-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.guide-toc { position: static; max-height: none; overflow: visible; }
	.guide-toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
	.guide-toc a { background: var(--surface); border-inline-start: 0; padding: 5px 12px; font-size: .84rem; }
}

/* One topic */
.guide-topic { padding: 8px 0 52px; margin-bottom: 52px; border-bottom: 1px solid var(--surface-border); scroll-margin-top: calc(var(--nav-h, 68px) + 16px); }
.guide-topic:last-child { border-bottom: 0; }
.guide-topic > p { line-height: 2; }
.gt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gt-head h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); margin: 0; }
.gt-icon {
	width: 48px; height: 48px;
	flex-shrink: 0;
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--gradient);
	color: #fff;
	font-size: 1.3rem;
	box-shadow: 0 10px 22px -10px rgba(168, 85, 247, .7);
}
.gt-summary {
	background: var(--primary-soft);
	border-radius: 16px;
	padding: 16px 18px;
	font-weight: 600;
	color: var(--text-2);
}
.gt-tag {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	padding: 1px 9px;
	border-radius: 999px;
	margin-inline-end: 8px;
	vertical-align: 2px;
}
.gt-points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 22px 0;
}
.gt-point {
	padding: 14px 16px;
	border: 1px solid var(--surface-border);
	border-radius: 14px;
	background: var(--card);
	border-inline-start: 4px solid var(--primary-light);
}
.gt-point strong { display: block; margin-bottom: 2px; }
.gt-point span { color: var(--muted); font-size: .92rem; }
@media (max-width: 575.98px) { .gt-points { grid-template-columns: minmax(0, 1fr); } }

.gt-fk {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 20px 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: linear-gradient(90deg, var(--primary-soft), var(--primary-soft));
	border: 1px solid var(--surface-border);
}
.gt-fk img { flex-shrink: 0; margin-top: 2px; }
.gt-fk p { margin: 0; font-size: .95rem; }

/* "Read more" boxes — collapsed by default (native <details>, no script) */
.gt-more-list { display: grid; gap: 10px; margin: 20px 0; }
.gt-more {
	background: var(--card);
	border: 1px solid var(--surface-border);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.gt-more[open] { border-color: rgba(108, 71, 255, .35); box-shadow: var(--shadow-sm); }
.gt-more summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	font-weight: 700;
}
.gt-more summary::-webkit-details-marker { display: none; }
.gt-more summary span { flex: 1; }
.gt-more summary small { color: var(--primary); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.gt-more[open] summary small { visibility: hidden; }
.gm-plus {
	width: 28px; height: 28px;
	flex-shrink: 0;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--primary-soft);
	color: var(--primary-ink);
	transition: transform .2s ease;
}
.gt-more[open] .gm-plus { transform: rotate(45deg); }
.gm-body { padding: 0 16px 16px 16px; padding-inline-start: 54px; color: var(--text-2); line-height: 2; }
.gm-body p:last-child, .gm-body ul:last-child { margin-bottom: 0; }
.gm-body ul { padding-inline-start: 1.1rem; }
.gm-body li { margin-bottom: 4px; }
@media (max-width: 575.98px) { .gm-body { padding-inline-start: 16px; } .gt-more summary small { display: none; } }

.gt-jump { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; margin-bottom: 8px; }
.gt-article {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px dashed rgba(108, 71, 255, .45);
	background: var(--surface);
	color: var(--primary-ink);
	font-weight: 800;
	text-decoration: none;
	transition: background .15s ease;
}
.gt-article span { display: flex; gap: 10px; align-items: center; }
.gt-article:hover { background: var(--primary-soft); color: var(--primary-ink); }
.gt-sub { font-size: 1.05rem; margin: 26px 0 12px; }

/* Resources: price searches + official sites */
.guide-resources { display: grid; gap: 10px; margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
.gr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gr-label { font-size: .85rem; font-weight: 700; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.gr-chip {
	font-size: .82rem;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--surface-border);
	color: var(--primary-ink);
	text-decoration: none;
}
.gr-chip:hover { border-color: var(--primary-light); }
.gr-link { font-size: .88rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }

/* FAQ boxes */
.guide-faq { display: grid; gap: 8px; }
.gq { border: 1px solid var(--surface-border); border-radius: 12px; background: var(--card); }
.gq summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 12px 14px; font-weight: 700; font-size: .95rem; }
.gq summary::-webkit-details-marker { display: none; }
.gq summary span { flex: 1; }
.gq summary > .bi-question-circle { color: var(--primary); }
.gq-arrow { color: var(--muted); transition: transform .2s ease; }
.gq[open] .gq-arrow { transform: rotate(180deg); }
.gq p { margin: 0; padding: 0 14px 14px; padding-inline-start: 40px; color: var(--text-2); line-height: 1.95; }

/* Embedded domain search */
.guide-tool { margin: 20px 0; padding: 18px; border-radius: 16px; border: 1px solid var(--surface-border); background: var(--surface); }

/* Compare table */
.guide-table-wrap { overflow-x: auto; border: 1px solid var(--surface-border); border-radius: 16px; }
.guide-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.guide-table th, .guide-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--surface-border); vertical-align: top; }
.guide-table thead th { background: var(--surface); font-weight: 800; }
.guide-table thead th:nth-child(3) { background: var(--primary-soft); color: var(--primary-ink); }
.guide-table tbody td:first-child { font-weight: 700; white-space: nowrap; }
.guide-table tbody td:nth-child(3) { background: var(--surface); font-weight: 600; }
.guide-table tbody tr:last-child td { border-bottom: 0; }

/* Glossary */
.guide-glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.gg { border: 1px solid var(--surface-border); border-radius: 12px; background: var(--card); }
.gg summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; }
.gg summary::-webkit-details-marker { display: none; }
.gg summary span { color: var(--muted); font-size: .8rem; }
.gg[open] { border-color: rgba(108, 71, 255, .35); }
.gg p { margin: 0; padding: 0 14px 12px; color: var(--text-2); font-size: .92rem; }
@media (max-width: 575.98px) { .guide-glossary { grid-template-columns: minmax(0, 1fr); } }

/* Article cards */
.guide-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ga-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--surface-border);
	border-radius: 18px;
	background: var(--card);
	color: inherit;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.ga-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.ga-card small { color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ga-icon {
	width: 42px; height: 42px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: var(--primary-soft);
	color: var(--primary-ink);
	font-size: 1.2rem;
	margin-bottom: 4px;
}
.ga-card-back { background: var(--surface); }

/* ===== Article page ===== */
.guide-crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; margin-bottom: 16px; color: var(--muted); }
.guide-crumbs a { text-decoration: none; font-weight: 700; }
.ga-hero-icon {
	width: 64px; height: 64px;
	margin: 0 auto 14px;
	border-radius: 20px;
	display: flex; align-items: center; justify-content: center;
	background: var(--gradient);
	color: #fff;
	font-size: 1.8rem;
	box-shadow: 0 14px 30px -12px rgba(168, 85, 247, .7);
}
.guide-article { max-width: 860px; }
.ga-title { font-size: 1.35rem; margin: 44px 0 8px; }
.ga-needs { padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--surface-border); box-shadow: var(--shadow-sm); }
.ga-needs h2 { font-size: 1.1rem; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.ga-needs h2 i { color: var(--primary); }
.ga-needs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ga-needs li { display: flex; gap: 10px; align-items: flex-start; }
.ga-needs li i { color: var(--success); font-size: 1.1rem; margin-top: 2px; }

.ga-steps { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.ga-steps::before { content: ""; position: absolute; top: 10px; bottom: 30px; inset-inline-start: 19px; width: 2px; background: linear-gradient(var(--primary-light), #f9a8d4); }
.ga-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.ga-num {
	position: relative;
	z-index: 1;
	width: 40px; height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--gradient);
	color: #fff;
	font-weight: 900;
	box-shadow: 0 0 0 5px var(--body-bg);
}
.ga-steps h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.ga-steps p { color: var(--text-2); margin: 0; line-height: 1.95; }

.ga-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 40px;
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--gradient-dark);
	color: #fff;
}
.ga-help > i { font-size: 1.8rem; color: #c4b5fd; }
.ga-help div { flex: 1; min-width: 200px; }
.ga-help p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .92rem; }
