/* CorelDRAW product theme: loaded after the copied legacy styles. */
:root {
  --cdr-ink: #171329;
  --cdr-purple: #6b35e8;
  --cdr-blue: #3478f6;
  --cdr-cyan: #25b9dc;
  --cdr-soft: #f4f5fb;
  --cdr-line: #e2e4ee;
  --cdr-muted: #667085;
}

body { background: var(--cdr-soft); color: #394052; line-height: 1.82; }
.container { max-width: 1200px; padding-left: 28px; padding-right: 28px; }

.cdr-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(23, 19, 41, .98);
  border-bottom: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 10px 28px rgba(23,19,41,.2);
}
.cdr-header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.cdr-brand { display: flex; align-items: center; flex: 0 0 auto; }
.cdr-brand img { display: block; width: 210px; height: 32px; object-fit: contain; }
.cdr-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; min-width: 0; }
.cdr-nav a { padding: 11px 13px; border-radius: 7px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; white-space: nowrap; }
.cdr-nav a:hover, .cdr-nav a.active { color: #fff; background: linear-gradient(135deg, var(--cdr-purple), var(--cdr-blue)); text-decoration: none; }
.cdr-header-cta, .cta-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 8px; color: #fff !important; background: linear-gradient(135deg, var(--cdr-purple), var(--cdr-blue)); font-weight: 800; white-space: nowrap; box-shadow: 0 10px 22px rgba(75,48,214,.25); }
.cdr-header-cta:hover, .cta-primary:hover { color: #fff; transform: translateY(-1px); text-decoration: none; }

.cdr-hero { color: #fff; background: linear-gradient(135deg, #18132e 0%, #2b1b68 52%, #4b25ad 100%); overflow: hidden; }
.cdr-hero-grid { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 420px); align-items: center; gap: 66px; padding-top: 72px; padding-bottom: 72px; }
.cdr-hero-copy { min-width: 0; }
.cdr-hero-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.cdr-hero-kicker img { width: 45px; height: 45px; border-radius: 10px; background: #fff; object-fit: contain; }
.cdr-hero h1 { max-width: 690px; margin: 0 0 8px; color: #fff; font-size: 44px; line-height: 1.24; font-weight: 900; letter-spacing: 0; }
.cdr-update { margin-bottom: 22px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.6; }
.cdr-hero .hero-sub { max-width: 680px; margin: 0 0 26px; color: rgba(255,255,255,.87); font-size: 17px; line-height: 1.85; }
.cdr-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.cdr-hero .cta-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 8px; color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); font-weight: 800; }
.cdr-hero .cta-secondary:hover { color: var(--cdr-ink); background: #fff; text-decoration: none; }
.cdr-hero .cta-meta { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.75; }
.cdr-hero-visual { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cdr-hero-visual img { display: block; width: 100%; max-height: 340px; object-fit: cover; object-position: right center; border: 8px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 28px 70px rgba(9,4,31,.42); }
.cdr-hero-visual .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 0; }

.meta-bar { display: none !important; }
.section { padding: 52px 0; }
.t1-layout { max-width: none; margin: 0; }
.card, .entity-card, .download-panel, .content-card, .sidebar-card { border: 1px solid var(--cdr-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(31, 28, 66, .07); }
.card:hover { box-shadow: 0 18px 40px rgba(31,28,66,.13); }
.section-title, h2, .main-content h2 { color: var(--cdr-ink); line-height: 1.32; }
.main-content p, .main-content li, p { line-height: 1.82; }
.main-content h2 { margin-top: 40px; margin-bottom: 18px; }
.main-content h3 { margin-top: 28px; line-height: 1.4; }

.cdr-longform-section { padding: 44px 0 64px; }
.cdr-longform-grid { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 32px; align-items: start; }
.cdr-toc { position: sticky; top: 98px; padding: 22px 24px; background: #fff; border: 1px solid var(--cdr-line); border-radius: 12px; box-shadow: 0 12px 28px rgba(31,28,66,.06); }
.cdr-toc h3 { margin: 0 0 12px; color: var(--cdr-muted); font-size: 14px; line-height: 1.4; }
.cdr-toc ul { list-style: none; margin: 0; padding: 0; }
.cdr-toc li { margin: 0; }
.cdr-toc a { display: block; padding: 8px 0; color: #4c5366; line-height: 1.65; }
.cdr-toc a:hover { color: var(--cdr-purple); text-decoration: none; }
.cdr-article { min-width: 0; }
.cdr-article, .cdr-article * { overflow-wrap: anywhere; }
.cdr-article table { display: block; max-width: 100%; overflow-x: auto; }
.cdr-article .compact-download-row { max-width: 100%; min-width: 0; }
.cdr-article .compact-dl-btn { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.cdr-article .compact-dl-btn span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.cdr-article > .section { padding: 0; }
.cdr-article .container { max-width: none; padding: 0; }
.cdr-article .main-content { max-width: none; }

.footer, .cdr-footer { background: #171329; color: rgba(255,255,255,.72); }
.cdr-footer { padding: 52px 0 0; }
.cdr-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.cdr-footer .footer-col h4 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.cdr-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.cdr-footer .footer-col li { margin: 8px 0; }
.cdr-footer a { color: rgba(255,255,255,.68); }
.cdr-footer a:hover { color: #fff; text-decoration: none; }
.cdr-footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 38px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.7; }
.cdr-footer-bottom a { color: rgba(255,255,255,.55); }

@media (max-width: 980px) {
  .cdr-header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .cdr-nav { order: 3; justify-content: flex-start; overflow-x: auto; width: 100%; }
  .cdr-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .cdr-hero-visual img { max-height: 420px; }
  .cdr-longform-grid { grid-template-columns: 1fr; }
  .cdr-toc { position: static; }
  .cdr-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .cdr-brand img { width: 170px; height: auto; }
  .cdr-header-cta { padding: 0 14px; }
  .cdr-hero-grid { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
  .cdr-hero h1 { font-size: 34px; }
  .cdr-hero .hero-sub { font-size: 16px; }
  .cdr-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .cdr-footer-bottom { display: block; }
  .cdr-footer-bottom > * { display: block; margin-top: 6px; }
  .cdr-article .compact-download-row { display: block; }
  .cdr-article .compact-dl-btn { width: 100%; }
  .cdr-article .compact-badges { display: block; max-width: 100%; white-space: normal; }
}
