/* Native WordPress pages and controls. Components own their conditional styles. */
:root {
    --radius: 20px;
    --section-space: 96px;
    --heading-size: 76px;
    --font-fa-size: 16px;
    --font-en-size: 16px;
}
body {
    font-size: var(--font-fa-size);
}
body:lang(en) {
    font-size: var(--font-en-size);
}
img,
video {
    height: auto;
    max-width: 100%;
}
figure {
    margin: 0;
}
h1,
h2,
h3 {
    margin-block-start: 0;
    font-family: var(--font-heading);
    line-height: 1.4;
    overflow-wrap: anywhere;
}
h1 {
    font-size: clamp(2.3rem, 5vw, var(--heading-size));
}
h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}
h3 {
    font-size: 1.2rem;
}
p {
    margin-block-start: 0;
}
a:hover:not(:where(.bc-header-project, .dc-button, .bc-design-action)) {
    color: var(--accent-readable);
}
.container {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}
.section {
    padding-block: var(--section-space);
}
.muted {
    color: var(--muted);
}
.eyebrow {
    display: block;
    margin-block-end: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    color: var(--accent-readable);
}
.eyebrow:lang(fa) {
    letter-spacing: 0;
}
.section-heading {
    max-width: 780px;
    margin-block-end: 44px;
}
.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-block-end: 44px;
}
.section-heading-row .section-heading {
    margin: 0;
}
.button,
.wp-block-search__button,
input[type='submit'],
.page-numbers.current {
    background: var(--gold-gradient);
    color: var(--bc-ink);
    border: 1px solid var(--bc-gold);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 650;
}
.button:hover {
    color: var(--bc-ink);
    filter: brightness(1.06);
}
.button-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.button-outline:hover {
    color: var(--text);
    background: var(--surface);
}
.text-link {
    border-block-end: 1px solid var(--line);
    padding-block-end: 6px;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background) {
    background: var(--gold-gradient);
    color: var(--bc-ink);
}
.prose-page {
    max-width: 940px;
}
.entry-content {
    overflow-wrap: anywhere;
}
.entry-content a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.entry-content :is(h2, h3) {
    margin-block-start: 2em;
}
.entry-content p {
    color: var(--text);
}
.entry-content::after {
    content: '';
    display: block;
    clear: both;
}
.featured-image {
    display: block;
    border-radius: var(--radius);
    margin-block-end: 40px;
    width: 100%;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.card-image {
    display: block;
    aspect-ratio: 1.6;
    overflow: hidden;
    background: var(--surface-2);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font:
        700 4rem/1 Arial,
        sans-serif;
    color: var(--muted);
}
.card-content {
    padding: 24px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}
.card-content h2 {
    font-size: 1.3rem;
}
.card-content .text-link:last-child {
    margin-block-start: auto;
}
.pagination {
    margin-block: 35px;
}
.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin-block: 30px;
}
input,
textarea,
select {
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}
.search-form input[type='search'] {
    flex: 1;
    min-width: 0;
}
textarea {
    width: 100%;
}
input[type='submit'] {
    cursor: pointer;
}
.comments-area {
    border-block-start: 1px solid var(--line);
    padding-block-start: 40px;
    margin-block-start: 50px;
}
.comment-list {
    padding-inline-start: 25px;
}
.comment-body {
    padding-block: 20px;
}
.comment-metadata {
    font-size: 0.8rem;
}
.comment-author img {
    border-radius: 50%;
}
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-block: 30px;
}
.error-page {
    min-height: 65vh;
}
.wp-caption {
    max-width: 100%;
}
.wp-caption-text,
.gallery-caption {
    font-size: 0.85rem;
}
.sticky {
    border-color: var(--accent-readable);
}
.bypostauthor > .comment-body {
    border-inline-start: 2px solid var(--accent-readable);
    padding-inline-start: 16px;
}
.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}
.alignright {
    float: right;
    margin: 0 0 24px 24px;
}
.aligncenter {
    display: block;
    margin-inline: auto;
}
.wp-block-table {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
}
td,
th {
    border: 1px solid var(--line);
    padding: 12px;
    text-align: start;
}
blockquote {
    border-inline-start: 3px solid var(--accent-readable);
    margin-inline: 0;
    padding-inline-start: 24px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 30px;
}
@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section {
        padding-block: min(var(--section-space), 64px);
    }
}
@media (max-width: 600px) {
    .container {
        width: calc(100% - 36px);
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
    .section-heading-row {
        align-items: start;
        flex-direction: column;
    }
}
@media (forced-colors: active) {
    .button,
    input[type='submit'],
    .page-numbers.current {
        background: ButtonFace;
        color: ButtonText;
        border-color: ButtonText;
    }
}
