/* Editorial/guide styling; loaded only on content pages. */
.button:hover {
  opacity: .85;
}

.faq-answer p:last-child,
.blog-hub .editorial-heading>p,
.article-section>p:last-child,
.article-section>ol:last-child,
.article-section>ul:last-child {
  margin-bottom: 0;
}

.share-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.centered-heading .category-badge {
  margin-bottom: 16px;
}

.workspace {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  margin: 0 auto 40px;
  background: var(--bg);
  max-width: 1000px;
  @media (max-width:640px) {
    padding: 18px;
    margin-bottom: 28px;
  }
}

.workspace label {
  display: block;
  font-weight: bold;
  margin-bottom: 7px;
}

.workspace input:not([type=checkbox]),
.workspace select {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  background: var(--bg);
  width: 100%;
  min-height: 46px;
  min-width: 0;
}

.workspace textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  background: var(--bg);
  width: 100%;
  min-width: 0;
  resize: vertical;
  min-height: 230px;
  line-height: 1.6;
}

.workspace input::placeholder,
.workspace textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 5px;
  padding: 10px 20px;
  min-height: 44px;
  font-weight: bold;
  line-height: 1.3;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.status {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 22px;
  @media (max-width:640px) {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
}

.metric {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 6px;
  @media (max-width:640px) {
    padding: 12px;
  }
}

.metric strong {
  display: block;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
  @media (max-width:640px) {
    font-size: 27px;
  }
}

.metric span,
.fine-print,
.legal-date {
  font-size: 14px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  @media (max-width:640px) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.article {
  max-width: 780px;
  margin: 36px auto 0;
  font-size: 18px;
  line-height: 1.75;
  @media (max-width:640px) {
    font-size: 17px;
  }
}

.article h2 {
  margin-top: 34px;
  border-left: 2px solid var(--ink);
  padding-left: 16px;
  font-size: clamp(1.4rem,3vw,1.8rem);
  @media (max-width:640px) {
    font-size: 26px;
  }
}

.article h3 {
  margin-top: 26px;
}

.article a,
.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article ul,
.article ol {
  padding-left: 24px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
}

.editorial-heading {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 14px 0 0;
  @media (max-width:768px) {
    padding-top: 8px;
  }
}

.editorial-heading h1 {
  font-size: clamp(1.75rem,3.5vw,2.6rem);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -.025em;
}

.editorial-heading>p {
  max-width: 680px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.editorial-heading .post-meta {
  justify-content: center;
}

.post-meta .category-badge {
  font-size: 10px;
  padding: 4px 9px;
}

.post-meta time {
  white-space: nowrap;
}

.byline {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.article .steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.steps>li {
  counter-increment: steps;
  position: relative;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 18px 64px;
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  transition: border-color .15s;
  @media (prefers-reduced-motion:reduce) {
    transition: none;
  }
}

.steps>li::before {
  content: counter(steps,decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: bold;
  font-size: 13px;
  line-height: 1;
}

.steps>li:hover {
  border-color: var(--ink);
}

.article .faq-item {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  scroll-margin-top: 72px;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.article .faq-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.45;
  padding: 20px 2px;
  @media (max-width:768px) {
    font-size: 17px;
    gap: 12px;
  }
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary>span:first-child {
  flex: 1;
  min-width: 0;
}

.faq-chevron {
  margin-left: auto;
  flex: none;
  transition: transform .2s;
  width: 18px;
  height: 18px;
  @media (prefers-reduced-motion:reduce) {
    transition: none;
  }
}

.faq-item[open]:not([data-closing]) .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 32px 20px 2px;
  color: var(--muted);
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-item summary:focus-visible {
  outline-offset: -2px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 32px 0;
  padding: 20px;
  @media (max-width:768px) {
    align-items: start;
    flex-direction: column;
  }
}

.article-cta p {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.article-cta .button {
  text-decoration: none;
}

.formula {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.posts-section {
  max-width: 1200px;
  margin: 52px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 38px;
  @media (max-width:768px) {
    margin-top: 36px;
    padding-top: 28px;
  }
}

.post-thumbnail {
  display: block;
  aspect-ratio: 16/9;
  background: var(--soft);
  color: var(--ink);
  overflow: hidden;
}

.post-hero {
  max-width: 680px;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: auto;
}

.blog-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  @media (max-width:768px) {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.blog-hub .posts-section {
  margin-top: 0;
  border: 0;
  padding-top: 0;
}

.article .steps>li {
  @media (max-width:768px) {
    padding-right: 14px;
    font-size: 16px;
  }
}

.faq-chevron:empty::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin: 2px 4px;
}

.editorial-heading>.category-badge {
  margin-bottom: 8px;
}

.blog-hub .editorial-heading {
  padding-bottom: 24px;
  @media (max-width:768px) {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }
}

.blog-hub .editorial-heading h1 {
  font-size: 1.75rem;
  line-height: 1.3;
}

.blog-body .article-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 0 0 24px;
  background: var(--bg);
}

.blog-body h2 {
  font-size: 1.35rem;
  font-weight: bold;
  line-height: 1.3;
  border-left: 3px solid var(--ink);
  padding-left: 10px;
  margin: 24px 0 12px;
  letter-spacing: -.015em;
  @media (max-width:768px) {
    font-size: 1.25rem;
  }
}

.blog-body h3 {
  font-weight: bold;
  line-height: 1.3;
  border-left: 3px solid var(--ink);
  padding-left: 10px;
  margin: 24px 0 12px;
  letter-spacing: -.015em;
  font-size: 1.15rem;
}

.blog-body .article-section>h2:first-child,
.blog-body .article-section>h3:first-child {
  margin-top: 0;
}

.blog-body .article-cta {
  padding: 18px;
  margin: 0 0 24px;
  border-radius: 8px;
  background: var(--bg);
  @media (max-width:768px) {
    align-items: center;
    text-align: center;
  }
}

.blog-body .related-links {
  font-size: 13px;
}

.blog-body .key-takeaways {
  box-shadow: 0 3px 10px rgba(8,13,26,.04);
  background: var(--soft);
}

.reading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 14px;
  font-size: 14px;
}

.reading-meta dt {
  font-size: 12px;
  color: var(--muted);
}

.reading-meta dd {
  margin: 0;
  font-weight: bold;
}

.reading-meta a {
  text-underline-offset: 3px;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.key-takeaways li+li {
  margin-top: 4px;
}

.blog-body .steps {
  margin: 16px 0 0;
}

.blog-body .steps>li {
  font-size: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 60px;
  @media (max-width:768px) {
    text-align: center;
  }
}

.blog-body .steps>li::before {
  top: 14px;
}

.blog-body .faq-item summary {
  font-size: 16px;
  padding: 14px 2px;
  @media (max-width:768px) {
    text-align: left;
  }
}

.blog-body .faq-answer {
  font-size: 16px;
  padding-bottom: 14px;
}

.share-component {
  max-width: 680px;
  margin: 10px auto 12px;
  text-align: center;
}

.share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  @media (max-width:768px) {
    gap: 6px;
  }
}

.share-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1;
}

.share-button:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.share-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.3;
  background: var(--ink);
  color: var(--bg);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  z-index: 5;
}

.share-button:hover .share-tooltip,
.share-button:focus-visible .share-tooltip,
.share-button[data-feedback] .share-tooltip {
  visibility: visible;
  opacity: 1;
}

.copy-fallback {
  max-width: 100%;
  margin: 10px auto 0;
  font-size: 13px;
}

.copy-fallback label {
  display: block;
  margin-bottom: 5px;
}

.copy-fallback input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px;
  font-size: 14px;
}

.article-launch {
  max-width: 680px;
  text-align: center;
  margin: 0 auto 12px;
}

.article-launch .button {
  min-height: 0;
  padding: 8px 18px;
  line-height: 1.25;
  font-size: 14px;
}

.blog-post .button {
  border-radius: 6px;
}

.blog-post .editorial-heading h1 {
  @media (max-width:768px) {
    font-size: clamp(1.5rem,5vw,2.1rem);
    line-height: 1.25;
  }
}

.blog-post .editorial-heading {
  @media (max-width:768px) {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }
}

.blog-post .editorial-heading>p {
  @media (max-width:768px) {
    font-size: 16px;
  }
}

.blog-body .reading-meta {
  @media (max-width:768px) {
    justify-content: center;
  }
}

.blog-body .key-takeaways ul {
  @media (max-width:768px) {
    padding: 0;
    list-style-position: inside;
  }
}

#homepage-posts .post-thumbnail {
  aspect-ratio: 16/9;
}

.post-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }

.post-hero img { height: auto; max-height: 250px; }

.feature-page { padding: 20px 0 8px; }

.feature-heading { max-width: 800px; text-align: center; margin: 30px auto 28px; }

.feature-heading h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); line-height: 1.1; margin-bottom: 16px; }

.lead-subtitle { max-width: 34ch; margin: 0 auto; font-size: 1.15rem; line-height: 1.5; color: var(--muted); text-wrap: balance; }

.feature-illustration { max-width: 660px; margin: 0 auto 36px; border-radius: 20px; background: var(--preview-bg); overflow: hidden; aspect-ratio: 32 / 19; }

.feature-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; }

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

.feature-section { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: 0 8px 24px rgb(15 23 42 / .035); }

.feature-section h2 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 16px; }

.feature-section > p:last-child { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--muted); }

.feature-actions { text-align: center; margin: 32px 0 8px; }

:root[data-theme=dark] :is(.showcase-preview, .feature-illustration) { background: color-mix(in srgb, var(--preview-ink) 18%, var(--bg)); }

@media (max-width: 768px) {.feature-breakdown { grid-template-columns: minmax(0, 1fr); gap: 16px; }.feature-heading { margin-top: 24px; }.feature-section { padding: 20px; }}

.feature-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 14px; color: var(--point-ink); background: var(--point-bg); }

.feature-icon svg { width: 28px; height: 28px; }

.feature-guarantees { max-width: 900px; margin: 38px auto 0; padding: 26px 0 0; border-top: 1px solid var(--line); }

.feature-guarantees h2 { text-align: center; font-size: 1.6rem; margin-bottom: 20px; }

.feature-guarantees ul { list-style: none; padding: 0; margin: 0; }

.feature-guarantees li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; color: var(--muted); line-height: 1.6; }

.feature-guarantees li svg { margin-top: 3px; color: var(--ink); }

.btn-return { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 8px; font-weight: 700; text-align: center; }

.btn-return:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn-return:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

:root[data-theme=dark] .feature-icon { background: color-mix(in srgb, var(--point-ink) 18%, var(--bg)); color: color-mix(in srgb, var(--point-ink) 65%, white); }

/* v5.0: loaded only by individual blog posts through $pageStyle. */
.blog-post > .editorial-heading {
  max-width: 680px;
  margin: 20px auto 0;
  padding: 0;
  text-align: left;
}
.blog-post > .editorial-heading h1 {
  
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.blog-post .editorial-heading .share-component {
  max-width: none;
  margin: 0;
  text-align: left;
}
.blog-post .post-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  margin-bottom: 24px;
}
.blog-post .post-meta-strip > time {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}
.blog-post .post-meta-strip .share-bar {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  margin-left: auto;
}
.blog-post .post-meta-strip .share-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.blog-post .post-meta-strip .share-button:hover,
.blog-post .post-meta-strip .share-button:focus-visible {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.blog-post .share-button:last-child .share-tooltip {
  left: auto;
  right: 0;
  transform: none;
}
.blog-post .editorial-heading > .post-deck {
  text-align: left;
  margin: 0 0 8px;
}
.blog-post .editorial-heading > .byline {
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.blog-post .share-component > .copy-fallback:not([hidden]) {
  margin: -12px 0 24px;
}
[data-theme=dark] .blog-post .post-meta-strip,
[data-theme=dark] .blog-post .post-meta-strip .share-button {
  border-color: var(--line);
}
[data-theme=dark] .blog-post .post-meta-strip > time {
  color: var(--muted);
}
