/**
 * TO3EDEV v5 — نوشته‌ها، برگه‌ها و آرشیو
 * عرض محتوا از «سفارشی‌سازی ← TO3EDEV — تنظیمات عمومی» (پیش‌فرض: تمام‌عرض)
 */

.t3-page-head { padding: 40px 0 30px; }
.t3-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--t3-mute); margin-bottom: 18px; }
.t3-crumbs a:hover { color: var(--t3-a); }
.t3-crumbs span[aria-hidden] { opacity: .5; }
.t3-page-title { font-size: clamp(34px, 5.4vw, 72px); font-weight: 900; line-height: 1.3; margin: 0; letter-spacing: -1px; }
.t3-page-desc { color: var(--t3-mute); font-size: 17px; max-width: 760px; margin-top: 14px; }
.t3-post__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--t3-mute); font-size: 14px; }
.t3-post__meta > * { display: inline-flex; align-items: center; gap: 8px; }
.t3-post__meta > * + *::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--t3-a); }

.t3-post__cover { margin: 10px auto 40px; width: min(1240px, calc(100% - 40px)); border-radius: 28px; overflow: clip; border: 1px solid var(--t3-line); }
.t3-post__cover img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; display: block; }

/* ── Content: full width by default ── */
.t3-content { --t3-gutter: clamp(20px, 4vw, 56px); font-size: 18px; line-height: 2.15; color: var(--t3-ink); padding-inline: var(--t3-gutter); overflow-wrap: break-word; }
.t3-content > * { margin-inline: auto; max-width: none; }
body.t3-width-wide .t3-content > * { max-width: 1200px; }
body.t3-width-normal .t3-content > * { max-width: 760px; }
body.t3-width-normal .t3-content > .alignwide { max-width: 1200px; }
.t3-content > .alignfull { max-width: none; margin-inline: calc(var(--t3-gutter) * -1); width: auto; }
.t3-content--blank { padding-inline: 0; }
.t3-content--blank > * { max-width: none; }

.t3-content h2, .t3-content h3, .t3-content h4 { line-height: 1.5; font-weight: 900; margin-top: 1.8em; margin-bottom: .6em; }
.t3-content h2 { font-size: clamp(26px, 2.6vw, 36px); }
.t3-content h3 { font-size: clamp(22px, 2vw, 28px); }
.t3-content p { margin: 0 0 1.3em; }
.t3-content a { color: var(--t3-a-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
html:not([data-theme="light"]) .t3-content a { color: var(--t3-a); }
.t3-content img { border-radius: 18px; }
.t3-content figure { margin-block: 2em; }
.t3-content figcaption { color: var(--t3-mute); font-size: 14px; text-align: center; margin-top: 8px; }
.t3-content blockquote { margin-block: 2em; padding: 22px 28px; border-radius: 20px; border: 1px solid var(--t3-line); border-inline-start: 4px solid var(--t3-a); background: var(--t3-glass); font-size: 1.1em; }
.t3-content pre, .t3-content code { font-family: var(--t3-mono); direction: ltr; text-align: left; }
.t3-content code { background: var(--t3-glass-2); padding: .15em .45em; border-radius: 6px; font-size: .88em; }
.t3-content pre { background: #0b1018; color: #e2e8f0; padding: 22px; border-radius: 18px; overflow-x: auto; border: 1px solid var(--t3-line); font-size: 14px; line-height: 1.8; }
.t3-content pre code { background: none; padding: 0; }
.t3-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.t3-content th, .t3-content td { padding: 12px 14px; border-bottom: 1px solid var(--t3-line); text-align: right; }
.t3-content ul, .t3-content ol { padding-inline-start: 1.4em; }
.t3-content hr { border: 0; height: 1px; background: var(--t3-line); margin-block: 3em; }
.t3-content .wp-block-button__link { background: linear-gradient(120deg, var(--t3-a), var(--t3-b)); color: var(--t3-on-a); border-radius: 14px; text-decoration: none; font-weight: 700; padding: 14px 26px; }

.t3-post__foot { padding-top: 30px; }
.t3-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.t3-tags a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--t3-line); background: var(--t3-glass); font-size: 14px; color: var(--t3-mute); }
.t3-tags a:hover { color: var(--t3-ink); border-color: var(--t3-a); }
.t3-post__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.t3-post__nav a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; border: 1px solid var(--t3-line); background: var(--t3-glass); transition: border-color .3s, transform .4s var(--t3-ease); }
.t3-post__nav a:hover { border-color: var(--t3-a); transform: translateY(-4px); }
.t3-post__nav small { color: var(--t3-mute); }
.t3-post__nav b { font-size: 18px; line-height: 1.6; }
.t3-post__next { text-align: left; }
.t3-comments { margin-top: 60px; }

/* ── Archive grid ── */
.t3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.t3-card__link { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: clip; border: 1px solid var(--t3-line); background: var(--t3-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .4s, transform .5s var(--t3-ease), box-shadow .5s; }
.t3-card__link:hover { border-color: rgba(45, 212, 191, .55); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(45, 212, 191, .45); }
.t3-card__media { display: block; aspect-ratio: 16 / 10; overflow: clip; background: var(--t3-bg-2); }
.t3-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--t3-ease); }
.t3-card__link:hover .t3-card__media img { transform: scale(1.07); }
.t3-card__ph { display: grid; place-items: center; height: 100%; color: var(--t3-a); }
.t3-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.t3-card__cat { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(45, 212, 191, .12); color: var(--t3-a-ink); }
html:not([data-theme="light"]) .t3-card__cat { color: var(--t3-a); }
.t3-card__title { font-size: 20px; font-weight: 800; line-height: 1.6; }
.t3-card__excerpt { color: var(--t3-mute); font-size: 15px; line-height: 1.9; }
.t3-card__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--t3-line); color: var(--t3-mute); font-size: 13px; }

.t3-pager { margin: 50px 0 0; }
.t3-pager ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.t3-pager a, .t3-pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--t3-line); background: var(--t3-glass); }
.t3-pager .current { background: var(--t3-a); color: var(--t3-on-a); border-color: transparent; }
.t3-empty { padding: 40px 0; color: var(--t3-mute); font-size: 17px; }
.t3-empty a { color: var(--t3-a); }
.t3-search form { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; }
.t3-search input[type="search"] { flex: 1; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--t3-line-2); background: var(--t3-glass); color: var(--t3-ink); font: inherit; }
.t3-search input[type="submit"], .t3-search button { min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--t3-a); color: var(--t3-on-a); font: 700 15px var(--t3-font); cursor: pointer; }

/* ── Comments ── */
.t3-cmts { max-width: 860px; }
.t3-cmts__title, .t3-cmts .comment-reply-title { font-size: 24px; font-weight: 900; margin: 0 0 18px; }
.t3-cmts__list, .t3-cmts .children { list-style: none; margin: 0; padding: 0; }
.t3-cmts .children { padding-inline-start: 28px; }
.t3-cmts .comment-body { padding: 18px; margin-bottom: 14px; border-radius: 18px; border: 1px solid var(--t3-line); background: var(--t3-glass); }
.t3-cmts .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.t3-cmts .comment-author img { border-radius: 50%; }
.t3-cmts .comment-metadata { font-size: 13px; color: var(--t3-mute); margin: 4px 0 8px; }
.t3-cmts .reply a { font-size: 13px; color: var(--t3-a); }
.t3-cmts .comment-form { display: grid; gap: 12px; }
.t3-cmts .comment-form label { display: block; font-size: 14px; margin-bottom: 6px; }
.t3-cmts .comment-form input[type="text"], .t3-cmts .comment-form input[type="email"], .t3-cmts .comment-form input[type="url"], .t3-cmts .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--t3-line-2); background: var(--t3-glass); color: var(--t3-ink); font: inherit; }
.t3-cmts .comment-form input:focus, .t3-cmts .comment-form textarea:focus { outline: none; border-color: var(--t3-a); }
.t3-cmts .form-submit { margin: 0; }
