/* Blog-only styles. Colors, fonts, nav, buttons and footer come from the main site's stylesheet. */

.blog {
  padding: 120px 0 80px;
}
.blog__eyebrow {
  margin-bottom: 12px;
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.blog__eyebrow a {
  color: inherit;
  text-decoration: none;
}
.blog .h2 {
  max-width: 24ch;
  text-wrap: balance;
}
.nav__links a[aria-current] {
  color: var(--indigo);
  font-weight: 600;
}

/* index: one horizontal row per guide, photo left and text right */
.rows {
  display: grid;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid rgba(14, 19, 48, 0.12);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.row:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}
.row img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: var(--paper);
}
.row__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
}
.row__meta,
.post__meta,
.next__meta {
  color: var(--muted);
  font-size: 0.85rem;
}
.row__title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.row__desc {
  color: var(--muted);
}
.row__go {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 600;
}
.row__go::after {
  content: ' \2192';
}

/* post: article on the left, suggestions on the right */
.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.post__meta {
  margin-top: 14px;
}
.post {
  min-width: 0;
}
.post p,
.post li {
  max-width: 64ch;
  line-height: 1.7;
}
.post p {
  margin-top: 1em;
}
.post .post__meta + p {
  margin-top: 28px;
  font-size: 1.12rem;
}
.post h2 {
  margin: 2.2em 0 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.post ul,
.post ol {
  margin: 1em 0 0;
  padding-left: 1.3em;
}
.post li + li {
  margin-top: 0.4em;
}
.post a:not(.btn) {
  color: var(--jungle);
  text-underline-offset: 3px;
}
.post .btn {
  margin-top: 1em;
}
.post figure {
  margin: 1.8em 0 0;
}
.post figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--paper);
}
.post figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.next {
  position: sticky;
  top: 96px;
}
.next h2 {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.next ul {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.next a {
  display: grid;
  gap: 6px;
  overflow: hidden;
  padding-bottom: 16px;
  border: 1px solid rgba(14, 19, 48, 0.12);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.next a:hover {
  border-color: var(--indigo);
}
.next img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper);
}
.next__title {
  padding: 8px 16px 0;
  font-weight: 600;
  line-height: 1.3;
}
.next__meta {
  padding: 0 16px;
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .next {
    position: static;
  }
  .next ul {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
@media (max-width: 640px) {
  .blog {
    padding-top: 100px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .row img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .row__text {
    padding: 20px;
  }
}

/* language switcher in the nav (no JavaScript: a details dropdown) */
.blang {
  position: relative;
}
.blang summary {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(14, 19, 48, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.blang summary::-webkit-details-marker {
  display: none;
}
.blang summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.blang ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(14, 19, 48, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(14, 19, 48, 0.14);
}
.blang a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--indigo);
  font-size: 0.92rem;
  text-decoration: none;
}
.blang a:hover {
  background: var(--mist);
}
.blang a[aria-current] {
  font-weight: 600;
}

/* tight Latin tracking and long measures read badly in Chinese, Japanese and Korean */
:is(:lang(zh), :lang(ja), :lang(ko)) :is(.h2, .row__title, .post h2) {
  letter-spacing: 0;
  line-height: 1.3;
}
:is(:lang(zh), :lang(ja), :lang(ko)) .post :is(p, li) {
  max-width: 34em;
  line-height: 1.85;
}
:lang(ja) :is(.h2, .row__title, .post h2) {
  word-break: auto-phrase;
}

/* Traditional Chinese uses each device's traditional-script fonts */
html:lang(zh-Hant) {
  --serif: 'DM Serif Display', 'Songti TC', 'PMingLiU', 'Noto Serif CJK TC', 'Noto Serif TC', serif;
  --display: 'Unbounded', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans CJK TC', 'Noto Sans TC', sans-serif;
  --body: 'Instrument Sans', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans CJK TC', 'Noto Sans TC', sans-serif;
}
:lang(zh-Hant) :is(.h2, .row__title, .post h2) {
  letter-spacing: 0;
  line-height: 1.3;
}
:lang(zh-Hant) .post :is(p, li) {
  max-width: 34em;
  line-height: 1.85;
}

/* header photo at the top of each post */
.post__hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  margin-bottom: 44px;
  border-radius: 22px;
  object-fit: cover;
  background: var(--paper);
}
@media (max-width: 640px) {
  .post__hero {
    aspect-ratio: 16 / 9;
    margin-bottom: 32px;
    border-radius: 16px;
  }
}

/* fleet pages (/fleet/): same look as the blog, plus a price table, FAQ and chips */
.fleet .crumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}
.fleet .crumbs a {
  color: inherit;
}
.fleet h2 {
  margin: 48px 0 16px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}
.fleet h3 {
  margin: 24px 0 6px;
  font-size: 1.05rem;
}
.fleet p {
  max-width: 68ch;
  line-height: 1.65;
}
.fleet-table-wrap {
  margin: 32px 0 24px;
  overflow-x: auto;
  border: 1px solid rgba(14, 19, 48, 0.12);
  border-radius: 18px;
  background: #fff;
}
.fleet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.fleet-table th,
.fleet-table td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}
.fleet-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fleet-table tbody tr {
  border-top: 1px solid rgba(14, 19, 48, 0.08);
}
.fleet-table a {
  color: var(--gold-ink);
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips a {
  padding: 8px 16px;
  border: 1px solid rgba(14, 19, 48, 0.2);
  border-radius: 999px;
  color: var(--indigo);
  text-decoration: none;
}
.chips a:hover {
  border-color: var(--indigo);
}
.type-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.type-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 16px 20px;
  border: 1px solid rgba(14, 19, 48, 0.12);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.type-list a:hover {
  border-color: var(--indigo);
}
.type-list span {
  color: var(--muted);
}

.post__credit {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.post__credit a {
  color: inherit;
}

/* phones: keep the brand, the language switch and the menu button on one line */
@media (max-width: 760px) {
  .nav__brand {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .nav__end {
    flex: none;
    gap: 6px;
  }
  .blang summary {
    padding: 0 10px;
    font-size: 0.78rem;
  }
}
