/*
Theme Name: SNT
Theme URI: https://srinarayantrading.com/blog/
Author: Sri Narayan Trading Co.
Description: The Sri Narayan Trading Co. blog, styled like the main website. Header, footer, colours and buttons are loaded from the main site's css/style.css; this file only adds the blog layouts.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: snt
*/

/* Tokens (--navy-*, --blue, --accent, --wa, --red …) come from the main site's style.css, loaded first. */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Blog list header ---------- */
.blog-hero .page-hero__title {
    max-width: 18ch;
}

.blog-hero__aside {
    display: grid;
    gap: 18px;
    align-self: end;
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.blog-search>.icon {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--ink);
    outline: none;
}

.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-cats .chip.is-active {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
}

/* ---------- Post cards ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.post-card:hover .post-card__media img {
    transform: scale(1.04);
}

.post-card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    background: linear-gradient(160deg, var(--tint-50), var(--tint));
}

.post-card__placeholder img {
    width: 96px;
    height: auto;
    opacity: .9;
    transform: none !important;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 22px;
}

.post-card__cat {
    margin: 0 0 8px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-card__title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.post-card__title a {
    color: var(--ink);
}

.post-card__title a:hover {
    color: var(--blue);
}

.post-card__excerpt {
    margin: 0 0 18px;
    font-size: .94rem;
    color: var(--muted);
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
}

.post-card__meta .icon {
    color: var(--accent);
}

/* First article on the blog home: wide, photo beside the text */
.post-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.post-card--featured .post-card__media {
    aspect-ratio: auto;
    min-height: 340px;
}

.post-card--featured .post-card__body {
    justify-content: center;
    padding: clamp(26px, 3.6vw, 48px);
}

.post-card--featured .post-card__title {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.post-card--featured .post-card__excerpt {
    font-size: 1.02rem;
}

/* Pagination */
.pagination {
    margin-top: 44px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--ink);
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.blog-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}

/* ---------- Single article ---------- */
.post-hero {
    padding: calc(var(--hdr) + clamp(30px, 4.4vw, 56px)) 0 clamp(26px, 3vw, 40px);
}

.post-hero__title {
    max-width: 26ch;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
}

.post-hero__meta>span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-hero__meta .icon {
    color: var(--accent);
}

.post-hero__by {
    color: var(--ink);
}

.post-hero__by img {
    width: 38px;
    height: 38px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    object-fit: contain;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    padding-bottom: clamp(40px, 6vw, 72px);
}

.post-layout--single {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.post-cover {
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.post-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-main {
    min-width: 0;
}

/* Article text */
.entry {
    padding: clamp(24px, 3.6vw, 44px);
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text);
}

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

.entry> :last-child {
    margin-bottom: 0;
}

.entry p,
.entry ul,
.entry ol {
    margin: 0 0 1.2em;
}

.entry h2,
.entry h3,
.entry h4 {
    margin: 1.8em 0 .6em;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--ink);
}

.entry h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.entry h3 {
    font-size: clamp(1.2rem, 1.9vw, 1.4rem);
}

.entry a {
    font-weight: 600;
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry ul,
.entry ol {
    padding-left: 1.3em;
}

.entry ul {
    list-style: disc;
}

.entry ol {
    list-style: decimal;
}

.entry li {
    margin-bottom: .45em;
}

.entry li::marker {
    color: var(--accent);
}

.entry strong {
    color: var(--ink);
}

.entry blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: var(--tint-50);
    font-size: 1.08rem;
    color: var(--ink);
}

.entry blockquote p:last-child {
    margin-bottom: 0;
}

.entry img {
    height: auto;
    border-radius: 16px;
}

.entry figure {
    margin: 1.6em 0;
}

.entry figcaption {
    margin-top: 8px;
    font-size: .86rem;
    text-align: center;
    color: var(--muted);
}

.entry table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    font-size: .95rem;
}

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

.entry th {
    background: var(--tint-50);
    color: var(--ink);
}

.entry hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.post-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
}

.post-share {
    margin-left: auto;
}

/* Sticky side card */
.post-aside {
    position: sticky;
    top: calc(var(--hdr) + 22px);
    display: grid;
    gap: 16px;
}

.post-aside__card {
    padding: 26px 24px;
    border-radius: var(--r);
    background: var(--grad-navy);
    color: var(--on-red-muted);
    box-shadow: var(--shadow-md);
}

.post-aside__card h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #fff;
}

.post-aside__card p:not(.eyebrow) {
    margin: 0 0 20px;
    font-size: .94rem;
}

.post-aside__card .btn+.btn {
    margin-top: 10px;
}

.post-aside__card .btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    box-shadow: none;
}

.post-aside__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform .3s var(--ease);
}

.post-aside__brand:hover {
    transform: translateY(-3px);
}

.post-aside__brand small {
    display: block;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
}

.post-aside__brand strong {
    display: block;
    font-size: .95rem;
    line-height: 1.25;
}

.post-aside__brand>.icon {
    margin-left: auto;
    color: var(--accent);
}

.related-posts {
    padding-top: 0;
}

/* WordPress block alignment and captions */
.alignwide {
    margin-inline: calc(clamp(24px, 3.6vw, 44px) * -1);
}

.alignleft {
    float: left;
    margin: .4em 1.4em 1em 0;
}

.alignright {
    float: right;
    margin: .4em 0 1em 1.4em;
}

.aligncenter {
    margin-inline: auto;
}

.wp-block-button__link {
    border-radius: 999px;
    background: var(--blue);
    color: #fff !important;
    text-decoration: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 991px) {
    .post-card--featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-card--featured .post-card__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-aside {
        position: static;
    }
}

@media (max-width: 767px) {
    .post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .entry {
        padding: 22px 18px;
        font-size: 1rem;
    }

    .alignwide {
        margin-inline: 0;
    }

    .post-share {
        margin-left: 0;
    }
}

/* ==========================================================================
   Article layout (client's reference, Oct 18 2026): photo header with a card on it,
   "In this article" list on the left, quick-answer box, related / popular / share on the right.
   ========================================================================== */
.article-hero {
    padding: calc(var(--hdr) + clamp(26px, 3.6vw, 48px)) 0 clamp(30px, 3.6vw, 48px);
}

.article-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(32px, 4.4vw, 64px);
    align-items: center;
}

.article-badge {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--tint-100);
    border: 1px solid var(--tint);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    transition: background .2s, color .2s;
}

.article-badge:hover {
    background: var(--accent);
    color: #fff;
}

.article-hero__title {
    max-width: 22ch;
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.7vw, 3.05rem);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.article-hero__lead {
    max-width: 56ch;
    margin: 0 0 22px;
    font-size: clamp(1.02rem, 1.3vw, 1.14rem);
    line-height: 1.7;
    color: var(--text);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
}

.article-meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta .icon {
    color: var(--accent);
}

.article-people {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-person {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 7px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.article-person img,
.article-person__tick {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.article-person img {
    padding: 5px;
    background: #fff;
    border: 1px solid var(--line);
    object-fit: contain;
}

.article-person__tick {
    display: grid;
    place-items: center;
    background: var(--tint-100);
    color: var(--accent);
    font-size: 1.2rem;
}

.article-person small {
    display: block;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-person strong {
    display: block;
    font-size: .92rem;
    line-height: 1.25;
    color: var(--ink);
}

.article-person em {
    display: block;
    font-size: .78rem;
    font-style: normal;
    color: var(--muted);
}

.article-hero__media {
    position: relative;
    margin: 0;
}

.article-hero__media>img,
.article-hero__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.article-hero__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--tint-50), var(--tint));
}

.article-hero__placeholder img {
    width: 140px;
    height: auto;
}

.article-hero__note {
    position: absolute;
    left: -26px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(320px, calc(100% - 24px));
    padding: 12px 18px 12px 12px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

.article-hero__note img {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    padding: 6px;
    border-radius: 14px;
    background: var(--tint-50);
    object-fit: contain;
}

/* Three columns: contents · article · sidebar */
.article-layout {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr) 290px;
    grid-template-areas: "toc main side";
    gap: clamp(24px, 2.6vw, 36px);
    align-items: start;
    padding-bottom: clamp(40px, 6vw, 72px);
}

.article-layout--no-toc {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas: "main side";
}

.article-toc {
    grid-area: toc;
    position: sticky;
    top: calc(var(--hdr) + 20px);
}

.article-main {
    grid-area: main;
    min-width: 0;
}

.article-side {
    grid-area: side;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.toc {
    padding: 20px 18px 18px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.toc__title,
.side-box__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--accent);
}

.toc__list {
    max-height: calc(100vh - var(--hdr) - 220px);
    margin: 0 0 18px;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border-left: 2px solid var(--line);
}

.toc__item a {
    display: block;
    margin-left: -2px;
    padding: 7px 4px 7px 14px;
    border-left: 2px solid transparent;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.38;
    color: var(--muted);
    transition: color .2s, border-color .2s;
}

.toc__item--h3 a {
    padding-left: 26px;
    font-size: .84rem;
    font-weight: 500;
}

.toc__item a:hover {
    color: var(--ink);
}

.toc__item.is-active a {
    border-left-color: var(--blue);
    color: var(--blue);
}

/* Quick answer box at the top of the article */
.quick-answer {
    margin: 0 0 22px;
    padding: 22px 26px;
    border-radius: var(--r);
    background: linear-gradient(135deg, #fff 0%, var(--tint-50) 100%);
    border: 1px solid var(--tint);
    border-left: 5px solid var(--blue);
    box-shadow: var(--shadow-sm);
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--ink);
}

.quick-answer p {
    margin: 0;
}

.quick-answer p+p {
    margin-top: .8em;
}

.quick-answer .quick-answer__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
}

/* Quote: big quote mark; "Highlighted quote" style = navy card */
.entry .wp-block-quote,
.entry blockquote {
    position: relative;
    padding: 22px 26px 22px 64px;
    border-left: 4px solid var(--blue);
}

.entry .wp-block-quote::before,
.entry blockquote::before {
    content: "\201C";
    position: absolute;
    left: 18px;
    top: 6px;
    font-family: var(--font-num);
    font-size: 3.6rem;
    line-height: 1;
    color: var(--blue);
    opacity: .35;
}

.entry blockquote cite,
.entry .wp-block-pullquote cite {
    display: block;
    margin-top: 10px;
    font-size: .86rem;
    font-style: normal;
    font-weight: 600;
    color: var(--muted);
}

.entry .wp-block-quote.is-style-snt-callout,
.entry .wp-block-pullquote {
    margin: 1.8em 0;
    padding: 28px 30px 28px 74px;
    border: 0;
    border-radius: var(--r);
    background: var(--grad-navy);
    box-shadow: var(--shadow-md);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.55;
    color: #fff;
    text-align: left;
}

.entry .wp-block-pullquote {
    position: relative;
}

.entry .wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
}

.entry .wp-block-pullquote blockquote::before {
    content: none;
}

.entry .wp-block-quote.is-style-snt-callout::before,
.entry .wp-block-pullquote::before {
    content: "\201C";
    position: absolute;
    left: 22px;
    top: 14px;
    font-family: var(--font-num);
    font-size: 4rem;
    line-height: 1;
    color: var(--tint);
    opacity: .6;
}

.entry .is-style-snt-callout strong,
.entry .wp-block-pullquote strong {
    color: #fff;
}

.entry .is-style-snt-callout cite,
.entry .wp-block-pullquote cite {
    color: var(--on-red-muted);
}

/* "Cards (3 boxes)" style on a Columns block */
.entry .wp-block-columns.is-style-snt-cards {
    gap: 16px;
    margin: 1.6em 0;
}

.entry .is-style-snt-cards>.wp-block-column {
    padding: 20px 20px 18px;
    border-radius: 16px;
    background: var(--tint-50);
    border: 1px solid var(--line);
    font-size: .96rem;
    line-height: 1.65;
}

.entry .is-style-snt-cards>.wp-block-column> :first-child {
    margin-top: 0;
}

.entry .is-style-snt-cards>.wp-block-column> :last-child {
    margin-bottom: 0;
}

.entry .is-style-snt-cards :is(h3, h4) {
    margin: 0 0 .4em;
    font-size: 1.08rem;
}

.article-main .post-tags {
    margin-top: 22px;
}

/* "About the writer" box under the article */
.article-author {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    padding: 22px 24px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.article-author>img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    padding: 8px;
    border-radius: 50%;
    border: 1px solid var(--line);
    object-fit: contain;
}

.article-author p {
    margin: 0 0 8px;
    font-size: .94rem;
    line-height: 1.65;
    color: var(--muted);
}

.article-author .article-author__name {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
}

.article-author a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--blue);
}

/* Sidebar boxes */
.side-box {
    padding: 20px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.side-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-links li+li {
    border-top: 1px solid var(--line);
}

.side-links a {
    display: block;
    padding: 11px 0;
}

.side-links li:first-child a {
    padding-top: 0;
}

.side-links li:last-child a {
    padding-bottom: 0;
}

.side-links small {
    display: block;
    margin-bottom: 3px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.side-links span {
    display: block;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    transition: color .2s;
}

.side-links a:hover span {
    color: var(--blue);
}

.side-popular {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-popular a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-popular__img {
    flex-shrink: 0;
    width: 66px;
    height: 66px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--tint-50);
}

.side-popular__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.side-popular__img img[src$=".svg"] {
    padding: 12px;
    object-fit: contain;
}

.side-popular a:hover img {
    transform: scale(1.06);
}

.side-popular strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .9rem;
    line-height: 1.32;
    color: var(--ink);
    transition: color .2s;
}

.side-popular a:hover strong {
    color: var(--blue);
}

.side-popular small {
    display: block;
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 1.1rem;
    color: var(--ink);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-btn--linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}

.share-btn--x:hover {
    background: #111;
    border-color: #111;
}

.share-btn--facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.share-btn--whatsapp:hover {
    background: var(--wa);
    border-color: var(--wa);
}

.share-btn--copy:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.share-row__done {
    margin: 10px 0 0;
    font-size: .84rem;
    font-weight: 700;
    color: var(--wa-700);
}

@media (max-width: 1279.98px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        grid-template-areas:
            "toc side"
            "main side";
    }

    .article-toc {
        position: static;
    }

    .article-side {
        grid-row: 1 / span 2;
    }

    .toc__list {
        max-height: none;
        columns: 2;
        column-gap: 24px;
        border-left: 0;
    }

    .toc__item {
        break-inside: avoid;
    }

    .toc__item a {
        margin-left: 0;
        padding-left: 12px;
        border-left-color: var(--line);
    }

    .toc__item--h3 a {
        padding-left: 22px;
    }

    .toc .btn {
        width: auto;
    }
}

@media (max-width: 991.98px) {
    .article-hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-hero__note {
        left: 14px;
        bottom: 14px;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "toc"
            "main"
            "side";
    }

    .article-layout--no-toc {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "side";
    }

    .article-side {
        grid-row: auto;
    }
}

@media (max-width: 767.98px) {
    .toc__list {
        columns: 1;
    }

    .toc .btn {
        width: 100%;
    }

    .quick-answer {
        padding: 18px 18px 18px 20px;
        font-size: 1rem;
    }

    .article-hero__media>img,
    .article-hero__placeholder {
        aspect-ratio: 16 / 11;
        border-radius: var(--r);
    }

    .article-hero__note {
        font-size: .88rem;
    }

    .entry .wp-block-quote,
    .entry blockquote {
        padding-left: 52px;
    }

    .entry .wp-block-quote.is-style-snt-callout,
    .entry .wp-block-pullquote {
        padding: 24px 20px 22px 58px;
        font-size: 1.06rem;
    }

    .article-author {
        flex-direction: column;
        gap: 12px;
    }
}
