/* Small additions on top of the copied Squarespace styles (the move off Squarespace, 2026-11-20). */
.header-nav .header-nav-item--folder:hover .header-nav-folder-content,
.header-nav .header-nav-item--folder:focus-within .header-nav-folder-content { display: block; pointer-events: auto; }

/* Contact form (replaces the Squarespace form block; sizes read from the live form 2026-11-20) */
.sqs-block-form .sqs-block-content { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.er-form { display: grid; gap: 19px; text-align: left; font-family: "Nunito Sans", sans-serif; font-size: 16px; color: #000; }
.er-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.er-form legend { padding: 0 0 4px; font-size: 16px; }
.er-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; } /* as Squarespace: 10px gap, boxes never wider than the form (2026-12-01) */
.er-form label { display: block; line-height: 24px; }
.er-form-row label { white-space: nowrap; }
.er-form .req { margin-left: .5em; font-size: 14.27px; opacity: .75; }
.er-form input, .er-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 5px 10px; font: inherit; line-height: 24px; color: #000; background: #f6f6f6; border: 1px solid transparent; border-radius: 10px; }
.er-form input { height: 36px; }
.er-form textarea { height: 100px; resize: vertical; }
.er-form input:focus, .er-form textarea:focus { outline: none; border-color: #000; }
.er-form .er-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.er-form-submit { justify-self: start; cursor: pointer; border: 0; border-radius: 6.4px; padding: 16px 22.4px; font: 600 20.13px "Nunito Sans", sans-serif; color: #f7f7f7; background: #d50101; }
@media (max-width: 1023px) { .er-form-submit { font-size: 18.4px; } }
.er-form-submit:hover { opacity: .85; }
.er-form-submit:disabled { opacity: .6; cursor: default; }
.er-form-status { min-height: 1.4em; margin: 0; }
.er-form-status:empty { display: none; } /* no empty row under SEND: Squarespace's form ends at the button (2026-12-01) */

/* Blog post "next post" arrow pokes 10-22px past the edge on phones (also on Squarespace) */
main { overflow-x: clip; }

/* Shape blocks: size Squarespace's script used to set */
svg.sqs-shape { width: 100%; height: 100%; }

/* Section dividers: the values Squarespace's script set on every section of this site */
[data-section-id] { --divider-height: 0px; --previous-section-divider-offset: 0px; }

/* HTML sitemap page (/sitemap) */
.er-sitemap { grid-column: 1 / -1; width: 100%; max-width: 900px; margin: 0 auto; padding: 4vw 6vw 8vw; box-sizing: border-box; }
.er-sitemap h2 { margin-top: 2em; }
.er-sitemap-list { list-style: none; margin: .5em 0 0; padding: 0; }
.er-sitemap-list li { margin: 0 0 1em; }
.er-sitemap-list a { font-weight: 600; }
.er-sitemap-list span { display: block; font-size: .9em; opacity: .75; margin-top: .15em; }
/* Terms of Service page (2026-12-01): long title words must not break mid-word on phones */
.er-legal h1 { font-size: clamp(2rem, 7.5vw, 4.4rem); text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: none; }
.er-legal h2 { text-wrap: balance; }
.er-legal p, .er-legal li { text-wrap: pretty; }
/* Contact form box: on Squarespace the form's content is only as tall as the form, and the block's own setting
   puts it at the bottom (desktop) or top (phone). Ours stretched to the full box and centred the form (2026-12-01). */
.sqs-block-form > .sqs-block-content { height: auto; flex: 0 0 auto; }

/* Project posts and /projects (scripts/posts.mjs; 2026-12-04) */
.er-post { max-width: 820px; }
.er-post .er-crumb { margin: 0 0 .75em; font-size: 15px; }
.er-post .er-crumb a { color: #d50101; }
.er-post figure { margin: 1.5em 0; }
.er-post img { display: block; width: 100%; height: auto; border-radius: 4px; }
.er-post h2 { margin-top: 1.6em; }
.er-post h3 { margin-top: 1.4em; }
.er-post-cta { margin: 1.4em 0; }
.er-post a.er-btn, .er-added a.er-btn { display: inline-block; padding: 16px 22.4px; border-radius: 6.4px; background: #d50101; color: #f7f7f7; font: 600 18.4px/1.2 "Nunito Sans", sans-serif; text-decoration: none; }
.er-post a.er-btn:hover, .er-added a.er-btn:hover { opacity: .85; }
.er-project-card { margin: 2.5em 0; }
.er-project-card h2 { margin: .8em 0 .3em; }
.er-project-card h2 a { color: inherit; text-decoration: none; }

/* one-line link sections (content/edits.json replaceSection; 2026-12-04) */
.er-note { padding-top: 2vw; padding-bottom: 2vw; text-align: center; }
@media (max-width: 767px) { .er-note { padding: 0 !important; text-align: left; } }
