/**
 * Tool pages (Mishnah Calendar, Hadran): hero, instructions + form card, FAQ.
 * Sections carry mish-tool-* classes set in Bricks
 */

.brxe-section.mish-tool-hero {
  padding: 96px var(--space-m, 24px);
}

.mish-tool-hero > .brxe-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  align-items: flex-start;
  gap: 20px;
}

.mish-tool-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Mishnah Display", Georgia, serif;
  font-size: var(--display-s);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
}

.mish-tool-hero h1::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--secondary, #ffd36b);
}

.mish-tool-hero .brxe-text-basic {
  max-width: 560px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .88);
  font: 400 18px/1.6 Inter, sans-serif;
}

.mish-tool-hero .brxe-button.mish-tool-cta,
.mish-tool-hero a.mish-tool-cta {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 99px;
  background: var(--secondary, #ffd36b);
  color: #0a1a2e;
  font: 600 15px/1 Inter, sans-serif;
  font-style: normal;
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}

.mish-tool-hero .mish-tool-cta:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Tool: instructions on the left, form card on the right. */
.brxe-section.mish-tool-section {
  padding: var(--section-space-m, 64px) var(--space-m, 24px);
  background: linear-gradient(180deg, var(--primary-l-10, #e8f1fc) 0%, #fff 100%);
}

.mish-tool-grid.brxe-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: var(--space-xl);
  align-items: start;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.mish-tool-steps {
  color: #26364d;
  font: 400 17px/1.7 Inter, sans-serif;
}

.mish-tool-steps h3 {
  margin: 0 0 18px;
  font-family: "Mishnah Display", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: #0a1a2e;
}

.mish-tool-steps ol,
.mish-tool-steps ul {
  margin: 0;
  padding-left: 1.3em;
}

.mish-tool-steps ol > li {
  margin-bottom: 1em;
  padding-left: .2em;
}

.mish-tool-steps ol > li::marker {
  color: var(--primary, #2e77d1);
  font-weight: 600;
}

.mish-tool-steps ul {
  margin-top: .4em;
}

.mish-tool-steps li li {
  margin-bottom: .4em;
}

.mish-tool-steps a {
  color: var(--primary, #2e77d1);
  text-underline-offset: 3px;
}

.mish-tool-steps a:hover {
  color: #0a1a2e;
}

.mish-tool-card {
  box-sizing: border-box;
  padding: var(--space-m);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  border: 1px solid rgba(10, 26, 46, .08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(10, 26, 46, .35);
}

/* FAQ. */
.brxe-section.mish-tool-faq {
  padding: var(--section-space-m, 64px) var(--space-m, 24px);
  background: #eef4fc;
}

.mish-tool-faq > .brxe-container {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.mish-tool-faq h2.brxe-heading {
  margin: 0 0 28px;
  font-family: "Mishnah Display", Georgia, serif;
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.1;
  color: #0a1a2e;
}

.mish-tool-faq .accordion-item {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(10, 26, 46, .08);
  border-radius: 16px;
  background: #fff;
}

.mish-tool-faq .accordion-title-wrapper {
  padding: 18px 22px;
  background: #fff;
}

.mish-tool-faq .accordion-title .title {
  margin: 0;
  font: 600 16px/1.4 Inter, sans-serif;
  color: #0a1a2e;
}

.mish-tool-faq .accordion-content-wrapper {
  padding: 0 22px 20px;
  background: #fff;
  color: #26364d;
  font: 400 16px/1.7 Inter, sans-serif;
}

.mish-tool-faq .accordion-content-wrapper p {
  margin: 0 0 .8em;
}

.mish-tool-faq .accordion-content-wrapper a,
.mish-tool-faq .brxe-heading:last-child a {
  color: var(--primary, #2e77d1);
  text-underline-offset: 3px;
}

.mish-tool-faq .accordion-title-wrapper i {
  color: var(--primary, #2e77d1);
}

.mish-tool-faq .brxe-heading:last-child {
  margin-top: 26px;
  font: 400 16px/1.5 Inter, sans-serif;
  color: #26364d;
}

@media (max-width: 900px) {
  .brxe-section.mish-tool-hero {
    padding: 64px var(--space-m, 24px);
  }

  .mish-tool-grid.brxe-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .mish-tool-card {
    margin-inline: auto;
  }
}

#hadran-output {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-m);
}

.mish-tool-steps p {
  margin: 0 0 1em;
}
