.editorial-intro {
  padding-block: 64px 42px;
}
.editorial-intro .breadcrumb {
  display: block;
  margin-bottom: 32px;
}
.editorial-intro h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.2;
  max-width: 850px;
  margin: 20px 0;
}
.editorial-intro em {
  font-style: normal;
  color: var(--pink, #e85d8e);
}
.editorial-intro > p {
  font-size: 1.22rem;
  max-width: 740px;
  line-height: 1.9;
}
.editorial-trails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid #d7e4e9;
  margin-top: 40px;
}
.editorial-trails > a {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  gap: 12px;
  align-items: center;
}
.editorial-trails > a + a {
  border-inline-start: 1px solid #d7e4e9;
}
.editorial-trails strong {
  font-size: 1.18rem;
}
.editorial-trails a > span {
  grid-column: 2;
  line-height: 1.7;
  color: #557181;
}
.editorial-trails a > app-icon:last-child {
  grid-row: 1/3;
  grid-column: 3;
}
.shelf-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}
.shelf-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.35;
  margin: 10px 0;
}
.shelf-heading > p {
  color: #557181;
  line-height: 1.9;
}
.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}
.topic-tabs button {
  border: 1px solid #d7e4e9;
  border-radius: 100px;
  background: white;
  padding: 9px 16px;
  color: #0e5777;
  font: inherit;
  cursor: pointer;
}
.topic-tabs button[aria-pressed='true'] {
  background: #0e5777;
  color: white;
  border-color: #0e5777;
}
.editorial-list {
  border-top: 1px solid #c7dce5;
}
.editorial-list > a {
  display: flex;
  align-items: start;
  gap: 26px;
  padding: 27px 6px;
  border-bottom: 1px solid #d7e4e9;
}
.editorial-list > a:hover h3 {
  color: #bb3564;
}
.editorial-list h3 {
  font-size: 1.45rem;
  margin: 5px 0 9px;
  line-height: 1.6;
}
.editorial-list p {
  margin: 0;
  max-width: 860px;
  color: #557181;
  line-height: 1.9;
}
.editorial-list > a > app-icon:last-child {
  margin-inline-start: auto;
  padding-top: 8px;
  font-size: 22px;
}
.entry-no {
  font-size: 1.4rem;
  color: #9a5c73;
  direction: ltr;
  min-width: 35px;
  padding-top: 7px;
}
.editorial-next {
  padding: 38px;
  background: #f0f7fa;
  border-inline-start: 4px solid #e85d8e;
  margin-block: 25px 70px;
}
.editorial-next h2 {
  font-size: 1.8rem;
}
.editorial-next p {
  max-width: 760px;
  line-height: 1.9;
}
.editorial-next .text-link {
  display: inline-block;
  margin: 18px;
}
.mental-intro {
  background: linear-gradient(135deg, #fff, #fff5f8);
  padding-inline: 40px;
}
.mental-context {
  border-top: 1px solid #e7cbd6;
  padding-top: 20px;
  margin-top: 36px;
  max-width: 830px;
}
.mental-context p {
  line-height: 2;
}
.home-purpose .purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #d7e4e9;
}
.purpose-grid > a {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}
.purpose-grid > a + a {
  border-inline-start: 1px solid #d7e4e9;
}
.purpose-number {
  font-size: 2rem;
  color: #ac5273;
  direction: ltr;
  text-align: right;
}
.purpose-grid h3 {
  font-size: 1.55rem;
  margin: 15px 0;
}
.purpose-grid p {
  color: #557181;
  line-height: 1.8;
  flex: 1;
}
.purpose-grid .text-link {
  font-size: 0.95rem;
}
.home-handbook {
  background: #f0f7fa;
}
.handbook-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-block: 65px;
  align-items: center;
}
.handbook-feature h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.35;
  margin: 16px 0;
}
.handbook-feature p {
  max-width: 520px;
  line-height: 2;
  margin-bottom: 25px;
}
.handbook-choices {
  display: grid;
  gap: 12px;
}
.handbook-choices > a {
  position: relative;
  padding: 24px 26px;
  padding-inline-end: 60px;
  background: white;
  border: 1px solid #d4e4eb;
  display: grid;
  gap: 6px;
}
.handbook-choices strong {
  font-size: 1.55rem;
}
.handbook-choices small,
.handbook-choices span {
  color: #557181;
}
.handbook-choices app-icon {
  position: absolute;
  inset-inline-end: 24px;
  top: 40%;
  font-size: 24px;
}
.home-tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 50px;
  margin-bottom: 25px;
}
.home-tool-list > a {
  border-top: 1px solid #d7e4e9;
  padding: 24px 6px;
  position: relative;
  padding-inline-end: 36px;
}
.home-tool-list h3 {
  font-size: 1.4rem;
  margin: 8px 0;
}
.home-tool-list p {
  color: #557181;
  margin-bottom: 0;
}
.home-tool-list app-icon {
  position: absolute;
  inset-inline-end: 8px;
  top: 45px;
}
.mental-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  background: #fff3f7;
  padding: 48px;
  align-items: center;
}
.mental-home h2 {
  font-size: 2.7rem;
  line-height: 1.4;
}
.mental-home p {
  line-height: 1.9;
}
.mental-quote {
  padding: 30px 0;
  border-block: 1px solid #e8c4d2;
}
.mental-quote strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1.6;
  color: #a3345a;
  margin-block: 15px;
}
.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-block: 30px 60px;
}
.service-strip > a {
  border-top: 3px solid #e85d8e;
  padding: 25px;
  background: #f7fafb;
}
.service-strip app-icon {
  font-size: 25px;
}
.service-strip h2 {
  font-size: 1.6rem;
}
.service-strip p {
  line-height: 1.9;
}
.reading-resume {
  display: flex;
  gap: 25px;
  align-items: center;
  background: #fff6f9;
  padding: 24px;
}
.reading-resume h2 {
  font-size: 1.25rem;
  margin: 5px 0;
}
.reading-resume .button {
  margin-inline-start: auto;
}
.footer-tools {
  border-top: 1px solid #ffffff35;
  padding-block: 30px;
}
.footer-tools > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer-tools h3 {
  font-size: 1.3rem;
}
.footer-tools h4 {
  color: #ffb7d2;
}
.footer-tools a {
  display: block;
  margin: 12px 0;
  color: #e1edf4;
}
.footer-tools p {
  color: #c4d7e3;
}
.article-table-wrap {
  overflow-x: auto;
}
.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.article-table-wrap th,
.article-table-wrap td {
  border-bottom: 1px solid #d7e4e9;
  text-align: start;
  padding: 12px;
}
.editorial-article-section {
  scroll-margin-top: 110px;
}
.editorial-article-section .inline-sources {
  font-size: 0.82rem;
  border-top: 0;
  margin-top: 15px;
}
.editorial-article-section .inline-sources strong {
  font-size: 0.8rem;
}
.editorial-article-section .inline-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
}
.editorial-article-section .inline-sources li {
  margin: 0;
}
.knowledge-shelf .search-field {
  max-width: none;
}
@media (max-width: 1000px) {
  .home-purpose .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .purpose-grid > a:nth-child(3) {
    border-inline-start: 0;
  }
  .purpose-grid > a:nth-child(n + 3) {
    border-top: 1px solid #d7e4e9;
  }
  .handbook-feature {
    gap: 35px;
  }
  .editorial-trails > a {
    padding: 23px 15px;
  }
  .mental-home {
    gap: 30px;
  }
  .mental-home h2 {
    font-size: 2.1rem;
  }
}
@media (max-width: 700px) {
  .editorial-intro {
    padding-block: 35px;
  }
  .editorial-trails {
    grid-template-columns: 1fr;
  }
  .editorial-trails > a + a {
    border-inline-start: 0;
    border-top: 1px solid #d7e4e9;
  }
  .shelf-heading {
    display: block;
  }
  .editorial-list > a {
    gap: 14px;
    padding-block: 22px;
  }
  .editorial-list h3 {
    font-size: 1.25rem;
  }
  .entry-no {
    font-size: 1.1rem;
    min-width: 24px;
  }
  .editorial-next {
    padding: 24px;
  }
  .home-purpose .purpose-grid,
  .handbook-feature,
  .mental-home,
  .service-strip {
    grid-template-columns: 1fr;
  }
  .purpose-grid > a + a {
    border-inline-start: 0;
    border-top: 1px solid #d7e4e9;
  }
  .purpose-grid > a {
    padding-inline: 6px;
  }
  .handbook-feature {
    gap: 25px;
    padding-block: 40px;
  }
  .home-tool-list {
    grid-template-columns: 1fr;
  }
  .mental-home {
    padding: 28px;
    gap: 20px;
  }
  .mental-quote strong {
    font-size: 1.8rem;
  }
  .mental-intro {
    padding-inline: 24px;
  }
  .reading-resume {
    flex-wrap: wrap;
  }
  .reading-resume .button {
    margin: 0;
  }
  .footer-tools > div {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .topic-tabs {
    gap: 6px;
  }
  .topic-tabs button {
    padding: 7px 12px;
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  color: var(--blue-text);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 8px;
}
.entry-meta > span:last-child {
  color: var(--muted);
  font-weight: 400;
}
.editorial-list > a > div {
  min-width: 0;
  flex: 1;
}
.editorial-list > a > app-icon {
  flex: 0 0 24px;
}

.home-calculator {
  margin-block: 36px 0;
  border: 1px solid #ccdee7;
  border-radius: 16px;
  background: #f4f9fb;
  overflow: hidden;
}
.home-calculator-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 27px 30px;
}
.home-calculator-icon {
  width: 58px;
  height: 64px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #d8e7ee;
  border-radius: 14px;
  font-size: 1.7rem;
}
.home-calculator-copy {
  flex: 1;
  min-width: 0;
}
.home-calculator-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #637988;
}
.home-calculator-copy h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.7;
  margin: 3px 0 5px;
}
.home-calculator-copy p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #526774;
  margin: 0;
}
.home-calculator-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: column;
  flex: 0 0 auto;
}
.home-calculator-actions .button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  gap: 16px;
  border-radius: 9px;
  padding: 12px 23px;
}
.home-calculator-actions > a {
  font-size: 0.83rem;
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-underline-offset: 4px;
}
.home-calculator-actions > a:hover {
  text-decoration: underline;
}
.home-calculator-panel {
  padding: 28px;
  border-top: 1px solid #ccdee7;
  background: #fff;
}
.home-calculator-panel[hidden] {
  display: none;
}
.home-calculator-panel > app-education-estimator {
  display: block;
  max-width: 880px;
  margin-inline: auto;
}
.home-calculator-close {
  display: flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--blue-dark);
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 48px;
  margin: 18px auto 0;
  padding: 8px 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-calculator :is(button, a):focus-visible {
  outline: 3px solid #11709b;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .home-calculator-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 21px;
  }
  .home-calculator-icon {
    flex-basis: 40px;
    width: 40px;
    height: 46px;
    border-radius: 9px;
    font-size: 1.3rem;
    align-self: start;
    margin-top: 6px;
  }
  .home-calculator-copy h2 {
    font-size: 1.12rem;
  }
  .home-calculator-copy p {
    font-size: 0.86rem;
  }
  .home-calculator-actions {
    width: 100%;
    flex-direction: row;
    gap: 12px;
    margin-top: 5px;
  }
  .home-calculator-actions .button {
    flex: 1;
    padding-inline: 12px;
    font-size: 0.9rem;
    gap: 10px;
  }
  .home-calculator-actions > a {
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .home-calculator-panel {
    padding: 16px 10px;
  }
}
@media (max-width: 350px) {
  .home-calculator-bar {
    padding: 17px;
    gap: 10px;
  }
  .home-calculator-icon {
    display: none;
  }
  .home-calculator-actions {
    gap: 10px;
  }
  .home-calculator-actions .button {
    gap: 6px;
    font-size: 0.83rem;
  }
}
.home-calculator-actions .outline {
  background: #fff;
  color: var(--blue-dark);
  border: 1px solid #8caebe;
}
.home-calculator-actions .button {
  width: 100%;
  justify-content: center;
}
.home-calculator-panel > app-correction-lesson {
  display: block;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 700px) {
  .home-calculator-actions .button {
    width: auto;
    flex: 1;
    white-space: nowrap;
  }
}
