.site > .an-single { padding: 24px 0 32px; }
.an-single { background: var(--an-content-background); }
.an-breadcrumbs { padding: 0 24px 24px; font-size: 12px; color: var(--an-muted); overflow-wrap: anywhere; }
.an-article-layout { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,3fr); gap: 28px; padding: 0 24px 24px; align-items: start; }
.an-article-layout--wide { grid-template-columns: minmax(0,1fr); }
.an-article-main, .an-article-sidebar { min-width: 0; }
.an-article-sidebar { display: grid; gap: 24px; }
.an-article { margin: 0; }
.an-article-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.an-article-header h1 { font-size: clamp(28px,3vw,42px); line-height: 1.22; margin: 18px 0; overflow-wrap: anywhere; }
.an-article-deck { border-left: 3px solid var(--an-content-accent); padding-left: 14px; margin: 20px 0; font-size: 17px; line-height: 1.6; }
.an-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--an-muted); }
.an-article-meta a, .an-article-meta time { display: inline-flex; align-items: center; gap: 5px; }
.an-article-meta .avatar { width: 24px; height: 24px; border-radius: 50%; }
.an-article-image { aspect-ratio: 16 / 9; overflow: hidden; }
.an-article-body { margin-top: 22px; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; display: flow-root; }
.an-article-body > :first-child { margin-top: 0; }
.an-article-body img, .an-article-body video, .an-article-body iframe { max-width: 100%; }
.an-article-body figure { max-width: 100%; margin-inline: 0; }
.an-article-body a { text-decoration: underline; text-underline-offset: 3px; }
.an-article-body h2 { font-size: 28px; line-height: 1.3; }
.an-article-body h3 { font-size: 23px; line-height: 1.35; }
.an-article-body blockquote { border-left: 3px solid var(--an-content-accent); margin-inline: 0; padding-left: 20px; color: var(--an-muted); }
.an-article-body pre { overflow: auto; background: var(--an-surface); color: var(--an-text); padding: 16px; }
.an-article-body .wp-block-table { overflow-x: auto; }
.an-article-body th, .an-article-body td { border: 1px solid var(--an-border); padding: 8px; }
.an-article-tags { margin-top: 20px; font-size: 13px; }
.an-writer-profile { text-align: center; padding: 6px 14px 14px; }
.an-writer-profile .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.an-writer-profile h3 { margin: 12px 0; font-size: 18px; }
.an-writer-profile p { font-size: 14px; line-height: 1.65; white-space: pre-line; }
.an-writer-profile > a:last-child { font-size: 12px; }
.an-related { margin-top: 32px; }
.an-related .an-missed-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.an-related .an-missed-visual > a { height: 170px; }
.an-single .comments-area { margin-top: 32px; border-top: 1px solid var(--an-border); padding-top: 24px; }
.an-single .comment-list { margin: 0; padding-left: 20px; }
.an-single .comment-body { margin-bottom: 24px; font-size: 14px; }
.an-single .comment-meta { color: var(--an-muted); font-size: 12px; }
.an-single .comment-form textarea, .an-single .comment-form input:not([type=checkbox]):not([type=submit]), .an-single .post-password-form input[type=password] { max-width: 100%; background: var(--an-surface); color: var(--an-text); border: 1px solid var(--an-border); padding: 10px; }
.an-single .comment-form textarea { width: 100%; }
.an-single input[type=submit] { background: var(--an-content-accent); color: var(--an-on-accent); border: 0; padding: 12px 18px; cursor: pointer; }
@media(max-width:1000px) { .an-article-layout { grid-template-columns: minmax(0,1fr); } .an-article-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) { .an-article-layout { padding-inline: 14px; } .an-breadcrumbs { padding-inline: 14px; } .an-article-sidebar, .an-related .an-missed-grid { grid-template-columns: minmax(0,1fr); } .an-article-body { font-size: 16px; } .an-related .an-missed-visual > a { height: 210px; } }

.an-related .an-news-tabs { margin-bottom: 14px; border-color: var(--an-content-accent); }
.an-related .an-news-tabs button { flex: 0 1 auto; font-size: 11px; font-weight: 800; }
.an-related .an-news-tabs button[aria-selected="true"] { background: var(--an-content-accent); }
.an-related .an-news-tabs button[aria-selected="true"] .an-tab-icon { background: var(--an-content-accent); }
.an-related.is-ready .an-list-heading, .an-related [hidden] { display: none; }

/* Recommendation tabs and discussion styling. */
.an-related .an-news-tabs { gap: 8px; flex-wrap: wrap; }
.an-single .comments-area { border-top: 0; margin-top: 36px; padding-top: 0; }
.an-single .comment-reply-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: fit-content; margin: 0 0 20px; padding: 11px 15px; background: var(--an-content-accent); color: var(--an-on-accent); font-size: 12px; font-weight: 800; line-height: 1.4; text-transform: uppercase; }
.an-single .comment-reply-title a { color: inherit; }
.an-single .comment-reply-title small { font-size: 10px; }
.an-single .comment-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.an-single .comment-form > p { grid-column: 1 / -1; margin: 0; }
.an-single .comment-form .comment-form-author, .an-single .comment-form .comment-form-email { grid-column: auto; }
.an-single .comment-form .logged-in-as, .an-single .comment-form .comment-notes { color: var(--an-muted); font-size: 12px; line-height: 1.7; }
.an-single .comment-form .logged-in-as a { text-decoration: underline; text-underline-offset: 3px; }
.an-single .comment-form label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.an-single .comment-form textarea, .an-single .comment-form input:not([type=checkbox]):not([type=submit]):not([type=hidden]) { width: 100%; box-sizing: border-box; border-radius: 0; padding: 13px 14px; font-size: 14px; line-height: 1.6; transition: border-color .2s ease; }
.an-single .comment-form textarea { min-height: 170px; height: 170px; resize: vertical; }
.an-single .comment-form textarea:focus, .an-single .comment-form input:focus { border-color: var(--an-content-accent); outline: 2px solid var(--an-focus); outline-offset: 2px; }
.an-single .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.an-single .comment-form-cookies-consent input { margin-top: 4px; accent-color: var(--an-content-accent); }
.an-single .comment-form-cookies-consent label { font-size: 12px; font-weight: 400; color: var(--an-muted); line-height: 1.6; margin: 0; }
.an-single .comment-form .submit { border-radius: 0; padding: 13px 20px; font-size: 12px; font-weight: 800; line-height: 1.4; text-transform: uppercase; transition: background-color .2s ease; }
.an-single .comment-form .submit:hover { background: color-mix(in srgb,var(--an-content-accent) 80%,var(--an-overlay)); }
.an-single .comments-title { font-size: 20px; line-height: 1.4; padding-bottom: 12px; border-bottom: 2px solid var(--an-content-accent); }
.an-single .comment-list { list-style: none; padding: 0; }
.an-single .comment-list .children { list-style: none; margin: 0 0 0 20px; padding: 0; }
.an-single .comment-body { padding: 18px; background: var(--an-surface); border-left: 2px solid var(--an-border); margin-bottom: 14px; }
.an-single .comment-author .avatar { width: 36px; height: 36px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.an-single .comment-metadata { margin-top: 8px; font-size: 11px; }
.an-single .comment-content { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.an-single .comment-reply-link { display: inline-block; font-size: 11px; font-weight: 700; padding: 6px 10px; border: 1px solid var(--an-border); }
.an-single .comment-reply-link:hover { background: var(--an-content-accent); color: var(--an-on-accent); text-decoration: none; }
@media(max-width:620px) { .an-single .comment-form { grid-template-columns: minmax(0,1fr); } .an-single .comment-list .children { margin-left: 12px; } }
@media(prefers-reduced-motion:reduce) { .an-single .comment-form textarea, .an-single .comment-form input { transition: none; } }

.an-article-sidebar .an-trending .an-story-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; padding: 0; }
.an-article-sidebar .an-trending .an-story-list li { margin: 0; }

.an-post-rating { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; margin-top: 28px; padding: 16px 22px; background: var(--an-surface); border-top: 2px solid var(--an-content-accent); }
.an-post-rating h2 { margin: 0; font-size: 18px; }
.an-rating-summary, .an-rating-status { font-size: 12px; color: var(--an-muted); line-height: 1.6; margin: 8px 0; }
.an-rating-form { display: contents; }
.an-rating-stars { display: flex; gap: 8px; margin: 0; border: 0; padding: 0; }
.an-rating-stars label { position: relative; cursor: pointer; line-height: 1; }
.an-rating-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.an-rating-stars label > span[aria-hidden] { display: block; font-size: 36px; color: var(--an-muted); transition: color .15s ease; }
.an-rating-stars .is-lit > span[aria-hidden], .an-rating-stars input:checked + span { color: var(--an-content-accent); }
.an-rating-stars input:focus-visible + span { outline: 2px solid var(--an-focus); outline-offset: 3px; }
.an-rating-actions { display: flex; gap: 6px; flex-direction: column; align-items: flex-end; justify-self: end; }
.an-rating-status { grid-column: 1 / -1; margin: 0; }
.an-rating-status:empty { display: none; }
.an-post-rating > .an-read-more { grid-column: 2 / -1; justify-self: end; }
.an-rating-actions button { background: var(--an-content-accent); color: var(--an-on-accent); border: 0; border-radius: 0; padding: 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.an-rating-actions .an-rating-remove { background: var(--an-clear); color: var(--an-text); text-decoration: underline; }
.an-rating-actions [hidden] { display: none; }
.an-rating-actions button:disabled { opacity: .6; cursor: wait; }
@media(prefers-reduced-motion:reduce) { .an-rating-stars label > span[aria-hidden] { transition: none; } }

@media(max-width:620px) { .an-post-rating { padding: 12px; gap: 8px; } .an-post-rating h2 { font-size: 14px; } .an-rating-stars { gap: 3px; } .an-rating-stars label > span[aria-hidden] { font-size: 25px; } .an-rating-actions button { padding: 9px 10px; font-size: 11px; } }
