/* Urban Purple Blog — layout for the blog. Colors, fonts, header, footer and buttons come from the main site's style.css. */

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100001; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Blog hero (listing, categories, search) ---------- */
.blog-hero .container { padding-bottom: 56px; }
.blog-search { display: flex; max-width: 460px; margin-top: 10px; background: var(--white); border-radius: 999px; padding: 4px; }
.blog-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 18px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 999px; }
.blog-search input:focus { outline: none; }
.blog-search button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--aubergine); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.blog-search:focus-within { box-shadow: 0 0 0 3px var(--saffron); }

/* ---------- Post grid and cards ---------- */
.blog-list { padding-top: 64px; }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.post-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.post-card-media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--white); }
.post-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-card-img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; }
.post-card-cat { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--aubergine); text-decoration: none; }
.post-card-cat:hover { text-decoration: underline; }
.post-card-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.005em; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--aubergine); text-decoration: underline; text-underline-offset: 3px; }
.post-card-date { font-size: 14px; color: var(--muted); }

/* ---------- Pagination ---------- */
.pager { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--aubergine); color: var(--aubergine); }
.pager .current { background: var(--aubergine); border-color: var(--aubergine); color: var(--white); }
.pager .dots { background: transparent; border-color: transparent; }

/* ---------- Single post (full-width card, like Fashion Forecast) ---------- */
.post-wrap { padding: 40px 0 88px; background: var(--bg); }
.post-wrap > .container { max-width: none; padding: 0 72px; }
.post-sheet { background: var(--white); border: 1px solid rgba(30, 18, 38, .08); border-radius: 20px; box-shadow: 0 10px 30px rgba(30, 18, 38, .08); overflow: hidden; }
.post-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 64px; border-bottom: 1px solid var(--line); }
.post-header.no-cover { grid-template-columns: minmax(0, 1fr); }
.post-header.no-cover .post-header-text { max-width: 900px; }
.post-header-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.post-cover { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg); }
.post-cover img { width: 100%; height: auto; display: block; }
.post-header .breadcrumb { color: var(--muted); }
.post-header .breadcrumb a { color: var(--muted); }
.post-header .breadcrumb [aria-current] { color: var(--ink); }
.post-pill { font-size: 13px; font-weight: 700; color: var(--aubergine); background: var(--bg); padding: 7px 14px; border-radius: 999px; text-decoration: none; }
.post-pill:hover { background: #DDD9F3; }
.post-title { margin: 0; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.post-dek { margin: 0; font-size: 19px; line-height: 1.55; color: var(--body); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 32px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.post-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-meta-avatar { border-radius: 50%; width: 32px; height: 32px; flex: 0 0 32px; object-fit: cover; }

/* Article text */
.entry-content { padding: 56px 64px 8px; font-size: 19px; line-height: 1.75; color: var(--body); overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content [style*="text-align: justify"], .entry-content [style*="text-align:justify"] { text-align: left !important; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5 { color: var(--ink); line-height: 1.3; font-weight: 700; letter-spacing: -0.005em; margin: 1.8em 0 .6em; }
.entry-content h2 { font-size: 32px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 52px; }
.entry-content h3 { font-size: 26px; }
.entry-content h4 { font-size: 20px; }
.entry-content h5 { font-size: 18px; }
.entry-content h2 strong, .entry-content h3 strong, .entry-content h4 strong { font-weight: inherit; }
.entry-content a { color: var(--aubergine); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ink); }
.entry-content a strong { font-weight: 600; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li::marker { color: var(--aubergine); }
/* Old posts put headings inside bullet points: show them as plain headings */
.entry-content ul:has(> li > :is(h2, h3, h4, h5):only-child) { list-style: none; padding-left: 0; margin: 0; }
.entry-content li > :is(h2, h3, h4, h5):only-child { margin-top: 1.4em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--saffron); font-size: 22px; line-height: 1.5; color: var(--ink); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.entry-content th { background: var(--bg); color: var(--ink); font-weight: 600; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content iframe { max-width: 100%; }
/* Sharing is built into the theme; hide old plugin buttons inside articles */
.entry-content .heateor_sss_sharing_container, .entry-content .heateorSssClear { display: none !important; }
.page-links { margin-top: 2em; display: flex; gap: 8px; align-items: center; }

/* Article footer: share, tags, partner box, author */
.post-footer { padding: 0 64px 64px; }

/* Share */
.post-share { margin: 24px 0 0; padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post-share > span { font-size: 15px; font-weight: 600; color: var(--ink); margin-right: 6px; }
.post-share a, .post-share button { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--aubergine); color: var(--aubergine); }
.post-tags { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--body); text-decoration: none; }

/* Partner box inside the article */
.post-partner { margin: 32px 0 0; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; }
.post-partner .who { display: block; font-size: 14px; color: var(--saffron); margin-bottom: 8px; }
.post-partner h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.post-partner p { margin: 0; font-size: 16px; line-height: 1.6; color: #D8CCE0; }
.post-partner .btn-saffron { white-space: nowrap; }

/* Author */
.post-author { margin: 24px 0 0; padding: 24px; border-radius: var(--radius); background: var(--bg); display: flex; gap: 20px; align-items: flex-start; }
.post-author-avatar { border-radius: 50%; flex: none; width: 64px; height: 64px; }
.post-author-label { display: block; font-size: 14px; color: var(--muted); }
.post-author-name { display: inline-block; margin: 2px 0 6px; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
.post-author p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--body); }

/* More to read */
.post-related { margin: 64px 0 0; }
.post-related .block-title { margin-bottom: 28px; }

/* Comments */
.post-comments { margin-top: 48px; padding: 40px 64px; }
.post-related .post-card-title { font-size: 18px; }
.comment-list { list-style: none; margin: 28px 0 0; padding: 0; }
.comment-list ol.children { list-style: none; margin: 0 0 0 40px; padding: 0; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 0 56px; font-size: 14px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-left: 56px; font-size: 16px; line-height: 1.7; color: var(--body); }
.reply { margin-left: 56px; font-size: 14px; }
.reply a { color: var(--aubergine); font-weight: 600; }
.comment-respond { margin-top: 32px; }
.comment-reply-title { margin: 0 0 8px; font-size: 22px; color: var(--ink); }
.comment-reply-title small { margin-left: 12px; font-size: 14px; }
.comment-notes, .logged-in-as { font-size: 15px; color: var(--muted); }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.comment-form > p { margin: 0 0 18px; }
.comment-form .comment-notes, .comment-form .logged-in-as, .comment-form .comment-form-comment, .comment-form .comment-form-url, .comment-form .comment-form-cookies-consent, .comment-form .form-submit { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 13px 16px; border: 1px solid #C9C3E0; border-radius: 8px; background: var(--white); color: var(--ink); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--aubergine); box-shadow: 0 0 0 3px rgba(59, 30, 84, .15); }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--body); }
.comments-closed { color: var(--muted); }

.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--body); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .post-wrap { padding-top: 24px; }
  .post-wrap > .container { padding: 0 24px; }
  .post-header { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px; }
  .post-cover { order: -1; }
  .entry-content { padding: 40px 40px 8px; }
  .post-footer { padding: 0 40px 48px; }
  .post-comments { padding: 32px 40px; }
}
@media (max-width: 900px) {
  .post-grid, .post-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .post-partner { grid-template-columns: minmax(0, 1fr); }
  .post-partner .btn-saffron { justify-self: start; }
  .post-comments { padding: 32px 28px; }
}
@media (max-width: 640px) {
  .post-grid, .post-grid.three { grid-template-columns: minmax(0, 1fr); }
  .post-wrap { padding: 16px 0 56px; }
  .post-wrap > .container { padding: 0 12px; }
  .post-sheet { border-radius: 14px; }
  .post-header { padding: 20px 18px 28px; gap: 22px; }
  .entry-content { padding: 32px 18px 8px; font-size: 17px; }
  .post-footer { padding: 0 18px 32px; }
  .entry-content h2 { font-size: 25px; } .entry-content h3 { font-size: 22px; } .entry-content h4 { font-size: 19px; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; max-width: 100%; }
  .post-partner { padding: 24px; }
  .post-author { flex-direction: column; }
  .post-comments { padding: 24px 16px; }
  .comment-form { grid-template-columns: minmax(0, 1fr); }
  .comment-metadata, .comment-content, .reply { margin-left: 0; }
}
