/* Top page only. */

body.k3-layout-top {
  --sb-top-latest-row-height: 176px;
  --sb-top-latest-thumb-width: 300px;
  overflow-x: hidden;
}

body.k3-layout-top .k3-page {
  overflow: visible;
}

body.k3-layout-top .sb-card > .entry-title {
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1.25;
}

body.k3-layout-top .sb-card > .sb-content {
  padding: 12px;
}


body.k3-layout-top .k3-header__top {
  padding: 12px 16px !important;
}

body.k3-layout-top .k3-header__brand {
  display: inline-block;
}

/* --------------------------------------------------------------------------
 * Full-bleed hero carousel
 * ----------------------------------------------------------------------- */

body.k3-layout-top .sb-top-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw) 18px;
  border: 0;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

body.k3-layout-top .sb-top-hero__viewport {
  position: relative;
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1500 / 720;
  background: #f3f3f3;
  overflow: hidden;
}

body.k3-layout-top .sb-top-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

body.k3-layout-top .sb-top-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

body.k3-layout-top .sb-top-hero__slide.is-prev,
body.k3-layout-top .sb-top-hero__slide.is-next {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

body.k3-layout-top .sb-top-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.k3-layout-top .sb-top-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
}

body.k3-layout-top .sb-top-hero__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #c8c8c8;
  cursor: pointer;
}

body.k3-layout-top .sb-top-hero__dot.is-active {
  background: #fff;
}

/* --------------------------------------------------------------------------
 * Main/sidebar layout
 * ----------------------------------------------------------------------- */

body.k3-layout-top .k3-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

body.k3-layout-top .k3-top-main,
body.k3-layout-top .k3-top-sidebar {
  min-width: 0;
}

body.k3-layout-top .k3-top-sidebar {
  display: grid;
  gap: 18px;
}

body.k3-layout-top .sb-card + .sb-card {
  margin-top: 18px;
}

body.k3-layout-top .sb-top-intro,
body.k3-layout-top .sb-top-latest,
body.k3-layout-top .sb-side-card {
  margin-bottom: 18px;
}

@layer k3-about-defaults {
body.k3-layout-top .sb-top-explanation {
  font-size: 14px;
  line-height: 1.9;
}

body.k3-layout-top .sb-top-explanation > *:first-child {
  margin-top: 0;
}


body.k3-layout-top .sb-top-explanation img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
}

/* --------------------------------------------------------------------------
 * Latest articles
 * ----------------------------------------------------------------------- */

body.k3-layout-top .sb-top-latest__list {
  display: grid;
}

body.k3-layout-top .sb-top-article {
  display: grid;
  grid-template-columns: var(--sb-top-latest-thumb-width) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  height: var(--sb-top-latest-row-height);
  min-height: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-sizing: content-box;
}

body.k3-layout-top .sb-top-article:first-child {
  border-top: 0;
}

body.k3-layout-top .sb-top-article__thumb,
body.k3-layout-top .sb-top-article__body {
  min-width: 0;
  height: 100%;
}

body.k3-layout-top .sb-top-article__thumb {
  overflow: hidden;
}

body.k3-layout-top .sb-top-article__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  background: #f1f1f1;
  overflow: hidden;
}

body.k3-layout-top .sb-top-article__thumb-link--placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  color: #777;
  text-decoration: none;
}

body.k3-layout-top .sb-top-article__thumb .sb-thumb__img {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

body.k3-layout-top .sb-top-article__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
}

body.k3-layout-top .sb-top-article__meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #666;
  font-size: 12px;
}

body.k3-layout-top .sb-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
}

body.k3-layout-top .sb-badge--placement {
  background: #8a8a8a;
  color: #fff;
}

body.k3-layout-top .sb-badge--new {
  background: #d9534f;
  color: #fff;
}

body.k3-layout-top .sb-top-article__title {
  flex: 0 0 auto;
  margin: 0 0 8px;
  height: 2.8em;
  min-height: 2.8em;
  max-height: 2.8em;  
  overflow: hidden;
  font-size: 18px;
  line-height: 1.4;
}

body.k3-layout-top .sb-top-article__title a {
  display: -webkit-box;
  overflow: hidden;
  color: #c65400;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.k3-layout-top .sb-top-article__title a:hover {
  text-decoration: underline;
}

body.k3-layout-top .sb-top-article__excerpt {
  display: -webkit-box;
  flex: 1 1 auto;
  min-height: 0;  
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid #cfcfcf;
  overflow: hidden;
  color: #444;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.k3-layout-top .sb-top-article__more {
  margin-top: auto;
  padding-top: 8px;
  flex: 0 0 auto;
}

body.k3-layout-top .sb-top-article__more a {
  color: #7aa03b;
  font-size: 13px;
  text-decoration: none;
}

body.k3-layout-top .sb-top-article__more a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
 * Top sidebar
 * ----------------------------------------------------------------------- */

body.k3-layout-top .sb-chip {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: #6cb7d8;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
}

body.k3-layout-top .sb-map-link,
body.k3-layout-top .sb-info-table dd a {
  color: #78a400;
  text-decoration: none;
}

body.k3-layout-top .sb-map-link:hover,
body.k3-layout-top .sb-info-table dd a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
 * Spot "from" free HTML
 * ----------------------------------------------------------------------- */

body.k3-layout-top .sb-home-spot-from__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: center;
}

body.k3-layout-top .sb-home-spot-from__body {
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  body.k3-layout-top .k3-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.k3-layout-top .sb-top-explanation {
    font-size: 13px;
  }

  body.k3-layout-top .sb-top-article {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  body.k3-layout-top .sb-top-article__title {
    height: auto;
    min-height: 0;
    max-height: none;
  }


  body.k3-layout-top .sb-top-article__thumb,
  body.k3-layout-top .sb-top-article__thumb-link,
  body.k3-layout-top .sb-top-article__body {
    height: auto;
  }

  body.k3-layout-top .sb-top-article__thumb .sb-thumb__img {
    height: auto !important;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  body.k3-layout-top .sb-top-article__body {
    min-height: 0;
  }

  body.k3-layout-top .sb-top-article__excerpt {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
}
