.logo-shell {
  border-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 0.35rem 0;
  flex: 0 0 auto !important;
}

.lang-logo {
  width: auto;
  height: clamp(4.9rem, 7vw, 6.8rem);
  max-width: min(520px, 38vw);
  object-fit: contain;
  display: block;
}

#sidebar .logo-panel {
  padding: 0 0 1rem;
}

#sidebar .logo-panel .lang-logo {
  height: clamp(4.2rem, 5vw, 5.6rem);
  max-width: min(100%, 15rem);
}

#sidebar .logo-panel a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
}

#header .logo.logo-shell {
  min-width: min(20rem, 42vw);
}

.language-control {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.language-control label {
  font-size: 0.9rem;
  color: #7f888f;
  font-weight: 600;
}

.language-control select {
  border-radius: 0.35rem;
  border: solid 1px rgba(210, 215, 217, 0.75);
  padding: 0 0.7rem;
  height: 2.4rem;
  min-width: 10rem;
  font-size: 0.92rem;
}

.language-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.language-button {
  appearance: none;
  border-radius: 0.35rem;
  border: solid 1px rgba(210, 215, 217, 0.9);
  background: #ffffff;
  color: #3d4449;
  padding: 0.24rem 0.68rem;
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 600;
  cursor: pointer;
}

.language-button:hover {
  border-color: #f56a6a;
  color: #f56a6a;
}

.language-button.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  border: solid 1px #f56a6a;
  color: #f56a6a;
  border-radius: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.link-pill:hover {
  background: rgba(245, 106, 106, 0.1);
}

.hero .lead {
  color: #3d4449;
  font-weight: 600;
}

#banner.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: stretch;
}

#banner.home-hero .content {
  width: 100%;
}

.home-intro-paragraph {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  line-height: 1.78;
  color: #2f363c;
}

#banner.home-hero .hero-image {
  width: 100%;
  margin: 0;
}

#banner.home-hero .hero-image img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.hero-meta {
  margin-top: 0.8rem;
  color: #6b7378;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.badge {
  background: #f6f7f8;
  color: #4a5358;
  border-radius: 0.35rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.76rem;
  border: solid 1px rgba(210, 215, 217, 0.75);
}

#app section {
  margin-top: 2.4rem;
}

#app section:first-child {
  margin-top: 1.6rem;
}

.hero-image img,
.posts article .image img,
.mini-posts article .image img {
  object-fit: cover;
}

.posts article .image img {
  height: 14rem;
}

.inner-page-banner .hero-image img {
  height: 20rem;
}

.article-content p,
.article-content h3 {
  margin: 0 0 0.85rem;
}

.article-content,
.article-content p,
.article-content li {
  max-width: none !important;
  width: 100%;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.05rem 0 0.65rem;
}

.article-content h3 {
  color: #3d4449;
}

.article-content h4 {
  color: #4f575c;
  font-size: 1rem;
}

.expert-body {
  width: 100%;
}

.expert-body .article-content,
.expert-body .article-content p,
.expert-body .article-content li {
  max-width: none !important;
  width: 100%;
}

.content-list {
  margin: 0.2rem 0 1rem 1.1rem;
}

.content-list li {
  margin: 0.28rem 0;
}

.content-divider {
  border: 0;
  border-top: solid 1px rgba(210, 215, 217, 0.75);
  margin: 1.2rem 0;
}

.inline-link {
  color: #f56a6a;
  border-bottom: dotted 1px rgba(245, 106, 106, 0.6);
}

.inline-link:hover {
  border-bottom-color: transparent;
}

.mini-copy-link {
  color: inherit;
  border-bottom: 0;
  text-decoration: none;
}

.mini-copy-link:hover {
  color: #f56a6a;
}

.english-only {
  margin-top: 0.8rem;
  border: solid 1px rgba(245, 106, 106, 0.6);
  border-radius: 0.35rem;
  background: rgba(245, 106, 106, 0.08);
  color: #3d4449;
  padding: 0.7rem 0.8rem;
  font-size: 0.93rem;
}

#menu ul a {
  white-space: normal;
}

.home-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.home-panel {
  border: solid 1px rgba(210, 215, 217, 0.75);
  border-radius: 0.5rem;
  padding: 1.4rem 1.35rem 1.2rem;
  background: #ffffff;
  height: 100%;
}

.home-panel .major {
  margin-bottom: 1.1rem;
}

.home-panel .major h2 {
  margin-bottom: 0;
}

.home-flow-step + .home-flow-step,
.home-privacy-group + .home-privacy-group {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: solid 1px rgba(210, 215, 217, 0.55);
}

.home-flow-step h3,
.home-privacy-group h3 {
  margin: 0 0 0.55rem;
}

.home-flow-link {
  margin: 0.45rem 0 0;
}

.home-privacy .content-list {
  margin-top: 0.35rem;
}

.home-panel-wide {
  padding-top: 1.1rem;
}

.home-disclaimer-note {
  margin: 0;
}

.home-link-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.legal-footer {
  margin-top: 1rem;
}

.legal-link-buttons {
  margin-top: 0;
}

.legal-link-pill {
  color: #35556d;
  border-color: #35556d;
  background: rgba(53, 85, 109, 0.08);
}

.legal-link-pill:hover {
  background: rgba(53, 85, 109, 0.16);
  color: #294459;
}

.noscript-content {
  border: solid 1px rgba(210, 215, 217, 0.75);
  border-radius: 0.5rem;
  padding: 1rem;
  background: #ffffff;
}

.noscript-content .major {
  margin-bottom: 0.8rem;
}

.app-shell-page #main > .inner {
  max-width: 120em;
}

.app-shell-section {
  margin-top: 1.6rem !important;
}

.app-entry-card {
  border: solid 1px rgba(210, 215, 217, 0.75);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.5rem;
}

.app-entry-copy {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
}

.app-entry-badges {
  margin-top: 1rem;
}

.app-entry-card .actions {
  margin-top: 1.25rem;
}

.app-entry-note {
  margin: 1rem 0 0;
  color: #5a646d;
  font-size: 0.95rem;
  line-height: 1.65;
}

.sample-note-panel,
.sample-copy-section,
.sample-preview-section {
  margin-top: 1.5rem !important;
}

.sample-cta-row {
  margin-top: 1.1rem;
}

.sample-preview-layout {
  display: block;
}

.sample-carousel-card,
.sample-pdf-card {
  border: solid 1px rgba(210, 215, 217, 0.8);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.9rem;
}

.sample-pdf-card-single {
  max-width: 920px;
}

.sample-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.sample-carousel-nav {
  border: solid 1px rgba(127, 136, 143, 0.45);
  background: #ffffff;
  color: #3d4449;
  border-radius: 0.35rem;
  min-width: 2.1rem;
  min-height: 2.1rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.sample-carousel-nav:hover {
  background: rgba(53, 85, 109, 0.08);
}

.sample-carousel-viewport {
  overflow: hidden;
  border-radius: 0.35rem;
  border: solid 1px rgba(210, 215, 217, 0.75);
}

.sample-carousel-track {
  display: flex;
  transition: transform 0.24s ease;
  width: 100%;
}

.sample-carousel-slide {
  min-width: 100%;
}

.sample-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f8f9fb;
}

.sample-carousel-dots {
  margin-top: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.sample-carousel-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  border: 0;
  background: rgba(127, 136, 143, 0.5);
  cursor: pointer;
}

.sample-carousel-dot.is-active {
  background: #35556d;
}

.sample-badge-row {
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sample-badge {
  background: #eef2f5;
  border-color: #d8dfe4;
}

.sample-pdf-frame-wrap {
  border: solid 1px rgba(210, 215, 217, 0.75);
  border-radius: 0.4rem;
  overflow: hidden;
}

.sample-pdf-frame {
  width: 100%;
  height: 44rem;
  border: 0;
  display: block;
}

@media screen and (max-width: 980px) {
  .lang-logo {
    height: clamp(5.2rem, 11vw, 6.4rem);
    max-width: min(320px, 56vw);
  }

  #header .logo.logo-shell {
    min-width: 0;
  }

  .language-control {
    margin-top: 0.45rem;
  }

  #banner.home-hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .home-intro-paragraph {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  #banner.home-hero .hero-image img {
    min-height: 14rem;
    height: auto;
  }

  .posts article .image img,
  .inner-page-banner .hero-image img {
    height: 12rem;
  }

  .home-knowledge-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-panel {
    padding: 1rem;
  }

  .app-entry-card {
    padding: 1rem;
  }

  .sample-pdf-frame {
    height: 32rem;
  }
}

@media screen and (max-width: 736px) {
  .logo-shell {
    padding: 0.45rem 0 0.2rem;
  }

  .lang-logo {
    height: clamp(5.8rem, 15vw, 7.2rem);
    max-width: min(300px, 62vw);
  }

  #sidebar .logo-panel {
    padding-bottom: 1.15rem;
  }

  #sidebar .logo-panel .lang-logo {
    height: clamp(4.8rem, 13vw, 5.8rem);
    max-width: min(100%, 11rem);
  }
}
