# Access card

A single white card with a title, a short subtitle and an arrow link, placed on its own in a section. Use it for one route into a product or strategy; several cards in a row are normally built with the Access cards collection instead.

## Screenshots

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

## What it looks like

A section with standard padding holding one white card. The card takes the full width on small screens and half the page measure from laptop. It has generous inner padding and a minimum height; the title and subtitle sit at the top and the arrow link is pinned to the bottom. With a single link the whole card is clickable and the arrow animates on hover. With no link, or more than one, the card is not clickable and the links show as separate arrow links. On a white page the white card is not distinguishable, as in the default screenshot; on Navy it stands out.

## Typography

- **Heading:** `h3`, always rendered as `<h3>`.
- **Subtitle (post-heading):** `p2`.
- **Card text:** Navy.

## Colours

`backgroundColour` fills the section behind the card, not the card itself, which is always White. The card text and link are always Navy. Use a background that contrasts with the white card, such as Navy, to make the card stand out.

**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 | Card title (`h3`) | Not shown |
| `postHeading` | Symbol | Subtitle under the title (`p2`) | Not shown |
| `links` | Array | Arrow link on the card; one link makes the whole card clickable | Card has no link |
| `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, also used in link tracking | No visible effect when empty |
| `backgroundColour` | Symbol | Fills the section behind the card | No fill |
| `textColour` | Symbol | Applied to the section; card text stays Navy | No visible effect on card text |

## Behaviour

- Exactly one link: card is one clickable link; more than one: card is static and links appear as a row.
- The heading is always `<h3>`, regardless of position.

## Impact of content changes

| Change | Result |
|--------|--------|
| Remove subtitle | Card shows title and link only; link stays at the bottom |
| Add a second link | Card stops being clickable as a whole |
| Set `backgroundColour` | Coloured band appears around the white card |
| Long title | Card grows taller than its minimum height |
