/* All declarations below apply only to the new main region. */
.pattern {
    --pt-ink: #1e293b;
    --pt-muted: #64748b;
    --pt-border: #e2e8f0;
    --pt-surface: #fff;
    --pt-bg: #f8fafc;
    --pt-accent: #03CED6;
    --pt-radius: 5px;
    --pt-hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 8%), 0 4px 6px -2px rgb(0 0 0 / 4%);
    min-block-size: calc(100svh - 81px - 345px + 1px);

    & .pt-container { max-width: 1280px; margin-inline: auto; padding: 24px 16px 48px; }
    & .pt-reading { max-width: 768px; margin-inline: auto; }
    & .pt-heading { margin-bottom: 20px; }
    & .pt-heading h1 { font-size: 24px; line-height: 32px; font-weight: 700; overflow-wrap: anywhere; }
    & h2 { font-size: 16px; font-weight: 700; line-height: 24px; }
    & .pt-crumbs { color: var(--pt-muted); font-size: 13px; line-height: 1.9; margin-bottom: 8px; }
    & .pt-crumbs ol, & .pt-crumbs li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    & .pt-crumbs [aria-current] { color: var(--pt-ink); }
    & .pt-panel { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); min-width: 0; }
    & .pt-pad { padding: 20px; }
    & .pt-note, & .pt-count { font-size: 13px; color: var(--pt-muted); line-height: 1.9; }
    & .pt-count { margin: 0 0 12px; overflow-wrap: anywhere; }
    & .pt-prose { line-height: 2; }
    & .pt-prose section { margin-top: 24px; scroll-margin-top: 110px; }
    & .pt-prose section h2 { margin-bottom: 8px; }
    & .pt-prose section p { margin-bottom: 12px; }
    & .pt-prose section ul { padding-inline-start: 24px; list-style: disc; }
    & .pt-prose blockquote { margin: 16px 0; padding: 12px 16px; background: var(--pt-bg); border-inline-start: 4px solid var(--pt-accent); }
    & .pt-prose p a, & .pt-textlink, & .pt-toc a { color: var(--pt-accent); }
    & a { text-decoration: none; }
    & .pt-textlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 500; }
    & :is(.pt-crumbs, .pt-toc, .pt-related, .pt-card) a:hover, & .pt-textlink:hover { color: var(--pt-accent); }
    & :is(a, button, summary):focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 3px; }
    & .pt-button {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        min-height: 48px; padding: 12px 20px; border-radius: var(--pt-radius);
        background: var(--pt-ink); color: var(--pt-surface); font-weight: 500; line-height: 24px;
        transition: background-color .2s, border-color .2s;
    }
    & .pt-button:hover { background-color: #334155; }
    & .pt-button:disabled { opacity: .55; cursor: wait; }
    & .pt-button.pt-secondary { background: var(--pt-surface); color: var(--pt-ink); border: 1px solid var(--pt-border); padding-block: 11px; }
    & .pt-button.pt-secondary:hover { background: var(--pt-bg); border-color: var(--pt-accent); }
    & .pt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
    & .pt-actions svg { flex: none; }

    & .pt-toc { margin-block: 20px; background: var(--pt-bg); font-size: 14px; line-height: 1.9; }
    & .pt-toc summary {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px; padding: 8px 16px; min-height: 44px; font-weight: 700; cursor: pointer;
    }
    & .pt-toc summary::-webkit-details-marker { display: none; }
    & .pt-toc summary svg { flex: none; }
    & .pt-toc[open] summary { border-bottom: 1px solid var(--pt-border); }
    & .pt-toc-label { display: inline-flex; align-items: center; gap: 8px; }
    & .pt-toc-label svg { width: 16px; height: 16px; color: var(--pt-muted); }
    & .pt-toc[open] summary > svg { transform: rotate(90deg); }
    & .pt-toc:not([open]) summary > svg { transform: rotate(-90deg); }
    & :is(.pt-crumbs, .pt-textlink, .pt-related li) svg.rtl\:rotate-180 { transform: none; }
    & .pt-toc ol { padding: 6px 16px 8px; }
    & .pt-toc li + li { border-top: 1px solid var(--pt-border); }
    & .pt-toc a { display: block; padding: 8px 0; }

    & .pt-contact { display: grid; gap: 24px; align-items: start; }
    & .pt-contact h2 { margin-bottom: 8px; }
    & .pt-contact-list { margin-block: 16px; }
    & .pt-contact-list li { display: flex; gap: 8px; align-items: flex-start; padding-block: 12px; border-bottom: 1px solid var(--pt-border); }
    & .pt-contact-list svg { color: var(--pt-muted); }
    & .pt-contact-list strong { font-size: 14px; font-weight: 700; }
    & .pt-contact-list p { color: var(--pt-muted); font-size: 14px; line-height: 1.9; }
    & .pt-form { margin-top: 16px; }
    & .pt-form > * + *, & .pt-field-pair > * + * { margin-top: 16px; }
    & .pt-field { min-width: 0; }
    & .pt-field label, & .pt-search label { display: block; margin-bottom: 8px; color: var(--pt-muted); font-size: 13px; }
    & .pt-field :is(input, textarea) {
        display: block; width: 100%; padding: 10px 16px; border: 1px solid var(--pt-border);
        background: var(--pt-bg); border-radius: var(--pt-radius); font-size: 14px; line-height: 20px;
    }
    & .pt-field textarea { resize: vertical; }
    & .pt-field [aria-invalid="true"] { border-color: #b91c1c; }
    & .pt-error { color: #b91c1c; font-size: 13px; margin-top: 6px; }
    & .pt-confirmation { background: #f0fbfb; border: 1px solid #03ced66e; border-radius: var(--pt-radius); padding: 16px; margin-top: 16px; }
    & .pt-confirmation h3 { display: flex; align-items: center; gap: 8px; font-weight: 700; }
    & .pt-confirmation p { margin-block: 8px 16px; font-size: 14px; color: var(--pt-muted); }

    & .pt-filters, & .pt-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    & .pt-filters { margin-bottom: 16px; }
    & .pt-filters a {
        display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px;
        border-radius: 4px; background: var(--pt-surface); color: var(--pt-muted);
        border: 1px solid var(--pt-border); font-size: 14px; font-weight: 500; line-height: 21px;
    }
    & .pt-filters a:hover, & .pt-filters [aria-current], & .pt-pager [aria-current] {
        color: var(--pt-accent); border-color: #03ced67a; background: #03ced60c;
    }
    & .pt-pager { justify-content: center; margin-top: 24px; }
    & .pt-pager > * {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 44px; min-width: 44px; padding-inline: 8px; border: 1px solid var(--pt-border);
        border-radius: var(--pt-radius); background: var(--pt-surface); color: var(--pt-muted); font-size: 14px;
    }
    & .pt-pager a:hover { background: #f0fbfb; border-color: #03ced67a; color: var(--pt-accent); }
    & .pt-pager [aria-disabled] { opacity: .55; }
    & .pt-cards { display: grid; gap: 24px; }
    & .pt-card { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
    & .pt-card:not(:has(.pt-thumb)) { align-self: start; }
    & .pt-card:hover, & .pt-card:focus-within { box-shadow: var(--pt-hover-shadow); border-color: #03ced680; }
    & .pt-thumb { display: block; height: 192px; overflow: hidden; background: var(--pt-bg); }
    & .pt-thumb img { width: 100%; height: 100%; object-fit: cover; }
    & .pt-card-copy { padding: 20px; display: flex; flex-direction: column; flex: 1; }
    & .pt-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--pt-muted); font-size: 11px; }
    & .pt-meta span { display: inline-flex; gap: 4px; align-items: center; }
    & .pt-meta svg { width: 16px; height: 16px; }
    & .pt-badge { padding: 4px 8px; background: #03ced61a; color: var(--pt-accent); border-radius: var(--pt-radius); font-weight: 700; font-size: 10px; line-height: 15px; }
    & .pt-card h2 { line-height: 20px; margin-block: 12px 8px; }
    & .pt-card p { color: var(--pt-muted); font-size: 12px; line-height: 1.625; margin-bottom: 16px; }
    & .pt-card .pt-textlink { margin-top: auto; align-self: flex-start; }

    & .pt-article-layout { display: grid; align-items: start; gap: 24px; }
    & .pt-article { min-width: 0; }
    & .pt-article .pt-meta { margin-top: 12px; }
    & .pt-feature { overflow: hidden; margin-bottom: 20px; }
    & .pt-feature img { width: 100%; height: auto; }
    & .pt-article-content > .pt-toc { margin: 0 0 12px; background: var(--pt-surface); }
    & .pt-related, & .pt-article-copy { padding: 16px; }
    & .pt-related h2 { margin-bottom: 8px; }
    & .pt-related li { border-bottom: 1px solid var(--pt-border); padding-block: 12px; }
    & .pt-related li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
    & .pt-related li svg { flex: none; }
    & .pt-related-entry { display: flex; align-items: center; gap: 8px; }
    & .pt-related:not(.av-related-media) li > a { font-size: 13px; line-height: 21px; }
    & .pt-related:not(.av-related-media) li > a svg { width: 21px; height: 21px; }
    & .pt-related-entry svg { color: var(--pt-muted); }
    & .pt-related:not(.av-related-media) li > time { display: block; }
    & .pt-related time { text-align: right; font-size: 11px; color: var(--pt-muted); }
    & .pt-related .pt-textlink { display: flex; width: fit-content; margin-top: 8px; margin-left: 0; margin-right: auto; }

    & .pt-search { padding: 20px; }
    & .pt-search form > div { display: flex; gap: 8px; }
    & .pt-search input {
        flex: 1; min-width: 0; width: 100%; padding: 13px 14px; border: 1px solid #cbd5e1;
        background: var(--pt-surface); border-radius: var(--pt-radius); font-size: 14px; line-height: 21px;
    }
    & .pt-search button { min-width: 49px; padding: 0; }
    & .pt-search .pt-count { margin: 16px 0 0; }
    & .pt-results { margin-top: 8px; }
    & .pt-results li a {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        padding: 12px 8px; border-bottom: 1px solid var(--pt-border); min-height: 44px;
    }
    & .pt-results li a:hover { background: #f0fbfb; }
    & .pt-results li:last-child a { border: 0; }
    & .pt-results h2 { font-size: 14px; line-height: 21px; }
    & .pt-results p { color: var(--pt-muted); font-size: 13px; line-height: 1.9; }
    & .pt-results .pt-result-type { font-size: 11px; margin-bottom: 4px; }
    & .pt-results span { color: var(--pt-accent); }
    & .pt-empty, & .pt-lost { padding: 24px 16px; text-align: center; }
    & .pt-empty p, & .pt-lost p { font-size: 14px; color: var(--pt-muted); line-height: 1.9; margin-top: 8px; }
    & .pt-empty .pt-button { margin-top: 16px; }
    & .pt-iconbox {
        display: grid; place-items: center; margin: 0 auto 12px; width: 48px; height: 48px;
        background: #03ced60a; border: 1px solid #03ced625; border-radius: var(--pt-radius); color: var(--pt-accent);
    }
    & .pt-iconbox svg { width: 25px; height: 25px; }
    & .pt-lost .pt-code { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--pt-ink); }
    & .pt-lost .pt-actions { justify-content: center; margin-top: 16px; }
}
@media (max-width: 767px) {
    .pattern { min-block-size: calc(100svh - 81px - 535px + 1px); }
}
@media (min-width: 640px) {
    .pattern .pt-container { padding-inline: 24px; }
}
@media (min-width: 768px) {
    .pattern .pt-heading h1 { font-size: 30px; line-height: 36px; }
    .pattern .pt-pad { padding: 28px; }
    .pattern .pt-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
    .pattern .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pattern .pt-article-layout { grid-template-columns: minmax(0, 2.65fr) minmax(232px, 1fr); row-gap: 0; }
    .pattern .pt-article { grid-area: 1 / 1 / span 2 / 2; display: grid; grid-template-rows: subgrid; align-self: stretch; }
    .pattern .pt-sidebar { grid-area: 2 / 2; }
    .pattern .pt-search { padding: 24px; }
    .pattern .pt-contact h2, .pattern .pt-prose h2 { font-size: 20px; line-height: 30px; }
}
@media (min-width: 1024px) {
    .pattern .pt-container { padding-inline: 32px; }
    .pattern .pt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pattern .pt-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pattern .pt-field-pair > * + * { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pattern .pt-button, .pattern .pt-card { transition: none; }
}

.pattern .pt-article-copy :is(h2,h3,h4) { margin-block: 1.25em .5em; scroll-margin-top: 110px; }
.pattern .pt-article-copy :is(p,figure,ul,ol) { margin-block: 0 1em; }
.pattern .pt-article-copy :is(ul,ol) { padding-inline-start: 1.5em; }
.pattern .pt-article-copy ul { list-style: disc; }
.pattern .pt-article-copy ol { list-style: decimal; }
.pattern .pt-article-copy img { max-width: 100%; height: auto; }

.pattern .pt-article-copy > :first-child { margin-block-start: 0; }
.pattern .pt-article-copy > :last-child { margin-block-end: 0; }
.pattern .pt-article-copy h3 { font-weight: 700; }
.pattern .pt-article-copy :is(p,li,blockquote), .pattern .pt-related-entry { overflow-wrap: anywhere; }
.pattern .pt-article-copy section > :is(h2,h3,h4):first-child { margin-block-start: 0; }
.pattern .pt-article-copy blockquote > :last-child { margin-block-end: 0; }

.pattern .pt-page-copy > h2 { margin-block: 24px 8px; scroll-margin-top: 110px; }
.pattern .pt-page-copy > h2 + p { margin-block-end: 12px; }
#contact-message { scroll-margin-top: 110px; }

.pattern .pt-article-copy .wp-video { max-width: 100%; margin-block: 1.25rem .75rem; }
.pattern .pt-article-copy .wp-audio-shortcode { margin-block: 1rem .75rem; }

.pattern .pt-comments { margin-block-start: 24px; scroll-margin-top: 110px; }
.pattern .pt-comments :is(h2,h3) { font-weight: 700; margin-block-end: 12px; }
.pattern .pt-comments :is(.comment,.comment-respond) { scroll-margin-top: 110px; }
.pattern .pt-comments .andishe-comment-list { margin-block-end: 24px; }
.pattern .pt-comments .andishe-comment-list > li + li { margin-block-start: 12px; }
.pattern .pt-comments .children { margin-block-start: 8px; padding-inline-start: min(20px, 4vw); border-inline-start: 2px solid #03ced65c; }
.pattern .pt-comments .children > li + li { margin-block-start: 8px; }
.pattern .pt-comments .comment-body { border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 12px 16px; overflow-wrap: anywhere; }
.pattern .pt-comments .children .comment-body { background: var(--pt-bg); }
.pattern .pt-comments .comment-content { margin-block: 8px; line-height: 1.9; }
.pattern .pt-comments .comment-author .says { display: none; }
.pattern .pt-comments .comment-respond { border: 1px solid var(--pt-border); border-radius: var(--pt-radius); background: var(--pt-bg); padding: 16px; }
.pattern .pt-comments .comment .comment-respond { margin-block-start: 8px; }
.pattern .pt-comments .comment-meta, .pattern .pt-comments .comment-notes { font-size: 13px; color: var(--pt-muted); }
.pattern .pt-comments :is(.reply,.comment-meta,.comment-content) a { color: #03CED6; }
.pattern .pt-comments .comment-form > p + p { margin-block-start: 12px; }
.pattern .pt-comments label { display: block; margin-block-end: 4px; }
.pattern .pt-comments .comment-form-cookies-consent label { display: inline; margin-inline-start: 6px; }
.pattern .pt-comments :is(textarea,input:not([type=submit],[type=checkbox],[type=hidden])) {
    width: 100%; padding: 10px 12px; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius);
}
.pattern .pt-comments textarea { resize: vertical; min-height: 120px; }

.pattern .andishe-comment-meta { display:flex; align-items:center; gap:10px; }
.pattern .andishe-comment-meta time { display:block; font-size:12px; color:var(--pt-muted); }
.pattern .andishe-comment-avatar { width:36px; height:36px; flex:none; display:grid; place-items:center; background:var(--pt-bg); border:1px solid var(--pt-border); border-radius:var(--pt-radius); color:var(--pt-muted); overflow:hidden; }
.pattern .andishe-comment-avatar.is-editorial { background:var(--pt-ink); color:white; }
.pattern .andishe-comment-avatar svg { width:21px; height:21px; }
.pattern .andishe-comment-avatar img { width:100%; height:100%; object-fit:contain; }
.pattern .pt-comments .reply a { display:inline-flex; border:1px solid var(--pt-border); border-radius:var(--pt-radius); padding:3px 10px; font-size:13px; }
.pattern .pt-comments .reply a:hover { background:var(--pt-bg); border-color:var(--pt-accent); }
.pattern .andishe-comments-more { margin-block-end:12px; }
.pattern .andishe-comments-status:not(:empty) { margin-block-end:12px; }
@media (min-width: 768px) {
    .pattern .pt-sidebar {
        position:sticky; align-self:start;
        top:min(calc(100px + var(--wp-admin--admin-bar--height, 0px)), calc(100dvh - var(--andishe-sidebar-height, 0px) - 16px));
    }
}

.pattern .pt-lost .pt-code {
    display: grid; place-items: center; position: relative; isolation: isolate;
    width: fit-content; margin: 12px auto 24px; padding: 12px 24px;
    color: var(--pt-ink); font-size: clamp(68px, 15vw, 112px); font-weight: 700; line-height: 1;
    transform: rotate(-7deg);
}
.pattern .pt-lost .pt-code::before {
    content: ""; position: absolute; z-index: -1; inset: 3px -5px;
    border: 1px solid #03ced65c; border-radius: var(--pt-radius);
    background: #e7f8f8; box-shadow: 6px 7px 0 #03ced629;
}
.pattern .pt-lost .pt-actions { gap: 8px; }
.pattern .pt-lost .pt-actions .pt-button { min-width: 126px; font-size: 14px; padding-inline: 12px; }
.pattern .pt-lost .pt-actions .pt-secondary:is(:hover,:focus-visible) { color: #03CED6; }

.pattern .pt-comments button.andishe-comment-send { display:inline-grid; place-items:center; width:46px; height:46px; min-height:44px; padding:0; background-color: var(--pt-ink); color: var(--pt-surface); }
.pattern .pt-comments button.andishe-comment-send:hover { box-shadow: 0 3px 8px rgb(30 41 59 / 20%); }
.pattern .av-related-media ul { display: grid; gap: 8px; }
.pattern .av-related-media li {
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 0;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.pattern .av-related-media li:is(:hover,:focus-within) { border-color: #03ced680; }
.pattern .av-related-media li a { display:grid; grid-template-columns: 36px minmax(0,1fr) 16px; align-items:center; gap:4px 8px; padding:8px; }
.pattern .av-related-media li a:is(:hover,:focus-visible) .av-related-title { color:#03ced6; }
.pattern .av-related-icon {
    display:grid; place-items:center; width:36px; height:36px;
    border-radius:5px; background:#e7f8f8; color:#03CED6;
}
.pattern .av-related-icon svg { width:20px; height:20px; }
.pattern .av-related-copy { display:contents; }
.pattern .av-related-title { color:#1e293b; font-size:13px; line-height:1.55; overflow-wrap:anywhere; transition:color .2s; }
.pattern .av-related-duration { display:flex; align-items:center; gap:3px; color:#64748b; font-size:11px; }
.pattern .av-related-duration svg { width:12px; height:12px; }
@media (prefers-reduced-motion: reduce) {
    .pattern .av-related-media :is(li,.av-related-title) { transition:none; }
}
.pattern .av-related-copy :is(time,.av-related-duration) { grid-area:2 / 2; }

.pattern .av-related-media li a > svg { grid-area:1 / 3; }
