/* ==========================================================================
   TriangleClick – Single Project template (Theme Builder #498): supplementary CSS
   --------------------------------------------------------------------------
   Layout, spacing, colours, typography, radii, image sizing, responsive
   behaviour and hiding of empty sections are all set with native Elementor
   controls (incl. Display Conditions). These rules cover only what
   Elementor has no control for.

   How it loads: functions.php enqueues this file only on single Project
   pages (post type "case-studies"), handle "triangleclick-project-detail",
   after Elementor's own CSS.

   Scope: every selector starts with a tc-project-* class, so nothing here
   reaches the header, footer, the mobile off-canvas popup (#61) or other
   pages.
   ========================================================================== */

/* 1. Project body (Post Content widget): spacing between paragraphs and
      lists, as on the reference (20px), and list indentation. The Post
      Content widget has no paragraph-spacing or list controls, and the
      theme's default paragraph margin is 0.9rem.
      Class "tc-project-body" is on the Post Content widget:
      Post Content > Advanced > CSS Classes. */
.tc-project-body p,
.tc-project-body ul,
.tc-project-body ol {
	margin: 0 0 20px;
}

.tc-project-body ul,
.tc-project-body ol {
	padding-left: 20px;
}

.tc-project-body :is(p, ul, ol):last-child {
	margin-bottom: 0;
}

/* 2. Intro panel: Text Editor's "Paragraph Spacing" control also adds the
      gap after the last paragraph, which would make the panel one line
      taller than the reference. There is no control to exclude the last
      paragraph.
      Class "tc-project-intro-text" is on the Text Editor widget inside the
      intro panel (class "tc-project-intro"): Advanced > CSS Classes.
      Four classes are needed to outrank Elementor's own per-element
      paragraph-spacing rule. */
.tc-project-intro .elementor-widget-text-editor.tc-project-intro-text p:last-child {
	margin-block-end: 0;
}
