/* Certificates, invites, ad-free passes (2.5.0) */
.gr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 8px 0 28px; }
.gr-card { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.gr-card h2 { margin: 2px 0 8px; font-size: 1.2rem; }
.gr-card ul { margin: 0 0 12px; padding-left: 1.1em; font-size: .92rem; }
.gr-card > p:last-child { margin-top: auto; margin-bottom: 0; }
.gr-plan.is-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gr-tag { position: absolute; top: -11px; right: 16px; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; }
.gr-price { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.gr-pay { display: grid; gap: 8px; margin-top: auto; }
.gr-ok { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.gr-box { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.gr-box h2 { margin-top: 0; }
.gr-share { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.gr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 6px 0 24px; }
.gr-steps > div { padding: 16px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.gr-steps b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.gr-steps h3 { margin: 8px 0 4px; font-size: 1rem; }
.gr-steps p { margin: 0; font-size: .92rem; }
.gr-msgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.gr-msg { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; min-width: 0; }
.gr-msg h3 { margin: 0 0 6px; font-size: .95rem; }
.gr-msg p { font-size: .92rem; }
.gr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gr-cta { margin: 24px 0; padding: 20px; border-radius: 14px; background: var(--accent-soft); text-align: center; }
.gr-name { max-width: 520px; }

/* the certificate itself: light paper in both themes, A4 landscape when printed */
.cert-doc { margin: 18px 0; padding: 12px; background: #fdfbf6; color: #1b2430; border-radius: 6px; box-shadow: 0 6px 30px rgba(0, 0, 0, .18); }
.cert-in { border: 3px double #b8892b; padding: clamp(18px, 5vw, 48px) clamp(14px, 4vw, 40px); text-align: center; }
.cert-site { margin: 0; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f2600c; }
.cert-k { margin: 6px 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.3rem, 4vw, 2.1rem); }
.cert-to { margin: 4px 0; color: #5b6878; font-style: italic; }
.cert-name { margin: 6px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.6rem, 6vw, 2.8rem); font-weight: 700; overflow-wrap: anywhere; border-bottom: 1px solid #d9cba8; display: inline-block; padding: 0 18px 4px; }
.cert-track { margin: 6px 0; font-size: clamp(1.1rem, 3.4vw, 1.5rem); font-weight: 750; }
.cert-res { margin: 6px 0 22px; color: #3d4a5a; }
.cert-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; color: #5b6878; }
.cert-foot b { color: #1b2430; font-size: 1rem; }
.cert-seal { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: radial-gradient(circle, #e7b74e, #b8892b); color: #fff; font-size: 1.8rem; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .45); }
.cert-ver { margin: 16px 0 0; font-size: .78rem; color: #5b6878; overflow-wrap: anywhere; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .type-grow .page-head, .type-grow .crumbs, .type-grow .flash-msg { display: none !important; }
  .cert-doc { box-shadow: none; margin: 0; padding: 0; }
  .cert-in { min-height: 170mm; display: flex; flex-direction: column; justify-content: center; }
}
