/* Step-by-step dashboard guide visual polish */
.howto-guide-page {
  background:
    radial-gradient(circle at 10% 6%, rgba(34, 197, 94, 0.12), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(20, 93, 160, 0.16), transparent 30%),
    linear-gradient(180deg, #eef6ff 0%, #f8fbff 42%, #ffffff 100%);
}

.howto-guide-page .tools-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 50px;
  border-bottom: 1px solid rgba(20, 93, 160, 0.12);
  background:
    radial-gradient(circle at 80% 18%, rgba(34, 197, 94, 0.18), transparent 29%),
    linear-gradient(135deg, #eef6ff 0%, #ffffff 58%, #f1fbf5 100%);
}

.howto-guide-page .tools-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, #145da0, #22c55e, #f59e0b);
}

.howto-guide-page .tools-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  gap: 30px;
  align-items: center;
}

.howto-guide-page .blog-kicker {
  background: #dcfce7;
  color: #166534;
}

.howto-guide-page .tools-hero h1 {
  max-width: 820px;
}

.howto-guide-page .hero-deck {
  max-width: 760px;
  font-size: 1.08rem;
}

.howto-guide-page .tools-principle {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(20, 93, 160, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(145deg, #ffffff, #f4f9ff);
  box-shadow: 0 18px 44px rgba(15, 35, 71, 0.12);
}

.howto-guide-page .tools-principle span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #145da0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.howto-guide-page .tools-principle h2 {
  margin: 0 0 16px;
  color: #0f2347;
  font-size: 1.55rem;
  line-height: 1.16;
}

.howto-guide-page .tools-principle ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.howto-guide-page .tools-principle li {
  position: relative;
  padding: 11px 12px 11px 38px;
  border: 1px solid rgba(207, 224, 243, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #243b53;
  font-weight: 800;
}

.howto-guide-page .tools-principle li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #145da0);
  transform: translateY(-50%);
}

.howto-guide-page .tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding-top: 30px;
}

.howto-guide-page .tools-article {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(207, 224, 243, 0.95);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 93, 160, 0.04), transparent 30%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 16px 42px rgba(15, 35, 71, 0.08);
}

.howto-guide-page .article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.howto-guide-page .article-byline span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef6ff;
  color: #145da0;
  font-size: 0.76rem;
  font-weight: 900;
}

.howto-guide-page .blog-lead {
  border-left: 5px solid #22c55e;
  background:
    radial-gradient(circle at right, rgba(34, 197, 94, 0.09), transparent 28%),
    linear-gradient(135deg, #f0fdf4, #ffffff);
}

.howto-guide-page .article-contents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 34px;
  padding: 16px;
  border: 1px solid rgba(207, 224, 243, 0.95);
  border-radius: 20px;
  background: #f8fbff;
}

.howto-guide-page .article-contents strong {
  grid-column: 1 / -1;
  color: #0f2347;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.howto-guide-page .article-contents a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(20, 93, 160, 0.12);
  border-radius: 13px;
  background: #ffffff;
  color: #145da0;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.howto-guide-page .article-contents a:hover,
.howto-guide-page .article-contents a:focus-visible {
  background: #e8f1ff;
}

.howto-guide-page .tools-article section {
  position: relative;
  padding: 30px 0;
  border-top: 1px solid rgba(207, 224, 243, 0.9);
}

.howto-guide-page .tools-article section:first-of-type {
  border-top: 0;
}

.howto-guide-page .section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #145da0, #22c55e);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
}

.howto-guide-page .tools-article h2 {
  margin: 0 0 12px;
  color: #0f2347;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.howto-guide-page .choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.howto-guide-page .choice-grid article,
.howto-guide-page .avoid-grid div {
  border: 1px solid rgba(207, 224, 243, 0.95);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(15, 35, 71, 0.055);
}

.howto-guide-page .choice-grid article {
  padding: 17px;
}

.howto-guide-page .choice-grid h3,
.howto-guide-page .tool-card h3 {
  color: #0f2347;
}

.howto-guide-page .tool-list {
  gap: 14px;
  margin-top: 20px;
}

.howto-guide-page .tool-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(207, 224, 243, 0.95);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.055), transparent 32%),
    linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 26px rgba(15, 35, 71, 0.07);
}

.howto-guide-page .tool-card:nth-child(3n + 2) {
  background:
    radial-gradient(circle at top right, rgba(20, 93, 160, 0.07), transparent 32%),
    linear-gradient(145deg, #ffffff, #f4f9ff);
}

.howto-guide-page .tool-card:nth-child(3n) {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.075), transparent 32%),
    linear-gradient(145deg, #ffffff, #fffaf0);
}

.howto-guide-page .tool-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #145da0, #22c55e);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(20, 93, 160, 0.16);
}

.howto-guide-page .tool-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #145da0;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.howto-guide-page .tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.16;
}

.howto-guide-page .tool-card h4 {
  margin: 14px 0 8px;
  color: #145da0;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.howto-guide-page .tool-card p,
.howto-guide-page .tool-card li,
.howto-guide-page .setup-steps span,
.howto-guide-page .avoid-grid span {
  color: #425466;
  line-height: 1.62;
}

.howto-guide-page .tool-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.howto-guide-page .guide-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.howto-guide-page .guide-detail-grid div,
.howto-guide-page .guide-callout {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(207, 224, 243, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.howto-guide-page .guide-detail-grid strong,
.howto-guide-page .guide-callout strong {
  color: #0f2347;
  font-size: 0.9rem;
}

.howto-guide-page .guide-detail-grid span,
.howto-guide-page .guide-callout span {
  color: #425466;
  font-size: 0.92rem;
  line-height: 1.5;
}

.howto-guide-page .guide-callout {
  margin-top: 18px;
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, #fff8e8, #ffffff);
}

.howto-guide-page .setup-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.howto-guide-page .setup-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(207, 224, 243, 0.95);
  border-radius: 18px;
  background: #ffffff;
}

.howto-guide-page .setup-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  font-weight: 950;
}

.howto-guide-page .setup-steps strong,
.howto-guide-page .setup-steps span {
  grid-column: 2;
}

.howto-guide-page .setup-steps strong {
  color: #0f2347;
}

.howto-guide-page .avoid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.howto-guide-page .avoid-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.howto-guide-page .avoid-grid strong {
  color: #0f2347;
}

.howto-guide-page .tools-faq {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.howto-guide-page .tools-faq details {
  border: 1px solid rgba(207, 224, 243, 0.95);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.howto-guide-page .tools-faq summary {
  cursor: pointer;
  padding: 15px 16px;
  color: #0f2347;
  font-weight: 900;
}

.howto-guide-page .tools-faq p {
  margin: 0;
  padding: 0 16px 16px;
}

.howto-guide-page .blog-footer-cta {
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.howto-guide-page .tools-sidebar {
  position: sticky;
  top: 88px;
}

.howto-guide-page .sidebar-gate,
.howto-guide-page .sidebar-links,
.howto-guide-page .sidebar-note {
  border: 1px solid rgba(207, 224, 243, 0.95);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 71, 0.07);
}

.howto-guide-page .sidebar-gate {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(145deg, #ffffff, #f0fdf4);
}

@media (max-width: 980px) {
  .howto-guide-page .tools-layout,
  .howto-guide-page .tools-hero-grid {
    grid-template-columns: 1fr;
  }

  .howto-guide-page .tools-sidebar {
    position: static;
  }

  .howto-guide-page .article-contents,
  .howto-guide-page .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .howto-guide-page .tools-hero {
    padding: 28px 0 24px;
  }

  .howto-guide-page .tools-hero h1 {
    font-size: clamp(2rem, 9vw, 2.45rem);
    line-height: 1.04;
  }

  .howto-guide-page .hero-deck {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .howto-guide-page .tools-principle {
    padding: 18px;
    border-radius: 18px;
  }

  .howto-guide-page .tools-principle h2 {
    font-size: 1.22rem;
  }

  .howto-guide-page .tools-principle ul {
    gap: 7px;
  }

  .howto-guide-page .tools-principle li {
    padding: 9px 10px 9px 34px;
    font-size: 0.92rem;
  }

  .howto-guide-page .tools-article {
    padding: 16px;
    border-radius: 20px;
  }

  .howto-guide-page .article-contents,
  .howto-guide-page .choice-grid,
  .howto-guide-page .avoid-grid,
  .howto-guide-page .guide-detail-grid {
    grid-template-columns: 1fr;
  }

  .howto-guide-page .tool-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px;
  }

  .howto-guide-page .tool-number {
    width: 38px;
    height: 38px;
  }

  .howto-guide-page .setup-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }
}
