/* Public page headings and content indexes share one editorial rhythm. */
.public-site .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.public-site:not(.detail-cases) .page-hero {
  display: flex;
  align-items: center;
  min-height: 280px;
  padding-block: 52px;
  background: var(--surface-paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.public-site .page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--surface-linework) center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.public-site .page-hero.detail-heading::before {
  opacity: 0.3;
}

.public-site .page-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.public-site:not(.detail-cases) .page-hero h1 {
  max-width: 17em;
  margin-bottom: 18px;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.public-site:not(.detail-cases) .page-hero:not(.detail-heading) h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 18px;
  background: var(--blue);
}

.public-site:not(.detail-cases) .page-hero p {
  max-width: 48ch;
  margin-bottom: 0;
  color: #435b75;
  line-height: 1.85;
}

.public-site.detail-news .detail-heading,
.public-site.detail-download .detail-heading {
  min-height: 0;
  padding-block: 32px 20px;
}

.public-site.detail-news .detail-heading .container,
.public-site.detail-download .detail-heading .container {
  padding-block: 0;
}

.public-site.detail-news .detail-body-section,
.public-site.detail-download .detail-body-section {
  padding-top: 24px;
}

.page-hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.public-site .page-hero.has-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 48%;
  background: linear-gradient(90deg, #edf4fb 0%, #edf4fbcc 12%, #edf4fb00 48%);
  pointer-events: none;
}

.public-site.listing-news .page-hero:not(.has-visual) {
  background: var(--surface-night);
  border-bottom-color: #193b57;
  color: #fff;
}

.public-site.listing-news .page-hero:not(.has-visual)::before {
  opacity: 0.25;
}

.public-site.listing-news .page-hero:not(.has-visual) h1 {
  color: #fff;
}

.public-site.listing-news .page-hero:not(.has-visual) p {
  color: #c4d7e7;
}

.public-site.listing-product .page-hero-image {
  object-fit: contain;
  padding: 26px 5% 26px 0;
}

.public-site.listing-news .page-hero-image {
  opacity: 0.35;
}

.public-site.listing-page .listing-section {
  padding-block: clamp(36px, 4vw, 56px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
}

.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #415670;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 180ms, color 180ms, border-color 180ms;
}

.filters a:hover,
.filters a:focus-visible {
  color: var(--blue);
  background: #edf5fd;
}

.filters a.selected {
  color: #fff;
  background: var(--blue);
}


.filter-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.filter-bar .search-form {
  display: flex;
  align-items: stretch;
  width: min(100%, 340px);
  min-height: 44px;
  margin-left: auto;
  border: 1px solid #cbd9e8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.filter-bar .search-form input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.filter-bar .search-form button {
  flex: none;
  padding: 8px 16px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.results-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-block: 24px 22px;
  color: #61738a;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  padding: 70px 24px;
  background: #f4f8fc;
  text-align: center;
  color: #52657c;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 180ms, box-shadow 180ms, transform 240ms;
}

.content-card:focus-within {
  border-color: #a9c9e7;
  box-shadow: 0 0 0 2px #0869cc12;
}

.card-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-title-link:focus-visible::after {
  outline: 3px solid var(--blue);
  outline-offset: -4px;
}

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #edf3f8;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .content-card:hover {
    border-color: #a9c9e7;
    box-shadow: 0 8px 22px #163c5912;
    transform: translateY(-3px);
  }

  .content-card:hover .card-image img {
    transform: scale(1.035);
  }
}

.card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 22px;
  overflow-wrap: anywhere;
}

.card-text :is(h2, h3) {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.5;
}

.card-text p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card-text .product-use {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.card-text .text-link {
  margin-top: auto;
}

.product-grid .card-image {
  aspect-ratio: 4 / 3;
}

.product-grid .card-image img {
  object-fit: contain;
  padding: 24px;
}

.product-grid .content-card {
  background: #f8fbfe;
}

.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid > .content-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.case-grid > .content-card:first-child .card-image {
  aspect-ratio: 16 / 9;
}

.case-grid > .content-card:first-child .card-text {
  justify-content: center;
  padding: clamp(26px, 4vw, 56px);
}

.case-grid > .content-card:first-child h3 {
  font-size: clamp(23px, 2.5vw, 34px);
}

.news-index {
  border-top: 1px solid var(--line);
}

.news-row {
  position: relative;
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr) 44px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.news-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-row time {
  padding-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.news-row :is(h2, h3) {
  margin-bottom: 12px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  font-weight: 650;
  transition: color 180ms;
}

.news-row p {
  margin-bottom: 0;
  color: #52657c;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-row:is(:hover, :focus-within) :is(h2, h3) {
  color: var(--blue);
}

.news-row-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  transition: background-color 180ms, border-color 180ms, transform 180ms;
}

.news-row:is(:hover, :focus-within) .news-row-arrow {
  background: #eaf4ff;
  border-color: #94bce3;
}

@media (hover: hover) and (pointer: fine) {
  .news-row:hover .news-row-arrow {
    transform: translateX(3px);
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 44px;
  color: #52657c;
  font-variant-numeric: tabular-nums;
}

.pagination-position {
  text-align: center;
  min-width: 6em;
  font-size: 14px;
}

.pagination-disabled {
  padding: 8px 14px;
  color: #697b8c;
  border: 1px solid #e1e7ed;
  border-radius: 4px;
  opacity: 0.65;
  cursor: default;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #cbd9e8;
  border-radius: 4px;
  color: var(--blue);
  transition: background-color 180ms, border-color 180ms;
}

.pagination a:is(:hover, :focus-visible) {
  background: #edf5fd;
  border-color: #94bce3;
}

.download-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.download-list > a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms;
}

.download-list > a:is(:hover, :focus-visible) {
  background: #f3f8fc;
}

.document-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #e9f3fd;
  color: var(--blue);
}

.document-icon .ui-icon {
  width: 25px;
  height: 25px;
}

.download-format {
  font-size: 12px;
  line-height: 1.2;
}

.download-copy :is(h2, h3) {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.5;
}

.download-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.download-copy p {
  margin-bottom: 0;
  font-size: 14px;
}

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

  .case-grid > .content-card:first-child {
    grid-template-columns: 1fr;
  }

  .case-grid > .content-card:first-child .card-image {
    aspect-ratio: 3 / 2;
  }

  .filter-bar .search-form {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .public-site:not(.detail-cases) .page-hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
    padding: 0;
  }

  .page-hero-image {
    position: relative;
    width: 100%;
    height: 160px;
    object-fit: cover;
  }

  .public-site .page-hero.has-visual::after {
    display: none;
  }

  .public-site .page-hero .container {
    padding-block: 32px;
  }

  .public-site .page-hero::before {
    background-size: auto 100%;
    background-position: 62% center;
  }

  .public-site .page-hero h1 {
    font-size: 32px;
  }

  .public-site .page-hero p {
    font-size: 15px;
  }

  .filters {
    flex-wrap: wrap;
    overflow-x: visible;
    max-width: 100%;
    width: 100%;
    scrollbar-width: thin;
  }

  .filters a {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .public-site.listing-product .page-hero-image {
    position: absolute;
    inset: 20px 20px auto auto;
    width: 96px;
    height: 96px;
    padding: 0;
  }

  .public-site.listing-product .page-hero {
    display: block;
    padding-block: 24px;
  }

  .public-site.listing-product .page-hero .container {
    padding-block: 0;
  }

  .public-site.listing-product .page-hero h1 {
    max-width: none;
    margin-bottom: 12px;
    font-size: 28px;
  }

  .public-site.listing-product .page-hero.has-visual h1 {
    min-height: 72px;
    padding-inline-end: 108px;
  }

  .public-site.listing-product .page-hero h1::after {
    margin-top: 12px;
  }

  .public-site.listing-product .page-hero p {
    max-width: none;
    font-size: 14px;
    line-height: 1.75;
  }

  .public-site.listing-product .listing-section {
    padding-top: 24px;
  }

  .public-site.listing-product .catalog-tools {
    gap: 12px;
    margin-bottom: 0;
    padding-bottom: 16px;
  }

  .listing-product .results-meta {
    margin-block: 12px 16px;
  }

  .filter-bar .search-form {
    width: 100%;
  }

  .card-grid,
  .card-grid.four,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 20px;
  }

  .product-grid .card-image {
    aspect-ratio: 16 / 9;
  }

  .product-grid .card-image img {
    padding: 16px;
  }

  .product-grid .card-text {
    padding: 18px;
  }

  .product-grid .card-text :is(h2, h3) {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .product-grid .card-text p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
  }

  .product-grid .card-text .product-use {
    margin-bottom: 8px;
  }

  .case-grid > .content-card:first-child {
    grid-column: auto;
  }

  .news-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px 16px;
    padding-block: 22px;
  }

  .news-row time {
    grid-column: 1;
    padding: 0;
    font-size: 12px;
  }

  .news-row > div {
    grid-column: 1;
  }

  .news-row :is(h2, h3) {
    font-size: 18px;
  }

  .news-row-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .download-list > a {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .document-icon {
    width: 34px;
    height: 48px;
  }

  .download-list > a > .text-link {
    grid-column: 2;
  }

  .pagination {
    gap: 8px;
    padding-top: 32px;
  }

  .pagination a,
  .pagination-disabled {
    padding-inline: 12px;
  }

  .pagination-position {
    flex: 1 1 5em;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-card,
  .card-image img,
  .news-row-arrow {
    transition: none;
  }

  .content-card:hover,
  .content-card:hover .card-image img,
  .news-row:hover .news-row-arrow {
    transform: none;
  }
}
