/* Blog and article (makets Blog-Final/Mobile, Article-Final/Mobile). */

.b-cat { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.b-meta { font-size: 13px; color: var(--muted); }
.b-h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }

/* intro */
.b-intro { padding-top: 48px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.b-title { margin: 0; font-size: 56px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.b-lead { margin: 0; font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 700px; }
.b-empty { margin: 0 0 48px; font-size: 18px; color: var(--muted); }

/* share buttons on cards */
.b-acts { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; z-index: 2; }
.b-acts--sm { top: 12px; right: 12px; }
.b-act { width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer; background: #fff; box-shadow: 0 2px 8px rgba(0, 18, 41, .18); display: flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.b-acts--sm .b-act { width: 36px; height: 36px; }
.b-act .ico { width: 17px; height: 17px; }
.b-act.is-done { color: var(--wa); }

/* featured bento: big article 2x2, two side cards (or "Ask a broker" in a free slot) */
.b-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 250px 250px; gap: 16px; padding-bottom: 48px; }
.b-feat { grid-column: span 2; grid-row: span 2; position: relative; border-radius: 28px; overflow: hidden; background: #2F6E86; }
.b-feat__link { position: absolute; inset: 0; color: #fff; text-decoration: none; }
.b-feat__link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-feat__link::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, rgba(0, 18, 41, 0), rgba(0, 18, 41, .78)); }
.b-feat__text { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.b-feat__tag { align-self: flex-start; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; }
.b-feat__title { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.b-feat__meta { font-size: 14px; opacity: .9; }
.b-feat__link:hover { color: #fff; }
.b-side { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.b-side__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.b-side__link:hover { color: var(--ink); }
.b-side__link:hover .b-side__title { color: var(--accent); }
.b-side__media { height: 120px; flex: none; background: #D6CDBB; }
.b-side__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-side__text { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.b-side__title { font-size: 18px; font-weight: 800; line-height: 1.25; }
.b-bento--0 .b-ask--slot { grid-row: span 2; }

/* "Ask a broker" */
.b-ask { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.b-ask__title { font-weight: 800; font-size: 18px; }
.b-ask__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.b-ask__btn { height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: center; }
.b-ask__btn:hover { color: var(--ink); border-color: var(--ink); }
.b-ask__btn .ico { width: 18px; height: 18px; }
.b-ask__btn .ico--wa { color: var(--wa); }
.b-ask__btn .ico--ms { color: var(--messenger); }
.b-ask--slot { justify-content: center; }

/* latest + sidebar */
.b-latest { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 56px; }
.b-latest__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.b-latest__head { display: flex; justify-content: space-between; align-items: baseline; }
.b-latest__head span { font-size: 14px; color: var(--muted); }
.b-aside { flex: 1 1 300px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.b-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.b-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.b-card__link:hover { color: var(--ink); }
.b-card__link:hover .b-card__title { color: var(--accent); }
.b-card__media { height: 170px; position: relative; background: #C9D9DE; }
.b-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-card__cat { position: absolute; top: 12px; left: 12px; background: #fff; font-size: 12px; font-weight: 800; color: var(--accent); padding: 4px 9px; border-radius: 7px; }
.b-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.b-card__title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.b-card__lead { font-size: 14px; color: var(--muted); line-height: 1.5; }
.b-card .b-meta { margin-top: auto; }
.b-more { align-self: center; height: 50px; padding: 0 26px; border-radius: 14px; font-size: 15px; font-weight: 700; }

/* "Ready to look at real homes?" */
.b-next { background: #E9F6F9; border-radius: 28px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 64px; }
.b-next__text { display: flex; flex-direction: column; gap: 6px; }
.b-next__text strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.b-next__text span { color: var(--ink-2); }
.b-next__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.b-next__btns .btn { height: 50px; padding: 0 20px; border-radius: 12px; font-weight: 800; }
.wrap.b-next { max-width: calc(var(--wrap) - 2 * var(--gutter)); padding-left: 32px; padding-right: 32px; }

/* ---------- article ---------- */
.read-bar { display: block; height: 3px; background: var(--bg-soft); }
.read-bar > span { display: block; height: 100%; width: 0; background: var(--accent); }
.read-bar--top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; }
.art-top { display: none; }

.art-head.wrap { max-width: 944px; padding-top: 40px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 16px; }
.art-title { margin: 0; font-size: 52px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.art-lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.art-by { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.art-by__avatar { width: 46px; height: 46px; flex: none; border-radius: 999px; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.art-by__text { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.art-by__text strong { color: var(--ink); font-weight: 800; }
.art-kicker { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

.art-cover.wrap { max-width: 1280px; padding-bottom: 24px; }
.art-cover img { width: 100%; height: 460px; object-fit: cover; border-radius: 28px; display: block; background: #9FC0CB; }

.art-body.wrap { max-width: 1280px; padding-top: 24px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.art-aside { flex: 1 1 240px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.toc { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.toc__title { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.toc__link { text-decoration: none; padding: 7px 10px; border-left: 3px solid var(--line); color: var(--muted); }
.toc__link--sub { padding-left: 22px; }
.toc__link:hover { color: var(--ink); }
.toc__link.is-active { border-left-color: var(--accent); color: var(--ink); font-weight: 700; background: #E9F6F9; }
.art-share { display: flex; gap: 8px; }
.art-share a, .art-share button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.art-share .ico { width: 18px; height: 18px; }
.art-share .art-share__wa { color: var(--wa); }
.art-share button.is-done { color: var(--wa); border-color: var(--wa); }

.art-text { flex: 999 1 640px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.prose { font-size: 18px; line-height: 1.75; color: #0B2240; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 22px; }
.prose h2 { margin: 34px 0 14px; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { margin: 28px 0 12px; font-size: 23px; line-height: 1.25; font-weight: 800; color: var(--ink); scroll-margin-top: 96px; }
.prose a { color: var(--accent); }
.prose img { max-width: 100%; height: auto; border-radius: 18px; display: block; }
.prose figure { margin: 0 0 22px; }
.prose blockquote { margin: 0 0 22px; background: #E9F6F9; border-radius: 16px; padding: 16px 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }

.art-contact { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.art-contact__avatar { width: 64px; height: 64px; flex: none; border-radius: 999px; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; object-fit: cover; }
.art-contact__text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.art-contact__text strong { font-size: 18px; font-weight: 800; color: var(--ink); }
.art-contact__btns { display: flex; gap: 8px; }
.art-contact__btns .btn { height: 46px; font-weight: 800; }

.art-next { border-top: 1px solid var(--line); }
.art-next .wrap { max-width: 1280px; padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.art-next__title { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.art-next__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.art-next__card { border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.art-next__card:hover { color: var(--ink); }
.art-next__card:hover .art-next__name { color: var(--accent); }
.art-next__media { height: 150px; background: #D6CDBB; border-radius: 22px 22px 0 0; overflow: hidden; }
.art-next__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-next__text { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.art-next__name { font-weight: 800; font-size: 18px; line-height: 1.3; }

.art-bar { display: none; }

@media (max-width: 1080px) {
  .b-title { font-size: 46px; }
  .b-feat__title { font-size: 30px; }
  .art-title { font-size: 42px; }
}

@media (max-width: 960px) {
  .page-blog .bottom-bar { display: none; }

  .b-intro { padding-top: 16px; padding-bottom: 0; gap: 12px; }
  .b-intro .kicker { font-size: 12px; letter-spacing: .08em; }
  .b-title { font-size: 28px; line-height: 1.12; letter-spacing: -0.03em; }

  .b-bento { display: block; padding-top: 14px; padding-bottom: 0; }
  .b-feat { height: 300px; border-radius: 22px; }
  .b-feat__text { left: 18px; right: 18px; bottom: 18px; gap: 8px; }
  .b-feat__tag { font-size: 12px; padding: 4px 9px; border-radius: 7px; }
  .b-feat__title { font-size: 22px; line-height: 1.15; letter-spacing: 0; }
  .b-feat__meta { font-size: 13px; }
  .b-acts { top: 14px; right: 14px; }
  .b-act { width: 38px; height: 38px; }

  .b-rows { padding-top: 18px; display: flex !important; flex-direction: column; gap: 12px; }
  .b-rows .b-h2 { font-size: 22px; letter-spacing: 0; }
  .b-row { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  .b-row__link { display: flex; color: var(--ink); text-decoration: none; min-height: 104px; }
  .b-row__media { flex: none; width: 104px; background: #C9D9DE; }
  .b-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .b-row__text { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .b-row .b-cat { font-size: 12px; letter-spacing: 0; }
  .b-row__title { font-weight: 800; font-size: 15px; line-height: 1.3; }
  .b-row .b-meta { font-size: 12px; }
  .b-acts--row { top: auto; right: auto; bottom: 8px; left: 8px; }
  .b-acts--row .b-act { width: 32px; height: 32px; }
  .b-acts--row .b-act .ico { width: 15px; height: 15px; }
  .b-rows .b-more { align-self: stretch; height: 48px; justify-content: center; }
  .blog { padding-bottom: 28px; }

  /* article: the own top bar of Article-Mobile replaces the site header */
  .page-article .utility, .page-article .header { display: none; }
  .art-top { display: flex !important; position: sticky; top: 0; z-index: 20; height: 58px; padding: 0 8px 0 16px; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
  .art-top__back { display: flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; }
  .art-top__back .ico { width: 20px; height: 20px; }
  .art-top__share { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
  .art-top__share .ico { width: 20px; height: 20px; }
  .art-top .read-bar { position: absolute; left: 0; right: 0; bottom: -4px; }

  .art-head.wrap { padding: 20px 18px 0; gap: 16px; }
  .art-title { font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; }
  .art-by { border: 0; padding: 0; gap: 10px; }
  .art-by__avatar { width: 38px; height: 38px; font-size: 13px; }
  .art-by__text { font-size: 13px; line-height: 1.4; display: block; }
  .art-by__text strong { margin-right: 4px; }
  .art-by__text strong::after { content: ' ·'; font-weight: 400; color: var(--muted); }
  .art-cover.wrap { padding: 16px 18px 0; }
  .art-cover img { height: 210px; border-radius: 20px; }
  .art-body.wrap { display: block; padding: 16px 18px 0; }
  .art-text { gap: 16px; }
  .art-lead { font-size: 17px; line-height: 1.6; }
  .toc-m { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 15px; display: block !important; }
  .toc-m summary { font-weight: 800; cursor: pointer; }
  .toc-m div { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; line-height: 1.5; }
  .toc-m a { text-decoration: none; color: var(--accent); }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose p, .prose ul, .prose ol, .prose figure { margin-bottom: 16px; }
  .prose h2 { font-size: 23px; line-height: 1.25; margin: 24px 0 10px; letter-spacing: 0; scroll-margin-top: 72px; }
  .prose h3 { font-size: 19px; margin: 20px 0 8px; scroll-margin-top: 72px; }

  .art-next { border-top: 0; }
  .art-next .wrap { padding: 28px 18px 28px; gap: 10px; }
  .art-next__title { font-size: 20px; letter-spacing: 0; }
  .art-next__grid { display: flex; flex-direction: column; gap: 10px; }
  .art-next__card { flex-direction: row; gap: 12px; border-radius: 0; overflow: visible; }
  .art-next__media { width: 84px; height: 64px; flex: none; border-radius: 12px; }
  .art-next__text { padding: 0; }
  .art-next__name { font-size: 15px; line-height: 1.4; font-weight: 700; }

  .art-bar {
    display: flex; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(0, 18, 41, .1);
  }
  .art-bar__text { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.3; }
  .art-bar__wa { height: 48px; padding: 0 16px; border-radius: 12px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; display: flex; align-items: center; }
  .art-bar__wa:hover { color: #fff; }
  .art-bar__ms { width: 48px; height: 48px; border-radius: 12px; background: var(--messenger); color: #fff; display: flex; align-items: center; justify-content: center; }
  .art-bar__ms .ico { width: 20px; height: 20px; }
}
