/* ==========================================================================
   Kewoulo News — Main Stylesheet
   Mobile-first, performant, accessible
   ========================================================================== */

:root {
	--kewoulo-primary: #6B7DE4;
	--kewoulo-primary-dark: #5568C4;
	--kewoulo-primary-light: #E8EBFA;
	--kewoulo-urgent: #DC2626;
	--kewoulo-black: #0e0f12;
	--kewoulo-dark: #1f2228;
	--kewoulo-text: #1a1a1a;
	--kewoulo-muted: #6b7280;
	--kewoulo-soft: #f3f4f6;
	--kewoulo-border: #e5e7eb;
	--kewoulo-white: #ffffff;
	--kewoulo-gold: #d4a017;
	--kewoulo-font: "Source Serif 4", Georgia, "Times New Roman", serif;
	--kewoulo-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--kewoulo-container: 1200px;
	--kewoulo-sidebar: 320px;
	--kewoulo-radius: 4px;
	--kewoulo-shadow: 0 2px 8px rgba(0,0,0,.08);
	--kewoulo-transition: .2s ease;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
	margin:0;
	font-family:var(--kewoulo-font-sans);
	font-size:16px;
	line-height:1.6;
	color:var(--kewoulo-text);
	background:var(--kewoulo-white);
}
img{max-width:100%;height:auto;display:block}
a{color:var(--kewoulo-primary);text-decoration:none}
a:hover{color:var(--kewoulo-primary-dark);text-decoration:underline}
h1,h2,h3,h4,h5,h6{
	font-family:var(--kewoulo-font-sans);
	line-height:1.25;
	margin:0 0 .5em;
	font-weight:700;
}
h1{font-size:clamp(1.75rem,4vw,2.5rem)}
h2{font-size:clamp(1.35rem,3vw,1.75rem)}
h3{font-size:1.15rem}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0;list-style:none}
button,input,textarea,select{font:inherit}
.container{max-width:var(--kewoulo-container);margin:0 auto;padding:0 1rem}
.screen-reader-text{
	position:absolute;width:1px;height:1px;padding:0;margin:-1px;
	overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
}
.screen-reader-text:focus{
	position:fixed;top:0;left:0;width:auto;height:auto;
	padding:1rem;background:#000;color:#fff;clip:auto;z-index:99999
}

/* Header */
.site-header{
	position:sticky;top:0;z-index:100;
	background:var(--kewoulo-white);
	border-bottom:1px solid var(--kewoulo-border);
	box-shadow:var(--kewoulo-shadow);
}
.site-header__inner{
	position:relative;
	display:flex;align-items:center;justify-content:space-between;
	gap:1rem;padding:.75rem 1rem;min-height:64px
}
.site-branding{flex:0 0 auto;text-align:left}
.site-branding img,.site-logo img,.custom-logo{
	width:180px;height:52px;max-height:52px;object-fit:contain
}
.site-logo .site-title-text{
	font-family:Georgia,"Times New Roman",serif;
	font-size:2rem;font-weight:400;color:var(--kewoulo-primary);
	letter-spacing:-.02em
}
.header-actions{
	position:absolute;right:1rem;top:50%;transform:translateY(-50%);
	display:flex;align-items:center;gap:.5rem;flex:0 0 auto
}
.main-nav{display:none}
.main-nav__list{display:flex;gap:.25rem;flex-wrap:wrap}
.main-nav__list a{
	display:block;padding:.5rem .75rem;
	color:var(--kewoulo-text);font-weight:600;font-size:.9rem
}
.main-nav__list a:hover{color:var(--kewoulo-primary);text-decoration:none}
.header-actions button{
	background:none;border:none;cursor:pointer;
	padding:.5rem;color:var(--kewoulo-text);border-radius:var(--kewoulo-radius)
}
.header-actions button:hover{background:var(--kewoulo-soft)}
.hamburger{
	display:block;width:22px;height:2px;background:currentColor;
	position:relative
}
.hamburger::before,.hamburger::after{
	content:"";position:absolute;left:0;width:22px;height:2px;background:currentColor
}
.hamburger::before{top:-7px}
.hamburger::after{top:7px}

/* Breaking news ticker */
.breaking-news{background:var(--kewoulo-urgent);color:#fff;font-size:.875rem}
.breaking-news__inner{display:flex;align-items:center;gap:.75rem;padding:.55rem 1rem;overflow:hidden}
.breaking-news__label{
	flex-shrink:0;background:#fff;color:var(--kewoulo-urgent);
	font-weight:800;text-transform:uppercase;font-size:.7rem;
	padding:.2rem .55rem;border-radius:2px;letter-spacing:.05em
}
.breaking-news__ticker{flex:1;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}
.breaking-news__track{display:flex;gap:2.5rem;width:max-content;animation:kewoulo-ticker 40s linear infinite}
.breaking-news__item{color:#fff;white-space:nowrap;font-weight:600}
.breaking-news__item:hover{color:#fff;text-decoration:underline}
.breaking-news__item::before{content:"•";margin-right:.75rem;opacity:.6}
.breaking-news:hover .breaking-news__track{animation-play-state:paused}
@keyframes kewoulo-ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* Search overlay */
.search-overlay{
	position:fixed;inset:0;z-index:200;
	background:rgba(0,0,0,.6);display:flex;align-items:flex-start;
	padding-top:10vh
}
.search-overlay[hidden]{display:none}
.search-overlay__inner{position:relative;width:100%}
.search-form{display:flex;gap:.5rem}
.search-form input{
	flex:1;padding:.85rem 1rem;border:2px solid var(--kewoulo-border);
	border-radius:var(--kewoulo-radius);font-size:1rem
}
.search-form button{
	padding:.85rem 1.25rem;background:var(--kewoulo-primary);color:#fff;
	border:none;border-radius:var(--kewoulo-radius);cursor:pointer;font-weight:600
}
.search-overlay__close{
	position:absolute;top:-2.5rem;right:0;background:none;border:none;
	color:#fff;font-size:2rem;cursor:pointer
}

/* Mobile menu */
.mobile-menu{
	position:fixed;top:0;right:0;bottom:0;width:min(320px,85vw);
	z-index:150;background:var(--kewoulo-white);
	box-shadow:-4px 0 20px rgba(0,0,0,.15);padding:4rem 1.5rem 2rem;
	overflow-y:auto;transform:translateX(100%);transition:transform var(--kewoulo-transition)
}
.mobile-menu.is-open{transform:translateX(0)}
.mobile-menu[hidden]{display:block;visibility:hidden}
.mobile-menu.is-open[hidden]{visibility:visible}
.mobile-menu__list li{border-bottom:1px solid var(--kewoulo-border)}
.mobile-menu__list a{
	display:block;padding:.85rem 0;color:var(--kewoulo-text);font-weight:600
}

/* Layout */
.site-main{padding:1.5rem 0 3rem}
.layout-with-sidebar{display:grid;gap:2rem}
.content-area{min-width:0}

/* Breadcrumbs */
.kewoulo-breadcrumbs{font-size:.8rem;color:var(--kewoulo-muted);margin-bottom:1rem}
.kewoulo-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.35rem}
.kewoulo-breadcrumbs li:not(:last-child)::after{content:"›";margin-left:.35rem;color:var(--kewoulo-muted)}
.kewoulo-breadcrumbs a{color:var(--kewoulo-muted)}

/* Grids */
.posts-grid{display:grid;gap:1.1rem;grid-template-columns:1fr}
.posts-grid--3{grid-template-columns:1fr}
.posts-grid--4{grid-template-columns:1fr}

/* Post card — épuré */
.post-card{
	position:relative;display:flex;flex-direction:column;
	border-radius:var(--kewoulo-radius);overflow:hidden;
	background:var(--kewoulo-white);
	box-shadow:0 1px 2px rgba(0,0,0,.04);
	transition:box-shadow var(--kewoulo-transition),transform var(--kewoulo-transition)
}
.post-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.08);transform:translateY(-1px)}
.post-card__link{position:absolute;inset:0;z-index:1;text-decoration:none;color:transparent}
.post-card__link:focus{outline:2px solid var(--kewoulo-primary);outline-offset:-2px}
.post-card__meta a,.post-card__footer a{position:relative;z-index:2}
.post-card__media{
	margin:0;aspect-ratio:16/10;overflow:hidden;
	background:var(--kewoulo-soft);line-height:0
}
.post-card__image,.post-card__media img{
	display:block;width:100%;height:100%;object-fit:cover;
	transition:transform .4s ease;contain-intrinsic-size:auto!important
}
.entry-thumbnail--default{object-fit:cover;background:var(--kewoulo-dark)}
.post-card:hover .post-card__image,.post-card:hover .post-card__media img{transform:scale(1.03)}
.post-card__body{
	display:flex;flex-direction:column;flex:1;
	padding:.85rem 1rem 1rem;gap:.35rem
}
.post-card__meta{
	display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;
	margin:0;padding:0
}
.post-card__meta>:empty{display:none!important}
.post-card .entry-categories a{
	background:transparent;color:var(--kewoulo-primary);
	border:0;padding:0;font-size:.68rem;font-weight:700;
	letter-spacing:.04em;text-transform:uppercase
}
.post-card .entry-categories a:hover{color:var(--kewoulo-primary-dark);text-decoration:none}
.post-card .kewoulo-badge,.post-card .kewoulo-type-badge{
	font-size:.62rem;padding:.12rem .4rem;border-radius:2px
}
.post-card__title{
	font-size:.95rem;font-weight:700;line-height:1.35;
	margin:0;color:var(--kewoulo-black);
	display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden
}
.post-card__footer{
	margin-top:auto;padding-top:.25rem;
	font-size:.75rem;color:var(--kewoulo-muted);
	display:flex;flex-wrap:wrap;align-items:center;gap:.4rem
}
.post-card__footer .byline-label{display:none}
.post-card__footer .byline a{color:var(--kewoulo-text);font-weight:600;text-decoration:none}
.post-card__footer .byline a:hover{color:var(--kewoulo-primary)}
.post-card__footer .byline:not(:last-child)::after{
	content:"·";margin-left:.4rem;color:var(--kewoulo-muted);font-weight:400
}
.post-card--compact .post-card__body{padding:.7rem .8rem .8rem}
.post-card--compact .post-card__title{font-size:.85rem;-webkit-line-clamp:2}
.post-card--compact .post-card__media{aspect-ratio:16/9}
.entry-categories{display:flex;flex-wrap:wrap;gap:.35rem}
.entry-categories a{
	font-size:.65rem;font-weight:700;text-transform:uppercase;
	background:var(--kewoulo-primary-light);color:var(--kewoulo-text);
	padding:.2rem .5rem;border:1px solid var(--kewoulo-border);border-radius:2px
}
.entry-categories a:hover{text-decoration:none;color:var(--kewoulo-primary)}
.entry-categories .cat-a-la-une a,
.entry-categories a.cat-a-la-une{color:var(--kewoulo-primary);background:#fff}
.byline a,.post-card__footer .byline a{color:var(--kewoulo-primary);font-weight:600}
.byline a:hover{color:var(--kewoulo-primary-dark)}
.kewoulo-badge,.kewoulo-type-badge{
	font-size:.65rem;font-weight:800;text-transform:uppercase;
	padding:.15rem .45rem;border-radius:2px
}
.kewoulo-badge--exclusive,.kewoulo-badge--investigation{background:var(--kewoulo-gold);color:#000}
.kewoulo-badge--breaking{background:var(--kewoulo-primary);color:#fff}
.kewoulo-type-badge{background:var(--kewoulo-dark);color:#fff}

/* Category nav */
.category-nav{background:var(--kewoulo-soft);border-bottom:1px solid var(--kewoulo-border)}
.category-nav__inner{overflow-x:auto;-webkit-overflow-scrolling:touch}
.category-nav__list{display:flex;gap:.25rem;padding:.5rem 0;min-width:max-content}
.category-nav__list a{
	display:block;padding:.4rem .85rem;font-size:.8rem;font-weight:700;
	text-transform:uppercase;color:var(--kewoulo-text);white-space:nowrap;border-radius:2px
}
.category-nav__list a:hover{background:var(--kewoulo-primary);color:#fff;text-decoration:none}

/* Hero */
.homepage-hero{margin-bottom:2rem}
.hero-post{
	border:1px solid var(--kewoulo-border);border-radius:var(--kewoulo-radius);
	overflow:hidden;background:var(--kewoulo-white);box-shadow:var(--kewoulo-shadow)
}
.hero-post__layout{display:grid;grid-template-columns:1fr}
.hero-post__main{position:relative;color:var(--kewoulo-text)}
.hero-post__link{position:absolute;inset:0;z-index:1;text-decoration:none;color:transparent}
.hero-post__link:focus{outline:2px solid var(--kewoulo-primary);outline-offset:-2px}
.hero-post__badges a,.hero-post__meta a{position:relative;z-index:2}
.hero-post__media{margin:0;overflow:hidden;background:var(--kewoulo-soft);aspect-ratio:16/9}
.hero-post__image{width:100%;height:100%;object-fit:cover}
.hero-post__content{padding:1.25rem 1.5rem 1.5rem}
.hero-post__badges{margin-bottom:.75rem;display:flex;flex-wrap:wrap;gap:.35rem}
.hero-post .entry-categories a{
	background:var(--kewoulo-black);color:#fff;
	border:1px solid #fff;padding:.25rem .6rem
}
.hero-post .entry-categories .cat-a-la-une a{color:var(--kewoulo-primary)}
.hero-post__title{font-size:clamp(1.35rem,3.5vw,2rem);color:var(--kewoulo-black);margin:.5rem 0;line-height:1.3}
.hero-post__excerpt{font-size:1rem;color:var(--kewoulo-muted);margin:.5rem 0;line-height:1.5}
.hero-post__meta{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.85rem;color:var(--kewoulo-muted)}
.hero-post__meta .byline a{color:var(--kewoulo-primary)}
.hero-post__side{background:var(--kewoulo-dark);color:#fff;padding:1rem 1.25rem}
.hero-post__side-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--kewoulo-primary);margin:0 0 .75rem}
.hero-post__side-list li{border-bottom:1px solid rgba(255,255,255,.12);padding:.65rem 0}
.hero-post__side-list li:last-child{border-bottom:0}
.hero-post__side-list a{display:grid;grid-template-columns:72px 1fr;gap:.65rem;align-items:start;color:#fff;text-decoration:none}
.hero-post__side-list a:hover{color:var(--kewoulo-primary-light)}
.hero-post__side-list img{width:72px;height:48px;object-fit:cover;border-radius:2px}
.hero-post__side-headline{font-size:.85rem;font-weight:600;line-height:1.35;display:block}
.hero-post__side-list time{font-size:.7rem;opacity:.7;grid-column:2}

/* Hero multi-images (tuiles) */
.hero-tile{
	position:relative;overflow:hidden;border-radius:var(--kewoulo-radius);
	background:var(--kewoulo-soft);min-height:180px
}
.hero-tile__link{position:absolute;inset:0;z-index:2;text-decoration:none;color:transparent}
.hero-tile__link:focus{outline:2px solid var(--kewoulo-primary);outline-offset:-2px}
.hero-tile__media{margin:0;position:absolute;inset:0}
.hero-tile__image{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.hero-tile:hover .hero-tile__image{transform:scale(1.04)}
.hero-tile__overlay{
	position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;
	padding:1rem 1.1rem;
	background:linear-gradient(180deg,transparent 25%,rgba(0,0,0,.45) 60%,rgba(0,0,0,.82) 100%);
	color:#fff;pointer-events:none
}
.hero-tile__badges{margin-bottom:.45rem;display:flex;flex-wrap:wrap;gap:.3rem}
.hero-tile .entry-categories a{
	background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.35);
	font-size:.65rem;padding:.15rem .45rem;backdrop-filter:blur(4px)
}
.hero-tile__title{
	margin:0;font-weight:800;line-height:1.25;color:#fff;
	text-shadow:0 1px 3px rgba(0,0,0,.35)
}
.hero-tile--lead .hero-tile__title{font-size:clamp(1.15rem,2.8vw,1.75rem)}
.hero-tile--standard .hero-tile__title{font-size:clamp(.9rem,2vw,1.1rem)}
.hero-tile--compact .hero-tile__title{font-size:clamp(.78rem,1.6vw,.92rem)}
.hero-tile__meta{
	display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem;font-size:.75rem;opacity:.9
}
.hero-tile__meta .byline-label{display:none}
.hero-tile__meta .byline a{color:#fff;text-decoration:underline}

/* Mosaïque */
.hero-mosaic{
	display:grid;gap:.75rem;min-height:320px
}
.hero-mosaic>.hero-tile--lead{min-height:280px}
.hero-mosaic__side{display:grid;gap:.75rem;grid-template-rows:auto 1fr}
.hero-mosaic__duo{display:grid;gap:.75rem;grid-template-columns:1fr 1fr}

/* Bento */
.hero-bento{
	display:grid;gap:.75rem;grid-template-columns:repeat(2,1fr);grid-auto-rows:minmax(160px,1fr)
}
.hero-bento .hero-tile--lead{grid-column:1/-1;min-height:240px}
.hero-bento .hero-tile--standard{min-height:200px}
.hero-bento .hero-tile--compact{min-height:160px}

/* Rangée égale */
.hero-equal{display:grid;gap:.75rem;grid-template-columns:1fr}
.hero-equal .hero-tile{min-height:200px}

/* Carrousel */
.hero-carousel{overflow:hidden;margin:0 -.5rem;padding:0 .5rem}
.hero-carousel__track{
	display:flex;gap:.75rem;overflow-x:auto;scroll-snap-type:x mandatory;
	-webkit-overflow-scrolling:touch;padding-bottom:.25rem;scrollbar-width:thin
}
.hero-carousel__track .hero-tile{
	flex:0 0 min(78vw,320px);scroll-snap-align:start;min-height:220px
}

/* Section headers */
.section-header,.category-section__header{
	display:flex;align-items:center;justify-content:space-between;
	border-bottom:2px solid var(--kewoulo-primary);margin-bottom:1.25rem;padding-bottom:.5rem
}
.section-header h2,.homepage-latest h2{font-size:1.35rem;font-weight:800;color:var(--kewoulo-black)}
.category-section{margin-bottom:2.5rem}
.category-section__title{margin:0;font-size:1.25rem}
.category-section__title a{color:var(--kewoulo-black)}
.category-section__more{font-size:.85rem;font-weight:600;white-space:nowrap}
.category-section__grid{display:grid;gap:1.1rem;grid-template-columns:1fr}

/* Single article */
.single-article__header{margin-bottom:1.5rem}
.single-article__title{margin:.75rem 0}
.single-article__chapo{
	font-size:1.15rem;line-height:1.5;color:var(--kewoulo-dark);
	border-left:4px solid var(--kewoulo-primary);padding-left:1rem;margin:1rem 0
}
.single-article__meta{
	display:flex;flex-wrap:wrap;gap:.75rem;font-size:.875rem;
	color:var(--kewoulo-muted);margin-bottom:1rem
}
.single-article__featured{margin:0 0 1.5rem;border-radius:var(--kewoulo-radius);overflow:hidden}
.single-article__featured img{width:100%;aspect-ratio:16/9;object-fit:cover}
.single-article__content{
	font-family:var(--kewoulo-font);font-size:1.0625rem;line-height:1.75
}
.single-article__content p{margin-bottom:1.25em}
.single-article__content h2{margin-top:2em;font-size:1.4rem}
.single-article__content h3{margin-top:1.5em;font-size:1.15rem}
.single-article__editorial-note{
	background:var(--kewoulo-soft);border-left:4px solid var(--kewoulo-gold);
	padding:1rem 1.25rem;margin-bottom:1.5rem;border-radius:var(--kewoulo-radius)
}
.single-article__editorial-note h2{font-size:1rem;margin-bottom:.5rem}
.single-article__source{font-size:.9rem;color:var(--kewoulo-muted);margin-top:1.5rem}

/* TOC */
.kewoulo-toc{
	background:var(--kewoulo-soft);padding:1rem 1.25rem;
	margin-bottom:1.5rem;border-radius:var(--kewoulo-radius)
}
.kewoulo-toc__title{font-size:1rem;margin-bottom:.5rem}
.kewoulo-toc ol{list-style:decimal;padding-left:1.25rem}
.kewoulo-toc li{margin:.35rem 0}

/* Editorial blocks */
.kewoulo-block{
	margin:1.5rem 0;padding:1rem 1.25rem;
	border-radius:var(--kewoulo-radius)
}
.kewoulo-block--retenir{background:#fef3c7;border-left:4px solid var(--kewoulo-gold)}
.kewoulo-block--source{background:var(--kewoulo-soft);border:1px solid var(--kewoulo-border)}
.kewoulo-block--quote{
	border-left:4px solid var(--kewoulo-primary);
	font-size:1.2rem;font-style:italic;padding:1rem 1.5rem;margin:2rem 0
}
.kewoulo-block--live{border:2px solid var(--kewoulo-primary);position:relative}
.kewoulo-block--live__badge{
	background:var(--kewoulo-primary);color:#fff;
	font-size:.7rem;font-weight:800;padding:.2rem .5rem;
	text-transform:uppercase;margin-right:.5rem
}
.kewoulo-block--editorial{background:#eff6ff;border-left:4px solid #3b82f6}
.kewoulo-block--faq .kewoulo-block--faq > div{margin-bottom:1rem}
.kewoulo-sources-context{
	margin-top:2rem;padding-top:1.5rem;
	border-top:2px solid var(--kewoulo-border)
}

/* Share */
.share-tools{margin:2rem 0;padding:1rem 0;border-top:1px solid var(--kewoulo-border)}
.share-tools__title{font-size:.9rem;margin-bottom:.75rem}
.share-tools__list{display:flex;flex-wrap:wrap;gap:.5rem}
.share-tools__list a,.share-tools__list button{
	display:inline-block;padding:.4rem .75rem;
	border:1px solid var(--kewoulo-border);border-radius:var(--kewoulo-radius);
	background:#fff;color:var(--kewoulo-text);font-size:.8rem;cursor:pointer
}
.share-tools__list a:hover,.share-tools__list button:hover{
	border-color:var(--kewoulo-primary);color:var(--kewoulo-primary);text-decoration:none
}

/* Author box */
.author-box{
	display:flex;gap:1rem;margin:2rem 0;padding:1.25rem;
	background:var(--kewoulo-soft);border-radius:var(--kewoulo-radius)
}
.author-box__avatar{border-radius:50%;flex-shrink:0}
.author-box__name{font-size:1.1rem;margin:0 0 .35rem}
.author-box__bio{font-size:.9rem;color:var(--kewoulo-muted);margin:0}
.author-box__social{display:flex;gap:.75rem;margin-top:.5rem;font-size:.85rem}

/* Correction */
.correction-box{
	margin:1.5rem 0;padding:1rem;background:#fef2f2;
	border-radius:var(--kewoulo-radius);font-size:.9rem
}
.correction-box__btn{
	display:inline-block;margin-top:.5rem;padding:.5rem 1rem;
	background:var(--kewoulo-primary);color:#fff;border-radius:var(--kewoulo-radius);font-weight:600
}
.correction-box__btn:hover{color:#fff;text-decoration:none}

/* Related */
.related-posts{margin:2rem 0}
.related-posts__grid{display:grid;gap:1.1rem;grid-template-columns:1fr}

/* Author page */
.author-header{text-align:center;margin-bottom:2rem;padding:2rem 0}
.author-header__avatar{border-radius:50%;margin:0 auto 1rem}
.author-header__bio{max-width:600px;margin:0 auto;color:var(--kewoulo-muted)}
.author-header__social{display:flex;justify-content:center;gap:1rem;margin-top:1rem}

/* Sidebar */
.layout-home{align-items:start}
.home-sidebar{position:sticky;top:5.5rem}
.sidebar .widget{margin-bottom:1.5rem;padding:1rem;background:var(--kewoulo-soft);border-radius:var(--kewoulo-radius)}
.sidebar .widget-title{font-size:1rem;border-bottom:2px solid var(--kewoulo-primary);padding-bottom:.35rem;margin-bottom:.75rem}
.sidebar-categories li{margin:.4rem 0;font-size:.9rem}
.sidebar-categories a{color:var(--kewoulo-text);display:flex;justify-content:space-between;gap:.5rem}
.sidebar-categories a:hover{color:var(--kewoulo-primary);text-decoration:none}
.sidebar-categories span{color:var(--kewoulo-muted);font-size:.8rem}
.newsletter-mini__form{display:flex;flex-direction:column;gap:.5rem}
.newsletter-mini__form input,.newsletter-mini__form button{padding:.6rem;border-radius:var(--kewoulo-radius);border:1px solid var(--kewoulo-border)}
.newsletter-mini__form button{background:var(--kewoulo-primary);color:#fff;border-color:var(--kewoulo-primary);cursor:pointer;font-weight:600}
.popular-posts__list{list-style:decimal;padding-left:1.25rem}
.popular-posts__list li{margin:.5rem 0;font-size:.9rem}
.popular-posts__list a{color:var(--kewoulo-text)}
.popular-posts__list a:hover{color:var(--kewoulo-primary)}

/* Pagination */
.kewoulo-pagination{margin-top:2rem}
.kewoulo-pagination .page-numbers{
	display:inline-block;padding:.4rem .75rem;margin:.15rem;
	border:1px solid var(--kewoulo-border);border-radius:var(--kewoulo-radius)
}
.kewoulo-pagination .current{background:var(--kewoulo-primary);color:#fff;border-color:var(--kewoulo-primary)}

/* Newsletter */
.newsletter-block{
	background:var(--kewoulo-dark);color:#fff;
	padding:2rem;border-radius:var(--kewoulo-radius);margin:2rem 0;text-align:center
}
.newsletter-block h2{color:#fff}
.newsletter-block__form{display:flex;gap:.5rem;max-width:480px;margin:1rem auto;flex-wrap:wrap;justify-content:center}
.newsletter-block__form input{
	flex:1;min-width:200px;padding:.75rem;border:none;border-radius:var(--kewoulo-radius)
}
.newsletter-block__form button{
	padding:.75rem 1.5rem;background:var(--kewoulo-primary);color:#fff;
	border:none;border-radius:var(--kewoulo-radius);cursor:pointer;font-weight:600
}
.newsletter-block__hint{font-size:.8rem;opacity:.7;margin-top:.75rem}

/* Footer */
.site-footer{background:var(--kewoulo-black);color:#d1d5db;margin-top:3rem}
.site-footer a{color:#fff}
.site-footer__top{
	display:grid;gap:2rem;padding:2.5rem 1rem;
	grid-template-columns:1fr
}
.site-footer__brand p{font-size:.9rem;opacity:.8;margin-top:.5rem}
.site-footer__social h4{color:#fff;margin-bottom:.75rem}
.social-links{display:flex;flex-wrap:wrap;gap:.75rem}
.social-links--icons a{
	display:inline-flex;align-items:center;justify-content:center;
	width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff
}
.social-links--icons a:hover{background:var(--kewoulo-primary);text-decoration:none}
.footer-categories li{margin:.35rem 0}
.footer-categories a{color:#d1d5db}
.footer-categories a:hover{color:#fff}
.site-footer__editor{font-size:.85rem;opacity:.7;margin-top:.5rem}
.site-footer .site-logo__svg text,.site-footer .site-logo img{filter:brightness(1.2)}
.site-footer__bottom{
	border-top:1px solid #374151;padding:1.5rem 1rem;text-align:center;font-size:.85rem
}
.footer-nav,.legal-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin-bottom:.75rem}
.site-footer__copy{opacity:.6;margin:0}

/* Comments */
.comments-area{margin-top:2rem;padding-top:2rem;border-top:1px solid var(--kewoulo-border)}
.comment-list .comment-body{padding:1rem 0;border-bottom:1px solid var(--kewoulo-border)}
.comment-author{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}
.comment-avatar{border-radius:50%}
.comment-form input,.comment-form textarea{
	width:100%;padding:.65rem;border:1px solid var(--kewoulo-border);border-radius:var(--kewoulo-radius);margin-bottom:.75rem
}

/* 404 */
.error-404{text-align:center;padding:3rem 0}
.error-404 h1{font-size:2rem}

/* Page */
.page-article__header{margin-bottom:1.5rem}
.page-article__content{font-family:var(--kewoulo-font);font-size:1.0625rem;line-height:1.75}

/* Reading progress */
.reading-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:200;background:transparent}
.reading-progress span{display:block;height:100%;width:0;background:var(--kewoulo-primary);transition:width .1s linear}

/* WhatsApp float */
.whatsapp-float{
	position:fixed;bottom:5.5rem;right:1.25rem;z-index:90;
	width:52px;height:52px;border-radius:50%;background:#25D366;color:#fff;
	display:flex;align-items:center;justify-content:center;
	box-shadow:0 4px 14px rgba(0,0,0,.2)
}
.whatsapp-float:hover{background:#1ebe57;color:#fff;text-decoration:none}

/* Back to top */
.back-to-top{
	position:fixed;bottom:1.25rem;right:1.25rem;z-index:90;
	width:44px;height:44px;border-radius:50%;border:none;
	background:var(--kewoulo-primary);color:#fff;font-size:1.25rem;cursor:pointer;
	box-shadow:0 4px 14px rgba(0,0,0,.15);transition:opacity .2s,transform .2s
}
.back-to-top[hidden]{opacity:0;pointer-events:none;transform:translateY(8px)}
.back-to-top:not([hidden]){opacity:1}

/* Newsletter success */
.newsletter-form__success{color:#86efac;font-size:.85rem;margin-top:.5rem}
.site-header.is-scrolled{box-shadow:0 4px 16px rgba(0,0,0,.1)}
.custom-logo-link{display:inline-block;line-height:0}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width:640px){
	.posts-grid{grid-template-columns:repeat(2,1fr)}
	.posts-grid--3{grid-template-columns:repeat(2,1fr)}
	.posts-grid--4{grid-template-columns:repeat(2,1fr)}
	.category-section__grid{grid-template-columns:repeat(2,1fr)}
	.related-posts__grid{grid-template-columns:repeat(2,1fr)}
	.hero-post__layout{grid-template-columns:1.6fr 1fr}
	.hero-post__media{aspect-ratio:auto;min-height:300px}
	.hero-mosaic{grid-template-columns:1.55fr 1fr;min-height:420px}
	.hero-mosaic>.hero-tile--lead{min-height:100%}
	.hero-equal{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:768px){
	.site-header__inner{
		display:grid;
		grid-template-columns:180px 1fr auto;
		align-items:center;
		gap:1.5rem;
		padding:.75rem 1rem
	}
	.site-branding{justify-self:start;width:180px}
	.main-nav{
		display:flex;justify-content:center;align-items:center;
		width:100%;min-width:0
	}
	.main-nav__list{
		justify-content:center;flex-wrap:nowrap;
		gap:.15rem;overflow-x:auto;-webkit-overflow-scrolling:touch
	}
	.main-nav__list a{
		font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;
		white-space:nowrap;padding:.5rem .6rem
	}
	.header-actions{
		position:static;transform:none;
		justify-self:end
	}
	.header-actions__menu{display:none}
	.mobile-menu{display:none!important}
	.layout-with-sidebar,.layout-home{grid-template-columns:1fr var(--kewoulo-sidebar)}
	.posts-grid--3{grid-template-columns:repeat(3,1fr)}
	.posts-grid--4{grid-template-columns:repeat(2,1fr)}
	.category-section__grid{grid-template-columns:repeat(2,1fr)}
	.site-footer__top{grid-template-columns:1.5fr 2fr 1fr}
}
@media (min-width:768px){
	.hero-bento{
		grid-template-columns:repeat(4,1fr);
		grid-template-rows:repeat(2,minmax(180px,1fr));min-height:400px
	}
	.hero-bento .hero-tile--lead{grid-column:1/3;grid-row:1/3;min-height:100%}
	.hero-bento .hero-tile:nth-child(2){grid-column:3/5}
	.hero-bento .hero-tile:nth-child(3){grid-column:3/4}
	.hero-bento .hero-tile:nth-child(4){grid-column:4/5}
	.hero-carousel__track .hero-tile{flex-basis:min(42vw,360px);min-height:260px}
}
@media (min-width:1024px){
	.posts-grid--4{grid-template-columns:repeat(4,1fr)}
	.category-section__grid{grid-template-columns:repeat(4,1fr)}
	.related-posts__grid{grid-template-columns:repeat(4,1fr)}
	.hero-equal{grid-template-columns:repeat(4,1fr)}
	.hero-mosaic{min-height:480px}
}
@media (prefers-reduced-motion:reduce){
	.breaking-news__track{animation:none}
	.post-card:hover,.post-card:hover .post-card__image,.post-card:hover .post-card__media img,.hero-tile:hover .hero-tile__image{transform:none;box-shadow:0 1px 2px rgba(0,0,0,.04)}
}
