/*
Theme Name: Shahrukhz Journal
Theme URI: https://www.danubeshahrukz.com/blog/
Description: Alternative blog theme for danubeshahrukz.com. Dark title panels, list-style listing, and a sticky "In this article" contents sidebar on posts. Matched to the main site (gold #ad8242, red #c80000, Optima).
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
Text Domain: shahrukhz-journal
*/

@font-face{font-family:"Optima";font-style:normal;font-weight:400;font-display:swap;src:url("https://www.danubeshahrukz.com/fonts/Optima-Medium.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url("https://www.danubeshahrukz.com/fonts/poppins-v20-latin-regular.woff") format("woff")}

:root{
  --gold:#ad8242;
  --gold-lt:#d6b27a;
  --gold-soft:#f6f1e8;
  --red:#c80000;
  --red-deep:#a00000;
  --ink:#212529;
  --ink-2:#2c3136;
  --text:#343a40;
  --muted:#6c757d;
  --line:#e7dfd1;
  --sand:#d0b285;
  --wrap:1200px;
  --head:"Optima","Segoe UI",Candara,"Trebuchet MS",sans-serif;
  --ui:"Poppins","Segoe UI",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:96px}
body{margin:0;background:#fff;color:var(--text);font-family:var(--head);font-size:18px;line-height:1.7}
img{max-width:100%;height:auto;display:block}
a{color:var(--red);text-decoration:none}
a:hover{color:var(--red-deep)}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:10px;left:10px;z-index:999;width:auto;height:auto;clip:auto;background:var(--ink);color:#fff;padding:.6rem 1rem}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem}

/* ---------- Header (same as main site) ---------- */
.site-header{position:sticky;top:0;z-index:50;background:#f8f9fa;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:0}}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:1rem}
.brand img{width:130px;height:52px}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:.5rem}
.main-nav a{position:relative;display:block;padding:1.6rem .6rem;font-weight:700;font-size:1.05rem;color:var(--ink);text-transform:uppercase}
.main-nav a:hover{color:var(--gold)}
.main-nav .current-menu-item>a,.main-nav .is-current>a{color:var(--gold)}
.main-nav .current-menu-item>a::before,.main-nav .is-current>a::before{content:"";position:absolute;left:0;bottom:0;width:100%;height:4px;background:var(--gold);border-radius:.5rem .5rem 0 0}

/* ---------- Dark title band (listing, archives, pages) ---------- */
.band{background:var(--ink);color:#e9ecef}
.band .wrap{padding-top:3rem;padding-bottom:2.25rem}
.band h1{font-family:var(--head);color:var(--gold-lt);text-transform:uppercase;font-size:clamp(2rem,4.2vw,3rem);line-height:1.12;margin:0 0 .6rem}
.band p{margin:0;max-width:60ch;color:#ced4da}
.crumbs{font-family:var(--ui);font-size:.8rem;color:#adb5bd;margin-bottom:1rem}
.crumbs a{color:#adb5bd}
.crumbs a:hover{color:var(--gold-lt)}
.crumbs .sep{margin:0 .45rem;color:var(--gold)}
.topics{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.75rem}
.topics a{font-family:var(--ui);font-size:.85rem;padding:.45rem 1rem;border:1px solid #495057;color:#e9ecef;border-radius:2rem}
.topics a:hover{border-color:var(--gold);color:var(--gold-lt)}
.topics a.on{background:var(--gold);border-color:var(--gold);color:#000}

/* ---------- Listing: one article per row ---------- */
.rows{max-width:980px;margin:0 auto;padding:1rem 1.5rem 4rem}
.row{display:grid;grid-template-columns:340px 1fr;gap:2rem;padding:2.25rem 0;border-bottom:1px solid var(--line);align-items:start}
.row .pic{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--gold-soft)}
.row .pic img{width:100%;height:100%;object-fit:cover}
.row h2{font-family:var(--head);font-size:1.45rem;line-height:1.3;margin:.35rem 0 .6rem;color:var(--ink)}
.row h2 a{color:inherit}
.row h2 a:hover{color:var(--gold)}
.row p{margin:0 0 .9rem;font-size:1rem;color:#495057}
.row.first{grid-template-columns:1fr;gap:1.25rem}
.row.first .pic{aspect-ratio:21/9}
.row.first h2{font-size:clamp(1.6rem,3vw,2.1rem);text-transform:uppercase;color:var(--gold)}
.row.first h2 a:hover{color:var(--red)}
.kicker{font-family:var(--ui);font-size:.8rem;color:var(--muted)}
.kicker .cat{color:var(--red);font-weight:700}
.kicker .dot{margin:0 .5rem;color:var(--gold)}
.more{font-family:var(--ui);font-size:.9rem;font-weight:700;color:var(--red);border-bottom:2px solid var(--gold)}
.no-pic{display:flex;height:100%;align-items:center;justify-content:center;color:var(--gold);font-family:var(--head);text-transform:uppercase;letter-spacing:.08em;font-size:.9rem}

.pagination{margin-top:3rem;display:flex;justify-content:center}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:.4rem}
.pagination .page-numbers{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 .9rem;border:1px solid var(--line);font-family:var(--ui);font-size:.9rem;color:var(--ink)}
.pagination .page-numbers.current{background:var(--ink);border-color:var(--ink);color:var(--gold-lt)}
.pagination a.page-numbers:hover{border-color:var(--gold);color:var(--gold)}

/* ---------- Single: full, uncropped banner, title below on white ---------- */
.hero-banner{max-width:var(--wrap);margin:0 auto;padding:2rem 1.5rem 0}
.hero-banner img{width:100%;height:auto;display:block}
.post-head{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--line)}
.post-head .crumbs,.post-head .crumbs a{color:var(--muted)}
.post-head .crumbs a:hover{color:var(--red)}
.post-head h1{font-family:var(--head);color:var(--gold);text-transform:uppercase;font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.18;margin:0 0 1rem}
.post-head .kicker a{color:var(--ink)}
.post-head .kicker a.cat{color:var(--red)}

/* ---------- Single: article + contents sidebar ---------- */
.article-wrap{max-width:var(--wrap);margin:0 auto;padding:2.5rem 1.5rem 0;display:grid;grid-template-columns:minmax(0,720px) 300px;gap:4rem;justify-content:center}
.side{position:relative}
.side-inner{position:sticky;top:110px}
.admin-bar .side-inner{top:142px}
.toc{border-top:4px solid var(--gold);background:var(--gold-soft);padding:1.25rem 1.25rem 1rem}
.toc-title{font-family:var(--head);font-weight:700;text-transform:uppercase;color:var(--ink);font-size:1rem;margin:0 0 .75rem}
.toc ol{list-style:none;margin:0;padding:0;counter-reset:t}
.toc li{counter-increment:t;margin:0;border-top:1px solid var(--line)}
.toc li:first-child{border-top:0}
.toc a{display:grid;grid-template-columns:1.6rem 1fr;padding:.55rem 0;font-family:var(--ui);font-size:.86rem;line-height:1.45;color:var(--text)}
.toc a::before{content:counter(t);color:var(--gold);font-weight:700}
.toc a:hover,.toc a.active{color:var(--red)}
.side-cta{margin-top:1.5rem;background:var(--ink);color:#dee2e6;padding:1.4rem 1.25rem;border-top:4px solid var(--red)}
.side-cta p.t{font-family:var(--head);color:var(--gold-lt);text-transform:uppercase;font-weight:700;margin:0 0 .4rem;font-size:1.05rem}
.side-cta p{font-size:.92rem;margin:0 0 1rem;line-height:1.55}
.toc-mobile{display:none;margin-bottom:2rem;border-top:4px solid var(--gold);background:var(--gold-soft)}
.toc-mobile summary{cursor:pointer;padding:1rem 1.1rem;font-family:var(--head);font-weight:700;text-transform:uppercase;color:var(--ink);list-style:none}
.toc-mobile summary::-webkit-details-marker{display:none}
.toc-mobile summary::after{content:"+";float:right;color:var(--gold);font-size:1.3rem;line-height:1}
.toc-mobile[open] summary::after{content:"\2212"}
.toc-mobile .toc{border-top:0;padding-top:0}

/* Article typography */
.entry>*:first-child{margin-top:0}
.entry p,.entry li{font-size:1.12rem;line-height:1.85;color:var(--text)}
.entry>p:first-of-type{font-size:1.25rem;line-height:1.75;color:var(--ink)}
.entry h2{font-family:var(--head);color:var(--ink);text-transform:uppercase;font-size:1.6rem;line-height:1.25;margin:3rem 0 1rem;padding-top:1.25rem;border-top:1px solid var(--line);position:relative}
.entry h2::before{content:"";position:absolute;top:-1px;left:0;width:64px;height:3px;background:var(--gold)}
.entry h3{font-family:var(--head);font-size:1.28rem;line-height:1.35;margin:2rem 0 .7rem;color:var(--gold)}
.entry h4{font-family:var(--head);font-size:1.1rem;margin:1.6rem 0 .5rem;color:var(--ink)}
.entry a{color:var(--red);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.entry ul,.entry ol{padding-left:1.3rem}
.entry ul li::marker{color:var(--gold)}
.entry ol li::marker{color:var(--gold);font-weight:700}
.entry blockquote{margin:2rem 0;padding:1.25rem 1.5rem;background:var(--gold-soft);border-left:4px solid var(--gold)}
.entry blockquote p{margin:0}
.entry figure{margin:2rem 0}
.entry figcaption{font-family:var(--ui);font-size:.82rem;color:var(--muted);margin-top:.5rem}
.table-scroll,.entry .wp-block-table{overflow-x:auto;margin:2rem 0;-webkit-overflow-scrolling:touch}
.entry table{width:100%;border-collapse:collapse;font-family:var(--ui);font-size:.9rem;min-width:540px}
.entry th{background:var(--ink);color:var(--gold-lt);text-align:left;padding:.8rem .9rem;font-weight:700}
.entry td{padding:.7rem .9rem;border-bottom:1px solid var(--line)}
.entry tr:nth-child(even) td{background:#faf7f1}
.entry hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}
.entry .aligncenter{margin-left:auto;margin-right:auto}

.tags{margin-top:2.5rem;font-family:var(--ui);font-size:.85rem}
.tags a{display:inline-block;margin:0 .4rem .4rem 0;padding:.35rem .85rem;border:1px solid var(--line);color:var(--ink);border-radius:2rem}
.tags a:hover{border-color:var(--gold);color:var(--gold)}
.byline{margin-top:2.5rem;padding:1.5rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;gap:1rem;align-items:flex-start}
.byline img{border-radius:50%;flex:0 0 auto}
.byline .n{font-family:var(--head);font-weight:700;margin:0 0 .25rem;font-size:1.1rem}
.byline .n a{color:var(--ink)}
.byline p{margin:0;font-size:.98rem;color:#495057}

.btn{display:inline-block;padding:.8rem 1.35rem;font-family:var(--ui);font-weight:700;font-size:.92rem;border:1px solid transparent;cursor:pointer;text-decoration:none;text-align:center}
.btn-red{background:var(--red);border-color:var(--red);color:#fff}
.btn-red:hover{background:var(--red-deep);color:#fff}
.btn-gold{background:var(--gold);border-color:var(--gold);color:#000}
.btn-gold:hover{background:#b9955e;color:#000}
.btn-block{display:block;width:100%}

/* Next reads */
.next-reads{background:var(--gold-soft);margin-top:4.5rem;padding:3.5rem 0}
.next-reads h2{font-family:var(--head);text-transform:uppercase;color:var(--ink);font-size:1.5rem;margin:0 0 1.75rem}
.trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
.trio a.pic{display:block;aspect-ratio:16/10;overflow:hidden;background:#e9e1d2;margin-bottom:.9rem}
.trio a.pic img{width:100%;height:100%;object-fit:cover}
.trio h3{font-family:var(--head);font-size:1.12rem;line-height:1.35;margin:.3rem 0 0}
.trio h3 a{color:var(--ink)}
.trio h3 a:hover{color:var(--gold)}

/* Search, empty, comments */
.search-form{display:flex;max-width:520px;margin-top:1.5rem}
.search-form input[type=search]{flex:1;min-width:0;padding:.75rem 1rem;border:1px solid #495057;background:var(--ink-2);color:#fff;font-family:var(--ui);font-size:1rem}
.empty{padding:3rem 0}
.empty h2{font-family:var(--head);text-transform:uppercase;color:var(--ink)}
.empty .search-form input[type=search]{background:#fff;color:var(--ink);border-color:var(--line)}
.comments{margin-top:3rem;font-family:var(--ui);font-size:.95rem}
.comments ol{list-style:none;padding:0}
.comments textarea,.comments input[type=text],.comments input[type=email],.comments input[type=url]{width:100%;padding:.7rem;border:1px solid var(--line);font:inherit}
.comments .submit{background:var(--red);color:#fff;border:0;padding:.8rem 1.4rem;font-weight:700;cursor:pointer}
.page-body{max-width:760px;margin:0 auto;padding:3rem 1.5rem 0}

/* Footer */
.site-footer{margin-top:4.5rem;background:var(--sand);color:var(--ink)}
.next-reads+.site-footer{margin-top:0}
.site-footer .wrap{padding-top:2rem;padding-bottom:2rem;text-align:center;font-family:var(--ui);font-size:.85rem;line-height:1.7}
.site-footer p{margin:0 auto .75rem;max-width:900px}
.site-footer a{color:var(--ink);text-decoration:underline}
.site-footer a:hover{color:var(--red)}
.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:.25rem 1.25rem;margin-bottom:1rem;font-weight:700}

/* Responsive */
@media (max-width:1080px){
  .article-wrap{grid-template-columns:minmax(0,720px);gap:0}
  .side{display:none}
  .toc-mobile{display:block}
}
@media (max-width:900px){
  .row{grid-template-columns:220px 1fr;gap:1.25rem}
  .trio{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  body{font-size:17px}
  .wrap,.rows{padding-left:1.1rem;padding-right:1.1rem}
  .site-header .wrap{min-height:64px}
  .brand img{width:105px;height:42px}
  .main-nav a{padding:1.25rem .45rem;font-size:.95rem}
  .row{grid-template-columns:1fr;gap:1rem;padding:1.75rem 0}
  .row .pic{aspect-ratio:16/9}
  .trio{grid-template-columns:1fr}
  .entry p,.entry li{font-size:1.06rem}
  .entry>p:first-of-type{font-size:1.14rem}
  .article-wrap{padding-top:2rem}
  .hero-banner{padding:0}
  .article-wrap{padding-top:1.5rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}