/*
Theme Name: SpainExchange Blog
Description: The blog in the look of spainexchange.com: same header, footer, colours and type. Header and footer come from parts/*.html (see tools/wp-theme/build-parts.py in the site repository).
Version: 1.0
Text Domain: se-blog
*/
.se-blog-head { margin: 0 0 22px; }
.se-blog-head h1 { margin: 0 0 6px; }
.se-blog-cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.se-blog-cats li { margin: 0; list-style: none; }
.se-blog-cats a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--se-line); border-radius: 999px; color: var(--se-ink); text-decoration: none; font-weight: 600; font-size: 15px; background: #fff; }
.se-blog-cats a:hover, .se-blog-cats a[aria-current] { border-color: var(--se-brand); color: var(--se-brand); }
.se-blog-cats a span { color: var(--se-muted); font-weight: 400; }
.se-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.se-post-card { display: flex; flex-direction: column; min-width: 0; }
.se-post-card > a.se-post-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--se-radius); overflow: hidden; background: var(--se-brand-soft); }
.se-post-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.se-post-card h2 { font-size: 20px; line-height: 1.3; margin: 12px 0 4px; }
.se-post-card h2 a { color: var(--se-ink); text-decoration: none; }
.se-post-card h2 a:hover { color: var(--se-brand); text-decoration: underline; }
.se-post-meta { margin: 0 0 6px; font-size: 14.5px; color: var(--se-muted); }
.se-post-meta a { color: inherit; }
.se-post-card p.se-post-excerpt { margin: 0; color: var(--se-ink-soft); font-size: 16px; }
.se-pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.se-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--se-line); border-radius: 6px; text-decoration: none; font-weight: 600; box-sizing: border-box; }
.se-pager .page-numbers.current { background: var(--se-brand); border-color: var(--se-brand); color: #fff; }
.se-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.se-article-wrap.is-page { grid-template-columns: minmax(0, 760px); }
.se-post-body { min-width: 0; font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.se-post-body h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.se-post-body h2 { font-size: 24px; margin: 30px 0 8px; }
.se-post-body h3 { font-size: 20px; margin: 24px 0 6px; }
.se-post-body img, .se-post-body iframe, .se-post-body video { max-width: 100%; height: auto; border-radius: var(--se-radius); }
.se-post-body iframe { aspect-ratio: 16 / 9; width: 100%; }
.se-post-body figure, .se-post-body .wp-caption { max-width: 100% !important; margin: 20px 0; }
.se-post-body figcaption, .se-post-body .wp-caption-text { position: static; font-size: 14.5px; color: var(--se-muted); margin: 6px 0 0; background: none; padding: 0; }
.se-post-body .alignleft { float: left; margin: 6px 22px 12px 0; max-width: 50%; }
.se-post-body .alignright { float: right; margin: 6px 0 12px 22px; max-width: 50%; }
.se-post-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.se-post-body ul, .se-post-body ol { padding-left: 24px; }
.se-post-body blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--se-gold); color: var(--se-ink-soft); }
.se-post-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.se-post-body td, .se-post-body th { border: 1px solid var(--se-line); padding: 8px 10px; text-align: left; }
.se-post-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--se-radius); display: block; margin: 16px 0 22px; }
.se-post-old { background: var(--se-brand-soft); border-radius: var(--se-radius); padding: 12px 16px; font-size: 16px; margin: 0 0 20px; }
.se-post-end { clear: both; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--se-line); font-size: 16px; }
.se-post-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 16px; }
.se-side-box { border: 1px solid var(--se-line); border-radius: var(--se-radius); padding: 18px 20px; background: #fff; }
.se-side-box.is-soft { border: 0; background: var(--se-brand-soft); }
.se-side-box h2 { font-size: 18px; margin: 0 0 8px; }
.se-side-box ul { list-style: none; margin: 0; padding: 0; }
.se-side-box li { list-style: none; margin: 0; border-bottom: 1px solid var(--se-line); }
.se-side-box li:last-child { border-bottom: 0; }
.se-side-box li a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; line-height: 1.3; }
.se-side-box li a:hover { text-decoration: underline; }
.se-side-box .se-btn-gold { display: flex; align-items: center; justify-content: center; min-height: 46px; text-decoration: none; margin-top: 10px; }
.se-blog-search { display: flex; gap: 8px; margin: 0 0 24px; max-width: 520px; }
.se-blog-search input { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 1px solid var(--se-line-strong); border-radius: 6px; padding: 0 12px; font: inherit; }
.se-blog-search button { min-height: 44px; padding: 0 18px; border: 1px solid var(--se-brand); border-radius: 6px; background: #fff; color: var(--se-brand); font: inherit; font-weight: 600; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 960px) { .se-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .se-article-wrap { grid-template-columns: 1fr; gap: 30px; } .se-post-side { position: static; } }
@media (max-width: 600px) { .se-posts { grid-template-columns: 1fr; } .se-post-body { font-size: 17px; } .se-post-body .alignleft, .se-post-body .alignright { float: none; max-width: 100%; margin: 14px 0; } }
