# About philosophy

A text section with a heading and body that switches between a single-column layout and a two-column layout depending on how the body is written. Use it for the founding story and investment philosophy on About pages.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/about-philosophy-default.png) |
| Navy | ![Navy](../screenshots/components/about-philosophy-navy.png) |

## What it looks like

**Single column** (body has no Heading 3): the heading sits across the page measure, a thin notched rule runs beneath it, and the body follows on the right half of the page on laptop and larger. Full width below laptop. Paragraphs are separated by one blank line.

**Two columns** (body contains a Heading 3 with text before and after it): the heading and everything before the Heading 3 form the left half. The Heading 3 becomes the right half's title and the content after it, often a bulleted list, is the right half's body. The halves stack below laptop. A heading is required for this layout; without one the body shows as a single column.

In the navy screenshot the text is not visible because the preview text colour is Navy on a Navy fill. Always pair a dark background with a light text colour.

## Typography

- **Single column:** heading `h2`; body `p1`.
- **Two columns:** both titles `h3`; both bodies `p2`. Bullets are discs. A line break typed in the right title is kept.
- The heading renders as `<h1>` when this is the first block on the page, otherwise `<h2>`. The right title uses the same level.

## Colours

`backgroundColour` and `textColour` apply to the whole section. With only a background set, text switches to the palette's contrasting colour. The notched rule in single-column mode is always Navy.

**Valid values (both fields):** Navy, Dark Slate, Slate, Sea Glass, Cornflower, Ether, Mist, White, Graphite, Ink, Sky.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `heading` | Symbol | Title; also required for the two-column layout | No title, no rule; body only |
| `body` | RichText | Main copy; a Heading 3 inside triggers two columns | No body |
| `showHeading` | Boolean | No visible effect on this component | No visible effect |
| `anchor` | Symbol | Lets other links jump to this section | No visible effect when empty |
| `cmsLabel` | Symbol | Internal label | No visible effect when empty |
| `backgroundColour` | Symbol | Fills the section | No fill |
| `textColour` | Symbol | Text colour | Contrasting colour or inherited |

## Behaviour

- Two-column layout needs a Heading 3 that is not the first item and has content after it. A Heading 3 first or last in the body leaves the section in single column.
- First block on the page: heading is `<h1>`; otherwise `<h2>`.

## Impact of content changes

| Change | Result |
|--------|--------|
| Add a Heading 3 mid-body | Switches to two columns, with the Heading 3 as the right title |
| Remove the Heading 3 | Returns to single column |
| Remove heading | Title and rule vanish; two-column layout is no longer possible |
| Dark `backgroundColour` without `textColour` | Text flips to a light colour |
