
/* ======================================================================
   CREST / Available projects
   Framework-free component. All rules are scoped to .cp or .cp-page.
   Integration: copy components/projects.html + this file + projects.js.
   Change the --cp-* tokens on .cp to adapt the brand.
   ====================================================================== */

/* The demo shell is optional. Do not add .cp-page to your existing layout. */
.cp-page {
  margin: 0;
  min-width: 320px;
  background: #f7f9fc;
  background-image: radial-gradient(ellipse at 8% 0, #eaf2ff 0, transparent 34%),
    radial-gradient(ellipse at 95% 100%, #edf0ff 0, transparent 34%);
}
.cp-page__main {
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 36px;
}
.cp-page__note {
  margin: 23px auto 0;
  color: #67758b;
  font: 12px/1.7 "Segoe UI", Arial, sans-serif;
  text-align: center;
}
.cp-page__note span { padding: 0 8px; color: #a1adc0; }

.cp {
  --cp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --cp-blue: #2856e8;
  --cp-blue-hover: #1f45c6;
  --cp-blue-soft: #edf3ff;
  --cp-ink: #17243b;
  --cp-text: #4c5e79;
  --cp-muted: #63738b;
  --cp-border: #dfe7f2;
  --cp-green: #166b50;
  --cp-green-soft: #e8f7ef;
  --cp-danger: #b52e44;
  --cp-radius: 20px;
  --cp-shadow: 0 4px 9px -4px rgb(31 51 92 / 7%), 0 14px 35px -18px rgb(43 64 105 / 23%);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  color: var(--cp-ink);
  font: 400 14px/1.6 var(--cp-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}
.cp, .cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp :where(h1, h2, h3, h4, p, dl, dd, figure) { margin: 0; }
.cp :where(button, input, select, textarea) { font: inherit; }
.cp :where(button, a, input, select) { -webkit-tap-highlight-color: transparent; }
.cp :where(button, a) { touch-action: manipulation; }
.cp :where(button) { cursor: pointer; color: inherit; }
.cp :where(a) { color: inherit; text-decoration: none; }
.cp :where(button, input, select) { border-radius: 0; }
.cp :where(svg) { display: block; }
.cp [hidden] { display: none !important; }
.cp :disabled { cursor: not-allowed; opacity: .5; }
.cp :focus-visible { outline: 3px solid var(--cp-blue); outline-offset: 4px; }
.cp [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.cp__sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.cp__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cp__icon {
  width: 20px; height: 20px; flex: 0 0 auto; fill: none;
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.cp__skip {
  position: fixed; left: 20px; top: 16px; z-index: 100;
  padding: 10px 16px; background: var(--cp-ink); color: white;
  border-radius: 8px; transform: translateY(-180%);
}
.cp__skip:focus { transform: none; }

/* Main section --------------------------------------------------------- */
.cp__panel {
  position: relative;
  padding: 37px 36px 0;
  border: 1px solid #dce6f5;
  border-radius: 30px;
  background: linear-gradient(120deg, #f3f8ff 0%, #ffffff 53%, #f4f8ff 100%);
  box-shadow: 0 22px 65px -30px rgb(43 69 117 / 16%), inset 0 1px 0 white;
  overflow: hidden;
  isolation: isolate;
}
.cp__panel::before {
  content: "";
  position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background-image: linear-gradient(#5482cd0a 1px, transparent 1px),
    linear-gradient(90deg, #5482cd0a 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(115deg, #000 0%, transparent 52%);
}
.cp__panel::after {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  width: 370px; height: 370px; top: -235px; right: -90px;
  border-radius: 50%; border: 1px solid #b8d5ff60;
  background: linear-gradient(135deg, #e1edff55, #dbeaff88);
  box-shadow: 0 0 0 38px #e6efff5c, 0 0 0 76px #ebf3ff6b;
}
.cp__heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; margin-bottom: 28px; position: relative;
}
.cp__heading-copy { max-width: 830px; }
.cp__eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--cp-blue); font-size: 10.5px; line-height: 1.5;
  font-weight: 750; letter-spacing: 1.7px; text-transform: uppercase;
}
.cp__live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: #397aff; box-shadow: 0 0 0 4px #e0ebff;
}
.cp__title {
  margin-top: 9px !important;
  color: #132239; font-size: clamp(32px, 3.1vw, 45px);
  line-height: 1.15; font-weight: 750; letter-spacing: -1.65px;
}
.cp__intro { color: var(--cp-muted); font-size: 14px; line-height: 1.75; margin-top: 12px !important; max-width: 690px; }
.cp__catalog-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 46px; border: 1px solid #cdddfa;
  border-radius: 99px; background: rgb(255 255 255 / 88%);
  color: var(--cp-blue); padding: 11px 20px;
  font-size: 12px; font-weight: 650; white-space: nowrap; flex: 0 0 auto;
  box-shadow: 0 4px 8px -5px #4069b52b;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.cp__catalog-toggle:hover { background: white; border-color: #9cb5f3; box-shadow: 0 5px 16px -8px #4069b550; }
.cp__catalog-toggle .cp__icon { width: 16px; height: 16px; }
.cp__catalog-toggle[aria-expanded="true"] { background: var(--cp-blue-soft); }
.cp__layout { display: grid; grid-template-columns: minmax(0, 1fr) 185px; gap: 32px; align-items: stretch; }
.cp__catalog { min-width: 0; }
.cp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }

/* Search and saved projects: progressive disclosure -------------------- */
.cp__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px; margin-bottom: 20px; background: #fff;
  border: 1px solid var(--cp-border); border-radius: 14px;
  animation: cp-reveal .18s ease-out;
}
.cp__search { position: relative; flex: 1 1 240px; min-width: 0; }
.cp__search > .cp__icon { position: absolute; top: 12px; left: 12px; width: 18px; height: 18px; color: var(--cp-muted); pointer-events: none; }
.cp__search input {
  display: block; width: 100%; min-height: 42px; padding: 9px 39px 9px 39px;
  color: var(--cp-ink); background: #f7f9fc; border: 1px solid #e7ecf4;
  border-radius: 9px; font-size: 13px; outline: none;
}
.cp__search input::-webkit-search-cancel-button { appearance: none; }
.cp__search input:focus { border-color: #8da9f0; box-shadow: 0 0 0 3px #2856e810; }
.cp__search input::placeholder { color: #69778d; opacity: 1; }
.cp__search-clear { position: absolute; right: 5px; top: 5px; }
.cp__filters { display: inline-flex; align-items: center; gap: 3px; padding: 3px; background: #f5f7fb; border-radius: 9px; }
.cp__filter {
  display: flex; align-items: center; gap: 7px; border: 0; background: transparent;
  min-height: 36px; padding: 7px 11px; border-radius: 7px; color: var(--cp-muted);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.cp__filter:hover { color: var(--cp-blue); }
.cp__filter[aria-pressed="true"] { background: white; color: var(--cp-blue); box-shadow: 0 1px 4px #20365713; }
.cp__filter .cp__icon { width: 14px; height: 14px; }
.cp__filter-count { font-size: 10px; border-radius: 4px; min-width: 17px; padding: 0 4px; background: #e9eef8; text-align: center; }
.cp__sort { position: relative; flex: 0 1 166px; min-width: 150px; }
.cp__sort select {
  appearance: none; -webkit-appearance: none; display: block; width: 100%;
  min-height: 42px; padding: 9px 28px 9px 10px; border: 1px solid var(--cp-border);
  border-radius: 9px; font-size: 11px; background: #fff; color: var(--cp-text); cursor: pointer;
}
.cp__sort > .cp__icon { width: 13px; height: 13px; position: absolute; right: 10px; top: 15px; pointer-events: none; }
.cp__results { flex: 1 1 100%; font-size: 11px; color: var(--cp-muted); padding: 0 2px; }
.cp__empty {
  border: 1px dashed #bdcde6; background: rgb(255 255 255 / 75%);
  border-radius: var(--cp-radius); text-align: center; padding: 70px 24px;
}
.cp__empty-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #edf2fb; color: #7287af; margin-bottom: 18px; }
.cp__empty h3 { font-size: 21px; font-weight: 650; }
.cp__empty p { color: var(--cp-muted); font-size: 13px; line-height: 1.8; margin: 10px auto 20px; max-width: 330px; }

/* Project cards -------------------------------------------------------- */
.cp-card {
  --cp-hero-start: #2351d4; --cp-hero-end: #62baff;
  --cp-hero-glow: #77d1ff; --cp-hero-soft: #d7eeff;
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid #dce5f3; border-radius: var(--cp-radius);
  background: #fff; box-shadow: var(--cp-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cp-card--indigo {
  --cp-hero-start: #383186; --cp-hero-end: #8b99ff;
  --cp-hero-glow: #9b9fff; --cp-hero-soft: #e3e1ff;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cp-card:hover { transform: translateY(-4px); border-color: #b9cced; box-shadow: 0 10px 12px -10px #293f7433, 0 25px 40px -22px #2e52814a; }
}
.cp-card__hero {
  position: relative; min-height: 166px; padding: 19px 21px;
  border-radius: calc(var(--cp-radius) - 1px) calc(var(--cp-radius) - 1px) 0 0;
  background: linear-gradient(118deg, var(--cp-hero-start) 6%, var(--cp-hero-end) 115%);
  color: white; overflow: hidden; isolation: isolate;
}
.cp-card__hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .55;
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent, black 40%, transparent);
}
.cp-card__hero::after {
  content: ""; position: absolute; z-index: -1; width: 242px; height: 242px;
  right: -90px; top: -147px; border-radius: 50%; border: 1px solid #ffffff3d;
  box-shadow: 0 0 0 26px #ffffff06, 0 0 0 52px #ffffff06;
}
.cp-card__hero-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; }
.cp-card__brand { font-size: 11px; line-height: 1; font-weight: 750; letter-spacing: 2px; }
.cp-card__edition { margin-left: auto; color: #fff; font-size: 10px; letter-spacing: 1.4px; font-weight: 600; }
.cp-card__save {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid #ffffff38; border-radius: 8px; color: white;
  background: #17368b24; transition: background .18s, border-color .18s;
}
.cp-card__save .cp__icon { width: 15px; height: 15px; }
.cp-card__save:hover { background: #ffffff2e; border-color: #ffffff75; }
.cp-card__save[aria-pressed="true"] { color: var(--cp-blue); background: white; border-color: white; }
.cp-card__save[aria-pressed="true"] .cp__icon { fill: currentColor; }
.cp-card__save:focus-visible { outline-color: white; outline-offset: 3px; }
.cp-card__hero-copy { position: relative; z-index: 1; margin-top: 28px; max-width: 195px; font-size: 12px; line-height: 1.7; color: #fff; }
.cp-card__hero-copy::after { content: ""; display: block; width: 27px; height: 3px; margin-top: 13px; background: #b6d7ffbd; border-radius: 3px; }
.cp-card__art {
  position: absolute; right: 1px; bottom: -10px; width: 226px; height: 166px;
  pointer-events: none; filter: drop-shadow(0 9px 10px #1024651a);
}
.cp-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 21px 0; min-width: 0; }
.cp-card__status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 8px; }
.cp__badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  border: 1px solid #d5eddf; border-radius: 6px; background: var(--cp-green-soft);
  color: var(--cp-green); padding: 4px 8px; font-size: 10px; line-height: 1.4; font-weight: 650; white-space: nowrap;
}
.cp__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a9c71; flex-shrink: 0; }
.cp-card__date { display: inline-flex; align-items: center; gap: 6px; color: var(--cp-text); font-size: 10.5px; line-height: 1.5; white-space: nowrap; }
.cp-card__date .cp__icon { width: 13px; height: 13px; color: #7f90ae; }
.cp-card__title { font-size: 18px; font-weight: 700; line-height: 1.42; letter-spacing: -.42px; margin-top: 15px !important; color: #18283f; overflow-wrap: anywhere; }
/* Logo-ul configurat rămâne integral, separat de coperta decorativă. */
.cp .cp-card__identity { display: flex; align-items: center; gap: 12px; margin-top: 15px; min-width: 0; }
.cp .cp-card__identity .cp-card__title { flex: 1; min-width: 0; margin-top: 0 !important; }
.cp .cp-card__logo { display: block; flex: 0 0 32%; width: 32%; max-width: 112px; height: 72px; object-fit: contain; object-position: center; background: #fff; }
.cp-card__description {
  margin-top: 9px !important; font-size: 12px; line-height: 1.75; color: var(--cp-muted); overflow-wrap: anywhere;
  max-block-size: 6lh; overflow: hidden; flex-shrink: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 4lh, transparent 6lh);
  mask-image: linear-gradient(to bottom, #000 4lh, transparent 6lh);
}
.cp-card__description--complete { -webkit-mask-image: none; mask-image: none; }
.cp-card__description [data-cp-call] { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.8; color: #677792; }
@media print {
  .cp-card__description {
    max-block-size: none; overflow: visible;
    -webkit-mask-image: none; mask-image: none;
  }
}
.cp-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 10px;
  padding: 18px 0; margin-top: auto; min-height: 64px; color: var(--cp-text); font-size: 11px;
}
.cp-card__meta-spacer { min-height: 22px; flex: 1; }
.cp-card__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.cp-card__meta > span + span { padding-left: 16px; border-left: 1px solid #e0e7f1; }
.cp-card__meta .cp__icon { width: 16px; height: 16px; color: #4c76e9; }
.cp-card__meta strong { font-weight: 550; }
.cp-card__footer { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 12px; padding: 16px 21px 19px; border-top: 1px solid #e8edf5; }
.cp__button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 43px; padding: 10px 14px; border: 1px solid transparent; border-radius: 9px;
  font-size: 11.5px; line-height: 1.4; font-weight: 650; text-align: center;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.cp__button .cp__icon { width: 16px; height: 16px; }
.cp__button--primary { background: var(--cp-blue); border-color: var(--cp-blue); color: #fff; box-shadow: 0 3px 7px #2856e817; }
.cp__button--primary:not(:disabled):hover { background: var(--cp-blue-hover); border-color: var(--cp-blue-hover); box-shadow: 0 5px 12px #2856e826; }
.cp__button--outline { background: white; border-color: #b9cdfb; color: var(--cp-blue); }
.cp__button--outline:not(:disabled):hover { background: #f4f7ff; border-color: #809feb; }
.cp__button--neutral { background: white; border-color: var(--cp-border); color: var(--cp-text); }
.cp__button--neutral:not(:disabled):hover { background: #f6f8fc; border-color: #c2cede; }
.cp__button:not(:disabled):active { transform: translateY(1px); }
.cp__button[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cp-spin .8s linear infinite; }
.cp__button[aria-busy="true"] > .cp__icon { display: none; }
.cp__text-button { border: 0; background: transparent; padding: 9px 0; min-height: 38px; display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 600; color: var(--cp-blue); }
.cp__text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.cp__text-button .cp__icon { width: 15px; height: 15px; }
.cp__icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: var(--cp-muted); }
.cp__icon-button:hover { background: #edf2fb; color: var(--cp-blue); }
.cp__icon-button .cp__icon { width: 17px; height: 17px; }

/* Editorial / summary rail --------------------------------------------- */
.cp__rail { display: flex; flex-direction: column; justify-content: center; padding: 15px 0 20px 3px; position: relative; }
.cp__rail-icon { width: 52px; height: 52px; border: 1px solid #dce5fc; border-radius: 16px; background: linear-gradient(145deg, #ecf1ff, #e3ebff); display: grid; place-items: center; color: #6480df; margin-bottom: 22px; box-shadow: inset 0 1px 0 #fff; }
.cp__rail-icon .cp__icon { width: 27px; height: 27px; stroke-width: 1.45; }
.cp__rail h2 { font-size: 23px; font-weight: 500; line-height: 1.43; letter-spacing: -.75px; color: #5971b0; max-width: 180px; }
.cp__rail-line { width: 30px; height: 3px; border-radius: 4px; background: #96acf0; margin: 22px 0 25px; }
.cp__rail-stats { display: flex; gap: 23px; margin-bottom: 27px !important; }
.cp__rail-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.cp__rail-stats dt { font-size: 10.5px; color: #63759a; }
.cp__rail-stats dd { font-size: 27px; font-weight: 600; line-height: 1.4; color: #4e659c; font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.cp__rail-footnote { font-size: 8px; letter-spacing: 2.8px; font-weight: 650; line-height: 2.2; color: #6e80ac; margin-top: 30px !important; }
.cp__footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 1px; font-size: 10px; color: #6d7d94; }
.cp__footer > span { display: flex; align-items: center; gap: 7px; }
.cp__footer .cp__icon { width: 13px; height: 13px; color: #7d96ba; }
.cp__footer-brand { text-transform: uppercase; letter-spacing: 1.6px; font-size: 8px; }
.cp__noscript { background: #fff9e8; border: 1px solid #ebd8a2; color: #766039; padding: 15px; border-radius: 10px; margin-bottom: 20px !important; font-size: 13px; }

/* Dialogs -------------------------------------------------------------- */
.cp-dialog {
  width: min(690px, calc(100vw - 40px)); max-width: none;
  max-height: calc(100dvh - 48px); margin: auto; padding: 0;
  border: 1px solid #e1e8f3; border-radius: 22px;
  background: #fff; color: var(--cp-ink); overflow: auto;
  box-shadow: 0 28px 100px #14233b40; overscroll-behavior: contain;
}
.cp-dialog::backdrop { background: rgb(17 31 55 / 40%); backdrop-filter: blur(5px); }
.cp-dialog[open] { animation: cp-dialog-in .2s ease-out; }
.cp-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 25px; border-bottom: 1px solid #e8edf5; background: #f9fbff; }
.cp-dialog__brand { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 750; letter-spacing: 1.6px; color: var(--cp-blue); }
.cp-dialog__brand > .cp__icon { width: 20px; height: 20px; }
.cp-dialog__brand > span + span { border-left: 1px solid #d4deef; padding-left: 11px; color: #63738b; font-size: 9px; font-weight: 500; letter-spacing: .7px; }
.cp-dialog__body { padding: 26px 29px 30px; }
.cp-dialog__eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--cp-blue); text-transform: uppercase; margin-bottom: 10px !important; }
.cp-dialog__title { font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -.8px; overflow-wrap: anywhere; }
.cp-dialog__lead { color: var(--cp-muted); font-size: 13px; line-height: 1.8; margin: 12px 0 22px !important; }
.cp-dialog__project-heading { margin: 22px 0 12px !important; font-size: 16px; line-height: 1.5; font-weight: 650; letter-spacing: -.2px; overflow-wrap: anywhere; }
.cp-dialog__details-description { font-size: 13px; color: var(--cp-muted); line-height: 1.85; margin-top: 15px !important; overflow-wrap: anywhere; white-space: pre-line; }
.cp-dialog__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 !important; padding: 18px; border: 1px solid #e5eaf4; border-radius: 12px; background: #f9fbfe; }
.cp-dialog__facts > div { min-width: 0; }
.cp-dialog__facts dt { font-size: 10px; color: var(--cp-muted); margin-bottom: 5px; }
.cp-dialog__facts dd { font-size: 12px; color: var(--cp-ink); font-weight: 550; overflow-wrap: anywhere; }
.cp-dialog__notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; background: #f1f5fd; border: 1px solid #e3eafa; border-radius: 10px; color: #556789; font-size: 11px; line-height: 1.8; margin: 18px 0 0 !important; }
.cp-dialog__notice > .cp__icon { width: 16px; height: 16px; color: #708ac1; margin-top: 2px; }
.cp-dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 25px; padding-top: 21px; border-top: 1px solid #e6ecf5; }
.cp-dialog__actions .cp__button { min-height: 43px; padding-left: 18px; padding-right: 18px; }
.cp-dialog__actions .cp__button:first-child { margin-right: auto; }
.cp-dialog__save { min-width: 115px; }
.cp-dialog__save[aria-pressed="true"] { color: var(--cp-blue); border-color: #b5c8f4; background: #f4f7ff; }
.cp-dialog__save[aria-pressed="true"] .cp__icon { fill: var(--cp-blue); }
.cp-dialog__steps { display: flex; gap: 23px; align-items: center; margin: 20px 0 !important; padding: 0; list-style: none; }
.cp-dialog__steps li { display: inline-flex; align-items: center; gap: 7px; color: #63738b; font-size: 10.5px; }
.cp-dialog__steps li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #dce4f1; font-size: 9px; background: #f6f8fc; }
.cp-dialog__steps [aria-current="step"] { color: var(--cp-blue); font-weight: 650; }
.cp-dialog__steps [aria-current="step"] > span { background: var(--cp-blue); color: white; border-color: var(--cp-blue); }
.cp-dialog__steps .is-complete > span { color: var(--cp-green); background: var(--cp-green-soft); border-color: #d5ebdf; }
.cp-form { margin: 0; }
.cp-form__fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.cp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 22px; }
.cp-form__field { min-width: 0; }
.cp-form__field--full { grid-column: 1 / -1; }
.cp-form__label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: #334663; }
.cp-form__label small { margin-left: auto; font-size: 9px; font-weight: 400; color: #65758d; }
.cp-form__input { display: block; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #ced8e8; border-radius: 9px !important; color: var(--cp-ink); background: white; font-size: 13px !important; line-height: 1.5; outline: none; }
.cp-form__input::placeholder { color: #758298; opacity: 1; }
.cp-form__input:focus { border-color: #7696ec; box-shadow: 0 0 0 3px #2856e814; }
.cp-form__input[aria-invalid="true"] { border-color: #cb6b79; background: #fffafb; }
.cp-form__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #b52e4412; }
.cp-form__error { font-size: 10.5px; color: var(--cp-danger); line-height: 1.7; margin-top: 6px !important; }
.cp-form__help { font-size: 10.5px; color: var(--cp-muted); line-height: 1.8; margin-top: 12px !important; }
.cp-form__required { color: var(--cp-blue); font-weight: 500; }
.cp-form__review { margin-top: 20px; border: 1px solid var(--cp-border); border-radius: 12px; overflow: hidden; }
.cp-form__review-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 14px 16px; background: #fafbfd; }
.cp-form__review-row + .cp-form__review-row { border-top: 1px solid #e7ecf4; }
.cp-form__review-row dt { font-size: 11px; color: var(--cp-muted); }
.cp-form__review-row dd { font-size: 12px; color: var(--cp-ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.cp-form__alert { padding: 13px; border: 1px solid #ebc6cd; background: #fff5f7; border-radius: 10px; color: #a52e43; font-size: 12px; line-height: 1.7; margin-top: 18px !important; }
.cp-form__policy { font-size: 11px; color: var(--cp-muted); line-height: 1.8; margin-top: 17px !important; }
.cp-form__policy a { color: var(--cp-blue); text-decoration: underline; text-underline-offset: 3px; }
.cp-dialog__success-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 21px; border: 1px solid #d2ecdf; border-radius: 18px; background: var(--cp-green-soft); color: var(--cp-green); }
.cp-dialog__success-mark .cp__icon { width: 28px; height: 28px; }
.cp-dialog__reference { display: block; color: var(--cp-ink); font-size: 14px; margin-top: 12px; padding: 14px; border: 1px solid var(--cp-border); border-radius: 8px; background: #f8faff; overflow-wrap: anywhere; }
.cp-help { border-top: 1px solid var(--cp-border); margin-top: 25px; }
.cp-help details { border-bottom: 1px solid var(--cp-border); }
.cp-help summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; cursor: pointer; padding: 17px 0; font-size: 12px; font-weight: 650; }
.cp-help summary::-webkit-details-marker { display: none; }
.cp-help summary .cp__icon { width: 15px; height: 15px; color: #778aac; flex-shrink: 0; }
.cp-help details[open] summary .cp__icon { transform: rotate(180deg); }
.cp-help p { padding: 0 23px 17px 0; font-size: 12px; line-height: 1.85; color: var(--cp-muted); }

/* Toast lives in the root; dialog messages have their own inline region. */
.cp__toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.cp__toast { display: flex; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid #dce5f4; background: #fff; border-radius: 13px; box-shadow: 0 12px 45px #1f35552b; pointer-events: auto; animation: cp-dialog-in .18s ease-out; }
.cp__toast > .cp__icon { width: 18px; height: 18px; color: var(--cp-blue); margin-top: 2px; }
.cp__toast-copy { min-width: 0; padding-top: 1px; }
.cp__toast-copy strong { display: block; font-size: 12px; font-weight: 650; line-height: 1.5; }
.cp__toast-copy p { font-size: 11px; color: var(--cp-muted); line-height: 1.7; margin-top: 4px; }
.cp__toast .cp__icon-button { width: 25px; height: 25px; margin-left: auto; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
@keyframes cp-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cp-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Responsive: preserve the full project title at every width. ---------- */
@media (min-width: 1550px) {
  .cp__panel { padding: 40px 40px 0; }
  .cp__heading { margin-bottom: 30px; }
  .cp__layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 38px; }
  .cp__grid { gap: 24px; }
  .cp-card__hero { min-height: 174px; padding: 20px 23px; }
  .cp-card__body { padding: 22px 23px 0; }
  .cp-card__footer { padding: 17px 23px 21px; }
  .cp-card__title { font-size: 19px; }
  .cp-card__description { font-size: 13px; }
  .cp-card__meta { font-size: 12px; }
  .cp-card__footer .cp__button { font-size: 12.5px; }
  .cp-card__date { font-size: 11px; }
  .cp__badge { font-size: 10.5px; }
  .cp-card__art { width: 240px; height: 177px; }
  .cp-card__hero-copy { margin-top: 32px; font-size: 12.5px; }
  .cp__footer { padding-top: 24px; padding-bottom: 24px; }
}
@media (max-width: 1279px) {
  .cp-page__main { padding: 42px 30px 26px; }
  .cp__panel { padding: 30px 28px 0; border-radius: 25px; }
  .cp__layout { grid-template-columns: minmax(0, 1fr); }
  .cp__rail { display: none; }
  .cp__heading-copy { max-width: 710px; }
  .cp__intro { max-width: 610px; }
  .cp__title { font-size: 39px; }
  .cp__footer { padding-top: 21px; padding-bottom: 21px; }
  .cp-card__hero-copy { max-width: 195px; }
}
@media (min-width: 1280px) and (max-width: 1399px) {
  .cp-page__main { padding-left: 30px; padding-right: 30px; }
  .cp__layout { gap: 26px; grid-template-columns: minmax(0, 1fr) 155px; }
  .cp__grid { gap: 18px; }
  .cp__panel { padding-left: 30px; padding-right: 30px; }
  .cp__rail h2 { font-size: 21px; }
  .cp-card__hero-copy { max-width: 175px; font-size: 11px; }
  .cp-card__art { width: 193px; right: -4px; }
  .cp-card__footer { gap: 9px; padding-left: 18px; padding-right: 18px; }
  .cp__button { padding-left: 9px; padding-right: 9px; font-size: 11px; gap: 6px; }
}
@media (max-width: 959px) {
  .cp-page__main { padding: 32px 22px 24px; }
  .cp__heading { align-items: flex-start; gap: 20px; }
  .cp__heading-copy { max-width: 520px; }
  .cp__catalog-toggle { font-size: 11px; padding: 10px 15px; gap: 10px; margin-top: 26px; }
  .cp__title { font-size: 36px; }
  .cp__intro { font-size: 13px; }
  .cp__grid { gap: 18px; }
  .cp-card__hero { padding-left: 19px; padding-right: 19px; min-height: 160px; }
  .cp-card__hero-copy { max-width: 150px; font-size: 10.5px; }
  .cp-card__art { width: 184px; height: 145px; right: -8px; }
  .cp-card__body { padding: 19px 19px 0; }
  .cp-card__title { font-size: 17px; }
  .cp-card__status-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .cp-card__meta { gap: 10px; font-size: 10px; }
  .cp-card__meta > span { gap: 6px; }
  .cp-card__meta > span + span { padding-left: 10px; }
  .cp-card__footer { padding: 15px 17px 17px; gap: 8px; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .cp-card__footer .cp__button { font-size: 10px; padding: 10px 8px; gap: 6px; }
  .cp-card__footer .cp__button .cp__icon { width: 14px; height: 14px; }
  .cp__footer { font-size: 9px; }
  .cp__footer-brand { font-size: 7px; letter-spacing: 1.1px; }
}
@media (max-width: 719px) {
  .cp-page__main { padding: 22px 16px 22px; display: block; }
  .cp__panel { padding: 25px 20px 0; border-radius: 23px; }
  .cp__heading { display: block; margin-bottom: 23px; }
  .cp__desktop-break { display: none; }
  .cp__eyebrow { font-size: 9px; letter-spacing: 1.5px; gap: 9px; }
  .cp__title { font-size: 34px; letter-spacing: -1.15px; margin-top: 12px !important; }
  .cp__intro { font-size: 13px; line-height: 1.8; margin-top: 12px !important; }
  .cp__catalog-toggle { margin-top: 20px; min-height: 42px; font-size: 11px; padding-left: 16px; padding-right: 16px; }
  .cp__grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .cp-card__hero { min-height: 166px; padding: 17px 20px; }
  .cp-card__hero-copy { margin-top: 30px; max-width: 165px; font-size: 11.5px; }
  .cp-card__art { width: 213px; height: 158px; bottom: -7px; right: -8px; }
  .cp-card__body { padding: 20px 20px 0; }
  .cp-card__status-row { flex-direction: row; align-items: center; }
  .cp-card__title { font-size: 18px; line-height: 1.45; }
  .cp-card__description { font-size: 12px; }
  .cp-card__meta { font-size: 11px; min-height: 61px; }
  .cp-card__meta-spacer { min-height: 20px; }
  .cp-card__footer { padding: 16px 19px 19px; gap: 10px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .cp-card__footer .cp__button { font-size: 11px; min-height: 44px; padding-left: 9px; padding-right: 9px; }
  .cp__footer { padding: 20px 0; font-size: 9px; justify-content: center; }
  .cp__footer-brand { display: none !important; }
  .cp__toolbar { gap: 10px; padding: 12px; }
  .cp__search { flex-basis: 100%; }
  .cp__sort { margin-left: auto; flex: 1 1 130px; min-width: 130px; }
  .cp__filters { flex-shrink: 0; }
  .cp__search input, .cp__sort select { font-size: 16px; }
  .cp__sort select { min-width: 0; }
  .cp__filter { font-size: 11px; }
  .cp__empty { padding: 45px 20px; }
  .cp-page__note { font-size: 10px; margin-top: 20px; padding: 0 10px; }
  .cp-page__note span { display: none; }
  .cp-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .cp-dialog__header { padding: 14px 18px; }
  .cp-dialog__body { padding: 23px 21px; }
  .cp-dialog__title { font-size: 23px; }
  .cp-dialog__facts { padding: 15px; gap: 17px 12px; }
  .cp-dialog__facts dd { font-size: 11px; }
  .cp-dialog__actions { gap: 9px; }
  .cp-dialog__actions .cp__button { flex: 1 1 auto; font-size: 11px; }
  .cp-dialog__actions .cp-dialog__save { flex: 0 0 auto; }
  .cp-dialog__actions .cp__button:first-child { margin-right: 0; }
  .cp-dialog__steps { gap: 18px; }
  .cp-form__grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .cp-form__input { font-size: 16px !important; }
  .cp-form__review-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cp-form__help { font-size: 11px; }
  .cp__toast-region { right: 16px; bottom: 16px; }
}
@media (max-width: 399px) {
  .cp-page__main { padding: 15px 11px 20px; }
  .cp__panel { padding-left: 15px; padding-right: 15px; }
  .cp__title { font-size: 30px; }
  .cp-card__hero { min-height: 155px; padding-left: 17px; padding-right: 17px; }
  .cp-card__hero-copy { max-width: 140px; font-size: 10.5px; }
  .cp-card__art { width: 180px; height: 140px; right: -12px; }
  .cp-card__body { padding-left: 17px; padding-right: 17px; }
  .cp-card__status-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cp-card__footer { padding-left: 15px; padding-right: 15px; }
  .cp-card__footer .cp__button { font-size: 10px; gap: 6px; }
  .cp__badge { font-size: 10px; }
  .cp-card__meta { font-size: 10px; gap: 8px; }
  .cp-card__meta > span + span { padding-left: 8px; }
  .cp__footer { line-height: 1.8; }
  .cp__footer > span { align-items: flex-start; }
  .cp__footer .cp__icon { margin-top: 2px; }
  .cp-dialog__body { padding-left: 18px; padding-right: 18px; }
  .cp-dialog__facts { grid-template-columns: minmax(0, 1fr); }
  .cp-dialog__actions { flex-direction: column-reverse; align-items: stretch; }
  .cp-dialog__steps li { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp *, .cp *::before, .cp *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .cp__button, .cp-card__save, .cp__filter, .cp__badge { border: 1px solid ButtonText; }
  .cp__button--primary { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .cp-card__hero { background: Canvas; color: CanvasText; border-bottom: 1px solid CanvasText; }
  .cp-card__hero-copy, .cp-card__edition, .cp-card__save { color: CanvasText; }
  .cp-card__art, .cp__panel::before, .cp__panel::after { display: none; }
}
@media print {
  .cp-page { background: white; }
  .cp-page__main { padding: 0; min-height: 0; display: block; }
  .cp__panel { border: 0; border-radius: 0; padding: 0; background: white; box-shadow: none; }
  .cp__layout { display: block; }
  .cp__grid { display: block; }
  .cp-card { margin-bottom: 24px; break-inside: avoid; box-shadow: none; }
  .cp-card__hero { min-height: 55px; color: black; background: white; border-bottom: 1px solid #ccc; }
  .cp-card__brand, .cp-card__edition { color: black; }
  .cp-card__hero-copy, .cp-card__art, .cp-card__save, .cp-card__footer,
  .cp__rail, .cp__toolbar, .cp__catalog-toggle, .cp__toast-region,
  .cp-dialog, .cp__footer, .cp__skip, .cp-page__note { display: none !important; }
  .cp-card__title { font-size: 18px; }
}



/* ======================================================================
   CREST / Scalable catalogue extension
   1–2 projects: original presentation; 3+: full catalogue by default.
   No fixed card heights, truncated project titles, carousels or auto-rotation.
   ====================================================================== */
.cp-page__main { justify-content: flex-start; padding-top: 48px; }
.cp__heading { align-items: flex-end; gap: 30px; margin-bottom: 28px; }
.cp__heading-copy { max-width: 780px; }
.cp__heading-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 19px; flex-shrink: 0; }
.cp__heading-stats { display: flex; gap: 26px; align-items: center; }
.cp__heading-stats > div { display: flex; align-items: baseline; gap: 8px; }
.cp__heading-stats > div + div { border-left: 1px solid #dce5f4; padding-left: 24px; }
.cp__heading-stats dd { font-size: 25px; font-weight: 650; color: #4b64a5; letter-spacing: -.8px; line-height: 1; font-variant-numeric: tabular-nums; }
.cp__heading-stats dt { font-size: 10.5px; color: #647692; }
.cp__view-switch { display: inline-flex; align-items: center; padding: 4px; gap: 4px; border: 1px solid #dce5f4; border-radius: 12px; background: rgb(242 247 255 / 85%); }
.cp__view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #60728d; font-size: 11.5px; font-weight: 550; }
.cp__view-switch button .cp__icon { width: 15px; height: 15px; }
.cp__view-switch button[aria-pressed="true"] { color: var(--cp-blue); background: white; border-color: #dce5f5; box-shadow: 0 2px 5px #2442650b; font-weight: 650; }
.cp__view-switch button:hover { color: var(--cp-blue); }
.cp__view-switch :focus-visible { outline-offset: 1px; }
.cp-card__classification { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; color: #6f80a0; margin-top: 14px; }
.cp-card__demo { text-transform: none; letter-spacing: 0; font-size: 9px; color: #63738b; font-weight: 400; }
.cp__catalog-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin: 3px 0 14px; }
.cp__catalog-info .cp__results { color: #536984; font-size: 12px; }
.cp__catalog-info .cp__text-button { font-size: 11px; padding: 2px 0; min-height: 28px; }
.cp__catalog-info .cp__text-button .cp__icon { width: 13px; height: 13px; }
.cp__categories { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.cp__category { display: inline-flex; align-items: center; gap: 9px; min-height: 35px; padding: 7px 12px; font-size: 11px; border: 1px solid #dfe7f3; border-radius: 8px; background: #fff; color: #596c87; font-weight: 500; }
.cp__category > span { min-width: 15px; font-size: 10px; color: #71829d; font-variant-numeric: tabular-nums; }
.cp__category:hover { border-color: #b0c4ef; color: var(--cp-blue); }
.cp__category[aria-pressed="true"] { color: var(--cp-blue); border-color: #c4d5fc; background: #ebf2ff; font-weight: 650; }
.cp__category[aria-pressed="true"] > span { color: var(--cp-blue); }
.cp[data-cp-layout-mode="catalog"] .cp__layout { display: block; }
.cp[data-cp-layout-mode="catalog"] .cp__rail { display: none; }
.cp[data-cp-layout-mode="catalog"] .cp__grid { --cp-columns: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.cp[data-cp-layout-mode="catalog"] .cp__toolbar { padding: 13px; margin-bottom: 14px; border-radius: 13px; box-shadow: 0 3px 8px #24426503; animation: none; }
.cp[data-cp-layout-mode="catalog"] .cp__search { flex-basis: 300px; }
.cp[data-cp-layout-mode="catalog"] .cp__search input { font-size: 12.5px; min-height: 44px; }
.cp[data-cp-layout-mode="catalog"] .cp__search > .cp__icon { top: 13px; }
.cp[data-cp-layout-mode="catalog"] .cp__filter { font-size: 11.5px; min-height: 38px; }
.cp[data-cp-layout-mode="catalog"] .cp__sort { flex-basis: 183px; }
.cp[data-cp-layout-mode="catalog"] .cp__sort select { font-size: 11.5px; min-height: 44px; }
.cp[data-cp-layout-mode="catalog"] .cp__sort > .cp__icon { top: 16px; }
.cp[data-cp-layout-mode="catalog"] .cp-card { --cp-radius: 18px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__hero { min-height: 154px; padding: 17px 19px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__hero-copy { margin-top: 29px; max-width: 49%; font-size: 11px; line-height: 1.75; }
.cp[data-cp-layout-mode="catalog"] .cp-card__art { width: 196px; height: 145px; right: -2px; bottom: -10px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__brand { font-size: 10px; letter-spacing: 1.8px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__edition { font-size: 9px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__save { width: 30px; height: 30px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__body { padding: 19px 20px 0; min-height: 258px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__status-row { flex-direction: row; align-items: center; gap: 8px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__title { font-size: 17px; line-height: 1.45; letter-spacing: -.4px; margin-top: 5px !important; }
.cp[data-cp-layout-mode="catalog"] .cp-card__description { font-size: 11.5px; line-height: 1.8; margin-top: 8px !important; }
.cp[data-cp-layout-mode="catalog"] .cp-card__description [data-cp-call] { font-size: 10px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__date { font-size: 10px; }
.cp[data-cp-layout-mode="catalog"] .cp__badge { font-size: 9.5px; padding: 4px 7px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__meta-spacer { min-height: 18px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__meta { font-size: 10.5px; min-height: 54px; padding: 15px 0; column-gap: 13px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__meta > span + span { padding-left: 13px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__meta .cp__icon { width: 15px; height: 15px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__footer { padding: 14px 19px 17px; gap: 9px; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
.cp[data-cp-layout-mode="catalog"] .cp-card__footer .cp__button { min-height: 43px; padding: 10px 8px; gap: 7px; font-size: 11px; }
.cp[data-cp-layout-mode="catalog"] .cp-card__footer .cp__button .cp__icon { width: 14px; height: 14px; }
.cp[data-cp-layout-mode="overview"] .cp-card__classification { display: none; }
.cp__overview-more { margin-top: 20px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #d9e5f7; border-radius: 13px; background: #ffffffba; }
.cp__overview-more strong { color: #29496e; font-size: 12px; font-weight: 600; }
.cp__overview-more p { color: var(--cp-muted); font-size: 11px; margin-top: 3px; }
.cp__overview-more .cp__button { flex-shrink: 0; }
.cp-guide { --cp-guide-span: 2; grid-column: span var(--cp-guide-span); position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.08fr 1fr; align-content: center; align-items: center; column-gap: 34px; padding: 34px 36px; border: 1px solid #dce6f6; border-radius: 18px; background: linear-gradient(128deg,#eff5ff,#f9fbff 60%,#f0f2ff); }
.cp-guide::after { content: ''; position: absolute; z-index: -1; width: 240px; height: 240px; right: -156px; top: -133px; border: 1px solid #c9d9f340; border-radius: 50%; box-shadow: 0 0 0 26px #d5e3fb2b, 0 0 0 52px #dbe7fc24; }
.cp-guide .cp__rail-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 24px; }
.cp-guide .cp__eyebrow { font-size: 8.5px; letter-spacing: 1.4px; color: #637fc1; margin-bottom: 10px; }
.cp-guide h2 { color: #425d9c; font-size: 27px; font-weight: 550; line-height: 1.35; letter-spacing: -.8px; }
.cp-guide__intro > p:last-child { margin-top: 17px; color: #667b9b; font-size: 11.5px; line-height: 1.9; max-width: 270px; }
.cp-guide__steps { padding-top: 22px; }
.cp-guide__steps > div { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 21px; }
.cp-guide__steps > div > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dbe5f6; color: #768bb5; background: #ffffff85; border-radius: 9px; font-size: 9px; flex-shrink: 0; }
.cp-guide__steps p { color: #6f80a0; font-size: 10.5px; line-height: 1.8; }
.cp-guide__steps strong { display: block; color: #405b8b; font-weight: 600; font-size: 11.5px; margin-bottom: 3px; }
.cp-guide__steps .cp__text-button { font-size: 11px; }
.cp__catalog, .cp__grid { scroll-margin-top: 24px; }
.cp[data-cp-layout-mode="overview"] .cp__rail { align-self: start; padding-top: 62px; }
.cp[data-cp-layout-mode="overview"] .cp__overview-more { animation: cp-reveal .18s ease; }
@media (max-width: 1399px) and (min-width: 1200px) {
 .cp[data-cp-layout-mode="catalog"] .cp-card__art { width: 180px; height: 139px; right: -7px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__hero-copy { font-size: 10px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__status-row { align-items: flex-start; flex-direction: column; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__title { font-size: 16.5px; }
 .cp-guide { column-gap: 20px; padding: 28px; }
 .cp-guide h2 { font-size: 24px; }
}
@media (max-width: 1199px) {
 .cp__heading-tools { gap: 16px; }
 .cp__heading-stats { gap: 17px; }
 .cp__heading-stats > div { display: block; }
 .cp__heading-stats > div + div { padding-left: 17px; }
 .cp__heading-stats dt { margin-top: 7px; font-size: 9px; }
 .cp__heading-stats dd { font-size: 25px; }
 .cp[data-cp-layout-mode="catalog"] .cp__grid { --cp-columns: 2; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__body { min-height: 239px; }
 .cp-guide { padding: 30px; min-height: 250px; }
 .cp-guide .cp__rail-icon { display: none; }
 .cp-guide__steps { padding-top: 0; }
 .cp-guide__steps > div { margin-bottom: 15px; }
}
@media (max-width: 859px) {
 .cp__heading { display: block; }
 .cp__heading-tools { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 23px; }
 .cp__heading-stats > div { display: flex; align-items: baseline; gap: 7px; }
 .cp__heading-stats dt { margin-top: 0; font-size: 10px; }
 .cp__heading-stats dd { font-size: 23px; }
 .cp__view-switch button { font-size: 10.5px; padding: 7px 10px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__art { width: 173px; height: 144px; right: -8px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__hero-copy { font-size: 10px; max-width: 50%; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__status-row { align-items: flex-start; flex-direction: column; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__meta { font-size: 10px; column-gap: 9px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__meta > span + span { padding-left: 9px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__footer { padding: 13px 15px 16px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__footer .cp__button { font-size: 10px; gap: 5px; }
}
@media (max-width: 719px) {
 .cp-page__main { padding-top: 20px; }
 .cp__panel { padding: 24px 18px 0; }
 .cp__heading { margin-bottom: 22px; }
 .cp__heading-tools { display: flex; flex-direction: column; align-items: stretch; margin-top: 21px; gap: 18px; }
 .cp__heading-stats { justify-content: flex-start; gap: 24px; }
 .cp__heading-stats > div + div { padding-left: 24px; }
 .cp__heading-stats dd { font-size: 24px; }
 .cp__heading-stats dt { font-size: 10px; }
 .cp__view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
 .cp__view-switch button { min-height: 41px; font-size: 11px; padding: 8px 5px; gap: 7px; }
 .cp__view-switch button .cp__icon { width: 15px; height: 15px; }
 .cp[data-cp-layout-mode="catalog"] .cp__grid { --cp-columns: 1; grid-template-columns: minmax(0,1fr); gap: 20px; }
 .cp[data-cp-layout-mode="catalog"] .cp__toolbar { padding: 10px; gap: 9px; margin-bottom: 12px; }
 .cp[data-cp-layout-mode="catalog"] .cp__search { flex-basis: 100%; }
 .cp[data-cp-layout-mode="catalog"] .cp__search input { font-size: 16px; }
 .cp[data-cp-layout-mode="catalog"] .cp__sort { min-width: 120px; flex: 1 1 120px; }
 .cp[data-cp-layout-mode="catalog"] .cp__sort select { font-size: 16px; min-height: 43px; }
 .cp[data-cp-layout-mode="catalog"] .cp__filters { flex-shrink: 0; }
 .cp[data-cp-layout-mode="catalog"] .cp__filter { min-height: 40px; font-size: 10px; padding: 6px 8px; gap: 5px; }
 .cp__category { min-height: 39px; padding: 8px 10px; font-size: 10.5px; gap: 6px; }
 .cp__categories { gap: 7px; margin-bottom: 8px; }
 .cp__catalog-info { margin-bottom: 13px; }
 .cp__catalog-info .cp__results { font-size: 11px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__hero { min-height: 160px; padding: 17px 19px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__hero-copy { margin-top: 30px; font-size: 10.5px; max-width: 50%; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__art { width: 185px; height: 140px; right: -9px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__body { min-height: 224px; padding: 18px 19px 0; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__title { font-size: 17px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__description { font-size: 12px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__meta { font-size: 10.5px; min-height: 58px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__footer { padding: 14px 17px 17px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__footer .cp__button { font-size: 10.5px; min-height: 44px; }
 .cp-card__save { min-width: 34px; min-height: 34px; }
 .cp__overview-more { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
 .cp-guide { --cp-guide-span: 1; grid-column: 1 / -1; display: block; padding: 27px 24px; }
 .cp-guide h2 { font-size: 25px; }
 .cp-guide__intro > p:last-child { max-width: none; }
 .cp-guide__steps { margin-top: 23px; }
 .cp-guide__steps > div { margin-bottom: 18px; }
 .cp-guide .cp__rail-icon { display: grid; width: 42px; height: 42px; margin-bottom: 19px; }
 .cp__footer { text-align: center; }
}
@media (max-width: 379px) {
 .cp__panel { padding-left: 14px; padding-right: 14px; }
 .cp__heading-stats { gap: 15px; }
 .cp__heading-stats > div + div { padding-left: 15px; }
 .cp__heading-stats dt { font-size: 9px; }
 .cp__heading-stats dd { font-size: 23px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__art { width: 156px; height: 133px; right: -10px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__hero-copy { font-size: 9.5px; max-width: 50%; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__body { padding-left: 16px; padding-right: 16px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__meta { column-gap: 8px; font-size: 9px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__meta > span { gap: 5px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__meta > span + span { padding-left: 8px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__footer { gap: 7px; padding-left: 13px; padding-right: 13px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__footer .cp__button { font-size: 9.5px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__footer .cp__button .cp__icon { width: 11px; }
}
@media print {
 .cp__heading-tools, .cp__categories, .cp__catalog-info, .cp-guide, .cp__overview-more { display: none !important; }
 .cp[data-cp-layout-mode="catalog"] .cp__grid { display: block; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__body { min-height: 0; padding: 10px; }
 .cp[data-cp-layout-mode="catalog"] .cp-card__hero { min-height: 35px; }
}


/* Laravel integration: the component keeps the supplied CREST visual system
   while using real Project records and existing application routes. */
.public-page .public-project-catalog-page {
  width: 100%;
  max-width: none;
  padding: 32px 24px 72px;
}
.public-main--landing > .cp {
  width: min(calc(100% - 48px), 1440px);
  margin-top: 72px;
}
.cp-card__cover-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-card__hero-copy {
  text-shadow: 0 1px 2px rgb(16 36 101 / 18%);
}
.cp__badge--soon {
  border-color: #f4dfa7;
  background: #fff3cd;
  color: #9a5a12;
}
.cp__badge--soon::before {
  background: #e09a2b;
}
.cp__badge--closed {
  border-color: #dce4ef;
  background: #f0f2f5;
  color: #556276;
}
.cp__badge--closed::before {
  background: #718096;
}
.cp__button--disabled {
  border-color: #dce4ef;
  background: #f3f6fa;
  color: #718096;
  cursor: not-allowed;
}
.cp[data-cp-layout-mode="overview"] .cp-guide {
  display: none;
}
.cp__rail-footnote {
  max-width: 150px;
}
@media (max-width: 719px) {
  .public-page .public-project-catalog-page {
    padding: 20px 12px 48px;
  }
  .public-main--landing > .cp {
    width: calc(100% - 24px);
    margin-top: 42px;
  }
  .cp__panel {
    border-radius: 24px;
  }
  .cp__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
