/* Design reminder: Editorial Bloom — reuse the blog page's airy editorial rhythm, pink-to-lilac atmosphere, tactile cards, and clear one-action-per-module hierarchy. */

.home-hero-note-link,
.home-tool-card .blog-card-link,
.home-featured-link {
  transition: color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-latest-note {
  min-height: 310px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 239, 255, 0.96));
}

.home-latest-image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: var(--blog-lilac);
}

.home-latest-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.home-latest-image:hover img,
.home-latest-image:focus-visible img {
  transform: scale(1.035);
}

.home-latest-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 24px 22px;
}

.home-latest-body .blog-feature-icon {
  width: 39px;
  height: 39px;
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.home-latest-kicker {
  margin-bottom: 7px;
}

.home-latest-body h2 {
  margin: 0 0 9px;
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-latest-body h2 a {
  color: inherit;
  text-decoration: none;
}

.home-latest-body h2 a:hover,
.home-latest-body h2 a:focus-visible {
  color: var(--blog-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  outline: none;
}

.home-latest-body p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-latest-body .home-hero-note-link {
  margin-top: auto;
  padding-top: 16px;
}

.home-hero-note-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--blog-primary);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.home-hero-note-link:hover,
.home-hero-note-link:focus-visible,
.home-tool-card .blog-card-link:hover,
.home-tool-card .blog-card-link:focus-visible {
  color: var(--blog-secondary);
}

.home-featured-post {
  margin-top: 28px;
}

.home-featured-post .featured-post-copy h2 {
  max-width: 700px;
}

.home-featured-link {
  justify-self: end;
}

.home-tool-grid {
  margin-top: 0;
}

.home-tool-card {
  min-height: 328px;
}

.home-tool-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 25px;
  color: #fff;
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
  border-radius: 14px;
  box-shadow: 0 9px 20px rgba(106, 0, 244, 0.16);
  font-size: 1.15rem;
}

.home-tool-card h3 {
  margin-top: 17px;
}

.home-tool-card h3 a {
  color: inherit;
  text-decoration: none;
}

.home-tool-card h3 a:hover,
.home-tool-card h3 a:focus-visible {
  color: var(--blog-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  outline: none;
}

.calculator-home-card .home-calculator-button {
  align-self: flex-start;
  justify-content: center;
  min-width: 146px;
  margin-top: auto;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(106, 0, 244, 0.16);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.calculator-home-card .home-calculator-button:hover,
.calculator-home-card .home-calculator-button:focus-visible {
  color: #fff;
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(106, 0, 244, 0.22);
  outline: none;
}

.calculator-home-card .home-calculator-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.22), 0 14px 28px rgba(106, 0, 244, 0.22);
}

.home-tool-card.calculator-home-card {
  background: linear-gradient(145deg, rgba(255, 250, 251, 0.96), rgba(246, 239, 255, 0.96));
  border-color: rgba(255, 77, 109, 0.2);
}

.home-tool-card.calculator-home-card .home-tool-symbol {
  background: linear-gradient(135deg, var(--blog-primary), #ff8a9e);
}

.home-tool-card.poll-home-card {
  background: linear-gradient(145deg, rgba(255, 251, 246, 0.96), rgba(255, 241, 245, 0.96));
  border-color: rgba(255, 77, 109, 0.18);
}

.poll-home-card .home-tool-symbol {
  background: linear-gradient(135deg, #e87b4d, var(--blog-primary));
}

.home-poll-preview {
  margin-top: 17px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 77, 109, 0.14);
  border-radius: 14px;
}

.home-poll-question {
  margin: 0 0 11px;
  color: var(--blog-ink);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.45;
}

.home-poll-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0;
  color: var(--blog-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.home-poll-option input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--blog-primary);
}

.home-poll-submit {
  width: 100%;
  margin-top: 9px;
  padding: 9px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
  border: 0;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.home-poll-submit:disabled {
  cursor: default;
  opacity: 0.68;
}

.home-poll-feedback {
  margin: 9px 0 0;
  color: var(--blog-secondary);
  font-size: 0.68rem;
  line-height: 1.4;
}

.home-tool-card.keep-home-card {
  background: linear-gradient(145deg, rgba(255, 250, 245, 0.96), rgba(246, 239, 255, 0.96));
  border-color: rgba(106, 0, 244, 0.16);
}

.keep-home-card .home-tool-symbol {
  background: linear-gradient(135deg, var(--blog-secondary), var(--blog-primary));
}

.keep-home-card .home-chain-note {
  margin: 15px 0 0;
  padding: 10px 12px;
  color: #5d4b64;
  background: rgba(255, 255, 255, 0.64);
  border-left: 3px solid var(--blog-secondary);
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.home-tool-card.book-home-card {
  background: linear-gradient(145deg, rgba(255, 250, 246, 0.96), rgba(246, 239, 255, 0.96));
  border-color: rgba(106, 0, 244, 0.14);
}

.book-home-card .home-tool-symbol {
  background: linear-gradient(135deg, #bd76bf, var(--blog-secondary));
}

.home-tool-card.quote-home-card {
  background: radial-gradient(circle at 92% 4%, rgba(255, 77, 109, 0.14), transparent 32%), linear-gradient(145deg, rgba(255, 250, 252, 0.96), rgba(240, 234, 255, 0.96));
  border-color: rgba(106, 0, 244, 0.16);
}

.quote-home-card blockquote {
  position: relative;
  margin: 19px 0 11px;
  color: #3b2144;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.5vw, 1.48rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.quote-home-card blockquote::before {
  position: absolute;
  top: -31px;
  right: 2px;
  color: rgba(106, 0, 244, 0.09);
  content: "“";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.5rem;
  line-height: 1;
  pointer-events: none;
}

.quote-home-card .quote-context {
  margin: 0;
  color: var(--blog-secondary);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 800;
}

.home-tool-card.book-home-card .blog-card-link,
.home-tool-card.keep-home-card .blog-card-link,
.home-tool-card.quote-home-card .blog-card-link {
  margin-top: auto;
}

@media (min-width: 821px) {
  .home-latest-body h2 { font-size: 1.55rem; }
  .home-latest-body p { font-size: 0.9rem; }
  .home-tool-card h3 { font-size: 1.45rem; }
  .home-tool-card p { font-size: 0.9rem; }
  .home-poll-question { font-size: 0.9rem; }
  .home-poll-option { font-size: 0.82rem; }
  .home-poll-submit { font-size: 0.8rem; }
  .home-poll-feedback { font-size: 0.76rem; }
  .keep-home-card .home-chain-note { font-size: 0.8rem; }
}

@media (max-width: 820px) {
  .home-tool-card { min-height: 300px; }
}

@media (max-width: 560px) {
  .home-featured-post { margin-top: 24px; }
  .home-latest-note { min-height: 0; }
  .home-latest-body { padding: 18px 22px 21px; }
  .home-latest-body h2 { font-size: 1.28rem; }
  .home-tool-card { min-height: 278px; }
  .home-poll-preview { padding: 12px; }
  .home-poll-option { font-size: 0.7rem; }
}
