/* کارگاه رایگان پرنده‌نگری (/kb/workshop, kb/workshop-page.php); loaded after birds.css, uses its tokens */
/* our own font, Vazirmatn Soft (the site font since the theme change; the same file pb-base.css loads), set here too so the
   workshop pages and the certificate (screen and PDF) use it whatever stylesheet the browser has cached */
@font-face { font-family: "Vazirmatn Soft"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/images/pb/fonts/VazirmatnSoft-Variable.woff2?v=1.1.1) format("woff2"); }
.bk.kx, .bk.kx h1, .bk.kx h2, .bk.kx h3, .bk.kx button, .bk.kx input { font-family: "Vazirmatn Soft", Vazirmatn, Tahoma, sans-serif; }
.bk .ws-hero .chip { align-self: flex-start; }
.bk .ws-actions { gap: 10px; }
/* the theme's a.btn:link/:visited would paint secondary links green */
.bk .ws-actions a.btn:not(.primary):link, .bk .ws-actions a.btn:not(.primary):visited { background: var(--surface); color: var(--ink); }
.bk .ws-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk .ws-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; height: 100%; box-sizing: border-box; color: var(--ink); }
.bk .ws-card > b { font-size: 17px; line-height: 1.8; }
.bk .ws-card:hover > b { color: var(--link); }
.bk .ws-tags { gap: 8px; }
.bk .ws-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bk .ws-list li { border-top: 1px solid var(--line); }
.bk .ws-list li:first-child { border-top: 0; }
.bk .ws-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; color: var(--ink); }
.bk .ws-row b { display: block; font-size: 15px; line-height: 1.8; }
.bk .ws-row .hint { display: block; }
.bk .ws-row[aria-current] b { color: var(--link); }
.bk .ws-num { width: 32px; height: 32px; border-radius: 50%; background: var(--chip); color: var(--link); display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px; flex-shrink: 0; }
.bk .ws-tick { display: none; color: var(--link); font-size: 20px; }
.bk .ws-list li.done .ws-tick { display: inline-flex; }
.bk .ws-list li.done .ws-num { background: var(--link); color: #fff; }
.bk .sidecard .h2 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.bk .sidecard .ws-row { min-height: 48px; padding: 4px 0; }
.bk .sidecard .ws-row b { font-size: 14px; font-weight: 600; }
.bk .sidecard .ws-row .hint { display: none; }
.bk .ws-task { border-inline-start: 4px solid var(--link); }
.bk .ws-task .h2 .fa { margin-inline-end: 8px; color: var(--link); }
.bk .ws-task .ul { font-size: 15px; list-style-type: persian; }
.bk .ws-chips { gap: 8px; }
.bk .ws-chips .chip { min-height: 44px; padding: 0 14px; font-size: 13px; }
.bk .ws-done[aria-pressed="true"] { background: var(--link); border-color: var(--link); color: #fff; }
.bk .ws-sum + .ws-sum { border-top: 1px solid var(--line); padding-top: 4px; }
.bk .ws-sum .h3 a { color: var(--ink); }
.bk .ws-kit { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 14px; line-height: 2; }
.bk .ws-kit li::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 3px; margin-inline-end: 8px; vertical-align: -2px; }
.bk .ws-notes { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.bk .ws-notes th { text-align: start; font-weight: 600; padding: 6px 4px; overflow-wrap: anywhere; border: 1px solid var(--line); background: var(--bg); }
.bk .ws-notes td { height: 34px; border: 1px solid var(--line); }
/* گواهی پایان کارگاه (/kb/certificate/<code>); «دریافت PDF» prints it on one A4 landscape page (its @page rule is inline on that page) */
/* «بازچینی»: the green column at the end side (left in RTL) carries the brand, the QR to this page, the code and the site;
   the body reads from the start edge: kind, workshop, «پرنده‌بان گواهی می‌کند که», the name, one sentence, three numbers, then the issuer and date on signature lines */
.bk .ws-cert { max-width: 980px; margin: 0 auto; padding: 0; overflow: hidden; box-sizing: border-box; display: grid;
	grid-template-columns: minmax(0, 1fr) 210px; grid-template-areas: "body side"; border: 2px solid var(--link); }
.bk .ws-cert-side { grid-area: side; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 32px 14px 18px; background: var(--link); color: #fff; text-align: center; }
.bk .ws-cert-side img { width: 96px; height: 96px; margin-bottom: 6px; filter: brightness(0) invert(1); }
.bk .ws-cert-side b { font-size: 20px; }
.bk .ws-cert-side span { font-size: 13px; opacity: .85; }
.bk .ws-cert-qr { display: block; margin-top: auto; line-height: 0; border-radius: 8px; overflow: hidden; }
.bk .ws-cert-qr svg { display: block; width: 116px; height: 116px; }
.bk .ws-cert-side .ws-cert-scan { margin-top: 6px; max-width: 150px; font-size: 12px; line-height: 1.7; }
.bk .ws-cert-side .ws-cert-code { margin-top: 4px; font-size: 13px; opacity: 1; }
.bk .ws-cert-code bdi { font-weight: 700; letter-spacing: .4px; }
.bk .ws-cert-side .ws-cert-site { margin-top: 12px; padding-top: 10px; width: 75%; border-top: 1px solid rgba(255,255,255,.25); font-size: 15px; font-weight: 700; opacity: 1; }
.bk .ws-cert-body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; margin: 10px; padding: 34px 40px 18px; border: 1px solid var(--line); text-align: start; }
.bk .ws-cert-kind { margin: 0; font-size: 15px; font-weight: 700; color: var(--link); }
.bk .ws-cert-sub { margin: 0; font-size: 14px; color: var(--muted); }
.bk .ws-cert-lead { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.bk .ws-cert-name { margin: 0; font-size: 46px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.bk .ws-cert-text { margin: 4px 0 0; max-width: 34em; font-size: 16px; line-height: 2; }
.bk .ws-cert-stats { display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 22px; }
.bk .ws-cert-stats div { padding: 0 22px; border-inline-start: 1px solid var(--line); }
.bk .ws-cert-stats div:first-child { padding-inline-start: 0; border: 0; }
.bk .ws-cert-stats b { display: block; font-size: 28px; line-height: 1.3; color: var(--link); }
.bk .ws-cert-stats b small { font-size: 14px; font-weight: 600; }
.bk .ws-cert-stats span { font-size: 12px; color: var(--muted); }
/* signature lines: a rule, then the issuer or the date, then its label */
.bk .ws-cert-sign { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: auto; padding-top: 28px; }
.bk .ws-cert-sign p { margin: 0; min-width: 150px; font-size: 12px; color: var(--muted); text-align: center; }
.bk .ws-cert-sign b { display: block; padding-top: 6px; border-top: 1.5px solid var(--ink); font-size: 15px; color: var(--ink); }
.bk .ws-cert-actions { justify-content: center; max-width: 860px; margin: 16px auto 0; text-align: center; }
.bk .ws-cert-form { max-width: 860px; margin: 16px auto 0; box-sizing: border-box; }
.bk .ws-cert-form input[type="text"] { flex: 1 1 220px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
/* the canvas design (brand/design/certificate/canvas-a.html ۱) at its exact proportions: the card keeps A4 landscape and every
   size is a share of its width (canvas px / 11.23 = cqw), so screen and paper match the canvas. Phones keep the stacked px layout. */
@supports (container-type: inline-size) {
	@media print, (min-width: 761px) {
		.bk .ws-cert { container-type: inline-size; width: min(980px, calc(100vw - 32px)); aspect-ratio: 1123 / 794; grid-template-columns: minmax(0, 1fr) 23.15%; border-width: 3px; background: #fffdf8; line-height: 1.8; }
		.bk .ws-cert-side { gap: 0; padding: 3.92cqw 1.42cqw 2.32cqw; }
		.bk .ws-cert-side img { width: 10.69cqw; height: 10.69cqw; margin-bottom: 0.53cqw; }
		.bk .ws-cert-side b { font-size: 2.49cqw; line-height: 1.5; }
		.bk .ws-cert-side span { font-size: 1.42cqw; }
		.bk .ws-cert-qr { border-radius: 0.89cqw; }
		.bk .ws-cert-qr svg { width: 13.36cqw; height: 13.36cqw; }
		.bk .ws-cert-side .ws-cert-scan { margin-top: 0.53cqw; max-width: none; font-size: 1.25cqw; line-height: 1.8; }
		.bk .ws-cert-side .ws-cert-code { margin-top: 0; font-size: 1.34cqw; }
		.bk .ws-cert-side .ws-cert-site { margin-top: 1.60cqw; padding-top: 1.25cqw; width: 70%; font-size: 1.69cqw; }
		.bk .ws-cert-body { margin: 1.42cqw; padding: 4.99cqw 5.70cqw 2.67cqw; border-width: 1.5px; }
		.bk .ws-cert-kind { font-size: 1.78cqw; }
		.bk .ws-cert-sub { margin-top: 0.18cqw; font-size: 1.60cqw; }
		.bk .ws-cert-lead { margin-top: 2.32cqw; font-size: 1.60cqw; }
		.bk .ws-cert-name { font-size: 6.95cqw; line-height: 1.4; }
		.bk .ws-cert-text { margin-top: 0.53cqw; max-width: 56.99cqw; font-size: 1.96cqw; line-height: 1.8; }
		.bk .ws-cert-stats { gap: 0; margin-top: 3.03cqw; }
		.bk .ws-cert-stats div { padding: 0 3.03cqw; }
		.bk .ws-cert-stats b { font-size: 3.56cqw; line-height: 1.2; }
		.bk .ws-cert-stats b small { font-size: 1.78cqw; }
		.bk .ws-cert-stats span { font-size: 1.42cqw; }
		.bk .ws-cert-sign { gap: 5.34cqw; padding-top: 2.14cqw; }
		.bk .ws-cert-sign p { min-width: 15.14cqw; font-size: 1.42cqw; }
		.bk .ws-cert-sign b { padding-top: 0.53cqw; font-size: 1.69cqw; }
	}
}
/* lesson video: our own MP4, free for everyone; links to the Aparat and YouTube copies under it */
.bk .ws-video { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.bk .ws-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.bk .ws-video figcaption { display: contents; }
/* under the video: downloads, the same video elsewhere and the podcast, one compact card of labelled groups */
.bk .ws-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bk .ws-video .ws-links { margin: 0; }
.bk .ws-note { flex-basis: 100%; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bk .ws-note .fa { color: var(--link); }
.bk .ws-lg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bk .ws-lg-h { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--muted); }
.bk .ws-links a.ws-chip, .bk .ws-links a.ws-chip:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.bk .ws-links a.ws-chip .fa { color: var(--link); transition: color .15s; }
.bk .ws-links a.ws-chip small { font-size: 12px; color: var(--muted); }
.bk .ws-links a.ws-chip:hover { background: var(--link); color: #fff; }
.bk .ws-links a.ws-chip:hover .fa, .bk .ws-links a.ws-chip:hover small { color: #fff; }
.bk .ws-links a.ws-chip:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (pointer: coarse) { .bk .ws-links a.ws-chip { min-height: 44px; } }
/* phones: each group one row, its label at the start, so the card stays short */
@media screen and (max-width: 760px) {
	.bk .ws-links { gap: 8px; }
	.bk .ws-lg { flex-basis: 100%; position: relative; min-height: 44px; padding-inline-start: 6.4em; box-sizing: border-box; }
	.bk .ws-lg-h { position: absolute; inset-inline-start: 0; top: 0; line-height: 44px; }
}
@media print { .bk .ws-links { display: none; } }
.bk .ws-transcript { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bk .ws-transcript summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; font-weight: 600; }
.bk .ws-transcript p { margin: 0; padding: 0 14px 10px; font-size: 15px; line-height: 2; }
.bk .ws-transcript summary + p { padding-top: 4px; }
/* the final exam (/kb/workshop/<ws>/exam) */
.bk .ws-exam-row { border-top: 1px solid var(--line); margin-top: 4px; }
.bk .ws-exam-row .ws-num { background: var(--link); color: #fff; }
.bk .ws-q { border: 1px solid var(--line); margin: 0 0 12px; min-width: 0; }
.bk .ws-q legend { float: inline-start; width: 100%; margin: 0 0 8px; padding: 0; line-height: 1.9; }
.bk .ws-opt { clear: both; display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; line-height: 1.9; }
.bk .ws-opt input { flex-shrink: 0; width: 18px; height: 18px; margin: 6px 0 0; accent-color: var(--link); }
.bk .ws-opt:has(input:checked) { border-color: var(--link); background: var(--chip); }
.bk .ws-opt:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
@media screen and (max-width: 760px) {
	.bk .ws-cards, .bk .ws-kit { grid-template-columns: minmax(0, 1fr); }
	.bk .ws-pn { grid-template-columns: minmax(0, 1fr); }
	.bk .ws-cert { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "body"; }
	.bk .ws-cert-side { flex-direction: row; padding: 12px 16px; gap: 10px; }
	.bk .ws-cert-side img { width: 40px; height: 40px; margin: 0; }
	.bk .ws-cert-qr, .bk .ws-cert-side .ws-cert-scan { display: none; }
	.bk .ws-cert-side .ws-cert-site { margin: 0 auto 0 0; padding: 0; }
	.bk .ws-cert-body { padding: 22px 16px 14px; }
	.bk .ws-cert-name { font-size: 30px; }
	.bk .ws-cert-side .ws-cert-code { display: none; }
}
@media print {
	/* everything that neither holds the printable card nor sits inside it, at every depth (the forum header shares #container with the page) */
	body:has(.ws-print) *:not(:has(.ws-print)):not(.ws-print):not(.ws-print *), .bk .md-crumbs, .bk .ws-noprint, .bk .note, .bk .ws-video, .bk script { display: none !important; }
	body:has(.ws-print) :has(> .ws-print), body:has(.ws-print) :has(.ws-print) { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
	.bk .ws-print { border: 0; padding: 0; }
	.bk .ws-sum { break-inside: avoid; }
	/* the tallest A4-shaped card that fits the printable area (186mm high with the 12mm margins) */
	.bk .ws-print.ws-cert { width: 263mm; max-width: none; margin: 0 auto; padding: 0; border: 3px solid var(--link);
		break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
