/**
 * Shared design tokens + article content + custom block styles.
 * Mirrors html-theme SaaS Architecture Blog Detail content patterns.
 *
 * @package Algocept
 */

:root {
  --algocept-ink: #0b1220;
  --algocept-copy: #475569;
  --algocept-muted: #64748b;
  --algocept-line: #e2e8f0;
  --algocept-paper: #f4f9fc;
  --algocept-blue: #00a0e0;
  --algocept-blue-50: #e6f7fc;
  --algocept-navy: #0077a8;
  --algocept-violet: #7c3aed;
  --algocept-mint: #059669;
  --algocept-soft: 0 20px 60px rgba(0, 160, 224, 0.12);
  --algocept-radius: 0.75rem;
  --algocept-radius-lg: 1rem;
  --algocept-radius-xl: 1.5rem;
  --algocept-radius-2xl: 1rem; /* rounded-xl */
  --algocept-radius-3xl: 1.5rem;
}

/* ——— Article body (front-end .entry-content + editor canvas) ——— */

.entry-content,
.editor-styles-wrapper {
  color: var(--algocept-copy);
  font-size: 1rem;
  line-height: 2rem; /* leading-8 */
}

.entry-content > *:first-child,
.editor-styles-wrapper .is-root-container > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.editor-styles-wrapper p {
  margin-top: 0;
  margin-bottom: 0;
}

.entry-content p + p,
.editor-styles-wrapper p + p {
  margin-top: 1.5rem; /* mt-6 */
}

.entry-content a,
.editor-styles-wrapper a {
  color: var(--algocept-blue);
  text-decoration: none;
}

.entry-content a:hover,
.entry-content a:focus-visible,
.editor-styles-wrapper a:hover,
.editor-styles-wrapper a:focus {
  color: var(--algocept-navy);
  text-decoration: none;
}

/* Headings — prototype: mt-14 text-3xl font-bold tracking-tight text-ink */
.entry-content h2,
.editor-styles-wrapper h2 {
  margin-top: 3.5rem;
  margin-bottom: 0;
  color: var(--algocept-ink);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.entry-content h2 + p,
.entry-content h2 + ul,
.entry-content h2 + ol,
.entry-content h2 + .wp-block-list,
.entry-content h2 + .wp-block-group,
.editor-styles-wrapper h2 + p,
.editor-styles-wrapper h2 + ul,
.editor-styles-wrapper h2 + ol,
.editor-styles-wrapper h2 + .wp-block-list,
.editor-styles-wrapper h2 + .wp-block-group {
  margin-top: 1.25rem; /* mt-5 */
}

.entry-content h3,
.editor-styles-wrapper h3 {
  margin-top: 2.5rem;
  margin-bottom: 0;
  color: var(--algocept-ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.entry-content h3 + p,
.editor-styles-wrapper h3 + p {
  margin-top: 1rem;
}

.entry-content h4,
.editor-styles-wrapper h4 {
  margin-top: 2rem;
  color: var(--algocept-ink);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ——— Unordered lists: paper cards (prototype ul > li.rounded-xl.bg-paper) ——— */

.entry-content ul:not(.blocks-gallery-grid):not(.wp-block-gallery),
.editor-styles-wrapper ul:not(.blocks-gallery-grid):not(.wp-block-gallery),
.entry-content .wp-block-list:not([type]):where(:not(ol)),
.editor-styles-wrapper ul.wp-block-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space-y-3 */
}

.entry-content ul:not(.blocks-gallery-grid):not(.wp-block-gallery) > li,
.editor-styles-wrapper ul:not(.blocks-gallery-grid):not(.wp-block-gallery) > li,
.entry-content ul.wp-block-list > li,
.editor-styles-wrapper ul.wp-block-list > li {
  margin: 0;
  padding: 0.75rem 1.25rem; /* py-3 px-5 */
  border-radius: var(--algocept-radius-lg);
  background: var(--algocept-paper);
  color: var(--algocept-copy);
  line-height: 1.625;
}

.entry-content ul > li > strong,
.editor-styles-wrapper ul > li > strong,
.entry-content ul > li > b,
.editor-styles-wrapper ul > li > b {
  color: var(--algocept-ink);
  font-weight: 700;
}

/* Nested UL: slightly tighter cards, not recursive paper on paper overload */
.entry-content ul ul,
.editor-styles-wrapper ul ul {
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.entry-content ul ul > li,
.editor-styles-wrapper ul ul > li {
  background: #fff;
  border: 1px solid var(--algocept-line);
  padding: 0.625rem 1rem;
}

/* ——— Ordered lists: decimal checklist (prototype ol.list-decimal.pl-6.space-y-3) ——— */

.entry-content ol,
.editor-styles-wrapper ol,
.entry-content ol.wp-block-list,
.editor-styles-wrapper ol.wp-block-list {
  list-style: decimal;
  list-style-position: outside;
  margin: 1.25rem 0 0;
  padding-left: 1.5rem; /* pl-6 */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry-content ol > li,
.editor-styles-wrapper ol > li,
.entry-content ol.wp-block-list > li,
.editor-styles-wrapper ol.wp-block-list > li {
  margin: 0;
  padding: 0;
  color: var(--algocept-copy);
  line-height: 1.625;
}

.entry-content ol > li::marker,
.editor-styles-wrapper ol > li::marker {
  color: var(--algocept-ink);
  font-weight: 700;
}

/* Explicit list style variants */
.is-style-algocept-list-plain.wp-block-list,
.entry-content ul.is-style-algocept-list-plain,
.editor-styles-wrapper ul.is-style-algocept-list-plain {
  list-style: disc;
  padding-left: 1.25rem;
  display: block;
  gap: 0;
}

.is-style-algocept-list-plain > li,
.entry-content ul.is-style-algocept-list-plain > li,
.editor-styles-wrapper ul.is-style-algocept-list-plain > li {
  background: transparent;
  padding: 0.15rem 0;
  border-radius: 0;
}

.is-style-algocept-list-plain > li + li {
  margin-top: 0.5rem;
}

.is-style-algocept-list-check.wp-block-list,
.entry-content ol.is-style-algocept-list-check,
.editor-styles-wrapper ol.is-style-algocept-list-check {
  list-style: none;
  padding-left: 0;
}

.is-style-algocept-list-check > li,
.entry-content ol.is-style-algocept-list-check > li,
.editor-styles-wrapper ol.is-style-algocept-list-check > li {
  position: relative;
  padding: 0.75rem 1.25rem 0.75rem 2.75rem;
  border-radius: var(--algocept-radius-lg);
  background: var(--algocept-paper);
}

.is-style-algocept-list-check > li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--algocept-blue);
}

/* ——— Callout / practical rule (prototype border-l-4 border-blue bg-blue-50) ——— */

.entry-content blockquote:not(.is-style-algocept-branded-quote),
.editor-styles-wrapper blockquote:not(.is-style-algocept-branded-quote) {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  border: 0;
  border-left: 4px solid var(--algocept-blue);
  border-radius: 1rem;
  background: var(--algocept-blue-50);
  color: var(--algocept-ink);
  font-weight: 400;
  line-height: 1.625;
}

.entry-content blockquote strong,
.editor-styles-wrapper blockquote strong {
  color: var(--algocept-ink);
  font-weight: 700;
}

.entry-content figure {
  margin: 1.75rem 0 0;
}

.entry-content figcaption,
.editor-styles-wrapper figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--algocept-muted);
  text-align: center;
}

.entry-content table,
.editor-styles-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
}

.entry-content th,
.entry-content td,
.editor-styles-wrapper th,
.editor-styles-wrapper td {
  border: 1px solid var(--algocept-line);
  padding: 0.75rem 1rem;
  text-align: left;
}

.entry-content th,
.editor-styles-wrapper th {
  background: var(--algocept-paper);
  color: var(--algocept-ink);
  font-weight: 700;
}

.entry-content pre,
.entry-content code,
.editor-styles-wrapper pre,
.editor-styles-wrapper code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.entry-content pre,
.editor-styles-wrapper pre,
.editor-styles-wrapper .wp-block-code {
  overflow-x: auto;
  margin: 1.75rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--algocept-line);
  border-radius: var(--algocept-radius);
  background: var(--algocept-paper);
  color: var(--algocept-ink);
  font-size: 0.875rem;
  line-height: 1.6;
}

.entry-content :not(pre) > code,
.editor-styles-wrapper :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  background: var(--algocept-paper);
  border: 1px solid var(--algocept-line);
  font-size: 0.9em;
}

.entry-content hr,
.editor-styles-wrapper hr,
.editor-styles-wrapper .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--algocept-line);
  margin: 2.5rem 0 0;
}

.entry-content .alignwide {
  max-width: 64rem;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content .wp-block-button__link,
.entry-content .wp-element-button,
.editor-styles-wrapper .wp-block-button__link {
  display: inline-block;
  border-radius: var(--algocept-radius);
  background: var(--algocept-blue);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus-visible,
.entry-content .wp-element-button:hover,
.entry-content .wp-element-button:focus-visible,
.editor-styles-wrapper .wp-block-button__link:hover {
  background: var(--algocept-navy);
  text-decoration: none;
}

.entry-content .wp-block-image img,
.editor-styles-wrapper .wp-block-image img {
  border-radius: var(--algocept-radius-lg);
}

/* ——— Block styles ——— */

/* Lead = prototype intro: text-xl leading-relaxed text-ink */
.is-style-algocept-lead {
  margin-top: 0 !important;
  font-size: 1.25rem;
  line-height: 1.625;
  color: var(--algocept-ink);
  max-width: 48rem;
}

.is-style-algocept-eyebrow {
  margin-bottom: 0.5rem !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--algocept-blue);
}

.is-style-algocept-branded-quote {
  border: 0 !important;
  border-radius: var(--algocept-radius-3xl) !important;
  background: var(--algocept-ink) !important;
  color: #fff !important;
  padding: 2rem !important;
  box-shadow: var(--algocept-soft);
}

.is-style-algocept-branded-quote cite,
.is-style-algocept-branded-quote .wp-block-quote__citation {
  color: #99dff3;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Practical tip / callout — match prototype blue-50 rule box */
.is-style-algocept-callout {
  margin-top: 1.5rem;
  border: 0;
  border-left: 4px solid var(--algocept-blue);
  border-radius: 1rem;
  background: var(--algocept-blue-50);
  padding: 1.5rem;
  color: var(--algocept-ink);
  line-height: 1.625;
  box-shadow: none;
}

.is-style-algocept-note {
  margin-top: 1.5rem;
  border: 1px solid var(--algocept-line);
  border-left: 4px solid var(--algocept-violet);
  border-radius: 1rem;
  background: var(--algocept-paper);
  padding: 1.5rem;
  color: var(--algocept-ink);
  line-height: 1.625;
}

.is-style-algocept-outline-button .wp-block-button__link {
  background: transparent !important;
  color: var(--algocept-ink) !important;
  border: 1px solid var(--algocept-line);
}

.is-style-algocept-outline-button .wp-block-button__link:hover,
.is-style-algocept-outline-button .wp-block-button__link:focus-visible {
  border-color: var(--algocept-blue);
  color: var(--algocept-blue) !important;
  background: #fff !important;
}

.is-style-algocept-ink-button .wp-block-button__link {
  background: var(--algocept-ink) !important;
}

.is-style-algocept-ink-button .wp-block-button__link:hover,
.is-style-algocept-ink-button .wp-block-button__link:focus-visible {
  background: var(--algocept-navy) !important;
}

.is-style-algocept-rounded-image img {
  border-radius: var(--algocept-radius-xl);
  box-shadow: var(--algocept-soft);
}

.is-style-algocept-narrow {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Feature panel — prototype 3-up card cells */
.is-style-algocept-feature {
  border-radius: var(--algocept-radius-lg);
  background: #fff;
  border: 1px solid var(--algocept-line);
  padding: 1.25rem;
}

.is-style-algocept-feature strong {
  display: block;
  color: var(--algocept-ink);
}

.is-style-algocept-soft-separator {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--algocept-line), transparent);
}

/* CTA panel — prototype rounded-3xl bg-ink */
.is-style-algocept-cta {
  margin-top: 3.5rem;
  border-radius: 1.5rem;
  background: var(--algocept-ink);
  color: #fff;
  padding: 2rem;
}

@media (min-width: 640px) {
  .is-style-algocept-cta {
    padding: 2.5rem;
  }
}

.is-style-algocept-cta .is-style-algocept-eyebrow,
.is-style-algocept-cta p.is-style-algocept-eyebrow {
  color: #99dff3;
}

.is-style-algocept-cta h2,
.is-style-algocept-cta h3,
.is-style-algocept-cta p,
.is-style-algocept-cta a {
  color: #fff;
}

.is-style-algocept-cta p:not(.is-style-algocept-eyebrow) {
  color: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
  .entry-content .wp-block-button__link,
  .entry-content .wp-element-button {
    transition: none;
  }
}

/* ——— FAQ accordion (core/accordion) — branded collapsible list ——— */

.wp-block-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space-y-3 */
  margin-top: 2rem;
}

/* Each item reads like a white feature card */
.wp-block-accordion .wp-block-accordion-item {
  border: 1px solid var(--algocept-line);
  border-radius: var(--algocept-radius-xl);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-accordion .wp-block-accordion-item.is-open {
  border-color: #bae6f5;
  box-shadow: var(--algocept-soft);
}

/* Reset the article heading rhythm inside the card */
.wp-block-accordion .wp-block-accordion-heading {
  margin: 0 !important;
  color: var(--algocept-ink);
  font-size: inherit;
  letter-spacing: normal;
}

.wp-block-accordion .wp-block-accordion-heading__toggle {
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  color: var(--algocept-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: left;
}

.wp-block-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
  color: var(--algocept-blue);
  text-decoration: none;
}

.wp-block-accordion .wp-block-accordion-heading__toggle:focus-visible {
  outline: 2px solid var(--algocept-blue);
  outline-offset: -2px;
  border-radius: var(--algocept-radius-xl);
}

.wp-block-accordion .wp-block-accordion-heading__toggle-title {
  transition: color 0.15s ease;
}

/* + (collapsed) rotates to × (open) inside a soft blue chip.
   Higher specificity than core so the rotation + colour animate together. */
.wp-block-accordion .wp-block-accordion-item .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--algocept-blue-50);
  color: var(--algocept-blue);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wp-block-accordion .wp-block-accordion-item.is-open .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
  background: var(--algocept-blue);
  color: #fff;
}

/* Revealed answer */
.wp-block-accordion .wp-block-accordion-panel {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--algocept-line);
  color: var(--algocept-copy);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.wp-block-accordion .wp-block-accordion-panel > :first-child {
  margin-top: 0;
}

.wp-block-accordion .wp-block-accordion-panel > :last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-accordion .wp-block-accordion-item,
  .wp-block-accordion .wp-block-accordion-heading__toggle-title,
  .wp-block-accordion .wp-block-accordion-item .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
    transition: none;
  }
}

/* ——— Yoast FAQ (yoast/faq-block) — branded Q&A cards ——— */

/* Front end: .schema-faq.wp-block-yoast-faq-block · Editor: .schema-faq */
.schema-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space-y-3 — matches the core accordion */
  margin-top: 2rem;
}

.schema-faq .schema-faq-section {
  margin: 0;
  padding: 0;
  border: 1px solid var(--algocept-line);
  border-radius: var(--algocept-radius-xl);
  background: #fff;
  overflow: hidden;
  list-style: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schema-faq .schema-faq-section:hover {
  border-color: #bae6f5;
  box-shadow: var(--algocept-soft);
}

/* Question — reads as the card header, with a soft-blue chip accent */
.schema-faq .schema-faq-question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1.125rem 1.5rem;
  color: var(--algocept-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.schema-faq .schema-faq-question::before {
  content: "";
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--algocept-blue-50) center / 0.7rem no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512' fill='%2300A0E0'%3E%3Cpath d='M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64 0 21.8-11.1 42.1-29.6 54l-12.1 7.8C176.7 234.9 160 258.9 160 285.7V288c0 17.7 14.3 32 32 32s32-14.3 32-32v-2.3c0-12 6.2-23.3 16.5-29.9l12.1-7.8C283 226.9 304 193.1 304 160c0-70.7-57.3-128-128-128h-32C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zM176 480a32 32 0 1 0 0-64 32 32 0 0 0 0 64z'/%3E%3C/svg%3E");
}

/* Answer — revealed copy beneath a hairline rule */
.schema-faq .schema-faq-answer {
  margin: 0;
  padding: 1.25rem 1.5rem 1.5rem 4rem; /* indent to align under the question label */
  border-top: 1px solid var(--algocept-line);
  color: var(--algocept-copy);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.schema-faq .schema-faq-answer > :first-child {
  margin-top: 0;
}

.schema-faq .schema-faq-answer > :last-child {
  margin-bottom: 0;
}

/* Keep the brand blue for links inside answers */
.schema-faq .schema-faq-answer a {
  color: var(--algocept-blue);
}

.schema-faq .schema-faq-answer a:hover,
.schema-faq .schema-faq-answer a:focus-visible {
  color: var(--algocept-navy);
}

/* Editor-only: strip the default editor chrome around each section */
.editor-styles-wrapper .schema-faq .schema-faq-section {
  cursor: text;
}

@media (prefers-reduced-motion: reduce) {
  .schema-faq .schema-faq-section {
    transition: none;
  }
}

/* ——— Portfolio case study Gutenberg body ——— */

.algocept-portfolio-content {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.algocept-portfolio-content > .algocept-case-section {
  margin-top: 0;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .algocept-portfolio-content > .algocept-case-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .algocept-portfolio-content > .algocept-case-section {
    padding: 6rem 2rem;
  }
}

.algocept-portfolio-content > .algocept-case-section + .algocept-case-section {
  border-top: 1px solid var(--algocept-line);
}

.algocept-portfolio-content > .algocept-case-band {
  background: var(--algocept-paper);
  border-top: 1px solid var(--algocept-line);
  border-bottom: 1px solid var(--algocept-line);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.algocept-portfolio-content .algocept-case-section h2 {
  margin-top: 1rem !important;
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .algocept-portfolio-content .algocept-case-section h2 {
    font-size: 2.25rem;
  }
}

.algocept-portfolio-content .algocept-case-section h3 {
  margin-top: 0 !important;
  font-size: 1.125rem;
}

/* Delivered cards: CSS grid, ignore WP columns nowrap */
.algocept-portfolio-content .algocept-case-delivered,
.algocept-portfolio-content .algocept-case-delivered.wp-block-columns,
.algocept-portfolio-content .algocept-case-delivered.is-layout-flex {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.25rem !important;
  margin-top: 2.5rem;
  align-items: stretch;
  flex-wrap: unset;
}

@media (min-width: 640px) {
  .algocept-portfolio-content .algocept-case-delivered,
  .algocept-portfolio-content .algocept-case-delivered.wp-block-columns,
  .algocept-portfolio-content .algocept-case-delivered.is-layout-flex {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .algocept-portfolio-content .algocept-case-delivered,
  .algocept-portfolio-content .algocept-case-delivered.wp-block-columns,
  .algocept-portfolio-content .algocept-case-delivered.is-layout-flex {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.algocept-portfolio-content .algocept-case-delivered > .wp-block-column {
  flex-basis: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.algocept-portfolio-content .algocept-case-delivered .is-style-algocept-feature {
  height: 100%;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.algocept-portfolio-content .algocept-case-delivered .is-style-algocept-feature p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Highlights: match single-portfolio.php (2-col white cards + check icons) */
.algocept-portfolio-content .algocept-case-highlights,
.algocept-portfolio-content ul.algocept-case-highlights,
.algocept-portfolio-content ul.wp-block-list.algocept-case-highlights {
  list-style: none !important;
  margin: 2.5rem 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem !important;
  flex-direction: unset;
}

@media (min-width: 640px) {
  .algocept-portfolio-content .algocept-case-highlights,
  .algocept-portfolio-content ul.algocept-case-highlights,
  .algocept-portfolio-content ul.wp-block-list.algocept-case-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.algocept-portfolio-content .algocept-case-highlights > li,
.algocept-portfolio-content ul.algocept-case-highlights > li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 !important;
  padding: 1.25rem !important;
  border: 1px solid var(--algocept-line);
  border-radius: var(--algocept-radius-xl);
  background: #fff !important;
  color: var(--algocept-copy);
  font-size: 0.875rem;
  line-height: 1.625;
  position: relative;
}

.algocept-portfolio-content .algocept-case-highlights > li::before,
.algocept-portfolio-content .is-style-algocept-list-check > li::before {
  content: "";
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  border-radius: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2300A0E0'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
  position: static;
  left: auto;
  top: auto;
}

/* Legacy migrated checklist class → same card treatment */
.algocept-portfolio-content .is-style-algocept-list-check {
  list-style: none !important;
  margin-top: 2.5rem !important;
  padding-left: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem !important;
}

@media (min-width: 640px) {
  .algocept-portfolio-content .is-style-algocept-list-check {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.algocept-portfolio-content .is-style-algocept-list-check > li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 !important;
  border: 1px solid var(--algocept-line);
  background: #fff !important;
  border-radius: var(--algocept-radius-xl);
  padding: 1.25rem !important;
  font-size: 0.875rem;
  line-height: 1.625;
  position: relative;
}

.editor-styles-wrapper .algocept-case-band {
  background: var(--algocept-paper);
  padding: 1.5rem;
  border-radius: var(--algocept-radius-lg);
}

.editor-styles-wrapper .algocept-case-delivered {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem !important;
}

.editor-styles-wrapper .algocept-case-highlights {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem !important;
  list-style: none;
  padding-left: 0;
}
