/*
Theme Name:   GeneratePress Child - Owners Representative NYC
Theme URI:    https://ownersrepresentative.nyc
Description:  Global design system for Owners Representative NYC on GeneratePress + GenerateBlocks.
Template:     generatepress
Version:      1.0.0
Text Domain:  or-nyc
*/

/*
 * Colors are GeneratePress global colors (Customizer > Colors), output as
 * --ivory, --ink, --bronze, --stone, --ivory-tonal, --body-grey.
 * Tenor Sans ships one weight (400). Nothing on the site is ever bold.
 */

/* ---------- Font ---------- */

@font-face {
	font-family: "Tenor Sans";
	src: url("assets/fonts/tenor-sans-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--or-font: "Tenor Sans", "Helvetica Neue", Arial, sans-serif;
	--or-label-size: 11px;
	--or-label-tracking: 0.26em;
}

html {
	font-synthesis: none; /* no faux bold or italic */
}

body,
button,
input,
select,
textarea {
	font-family: var(--or-font);
}

h1, h2, h3, h4, h5, h6,
b, strong, th, dt, legend,
button, .button,
input[type="submit"],
.wp-block-button__link,
.gb-button {
	font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
}

/* ---------- Utilities (use in GenerateBlocks via "Additional CSS class") ---------- */

/* Small label: uppercase, tracked, bronze. */
.or-label {
	margin-top: 0;
	margin-bottom: 0;
	font-size: var(--or-label-size);
	letter-spacing: var(--or-label-tracking);
	text-transform: uppercase;
	line-height: 1.6;
	color: var(--bronze);
}

/* Stem rule: the short ink divider from the brand kit (44 x 3 px). */
.or-stem {
	display: block;
	width: 44px;
	height: 3px;
	margin: 0;
	border: 0;
	background: var(--ink);
}

.or-stem--ivory { background: var(--ivory); }

.or-section-alt { background-color: var(--ivory-tonal); }

/* On tonal ivory, bronze is a shade darker for text contrast (#7F6143: 4.7:1 vs 4.1:1; AA needs 4.5:1).
   Covers the utility class, the editor palette class and GenerateBlocks' inline background. */
.or-section-alt .or-label,
.or-section-alt a:not(.gb-button):not(.wp-block-button__link):not(.or-btn),
.has-ivory-tonal-background-color .or-label,
.has-ivory-tonal-background-color a:not(.gb-button):not(.wp-block-button__link):not(.or-btn),
[style*="--ivory-tonal"] .or-label,
[style*="--ivory-tonal"] a:not(.gb-button):not(.wp-block-button__link):not(.or-btn) {
	color: #7F6143;
}

.or-section-alt a:not(.gb-button):not(.wp-block-button__link):not(.or-btn):hover,
.has-ivory-tonal-background-color a:not(.gb-button):not(.wp-block-button__link):not(.or-btn):hover,
[style*="--ivory-tonal"] a:not(.gb-button):not(.wp-block-button__link):not(.or-btn):hover {
	color: var(--ink);
}
.or-section-dark { background-color: var(--ink); color: var(--ivory); }
.or-section-dark h1, .or-section-dark h2, .or-section-dark h3,
.or-section-dark h4, .or-section-dark h5, .or-section-dark h6 { color: var(--ivory); }

/* On ink (dark sections, or "or-on-dark" for a dark strip inside a light section):
   small labels are stone, never bronze, and links are ivory. Selectors also beat the tonal-ivory rule above. */
.or-section-dark .or-label,
.or-on-dark .or-label,
.or-section-alt .or-on-dark .or-label,
.or-label--stone { color: var(--stone); }

.or-section-dark a:not(.or-btn),
.or-on-dark a:not(.or-btn),
.or-section-alt .or-on-dark a:not(.gb-button):not(.wp-block-button__link):not(.or-btn) { color: var(--ivory); }
.or-section-dark a:not(.or-btn):hover,
.or-section-dark a:not(.or-btn):focus,
.or-on-dark a:not(.or-btn):hover,
.or-on-dark a:not(.or-btn):focus,
.or-section-alt .or-on-dark a:not(.gb-button):not(.wp-block-button__link):not(.or-btn):hover { color: var(--stone); }

/* Links inside running text are underlined (buttons are not). */
.entry-content p a:not(.or-btn) {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

hr, .wp-block-separator { border-color: var(--stone); }

/* ---------- Header ---------- */

.site-header {
	border-bottom: 1px solid var(--stone);
}

/* ---------- Sticky header ----------
   The header stays at the top on every page: position: sticky (it is a direct child of <body>, so nothing clips it);
   on the front page position: fixed over the hero. assets/js/header.js adds "or-scrolled" past 40px (front page: 80px)
   and keeps two variables current:
   --or-admin-offset   visible height of the WordPress admin bar (0 when logged out, or once a phone has scrolled it away)
   --or-header-offset  admin bar + compact header: where sticky content and in-page anchors must start.
   The values below are used until the script runs. */
:root {
	--or-admin-offset: 0px;
	--or-header-offset: 97px;
}

body.admin-bar {
	--or-admin-offset: 32px;
	--or-header-offset: 129px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--or-admin-offset: 46px;
		--or-header-offset: 143px;
	}
}

.site-header {
	position: sticky;
	top: var(--or-admin-offset);
	z-index: 100;
}

/* Scrolled: 6px less padding top and bottom, a light shadow, and the same 12px given back as a margin below, so
   the page under the header doesn't move when it shrinks. */
.site-header.or-scrolled {
	margin-bottom: 12px;
	box-shadow: 0 2px 14px rgba(27, 27, 25, 0.06);
}

.site-header.or-scrolled .inside-header {
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-header.or-scrolled .or-brand__mark {
	width: 40px;
	height: 40px;
}

/* Transitions start after the first paint (class "or-header-ready"), so a page opened mid-scroll doesn't animate. */
.or-header-ready .site-header {
	transition: margin-bottom 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.or-header-ready .site-header .inside-header {
	transition: padding 0.2s ease;
}

.or-header-ready .site-header .or-brand__mark {
	transition: width 0.2s ease, height 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
	.or-header-ready .site-header,
	.or-header-ready .site-header .inside-header,
	.or-header-ready .site-header .or-brand__mark { transition: none; }
}

/* In-page anchors (guide headings, the FAQ, the Residential NYC menu, the skip link's #content) land just below
   the sticky header. ".entry-content [id]" outranks the 24px some page blocks set themselves (Residential's NYC
   sections), which predates the sticky header. */
:where([id]),
.entry-content [id] {
	scroll-margin-top: calc(var(--or-header-offset) + 16px);
}

/* The skip link shows above the sticky header when focused. */
.skip-link:focus {
	z-index: 1000;
}

/* Open mobile menu: lock the page behind it (class set by header.js). Only on <html>: hiding overflow on <body> too
   would make <body> the sticky header's scroll container and un-stick it. */
html.or-menu-open {
	overflow: hidden;
}

/* Front page only: the extra ink logo for the scrolled (ivory) header. */
.or-brand__mark--swap { display: none; }

.or-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--ink);
	text-decoration: none;
}

.or-brand:hover,
.or-brand:focus {
	color: var(--ink);
}

.or-brand__mark {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
}

.or-brand__text {
	display: flex;
	flex-direction: column;
	gap: 7px;
	line-height: 1;
}

.or-brand__name {
	font-size: 15px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	white-space: nowrap;
}

.or-brand__place {
	font-size: var(--or-label-size);
	letter-spacing: var(--or-label-tracking);
	text-transform: uppercase;
	color: var(--bronze);
}

.site-header .or-brand--paper,
.site-header .or-brand--paper:hover,
.site-header .or-brand--paper:focus,
.or-brand--paper,
.or-brand--paper:hover,
.or-brand--paper:focus {
	color: var(--ivory);
}

/* Menu: small tracked caps, like the labels. */
.main-navigation .main-nav ul li a {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.main-navigation .main-nav ul ul {
	border: 1px solid var(--stone);
	box-shadow: none;
}

/* Current section: a top-level item that is, or contains, the current page (e.g. "Services" on a service page,
   "Resources" on a guide, which is a child page of Resources). */
.main-navigation .main-nav > ul > li.current-menu-item:not(.or-nav-button) > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a,
.main-navigation .main-nav > ul > li.current-page-ancestor:not(.or-nav-button) > a {
	color: var(--bronze);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
}

/* Current page inside the Services dropdown: GeneratePress shows it bronze on tonal ivory (4.1:1). The darker
   bronze used on tonal ivory elsewhere brings it to 4.7:1 (AA). */
.site-header .main-navigation .main-nav ul ul li[class*="current-menu-"] > a { color: #7F6143; }

/* Dropdown label without a page ("Services", CSS class "or-menu-label"). */
.main-navigation .main-nav ul li.or-menu-label > a {
	cursor: default;
}

.main-navigation .main-nav ul ul li a {
	font-size: 11px;
	line-height: 1.5;
}

/* Contact button: last menu item, CSS class "or-nav-button". */
.main-navigation .main-nav > ul > li.or-nav-button {
	display: flex;
	align-items: center;
	margin-left: 16px;
}

.main-navigation .main-nav > ul > li.or-nav-button > a {
	padding: 0 26px;
	line-height: 44px;
	background-color: var(--ink);
	color: var(--ivory);
	transition: background-color 0.2s ease;
}

.main-navigation .main-nav > ul > li.or-nav-button > a:hover,
.main-navigation .main-nav > ul > li.or-nav-button > a:focus {
	background-color: var(--bronze);
	color: var(--ivory);
}

/* On the Contact page itself the button shows as active: bronze instead of ink. */
.main-navigation .main-nav > ul > li.or-nav-button.current-menu-item > a {
	background-color: var(--bronze);
	color: var(--ivory);
}

/* ---------- Footer ---------- */

.footer-widgets,
.site-info {
	color: var(--ivory);
}

/* Faint line where an ink section meets the ink footer. */
.site-footer {
	border-top: 1px solid rgba(217, 210, 196, 0.18);
}

.footer-widgets .widget-title,
.footer-widgets h2 {
	margin-bottom: 22px;
	font-size: var(--or-label-size);
	letter-spacing: var(--or-label-tracking);
	text-transform: uppercase;
	line-height: 1.6;
	color: var(--stone);
}

.footer-widgets ul {
	margin: 0;
	list-style: none;
}

.footer-widgets li {
	margin: 0 0 10px;
}

.footer-widgets a {
	color: var(--ivory);
	text-decoration: none;
}

.footer-widgets a:hover,
.footer-widgets a:focus {
	color: var(--stone);
	text-decoration: underline;
}

.footer-widgets .or-brand {
	margin-bottom: 22px;
}

.footer-widgets .or-footer-description {
	max-width: 34ch;
	color: var(--stone);
}

.site-info {
	border-top: 1px solid rgba(217, 210, 196, 0.18);
	font-size: 12px;
	letter-spacing: 0.08em;
}

.site-info .copyright {
	color: var(--stone);
}

/* Privacy Policy / Terms of Service, next to the copyright. */
.site-info .copyright-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 28px;
	row-gap: 10px;
}

.or-legal-links {
	display: flex;
	flex-wrap: wrap;
	column-gap: 22px;
	row-gap: 8px;
}

.site-info .or-legal-links a,
.site-info .or-legal-links a:visited { color: var(--stone); text-decoration: none; }
.site-info .or-legal-links a:hover,
.site-info .or-legal-links a:focus,
.site-info .or-legal-links a[aria-current="page"] { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Page building blocks (used with GenerateBlocks "global classes") ---------- */

/* Keyboard focus everywhere. */
:focus-visible {
	outline: 2px solid var(--bronze);
	outline-offset: 3px;
}

.or-section-dark :focus-visible,
.or-hero :focus-visible,
.home .site-header :focus-visible {
	outline-color: var(--ivory);
}

/* Content width: 1280px of content + 40px gutters (1360px), same as the header and footer. */
.or-wrap {
	box-sizing: border-box;
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 40px;
	padding-right: 40px;
}

/* Body copy. */
.or-body {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 16.5px;
	line-height: 1.8;
	color: var(--body-grey);
}

.or-section-dark .or-body { color: var(--stone); }

/* Placeholder text the client still has to supply. */
.or-ph {
	padding: 1px 5px;
	background: #EFE3C2;
	color: var(--ink);
	font-size: 0.92em;
}

/* Buttons (GenerateBlocks text block as <a>). */
.or-btn {
	display: inline-block;
	padding: 19px 34px;
	font-size: var(--or-label-size);
	letter-spacing: var(--or-label-tracking);
	text-transform: uppercase;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.or-btn--ivory,
.or-btn--ivory:visited { background-color: var(--ivory); color: var(--ink); }
.or-btn--ivory:hover,
.or-btn--ivory:focus { background-color: var(--bronze); color: var(--ivory); }

.or-btn--outline,
.or-btn--outline:visited { padding: 18px 32px; border: 1px solid var(--ivory); color: var(--ivory); }
.or-btn--outline:hover,
.or-btn--outline:focus { background-color: var(--ivory); color: var(--ink); }

.or-btn--ink,
.or-btn--ink:visited { padding: 16px 26px; background-color: var(--ink); color: var(--ivory); }
.or-btn--ink:hover,
.or-btn--ink:focus { background-color: var(--bronze); color: var(--ivory); }

/* Leg bullet (brand kit) in front of a heading. */
.or-bullet { display: inline-flex; flex: 0 0 auto; }
.or-bullet svg { display: block; width: 10px; height: 12px; }

/* Image that fills its (position: relative) parent. */
.or-cover-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

/* Hero: photo + ink overlay, darker on the left where the text sits. */
.or-hero { position: relative; overflow: hidden; }

.or-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(27, 27, 25, 0.86) 0%, rgba(27, 27, 25, 0.62) 45%, rgba(27, 27, 25, 0.18) 100%);
}

@media (max-width: 767px) {
	.or-hero-overlay { background: linear-gradient(90deg, rgba(27, 27, 25, 0.86) 0%, rgba(27, 27, 25, 0.7) 100%); }
}

/* Fact card: four figures with stone dividers; 2x2 on tablets, one column on phones. */
.or-facts > * { padding: 0 28px; border-right: 1px solid var(--stone); }
.or-facts > *:first-child { padding-left: 0; }
.or-facts > *:last-child { padding-right: 0; border-right: 0; }

@media (max-width: 1024px) {
	.or-facts > * { padding: 0 28px 0 0; }
	.or-facts > *:nth-child(2n) { padding: 0 0 0 28px; border-right: 0; }
}

@media (max-width: 767px) {
	.or-facts > *,
	.or-facts > *:nth-child(2n) { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--stone); }
	.or-facts > *:last-child { padding-bottom: 0; border-bottom: 0; }
}

/* Figures never break inside ("$115M" / "+"). Four across (1025px+), all four share one size that fits the
   narrowest column: 38px at 1025px up to 62px from about 1450px. Phones (52px) and tablets (64px) already fit. */
.or-facts > * > :first-child { white-space: nowrap; }
@media (min-width: 1025px) {
	.or-facts:not(.or-facts--3) > * > :first-child { font-size: clamp(38px, calc(5.5vw - 18px), 62px); }
}

/* Stat strip as a band under an inner-page hero: the homepage copy of the block overlaps its hero (negative top
   margin); on the inner pages it sits below the hero instead. */
.entry-content .or-stats--band { margin-top: 0; }

/* Three-figure fact strip: stays three across on tablets (spread evenly), one column on phones. */
@media (min-width: 768px) and (max-width: 1024px) {
	.or-facts--3 > *,
	.or-facts--3 > *:nth-child(2n) { padding: 0 28px; border-right: 1px solid var(--stone); }
	.or-facts--3 > *:first-child { padding-left: 0; }
	.or-facts--3 > *:last-child { padding-right: 0; border-right: 0; }
}

/* Headshot slot (About team cards): a stone placeholder until a photo is added. Drop an image block inside
   and it fills the frame, cropped from the top so faces stay in view; the placeholder label hides. */
.or-headshot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--stone);
}

.or-headshot img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}

.or-headshot:has(img) .or-headshot-ph { display: none; }

/* Initials placeholder (team member without a photo yet): same frame and size as a photo, as a tonal block
   with the initials in the site's typeface. Replaced by dropping an image block into the slot. */
.or-headshot--initials { background: var(--ivory-tonal); }
.or-headshot--initials .or-headshot-ph {
	font-family: var(--or-font);
	font-size: 96px;
	line-height: 1;
	letter-spacing: 0.08em;
	color: #7F6143;
}

@media (max-width: 767px) {
	.or-headshot--initials .or-headshot-ph { font-size: 72px; }
}

/* Client stories (Home): cards keep their normal width and centre as a group, so 1 card sits centred,
   2 make a centred pair and 3 fill the row. One column at tablet and phone widths, as before. */
.entry-content .or-stories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.entry-content .or-stories > * { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }

@media (max-width: 1024px) {
	.entry-content .or-stories > * { flex-basis: 100%; }
}

/* Guide card (Resources hub): the H3's link is the card's only link; its ::after stretches the click area
   over the whole card, so the card is clickable and the link's name is just the title. */
.or-guide-card { position: relative; }

.or-guide-card h3 a,
.or-section-alt .or-guide-card .gb-text a:not(.gb-button):not(.wp-block-button__link):not(.or-btn) {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--stone);
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

.or-guide-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.or-guide-card:hover h3 a,
.or-section-alt .or-guide-card:hover .gb-text a:not(.gb-button):not(.wp-block-button__link):not(.or-btn) { text-decoration-color: var(--bronze); }

.or-guide-card h3 a:focus-visible { outline: none; }
.or-guide-card:focus-within { outline: 2px solid var(--bronze); outline-offset: 3px; }

.or-guide-arrow { display: inline-flex; margin-top: auto; padding-top: 8px; }
.or-guide-arrow svg { display: block; }

/* Small uppercase text link with an underline rule ("See project"). */
.or-text-link,
.or-section-alt a.or-text-link:not(.gb-button):not(.wp-block-button__link):not(.or-btn) {
	align-self: flex-start;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--ink);
	color: var(--ink);
	text-decoration: none;
}

/* Link whose target doesn't exist yet (href "#", aria-disabled). */
.or-link-pending { cursor: default; }

/* Lead-in at the start of a list item ("Pre-construction consulting:"): a styled span, never a heading or bold. */
.or-lead { color: var(--ink); }

/* Approach phases: vertical dividers between columns. */
.or-phases > * { padding: 40px 32px 0; border-right: 1px solid rgba(217, 210, 196, 0.18); }
.or-phases > *:first-child { padding-left: 0; }
.or-phases > *:last-child { padding-right: 0; border-right: 0; }

@media (max-width: 1024px) {
	.or-phases > * { padding: 40px 32px 0 0; }
	.or-phases > *:nth-child(2n) { padding: 40px 0 0 32px; border-right: 0; }
}

@media (max-width: 767px) {
	.or-phases > *,
	.or-phases > *:nth-child(2n) { padding: 32px 0; border-right: 0; border-bottom: 1px solid rgba(217, 210, 196, 0.18); }
	.or-phases > *:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* Bronze dot (borough list and map pins). */
.or-dot {
	display: block;
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bronze);
	box-shadow: 0 0 0 5px rgba(138, 106, 74, 0.28);
}

/* Map: pins are positioned in % of a square box over the map image. */
.or-map { position: relative; aspect-ratio: 900 / 896; }

.or-map > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	display: block;
}

.or-pin {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translate(-6px, -50%);
}

.or-pin--left {
	flex-direction: row-reverse;
	transform: translate(calc(-100% + 6px), -50%);
}

.or-pin-label {
	font-size: 10.5px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--stone);
}

@media (max-width: 767px) {
	.or-pin { gap: 7px; }
	.or-pin-label { font-size: 9px; letter-spacing: 0.2em; }
}

/* Image card: title over a dark gradient at the bottom of the photo. */
.or-card-img { position: relative; overflow: hidden; }

.or-card-img::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60%;
	background: linear-gradient(0deg, rgba(27, 27, 25, 0.9), rgba(27, 27, 25, 0));
	pointer-events: none;
}

.or-card-img .or-card-title {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 1;
	margin: 0;
	color: var(--ivory);
}

/* Photo placeholder (stone box) until real project photos arrive. */
.or-photo-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--stone);
	text-align: center;
}

/* Pinwheel-style frame lines above and below a photo (brand crop device). */
.or-frame { position: relative; }

.or-frame::before,
.or-frame::after {
	content: "";
	position: absolute;
	height: 1px;
	background: var(--ink);
	pointer-events: none;
}

.or-frame::before { left: 0; right: 10px; top: -8px; }
.or-frame::after { left: 10px; right: 0; bottom: -8px; }

/* Stone frame lines (on ink, e.g. the service-page hero photo). */
.or-frame--stone::before,
.or-frame--stone::after { background: var(--stone); }
.or-frame--stone::before { left: 0; right: 12px; top: -10px; }
.or-frame--stone::after { left: 12px; right: 0; bottom: -10px; }

/* Breadcrumb trail (nav.or-label.or-breadcrumb); also feeds the BreadcrumbList schema. */
.or-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	column-gap: 10px;
	row-gap: 4px;
}

.or-breadcrumb a,
.or-section-dark .or-breadcrumb a { color: var(--stone); text-decoration: none; }
.or-breadcrumb a:hover,
.or-breadcrumb a:focus,
.or-section-dark .or-breadcrumb a:hover,
.or-section-dark .or-breadcrumb a:focus { color: var(--ivory); text-decoration: underline; }

/* In-page menu (anchor links to sections further down). */
.or-toc {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 10px;
	padding-left: 18px;
	border-left: 1px solid var(--stone);
}

.or-toc a,
.or-toc a:visited { color: var(--ink); font-size: 15px; text-decoration: none; }
.or-toc a:hover,
.or-toc a:focus { color: var(--bronze); text-decoration: underline; }

/* Guide article (OR Guide – Article): "On this page" menu left, article right. The menu is sticky on desktop
   and a normal list above the article under 1024px (set on the blocks). Article typography lives here so the
   Markdown-built blocks stay plain. */
.or-article p.gb-text {
	margin: 0 0 22px;
	font-size: 18px;
	line-height: 1.85;
	color: #3E3C37;
}

.or-article h2.gb-text {
	margin: 64px 0 22px;
	padding-top: 28px;
	border-top: 1px solid var(--ink);
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.2;
	scroll-margin-top: calc(var(--or-header-offset) + 16px);
}

.or-article h3.gb-text {
	margin: 36px 0 12px;
	font-size: 23px;
	line-height: 1.3;
}

.or-article ul,
.or-article ol {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.or-article li {
	display: flex;
	align-items: baseline;
	column-gap: 14px;
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
	color: #3E3C37;
}

.or-article > h2.gb-text:first-child { margin-top: 0; }
.or-article > :last-child { margin-bottom: 0; }

.or-article li > .gb-text { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
/* Bronze step numbers (01–06); `li >` so it beats the `li > .gb-text` colour reset above. */
.or-article li > .or-num { flex: 0 0 22px; color: var(--bronze); }
.or-article a:not(.or-btn) { color: var(--bronze); }
.or-article a:not(.or-btn):hover { color: var(--ink); }

/* Callout ([CALLOUT] paragraph): tonal ivory box with a bronze rule. */
.or-callout {
	margin: 36px 0 26px;
	padding: 34px 38px;
	border-left: 3px solid var(--bronze);
	background-color: var(--ivory-tonal);
}

.or-article .or-callout p.gb-text { margin: 0; color: var(--ink); }
.or-article .or-callout a:not(.or-btn) { color: #7F6143; }
.or-article .or-callout a:not(.or-btn):hover { color: var(--ink); }

@media (max-width: 767px) {
	.or-article p.gb-text,
	.or-article li { font-size: 17px; }
	.or-article h2.gb-text { margin-top: 48px; }
	.or-callout { padding: 26px 24px; }
}

/* Headshot placeholder in the author box. */
.or-headshot-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 96px;
	height: 96px;
	background-color: #E6E0D4;
}

/* Guide author box for a team member without a photo yet: the same 96px box with the initials, styled like the
   About page's initials placeholder. Replaced by swapping in an image block. */
.or-headshot-box--initials .or-headshot-ph {
	font-family: var(--or-font);
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0.08em;
	color: #7F6143;
}

/* 404 and search results (OR 404 pattern, search.php): ink hero, then an ivory list of plain links. */
.or-sys-hero {
	display: flex;
	flex-direction: column;
	row-gap: 26px;
	padding-top: 72px;
	padding-bottom: 88px;
}

.or-section-dark .or-breadcrumb [aria-current="page"] { color: var(--ivory); }

.or-sys-h1 {
	margin: 0;
	max-width: 900px;
	font-size: clamp(38px, 4.4vw, 60px);
	line-height: 1.1;
	color: var(--ivory);
}

.or-sys-line {
	margin: 0;
	max-width: 820px;
	font-size: 18px;
	line-height: 1.75;
	color: var(--stone);
}

.or-sys-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 6px;
}

.or-sys-links > .or-wrap {
	padding-top: 90px;
	padding-bottom: 100px;
}

.or-sys-links .or-label { margin-bottom: 28px; }

.or-sys-list,
.or-sys-results {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
}

.or-sys-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 48px;
}

.or-sys-list li,
.or-sys-results li {
	margin: 0;
	border-bottom: 1px solid var(--stone);
}

.or-sys-list a,
.or-sys-results a {
	color: var(--ink);
	text-decoration: none;
}

.or-sys-list a {
	display: block;
	padding: 22px 0;
	font-size: 20px;
	line-height: 1.3;
}

.or-sys-results { max-width: 760px; }
.or-sys-results li { padding: 28px 0; }
.or-sys-results a { font-size: 23px; line-height: 1.3; }
.or-sys-results .or-body { margin-top: 10px; }

.or-sys-list a:hover,
.or-sys-list a:focus,
.or-sys-results a:hover,
.or-sys-results a:focus { color: var(--bronze); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.or-sys-links .nav-links { display: flex; gap: 20px; margin-top: 32px; font-size: var(--or-label-size); letter-spacing: var(--or-label-tracking); text-transform: uppercase; }
.or-sys-links .nav-links a { color: var(--ink); }

@media (max-width: 1024px) {
	.or-sys-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.or-sys-hero { padding-top: 48px; padding-bottom: 64px; }
	.or-sys-line { font-size: 17px; }
	.or-sys-links > .or-wrap { padding-top: 72px; padding-bottom: 80px; }
	.or-sys-list { grid-template-columns: 1fr; }
	.or-sys-list a { font-size: 19px; }
	.or-sys-results a { font-size: 21px; }
}

/* Contact form (Fluent Forms) in the brand style. */
.or-form .fluentform .ff-el-group { margin-bottom: 0; }

/* Three columns like the reference; two on tablets, one on phones. */
.or-form .fluentform form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 1024px) {
	.or-form .fluentform form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.or-form .fluentform form { grid-template-columns: 1fr; }
}

/* Narrower panel (Contact page): two fields per row, one on phones. */
.or-form--2col .fluentform form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 767px) {
	.or-form--2col .fluentform form { grid-template-columns: 1fr; }
}

/* Success message after submit (shown in place of the form). */
.or-form .fluentform .ff-message-success {
	padding: 22px 24px;
	border: 1px solid var(--stone);
	border-left: 3px solid var(--bronze);
	background-color: var(--ivory);
	box-shadow: none;
	color: var(--ink);
	font-size: 17px;
}

.or-form .fluentform .ff-el-is-required.asterisk-right label::after { color: var(--bronze); }

.or-form .fluentform fieldset { display: contents; }

/* Fluent Forms' screen-reader legend must not take a grid cell. */
.or-form .fluentform legend { position: absolute; }

.or-form .fluentform .ff-el-group:has(textarea),
.or-form .fluentform .ff_submit_btn_wrapper,
.or-form .fluentform .ff-message-success { grid-column: 1 / -1; }

.or-form .fluentform .ff-el-input--label label {
	font-size: var(--or-label-size);
	letter-spacing: var(--or-label-tracking);
	text-transform: uppercase;
	font-weight: 400;
	color: var(--body-grey);
}

.or-form .fluentform .ff-el-form-control {
	padding: 14px 16px;
	border: 1px solid var(--stone);
	border-radius: 0;
	background-color: var(--ivory);
	color: var(--ink);
	font-family: var(--or-font);
	font-size: 16px;
	line-height: 1.4;
}

.or-form .fluentform .ff-el-form-control:focus {
	border-color: var(--bronze);
	box-shadow: none;
	outline: 2px solid var(--bronze);
	outline-offset: 1px;
}

.or-form .fluentform .ff-btn-submit,
.or-form .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	margin-top: 8px;
	padding: 20px 40px;
	border: 0;
	border-radius: 0;
	background-color: var(--ink);
	color: var(--ivory);
	font-family: var(--or-font);
	font-size: var(--or-label-size);
	letter-spacing: var(--or-label-tracking);
	text-transform: uppercase;
	font-weight: 400;
}

.or-form .fluentform .ff-btn-submit:hover,
.or-form .fluentform .ff-btn-submit:focus { background-color: var(--bronze); color: var(--ivory); opacity: 1; }


/* ---------- Front page: transparent header over the hero ---------- */

.home .site-header {
	position: fixed;
	top: var(--or-admin-offset);
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: 1px solid rgba(249, 247, 242, 0.18);
}

/* Fixed, so it takes no space: no margin to give back when it shrinks. */
.home .site-header.or-scrolled { margin-bottom: 0; }

.home .main-navigation,
.home .main-navigation .main-nav > ul,
.home .has-inline-mobile-toggle #site-navigation.toggled { background-color: transparent; }

.home .main-navigation .main-nav > ul > li > a,
.home .main-navigation .menu-toggle,
.home .mobile-menu-control-wrapper .menu-toggle { color: var(--ivory); }

.home .main-navigation .main-nav > ul > li:not(.or-nav-button) > a:hover,
.home .main-navigation .main-nav > ul > li:not(.or-nav-button) > a:focus,
.home .main-navigation .main-nav > ul > li.sfHover:not(.or-nav-button) > a { color: var(--stone); }

.home .main-navigation .main-nav > ul > li.or-nav-button > a {
	background-color: var(--ivory);
	color: var(--ink);
}

.home .main-navigation .main-nav > ul > li.or-nav-button > a:hover,
.home .main-navigation .main-nav > ul > li.or-nav-button > a:focus {
	background-color: var(--bronze);
	color: var(--ivory);
}

.home .or-brand--paper .or-brand__place,
.or-brand--paper .or-brand__place { color: var(--stone); }

/* Front page, scrolled past the hero's top: the standard ivory header (ink logo, ink menu, ink Contact button). */
.home .site-header.or-scrolled {
	background-color: var(--ivory);
	border-bottom-color: var(--stone);
}

.home .site-header.or-scrolled .or-brand--paper { color: var(--ink); }
.home .site-header.or-scrolled .or-brand--paper .or-brand__place { color: var(--bronze); }
.home .site-header.or-scrolled .or-brand__mark--paper { display: none; }
.home .site-header.or-scrolled .or-brand__mark--swap { display: block; }

.home .site-header.or-scrolled .main-navigation .main-nav > ul > li > a,
.home .site-header.or-scrolled .main-navigation .main-nav > ul > li:not(.or-nav-button) > a:hover,
.home .site-header.or-scrolled .main-navigation .main-nav > ul > li:not(.or-nav-button) > a:focus,
.home .site-header.or-scrolled .main-navigation .main-nav > ul > li.sfHover:not(.or-nav-button) > a,
.home .site-header.or-scrolled .main-navigation .menu-toggle,
.home .site-header.or-scrolled .mobile-menu-control-wrapper .menu-toggle { color: var(--ink); }

.home .site-header.or-scrolled .main-navigation .main-nav > ul > li.or-nav-button > a {
	background-color: var(--ink);
	color: var(--ivory);
}

.home .site-header.or-scrolled .main-navigation .main-nav > ul > li.or-nav-button > a:hover,
.home .site-header.or-scrolled .main-navigation .main-nav > ul > li.or-nav-button > a:focus {
	background-color: var(--bronze);
	color: var(--ivory);
}

/* ---------- Tablets and small laptops ---------- */

/* Compact menu so logo + menu + Contact fit on one row from 1024px.
   769-1023px: GeneratePress "Navigation drop point" (1023) stacks the menu under the logo. */
@media (min-width: 769px) and (max-width: 1199px) {
	.or-brand__name { font-size: 13px; letter-spacing: 0.16em; }

	.main-navigation .main-nav > ul > li > a {
		padding-left: 10px;
		padding-right: 10px;
		letter-spacing: 0.12em;
	}

	.main-navigation .main-nav > ul > li.or-nav-button { margin-left: 8px; }
	.main-navigation .main-nav > ul > li.or-nav-button > a { padding: 0 18px; }
}

/* ---------- Small screens ---------- */

@media (max-width: 768px) {
	.mobile-menu-control-wrapper .menu-toggle,
	.mobile-menu-control-wrapper .menu-toggle:hover,
	.mobile-menu-control-wrapper .menu-toggle:focus {
		background-color: transparent;
		color: var(--ink);
	}

	/* Open mobile menu: plain list with stone dividers. */
	.has-inline-mobile-toggle #site-navigation.toggled,
	.main-navigation.toggled .main-nav ul li,
	.main-navigation.toggled .main-nav ul li a,
	.main-navigation.toggled .main-nav ul li.sfHover > a {
		background-color: transparent;
	}

	.main-navigation.toggled .main-nav > ul > li:not(.or-nav-button) {
		border-top: 1px solid var(--stone);
	}

	.main-navigation.toggled .main-nav > ul > li > a {
		padding-left: 0;
		line-height: 56px;
	}

	.main-navigation.toggled .main-nav ul ul {
		border: 0;
	}

	.main-navigation.toggled .main-nav ul ul li a {
		padding: 12px 0 12px 16px;
		line-height: 1.5;
	}

	.main-navigation.toggled .main-nav > ul > li.or-nav-button > a {
		padding: 0 26px;
		line-height: 48px;
		background-color: var(--ink);
		color: var(--ivory);
	}

	.or-brand { gap: 12px; }
	.or-brand__mark { width: 38px; height: 38px; }
	.or-brand__name { font-size: 12px; letter-spacing: 0.18em; }
	.or-brand__place { font-size: 10px; }

	.main-navigation .main-nav > ul > li.or-nav-button {
		margin: 12px 0 16px;
	}

	.or-wrap {
		padding-left: 30px;
		padding-right: 30px;
	}

	/* Front page: the open mobile menu gets an ink panel so it reads over the photo. */
	.home .site-header:has(.main-navigation.toggled) { background-color: var(--ink); }
	.home .main-navigation.toggled .main-nav > ul > li:not(.or-nav-button) { border-top-color: rgba(217, 210, 196, 0.18); }
	.home .main-navigation.toggled .main-nav ul ul { background-color: transparent; }
	.home .main-navigation.toggled .main-nav ul ul li a { color: var(--ivory); }
	.home .main-navigation.toggled .main-nav > ul > li.or-nav-button > a { background-color: var(--ivory); color: var(--ink); }
	/* The toggle (now a close button) stays ivory on the ink panel, also when tapped: the generic small-screen
	   .menu-toggle:focus/:hover rule above would otherwise turn it ink-on-ink. (Launch fix 2026-11-20) */
	.home .site-header:not(.or-scrolled) .menu-toggle,
	.home .site-header:not(.or-scrolled) .menu-toggle:hover,
	.home .site-header:not(.or-scrolled) .menu-toggle:focus { color: var(--ivory); }

	/* Open menu inside the sticky header: never taller than the screen; it scrolls on its own. */
	.main-navigation.toggled .main-nav > ul {
		max-height: calc(100vh - var(--or-header-offset) - 16px);
		max-height: calc(100dvh - var(--or-header-offset) - 16px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	/* Front page scrolled (ivory header) with the menu open: the standard ivory panel, not the ink one. */
	.home .site-header.or-scrolled:has(.main-navigation.toggled) { background-color: var(--ivory); }
	.home .site-header.or-scrolled .main-navigation.toggled .main-nav > ul > li:not(.or-nav-button) { border-top-color: var(--stone); }
	.home .site-header.or-scrolled .main-navigation.toggled .main-nav ul ul li a { color: var(--ink); }
	.home .site-header.or-scrolled .main-navigation.toggled .main-nav > ul > li.or-nav-button > a { background-color: var(--ink); color: var(--ivory); }
}

/* Pricing "What the Fee Covers": three phase columns (01 Preconstruction / 02 Construction / 03 Closeout), styled like
   the homepage approach phases (bronze numbers, dividers between columns) on the light band. A thin rule sits above
   each list. One column at 1024px and below. (Trent's markup, 2026-11-18) */
.or-phase-cols > * { padding: 0 36px; border-right: 1px solid var(--stone); }
.or-phase-cols > *:first-child { padding-left: 0; }
.or-phase-cols > *:last-child { padding-right: 0; border-right: 0; }

@media (max-width: 1024px) {
	.or-phase-cols > *,
	.or-phase-cols > *:first-child,
	.or-phase-cols > *:last-child { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--stone); }
	.or-phase-cols > *:first-child { padding-top: 0; }
	.or-phase-cols > *:last-child { padding-bottom: 0; border-bottom: 0; }
}

.entry-content .or-phase-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--stone);
	display: flex;
	flex-direction: column;
	row-gap: 12px;
}

.entry-content .or-phase-list > li {
	position: relative;
	margin: 0;
	padding-left: 24px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--body-grey);
}

.entry-content .or-phase-list > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 10px;
	height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12'%3E%3Cpath d='M0 0H4L10 12H6Z' fill='%238A6A4A'/%3E%3C/svg%3E") no-repeat;
}

/* "Why us" grids with five cards (Commercial, Residential after the Track record card was removed): 3 + 2 on
   desktop (the last two share the row), 2 + 2 + 1 full width on tablets, one column on phones. No empty cells. */
@media (min-width: 1025px) {
	.entry-content .or-grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.entry-content .or-grid-5 > * { grid-column: span 2; }
	.entry-content .or-grid-5 > :nth-child(n+4) { grid-column: span 3; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.entry-content .or-grid-5 > :last-child { grid-column: 1 / -1; }
}

/* ---------- Mobile polish (2026-11-18) ---------- */

/* Stat strip (homepage block, 7 pages): 2x2 on phones as on tablets, instead of one column. Figures shrink with
   the screen so "$115M+" stays on one line in a half-width column. */
@media (max-width: 767px) {
	.entry-content .or-facts:not(.or-facts--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.or-facts:not(.or-facts--3) > *,
	.or-facts:not(.or-facts--3) > *:last-child { padding: 0 12px 0 0; border-right: 1px solid var(--stone); border-bottom: 0; }
	.or-facts:not(.or-facts--3) > *:nth-child(2n) { padding: 0 0 0 12px; border-right: 0; }
	.or-facts:not(.or-facts--3) > * > :first-child { font-size: clamp(24px, 7vw, 52px); }
	/* Labels: tighter tracking in the half-width columns, and words never split ("CONSTRUCTI / ON"). */
	.or-facts:not(.or-facts--3) > * > :not(:first-child) { font-size: 10px; letter-spacing: 0.1em; overflow-wrap: normal; word-break: normal; hyphens: manual; }
}

/* Home client review (the quote under the story cards): left-aligned on phones; centred from 600px. */
@media (max-width: 599px) {
	.entry-content .or-stories + figure { align-items: flex-start; text-align: left; }
}

/* Footer phone link: at least 44px tall to tap. The padding is cancelled by negative margins, so the layout and
   look don't change. */
.footer-widgets a[href^="tel:"] {
	display: inline-block;
	padding: 10px 0;
	margin: -10px 0;
	min-height: 44px;
	box-sizing: border-box;
}

/* Contact card email (connect@ownersrepresentative.nyc): one line on phones. Below 600px the size follows the
   card's width (about 14.5px at 360, 16px at 390, never above the 19px set on the block), so the address no
   longer breaks mid-word. */
@media (max-width: 599px) {
	.entry-content .gb-element-b85e19e1:has(> .gb-text-485a43e9) { container-type: inline-size; }
	.entry-content .gb-text-485a43e9 { white-space: nowrap; font-size: 15px; font-size: min(19px, 5.75cqi); }
}

/* Guide menu on phones: below 768px "On this page" is a button that opens and closes the list (closed by default,
   assets/js/guide-toc.js). The button is hidden from 768px, where the label and list show as before. */
.or-toc-toggle { display: none; }

@media (max-width: 767px) {
	.or-toc-box > .or-label:not(.or-toc-toggle) { display: none; }
	.or-toc-box > .or-toc-toggle,
	.or-toc-box > .or-toc-toggle:hover,
	.or-toc-box > .or-toc-toggle:focus {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		min-height: 44px;
		margin: 0;
		padding: 10px 0;
		border: 0;
		border-bottom: 1px solid var(--stone);
		border-radius: 0;
		background: none;
		color: var(--bronze);
		font-family: inherit;
		font-weight: inherit;
		text-align: left;
		cursor: pointer;
	}
	.or-toc-toggle::after {
		content: "";
		flex: none;
		width: 7px;
		height: 7px;
		margin: 0 4px 4px 0;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
	}
	.or-toc-open > .or-toc-toggle::after { margin-bottom: -4px; transform: rotate(-135deg); }
	.or-toc-box:not(.or-toc-open) > .or-toc { display: none; }
	.or-toc-box > .or-toc { margin-top: 16px; }
}

/* Contact form on narrow phones (320px): the one-column grid used `1fr`, which can't shrink below the widest
   field's content (the select's longest option), so the fields ran wider than the screen. The column and the
   fields may now shrink to the form's width. */
@media (max-width: 767px) {
	.or-form .fluentform form,
	.or-form--2col .fluentform form { grid-template-columns: minmax(0, 1fr); }
}
.or-form .fluentform form > *,
.or-form .fluentform fieldset > * { min-width: 0; }
.or-form .fluentform input,
.or-form .fluentform select,
.or-form .fluentform textarea { box-sizing: border-box; max-width: 100%; }
