/* Property management: Keystone, an invented letting agent. Stone white, slate blue and a brass accent, Georgia headings. Two audiences: landlords (services, fees, a net income calculator) and tenants (portal and repairs). */

.pm-page {
  --pm-canvas: #f9f8f5;
  --pm-surface: #ffffff;
  --pm-band: #efede6;
  --pm-ink: #18202b;
  --pm-muted: #4f5866;
  --pm-line: #dedbd2;
  --pm-line-strong: #7b8290;
  --pm-accent: #2c4a6e;
  --pm-accent-hover: #213855;
  --pm-on-accent: #ffffff;
  --pm-tint: #e3eaf3;
  --pm-success: #2b6640;
  --pm-danger: #b3261e;
  --pm-focus: #2c4a6e;
  --pm-head: Georgia, "Times New Roman", serif;
  --pm-body: "Segoe UI", system-ui, sans-serif;
  --pm-r: 10px;

  background: var(--pm-canvas);
  color: var(--pm-ink);
  font-family: var(--pm-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): slate night with brass. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .pm-page {
    --pm-canvas: #10141a;
    --pm-surface: #171d25;
    --pm-band: #131820;
    --pm-ink: #ebeef3;
    --pm-muted: #adb5c2;
    --pm-line: #2a323e;
    --pm-line-strong: #747e8e;
    --pm-accent: #e0b866;
    --pm-accent-hover: #ebcd8e;
    --pm-on-accent: #2a1d02;
    --pm-tint: #2a2c2a;
    --pm-success: #8fd4a4;
    --pm-danger: #ff8a80;
    --pm-focus: #e0b866;
    color-scheme: dark;
  }
}

.pm-page [hidden] { display: none !important; }
:where(.pm-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.pm-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.pm-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.pm-page) a { color: var(--pm-accent); }
:where(.pm-page) :is(h1, h2, h3, h4) { color: inherit; }
.pm-page :focus-visible { outline: 3px solid var(--pm-focus); outline-offset: 2px; }
.pm-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--pm-accent); }
html:has(.pm-page) { scroll-behavior: smooth; }
.pm-page section[id] { scroll-margin-top: 72px; }
.pm-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.pm-header { position: sticky; top: 0; z-index: 20; background: var(--pm-canvas); border-bottom: 1px solid var(--pm-line); }
.pm-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.pm-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--pm-head); color: var(--pm-ink) !important; text-decoration: none; }
.pm-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--pm-tint); stroke: var(--pm-accent); stroke-width: 2; stroke-linejoin: round; }
.pm-nav { margin-left: auto; }
.pm-nav ul { display: flex; gap: 22px; }
.pm-nav a { color: var(--pm-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.pm-nav a:hover { color: var(--pm-accent); text-decoration: underline; text-underline-offset: 4px; }
.pm-menu-btn { display: none; }
.pm-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--pm-line-strong); border-radius: var(--pm-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.pm-theme-btn:hover { background: var(--pm-tint); }

.pm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--pm-accent); border-radius: var(--pm-r); font: 700 1rem/1.2 var(--pm-head); text-decoration: none; cursor: pointer; text-align: center;
}
.pm-btn--fill { background: var(--pm-accent); color: var(--pm-on-accent) !important; }
.pm-btn--fill:hover { background: var(--pm-accent-hover); border-color: var(--pm-accent-hover); }
.pm-btn--line { background: transparent; color: var(--pm-accent) !important; }
.pm-btn--line:hover { background: var(--pm-tint); }
.pm-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.pm-btn:disabled { background: var(--pm-band); border-color: var(--pm-line-strong); color: var(--pm-muted) !important; cursor: not-allowed; }

.pm-eyebrow { font-weight: 700; color: var(--pm-accent); font-size: .92rem; letter-spacing: .02em; }
.pm-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--pm-head); }
.pm-sub { color: var(--pm-muted); margin-top: 8px; max-width: 64ch; }
.pm-head { margin-bottom: 26px; }
.pm-sec { padding: 72px 0; }
.pm-band { background: var(--pm-band); }
.pm-muted { color: var(--pm-muted); }
.pm-small { font-size: .9rem; color: var(--pm-muted); }

.pm-hero { padding: 64px 0 56px; }
.pm-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.pm-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--pm-head); margin-top: 10px; }
.pm-lede { font-size: 1.15rem; color: var(--pm-muted); margin-top: 16px; max-width: 54ch; }
.pm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pm-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--pm-muted); font-size: .95rem; }
.pm-facts strong { color: var(--pm-ink); }
.pm-panel { padding: 24px; background: var(--pm-surface); border: 1px solid var(--pm-line); border-radius: calc(var(--pm-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.pm-panel-title { font: 700 1.1rem var(--pm-head); margin-bottom: 12px; }

.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.pm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--pm-surface); border: 1px solid var(--pm-line); border-radius: var(--pm-r); }
.pm-card h3 { font: 700 1.15rem/1.25 var(--pm-head); }
.pm-card p { color: var(--pm-muted); font-size: .96rem; }
.pm-card .pm-btn { margin-top: auto; align-self: flex-start; }
.pm-card.is-on { border: 2px solid var(--pm-accent); }
.pm-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--pm-r) var(--pm-r) 0 0; background: var(--pm-tint); position: relative; overflow: hidden; }
.pm-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--pm-canvas); opacity: .7; }
.pm-price { font: 700 1.5rem var(--pm-head); color: var(--pm-ink); }
.pm-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--pm-line-strong); font-size: .82rem; font-weight: 600; color: var(--pm-ink); }
.pm-badge--on { background: var(--pm-tint); border-color: var(--pm-accent); }
.pm-badge--bad { border-color: var(--pm-danger); color: var(--pm-danger); }
.pm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--pm-muted); }

.pm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pm-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--pm-line-strong); border-radius: 999px; background: var(--pm-surface); color: var(--pm-ink); font: 600 .95rem var(--pm-body); cursor: pointer; }
.pm-chip:hover { border-color: var(--pm-accent); }
.pm-chip[aria-pressed="true"] { background: var(--pm-accent); border-color: var(--pm-accent); color: var(--pm-on-accent); }
.pm-count { font-weight: 600; margin-bottom: 14px; }
.pm-empty { padding: 28px; text-align: center; border: 1px dashed var(--pm-line-strong); border-radius: var(--pm-r); }

.pm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.pm-steps li { padding: 22px; background: var(--pm-surface); border: 1px solid var(--pm-line); border-radius: var(--pm-r); counter-increment: st; }
.pm-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--pm-accent); color: var(--pm-on-accent); font-weight: 700; }
.pm-steps h3 { font: 700 1.1rem var(--pm-head); }
.pm-steps p { color: var(--pm-muted); font-size: .95rem; margin-top: 4px; }

.pm-table { width: 100%; border-collapse: collapse; background: var(--pm-surface); border: 1px solid var(--pm-line); border-radius: var(--pm-r); overflow: hidden; }
.pm-table th, .pm-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--pm-line); vertical-align: top; }
.pm-table th { font-size: .88rem; color: var(--pm-muted); background: var(--pm-band); }
.pm-table td.pm-num, .pm-table th.pm-num { text-align: right; font-variant-numeric: tabular-nums; }

.pm-meter { height: 10px; border-radius: 999px; background: var(--pm-line); overflow: hidden; }
.pm-meter span { display: block; height: 100%; background: var(--pm-accent); border-radius: inherit; }
.pm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.pm-stat strong { display: block; font: 700 2rem/1.1 var(--pm-head); }
.pm-stat span { color: var(--pm-muted); font-size: .92rem; }

.pm-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.pm-qs details { border-bottom: 1px solid var(--pm-line); }
.pm-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.pm-qs p { padding: 0 0 16px; color: var(--pm-muted); }

.pm-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--pm-surface); border: 1px solid var(--pm-line); border-radius: calc(var(--pm-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.pm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pm-field--full { grid-column: 1 / -1; }
.pm-field label, .pm-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.pm-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--pm-line-strong); border-radius: calc(var(--pm-r) - 2px); background: var(--pm-canvas); color: var(--pm-ink); font: 1rem var(--pm-body); }
.pm-field textarea { min-height: 110px; resize: vertical; }
.pm-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--pm-danger); }
.pm-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.pm-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--pm-accent); }
.pm-hint { font-size: .88rem; color: var(--pm-muted); margin-top: 6px; }
.pm-error { color: var(--pm-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.pm-error::before { content: "! "; }
.pm-status { font-weight: 600; }
.pm-status.is-ok { padding: 14px 16px; border-radius: calc(var(--pm-r) - 2px); background: var(--pm-tint); border-left: 4px solid var(--pm-success); }

.pm-footer { padding: 28px 0; border-top: 1px solid var(--pm-line); color: var(--pm-muted); font-size: .92rem; }
.pm-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .pm-header-in { flex-wrap: wrap; gap: 10px; }
  .pm-theme-btn { margin-left: auto; }
  .pm-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--pm-line-strong); border-radius: var(--pm-r); background: transparent; color: var(--pm-ink); font: 600 .95rem var(--pm-body); cursor: pointer;
  }
  .pm-nav { display: none; order: 5; width: 100%; margin: 0; }
  .pm-nav.is-open { display: block; padding-bottom: 12px; }
  .pm-nav ul { flex-direction: column; gap: 0; }
  .pm-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--pm-line); }
  .pm-header-cta { display: none; }
  .pm-hero-in, .pm-faq-in, .pm-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .pm-sec { padding: 52px 0; }
  .pm-fields { grid-template-columns: minmax(0, 1fr); }
  .pm-form { padding: 20px; }
  .pm-table thead { display: none; }
  .pm-table, .pm-table tbody, .pm-table tr, .pm-table td { display: block; width: 100%; }
  .pm-table tr { border-bottom: 1px solid var(--pm-line-strong); padding: 6px 0; }
  .pm-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .pm-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--pm-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.pm-page) { scroll-behavior: auto; }
}

@media print {
  .pm-header, .pm-theme-btn, .pm-form { display: none; }
}

/* This template's own sections */
.pm-who { display: grid; gap: 10px; margin: 8px 0 4px; }
.pm-hint { color: var(--pm-muted); font-size: .9rem; margin-top: 12px; }
.pm-cmp th, .pm-cmp td { text-align: center; }
.pm-cmp th[scope="row"] { text-align: left; }
.pm-cmp tfoot th, .pm-cmp tfoot td { font-weight: 700; }
.pm-yes { color: var(--pm-success); font-weight: 700; }
.pm-no { color: var(--pm-muted); }
.pm-two { display: grid; gap: 40px; align-items: start; }
.pm-lab { display: block; font-weight: 700; margin: 14px 0 6px; }
.pm-two input, .pm-two select, .pm-two textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--pm-line-strong); border-radius: var(--pm-radius); background: var(--pm-surface); color: var(--pm-ink); width: 100%; max-width: 420px; }
.pm-two [aria-invalid="true"] { border-color: var(--pm-danger); }
.pm-big { font: 700 2.4rem var(--pm-head); font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.pm-sum div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--pm-line); }
.pm-sum dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-rp button { margin-top: 12px; }
.pm-err { color: var(--pm-danger); font-weight: 700; }
.pm-ok { color: var(--pm-success); font-weight: 700; margin-top: 10px; }
.pm-urg.is-emer { border: 2px solid var(--pm-danger); }
.pm-urg .pm-when { font: 700 1.6rem var(--pm-head); margin: 4px 0; }
