.a4q-single-post {
    --a4q-primary: #c5a044;
    --a4q-deep-navy: #061a24;
    --a4q-accent-teal: #0d3c52;
    --a4q-ink: #1f3345;
    --a4q-paper: rgba(255, 255, 255, 0.96);
    background:
        linear-gradient(to right, rgba(13, 60, 82, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 60, 82, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 10% 8%, rgba(197, 160, 68, 0.13), transparent 34%),
        radial-gradient(circle at 90% 6%, rgba(13, 60, 82, 0.10), transparent 38%),
        linear-gradient(180deg, #eef3f7 0%, #e7edf3 55%, #edf2f6 100%);
    background-size: 22px 22px, 22px 22px, auto, auto, auto;
    color: var(--a4q-ink);
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 56px;
    overflow: hidden;
}

.a4q-single-post__container {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

.a4q-single-post__hero {
    position: relative;
    padding: 14px 0 28px;
    width: 100%;
}

.a4q-single-post__hero-bg {
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    background:
        linear-gradient(to right, rgba(13, 60, 82, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 60, 82, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(243, 247, 250, 0.9), rgba(234, 240, 244, 0.92));
    background-size: 22px 22px, 22px 22px, auto;
}

.a4q-single-post__breadcrumbs,
.a4q-single-post__hero-card {
    position: relative;
    z-index: 1;
}

.a4q-single-post__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 18px;
    margin-bottom: 16px;
    color: #698095;
    font: 500 0.92rem/1.4 Inter, sans-serif;
}

.a4q-single-post__breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.a4q-single-post__main-column {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.a4q-single-post__hero-card {
    display: block;
    padding: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 252, 255, 0.96));
    border: 1px solid rgba(13, 60, 82, 0.1);
    box-shadow: 0 22px 48px rgba(6, 26, 36, 0.08);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.a4q-single-post__hero-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--a4q-primary), var(--a4q-accent-teal));
    z-index: 2;
}

.a4q-single-post__hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(13, 60, 82, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 60, 82, 0.02) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
    opacity: 0.75;
}

.a4q-single-post__hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1fr);
    gap: 24px;
    align-items: start;
    padding: 28px 28px 24px 34px;
}

.a4q-single-post__hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 34px 0;
}

.a4q-single-post__eyebrow,
.a4q-single-post__card-kicker,
.a4q-single-post__related-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--a4q-accent-teal);
    font: 700 0.9rem/1.2 Inter, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.a4q-single-post__title {
    max-width: 15ch;
    margin: 10px 0 18px;
    color: #082538;
    font: 700 clamp(1.8rem, 2.4vw, 2.95rem)/0.98 "Playfair Display", serif;
    letter-spacing: -0.028em;
    text-wrap: pretty;
}

.a4q-single-post__summary {
    max-width: 58ch;
    margin: 0 0 20px;
    color: #5b7384;
    font: 400 1rem/1.72 Inter, sans-serif;
}

.a4q-single-post__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    width: 100%;
    align-items: center;
}

.a4q-single-post__meta-band {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 16px 22px;
    border-top: 1px solid rgba(13, 60, 82, 0.12);
    border-bottom: 1px solid rgba(13, 60, 82, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 254, 0.94));
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(6, 26, 36, 0.04);
}

.a4q-single-post__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0;
    flex: 0 1 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #3f5a6d;
    box-shadow: none;
    font: 600 0.9rem/1.35 Inter, sans-serif;
    white-space: nowrap;
}

.a4q-single-post__meta-item::before {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(197, 160, 68, 0.14);
    color: #a97d16;
    font: 700 0.62rem/1 Inter, sans-serif;
    border: 1px solid rgba(197, 160, 68, 0.18);
}

.a4q-single-post__meta-item--date::before {
    content: "D";
}

.a4q-single-post__meta-item--comments::before {
    content: "C";
}

.a4q-single-post__meta-item--author::before {
    content: "A";
}

.a4q-single-post__meta-item--views::before {
    content: "V";
}

.a4q-single-post__meta-item--read::before {
    content: "L";
}

.a4q-single-post__author-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--a4q-primary), #d6ba74);
    color: #082538;
    overflow: hidden;
    flex: 0 0 auto;
    font: 700 1.1rem/1 Inter, sans-serif;
}

.a4q-single-post__author-avatar--large {
    width: 72px;
    height: 72px;
}

.a4q-single-post__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a4q-single-post__author-label {
    margin: 0 0 4px;
    color: #557082;
    font: 600 0.76rem/1.2 Inter, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.a4q-single-post__author-name,
.a4q-single-post__sidebar-title {
    margin: 0;
    color: #082538;
    font: 700 1.1rem/1.3 Inter, sans-serif;
}

.a4q-single-post__hero-media {
    position: relative;
    min-height: 320px;
    height: 320px;
    padding: 12px;
    border: 1px solid rgba(197, 160, 68, 0.34);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(197, 160, 68, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow:
        0 18px 34px rgba(6, 26, 36, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    display: grid;
    place-items: center;
}

.a4q-single-post__featured-image,
.a4q-single-post__related-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a4q-single-post__hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(197, 160, 68, 0.24), rgba(197, 160, 68, 0.06) 38%, transparent 68%);
    pointer-events: none;
    opacity: 0.85;
}

.a4q-single-post__hero-media::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
    box-shadow:
        inset 0 0 0 1px rgba(197, 160, 68, 0.22),
        inset 0 0 0 8px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 2;
}

.a4q-single-post__hero-media .a4q-single-post__featured-image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.98) contrast(1.02);
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 68, 0.3);
    box-shadow:
        0 14px 28px rgba(6, 26, 36, 0.1),
        0 0 0 3px rgba(255, 255, 255, 0.92);
    background: #fff;
}

.a4q-single-post__hero-media-glow {
    display: none;
}

.a4q-single-post__featured-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 68, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 251, 0.94));
    color: #0d3c52;
    font: 700 1.6rem/1.3 "Playfair Display", serif;
}

.a4q-single-post__body {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 4px;
}

.a4q-single-post__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.article-shell,
.a4q-single-post__card,
.a4q-single-post__related-card {
    background:
        radial-gradient(circle at 8% 0%, rgba(197, 160, 68, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(13, 60, 82, 0.1);
    box-shadow: 0 18px 40px rgba(6, 26, 36, 0.07);
    border-radius: 22px;
}

.a4q-single-post__article-inner {
    padding: clamp(22px, 3vw, 34px);
}

.article-prose {
    color: var(--a4q-ink);
    font: 400 1.02rem/1.82 Inter, sans-serif;
}

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

.article-prose p,
.article-prose div,
.article-prose ul,
.article-prose ol,
.article-prose blockquote,
.article-prose hr {
    margin: 0 0 1.15rem;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
    color: #082538;
    text-wrap: balance;
}

.article-prose h2 {
    margin: 1.4rem 0 0.9rem;
    font: 800 1.1rem/1.15 Inter, sans-serif;
}

.article-prose h3 {
    margin: 1.8rem 0 0.75rem;
    color: var(--a4q-accent-teal);
    font: 700 0.98rem/1.3 Inter, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-prose ul,
.article-prose ol {
    padding-left: 1.35rem;
}

.article-prose li {
    margin-bottom: 0.6rem;
}

.article-prose a {
    color: var(--a4q-accent-teal);
    text-decoration: underline;
    text-decoration-color: rgba(197, 160, 68, 0.7);
    text-underline-offset: 2px;
}

.article-prose blockquote {
    padding: 1rem 1rem 1rem 1.1rem;
    border-left: 4px solid var(--a4q-primary);
    border-radius: 0.9rem;
    background: rgba(197, 160, 68, 0.07);
    color: #153347;
}

.article-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.article-prose .jota-article__reference,
.article-prose .footnotes {
    color: #344b5c;
    font-size: 0.93rem;
}

.a4q-single-post__sidebar {
    position: sticky;
    top: 28px;
    display: grid;
    gap: 18px;
}

.a4q-single-post__card {
    padding: 18px 18px 16px;
}

.a4q-single-post__sidebar-copy {
    margin: 8px 0 0;
    color: #4b6678;
    font: 400 0.95rem/1.7 Inter, sans-serif;
}

.a4q-single-post__share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.a4q-single-post__share-chip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(13, 60, 82, 0.12);
    border-radius: 12px;
    background: #fff;
    color: #183649;
    text-decoration: none;
    font: 600 0.9rem/1.2 Inter, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.a4q-single-post__share-chip:hover,
.a4q-single-post__share-chip:focus {
    border-color: rgba(197, 160, 68, 0.42);
    box-shadow: 0 10px 18px rgba(6, 26, 36, 0.06);
    transform: translateY(-1px);
}

.a4q-single-post__info-list {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.a4q-single-post__info-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(13, 60, 82, 0.08);
    color: #3d5668;
    font: 500 0.92rem/1.5 Inter, sans-serif;
}

.a4q-single-post__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    margin-top: 14px;
}

.a4q-single-post__search input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(13, 60, 82, 0.35);
    border-radius: 14px;
    background: #fff;
    color: #214053;
    font: 500 0.98rem/1 Inter, sans-serif;
}

.a4q-single-post__search button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--a4q-accent-teal);
    color: #fff;
    font: 700 1rem/1 Inter, sans-serif;
    cursor: pointer;
}

.a4q-single-post__category-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.a4q-single-post__category-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(13, 60, 82, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #2d485a;
    text-decoration: none;
    font: 500 0.98rem/1.35 Inter, sans-serif;
}

.a4q-single-post__category-item strong {
    color: #7b8da0;
    font-weight: 600;
}

.a4q-single-post__info-list strong {
    color: #082538;
}

.a4q-single-post__related {
    padding: 12px 0 56px;
    width: 100%;
}

.a4q-single-post__section-heading {
    margin-bottom: 20px;
}

.a4q-single-post__section-heading h2 {
    margin: 12px 0 0;
    color: #082538;
    font: 700 clamp(1.8rem, 2vw, 2.6rem)/1.08 "Playfair Display", serif;
}

.a4q-single-post__related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 309px));
    justify-content: space-between;
    gap: 16px 0;
}

.a4q-single-post__related-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 68, 0.18);
    background:
        radial-gradient(circle at top left, rgba(197, 160, 68, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.96));
    box-shadow:
        0 16px 30px rgba(6, 26, 36, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.78);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.a4q-single-post__related-card:hover,
.a4q-single-post__related-card:focus {
    transform: translateY(-3px);
    box-shadow:
        0 18px 36px rgba(6, 26, 36, 0.09),
        inset 0 0 0 1px rgba(255, 255, 255, 0.82);
    border-color: rgba(197, 160, 68, 0.35);
}

.a4q-single-post__related-thumb {
    position: relative;
    width: 291px;
    height: 178px;
    min-height: 178px;
    margin: 10px auto 0;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(197, 160, 68, 0.28);
    background:
        radial-gradient(circle at top left, rgba(197, 160, 68, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow:
        0 12px 24px rgba(6, 26, 36, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.74);
    display: grid;
    place-items: center;
    color: #0d3c52;
    font: 600 0.92rem/1.3 Inter, sans-serif;
    overflow: hidden;
}

.a4q-single-post__related-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(197, 160, 68, 0.22), rgba(197, 160, 68, 0.05) 42%, transparent 70%);
    pointer-events: none;
}

.a4q-single-post__related-thumb::after {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 2;
    border-radius: 13px;
    box-shadow:
        inset 0 0 0 1px rgba(197, 160, 68, 0.18),
        inset 0 0 0 6px rgba(255, 255, 255, 0.42);
    pointer-events: none;
}

.a4q-single-post__related-thumb img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 1px solid rgba(197, 160, 68, 0.26);
    box-shadow:
        0 10px 18px rgba(6, 26, 36, 0.08),
        0 0 0 2px rgba(255, 255, 255, 0.92);
}

.a4q-single-post__related-copy {
    padding: 14px 14px 16px;
}

.a4q-single-post__related-copy h3 {
    margin: 8px 0 6px;
    color: #082538;
    font: 700 1.02rem/1.28 Inter, sans-serif;
}

.a4q-single-post__related-copy p {
    margin: 0;
    color: #4d6678;
    font: 400 0.9rem/1.58 Inter, sans-serif;
}

.a4q-single-post__related-category {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
}

@media (max-width: 1280px) {
    .a4q-single-post__related-grid {
        grid-template-columns: repeat(2, minmax(0, 309px));
        justify-content: space-between;
    }
}

@media (max-width: 1024px) {
    .a4q-single-post__hero-grid,
    .a4q-single-post__layout {
        grid-template-columns: 1fr;
    }

    .a4q-single-post__sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .a4q-single-post__container {
        width: min(100% - 20px, 1380px);
    }

    .a4q-single-post__hero {
        padding-top: 16px;
    }

    .a4q-single-post__hero-card {
        border-radius: 22px;
    }

    .a4q-single-post__hero-grid {
        gap: 18px;
        padding: 20px 18px 18px;
    }

    .a4q-single-post__main-column {
        gap: 14px;
    }

    .a4q-single-post__meta {
        gap: 6px 12px;
        justify-content: flex-start;
    }

    .a4q-single-post__meta-band {
        margin: 0;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .a4q-single-post__hero-copy {
        padding: 0;
    }

    .a4q-single-post__title {
        max-width: none;
    }

    .a4q-single-post__hero-media {
        min-height: 260px;
        height: 260px;
        padding: 10px;
        border-radius: 24px;
    }

    .a4q-single-post__hero-media .a4q-single-post__featured-image {
        border-radius: 18px;
    }

    .a4q-single-post__summary {
        margin-bottom: 16px;
    }

    .a4q-single-post__related-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 16px;
    }

    .a4q-single-post__related-thumb {
        width: min(100%, 291px);
        height: auto;
        min-height: 178px;
        aspect-ratio: 291 / 178;
    }

    .a4q-single-post__share-grid {
        grid-template-columns: 1fr;
    }
}
