/* Propertydome: design tokens and homepage sections.
   Loaded on the site and inside the homepage editor, so the editor preview matches the site. */

:root {
	color-scheme: light;
	--pd-bg: #FFFFFF;
	--pd-surface: #F5F4EF;
	--pd-card: #FFFFFF;
	--pd-line: #E6E4DC;
	--pd-line-2: #CFCCC1;
	--pd-text: #0F1412;
	--pd-prose: #1E2420;
	--pd-muted: #5B615C;
	--pd-green: #0B4D3B;
	--pd-green-2: #0E5F49;
	--pd-green-tint: #E7F0EB;
	--pd-accent-text: #0B4D3B;
	--pd-gold: #C9A24B;
	--pd-gold-text: #8A6A1F;
	--pd-on-dark: #F4F2EA;
	--pd-tone-0: #E5E1D6;
	--pd-tone-1: #DCE3DE;
	--pd-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
	--pd-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pd-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--pd-wrap: 1320px;
	--pd-read: 720px;
	--pd-wide: 1100px;
	--pd-r: 12px;
}
[data-theme="dark"] {
	color-scheme: dark;
	--pd-bg: #0B0F0D;
	--pd-surface: #121815;
	--pd-card: #131916;
	--pd-line: #222A26;
	--pd-line-2: #34403A;
	--pd-text: #F1F2EC;
	--pd-prose: #DCE0D9;
	--pd-muted: #A1A9A3;
	--pd-green: #0E5F49;
	--pd-green-2: #127356;
	--pd-green-tint: #15261F;
	--pd-accent-text: #7FCAA6;
	--pd-gold-text: #D9B866;
	--pd-tone-0: #1D2421;
	--pd-tone-1: #18201C;
}

/* ---------- Shared bits ---------- */
.pd-wrap { width: 100%; max-width: var(--pd-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.pd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pd-kicker { display: inline-block; font-family: var(--pd-sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-accent-text); text-decoration: none; }
.pd-meta { font-family: var(--pd-sans); font-size: 13.5px; color: var(--pd-muted); font-weight: 500; }
.pd-lede { font-size: 17px; color: var(--pd-muted); margin: 0; }
.pd-ph { display: block; width: 100%; height: 100%; background: var(--pd-tone-0); }
.pd-ph--label { display: flex; align-items: center; justify-content: center; font-family: var(--pd-display); font-weight: 700; font-size: 22px; color: var(--pd-muted); }
.pd-price { font-family: var(--pd-display); font-weight: 800; font-size: 22px; color: var(--pd-text); letter-spacing: -.3px; }
.pd-finenote { margin: 16px 0 0; font-size: 13px; color: var(--pd-muted); }

.pd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--pd-sans); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background .2s ease, transform .2s ease;
}
.pd-btn:active { transform: scale(.98); }
.pd-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pd-btn--green { background: var(--pd-green); color: #FFFFFF; }
.pd-btn--green:hover { background: var(--pd-green-2); color: #FFFFFF; }
.pd-btn--gold { background: var(--pd-gold); color: #0F1412; }
.pd-btn--gold:hover { color: #0F1412; filter: brightness(1.05); }
.pd-btn--ghost { background: transparent; border-color: var(--pd-line-2); color: var(--pd-text); }
.pd-btn--ghost:hover { border-color: var(--pd-text); color: var(--pd-text); }

/* ---------- Section heads ---------- */
.pd-section { padding-top: 56px; padding-bottom: 8px; }
.pd-section--tight { padding-top: 16px; padding-bottom: 56px; }
.pd-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 2px solid var(--pd-text); padding-top: 14px; margin-bottom: 22px; }
.pd-sechead__title { margin: 0; font-family: var(--pd-display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); letter-spacing: -1px; line-height: 1.05; color: var(--pd-text); }
.pd-sechead__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pd-sans); font-weight: 700; font-size: 14.5px; color: var(--pd-accent-text); text-decoration: none; white-space: nowrap; }

/* ---------- Story circles ---------- */
.pd-circles { padding: 18px 0 6px; }
.pd-circles__row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; scrollbar-width: none; }
.pd-circles__row::-webkit-scrollbar { display: none; }
.pd-circle { position: relative; flex: 0 0 auto; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start; color: var(--pd-text); font-family: var(--pd-sans); }
.pd-circle__ring { display: block; padding: 3px; border-radius: 999px; background: conic-gradient(var(--pd-gold), var(--pd-green), var(--pd-gold)); transition: transform .2s ease; }
.pd-circle:hover .pd-circle__ring { transform: scale(1.05); }
.pd-circle.is-seen .pd-circle__ring { background: var(--pd-line-2); }
.pd-circle__img { display: block; width: 68px; height: 68px; border-radius: 999px; overflow: hidden; border: 3px solid var(--pd-bg); background: var(--pd-tone-0); }
.pd-circle__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-circle__initial { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--pd-display); font-weight: 800; font-size: 24px; color: var(--pd-green); }
.pd-circle__label { font-size: 12.5px; font-weight: 600; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Continue reading ---------- */
.pd-continue { padding-top: 6px; }
.pd-continue__card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--pd-line); border-radius: 16px; background: var(--pd-card); text-decoration: none; color: var(--pd-text); }
.pd-continue__img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--pd-tone-0); }
.pd-continue__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-continue__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pd-continue__title { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-continue__bar { height: 5px; border-radius: 999px; background: var(--pd-line); overflow: hidden; }
.pd-continue__bar span { display: block; height: 100%; background: var(--pd-green); border-radius: 999px; }
.pd-continue__left { font-size: 13px; color: var(--pd-muted); white-space: nowrap; }
.pd-continue__x { flex: 0 0 auto; }

/* ---------- Cover, feed, most read ---------- */
.pd-front { display: grid; gap: 28px; padding-top: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
	.pd-front { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.pd-front__cover { grid-column: 1 / -1; }
}
@media (min-width: 1140px) {
	.pd-front { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.1fr) minmax(0, .75fr); gap: 32px; }
	.pd-front__cover { grid-column: auto; }
}
.pd-cover { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--pd-text); }
.pd-cover__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--pd-r); overflow: hidden; background: var(--pd-tone-0); }
.pd-cover__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.pd-cover:hover .pd-cover__media img { transform: scale(1.03); }
.pd-cover__tag { position: absolute; left: 14px; top: 14px; background: var(--pd-gold); color: #0F1412; font-family: var(--pd-sans); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; }
.pd-cover__title { font-family: var(--pd-display); font-weight: 800; font-size: clamp(30px, 3.5vw, 50px); line-height: 1; letter-spacing: -1.5px; }
.pd-cover:hover .pd-cover__title { color: var(--pd-accent-text); }
.pd-cover__dek { font-size: 17px; line-height: 1.5; color: var(--pd-muted); }

.pd-feed { min-width: 0; }
@media (min-width: 1140px) { .pd-feed { border-left: 2px solid var(--pd-text); padding-left: 24px; } }
.pd-feed__head, .pd-most__head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-family: var(--pd-display); font-weight: 800; font-size: 24px; letter-spacing: -.5px; color: var(--pd-text); }
.pd-live { width: 10px; height: 10px; border-radius: 999px; background: var(--pd-gold); box-shadow: 0 0 0 0 rgba(201, 162, 75, .6); animation: pd-pulse 2s infinite; }
@keyframes pd-pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 75, .55); } 70% { box-shadow: 0 0 0 10px rgba(201, 162, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0); } }
.pd-feed__item { padding: 14px 0; border-bottom: 1px solid var(--pd-line); }
.pd-feed__item a { color: var(--pd-text); text-decoration: none; }
.pd-feed__story { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.pd-feed__words { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pd-feed__item--home > a { display: flex; flex-direction: column; gap: 5px; }
.pd-feed__meta { font-family: var(--pd-sans); font-size: 12px; color: var(--pd-muted); font-weight: 600; letter-spacing: .02em; }
.pd-feed__kind { color: var(--pd-accent-text); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pd-feed__title { display: block; font-family: var(--pd-sans); font-weight: 700; font-size: 17px; line-height: 1.3; margin-top: 3px; }
.pd-feed__item a:hover .pd-feed__title, a.pd-feed__title:hover { color: var(--pd-accent-text); }
.pd-feed__thumb { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 8px; overflow: hidden; background: var(--pd-tone-0); }
.pd-feed__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-feed__text { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--pd-prose); }
.pd-feed__read { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--pd-accent-text) !important; }
.pd-feed__line { font-size: 14px; color: var(--pd-muted); }
.pd-feed__line .pd-price { font-size: 15px; }
.pd-feed__item--home { background: var(--pd-green-tint); border-bottom: 0; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.pd-feed__more { width: 100%; margin-top: 14px; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--pd-text); background: transparent; color: var(--pd-text); font-family: var(--pd-sans); font-weight: 700; font-size: 15px; cursor: pointer; }
.pd-feed__more:hover { background: var(--pd-text); color: var(--pd-bg); }
.pd-feed__item.is-new { animation: pd-in .5s ease; }
@keyframes pd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pd-most { min-width: 0; }
.pd-most__list { list-style: none; margin: 0; padding: 0; }
.pd-most__list a { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--pd-line); color: var(--pd-text); text-decoration: none; }
.pd-most__list li:first-child a { border-top: 0; }
.pd-most__n { flex: 0 0 26px; font-family: var(--pd-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--pd-gold); }
.pd-most__title { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.pd-most__list a:hover .pd-most__title { color: var(--pd-accent-text); }

/* ---------- Story cards ---------- */
.pd-grid { display: grid; gap: 30px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; }
.pd-scard { position: relative; min-width: 0; }
.pd-scard__link { display: flex; flex-direction: column; gap: 12px; color: var(--pd-text); text-decoration: none; height: 100%; }
.pd-scard__media { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--pd-r); overflow: hidden; background: var(--pd-tone-0); }
.pd-scard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.pd-scard:hover .pd-scard__media img { transform: scale(1.04); }
.pd-scard__body { display: flex; flex-direction: column; gap: 7px; }
.pd-scard__title { font-family: var(--pd-sans); font-weight: 700; font-size: 18.5px; line-height: 1.28; letter-spacing: -.2px; }
.pd-scard:hover .pd-scard__title { color: var(--pd-accent-text); }
@media (min-width: 760px) {
	.pd-scard--lead { grid-column: span 2; }
	.pd-scard--lead .pd-scard__media { aspect-ratio: 16 / 9; }
	.pd-scard--lead .pd-scard__title { font-family: var(--pd-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.04; letter-spacing: -1px; }
}
.pd-scard--tall .pd-scard__media { aspect-ratio: 4 / 5; }
.pd-savebtn {
	position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 999px; border: 0;
	background: rgba(255, 255, 255, .92); color: #0F1412; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	opacity: 0; transition: opacity .2s ease;
}
.pd-scard:hover .pd-savebtn, .pd-savebtn:focus-visible, .pd-savebtn[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .pd-savebtn { opacity: 1; } }
.pd-savebtn[aria-pressed="true"] { background: var(--pd-green); color: #FFFFFF; }
.pd-savebtn[aria-pressed="true"] .pd-ic { fill: currentColor; }

.pd-rail { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) {
	.pd-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
	.pd-rail::-webkit-scrollbar { display: none; }
	.pd-rail > * { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- Homes in the news ---------- */
.pd-homes__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 759px) {
	.pd-homes__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
	.pd-homes__grid::-webkit-scrollbar { display: none; }
	.pd-homes__grid > * { flex: 0 0 82%; scroll-snap-align: start; }
}
.pd-home { display: flex; flex-direction: column; border: 1px solid var(--pd-line); border-radius: 16px; overflow: hidden; background: var(--pd-card); min-width: 0; }
.pd-home__media { position: relative; aspect-ratio: 4 / 3; background: var(--pd-tone-0); }
.pd-home__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-home__tag { position: absolute; top: 12px; left: 12px; background: #0F1412; color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pd-home__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pd-home__title { font-weight: 700; font-size: 16.5px; line-height: 1.3; color: var(--pd-text); }
.pd-home__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.pd-home__src { font-size: 12.5px; }

/* ---------- Dream or Pass (optional section) ---------- */
.pd-game { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.pd-game__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.pd-game__dots { display: flex; gap: 6px; }
.pd-game__dots span { width: 18px; height: 6px; border-radius: 3px; background: var(--pd-line-2); transition: .3s; }
.pd-game__dots span.is-done { background: var(--pd-text); }
.pd-game__dots span.is-now { width: 34px; background: var(--pd-gold); }
.pd-game__play { flex: 1 1 360px; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pd-game__deck { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.pd-game__card { border-radius: 22px; overflow: hidden; background: var(--pd-card); border: 1px solid var(--pd-line); }
.pd-game__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--pd-tone-0); }
.pd-game__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-game__count { position: absolute; top: 14px; right: 14px; background: rgba(15, 20, 18, .75); color: #FFFFFF; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pd-game__info { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.pd-game__title { font-weight: 700; }
.pd-game__buttons { display: none; justify-content: center; gap: 18px; }
.pd-game__result { border: 1px solid var(--pd-line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; background: var(--pd-card); }
.pd-game__result[hidden] { display: none; }
.pd-game__taste { margin: 0; font-family: var(--pd-display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -1px; }
.pd-game.is-live .pd-game__deck { display: block; min-height: 540px; }
.pd-game.is-live .pd-game__card { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateY(20px) scale(.95); transition: transform .35s ease, opacity .35s ease; }
.pd-game.is-live .pd-game__card.is-next { opacity: 1; transform: translateY(12px) scale(.97); }
.pd-game.is-live .pd-game__card.is-next > * { visibility: hidden; }
.pd-game.is-live .pd-game__card.is-current { opacity: 1; pointer-events: auto; transform: none; z-index: 2; }
.pd-game.is-live .pd-game__card.is-out-left { opacity: 0; transform: translateX(-120%) rotate(-10deg); z-index: 3; }
.pd-game.is-live .pd-game__card.is-out-right { opacity: 0; transform: translateX(120%) rotate(10deg); z-index: 3; }
.pd-game.is-live .pd-game__buttons { display: flex; }
.pd-game.is-done .pd-game__deck, .pd-game.is-done .pd-game__buttons { display: none; }
.pd-roundbtn { width: 66px; height: 66px; border-radius: 999px; border: 1.5px solid var(--pd-line-2); background: var(--pd-card); color: var(--pd-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pd-roundbtn--green { background: var(--pd-green); border-color: var(--pd-green); color: #FFFFFF; }
.pd-roundbtn--green .pd-ic { fill: currentColor; }

/* ---------- Newsletter band ---------- */
.pd-newsletter { background: var(--pd-green); color: #FFFFFF; margin-top: 64px; }
.pd-newsletter__in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.pd-newsletter__title { margin: 0 0 6px; font-family: var(--pd-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1px; }
.pd-newsletter p { margin: 0; color: #D7E6DF; max-width: 460px; }
.pd-newsletter .pd-nlform { flex: 1 1 360px; max-width: 520px; }
.pd-newsletter .pd-btn--green { background: var(--pd-gold); color: #0F1412; }
.pd-nlform { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-nlform input { flex: 1 1 220px; min-height: 48px; border-radius: 999px; border: 1px solid var(--pd-line-2); background: var(--pd-card); color: var(--pd-text); padding: 0 20px; font: 500 16px var(--pd-sans); min-width: 0; }

/* ---------- Ad slot ---------- */
.pd-adslot { padding-top: 48px; text-align: center; }
.pd-adslot__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pd-muted); margin-bottom: 8px; }
.pd-adslot img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- Listing cards plugin, in this theme's colours ---------- */
.pd-lc .pd-lc__btn--main { background: var(--pd-green); border-color: var(--pd-green); color: #FFFFFF; }
.pd-lc .pd-lc__btn--main:hover { color: #FFFFFF; background: var(--pd-green-2); }

@media (prefers-reduced-motion: reduce) {
	.pd-live { animation: none; }
	.pd-cover__media img, .pd-scard__media img, .pd-circle__ring, .pd-game__card { transition: none !important; }
	.pd-feed__item.is-new { animation: none; }
}
