/* Kovara Bîr — category and author pages: a header with an identity, one featured piece, the most-read row
   and a calm card grid. Colours come from brand.css, so dark mode follows by itself. */

/* ── Category header ── */
.editorial-collection .page-head.topic-head{position:relative;max-width:none;padding:46px 0 30px;margin-bottom:26px;border-bottom:1px solid var(--line)}
.editorial-collection .page-head.topic-head::before{content:"";display:block;width:56px;height:3px;background:var(--orange);margin-bottom:22px}
.topic-kicker a{color:var(--petrol);text-decoration:none}
.topic-kicker a:hover{text-decoration:underline;text-underline-offset:4px}
.editorial-collection .page-head.topic-head h1{font-size:clamp(40px,5.4vw,72px);line-height:1.04;letter-spacing:-1.6px;margin:0 0 18px;color:var(--ink)}
.editorial-collection .page-head.topic-head .topic-intro{max-width:62ch;font:400 19px/1.65 var(--serif);color:var(--ink);margin:0 0 18px}
.editorial-collection .page-head.topic-head .topic-count{font:500 13px var(--sans);letter-spacing:.4px;color:var(--muted);margin:0}
.topic-count strong{color:var(--petrol);font-weight:700;font-variant-numeric:tabular-nums}

/* ── One featured piece, large ── */
.topic-feature{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:40px;align-items:center;padding:6px 0 38px;margin-bottom:34px;border-bottom:1px solid var(--line)}
.topic-feature-image{display:block;aspect-ratio:3/2;overflow:hidden;border-radius:8px;background:var(--surface)}
.topic-feature-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.topic-feature:hover .topic-feature-image img{transform:scale(1.025)}
.topic-feature-text .eyebrow{color:var(--petrol);margin:0 0 14px}
.topic-feature-text h2{font:500 clamp(28px,3vw,40px)/1.16 var(--serif);letter-spacing:-.6px;margin:0 0 16px;text-wrap:balance;overflow-wrap:anywhere}
.topic-feature-text h2 a{color:inherit;text-decoration:none}
.topic-feature-text h2 a:hover{color:var(--petrol)}
.topic-feature-lead{font:400 17px/1.65 var(--serif);color:var(--muted);margin:0 0 18px}
.topic-feature-text .byline{font-size:13px;color:var(--muted)}
.topic-feature-text .byline a{color:var(--ink)}

/* ── Most-read row: thin, numbered ── */
.collection-reads{margin:0 0 38px;padding:0 0 30px;border-bottom:1px solid var(--line)}
.collection-reads-title{font:700 11px var(--sans);letter-spacing:1.6px;text-transform:uppercase;color:var(--petrol);margin:0 0 16px}
.collection-reads ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.collection-reads li{display:flex;gap:12px;align-items:flex-start;min-width:0}
.collection-reads-rank{flex:none;font:500 34px/0.9 var(--serif);color:var(--orange);font-variant-numeric:tabular-nums}
.collection-reads li a{display:block;font:500 17px/1.35 var(--serif);color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.collection-reads li a:hover{color:var(--petrol)}
.collection-reads small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}

/* ── Card grid: pieces without a cover keep the same rhythm ── */
.collection-grid .card{display:flex;flex-direction:column}
.collection-grid .card:not(:has(.card-image)){border-top:3px solid var(--petrol);padding-top:20px}
.collection-grid .card:not(:has(.card-image)) h3{font-size:26px}
.collection-grid .card .byline{margin-top:auto}

@media(max-width:900px){
  .topic-feature{grid-template-columns:1fr;gap:22px}
  .collection-reads ol{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .editorial-collection .page-head.topic-head{padding:30px 0 22px}
  .editorial-collection .page-head.topic-head .topic-intro{font-size:17px}
  .collection-reads ol{grid-template-columns:1fr;gap:16px}
  .topic-feature-lead{font-size:16px}
}

/* ── Author page: a large portrait, the name, a stats line, the biography and a share box ── */
.editorial-collection .page-head.author-hero{grid-template-columns:220px minmax(0,1fr);gap:48px;align-items:center;max-width:1040px;padding:50px 0 40px;margin-bottom:30px;border-bottom:1px solid var(--line)}
.author-hero .author-head-photo{width:220px;height:220px;box-shadow:0 0 0 6px var(--paper),0 0 0 7px var(--line),0 18px 40px -18px #0c3f4a55}
.author-hero span.author-head-photo{font-size:64px}
.editorial-collection .author-hero .author-head-text h1{font-size:clamp(38px,4.6vw,62px);line-height:1.05;letter-spacing:-1.4px;margin:0 0 14px}
.author-stats{display:flex;flex-wrap:wrap;gap:6px 0;margin:0 0 22px;font:500 13px var(--sans);letter-spacing:.3px;color:var(--muted)}
.author-stats span+span::before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--orange);margin:0 12px;vertical-align:middle}
.author-stats strong{color:var(--petrol);font-weight:700;font-variant-numeric:tabular-nums}
.author-share{position:relative;display:inline-block;margin-top:20px}
.author-share summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:1.5px solid var(--line);border-radius:999px;font:600 13px var(--sans);color:var(--ink);cursor:pointer;transition:border-color .15s,color .15s}
.author-share summary::-webkit-details-marker{display:none}
.author-share summary:hover,.author-share[open] summary{border-color:var(--petrol);color:var(--petrol)}
.author-share summary .kb-icon{width:18px;height:18px}
.author-share .share-links{position:absolute;z-index:30;left:0;top:calc(100% + 8px);display:grid;grid-template-columns:1fr 1fr;gap:6px;width:min(340px,calc(100vw - 32px));padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 16px 40px #0c3f4a2e}
.author-share .share-links a,.author-share .share-links button{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:600 13px var(--sans);text-decoration:none;cursor:pointer}
.author-share .share-links a:hover,.author-share .share-links button:hover{border-color:var(--petrol);color:var(--petrol)}
.author-share .share-links svg{width:18px;height:18px;fill:currentColor;flex:none}
.author-share .share-wa svg{color:#1fa855}.author-share .share-tg svg{color:#2a9fd8}.author-share .share-fb svg{color:#1877f2}
.author-share .share-links .kb-icon{fill:none}
html[data-theme=dark] .author-share .share-links{box-shadow:0 16px 40px #0008}
@media(max-width:700px){
  .editorial-collection .page-head.author-hero{grid-template-columns:1fr;gap:22px;padding:30px 0 28px;text-align:left}
  .author-hero .author-head-photo{width:148px;height:148px}
  .author-hero span.author-head-photo{font-size:46px}
}
