.article-detail {
    background: #fff;
    color: var(--web-body-text, #1f2937);
}
.article-page {
    min-height: 60vh;
    background: #f7f9fb;
    color: var(--web-body-text, #1f2937);
}
.article-page__summary {
    padding: 24px 0;
    border-bottom: 1px solid #e3e8ef;
    background: #fff;
    color: #526174;
    line-height: 1.7;
}
.article-page__summary p:first-child {
    margin-top: 0;
}
.article-page__summary p:last-child {
    margin-bottom: 0;
}
.article-page__layout {
    padding-top: 38px;
    padding-bottom: 64px;
}
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.article-categories a {
    padding: 9px 13px;
    border: 1px solid #d8dee7;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}
.article-categories a.has-custom-color {
    border-color: transparent;
    background: var(--category-surface, var(--category-bg, #2563eb));
    color: var(--category-text, #ffffff);
}
.article-categories a:hover,
.article-categories a.is-active {
    border-color: var(--web-link-text, #2563eb);
    background: var(--web-link-text, #2563eb);
    color: #fff;
    transform: translateY(-1px);
}
.article-categories a.has-custom-color:hover,
.article-categories a.has-custom-color.is-active {
    border-color: transparent;
    background: var(--category-surface, var(--category-bg, #2563eb));
    color: var(--category-text, #ffffff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 44px;
}
.article-card {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.article-card__media {
    display: grid;
    overflow: hidden;
    aspect-ratio: 16/9;
    place-items: center;
    background: #edf1f5;
    color: #94a3b8;
    text-decoration: none;
}
.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .article-card__media img {
    transform: scale(1.04);
}
.article-card__media i {
    font-size: 34px;
}
.article-card__body {
    padding: 18px 18px 0;
}
.article-card__body > span {
    color: var(--web-link-text, #2563eb);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.article-card h2 {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.article-card h2 a {
    color: inherit;
    text-decoration: none;
}
.article-card p {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    margin: 26px 0 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.85;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--web-link-text, #2563eb);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.article-card__link i {
    font-size: 11px;
}
.article-pagination {
    margin-top: 30px;
}
.article-empty {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
}
.article-empty i {
    font-size: 40px;
}
/* .article-detail__header h1 {
    max-width: 1000px;
} */
.article-detail__header p {
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}
.article-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 64px;
}
.article-detail__layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}
.article-detail__main {
    min-width: 0;
}
.article-detail__main figure {
    margin: 0 0 28px;
}
.article-detail__main figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-detail__content {
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.article-detail__content img {
    max-width: 100%;
    height: auto;
}
.article-related {
    position: sticky;
    top: 120px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.article-related h2 {
    margin: 0 0 15px;
    font-size: 18px;
}
.article-related a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 11px;
    align-items: center;
    padding: 11px 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    border-bottom: 1px solid #edf1f5;
}
.article-related a:last-child {
    border-bottom: 0;
}
.article-related img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 5px;
}
.article-sidebar {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 18px;
    align-self: start;
}
.article-sidebar .article-related {
    position: static;
    top: auto;
}
.article-sidebar-block {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.article-sidebar-block h2 {
    margin: 0 0 14px;
    font-size: 18px;
}
.article-sidebar-block__content {
    color: #526174;
    font-size: 14px;
    line-height: 1.75;
}
.article-sidebar-block__content > :first-child {
    margin-top: 0;
}
.article-sidebar-block__content > :last-child {
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .article-detail__layout {
        grid-template-columns: 1fr;
    }
    .article-related,
    .article-sidebar {
        position: static;
    }
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .article-detail__layout {
        padding-top: 26px;
        padding-bottom: 44px;
    }
    .article-page__layout {
        padding-top: 24px;
        padding-bottom: 44px;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* Professional article catalog */
.article-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dfe5ec;
}

.article-list-head > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}
.article-list-head span {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}
.article-list-head strong {
    color: var(--web-link-text, #2563eb);
    font-size: 20px;
}
.article-list-head p {
    margin: 0;
    color: #7a8595;
    font-size: 13px;
}
.article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.article-card:hover {
    border-color: #c8d2df;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.article-card__meta {
    display: flex;
    min-height: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.article-card__meta > span {
    color: var(--web-link-text, #2563eb);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.article-card__meta time {
    flex: 0 0 auto;
    color: #8a94a3;
    font-size: 11px;
}
.article-card__meta time i {
    margin-right: 5px;
}
.article-card h2 {
    margin-top: 9px;
}
.article-card h2 a:hover {
    color: var(--web-link-text, #2563eb);
}
.article-card__link {
    position: relative;
    width: fit-content;
    margin-top: auto;
    padding: 16px 30px 4px 0;
    transition: color 0.2s ease;
}
.article-card__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0.18);
    transform-origin: right;
    transition: transform 0.25s ease;
}
.article-card__link i {
    position: absolute;
    right: 8px;
    top: 19px;
    transition: transform 0.25s ease;
}
.article-card__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.article-card__link:hover i {
    transform: translateX(7px);
}

.article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 16px;
    color: #64748b;
    font-size: 13px;
}
.article-detail__meta span,
.article-detail__meta time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.article-detail__content h2,
.article-detail__content h3,
.article-detail__content h4 {
    scroll-margin-top: var(--article-scroll-offset, 160px);
}
.article-toc {
    margin: 0 0 28px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    background: #f8fafc;
}
.article-toc button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.article-toc button span {
    display: flex;
    align-items: center;
    gap: 9px;
}
.article-toc button > i {
    transition: transform 0.2s ease;
}
.article-toc nav {
    display: grid;
    gap: 3px;
    max-height: 360px;
    overflow: auto;
    padding: 0 18px 16px;
}
.article-toc a {
    padding: 7px 10px;
    border-left: 2px solid #d6dee8;
    color: #526174;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition: 0.2s ease;
}
.article-toc a:hover {
    border-color: var(--web-link-text, #2563eb);
    background: #fff;
    color: var(--web-link-text, #2563eb);
}
.article-toc a.toc-level-3 {
    padding-left: 24px;
}
.article-toc a.toc-level-4 {
    padding-left: 38px;
}
.article-toc.is-collapsed nav {
    display: none;
}
.article-toc.is-collapsed button > i {
    transform: rotate(180deg);
}
.article-reviews {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}
.article-reviews > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.article-reviews > header span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.article-reviews > header h2 {
    margin: 4px 0 0;
    font-size: 28px;
}
.article-reviews > header p {
    margin: 0;
    color: #64748b;
}
.article-reviews form {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid #dde5ee;
    border-radius: 8px;
    background: #f8fafc;
}
.article-review-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.article-reviews label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.article-reviews input,
.article-reviews select,
.article-reviews textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    font: inherit;
    outline: none;
}
.article-reviews input:focus,
.article-reviews select:focus,
.article-reviews textarea:focus {
    border-color: var(--web-link-text, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.article-reviews form button {
    width: fit-content;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--web-link-text, #2563eb);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.article-reviews form button i {
    margin-right: 7px;
}
.article-review-success {
    margin-bottom: 15px;
    padding: 12px 14px;
    border: 1px solid #a7e2c4;
    border-radius: 6px;
    background: #ecfdf3;
    color: #087443;
}
.article-review-success i {
    margin-right: 7px;
}
.article-review-errors {
    color: #b42318;
    font-size: 13px;
}
.article-review-list article {
    padding: 20px 0;
    border-bottom: 1px solid #e7ecf2;
}
.article-review-list article > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.article-review-list article span {
    color: #f59e0b;
}
.article-review-list article p {
    margin: 10px 0;
    color: #475467;
    line-height: 1.65;
}
.article-review-list article time {
    color: #98a2b3;
    font-size: 12px;
}

.article-pagination .catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 34px;
}

.article-pagination .catalog-pagination__page,
.article-pagination .catalog-pagination__nav,
.article-pagination .catalog-pagination__dots {
    display: grid;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 10px;
    place-items: center;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.article-pagination .catalog-pagination__page:hover,
.article-pagination .catalog-pagination__nav:hover,
.article-pagination .catalog-pagination__page.is-active {
    border-color: var(--web-link-text, #2563eb);
    background: var(--web-link-text, #2563eb);
    color: #fff;
}

.article-pagination .catalog-pagination__nav.is-disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}
.article-pagination .catalog-pagination__dots {
    min-width: 28px;
    padding: 0;
    border-color: transparent;
    background: transparent;
}

@media (max-width: 767px) {
    .article-list-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .article-pagination .catalog-pagination__page,
    .article-pagination .catalog-pagination__nav {
        min-width: 36px;
        height: 36px;
    }
    .article-review-fields {
        grid-template-columns: 1fr;
    }
}

.article-detail__main .article-product-reviews {
    margin-top: 44px;
    padding: 38px 0 0;
    border-top: 1px solid #e5eaf0;
    background: transparent;
}
.article-detail__main .article-product-reviews > .site-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0;
}
.article-product-reviews .product-review-overview {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
}
@media (max-width: 767px) {
    .article-detail__main .article-product-reviews {
        padding-top: 28px;
    }
    .article-product-reviews .product-review-overview {
        grid-template-columns: 1fr;
    }
}

/* Article sharing, navigation and discussion */
.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
}
.article-share > span {
    margin-right: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.article-share a,
.article-share button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}
.article-share a:hover,
.article-share button:hover,
.article-share button.is-copied {
    border-color: var(--web-link-text, #2563eb);
    background: var(--web-link-text, #2563eb);
    color: #fff;
    transform: translateY(-2px);
}
.article-toc {
    overflow: hidden;
    border-color: #d7e0ea;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.article-toc button {
    padding: 17px 20px;
    background: linear-gradient(90deg, #f8fafc, #fff);
}
.article-toc button span i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 6px;
    background: var(--web-link-text, #2563eb);
    color: #fff;
}
.article-toc nav {
    gap: 2px;
    padding: 5px 20px 18px;
}
.article-toc a {
    position: relative;
    padding: 9px 12px 9px 18px;
    border: 0;
    border-radius: 5px;
}
.article-toc a::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 3px;
    width: 6px;
    height: 6px;
    border: 2px solid #a7b3c2;
    border-radius: 50%;
    background: #fff;
}
.article-toc a:hover {
    background: #f0f6ff;
}
.article-toc a:hover::before {
    border-color: var(--web-link-text, #2563eb);
    background: var(--web-link-text, #2563eb);
}
.article-reviews {
    padding: 30px;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}
.article-reviews > header {
    padding-bottom: 20px;
    border-bottom: 1px solid #edf1f5;
}
.article-reviews > header h2 {
    color: #111827;
    font-size: 38px;
    letter-spacing: 0;
}
.article-reviews > header h2::after {
    content: "★";
    margin-left: 8px;
    color: #f5a623;
    font-size: 22px;
}
.article-reviews form {
    border: 0;
    background: #f6f8fb;
    box-shadow: inset 0 0 0 1px #e3e9f0;
}
.article-reviews form button {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.article-reviews form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}
.article-review-list {
    display: none;
}
.article-review-honeypot {
    position: absolute !important;
    left: -9999px !important;
}
.article-conversations {
    margin-top: 24px;
}
.article-thread {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid #e8edf3;
}
.article-thread__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #eaf1ff;
    color: var(--web-link-text, #2563eb);
    font-weight: 900;
}
.article-thread__body {
    min-width: 0;
}
.article-thread__body > header,
.article-thread__replies header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.article-thread header div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-thread header b {
    padding: 3px 7px;
    border-radius: 4px;
    background: #e9f8f1;
    color: #087443;
    font-size: 10px;
    text-transform: uppercase;
}
.article-thread header time {
    color: #98a2b3;
    font-size: 12px;
}
.article-thread__stars {
    margin: 6px 0;
    color: #f5a623;
    font-size: 12px;
}
.article-thread p {
    margin: 8px 0;
    color: #475467;
    line-height: 1.7;
}
.article-thread details {
    margin-top: 10px;
}
.article-thread summary {
    width: fit-content;
    color: var(--web-link-text, #2563eb);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.article-thread summary i {
    margin-right: 6px;
}
.article-thread details form {
    margin-top: 12px;
    padding: 16px;
}
.article-thread__replies {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-left: 18px;
    border-left: 2px solid #dce5ef;
}
.article-thread__replies article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
    border-radius: 6px;
    background: #f8fafc;
}
.article-thread__replies .article-thread__avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
}
@media (max-width: 767px) {
    .article-reviews {
        padding: 20px 16px;
    }
    .article-reviews > header h2 {
        font-size: 30px;
    }
    .article-thread {
        grid-template-columns: 36px minmax(0, 1fr);
    }
    .article-thread__avatar {
        width: 36px;
        height: 36px;
    }
    .article-thread__body > header,
    .article-thread__replies header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .article-thread__replies {
        padding-left: 10px;
    }
    .article-share {
        flex-wrap: wrap;
    }
}

/* Refined article feedback surfaces */
.article-share {
    width: fit-content;
    padding: 7px 9px 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
}
.article-share > span {
    padding-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    letter-spacing: 0;
}
.article-share a,
.article-share button {
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #344054;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.09);
}
.article-share a:nth-of-type(1):hover {
    background: #1877f2;
    border-color: #1877f2;
}
.article-share a:nth-of-type(2):hover {
    background: #111827;
    border-color: #111827;
}
.article-share a:nth-of-type(3):hover {
    background: #0a66c2;
    border-color: #0a66c2;
}
.article-share button:hover,
.article-share button.is-copied {
    background: #087443;
    border-color: #087443;
}

.article-reviews {
    overflow: hidden;
    padding: 0;
}
.article-reviews > header {
    margin: 0;
    padding: 25px 28px;
    background: #f8fafc;
}
.article-reviews > header > div {
    display: flex;
    align-items: center;
    gap: 13px;
}
.article-reviews > header > div > span {
    order: 2;
    color: #475467;
    font-size: 15px;
    text-transform: none;
}
.article-reviews > header h2 {
    order: 1;
    min-width: 102px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.07);
    color: #172033;
    font-size: 24px;
    text-align: center;
}
.article-reviews > header h2::after {
    font-size: 16px;
}
.article-review-success {
    margin: 22px 28px 0;
}
.article-reviews > form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
    margin: 0;
    padding: 28px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.article-reviews > form::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: calc(100% - 208px);
    width: 1px;
    background: #e5eaf0;
}
.article-reviews > form .article-review-fields,
.article-reviews > form > label:has(textarea) {
    grid-column: 1;
}
.article-reviews > form > label:has(select) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-left: 18px;
}
.article-reviews > form > button {
    grid-column: 2;
    align-self: end;
    justify-self: stretch;
    min-height: 44px;
    margin-left: 18px;
}
.article-reviews > form input,
.article-reviews > form select,
.article-reviews > form textarea {
    min-height: 44px;
    border-color: #d6dee8;
    background: #fbfcfe;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}
.article-reviews > form textarea {
    min-height: 126px;
    resize: vertical;
}
.article-reviews > form input:focus,
.article-reviews > form select:focus,
.article-reviews > form textarea:focus {
    background: #fff;
}
.article-reviews > form select {
    color: #b56b00;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
}
.article-review-errors {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff1f2;
}

.article-conversations {
    margin-top: 22px;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #fff;
}
.article-thread {
    padding: 24px;
}
.article-thread:last-child {
    border-bottom: 0;
}
.article-thread details {
    margin-top: 14px;
}
.article-thread summary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #d8e1eb;
    border-radius: 6px;
    background: #fff;
    color: #475467;
    transition: 0.2s ease;
}
.article-thread summary:hover,
.article-thread details[open] > summary {
    border-color: var(--web-link-text, #2563eb);
    background: #f1f6ff;
    color: var(--web-link-text, #2563eb);
}
.article-thread details[open] > summary {
    margin-bottom: 12px;
}
.article-thread details form {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px;
    border: 1px solid #dfe6ee;
    border-radius: 7px;
    background: #f8fafc;
    box-shadow: none;
}
.article-thread details form::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #dfe6ee;
    border-left: 1px solid #dfe6ee;
    background: #f8fafc;
    transform: rotate(45deg);
}
.article-thread details form .article-review-fields {
    gap: 10px;
}
.article-thread details form input,
.article-thread details form textarea {
    min-height: 42px;
    border: 1px solid #d4dde7;
    border-radius: 6px;
    background: #fff;
}
.article-thread details form textarea {
    min-height: 92px;
    resize: vertical;
}
.article-thread details form button {
    justify-self: end;
    min-width: 132px;
    min-height: 40px;
}

@media (max-width: 767px) {
    .article-share {
        width: 100%;
        box-sizing: border-box;
    }
    .article-share > span {
        flex: 1;
    }
    .article-reviews > header {
        align-items: flex-start;
        padding: 20px;
    }
    .article-reviews > header > div {
        align-items: flex-start;
        flex-direction: column-reverse;
        gap: 7px;
    }
    .article-reviews > form {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .article-reviews > form::before {
        display: none;
    }
    .article-reviews > form .article-review-fields,
    .article-reviews > form > label:has(textarea),
    .article-reviews > form > label:has(select),
    .article-reviews > form > button {
        grid-column: 1;
        grid-row: auto;
        margin-left: 0;
        padding-left: 0;
    }
    .article-thread {
        padding: 18px 14px;
    }
    .article-thread details form {
        padding: 15px;
    }
    .article-thread details form button {
        width: 100%;
    }
}

/* TOJI-inspired article listing */
.article-page {
    background: #fff;
}
.article-card:hover {
    border-color: transparent;
    box-shadow: none;
}
.article-card h2 {
    margin-top: 0;
}
.article-card__date {
    position: absolute;
    z-index: 1;
    top: 39px;
    left: -10px;
    display: grid;
    width: 50px;
    min-height: 50px;
    place-content: center;
    border: 3px solid var(--web-link-text, #01711b);
    background: #fff;
    color: var(--web-link-text, #01711b);
    line-height: 1;
    text-align: center;
}
.article-card__date strong {
    font-size: 20px;
    font-weight: 800;
}
.article-card__date span {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}
@media (max-width: 767px) {
    .article-grid {
        gap: 30px;
    }
    .article-card__body {
        padding-right: 8px;
        padding-left: 8px;
    }
    .article-card h2 {
        font-size: 16px;
    }
    .article-card p {
        margin-top: 15px;
        font-size: 13px;
    }
    .article-card__date {
        top: 20px;
        left: -6px;
        width: 58px;
        min-height: 58px;
    }
    .article-card__date strong {
        font-size: 21px;
    }
    .article-card__date span {
        font-size: 14px;
    }
}

/* News cards: a consistent elevated surface for article listings. */
.article-grid {
    gap: 28px;
}

.article-card {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--web-heading-text, #111827), transparent 88%);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(15, 23, 42, .07);
    transform: translateY(0);
    transition: border-color .32s ease, box-shadow .32s ease, transform .32s cubic-bezier(.2, .75, .25, 1);
}

.article-card__media {
    position: relative;
    z-index: 0;
    background: #edf2f5;
}

.article-card__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(8, 26, 15, .28));
    content: '';
    opacity: 0;
    transition: opacity .35s ease;
}

.article-card__media img {
    transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .4s ease;
    will-change: transform;
}

.article-card__date {
    z-index: 2;
    top: 14px;
    left: 14px;
    width: 54px;
    min-height: 54px;
    border: 0;
    border-radius: 10px;
    background: var(--web-main-color, var(--web-link-text, #01711b));
    color: #fff;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--web-main-color, #01711b), transparent 65%);
}

.article-card__date strong {
    font-size: 19px;
}

.article-card__date span {
    font-size: 11px;
}

.article-card__body {
    position: relative;
    z-index: 1;
    padding: 20px 20px 22px;
}

.article-card h2 {
    font-size: 18px;
    line-height: 1.42;
}

.article-card h2 a {
    color: var(--web-heading-text, #111827);
    background-image: linear-gradient(var(--web-main-color, #01711b), var(--web-main-color, #01711b));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: color .25s ease, background-size .3s ease;
}

.article-card p {
    margin-top: 11px;
    color: color-mix(in srgb, var(--web-body-text, #475569), transparent 16%);
}

@media (hover: hover) and (pointer: fine) {
    .article-card:hover {
        border-color: color-mix(in srgb, var(--web-main-color, #01711b), transparent 55%);
        box-shadow: 0 19px 40px rgba(15, 23, 42, .15);
        transform: translateY(-7px);
    }

    .article-card:hover .article-card__media::after {
        opacity: 1;
    }

    .article-card:hover .article-card__media img {
        filter: saturate(1.07);
        transform: scale(1.08);
    }

    .article-card:hover h2 a {
        color: var(--web-main-color, #01711b);
        background-size: 100% 1px;
    }
}

@media (max-width: 767px) {
    .article-grid {
        gap: 20px;
    }

    .article-card__body {
        padding: 16px 16px 18px;
    }

    .article-card__date {
        top: 12px;
        left: 12px;
        width: 50px;
        min-height: 50px;
    }
}
