/* Blog: index, categories (Places, Stories) and articles. */

.bl-list .page, .bl-list .footer-cap, .bl-list .bl-head .pill { background: #fff; }

/* ------------------------------------------------------------------ header */
.bl-head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 192px 48px 48px;
}
.bl-head .big-title { width: 100%; }
.bl-cat .bl-head { padding-bottom: 47px; }
.bl-sub { font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: var(--ink); text-align: center; width: 100%; white-space: pre-wrap; }
.bl-sub-m { display: none; }
.bl-sub + .bl-sub-m + .bl-controls { margin-top: 23px; }

.bl-crumb { display: flex; align-items: center; justify-content: center; gap: 6px; height: 37px; }
.bl-crumb > a { font: 400 14px/16.8px var(--display); letter-spacing: -0.1px; color: var(--muted); }
.bl-chev { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.bl-chev svg { width: 14px; height: 14px; fill: var(--muted); }

/* Search box and category tabs */
.bl-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bl-search {
  display: flex; align-items: center; justify-content: space-between;
  width: 183px; height: 51px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: #000; cursor: pointer;
}
.bl-search svg { width: 20px; height: 20px; fill: #333; }
.bl-tabs {
  display: flex; gap: 4px; padding: 4px; height: 54px; border-radius: 12px;
  border: 1px solid var(--line);
}
.bl-tabs { padding: 3px; }
.bl-tab {
  position: relative; overflow: hidden; display: flex; align-items: center;
  height: 46px; padding: 0 16px; border-radius: 9px;
  font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: var(--ink);
}
.bl-tab span { position: relative; z-index: 1; }
.bl-tab::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: var(--bg); border-radius: 12px; transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.bl-tab:not(.is-active):hover::before { transform: none; }
.bl-tab.is-active { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ cards */
.bl-cards { padding: 48px 120px 192px; }
.bl-index-grid { display: grid; grid-template-columns: 588px 1fr; gap: 24px; align-items: start; }
.bl-feature { position: sticky; top: 133px; }
.bl-small { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 24px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 24px; align-items: start; }

.card { display: block; color: #000; }
.card-img { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-big .card-img { border-radius: 24px; }
.card-tag {
  position: absolute; left: 12px; top: 12px; padding: 10px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  font: 400 14px/16.8px var(--display); letter-spacing: -0.1px; color: var(--ink);
}
.card-arrow {
  position: absolute; right: 24px; bottom: 12px; width: 22px; height: 22px; border-radius: 5px;
  background: rgba(26, 26, 26, 0.1); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.card-arrow svg { width: 14px; height: 14px; fill: #fff; }
.card:hover .card-arrow { opacity: 1; }
.card-title { margin-top: 12px; font: 500 18px/23.4px var(--display); letter-spacing: -0.1px; color: #000; }
.card-date { margin-top: 6px; font: 400 14px/16.8px var(--display); letter-spacing: -0.1px; color: var(--muted); }

/* ------------------------------------------------------------------ banner */
.bl-banner {
  position: relative; overflow: hidden; width: 900px; max-width: calc(100% - 96px); height: 292px;
  margin: 0 auto 96px; border-radius: 24px; display: flex; justify-content: space-between; align-items: flex-start;
  padding: 36px 48px;
}
.bl-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.bl-banner-text { position: relative; width: 378px; color: #fff; }
.bl-banner-text h4 { font: 600 26px/33.8px var(--display); }
.bl-banner-text h5 { margin-top: 6px; font: 500 18px/23.4px var(--display); letter-spacing: -0.1px; }
.bl-banner-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; height: 42px; padding: 0 12px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: #fff; white-space: nowrap;
}
.bl-banner-btn::before {
  content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.15); border-radius: 12px;
  transform: translateY(100%); transition: transform 0.3s var(--ease);
}
.bl-banner-btn:hover::before { transform: none; }

/* ------------------------------------------------------------------ search */
.search-modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.65);
  display: flex; justify-content: center; align-items: flex-start; padding: 184px 16px 16px;
}
.search-modal[hidden] { display: none; }
.sm-box { width: 500px; max-width: 100%; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
.sm-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; }
.sm-field > svg { width: 20px; height: 20px; fill: #999; flex: none; }
.sm-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font: 500 16px/20px var(--inter); color: #000; -webkit-appearance: none; appearance: none;
}
.sm-field input::placeholder { color: #999; }
.sm-field input::-webkit-search-cancel-button { display: none; }
.sm-clear { border: 0; background: none; padding: 0; width: 16px; height: 16px; cursor: pointer; flex: none; }
.sm-clear svg { width: 16px; height: 16px; fill: #aaa; }
.sm-results { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; }
.sm-results:not(:empty) { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.sm-results a { display: block; padding: 18px 20px; }
.sm-results a.is-sel { background: #efefef; }
.sm-results strong, .sm-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-results strong { font: 500 14px/20px var(--inter); color: #000; }
.sm-results small { margin-top: 3px; font: 400 12px/16px var(--inter); color: #999; }
.sm-results .sm-empty { padding: 18px 20px; text-align: center; font: 400 14px/18px var(--inter); color: #999; }
body.sm-open { overflow: hidden; }
@media (max-width: 809.98px) {
  .search-modal { padding: 0; }
  .sm-box { width: 100%; border-radius: 0; }
  .sm-results { max-height: calc(100vh - 56px); }
}

/* ------------------------------------------------------------------ article */
.ar-head { display: flex; flex-direction: column; align-items: center; padding: 192px 120px 48px; }
.ar-title {
  margin-top: 12px; width: 100%; text-align: center;
  font: 700 54px/64.8px var(--display); letter-spacing: -1px; color: #000;
}
.ar-title .word { display: inline-block; white-space: nowrap; }
.ar-intro {
  margin-top: 24px; width: 100%; max-width: 1104px; text-align: center; text-wrap: balance;
  font: 500 18px/23.4px var(--display); letter-spacing: -0.1px; color: #000;
}
.ar-cover { margin: 0 48px; height: 660px; border-radius: 36px; overflow: hidden; }
.ar-cover img { width: 100%; height: 100%; object-fit: cover; }
.ar-body { width: 900px; max-width: calc(100% - 96px); margin: 192px auto 0; }

/* Rich text, same rules as the original: text keeps its own spaces and line breaks. */
.rt { display: flex; flex-direction: column; white-space: pre-wrap; word-break: break-word; }
.rt p { font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: var(--ink); }
.rt strong { font-weight: 700; }
.rt h2 { font: 700 54px/64.8px var(--display); letter-spacing: -1px; color: #000; }
.rt h2 strong { font-weight: 900; }
.rt h3 { font: 600 36px/46.8px var(--display); letter-spacing: -0.5px; color: #000; }
.rt h3 strong { font-weight: 700; }
.rt h4 { margin-top: 40px; font: 600 26px/33.8px var(--display); color: #000; }
.rt h4 strong { font-weight: 700; }
.rt img { max-width: 100%; height: auto; margin-top: 72px; border-radius: 50px; }
.rt blockquote { position: relative; margin: 20px 0 0; padding-left: 25px; }
.rt blockquote::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 20px; background: rgb(94, 129, 244); }
.rt blockquote p { font: italic 400 16px/28.8px var(--inter); letter-spacing: normal; color: #000; }
.rt blockquote p + p { margin-top: 20px; }

.ar-author { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; height: 122px; padding-top: 68px; }
.ar-who { display: flex; align-items: center; gap: 12px; font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: var(--muted); }
.ar-who img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.ar-date { font: 500 18px/21.6px var(--inter); letter-spacing: -0.1px; color: var(--muted); }

.ar-related { padding: 192px 120px 96px; }
.ar-related h2 { font: 700 54px/64.8px var(--display); letter-spacing: -1px; color: #000; margin-bottom: 48px; }

/* ------------------------------------------------------------------ tablet */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .bl-cards, .ar-related { padding-left: 48px; padding-right: 48px; }
  .bl-index-grid { grid-template-columns: 1fr 1fr; }
  .bl-small { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 809.98px) {
  .bl-head, .bl-cat .bl-head { padding: 192px 24px 48px; }
  .bl-sub-d { display: none; }
  .bl-sub-m { display: block; text-align: left; font-size: 15px; line-height: 18px; }
  .bl-sub-m span { display: block; }
  .bl-sub + .bl-sub-m + .bl-controls { margin-top: 24px; }
  .bl-crumb { height: 36px; }
  .bl-crumb > a { font-size: 13px; line-height: 15.6px; }
  .bl-controls { flex-direction: column; gap: 12px; }
  .bl-search { width: 226px; font-size: 15px; line-height: 18px; }
  .bl-tabs { height: 50px; }
  .bl-tab { height: 42px; font-size: 15px; line-height: 18px; }

  .bl-cards { padding: 48px 24px 144px; }
  .bl-cat .bl-cards { padding-bottom: 144px; }
  .bl-index-grid, .bl-small, .bl-grid { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .bl-index-grid { gap: 24px; }
  .bl-feature { position: static; }
  .card-img, .card-big .card-img { border-radius: 14px; aspect-ratio: auto; height: 228px; }
  .card-tag { font-size: 13px; line-height: 15.6px; }
  .card-title { font-size: 16px; line-height: 20.8px; }
  .card-date { font-size: 13px; line-height: 15.6px; }

  .bl-banner { flex-direction: column; justify-content: flex-start; height: auto; max-width: calc(100% - 48px); padding: 36px 24px; gap: 120px; }
  .bl-banner-text { width: 100%; }
  .bl-banner-text h4 { font-size: 18px; line-height: 23.4px; }
  .bl-banner-text h5 { font-size: 16px; line-height: 20.8px; }
  .bl-banner-btn { height: 38px; font-size: 15px; line-height: 18px; }

  .ar-head { padding: 192px 24px 48px; }
  .ar-title { font-size: 32px; line-height: 38.4px; }
  .ar-intro { font-size: 16px; line-height: 20.8px; }
  .ar-cover { margin: 0 12px; height: 520px; }
  .ar-body { width: auto; max-width: none; margin: 144px 23px 0 24px; }
  .rt p { font-size: 15px; line-height: 18px; }
  .rt h2 { font-size: 32px; line-height: 38.4px; }
  .rt h3 { font-size: 22px; line-height: 28.6px; }
  .rt h4 { font-size: 18px; line-height: 23.4px; }
  .ar-who, .ar-date { font-size: 15px; line-height: 18px; }
  .ar-author { height: 96px; padding-top: 0; }
  .ar-related { padding: 144px 24px 96px; }
  .ar-related h2 { font-size: 32px; line-height: 38.4px; }
  .ar-related .rel-3 { display: none; }
}
