/* DETAfour inner pages (body.df-site): Jannah content restyled with the DETAfour design system.
   Tokens and components come from detafour.css. */

/* ---------- Frame ---------- */
.df-site,.df-site .background-overlay,.df-site #tie-container,.df-site #tie-wrapper{background:var(--bg)!important;background-image:none!important}
.df-site{color:var(--text);font-family:var(--f-ui);line-height:1.7}
.df-site #tie-wrapper{box-shadow:none}
.df-site .side-aside,.df-site #tie-popup-search-mobile{display:none}
.df-site #content.container{max-width:var(--w);margin-inline:auto;padding:32px clamp(16px,3vw,32px) 48px;background:none;box-shadow:none}
.df-site #main-content-row{display:flex;align-items:flex-start;gap:48px;margin:0}
.df-site #main-content-row::before,.df-site #main-content-row::after{content:none}
.df-site .main-content{flex:1 1 auto;min-width:0;width:auto;max-width:100%;float:none;padding:0}
.df-site .sidebar{flex:0 0 320px;width:320px;max-width:100%;float:none;padding:0}
.df-site .main-content.tie-col-md-12{flex-basis:100%}
.df-site .container-wrapper{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin-bottom:40px}

/* Old site-wide custom CSS ("article a" gradients, orange/teal links): neutralise everywhere in content. */
.df-site #content a,.df-site #content a:visited{background-image:none;box-shadow:none;transform:none}
.df-site #content a::before{content:none}

/* ---------- Breadcrumb ---------- */
.df-site #breadcrumb{font-size:13px;color:var(--muted);margin-bottom:16px;padding:0;background:none}
.df-site #breadcrumb a,.df-site #breadcrumb a:visited{color:var(--muted);font-size:13px;font-weight:400;padding:0;display:inline}
.df-site #breadcrumb a:hover{color:var(--ink);text-decoration:underline}
.df-site #breadcrumb .delimiter{margin-inline:6px;color:var(--line)}

/* ---------- Archive layout (templates/detafour-archive.php) ---------- */
.df-arch-head{padding:0 0 24px;margin-bottom:32px;border-bottom:1px solid var(--line);position:relative}
.df-arch-head::after{content:"";position:absolute;bottom:-1px;inset-inline-start:0;width:96px;height:3px;background:var(--navy)}
.df-arch-head .df-kicker{color:var(--navy)}
.df-arch-head .df-kicker{display:block;margin-bottom:4px}
.df-arch-title{font-family:var(--f-head);font-size:clamp(30px,3.4vw,44px);font-weight:700;color:var(--ink);line-height:1.4;margin:0}
.df-arch-desc{margin-top:10px;color:var(--muted);font-size:16px;line-height:1.9;max-width:72ch}
.df-arch-desc p{margin:0}
.df-arch-search{display:flex;gap:8px;margin-top:16px;max-width:560px}
.df-arch-search input{flex:1;padding:12px 16px;border:1px solid var(--line);font:inherit;font-size:16px;border-radius:0}
.df-arch-search button{padding:0 22px;background:var(--navy);color:#fff;border:0;font:inherit;font-weight:700;cursor:pointer}
.df-arch-lead{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid var(--line)}
.df-story--archlead{display:grid;grid-template-columns:1.15fr 1fr;gap:32px;align-items:center}
.df-story--archlead .df-title{font-size:clamp(24px,2.6vw,34px);font-weight:700;line-height:1.5}
.df-story--archlead .df-excerpt{font-size:17px}
.df-arch-grid{row-gap:40px}
.df-arch-grid .df-title{font-size:18px}
.df-arch .stream-item-between{grid-column:1/-1;text-align:center}
.df-arch-empty{padding:48px 0;color:var(--muted);font-size:18px}
.df-pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:48px;padding-top:32px;border-top:1px solid var(--line)}
.df-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:1px solid var(--line);font-weight:600;font-size:15px;color:var(--text)}
.df-pager a.page-numbers:hover{border-color:var(--ink);color:var(--ink)}
.df-pager .page-numbers.current{background:var(--navy);border-color:var(--navy);color:#fff}
.df-pager .page-numbers.dots{border:0;min-width:auto}

/* ---------- Article ---------- */
.df-site #the-post{margin-bottom:40px}
.df-site .entry-header-outer{padding:0;margin-bottom:24px}
.df-site .entry-header{padding:0}
.df-site .post-cat-wrap{margin-bottom:10px;display:flex;flex-wrap:wrap;gap:4px 18px}
.df-site .post-cat-wrap .post-cat,.df-site .post-cat-wrap .post-cat:visited{background:none!important;color:var(--ink)!important;padding:0;margin-inline-end:12px;font-size:14px;font-weight:700;border-radius:0;display:inline}
.df-site .post-cat-wrap .post-cat::before,.df-site .post-cat-wrap .post-cat::after{display:none}
.df-site .post-cat-wrap .post-cat:hover{text-decoration:underline}
.df-site h1.post-title.entry-title{font-family:var(--f-head)!important;font-size:clamp(30px,3.4vw,46px)!important;font-weight:700!important;line-height:1.45!important;color:var(--text);margin:0 0 14px;letter-spacing:0}
.df-site .entry-sub-title{font-size:19px;color:var(--muted);font-weight:300;line-height:1.8;margin-bottom:16px}
.df-site .post-meta,.df-site .post-meta a,.df-site .post-meta a:visited{font-size:13px;color:var(--muted);font-weight:400;padding:0;display:inline}
.df-site #single-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding-top:14px;border-top:1px solid var(--line)}
.df-site #single-post-meta .author-meta{display:inline-flex;align-items:center;gap:8px}
.df-site #single-post-meta .author-name,.df-site #single-post-meta .author-name a{color:var(--text);font-weight:700}
.df-site .post-meta .avatar{width:32px;height:32px;border-radius:50%}
.df-site .post-meta .tie-alignright{float:none;display:inline-flex;gap:14px;margin-inline-start:auto}
.df-site .featured-area{margin:0 0 28px}
.df-site .featured-area img{width:100%;height:auto;border-radius:0}
.df-site .single-caption-text,.df-site .featured-area figcaption{font-size:13px;color:var(--muted);padding-top:8px}

.df-site .entry-content{font-family:var(--f-head);font-size:20px;line-height:2.05;color:#1d1e21;font-weight:400}
.df-site .entry-content p{margin:0 0 1.35em}
.df-site .entry-content :is(h2,h3,h4){color:var(--ink);font-weight:700;line-height:1.6;margin:1.6em 0 .6em}
.df-site .entry-content h2{font-size:27px}
.df-site .entry-content h3{font-size:23px}
.df-site .entry-content h4{font-size:20px}
.df-site .entry-content :is(ul,ol){margin:0 0 1.35em;padding-inline-start:1.4em}
.df-site .entry-content li{margin-bottom:.4em}
.df-site .entry-content a:not(.share-btn):not([class*="button"]):not(.wp-block-button__link),
.df-site .entry-content a:not(.share-btn):not([class*="button"]):not(.wp-block-button__link):visited{
  font-size:inherit;font-weight:inherit;color:var(--navy);padding:0;border-radius:0;display:inline;position:static;text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:3px;text-underline-offset:4px}
.df-site .entry-content a:not(.share-btn):hover{color:var(--ink);text-decoration-color:var(--ink)}
.df-site .entry-content blockquote{border:0;border-block:1px solid var(--ink);border-inline-start:4px solid var(--yellow);background:none;padding:20px 24px;margin:0 0 1.35em;font-size:23px;font-weight:600;line-height:1.8;color:var(--ink)}
.df-site .entry-content blockquote::before{display:none}
.df-site .entry-content img{height:auto;max-width:100%}
.df-site .entry-content figcaption,.df-site .entry-content .wp-caption-text{font-size:13px;color:var(--muted)}
.df-site .entry-content table{border-collapse:collapse;width:100%;font-size:16px}
.df-site .entry-content :is(th,td){border:1px solid var(--line);padding:8px 12px}
.df-site .entry-content th{background:var(--surface)}
.df-site .stream-item-in-post,.df-site .stream-item-above-post,.df-site .stream-item-below-post{text-align:center;margin:28px 0}

/* Tags */
.df-site .post-bottom-meta{margin:24px 0}
.df-site .tagcloud a,.df-site .post-bottom-meta .tagcloud a,.df-site .tagcloud a:visited{display:inline-block;font-size:14px!important;font-weight:500;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:0;padding:4px 12px;margin:0 0 6px 6px}
.df-site .tagcloud a:hover{border-color:var(--ink);color:var(--ink)}
.df-site .post-bottom-meta-title{font-weight:700;color:var(--ink);background:none;padding:0;margin-inline-end:8px}

/* Share buttons: keep Jannah's network colours, square corners. */
.df-site .share-buttons{margin:20px 0;padding:0;border:0}
.df-site .share-links a,.df-site .share-links a:visited{border-radius:0;box-shadow:none;font-size:15px;padding:0}
.df-site .share-title{color:var(--muted);font-weight:600}

/* Post components */
.df-site .post-components>.container-wrapper,.df-site .post-components>div{margin-bottom:40px}
.df-site .about-author{display:flex;gap:20px;align-items:flex-start;padding:24px!important;background:var(--surface)!important;border-inline-start:4px solid var(--yellow)!important}
.df-site .about-author .author-avatar img{width:80px;height:80px;border-radius:50%}
.df-site .about-author .author-name,.df-site .about-author .author-name a{font-size:19px;font-weight:800;color:var(--text);padding:0;display:inline}
.df-site .about-author .author-bio{color:var(--muted);font-size:15px;line-height:1.9}
.df-site .about-author .social-icons a{font-size:15px;padding:0;color:var(--muted)}
.df-site .prev-next-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.df-site .prev-next-post-nav>div{width:auto;float:none;padding:0}
.df-site .prev-next-post-nav .post-thumb-overlay-wrap{aspect-ratio:16/9;overflow:hidden}
.df-site .prev-next-post-nav .post-title{font-size:16px;font-weight:700;line-height:1.6}
.df-site .prev-next-post-nav a{padding:0;font-size:inherit;display:block}

/* Section-style headings (related posts, comments, widgets, check-also) */
.df-site .the-global-title,.df-site .mag-box-title,.df-site .widget-title{border:0;border-bottom:3px solid var(--navy);padding:0 0 8px;margin:0 0 20px;background:none}
.df-site .the-global-title::before,.df-site .the-global-title::after,.df-site .widget-title::before,.df-site .widget-title::after,.df-site .mag-box-title::before,.df-site .mag-box-title::after{display:none}
.df-site .the-global-title h3,.df-site .mag-box-title h3,.df-site .widget-title .the-subtitle,.df-site .comment-reply-title{font-family:var(--f-head);font-size:22px!important;font-weight:700;color:var(--ink);background:none;padding:0;line-height:1.6}

/* Related posts */
.df-site #related-posts,.df-site #related-posts .related-posts-list,.df-site #related-posts .related-item{height:auto!important;min-height:0!important;overflow:visible!important}
.df-site #related-posts .related-posts-list{margin:0!important;padding:0!important;width:auto!important}
.df-site #related-posts .related-item .post-thumb{position:static!important;display:block;height:auto!important;padding:0!important;margin:0}
.df-site #related-posts .related-item .post-title{position:static!important}
.df-site #related-posts .related-posts-list{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.df-site #related-posts .related-item{width:auto;float:none;padding:0;margin:0}
.df-site #related-posts .related-item:nth-child(n+4){display:none}
.df-site #related-posts .related-item img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:0}
.df-site #related-posts .post-title{font-size:16px;font-weight:700;line-height:1.6;margin-top:10px}
.df-site #related-posts .post-title a,.df-site #related-posts .post-title a:visited{color:var(--text);font-size:inherit;padding:0;display:inline}
.df-site #related-posts .post-title a:hover{color:var(--ink);text-decoration:underline}

/* Comments */
.df-site .comments-area{margin-top:16px}
.df-site .comment-form textarea,.df-site .comment-form input:not([type=submit]):not([type=checkbox]){width:100%;border:1px solid var(--line);border-radius:0;padding:12px 14px;font:inherit;font-size:16px;background:#fff}
.df-site .comment-form textarea:focus,.df-site .comment-form input:focus{border-color:var(--ink);outline:0}
.df-site .comment-form .submit,.df-site .comment-form input[type=submit]{background:var(--navy)!important;color:#fff!important;border:0;border-radius:0;padding:12px 32px;font:inherit;font-weight:700;cursor:pointer}
.df-site .comment-list .comment-body{border-bottom:1px solid var(--line);padding:16px 0}
.df-site .comment-list .comment-author a,.df-site .comment-list a{padding:0;font-size:inherit;display:inline}

/* ---------- Sidebar widgets ---------- */
.df-site .sidebar .widget{margin-bottom:40px}
.df-site .sidebar .posts-list-items li{border-bottom:1px solid var(--line);padding:12px 0;margin:0}
.df-site .sidebar .posts-list-items li:last-child{border-bottom:0}
.df-site .sidebar .post-widget-body .post-title,.df-site .sidebar .posts-list-items h3{font-size:15px;font-weight:700;line-height:1.6}
.df-site .sidebar .posts-list-items a,.df-site .sidebar .posts-list-items a:visited{color:var(--text);font-size:inherit;padding:0;display:inline}
.df-site .sidebar .posts-list-items a:hover{color:var(--ink)}
.df-site .sidebar .post-widget-thumbnail img{border-radius:0}
.df-site .sidebar .timeline-widget li a::before{display:none}
.df-site .wp-calendar-table{width:100%;font-size:14px}
.df-site .wp-calendar-table caption{font-weight:700;color:var(--ink);padding-bottom:8px}
.df-site .wp-calendar-table #today{background:var(--navy);color:#fff}
.df-site .widget-pagination-wrapper a{border-radius:0}
.df-site #check-also-box{border-top:3px solid var(--navy)!important;background:#fff!important;padding:16px!important;box-shadow:0 12px 32px rgba(0,0,0,.12)!important}

/* ---------- Pages, builder sections, 404 ---------- */
.df-site.page .entry-header .post-title{color:var(--ink)}
.df-site .section-wrapper{background:none}
.df-site .section-wrapper .container{max-width:var(--w)}
.df-site .mag-box .post-title a,.df-site .mag-box .post-title a:visited{color:var(--text);font-size:inherit;padding:0;display:inline}
.df-site #content-404{text-align:center;padding:64px 16px}
.df-site #content-404 h2{font-family:var(--f-head);font-size:clamp(28px,3vw,40px);font-weight:700;color:var(--ink)}
.df-site #content-404 .search-form,.df-site #content-404 form{max-width:560px;margin:24px auto 0}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .df-site .sidebar{flex-basis:280px;width:280px}
  .df-site #main-content-row{gap:32px}
}
@media (max-width:900px){
  .df-site #main-content-row{flex-direction:column;align-items:stretch}
  .df-site .sidebar{flex:none;width:100%}
  .df-site .main-content{width:100%}
}
@media (max-width:768px){
  .df-site #content.container{padding-top:20px}
  .df-story--archlead{grid-template-columns:1fr;gap:16px}
  .df-arch-grid{grid-template-columns:1fr 1fr;gap:24px 16px}
  .df-arch-grid .df-excerpt{display:none}
  .df-arch-grid .df-title{font-size:16px}
  .df-site .entry-content{font-size:18px;line-height:2}
  .df-site #related-posts .related-posts-list{grid-template-columns:1fr 1fr}
  .df-site #related-posts .related-item:nth-child(n+3){display:none}
  .df-site .prev-next-post-nav{grid-template-columns:1fr}
}
@media (max-width:480px){
  .df-arch-grid{grid-template-columns:1fr}
  .df-arch-grid .df-excerpt{display:block}
}

/* Classic headline typography for Jannah's own lists on inner pages */
.df-site :is(#related-posts .post-title,.prev-next-post-nav .post-title,.sidebar .post-widget-body .post-title,.sidebar .posts-list-items h3,.mag-box .post-title){font-family:var(--f-head)}
.df-site .entry-header .post-meta,.df-site #single-post-meta{font-family:var(--f-ui)}

/* Typography lock on inner pages (beats the Fonts Plugin's #content/h1–h6 !important rules and the
   old orange Poppins sub-heading CSS). Everything in Somar (--f-ui / --f-head). */
.df-site #content,.df-site #content *:not([class*="icon"]):not(.fa):not([class*="fa-"]):not([class*="dashicons"]){font-family:var(--f-ui)!important}
.df-site #content :is(.df-title,.df-title a,.df-arch-title,h1.post-title,.entry-sub-title,.entry-content,.entry-content :is(p,li,h2,h3,h4,h5,blockquote,blockquote p,td),.the-global-title h3,.mag-box-title h3,.widget-title .the-subtitle,.comment-reply-title,#related-posts .post-title,#related-posts .post-title a,.prev-next-post-nav .post-title,.mag-box .post-title,.mag-box .post-title a,.post-widget-body .post-title,.post-widget-body .post-title a,.posts-list-items h3,#content-404 h2){font-family:var(--f-head)!important}
.df-site #content .entry-content :is(h2,h3,h4){color:var(--ink)!important;font-weight:700!important;line-height:1.6!important}
.df-site #content .entry-content h2{font-size:27px!important}
.df-site #content .entry-content h3{font-size:23px!important}
.df-site #content .entry-content h4{font-size:20px!important}
.df-site #content :is(.featured-area,.featured-area *,#related-posts img,.prev-next-post-nav img,.prev-next-post-nav .post-thumb-overlay-wrap){border-radius:0!important}

/* =====================================================================
   Article page (templates/detafour-single.php, body.df-single)
   ===================================================================== */
.df-single #content.container{padding-top:0}
.df-single #main-content-row{display:block}
.df-progress{position:fixed;top:0;inset-inline:0;height:4px;z-index:120;background:transparent;pointer-events:none}
.df-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--navy),var(--yellow));transform:scaleX(0);transform-origin:right;will-change:transform}
.admin-bar .df-progress{top:32px}

/* Header */
.df-art-head{max-width:900px;margin:0 auto;padding:36px 0 28px;text-align:center}
.df-single .df-art-head #breadcrumb{justify-content:center;display:flex;flex-wrap:wrap;margin-bottom:18px}
.df-art-cats{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.df-single #content .df-art-cats a{display:inline-block;background:var(--navy);color:#fff!important;font-size:13px!important;font-weight:700;padding:4px 14px;border-radius:2px;text-decoration:none}
.df-single #content .df-art-cats a+a{background:none;color:var(--navy)!important;box-shadow:inset 0 0 0 1px var(--navy)}
.df-single #content .df-art-cats a:hover{background:var(--yellow);color:var(--ink)!important;box-shadow:none}
.df-single #content h1.df-art-title{font-size:clamp(30px,4.2vw,54px)!important;font-weight:800!important;line-height:1.38!important;color:var(--ink);margin:0 0 18px;letter-spacing:-.2px}
.df-single #content .df-art-dek{font-size:clamp(17px,1.6vw,21px);line-height:1.9;color:#4a4d55;font-weight:400;max-width:760px;margin:0 auto 26px}
.df-art-byline{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding-block:16px;border-block:1px solid var(--line);text-align:start}
.df-single #content .df-art-author{display:inline-flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:inherit;padding:0}
.df-art-author .df-avatar{width:48px;height:48px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--yellow)}
.df-art-author span{display:flex;flex-direction:column;line-height:1.4}
.df-art-author small{font-size:12px;color:var(--muted)}
.df-art-author strong{font-size:15.5px;font-weight:700}
.df-art-dates{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:13.5px;color:var(--muted);flex:1;justify-content:center}
.df-art-dates>*+*::before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:#c4c5c0;vertical-align:middle;margin-inline-end:18px;margin-inline-start:-14px}
.df-art-read{color:var(--navy);font-weight:600}

/* Share buttons */
.df-share{display:flex;gap:8px;align-items:center}
.df-single #content .df-share a,.df-share button{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface);color:var(--ink)!important;border:1px solid var(--line);padding:0;font-size:15px!important;cursor:pointer;transition:background .15s,color .15s,border-color .15s,transform .15s;text-decoration:none}
.df-single #content .df-share a:hover,.df-share button:hover{color:#fff!important;transform:translateY(-2px);border-color:transparent}
.df-single #content .df-share-facebook:hover{background:#1877f2}
.df-single #content .df-share-twitter:hover{background:#111}
.df-single #content .df-share-whatsapp:hover{background:#25d366}
.df-single #content .df-share-linkedin:hover{background:#0a66c2}
.df-single #content .df-share-paper-plane:hover{background:#229ed9}
.df-share button:hover{background:var(--navy)}
.df-share button.is-copied{background:var(--yellow);color:var(--ink)!important}
.df-share button.is-copied::after{content:"تم النسخ";position:absolute;transform:translateY(-34px);background:var(--ink);color:#fff;font-size:12px;padding:3px 8px;border-radius:3px;white-space:nowrap}
.df-share button{position:relative}

/* Hero image */
.df-art-hero{margin:8px auto 0;max-width:860px}
/* Same frame for every featured image: 16:9, cropped to fill. */
.df-art-hero img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;display:block;border-radius:6px!important}
.df-art-hero figcaption{font-size:13.5px;color:var(--muted);padding:10px 0 0;border-bottom:1px solid var(--line);padding-bottom:12px;text-align:start}

/* Body layout: share rail | article | sidebar */
.df-art-layout{display:grid;grid-template-columns:56px minmax(0,1fr) 320px;gap:0 44px;padding-top:40px;align-items:start}
.df-art-rail{position:sticky;top:90px}
.df-share--rail{flex-direction:column}
.df-art-main{min-width:0;max-width:760px;width:100%;justify-self:center}
.df-art-body{font-size:20px;line-height:2.05}
.df-single #content .df-art-body>p:first-of-type{font-size:22.5px;line-height:1.95;color:var(--ink);font-weight:500}
.df-single #content .df-art-body>p:first-of-type::first-line{font-weight:600}
.df-single #content .df-art-body blockquote{position:relative;border:0;background:none;margin:2em 0;padding:24px 28px 20px;border-block:3px solid var(--ink);font-size:25px!important;line-height:1.75;font-weight:700;color:var(--ink);text-align:center}
.df-single #content .df-art-body blockquote::before{display:block!important;content:"”";font-size:80px;line-height:.6;color:var(--yellow);height:30px;text-shadow:0 0 1px var(--ink)}
.df-single #content .df-art-body blockquote p{margin:0;font-size:inherit!important}
.df-single #content .df-art-body :is(h2,h3){position:relative;padding-inline-start:16px}
.df-single #content .df-art-body :is(h2,h3)::before{content:"";position:absolute;inset-inline-start:0;top:.35em;bottom:.35em;width:4px;background:var(--yellow)}
.df-single #content .df-art-body img{margin-block:8px;width:100%;height:auto;max-height:480px;object-fit:contain;border-radius:6px}
.df-single #content .df-art-body figure,.df-single #content .df-art-body .wp-caption{width:100%!important;max-width:100%;margin-inline:0}
.df-single #content .df-art-body .post-bottom-meta{margin-top:36px;padding-top:20px;border-top:1px solid var(--line)}
.df-art-end{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:32px 0 8px;padding:18px 22px;background:var(--surface);border-inline-start:4px solid var(--navy)}
.df-art-end>span{font-weight:700;font-size:16px;color:var(--ink)}
.df-art-end .df-share a,.df-art-end .df-share button{background:#fff}

/* Author card */
.df-art-authorbox{display:flex;gap:20px;align-items:center;margin:36px 0;padding:24px;border:1px solid var(--line);border-top:3px solid var(--navy)}
.df-art-authorbox .df-avatar{width:88px;height:88px;border-radius:50%;flex:none}
.df-art-authorbox small{display:block;font-size:12.5px;color:var(--muted);margin-bottom:2px}
.df-single #content .df-art-authorbox a{font-size:20px!important;font-weight:800;color:var(--ink)!important;padding:0;text-decoration:none;display:inline-block}
.df-art-authorbox p{margin:6px 0 0;color:var(--muted);font-size:15px;line-height:1.85}

/* Related */
.df-art-related{margin:44px 0 12px}
.df-art-related .df-grid-3{row-gap:28px}
.df-art-related .df-grid-3>*:nth-child(3n+1){border-inline-start:0;padding-inline-start:0}
.df-art-related .df-grid-3>*:nth-child(3n){padding-inline-end:0}
.df-art-related .df-title{font-size:16.5px}
.df-art-comments{margin-top:32px}

/* Sidebar */
.df-art-side{min-width:0}
.df-art-sticky{position:sticky;top:90px;display:flex;flex-direction:column;gap:28px}
.df-art-latest h2{font-size:18px;font-weight:800;color:var(--ink);margin:0 0 6px;padding-bottom:10px;border-bottom:3px solid var(--navy);display:flex;align-items:center;gap:8px}
.df-art-latest h2::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px rgba(215,25,32,.2)}
.df-art-latest ol{list-style:none;margin:0;padding:0;counter-reset:lt}
.df-art-latest li{counter-increment:lt;display:grid;grid-template-columns:34px 1fr;column-gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}
.df-art-latest li::before{content:counter(lt);grid-row:1/3;font-size:26px;font-weight:800;line-height:1.1;color:#d7d8d3}
.df-single #content .df-art-latest a{font-size:15px!important;font-weight:600;line-height:1.65;color:var(--ink)!important;padding:0;text-decoration:none;display:inline}
.df-single #content .df-art-latest a:hover{color:var(--navy)!important;text-decoration:underline}
.df-art-latest time{font-size:12px;color:var(--red);font-weight:600;margin-top:4px}
.df-art-ads .widget{margin:0 0 20px;text-align:center}

/* Responsive */
@media (max-width:1180px){
  .df-art-layout{grid-template-columns:48px minmax(0,1fr) 280px;gap:0 32px}
}
@media (max-width:980px){
  .df-art-layout{grid-template-columns:minmax(0,1fr)}
  .df-art-rail{display:none}
  .df-art-main{max-width:none}
  .df-art-side{margin-top:24px}
  .df-art-sticky{position:static}
}
@media (max-width:768px){
  .df-art-head{padding:22px 0 18px;text-align:start}
  .df-single .df-art-head #breadcrumb{justify-content:flex-start}
  .df-art-cats{justify-content:flex-start}
  .df-single #content .df-art-dek{margin-inline:0}
  .df-art-byline{flex-direction:column;align-items:flex-start;gap:12px}
  .df-art-dates{justify-content:flex-start}
  .df-art-hero{margin-inline:calc(-1 * clamp(16px,3vw,32px));max-width:none}
  .df-art-hero img{border-radius:0!important}
  .df-art-hero figcaption{padding-inline:16px}
  .df-art-layout{padding-top:24px}
  .df-art-body{font-size:18.5px}
  .df-single #content .df-art-body>p:first-of-type{font-size:20px}
  .df-single #content .df-art-body blockquote{font-size:21px!important;padding:20px 8px 16px}
  .df-art-end{flex-direction:column;align-items:flex-start}
  .df-art-authorbox{flex-direction:column;align-items:flex-start;text-align:start}
  .df-art-related .df-grid-3>*{border-inline-start:0!important;padding-inline:0!important}
}
@media (prefers-reduced-motion:reduce){.df-progress{display:none}}
/* Article text: one size and rhythm, whatever inline sizes were pasted from editors */
.df-single #content .df-art-body p{font-size:20px!important;line-height:2.05!important;margin:0 0 1.3em}
.df-single #content .df-art-body p :is(span,font,strong,b){font-size:inherit!important;line-height:inherit!important}
.df-single #content .df-art-body>p:first-of-type{font-size:22.5px!important;line-height:1.95!important}
@media (max-width:768px){
  .df-single #content .df-art-body p{font-size:18.5px!important;line-height:2!important}
  .df-single #content .df-art-body>p:first-of-type{font-size:20px!important}
}
/* Related cards: even columns */
.df-art-related .df-grid-3{column-gap:28px}
.df-art-related .df-grid-3>*{padding-inline:0!important;border-inline-start:0!important}
/* Jannah's mobile "show more" collapse is off in this layout: the full article is always visible. */
.df-single.post-has-toggle #the-post .entry{max-height:none!important;overflow:visible!important}
.df-single.post-has-toggle #the-post .entry::before{content:none!important;display:none!important}

/* ===== Extras: article newsletter box, most-read sidebar, topic page header ===== */
.df-art-nl{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;align-items:center;margin-top:36px;padding:26px 28px;background:var(--surface);border-inline-start:4px solid var(--yellow)}
.df-single #content .df-art-nl h2{font-family:var(--f-head);font-size:22px!important;font-weight:800;color:var(--ink)!important;margin:0 0 4px}
.df-single #content .df-art-nl p{font-size:15px!important;color:var(--muted);margin:0;line-height:1.8}
.df-single #content .df-art-nl .df-nl-note{font-size:12.5px!important}
.df-art-popular{margin-top:28px}
.df-art-popular li{grid-template-columns:34px 1fr}
.df-art-popular h2::before{background:var(--yellow)!important;box-shadow:0 0 0 1px var(--ink)}
.df-arch-stats{display:flex;flex-wrap:wrap;gap:6px 18px;margin:12px 0 0;font-size:14px;color:var(--muted)}
.df-arch-stats span+span::before{content:"•";margin-inline-end:18px;color:var(--line)}
.df-arch-related{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}
.df-arch-related strong{font-size:13.5px;color:var(--ink);margin-inline-end:4px}
.df-site #content .df-arch-related a{font-size:13.5px;padding:5px 14px;border:1px solid var(--line);border-radius:999px;color:var(--ink)!important;text-decoration:none;background:var(--bg)}
.df-site #content .df-arch-related a:hover{border-color:var(--navy);background:var(--navy);color:#fff!important}
@media (max-width:768px){
  .df-art-nl{grid-template-columns:1fr;padding:22px 18px}
}

/* Dark mode: inner pages (Jannah wrappers + article text). */
html[data-theme="dark"] .df-site .entry-content{color:#dddbd4}
html[data-theme="dark"] .df-site :is(#check-also-box,.df-art-end .df-share a,.df-art-end .df-share button){background:var(--surface)!important}
html[data-theme="dark"] .df-site :is(.comment-form textarea,.comment-form input:not([type=submit]):not([type=checkbox])){background:var(--surface);color:var(--ink)}
html[data-theme="dark"] .df-site #content :is(.entry-content a,.df-art-byline a){color:#9db0ff}
html[data-theme="dark"] .df-site :is(.post-components .block-head,.container-wrapper,.widget,.comment-list .comment-body){background:transparent!important;color:var(--text)!important}
html[data-theme="dark"] .df-site .entry-content :is(table,td,th){border-color:var(--line)!important;background:transparent!important;color:var(--text)!important}
