/* SMART SYSTEMS DESK — COMPLETE ARTICLE STYLESHEET
   Built from the two original CSS files supplied on 15 October 2026.
   Designed for HTML with .ssd-case-study and .ssd-blog-article.
   Use within a <style> tag attached to a draft, not WordPress Additional CSS.
   Does not alter existing Polylang styling.
*/

/* =========================================================
   SMART SYSTEMS DESK — CASE STUDY
   SELF-HOSTING N8N FOR BUSINESS AUTOMATION
   ========================================================= */

.ssd-case-study {
  width: 100%;
  color: #243746;
  background: #ffffff;
}

.ssd-case-section {
  padding: 88px 24px;
}

.ssd-case-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.ssd-case-soft {
  background: #f4f7f8;
}

.ssd-case-navy {
  background: #243746;
  color: #ffffff;
}

.ssd-case-center {
  text-align: center;
}


/* =========================================================
   EYEBROWS
   ========================================================= */

.ssd-case-eyebrow {
  margin-bottom: 14px;
  color: #00767f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ssd-case-eyebrow-light {
  color: #9fd7da;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.ssd-case-study h1,
.ssd-case-study h2,
.ssd-case-study h3 {
  margin-top: 0;
  color: #243746;
}

.ssd-case-study h1 {
  max-width: 950px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ssd-case-study h2 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ssd-case-study h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}

.ssd-case-navy h2,
.ssd-case-navy h3 {
  color: #ffffff;
}

.ssd-case-heading {
  margin-bottom: 46px;
}

.ssd-case-heading-light h2 {
  color: #ffffff;
}


/* =========================================================
   BODY TEXT
   ========================================================= */

.ssd-case-study p {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.75;
}

.ssd-case-lead {
  max-width: 850px;
  font-size: 21px !important;
  line-height: 1.65 !important;
}

.ssd-case-copy {
  max-width: 700px;
}

.ssd-case-copy-wide {
  max-width: 900px;
}

.ssd-case-copy-light p {
  color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   HERO
   ========================================================= */

.ssd-case-hero {
  padding-top: 110px;
  padding-bottom: 92px;
  background:
    linear-gradient(
      135deg,
      rgba(244, 247, 248, 1) 0%,
      rgba(255, 255, 255, 1) 65%
    );
}

.ssd-case-hero-content {
  max-width: 1000px;
}


/* =========================================================
   HERO META
   ========================================================= */

.ssd-case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.ssd-case-meta-item {
  padding: 22px;
  border: 1px solid #dfe7e9;
  border-radius: 14px;
  background: #ffffff;
}

.ssd-case-meta-label {
  display: block;
  margin-bottom: 7px;
  color: #667985;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ssd-case-meta-item strong {
  display: block;
  color: #243746;
  font-size: 16px;
  line-height: 1.45;
}


/* =========================================================
   PROJECT SUMMARY
   ========================================================= */

.ssd-case-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.ssd-case-summary-text p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   TWO COLUMN SECTIONS
   ========================================================= */

.ssd-case-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 70px;
  align-items: start;
}


/* =========================================================
   HIGHLIGHT BOX
   ========================================================= */

.ssd-case-highlight {
  padding: 32px;
  border-left: 4px solid #00767f;
  border-radius: 12px;
  background: #f4f7f8;
}

.ssd-case-highlight-label {
  display: block;
  margin-bottom: 12px;
  color: #00767f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ssd-case-highlight p {
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}


/* =========================================================
   REQUIREMENTS GRID
   ========================================================= */

.ssd-case-requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ssd-case-requirement {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.ssd-case-requirement > span {
  display: inline-flex;
  margin-bottom: 24px;
  color: #9fd7da;
  font-size: 15px;
  font-weight: 700;
}

.ssd-case-requirement p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.65;
}


/* =========================================================
   SYSTEM FLOW
   ========================================================= */

.ssd-case-flow {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 48px;
}

.ssd-case-flow-item {
  min-height: 160px;
  padding: 24px 18px;
  border: 1px solid #dfe7e9;
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.ssd-case-flow-item span {
  display: flex;
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #00767f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.ssd-case-flow-item strong {
  display: block;
  margin-bottom: 7px;
  color: #243746;
  font-size: 16px;
}

.ssd-case-flow-item small {
  display: block;
  color: #667985;
  font-size: 13px;
  line-height: 1.45;
}

.ssd-case-flow-arrow {
  color: #00767f;
  font-size: 26px;
  font-weight: 700;
}


/* =========================================================
   IMAGES
   ========================================================= */

.ssd-case-media-section {
  padding-top: 48px;
  padding-bottom: 88px;
}

.ssd-case-figure {
  margin: 0 auto;
}

.ssd-case-figure-landscape {
  width: 100%;
  max-width: 1180px;
}

.ssd-case-image-frame {
  margin: 0 auto;
}

.ssd-case-image-frame-landscape {
  width: 100%;
}

.ssd-case-image-frame-landscape img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(36, 55, 70, 0.12);
}

.ssd-case-figure figcaption {
  max-width: 820px;
  margin: 18px auto 0;
  color: #667985;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}


/* =========================================================
   WORKFLOW / SETUP STEPS
   ========================================================= */

.ssd-case-steps {
  max-width: 920px;
}

.ssd-case-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid #dfe7e9;
}

.ssd-case-step:first-child {
  padding-top: 0;
}

.ssd-case-step:last-child {
  border-bottom: 0;
}

.ssd-case-step-number {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #00767f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.ssd-case-step p {
  margin-bottom: 0;
}


/* =========================================================
   TOOLS GRID
   ========================================================= */

.ssd-case-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.ssd-case-tools-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ssd-case-tool-card {
  padding: 30px;
  border: 1px solid #dfe7e9;
  border-radius: 16px;
  background: #ffffff;
}

.ssd-case-tool-card p {
  margin-bottom: 0;
  font-size: 16px;
}


/* =========================================================
   RESULT CARDS
   ========================================================= */

.ssd-case-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ssd-case-result-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 15px;
  padding: 26px;
  border: 1px solid #dfe7e9;
  border-radius: 14px;
  background: #ffffff;
}

.ssd-case-result-card > span {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5f3f4;
  color: #00767f;
  font-weight: 800;
}

.ssd-case-result-card p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.65;
}


/* RESULT CARDS INSIDE NAVY SECTION */

.ssd-case-navy .ssd-case-result-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.ssd-case-navy .ssd-case-result-card p {
  color: rgba(255, 255, 255, 0.9);
}

.ssd-case-navy .ssd-case-result-card > span {
  background: rgba(159, 215, 218, 0.15);
  color: #9fd7da;
}


/* =========================================================
   USE CASES
   ========================================================= */

.ssd-case-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.ssd-case-use-card {
  padding: 28px;
  border: 1px solid #dfe7e9;
  border-radius: 14px;
  background: #ffffff;
}

.ssd-case-use-card p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.65;
}


/* =========================================================
   CTA
   ========================================================= */

.ssd-case-cta {
  background: #eef5f5;
}

.ssd-case-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 60px;
  align-items: center;
}

.ssd-case-cta-inner h2 {
  margin-bottom: 18px;
}

.ssd-case-cta-inner p {
  max-width: 700px;
  margin-bottom: 0;
}

.ssd-case-cta-action {
  display: flex;
  justify-content: flex-end;
}

.ssd-case-button {
  display: inline-flex;
  min-width: 190px;
  padding: 16px 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.ssd-case-button-primary {
  background: #00767f;
  color: #ffffff !important;
}

.ssd-case-button-primary:hover {
  background: #005f66;
  color: #ffffff !important;
  transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

  .ssd-case-meta {
    grid-template-columns: 1fr;
  }

  .ssd-case-summary-grid,
  .ssd-case-two-column {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .ssd-case-requirements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssd-case-flow {
    grid-template-columns: 1fr;
  }

  .ssd-case-flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .ssd-case-tools-grid,
  .ssd-case-tools-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssd-case-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssd-case-cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ssd-case-cta-action {
    justify-content: flex-start;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .ssd-case-section {
    padding: 64px 20px;
  }

  .ssd-case-hero {
    padding-top: 76px;
    padding-bottom: 64px;
  }

  .ssd-case-study h1 {
    font-size: 40px;
  }

  .ssd-case-study h2 {
    font-size: 31px;
  }

  .ssd-case-lead {
    font-size: 19px !important;
  }

  .ssd-case-study p {
    font-size: 17px;
  }

  .ssd-case-requirements-grid,
  .ssd-case-result-grid,
  .ssd-case-tools-grid,
  .ssd-case-tools-grid-four,
  .ssd-case-use-grid {
    grid-template-columns: 1fr;
  }

  .ssd-case-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ssd-case-media-section {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .ssd-case-image-frame-landscape img {
    border-radius: 12px;
  }

  .ssd-case-cta-action,
  .ssd-case-button {
    width: 100%;
  }
}

/* Supplemental classes present in the second original stylesheet */
.ssd-case-image-placeholder {
  display: flex;
  min-height: 420px;
  padding: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px dashed #c9d5d9;
  border-radius: 18px;
  background: #f8fafb;
  text-align: center;
}

.ssd-case-image-placeholder span {
  display: inline-block;
  margin-bottom: 12px;
  color: #00767f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ssd-case-image-placeholder strong {
  margin-bottom: 10px;
  color: #243746;
  font-size: 24px;
}

.ssd-case-image-placeholder p {
  max-width: 520px;
  margin-bottom: 0;
  color: #667985;
  font-size: 16px;
}

.ssd-case-figure figcaption {
  margin-top: 14px;
  color: #667985;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* When real images are added */

.ssd-case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(36, 55, 70, 0.1);
}

/* Generated blog article compatibility: Claude outputs h3+p cards without icon spans. */
.ssd-blog-article .ssd-case-result-card {
  display: block;
}
.ssd-blog-article .ssd-case-result-card h3 {
  margin-bottom: 12px;
}

/* Claude outputs heading, intro and button as three CTA children. */
.ssd-blog-article .ssd-case-cta-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 40px;
  row-gap: 18px;
}
.ssd-blog-article .ssd-case-cta-inner > h2,
.ssd-blog-article .ssd-case-cta-inner > p {
  grid-column: 1;
}
.ssd-blog-article .ssd-case-cta-inner > .ssd-case-cta-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
.ssd-blog-article .ssd-case-step > div {
  font-size: 18px;
  line-height: 1.75;
}
@media (max-width: 1024px) {
  .ssd-blog-article .ssd-case-cta-inner { grid-template-columns: 1fr; }
  .ssd-blog-article .ssd-case-cta-inner > h2,
  .ssd-blog-article .ssd-case-cta-inner > p,
  .ssd-blog-article .ssd-case-cta-inner > .ssd-case-cta-action {
    grid-column: 1;
    grid-row: auto;
  }
}
@media (max-width: 767px) {
  .ssd-blog-article .ssd-case-step > div { font-size: 17px; }
}
