/* locale-hubs.css: shared by the localized home hubs (/fr/, /pt-br/, /it/, /ja/, /zh-hans/, /zh-hant/, /ko/, /ar/).
   1. The Obsidian Flagship Dark lifestyle showcase, same values as the inline styles on the English home page.
   2. Wrapping for long or unspaced headings.
   3. Right-to-left overrides for home.css and _style.css (Arabic). */

/* 1. Lifestyle showcase ---------------------------------------------------- */
#lifestyle-showcase {
  background: radial-gradient(circle at 20% 0%, #132A52 0%, #070B14 68%);
  color: #F8FAFC;
  padding: 64px 20px;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

#lifestyle-showcase .ls-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

#lifestyle-showcase .ls-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 36px;
}

#lifestyle-showcase .ls-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38BDF8;
  margin: 0 0 10px;
}

#lifestyle-showcase h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 12px;
  color: #FFFFFF;
}

#lifestyle-showcase .ls-sub {
  font-size: 16px;
  color: #94A3B8;
  margin: 0;
}

#lifestyle-showcase .ls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

#lifestyle-showcase figure {
  margin: 0;
  background: #0F172A;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  padding: 10px;
  text-align: center;
}

#lifestyle-showcase figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

#lifestyle-showcase figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #E2E8F0;
}

#lifestyle-showcase .ls-compare {
  background: #0F172A;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 26px 24px;
  overflow-x: auto;
}

#lifestyle-showcase h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

#lifestyle-showcase table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
  color: #E2E8F0;
}

#lifestyle-showcase th,
#lifestyle-showcase td {
  padding: 10px 12px;
  text-align: start;
}

#lifestyle-showcase thead tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #94A3B8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#lifestyle-showcase thead th.us {
  color: #38BDF8;
}

#lifestyle-showcase thead a {
  color: #94A3B8;
}

#lifestyle-showcase tbody tr + tr {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

#lifestyle-showcase tbody td:first-child {
  font-weight: 600;
}

#lifestyle-showcase tbody td.us,
#lifestyle-showcase tbody td.us a {
  color: #34D399;
  font-weight: 700;
}

/* 2. Wrapping -------------------------------------------------------------- */
main :is(h1, h2) {
  overflow-wrap: anywhere;
}

.home .cols > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

:is(:lang(ja), :lang(zh), :lang(ko)) main :is(h1, h2, h3) {
  letter-spacing: 0;
  line-break: strict;
}

:lang(ko) main {
  word-break: keep-all;
}

@media (max-width: 380px) {
  .home nav.top {
    gap: 10px;
    padding-inline: 12px;
  }

  .home nav.top .navcta {
    padding-inline: 10px;
  }
}

/* 3. Right-to-left (Arabic) ------------------------------------------------ */
/* Arabic letters join, so letter-spacing is switched off wherever the base styles set it. */
[dir="rtl"] :is(h1, h2, h3, nav.top .brand, nav.top .navcta),
[dir="rtl"] #lifestyle-showcase :is(h2, .ls-eyebrow, thead tr) {
  letter-spacing: 0;
}

[dir="rtl"] nav.top .brand {
  margin-right: 0;
  margin-left: auto;
  padding-left: 0;
  padding-right: 0;
}

[dir="rtl"] nav.top .site-languages summary::after {
  margin-left: 0;
  margin-right: 5px;
}

[dir="rtl"] :is(.hstage, .steps, .bento, .plan, .toast span) {
  text-align: right;
}

[dir="rtl"] .dpengu {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .bubble {
  border-radius: 22px 22px 22px 6px;
}

/* The compass is a map of the body: zone 1 stays top-left whatever the reading direction. */
[dir="rtl"] .compass {
  direction: ltr;
}

[dir="rtl"] .compass button,
[dir="rtl"] .compass button:nth-child(even) {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .toast i {
  left: auto;
  right: 0;
}

[dir="rtl"] .feature li {
  padding: 9px 30px 9px 0;
}

[dir="rtl"] .feature li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .never li {
  padding-left: 0;
  padding-right: 34px;
}

[dir="rtl"] .never li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .plan li {
  padding: 9px 28px 9px 0;
}

[dir="rtl"] .plan li::before {
  left: auto;
  right: 2px;
}

[dir="rtl"] .faq summary {
  padding: 18px 0 18px 36px;
}

[dir="rtl"] .faq summary::after {
  right: auto;
  left: 4px;
}

@media (min-width: 901px) {
  [dir="rtl"] .steps li {
    padding: 32px 0 8px 28px;
  }

  [dir="rtl"] .steps li + li {
    padding-right: 28px;
    border-left: 0;
    border-right: 1px solid var(--line);
  }

  [dir="rtl"] .privacy div {
    padding: 32px 0 12px 28px;
  }

  [dir="rtl"] .privacy div + div {
    padding-right: 28px;
    border-left: 0;
    border-right: 1px solid var(--band-line);
  }
}

/* 4. Right-to-left overrides for guide.css on the Arabic comparison pages -- */
[dir="rtl"] .answer {
  border-left: 0;
  border-right: 3px solid var(--primary);
  border-radius: 18px 4px 4px 18px;
}

[dir="rtl"] main ul.clean,
[dir="rtl"] .sources {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .tbl th,
[dir="rtl"] .tbl td,
[dir="rtl"] .tbl caption {
  text-align: right;
}
