/*
Theme Name:        Anime News 2
Theme URI:         https://nexiamath.com/themes/anime-news-2
Author:            Nexiamath
Author URI:        https://nexiamath.com
Description:       Anime News 2 is a futuristic WordPress news theme with aurora accents, soft glass surfaces, and a reading-first editorial rhythm.
Version:           1.0.2
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
Text Domain:       anime-news-2
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --an2-paper: #f6f8fc;
    --an2-mist: #e8eefc;
    --an2-cloud: #edf2ff;
    --an2-midnight: #10162f;
    --an2-ink: #1d2440;
    --an2-muted: #6d7394;
    --an2-cyan: #49d8ff;
    --an2-rose: #ff5fd2;
    --an2-amber: #ffbf5f;
    --an2-violet: #6a63ff;
    --an2-surface: rgba(255, 255, 255, 0.78);
    --an2-surface-strong: rgba(255, 255, 255, 0.92);
    --an2-line: rgba(29, 36, 64, 0.1);
    --an2-shadow: 0 24px 70px rgba(16, 22, 47, 0.12);
    --an2-shadow-soft: 0 16px 40px rgba(16, 22, 47, 0.08);
    --an2-radius-xl: 32px;
    --an2-radius-lg: 22px;
    --an2-radius-md: 16px;
    --an2-radius-sm: 12px;
    --an2-max: 1280px;
    --an2-ease: 220ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--an2-ink);
    font-family: "Inter", "Segoe UI", sans-serif;
    line-height: 1.8;
    background:
        radial-gradient(circle at top left, rgba(73, 216, 255, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 95, 210, 0.14), transparent 22%),
        linear-gradient(180deg, #fbfcff 0%, var(--an2-paper) 60%, var(--an2-cloud) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(73, 216, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106, 99, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.22;
}

body.admin-bar .an2-masthead,
body.admin-bar .an2-progress {
    top: 32px;
}

* {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--an2-violet);
}

button,
input,
textarea,
select {
    font: inherit;
}

.an2-site,
.an2-site-main {
    position: relative;
    z-index: 1;
}

.an2-shell {
    width: min(calc(100% - 2rem), var(--an2-max));
    margin: 0 auto;
}

.an2-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
}

.an2-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--an2-cyan), var(--an2-rose), var(--an2-amber));
}

.an2-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(16px);
}

.an2-topbar__row,
.an2-masthead__row,
.an2-signal-feed__head,
.an2-beatlane__head,
.an2-archive-header,
.an2-related__head,
.an2-footer__base,
.an2-story-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.an2-topbar__row {
    min-height: 46px;
    color: var(--an2-muted);
    font-size: 0.9rem;
}

.an2-topbar__cluster {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.an2-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--an2-cyan), var(--an2-rose));
    box-shadow: 0 0 0 5px rgba(73, 216, 255, 0.12);
}

.an2-topbar__label,
.an2-eyebrow,
.an2-card__eyebrow,
.an2-story-kicker,
.an2-manifesto__kicker {
    color: var(--an2-violet);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.73rem;
    font-weight: 700;
}

.an2-topbar__link,
.an2-link {
    color: var(--an2-midnight);
    font-weight: 700;
}

.an2-masthead {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(246, 248, 252, 0.86);
    backdrop-filter: blur(18px);
}

.an2-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 0 1 360px;
}

.an2-brand__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(73, 216, 255, 0.2), rgba(255, 95, 210, 0.18));
    border: 1px solid rgba(106, 99, 255, 0.14);
    color: var(--an2-midnight);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.an2-branding {
    min-width: 0;
}

.an2-branding__title {
    margin: 0;
    color: var(--an2-midnight);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

.an2-branding__tagline {
    margin: 0.25rem 0 0;
    color: var(--an2-muted);
    font-size: 0.94rem;
}

.custom-logo-link img {
    max-height: 58px;
    width: auto;
}

.an2-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
}

.an2-menu,
.an2-footer-menu,
.an2-social-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.an2-menu {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.an2-menu li {
    flex: 0 0 auto;
}

.an2-menu a,
.an2-footer-menu a,
.an2-social-menu a,
.an2-beat-strip__track a {
    color: var(--an2-ink);
    flex-wrap: wrap;
    justify-content: center;
    font-weight: 600;
    row-gap: 0.7rem;
    overflow-x: visible;
}

.an2-button,
.an2-cta,
.an2-pill,
.an2-menu-toggle,
.an2-searchform button,
.search-submit,
.comment-form .submit,
.wp-block-button__link,
.wp-block-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0.75rem 1.05rem;
    border: 0;
    border-radius: 999px;
    transition: transform var(--an2-ease), box-shadow var(--an2-ease), filter var(--an2-ease), color var(--an2-ease);
}

.an2-button,
.an2-cta,
.an2-searchform button,
.search-submit,
.comment-form .submit,
.wp-block-button__link,
.wp-block-search__button {
    background: linear-gradient(135deg, var(--an2-violet), var(--an2-rose));
    color: #fff;
    box-shadow: 0 18px 34px rgba(106, 99, 255, 0.18);
    font-weight: 700;
}

.an2-pill,
.an2-menu-toggle {
    background: rgba(255, 255, 255, 0.86);
    color: var(--an2-midnight);
    border: 1px solid rgba(106, 99, 255, 0.1);
    font-weight: 700;
}

.an2-button:hover,
.an2-cta:hover,
.an2-pill:hover,
.an2-menu-toggle:hover,
.an2-searchform button:hover,
.search-submit:hover,
.comment-form .submit:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
}

.an2-button:hover,
.an2-cta:hover,
.an2-searchform button:hover,
.search-submit:hover,
.comment-form .submit:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover {
    color: #fff;
}

.an2-menu-toggle {
    display: none;
    cursor: pointer;
}

.an2-cta {
    flex: 0 0 auto;
}

.an2-beat-strip {
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.42);
}

.an2-beat-strip .an2-shell {
    display: flex;
    justify-content: center;
}

.an2-beat-strip__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    overflow-x: visible;
    padding: 0.9rem 0;
    scrollbar-width: none;
}

.an2-beat-strip__track::-webkit-scrollbar {
    display: none;
}

.an2-beat-strip__track a {
    flex: 0 0 auto;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 36, 64, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

.an2-beat-strip__track a[aria-current="page"] {
    background: linear-gradient(135deg, var(--an2-cyan), var(--an2-violet));
    color: var(--an2-midnight);
    border-color: transparent;
}

.an2-site-main {
    padding: 1.7rem 0 4rem;
}

.an2-layout,
.an2-reading-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.an2-layout {
    grid-template-columns: minmax(0, 1.6fr) 340px;
}

.an2-reading-layout {
    grid-template-columns: minmax(0, 1.8fr) 320px;
}

.an2-main-column,
.an2-story-column {
    min-width: 0;
}

.an2-stage,
.an2-beatlane,
.an2-signal-feed,
.an2-story-panel,
.an2-page-panel,
.an2-archive-panel,
.an2-comments,
.an2-not-found,
.an2-empty-state,
.an2-widget,
.an2-brief,
.an2-search-panel {
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: var(--an2-surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--an2-shadow-soft);
}

.an2-stage,
.an2-beatlane,
.an2-signal-feed,
.an2-story-panel,
.an2-page-panel,
.an2-archive-panel,
.an2-comments,
.an2-not-found,
.an2-empty-state {
    padding: clamp(1.2rem, 2vw, 1.9rem);
    border-radius: var(--an2-radius-xl);
}

.an2-stage {
    display: grid;
    gap: 1.4rem;
}

.an2-manifesto {
    display: grid;
    gap: 1rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--an2-line);
}

.an2-manifesto h1,
.an2-feature__title,
.an2-story-header h1,
.an2-page-panel h1,
.an2-not-found h1,
.an2-archive-header h1,
.an2-card__title {
    margin: 0;
    color: var(--an2-midnight);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.an2-manifesto h1 {
    font-size: clamp(2.2rem, 4.2vw, 4.1rem);
    max-width: none;
}

.an2-manifesto p {
    max-width: 72ch;
}

.an2-manifesto p,
.an2-story-summary,
.an2-card__excerpt,
.an2-empty-state p,
.an2-not-found p,
.an2-beatlane__head p,
.an2-signal-feed__head p,
.an2-archive-header p,
.an2-related__head p,
.an2-footer__brand p,
.an2-footer__base p,
.an2-widget p {
    margin: 0;
    color: var(--an2-muted);
}

.an2-manifesto__actions,
.an2-not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.an2-stage__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 1.35rem;
}

.an2-feature {
    display: grid;
    gap: 1rem;
}

.an2-feature__media,
.an2-card__media,
.an2-story-hero {
    display: block;
    overflow: hidden;
    border-radius: calc(var(--an2-radius-xl) - 8px);
}

.an2-feature__media {
    aspect-ratio: 1.35 / 1;
}

.an2-card__media {
    aspect-ratio: 1.34 / 1;
}

.an2-feature__media img,
.an2-card__media img,
.an2-story-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.an2-story-hero img {
    max-height: 680px;
}

.an2-feature:hover .an2-feature__media img,
.an2-card:hover .an2-card__media img {
    transform: scale(1.04);
}

.an2-feature__title {
    font-size: clamp(1.9rem, 3.4vw, 3.1rem);
}

.an2-meta,
.an2-card__meta,
.an2-story-header__meta,
.an2-card__footer,
.an2-share-list,
.an2-tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.an2-meta,
.an2-card__meta,
.an2-story-header__meta,
.an2-card__footer {
    color: var(--an2-muted);
    font-size: 0.92rem;
}

.an2-brief,
.an2-search-panel,
.an2-widget {
    padding: 1.15rem;
    border-radius: var(--an2-radius-lg);
}

.an2-brief {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 238, 252, 0.92));
}

.an2-brief--accent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 233, 255, 0.94));
}

.an2-brief__head,
.an2-widget__head {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.an2-brief__head h2,
.an2-widget-title,
.an2-beatlane__head h2,
.an2-signal-feed__head h2,
.an2-related__head h2 {
    margin: 0;
    color: var(--an2-midnight);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.35rem;
    line-height: 1.12;
}

.an2-brief__list,
.an2-card-list,
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.an2-brief__list {
    display: grid;
    gap: 0.95rem;
}

.an2-brief__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
}

.an2-brief__item a {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--an2-midnight);
    font-weight: 700;
    line-height: 1.34;
}

.an2-brief__item time {
    color: var(--an2-muted);
    font-size: 0.82rem;
}

.an2-brief__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(73, 216, 255, 0.18), rgba(255, 95, 210, 0.18));
    color: var(--an2-midnight);
    font-weight: 800;
}

.an2-brief__footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--an2-line);
}

.an2-panel-grid,
.an2-signal-feed__grid,
.an2-archive-grid,
.an2-related__grid {
    display: grid;
    gap: 1rem;
}

.an2-panel-grid {
    margin-top: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.an2-beatlane {
    margin-top: 1.5rem;
}

.an2-signal-feed {
    margin-top: 1.5rem;
}

.an2-beatlane__head,
.an2-signal-feed__head,
.an2-archive-header,
.an2-related__head {
    margin-bottom: 1.15rem;
}

.an2-beatlane__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.an2-beatlane__stack {
    display: grid;
    gap: 1rem;
}

.an2-signal-feed__grid,
.an2-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.an2-card {
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: 1rem;
    border-radius: var(--an2-radius-lg);
    border: 1px solid var(--an2-line);
    background: var(--an2-surface-strong);
    box-shadow: var(--an2-shadow-soft);
    transition: transform var(--an2-ease), border-color var(--an2-ease), box-shadow var(--an2-ease);
}

.an2-card:hover {
    transform: translateY(-3px);
    border-color: rgba(106, 99, 255, 0.18);
    box-shadow: 0 22px 56px rgba(16, 22, 47, 0.1);
}

.an2-card[data-tone="cyan"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(230, 248, 255, 0.95));
}

.an2-card[data-tone="rose"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 236, 250, 0.95));
}

.an2-card[data-tone="violet"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 238, 255, 0.95));
}

.an2-card[data-tone="amber"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 227, 0.95));
}

.an2-card--feature {
    padding: 0;
    overflow: hidden;
}

.an2-card--feature .an2-card__body {
    padding: 1rem 1.1rem 1.15rem;
}

.an2-card--stack {
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: start;
    overflow: hidden;
}

.an2-card--stack .an2-card__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--an2-radius-md);
    height: auto;
    align-self: start;
}

.an2-card--stack .an2-card__body {
    position: relative;
    z-index: 1;
    align-content: start;
    gap: 0.45rem;
    min-width: 0;
}

.an2-card--stack .an2-card__title {
    font-size: clamp(1rem, 1.45vw, 1.32rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.an2-card--stack .an2-card__title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    -webkit-line-clamp: 4;
}

.an2-card--stack .an2-card__meta {
    gap: 0.35rem 0.65rem;
    font-size: 0.84rem;
}

.an2-card--related {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 0;
    overflow: hidden;
}

.an2-card--related .an2-card__media {
    aspect-ratio: 1.25 / 1;
    border-radius: calc(var(--an2-radius-lg) - 2px) calc(var(--an2-radius-lg) - 2px) 0 0;
}

.an2-card--related .an2-card__body {
    padding: 0 1rem 1rem;
}

.an2-card--related .an2-card__title {
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}

.an2-card__body {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.an2-card__title {
    font-size: clamp(1.22rem, 2vw, 1.86rem);
}

.an2-card__title a,
.an2-empty-state h2,
.an2-feature__title a {
    color: var(--an2-midnight);
}

.an2-sidebar {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 1rem;
}

.an2-searchform {
    display: flex;
    gap: 0.75rem;
}

.an2-searchform input[type="search"],
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
.wp-block-search__input {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(29, 36, 64, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--an2-ink);
}

textarea {
    min-height: 160px;
}

.an2-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--an2-muted);
    font-size: 0.92rem;
}

.an2-breadcrumbs a {
    color: var(--an2-muted);
}

.an2-story-header,
.an2-page-panel {
    display: grid;
    gap: 1rem;
}

.an2-story-header h1,
.an2-page-panel h1,
.an2-archive-header h1,
.an2-not-found h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.an2-story-content {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.95;
}

.an2-story-content > *:first-child {
    margin-top: 0;
}

.an2-story-content h2,
.an2-story-content h3,
.an2-story-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--an2-midnight);
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.an2-story-content p,
.an2-story-content ul,
.an2-story-content ol,
.an2-story-content blockquote {
    margin-top: 0;
    margin-bottom: 1.3rem;
}

.an2-story-content blockquote,
.wp-block-quote {
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--an2-cyan);
    border-radius: 0 18px 18px 0;
    background: linear-gradient(180deg, rgba(232, 238, 252, 0.95), rgba(255, 255, 255, 0.95));
}

.an2-tag-list,
.an2-share-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.an2-tag-list a,
.an2-share-list a,
.tagcloud a,
.wp-block-tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(29, 36, 64, 0.08);
    color: var(--an2-midnight);
    font-size: 0.88rem !important;
}

.an2-related {
    margin-top: 1.5rem;
}

.an2-related__grid {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.an2-pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.an2-pagination .page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(29, 36, 64, 0.08);
}

.an2-pagination .current,
.nav-links .current {
    color: #fff;
    background: linear-gradient(135deg, var(--an2-violet), var(--an2-rose));
    border-color: transparent;
}

.an2-footer {
    padding-bottom: 2.5rem;
}

.an2-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--an2-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--an2-shadow);
}

.an2-footer__brand h2,
.an2-footer__menu h2,
.an2-footer__social h2,
.an2-empty-state h2,
.an2-not-found h1 {
    margin: 0 0 0.7rem;
    color: var(--an2-midnight);
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.an2-footer__base {
    margin-top: 0.9rem;
    color: var(--an2-muted);
    font-size: 0.92rem;
}

.an2-empty-state,
.an2-not-found {
    display: grid;
    gap: 0.9rem;
}

.comment-list {
    display: grid;
    gap: 1rem;
}

.comment-body {
    padding: 1rem 1.1rem;
    border-radius: var(--an2-radius-md);
    border: 1px solid var(--an2-line);
    background: rgba(255, 255, 255, 0.72);
}

.comment-metadata,
.comment-awaiting-moderation,
.logged-in-as,
.comment-notes {
    color: var(--an2-muted);
    font-size: 0.92rem;
}

.comment-form {
    display: grid;
    gap: 0.95rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1320px) {
    .an2-branding__tagline {
        display: none;
    }

    .an2-brand {
        flex-basis: 260px;
    }

    .an2-branding__title {
        font-size: clamp(1.55rem, 2.1vw, 2rem);
    }

    .an2-menu {
        gap: 0.6rem;
    }

    .an2-menu a {
        font-size: 0.96rem;
    }
}

@media (max-width: 1180px) {
    .an2-layout,
    .an2-reading-layout,
    .an2-stage__grid,
    .an2-beatlane__grid,
    .an2-footer__grid {
        grid-template-columns: 1fr;
    }

    .an2-button,
    .an2-cta,
    .an2-searchform button,
    .search-submit,
    .wp-block-search__button {
        padding-inline: 0.95rem;
    }

    .an2-sidebar {
        position: static;
    }

    .an2-panel-grid,
    .an2-signal-feed__grid,
    .an2-archive-grid,
    .an2-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.admin-bar .an2-masthead,
    body.admin-bar .an2-progress {
        top: 46px;
    }

    .an2-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .an2-navigation {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        background: rgba(246, 248, 252, 0.98);
        box-shadow: var(--an2-shadow);
    }

    .an2-navigation.is-open {
        display: flex;
    }

    .an2-menu,
    .an2-footer-menu,
    .an2-social-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .an2-panel-grid,
    .an2-signal-feed__grid,
    .an2-archive-grid,
    .an2-related__grid {
        grid-template-columns: 1fr;
    }

    .an2-card--stack,
    .an2-card--related {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .an2-shell {
        width: min(calc(100% - 1rem), var(--an2-max));
    }

    .an2-site-main {
        padding-top: 1rem;
    }

    .an2-stage,
    .an2-beatlane,
    .an2-signal-feed,
    .an2-story-panel,
    .an2-page-panel,
    .an2-archive-panel,
    .an2-comments,
    .an2-not-found,
    .an2-empty-state {
        padding: 1rem;
        border-radius: 26px;
    }

    .an2-manifesto h1,
    .an2-story-header h1,
    .an2-page-panel h1,
    .an2-archive-header h1,
    .an2-not-found h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .an2-topbar__row,
    .an2-beatlane__head,
    .an2-signal-feed__head,
    .an2-archive-header,
    .an2-story-footer,
    .an2-searchform,
    .an2-footer__base {
        align-items: flex-start;
        flex-direction: column;
    }

    .an2-beat-strip__track {
        gap: 0.55rem;
        row-gap: 0.55rem;
        padding-block: 0.8rem;
    }

    .an2-beat-strip__track a {
        padding: 0.62rem 0.86rem;
        font-size: 0.84rem;
    }
}