/* /konkur (konkur.html, konkur.js) and the konkur guide (HTML 399, .rk-guide) */
.rk { --rk-math: #2f5bd3; --rk-bio: #17885c; --rk-human: #b86e0c; --rk-art: #c2417a; --rk-lang: #1f8f8d; --rk-uni: #16205b; }

/* hero: the promise on one side, the countdown on the other */
.rk-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 32px; margin: 0 0 36px; padding: 40px 44px;
  border-radius: 26px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #2a3a92 0%, #16205b 55%, #0d1440 100%); box-shadow: 0 24px 60px rgba(13, 20, 64, .28); }
.rk-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.rk-hero::after { content: ""; position: absolute; width: 380px; height: 380px; inset-inline-end: -120px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 88, 63, .45), transparent 65%); pointer-events: none; }
.rk-hero-text { position: relative; z-index: 1; }
.rk-kicker { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.rk-hero h1 { margin: 12px 0 10px; color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.35; }
.rk-hero p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .82); line-height: 2; }
.rk-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.rk-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 14px; white-space: nowrap; background: #e5583f; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px rgba(229, 88, 63, .35); transition: transform .15s, box-shadow .15s; }
.rk-btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(229, 88, 63, .45); }
.rk-btn.rk-ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.rk-btn.rk-ghost:hover { background: rgba(255, 255, 255, .18); }
.rk-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.rk-stats li { display: flex; flex-direction: column; }
.rk-stats b { font-size: 1.45rem; line-height: 1.3; }
.rk-stats span { color: rgba(255, 255, 255, .7); font-size: .82rem; }

/* countdown */
.rk-count { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 1; }
.rk-count-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rk-count-ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 6; }
.rk-count-ring .rk-count-arc { stroke: #f7b267; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.2s ease; }
.rk-count-body { position: relative; width: 74%; text-align: center; }
.rk-count-body p { margin: 0; }
.rk-count-k { color: rgba(255, 255, 255, .7); font-size: .85rem; }
.rk-count-n { font-size: 1rem; }
.rk-count-n b { display: block; font-size: 3.4rem; line-height: 1.1; color: #fff; }
.rk-count-hm { color: #f7b267; font-size: .9rem; font-weight: 700; }
.rk-count-none { margin: 4px 0 !important; font-size: 1.15rem; font-weight: 700; color: #fff; }
.rk-count-s { margin-top: 6px !important; color: rgba(255, 255, 255, .65); font-size: .78rem; line-height: 1.8; }
.rk-wait { color: rgba(255, 255, 255, .6); }

/* the groups */
.rk-groups { margin: 0 0 40px; scroll-margin-top: 90px; }
.rk-groups > h2 { margin: 0 0 18px; font-size: 1.35rem; }
.rk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.rk-card { --c: var(--rk-uni); position: relative; display: flex; flex-direction: column; padding: 22px 22px 18px; border: 1px solid var(--rm-rule, #e6e3da); border-radius: 20px;
  background: #fff; box-shadow: var(--rm-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.rk-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.rk-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22, 32, 91, .06), 0 18px 40px rgba(22, 32, 91, .12); }
.rk-math { --c: var(--rk-math); } .rk-bio { --c: var(--rk-bio); } .rk-human { --c: var(--rk-human); } .rk-art { --c: var(--rk-art); } .rk-lang { --c: var(--rk-lang); }
.rk-card header { display: flex; align-items: flex-start; gap: 14px; }
.rk-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.rk-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-icon svg circle { fill: currentColor; stroke: none; }
.rk-card h3 { margin: 2px 0 2px; font-size: 1.15rem; }
.rk-card header p { margin: 0; color: var(--rm-muted, #5d6475); font-size: .86rem; line-height: 1.8; }
.rk-subjects { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.rk-subjects li { padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 9%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font-size: .8rem; font-weight: 700; }
.rk-date { margin: 14px 0 0; font-size: .85rem; color: var(--rm-muted, #5d6475); }
.rk-date b { color: var(--rm-ink, #16205b); }
.rk-links { display: grid; gap: 2px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--rm-rule, #e6e3da); }
.rk-links a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--rm-ink, #16205b); font-size: .9rem; text-decoration: none; }
.rk-links a:hover { background: color-mix(in srgb, var(--c) 8%, #fff); color: var(--c); }
.rk-links i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--rm-soft, #f3f1ea); color: var(--c); font-style: normal; font-size: .85rem; }
.rk-links small { margin-inline-start: auto; padding: 0 8px; border-radius: 999px; background: var(--rm-soft, #f3f1ea); color: var(--rm-muted, #5d6475); font-size: .75rem; }

/* the guide (HTML module): numbered steps on a line */
.rk-guide .rk-steps { counter-reset: rk; margin: 22px 0; padding: 0; list-style: none; }
.rk-guide .rk-steps li { counter-increment: rk; position: relative; padding: 0 0 22px; padding-inline-start: 58px; }
.rk-guide .rk-steps li::before { content: counter(rk, persian); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--rm-ink, #16205b); color: #fff; font-weight: 700; }
.rk-guide .rk-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--rm-rule, #e6e3da); }
.rk-guide .rk-steps b { display: block; color: var(--rm-ink, #16205b); font-size: 1.05rem; }
.rk-guide .rk-steps span { display: block; margin-top: 2px; line-height: 2; }

@media (max-width: 900px) {
  .rk-hero { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; border-radius: 20px; }
  .rk-count { width: 240px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .rk-hero { padding: 24px 18px; }
  .rk-acts .rk-btn { flex: 1 1 100%; justify-content: center; }
  .rk-stats { gap: 10px 20px; }
  .rk-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rk-card, .rk-btn, .rk-count-ring .rk-count-arc { transition: none; } }
.rk-info { margin: 12px 0 0; padding: 6px 10px; border-radius: 10px; background: var(--rm-soft, #f3f1ea); color: var(--rm-text, #2f3445); font-size: .82rem; line-height: 1.8; }
.rk-est { margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: #fff3d6; color: #8a5a00; font-size: .72rem; font-style: normal; font-weight: 700; }
.rk-count-est { display: inline-block; margin-top: 8px !important; padding: 1px 10px; border-radius: 999px; background: rgba(247, 178, 103, .18); color: #f7b267; font-size: .72rem; font-weight: 700; }
