/* DevShev blog, archive, search and 404 styles.
 * Loaded on blog pages, articles, search, 404 and the homepage (for the latest-posts cards); functions.php section 8.
 * ds-  cards, grid, pagination, buttons (template-parts/*.php)
 * dsb- the Elementor blog templates ("Blog Archive", "Blog Single") and their shortcodes (functions.php section 11)
 */
:root{--ds-primary:var(--e-global-color-primary,#2E4259);--ds-navy:var(--e-global-color-secondary,#1C2535);--ds-text:var(--e-global-color-text,#0E1826);--ds-gold:var(--e-global-color-accent,#D4AE72);--ds-gold-dark:var(--e-global-color-dsgoldhover,#A87F42);--ds-hover:var(--e-global-color-dshover,#436080);--ds-sheen:var(--e-global-color-dssheen,#5A7A96);--ds-off:var(--e-global-color-dsoffwhite,#F7F8FA);--ds-muted:#4A5A6E;--ds-line:#E6EAF0;--ds-radius:16px}
body{font-family:var(--e-global-typography-text-font-family,"Inter"),system-ui,sans-serif;color:var(--ds-text)}
.ds-blog h1,.ds-blog h2,.ds-article h1,.ds-article h2,.ds-article h3,.ds-article h4,.ds-404 h1,.ds-empty h2{font-family:var(--e-global-typography-primary-font-family,"Outfit"),system-ui,sans-serif;color:var(--ds-navy);font-weight:600}
.ds-blog a,.ds-article a,.ds-404 a{color:var(--ds-primary)}
.ds-blog a:hover,.ds-article a:hover,.ds-404 a:hover{color:var(--ds-gold-dark)}
.ds-eyebrow{display:inline-block;margin:0 0 12px;font-family:var(--e-global-typography-primary-font-family,"Outfit"),system-ui,sans-serif;font-size:13px;font-weight:600;line-height:1;letter-spacing:.18em;text-transform:uppercase;color:var(--ds-gold-dark)!important;text-decoration:none!important}

/* Buttons */
.ds-btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 22px;border-radius:10px;font-weight:600;text-decoration:none!important;transition:background .2s,color .2s,border-color .2s,box-shadow .2s}
.ds-btn--primary{background:linear-gradient(90deg,#1C2535,#2E4259 55%,#436080);color:#fff!important;box-shadow:0 6px 16px rgba(28,37,53,.18)}
.ds-btn--primary:hover{background:linear-gradient(90deg,var(--ds-gold),var(--ds-gold-dark));color:#0F1720!important}
.ds-btn--ghost{background:#fff;border:1px solid var(--ds-line);color:var(--ds-navy)!important}
.ds-btn--ghost:hover{border-color:var(--ds-gold);color:var(--ds-gold-dark)!important}

/* Search form */
.ds-blog .search-form,.ds-404 .search-form,.ds-empty .search-form{display:flex;gap:8px;max-width:480px;margin-top:20px}
.search-form label{flex:1;display:block;margin:0}
.search-form .search-field{width:100%;height:46px;padding:0 14px;background:#fff;border:1px solid #D5DBE3;border-radius:10px}
.search-form .search-field:focus{border-color:var(--ds-primary);box-shadow:0 0 0 3px rgba(46,66,89,.15);outline:0}
.search-form .search-submit{height:46px;padding:0 18px;border:0;border-radius:10px;background:var(--ds-navy);color:#fff;font-weight:600}
.search-form .search-submit:hover,.search-form .search-submit:focus{background:linear-gradient(90deg,var(--ds-gold),var(--ds-gold-dark));color:#0F1720}

/* Blog, archive and search pages */
.ds-blog{padding-block:56px 72px}
.ds-blog__header{max-width:720px;margin:0 0 36px}
.ds-blog__title{margin:0;font-size:clamp(32px,4vw,46px);line-height:1.25}
.ds-blog__desc{margin:12px 0 0;color:var(--ds-muted)}
.ds-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
@media(max-width:991px){.ds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ds-grid{grid-template-columns:1fr}}

/* Card */
.ds-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--ds-line);border-radius:var(--ds-radius);transition:transform .2s,box-shadow .2s,border-color .2s}
.ds-card:hover{transform:translateY(-3px);border-color:rgba(212,174,114,.6);box-shadow:0 14px 30px rgba(15,23,32,.08)}
.ds-card__media{display:block;aspect-ratio:16/10;background:linear-gradient(90deg,#0F1720,#2E4259 50%,#5A7A96)}
.ds-card__media img,.post .ds-card__media .wp-post-image{display:block;width:100%;height:100%;max-height:none;object-fit:cover}
.ds-card__placeholder{position:relative;display:block;width:100%;height:100%}
.ds-card__placeholder:after{content:"";position:absolute;left:50%;top:50%;width:58px;height:48px;margin:-24px 0 0 -29px;background:url(../img/login-logo.png) left center/auto 100% no-repeat;filter:brightness(0) invert(1);opacity:.55}
.ds-card__body{display:flex;flex:1;flex-direction:column;gap:10px;padding:20px 22px 22px}
.ds-card__cat{align-self:flex-start;padding:6px 10px;border-radius:999px;background:rgba(212,174,114,.14);color:var(--ds-gold-dark);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.ds-card__title{margin:0;font-size:20px;line-height:1.3}
.ds-card__title a{color:var(--ds-navy)!important;text-decoration:none}
.ds-card__title a:hover{color:var(--ds-gold-dark)!important}
.ds-card__excerpt{margin:0;color:var(--ds-muted);font-size:15px;line-height:1.6}
.ds-card__meta{display:flex;gap:8px;margin-top:auto;color:var(--ds-sheen);font-size:13px}

/* Pagination */
.ds-pagination{margin-top:44px}
.ds-pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.ds-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 14px;border:1px solid var(--ds-line);border-radius:10px;color:var(--ds-navy);font-weight:600;text-decoration:none}
.ds-pagination .page-numbers.current{background:var(--ds-navy);border-color:var(--ds-navy);color:#fff}
.ds-pagination a.page-numbers:hover{border-color:var(--ds-gold);color:var(--ds-gold-dark)}

/* Empty state */
.ds-empty{max-width:560px;padding:36px;border:1px dashed #D5DBE3;border-radius:var(--ds-radius);background:var(--ds-off)}
.ds-empty h2{margin:0 0 8px;font-size:24px}
.ds-empty p{margin:0;color:var(--ds-muted)}

/* Single article */
.ds-article{padding-block:56px 72px}
.ds-article__header,.ds-article__content,.ds-article__tags,.ds-article__nav,.ds-article .comments-area{max-width:760px;margin-inline:auto}
.ds-article__title{margin:0 0 14px;font-size:clamp(32px,4.4vw,48px);line-height:1.25}
.ds-article__meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--ds-sheen);font-size:14px}
.ds-article__hero{max-width:1040px;margin:34px auto 0;overflow:hidden;border-radius:20px}
.ds-article__hero img,.post .ds-article__hero .wp-post-image{display:block;width:100%;height:auto;max-height:none}
.ds-article__content{margin-top:34px;font-size:18px;line-height:1.75}
.ds-article__content h2{margin:2em 0 .6em;font-size:28px}
.ds-article__content h3{margin:1.8em 0 .5em;font-size:22px}
.ds-article__content img{border-radius:12px}
.ds-article__content blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:4px solid var(--ds-gold);color:var(--ds-navy);font-size:20px}
.ds-article__content pre{padding:16px;overflow:auto;background:var(--ds-off);border-radius:10px}
.ds-article__content :not(pre)>code{padding:2px 6px;background:var(--ds-off);border-radius:6px}
.ds-article__tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px}
.ds-article__tags a{padding:6px 12px;border:1px solid var(--ds-line);border-radius:999px;font-size:13px;text-decoration:none}
.ds-article__nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:40px;padding-top:28px;border-top:1px solid var(--ds-line)}
.ds-article__nav a{display:block;color:var(--ds-navy)!important;font-weight:600;text-decoration:none}
.ds-article__nav a:hover{color:var(--ds-gold-dark)!important}
.ds-article__nav span{display:block;margin-bottom:4px;color:var(--ds-gold-dark);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.ds-article__next{grid-column:2;text-align:right}
@media(max-width:600px){.ds-article__nav{grid-template-columns:1fr}.ds-article__next{grid-column:auto;text-align:left}}

/* 404 */
.ds-404{display:grid;place-items:center;min-height:62vh;padding:72px 20px;text-align:center}
.ds-404__inner{max-width:620px}
.ds-404__falcon{width:58px;height:48px;margin:0 auto 18px;background:url(../img/login-logo.png) left center/auto 100% no-repeat}
.ds-404__title{margin:0 0 12px;font-size:clamp(30px,4.5vw,44px);line-height:1.15}
.ds-404__text{margin:0 0 6px;color:var(--ds-muted)}
.ds-404 .search-form{margin:20px auto 22px}
.ds-404__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}

/* Blog templates built in Elementor ("Blog Archive", "Blog Single"); shortcodes from functions.php section 11 */
.ds-blog--el,.ds-article--el{padding:0}
.site-main.ds-blog--el,.site-main.ds-article--el{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
/* Blog heroes follow the v2 light hero (same look as the other pages): dark title, muted intro, dark-gold label. */
.ds-blog .dsb-title,.ds-article .dsb-title,.dsb-title{margin:0;font-family:var(--da-head,Outfit),sans-serif;font-weight:700;font-size:clamp(40px,5.2vw,76px);line-height:1.25;letter-spacing:-.035em;color:var(--da-ink,#0E1826)}
.dsb-hero--single .dsb-title{font-size:clamp(32px,4.2vw,50px);text-align:center;max-width:900px}
.dsb-desc{max-width:62ch;color:var(--da-muted,#4A5A6E);font-size:clamp(17px,1.4vw,20px);line-height:1.6}
/* 19 Nov 2026: four old rules that forced dark text on the blog page title section
 * (.dp-hero.dp-dark ... eyebrow / lead / h1 / h2) were REMOVED. They blocked the colours set
 * in Elementor. The blog title section's text colours are now set in Elementor (select the
 * widget > Style > Color). Removed rules are saved in
 * DSH/backups/devshev-css-removed-colour-rules-2026-11-19.css (bottom). */
.dsb-desc p{margin:0}
.dsb-hero--single .dsb-head{text-align:center}
.dsb-hero--single .dl-crumbs .elementor-icon-list-items,.dsb-hero--single .elementor-icon-list-items{justify-content:center}
.dsb-cat-label{display:inline-flex;padding:6px 14px;border:1px solid rgba(212,174,114,.45);border-radius:999px;color:#D4AE72!important;font:600 12px/1.4 Outfit,sans-serif;letter-spacing:.14em;text-transform:uppercase;text-decoration:none!important}
.dsb-cat-label:hover{background:#D4AE72;color:#0F1620!important}
.dsb-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;color:var(--da-soft,#6B7A8C);font-size:14px}
.dsb-cats{display:flex;flex-wrap:wrap;gap:8px}
.dsb-cat{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border:1px solid rgba(14,24,38,.14);border-radius:999px;background:#FFFFFF;color:#2E4259!important;font:500 14px/1 Outfit,sans-serif;text-decoration:none!important;transition:background-color .3s,border-color .3s,color .3s}
.dsb-cat:hover{border-color:#D4AE72}
.dsb-cat.is-active{background:#0F1720;border-color:#0F1720;color:#FFFFFF!important}
.dsb-body.e-con{overflow:visible!important;--overflow:visible}
.dsb-body .dsb-sc-image{margin-top:-130px;position:relative;z-index:2}
.dsb-body .dsb-image,.dsb-image{max-width:1040px;margin:0 auto!important;overflow:hidden;border-radius:22px;box-shadow:0 30px 60px -30px rgba(14,24,38,.45)}
.dsb-image img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.dsb-body .ds-article__content{margin-top:8px}
.dsb-body .ds-article__tags,.dsb-body .ds-article__nav{margin-top:0}
.dsb-body .ds-article__nav{padding-top:28px}
.dsb-body .dsb-author{max-width:760px;width:100%;margin:0 auto}
.dsb-body .dsb-sc-content,.dsb-body .dsb-sc-tags,.dsb-body .dsb-sc-nav,.dsb-body .dsb-sc-comments{width:100%}
.dsb-sc-tags:empty,.dsb-sc-comments:empty{display:none}
/* Comments */
.ds-article .comments-area{max-width:760px;margin-inline:auto}
.ds-article .comment-reply-title,.ds-article .comments-title{margin:0 0 12px;font-size:26px}
.ds-article .comment-notes,.ds-article .logged-in-as{color:var(--ds-muted);font-size:14px}
.ds-article .comment-form label{display:block;margin:0 0 6px;font:600 14px/1.4 Outfit,sans-serif;color:var(--ds-text)}
.ds-article .comment-form textarea,.ds-article .comment-form input[type=text],.ds-article .comment-form input[type=email],.ds-article .comment-form input[type=url]{width:100%;padding:13px 16px;border:1px solid #D5DBE3;border-radius:12px;background:#FFFFFF;font:15px/1.5 Outfit,sans-serif;color:var(--ds-text)}
.ds-article .comment-form textarea:focus,.ds-article .comment-form input:focus{outline:0;border-color:var(--ds-primary);box-shadow:0 0 0 3px rgba(46,66,89,.15)}
.ds-article .comment-form .submit{display:inline-flex;align-items:center;padding:15px 30px;border:0;border-radius:999px;background:#D4AE72;color:#0F1620;font:700 15px/1 Outfit,sans-serif;cursor:pointer;transition:background-color .3s,transform .3s}
.ds-article .comment-form .submit:hover{background:#E2C089;transform:translateY(-2px)}
@media (max-width:767px){.dsb-body .dsb-sc-image{margin-top:-90px}.dsb-image{border-radius:16px}}

/* =====================================================================
 * INSTANT BLOG FILTER + LOAD MORE (added 19 Nov 2026)
 *
 * WHAT IT DOES: styles for the blog page's instant category filter
 *   (functions.php section 11, [devshev_post_grid] + devshev_blog_filter_script()):
 *   hides articles of other categories, and styles the "Load more" button
 *   (white pill, centred, gold on hover, like the Projects page).
 * HOW IT WORKS: the server marks articles of other categories with the class
 *   "ds-card--off"; the script then uses the "hidden" attribute. Our card styles
 *   set "display", which would otherwise beat "hidden".
 * IF YOU REMOVE IT: all articles show at once and the button looks plain.
 * HOW TO TWEAK: button size/colours in .ds-loadmore. The :hover/:focus lines are
 *   needed because "GLOBAL BUTTON COLOURS" (top of devshev.css) colours every button.
 * ===================================================================== */
.ds-grid--instant .ds-card--off,.ds-grid--instant .ds-card[hidden],.ds-more-wrap[hidden],.ds-empty--instant[hidden]{display:none!important}
.ds-more-wrap{display:flex;justify-content:center;margin-top:40px}
.ds-loadmore,.ds-loadmore:focus{height:54px;padding:0 34px;background:#FFFFFF;border:1px solid var(--da-line,#E3E8EE);border-radius:999px;font-family:var(--da-text,inherit);font-size:16px;font-weight:600;color:var(--da-ink,#0E1826);cursor:pointer;transition:border-color .3s,background-color .3s,color .3s}
.ds-loadmore:hover{background:var(--da-gold,#D4AE72);border-color:var(--da-gold,#D4AE72);color:var(--da-ink,#0E1826)}
.ds-loadmore:focus-visible{outline:2px solid var(--da-gold,#D4AE72);outline-offset:2px}
@media (max-width:767px){.ds-loadmore{width:100%}}
/* ===== END INSTANT BLOG FILTER + LOAD MORE ===== */

/* =====================================================================
 * PREVIOUS / NEXT ARTICLE CARDS (added 19 Nov 2026)
 *
 * WHAT IT DOES: under each article, the previous and next articles show as two
 *   cards with image, category and title ([devshev_post_nav], functions.php section 11).
 * IF YOU REMOVE IT: the cards lose their layout (plain stacked links).
 * HOW TO TWEAK: image shape "aspect-ratio:16/9"; card corners "border-radius";
 *   on phones (max-width:600px) the cards stack.
 * ===================================================================== */
.ds-pn{display:grid!important;grid-template-columns:1fr 1fr;gap:20px}
.ds-pn .ds-pn__card{display:flex;flex-direction:column;overflow:hidden;background:#FFFFFF;border:1px solid var(--ds-line,#E3E8EE);border-radius:16px;text-decoration:none;transition:border-color .3s,transform .3s}
.ds-pn .ds-pn__card:hover{border-color:rgba(212,174,114,.8);transform:translateY(-3px)}
.ds-pn .ds-pn__card:focus-visible{outline:2px solid #D4AE72;outline-offset:3px}
.ds-pn .ds-pn__card--next{grid-column:2;text-align:right}
.ds-pn .ds-pn__img{display:block;aspect-ratio:16/9;background:#EEF1F5;overflow:hidden}
.ds-pn .ds-pn__img img{display:block;width:100%;height:100%;object-fit:cover}
.ds-pn .ds-pn__body{display:flex;flex-direction:column;gap:6px;padding:18px 20px 20px}
.ds-pn span.ds-pn__label{margin:0;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ds-gold-dark,#8A6630)}
.ds-pn span.ds-pn__cat{margin:0;font-size:13px;letter-spacing:0;text-transform:none;color:var(--ds-muted,#5B6B7E)}
.ds-pn span.ds-pn__title{margin:0;font-size:18px;font-weight:700;line-height:1.35;letter-spacing:0;text-transform:none;color:var(--ds-navy,#0E1826)}
.ds-pn .ds-pn__card:hover .ds-pn__title{color:var(--ds-gold-dark,#8A6630)}
@media (max-width:600px){
	.ds-pn{grid-template-columns:1fr}
	.ds-pn .ds-pn__card--next{grid-column:auto;text-align:left}
	.ds-pn .ds-pn__empty{display:none}
}
/* ===== END PREVIOUS / NEXT ARTICLE CARDS ===== */

/* LINE HEIGHT NOTE (25 Nov 2026, blog titles): multi-line headings use line-height 1.25. Our heading
 * fonts (Satoshi, Outfit) need about 1.25 so that lines don't touch or overlap and a text
 * highlight covers each line fully. Below 1.25 the lines overlap a little. Single-line items
 * (buttons, big numbers, labels) keep line-height 1 on purpose. */
/* =====================================================================
 * BLOG LAYOUT: COMPACT CARDS + WIDER ARTICLE (added 25 Nov 2026, owner request)
 * WHAT IT DOES:
 *   - Blog page and "More from the blog": 4 smaller cards per row on laptops and bigger
 *     screens (3 on small laptops, 2 on tablets, 1 on phones), shorter pictures (16:9),
 *     titles up to 3 lines and excerpts up to 2 lines, so a whole row is seen at a glance.
 *   - Article page: the text column is wide (1320 px) and the featured picture always fits
 *     on one screen.
 *   - Previous / next article cards: pushed to the far left and far right with nothing in
 *     between (pictures kept, a bit shorter).
 * HOW IT HAPPENED: the owner had to scroll to see a full row of cards and found the article
 *   page too boxed. The card grid and the article text are printed by theme shortcodes
 *   (functions.php section 11), which Elementor can't style, so these rules do it.
 * WHERE: Blog Archive template, Blog Single template ("Previous / next" section has the
 *   class dsb-pn-wrap), category pages.
 * IF YOU REMOVE IT: everything goes back to 3 bigger cards, a 760 px text column and the
 *   narrow previous/next cards.
 * HOW TO TWEAK IT: cards per row = the repeat(4, ...) number; picture shape = aspect-ratio;
 *   text column width = 1320px; previous/next card width = 560px.
 * TO UNDO: delete from this comment down to "END BLOG LAYOUT: COMPACT CARDS + WIDER ARTICLE".
 * ===================================================================== */
.ds-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
@media(max-width:1199px){.ds-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:991px){.ds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ds-grid{grid-template-columns:1fr}}
/* "Latest posts" on Home and Projects shows 3 posts: keep 3 per row there. */
.ds-grid.ds-latest{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:991px){.ds-grid.ds-latest{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ds-grid.ds-latest{grid-template-columns:1fr}}
.ds-card__media{aspect-ratio:16/9}
.ds-card__body{gap:8px;padding:16px 18px 18px}
.ds-card__cat{font-size:11px;padding:5px 9px}
.ds-card__title{font-size:18px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ds-card__excerpt{font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Article page, wide layout (updated 25 Nov 2026, owner: "content should be full width").
 * Text, tags and author box use the same width as the site's header bar (1320 px), so
 * there is no empty band on the left and right. Tweak: change 1320px. */
.ds-article__header,.ds-article__content,.ds-article__tags,.dsb-body .dsb-author{max-width:1320px}
/* Featured picture: never taller than the screen minus the header area, so the whole
 * picture is seen without scrolling. The width follows the height (16:9) and it stays
 * centred. Tweak: the 230px = space kept for the header/hero above it. */
.dsb-body .dsb-image,.dsb-image{max-width:min(1320px, calc((100vh - 230px) * 16 / 9));margin-left:auto;margin-right:auto}
.dsb-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
/* Category pill in the article hero: on hover the pill turns gold, so the text must turn
 * dark. A site-wide hero rule in devshev.css forces it gold, which made the text vanish;
 * this stronger rule wins only on hover. */
body:not(.home) :is(.dp-hero,.dl-hero) a.dsb-cat-label.dsb-cat-label:hover,a.dsb-cat-label.dsb-cat-label:hover{color:#0F1620 !important;background:#D4AE72}
.dsb-pn-wrap .ds-article__nav{max-width:none;padding-top:0}
.ds-pn{grid-template-columns:minmax(0,560px) minmax(0,560px);justify-content:space-between}
.ds-pn .ds-pn__img{aspect-ratio:2/1}
@media (max-width:600px){.ds-pn{grid-template-columns:1fr}}
/* ===== END BLOG LAYOUT: COMPACT CARDS + WIDER ARTICLE ===== */
