/* =====================================================================
   Projnana — desktop / tablet layout (>= 768px)
   ===================================================================== */
.m-header, .m-drawer, .bottom-nav, .related-mobile, .toc { display: none !important; }
.wrap, .wrap-wide, .wrap-narrow { padding-inline: 28px; }

/* Header */
.d-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.d-header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.d-nav { flex: 1; min-width: 0; }
.d-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.d-nav-list a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: var(--r-sm); white-space: nowrap; position: relative; }
.d-nav-list a:hover { background: var(--mist); color: var(--ink); }
.d-nav-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.d-nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--flame); border-radius: 2px; }
.d-header-tools { display: flex; align-items: center; gap: 12px; }
.d-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding-left: 14px; background: var(--mist); transition: width .2s var(--ease), border-color .2s; width: 220px; }
.d-search:focus-within { border-color: var(--ink); background: var(--paper); width: 300px; }
.d-search input { border: 0; background: transparent; min-height: 40px; padding: 0; font-size: .9rem; outline: 0; }
.d-search input:focus { outline: 0; }
.d-search .icon-btn { width: 40px; height: 40px; }

/* Hero: full-bleed editorial banner */
.hero-slide { min-height: clamp(380px, 46vw, 540px); }
.hero-slide::after { background: linear-gradient(90deg, rgba(14,22,40,.88) 0%, rgba(14,22,40,.55) 42%, rgba(14,22,40,.05) 75%), linear-gradient(0deg, rgba(14,22,40,.5), transparent 40%); }
.hero-body { max-width: var(--wrap); margin-inline: auto; padding: 48px 28px 52px; min-height: clamp(380px, 46vw, 540px); }
.hero-title { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 15ch; }
html[lang="kn"] .hero-title { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 18ch; }
.hero-dek { font-size: 1.12rem; }
.hero-go { position: static; margin: 18px 0 0; }
.hero-body .card-meta { font-size: .9rem; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; }
.hero-dots button::before { background: rgba(255,255,255,.5); }
.hero-dots button[aria-selected="true"]::before { background: #fff; }

/* Category tiles */
.cat-strip-wrap { margin-top: -36px; position: relative; z-index: 2; }
.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; background: var(--paper); padding: 14px; border-radius: var(--r-md); box-shadow: var(--shadow); }
.cat-tile { padding: 14px 6px 12px; border-radius: var(--r-md); transition: background .15s; }
.cat-tile:hover { background: color-mix(in srgb, var(--c) 8%, white); color: var(--text); }
.cat-tile .cat-ico { width: 52px; height: 52px; border-radius: 14px; }

/* Grids */
.section { padding-block: 40px; }
.card-grid--4 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(2, 1fr); }
.card { flex-direction: column; }
.card-img { aspect-ratio: 16 / 10; margin-bottom: 14px; }
.card-grid--feature .card-img { aspect-ratio: 3 / 2; }
.card-grid--feature .card-title { font-size: 1.3rem; }
.latest-layout { display: grid; gap: 32px; }
.row-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.row-grid .card-row:last-child { border-bottom: 1px solid var(--line); }
.section--popular { background: var(--mist); }
.section--popular .card { background: transparent; }
.author-grid { grid-template-columns: repeat(2, 1fr); }
.section--catblock .section-head h2 .cat-ico { color: var(--c); }

/* Article */
.article-head { padding-top: 32px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.article-main { min-width: 0; max-width: 720px; }
.comment-form .form-row { grid-template-columns: 1fr 1fr; }
.share-native { display: none; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; }

@media (min-width: 1024px) {
  .card-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .latest-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .latest-layout .card-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .author-grid { grid-template-columns: repeat(4, 1fr); }
  .author-grid--full { grid-template-columns: repeat(3, 1fr); }
  .author-card { flex-direction: column; text-align: center; padding: 24px 16px; }
  .author-grid--full .author-card { flex-direction: row; text-align: left; }
  .article-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; }
  .article-side { display: flex; flex-direction: column; gap: 20px; }
  .toc-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
}
@media (max-width: 1023.98px) {
  .article-side { display: none; }
  .related-mobile { display: block !important; }
  .d-nav-list a { padding: 8px 8px; font-size: .9rem; }
  .d-header-inner { gap: 16px; }
  .d-search { width: 44px; padding-left: 0; background: transparent; border-color: transparent; }
  .d-search input { width: 0; padding: 0; }
  .d-search:focus-within { width: 240px; padding-left: 14px; background: var(--paper); border-color: var(--ink); }
  .d-search:focus-within input { width: auto; }
  .brand-tag { display: none; }
}
@media (min-width: 1440px) {
  :root { --wrap: 1320px; }
  .latest-layout .card-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1920px) {
  :root { --wrap: 1440px; }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .latest-layout .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Align the article header and comments with the reading column beside the sidebar */
@media (min-width: 1024px) {
  .article-head, .page-article .comments { max-width: 1120px; }
  .article-head > *, .page-article .comments > * { max-width: 720px; }
}
