/* Oko na Dziecko 4.0 - balanced footer, social links, blog cards, pagination, subtle animated mark */
/* Footer grid finishes before the social/legal row, so shortcuts no longer grow disproportionately. */
.footer-grid{align-items:start}
.footer-grid>div:first-child{position:relative;min-width:0}
.footer-grid>div:first-child p{max-width:36ch}
.footer-extras{
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
 gap:12px 24px;margin-top:24px;padding-bottom:4px;position:relative;z-index:1;
}
.footer-extras .footer-social{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;min-width:0;max-width:100%}
.footer-extras .footer-social a{
 display:inline-flex!important;gap:10px;align-items:center;justify-content:center;
 min-height:42px;min-width:0;max-width:100%;white-space:normal;
 padding:9px 15px;border:1px solid rgba(232,241,230,.22);
 border-radius:999px;background:rgba(255,255,255,.05);font-size:.84rem;
 line-height:1.3;overflow-wrap:normal;word-break:normal;
}
.footer-extras .footer-social svg{display:block;width:18px;height:18px;flex:0 0 18px}
.footer-extras .footer-social a span{min-width:0}
.footer-extras .footer-social a:hover,.footer-extras .footer-social a:focus-visible{background:rgba(255,255,255,.14);border-color:rgba(232,241,230,.42);transform:translateY(-1px);color:#fff}
.footer-extras .footer-privacy-link{display:inline-flex;align-items:center;min-height:42px;max-width:100%;font-size:.88rem;white-space:nowrap;color:#e1eae2}
.footer .footer-bottom{margin-top:18px}
/* Blog: card surface and padding exist even before hover, so hover never reveals a raw white rectangle. */
.journal-grid{align-items:stretch}
.journal-grid>.journal-card{min-width:0;height:100%;padding:16px;border:1px solid #e6ece5;border-radius:23px;background:#fcfdfb;box-shadow:0 4px 15px rgba(28,55,41,.025);transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.journal-grid>.journal-card:hover{background:#f7faf6;border-color:#cbdccc;box-shadow:0 14px 34px rgba(37,77,61,.085);transform:translateY(-2px)}
.journal-grid>.journal-card .journal-thumb{display:block;overflow:hidden;border-radius:14px}
.journal-grid>.journal-card .journal-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.journal-grid>.journal-card:hover .journal-thumb img{transform:scale(1.02)}
.journal-grid>.journal-card .journal-link{margin-top:auto;max-width:100%}
/* Pagination is a full row AFTER the grid, with clear active state and touch-size links. */
.oko-blog-pagination{margin-top:35px}
.oko-blog-pagination .navigation.pagination{width:100%;margin:0}
.oko-blog-pagination .screen-reader-text{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.oko-blog-pagination .nav-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;list-style:none;padding:0;margin:0}
.oko-blog-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:10px 14px;border-radius:13px;border:1px solid #dce8dd;background:#f4f8f3;color:#2a523d;font-weight:700;line-height:1.2;font-size:.89rem;transition:background-color .2s,border-color .2s}
.oko-blog-pagination a.page-numbers:hover{background:#e3eee3;border-color:#bbd1c1;color:#214935}
.oko-blog-pagination .page-numbers.current{color:#fff;background:#254d3d;border-color:#254d3d}
.oko-blog-pagination .page-numbers.dots{border:0;background:transparent;min-width:20px;padding:6px}
@media(max-width:1100px){.footer-grid>div:first-child p{max-width:45ch}}
@media(max-width:850px){.footer-extras{gap:12px;margin-top:20px}.footer-extras .footer-social a{white-space:normal}}
@media(max-width:580px){
 .footer-extras{display:flex;align-items:flex-start;flex-direction:column;gap:12px;padding:0;margin-top:18px}
 .footer-extras .footer-social{display:flex;gap:9px;flex-wrap:wrap;width:100%;margin:0}
 .footer-extras .footer-social a{padding:9px 12px;min-height:41px;min-width:0;font-size:.78rem;white-space:normal!important}
 .footer-extras .footer-privacy-link{font-size:.82rem;min-height:35px}
 .footer .footer-bottom{margin-top:14px}
 .journal-grid>.journal-card{padding:13px;border-radius:17px}
 .oko-blog-pagination{margin-top:26px}
 .oko-blog-pagination .nav-links{gap:6px}
 .oko-blog-pagination .page-numbers{min-width:40px;min-height:42px;padding:9px 11px}
}
@media(prefers-reduced-motion:reduce){
 .journal-grid>.journal-card,.journal-grid>.journal-card .journal-thumb img{transition:none!important;transform:none!important}
}

/* v4.1 - privacy follows shortcut links only on mobile. On desktop it stays in the legal/social row. */
.footer-shortcuts>.footer-privacy-mobile{display:none!important}
@media(max-width:850px){
 .footer-shortcuts>.footer-privacy-mobile{
   display:block!important;color:#d0ddd3;font-size:inherit;line-height:1.5;
   min-height:38px;padding:8px 0;margin:0;text-decoration:none;width:max-content;max-width:100%;
 }
 .footer-shortcuts>.footer-privacy-mobile:hover{color:#fff}
 .footer-extras>.footer-privacy-link{display:none!important}
}


/* 4.1.1: on mobile, the sixth shortcut occupies the right cell below Cennik. */
.footer-shortcuts .menu>li.footer-privacy-mobile{display:none!important}
@media(max-width:850px){
 .footer-shortcuts .menu>li.footer-privacy-mobile{display:list-item!important;min-width:0;margin:0;grid-column:2}
 .footer-shortcuts .menu>li.footer-privacy-mobile a{display:block;min-height:40px;margin:0;padding:9px 0;color:#d0ddd3;font-size:.88rem;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
 .footer-shortcuts .menu>li.footer-privacy-mobile a:hover{color:#fff}
}
@media(min-width:581px) and (max-width:850px){
 .footer-shortcuts .menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
