:root {
  --reading-ink: #102846;
  --reading-blue: #1d4f78;
  --reading-green: #1f765d;
  --reading-orange: #d95817;
  --reading-line: #d8e2ea;
  --reading-paper: #ffffff;
  --reading-soft: #f4f8fb;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] main,
body[data-program-id="dr12-afir"] main {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin-inline: auto;
  box-sizing: border-box;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] .long-form-layout__content,
body[data-program-id="dr12-afir"] .long-form-layout__content,
body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel,
body[data-program-id="dr12-afir"] article.panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel,
body[data-program-id="dr12-afir"] article.panel {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1rem, 2.4vw, 2rem);
  overflow: clip;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > *,
body[data-program-id="dr12-afir"] article.panel > *,
body[data-program-id="modernizare-microintreprinderi-ne-2"] .answer-readiness,
body[data-program-id="dr12-afir"] .aeo-question-set,
body[data-program-id="modernizare-microintreprinderi-ne-2"] .aeo-question-set {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-inline: 0;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section:not(.answer-readiness):not(.program-factual-status):not(.program-reading-overview),
body[data-program-id="dr12-afir"] article.panel > section:not(.program-factual-status):not(.program-reading-overview):not(.aeo-question-set) {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--reading-line);
  border-radius: 24px;
  background: var(--reading-paper);
  box-shadow: 0 16px 42px rgba(16, 40, 70, .06);
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section:nth-of-type(even):not(.program-factual-status):not(.program-reading-overview),
body[data-program-id="dr12-afir"] article.panel > section:nth-of-type(even):not(.program-factual-status):not(.program-reading-overview) {
  background: linear-gradient(145deg, #fff 0%, var(--reading-soft) 100%);
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section p,
body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section li,
body[data-program-id="dr12-afir"] article.panel > section p,
body[data-program-id="dr12-afir"] article.panel > section li {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.72;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section > p,
body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section > ul,
body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section > ol,
body[data-program-id="dr12-afir"] article.panel > section > p,
body[data-program-id="dr12-afir"] article.panel > section > ul,
body[data-program-id="dr12-afir"] article.panel > section > ol {
  max-width: 82ch;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > .intro,
body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > .note {
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.3rem;
  border-left: 4px solid var(--reading-orange);
  border-radius: 0 16px 16px 0;
  background: #fff8f2;
  font-size: 1.05rem;
  line-height: 1.68;
}

.program-reading-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 330px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 203, 107, .26), transparent 31%),
    linear-gradient(135deg, #102846, #173d62 64%, #1f765d);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(16, 40, 70, .18);
}

.program-reading-overview__copy { min-width: 0; }
.program-reading-overview__kicker { display: block; margin-bottom: .65rem; color: #ffd58c; font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.program-reading-overview h2 { max-width: 16ch; margin: 0; color: #fff; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.08; }
.program-reading-overview p { max-width: 60ch !important; margin: 1rem 0 0; color: rgba(255,255,255,.82); }
.program-reading-overview__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.program-reading-overview__facts li { padding: .85rem; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.08); font-size: .88rem !important; line-height: 1.45 !important; }
.program-reading-overview__facts strong { display: block; color: #fff; }
.program-reading-overview__facts span { color: rgba(255,255,255,.7); }
.program-reading-overview__scene { width: 100%; min-width: 0; filter: drop-shadow(0 20px 28px rgba(0,0,0,.18)); }
.program-reading-overview__route { stroke-dasharray: 10 12; animation: reading-route 6s linear infinite; }
.program-reading-overview__node { transform-box: fill-box; transform-origin: center; animation: reading-pulse 2.4s ease-in-out infinite; }
.program-reading-overview__node:nth-of-type(2) { animation-delay: .55s; }
.program-reading-overview__node:nth-of-type(3) { animation-delay: 1.1s; }
.program-reading-overview__sheet { animation: reading-float 4.8s ease-in-out infinite; }

body[data-program-id="dr12-afir"] .aeo-question-set {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

body[data-program-id="dr12-afir"] .aeo-question,
body[data-program-id="modernizare-microintreprinderi-ne-2"] .aeo-question {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] .answer-readiness__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] .table-wrap,
body[data-program-id="modernizare-microintreprinderi-ne-2"] .table-wrap svg {
  width: 100%;
  max-width: none;
}

body[data-program-id="modernizare-microintreprinderi-ne-2"] .official-sources,
body[data-program-id="modernizare-microintreprinderi-ne-2"] .long-form-secondary-section,
body[data-program-id="modernizare-microintreprinderi-ne-2"] .cta-box {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

@keyframes reading-route { to { stroke-dashoffset: -88; } }
@keyframes reading-pulse { 0%, 100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.24); opacity: 1; } }
@keyframes reading-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 820px) {
  .program-reading-overview { grid-template-columns: 1fr; }
  .program-reading-overview h2 { max-width: 20ch; }
  .program-reading-overview__scene { max-width: 520px; margin-inline: auto; }
  body[data-program-id="dr12-afir"] .aeo-question-set,
  body[data-program-id="modernizare-microintreprinderi-ne-2"] .answer-readiness__facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel,
  body[data-program-id="dr12-afir"] article.panel { padding: .75rem; }
  .program-reading-overview { min-height: 0; padding: 1.25rem; border-radius: 22px; }
  .program-reading-overview__facts { grid-template-columns: 1fr; }
  body[data-program-id="modernizare-microintreprinderi-ne-2"] article.panel > section:not(.answer-readiness):not(.program-factual-status):not(.program-reading-overview),
  body[data-program-id="dr12-afir"] article.panel > section:not(.program-factual-status):not(.program-reading-overview):not(.aeo-question-set) { padding: 1.1rem; border-radius: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .program-reading-overview__route,
  .program-reading-overview__node,
  .program-reading-overview__sheet { animation: none !important; }
}
