/* =========================================================
   A2TDEV Responsive Upgrade 07
   Blog, reader, comments, auth and account mobile polish.
   Loaded last so it can normalize legacy/page-specific CSS.
   ========================================================= */

:root {
  --a2t-mobile-gutter: clamp(12px, 4vw, 18px);
  --a2t-mobile-radius: 18px;
  --a2t-mobile-card-shadow: 0 12px 34px rgba(8, 12, 24, .06);
}

html[data-theme="dark"] {
  --a2t-mobile-card-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}

/* ------------------------------
   Shared small-device safeguards
   ------------------------------ */
@media (max-width: 760px) {
  .a2t-auth-page,
  .a2t-account-page,
  .a2t-blog-reader-pro,
  .blog-container,
  .a2t-blog-search-page,
  .a2t-blog-categories-page,
  .search-container {
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .a2t-auth-page img,
  .a2t-account-page img,
  .a2t-blog-reader-pro img,
  .blog-container img,
  .a2t-blog-search-page img,
  .search-container img {
    max-width: 100%;
    height: auto;
  }

  .a2t-auth-page *,
  .a2t-account-page *,
  .a2t-blog-reader-pro *,
  .blog-container *,
  .a2t-blog-search-page *,
  .a2t-blog-categories-page *,
  .search-container * {
    min-width: 0;
  }

  .a2t-auth-page a,
  .a2t-account-page a,
  .a2t-blog-reader-pro a,
  .blog-container a,
  .a2t-blog-search-page a,
  .search-container a {
    overflow-wrap: anywhere;
  }
}

/* ------------------------------
   Blog listing page
   ------------------------------ */
.bg-gradient-soft.section-bleed:has(.blog-container),
.bg-gradient-soft.section-bleed:has(.a2t-blog-search-page) {
  background:
    radial-gradient(circle at 0 0, rgba(53, 103, 255, .08), transparent 32%),
    radial-gradient(circle at 100% 30%, rgba(14, 165, 233, .08), transparent 30%),
    var(--a2t-bg, #f8fafc) !important;
}

.slideshow-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 16px;
}

.slideshow-section > .slideshow-container {
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.slideshow-section .slideshow-wrapper {
  gap: 14px;
  border-radius: 28px;
}

#slideshowContainer.slideshow-container {
  min-height: 0 !important;
  height: clamp(300px, 36vw, 455px) !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  border: 1px solid var(--a2t-line, #e8ebf1) !important;
  background: #050507 !important;
  box-shadow: 0 24px 70px rgba(8, 12, 24, .12) !important;
}

.slideshow-section .progress-container {
  height: 5px;
  background: rgba(53, 103, 255, .12) !important;
}

.slideshow-section .progress-bar {
  background: linear-gradient(90deg, var(--a2t-blue, #3567ff), #0ea5e9) !important;
}

.slideshow-section .slide-content {
  padding: 74px 40px 38px !important;
  background: linear-gradient(0deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .42) 58%, transparent) !important;
}

.slideshow-section .slide-title {
  max-width: 760px;
  color: #fff !important;
  font-size: clamp(30px, 4.4vw, 54px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em;
}

.slideshow-section .slide-description {
  max-width: 650px;
  color: rgba(255, 255, 255, .78) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slideshow-section .slide-category {
  background: rgba(255, 255, 255, .14) !important;
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
  color: #fff !important;
}

.slideshow-section .thumbnails-container {
  display: flex !important;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.slideshow-section .thumbnails-container::-webkit-scrollbar,
#myBtnContainer::-webkit-scrollbar,
.a2t-toc-list::-webkit-scrollbar,
.a2t-account-actions::-webkit-scrollbar {
  display: none;
}

.blog-container {
  width: min(1220px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 20px 0 84px !important;
  color: var(--a2t-text, #07070b);
}

.blog-cta {
  max-width: 830px !important;
  margin: 10px 0 22px !important;
  padding: 0 !important;
}

.blog-cta h3 {
  color: var(--a2t-text, #07070b) !important;
  font-size: clamp(34px, 5vw, 62px) !important;
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 950;
}

.blog-cta p {
  max-width: 74ch;
  color: var(--a2t-muted, #58657a) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

#myBtnContainer {
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 24px !important;
  padding: 10px !important;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 22px;
  background: var(--a2t-surface, #fff);
  box-shadow: var(--a2t-mobile-card-shadow);
  overflow-x: auto !important;
  scrollbar-width: none !important;
  text-align: left !important;
}

#myBtnContainer .search-wrapper {
  flex: 0 0 min(360px, 52vw);
  min-width: 240px;
}

#myBtnContainer .search-bar,
.blog-container .search-bar {
  max-width: none !important;
  width: 100% !important;
  min-height: 44px;
  height: auto !important;
  margin: 0 !important;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 999px;
  background: var(--a2t-soft, #f7f8fb);
  box-shadow: none !important;
  overflow: hidden;
}

#myBtnContainer .search-bar input,
.blog-container .search-bar input {
  min-height: 42px;
  color: var(--a2t-text, #07070b) !important;
  padding: 0 14px !important;
}

#myBtnContainer .search-wrapper .bsbtn,
.blog-container .search-wrapper .bsbtn {
  min-height: 42px;
  border-radius: 999px !important;
  background: #050507 !important;
  color: #fff !important;
  padding-inline: 16px !important;
  font-size: 13px;
  font-weight: 900;
}

#myBtnContainer .dot-sep {
  flex: 0 0 1px;
  width: 1px !important;
  height: 28px !important;
  margin: 0 4px !important;
  padding: 0 !important;
  background: var(--a2t-line, #e8ebf1) !important;
}

#myBtnContainer .btn {
  flex: 0 0 auto !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid var(--a2t-line, #e8ebf1) !important;
  border-radius: 999px !important;
  background: var(--a2t-soft, #f7f8fb) !important;
  color: var(--a2t-text, #07070b) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

#myBtnContainer .btn.active,
#myBtnContainer .btn:hover,
#myBtnContainer .btn:focus-visible {
  background: #050507 !important;
  border-color: #050507 !important;
  color: #fff !important;
}

.blog-container .grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 0 !important;
}

.blog-container .blog-post {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--a2t-line, #e8ebf1) !important;
  border-radius: 22px !important;
  background: var(--a2t-surface, #fff) !important;
  box-shadow: var(--a2t-mobile-card-shadow) !important;
  color: var(--a2t-text, #07070b) !important;
}

.blog-container .blog-post::before {
  top: 12px !important;
  left: 12px !important;
  border-radius: 999px !important;
  background: rgba(5, 5, 7, .76) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-container .blog-post img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.blog-container .blog-post .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  padding: 14px 16px 0;
  margin: 0 !important;
  color: var(--a2t-muted, #58657a) !important;
  font-size: 12px !important;
  line-height: 1.4;
}

.blog-container .blog-post .post-meta span {
  margin: 0 !important;
}

.blog-container .blog-post h2 {
  margin: 10px 16px 8px !important;
  font-size: 22px !important;
  line-height: 1.13 !important;
  letter-spacing: -.035em;
  font-weight: 950;
}

.blog-container .blog-post h2 a {
  color: var(--a2t-text, #07070b) !important;
  text-decoration: none !important;
}

.blog-container .blog-post h2 a::after {
  display: none !important;
}

.blog-container .blog-post p {
  margin: 0 16px 16px !important;
  color: var(--a2t-muted, #58657a) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 3 !important;
}

.blog-container .blog-post .read-more,
.blog-container .blog-post a:last-child {
  width: fit-content;
  margin: auto 16px 16px !important;
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--a2t-line, #e8ebf1);
  background: var(--a2t-soft, #f7f8fb);
  color: var(--a2t-blue, #3567ff) !important;
  padding: 0 14px;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

.blog-container .pagination,
.blog-container .step-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.blog-container .pagination {
  margin: 28px 0 0 !important;
}

.blog-container .pagination a,
.blog-container .pagination .current {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid var(--a2t-line, #e8ebf1) !important;
  background: var(--a2t-surface, #fff);
  color: var(--a2t-text, #07070b) !important;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px !important;
}

.blog-container .pagination .current {
  background: #050507;
  color: #fff !important;
  border-color: #050507 !important;
}

/* ------------------------------
   Blog search/category templates
   ------------------------------ */
.a2t-blog-search-page,
.a2t-blog-categories-page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 84px;
  color: var(--a2t-text, #07070b);
}

.a2t-blog-search-hero,
.a2t-blog-categories-hero {
  margin-bottom: 22px;
}

.a2t-blog-search-hero h1,
.a2t-blog-categories-hero h1 {
  margin: 10px 0 10px;
  color: var(--a2t-text, #07070b);
  font-size: clamp(36px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 950;
}

.a2t-blog-search-hero p,
.a2t-blog-categories-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--a2t-muted, #58657a);
  font-size: 16px;
  line-height: 1.65;
}

.a2t-blog-search-list,
.a2t-blog-category-tree {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.a2t-blog-search-card,
.a2t-blog-category-card {
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 20px;
  background: var(--a2t-surface, #fff);
  box-shadow: var(--a2t-mobile-card-shadow);
  padding: 18px;
}

.a2t-blog-search-card a,
.a2t-blog-category-card strong {
  color: var(--a2t-text, #07070b);
  text-decoration: none;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 950;
}

.a2t-blog-search-card p,
.a2t-blog-category-card li {
  margin: 8px 0 0;
  color: var(--a2t-muted, #58657a);
  line-height: 1.55;
}

.a2t-blog-category-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.a2t-blog-category-card li {
  margin: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 999px;
  background: var(--a2t-soft, #f7f8fb);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

/* ------------------------------
   Blog reader and comments
   ------------------------------ */
.a2t-blog-reader-pro {
  isolation: isolate;
}

.a2t-content-pro iframe,
.a2t-content-pro video,
.a2t-content-pro table,
.a2t-content-pro pre {
  max-width: 100%;
}

.a2t-content-pro table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.a2t-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 16px;
  background: var(--a2t-surface, #fff);
}

.a2t-table-scroll table {
  margin: 0 !important;
  min-width: 640px;
}

.a2t-content-pro img {
  border-radius: 18px;
}

.a2t-comments-pro .comment,
#comments-section .comment {
  border-bottom: 1px solid var(--a2t-line, #e8ebf1);
}

.a2t-comments-pro .comment:last-child,
#comments-section .comment:last-child {
  border-bottom: 0;
}

.a2t-comments-pro .comment-header,
#comments-section .comment-header {
  color: var(--a2t-muted, #58657a) !important;
}

.a2t-comments-pro .comment-body,
#comments-section .comment-body {
  color: var(--a2t-text, #07070b);
}

.a2t-comments-pro .comment-reactions,
#comments-section .comment-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.a2t-comments-pro .reply-btn,
.a2t-comments-pro .reaction-btn,
#comments-section .reply-btn,
#comments-section .reaction-btn {
  min-height: 34px;
  margin: 0 !important;
  padding: 0 11px;
  border: 1px solid var(--a2t-line, #e8ebf1) !important;
  border-radius: 999px;
  background: var(--a2t-soft, #f7f8fb) !important;
  color: var(--a2t-muted, #58657a) !important;
  font-weight: 850;
}

.a2t-comments-pro .reply-form,
#comments-section .reply-form {
  margin-top: 12px;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 16px;
  background: var(--a2t-soft, #f7f8fb);
  padding: 12px;
}

.a2t-comments-pro .reply-form textarea,
#comments-section .reply-form textarea,
#comments-section textarea {
  background: var(--a2t-surface, #fff) !important;
  color: var(--a2t-text, #07070b) !important;
  border-color: var(--a2t-line, #e8ebf1) !important;
}

/* ------------------------------
   Authentication pages
   ------------------------------ */
.a2t-auth-page,
.a2t-account-page {
  color: var(--a2t-text, #07070b);
}

.a2t-auth-card .errorlist,
.a2t-account-page .errorlist {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
  list-style-position: inside;
}

.a2t-auth-card .helptext,
.a2t-account-page .helptext {
  display: block;
  margin-top: 6px;
  color: var(--a2t-muted, #58657a);
  font-size: 12px;
  line-height: 1.45;
}

.a2t-auth-card input,
.a2t-auth-card textarea,
.a2t-auth-card select,
.a2t-account-page input,
.a2t-account-page textarea,
.a2t-account-page select {
  max-width: 100% !important;
}

.a2t-auth-card input[type="checkbox"] {
  flex: 0 0 auto;
}

/* ------------------------------
   Account/profile/support pages
   ------------------------------ */
.a2t-account-page .a2t-btn,
.a2t-account-page .a2t-btn-dark,
.a2t-account-page button,
.a2t-auth-page .a2t-btn,
.a2t-auth-page .a2t-btn-dark,
.a2t-auth-page button {
  touch-action: manipulation;
}

.a2t-account-list strong,
.a2t-account-list span,
.a2t-account-card h2,
.a2t-account-card p,
.a2t-email-address,
.a2t-pending-email-row strong,
.a2t-pending-email-row span {
  overflow-wrap: anywhere;
}

.a2t-account-form input[type="file"] {
  min-height: 52px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.a2t-email-note {
  align-items: center;
}

/* ------------------------------
   Sitewide search result fallback
   ------------------------------ */
.search-container {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 84px;
  color: var(--a2t-text, #07070b);
}

.search-container h1 {
  margin: 0 0 22px;
  color: var(--a2t-text, #07070b);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 950;
}

.search-section {
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 22px;
  background: var(--a2t-surface, #fff);
  box-shadow: var(--a2t-mobile-card-shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.search-section h2 {
  margin: 0 0 12px;
  color: var(--a2t-text, #07070b);
  font-size: 22px;
  letter-spacing: -.035em;
  font-weight: 950;
}

.search-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-list li {
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 16px;
  background: var(--a2t-soft, #f7f8fb);
  padding: 14px;
}

.search-list a {
  color: var(--a2t-blue, #3567ff);
  text-decoration: none;
  font-weight: 950;
}

.search-list .meta {
  display: block;
  margin-top: 4px;
  color: var(--a2t-muted, #58657a);
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------
   Tablet and small laptop adjustments
   ------------------------------ */
@media (max-width: 1180px) {
  .blog-container .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .slideshow-section,
  .blog-container,
  .a2t-blog-search-page,
  .a2t-blog-categories-page,
  .search-container {
    width: min(100% - 28px, 1220px) !important;
  }

  .blog-container .grid {
    grid-template-columns: 1fr !important;
  }

  .a2t-reader-tools.a2t-reader-card {
    position: sticky !important;
    top: calc(var(--a2t-header-height, 64px) + 8px) !important;
    z-index: 12;
    display: grid;
    gap: 10px;
    padding: 12px !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--a2t-surface, #fff) 92%, transparent) !important;
    backdrop-filter: blur(14px);
  }

  .a2t-reader-tools .a2t-share-grid {
    grid-template-columns: repeat(4, minmax(42px, 1fr));
    gap: 8px;
  }

  .a2t-reader-tools .a2t-tool-label {
    display: none;
  }

  .a2t-reader-tools .a2t-toc-list {
    display: flex !important;
    gap: 8px;
    max-height: none !important;
    overflow-x: auto !important;
    padding: 0 0 2px !important;
    scrollbar-width: none;
  }

  .a2t-reader-tools .a2t-toc-list a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-left: 0 !important;
    border: 1px solid var(--a2t-line, #e8ebf1);
    border-radius: 999px !important;
    background: var(--a2t-soft, #f7f8fb);
    padding: 0 12px !important;
    white-space: nowrap;
    font-size: 13px !important;
  }

  .a2t-reader-tools .a2t-toc-list a.active,
  .a2t-reader-tools .a2t-toc-list a:hover,
  .a2t-reader-tools .a2t-toc-list a:focus-visible {
    background: #050507 !important;
    border-color: #050507 !important;
    color: #fff !important;
  }

  .a2t-reader-tools .a2t-like-button-pro {
    margin-top: 0 !important;
    min-height: 42px;
  }
}

/* ------------------------------
   Phone adjustments
   ------------------------------ */
@media (max-width: 760px) {
  .slideshow-section {
    padding: 18px 0 10px;
  }

  #slideshowContainer.slideshow-container {
    height: clamp(238px, 66vw, 310px) !important;
    border-radius: 22px !important;
  }

  .slideshow-section .slide-content {
    padding: 64px 18px 18px !important;
  }

  .slideshow-section .slide-title {
    font-size: clamp(25px, 8.5vw, 36px) !important;
    line-height: 1.04 !important;
  }

  .slideshow-section .slide-description {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .slideshow-section .nav-button {
    display: none !important;
  }

  .slideshow-section .dots-container {
    bottom: 12px !important;
    gap: 8px !important;
  }

  .slideshow-section .dot {
    width: 9px !important;
    height: 9px !important;
  }

  .slideshow-section .thumbnails-container {
    display: none !important;
  }

  .blog-container {
    padding: 12px 0 60px !important;
  }

  .blog-cta {
    margin-bottom: 16px !important;
  }

  .blog-cta h3 {
    font-size: clamp(31px, 10vw, 42px) !important;
  }

  .blog-cta p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px !important;
  }

  #myBtnContainer {
    position: sticky;
    top: calc(var(--a2t-header-height, 64px) + 8px);
    z-index: 13;
    margin-inline: calc(var(--a2t-mobile-gutter) * -1) !important;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(8, 12, 24, .08);
    background: color-mix(in srgb, var(--a2t-surface, #fff) 94%, transparent);
    backdrop-filter: blur(14px);
  }

  #myBtnContainer .search-wrapper {
    flex-basis: min(280px, 74vw);
    min-width: min(280px, 74vw);
  }

  #myBtnContainer .btn {
    min-height: 38px !important;
    font-size: 12px !important;
    padding-inline: 13px !important;
  }

  .blog-container .blog-post {
    border-radius: 18px !important;
  }

  .blog-container .blog-post img {
    height: clamp(178px, 54vw, 230px) !important;
  }

  .blog-container .blog-post h2 {
    font-size: 20px !important;
  }

  .blog-container .pagination .current {
    order: -1;
    flex: 0 0 100%;
  }

  .a2t-blog-search-page,
  .a2t-blog-categories-page,
  .search-container {
    padding: 26px 0 60px !important;
  }

  .a2t-blog-search-card,
  .a2t-blog-category-card,
  .search-section {
    border-radius: 18px;
    padding: 15px;
  }

  .a2t-blog-reader-pro {
    width: 100% !important;
    padding: 18px var(--a2t-mobile-gutter) 48px !important;
  }

  .a2t-blog-pro-layout {
    gap: 15px !important;
  }

  .a2t-reader-tools.a2t-reader-card,
  .a2t-article-hero,
  .a2t-reader-card,
  .a2t-side-cta-pro,
  .a2t-related-box,
  .a2t-ad-card {
    border-radius: var(--a2t-mobile-radius) !important;
  }

  .a2t-article-hero,
  .a2t-article-footer-pro {
    padding: 18px !important;
  }

  .a2t-article-title-pro {
    margin-top: 16px !important;
    font-size: clamp(32px, 10vw, 46px) !important;
    line-height: 1 !important;
    letter-spacing: -.06em !important;
  }

  .a2t-article-meta-pro {
    gap: 7px !important;
  }

  .a2t-article-meta-pro span,
  .a2t-article-meta-pro a {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .a2t-article-image-pro {
    margin-top: 18px !important;
    border-radius: 16px !important;
  }

  .a2t-article-image-pro img {
    max-height: 260px !important;
  }

  .a2t-excerpt-pro {
    margin-bottom: 18px !important;
    padding: 18px !important;
    border-radius: 16px !important;
    font-size: 17px !important;
    line-height: 1.58 !important;
  }

  .a2t-content-pro {
    padding: 0 2px !important;
    font-size: 16.5px !important;
    line-height: 1.75 !important;
  }

  .a2t-content-pro h2 {
    font-size: 28px !important;
  }

  .a2t-content-pro h3 {
    font-size: 23px !important;
  }

  .a2t-content-pro h4 {
    font-size: 20px !important;
  }

  .a2t-content-pro blockquote {
    padding: 18px !important;
    border-radius: 16px !important;
    font-size: 17px !important;
  }

  .a2t-content-pro pre {
    margin-inline: calc(var(--a2t-mobile-gutter) * -1);
    border-radius: 0 !important;
    padding: 16px !important;
  }

  .a2t-heading-chain {
    opacity: 1 !important;
    font-size: .62em !important;
  }

  .a2t-action-row,
  .a2t-tag-row {
    gap: 8px !important;
  }

  .a2t-action-row .a2t-btn,
  .a2t-action-row .a2t-btn-dark,
  .a2t-tag-row .a2t-tag {
    flex: 1 1 auto;
    min-width: fit-content;
    justify-content: center;
  }

  .a2t-comments-pro,
  #comments-section.a2t-comments-pro {
    width: calc(100% - (var(--a2t-mobile-gutter) * 2)) !important;
    margin: 0 auto 62px !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .a2t-comments-pro h2,
  #comments-section h2 {
    font-size: 28px !important;
  }

  .a2t-comments-pro textarea,
  #comments-section textarea {
    min-height: 110px !important;
    border-radius: 14px !important;
  }

  .a2t-comments-pro .comment-header,
  #comments-section .comment-header {
    display: grid !important;
    gap: 2px;
    align-items: start !important;
  }

  .a2t-comments-pro .comment .comment-replies,
  #comments-section .comment .comment-replies {
    margin-left: 10px !important;
    padding-left: 10px !important;
  }

  .a2t-comments-pro #comment-form button,
  #comments-section #comment-form button,
  .a2t-comments-pro .reply-form button,
  #comments-section .reply-form button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .a2t-auth-page {
    width: calc(100% - (var(--a2t-mobile-gutter) * 2)) !important;
    padding: 28px 0 64px !important;
    min-height: auto !important;
    display: block !important;
  }

  .a2t-auth-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .a2t-auth-brand-panel,
  .a2t-auth-card {
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: var(--a2t-mobile-card-shadow) !important;
  }

  .a2t-auth-brand-panel::after {
    width: 220px !important;
    height: 220px !important;
    right: -90px !important;
    bottom: -90px !important;
  }

  .a2t-auth-logo {
    margin-bottom: 22px !important;
    font-size: 24px !important;
  }

  .a2t-auth-brand-panel h1,
  .a2t-auth-card h1,
  .a2t-auth-card h2 {
    font-size: clamp(30px, 10vw, 42px) !important;
    line-height: 1 !important;
    letter-spacing: -.055em !important;
  }

  .a2t-auth-brand-panel p,
  .a2t-auth-subtitle {
    font-size: 14.5px !important;
    line-height: 1.58 !important;
  }

  .a2t-auth-points {
    margin-top: 22px !important;
  }

  .a2t-auth-point {
    font-size: 13px;
  }

  .a2t-auth-brand-social {
    margin-top: 20px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .a2t-social-auth,
  .a2t-social-auth.two {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .a2t-social-btn,
  .a2t-social-disabled,
  .a2t-auth-card button,
  .a2t-auth-card input[type="submit"],
  .a2t-auth-primary,
  .a2t-auth-secondary {
    min-height: 48px !important;
    border-radius: 14px !important;
  }

  .a2t-auth-card input[type="email"],
  .a2t-auth-card input[type="text"],
  .a2t-auth-card input[type="password"],
  .a2t-auth-card input[type="url"],
  .a2t-auth-card input[type="number"] {
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
  }

  .a2t-auth-mini-grid {
    grid-template-columns: 1fr !important;
  }

  .a2t-auth-links {
    display: grid !important;
    gap: 8px;
    text-align: center;
  }

  .a2t-account-page,
  .a2t-account-page.narrow {
    width: calc(100% - (var(--a2t-mobile-gutter) * 2)) !important;
    padding: 28px 0 62px !important;
  }

  .a2t-account-hero {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
  }

  .a2t-account-person {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .a2t-account-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
  }

  .a2t-account-avatar span {
    font-size: 25px !important;
  }

  .a2t-account-hero h1 {
    font-size: clamp(32px, 10vw, 46px) !important;
    line-height: 1 !important;
    letter-spacing: -.055em !important;
  }

  .a2t-account-hero p,
  .a2t-account-card p {
    font-size: 14.5px !important;
    line-height: 1.58 !important;
  }

  .a2t-account-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 9px !important;
    width: 100%;
  }

  .a2t-account-actions .a2t-btn,
  .a2t-account-actions .a2t-btn-dark,
  .a2t-account-actions button {
    width: 100%;
    justify-content: center;
  }

  .a2t-account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .a2t-account-stats article {
    min-height: 92px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .a2t-account-stats span {
    font-size: 11.5px !important;
  }

  .a2t-account-stats strong {
    font-size: clamp(20px, 7vw, 28px) !important;
  }

  .a2t-account-stats .a2t-email-stat,
  .a2t-account-stats article:has(.a2t-compact-stat) {
    grid-column: span 2;
  }

  .a2t-account-grid,
  .a2t-settings-grid,
  .a2t-support-grid,
  .a2t-email-flow {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .a2t-account-card,
  .a2t-account-form,
  .a2t-email-step-card {
    border-radius: 18px !important;
    padding: 18px !important;
  }

  .a2t-account-card h2,
  .a2t-email-step-card h2 {
    font-size: 21px !important;
  }

  .a2t-account-card > i,
  .a2t-email-note i,
  .a2t-locked-panel i {
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
  }

  .a2t-account-list {
    gap: 8px !important;
  }

  .a2t-account-list div {
    padding: 11px 12px !important;
    border-radius: 12px !important;
  }

  .a2t-form-field textarea {
    min-height: 150px !important;
  }

  .a2t-email-step-card {
    min-height: auto !important;
    gap: 14px !important;
  }

  .a2t-email-step-number {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
  }

  .a2t-current-code-form {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .a2t-current-code-form > div {
    grid-template-columns: 1fr !important;
  }

  .a2t-email-note {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .a2t-support-contact {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
}

/* ------------------------------
   Very small devices
   ------------------------------ */
@media (max-width: 380px) {
  :root {
    --a2t-mobile-gutter: 10px;
  }

  .slideshow-section,
  .blog-container,
  .a2t-blog-search-page,
  .a2t-blog-categories-page,
  .search-container {
    width: calc(100% - 20px) !important;
  }

  #myBtnContainer .search-wrapper {
    flex-basis: 252px;
    min-width: 252px;
  }

  .blog-container .blog-post h2 {
    font-size: 19px !important;
  }

  .a2t-reader-tools .a2t-share-grid {
    grid-template-columns: repeat(4, minmax(36px, 1fr));
  }

  .a2t-reader-tools .a2t-share-grid button,
  .a2t-reader-tools .a2t-share-grid a {
    min-height: 38px !important;
  }

  .a2t-auth-brand-panel,
  .a2t-auth-card,
  .a2t-account-card,
  .a2t-account-form,
  .a2t-email-step-card,
  .a2t-comments-pro {
    padding: 15px !important;
  }

  .a2t-auth-brand-social {
    padding: 13px !important;
  }

  .a2t-account-person {
    grid-template-columns: 1fr !important;
  }

  .a2t-account-stats {
    grid-template-columns: 1fr !important;
  }

  .a2t-account-stats .a2t-email-stat,
  .a2t-account-stats article:has(.a2t-compact-stat) {
    grid-column: auto;
  }
}

/* ------------------------------
   Dark-mode parity
   ------------------------------ */
html[data-theme="dark"] .blog-container .blog-post,
html[data-theme="dark"] #myBtnContainer,
html[data-theme="dark"] .a2t-blog-search-card,
html[data-theme="dark"] .a2t-blog-category-card,
html[data-theme="dark"] .search-section,
html[data-theme="dark"] .a2t-auth-card,
html[data-theme="dark"] .a2t-account-card,
html[data-theme="dark"] .a2t-account-form,
html[data-theme="dark"] .a2t-email-step-card,
html[data-theme="dark"] .a2t-comments-pro {
  background: var(--a2t-surface, #111827) !important;
  border-color: var(--a2t-line, rgba(255,255,255,.10)) !important;
}

html[data-theme="dark"] #myBtnContainer .search-bar,
html[data-theme="dark"] #myBtnContainer .btn,
html[data-theme="dark"] .blog-container .blog-post .read-more,
html[data-theme="dark"] .blog-container .pagination a,
html[data-theme="dark"] .search-list li,
html[data-theme="dark"] .a2t-blog-category-card li,
html[data-theme="dark"] .a2t-reader-tools .a2t-toc-list a,
html[data-theme="dark"] .a2t-comments-pro .reply-btn,
html[data-theme="dark"] .a2t-comments-pro .reaction-btn,
html[data-theme="dark"] #comments-section .reply-btn,
html[data-theme="dark"] #comments-section .reaction-btn,
html[data-theme="dark"] .a2t-account-list div,
html[data-theme="dark"] .a2t-support-faq details,
html[data-theme="dark"] .a2t-locked-panel {
  background: var(--a2t-soft, #0b1220) !important;
  border-color: var(--a2t-line, rgba(255,255,255,.10)) !important;
}

html[data-theme="dark"] .blog-container .blog-post h2 a,
html[data-theme="dark"] .blog-cta h3,
html[data-theme="dark"] .a2t-blog-search-hero h1,
html[data-theme="dark"] .a2t-blog-categories-hero h1,
html[data-theme="dark"] .a2t-blog-search-card a,
html[data-theme="dark"] .a2t-blog-category-card strong,
html[data-theme="dark"] .search-container h1,
html[data-theme="dark"] .search-section h2,
html[data-theme="dark"] .a2t-comments-pro .comment-body,
html[data-theme="dark"] #comments-section .comment-body,
html[data-theme="dark"] .a2t-auth-card label,
html[data-theme="dark"] .a2t-account-card h2,
html[data-theme="dark"] .a2t-email-step-card h2,
html[data-theme="dark"] .a2t-form-field label,
html[data-theme="dark"] .a2t-current-code-form label,
html[data-theme="dark"] .a2t-email-address {
  color: var(--a2t-text, #f8fafc) !important;
}

html[data-theme="dark"] .blog-container .blog-post p,
html[data-theme="dark"] .blog-container .blog-post .post-meta,
html[data-theme="dark"] .blog-cta p,
html[data-theme="dark"] .a2t-blog-search-hero p,
html[data-theme="dark"] .a2t-blog-categories-hero p,
html[data-theme="dark"] .a2t-blog-search-card p,
html[data-theme="dark"] .search-list .meta,
html[data-theme="dark"] .search-section .empty,
html[data-theme="dark"] .a2t-comments-pro .comment-header,
html[data-theme="dark"] #comments-section .comment-header,
html[data-theme="dark"] .a2t-auth-subtitle,
html[data-theme="dark"] .a2t-auth-card .helptext,
html[data-theme="dark"] .a2t-account-hero p,
html[data-theme="dark"] .a2t-account-card p,
html[data-theme="dark"] .a2t-account-list span,
html[data-theme="dark"] .a2t-current-code-form span {
  color: var(--a2t-muted, #94a3b8) !important;
}

html[data-theme="dark"] .a2t-auth-card input[type="email"],
html[data-theme="dark"] .a2t-auth-card input[type="text"],
html[data-theme="dark"] .a2t-auth-card input[type="password"],
html[data-theme="dark"] .a2t-auth-card input[type="url"],
html[data-theme="dark"] .a2t-auth-card input[type="number"],
html[data-theme="dark"] .a2t-account-page input,
html[data-theme="dark"] .a2t-account-page textarea,
html[data-theme="dark"] .a2t-comments-pro textarea,
html[data-theme="dark"] #comments-section textarea {
  background: #0b1220 !important;
  border-color: rgba(255, 255, 255, .12) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .a2t-table-scroll {
  background: var(--a2t-surface, #111827) !important;
  border-color: var(--a2t-line, rgba(255,255,255,.10)) !important;
}

html[data-theme="dark"] .a2t-auth-brand-panel {
  border-color: rgba(255, 255, 255, .12) !important;
}
