/*
 * Imported rich-text compatibility layer.
 *
 * .sb-richtext owns only containment invariants. Historical Bootstrap-era
 * components are deliberately opt-in through .sb-richtext--legacy so that
 * modern archive and standalone article markup keeps its existing cascade.
 */

body.k3-layout-spot .sb-richtext {
  min-width: 0;
  max-width: none;
  overflow-wrap: anywhere;
}

body.k3-layout-spot .sb-richtext > * {
  max-width: none !important;
}

body.k3-layout-spot
.sb-richtext:not(.sb-richtext--custom-css)
img,
body.k3-layout-spot
.sb-richtext:not(.sb-richtext--custom-css)
.wp-block-image img,
body.k3-layout-spot
.sb-richtext:not(.sb-richtext--custom-css)
.wp-caption img,
body.k3-layout-spot
.sb-richtext:not(.sb-richtext--custom-css)
.alignnone,
body.k3-layout-spot
.sb-richtext:not(.sb-richtext--custom-css)
.alignleft,
body.k3-layout-spot
.sb-richtext:not(.sb-richtext--custom-css)
.alignright,
body.k3-layout-spot
.sb-richtext:not(.sb-richtext--custom-css)
.aligncenter {
    max-width: 100% !important;
    width: auto;
    height: auto;
    box-sizing: border-box;
}

@layer k3-custom-content-defaults {
    :where(
        body.k3-layout-spot
        .sb-richtext--custom-css
        img
    ) {
        max-width: 100%;
        width: auto;
        height: auto;
        box-sizing: border-box;
    }
}

/* Preserve legacy inline image-and-text vertical alignment. */
/*
body.k3-layout-spot .sb-richtext p > img,
body.k3-layout-spot .sb-richtext p > a[rel~="lightbox"] > img {
*/
body.k3-layout-spot .sb-richtext img {
  vertical-align: middle;
}

body.k3-layout-spot .sb-richtext figure,
body.k3-layout-spot .sb-richtext .wp-block-image,
body.k3-layout-spot .sb-richtext .wp-block-gallery,
body.k3-layout-spot .sb-richtext .wp-caption,
body.k3-layout-spot .sb-richtext iframe,
body.k3-layout-spot .sb-richtext video,
body.k3-layout-spot .sb-richtext embed,
body.k3-layout-spot .sb-richtext object {
  max-width: 100% !important;
  box-sizing: border-box;
}

body.k3-layout-spot .sb-richtext figure,
body.k3-layout-spot .sb-richtext .wp-block-image,
body.k3-layout-spot .sb-richtext .wp-caption {
  margin-inline: 0;
}

body.k3-layout-spot .sb-richtext p > img:only-child,
body.k3-layout-spot .sb-richtext .wp-block-image img,
body.k3-layout-spot .sb-richtext .wp-caption img {
  margin-inline: auto;
}

/*
body.k3-layout-spot .sb-richtext p > a:only-child {
    display: block;
    text-align: center;
}

body.k3-layout-spot .sb-richtext p > a:only-child > img {
    display: inline-block;
}

body.k3-layout-spot .sb-richtext p > img:only-child {
    display: block;
    margin-inline: auto;
}
*/

body.k3-layout-spot .sb-richtext--legacy a {
  color: var(--k3-link);
}

body.k3-layout-spot .sb-richtext--legacy ul,
body.k3-layout-spot .sb-richtext--legacy ol {
  padding-left: 1.25rem;
}

/* --------------------------------------------------------------------------
 * Bootstrap 3-era layout compatibility
 * ----------------------------------------------------------------------- */

body.k3-layout-spot .sb-richtext :is(.container, .containe) {
  width: 100%;
  margin-inline: auto;
  padding-inline: 15px;
  box-sizing: border-box;
}

body.k3-layout-spot .sb-richtext .row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -15px;
}

body.k3-layout-spot .sb-richtext :where(.row > [class*="col-"]) {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 15px;
  box-sizing: border-box;
}

body.k3-layout-spot .sb-richtext--legacy .clearfix::after {
  content: "";
  display: block;
  clear: both;
}

body.k3-layout-spot .sb-richtext--legacy .text-left {
  text-align: left;
}

body.k3-layout-spot .sb-richtext--legacy .text-center {
  text-align: center;
}

body.k3-layout-spot .sb-richtext--legacy .text-right {
  text-align: right;
}

body.k3-layout-spot .sb-richtext--legacy .text-muted {
  color: #666;
}

body.k3-layout-spot .sb-richtext--legacy .img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 1px) {
  body.k3-layout-spot .sb-richtext .col-xs-12 { flex: 0 0 100%; width: 100%; max-width: 100%; }
  body.k3-layout-spot .sb-richtext .col-xs-8 { flex: 0 0 66.6667%; width: 66.6667%; max-width: 66.6667%; }
  body.k3-layout-spot .sb-richtext .col-xs-7 { flex: 0 0 58.3333%; width: 58.3333%; max-width: 58.3333%; }
  body.k3-layout-spot .sb-richtext .col-xs-6 { flex: 0 0 50%; width: 50%; max-width: 50%; }
  body.k3-layout-spot .sb-richtext .col-xs-5 { flex: 0 0 41.6667%; width: 41.6667%; max-width: 41.6667%; }
  body.k3-layout-spot .sb-richtext .col-xs-4 { flex: 0 0 33.3333%; width: 33.3333%; max-width: 33.3333%; }
  body.k3-layout-spot .sb-richtext .col-xs-3 { flex: 0 0 25%; width: 25%; max-width: 25%; }
  body.k3-layout-spot .sb-richtext .col-xs-2 { flex: 0 0 16.6667%; width: 16.6667%; max-width: 16.6667%; }
}

@media (min-width: 768px) {
  body.k3-layout-spot .sb-richtext .col-sm-12 { flex: 0 0 100%; width: 100%; max-width: 100%; }
  body.k3-layout-spot .sb-richtext .col-sm-10 { flex: 0 0 83.3333%; width: 83.3333%; max-width: 83.3333%; }
  body.k3-layout-spot .sb-richtext .col-sm-8 { flex: 0 0 66.6667%; width: 66.6667%; max-width: 66.6667%; }
  body.k3-layout-spot .sb-richtext .col-sm-7 { flex: 0 0 58.3333%; width: 58.3333%; max-width: 58.3333%; }
  body.k3-layout-spot .sb-richtext .col-sm-6 { flex: 0 0 50%; width: 50%; max-width: 50%; }
  body.k3-layout-spot .sb-richtext .col-sm-5 { flex: 0 0 41.6667%; width: 41.6667%; max-width: 41.6667%; }
  body.k3-layout-spot .sb-richtext .col-sm-4 { flex: 0 0 33.3333%; width: 33.3333%; max-width: 33.3333%; }
}

@media (min-width: 992px) {
  body.k3-layout-spot .sb-richtext .col-md-12 { flex: 0 0 100%; width: 100%; max-width: 100%; }
  body.k3-layout-spot .sb-richtext .col-md-11 { flex: 0 0 91.6667%; width: 91.6667%; max-width: 91.6667%; }
  body.k3-layout-spot .sb-richtext .col-md-8 { flex: 0 0 66.6667%; width: 66.6667%; max-width: 66.6667%; }
  body.k3-layout-spot .sb-richtext .col-md-7 { flex: 0 0 58.3333%; width: 58.3333%; max-width: 58.3333%; }
  body.k3-layout-spot .sb-richtext .col-md-6 { flex: 0 0 50%; width: 50%; max-width: 50%; }
  body.k3-layout-spot .sb-richtext .col-md-5 { flex: 0 0 41.6667%; width: 41.6667%; max-width: 41.6667%; }
  body.k3-layout-spot .sb-richtext .col-md-4 { flex: 0 0 33.3333%; width: 33.3333%; max-width: 33.3333%; }
  body.k3-layout-spot .sb-richtext .col-md-3 { flex: 0 0 25%; width: 25%; max-width: 25%; }
  body.k3-layout-spot .sb-richtext .col-md-2 { flex: 0 0 16.6667%; width: 16.6667%; max-width: 16.6667%; }
}

@media (min-width: 1200px) {
  body.k3-layout-spot .sb-richtext .col-lg-11 { flex: 0 0 91.6667%; width: 91.6667%; max-width: 91.6667%; }
  body.k3-layout-spot .sb-richtext .col-lg-8 { flex: 0 0 66.6667%; width: 66.6667%; max-width: 66.6667%; }
  body.k3-layout-spot .sb-richtext .col-lg-4 { flex: 0 0 33.3333%; width: 33.3333%; max-width: 33.3333%; }
}

/* --------------------------------------------------------------------------
 * Bootstrap 3-era components
 * ----------------------------------------------------------------------- */

body.k3-layout-spot .sb-richtext--legacy .thumbnail {
  display: block;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

body.k3-layout-spot .sb-richtext--legacy .thumbnail > img {
  display: block;
  width: 100%;
  height: auto;
}

body.k3-layout-spot .sb-richtext--legacy .caption {
  padding: 9px;
  color: #333;
}

body.k3-layout-spot .sb-richtext--legacy .panel {
  margin: 0 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

body.k3-layout-spot .sb-richtext--legacy .panel-heading {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #f7f7f7;
}

body.k3-layout-spot .sb-richtext--legacy .panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

body.k3-layout-spot .sb-richtext--legacy .panel-body {
  padding: 12px 14px 14px;
}

body.k3-layout-spot .sb-richtext--legacy .list-group {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

body.k3-layout-spot .sb-richtext--legacy .list-group-item {
  display: block;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top-width: 0;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

body.k3-layout-spot .sb-richtext--legacy .list-group-item:first-child {
  border-top-width: 1px;
}

body.k3-layout-spot .sb-richtext--legacy .table,
body.k3-layout-spot .sb-richtext--legacy table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  background: #fff;
}

body.k3-layout-spot .sb-richtext--legacy .table > :not(caption) > * > *,
body.k3-layout-spot .sb-richtext--legacy table > :not(caption) > * > * {
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  vertical-align: top;
  text-align: left;
}

body.k3-layout-spot .sb-richtext--legacy .table > thead > tr > *,
body.k3-layout-spot .sb-richtext--legacy table > thead > tr > * {
  border-top: 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

body.k3-layout-spot .sb-richtext--legacy .table th,
body.k3-layout-spot .sb-richtext--legacy table th {
  background: #fafafa;
  font-weight: 700;
  white-space: nowrap;
}

body.k3-layout-spot .sb-richtext--legacy .table.info p {
  margin: 0;
}

body.k3-layout-spot .sb-richtext--legacy .table-bordered > :not(caption) > * > * {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.k3-layout-spot .sb-richtext--legacy .alert {
  position: relative;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
}

body.k3-layout-spot .sb-richtext--legacy .alert-info {
  border-color: #bcdff1;
  background: #eef7fd;
  color: #1f5b84;
}

body.k3-layout-spot .sb-richtext--legacy .alert-warning {
  border-color: #e2c28d;
  background: #fff5e8;
  color: #8a4a00;
}

body.k3-layout-spot .sb-richtext--legacy .alert-danger {
  border-color: #e6b3b0;
  background: #fff0ef;
  color: #a33a32;
}

body.k3-layout-spot .sb-richtext--legacy .close {
  float: right;
  margin-left: 10px;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

body.k3-layout-spot .sb-richtext--legacy .btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

body.k3-layout-spot .sb-richtext--legacy .btn:hover {
  text-decoration: none;
}

body.k3-layout-spot .sb-richtext--legacy .btn-default {
  background: #fff;
  color: #333;
}

body.k3-layout-spot .sb-richtext--legacy .btn-primary {
  border-color: #2e6da4;
  background: #337ab7;
  color: #fff;
}

body.k3-layout-spot .sb-richtext--legacy .btn-success {
  border-color: #4cae4c;
  background: #5cb85c;
  color: #fff;
}

body.k3-layout-spot .sb-richtext--legacy .btn-warning {
  border-color: #eea236;
  background: #f0ad4e;
  color: #fff;
}

body.k3-layout-spot .sb-richtext--legacy .btn-danger {
  border-color: #d43f3a;
  background: #d9534f;
  color: #fff;
}

body.k3-layout-spot .sb-richtext--legacy .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

body.k3-layout-spot .sb-richtext--legacy .btn-lg {
  padding: 10px 16px;
  font-size: 16px;
}

body.k3-layout-spot .sb-richtext--legacy .btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

body.k3-layout-spot .sb-richtext--legacy .btn-xs {
  padding: 2px 6px;
  font-size: 11px;
}

body.k3-layout-spot .sb-richtext--legacy .label {
  display: inline-block;
  padding: 0.2em 0.6em 0.3em;
  border-radius: 0.25em;
  color: #fff;
  font-size: 75%;
  line-height: 1;
  font-weight: 700;
  vertical-align: baseline;
}

body.k3-layout-spot .sb-richtext--legacy .label-default { background: #777; }
body.k3-layout-spot .sb-richtext--legacy .label-danger { background: #d9534f; }
body.k3-layout-spot .sb-richtext--legacy .label-success { background: #5cb85c; }

body.k3-layout-spot .sb-richtext--legacy .fa-ul {
  margin: 0 0 0 1.6em;
  padding: 0;
  list-style: none;
}

body.k3-layout-spot .sb-richtext--legacy .fa-ul li + li {
  margin-top: 8px;
}

body.k3-layout-spot .sb-richtext--legacy .article {
  margin-bottom: 20px;
}

body.k3-layout-spot .sb-richtext--legacy .article .tag {
  margin-bottom: 10px;
}

body.k3-layout-spot .sb-richtext--legacy .article .foot {
  padding-top: 10px;
  color: #666;
}

body.k3-layout-spot .sb-richtext--legacy .outline {
  margin-bottom: 15px;
}

body.k3-layout-spot .sb-richtext--legacy .outline dt {
  font-size: 1.05em;
  font-weight: 700;
}

body.k3-layout-spot .sb-richtext--legacy .outline dd {
  margin: 0 0 0.5em;
}

body.k3-layout-spot .sb-richtext--legacy .event-status {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
 * Forms
 * ----------------------------------------------------------------------- */

body.k3-layout-spot .sb-richtext--legacy .form-group {
  margin-bottom: 14px;
}

body.k3-layout-spot .sb-richtext--legacy .control-label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
}

body.k3-layout-spot .sb-richtext--legacy .form-control {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

body.k3-layout-spot .sb-richtext--legacy textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

body.k3-layout-spot .sb-richtext--legacy .help-block {
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

body.k3-layout-spot .sb-richtext--legacy .checkbox,
body.k3-layout-spot .sb-richtext--legacy .radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
}

body.k3-layout-spot .sb-richtext--legacy .input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

body.k3-layout-spot .sb-richtext--legacy .input-group .form-control {
  flex: 1 1 auto;
}

body.k3-layout-spot .sb-richtext--legacy .input-group-addon,
body.k3-layout-spot .sb-richtext--legacy .input-group-btn {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f7f7f7;
  white-space: nowrap;
}

body.k3-layout-spot .sb-richtext--legacy .input-group > :first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

body.k3-layout-spot .sb-richtext--legacy .input-group > :last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

body.k3-layout-spot .sb-richtext strong,
body.k3-layout-spot .sb-richtext b {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * Article content headings (single article and Placement archive cards)
 * ----------------------------------------------------------------------- */

:root {
  --sb-article-h1-color: #111;
  --sb-article-h1-font-size: clamp(26px, 3vw, 32px);
  --sb-article-h2-color: #222;
  --sb-article-h2-font-size: clamp(21px, 2.5vw, 26px);
  --sb-article-h2-background: #e5e5e5;
  --sb-article-h3-color: #222;
  --sb-article-h3-font-size: clamp(18px, 2vw, 21px);
  --sb-article-h3-bar-color: #2b1d19;
  --sb-article-h3-line-color: #c9c9c9;
  --sb-article-h3-marker-color: #222;
}

:is(
  body.k3-layout-single .sb-single-article > .entry-content,
  body.k3-layout-archive .sb-placement-posts .sb-card--placement .sb-card__content
) h1 {
  margin: 1.25em 0 0.55em;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sb-article-h1-color);
  font-size: var(--sb-article-h1-font-size);
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
}

:is(
  body.k3-layout-single .sb-single-article > .entry-content,
  body.k3-layout-archive .sb-placement-posts .sb-card--placement .sb-card__content
) h2 {
  margin: 1.1em 0 0.6em;
  padding: 0.35em 0.9em;
  border: 0;
  border-radius: 0;
  background: var(--sb-article-h2-background);
  color: var(--sb-article-h2-color);
  font-size: var(--sb-article-h2-font-size);
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}

:is(
  body.k3-layout-single .sb-single-article > .entry-content,
  body.k3-layout-archive .sb-placement-posts .sb-card--placement .sb-card__content
) h3 {
  margin: 1em 0 0.6em;
  padding: 0.3em 0.65em;
  border: 0;
  border-bottom: 1px solid var(--sb-article-h3-line-color);
  border-left: 10px solid var(--sb-article-h3-bar-color);
  background: transparent;
  color: var(--sb-article-h3-color);
  font-size: var(--sb-article-h3-font-size);
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}

:is(
  body.k3-layout-single .sb-single-article > .entry-content,
  body.k3-layout-archive .sb-placement-posts .sb-card--placement .sb-card__content
) h3::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.4em;
  background: var(--sb-article-h3-marker-color);
  transform: rotate(45deg);
  vertical-align: 0.05em;
}

:is(
  body.k3-layout-single .sb-single-article > .entry-content,
  body.k3-layout-archive .sb-placement-posts .sb-card--placement .sb-card__content
) :is(h1, h2, h3) a {
  color: inherit;
}
