/* grid.mk - нов дизајн (19.11.2026). resources/views/grid/partials/home.blade.php + story.blade.php */
:root{--g-red:#B51C20;--g-ink:#212529;--g-mute:#5F6368;--g-line:#E2E3E5;--g-soft:#D6D8DB;--g-bg:#F4F4F5;--g-blue:#1F5F9E}
body{margin:0!important;padding:0!important;background:var(--g-bg)!important}
.g{font-family:'PT Sans',sans-serif;color:var(--g-ink);font-size:15px;line-height:1.35}
.g a{color:inherit;text-decoration:none}
.g a:hover{color:var(--g-red)}
.g-sr{position:absolute;left:-9999px}
.g-wrap{max-width:1424px;margin:0 auto;padding:0 24px;box-sizing:border-box}

/* header */
.g-head{background:#fff;border-bottom:1px solid var(--g-line)}
.g-head__top{display:flex;align-items:center;gap:24px;padding-top:14px;padding-bottom:14px}
.g-logo img{display:block;height:44px;width:auto}
.g-head__date{display:flex;flex-direction:column;gap:2px;padding-left:20px;border-left:1px solid var(--g-line);font-size:12px;color:var(--g-mute)}
.g-head__date strong{font-size:13px;color:var(--g-ink)}
.g-search{margin-left:auto;display:flex;align-items:center;gap:8px;background:#F1F2F3;border:1px solid var(--g-line);border-radius:22px;padding:0 5px 0 16px;height:44px;width:320px;box-sizing:border-box}
.g-search input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:14px;color:var(--g-ink);outline:none}
.g-search button{width:34px;height:34px;border-radius:17px;border:0;background:var(--g-red);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.g-icon{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;color:var(--g-mute)!important;border:1px solid var(--g-line);box-sizing:border-box;flex-shrink:0}
.g-icon--m{display:none}
.g-burger{background:transparent;cursor:pointer;padding:0;color:var(--g-ink)!important}
.g-menu{display:none}
.g-nav{background:#EEEEEF;border-top:1px solid var(--g-line)}
.g-nav__in{position:relative;display:flex;overflow-x:auto;scrollbar-width:none}
.g-nav__in::-webkit-scrollbar{display:none}
.g-nav a{flex-shrink:0;display:flex;align-items:center;height:46px;padding:0 14px;font-family:'PT Sans Narrow',sans-serif;font-size:17px;text-transform:uppercase;letter-spacing:.3px;color:#4A4F55;border-bottom:3px solid transparent;white-space:nowrap}
.g-nav a.is-active{color:var(--g-ink);font-weight:700;border-bottom-color:var(--g-red)}

/* топ теми (тренд) */
.g-trend{background:#fff;border-bottom:1px solid var(--g-line)}
.g-trend__in{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
.g-trend__lbl{font-family:'PT Sans Narrow',sans-serif;font-weight:700;font-size:14px;text-transform:uppercase;letter-spacing:.4px;color:#fff;background:var(--g-red);padding:4px 10px;border-radius:4px}
.g-trend a{font-size:14px;padding:4px 12px;border:1px solid var(--g-line);border-radius:14px;background:#FAFAFA}

/* layout */
.g-main{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start;padding-top:24px;padding-bottom:24px}
.g-latest{flex:0 0 300px;width:300px;max-width:300px}
.g-center{flex:1 1 560px;max-width:728px;min-width:0;display:flex;flex-direction:column;gap:24px}
.g-right{flex:0 0 300px;width:300px;min-width:0;display:flex;flex-direction:column;gap:24px}
.g-card{background:#fff;border:1px solid var(--g-line);border-radius:8px;padding:18px 22px 6px;min-width:0;box-sizing:border-box}
.g-latest.g-card{padding:18px 18px 8px}
.g-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:2px solid var(--g-red);padding-bottom:6px;margin-bottom:4px}
.g-h h2{margin:0;font-family:'PT Sans Narrow',sans-serif;font-weight:700;font-size:22px;text-transform:uppercase;letter-spacing:.2px}
.g-h a{font-size:13px;color:var(--g-mute)}
.g-src{color:var(--g-red)!important;font-weight:400}
.g-meta{font-size:13px;color:var(--g-mute)}
.g-more{display:flex;align-items:center;justify-content:center;height:44px;font-size:14px;font-weight:700;color:var(--g-red)!important}
.g-thumb{display:block;background:#D9DADC url('/images/grid-mk-logo.png') center/56px auto no-repeat;border-radius:6px;overflow:hidden}
.g-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.g-thumb--wide{aspect-ratio:16/9;width:100%}

/* последни вести */
.g-live{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--g-mute)}
.g-live::before{content:"";width:8px;height:8px;border-radius:4px;background:#1E8E3E}
.g-latest__item{display:flex;flex-direction:column;gap:3px;padding:12px 0;border-bottom:1px solid var(--g-soft)}
.g-latest__item:last-of-type{border-bottom:0}
.g .g-latest__cat{align-self:flex-start;font-size:13px;font-weight:700;text-transform:uppercase;color:#444}
.g .g-latest__title{font-family:'PT Sans Narrow',sans-serif;font-size:17px;font-weight:500;line-height:1.2;color:#707070}
.g .g-latest__title:hover{color:var(--g-red)}
.g-latest__meta{font-size:12px;color:var(--g-mute)}
.g-latest__sep{color:#9A9DA1;margin:0 2px}

/* hero */
.g-hero{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;height:400px;border-radius:8px;overflow:hidden}
.g-hero__item{position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:22px;background:#3E4A5C;color:#fff!important}
.g-hero__item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.g-hero__item::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.8) 100%)}
.g-hero__txt{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px}
.g-hero__txt strong{font-family:'PT Sans Narrow',sans-serif;font-size:27px;line-height:1.12;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.g-hero__txt span{font-size:13px;color:rgba(255,255,255,.85)}
.g-hero__item:hover strong{text-decoration:underline}
.g-hero__tag{position:absolute;z-index:2;top:14px;right:14px;font-family:'PT Sans Narrow',sans-serif;font-weight:700;font-size:13px;background:#FFC61A;color:var(--g-ink);padding:4px 10px;border-radius:4px}

/* вест во стил „Топ вести“ (десктоп: слика лево) */
.g-tabs{display:none}
.g-story{display:flex;gap:18px;padding:18px 0;border-bottom:1px solid var(--g-soft)}
.g-story:last-child{border-bottom:0}
.g-story .g-thumb{flex:0 0 140px;height:105px}
.g-story__body{display:flex;flex-direction:column;gap:6px;min-width:0}
.g-story__title{font-weight:700;font-size:21px;line-height:1.22}
.g-also{display:flex;flex-wrap:wrap;gap:6px;font-size:13px}
.g-also__src{color:var(--g-blue)!important;background:#EEF4FA;padding:2px 8px;border-radius:10px}
.g-also__src:hover{background:#DDE9F5}
.g-also__all{color:var(--g-mute)!important;padding:2px 4px}
.g-also__m{display:none}
.g-cat__lead{display:none}

/* десно */
.g-feature.g-card{display:flex;flex-direction:column;padding:0;overflow:hidden}
.g-feature__img{display:block;height:160px;background:#D9DADC url('/images/grid-mk-logo.png') center/56px auto no-repeat}
.g-feature__img img{display:block;width:100%;height:100%;object-fit:cover}
.g-feature__title{padding:12px 14px;font-size:15px}
.g-vid{display:flex;flex-direction:column;gap:6px;padding:12px 0}
.g-vid__img{position:relative}
.g-vid strong{font-size:15px;line-height:1.3}
.g-vid .g-meta{font-size:12px}
.g-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:23px;background:rgba(0,0,0,.45);border:2px solid #fff;color:#fff;display:flex;align-items:center;justify-content:center}

/* кластер страница */
.g-cl{display:flex;flex-direction:column;gap:14px;padding:22px 26px 26px}
.g-crumbs{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--g-mute)}
.g-crumbs a{color:var(--g-mute)}
.g .g-crumbs__cat{color:var(--g-red);font-family:'PT Sans Narrow',sans-serif;font-weight:700;font-size:14px;text-transform:uppercase}
.g-cl__title{margin:0;font-family:'PT Sans Narrow',sans-serif;font-weight:700;font-size:36px;line-height:1.1}
.g-cl__meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--g-mute);padding-bottom:14px;border-bottom:2px solid var(--g-red)}
.g-cl__meta strong{color:var(--g-ink)}
.g-cl__img{display:block;border-radius:6px;overflow:hidden;background:#D9DADC;aspect-ratio:16/9}
.g-cl__img img{display:block;width:100%;height:100%;object-fit:cover}
.g-cl__ex{margin:0;font-size:17px;line-height:1.55;color:#3A3F45}
.g .g-cl__btn{align-self:flex-start;display:flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:22px;background:var(--g-red);color:#fff;font-weight:700;font-size:14px}
.g .g-cl__btn:hover{color:#fff;background:#961519}
.g-h__note{font-size:13px;color:var(--g-mute)}
.g-h .g-h__h1{margin:0;font-family:'PT Sans Narrow',sans-serif;font-weight:700;font-size:26px;text-transform:uppercase}
.g-story--art .g-story__title{font-size:19px;line-height:1.25}
.g-story__ex{margin:0;font-size:14px;line-height:1.45;color:var(--g-mute);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.g-empty{padding:24px 0;color:var(--g-mute)}

/* footer */
.g-foot{background:var(--g-ink);color:#C9CCD1;margin-top:16px}
.g-foot__in{display:flex;flex-wrap:wrap;gap:40px;padding-top:36px;padding-bottom:36px}
.g-foot__in > div{flex:1 1 280px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.g-foot__logo{display:flex;background:#fff;border-radius:8px;padding:8px 14px}
.g-foot__logo img{display:block;height:38px;width:auto}
.g-foot p{font-size:14px;line-height:1.5;max-width:340px;margin:0}
.g-foot nav{flex:2 1 400px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 24px;font-size:14px;align-content:start}
.g-foot a{color:#C9CCD1!important}
.g-foot a:hover{color:#fff!important}
.g-foot__copy{border-top:1px solid #343A40;padding:14px 0;font-size:12px;color:#9AA0A6}

/* таблет: десната колона оди под */
@media (max-width:1423px){
  .g-right{width:auto;max-width:none;flex-basis:100%;flex-direction:row;flex-wrap:wrap}
  .g-right > .g-card{flex:1 1 300px}
}

/* мобилен */
@media (max-width:767px){
  .g-wrap{padding:0 12px}
  .g-head__top{gap:4px;padding:6px 8px 6px 16px}
  .g-logo{margin-right:auto}
  .g-logo img{height:34px}
  .g-head__date,.g-search,.g-icon--fb{display:none}
  .g-icon--m{display:flex;border:0;color:var(--g-ink)!important}
  .g-menu:not([hidden]){display:flex;flex-direction:column;background:#fff;border-top:1px solid var(--g-line);padding:4px 0}
  .g-menu a{display:flex;align-items:center;min-height:46px;padding:0 16px;font-family:'PT Sans Narrow',sans-serif;font-size:18px;text-transform:uppercase;border-bottom:1px solid var(--g-soft)}
  .g-menu a:last-child{border-bottom:0}
  .g-menu a.is-active{font-weight:700;color:var(--g-ink);text-decoration:underline;text-decoration-color:var(--g-red);text-decoration-thickness:3px;text-underline-offset:7px}
  .g-nav__in{padding:0 6px}
  .g-nav a{font-size:16px;padding:0 11px;height:44px}
  .g-trend__in{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .g-trend a,.g-trend__lbl{flex-shrink:0;white-space:nowrap}
  .g-main{padding-top:16px;gap:16px}
  .g-center{order:1;flex-basis:100%;max-width:none;gap:16px}
  .g-latest{order:2;width:auto;max-width:none;flex-basis:100%}
  .g-right{order:3}
  .g-card{padding:14px 14px 4px}
  .g-hero{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;height:300px;gap:8px;scrollbar-width:none}
  .g-hero::-webkit-scrollbar{display:none}
  .g-hero__item{flex:0 0 88%;scroll-snap-align:start;border-radius:8px;overflow:hidden;padding:18px}
  .g-hero__txt strong{font-size:26px}
  .g-hero__tag{left:12px;right:auto;top:12px}

  /* табови Топ вести / Последни */
  .g-topcard{padding-top:4px}
  .g-tabs{display:flex;border-bottom:1px solid var(--g-line)}
  .g-tabs button{flex:1;height:46px;border:0;background:transparent;font-family:'PT Sans Narrow',sans-serif;font-size:18px;text-transform:uppercase;color:var(--g-mute);border-bottom:3px solid transparent;cursor:pointer}
  .g-tabs button.is-on{font-weight:700;color:var(--g-ink);border-bottom-color:var(--g-red)}
  .g-h--top{display:none}
  .g--home .g-latest{display:none}
  .g--inner .g-latest__item:nth-of-type(n+6){display:none}
  .g-right{display:none}
  .g--latest .g-latest{display:block;order:1}
  .g--latest .g-topcard .g-story{display:none}
  .g--latest .g-center > :not(.g-topcard){display:none}
  .g--latest .g-center{order:0}

  /* вест: слика десно, обичен наслов, „+N извори“ */
  .g-story{flex-direction:row-reverse;gap:12px;padding:14px 0}
  .g-story .g-thumb{flex:0 0 96px;height:96px}
  .g-story__title{font-weight:400;font-size:17px;line-height:1.3}
  .g-meta{font-size:12px}
  .g-also__src,.g-also__all{display:none}
  .g-also__m{display:inline;font-size:12px;color:var(--g-blue)!important}

  /* рубрика: 1 голема + 3 */
  .g-cat .g-h{margin-bottom:12px}
  .g-cat__lead{display:flex;flex-direction:column;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--g-soft)}
  .g-cat__lead .g-thumb--wide{aspect-ratio:auto;height:190px}
  .g-cat__lead strong{font-size:18px;line-height:1.25}
  .g-story--lead{display:none}

  .g-cl{padding:16px 14px 18px;gap:12px}
  .g-crumbs{font-size:12px}
  .g-cl__title{font-size:27px;line-height:1.12}
  .g-cl__meta{font-size:12px;gap:6px;padding-bottom:12px}
  .g-cl__dt{display:none}
  .g-cl__img{aspect-ratio:auto;height:210px}
  .g-cl__ex{font-size:16px;line-height:1.5}
  .g .g-cl__btn{align-self:stretch;justify-content:center;height:46px;border-radius:23px;font-size:15px}
  .g-story--art .g-story__title{font-size:17px;line-height:1.3}
  .g-story__ex{display:none}
  .g-h .g-h__h1{font-size:22px}
  .g-foot nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}
