body {
    font-size: 115%;
}

#header-wrapper {
    padding: 2em 0 1.5em 0;
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 4.5em;
}

#nav {
    position: static;
    right: auto;
    top: auto;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
}

#nav ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

#nav ul li {
    display: flex;
    align-items: center;
    float: none;
    line-height: 1.2;
    padding-left: 0;
}

#nav ul li.theme-main-mobile-nav-only {
    display: none;
}

#nav ul li a,
#nav ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 2.4em;
}

#logo a {
    text-decoration: none;
}

#logo,
.theme-main-header-right {
    display: flex;
    align-items: center;
}

.theme-main-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 0 0 auto;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.theme-main-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    flex-shrink: 0;
    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.theme-main-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    min-width: 0;
    min-width: 16rem;
}

.theme-main-brand-title,
.theme-main-brand-tagline {
    display: block;
    line-height: 1.05;
}

.theme-main-brand-title {
    font-family: "Open Sans", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.005em;
    white-space: nowrap;
    color: var(--color-bg-dark);
    transition: color 0.18s ease;
}

.theme-main-brand-tagline {
    max-width: 20rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: lowercase;
    line-height: 1.2;
    color: #6b7077;
    transition: color 0.18s ease;
}

.theme-main-brand:hover,
.theme-main-brand:focus-visible {
    transform: translateY(-1px);
    opacity: 0.98;
}

.theme-main-brand:hover .theme-main-brand-mark,
.theme-main-brand:focus-visible .theme-main-brand-mark {
    transform: rotate(-3deg) scale(1.035);
    filter: drop-shadow(0 6px 12px rgba(0, 144, 197, 0.14));
}

.theme-main-brand:hover .theme-main-brand-title,
.theme-main-brand:focus-visible .theme-main-brand-title {
    color: #2f3439;
}

.theme-main-brand:hover .theme-main-brand-tagline,
.theme-main-brand:focus-visible .theme-main-brand-tagline {
    color: var(--color-primary);
}

.theme-main-header-right {
    margin-left: auto;
}

.theme-main-auth-shell,
.theme-main-locales-desktop,
.theme-main-locales-mobile {
    display: flex;
    align-items: center;
}

.theme-main-auth-shell {
    gap: 0.6rem;
    align-items: center;
}

.theme-main-auth-form {
    margin: 0;
}

.theme-main-auth-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.theme-main-locales-desktop {
    gap: 0.35rem;
    margin-right: 0.85rem;
    padding-right: 0.85rem;
    border-right: solid 1px var(--color-border-medium);
}

.theme-main-locales-mobile {
    display: none;
}

.theme-main-locale-link,
.theme-main-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.45em 0.8em;
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1;
}

.theme-main-locale-link {
    color: var(--color-text);
}

.theme-main-locale-link:hover {
    background: var(--color-white);
}

.theme-main-locale-link[aria-current="true"] {
    background: var(--color-text-dark);
    color: var(--color-white);
}

.theme-main-auth-link {
    color: var(--color-text);
}

.theme-main-auth-link:hover {
    background: var(--color-white);
}

.theme-main-auth-link--primary {
    background: var(--color-accent-pink);
    color: var(--color-white);
}

.theme-main-auth-link--primary:hover {
    background: var(--color-accent-pink-hover);
}

.theme-main-mobile-header {
    display: none;
}

.theme-main-mobile-panel-auth {
    display: none;
}

.theme-main-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-main-post-card .image.featured {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.theme-main-post-card .image.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.theme-main-post-card:hover .image.featured img {
    transform: scale(1.03);
    opacity: 0.92;
}

.theme-main-post-card .inner {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.theme-main-post-card .inner > header {
    margin-bottom: 0.2rem;
}

#banner {
    padding: 1.75rem 2rem;
}

#banner .row {
    align-items: center;
}

#banner p {
    margin: 0.7rem 0 1.35rem;
    max-width: 42rem;
    font-size: 1.35em;
    line-height: 1.6;
}

#banner p:last-of-type {
    margin-bottom: 0;
}

#banner .col-8 > .button {
    font-size: 1.2em;
    display: inline-flex;
    width: auto;
    max-width: max-content;
    align-self: flex-start;
    justify-content: center;
    margin-top: 1.4rem;
    margin-bottom: 0;
    padding-inline: 1.2em;
}

#banner .col-8 > .button.icon:before {
    position: static;
    order: 2;
    top: auto;
    right: auto;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0.55em;
}

.theme-main-hero-related {
    text-align: left;
    padding-left: 2.5rem;
    border-left: 1px solid var(--color-border-medium);
}

.theme-main-hero-related h3 {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
}

.theme-main-hero-related-list {
    margin: 0;
}

.theme-main-hero-related-list li {
    margin-top: 0.75rem;
}

.theme-main-hero-related-list li:first-child {
    margin-top: 0;
}

.theme-main-hero-related-list a {
    text-decoration: none;
    font-weight: 700;
}

.theme-main-hero-related-list a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 980px) {
    #banner {
        text-align: left;
    }

    #banner .row {
        justify-content: flex-start;
    }

    .theme-main-hero-related {
        margin-top: 1.5rem;
        padding-left: 0;
        padding-top: 1.5rem;
        border-left: 0;
        border-top: 1px solid var(--color-border-medium);
    }
}

.theme-main-post-card .inner > header > p {
    font-size: 80%;
    font-weight: bold;
}

.theme-main-post-card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.theme-main-post-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.theme-main-post-card-title a:hover {
    color: var(--color-primary);
}

#banner h2 {
    font-size: 1.8em;
    line-height: 1.15;
    margin-bottom: 1em;
}

.theme-main-comments-header h3 {
    margin: 0;
}

.theme-main-comments-list,
.theme-main-comments-discussed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.theme-main-comments-entry,
.theme-main-comments-discussed-item {
    border: solid 1px var(--color-border-medium);
    border-radius: 8px;
    background: var(--color-white);
    padding: 1.4rem 1.5rem;
}

.theme-main-comments-meta,
.theme-main-comments-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
}

.theme-main-comments-meta {
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-bg-dark-mid);
}

.theme-main-comments-meta a,
.theme-main-comments-discussed-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.theme-main-comments-entry blockquote {
    margin: 0 0 1rem 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-text-dark);
}

.theme-main-comments-footer {
    justify-content: space-between;
}

.theme-main-comments-footer span,
.theme-main-comments-discussed-item p,
.theme-main-comments-discussed-item small {
    color: var(--color-bg-dark-mid);
}

.theme-main-comments-discussed-item h4 {
    margin: 0.45rem 0 0.45rem 0;
    font-size: 1.18rem;
}

.theme-main-post-card-excerpt,
.theme-post-list-excerpt {
    font-size: 1.2em;
    line-height: 1.5em;
    margin-bottom: 1rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.theme-main-post-card-excerpt p,
.theme-post-list-excerpt p {
    margin: 0;
}

.theme-main-post-card-meta,
.theme-post-list-meta {
    margin-top: auto;
    font-size: 80%;
    font-weight: bold;
}

.theme-post-list {
    display: flex;
    flex-direction: column;
}

.theme-post-list-shell {
    background: var(--color-white);
    padding: 1.75rem 2rem;
}

.box.feature.theme-post-list-shell > h2 {
    margin: 0 0 1.25rem;
    padding: 3rem 2rem 0;
    font-size: 2.1rem;
    line-height: 1.05;
}

.theme-home-posts-more {
    margin-top: 1.75rem;
    padding-bottom: 0.9rem;
    text-align: center;
}

.theme-button-inline {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    padding-inline: 1.2em;
}

.theme-post-list-item {
    height: auto;
    padding: 0;
}

.theme-post-list-shell .theme-post-list-item .inner {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
}

.theme-post-list-item .inner > header {
    margin-bottom: 1rem;
}

.theme-post-list-title {
    line-height: 1.25em;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.theme-post-list-item .image.featured.theme-post-list-media {
    display: block;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.7rem;
    background: var(--color-white);
}

.theme-post-list-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.theme-post-list-item:hover .theme-post-list-media img {
    transform: scale(1.03);
    opacity: 0.92;
}

.theme-post-list-meta {
    margin-top: 0;
}

.theme-post-list-item,
.theme-post-list-item > :last-child,
.theme-post-list-item .inner > :last-child {
    margin-bottom: 0;
}

.theme-post-list-meta p {
    margin-bottom: 0;
}

.theme-main-archive-intro {
    margin-bottom: 2rem;
}

.theme-main-archive-kicker {
    display: inline-block;
    margin-bottom: 0.7rem;
    /*    font-size: 0.82em; */
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-bg-dark-mid);
}

.theme-main-archive-intro h2 {
    margin-bottom: 0.5rem;
}

.theme-main-archive-intro p {
    margin-bottom: 0;
    /*    font-size: 1.08em; */
    line-height: 1.75em;
    color: var(--color-text-medium);
}

.theme-main-archive-panel {
    margin-bottom: 2rem;
    padding: 1.75rem 1.9rem;
    border-radius: 0.7rem;
    background: var(--color-white);
    box-shadow:
        0 18px 36px -30px var(--color-shadow-card),
        inset 0 0 0 1px var(--color-shadow-md2);
}

.theme-main-archive-panel > :last-child {
    margin-bottom: 0;
}

.theme-main-archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.theme-main-archive-search-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.82em;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-bg-dark-mid);
}

.theme-main-archive-search-row {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.theme-main-archive-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 3.25rem;
    border: solid 1px var(--color-border-dark);
    border-radius: 0.5rem;
    background: var(--color-white);
    color: var(--color-text-dark);
    font-size: 1rem;
    padding: 0 1rem;
}

.theme-main-archive-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-focus);
    outline: none;
}

.theme-main-sidebar-search-shell {
    margin-bottom: 2rem;
}

.theme-main-sidebar-search-title {
    display: block;
    margin: 0 0 0.7rem 0;
    font-size: 0.82em;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-bg-dark-mid);
}

.theme-main-sidebar-search-row {
    display: block;
}

.theme-main-sidebar-search-field {
    display: flex;
    align-items: stretch;
    border: solid 1px var(--color-border-medium);
    border-radius: 0.58rem;
    background: var(--color-white);
}

.theme-main-sidebar-search-input {
    flex: 1;
    height: 3.05rem;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 1.15rem;
    box-shadow: none;
}

.theme-main-sidebar-search-input:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.theme-main-sidebar-search-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-focus);
}

.theme-main-sidebar-search-button {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.05rem;
    /* sin height — lo gestiona el stretch del contenedor */
    padding: 0;
    margin: -1px -1px -1px 0;
    border-radius: 0 0.58rem 0.58rem 0;
    font-size: 1rem;
    background: var(--color-primary);
    box-shadow: none;
}

.theme-main-sidebar-search-button .icon {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1;
}

.theme-main-sidebar-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.9rem;
    align-items: center;
}

.theme-main-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
    align-items: center;
    color: var(--color-bg-dark-mid);
    font-size: 0.95rem;
}

.theme-main-archive-chip,
.theme-main-archive-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.theme-main-archive-chip {
    min-height: 2rem;
    padding: 0.52rem 0.9rem;
    background: var(--color-chip-bg);
    color: var(--color-primary);
}

.theme-main-archive-chip--active {
    background: var(--color-primary);
    color: var(--color-white);
}

.theme-main-archive-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.theme-main-archive-tag {
    min-height: 2.1rem;
    padding: 0.56rem 0.95rem;
    background: var(--color-bg-body);
    color: var(--color-text-medium);
}

.theme-main-archive-tag:hover,
.theme-main-archive-chip:hover {
    color: var(--color-white);
    background: var(--color-primary);
}

.theme-main-archive-grid {
    margin-bottom: 0.5rem;
}

.theme-main-archive-grid .box.feature {
    margin-bottom: 2rem;
}

.theme-main-archive-grid .theme-main-post-card {
    overflow: hidden;
    border-radius: 0.7rem;
    box-shadow:
        0 20px 38px -30px var(--color-shadow-card),
        inset 0 0 0 1px var(--color-shadow-md2);
}

.theme-main-archive-grid .theme-main-post-card .inner {
    padding: 3rem 1.7rem 2.35rem 1.7rem;
}

.theme-main-archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-bottom: 2rem;
}

.theme-main-archive-list-item {
    padding: 1.7rem 1.8rem;
    border-radius: 0.7rem;
    background: var(--color-white);
    box-shadow:
        0 18px 36px -30px var(--color-shadow-card),
        inset 0 0 0 1px var(--color-shadow-md2);
}

.theme-main-archive-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-bottom: 0.8rem;
    color: var(--color-bg-dark-mid);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.theme-main-archive-list-item h3 {
    margin-bottom: 0.65rem;
    font-size: 1.65rem;
    line-height: 1.25;
}

.theme-main-archive-list-item h3 a {
    color: inherit;
    text-decoration: none;
}

.theme-main-archive-list-item h3 a:hover {
    color: var(--color-primary);
}

.theme-main-archive-list-excerpt {
    margin-bottom: 1rem;
    color: var(--color-text-medium);
    line-height: 1.8;
}

.theme-main-archive-list-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.theme-main-archive-empty {
    padding: 2.2rem 1.8rem;
    border: 2px dashed var(--color-border-dark);
    border-radius: 0.7rem;
    background: var(--color-white);
    text-align: center;
}

.theme-main-archive-empty p:last-child {
    margin-bottom: 0;
}

.theme-main-archive-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.3rem 1.5rem;
    border-radius: 0.7rem;
    background: var(--color-white);
    box-shadow:
        0 18px 36px -30px var(--color-shadow-card),
        inset 0 0 0 1px var(--color-shadow-md2);
}

.theme-main-archive-pagination-status {
    margin: 0;
    color: var(--color-bg-dark-mid);
    font-size: 0.95rem;
    font-weight: 700;
}

.theme-main-archive-pagination-slot--prev {
    justify-self: start;
}

.theme-main-archive-pagination-slot--status {
    justify-self: center;
}

.theme-main-archive-pagination-slot--next {
    justify-self: end;
}

.theme-article-shell,
.theme-article-section {
    margin-bottom: 2.5rem;
}

.theme-article-title,
.theme-article-section-header h3,
.theme-article-footer h3 {
    margin-bottom: 0.55rem;
}

.theme-article-footer h3,
.theme-article-section-header h3 {
    margin-top: 3rem;
    font-size: 110%;
    color: var(--color-text-medium);
}

.theme-article-footer h3 {
    margin-top: 3rem;
}
.theme-article-section-header h3 {
    padding-top: 1rem;
}

.theme-article-title {
    color: var(--color-text-dark);
    font-size: 2.25em;
    font-weight: 800;
    line-height: 1.3em;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.theme-article-meta,
.theme-article-section-header p,
.theme-main-post-comment-meta,
.theme-main-post-comment-state,
.theme-main-post-commenting-as,
.theme-article-footer {
    color: var(--color-bg-dark-mid);
}

.theme-article-deck {
    margin-bottom: 1.1rem;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-text-medium);
}

.theme-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-bottom: 1.1rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.theme-main-post-taxonomy,
.theme-main-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    margin-bottom: 3rem;
    padding: 0;
    list-style: none;
}

.theme-main-post-pill,
.theme-main-post-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.56rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    background: var(--color-bg-body);
    color: var(--color-text-medium);
}

.theme-main-post-pill:hover,
.theme-main-post-tag:hover {
    color: var(--color-white);
    background: var(--color-primary);
}

.theme-main-post-media {
    margin: 1.75rem 0 2rem;
    overflow: hidden;
    border-radius: 0.7rem;
    background: var(--color-bg-light);
}

.theme-main-post-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.theme-main-post-image-caption {
    margin-top: -1.2rem;
    margin-bottom: 2rem;
    padding: 0 0.15rem;
    color: var(--color-text-medium);
    font-size: 0.95rem;
    line-height: 1.55;
}

.theme-main-post-image-caption p {
    margin: 0;
}

.theme-main-post-image-caption a {
    text-decoration: underline;
}

.theme-main-post-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
}

.theme-main-post-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.theme-article-body > :last-child,
.theme-article-section-header > :last-child,
.theme-main-post-comment-card p:last-child,
.theme-main-post-comment-state > :last-child,
.theme-main-post-comment-editor > :last-child,
.theme-article-footer > :last-child {
    margin-bottom: 0;
}

.theme-main-post-comment-card p:last-child {
    padding-inline: 1.25rem;
}

.theme-article-footer {
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: solid 1px var(--color-border-medium);
}

.theme-divider-dots {
    border-top: 0;
    background-image: radial-gradient(
        circle,
        var(--color-border-medium) 2px,
        transparent 0.8px
    );
    background-position: top left;
    background-repeat: repeat-x;
    background-size: 8px 1px;
}

.theme-main-post-comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.35rem;
}

.theme-main-post-comment-card,
.theme-main-post-comment-form {
    padding: 1.35rem 0;
    margin-bottom: 1rem;
}

.theme-main-post-comment-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.theme-main-post-comment-meta-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    min-width: 0;
}

.theme-main-post-comment-date {
    font-size: 0.74rem;
    color: var(--color-bg-dark-mid);
}

.theme-main-post-comment-meta-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
    flex-shrink: 0;
    text-align: right;
}

.theme-main-post-comment-reply-link {
    color: var(--color-bg-dark-mid);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
}

.theme-main-post-comment-reply-link:hover,
.theme-main-post-comment-reply-link:focus {
    color: var(--color-link);
}

.theme-main-post-comment-context {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.theme-main-post-comment-context a {
    color: var(--color-bg-dark-mid);
    text-decoration: none;
}

.theme-main-post-comment-context a:hover,
.theme-main-post-comment-context a:focus {
    color: var(--color-link);
    text-decoration: underline;
}

.theme-main-post-empty {
    padding: 1.4rem 0;
    color: var(--color-bg-dark-mid);
}

.theme-main-post-comment-form {
    margin-top: 0.5rem;
}

.theme-main-post-comment-state {
    margin-top: 1rem;
}

.theme-main-post-comment-state--warning {
    color: var(--color-warning);
}

.theme-main-post-comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.theme-main-post-comment-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.theme-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-main-post-commenting-as {
    margin-bottom: 0;
}

.theme-main-post-reply-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 7%, white);
    color: var(--color-text-dark);
}

.theme-main-post-reply-pill-copy {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.theme-main-post-reply-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-text-dark) 10%, white);
    color: var(--color-text-dark);
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.theme-main-post-reply-pill-remove:hover,
.theme-main-post-reply-pill-remove:focus {
    background: color-mix(in srgb, var(--color-primary) 20%, white);
    color: var(--color-primary);
    outline: none;
    transform: scale(1.05);
}

.theme-main-post-reply-pill-remove span {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.theme-main-post-commenting-name {
    color: var(--color-text-dark);
    font-weight: 800;
}

.theme-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-dark);
}

.theme-form-control {
    width: 100%;
    min-height: 10rem;
    border: solid 1px var(--color-border-dark);
    border-radius: 0.6rem;
    background: var(--color-white);
    color: var(--color-text-dark);
    padding: 0.9rem 1rem;
    resize: vertical;
}

.theme-form-control--input {
    min-height: 3rem;
    resize: none;
}

.theme-form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-focus);
    outline: none;
}

.theme-form-error {
    margin-top: 0.5rem;
    color: var(--color-error);
    font-size: 0.95rem;
}

.theme-main-post-related-grid {
    margin-top: 1.35rem;
}

.theme-main-grid-section {
    width: 100%;
}

.theme-home-featured-section {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.theme-home-featured-section .theme-main-post-related-grid {
    margin-top: 0;
}

.theme-main-post-related-grid .box.feature {
    margin-bottom: 2rem;
}

.theme-main-post-related-grid .theme-main-post-card {
    overflow: hidden;
    border-radius: 0.7rem;
    box-shadow:
        0 20px 38px -30px var(--color-shadow-card),
        inset 0 0 0 1px var(--color-shadow-md2);
}

.theme-main-post-related-grid .theme-main-post-card .inner {
    padding: 2.6rem 1.5rem 2.1rem 1.5rem;
}

#sidebar > section {
    margin-bottom: 2em;
}

.theme-main-sidebar-title {
    margin: 0 0 0.5em 0;
    font-size: 1.35em;
    color: var(--color-text-highlight);
}

.theme-main-sidebar-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: -1rem;
}

.theme-main-sidebar-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding-left: 0;
}

.theme-main-sidebar-list--commented li {
    margin-bottom: 1.25rem;
}

.theme-main-sidebar-list--commented li:last-child {
    margin-bottom: 0;
}

.theme-main-sidebar-bullet {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.18rem;
}

.theme-main-sidebar-item {
    min-width: 0;
    line-height: 1.3em;
}

.theme-main-sidebar-item a {
    text-decoration: none;
    color: var(--color-text-highlight);
    font-weight: 800;
    transition: color 0.2s ease;
}

.theme-main-sidebar-list li:hover .theme-main-sidebar-bullet,
.theme-main-sidebar-item a:hover {
    color: var(--color-primary);
}

.theme-main-sidebar-item small {
    display: block;
    margin: -0.1rem 0 1rem;
    font-size: 75%;
}

.theme-main-sidebar-more {
    margin-top: 0;
    text-align: right;
}

.theme-main-sidebar-more a {
    text-decoration: none;
}

.theme-main-sidebar-more a:hover {
    font-weight: bold;
}

@media screen and (max-width: 980px) {
    body.navPanel-visible {
        overflow: hidden;
    }

    body.navPanel-visible::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.48);
        backdrop-filter: blur(2px);
        z-index: 10001;
    }

    #navPanel {
        display: flex;
        flex-direction: column;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.06),
            20px 0 45px rgba(15, 23, 42, 0.35);
    }

    #navPanel .theme-main-mobile-panel-nav {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    body.navPanel-visible #page-wrapper,
    body.navPanel-visible #navToggle {
        transform: none !important;
    }

    body.navPanel-visible .theme-main-mobile-toggle {
        opacity: 0;
        pointer-events: none;
    }

    #navToggle {
        display: none !important;
    }

    #header {
        display: block;
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    #logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
    }

    .theme-main-brand {
        gap: 0.6rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .theme-main-brand-mark {
        width: 2.2rem;
        height: 2.2rem;
    }

    .theme-main-brand-copy {
        gap: 0.08rem;
        min-width: 12.5rem;
        align-items: flex-start;
    }

    .theme-main-brand-title {
        font-size: 1.176rem;
        line-height: 1.05;
        white-space: normal;
    }

    .theme-main-brand-tagline {
        width: 100%;
        max-width: 21ch;
        font-size: 0.816rem;
        line-height: 1.16;
        text-align: left;
    }

    #nav {
        display: none;
    }

    #navPanel .theme-main-mobile-nav-auth-start {
        margin-top: auto;
        padding-top: 1rem;
        border-top: solid 1px var(--color-border-medium);
    }

    #navPanel .theme-main-mobile-nav-logout-button {
        display: block;
        width: 100%;
        padding: 0.75em 0;
        color: var(--color-text);
        text-decoration: none;
        font-weight: 800;
        background: transparent;
        border: 0;
        text-align: left;
        cursor: pointer;
        font: inherit;
    }

    #navPanel .theme-main-mobile-nav-logout-form {
        margin: 0;
        border-top: solid 1px var(--color-border);
    }

    .theme-main-header-right {
        display: none;
    }

    .theme-main-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        margin-top: 0;
        flex-shrink: 0;
    }

    .theme-main-mobile-header-left,
    .theme-main-mobile-header-right {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .theme-main-locales-mobile {
        display: flex;
        gap: 0.2rem;
    }

    .theme-main-locales-mobile .theme-main-locale-link,
    .theme-main-mobile-header-left .theme-main-auth-link {
        padding: 0.28em 0.5em;
        font-size: 0.88em;
    }

    .theme-main-mobile-header-left .theme-main-auth-link {
        display: none;
    }

    .theme-main-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 34px;
        padding-inline: 0.85rem;
        border-radius: 6px;
        background: var(--color-overlay);
        color: var(--color-white);
        text-decoration: none;
        font-size: 18px;
        line-height: 1;
    }

    #sidebar {
        padding-inline: 1rem;
    }

    .theme-main-grid-section {
        padding-inline: 15px;
    }

    .theme-main-grid-section--lead {
        margin-bottom: 1.15rem;
    }

    .theme-main-grid-section > .container {
        width: 100%;
    }

    .theme-main-grid-section .theme-main-post-related-grid {
        margin-top: 0;
        margin-left: 0;
    }

    .theme-main-grid-section .theme-main-post-related-grid > [class*="col-"] {
        padding-left: 0;
    }

    .theme-main-archive-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-button-inline,
    #banner .col-8 > .button,
    .theme-main-post-comment-actions .button,
    .theme-main-post-comment-actions button {
        display: inline-flex;
        width: auto;
        min-width: 0;
        max-width: max-content;
        justify-content: center;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .theme-main-sidebar-search-row {
        display: block;
    }

    .theme-main-sidebar-search-button {
        width: 3.05rem;
        min-width: 3.05rem;
    }

    .theme-main-archive-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-main-post-comment-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    #banner .col-8 > .button {
        margin-left: 0.5rem;
        padding: 0.78em 1.35em !important;
    }

    .theme-button-inline {
        margin-left: 0.5rem;
        padding: 0.78em 1.35em !important;
    }

    .theme-main-post-comment-actions .theme-button-inline {
        margin-left: 0.5rem;
        padding: 0.72em 1.2em !important;
        width: auto;
        max-width: max-content;
    }

    .theme-form-grid {
        grid-template-columns: 1fr;
    }

    .theme-main-archive-pagination {
        grid-template-columns: 1fr;
    }

    .theme-main-archive-pagination-slot--prev,
    .theme-main-archive-pagination-slot--status,
    .theme-main-archive-pagination-slot--next {
        justify-self: stretch;
        text-align: center;
    }
}
