/* ==========================================================================
   Amped Electrical | blog.css
   Blog listing (/blog) and single posts (/blog/{slug}).
   Loaded after style.css on the blog views only, uses the same --ae- tokens.
   ========================================================================== */

/* ---------- Shared bits ---------- */
.ae-avatar-1 {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ae-navy);
    color: var(--ae-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.ae-avatar-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ae-avatar-1--sm {
    width: 30px;
    height: 30px;
    font-size: 11px;
}
.ae-avatar-1--lg {
    width: 72px;
    height: 72px;
    font-size: 22px;
}

/* ==========================================================================
   LISTING
   ========================================================================== */
.ae-blog-1 {
    background: var(--ae-white);
}
.ae-blog-1--more {
    background: var(--ae-soft-2);
}
.ae-blog-1__head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 80px 0 32px;
}
.ae-blog-1__head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ae-line);
}
.ae-blog-1__heading {
    font-size: clamp(24px, 2vw, 30px);
    letter-spacing: -0.01em;
}
.ae-blog-1__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.ae-blog-1__all {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

/* ---------- Card ---------- */
.ae-bcard-1 {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-lg);
    background: var(--ae-white);
    overflow: hidden;
    box-shadow: var(--ae-shadow-sm);
    transition:
        transform 0.35s var(--ae-ease),
        box-shadow 0.35s var(--ae-ease),
        border-color 0.35s var(--ae-ease);
}
.ae-bcard-1:hover {
    transform: translateY(-4px);
    box-shadow: var(--ae-shadow);
    border-color: #d1d5db;
}
.ae-bcard-1__media {
    position: relative;
    aspect-ratio: 1200 / 630;
    background: var(--ae-navy);
    overflow: hidden;
}
.ae-bcard-1__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ae-ease);
}
.ae-bcard-1:hover .ae-bcard-1__media > img {
    transform: scale(1.05);
}
.ae-bcard-1__ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 10v8M10 14h8' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--ae-navy) 0%, var(--ae-navy-2) 100%);
}
.ae-bcard-1__ph img {
    width: 64px;
    height: 64px;
    padding: 12px;
    border-radius: var(--ae-r);
    background: var(--ae-white);
}
.ae-bcard-1__read {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--ae-white);
    font-size: 13px;
    font-weight: 500;
}
.ae-bcard-1__read svg {
    width: 14px;
    height: 14px;
}
.ae-bcard-1__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 22px;
}
.ae-bcard-1__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ae-muted);
}
.ae-bcard-1__title {
    margin-top: 12px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.ae-bcard-1__title a {
    transition: color 0.2s;
}
/* The whole card is the link */
.ae-bcard-1__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ae-bcard-1:hover .ae-bcard-1__title a {
    color: var(--ae-navy-2);
}
.ae-bcard-1__text {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ae-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.ae-bcard-1__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}
.ae-bcard-1__body > .ae-bcard-1__text + .ae-bcard-1__foot {
    margin-top: auto;
}
.ae-bcard-1__body .ae-bcard-1__text {
    margin-bottom: 20px;
}
.ae-bcard-1__foot {
    border-top: 1px solid var(--ae-line);
}
.ae-bcard-1__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ae-ink);
}
.ae-bcard-1__author strong {
    display: block;
    font-weight: 600;
}
.ae-bcard-1__author small {
    display: block;
    font-size: 13px;
    color: var(--ae-muted);
}
.ae-bcard-1__go {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ae-line);
    color: var(--ae-ink);
    transition:
        background-color 0.25s,
        border-color 0.25s,
        color 0.25s,
        transform 0.3s var(--ae-ease);
}
.ae-bcard-1__go svg {
    width: 16px;
    height: 16px;
}
.ae-bcard-1:hover .ae-bcard-1__go {
    background: var(--ae-navy);
    border-color: var(--ae-navy);
    color: var(--ae-white);
    transform: translateX(2px);
}

/* ---------- Featured (newest post, page one) ---------- */
.ae-bfeat-1 {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-lg);
    overflow: hidden;
    background: var(--ae-white);
    box-shadow: var(--ae-shadow);
    transition:
        box-shadow 0.35s var(--ae-ease),
        transform 0.35s var(--ae-ease);
}
.ae-bfeat-1:hover {
    box-shadow: var(--ae-shadow-lg);
    transform: translateY(-3px);
}
.ae-bfeat-1__media {
    position: relative;
    min-height: 420px;
    background: var(--ae-navy);
    overflow: hidden;
}
.ae-bfeat-1__media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ae-ease);
}
.ae-bfeat-1:hover .ae-bfeat-1__media > img {
    transform: scale(1.04);
}
.ae-bfeat-1__media .ae-bcard-1__ph img {
    width: 88px;
    height: 88px;
}
.ae-bfeat-1__flag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--ae-white);
    color: var(--ae-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.ae-bfeat-1__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 52px 48px;
}
.ae-bfeat-1__title {
    margin-top: 16px;
    font-size: clamp(28px, 2.4vw, 38px);
    letter-spacing: -0.015em;
    line-height: 1.15;
}
.ae-bfeat-1__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ae-bfeat-1__text {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ae-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.ae-bfeat-1__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--ae-line);
}
.ae-bfeat-1__btn {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
}

/* ---------- Pagination ---------- */
.ae-pager-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 64px;
}
.ae-pager-1__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--ae-ink);
    transition:
        background-color 0.25s,
        border-color 0.25s,
        color 0.25s;
}
.ae-pager-1__btn svg {
    width: 16px;
    height: 16px;
}
.ae-pager-1__btn:hover {
    background: var(--ae-navy);
    border-color: var(--ae-navy);
    color: var(--ae-white);
}
.ae-pager-1__btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.ae-pager-1__nums {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ae-pager-1__nums a,
.ae-pager-1__nums span {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 6px;
    border-radius: var(--ae-r-sm);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ae-ink);
    transition: background-color 0.2s;
}
.ae-pager-1__nums a:hover {
    background: var(--ae-soft);
}
.ae-pager-1__nums .is-current {
    background: var(--ae-navy);
    color: var(--ae-white);
}

/* ---------- Empty state ---------- */
.ae-blog-1__empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 40px;
    border: 1px dashed #d1d5db;
    border-radius: var(--ae-r-lg);
    background: var(--ae-soft-2);
    text-align: center;
}
.ae-blog-1__empty-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ae-navy);
    color: var(--ae-white);
}
.ae-blog-1__empty-icon svg {
    width: 26px;
    height: 26px;
}
.ae-blog-1__empty h2 {
    margin-top: 22px;
    font-size: clamp(26px, 2.4vw, 32px);
}
.ae-blog-1__empty p {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ae-text);
}
.ae-blog-1__empty-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.ae-post-1__preview {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 120;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 99px;
    background: #b45309;
    color: var(--ae-white);
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--ae-shadow-lg);
}
.ae-post-1__preview svg {
    width: 18px;
    height: 18px;
    flex: none;
}
.ae-post-1__preview a {
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    white-space: nowrap;
}

/* Hero */
.ae-post-1__hero {
    padding-bottom: 80px;
}
.ae-post-1__title {
    max-width: 980px;
    font-size: clamp(34px, 3.6vw, 54px);
}
.ae-post-1__title--long {
    font-size: clamp(30px, 3vw, 44px);
}
.ae-post-1__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
}
.ae-post-1__meta li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.ae-post-1__meta li > svg {
    width: 18px;
    height: 18px;
    opacity: 0.75;
}
.ae-post-1__meta strong {
    color: var(--ae-white);
    font-weight: 600;
}
.ae-post-1__by .ae-avatar-1 {
    background: var(--ae-white);
    color: var(--ae-navy);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Layout */
.ae-post-1 {
    padding: 80px 0 110px;
}
.ae-post-1__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 80px;
    align-items: start;
}
.ae-post-1__main {
    max-width: 800px;
    min-width: 0;
}

.ae-post-1__lede {
    padding-bottom: 32px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--ae-line);
    font-size: clamp(20px, 1.6vw, 23px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--ae-ink);
}
.ae-post-1__cover {
    margin: 0 0 44px;
    border-radius: var(--ae-r-lg);
    overflow: hidden;
    background: var(--ae-soft);
    box-shadow: var(--ae-shadow);
}
.ae-post-1__cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

/* ==========================================================================
   ARTICLE BODY
   One fixed style for every post. The server strips all pasted fonts,
   colours, sizes and classes, so only these rules decide how a post looks.
   ========================================================================== */
.ae-prose-1 {
    font-size: 18px;
    line-height: 1.8;
    color: var(--ae-text);
    overflow-wrap: break-word;
}
.ae-prose-1 > * {
    margin: 0;
}
.ae-prose-1 > * + * {
    margin-top: 1.25em;
}
.ae-prose-1 > :first-child {
    margin-top: 0;
}
.ae-prose-1 p,
.ae-prose-1 li,
.ae-prose-1 blockquote,
.ae-prose-1 figcaption,
.ae-prose-1 td,
.ae-prose-1 th {
    text-wrap: pretty;
}

/* Headings */
.ae-prose-1 h2,
.ae-prose-1 h3,
.ae-prose-1 h4 {
    color: var(--ae-ink);
    font-weight: 700;
    text-wrap: balance;
    scroll-margin-top: calc(var(--ae-hdr-h-sm) + 28px);
}
.ae-prose-1 h2 {
    position: relative;
    font-size: clamp(26px, 2.2vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    padding-top: 0.2em;
}
.ae-prose-1 > * + h2 {
    margin-top: 2.1em;
}
.ae-prose-1 h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 3px;
    background: var(--ae-navy);
}
.ae-prose-1 h3 {
    font-size: clamp(21px, 1.6vw, 24px);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.ae-prose-1 > * + h3 {
    margin-top: 1.8em;
}
.ae-prose-1 h4 {
    font-size: 18px;
    line-height: 1.4;
}
.ae-prose-1 > * + h4 {
    margin-top: 1.6em;
}
.ae-prose-1 h2 + *,
.ae-prose-1 h3 + *,
.ae-prose-1 h4 + * {
    margin-top: 0.6em;
}

/* Inline */
.ae-prose-1 strong {
    font-weight: 600;
    color: var(--ae-ink);
}
.ae-prose-1 em {
    font-style: italic;
}
.ae-prose-1 a {
    color: var(--ae-navy);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(15, 23, 42, 0.35);
    transition: text-decoration-color 0.2s;
}
.ae-prose-1 a:hover {
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}
.ae-prose-1 sup,
.ae-prose-1 sub {
    font-size: 0.7em;
    line-height: 0;
}
.ae-prose-1 code {
    padding: 0.15em 0.4em;
    border-radius: 4px;
    background: var(--ae-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    color: var(--ae-ink);
}
.ae-prose-1 pre {
    padding: 20px 22px;
    border-radius: var(--ae-r);
    background: var(--ae-navy);
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Lists (style.css removes list styles globally, so markers are drawn here) */
.ae-prose-1 ul,
.ae-prose-1 ol {
    display: grid;
    gap: 0.55em;
    padding: 0;
    list-style: none;
}
.ae-prose-1 li {
    position: relative;
    padding-left: 34px;
}
.ae-prose-1 ul > li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.68em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--ae-navy);
    transform: rotate(45deg);
}
.ae-prose-1 ol {
    counter-reset: ae-prose-ol;
}
.ae-prose-1 ol > li {
    counter-increment: ae-prose-ol;
}
.ae-prose-1 ol > li::before {
    content: counter(ae-prose-ol);
    position: absolute;
    left: 0;
    top: 0.2em;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ae-navy);
    color: var(--ae-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ae-prose-1 li > ul,
.ae-prose-1 li > ol {
    margin-top: 0.55em;
}
.ae-prose-1 li > ul > li::before {
    background: transparent;
    border: 1.5px solid var(--ae-navy);
}
.ae-prose-1 li > ol > li::before {
    background: var(--ae-soft);
    color: var(--ae-ink);
}

/* Quote */
.ae-prose-1 blockquote {
    position: relative;
    margin-left: 0;
    margin-right: 0;
    padding: 26px 30px 26px 34px;
    border-left: 4px solid var(--ae-navy);
    border-radius: 0 var(--ae-r) var(--ae-r) 0;
    background: var(--ae-soft-2);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ae-ink);
}
.ae-prose-1 blockquote > * + * {
    margin-top: 0.8em;
}

/* Media */
.ae-prose-1 img {
    width: 100%;
    height: auto;
    border-radius: var(--ae-r-lg);
    background: var(--ae-soft);
}
.ae-prose-1 p > img + img {
    margin-top: 16px;
}
.ae-prose-1 figure {
    margin-left: 0;
    margin-right: 0;
}
.ae-prose-1 figcaption {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ae-muted);
    text-align: center;
}
.ae-prose-1 > p:has(> img:only-child),
.ae-prose-1 > figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

/* Divider */
.ae-prose-1 hr {
    height: 1px;
    border: 0;
    background: var(--ae-line);
}
.ae-prose-1 > hr {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
}

/* Tables: the cleaner wraps each one in .ae-prose-1__table so wide tables scroll sideways on phones */
.ae-prose-1__table {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r);
    -webkit-overflow-scrolling: touch;
}
.ae-prose-1 table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.55;
}
.ae-prose-1 th,
.ae-prose-1 td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--ae-line);
    text-align: left;
    vertical-align: top;
}
.ae-prose-1 th {
    background: var(--ae-navy);
    color: var(--ae-white);
    font-weight: 600;
    white-space: nowrap;
}
.ae-prose-1 tbody tr:nth-child(even) td {
    background: var(--ae-soft-2);
}
.ae-prose-1 tbody tr:last-child td {
    border-bottom: 0;
}

/* ---------- In-article call to action ([cta] in the post body) ---------- */
.ae-prose-1 > .ae-icta-1 {
    margin-top: 2.2em;
    margin-bottom: 2.2em;
}
.ae-icta-1 {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 30px 32px;
    border-radius: 18px;
    background: linear-gradient(120deg, var(--ae-navy) 0%, var(--ae-navy-2) 100%);
    color: var(--ae-white);
    box-shadow: var(--ae-shadow-lg);
    overflow: hidden;
}
.ae-icta-1::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 10v8M10 14h8' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.ae-icta-1::after {
    content: "";
    position: absolute;
    right: -90px;
    top: 50%;
    z-index: -1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0) 70%);
    transform: translateY(-50%);
}
.ae-icta-1__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ae-icta-1__icon svg {
    width: 24px;
    height: 24px;
}
.ae-prose-1 .ae-icta-1__title {
    margin: 0;
    color: var(--ae-white);
    font-size: clamp(20px, 1.6vw, 23px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}
.ae-prose-1 .ae-icta-1__text {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    text-wrap: pretty;
}
.ae-prose-1 .ae-icta-1__btn {
    min-height: 54px;
    padding: 0 26px;
    color: var(--ae-navy);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.ae-prose-1 .ae-icta-1__btn:hover {
    color: var(--ae-navy);
    text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}
.ae-icta-1__btn svg {
    transition: transform 0.25s var(--ae-ease);
}
.ae-icta-1__btn:hover svg {
    transform: translateX(3px);
}

/* ---------- FAQ inside the article ---------- */
.ae-post-1__faq {
    margin-top: 64px;
    padding-top: 56px;
    border-top: 1px solid var(--ae-line);
}
.ae-post-1__faq-title {
    margin-bottom: 26px;
    font-size: clamp(26px, 2.2vw, 32px);
    letter-spacing: -0.015em;
}

/* ---------- Share ---------- */
.ae-post-1__share {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding: 22px 0;
    border-top: 1px solid var(--ae-line);
    border-bottom: 1px solid var(--ae-line);
}
.ae-post-1__share-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ae-muted);
}
.ae-post-1__share-btns {
    display: flex;
    gap: 10px;
}
.ae-post-1__share-btns a,
.ae-post-1__share-btns button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--ae-line);
    color: var(--ae-ink);
    transition:
        background-color 0.25s,
        border-color 0.25s,
        color 0.25s,
        transform 0.25s var(--ae-ease);
}
.ae-post-1__share-btns svg {
    width: 18px;
    height: 18px;
}
.ae-post-1__share-btns a:hover,
.ae-post-1__share-btns button:hover {
    background: var(--ae-navy);
    border-color: var(--ae-navy);
    color: var(--ae-white);
    transform: translateY(-2px);
}
.ae-post-1__copied {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    padding: 6px 12px;
    border-radius: var(--ae-r-sm);
    background: var(--ae-navy);
    color: var(--ae-white);
    font-size: 13px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition:
        opacity 0.25s,
        transform 0.25s var(--ae-ease);
}
.ae-post-1__copied.is-shown {
    opacity: 1;
    transform: none;
}

/* ---------- Author box ---------- */
.ae-post-1__author {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 40px;
    padding: 30px;
    border-radius: var(--ae-r-lg);
    background: var(--ae-soft-2);
    border: 1px solid var(--ae-line);
}
.ae-post-1__author-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ae-muted);
}
.ae-post-1__author-name {
    margin-top: 6px;
    font-size: 21px;
    font-weight: 700;
    color: var(--ae-ink);
}
.ae-post-1__author-role {
    margin-top: 2px;
    font-size: 15px;
    color: var(--ae-muted);
}
.ae-post-1__author-bio {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ae-text);
}

/* ---------- Sidebar ---------- */
.ae-post-1__side {
    position: sticky;
    top: calc(var(--ae-hdr-h-sm) + 28px);
    display: grid;
    gap: 16px;
}
.ae-post-1__toc {
    padding: 26px 18px 18px;
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-lg);
    background: var(--ae-soft-2);
}
.ae-post-1__toc-label {
    display: block;
    padding: 0 10px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ae-muted);
}
.ae-post-1__toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ae-post-1__toc a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--ae-r-sm);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ae-text);
    transition:
        background-color 0.2s,
        color 0.2s;
}
.ae-post-1__toc a:hover {
    background: var(--ae-white);
    color: var(--ae-ink);
}
.ae-post-1__toc a.is-active {
    background: var(--ae-navy);
    color: var(--ae-white);
}
.ae-post-1__toc-num {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    opacity: 0.55;
}

.ae-post-1__help {
    position: relative;
    isolation: isolate;
    padding: 30px 26px 26px;
    border-radius: var(--ae-r-lg);
    background: var(--ae-navy);
    color: var(--ae-white);
    overflow: hidden;
}
.ae-post-1__help::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 10v8M10 14h8' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.ae-post-1__help-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.ae-post-1__help-icon svg {
    width: 22px;
    height: 22px;
}
.ae-post-1__help h3 {
    margin-top: 18px;
    color: var(--ae-white);
    font-size: 22px;
}
.ae-post-1__help p {
    margin: 10px 0 22px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
}
.ae-post-1__help .ae-btn {
    min-height: 50px;
    font-size: 16px;
}
.ae-post-1__help .ae-btn + .ae-btn {
    margin-top: 10px;
}

.ae-post-1__back {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-lg);
    font-size: 15px;
    font-weight: 600;
    color: var(--ae-ink);
    transition:
        border-color 0.25s,
        box-shadow 0.25s;
}
.ae-post-1__back svg {
    width: 18px;
    height: 18px;
    color: var(--ae-muted);
    transition: transform 0.25s var(--ae-ease);
}
.ae-post-1__back:hover {
    border-color: #d1d5db;
    box-shadow: var(--ae-shadow-sm);
}
.ae-post-1__back:hover svg {
    transform: translateX(-3px);
    color: var(--ae-ink);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1360px) {
    .ae-post-1__grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 56px;
    }
    .ae-bfeat-1__body {
        padding: 40px;
    }
}

@media (max-width: 1100px) {
    .ae-blog-1__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    .ae-bfeat-1 {
        grid-template-columns: 1fr;
    }
    .ae-bfeat-1__media {
        min-height: 0;
        aspect-ratio: 1200 / 630;
    }
    .ae-bfeat-1__body {
        padding: 36px 34px 34px;
    }

    .ae-post-1 {
        padding: 64px 0 90px;
    }
    .ae-post-1__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .ae-post-1__main {
        max-width: none;
    }
    .ae-post-1__side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .ae-post-1__toc {
        grid-column: 1 / -1;
    }
    .ae-post-1__back {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .ae-blog-1__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .ae-blog-1__head {
        margin: 56px 0 24px;
    }
    .ae-bcard-1__body {
        padding: 22px 20px 18px;
    }
    .ae-bcard-1__title {
        font-size: 20px;
    }
    .ae-bfeat-1__body {
        padding: 26px 22px 24px;
    }
    .ae-bfeat-1__title {
        font-size: 26px;
    }
    .ae-bfeat-1__text {
        font-size: 17px;
    }
    .ae-bfeat-1__foot {
        margin-top: 24px;
        padding-top: 20px;
    }
    .ae-bfeat-1__btn {
        width: 100%;
    }
    .ae-pager-1 {
        gap: 8px;
        margin-top: 44px;
    }
    .ae-pager-1__btn {
        padding: 0 14px;
        font-size: 0;
        gap: 0;
    }
    .ae-pager-1__btn svg {
        width: 18px;
        height: 18px;
    }
    .ae-pager-1__nums a,
    .ae-pager-1__nums span {
        min-width: 40px;
        height: 46px;
    }
    .ae-blog-1__empty {
        padding: 40px 22px;
    }

    .ae-post-1__hero {
        padding-bottom: 52px;
    }
    .ae-post-1__title,
    .ae-post-1__title--long {
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.12;
    }
    .ae-post-1__meta {
        gap: 12px 20px;
        margin-top: 22px;
        font-size: 15px;
    }
    .ae-post-1 {
        padding: 44px 0 72px;
    }
    .ae-post-1__lede {
        padding-bottom: 24px;
        margin-bottom: 28px;
    }
    .ae-post-1__cover {
        margin-bottom: 32px;
    }
    .ae-prose-1 {
        font-size: 17px;
        line-height: 1.75;
    }
    .ae-prose-1 blockquote {
        padding: 20px 20px 20px 22px;
        font-size: 18px;
    }
    .ae-prose-1 li {
        padding-left: 30px;
    }
    .ae-prose-1 th,
    .ae-prose-1 td {
        padding: 11px 12px;
        font-size: 15px;
    }
    .ae-icta-1 {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        padding: 28px 22px 24px;
        text-align: center;
    }
    .ae-icta-1::after {
        right: 50%;
        top: -150px;
        transform: translateX(50%);
    }
    .ae-icta-1__icon {
        width: 52px;
        height: 52px;
    }
    .ae-prose-1 .ae-icta-1__btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
    .ae-post-1__faq {
        margin-top: 48px;
        padding-top: 40px;
    }
    .ae-post-1__share {
        flex-direction: column;
        align-items: flex-start;
    }
    .ae-post-1__author {
        flex-direction: column;
        gap: 16px;
        padding: 24px 22px;
    }
    .ae-post-1__side {
        grid-template-columns: 1fr;
    }
    .ae-post-1__help {
        display: none;
    }
    .ae-post-1__preview {
        bottom: 12px;
        border-radius: var(--ae-r);
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}