/*
 * Property management.
 *
 * Two jobs, one file. The first is the small public page: the available houses,
 * what the service is, and the two forms. The second is the label that appears
 * on a managed building wherever it is already listed, because a building is
 * still an ordinary listing and the only public difference is that label.
 *
 * Everything is namespaced `duncan-mgmt-` or `duncan-units` on purpose. The
 * theme's main.css is a compiled artifact and cannot be rebuilt here; a new
 * stylesheet that reached into `.card` or `.btn-primary` would be a second
 * source of truth for components this file does not own.
 *
 * The palette is the site's: ink for text, sand for paper, azure for the one
 * action on a screen, brand green only for the small confirmation marks.
 */

/* ── The label ──────────────────────────────────────────────────────────── */

.duncan-managed-badge {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.3rem;
	border: 1px solid rgba(20, 24, 26, 0.12);
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.82);
	padding: 0.18rem 0.55rem 0.18rem 0.4rem;
	color: var(--ink-800);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
}

.duncan-managed-badge svg {
	width: 12px;
	height: 12px;
	color: var(--brand-600);
}

.duncan-entry__chip--managed {
	border: 1px solid rgba(15, 81, 50, 0.18);
	background: #eaf3ee;
	color: var(--brand-700);
	font-weight: 700;
}

/* The count on the management grid, beneath the headline rent. Green when
   there is something free, quiet ink when the building is fully let. */
.duncan-entry__managed-note {
	margin-top: 0.22rem;
	color: var(--brand-700);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}

.duncan-entry__managed-note.is-full {
	color: var(--ink-500);
}

/* ── The page frame ─────────────────────────────────────────────────────── */

.duncan-mgmt-wrap {
	margin-inline: auto;
	width: 100%;
	max-width: 1080px;
	padding-inline: 1rem;
}

@media (min-width: 640px) {
	.duncan-mgmt-wrap {
		padding-inline: 1.5rem;
	}
}

.duncan-mgmt-section {
	padding-block: 3rem;
}

@media (min-width: 768px) {
	.duncan-mgmt-section {
		padding-block: 4rem;
	}
}

.duncan-mgmt-section--paper {
	background: var(--sand-100);
	border-block: 1px solid var(--sand-200);
}

/*
 * Section introductions are centred as a group.
 *
 * The grids and forms under them keep their own left edge; it is the eyebrow,
 * the heading and the sentence that follows that sit on the page's centre line.
 */
.duncan-mgmt-head {
	max-width: 46rem;
	margin-inline: auto;
	margin-bottom: 1.75rem;
	text-align: center;
}

.duncan-mgmt-h2 {
	margin-top: 0.5rem;
	color: var(--ink-900);
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.18;
}

@media (min-width: 768px) {
	.duncan-mgmt-h2 {
		font-size: 1.9rem;
	}
}

.duncan-mgmt-lede,
.duncan-mgmt-body {
	margin-top: 0.75rem;
	color: var(--ink-600);
	font-size: 15px;
	line-height: 1.7;
}

.duncan-mgmt-intro {
	padding-block: 2.5rem 0.5rem;
}

/* ── The hero ───────────────────────────────────────────────────────────── */

.duncan-mgmt-hero {
	padding-block: 3.25rem 3rem;
}

/*
 * The hero's inner box is the same width and padding as every section below.
 *
 * The site's hero uses 16px side padding and the section wrapper uses 24px
 * from 640px up, so the first line of the hero sat 8px left of every heading
 * under it. Matching the wrapper is the difference between a page that looks
 * composed and one where the left edge wanders.
 */
.duncan-mgmt-hero .duncan-hero__inner {
	max-width: 1080px;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.duncan-mgmt-hero .duncan-hero__inner {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/*
 * Centred, like the front page introduces itself.
 *
 * The hero has no grid under it, so its eyebrow, heading, sentence and buttons
 * share the centre line. The inner box still matches the section wrapper's
 * width and padding, so the band's edges line up with the sections below even
 * though the text inside is centred.
 */
.duncan-mgmt-hero .duncan-hero__eyebrow {
	text-align: center;
}

.duncan-mgmt-hero__h1 {
	max-width: 22ch;
	margin-top: 0.6rem;
	margin-inline: auto;
	text-align: center;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.duncan-mgmt-hero__sub {
	max-width: 40rem;
	margin-top: 1rem;
	margin-inline: auto;
	text-align: center;
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.duncan-mgmt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.5rem;
	margin-top: 1.75rem;
}

.duncan-mgmt-hero__actions .btn-primary {
	background: #fff;
	border-color: #fff;
	color: var(--azure-700);
}

.duncan-mgmt-hero__actions .btn-primary:hover {
	background: var(--sand-100);
	border-color: var(--sand-100);
}

.duncan-mgmt-hero__link {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.duncan-mgmt-hero__link:hover {
	color: rgba(255, 255, 255, 0.82);
}

/* ── Available homes ────────────────────────────────────────────────────── */

.duncan-mgmt-list {
	margin-top: 0.5rem;
}

.duncan-mgmt-empty {
	border: 1px dashed var(--sand-300);
	border-radius: var(--radius-lg);
	background: #fff;
	padding: 2rem 1.5rem;
	max-width: 44rem;
}

.duncan-mgmt-empty__h {
	color: var(--ink-900);
	font-size: 16px;
	font-weight: 600;
}

.duncan-mgmt-empty p + p {
	margin-top: 0.4rem;
	color: var(--ink-600);
	font-size: 14px;
	line-height: 1.65;
}

.duncan-mgmt-empty .btn-outline {
	margin-top: 1.1rem;
}

/* ── What we do ─────────────────────────────────────────────────────────── */

.duncan-mgmt-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.duncan-mgmt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.duncan-mgmt-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/*
	 * Three cards, not four. The "who we work with" group is exactly three, and
	 * a four-column grid left a quarter of the row empty, so the set read as
	 * unfinished rather than complete. The service grid keeps the four-up
	 * rhythm because it has eleven items to fill.
	 */
	.duncan-mgmt-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.duncan-mgmt-card {
	border: 1px solid var(--sand-200);
	border-radius: var(--radius-lg);
	background: #fff;
	padding: 1.25rem;
	box-shadow: var(--shadow-card);
}

.duncan-mgmt-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 9999px;
	background: #eef2f9;
	color: var(--azure-700);
	margin-bottom: 0.85rem;
}

.duncan-mgmt-card__icon svg {
	width: 20px;
	height: 20px;
}

.duncan-mgmt-card h3 {
	color: var(--ink-900);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.duncan-mgmt-card p {
	margin-top: 0.5rem;
	color: var(--ink-600);
	font-size: 13.5px;
	line-height: 1.65;
}

/* ── How it works ───────────────────────────────────────────────────────── */

.duncan-mgmt-steps {
	display: grid;
	gap: 1.5rem;
	counter-reset: mgmt-step;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.duncan-mgmt-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 2.5rem;
	}
}

@media (min-width: 1024px) {
	.duncan-mgmt-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.duncan-mgmt-steps li {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.duncan-mgmt-steps__n {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	border: 1px solid var(--sand-300);
	border-radius: 9999px;
	background: #fff;
	color: var(--azure-700);
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
}

.duncan-mgmt-steps h3 {
	color: var(--ink-900);
	font-size: 15px;
	font-weight: 600;
}

.duncan-mgmt-steps p {
	margin-top: 0.35rem;
	color: var(--ink-600);
	font-size: 13.5px;
	line-height: 1.65;
}

/* ── Where we work ──────────────────────────────────────────────────────── */

/*
 * One centred column rather than a heading-and-quote pair.
 *
 * With the copy centred, a quote pinned to a second column reading from the
 * left edge fought the page. The quote now sits under the copy, separated by a
 * short rule, and both share the same reading width.
 */
.duncan-mgmt-two {
	max-width: 46rem;
	margin-inline: auto;
	text-align: center;
}

.duncan-mgmt-quote {
	max-width: 40rem;
	margin: 2rem auto 0;
	border: 0;
	border-top: 1px solid var(--sand-300);
	padding: 1.25rem 0 0;
	color: var(--ink-600);
	text-align: center;
	font-family: var(--font-display);
	font-size: 16px;
	line-height: 1.6;
}

/* ── The owner's request ────────────────────────────────────────────────── */

/*
 * The invitation is centred above the form, not beside it.
 *
 * A centred heading with a form card hanging off the right edge reads as two
 * layouts in one section. The copy takes the centre line, and the card follows
 * it, still narrow enough to remain a form rather than a page.
 */
.duncan-mgmt-request {
	display: grid;
	gap: 2rem;
	max-width: 46rem;
	margin-inline: auto;
	text-align: center;
}

.duncan-mgmt-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.1rem;
	margin-top: 0.9rem;
	font-size: 14px;
	font-weight: 600;
}

.duncan-mgmt-contact a {
	color: var(--azure-700);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.duncan-mgmt-formcard {
	width: 100%;
	max-width: 26.25rem;
	margin-inline: auto;
	border: 1px solid var(--sand-200);
	border-radius: var(--radius-lg);
	background: #fff;
	padding: 1.35rem;
	text-align: left;
	box-shadow: var(--shadow-raised);
}

/* The two forms themselves. */

.duncan-mgmt-form__h {
	color: var(--ink-900);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
}

.duncan-mgmt-form__lede {
	margin-top: 0.4rem;
	margin-bottom: 1.1rem;
	color: var(--ink-600);
	font-size: 14px;
	line-height: 1.6;
}

.duncan-mgmt-form__alt {
	margin: -0.35rem 0 1.05rem;
	font-size: 13px;
	font-weight: 600;
}

.duncan-mgmt-form__alt a {
	color: var(--azure-700);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.duncan-mgmt-form .duncan-field {
	margin-bottom: 0.9rem;
}

.duncan-mgmt-form__pair {
	display: grid;
	gap: 0 0.9rem;
}

@media (min-width: 520px) {
	.duncan-mgmt-form__pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.duncan-mgmt-form .input,
.duncan-mgmt-form .select,
.duncan-mgmt-form .textarea,
.duncan-mgmt-form input[type="text"],
.duncan-mgmt-form input[type="tel"],
.duncan-mgmt-form input[type="number"] {
	width: 100%;
	min-height: 2.75rem;
	border: 1px solid var(--sand-300);
	border-radius: 10px;
	background: #fff;
	padding: 0.65rem 0.85rem;
	color: var(--ink-900);
	font-size: 15px;
	line-height: 1.4;
}

.duncan-mgmt-form .textarea {
	min-height: 6rem;
}

.duncan-mgmt-form .input:focus,
.duncan-mgmt-form .select:focus,
.duncan-mgmt-form .textarea:focus,
.duncan-mgmt-form input:focus,
.duncan-mgmt-form select:focus,
.duncan-mgmt-form textarea:focus {
	outline: 2px solid var(--azure-600);
	outline-offset: 1px;
	border-color: var(--azure-600);
}

.duncan-mgmt-form .btn-primary {
	margin-top: 0.35rem;
}

.duncan-mgmt-form__small {
	margin-top: 0.65rem;
	color: var(--ink-500);
	font-size: 12.5px;
	line-height: 1.55;
}

.duncan-mgmt-sent {
	border: 1px solid rgba(15, 81, 50, 0.22);
	border-radius: var(--radius-lg);
	background: #f2f8f4;
	padding: 1.25rem;
}

.duncan-mgmt-sent__h {
	color: var(--brand-700);
	font-size: 15px;
	font-weight: 700;
}

.duncan-mgmt-sent p + p {
	margin-top: 0.4rem;
	color: var(--ink-600);
	font-size: 14px;
	line-height: 1.65;
}

.duncan-mgmt-error {
	margin-bottom: 1rem;
	border: 1px solid #f0c9c3;
	border-radius: var(--radius-md);
	background: #fdf3f1;
	padding: 0.7rem 0.9rem;
	color: #8a2b1d;
	font-size: 13.5px;
	line-height: 1.5;
}

/* ── Questions ──────────────────────────────────────────────────────────── */

/*
 * The questions keep a narrower reading measure, centred under their heading.
 *
 * The heading is centred by the shared head rule; the list follows it on the
 * same centre line. Answers stay left-aligned, because centred paragraphs are
 * harder to read once they run past a line or two.
 */
.duncan-mgmt-faq .duncan-details {
	max-width: 54rem;
	margin-inline: auto;
}

.duncan-mgmt-faq .duncan-details > p {
	padding-bottom: 0.9rem;
	color: var(--ink-600);
	font-size: 14px;
	line-height: 1.7;
}

/*
 * The tenant's questions moved off this page — they now sit at the foot of a
 * rentals view (duncan_tenant_faq()). The owner's list keeps the section to
 * itself.
 */

/* ── The close ──────────────────────────────────────────────────────────── */

.duncan-mgmt-close {
	background: var(--ink-900);
	color: #fff;
	padding-block: 3rem;
	text-align: center;
}

.duncan-mgmt-close__eyebrow {
	color: rgba(255, 255, 255, 0.62);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.duncan-mgmt-close h2 {
	margin-top: 0.45rem;
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.duncan-mgmt-close p {
	margin-top: 0.5rem;
	margin-inline: auto;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14.5px;
	line-height: 1.65;
}

.duncan-mgmt-close__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.4rem;
}

.duncan-mgmt-close .btn-outline {
	border-color: rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #fff;
}

.duncan-mgmt-close .btn-outline:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
}

/* ── The unit inventory on a building's page ────────────────────────────── */

.duncan-units-section {
	scroll-margin-top: 5rem;
}

.duncan-units__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.4rem 1rem;
}

.duncan-units__total {
	color: var(--ink-500);
	font-size: 13px;
	font-weight: 600;
}

.duncan-units__lede {
	margin-top: 0.45rem;
	margin-bottom: 1.1rem;
	color: var(--ink-600);
	font-size: 14px;
	line-height: 1.65;
	max-width: 38rem;
}

.duncan-units {
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.duncan-units__table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.duncan-units__table thead th {
	border-bottom: 1px solid var(--sand-300);
	background: transparent;
	padding: 0.55rem 0.75rem;
	color: var(--ink-500);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.duncan-units__table tbody th,
.duncan-units__table tbody td {
	border-bottom: 1px solid var(--sand-100);
	padding: 0.7rem 0.75rem;
	vertical-align: middle;
	color: var(--ink-600);
	font-size: 14px;
}

.duncan-units__table tbody tr:last-child th,
.duncan-units__table tbody tr:last-child td {
	border-bottom: 0;
}

.duncan-units__table tbody td strong {
	color: var(--ink-900);
	font-size: 15px;
	font-weight: 700;
}

.duncan-units__unit {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.duncan-units__photo {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--sand-100);
}

.duncan-units__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.duncan-units__text {
	min-width: 0;
}

.duncan-units__type {
	display: block;
	color: var(--ink-900);
	font-weight: 600;
}

.duncan-units__size {
	display: block;
	margin-top: 0.15rem;
	color: var(--ink-500);
	font-size: 12px;
	font-weight: 400;
}

.duncan-units__inc {
	display: block;
	margin-top: 0.15rem;
	color: var(--ink-500);
	font-size: 11.5px;
}

.duncan-units__deposit {
	display: block;
	margin-top: 0.18rem;
	color: var(--ink-500);
	font-size: 11.5px;
}

.duncan-units__count {
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	background: #eef5f0;
	padding: 0.16rem 0.55rem;
	color: var(--brand-700);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.duncan-units__table .duncan-unit-ask {
	min-height: 2.25rem;
	padding-inline: 0.9rem;
	font-size: 13px;
}

.duncan-units__note {
	border-top: 0;
	background: transparent;
	padding: 0.7rem 0.75rem 0;
	color: var(--ink-500);
	font-size: 12px;
	line-height: 1.55;
}

/* A phone has no room for five columns. Each row becomes a small card: the
   type is the heading and the cells carry their own label. The header row is
   hidden rather than squeezed, because a 10px column header is not a label. */

@media (max-width: 620px) {
	.duncan-units__head {
		display: block;
	}

	.duncan-units__total {
		display: block;
		margin-top: 0.3rem;
	}

	.duncan-units__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.duncan-units__table,
	.duncan-units__table tbody,
	.duncan-units__table tr,
	.duncan-units__table tbody th,
	.duncan-units__table tbody td {
		display: block;
		width: 100%;
	}

	.duncan-units__table tbody tr {
		border-bottom: 1px solid var(--sand-200);
		padding: 0.85rem 0.9rem;
	}

	.duncan-units__table tbody tr:last-child {
		border-bottom: 0;
	}

	.duncan-units__table tbody th {
		border: 0;
		padding: 0 0 0.5rem;
	}

	.duncan-units__table tbody td {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 0.1rem 0.75rem;
		border: 0;
		padding: 0.18rem 0;
	}

	.duncan-units__table tbody td::before {
		content: attr(data-label);
		color: var(--ink-500);
		font-size: 12px;
		font-weight: 500;
	}

	.duncan-units__table tbody td .duncan-units__inc,
	.duncan-units__table tbody td .duncan-units__deposit {
		flex-basis: 100%;
		margin-top: 0.1rem;
		text-align: right;
	}

	.duncan-units__table tbody td:last-child {
		justify-content: flex-end;
		padding-top: 0.55rem;
	}

	.duncan-units__table tbody td:last-child::before {
		content: none;
	}

	.duncan-units__table .duncan-unit-ask {
		min-height: 2.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.duncan-mgmt-hero__actions .btn-primary,
	.duncan-units__table .duncan-unit-ask {
		transition: none;
	}
}

/* ── The renter's door, inside the owner's hero ─────────────────────────── */

/*
 * The hero addresses the owner. This block is the tenant's fork: a labelled
 * search so a renter who landed here sorts themselves out instead of reading an
 * owner's page. It sits on the navy, so it is white type over the same white
 * search panel the front page uses.
 */
.duncan-mgmt-renter {
	margin-top: 2.25rem;
}

.duncan-mgmt-renter__h {
	color: #fff;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
}

.duncan-mgmt-renter__sub {
	margin-top: 0.3rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.duncan-mgmt-renter .duncan-hero__form {
	margin-top: 1rem;
}

/* Four fields and a button: two columns on a tablet, one row at lg. */
.duncan-hero__grid.duncan-mgmt-renter__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
	.duncan-hero__grid.duncan-mgmt-renter__grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.9fr) auto;
	}
}

/* ── Fees ───────────────────────────────────────────────────────────────── */

.duncan-mgmt-fees {
	display: grid;
	gap: 0.75rem;
	max-width: 54rem;
	margin-inline: auto;
	padding: 0;
	list-style: none;
	text-align: left;
}

.duncan-mgmt-fees li {
	position: relative;
	border: 1px solid var(--sand-200);
	border-radius: var(--radius-lg);
	background: #fff;
	padding: 1rem 1.15rem 1rem 2.5rem;
	color: var(--ink-700);
	font-size: 14.5px;
	line-height: 1.65;
	box-shadow: var(--shadow-card);
}

.duncan-mgmt-fees li::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 1.35rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background: var(--azure-600);
}

.duncan-mgmt-termsnote {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	max-width: 54rem;
	margin: 1.25rem auto 0;
	color: var(--ink-600);
	font-size: 14px;
	line-height: 1.65;
	text-align: left;
}

.duncan-mgmt-termsnote__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 9999px;
	background: #eef2f9;
	color: var(--azure-700);
}

.duncan-mgmt-termsnote__icon svg {
	width: 16px;
	height: 16px;
}

/* ── Why owners choose us ───────────────────────────────────────────────── */

.duncan-mgmt-reasons {
	display: grid;
	gap: 0.85rem;
	max-width: 46rem;
	margin-inline: auto;
	padding: 0;
	list-style: none;
	text-align: left;
}

.duncan-mgmt-reasons li {
	position: relative;
	padding-left: 1.9rem;
	color: var(--ink-700);
	font-size: 15px;
	line-height: 1.6;
}

.duncan-mgmt-reasons li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.5rem;
	width: 1.05rem;
	height: 0.6rem;
	border-left: 2px solid var(--brand-600);
	border-bottom: 2px solid var(--brand-600);
	transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------
 * Owner changes waiting for a decision.
 *
 * The panel sits above the record editor and carries its own small forms, so
 * the approve and discard buttons sit on one line rather than stacking.
 * ---------------------------------------------------------------------- */

.duncan-mp__pending {
	border-left: 3px solid var(--brand-600);
}

.duncan-mp__pending-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.duncan-mp__pending-fields {
	margin: 0 0 1rem;
}

.duncan-mp__pending-fields dt {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink-500);
}

.duncan-mp__pending-fields dd {
	margin: 0.25rem 0 0.75rem;
	color: var(--ink-800);
}

.duncan-mp__pending-fields dd:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * Before it goes live.
 *
 * One panel, two readers: the office's record screen and the owner's own
 * page. The heading and the reason line carry the framing; the steps below are
 * grouped into the office's work and the owner's, each with its own count, and
 * the document list (duncan-onboard__docs) supplies the rows.
 * ---------------------------------------------------------------------- */

.duncan-golive {
	border-left: 3px solid #de6236;
}

.duncan-golive--ready {
	border-left-color: var(--brand-600);
}

.duncan-golive__reason {
	margin-top: 0.5rem;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-600);
}

.duncan-golive__group {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.5rem;
	margin-top: 1.25rem;
	margin-bottom: 0.25rem;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink-500);
}

.duncan-golive__groupn {
	border-radius: 9999px;
	background: rgba(222, 98, 54, 0.12);
	color: #b04a22;
	padding: 0.05rem 0.5rem;
	font-size: 11px;
	letter-spacing: 0;
}

.duncan-golive__groupn.is-done {
	background: #eaf4ee;
	color: var(--brand-700);
}

.duncan-golive__list {
	margin-top: 0;
	margin-bottom: 1rem;
}

.duncan-golive__label {
	display: block;
	position: relative;
	padding-left: 1.5rem;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-800);
}

.duncan-golive__label::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.4rem;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 9999px;
	border: 1.5px solid var(--ink-400);
}

.duncan-golive__item.is-done .duncan-golive__label {
	color: var(--ink-500);
}

.duncan-golive__item.is-done .duncan-golive__label::before {
	left: 0.1rem;
	top: 0.45rem;
	width: 0.95rem;
	height: 0.5rem;
	border: 0;
	border-left: 2px solid var(--brand-600);
	border-bottom: 2px solid var(--brand-600);
	border-radius: 0;
	transform: rotate(-45deg);
}

/* The office's own controls, under the list. */
.duncan-golive__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--sand-200);
}

.duncan-golive__actions form {
	margin: 0;
}

.duncan-golive__link {
	font-size: 14px;
	font-weight: 500;
	color: var(--brand-600);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.duncan-golive__link:hover {
	color: var(--brand-700);
}

.duncan-golive__hint {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink-500);
}

/* The building's photographs on the record: a wrapped row of thumbnails, the
   first of which is the cover. The add button sits under the row it grows. */
.duncan-photos {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.duncan-photos__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.duncan-photos__list:empty {
	display: none;
}

.duncan-photos__item {
	position: relative;
	width: 6rem;
	margin: 0;
}

.duncan-photos__item img {
	display: block;
	width: 6rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: 0.375rem;
	border: 1px solid var(--sand-200);
}

.duncan-photos__item:first-child img {
	border-color: var(--brand-600);
}

.duncan-photos__remove {
	margin-top: 0.25rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: 12px;
	color: var(--ink-500);
	text-decoration: underline;
	cursor: pointer;
}

.duncan-photos__remove:hover {
	color: var(--ink-800);
}
