/* Editorial serif headlines and flattened chrome
   Loaded after style-blue2 / typography / site-theme. */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourceserif4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourceserif4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Serif display for editorial headlines; Inter stays for body and UI */
.post_head_title,
.custom_post_head_title,
.lead-title,
.secondary-title,
.feature_title,
.pp_header_title,
.ww_header_title,
.cp_header_title,
.it_header_title,
.pp_title,
.cp_title,
.it_title,
.ww_title,
.post_list_item_body .section-title,
.main-header .page-title {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.01em;
}

.post_head_title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 600;
}

.post_head_title strong { font-weight: 700; }

.lead-title {
  font-size: 32px;
  line-height: 1.16;
  font-weight: 700;
}

.secondary-title {
  font-size: 16px;
  line-height: 1.32;
  font-weight: 600;
}

/* Section pages: larger serif headlines with more breathing room */
.post_list_item_body {
  padding: 24px;
}

.post_list_item_body .section-title {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.post_list_item_body .section-title a {
  color: #111;
  text-decoration: none;
}

.post_list_item_body .section-title a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post_list_item_body .post-preview-text {
  color: #4a4f57;
  font-size: 15.5px;
  line-height: 1.55;
}

/* Flatten chrome: no gradients, heavy shadows or decorative blue bars */
body { box-shadow: none !important; }

.shadow-box {
  box-shadow: none !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
}

.panel {
  box-shadow: none !important;
  border-radius: 0 !important;
}

.panel-default {
  border-color: #e5e7eb !important;
  box-shadow: none !important;
  background: #fff;
}

.panel-default > .panel-heading {
  background: #fff !important;
  border-color: #e5e7eb !important;
  color: #111 !important;
}

.navbar-default {
  box-shadow: none !important;
  background-image: none !important;
}

.navbar-default.navbar-dark {
  border-bottom: 1px solid #2f3338 !important;
}

.btn-primary,
.btn-ar.btn-primary {
  background: #4d7db3 !important;
  background-image: none !important;
  border: 1px solid #4d7db3 !important;
  box-shadow: none !important;
  border-radius: 0;
}

.top_line_news,
.top_line {
  height: 1px !important;
  background: #e5e7eb !important;
}

.imageborder {
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
}

.page-header,
.post_head_title,
.ww_header_container {
  border-bottom: 1px solid #e5e7eb !important;
}

hr.color { border-color: #e5e7eb !important; }

.post_container {
  box-shadow: none !important;
  border: 1px solid #e5e7eb;
}

/* One accent colour, used for kickers, links and controls only */
.homepage-lead .lead-kicker,
.homepage-lead .secondary-kicker,
.homepage-lead .headline-kicker,
.homepage-lead .headline-list-head a,
.post_category,
.post_list_item_body .post_category,
.post-content-custom p a,
.homepage-lead .headline-list a:hover .headline-title {
  color: #4d7db3 !important;
}

/* Generous whitespace in the top module */
.homepage-lead .secondary-grid {
  gap: 20px;
  padding: 26px 0;
}

.homepage-lead .headline-list-wrap {
  padding: 22px 22px 6px;
}

.homepage-lead .headline-list a { padding: 16px 0; }

@media (max-width: 991px) {
  .post_head_title { font-size: 34px; }
  .lead-title { font-size: 28px; }
  .post_list_item_body .section-title { font-size: 22px; }
}

@media (max-width: 767px) {
  .post_head_title { font-size: 29px; }
  .lead-title { font-size: 25px; }
  .secondary-title { font-size: 15px; }
  .post_list_item_body { padding: 18px; }
  .post_list_item_body .section-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .homepage-lead .headline-list-wrap { padding: 16px 14px 4px; }
  .homepage-lead .headline-list a { padding: 14px 0; }
}

/* Article hierarchy */
.post_cover_img_container {
  width: 100%;
}

.post_cover_img_container img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5b6470;
}

.article-meta .post_date,
.article-meta .article-reading-time {
  color: #5b6470 !important;
  font-size: 12px;
}

.article-meta-sep { color: #c3c8cf; }

.key-takeaways {
  margin: 22px 0 26px;
  padding: 18px 20px;
  background: #f7f8fa;
  border-left: 3px solid #4d7db3;
}

.key-takeaways h2 {
  margin: 0 0 10px;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 18px;
}

.key-takeaways li {
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.key-takeaways li:last-child { margin-bottom: 0; }

.post-content-custom blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.2em;
  border-left: 3px solid #4d7db3;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.4em;
  line-height: 1.45;
  font-style: italic;
  color: #111;
}

/* "More from Europe Real Estate" cards */
.related-section-title {
  margin: 30px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.related-card { min-width: 0; }

.related-media {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  background: #e9ecf0;
  aspect-ratio: 16 / 9;
}

.related-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.related-card:hover .related-media img { transform: scale(1.04); }

.related-kicker {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4d7db3;
}

.related-title {
  margin: 0 0 5px;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: #111;
}

.related-title a { color: #111; text-decoration: none; }
.related-title a:hover { text-decoration: underline; text-underline-offset: 2px; }

.related-date {
  font-size: 11px;
  color: #5b6470;
}

/* Newsletter CTA band */
.newsletter-cta {
  margin: 24px 0;
  padding: 24px;
  background: #1c1f23;
  color: #fff;
}

.newsletter-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-cta h2 {
  margin: 0 0 6px;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.newsletter-cta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #c7ccd3;
}

.newsletter-cta-btn {
  flex: 0 0 auto;
  padding: 12px 24px;
  background: #fff;
  color: #111 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.newsletter-cta-btn:hover { background: #e9ecf0; }

/* Metadata discipline */
.homepage-lead .lead-date,
.homepage-lead .secondary-date,
.homepage-lead .headline-date,
.post_date,
.river-date,
.related-date {
  color: #5b6470 !important;
}

@media (max-width: 991px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .newsletter-cta-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-cta h2 { font-size: 21px; }
  .related-section-title { font-size: 21px; }
}

@media (max-width: 480px) {
  .related-grid { gap: 14px; }
  .related-title { font-size: 15px; }
  .newsletter-cta { padding: 18px; }
  .newsletter-cta-btn { width: 100%; text-align: center; }
}
