.iot-page-main {
  min-height: 65vh;
  padding-block: clamp(28px, 5vw, 70px) clamp(72px, 8vw, 120px);
}

.iot-page-shell {
  max-width: 980px;
}

.iot-page-breadcrumbs {
  margin-bottom: clamp(22px, 3vw, 36px);
  color: var(--iot-text-muted);
  font-size: 12px;
}

.iot-page-breadcrumbs ol {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.iot-page-breadcrumbs li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}

.iot-page-breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--iot-accent-bright);
}

.iot-page-breadcrumbs a {
  color: var(--iot-text-muted);
  text-decoration: none;
}

.iot-page-breadcrumbs a:hover {
  color: var(--iot-text);
}

.iot-page-article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 222, 208, 0.34);
  border-radius: var(--iot-radius);
  background: #e9e3d9;
  color: #24201d;
  box-shadow: var(--iot-shadow);
}

.iot-page-header {
  position: relative;
  padding: clamp(28px, 4.5vw, 48px) clamp(22px, 5vw, 52px) clamp(24px, 3.5vw, 36px);
  overflow: hidden;
  border-bottom: 1px solid #c9bdad;
  background:
    radial-gradient(circle at 92% 25%, rgba(179, 39, 57, 0.13), transparent 15rem),
    #eee8de;
}

.iot-page-header::after {
  position: absolute;
  right: -34px;
  bottom: -76px;
  width: 190px;
  height: 130px;
  content: "";
  transform: rotate(-9deg);
  background:
    radial-gradient(circle at 28% 40%, rgba(179, 39, 57, 0.56) 0 4px, transparent 5px),
    radial-gradient(circle at 51% 52%, rgba(179, 39, 57, 0.38) 0 8px, transparent 9px),
    radial-gradient(circle at 68% 34%, rgba(179, 39, 57, 0.3) 0 3px, transparent 4px);
  opacity: 0.38;
  pointer-events: none;
}

.iot-page-header__kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--iot-accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.iot-page-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #1d1a18;
  font-family: var(--iot-font-serif);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.iot-page-content {
  min-width: 0;
  padding: clamp(30px, 5vw, 52px);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.iot-page-content > *:first-child {
  margin-top: 0;
}

.iot-page-content > *:last-child {
  margin-bottom: 0;
}

.iot-page-content p,
.iot-page-content ul,
.iot-page-content ol,
.iot-page-content figure,
.iot-page-content table,
.iot-page-content blockquote,
.iot-page-content .wp-block-group,
.iot-page-content .wp-block-columns {
  margin-block: 1.25em;
}

.iot-page-content h2 {
  position: relative;
  padding-left: 16px;
  margin: 2.2em 0 0.8em;
  color: #211d1a;
  font-family: var(--iot-font-serif);
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.5;
}

.iot-page-content h2::before {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 5px;
  content: "";
  background: var(--iot-accent);
}

.iot-page-content h3 {
  padding-bottom: 8px;
  margin: 1.9em 0 0.7em;
  border-bottom: 1px solid rgba(169, 35, 50, 0.36);
  color: #302b28;
  font-family: var(--iot-font-serif);
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.55;
}

.iot-page-content :is(h2, h3, h4, h5, h6) {
  overflow-wrap: anywhere;
}

.iot-page-content ul,
.iot-page-content ol {
  padding-left: 1.5em;
}

.iot-page-content li + li {
  margin-top: 0.35em;
}

.iot-page-content a {
  color: #8f1f2d;
  font-weight: 700;
}

.iot-page-content blockquote {
  padding: 17px 20px;
  border-left: 4px solid var(--iot-accent);
  background: #dfd5c7;
}

.iot-page-content blockquote > :first-child {
  margin-top: 0;
}

.iot-page-content blockquote > :last-child {
  margin-bottom: 0;
}

.iot-page-content img,
.iot-page-content video,
.iot-page-content iframe {
  max-width: 100%;
}

.iot-page-content img,
.iot-page-content video {
  height: auto;
}

.iot-page-content .wp-block-table,
.iot-page-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.iot-page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.iot-page-content th,
.iot-page-content td {
  padding: 10px;
  border: 1px solid #c7b9a8;
  text-align: left;
  vertical-align: top;
}

.iot-page-content th {
  background: #dcd0c0;
}

.iot-page-content figcaption {
  margin-top: 7px;
  color: #6c655e;
  font-size: 12px;
  text-align: center;
}

.iot-page-content .wp-block-button__link,
.iot-page-content button,
.iot-page-content input[type="submit"] {
  max-width: 100%;
  border: 1px solid var(--iot-accent-dark);
  border-radius: 5px;
  background: var(--iot-accent);
  color: #fff;
  font-weight: 750;
  overflow-wrap: anywhere;
  white-space: normal;
}

.iot-page-content .wp-block-button__link:hover,
.iot-page-content button:hover,
.iot-page-content input[type="submit"]:hover {
  background: var(--iot-accent-dark);
}

.iot-page-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.iot-page-content select,
.iot-page-content textarea {
  max-width: 100%;
  border: 1px solid #b9aa97;
  border-radius: 4px;
  background: #f7f2ea;
  color: #211d1a;
}

.iot-page-content textarea {
  width: 100%;
}

.iot-page-content .wp-block-separator {
  border-color: #c7b9a8;
}

.iot-page-content .wp-block-column,
.iot-page-content .wp-block-group {
  min-width: 0;
  max-width: 100%;
}

.iot-page-content .alignwide,
.iot-page-content .alignfull {
  width: min(calc(100% + min(96px, 8vw)), calc(100vw - var(--iot-gutter) - var(--iot-gutter)));
  max-width: none;
  margin-right: auto;
  margin-left: 50%;
  transform: translateX(-50%);
}

.iot-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(30px, 5vw, 52px) clamp(30px, 5vw, 52px);
}

.iot-page-links__label {
  margin-right: 4px;
  font-weight: 700;
}

.iot-page-links a,
.iot-page-links > span:not(.iot-page-links__label) {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 6px 10px;
  border: 1px solid #b9aa97;
  border-radius: 4px;
  text-decoration: none;
}

.iot-page-links a {
  background: var(--iot-accent);
  color: #fff;
}

@media (max-width: 599px) {
  .iot-page-main {
    padding-block: 24px 72px;
  }

  .iot-page-header {
    padding: 27px 20px 24px;
  }

  .iot-page-header h1 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.5;
  }

  .iot-page-content {
    padding: 28px 20px;
    line-height: 1.85;
  }

  .iot-page-content .alignwide,
  .iot-page-content .alignfull {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .iot-page-content .wp-block-table table {
    min-width: 520px;
  }

  .iot-page-links {
    padding: 0 20px 28px;
  }
}
