/* Arsham Trade — WordPress layer: blog, articles, generic pages, core blocks. Uses the tokens from arsham.css. */

/* Single-column hero (blog, archives, articles, generic pages) */
section.hero-solo { padding: 0; }
.hero-solo > .wrap { grid-template-columns: 1fr !important; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 940px) { .hero-solo > .wrap { padding-top: 64px; padding-bottom: 64px; } }
.hero-solo h1 { max-width: 20em; }
.hero .eyebrow a { color: inherit; text-decoration: none; }
.hero .eyebrow a:hover { text-decoration: underline; }

/* Search */
.bsearch { position: relative; max-width: 520px; margin-top: 6px; }
.bsearch input[type=search] { width: 100%; min-height: 52px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--hero-ink); padding: 0 20px 0 50px; font: 16px var(--sans); -webkit-appearance: none; appearance: none; }
.bsearch input::placeholder { color: var(--hero-soft); }
.bsearch input:focus { outline: none; border-color: var(--acc); background: rgba(255,255,255,.1); }
.bsearch svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--hero-soft); pointer-events: none; }

/* Category chips as links */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
a.chip { text-decoration: none; }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { padding: 30px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 18px; }
.topic { text-decoration: none; color: inherit; display: block; }
.post .ph img { display: block; height: 100%; }
.post .ph:empty { background: linear-gradient(135deg, var(--hero-bg), #2a3242); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 34px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* Article */
.article-hero .lead { max-width: 40em; }
.ameta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--hero-soft); font-size: 14px; }
.ameta li { display: inline-flex; align-items: center; gap: 7px; }
.ameta svg { width: 16px; height: 16px; opacity: .8; }
.article-cover { margin: 0 auto; padding-top: 28px; }
.article-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 22px; display: block; }
.article-cover figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 36px; padding-bottom: 64px; }
@media (min-width: 1080px) { .article-grid { grid-template-columns: 260px minmax(0, 760px); justify-content: center; gap: 56px; } .article-grid > .article-main:only-child { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; width: 100%; } }
.toc details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
@media (min-width: 1080px) { .toc { position: relative; } .toc details { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; } }
.toc summary { cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.toc li.l3 { padding-left: 14px; font-size: 13.5px; }
.toc a { color: var(--ink-soft); text-decoration: none; display: block; line-height: 1.4; }
.toc a:hover, .toc a.on { color: var(--ink); }
.atags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.share > span { font-weight: 700; margin-right: 6px; }
.share a, .share button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 500 14px var(--sans); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.share svg { width: 18px; height: 18px; color: #1fa855; }
.share .copy.done { background: #1fa855; color: #fff; border-color: #1fa855; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; margin: 28px 0 0; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.author-box .ab-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--hero-bg); display: grid; place-items: center; }
.author-box small { text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; color: var(--brand); font-weight: 700; }
.author-box b { display: block; font-size: 18px; margin: 2px 0 6px; }
.author-box p { margin: 0 0 6px; color: var(--ink-soft); font-size: 15px; }
.author-box .ab-links a { color: var(--ink); font-weight: 600; }

/* Prose: article and page content */
.article-main { min-width: 0; }
.prose { overflow-wrap: break-word; }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink); max-width: 760px; }
.wrap > .prose { margin: 0 auto; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 { font-family: var(--serif); font-size: clamp(25px, 3vw, 32px); line-height: 1.25; margin: 1.9em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; line-height: 1.35; margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.prose h4 { font-size: 18px; margin: 1.4em 0 .4em; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-deep); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: 14px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.prose blockquote cite { display: block; font: 500 14px var(--sans); color: var(--ink-soft); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--bg-alt); font-size: 14px; letter-spacing: .04em; }
.prose code { font-size: .88em; background: var(--bg-alt); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--hero-bg); color: var(--hero-ink); padding: 18px; border-radius: 14px; overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin: 0 0 10px; }
.prose details summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
.prose details[open] { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.prose details > :last-child { margin-bottom: 16px; }
.prose .wp-block-button__link { background: var(--brand); color: #fff; border-radius: 999px; padding: 13px 22px; text-decoration: none; font: 500 15px var(--sans); display: inline-block; }
.prose .wp-block-button__link:hover { background: var(--brand-deep); color: #fff; }
.prose .is-style-outline .wp-block-button__link { background: none; color: var(--ink); border: 1px solid var(--line); }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Patterns */
.arsham-takeaways { background: color-mix(in srgb, var(--acc) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line)); border-radius: 18px; padding: 22px 24px; }
.prose .arsham-takeaways h2 { font-size: 20px; margin: 0 0 8px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-deep); }
.arsham-takeaways ul { margin: 0; }
.arsham-cta { background: var(--hero-bg); color: var(--hero-ink); border-radius: 20px; padding: 28px; }
.prose .arsham-cta h3 { margin-top: 0; color: #fff; font-family: var(--serif); font-size: 24px; }
.arsham-cta p { color: var(--hero-soft); }
.prose .arsham-cta .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.3); }
.arsham-facts th { width: 40%; background: var(--bg-alt); }

/* Core alignment and accessibility classes */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose .alignwide { max-width: min(1100px, 100vw - 32px); margin-left: 50%; transform: translateX(-50%); width: 100vw; }
.prose .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
@media (max-width: 1079px) { .prose .alignwide { width: 100%; margin-left: 0; transform: none; } }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--ink-soft); }
.sticky, .bypostauthor { position: relative; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }

/* Comments */
.comments { margin-top: 40px; }
.comments h2 { font-family: var(--serif); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 16px var(--sans); }
.comment-form .submit { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font: 500 15px var(--sans); cursor: pointer; }

/* A shortcode form placed in a designed page */
.arsham-sc-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.arsham-sc-form input:not([type=submit]):not([type=checkbox]):not([type=radio]), .arsham-sc-form select, .arsham-sc-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--sans); }
.arsham-sc-form input[type=submit], .arsham-sc-form button[type=submit] { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font: 500 15px var(--sans); cursor: pointer; }

/* Admin bar offset for the sticky header */
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .top { top: 0; } }

/* An old copy of the dock pasted in a code snippet also set the page font and a preview note; keep the theme's. */
html body { font-family: var(--sans); min-height: 0; }
.preview-hint { display: none !important; }
