/* روز جهانی دیابت (tpl-diabetes-day.php). Theme tokens only, flat colours (no gradients: owner rule). Prefix .zt-.
   Loaded only on that page (inc/diabetes-day.php). */

.zt-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.zt-desc { margin-top: 12px; color: var(--c-muted); font-size: 1.02rem; }
.zt-note { margin-top: 18px; color: var(--c-muted); font-size: .9rem; }

/* ---------------- hero: flat blue, calendar pages ---------------- */
.zt-hero { background: var(--c-brand); color: rgba(255, 255, 255, .86); padding-block: clamp(28px, 4vw, 44px) clamp(56px, 8vw, 96px); overflow: hidden; }
.zt-hero-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.zt-hero .zk-crumbs, .zt-hero .zk-crumbs a, .zt-hero .zk-crumbs .breadcrumb_last { color: rgba(255, 255, 255, .78); }
.zt-hero .zk-crumbs a:hover { color: #fff; }
.zt-eyebrow { margin-top: 22px; background: rgba(255, 255, 255, .14); color: #fff; }
.zt-eyebrow .dot { background: var(--c-green); }
.zt-h1 { margin-top: 16px; color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.4; font-weight: 800; }
.zt-lead { margin-top: 16px; max-width: 62ch; font-size: 1.04rem; line-height: 2.05; }
.zt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.zt-ticket-box { justify-self: center; width: min(360px, 100%); display: grid; gap: 14px; animation: zt-rise .8s var(--ease) both; }
.zt-ticket { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; background: #fff; color: var(--c-navy); box-shadow: 0 26px 44px -26px rgba(0, 0, 0, .45); }
.zt-ticket > div { display: grid; justify-items: center; gap: 2px; padding: 22px 12px 20px; text-align: center; }
.zt-ticket-fa { border-inline-end: 2px dashed var(--c-brand-100); }
/* the two notches of a ticket on the dashed line */
.zt-ticket::before, .zt-ticket::after { content: ""; position: absolute; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--c-brand); }
.zt-ticket::before { top: -11px; }
.zt-ticket::after { bottom: -11px; }
.zt-ticket-k { font-size: .78rem; font-weight: 700; color: var(--c-green-700); }
.zt-ticket b { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; line-height: 1.5; color: var(--c-navy); }
.zt-ticket-en b { color: var(--c-brand); }
.zt-ticket-s { font-size: .82rem; color: var(--c-muted); }
.zt-ticket-week { display: grid; gap: 8px; justify-items: center; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .12); color: #fff; }
.zt-ticket-week:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.zt-ticket-wk { font-size: .88rem; font-weight: 600; text-align: center; }
.zt-ticket-days { display: flex; gap: 6px; }
.zt-ticket-days i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-style: normal; font-size: .82rem; font-weight: 700; animation: zt-day 7s steps(1) infinite; }
.zt-ticket-days i:nth-child(2) { animation-delay: 1s; } .zt-ticket-days i:nth-child(3) { animation-delay: 2s; } .zt-ticket-days i:nth-child(4) { animation-delay: 3s; }
.zt-ticket-days i:nth-child(5) { animation-delay: 4s; } .zt-ticket-days i:nth-child(6) { animation-delay: 5s; } .zt-ticket-days i:nth-child(7) { animation-delay: 6s; }
@keyframes zt-day { 0% { background: var(--c-green); color: var(--c-navy); } 14.3% { background: rgba(255, 255, 255, .16); color: #fff; } }
@keyframes zt-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- videos ---------------- */
.zt-vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.zt-vids .zk-vid { margin: 0; max-width: none; }
.zt-vids .zk-vid-box { position: relative; }
.zt-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%;
	background: #fff; color: var(--c-brand); box-shadow: 0 0 0 10px rgba(255, 255, 255, .28), 0 18px 34px -14px rgba(0, 0, 0, .5); transition: transform .25s var(--ease), box-shadow .25s; }
.zt-play:hover, .zt-play:focus-visible { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 255, 255, .24), 0 18px 34px -14px rgba(0, 0, 0, .5); }
.zt-play svg { width: 32px; height: 32px; fill: currentColor; margin-inline-start: 5px; }
.zk-vid-box.is-on .zt-play { display: none; }

/* ---------------- seven days ---------------- */
.zt-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.zt-day {
	position: relative; display: grid; gap: 2px; justify-items: start; padding: 14px 14px 12px; border: 0; border-radius: 18px; text-align: start;
	background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.zt-day:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--c-brand-300); }
.zt-day-n { font-size: .8rem; color: var(--c-muted); font-weight: 600; }
.zt-day-t { font-weight: 700; font-size: .95rem; line-height: 1.6; }
.zt-day-ok { position: absolute; top: 10px; inset-inline-end: 10px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-green); color: var(--c-navy); }
.zt-day-ok .zk-ico { width: 15px; height: 15px; }
.zt-day.is-done .zt-day-ok { display: grid; }
.zt-day.is-on { background: var(--c-brand); color: #fff; box-shadow: none; }
.zt-day.is-on .zt-day-n { color: rgba(255, 255, 255, .78); }
.zt-day:focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; }

.zt-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 40px; margin-top: 18px; padding: clamp(22px, 3vw, 36px); border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-brand-100); }
.zt-panel[hidden] { display: none; }
.zt-panel-k { color: var(--c-green-700); font-weight: 700; font-size: .88rem; }
.zt-panel h3 { margin-top: 6px; color: var(--c-ink); font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.6; }
.zt-panel p { margin-top: 10px; }
.zt-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.zt-panel-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--c-mint); color: var(--c-ink); }
.zt-panel-list .zk-ico { flex: none; width: 20px; height: 20px; margin-top: 5px; color: var(--c-green-700); }
.zt-done { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 18px; border-radius: 999px; background: var(--c-soft); color: var(--c-ink); font-weight: 600; cursor: pointer; }
.zt-done input { width: 20px; height: 20px; accent-color: var(--c-green-600); }
.zt-done:has(input:checked) { background: var(--c-green-50); color: var(--c-green-700); }
.zt-week-sum { margin-top: 16px; color: var(--c-muted); }
.zt-week-sum b { color: var(--c-brand); font-size: 1.2rem; }

/* ---------------- touch test ---------------- */
.zt-touch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.zt-steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.zt-steps li { counter-increment: s; position: relative; padding-inline-start: 46px; color: var(--c-text); line-height: 1.95; }
.zt-steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: 2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c-green); color: var(--c-navy); font-weight: 800; }
.zt-steps b { color: var(--c-ink); }
.zt-touch { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(20px, 3vw, 30px); border-radius: 26px; background: #fff; box-shadow: var(--sh); }
.zt-feet { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zt-foot { display: grid; gap: 10px; align-content: start; }
.zt-foot > b { color: var(--c-ink); font-size: 1.02rem; }
.zt-toe { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: var(--c-soft); }
.zt-toe span { font-weight: 600; color: var(--c-ink); font-size: .92rem; }
.zt-toe button { padding: 6px 10px; border: 0; border-radius: 10px; background: #fff; color: var(--c-text); font-size: .86rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--c-line); transition: background .2s, color .2s; }
.zt-toe button[data-v="1"][aria-pressed="true"] { background: var(--c-green); color: var(--c-navy); box-shadow: none; }
.zt-toe button[data-v="0"][aria-pressed="true"] { background: #b6462b; color: #fff; box-shadow: none; }
.zt-touch-out { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--c-brand-50); }
.zt-touch-out b { display: block; color: var(--c-ink); font-size: 1.05rem; }
.zt-touch-out p { margin-top: 6px; font-size: .94rem; }
.zt-touch-out[data-level="risk"] { background: #fbeee9; }
.zt-touch-out[data-level="risk"] b { color: #9a3412; }
.zt-touch-out[data-level="ok"] { background: var(--c-green-50); }
.zt-touch-out[data-level="ok"] b { color: var(--c-green-700); }
.zt-reset { margin-top: 12px; padding: 4px 0; border: 0; background: none; color: var(--c-brand-700); font-weight: 600; font-size: .9rem; }

/* ---------------- risk groups: rising steps ---------------- */
.zt-risk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.zt-risk li { display: grid; gap: 8px; align-content: start; padding: 22px 20px; border-radius: 22px; color: var(--c-ink); }
.zt-risk .r0 { min-height: 230px; background: var(--c-green-50); }
.zt-risk .r1 { min-height: 270px; background: var(--c-brand-50); }
.zt-risk .r2 { min-height: 310px; background: var(--c-brand-100); }
.zt-risk .r3 { min-height: 350px; background: var(--c-navy); color: rgba(255, 255, 255, .82); }
.zt-risk-g { font-size: .85rem; font-weight: 700; color: var(--c-brand-700); }
.zt-risk .r3 .zt-risk-g { color: var(--c-green); }
.zt-risk b { font-size: 1.15rem; }
.zt-risk .r3 b { color: #fff; }
.zt-risk p { font-size: .94rem; line-height: 1.9; }
.zt-risk-f { align-self: end; margin-top: 6px; justify-self: start; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--c-ink); font-weight: 700; font-size: .88rem; }

/* ---------------- numbers ---------------- */
.zt-num-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.zt-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; max-width: 360px; }
.zt-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.zt-dots i.on { background: var(--c-green); }
.zt-dots-cap { margin-top: 18px; max-width: 360px; }
.zt-dots-cap b { color: #fff; }
.zt-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.zt-facts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.zt-facts b { color: var(--c-green); font-size: 1.55rem; font-weight: 800; line-height: 1.4; }

/* ---------------- first day of a wound ---------------- */
.zt-day1 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.zt-day1-c { padding: 24px 22px; border-radius: 24px; background: var(--c-soft); }
.zt-day1-c.is-red { background: #fbeee9; }
.zt-day1-k { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--c-brand); color: #fff; font-weight: 700; font-size: .9rem; }
.zt-day1-c.is-red .zt-day1-k { background: #b6462b; }
.zt-day1-c ul { margin: 14px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--c-ink); }
.zt-day1-c li::marker { color: var(--c-brand); }
.zt-day1-c.is-red li::marker { color: #b6462b; }

/* ---------------- chat bubbles ---------------- */
.zt-chat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.zt-msg { display: grid; gap: 10px; }
.zt-msg p { position: relative; margin: 0; padding: 14px 18px; line-height: 1.9; }
.zt-msg span { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 2px; }
.zt-msg-q { justify-self: start; max-width: 88%; border-radius: 20px 20px 20px 6px; background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.zt-msg-q span { color: #9a3412; }
.zt-msg-a { justify-self: end; max-width: 92%; border-radius: 20px 20px 6px 20px; background: var(--c-brand); color: #fff; }
.zt-msg-a span { color: #d9edc8; }

/* ---------------- why 14 November ---------------- */
.zt-why { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 60px); }
.zt-why-text p { margin: 0 0 14px; font-size: 1.02rem; line-height: 2.05; }

/* ---------------- clinic ---------------- */
.zt-clinic { background: var(--c-brand); color: rgba(255, 255, 255, .86); }
.zt-clinic .zk-title { color: #fff; margin-top: 0; }
.zt-clinic .zk-title .hl { color: var(--c-green); }
.zt-clinic-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(26px, 5vw, 60px); align-items: center; }
.zt-clinic p { margin-top: 14px; line-height: 2.05; }
.zt-clinic-facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zt-clinic-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .92rem; }
.zt-clinic-facts .zk-ico { width: 18px; height: 18px; color: var(--c-green); }
.zt-clinic-actions { display: grid; gap: 12px; }
.zt-clinic-actions .zk-btn { width: 100%; }

.zt-more { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zt-more a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--c-soft); color: var(--c-ink); font-weight: 600; font-size: .92rem; }
.zt-more a:hover { background: var(--c-brand-50); color: var(--c-brand-700); }

.zt-faq { max-width: 900px; }
.zt-faq .zk-qa-a { padding-inline: 20px 62px; }

.zt-src ol { margin: 10px 0 0; padding-inline-start: 22px; color: var(--c-muted); font-size: .88rem; display: grid; gap: 4px; }
.zt-src [lang="en"] { display: inline-block; text-align: left; }
.zt-src-h { font-size: 1.1rem; color: var(--c-ink); }

/* ---------------- tablet / phone ---------------- */
@media (max-width: 1024px) {
	.zt-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.zt-risk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zt-risk li { min-height: 0 !important; }
}
@media (max-width: 760px) {
	.zt-hero-in, .zt-touch-grid, .zt-num-grid, .zt-why, .zt-clinic-grid, .zt-panel, .zt-chat, .zt-day1 { grid-template-columns: minmax(0, 1fr); }
	.zt-ticket-box { width: 100%; }
	.zt-vids { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.zt-vids .zk-vid { scroll-snap-align: center; }
	.zt-dots { max-width: 260px; margin-inline: auto; gap: 6px; }
	.zt-dots-cap { margin-inline: auto; max-width: 300px; text-align: center; }
	.zt-days { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.zt-day { scroll-snap-align: start; }
	.zt-touch { position: static; }
	.zt-risk { grid-template-columns: minmax(0, 1fr); }
	.zt-facts li { grid-template-columns: 1fr; gap: 2px; }
	.zt-actions .zk-btn { width: 100%; }
	.zt-msg-q, .zt-msg-a { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.zt-ticket-box, .zt-ticket-days i { animation: none; }
}
