.blog-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 28px 48px;
  overflow-wrap: anywhere;
}

.blog-article {
  max-width: 760px;
}

.blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.blog-breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: #8a867b;
}

.blog-breadcrumb a,
.blog-article-meta a,
.blog-prose a,
.blog-toc a,
.blog-answer a,
.blog-quiz-result a,
.blog-quiz-solutions a,
.blog-sources a,
.blog-tool-note a,
.blog-back a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-kicker {
  margin: 0 0 9px;
  color: #665111;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .025em;
}

.blog-index-header,
.blog-article-header {
  border-top: 4px solid var(--yellow);
  padding-top: 22px;
  margin-bottom: 28px;
}

.blog-index-header h1,
.blog-article-header h1 {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.blog-index-header > p:last-child,
.blog-lead {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #45433e;
}

.blog-directory > h2,
.blog-related-words > h2,
.blog-related-articles > h2,
.blog-quiz > h2,
.blog-home h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.blog-directory {
  margin-top: 36px;
}

.blog-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 230px) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.blog-filter > div,
.blog-filter input,
.blog-filter select,
.blog-filter button {
  min-width: 0;
}

.blog-filter label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
}

.blog-filter input,
.blog-filter select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #a9a495;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.blog-filter select {
  padding-right: 28px;
}

.blog-filter-help {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid #bd910a;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.blog-button:hover {
  background: #f2bb08;
}

.blog-button-secondary {
  border-color: #aaa495;
  background: #fff;
}

.blog-button-secondary:hover {
  background: #fff7d6;
}

.blog-result-count {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.blog-card-grid,
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  overflow-wrap: anywhere;
}

.blog-card:focus-within {
  border-color: #987416;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
}

.blog-category {
  color: #665111;
  font-weight: 750;
}

.blog-card h2,
.blog-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 730;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: #997200;
  text-underline-offset: 4px;
}

.blog-card > p {
  margin: 0 0 18px;
  color: #4a4840;
  font-size: 15px;
  line-height: 1.7;
}

.blog-card-action {
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 750;
}

.blog-card-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-empty {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.blog-empty h2,
.blog-empty h3 {
  margin-top: 0;
  font-size: 21px;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 13px;
}

.blog-toc {
  margin: 24px 0 30px;
  padding: 0 18px;
  border: 1px solid #d4c793;
  border-radius: 11px;
  background: #fff9e4;
}

.blog-toc > summary,
.blog-quiz-solutions > summary {
  min-height: 46px;
  padding-block: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.blog-toc ol {
  margin: 0 0 18px;
  padding-left: 23px;
  font-size: 14px;
}

.blog-toc li {
  margin-block: 8px;
}

.blog-prose {
  font-size: 17px;
  line-height: 1.8;
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose p {
  margin: 0 0 1.2em;
}

.blog-prose h2 {
  margin: 2em 0 .8em;
  font-size: 25px;
  font-weight: 740;
  line-height: 1.35;
  letter-spacing: -.015em;
  scroll-margin-top: 24px;
}

.blog-prose h3 {
  margin: 1.5em 0 .65em;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.3em;
  padding-left: 25px;
}

.blog-prose li {
  margin-block: .55em;
  padding-left: 3px;
}

.blog-prose strong {
  font-weight: 730;
}

.blog-prose blockquote {
  margin: 1.3em 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 0 9px 9px 0;
  background: var(--card);
}

.blog-prose blockquote > :last-child {
  margin-bottom: 0;
}

.blog-prose table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
}

.blog-prose th,
.blog-prose td {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d6d1c5;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.blog-prose th {
  background: #fff4c9;
  font-weight: 700;
}

.blog-prose tbody tr:nth-child(even) {
  background: #faf8f2;
}

.blog-quiz {
  margin: 38px 0 30px;
  padding: 25px;
  border: 1px solid #d4c793;
  border-top: 4px solid var(--yellow);
  border-radius: 12px;
  background: #fffdf6;
}

.blog-quiz > p:not(.blog-kicker) {
  margin: 0 0 20px;
  color: #4a4840;
  font-size: 15px;
}

.blog-question {
  min-width: 0;
  min-inline-size: 0;
  margin: 0 0 27px;
  padding: 0;
  border: 0;
}

.blog-question legend {
  width: 100%;
  max-width: 100%;
  margin-bottom: 13px;
  padding: 0;
  font-size: 16px;
  font-weight: 680;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}

.blog-question-number {
  color: #705200;
}

.blog-options {
  display: grid;
  gap: 9px;
}

.blog-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #c9c4b6;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}

.blog-option:hover {
  border-color: #887438;
}

.blog-option:has(input:checked) {
  border-color: #947019;
  background: #fff7d6;
}

.blog-option input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #6e5300;
}

.blog-option input:checked + span {
  font-weight: 650;
}

.blog-answer {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 3px solid #9f302b;
  background: #fff1ed;
  font-size: 14px;
}

.blog-answer p {
  margin: 0 0 8px;
}

.blog-question[data-blog-state="correct"] .blog-answer {
  border-left-color: var(--success);
  background: #f0f8ef;
}

.blog-review-link {
  display: inline-block;
  padding-block: 4px;
}

.blog-quiz-progress {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.blog-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-quiz-result {
  margin-top: 23px;
  padding: 20px;
  border: 2px solid #bb9419;
  border-radius: 10px;
  background: #fff7d6;
  scroll-margin-top: 24px;
}

.blog-quiz-score {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 780;
}

.blog-quiz-result h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.45;
}

.blog-quiz-result p:last-child {
  margin-bottom: 0;
}

.blog-quiz-result ul {
  margin: 8px 0 0;
  padding-left: 22px;
  font-size: 14px;
}

.blog-quiz-result li {
  margin-block: 7px;
}

.blog-quiz-solutions {
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 15px;
}

.blog-solution {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.blog-solution:last-child {
  padding-bottom: 18px;
}

.blog-solution h3 {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.6;
}

.blog-solution-options {
  padding-left: 24px;
  list-style-type: upper-alpha;
}

.blog-solution-options li {
  margin-block: 8px;
}

.blog-sources {
  margin: 30px 0;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.blog-sources h2,
.blog-tool-note h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
}

.blog-sources ul {
  margin: 0;
  padding-left: 21px;
}

.blog-sources li {
  margin-block: 13px;
}

.blog-sources li > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.blog-related-words,
.blog-related-articles {
  margin-block: 33px;
}

.blog-related-words > p {
  margin-top: 0;
  color: #4a4840;
  font-size: 15px;
}

.blog-word-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-word-links a {
  display: inline-block;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid #c9c1a7;
  border-radius: 8px;
  background: #fff;
  font-weight: 650;
}

.blog-word-links a:hover {
  border-color: #917115;
  background: #fff7d6;
}

.blog-tool-note {
  margin: 32px 0;
  padding: 20px;
  border-left: 3px solid var(--yellow);
  background: #fff;
}

.blog-tool-note p {
  margin: 0;
  font-size: 15px;
}

.blog-back {
  margin: 28px 0 0;
  font-size: 15px;
}

.blog-home {
  padding-block: 32px;
  overflow-wrap: anywhere;
}

.blog-home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.blog-home-heading > div {
  min-width: 0;
}

.blog-home-heading > div > p:last-child {
  margin: 0;
  color: #4a4840;
}

.blog-home-heading > a {
  flex-shrink: 0;
}

.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 850px) {
  .blog-filter {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  }
  .blog-filter > button {
    justify-self: start;
  }
  .blog-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-shell {
    padding-top: 22px;
  }
  .blog-card-grid,
  .blog-related-grid,
  .blog-home-grid,
  .blog-filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-card {
    padding: 20px;
  }
  .blog-home-heading {
    display: block;
  }
  .blog-home-heading > a {
    margin-top: 16px;
  }
  .blog-filter > button {
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .blog-shell {
    width: calc(100% - 24px);
  }
  .blog-article-header h1,
  .blog-index-header h1 {
    font-size: 26px;
  }
  .blog-prose {
    font-size: 16px;
    line-height: 1.8;
  }
  .blog-prose h2,
  .blog-directory > h2,
  .blog-related-words > h2,
  .blog-related-articles > h2,
  .blog-quiz > h2,
  .blog-home h2 {
    font-size: 22px;
  }
  .blog-prose th,
  .blog-prose td {
    padding: 8px;
    font-size: 13px;
  }
  .blog-prose blockquote {
    padding: 15px 16px;
  }
  .blog-quiz {
    padding: 17px 14px;
  }
  .blog-question legend {
    font-size: 15px;
  }
  .blog-option {
    padding: 10px;
  }
  .blog-quiz-actions > button {
    width: 100%;
  }
  .blog-quiz-result {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-body {
    scroll-behavior: auto;
  }
}

@media print {
  .blog-filter,
  .blog-toc,
  .blog-quiz [data-blog-quiz-interactive],
  .blog-back {
    display: none !important;
  }
  .blog-shell {
    width: 100%;
    max-width: none;
  }
  .blog-quiz [data-blog-quiz-solutions] {
    display: block !important;
  }
  .blog-prose table,
  .blog-prose blockquote,
  .blog-question {
    break-inside: avoid;
  }
}
