
:root {
    --cst-color-bg: #efefef;
    --cst-color-surface: #ffffff;
    --cst-color-text: #111111;
    --cst-color-muted: #7a7a7a;
    --cst-color-border: #e3e3e3;
    --cst-color-primary: #0a1220;
    --cst-color-accent: #f58b00;
    --cst-color-accent-2: #ff345c;
    --cst-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.06);
    --cst-radius-sm: 8px;
    --cst-radius: 12px;
    --cst-container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cst-color-bg);
    color: var(--cst-color-text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cst-color-accent); }
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 10px; line-height: 1.22; }
p { margin: 0 0 16px; }
.cst-container { width: min(calc(100% - 40px), var(--cst-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.cst-header { position: sticky; top: 0; z-index: 50; }
.cst-topbar {
    background: #fff;
    border-bottom: 1px solid var(--cst-color-border);
}
.cst-topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
    gap: 12px;
}
.cst-topbar__left,
.cst-topbar__right,
.cst-topbar__center {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cst-topbar__center { justify-content: center; }
.cst-topbar__right { justify-content: flex-end; }
.cst-logo-wrap { display: flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }
.cst-site-title {
    font-family: 'Merriweather', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--cst-color-primary);
}
.cst-icon-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    border-radius: 999px;
    font-size: 19px;
}
.cst-icon-button:hover { background: #f5f5f5; color: #000; }
.cst-mobile-toggle { flex-direction: column; gap: 4px; }
.cst-mobile-toggle__bar {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}
.cst-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--cst-color-accent-2);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}
.cst-button--small { min-height: 42px; padding: 0 16px; }
.cst-search-panel {
    background: #fff;
    border-bottom: 1px solid var(--cst-color-border);
}
.cst-search-panel__inner { padding: 14px 0; }
.cst-search-form { display: flex; align-items: center; gap: 8px; }
.cst-search-field {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--cst-color-border);
    border-radius: 999px;
    outline: none;
    background: #fff;
}
.cst-search-submit {
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--cst-color-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.cst-nav {
    background: #fff;
    border-bottom: 1px solid var(--cst-color-border);
}
.cst-nav__inner {
    display: flex;
    align-items: center;
    min-height: 44px;
}
.cst-primary-menu,
.cst-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cst-primary-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}
.cst-primary-menu li { margin: 0; }
.cst-main { padding: 0; }
.cst-category-hero-gap {
    height: 200px;
    background: linear-gradient(180deg, #ececec 0%, #e8e8e8 100%);
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 34px;
}

.cst-card,
.cst-widget,
.cst-single,
.cst-section,
.cst-page-header,
.cst-category-featured-card,
.cst-list-item,
.cst-service-card,
.cst-widget--ranking,
.cst-widget--service,
.cst-empty-state {
    background: var(--cst-color-surface);
    border: 1px solid var(--cst-color-border);
    border-radius: var(--cst-radius-sm);
    box-shadow: var(--cst-shadow-soft);
}
.cst-card { overflow: hidden; }
.cst-card__thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cst-card__content { padding: 18px; }
.cst-card__category,
.cst-single__category a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cst-color-accent);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}
.cst-card__title,
.cst-single__title,
.cst-section__title,
.cst-page-header h1,
.cst-category-title,
.cst-category-featured-card__title,
.cst-list-item__title { font-family: 'Merriweather', serif; }
.cst-card__title { font-size: 24px; }
.cst-card--hero .cst-card__title { font-size: 36px; }
.cst-card__meta,
.cst-single__meta,
.cst-category-featured-card__meta,
.cst-list-item__meta { color: var(--cst-color-muted); font-size: 12px; }
.cst-card__excerpt { color: #3f3f3f; }
.cst-section { padding: 20px; margin-bottom: 24px; }
.cst-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.cst-section__title { font-size: 28px; color: var(--cst-color-primary); }
.cst-section__grid { display: grid; gap: 20px; }
.cst-section__grid--3col,.cst-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cst-section__grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cst-home { display: grid; gap: 28px; padding-top: 28px; }
.cst-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 24px; }
.cst-hero__side { display: grid; gap: 18px; }
.cst-home__content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.cst-home__primary,.cst-home__sidebar,.cst-single-layout__main,.cst-single-layout__sidebar,.cst-category-main,.cst-category-sidebar { min-width: 0; }

.cst-widget { padding: 18px; margin-bottom: 18px; }
.cst-widget__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.cst-widget__title { font-size: 18px; margin-bottom: 0; color: #7c7c7c; font-weight: 800; }
.cst-widget__more { font-size: 12px; color: #777; }
.cst-widget--highlight { background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%); color: #fff; }
.cst-mini-list { list-style: none; margin: 0; padding: 0; }
.cst-mini-list__item + .cst-mini-list__item { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--cst-color-border); }

.cst-footer { margin-top: 40px; background: #09111f; color: rgba(255,255,255,0.9); }
.cst-footer__flash { background: var(--cst-color-accent-2); color: #fff; }
.cst-footer__flash-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
}
.cst-footer__flash-inner a { color: #fff; font-weight: 800; }
.cst-footer__widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    padding: 42px 0 28px;
}
.cst-widget--footer {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
.cst-widget--footer .cst-widget__title { color: #fff; margin-bottom: 12px; }
.cst-footer-menu--stack,
.cst-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cst-footer-menu--stack a,
.cst-footer-list li { color: rgba(255,255,255,0.8); font-size: 14px; }
.cst-footer-apps { display: grid; gap: 10px; }
.cst-app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    font-weight: 700;
}
.cst-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
}
.cst-footer__brand { font-family: 'Merriweather', serif; font-size: 22px; }

.cst-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-top: 28px; }
.cst-single { padding: 28px; }
.cst-single__title { font-size: 42px; margin-bottom: 12px; }
.cst-single__thumbnail { margin: 22px 0; overflow: hidden; border-radius: 16px; }
.cst-single__thumbnail img { width: 100%; }
.cst-single__content { font-size: 18px; }
.cst-archive-page { display: grid; gap: 24px; padding-top: 28px; }
.cst-page-header { padding: 24px; }
.cst-archive-grid { display: grid; gap: 20px; }

.cst-pagination .nav-links,
.cst-pagination .page-numbers,
.cst-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cst-pagination .page-numbers {
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--cst-color-surface);
    border: 1px solid var(--cst-color-border);
    border-radius: 6px;
}
.cst-pagination .current { background: #111827; color: #fff; border-color: #111827; }

.cst-category-page { padding-bottom: 18px; }
.cst-category-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 38px;
    align-items: start;
}
.cst-category-sidebar { position: sticky; top: 128px; }
.cst-category-header { margin-bottom: 18px; }
.cst-category-title {
    font-size: 56px;
    line-height: 1.02;
    color: var(--cst-color-primary);
    margin-bottom: 14px;
}
.cst-category-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.cst-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--cst-color-border);
    background: #fafafa;
    font-size: 12px;
    font-weight: 700;
    color: #555;
}
.cst-category-tag__dot { width: 6px; height: 6px; border-radius: 999px; background: #111; display: inline-block; }
.cst-category-more { font-size: 13px; color: #666; }
.cst-category-description { color: var(--cst-color-muted); max-width: 760px; }

.cst-category-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.cst-category-featured-card { overflow: hidden; }
.cst-category-featured-card__thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.cst-category-featured-card__content { padding: 14px 14px 12px; }
.cst-category-featured-card__title {
    font-size: 18px;
    line-height: 1.28;
    margin-bottom: 8px;
}
.cst-category-list { display: grid; gap: 10px; }
.cst-list-item {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    overflow: hidden;
    min-height: 104px;
}
.cst-list-item__thumb img {
    width: 100%;
    height: 100%;
    min-height: 104px;
    object-fit: cover;
}
.cst-list-item__content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cst-list-item__title {
    margin: 4px 0 6px;
    font-size: 15px;
    line-height: 1.38;
}
.cst-empty-state { padding: 24px; }
.cst-pagination--category { margin-top: 18px; }
.cst-widget--ranking,
.cst-widget--service { padding: 16px; }
.cst-ranking-list { list-style: none; margin: 0; padding: 0; }
.cst-ranking-list__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid var(--cst-color-border);
}
.cst-ranking-list__item:first-child { border-top: 0; padding-top: 0; }
.cst-ranking-list__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-weight: 800;
    color: #111;
}
.cst-ranking-list__content a { display: block; font-weight: 700; font-size: 14px; line-height: 1.35; }
.cst-ranking-list__content .cst-card__category { margin-bottom: 3px; }
.cst-service-card { overflow: hidden; }
.cst-service-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cst-service-card__body { padding: 14px; }
.cst-service-card__body h4 { font-size: 20px; font-family: 'Merriweather', serif; margin-bottom: 8px; }
.cst-service-card__link { font-weight: 800; color: var(--cst-color-accent); }

@media (max-width: 1100px) {
    .cst-hero,
    .cst-home__content,
    .cst-single-layout,
    .cst-category-shell,
    .cst-footer__widgets,
    .cst-section__grid--3col,
    .cst-archive-grid { grid-template-columns: 1fr; }
    .cst-category-sidebar { position: static; }
    .cst-footer__widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
    .cst-topbar__inner { grid-template-columns: 1fr auto; }
    .cst-topbar__center { justify-content: flex-start; }
    .cst-topbar__right { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 10px; }
    .cst-site-title { font-size: 24px; }
    .cst-nav { display: none; }
    .cst-nav.is-open { display: block; }
    .cst-nav__inner { padding: 12px 0; }
    .cst-primary-menu { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cst-search-form { flex-direction: column; align-items: stretch; }
    .cst-category-hero-gap { height: 110px; margin-bottom: 24px; }
    .cst-category-title,
    .cst-single__title,
    .cst-card--hero .cst-card__title { font-size: 32px; }
    .cst-category-featured-grid,
    .cst-list-item,
    .cst-section__grid--2col,
    .cst-card--small,
    .cst-footer__widgets,
    .cst-footer__bottom { grid-template-columns: 1fr; }
    .cst-list-item { grid-template-columns: 1fr; }
    .cst-list-item__thumb img,
    .cst-category-featured-card__thumb img { height: auto; }
}


.cst-headline-strip {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--cst-color-border);
    border-radius: 12px;
    box-shadow: var(--cst-shadow-soft);
    overflow: hidden;
}
.cst-headline-strip__label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cst-color-primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
    padding: 20px 16px;
}
.cst-headline-strip__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.cst-headline-strip__item {
    padding: 16px 18px;
    border-left: 1px solid var(--cst-color-border);
}
.cst-headline-strip__item h3 {
    font-family: 'Merriweather', serif;
    font-size: 15px;
    line-height: 1.4;
    margin: 6px 0 0;
}

.cst-editorial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr) 320px;
    gap: 24px;
    align-items: start;
}
.cst-editorial-hero__main .cst-card--hero .cst-card__thumb img {
    aspect-ratio: 16 / 9;
}
.cst-editorial-hero__rail {
    display: grid;
    gap: 18px;
}
.cst-editorial-hero__rail .cst-card--small {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    overflow: hidden;
}
.cst-editorial-hero__rail .cst-card--small .cst-card__thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}
.cst-editorial-hero__rail .cst-card--small .cst-card__content {
    padding: 14px;
}
.cst-editorial-hero__rail .cst-card--small .cst-card__title {
    font-size: 19px;
}
.cst-hero-briefs {
    display: grid;
    gap: 12px;
}
.cst-hero-briefs__item {
    background: #fff;
    border: 1px solid var(--cst-color-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--cst-shadow-soft);
}
.cst-hero-briefs__item h3 {
    font-family: 'Merriweather', serif;
    font-size: 17px;
    line-height: 1.45;
    margin: 6px 0 8px;
}
.cst-editorial-hero__sidebar,
.cst-home-magazine-grid__sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}

.cst-home-feature-band {
    background: #fff;
    border: 1px solid var(--cst-color-border);
    border-radius: 12px;
    box-shadow: var(--cst-shadow-soft);
    padding: 22px;
}
.cst-home-feature-band__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.cst-home-feature-band__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cst-home-magazine-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.cst-home-magazine-grid__main {
    min-width: 0;
}
.cst-home-two-column-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.cst-section__header-main {
    min-width: 0;
}
.cst-section__description {
    margin: 6px 0 0;
    color: var(--cst-color-muted);
    font-size: 14px;
}
.cst-section--compact .cst-card__title {
    font-size: 20px;
}
.cst-section--compact .cst-card__thumb img {
    aspect-ratio: 16 / 10;
}

.cst-home-spotlight {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    margin-top: 24px;
    padding: 22px;
    background: linear-gradient(135deg, #09111f 0%, #172133 100%);
    color: #fff;
    border-radius: 14px;
    box-shadow: var(--cst-shadow-soft);
}
.cst-home-spotlight__eyebrow {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.cst-home-spotlight__intro h2 {
    font-family: 'Merriweather', serif;
    font-size: 30px;
    margin: 14px 0 12px;
}
.cst-home-spotlight__intro p {
    color: rgba(255,255,255,0.82);
}
.cst-home-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.cst-home-spotlight .cst-card {
    background: rgba(255,255,255,0.96);
}

.cst-widget--home-ranking .cst-widget__title,
.cst-widget--home-service .cst-widget__title {
    color: #6f6f6f;
}
.cst-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.cst-ranking-list__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.cst-ranking-list__number {
    font-size: 26px;
    line-height: 1;
    color: #c6a100;
    font-weight: 800;
}
.cst-ranking-list__content a {
    display: block;
    font-weight: 700;
    line-height: 1.45;
}
.cst-service-card {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--cst-color-border);
    background: #fff;
}
.cst-service-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.cst-service-card__body {
    padding: 14px;
}
.cst-service-card__body h4 {
    font-family: 'Merriweather', serif;
    font-size: 19px;
    margin-bottom: 8px;
}
.cst-ad-box {
    display: flex;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 10px, #ececec 10px, #ececec 20px);
    color: #6b7280;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .cst-editorial-hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    }
    .cst-editorial-hero__sidebar {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cst-home-magazine-grid {
        grid-template-columns: 1fr;
    }
    .cst-home-magazine-grid__sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cst-home-feature-band__grid,
    .cst-home-spotlight__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .cst-headline-strip,
    .cst-editorial-hero,
    .cst-home-two-column-sections,
    .cst-home-spotlight {
        grid-template-columns: 1fr;
    }
    .cst-headline-strip__items,
    .cst-home-feature-band__grid,
    .cst-home-magazine-grid__sidebar,
    .cst-home-spotlight__grid,
    .cst-editorial-hero__sidebar {
        grid-template-columns: 1fr;
    }
    .cst-headline-strip__item {
        border-left: 0;
        border-top: 1px solid var(--cst-color-border);
    }
    .cst-headline-strip__item:first-child {
        border-top: 0;
    }
    .cst-home-feature-band__header,
    .cst-section__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .cst-headline-strip__label {
        justify-content: flex-start;
    }
    .cst-editorial-hero__rail .cst-card--small {
        grid-template-columns: 1fr;
    }
}

/* V6.1 Homepage UI cleanup */
body.blog .cst-main,
body.home .cst-main,
body.archive .cst-main,
body.category .cst-main {
    padding-top: 24px;
}
.cst-nav__inner {
    min-height: 48px;
}
.cst-primary-menu--editorial {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}
.cst-primary-menu--editorial .current-menu-item a,
.cst-primary-menu--editorial a:hover {
    color: var(--cst-color-accent);
}
.cst-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.cst-home-layout__main {
    min-width: 0;
}
.cst-home-layout__sidebar {
    min-width: 0;
}
.cst-home-layout__sidebar-inner {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}
.cst-editorial-hero--compact {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr);
    gap: 20px;
    margin-bottom: 24px;
}
.cst-editorial-hero--compact .cst-editorial-hero__main,
.cst-editorial-hero--compact .cst-editorial-hero__rail {
    min-width: 0;
}
.cst-editorial-hero--compact .cst-editorial-hero__rail {
    display: grid;
    gap: 14px;
    align-content: start;
}
.cst-headline-strip {
    margin-bottom: 22px;
}
.cst-home-feature-band--list {
    margin-bottom: 28px;
}
.cst-home-feature-band__grid--compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.cst-home .cst-card,
.cst-home .cst-widget,
.cst-home .cst-headline-strip,
.cst-home .cst-home-spotlight,
.cst-home .cst-section {
    box-shadow: var(--cst-shadow-soft);
}
.cst-home .cst-section {
    background: var(--cst-color-surface);
    border: 1px solid var(--cst-color-border);
    border-radius: var(--cst-radius);
    padding: 18px;
    margin-bottom: 22px;
}
.cst-home .cst-section__grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.cst-home .cst-section__grid--3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.cst-home .cst-card {
    background: var(--cst-color-surface);
    border: 1px solid var(--cst-color-border);
    border-radius: var(--cst-radius-sm);
    overflow: hidden;
}
.cst-home .cst-card__content {
    padding: 14px;
}
.cst-home .cst-card__title {
    font-size: 18px;
}
.cst-home .cst-card--hero .cst-card__title {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
}
.cst-home .cst-card--hero .cst-card__thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.cst-home .cst-card--small {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.cst-home .cst-card--small .cst-card__thumb img {
    width: 112px;
    height: 88px;
    object-fit: cover;
}
.cst-home .cst-card--small .cst-card__content {
    padding: 12px 12px 12px 0;
}
.cst-home .cst-card--small .cst-card__title {
    font-size: 15px;
    margin-bottom: 6px;
}
.cst-home .cst-section__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 16px;
}
.cst-home .cst-section__title {
    font-size: 28px;
    margin-bottom: 4px;
}
.cst-home .cst-section__description {
    color: var(--cst-color-muted);
    font-size: 14px;
    max-width: 58ch;
}
.cst-widget__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.cst-widget__more {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--cst-color-muted);
    letter-spacing: .08em;
}
.cst-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.cst-ranking-list__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cst-color-border);
}
.cst-ranking-list__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.cst-ranking-list__number {
    font-size: 22px;
    font-weight: 700;
    color: #b7b7b7;
    line-height: 1;
}
.cst-service-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.cst-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.cst-mini-list__item {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cst-color-border);
}
.cst-mini-list__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.cst-home-two-column-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}
.cst-home-two-column-sections > .cst-section {
    margin-bottom: 0;
}
.cst-home-spotlight {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
    gap: 20px;
    padding: 24px;
    border-radius: var(--cst-radius);
    margin-bottom: 28px;
}
.cst-home-spotlight__grid {
    display: grid;
    gap: 12px;
}
.cst-home-spotlight .cst-card--small {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
}
@media (max-width: 1024px) {
    .cst-home-layout {
        grid-template-columns: 1fr;
    }
    .cst-home-layout__sidebar-inner {
        position: static;
    }
}
@media (max-width: 840px) {
    .cst-editorial-hero--compact,
    .cst-home-two-column-sections,
    .cst-home-spotlight {
        grid-template-columns: 1fr;
    }
    .cst-home .cst-section__grid--2col,
    .cst-home .cst-section__grid--3col {
        grid-template-columns: 1fr;
    }
}

/* V6.2 header + dynamic drawer */
body.cst-drawer-open {
    overflow: hidden;
}
.cst-header {
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.cst-topbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
}
.cst-topbar__inner {
    min-height: 80px;
}
.cst-quick-links {
    display: flex;
    align-items: center;
}
.cst-quick-links__menu {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cst-header-meta {
    display: grid;
    gap: 2px;
    text-align: right;
    margin-right: 6px;
}
.cst-header-meta__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a8a8a;
    font-weight: 700;
}
.cst-header-meta__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--cst-color-primary);
}
.cst-nav {
    position: relative;
    z-index: 20;
}
.cst-primary-menu {
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.cst-primary-menu::-webkit-scrollbar {
    display: none;
}
.cst-primary-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 2px solid transparent;
}
.cst-primary-menu > .current-menu-item > a,
.cst-primary-menu > li > a:hover {
    color: var(--cst-color-accent);
    border-color: var(--cst-color-accent);
}
.cst-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.38);
    z-index: 80;
}
.cst-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(100%, 340px);
    height: 100vh;
    background: #fff;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .24s ease;
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0,0,0,0.12);
    padding: 14px 14px 20px;
}
.cst-drawer.is-open {
    transform: translateX(0);
}
.cst-drawer__header,
.cst-drawer__tools {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cst-drawer__header {
    justify-content: space-between;
    margin-bottom: 16px;
}
.cst-drawer__feature,
.cst-drawer__cta,
.cst-drawer__nav,
.cst-drawer__footer-links {
    margin-bottom: 16px;
}
.cst-drawer__feature-link {
    display: grid;
    grid-template-columns: 68px minmax(0,1fr);
    gap: 12px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--cst-color-border);
    border-radius: 10px;
    background: #fafafa;
}
.cst-drawer__feature-thumb img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
}
.cst-drawer__feature-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--cst-color-accent);
    margin-bottom: 4px;
}
.cst-drawer__feature-body h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
}
.cst-drawer__cta .cst-button {
    width: 100%;
}
.cst-drawer-menu,
.cst-drawer-secondary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cst-drawer-menu > li,
.cst-drawer-secondary-menu > li {
    border-bottom: 1px solid var(--cst-color-border);
}
.cst-drawer-menu > li > a,
.cst-drawer-secondary-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}
.cst-drawer-menu > li.menu-item-has-children > a::after,
.cst-drawer-secondary-menu > li > a::after {
    content: '›';
    color: #666;
    font-size: 18px;
}
.cst-drawer-menu .sub-menu {
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 0 14px;
}
.cst-drawer-menu .sub-menu li a {
    display: block;
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}
@media (max-width: 900px) {
    .cst-quick-links,
    .cst-header-meta {
        display: none;
    }
    .cst-topbar__inner {
        grid-template-columns: auto 1fr auto;
    }
}
@media (max-width: 782px) {
    .cst-topbar__inner {
        grid-template-columns: auto 1fr auto;
        min-height: 72px;
    }
    .cst-topbar__center {
        justify-content: center;
    }
    .cst-topbar__right {
        grid-column: auto;
        padding-bottom: 0;
    }
}


/* V6.3 UI polish */
:root {
    --cst-color-bg: #f2f2f2;
    --cst-color-primary: #0b1220;
    --cst-color-accent: #e79010;
    --cst-color-accent-2: #ff4167;
    --cst-shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.05);
}
body {
    background: #f1f1f1;
}
.cst-header {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.cst-topbar {
    background: rgba(255,255,255,0.98);
    border-bottom-color: #ebebeb;
}
.cst-topbar__inner {
    min-height: 68px;
    gap: 16px;
}
.cst-topbar__left,
.cst-topbar__right {
    gap: 12px;
}
.custom-logo {
    max-height: 42px;
}
.cst-site-title {
    font-size: 28px;
    line-height: 1;
}
.cst-icon-button {
    width: 34px;
    height: 34px;
    font-size: 17px;
    color: #111827;
}
.cst-icon-button:hover {
    background: #f3f4f6;
}
.cst-header-meta {
    gap: 0;
    margin-right: 2px;
}
.cst-header-meta__label {
    font-size: 10px;
}
.cst-header-meta__value {
    font-size: 12px;
}
.cst-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(255, 65, 103, 0.2);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cst-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(255, 65, 103, 0.24);
}
.cst-button--small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
}
.cst-nav {
    background: rgba(255,255,255,0.98);
}
.cst-nav__inner {
    min-height: 42px;
}
.cst-primary-menu {
    gap: 16px;
    font-size: 12.5px;
    font-weight: 700;
}
.cst-primary-menu > li > a {
    min-height: 42px;
    color: #374151;
}
.cst-primary-menu > .current-menu-item > a,
.cst-primary-menu > li > a:hover {
    color: #111827;
    border-color: var(--cst-color-accent);
}
.cst-search-panel__inner {
    padding: 10px 0 14px;
}
.cst-search-field {
    height: 44px;
    border-color: #dedede;
}
.cst-headline-strip {
    margin-top: 20px;
    background: #49515a;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.cst-headline-strip__label {
    background: #3f454c;
    justify-content: flex-start;
    padding: 18px 22px;
    font-size: 11px;
    letter-spacing: .08em;
}
.cst-headline-strip__item {
    padding: 14px 18px 16px;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.cst-headline-strip__item .cst-card__category {
    color: #f0a339;
    margin-bottom: 2px;
}
.cst-headline-strip__item h3 {
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255,255,255,0.9);
}
.cst-headline-strip__item h3 a:hover {
    color: #fff;
}
.cst-home-layout {
    gap: 24px;
}
.cst-editorial-hero--compact {
    gap: 18px;
    margin-bottom: 20px;
}
.cst-card,
.cst-widget,
.cst-section,
.cst-home-feature-band,
.cst-hero-briefs__item,
.cst-service-card {
    border-color: #e7e7e7;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}
.cst-card__content {
    padding: 16px;
}
.cst-card--hero {
    border-radius: 14px;
}
.cst-card--hero .cst-card__thumb img {
    aspect-ratio: 16 / 9;
    min-height: 360px;
}
.cst-card--hero .cst-card__content {
    padding: 18px 20px 20px;
}
.cst-card--hero .cst-card__title {
    font-size: 34px;
    line-height: 1.14;
    margin-bottom: 10px;
}
.cst-card--small {
    border-radius: 12px;
}
.cst-editorial-hero__rail {
    gap: 14px;
}
.cst-editorial-hero__rail .cst-card--small {
    grid-template-columns: 118px minmax(0, 1fr);
}
.cst-editorial-hero__rail .cst-card--small .cst-card__thumb img {
    min-height: 100%;
}
.cst-editorial-hero__rail .cst-card--small .cst-card__content {
    padding: 12px 13px;
}
.cst-editorial-hero__rail .cst-card--small .cst-card__title {
    font-size: 17px;
    line-height: 1.34;
}
.cst-home-feature-band {
    padding: 18px;
}
.cst-home-feature-band__header {
    margin-bottom: 14px;
}
.cst-home-feature-band__grid {
    gap: 14px;
}
.cst-home-feature-band__grid--compact .cst-card--small {
    grid-template-columns: 110px minmax(0, 1fr);
}
.cst-home-layout__sidebar-inner,
.cst-category-sidebar {
    top: 104px;
}
.cst-widget {
    padding: 16px;
    border-radius: 12px;
}
.cst-widget__heading {
    margin-bottom: 10px;
}
.cst-widget__title {
    font-size: 17px;
    color: #616161;
}
.cst-ranking-list {
    gap: 10px;
}
.cst-ranking-list__item {
    gap: 10px;
    padding: 8px 0;
}
.cst-ranking-list__number {
    font-size: 24px;
}
.cst-ranking-list__content a {
    font-size: 14px;
    line-height: 1.38;
}
.cst-section {
    padding: 18px;
    margin-bottom: 20px;
}
.cst-section__title {
    font-size: 24px;
}
.cst-section__description {
    font-size: 13px;
}
.cst-home-spotlight {
    gap: 18px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
}
.cst-home-spotlight__intro h2 {
    font-size: 28px;
}
.cst-footer {
    margin-top: 28px;
}
.cst-drawer-overlay {
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(2px);
}
.cst-drawer {
    width: min(100%, 356px);
    padding: 18px 16px 24px;
    box-shadow: 14px 0 36px rgba(17, 24, 39, 0.16);
}
.cst-drawer__header {
    margin-bottom: 18px;
}
.cst-drawer__feature-link {
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
}
.cst-drawer__feature-kicker {
    color: #cf7e00;
}
.cst-drawer__feature-body h3 {
    font-size: 14px;
}
.cst-drawer__cta {
    margin-bottom: 18px;
}
.cst-drawer-menu > li,
.cst-drawer-secondary-menu > li {
    border-bottom-color: #ececec;
}
.cst-drawer-menu > li > a,
.cst-drawer-secondary-menu > li > a {
    min-height: 50px;
    font-size: 14.5px;
    font-weight: 700;
}
.cst-drawer-menu > li > a:hover,
.cst-drawer-secondary-menu > li > a:hover {
    color: #111827;
}
.cst-drawer-menu .sub-menu {
    padding: 2px 0 10px 14px;
}
.cst-drawer-menu .sub-menu li a {
    padding: 7px 0;
    font-size: 13.5px;
}
@media (max-width: 1200px) {
    .cst-card--hero .cst-card__thumb img {
        min-height: 320px;
    }
}
@media (max-width: 900px) {
    .cst-topbar__inner {
        min-height: 64px;
    }
    .custom-logo {
        max-height: 38px;
    }
    .cst-button--small {
        min-height: 36px;
        padding: 0 13px;
    }
}
@media (max-width: 782px) {
    .cst-topbar__inner {
        min-height: 62px;
    }
    .cst-site-title {
        font-size: 22px;
    }
    .cst-headline-strip {
        margin-top: 12px;
    }
    .cst-card--hero .cst-card__thumb img {
        min-height: 240px;
    }
    .cst-card--hero .cst-card__title {
        font-size: 28px;
    }
}

/* V6.4 search reveal + improved dropdowns */
.cst-header-search,
.cst-drawer-search {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cst-search-reveal {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 80;
}

.cst-search-reveal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cst-header-search__reveal {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    width: min(420px, calc(100vw - 160px));
}

.cst-header-search__reveal.is-active {
    transform: translateY(-50%) translateX(0);
}

.cst-header-search__reveal .cst-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--cst-color-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(10, 18, 32, 0.12);
}

.cst-header-search__reveal .cst-search-form label {
    flex: 1 1 auto;
    min-width: 0;
}

.cst-header-search__reveal .cst-search-field {
    height: 44px;
    border: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    padding: 0 10px;
}

.cst-header-search__reveal .cst-search-submit {
    height: 44px;
    white-space: nowrap;
    padding: 0 18px;
}

.cst-drawer-search__reveal {
    left: 0;
    top: calc(100% + 12px);
    width: min(320px, calc(100vw - 48px));
    transform: translateY(-4px);
}

.cst-drawer-search__reveal.is-active {
    transform: translateY(0);
}

.cst-drawer-search__reveal .cst-search-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: #101827;
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.cst-drawer-search__reveal .cst-search-field {
    height: 44px;
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #fff;
}

.cst-drawer-search__reveal .cst-search-field::placeholder {
    color: rgba(255,255,255,.7);
}

.cst-drawer-search__reveal .cst-search-submit {
    height: 42px;
    width: 100%;
}

.cst-primary-menu > li {
    position: relative;
}

.cst-primary-menu > li > .sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    min-width: 250px;
    list-style: none;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--cst-color-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 60;
}

.cst-primary-menu > li:hover > .sub-menu,
.cst-primary-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.cst-primary-menu > li > .sub-menu > li > a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.cst-primary-menu > li > .sub-menu > li > a:hover,
.cst-primary-menu > li > .sub-menu > li > a:focus {
    background: #f5f6f8;
    color: var(--cst-color-primary);
}

@media (max-width: 980px) {
    .cst-header-search__reveal {
        width: min(340px, calc(100vw - 120px));
    }
}

@media (max-width: 782px) {
    .cst-topbar__inner {
        grid-template-columns: auto 1fr auto;
    }

    .cst-topbar__left {
        gap: 6px;
    }

    .cst-header-search__reveal {
        left: 0;
        top: calc(100% + 10px);
        width: min(320px, calc(100vw - 24px));
        transform: translateY(-6px);
    }

    .cst-header-search__reveal.is-active {
        transform: translateY(0);
    }

    .cst-header-search__reveal .cst-search-form {
        border-radius: 18px;
        padding: 10px;
    }

    .cst-header-search__reveal .cst-search-form label {
        width: 100%;
    }

    .cst-header-search__reveal .cst-search-submit {
        flex: 0 0 auto;
    }
}

/* V6.5 header refinement */
.cst-header {
    box-shadow: 0 6px 24px rgba(10, 18, 32, 0.05);
}

.cst-topbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(150%) blur(10px);
}

.cst-topbar__inner {
    min-height: 76px;
    gap: 18px;
}

.cst-topbar__left,
.cst-topbar__right {
    min-width: 0;
}

.cst-header-meta {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex-direction: column;
    line-height: 1.15;
}

.cst-header-meta__label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7b8190;
    font-weight: 700;
}

.cst-header-meta__value {
    font-size: 14px;
    font-weight: 800;
    color: var(--cst-color-primary);
}

.cst-logo-wrap {
    justify-content: center;
}

.cst-site-title {
    font-size: clamp(28px, 2.4vw, 40px);
    letter-spacing: -0.03em;
}

.cst-nav {
    position: relative;
    z-index: 40;
    background: rgba(255,255,255,0.98);
}

.cst-nav__inner {
    min-height: 52px;
    justify-content: center;
    overflow: visible;
}

.cst-primary-menu {
    width: 100%;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 700;
}

.cst-primary-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.cst-primary-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: #293241;
    transition: color .2s ease;
}

.cst-primary-menu > li.menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: .6;
}

.cst-primary-menu > li:hover > a,
.cst-primary-menu > li:focus-within > a,
.cst-primary-menu > li.is-open > a {
    color: var(--cst-color-primary);
}

.cst-primary-menu > li > .sub-menu {
    top: calc(100% - 4px);
    left: 50%;
    min-width: 280px;
    padding: 10px;
    border-radius: 16px;
    transform: translateX(-50%) translateY(10px);
    box-shadow: 0 20px 48px rgba(10, 18, 32, 0.16);
    z-index: 120;
}

.cst-primary-menu > li > .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.cst-primary-menu > li:hover > .sub-menu,
.cst-primary-menu > li:focus-within > .sub-menu,
.cst-primary-menu > li.is-open > .sub-menu {
    transform: translateX(-50%) translateY(0);
}

.cst-primary-menu > li > .sub-menu > li + li {
    margin-top: 2px;
}

.cst-primary-menu > li > .sub-menu > li > a {
    padding: 11px 12px;
    font-size: 13px;
}

.cst-button--small {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(255, 52, 92, 0.22);
}

@media (max-width: 1100px) {
    .cst-primary-menu {
        gap: 20px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .cst-topbar__inner {
        grid-template-columns: auto 1fr auto;
    }

    .cst-topbar__center {
        justify-content: center;
    }

    .cst-header-meta {
        display: none;
    }

    .cst-primary-menu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 18px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .cst-primary-menu::-webkit-scrollbar {
        display: none;
    }

    .cst-primary-menu > li > a {
        min-height: 48px;
        white-space: nowrap;
    }

    .cst-primary-menu > li > .sub-menu {
        left: 0;
        transform: translateX(0) translateY(10px);
    }

    .cst-primary-menu > li:hover > .sub-menu,
    .cst-primary-menu > li:focus-within > .sub-menu,
    .cst-primary-menu > li.is-open > .sub-menu {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 782px) {
    .cst-topbar__inner {
        min-height: 68px;
    }

    .cst-site-title {
        font-size: 26px;
    }

    .cst-nav__inner {
        min-height: 46px;
    }

    .cst-primary-menu {
        gap: 16px;
        font-size: 12px;
    }

    .cst-button--small {
        min-height: 40px;
        padding: 0 14px;
    }
}


/* V6.6 submenu visibility fix */
.cst-header,
.cst-topbar,
.cst-nav,
.cst-nav__inner,
.cst-primary-menu,
.cst-primary-menu > li {
    overflow: visible;
}

.cst-header {
    z-index: 300;
}

.cst-nav {
    z-index: 260;
}

.cst-primary-menu > li > .sub-menu {
    top: calc(100% + 2px);
    z-index: 999;
}

@media (max-width: 782px) {
    .cst-primary-menu > li > .sub-menu {
        top: 0;
        z-index: 999;
    }
}

/* V6.7 single editorial article template */
.cst-article-page {
    padding-bottom: 48px;
}
.cst-article {
    max-width: 100%;
}
.cst-article__header {
    width: min(100%, 860px);
    margin: 0 auto 22px;
}
.cst-article__eyebrow {
    margin-bottom: 6px;
}
.cst-article__title {
    font-family: 'Merriweather', serif;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    margin: 0 0 14px;
    color: var(--cst-color-primary);
}
.cst-article__deck {
    font-size: 20px;
    line-height: 1.55;
    color: #4b5563;
    margin-bottom: 18px;
    max-width: 52ch;
}
.cst-article__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cst-color-border);
}
.cst-article__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--cst-color-muted);
    font-size: 13px;
    font-weight: 600;
}
.cst-article__meta-sep {
    color: #b5b5b5;
}
.cst-article__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cst-article__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--cst-color-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--cst-shadow-soft);
}
.cst-article__hero-media {
    margin: 0 auto 22px;
    width: min(100%, 860px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--cst-shadow-soft);
}
.cst-article__hero-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.cst-article__grid {
    display: grid;
    grid-template-columns: minmax(0, 860px) 320px;
    gap: 28px;
    align-items: start;
    justify-content: center;
}
.cst-article__main,
.cst-article__sidebar {
    min-width: 0;
}
.cst-article__sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}
.cst-article__content {
    background: #fff;
    border: 1px solid var(--cst-color-border);
    border-radius: 12px;
    box-shadow: var(--cst-shadow-soft);
    padding: 30px;
    font-size: 18px;
    line-height: 1.88;
    color: #1f2937;
}
.cst-article__content > *:last-child {
    margin-bottom: 0;
}
.cst-article__content h2,
.cst-article__content h3,
.cst-article__content h4 {
    font-family: 'Merriweather', serif;
    color: var(--cst-color-primary);
    margin-top: 34px;
    margin-bottom: 16px;
}
.cst-article__content h2 { font-size: 32px; }
.cst-article__content h3 { font-size: 26px; }
.cst-article__content p,
.cst-article__content ul,
.cst-article__content ol,
.cst-article__content blockquote {
    margin-bottom: 20px;
}
.cst-article__content blockquote {
    margin-inline: 0;
    padding: 18px 22px;
    border-left: 4px solid var(--cst-color-accent);
    background: #fff7eb;
    border-radius: 0 10px 10px 0;
    font-size: 20px;
    line-height: 1.7;
    color: #3a3a3a;
}
.cst-article__content figure {
    margin: 28px 0;
}
.cst-article__content figcaption {
    margin-top: 8px;
    color: var(--cst-color-muted);
    font-size: 13px;
}
.cst-article__source-box,
.cst-article__author-box {
    margin-top: 24px;
}
.cst-article__subheading {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    margin-bottom: 14px;
}
.cst-article__source-card,
.cst-article__author-box {
    background: #fff;
    border: 1px solid var(--cst-color-border);
    border-radius: 12px;
    box-shadow: var(--cst-shadow-soft);
    padding: 22px;
}
.cst-article__author-box {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.cst-article__author-avatar img {
    border-radius: 999px;
}
.cst-article__author-label {
    display: inline-block;
    color: var(--cst-color-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.cst-article__author-name {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    margin-bottom: 8px;
}
.cst-article__related,
.cst-article__latest {
    margin-top: 24px;
}
.cst-article__related-grid,
.cst-article__latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.cst-section__grid--4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cst-card--compact .cst-card__thumb img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.cst-card--compact .cst-card__content {
    padding: 12px 14px 14px;
}
.cst-card--compact .cst-card__title {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 0;
}
.single .cst-widget,
.single .cst-service-card,
.single .cst-widget--ranking,
.single .cst-widget--service {
    background: #fff;
}
@media (max-width: 1200px) {
    .cst-article__grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
    .cst-article__related-grid,
    .cst-article__latest-grid,
    .cst-section__grid--4col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 960px) {
    .cst-article__grid {
        grid-template-columns: 1fr;
    }
    .cst-article__sidebar {
        position: static;
    }
    .cst-article__header,
    .cst-article__hero-media {
        width: 100%;
    }
    .cst-article__related-grid,
    .cst-article__latest-grid,
    .cst-section__grid--4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .cst-article__content {
        padding: 22px 18px;
        font-size: 17px;
        line-height: 1.8;
    }
    .cst-article__title {
        font-size: 32px;
    }
    .cst-article__deck {
        font-size: 18px;
    }
    .cst-article__author-box {
        grid-template-columns: 1fr;
    }
    .cst-article__related-grid,
    .cst-article__latest-grid,
    .cst-section__grid--4col {
        grid-template-columns: 1fr;
    }
}
