/*
 * EaseMyWorkflow audit-page shell.
 * The audit page uses a deterministic shell while matching the approved
 * homepage navigation dimensions, spacing and visual treatment.
 */
body.emw-cat-page {
  margin: 0;
  background: #040b17;
}
body.emw-cat-page header:not(.emw-site-shell__header),
body.emw-cat-page footer:not(.emw-site-shell__footer),
body.emw-cat-page .emw-global-header,
body.emw-cat-page .emw-site-header:not(.emw-site-shell__header),
body.emw-cat-page .emw-global-footer,
body.emw-cat-page .emw-site-footer:not(.emw-site-shell__footer) {
  display: none !important;
}
body.emw-cat-page .wp-block-post-title,
body.emw-cat-page .entry-title,
body.emw-cat-page .page-title,
body.emw-cat-page main > h1:first-child {
  display: none !important;
}
body.emw-cat-page .wp-site-blocks,
body.emw-cat-page .wp-site-blocks > main,
body.emw-cat-page main.site-main,
body.emw-cat-page .entry-content,
body.emw-cat-page .wp-block-post-content,
body.emw-cat-page .wp-block-group:has(> .wp-block-post-content) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.emw-cat-page .wp-site-blocks,
body.emw-cat-page .wp-block-post-content,
body.emw-cat-page .entry-content { overflow: visible !important; }
body.emw-cat-page .wp-block-post-content > p:empty { display: none; }

.emw-site-shell__header,
.emw-site-shell__header *,
.emw-site-shell__footer,
.emw-site-shell__footer * { box-sizing: border-box; }

.emw-site-shell__header {
  position: relative;
  top: auto;
  z-index: 9990;
  width: 100%;
  margin: 0;
  color: #f7fbff;
  background: #050b16;
  border-bottom: 1px solid #172537;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.admin-bar .emw-site-shell__header { top: auto; }
.emw-site-shell__nav {
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.emw-site-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7fbff;
  text-decoration: none;
  white-space: nowrap;
}
.emw-site-shell__brand-mark {
  display: inline-flex;
  width: 46px;
  color: #20c9f4;
}
.emw-site-shell__brand-mark svg { display: block; width: 100%; height: auto; }
.emw-site-shell__wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.emw-site-shell__wordmark span { color: #2a90ff; }
.emw-site-shell__links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}
.emw-site-shell__links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 10px;
  border-radius: 9px;
  color: #aebbd0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease;
}
.emw-site-shell__links a:hover,
.emw-site-shell__links a:focus-visible,
.emw-site-shell__links a.is-current {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}
.emw-site-shell__actions { display: flex; align-items: center; gap: 10px; }
.emw-site-shell__theme,
.emw-site-shell__menu-toggle {
  border: 1px solid rgba(171, 196, 231, .20);
  color: #f7fbff;
  background: rgba(255, 255, 255, .045);
}
.emw-site-shell__theme {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  cursor: pointer;
}
.emw-site-shell__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 10px;
  color: #041424;
  background: linear-gradient(90deg, #18c8f5, #2788ff);
  box-shadow: 0 8px 24px rgba(20, 120, 255, .22);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.emw-site-shell__menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.emw-site-shell__menu-toggle > span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: currentColor;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.emw-cat-shell-main {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(34px, 5vw, 64px) 22px clamp(58px, 7vw, 90px);
  background:
    radial-gradient(circle at 82% 4%, rgba(24, 195, 245, .11), transparent 30%),
    radial-gradient(circle at 12% 36%, rgba(35, 130, 255, .10), transparent 28%),
    linear-gradient(180deg, #071426 0%, #040b17 100%);
}
.emw-cat__intro {
  padding: 34px 40px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(24,195,245,.22), transparent 33%),
    linear-gradient(135deg, #071426, #0b2855 72%, #08498d);
}
.emw-cat__intro > span {
  display: block;
  margin-bottom: 7px;
  color: #68ddff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.emw-cat__intro h1 {
  margin: 0 0 9px;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.emw-cat__intro p {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.65;
}

.emw-site-shell__footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 64px 22px 26px;
  color: #b9c7da;
  background: #08111f;
  border-top: 1px solid rgba(127, 162, 208, .15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.emw-site-shell__footer-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(130px, .72fr));
  gap: clamp(30px, 5vw, 70px);
}
.emw-site-shell__footer .emw-site-shell__brand { margin-bottom: 22px; }
.emw-site-shell__footer-brand h2 { margin: 0 0 10px; color: #fff; font-size: 20px; }
.emw-site-shell__footer-brand p { max-width: 430px; margin: 0 0 18px; line-height: 1.7; }
.emw-site-shell__email { color: #65d8fb; text-decoration: none; font-weight: 700; }
.emw-site-shell__footer h3 { margin: 4px 0 17px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.emw-site-shell__footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.emw-site-shell__footer-grid > div:not(:first-child) a { margin: 0 0 11px; color: #aebbd0; text-decoration: none; font-size: 14px; }
.emw-site-shell__footer a:hover { color: #fff; }
.emw-site-shell__footer-bottom {
  width: min(1160px, 100%);
  margin: 48px auto 0;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(127, 162, 208, .13);
  color: #7f8da4;
  font-size: 13px;
}
.emw-site-shell__footer-bottom p { margin: 0; }

body.emw-cat-page.emw-cat-contrast-light .emw-cat-shell-main {
  background: linear-gradient(180deg, #eaf3ff, #f6f9fd);
}
body.emw-cat-page.emw-cat-contrast-light .emw-site-shell__header { background: rgba(255,255,255,.97); color: #142033; }
body.emw-cat-page.emw-cat-contrast-light .emw-site-shell__brand,
body.emw-cat-page.emw-cat-contrast-light .emw-site-shell__theme { color: #142033; }
body.emw-cat-page.emw-cat-contrast-light .emw-site-shell__links a { color: #52617b; }
body.emw-cat-page.emw-cat-contrast-light .emw-site-shell__links a.is-current { color: #142033; background: #edf4ff; }

@media (max-width: 1060px) {
  .emw-site-shell__nav { grid-template-columns: auto 1fr auto; }
  .emw-site-shell__menu-toggle { display: block; justify-self: end; }
  .emw-site-shell__links {
    display: none;
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(127, 162, 208, .18);
    border-radius: 14px;
    background: #111b2b;
    box-shadow: 0 22px 55px rgba(0,0,0,.34);
  }
  .emw-site-shell__links.is-open { display: flex; }
  .emw-site-shell__links a { justify-content: space-between; }
  .emw-site-shell__actions { grid-column: 3; }
  .emw-site-shell__theme { display: none; }
}
@media (max-width: 760px) {
  body.admin-bar .emw-site-shell__header { top: auto; }
  .emw-site-shell__nav { width: min(100% - 24px, 1240px); min-height: 68px; gap: 10px; }
  .emw-site-shell__wordmark { font-size: 17px; }
  .emw-site-shell__brand-mark { width: 39px; }
  .emw-site-shell__cta { display: none; }
  .emw-site-shell__actions { display: none; }
  .emw-site-shell__links { top: 68px; }
  .emw-cat-shell-main { padding-left: 12px; padding-right: 12px; }
  .emw-cat__intro { padding: 27px 20px 24px; }
  .emw-site-shell__footer-grid { grid-template-columns: 1fr 1fr; }
  .emw-site-shell__footer-brand { grid-column: 1 / -1; }
  .emw-site-shell__footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .emw-site-shell__footer-grid { grid-template-columns: 1fr; }
  .emw-site-shell__footer-brand { grid-column: auto; }
}

.emw-cat,
.emw-cat * { box-sizing: border-box; }
.emw-cat {
  --emw-blue: #1478ff;
  --emw-cyan: #18c3f5;
  --emw-navy: #071426;
  --emw-ink: #172033;
  --emw-muted: #657188;
  --emw-line: #dbe4f1;
  --emw-soft: #f5f8fc;
  --emw-danger: #b42318;
  --emw-success: #067647;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 58px;
  border: 1px solid rgba(20, 120, 255, .16);
  border-radius: 18px;
  overflow: hidden;
  color: var(--emw-ink);
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 20, 38, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.emw-cat button,
.emw-cat input,
.emw-cat textarea,
.emw-cat select { font: inherit; }
.emw-cat [hidden] { display: none !important; }
.emw-cat__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.emw-cat__step-heading > span,
.emw-cat__success > span,
.emw-cat__module-heading > span {
  display: block;
  margin-bottom: 7px;
  color: #68ddff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.emw-cat__progress { padding: 24px 40px 18px; border-bottom: 1px solid var(--emw-line); }
.emw-cat__progress-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: var(--emw-muted); }
.emw-cat__progress-row strong { color: var(--emw-blue); }
.emw-cat__bar { height: 8px; overflow: hidden; border-radius: 999px; background: #e8eef8; }
.emw-cat__bar span { display: block; width: 11.111%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--emw-blue), var(--emw-cyan)); transition: width .25s ease; }
.emw-cat__status { margin: 20px 40px 0; padding: 14px 16px; border: 1px solid #b9d7ff; border-radius: 12px; background: #eef6ff; color: #174b8c; font-weight: 650; }
.emw-cat__status--error { border-color: #f4b5af; background: #fff1f0; color: var(--emw-danger); }
.emw-cat__status--success { border-color: #a6e1c7; background: #ecfdf3; color: var(--emw-success); }
.emw-cat__status--info { border-color: #b9d7ff; background: #eef6ff; color: #174b8c; }
.emw-cat__saved { margin: 20px 40px 0; padding: 20px; border: 1px solid #b9d7ff; border-radius: 16px; background: linear-gradient(135deg,#f5faff,#eef6ff); }
.emw-cat__saved > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.emw-cat__saved p { margin: 0; color: var(--emw-muted); }
.emw-cat__saved dl,
.emw-cat__success dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.emw-cat__saved dl div,
.emw-cat__success dl div { padding: 12px 14px; border: 1px solid var(--emw-line); border-radius: 12px; background: #fff; }
.emw-cat dt { color: var(--emw-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.emw-cat dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.emw-cat__saved label { display: block; color: var(--emw-muted); font-size: 13px; font-weight: 700; }
.emw-cat__saved input { width: 100%; margin: 6px 0 10px; }
.emw-cat__saved small { display: block; margin-top: 10px; color: var(--emw-muted); }
.emw-cat__form { padding: 34px 40px 0; }
.emw-cat__step-heading { margin-bottom: 28px; }
.emw-cat__step-heading > span { color: #8090aa; }
.emw-cat__step-heading h2 { margin: 0 0 7px; color: var(--emw-ink); font-size: clamp(24px,3vw,34px); }
.emw-cat__step-heading p { margin: 0; color: var(--emw-muted); }
.emw-cat__fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.emw-cat__field { min-width: 0; }
.emw-cat__field--textarea,
.emw-cat__field--checkbox,
.emw-cat__field--radio,
.emw-cat__field--single_checkbox,
.emw-cat__field--file { grid-column: 1 / -1; }
.emw-cat__label { display: block; margin-bottom: 8px; color: #39445a; font-weight: 750; }
.emw-cat__label b,
.emw-cat__check b { color: var(--emw-danger); }
.emw-cat input[type="text"],
.emw-cat input[type="email"],
.emw-cat input[type="url"],
.emw-cat input[type="password"],
.emw-cat textarea,
.emw-cat select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd6e5;
  border-radius: 11px;
  outline: none;
  color: var(--emw-ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.emw-cat textarea { min-height: 130px; resize: vertical; }
.emw-cat input:focus,
.emw-cat textarea:focus,
.emw-cat select:focus { border-color: var(--emw-blue); box-shadow: 0 0 0 4px rgba(20,120,255,.11); }
.emw-cat__choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.emw-cat__check { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 13px; border: 1px solid var(--emw-line); border-radius: 11px; background: #fff; cursor: pointer; }
.emw-cat__check:hover { border-color: #9ec9ff; background: #f8fbff; }
.emw-cat__check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--emw-blue); flex: 0 0 auto; }
.emw-cat__check:has(input:checked) { border-color: #72b1ff; background: #eef6ff; box-shadow: inset 0 0 0 1px rgba(20,120,255,.08); }
.emw-cat__check--confirm { min-height: 68px; align-items: center; padding: 16px 18px; }
.emw-cat__help { display: block; margin-top: 7px; color: #8995aa; font-size: 13px; }
.emw-cat__error { min-height: 0; margin-top: 6px; color: var(--emw-danger); font-size: 13px; font-weight: 700; }
.emw-cat__field--invalid input,
.emw-cat__field--invalid textarea,
.emw-cat__field--invalid select,
.emw-cat__field--invalid .emw-cat__check { border-color: #e47b72; }
.emw-cat__module-heading { grid-column: 1 / -1; margin-top: 14px; padding: 18px 20px; border-radius: 14px; color: #fff; background: linear-gradient(120deg,#0b2855,#0c5cae); }
.emw-cat__module-heading > span { margin-bottom: 3px; color: #75e4ff; }
.emw-cat__module-heading h3 { margin: 0; color: #fff; font-size: 19px; }
.emw-cat__empty-services { padding: 16px; border: 1px dashed #9fc9ff; border-radius: 12px; background: #f2f8ff; color: #3b5f8e; }
.emw-cat__actions { display: flex; justify-content: space-between; gap: 16px; margin: 34px -40px 0; padding: 22px 40px; border-top: 1px solid var(--emw-line); background: #fafcff; }
.emw-cat__actions-right { display: flex; gap: 10px; }
.emw-cat__button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 780; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.emw-cat__button:hover:not(:disabled) { transform: translateY(-1px); }
.emw-cat__button:disabled { opacity: .6; cursor: wait; }
.emw-cat__button--primary { color: #041424; background: linear-gradient(90deg,#19cff7,#2382ff); box-shadow: 0 9px 25px rgba(20,120,255,.2); }
.emw-cat__button--secondary { border-color: #aac8ef; color: #16467e; background: #fff; }
.emw-cat__button--ghost { border-color: transparent; color: #52617b; background: transparent; }
.emw-cat__upload { margin-top: 10px; }
.emw-cat input[type="file"] { width: 100%; padding: 14px; border: 1px dashed #aac5e7; border-radius: 11px; background: #f8fbff; }
.emw-cat__file-list { margin-top: 22px; }
.emw-cat__file { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 15px; border: 1px solid var(--emw-line); border-radius: 11px; background: #fafcff; }
.emw-cat__file + .emw-cat__file { margin-top: 8px; }
.emw-cat__file small { display: block; color: var(--emw-muted); }
.emw-cat__file button { border: 0; color: var(--emw-danger); background: transparent; font-weight: 750; cursor: pointer; }
.emw-cat__review { display: grid; gap: 16px; margin-bottom: 24px; }
.emw-cat__review section { padding: 18px; border: 1px solid var(--emw-line); border-radius: 14px; background: #fafcff; }
.emw-cat__review h4 { margin: 0 0 12px; color: #20304c; }
.emw-cat__review dl { display: grid; gap: 9px; margin: 0; }
.emw-cat__review dl > div { display: grid; grid-template-columns: minmax(180px,32%) 1fr; gap: 16px; padding-top: 9px; border-top: 1px solid #e4ebf5; }
.emw-cat__review dd { white-space: pre-wrap; font-weight: 500; }
.emw-cat__success { padding: 44px 40px 50px; }
.emw-cat__success > span { color: var(--emw-success); }
.emw-cat__success h2 { max-width: 760px; margin: 0; font-size: clamp(25px,3.5vw,38px); }
.emw-cat__success p { color: var(--emw-muted); }
.emw-cat__honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 760px) {
  .emw-cat { margin: 0 auto 34px; border-radius: 14px; }
  .emw-cat__progress,
  .emw-cat__form,
  .emw-cat__success { padding-left: 20px; padding-right: 20px; }
  .emw-cat__status,
  .emw-cat__saved { margin-left: 20px; margin-right: 20px; }
  .emw-cat__fields { grid-template-columns: 1fr; }
  .emw-cat__field { grid-column: 1 / -1; }
  .emw-cat__choices { grid-template-columns: 1fr; }
  .emw-cat__actions { margin-left: -20px; margin-right: -20px; padding: 18px 20px; flex-direction: column-reverse; }
  .emw-cat__actions-right { width: 100%; }
  .emw-cat__actions-right .emw-cat__button { flex: 1; }
  .emw-cat__button--ghost { width: 100%; }
  .emw-cat__saved dl,
  .emw-cat__success dl { grid-template-columns: 1fr; }
  .emw-cat__review dl > div { grid-template-columns: 1fr; gap: 3px; }
  .emw-cat__progress-row { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .emw-cat *, .emw-cat *::before, .emw-cat *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* v0.9.5: plugin-owned document template and homepage-width shell reset. */
html:has(body.emw-cat-page),
body.emw-cat-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
body.emw-cat-page > .emw-site-shell__header,
body.emw-cat-page > .emw-cat-shell-main,
body.emw-cat-page > .emw-site-shell__footer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.emw-cat-page > .emw-site-shell__header .emw-site-shell__nav,
body.emw-cat-page > .emw-site-shell__footer .emw-site-shell__footer-grid,
body.emw-cat-page > .emw-site-shell__footer .emw-site-shell__footer-bottom {
  width: min(1240px, calc(100% - 40px));
  max-width: 1240px;
}
@media (max-width: 760px) {
  body.emw-cat-page > .emw-site-shell__header .emw-site-shell__nav,
  body.emw-cat-page > .emw-site-shell__footer .emw-site-shell__footer-grid,
  body.emw-cat-page > .emw-site-shell__footer .emw-site-shell__footer-bottom {
    width: min(100% - 24px, 1240px);
  }
}
