/* Blog / news — site brand tokens (match Tilda export) */
:root {
  --bg: #fff;
  --peach: #ffd8ce;
  --peach-soft: #ffe8e1;
  --ink: #111;
  --muted: #555;
  --blue: #0032c7;
  --blue-border: #99b3ff;
  --accent: #ff3300;
  --card: #fff;
  --line: #f0e4df;
  --radius: 35px;
  --radius-sm: 28px;
  --radius-btn: 15px;
  --font: "Montserrat", Arial, sans-serif;
  --header-offset: 110px;
}

* { box-sizing: border-box; }

body.blog {
  margin: 0;
  font-family: var(--font);
  background: var(--peach);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  --t-text-font: "Montserrat", Arial, sans-serif;
}

body.blog #allrecords {
  background: var(--peach);
}

#t-header {
  width: 100%;
  position: fixed;
  z-index: 10;
}

.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-offset) + 24px) 20px 72px;
}

.blog-main--under-banner {
  padding-top: 28px;
}

.blog-main--article {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

a { color: inherit; }

/* Page banner — from /about hero: peach artboard + rounded plaque (orange instead of photo) */
.page-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--peach);
  box-sizing: border-box;
}

.page-banner__plaque {
  width: 100%;
  height: 310px;
  background: var(--accent);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 0 35px 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 80px 40px 40px;
  position: relative;
  overflow: hidden;
}

.page-banner--hero .page-banner__plaque {
  height: 460px;
  padding: 100px 40px 56px;
}

.page-banner__plaque--cover {
  background-color: #2a2a2a;
}

.page-banner__shade {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.page-banner__plaque--cover .page-banner__shade {
  display: block;
}

.page-banner__title {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 900px;
}

@media screen and (max-width: 1199px) {
  .page-banner__plaque { height: 290px; }
  .page-banner--hero .page-banner__plaque { height: 460px; }
}

@media screen and (max-width: 959px) {
  .page-banner__plaque { height: 440px; padding: 100px 40px 60px; }
  .page-banner--hero .page-banner__plaque { height: 600px; }
}

@media screen and (max-width: 479px) {
  .page-banner__plaque { height: 310px; padding: 80px 22px 40px; }
  .page-banner--hero .page-banner__plaque { height: 420px; padding: 90px 22px 48px; }
  .page-banner__title { font-size: 28px; }
}

/* Article page plates */
.article-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.content-plate {
  width: 100%;
  background: #fff;
  border-radius: 35px;
  box-sizing: border-box;
}

.content-plate__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  box-sizing: border-box;
}

.content-plate__inner.article {
  max-width: 760px;
}

.content-plate__inner.article.article--with-toc {
  max-width: 1200px;
  position: relative;
  display: block;
}

.article-toc-rail {
  display: none;
}

@media (min-width: 1100px) {
  .article-toc-rail {
    display: block;
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 200px;
    z-index: 2;
    pointer-events: none;
  }

  .article-toc {
    position: sticky;
    top: calc(var(--header-offset) + 4px);
    width: 200px;
    pointer-events: auto;
  }
}

.article-toc__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--line);
}

.article-toc__link {
  display: block;
  padding: 8px 0 8px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: color .15s ease, border-color .15s ease;
}

.article-toc__link:hover {
  color: var(--ink);
}

.article-toc__link.is-active {
  color: var(--blue);
  border-left-color: var(--blue);
}

.article-body {
  min-width: 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1099px) {
  .content-plate__inner.article.article--with-toc {
    max-width: 760px;
  }

  .article-toc-rail {
    display: block;
    position: static;
    width: auto;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    pointer-events: auto;
  }

  .article-toc {
    position: static;
    width: auto;
  }

  .article-toc__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
  }

  .article-toc__link {
    margin-left: 0;
    border-left: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--peach-soft);
    color: var(--ink);
  }

  .article-toc__link.is-active {
    background: #e8eeff;
    border-left-color: transparent;
  }
}

.content-plate__inner.apt-footer,
.content-plate__inner.related,
.content-plate__inner.faq {
  padding: 80px 40px;
}

.plate-section__title,
.apt-footer__title,
.related__title,
.faq__title {
  margin: 0 0 40px;
  text-align: center;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  color: #000;
  letter-spacing: -0.02em;
}

.article-meta-row {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .content-plate {
    border-radius: 28px;
  }
  .content-plate__inner {
    padding: 28px 18px 36px;
  }
  .content-plate__inner.apt-footer,
  .content-plate__inner.related {
    padding: 56px 18px;
  }
  .plate-section__title,
  .apt-footer__title,
  .related__title,
  .faq__title {
    margin-bottom: 28px;
    font-size: clamp(24px, 6vw, 32px);
  }
}

/* ---- Listing ---- */

.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.post-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--peach-soft);
}

.post-card__img--empty {
  background: linear-gradient(135deg, #ffe4dc, #ffd0c4);
}

.post-card__title {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.post-card__excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.35;
  color: #444;
  flex: 1;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.post-card__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--radius-btn);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  font-size: 15px;
}

/* ---- Article ---- */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.article-back:hover { color: var(--accent); }

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 .75rem;
  line-height: 1.15;
  font-weight: 600;
}

.meta {
  display: flex;
  gap: .4rem;
  color: var(--muted);
  font-size: .88rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .85rem;
}

.tags span {
  font-size: .75rem;
  font-weight: 600;
  background: var(--peach-soft);
  color: #5c3a32;
  padding: .25rem .65rem;
  border-radius: 999px;
}

.article h2 {
  margin: 2rem 0 .75rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.article h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.prose p { margin: 0 0 1rem; font-size: 1.05rem; }
.bullets, .numlist { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.bullets li, .numlist li { margin: .35rem 0; }

.figure { margin: 1.5rem 0; }
.figure img,
.slide img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.figure figcaption,
.slide figcaption {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .45rem;
}

.slider {
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
}

.slider-track {
  display: flex;
  transition: transform .35s ease;
}

.slide { min-width: 100%; margin: 0; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--blue);
  cursor: pointer;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.slider-btn.prev { left: .6rem; }
.slider-btn.next { right: .6rem; }

.quote {
  margin: 1.75rem 0;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--blue);
  background: var(--peach-soft);
  border-radius: 0 20px 20px 0;
}

.quote p {
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: .75rem;
  color: var(--muted);
  font-style: normal;
  font-size: .9rem;
}

/* Apartment cards — match /selection-apartments district cards */
.apt-embed {
  margin: 1.75rem 0;
  max-width: 412px;
  padding: 16px;
  background: var(--peach);
  border-radius: var(--radius);
  box-sizing: border-box;
}

.apt-grid .apt-card,
.apt-embed .apt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--blue-border);
  border-radius: 25px;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity .15s ease;
}

.apt-grid .apt-card:hover,
.apt-embed .apt-card:hover {
  opacity: 0.6;
}

.apt-card__media {
  width: 100%;
  height: 150px;
  border-radius: 0;
  overflow: hidden;
  background: var(--peach-soft);
  flex-shrink: 0;
}

.apt-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.apt-card__media--empty {
  background: linear-gradient(135deg, #ffe4dc, #ffd0c4);
}

.apt-card__title {
  flex: 1;
  padding: 16px 20px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
}

.apt-card--single {
  max-width: 380px;
}

.apt-footer {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.content-plate__inner.apt-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.apt-footer__title {
  width: 100%;
  text-align: center;
}

.apt-grid,
.related .post-grid {
  max-width: 1016px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .apt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: stretch;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.article-page .apt-grid--n1 { grid-template-columns: minmax(0, 380px); justify-content: center; }
.article-page .apt-grid--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-page .apt-grid--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-page .apt-grid--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.article-page .apt-grid .apt-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-page .apt-grid--n3,
  .article-page .apt-grid--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --header-offset: 96px; }
}

@media (max-width: 640px) {
  .blog-main { padding-left: 16px; padding-right: 16px; }
  .blog-main--article { padding-left: 0; padding-right: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .article-page .apt-grid,
  .article-page .apt-grid--n1,
  .article-page .apt-grid--n2,
  .article-page .apt-grid--n3,
  .article-page .apt-grid--n4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .apt-card { border-radius: 25px; }
  .apt-card__media { height: 130px; }
}

.related {
  margin: 0;
}

.related__grid {
  margin: 0;
}

.related .post-card__title {
  font-size: 16px;
}

/* ---- FAQ ---- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
  position: relative;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: #0032c7;
  line-height: 1;
}

.faq-item[open] .faq-item__q::after {
  content: "−";
}

.faq-item__a {
  padding: 0 20px 18px;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}

.faq-item__a p {
  margin: 0 0 0.65em;
}

.faq-item__a p:last-child {
  margin-bottom: 0;
}

/* ---- Pagination ---- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px 0 8px;
  flex-wrap: wrap;
}

.pager__pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pager__link,
.pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.pager__link:hover,
.pager__num:hover {
  border-color: #99b3ff;
  color: #0032c7;
}

.pager__num--current {
  background: #0032c7;
  border-color: #0032c7;
  color: #fff;
  cursor: default;
}

.pager__link--disabled {
  opacity: 0.4;
  pointer-events: none;
}
