/* Apartment match (/housing/match/). DS3 tokens only: ink, secondary, lines, well; ink primary state. */
html main.fg-match { max-width: 1120px; margin: 0 auto; padding: 24px clamp(20px, 3.34vw, 48px) 56px; color: var(--fg-ink, #1f1f1f); }
html main.fg-match .fg-match-crumbs { font-size: 14px; color: var(--fg-secondary, #6b6b6b); }
html main.fg-match .fg-match-crumbs a { color: inherit; }
html main.fg-match h1 { margin: 12px 0 8px; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
html main.fg-match .fg-match-lead { margin: 0 0 20px; max-width: 40em; font-size: 17px; line-height: 1.5; color: var(--fg-ink-2, #3d3d3d); }
html main.fg-match .fg-match-panel { border: 1px solid var(--fg-line-strong, #dcdcdc); border-radius: 16px; overflow: hidden; background: #fff; }
html main.fg-match .fg-match-q + .fg-match-q { border-top: 1px solid var(--fg-line, #e8e8e8); }
html main.fg-match .fg-match-q h2 { margin: 0; font-size: inherit; }
html main.fg-match .fg-match-q h2 button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px;
  border: 0; border-radius: 0; box-shadow: none; min-height: 0; margin: 0; background: none; font: 600 16px/1.3 inherit; font-family: inherit; color: inherit; text-align: left; cursor: pointer; }
html main.fg-match .fg-match-q h2 button span { font-weight: 600; color: var(--fg-secondary, #6b6b6b); }
html main.fg-match .fg-match-q h2 button[aria-expanded="true"] { padding-bottom: 8px; font-size: 20px; }
html main.fg-match .fg-match-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px 18px; }
html main.fg-match .fg-match-opts button { min-height: 44px; padding: 0 16px; border: 1px solid var(--fg-line-strong, #dcdcdc); border-radius: 999px;
  background: #fff; box-shadow: none; margin: 0; color: inherit; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
html main.fg-match .fg-match-opts button:hover { border-color: var(--fg-ink, #1f1f1f); }
html main.fg-match .fg-match-opts button[aria-pressed="true"] { background: var(--fg-ink, #1f1f1f); border-color: var(--fg-ink, #1f1f1f); color: #fff; }
html main.fg-match .fg-match-results { margin-top: 28px; }
html main.fg-match .fg-match-count { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--fg-secondary, #6b6b6b); }
html main.fg-match .fg-match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { html main.fg-match .fg-match-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { html main.fg-match .fg-match-list { grid-template-columns: repeat(3, 1fr); } }
html main.fg-match .fg-match-card { display: grid; gap: 4px; align-content: start; color: inherit; text-decoration: none; width: 100%; }
html main.fg-match .fg-match-card img, html main.fg-match .fg-match-noimg { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px;
  background: var(--fg-well, #f6f6f4); margin-bottom: 6px; }
html main.fg-match .fg-match-name { font-size: 17px; font-weight: 700; }
html main.fg-match .fg-match-card:hover .fg-match-name { text-decoration: underline; }
html main.fg-match .fg-match-price { font-size: 15px; color: var(--fg-ink-2, #3d3d3d); }
html main.fg-match .fg-match-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
html main.fg-match .fg-match-why i { font-style: normal; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--fg-well, #f6f6f4); }
html main.fg-match .fg-match-more { margin: 24px 0 0; font-size: 15px; }
html main.fg-match .fg-match-more a { color: inherit; }
html main.fg-match .fg-match-more button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
html main.fg-match .fg-match-note { margin: 32px 0 0; max-width: 44em; font-size: 13px; line-height: 1.5; color: var(--fg-secondary, #6b6b6b); }
html .fg-match-entry { margin: 4px 0 12px; font-size: 15px; }
html .fg-match-entry a { color: inherit; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  html main.fg-match .fg-match-list li { animation: fg-match-in 200ms cubic-bezier(.2, 0, 0, 1) both; }
  html main.fg-match .fg-match-list li:nth-child(2) { animation-delay: 30ms; } html main.fg-match .fg-match-list li:nth-child(3) { animation-delay: 60ms; }
  html main.fg-match .fg-match-list li:nth-child(n+4) { animation-delay: 90ms; }
}
@keyframes fg-match-in { from { opacity: 0; translate: 0 6px; } }
html main.fg-match .fg-match-showmore { display: block; margin: 24px auto 0; min-height: 44px; padding: 0 20px; border: 1px solid var(--fg-ink, #1f1f1f); border-radius: 8px; background: #fff; color: var(--fg-ink, #1f1f1f); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: none; }
html main.fg-match .fg-match-showmore[hidden] { display: none; }
html main.fg-match .fg-match-list li { position: relative; }
html main.fg-match .fg-match-save { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--fg-ink, #1f1f1f); font: 600 14px/1 inherit; font-family: inherit; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); cursor: pointer; }
html main.fg-match .fg-match-save .ds3-icon { width: 18px; height: 18px; }
html main.fg-match .fg-match-save[aria-pressed="true"] .ds3-icon { fill: currentColor; }
