.single-post {
  background: #fff;
}

.single-post .at-breadcrumb-wrap {
  border-bottom-color: #eceef0;
}

.at-article-page,
.at-article-page * {
  box-sizing: border-box;
}

.at-article-page {
  --article-yellow: #f7bd00;
  --article-ink: #121417;
  --article-muted: #656a72;
  --article-line: #e4e6e9;
  padding: 42px 0 72px;
  color: var(--article-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.at-article-shell {
  width: min(calc(100% - 48px), 1440px);
  margin-inline: auto;
}

.at-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 920px) minmax(300px, 360px);
  gap: clamp(48px, 6vw, 78px);
  align-items: start;
  justify-content: space-between;
}

.at-article-header {
  max-width: 790px;
  margin-bottom: 30px;
}

.at-article-category,
.at-related-category {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 10px;
  color: #17191b;
  background: var(--article-yellow);
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .055em;
}

.at-article-header h1 {
  max-width: 800px;
  margin: 14px 0 13px;
  color: var(--article-ink);
  font-size: clamp(38px, 4.2vw, 57px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.at-article-lead {
  max-width: 760px;
  margin: 0 0 21px;
  color: #3e4248;
  font-size: 18px;
  line-height: 1.62;
}

.at-article-meta,
.at-article-author-mini,
.at-meta-item {
  display: flex;
  align-items: center;
}

.at-article-meta {
  flex-wrap: wrap;
  gap: 14px 25px;
  color: var(--article-muted);
  font-size: 13px;
}

.at-article-author-mini {
  gap: 11px;
  color: var(--article-ink);
  text-decoration: none;
}

.at-article-author-mini img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: #eceef0;
}

.at-article-author-mini span span,
.at-article-author-mini strong,
.at-article-author-mini small {
  display: block;
}

.at-article-author-mini strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.at-article-author-mini small {
  color: var(--article-muted);
  font-size: 11px;
}

.at-meta-item {
  gap: 7px;
  white-space: nowrap;
}

.at-meta-item > span {
  color: #272a2e;
  font-size: 15px;
}

.at-article-hero {
  margin: 0 0 30px;
}

.at-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #eceef0;
}

.at-article-hero figcaption,
.at-article-content figcaption {
  margin-top: 8px;
  color: var(--article-muted);
  font-size: 12px;
  line-height: 1.45;
}

.at-article-content {
  max-width: 760px;
  color: #292d32;
  font-size: 17px;
  line-height: 1.78;
}

.at-article-content > :first-child {
  margin-top: 0;
}

.at-article-content p {
  margin: 0 0 1.15em;
}

.at-article-content h2,
.at-article-content h3 {
  position: relative;
  scroll-margin-top: 100px;
  color: var(--article-ink);
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.at-article-content h2 {
  margin: 1.45em 0 .48em;
  font-size: 28px;
  line-height: 1.23;
}

.at-article-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: .88em;
  margin-right: 11px;
  vertical-align: -.05em;
  background: var(--article-yellow);
  border-radius: 1px;
}

.at-article-content h3 {
  margin: 1.35em 0 .48em;
  font-size: 22px;
  line-height: 1.3;
}

.at-article-content :where(ul, ol) {
  margin: .35em 0 1.35em;
  padding-left: 1.35em;
}

.at-article-content li {
  margin: .3em 0;
  padding-left: .22em;
}

.at-article-content li::marker {
  color: #d69f00;
  font-weight: 800;
}

.at-article-content a {
  color: #715400;
  text-decoration-color: #ddb000;
  text-underline-offset: 3px;
}

.at-article-content blockquote {
  position: relative;
  margin: 28px 0;
  padding: 20px 24px 20px 54px;
  color: #30343a;
  background: #fffaf0;
  border: 1px solid #f1d475;
  border-radius: 4px;
}

.at-article-content blockquote::before {
  content: "“";
  position: absolute;
  top: 9px;
  left: 18px;
  color: var(--article-yellow);
  font: 700 42px Georgia, serif;
}

.at-article-content :where(img, iframe, video) {
  max-width: 100%;
  height: auto;
}

.at-article-content figure {
  max-width: 100%;
  margin: 28px 0;
}

.at-article-content table {
  display: block;
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.at-article-content :where(th, td) {
  padding: 12px 14px;
  border: 1px solid var(--article-line);
  text-align: left;
}

.at-article-content th {
  background: #f7f7f5;
}

.at-sidebar-sticky {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.at-article-toc,
.at-sidebar-related {
  padding: 24px;
  border: 1px solid var(--article-line);
  border-radius: 5px;
  background: #fff;
}

.at-article-toc h2,
.at-sidebar-related h2,
.at-article-gallery h2,
.at-article-faq > h2,
.at-section-heading h2 {
  margin: 0;
  color: var(--article-ink);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.at-article-toc ol {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.at-article-toc a {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  align-items: start;
  color: #35393e;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.at-article-toc a > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #17191b;
  background: var(--article-yellow);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
}

.at-article-toc a:hover,
.at-article-toc a[aria-current="true"] {
  color: #7b5d00;
}

.at-toc-level-3 {
  margin-left: 16px;
}

.at-sidebar-related h2 {
  margin-bottom: 16px;
}

.at-sidebar-related article + article {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eceef0;
}

.at-sidebar-related article a {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 13px;
  color: var(--article-ink);
  text-decoration: none;
}

.at-sidebar-related img {
  width: 102px;
  height: 70px;
  object-fit: cover;
  border-radius: 3px;
  background: #eceef0;
}

.at-sidebar-related strong,
.at-sidebar-related small {
  display: block;
}

.at-sidebar-related strong {
  font-size: 13px;
  line-height: 1.35;
}

.at-sidebar-related small {
  margin-top: 7px;
  color: var(--article-muted);
  font-size: 11px;
}

.at-article-cta {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 25px;
  color: #fff;
  background-image: linear-gradient(0deg, rgba(4, 6, 8, .95), rgba(4, 6, 8, .25)), var(--at-cta-image, linear-gradient(135deg, #282d31, #080a0c));
  background-position: center;
  background-size: cover;
  border-radius: 5px;
}

.at-article-cta div {
  position: relative;
  z-index: 1;
}

.at-article-cta h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.at-article-cta p {
  margin: 0 0 17px;
  color: #d7dade;
  font-size: 13px;
  line-height: 1.5;
}

.at-article-cta a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  color: #151719;
  background: var(--article-yellow);
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.at-mobile-toc {
  display: none;
}

.at-article-gallery,
.at-article-faq {
  max-width: 760px;
  margin-top: 38px;
}

.at-article-gallery > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.at-article-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.at-article-gallery img {
  display: block;
  width: 100%;
  height: 82px;
  object-fit: cover;
  transition: transform .2s ease;
}

.at-article-gallery a:hover img {
  transform: scale(1.035);
}

.at-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.at-faq-grid details {
  border: 1px solid var(--article-line);
  border-radius: 3px;
}

.at-faq-grid summary {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.at-faq-grid summary::-webkit-details-marker,
.at-mobile-toc summary::-webkit-details-marker {
  display: none;
}

.at-faq-grid summary span,
.at-mobile-toc summary span {
  color: #a87d00;
  font-size: 19px;
  transition: transform .18s ease;
}

.at-faq-grid details[open] summary span,
.at-mobile-toc[open] > summary span {
  transform: rotate(45deg);
}

.at-faq-grid details > div {
  padding: 0 14px 14px;
  color: #4c5158;
  font-size: 13px;
  line-height: 1.6;
}

.at-faq-grid details > div p {
  margin: 0 0 8px;
}

.at-article-share {
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 34px;
  padding: 16px 0;
  border-top: 1px solid var(--article-line);
  border-bottom: 1px solid var(--article-line);
}

.at-article-share strong {
  margin-right: 5px;
  font-size: 13px;
}

.at-article-share > a,
.at-article-share > button {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #30343a;
  background: #fff;
  border: 1px solid #dfe2e5;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  font: 700 12px/1 Arial, sans-serif;
}

.at-article-share > a:hover,
.at-article-share > button:hover {
  color: #17191b;
  border-color: var(--article-yellow);
  background: #fffaf0;
}

.at-author-card {
  max-width: 760px;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  padding: 22px;
  background: #fafaf8;
  border: 1px solid var(--article-line);
  border-radius: 4px;
}

.at-author-card > img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  background: #eceef0;
}

.at-author-card small,
.at-author-card strong {
  display: block;
}

.at-author-card small {
  color: var(--article-muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.at-author-card h2 {
  margin: 3px 0 2px;
  font-size: 18px;
}

.at-author-card strong {
  color: #6d5300;
  font-size: 12px;
}

.at-author-card p {
  margin: 8px 0 0;
  color: #565b62;
  font-size: 12px;
  line-height: 1.5;
}

.at-author-card > a,
.at-section-heading > a {
  color: #22262a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.at-author-card > a {
  padding: 10px 12px;
  border: 1px solid #dfe2e5;
  border-radius: 3px;
}

.at-article-comments {
  max-width: 760px;
  margin-top: 34px;
}

.at-article-comments .comments-area > h2,
.at-article-comments .comment-reply-title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.at-article-comments ol {
  padding-left: 22px;
}

.at-article-comments .comment-body {
  margin-bottom: 16px;
  padding: 17px;
  border: 1px solid var(--article-line);
}

.at-article-comments .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.at-article-comments .comment-form-comment,
.at-article-comments .comment-notes,
.at-article-comments .logged-in-as,
.at-article-comments .form-submit,
.at-article-comments .comment-form-cookies-consent {
  grid-column: 1 / -1;
}

.at-article-comments label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.at-article-comments :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d9dce0;
  border-radius: 3px;
  color: var(--article-ink);
  background: #fff;
  font: inherit;
}

.at-article-comments textarea {
  min-height: 130px;
  resize: vertical;
}

.at-article-comments input[type="submit"] {
  min-height: 42px;
  padding: 10px 18px;
  color: #17191b;
  background: var(--article-yellow);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 850;
}

.at-related-grid {
  margin-top: 62px;
  padding-top: 32px;
  border-top: 1px solid var(--article-line);
}

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

.at-section-heading h2 {
  font-size: 26px;
}

.at-related-grid > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.at-related-grid article {
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: 4px;
  background: #fff;
}

.at-related-image {
  display: block;
  overflow: hidden;
}

.at-related-image img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
  transition: transform .25s ease;
}

.at-related-grid article:hover .at-related-image img {
  transform: scale(1.025);
}

.at-related-grid article > div {
  padding: 15px;
}

.at-related-category {
  min-height: 20px;
  padding: 4px 7px;
  font-size: 9px;
}

.at-related-grid h3 {
  margin: 10px 0 13px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.at-related-grid h3 a {
  color: var(--article-ink);
  text-decoration: none;
}

.at-related-grid time {
  color: var(--article-muted);
  font-size: 11px;
}

.at-reading-progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.admin-bar .at-reading-progress {
  top: 32px;
}

.at-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--at-yellow, #ffc400);
  transform: scaleX(0);
  transform-origin: left center;
}

.at-article-page :where(a, button, summary, input, textarea):focus-visible {
  outline: 3px solid rgba(255, 196, 0, .45);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .at-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
  }

  .at-article-header h1 {
    font-size: clamp(36px, 4.8vw, 49px);
  }

  .at-article-toc,
  .at-sidebar-related {
    padding: 20px;
  }

  .at-sidebar-related article a {
    grid-template-columns: 84px 1fr;
  }

  .at-sidebar-related img {
    width: 84px;
    height: 62px;
  }
}

@media (max-width: 840px) {
  .at-article-page {
    padding-top: 34px;
  }

  .at-article-shell {
    width: min(calc(100% - 40px), 760px);
  }

  .at-article-layout {
    display: block;
  }

  .at-article-sidebar {
    display: none;
  }

  .at-mobile-toc {
    display: block;
    margin: 0 0 26px;
    border: 1px solid var(--article-line);
    border-radius: 4px;
  }

  .at-mobile-toc > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 17px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
  }

  .at-mobile-toc .at-article-toc {
    padding-top: 4px;
    border: 0;
  }

  .at-mobile-toc .at-article-toc h2 {
    display: none;
  }

  .at-mobile-toc .at-article-toc ol {
    margin-top: 0;
  }

  .at-related-grid > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .at-article-page {
    padding: 27px 0 50px;
  }

  .at-article-shell {
    width: min(calc(100% - 30px), 760px);
  }

  .at-article-header {
    margin-bottom: 23px;
  }

  .at-article-header h1 {
    margin-top: 12px;
    font-size: clamp(32px, 9.5vw, 42px);
    line-height: 1.08;
  }

  .at-article-lead {
    font-size: 16px;
    line-height: 1.58;
  }

  .at-article-meta {
    gap: 12px 16px;
  }

  .at-article-author-mini {
    width: 100%;
  }

  .at-article-hero {
    margin-inline: -15px;
  }

  .at-article-hero img {
    border-radius: 0;
    aspect-ratio: 4 / 3;
  }

  .at-article-hero figcaption {
    padding-inline: 15px;
  }

  .at-article-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .at-article-content h2 {
    font-size: 24px;
  }

  .at-article-content h3 {
    font-size: 20px;
  }

  .at-article-content blockquote {
    padding: 18px 18px 18px 47px;
  }

  .at-article-gallery > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .at-faq-grid,
  .at-article-comments .comment-form {
    grid-template-columns: 1fr;
  }

  .at-author-card {
    grid-template-columns: 64px 1fr;
    gap: 15px;
    padding: 18px;
  }

  .at-author-card > img {
    width: 64px;
    height: 64px;
  }

  .at-author-card > a {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .at-related-grid {
    margin-top: 45px;
  }

  .at-related-grid > div:last-child {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .at-related-grid article {
    min-width: min(82vw, 285px);
    scroll-snap-align: start;
  }

  .at-related-image img {
    height: 165px;
  }

  .admin-bar .at-reading-progress {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-article-gallery img,
  .at-related-image img,
  .at-faq-grid summary span,
  .at-mobile-toc summary span {
    transition: none;
  }
}
