/* Scoped additions to the shared resource-style blog template. */
.spiral-page .blog-post-container {
  width: min(1180px, calc(100% - 48px));
}
.spiral-page .blog-article-card {
  padding: clamp(24px, 4.5vw, 56px);
}
.spiral-page .blog-article-body { max-width: none; }
.spiral-article-title {
  margin: 0;
  color: #111;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}
.spiral-page .blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}
.spiral-page .blog-article-body p { line-height: 1.8; }
.spiral-page .spiral-intro {
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, .75fr);
}
.spiral-page .blog-lede-card p:first-child { margin-top: 0; }
.spiral-logo-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-width: 0;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid rgba(127,127,127,.18);
  border-radius: 16px;
}
.spiral-intro > .spiral-logo-panel {
  align-self: stretch;
  margin: 0;
}
.spiral-logo-panel img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  filter: none;
}
.spiral-logo-wide img {
  aspect-ratio: 2.8 / 1;
  height: auto;
  object-fit: cover;
}
.spiral-logo-stacked img { aspect-ratio: 1; object-fit: contain; }
.spiral-logo-black { background: #000; color: #fff; }
.spiral-logo-white { background: #fff; color: #333; }
.spiral-logo-orange { background: #ff6a00; color: #111; }
.spiral-logo-panel figcaption {
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
  color: inherit;
}
.spiral-contents {
  margin: 0 0 32px;
  padding: 26px 30px;
  border: 1px solid #dedede;
  border-radius: 16px;
}
.spiral-page .spiral-contents h2 { font-size: 23px; }
.spiral-contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 38px;
  margin: 20px 0 0;
  padding-left: 24px;
}
.spiral-page .spiral-contents a {
  color: #a83f00;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
}
.spiral-page .spiral-contents a:hover { text-decoration: underline; }
.spiral-section { scroll-margin-top: 130px; }
.spiral-page .spiral-section-open {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.spiral-subsection {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(127,127,127,.22);
  scroll-margin-top: 130px;
}
.spiral-page .spiral-subsection h3 {
  max-width: 34ch;
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.2;
}
.spiral-subsection > p { max-width: 78ch; }
.spiral-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.spiral-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--orange, #ff6a00);
  color: #fff;
  font-size: 21px;
}
.spiral-page .spiral-section-heading h2 {
  align-self: center;
  font-size: clamp(27px, 2.7vw, 38px);
  line-height: 1.16;
}
.spiral-section > p { max-width: 78ch; }
.spiral-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(210px, .75fr);
  gap: 30px;
  align-items: center;
}
.spiral-illustrated > div > p:first-child { margin-top: 0; }
.spiral-illustrated > .spiral-logo-panel { margin: 0; }
.spiral-section > .spiral-logo-wide {
  width: 100%;
  max-width: none;
}
.spiral-section > .spiral-logo-orange {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #555;
}
.spiral-section > .spiral-logo-orange img {
  aspect-ratio: 4 / 1;
  border-radius: 12px;
}
.spiral-section > .spiral-logo-orange figcaption {
  padding: 16px 20px 0;
}
.spiral-page .spiral-reference {
  padding: 2px;
  color: #a83f00;
  font-size: .8em;
  text-decoration: none;
  white-space: nowrap;
}
.spiral-page .spiral-closing { scroll-margin-top: 130px; }
.spiral-closing .blog-cta-copy { max-width: 78ch; }
.spiral-closing > .spiral-logo-panel { max-width: 460px; }
.spiral-page .spiral-closing .button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
}
.spiral-page .spiral-sources h2 { font-size: 25px; }
.spiral-sources ol { padding-left: 24px; margin-bottom: 0; }
.spiral-sources li {
  padding: 8px 0 8px 4px;
  color: #444;
  font-size: 16px;
  line-height: 1.7;
  scroll-margin-top: 130px;
  overflow-wrap: anywhere;
}
.spiral-page .spiral-sources a { color: #a83f00; font-weight: 600; }
.spiral-page .blog-article-body a:focus-visible {
  outline: 3px solid var(--orange, #ff6a00);
  outline-offset: 5px;
}
html[data-theme="dark"] .spiral-article-title { color: #f4f7fb; }
html[data-theme="dark"] .spiral-contents { border-color: #394352; }
html[data-theme="dark"] .spiral-page .spiral-contents a,
html[data-theme="dark"] .spiral-page .spiral-reference,
html[data-theme="dark"] .spiral-page .spiral-sources a { color: #ffb789; }
html[data-theme="dark"] .spiral-sources li { color: #c2cad5; }
html[data-theme="dark"] .spiral-section > .spiral-logo-orange { color: #c2cad5; }
html[data-theme="dark"] body.blog-page .spiral-section-open {
  background: transparent!important;
  border: 0!important;
  box-shadow: none!important;
}
.spiral-source-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 850px) {
  .spiral-page .spiral-intro,
  .spiral-illustrated { grid-template-columns: minmax(0, 1fr); }
  .spiral-intro > .spiral-logo-panel,
  .spiral-illustrated > .spiral-logo-stacked { width: min(100%, 340px); }
  .spiral-illustrated > .spiral-logo-wide { width: min(100%, 500px); }
}
@media (max-width: 600px) {
  .spiral-page .blog-post-container { width: calc(100% - 24px); }
  .spiral-page .blog-article-card { padding: 24px 18px; }
  .spiral-page .blog-section-block,
  .spiral-page .blog-lede-card,
  .spiral-contents { padding: 24px 20px; }
  .spiral-contents ol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .spiral-section-heading { flex-direction: column; gap: 14px; }
  .spiral-section-heading h2 { width: 100%; }
  .spiral-page .spiral-closing .button { width: 100%; }
  .spiral-page .blog-article-body p { font-size: 17px; }
}
