/* One dark reading system across articles, collections, search and related cards. */
.ad-editorial { background: #0e101a; color: #e5e1ef; }
.ad-editorial .ad-article-opening {
    background: radial-gradient(ellipse at 85% 0, #7139c627, transparent 65%), #11121e;
    border-bottom: 1px solid #b18bdc20;
    padding-block: clamp(48px, 6vw, 84px) 38px !important;
}
.ad-editorial .ad-single-title { color: #faf7ff; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.12; text-wrap: balance; }
.ad-editorial .ad-back-link { margin-bottom: 28px; }
.ad-editorial .ad-byline { color: #b4adc5; gap: 10px 20px; margin-bottom: 0; }
.ad-editorial .ad-byline:has(+ .ad-article-lead) { margin-bottom: 28px; }
.ad-editorial .ad-reading-time { color: #c1b1d9; }
.ad-editorial .ad-article-body { padding-top: 40px; padding-bottom: 64px; color: #cbc6d8; font-size: 18px; line-height: 1.8; }
.ad-editorial .ad-article-body :is(h2,h3,h4,strong) { color: #f4f0fb; }
.ad-editorial .ad-article-body h2 { font-size: clamp(27px, 2.5vw, 34px); line-height: 1.24; text-wrap: balance; }
.ad-editorial .ad-article-body h3 { font-size: 24px; line-height: 1.3; }
.ad-editorial .ad-article-body p { margin-block: 0 1.35em; }
.ad-editorial main a:not(.wp-block-button__link):not(.wp-block-read-more) { color: #c7a4ff; text-underline-offset: .2em; }
.ad-editorial main a:not(.wp-block-button__link):hover { color: #eadbff; }
.ad-editorial .ad-article-body :is(code,pre) { background: #1b1c2b; color: #e5d8fb; }
.ad-editorial .ad-article-body :not(pre)>code { padding: .12em .3em; border-radius: 4px; overflow-wrap: anywhere; }
.ad-editorial .ad-article-body pre { border: 1px solid #aa85d62d; }
.ad-editorial .ad-article-body blockquote { background: linear-gradient(100deg,#7235be20,transparent); border-left: 2px solid #aa71ef; padding: 22px 26px; border-radius: 0 12px 12px 0; }
.ad-editorial .ad-article-body blockquote p:last-child { margin-bottom: 0; }
.ad-editorial .ad-article-body figcaption { color: #b5adca; }
.ad-editorial .wp-block-table th { background: #242033; color: #f4ecff; text-align: left; }
.ad-editorial .wp-block-table :is(td,th) { border-color: #a787cf35; }
.ad-editorial .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #ffffff04; }
.ad-editorial .ad-toc { background: #1a1728; border: 1px solid #a17acc40; padding: 20px 24px; border-radius: 14px; margin-bottom: 30px; }
.ad-editorial .ad-toc summary { color: #f4edff; font-weight: 500; cursor: pointer; }
.ad-editorial .ad-toc ul { margin-bottom: 0; }
.ad-editorial .ad-article-lead img { width: 100%; max-height: 480px; object-fit: cover; }
.ad-editorial .ad-system { background: radial-gradient(ellipse at 95% 0,#6933a921,transparent 48%); }
.ad-editorial .ad-system h1 { color: #f7f2ff; text-wrap: balance; }
.ad-article-grid { gap: 28px; }
.ad-article-grid > li { display: flex; }
.ad-article-card, .am-r5-collection .ad-article-card {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    background: #191a28; border: 1px solid #a580d32e; border-radius: 18px;
    padding: 0; overflow: hidden; transition: border-color .2s, background .2s;
}
.ad-article-card:hover { border-color: #b781f780; background: #1d1c2e; }
.ad-article-card .wp-block-post-featured-image { border-radius: 0; margin: 0; background: #242036; }
.ad-article-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16/10; max-height: none; }
.ad-article-card .ad-card-content, .am-r5-collection .ad-card-content { display: flex; flex-direction: column; flex: 1; gap: 0; padding: 24px; }
.ad-article-card > .ad-card-content { margin-block: 0 !important; }
.ad-article-card .ad-card-content > * { margin-block-start: 0; }
.ad-article-card .ad-card-content h3 { font-size: clamp(22px,1.8vw,27px); line-height: 1.22; margin: 13px 0 16px; text-wrap: balance; }
.ad-article-card .ad-card-content h3 a { color: #f7f1ff !important; text-decoration: none; }
.ad-article-card .ad-card-content .wp-block-post-date { color: #aaa2bb; font-size: 11px; }
.ad-article-card .ad-card-content .wp-block-post-excerpt { color: #c0b8d1; font-size: 15px; line-height: 1.65; margin: 0 0 24px; }
.ad-article-card .wp-block-post-excerpt__excerpt { margin: 0; }
.ad-article-card .wp-block-read-more { margin-top: auto; color: #ceb0ff; text-decoration: none; align-self: flex-start; }
.ad-article-card .wp-block-read-more::after { content: ''; display: inline-block; width: 15px; height: 15px; margin-left: 9px; vertical-align: -3px; background: currentColor; mask: url('../icons/arrow-up-right.svg') center/contain no-repeat; }
.ad-article-card .ad-article-category { color: #bb96ed; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 13px; }
.ad-article-card:not(:has(.wp-block-post-featured-image))::before { content: none; display: none; }
.ad-article-card:not(:has(.wp-block-post-featured-image)) { background: radial-gradient(ellipse at 95% 0,#8f41cf21,transparent 65%), #191a28; border-top-color: #b273d6a6; }
.ad-article-card:not(:has(.wp-block-post-featured-image)) .ad-card-content { padding-top: 30px; }
.ad-search input, .am-r5-page .ad-search input { background: #191927; color: #f4eefb; border-color: #9b7bc357; }
.ad-search input::placeholder { color: #b6aec5; }
.ad-search input:focus-visible { outline: 2px solid #be90ff; outline-offset: 3px; }
.wp-block-query-pagination { border-top-color: #a182c638; color: #ceb0ff; align-items: center; }
.page-numbers.current { background: #7839d6; color: #fff; }
.wp-block-query-pagination a { text-decoration: none; }
.am-r5-insight-paths .am-r5-card { min-height: 0; }
.am-r5-insight-paths .am-r5-number { display: none; }
.am-r5-insight-paths .am-insight-category-art { margin-top: 0; }
.search .ad-article-card { display: grid; grid-template-columns: 180px minmax(0,1fr); padding: 0; margin-bottom: 22px; gap: 0; }
.search .ad-article-card .wp-block-post-featured-image { height: 100%; }
.search .ad-article-card .wp-block-post-featured-image img { height: 100%; max-height: 260px; }
.search .ad-article-card:not(:has(.wp-block-post-featured-image)) { display: block; }
.search .ad-card-content .wp-block-post-excerpt { display: block; margin-bottom: 16px; }
@media (max-width: 1000px) and (min-width: 701px) { .ad-article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
    .ad-editorial .ad-article-body { font-size: 17px; padding-top: 28px; }
    .ad-editorial .ad-article-opening { padding-block: 36px 28px !important; }
    .ad-editorial .ad-single-title { font-size: 34px; }
    .ad-editorial .ad-toc { padding: 18px; }
    .ad-article-grid { gap: 22px; }
    .ad-article-card .ad-card-content, .am-r5-collection .ad-card-content { padding: 22px; }
    .search .ad-article-card { grid-template-columns: 1fr; }
    .search .ad-article-card .wp-block-post-featured-image img { aspect-ratio: 16/8; max-height: 210px; }
    .ad-search { width: 100%; }
    .ad-search input { width: 0; flex: 1; }
}
