/*
Theme Name: Dawri - حاسبة الدوري المصري
Theme URI: https://example.com/dawri
Author: Site Owner
Description: قالب عربي RTL كامل لموقع حاسبة الدوري المصري: صفحة رئيسية مع الحاسبة، صفحات الترتيب والهدافين والمقارنة، وقسم مقالات. يعمل مع إضافة Egyptian League Predictor.
Version: 5.3.3
License: GNU General Public License v2 or later
Text Domain: dawri
*/

/* Full-site mockup styles - hand-crafted look, Arabic RTL */
:root {
    --green: #ff6b1a;
    --green-dark: #101a33;
    --gold: #ffc53d;
    --sand: #0d1530;
    --ink: #1c1710;
    --muted: #8fa0c8;
    --card: #f6efe2;
    --line: #2a3a63;
    --night2: #0b1226;
    --paper: #f6efe2;
    --paper-ink: #1c1710;
    --paper-muted: #6b6252;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    line-height: 1.9;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--green-dark);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    white-space: nowrap;
}

.logo-mark { flex: 0 0 auto; }

.logo-word {
    font-family: Changa, Cairo, sans-serif;
    font-weight: 800;
    font-size: 23px;
    line-height: 1;
    color: var(--gold, #ffc53d);
    text-shadow: 2px 2px 0 var(--orange, #ff6b1a);
    white-space: nowrap;
}

.main-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-inline-start: auto; }

.main-nav a {
    color: #e9f2ec;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover { background: rgba(255,255,255,.08); border-bottom-color: var(--gold); }
.main-nav a.active { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px),
        linear-gradient(160deg, var(--green) 0%, var(--green-dark) 78%);
    color: #fff;
    padding: 64px 18px 72px;
    text-align: center;
}

.hero .kicker {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    border: 1px solid rgba(201,154,46,.5);
    border-radius: 30px;
    padding: 3px 16px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.5;
}

.hero p.lead {
    max-width: 640px;
    margin: 0 auto 26px;
    font-size: 17px;
    color: #dcebe1;
}

.hero .cta {
    display: inline-block;
    background: var(--gold);
    color: #2b2103;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    padding: 12px 34px;
    border-radius: 12px;
    box-shadow: 0 4px 0 #9c7718;
}

.hero .cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #9c7718; }

.hero .cta.secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
    box-shadow: none;
    margin-inline-start: 10px;
}

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

section.block { padding-block: 54px 10px; }

.sec-head { margin-bottom: 26px; }

.sec-head .kicker {
    color: var(--gold);
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: .5px;
}

.sec-head h2 {
    font-size: 28px;
    font-weight: 900;
    margin: 4px 0 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    max-width: 100%;
}

.sec-head h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--gold);
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 20px 18px;
    position: relative;
    box-shadow: 0 2px 0 var(--line);
}

.step .num {
    position: absolute;
    top: -16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--sand);
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.step h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Widget section ---------- */
.widget-band {
    background: #f1ece0;
    border-block: 1px solid var(--line);
    padding: 54px 0 40px;
    margin-top: 44px;
}

/* ---------- Article ---------- */
.article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 34px;
    box-shadow: 0 2px 0 var(--line);
}

.article h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 26px 0 8px;
    color: var(--green-dark);
}

.article h3:first-child { margin-top: 0; }

.article p { margin: 0 0 14px; font-size: 15.5px; color: #39413a; }

.article ul { margin: 0 0 14px; padding-inline-start: 22px; color: #39413a; font-size: 15.5px; }
.article li { margin-bottom: 6px; }

.article blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    background: #f7f2e5;
    border-right: 4px solid var(--gold);
    border-radius: 10px;
    font-size: 15px;
    color: #4a4436;
}

/* ---------- FAQ ---------- */
.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 14px 18px;
}

.faq summary {
    font-weight: 800;
    font-size: 15.5px;
    cursor: pointer;
    color: var(--green-dark);
}

.faq details p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
    background:
        radial-gradient(circle 150px at 50% -40px, transparent 148px, rgba(246,239,226,.07) 149px, rgba(246,239,226,.07) 151px, transparent 152px),
        linear-gradient(rgba(246,239,226,.05) 2px, transparent 2px) 0 120px / 100% 100% no-repeat,
        repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 90px, transparent 90px 180px),
        #0d1530;
    color: #d9e1f2;
    margin-top: 60px;
    border-top: 3px solid #ffc53d;
}

/* stadium board strip */
.footer-board-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 18px 0; }
.footer-board {
    background: #101a33;
    border: 2px solid #ffc53d;
    outline: 2px dashed rgba(255,107,26,.6);
    outline-offset: -9px;
    border-radius: 20px;
    box-shadow: 8px 8px 0 rgba(255,107,26,.35);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    overflow: hidden;
}
.fb-block { padding: 1.3rem 1.5rem 1.15rem; }
.fb-block + .fb-block { border-right: 2px dashed rgba(255,197,61,.35); }
.fb-label {
    display: inline-block;
    font-family: 'Marhey', cursive;
    color: #ffc53d;
    font-size: .95rem;
    margin-bottom: .7rem;
    padding-bottom: .15rem;
    border-bottom: 2px dashed rgba(255,107,26,.6);
}
.fb-next ul, .fb-top ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.fb-next li, .fb-top li { display: flex; align-items: center; gap: .55rem; font-family: 'Changa', sans-serif; font-size: 1rem; color: #f6efe2; }
.fb-team i {
    display: inline-block; width: 11px; height: 11px; border-radius: 50%;
    border: 1.5px solid rgba(246,239,226,.85);
    margin-left: .35rem;
    vertical-align: -1px;
}
.fb-vs { color: #ff6b1a; font-weight: 700; padding: 0 .15rem; }
.fb-rank { color: #ffc53d; font-size: 1.25rem; font-weight: 700; min-width: 1.4rem; text-align: center; }
.fb-pts { margin-right: auto; color: #9fb0d6; font-size: .85rem; font-family: 'Cairo', sans-serif; }

/* poster-wall sticker blocks */
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 18px 8px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}
.f-sticker {
    position: relative;
    background: #f6efe2;
    border: 2px solid #101a33;
    border-radius: 18px;
    padding: 1.5rem 1.4rem 1.2rem;
    box-shadow: 6px 6px 0 #050a18, 11px 11px 0 rgba(255,107,26,.5);
}
.f-sticker::before {
    content: "";
    position: absolute;
    top: -11px; right: 30px;
    width: 96px; height: 22px;
    background: rgba(255,197,61,.85);
    border: 1px solid rgba(16,26,51,.14);
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    transform: rotate(-3deg);
}
.f-about { transform: rotate(.45deg); }
.f-gates { transform: rotate(-.35deg); }
.f-links { transform: rotate(.4deg); }
.f-sticker:hover { transform: rotate(0); }

.footer-grid h4 {
    color: #101a33;
    font-family: 'Changa', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .7rem;
    display: inline-block;
}
.footer-grid h4::after {
    content: "";
    display: block;
    height: 4px; margin-top: 3px;
    background: linear-gradient(90deg, #ff6b1a, #ffc53d);
    border-radius: 2px;
}
.footer-grid p { font-size: .92rem; line-height: 1.85; margin: 0; color: #2b3560; }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul a { text-decoration: none; }

/* gates style for site sections */
.f-gates ul { counter-reset: fgate; display: flex; flex-direction: column; }
.f-gates ul li { border-bottom: 2px dashed rgba(16,26,51,.18); }
.f-gates ul li:last-child { border-bottom: 0; }
.f-gates ul a {
    display: flex; align-items: center; gap: .6rem;
    color: #101a33;
    font-family: 'Changa', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    padding: .45rem .1rem;
}
.f-gates ul a::before {
    counter-increment: fgate;
    content: counter(fgate, arabic-indic);
    color: #ff6b1a;
    font-size: 1.05rem;
    min-width: 1.5rem;
}
.f-gates ul a:hover { color: #ff6b1a; }

.f-links ul { display: flex; flex-direction: column; }
.f-links ul li { border-bottom: 2px dashed rgba(16,26,51,.18); }
.f-links ul li:last-child { border-bottom: 0; }
.f-links ul a {
    display: inline-block;
    color: #2b3560;
    font-size: .92rem;
    font-weight: 700;
    padding: .42rem .1rem;
}
.f-links ul a::before { content: "⚽ "; font-size: .75rem; }
.f-links ul a:hover { color: #ff6b1a; }

/* socials on paper */
.f-about .social-links a { border-color: rgba(16,26,51,.45); }
.f-about .social-links svg { fill: #101a33; }
.f-about .social-links a:hover { border-color: #ff6b1a; }
.f-about .social-links a:hover svg { fill: #ff6b1a; }

/* giant wordmark hoarding */
.footer-wordmark {
    max-width: 1100px;
    margin: 26px auto 0;
    padding: 0 18px;
    text-align: center;
    overflow: hidden;
}
.footer-wordmark span {
    display: inline-block;
    font-family: 'Changa', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 8.5vw, 5.5rem);
    line-height: 1.15;
    color: rgba(246,239,226,.08);
    -webkit-text-stroke: 2px rgba(246,239,226,.45);
    white-space: nowrap;
    transform: rotate(-1deg);
}

.footer-bottom {
    border-top: 2px dashed rgba(255,197,61,.35);
    margin-top: 20px;
    padding: 14px 18px calc(14px + 0px);
    text-align: center;
    font-size: 12.5px;
    color: #9fb0d6;
}

@media (max-width: 860px) {
    .footer-board { grid-template-columns: 1fr; }
    .fb-block + .fb-block { border-right: 0; border-top: 2px dashed rgba(255,197,61,.35); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .f-about, .f-gates, .f-links { transform: none; }
    .footer-wordmark span { white-space: normal; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 14px; }
    .main-nav { margin-inline-start: 0; }
    .main-nav a { padding: 6px 9px; font-size: 13.5px; }
    .hero { padding: 44px 16px 52px; }
    .hero h1 { font-size: 28px; }
    .hero p.lead { font-size: 15px; }
    .article { padding: 22px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- WordPress-specific additions ---------- */
.main-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--gold); }

/* Posts / archive */
.posts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 0 var(--line);
    display: flex;
    flex-direction: column;
}
.post-card .cat { font-size: 12px; color: var(--gold); font-weight: 800; margin-bottom: 6px; }
.post-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; line-height: 1.6; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.post-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.post-card .more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--green); text-decoration: none; }
.post-card .more:hover { color: var(--gold); }

/* Single post / page content */
.entry {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 34px;
    box-shadow: 0 2px 0 var(--line);
}
.entry h1.entry-title { font-size: 26px; font-weight: 900; margin: 0 0 6px; color: var(--green-dark); }
.entry .entry-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.entry .entry-meta a { color: var(--green); text-decoration: none; }
.entry-content { font-size: 15.5px; color: #39413a; }
.entry-content h2, .entry-content h3 { color: var(--green-dark); font-weight: 800; margin: 24px 0 8px; }
.entry-content p { margin: 0 0 14px; }
.entry-content ul, .entry-content ol { padding-inline-start: 22px; margin: 0 0 14px; }
.entry-content blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    background: #f7f2e5;
    border-right: 4px solid var(--gold);
    border-radius: 10px;
    font-size: 15px;
    color: #4a4436;
}
.entry-content a { color: var(--green); }
.entry-content img { max-width: 100%; height: auto; border-radius: 10px; }

/* Pagination */
.pagination { margin: 26px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-block; padding: 6px 14px; border-radius: 8px;
    border: 1px solid var(--line); background: #fff; color: var(--green-dark);
    text-decoration: none; font-weight: 700; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .page-numbers:hover { border-color: var(--gold); }

/* Comments */
.comments-area { margin-top: 34px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li.comment {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 18px; margin-bottom: 10px;
}
.comment-list .comment-author { font-weight: 800; color: var(--green-dark); }
.comment-list .comment-metadata { font-size: 12px; color: var(--muted); }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 14px; background: #fff; margin-bottom: 8px;
}
.comment-respond .submit {
    background: var(--green); color: #fff; border: 0; border-radius: 10px;
    padding: 10px 26px; font-family: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
}

/* Admin bar offset for sticky header */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

@media (max-width: 720px) {
    .entry { padding: 22px 18px; }
    .posts-list { grid-template-columns: 1fr; }
}

/* ---------- v2: logo image, social, ads, cookie bar ---------- */
.logo-image img { max-height: 44px; width: auto; display: block; }

.social-links { display: flex; gap: 8px; margin-top: 14px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.35);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s;
}
.social-links a:hover { border-color: var(--gold); }
.social-links svg { width: 17px; height: 17px; fill: #cfe0d5; }
.social-links a:hover svg { fill: var(--gold); }

.dawri-ad { max-width: 1100px; margin: 14px auto; padding: 0 18px; text-align: center; }
.dawri-ad-incontent { margin: 20px 0; padding: 0; }

.dawri-cookie {
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 200;
    background: var(--green-dark); color: #e9f2ec;
    border-top: 3px solid var(--gold);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.dawri-cookie[hidden] { display: none; }
.dawri-cookie p { margin: 0; font-size: 13.5px; flex: 1 1 320px; }
.dawri-cookie-ok {
    background: var(--gold); color: #2b2103; border: 0; border-radius: 10px;
    font-family: inherit; font-weight: 800; font-size: 14px;
    padding: 9px 24px; cursor: pointer; flex: 0 0 auto;
}

/* ---------- v3: mobile header icons, drawer, bottom nav, article extras, search/404 ---------- */

/* tap targets */
.main-nav a { padding: 10px 12px; }
button, input[type="submit"], .btn, .hero .cta { min-height: 44px; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* header icons (mobile only) */
.header-icons { display: none; align-items: center; gap: 2px; margin-inline-start: auto; }
.icon-btn {
    background: none; border: 0; color: #fff; cursor: pointer;
    padding: 10px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }

.mobile-search-bar { padding: 10px 14px; background: var(--green-dark); border-top: 1px solid rgba(255,255,255,.12); }
.mobile-search-form { display: flex; gap: 8px; max-width: 1100px; margin: 0 auto; }
.mobile-search-form input {
    flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: 15px;
}
.mobile-search-form input::placeholder { color: rgba(255,255,255,.55); }
.mobile-search-form button {
    background: var(--gold); color: #2b2103; border: 0; border-radius: 10px;
    padding: 10px 20px; font-family: inherit; font-weight: 800; cursor: pointer;
}

/* side drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; }
.side-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: 280px; max-width: 84vw; z-index: 61;
    background: var(--green-dark); box-shadow: 4px 0 24px rgba(0,0,0,.3);
    overflow-y: auto; padding-bottom: 20px;
}
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.drawer-title { color: #fff; font-weight: 900; font-size: 17px; }
.drawer-search { margin: 12px 16px; display: flex; }
.drawer-search input {
    flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: 14px;
}
.drawer-search input::placeholder { color: rgba(255,255,255,.55); }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a {
    display: block; color: #fff; text-decoration: none;
    padding: 13px 20px; font-weight: 700; font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.drawer-nav a:hover, .drawer-nav .current-menu-item > a { color: var(--gold); background: rgba(255,255,255,.05); }
.drawer-nav-secondary { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.drawer-nav-secondary a { font-size: 13.5px; font-weight: 600; color: #cfe0d5; }
body.drawer-open { overflow: hidden; }
body.drawer-open .dawri-cookie { display: none; }

/* bottom nav (mobile only) */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
    background: var(--green-dark); border-top: 2px solid var(--gold);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: rgba(255,255,255,.75); text-decoration: none; font-size: 11px; font-weight: 700;
    padding: 6px 0; min-height: 48px; justify-content: center;
}
.bottom-nav-item svg { width: 20px; height: 20px; }
.bottom-nav-item:hover { color: var(--gold); }

/* TOC */
.dawri-toc {
    background: #fbf9f4; border: 1px solid var(--line); border-right: 4px solid var(--gold);
    border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; font-size: 14px;
}
.dawri-toc strong { display: block; margin-bottom: 6px; color: var(--green-dark); }
.dawri-toc ol { margin: 0; padding-inline-start: 20px; }
.dawri-toc li { margin-bottom: 3px; }
.dawri-toc a { color: var(--ink); text-decoration: none; }
.dawri-toc a:hover { color: var(--green); text-decoration: underline; }

/* author box + related + updated */
.updated { color: var(--muted); }
.author-box {
    display: flex; gap: 14px; align-items: center;
    border: 2px dashed #b9ac8d; border-radius: 14px; padding: 14px 18px; margin-top: 28px;
    background: #fff;
}
.author-box .avatar img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.author-box .author-badge {
    width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: #101a33; color: #ffc53d;
    border: 2.5px solid #ff6b1a;
    font-family: 'Changa', sans-serif; font-weight: 800; font-size: 23px;
}
.author-box h4 { color: #101a33; font-weight: 800; }
.author-box h4 { margin: 0 0 4px; font-size: 15px; }
.author-box p { margin: 0; font-size: 13px; color: var(--muted); }
.related-posts { padding-top: 0; }

/* trust signals: corrections + data-source lines */
.correction-line {
    margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center;
}
.correction-line a { color: #101a33; font-weight: 800; text-decoration: underline; text-decoration-color: #ff6b1a; text-underline-offset: 3px; }
.correction-line a:hover { color: #ff6b1a; }
.trust-line {
    margin-top: 22px; padding: 14px 18px;
    background: #fffdf6; border: 2px dashed #b9ac8d; border-radius: 14px;
    color: var(--paper-ink); font-size: 13.5px; line-height: 1.9;
}
.trust-line p { margin: 0; }
.trust-line p + p { margin-top: 8px; }
.trust-line strong { color: #101a33; }
.trust-line a { color: #101a33; font-weight: 800; text-decoration: underline; text-decoration-color: #ff6b1a; text-underline-offset: 3px; }
.trust-line a:hover { color: #ff6b1a; }
.trust-line .trust-line-meta { color: var(--paper-muted); font-size: 12.5px; }
.methodology-review { color: var(--paper-muted); font-size: 12.5px; margin-top: 18px; }
.editor-placeholder-note { color: var(--paper-muted); font-size: 12.5px; }
.contact-mail-btn {
    display: inline-block; margin-top: 4px; padding: 10px 22px;
    background: #ff6b1a; color: #fff !important; border-radius: 10px;
    font-family: 'Changa', 'Cairo', sans-serif; font-weight: 800; font-size: 15px;
    text-decoration: none !important; border: 2px solid #101a33;
    box-shadow: 3px 3px 0 #101a33; transition: transform .15s ease;
}
.contact-mail-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #101a33; color: #fff !important; }
.contact-correction { margin-top: 26px; }

/* search results + 404 */
.search-page-form { display: flex; gap: 8px; margin: 14px 0 24px; }
.search-page-form input {
    flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
    font-family: inherit; font-size: 15px;
}
.search-page-form button {
    background: var(--green); color: #fff; border: 0; border-radius: 10px;
    padding: 11px 22px; font-family: inherit; font-weight: 700; cursor: pointer;
}
.search-count { color: var(--muted); font-size: 14px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.posts-grid .post-card h2 a { color: var(--ink); text-decoration: none; }
.posts-grid .post-card h2 a:hover { color: var(--green); }
.no-results h2 { font-size: 20px; }
.useful-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.useful-links a {
    background: #fbf9f4; border: 1px solid var(--line); border-radius: 20px;
    padding: 8px 18px; font-size: 13.5px; font-weight: 700; color: var(--green-dark); text-decoration: none;
}
.useful-links a:hover { border-color: var(--gold); color: var(--gold); }
.error-404 { text-align: center; }
.error-code { font-size: 64px; font-weight: 900; color: var(--gold); line-height: 1; margin: 0 0 6px; }
.error-404 .search-page-form { max-width: 480px; margin-inline: auto; }
.error-404 .useful-links { justify-content: center; }

/* contrast + spacing polish */
.entry-meta { color: #556b5e; }
body { line-height: 1.75; }

/* mobile layout */
@media (max-width: 720px) {
    .header-inner { flex-direction: row; align-items: center; gap: 10px; padding: 6px 12px; min-height: 56px; }
    .main-nav { display: none; }
    .header-icons { display: flex; }
    .hero { padding: 34px 16px 40px; }
    .hero h1 { font-size: 24px; }
    .sec-head h2 { font-size: 22px; }
    .hero p.lead { font-size: 14.5px; }
    .bottom-nav { display: flex; }
    body { padding-bottom: 58px; }
    .dawri-cookie { bottom: 58px; }
}
/* tablet: keep nav on one line */
@media (min-width: 721px) and (max-width: 960px) {
    .header-inner { gap: 12px; }
    .main-nav a { font-size: 13px; padding: 8px 7px; }
}
@media (min-width: 721px) {
    .mobile-search-bar { display: none; }
    .side-drawer, .drawer-overlay { display: none; }
}


/* ================= v4: "ملصقات شوارع القاهرة" ================= */
body {
    background: var(--sand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    color: #e8edf8;
}
/* header */
.site-header { background: var(--green-dark); border-bottom: 3px solid var(--gold); }
.site-logo, .site-logo a { font-family: 'Changa', 'Cairo', sans-serif; font-weight: 800; color: var(--gold) !important; text-shadow: 2px 2px 0 var(--green); text-decoration: none; }
.main-nav a { color: #c9d2ea; }
.main-nav a:hover { background: rgba(255,197,61,.12); border-bottom-color: var(--gold); }
.main-nav a.active, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--gold); }
.header-icons button, .header-icons a { color: #e8edf8; }
/* hero: slim title strip, no big banner */
.hero {
    background: none; padding: 26px 18px 10px; text-align: right;
}
.hero::before, .hero::after { display: none; }
.hero .kicker {
    font-family: 'Marhey', 'Cairo', sans-serif; background: var(--green); color: var(--night2);
    border: 0; border-radius: 50% 46% 52% 48%/60% 55% 45% 60%; padding: 3px 16px; font-size: 13px;
    display: inline-block; transform: rotate(-2deg);
}
.hero h1 {
    font-family: 'Changa', 'Cairo', sans-serif; font-weight: 800; color: var(--paper);
    font-size: 30px; line-height: 1.4; margin: 12px 0 6px;
}
.hero p.lead { color: #c9d2ea; font-size: 14px; max-width: 60ch; margin: 0; }
/* section heads */
.sec-head { text-align: right; }
.sec-head .kicker {
    font-family: 'Marhey', 'Cairo', sans-serif; color: var(--gold); background: none;
    border: 0; padding: 0; font-size: 14px;
}
.sec-head h2 {
    font-family: 'Changa', 'Cairo', sans-serif; font-weight: 800; color: var(--paper);
    display: flex; align-items: center; gap: 12px; font-size: 22px;
}
.sec-head h2::after {
    content: ''; position: static; flex: 1; width: auto; height: 3px; margin: 0;
    background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px);
    border-radius: 2px;
}
/* calculator band */
.widget-band { background: none; border: 0; padding: 8px 0 18px; }
/* cards & paper posters */
.article, .post-card, .page-card, .card, .faq details,
.comment-respond, .comments-area, .toc-box, .author-box,
.posts-grid .post-card, .club-card, .search-card {
    background: var(--card); color: var(--paper-ink);
    border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.45);
    border: 0;
}
.article h2, .article h3, .post-card h3, .post-card h3 a, .page-card h1, .page-card h2,
.comments-area h2, .comment-respond h3, .article h4 {
    color: var(--paper-ink);
}
.article h2 { font-family: 'Changa', 'Cairo', sans-serif; }
.article p, .article li { color: #3a352c; }
.article a { color: #c2571a; }
.post-card { transform: rotate(-.3deg); }
.post-card:nth-child(even) { transform: rotate(.4deg); }
.post-card p { color: var(--paper-muted); }
.post-card .cat { color: #c2571a; font-family: 'Marhey', 'Cairo', sans-serif; }
.post-card .more { color: #c2571a; }
.post-card h3 a:hover { color: #c2571a; }
/* faq */
.faq details { padding: 12px 16px; margin-bottom: 10px; border-right: 5px solid var(--gold); }
.faq summary { color: var(--paper-ink); font-weight: 800; cursor: pointer; }
.faq details p { color: var(--paper-muted); }
/* steps */
.step {
    background: var(--night2); border: 1.5px solid var(--line); border-right: 5px solid var(--green);
    border-radius: 10px; color: #e8edf8;
}
.step h3 { color: var(--gold); font-family: 'Changa', 'Cairo', sans-serif; }
.step p { color: #c9d2ea; }
.step .num {
    background: var(--green); color: var(--night2); font-family: 'Changa', 'Cairo', sans-serif;
    font-weight: 800; border-radius: 50%;
}
/* buttons & form controls */
button, input[type="submit"], .btn, .hero .cta {
    background: var(--green); color: var(--night2); font-family: 'Changa', 'Cairo', sans-serif;
    font-weight: 700; border: 0; border-radius: 10px;
}
.hero .cta { color: var(--night2); }
.hero .cta.secondary { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], textarea, select {
    background: #fffdf6; color: var(--paper-ink); border: 2px solid #d8cdb4; border-radius: 8px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); }
/* tables on dark pages get paper treatment */
.table-wrap, .standings-wrap, .scorers-wrap, .compare-wrap {
    background: var(--card); color: var(--paper-ink);
    border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.45); padding: 12px 10px;
}
table th { background: var(--green-dark); color: var(--gold); font-family: 'Changa', 'Cairo', sans-serif; }
/* cookie bar */
.dawri-cookie { background: var(--green-dark); border-top: 2px solid var(--gold); color: #e8edf8; }
.dawri-cookie-ok { background: var(--gold); color: var(--night2); font-family: 'Changa', 'Cairo', sans-serif; }
/* drawer & bottom nav */
.drawer { background: var(--green-dark); }
.drawer-nav a { color: #e8edf8; }
.drawer-nav a:hover, .drawer-nav .current-menu-item > a { color: var(--gold); background: rgba(255,197,61,.08); }
.drawer-nav-secondary a { color: #c9d2ea; }
.bottom-nav { background: var(--green-dark); border-top: 2px solid var(--gold); }
.bottom-nav a { color: #c9d2ea; }
.bottom-nav a.active { color: var(--gold); }
/* 404 + search headings on dark */
.page-title, .error-404 h1, .search-title { color: var(--paper); }
.error-404 .big { color: var(--gold); font-family: 'Changa', 'Cairo', sans-serif; }
.useful-links a, .chip-link {
    background: var(--night2); border: 1.5px solid var(--line); color: var(--paper);
}
/* plugin overrides: matches & standings panels as posters */

/* v4 extra: distinctive header / drawer / footer */
.site-header { position: relative; }
.site-header::after {
    content: ''; position: absolute; right: 0; left: 0; bottom: -3px; height: 3px;
    background: repeating-linear-gradient(90deg, var(--green) 0 14px, transparent 14px 24px);
    opacity: .85;
}
.header-inner { position: relative; }
.main-nav a { border-radius: 6px; font-weight: 700; }
.main-nav a:hover { border-bottom-color: var(--green); }
/* mobile drawer as poster wall */
.drawer {
    background: var(--green-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    border-left: 3px solid var(--gold);
}
.drawer-head { border-bottom: 2px dashed rgba(255,197,61,.4); }
.drawer-title { font-family: 'Changa', 'Cairo', sans-serif; color: var(--gold) !important; text-shadow: 2px 2px 0 var(--green); }
.drawer-search input { background: var(--night2); border: 1.5px solid var(--line); color: #e8edf8; }
.drawer-nav a {
    margin: 4px 10px; border-radius: 8px; font-weight: 700;
    border-right: 4px solid transparent;
}
.drawer-nav a:hover, .drawer-nav .current-menu-item > a {
    color: var(--gold); background: rgba(255,107,26,.12); border-right-color: var(--green);
}
.drawer-nav-secondary { border-top: 2px dashed rgba(255,197,61,.3); }
/* bottom nav */
.bottom-nav a.active { color: var(--gold); }
.footer-bottom { border-top: 2px dashed rgba(255,197,61,.3); }

/* v4: overflow guard + plugin polish */
main { overflow-x: clip; }
.eplp-table thead th { font-family: 'Changa', 'Cairo', sans-serif; }
.eplp-h, .eplp-round-label { font-family: 'Changa', 'Cairo', sans-serif; }

/* v5.1: original intro paragraphs on utility pages */
.page-intro {
    background: var(--card); border: 2px solid var(--green-dark); border-radius: 12px;
    box-shadow: 5px 5px 0 rgba(16,26,51,.3);
    color: #2a2417; padding: 14px 18px; margin: 0 0 22px; line-height: 1.9; font-size: 15.5px;
}

/* ---------- Page guide cards (street-poster) ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 10px; }
.guide-card { position: relative; background: var(--card); border: 2px solid var(--green-dark); border-radius: 18px; padding: 22px 24px; box-shadow: 4px 4px 0 var(--green-dark); }
.guide-card::before { content: ''; position: absolute; inset: 7px; border: 2px dashed rgba(255, 107, 26, .45); border-radius: 12px; pointer-events: none; }
.guide-card h3 { position: relative; font-family: Changa, Cairo, sans-serif; font-size: 18px; font-weight: 800; margin: 0 0 10px; padding-top: 14px; color: var(--green-dark); }
.guide-card h3::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 5px; background: var(--green); border-radius: 3px; }
.guide-card p { margin: 0 0 10px; font-size: 15px; color: #39413a; line-height: 1.9; }
.guide-card p:last-of-type { margin-bottom: 0; }
.guide-card a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* how-to: navy poster card */
.guide-howto { grid-column: 1 / -1; background: var(--green-dark); border-color: var(--gold); box-shadow: 4px 4px 0 var(--green); }
.guide-howto::before { border-color: rgba(255, 197, 61, .5); }
.guide-howto h3 { font-family: 'Marhey', 'Cairo', sans-serif; color: var(--gold); font-weight: 400; font-size: 21px; }
.guide-howto h3::before { background: var(--green); }
.guide-howto ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
.guide-howto li { counter-increment: step; position: relative; padding-inline-start: 44px; font-size: 15px; color: #e9ecf5; line-height: 1.8; }
.guide-howto li strong { color: var(--gold); }
.guide-howto li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.guide-howto a { color: var(--gold); }

/* figures inside guide cards */
.guide-fig { margin: 12px 0 0; }
.guide-fig img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.guide-howto .guide-fig img { border-color: var(--gold); }
.guide-fig figcaption { margin-top: 6px; font-size: 12.5px; color: #6b6252; line-height: 1.6; }
.guide-howto .guide-fig figcaption { color: #b9c2da; }
.guide-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.guide-figs .guide-fig { margin-top: 0; }

/* related tools */
.guide-faq-title { font-family: Changa, Cairo, sans-serif; font-size: 19px; font-weight: 800; margin: 28px 0 4px; color: var(--paper); position: relative; padding-top: 14px; }
.guide-faq-title::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 5px; background: var(--gold); border-radius: 3px; }
.guide-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.guide-link { position: relative; display: block; background: var(--card); border: 2px solid var(--green-dark); border-radius: 14px; padding: 14px 16px; box-shadow: 3px 3px 0 var(--green-dark); transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; }
.guide-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--green); }
.guide-link strong { display: block; color: var(--green); font-family: Changa, Cairo, sans-serif; font-size: 15px; margin-bottom: 4px; }
.guide-link span { display: block; color: #5b635b; font-size: 13px; line-height: 1.7; }

/* FAQ accordion cards */
.guide-faq { background: var(--card); border: 2px solid var(--green-dark); border-radius: 14px; margin-top: 12px; overflow: hidden; box-shadow: 3px 3px 0 var(--green-dark); }
.guide-faq summary { cursor: pointer; padding: 14px 20px; font-family: Changa, Cairo, sans-serif; font-weight: 800; font-size: 15.5px; color: var(--green-dark); list-style: none; position: relative; padding-inline-start: 54px; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::before { content: '+'; position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--green-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.guide-faq[open] summary::before { content: '–'; }
.guide-faq[open] summary { border-bottom: 2px dashed rgba(255, 107, 26, .45); }
.guide-faq p { padding: 12px 20px 16px; margin: 0; font-size: 15px; color: #39413a; line-height: 1.9; }

@media (max-width: 700px) {
    .guide-grid, .guide-howto ol, .guide-links, .guide-figs { grid-template-columns: 1fr; }
}

/* ===== v5.5.1: homepage premium guide sections (distinct from inner-page guide cards) ===== */
/* 1) How-to as a stadium-ticket poster */
.home-howto {
    background: #0d1530;
    border: 3px solid #ffc53d;
    outline: 2px dashed #ff6b1a;
    outline-offset: -12px;
    border-radius: 22px;
    padding: 2.4rem 1.8rem 2rem;
    color: #f6efe2;
    box-shadow: 0 12px 0 rgba(255,107,26,.28), 0 26px 46px rgba(0,0,0,.4);
}
.home-howto h3 {
    font-family: 'Changa', sans-serif;
    color: #ffc53d;
    font-size: 2.1rem;
    text-align: center;
    margin: 0 0 .25rem;
}
.home-howto-sub {
    font-family: 'Marhey', cursive;
    color: #ff6b1a;
    text-align: center;
    font-size: 1.05rem;
    margin: 0 0 1.6rem;
}
.home-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}
.home-step {
    position: relative;
    background: #f6efe2;
    color: #101a33;
    border: 2px solid #101a33;
    border-radius: 14px;
    padding: 1rem 1rem .9rem;
    box-shadow: 5px 5px 0 #ff6b1a;
}
.home-step::before {
    content: "";
    position: absolute;
    inset-inline-start: -2px;
    top: 10px;
    bottom: 10px;
    width: 6px;
    background-image: radial-gradient(circle, #0d1530 2.6px, transparent 3.2px);
    background-size: 6px 13px;
    background-repeat: repeat-y;
}
.home-step .num {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ff6b1a;
    color: #fff;
    font-family: 'Changa', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    border: 2px solid #101a33;
    box-shadow: 3px 3px 0 #101a33;
    margin-bottom: .55rem;
}
.home-step p { margin: 0; font-size: .95rem; line-height: 1.75; }
.home-step p strong { color: #b3541e; }
.home-figs {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 1.6rem;
    margin-top: 1.8rem;
    align-items: start;
}
.home-fig {
    position: relative;
    background: #fff;
    padding: 10px 10px 12px;
    border-radius: 6px;
    transform: rotate(-1.1deg);
    box-shadow: 0 12px 26px rgba(0,0,0,.45);
}
.home-fig:last-child { transform: rotate(.9deg); }
.home-fig::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    width: 92px;
    height: 24px;
    background: linear-gradient(rgba(255,197,61,.92), rgba(255,197,61,.78));
    border-inline: 2px dashed rgba(16,26,51,.3);
    border-radius: 2px;
}
.home-fig img { display: block; width: 100%; height: auto; border-radius: 3px; border: 1px solid #d8cdb4; }
.home-fig figcaption {
    font-family: 'Marhey', cursive;
    color: #101a33;
    font-size: .9rem;
    text-align: center;
    padding-top: .55rem;
    line-height: 1.7;
}

/* 2) Content cards as taped street posters */
.home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1.6rem;
}
.home-card {
    position: relative;
    background: #f6efe2;
    color: #101a33;
    border: 2px solid #101a33;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.2rem;
    box-shadow: 6px 6px 0 #101a33, 12px 12px 0 #ff6b1a;
}
.home-card:nth-child(odd)  { transform: rotate(-.6deg); }
.home-card:nth-child(even) { transform: rotate(.5deg); }
.home-card:nth-child(5)    { grid-column: 1 / -1; transform: none; }
.home-card::before,
.home-card::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 66px;
    height: 23px;
    background: linear-gradient(rgba(255,197,61,.92), rgba(255,197,61,.75));
    border-inline: 2px dashed rgba(16,26,51,.32);
    border-radius: 2px;
    z-index: 2;
}
.home-card::before { inset-inline-start: 22px; transform: rotate(-9deg); }
.home-card::after  { inset-inline-end: 22px;  transform: rotate(8deg); }
.home-card h3 {
    font-family: 'Changa', sans-serif;
    color: #101a33;
    font-size: 1.5rem;
    margin: .2rem 0 .7rem;
}
.home-card h3::after {
    content: "";
    display: block;
    width: 66px;
    height: 6px;
    background: #ff6b1a;
    border-radius: 3px;
    margin-top: .35rem;
}
.home-card p { margin: 0 0 .75rem; line-height: 1.9; }
.home-card p:last-child { margin-bottom: 0; }
.home-card a { color: #b3541e; font-weight: 700; }

/* 3) Internal links as stadium gates */
.home-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.home-link {
    position: relative;
    display: block;
    background: linear-gradient(160deg, #101a33 0%, #0d1530 100%);
    border: 2px solid #ffc53d;
    border-bottom: 7px solid #ff6b1a;
    border-radius: 16px;
    padding: 1rem 1.15rem .9rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.home-link:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(255,107,26,.35); }
.home-link .gate-num {
    font-family: 'Changa', sans-serif;
    color: #ff6b1a;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}
.home-link strong {
    display: block;
    font-family: 'Changa', sans-serif;
    color: #ffc53d;
    font-size: 1.2rem;
    margin: .25rem 0 .3rem;
}
.home-link span { display: block; color: #cfd6ea; font-size: .86rem; line-height: 1.7; }

@media (max-width: 900px) {
    .home-steps { grid-template-columns: 1fr 1fr; }
    .home-links { grid-template-columns: 1fr 1fr; }
    .home-figs  { grid-template-columns: 1fr; }
    .home-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .home-steps { grid-template-columns: 1fr; }
    .home-links { grid-template-columns: 1fr; }
    .home-howto h3 { font-size: 1.6rem; }
}

/* ===== v5.5.1: homepage article cards with featured images (mockup) ===== */
.home-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.6rem;
}
.home-post {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #f6efe2;
    color: #101a33;
    border: 2px solid #101a33;
    border-radius: 18px;
    padding: 12px 14px 1.1rem;
    box-shadow: 6px 6px 0 #101a33, 12px 12px 0 #ff6b1a;
}
.home-post:nth-child(odd)  { transform: rotate(-.6deg); }
.home-post:nth-child(even) { transform: rotate(.5deg); }
.home-post::before,
.home-post::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 66px;
    height: 23px;
    background: linear-gradient(rgba(255,197,61,.92), rgba(255,197,61,.75));
    border-inline: 2px dashed rgba(16,26,51,.32);
    border-radius: 2px;
    z-index: 3;
}
.home-post::before { inset-inline-start: 22px; transform: rotate(-9deg); }
.home-post::after  { inset-inline-end: 22px;  transform: rotate(8deg); }
.home-post .thumb {
    display: block;
    border: 2px solid #101a33;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: .9rem;
    background: #0d1530;
}
.home-post .thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.home-post .stamp {
    position: absolute;
    top: 20px;
    inset-inline-start: 22px;
    z-index: 2;
    background: #ff6b1a;
    color: #fff;
    font-family: 'Marhey', cursive;
    font-size: .85rem;
    padding: .15rem .75rem;
    border-radius: 999px;
    border: 2px solid #101a33;
    box-shadow: 2px 2px 0 #101a33;
    transform: rotate(-6deg);
}
.home-post h3 {
    font-family: 'Changa', sans-serif;
    font-size: 1.3rem;
    line-height: 1.5;
    margin: 0 0 .5rem;
}
.home-post h3 a { color: #101a33; text-decoration: none; }
.home-post h3 a:hover { color: #b3541e; }
.home-post p { color: #3c476e; font-size: .92rem; line-height: 1.85; margin: 0 0 .9rem; }
.home-post .more {
    margin-top: auto;
    font-weight: 800;
    color: #b3541e;
    text-decoration: none;
}
.home-post .more:hover { color: #ff6b1a; }
@media (max-width: 900px) { .home-posts { grid-template-columns: 1fr; } }

/* ===== v5.5.1: featured images on single + archive ===== */
.entry-thumb {
    margin: 0 0 1.4rem;
    border: 2px solid #101a33;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 6px 6px 0 #101a33, 12px 12px 0 #ff6b1a;
}
.entry-thumb img { display: block; width: 100%; height: auto; }
.post-card .post-thumb {
    display: block;
    margin: -6px -6px 12px;
    border: 2px solid var(--ink, #101a33);
    border-radius: 10px;
    overflow: hidden;
    background: #0d1530;
}
.post-card .post-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ===== v5.5.2 mockup: premium single-post layout ===== */
.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.8rem;
    align-items: start;
}
.single-layout .entry-poster {
    background: #f6efe2;
    color: #101a33;
    border: 2px solid #101a33;
    border-radius: 20px;
    padding: 2rem 2.2rem 1.6rem;
    box-shadow: 6px 6px 0 #101a33, 12px 12px 0 #ff6b1a;
}
.entry-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.6rem;
    align-items: start;
    margin-bottom: 1.2rem;
}
.single-layout .entry-thumb {
    margin: 0;
    transform: rotate(1.2deg);
    border-radius: 14px;
}
.entry-cat {
    display: inline-block;
    background: #ff6b1a;
    color: #fff;
    font-family: 'Marhey', cursive;
    font-size: .85rem;
    padding: .15rem .8rem;
    border-radius: 999px;
    border: 2px solid #101a33;
    box-shadow: 2px 2px 0 #101a33;
    transform: rotate(-3deg);
    text-decoration: none;
    margin-bottom: .7rem;
}
.single-layout h1.entry-title {
    font-family: 'Changa', sans-serif;
    font-size: 2rem;
    line-height: 1.45;
    color: #101a33;
    margin: 0 0 .5rem;
}
.single-layout h1.entry-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 7px;
    background: #ff6b1a;
    border-radius: 4px;
    margin-top: .45rem;
}
.single-layout .entry-meta { color: #6a739a; font-size: .85rem; margin-bottom: 1rem; }
.entry-lede {
    background: #efe6d2;
    border: 2px dashed #ff6b1a;
    border-radius: 14px;
    padding: .9rem 1.1rem .7rem;
}
.entry-lede .lede-kicker {
    font-family: 'Marhey', cursive;
    color: #b3541e;
    font-size: .9rem;
    display: block;
    margin-bottom: .2rem;
}
.entry-lede p { margin: 0; font-weight: 700; line-height: 1.85; color: #2b3560; }

/* article typography */
.single-layout .entry-content { font-size: 1.04rem; line-height: 1.95; color: #232c4d; }
.single-layout .entry-content p { margin: 0 0 1.05rem; }
.single-layout .entry-content h2 {
    font-family: 'Changa', sans-serif;
    font-size: 1.65rem;
    color: #101a33;
    margin: 2rem 0 .8rem;
}
.single-layout .entry-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 6px;
    background: #ff6b1a;
    border-radius: 3px;
    margin-top: .3rem;
}
.single-layout .entry-content h3 {
    font-family: 'Changa', sans-serif;
    font-size: 1.32rem;
    color: #101a33;
    margin: 1.6rem 0 .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.single-layout .entry-content h3::before {
    content: "";
    width: 14px;
    height: 14px;
    background: #ffc53d;
    border: 2px solid #101a33;
    border-radius: 4px;
    transform: rotate(45deg);
    flex-shrink: 0;
}
.single-layout .entry-content h4 {
    font-family: 'Changa', sans-serif;
    font-size: 1.12rem;
    color: #b3541e;
    margin: 1.3rem 0 .5rem;
}
.single-layout .entry-content h5 {
    font-size: 1rem;
    font-weight: 800;
    color: #3c476e;
    margin: 1.1rem 0 .4rem;
    letter-spacing: .2px;
}
.single-layout .entry-content a { color: #b3541e; font-weight: 700; }
.single-layout .entry-content blockquote {
    background: #efe6d2;
    border: 2px solid #101a33;
    border-inline-start: 8px solid #ff6b1a;
    border-radius: 14px;
    padding: 1rem 1.3rem;
    margin: 1.4rem 0;
    font-weight: 700;
    color: #2b3560;
    box-shadow: 4px 4px 0 #101a33;
}
.single-layout .entry-content blockquote p:last-child { margin-bottom: 0; }
.single-layout .entry-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
}
.single-layout .entry-content ul li {
    position: relative;
    padding-inline-start: 1.9rem;
    margin-bottom: .55rem;
    line-height: 1.85;
}
.single-layout .entry-content ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .42em;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23f6efe2' stroke='%23101a33' stroke-width='2'/%3E%3Cpolygon points='16,9 22.5,13.7 20,21.3 12,21.3 9.5,13.7' fill='%23101a33'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.single-layout .entry-content ol {
    list-style: none;
    counter-reset: dawri-ol;
    padding: 0;
    margin: 0 0 1.1rem;
}
.single-layout .entry-content ol li {
    counter-increment: dawri-ol;
    position: relative;
    padding-inline-start: 2.4rem;
    margin-bottom: .6rem;
    line-height: 1.85;
}
.single-layout .entry-content ol li::before {
    content: counter(dawri-ol, arabic-indic);
    position: absolute;
    inset-inline-start: 0;
    top: .18em;
    width: 26px;
    height: 26px;
    background: #ff6b1a;
    color: #fff;
    font-family: 'Changa', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid #101a33;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 #101a33;
}

/* sidebar widgets */
.single-side { display: flex; flex-direction: column; gap: 1.4rem; }
.side-widget {
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1.1rem;
}
.side-widget h3 {
    font-family: 'Changa', sans-serif;
    margin: 0 0 .8rem;
    font-size: 1.2rem;
}
.side-cta {
    background: #0d1530;
    border: 3px solid #ffc53d;
    outline: 2px dashed #ff6b1a;
    outline-offset: -9px;
    color: #f6efe2;
    text-align: center;
}
.side-cta h3 { color: #ffc53d; }
.side-cta p { color: #cfd6ea; font-size: .9rem; line-height: 1.8; margin: 0 0 .9rem; }
.side-cta-btn {
    display: block;
    background: #ff6b1a;
    color: #fff;
    font-family: 'Changa', sans-serif;
    font-weight: 700;
    text-decoration: none;
    padding: .6rem 1rem;
    border-radius: 12px;
    border: 2px solid #101a33;
    box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.side-cta-btn:hover { background: #ffc53d; color: #101a33; }
.side-tools {
    background: #101a33;
    border: 2px solid #ffc53d;
    border-bottom: 7px solid #ff6b1a;
}
.side-tools h3 { color: #ffc53d; }
.side-tools a {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #f6efe2;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: .45rem 0;
    border-bottom: 1px dashed rgba(255,197,61,.3);
}
.side-tools a:last-child { border-bottom: 0; }
.side-tools a:hover { color: #ffc53d; }
.side-tools .gate-num {
    font-family: 'Changa', sans-serif;
    color: #ff6b1a;
    font-size: 1.1rem;
    font-weight: 700;
}
.side-latest {
    background: #f6efe2;
    border: 2px solid #101a33;
    box-shadow: 5px 5px 0 #101a33, 10px 10px 0 #ff6b1a;
}
.side-latest h3 { color: #101a33; }
.side-latest h3::after {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    background: #ff6b1a;
    border-radius: 3px;
    margin-top: .3rem;
}
.side-post {
    display: flex;
    gap: .7rem;
    align-items: center;
    text-decoration: none;
    padding: .55rem 0;
    border-bottom: 1px dashed rgba(16,26,51,.3);
}
.side-post:last-child { border-bottom: 0; }
.side-post-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid #101a33;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}
.side-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-post-title {
    color: #101a33;
    font-weight: 800;
    font-size: .92rem;
    line-height: 1.6;
}
.side-post:hover .side-post-title { color: #b3541e; }

/* comments, sticker style */
.comments-area { margin-top: 2.2rem; }

.comment-list { list-style: none; padding: .5rem 0 0; display: flex; flex-direction: column; gap: 1.3rem; }
.comment-list li.comment {
    position: relative;
    background: #f6efe2;
    border: 2px solid #101a33;
    border-radius: 18px;
    padding: 1.2rem 1.3rem 1rem;
    box-shadow: 6px 6px 0 #101a33, 12px 12px 0 rgba(255,107,26,.55);
}
.comment-list > li.comment:nth-of-type(odd) { transform: rotate(-.5deg); }
.comment-list > li.comment:nth-of-type(even) { transform: rotate(.45deg); }
.comment-list li.comment::before {
    content: "";
    position: absolute;
    top: -11px; right: 26px;
    width: 92px; height: 22px;
    background: rgba(255,197,61,.82);
    border: 1px solid rgba(16,26,51,.14);
    box-shadow: 0 1px 2px rgba(16,26,51,.18);
    transform: rotate(-3deg);
}
.comment-list > li.comment:nth-of-type(even)::before { right: auto; left: 30px; transform: rotate(2.5deg); }
.comment-list li.comment:hover { transform: rotate(0); }

.comment-list .comment-body { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.comment-list .comment-meta { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .8rem; }
.comment-list .comment-content { width: 100%; }
.comment-list .comment-author {
    display: flex; align-items: center; gap: .55rem;
}
.comment-list .comment-author .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid #101a33;
    box-shadow: 2px 2px 0 #ff6b1a;
    background: #fffdf7;
}
.comment-list .comment-author .fn {
    color: #101a33; font-family: 'Changa', sans-serif; font-weight: 700; font-size: 1.02rem;
}
.comment-list .comment-author .says { display: none; }
.comment-list .comment-metadata { font-size: .78rem; color: #8a83a0; margin-right: 52px; width: 100%; }
.comment-list .comment-metadata a { color: #8a83a0; }
.comment-list .comment-body p { color: #2b3560; line-height: 1.9; margin: .55rem 0 0; width: 100%; }
.comment-list .reply { width: 100%; margin-top: .4rem; }
.comment-list .comment-reply-link {
    display: inline-block;
    font-family: 'Changa', sans-serif; font-weight: 700; font-size: .82rem;
    color: #101a33; background: #ffc53d;
    border: 2px solid #101a33; border-radius: 999px;
    padding: .18rem .85rem;
    box-shadow: 2.5px 2.5px 0 #101a33;
    transform: rotate(-1deg);
}
.comment-list .comment-reply-link:hover { background: #ff6b1a; color: #fff; box-shadow: 1px 1px 0 #101a33; transform: translate(1.5px,1.5px) rotate(0); }

.comment-list ol.children {
    list-style: none; padding: 1rem 2.2rem 0 0; margin: .2rem 0 0;
    display: flex; flex-direction: column; gap: 1.1rem;
    border-right: 3px dashed rgba(255,107,26,.55);
}
.comment-list ol.children li.comment { background: #fbf6ea; transform: rotate(.35deg); box-shadow: 4px 4px 0 #101a33, 8px 8px 0 rgba(255,197,61,.6); }
.comment-list ol.children li.comment::before { width: 64px; height: 18px; top: -9px; }

#respond {
    position: relative;
    background: #f6efe2;
    border: 2px solid #101a33;
    border-radius: 20px;
    padding: 2rem 1.7rem 1.5rem;
    margin-top: 2.4rem;
    transform: rotate(-.4deg);
    box-shadow: 7px 7px 0 #101a33, 14px 14px 0 rgba(255,107,26,.55);
}
#respond::before, #respond::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 110px; height: 24px;
    background: rgba(255,197,61,.82);
    border: 1px solid rgba(16,26,51,.14);
    box-shadow: 0 1px 2px rgba(16,26,51,.18);
}
#respond::before { right: 30px; transform: rotate(-4deg); }
#respond::after { left: 34px; transform: rotate(3deg); }
#respond .comment-reply-title {
    font-family: 'Changa', sans-serif;
    color: #101a33;
    font-size: 1.55rem;
    margin: 0 0 .35rem;
    display: inline-block;
}
#respond .comment-reply-title::after {
    content: "";
    display: block;
    height: 5px; margin-top: 2px;
    background: linear-gradient(90deg, #ff6b1a, #ffc53d);
    border-radius: 3px;
    transform: rotate(-.6deg);
}
#respond .comment-reply-title small a { font-size: .8rem; color: #ff6b1a; margin-right: .6rem; }
#respond .logged-in-as, #respond .comment-notes { color: #5c6486; font-size: .85rem; }
#respond .logged-in-as a, #respond .comment-notes a { color: #ff6b1a; }
#respond label {
    display: block;
    color: #101a33;
    font-family: 'Changa', sans-serif;
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: .3rem;
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    background: #fffdf7;
    border: 2px dashed rgba(16,26,51,.4);
    border-radius: 12px;
    padding: .65rem .95rem;
    font-family: 'Cairo', sans-serif;
    font-size: .95rem;
    color: #101a33;
    box-shadow: inset 2px 2px 0 rgba(16,26,51,.06);
}
#respond input:focus, #respond textarea:focus {
    outline: none;
    border: 2px solid #ff6b1a;
    background: #fff;
    box-shadow: 3px 3px 0 rgba(255,107,26,.35);
}
#respond .form-submit { margin-bottom: 0; }
#respond .form-submit .submit {
    background: #ff6b1a;
    color: #fff;
    font-family: 'Changa', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    border: 2px solid #101a33;
    border-radius: 14px;
    padding: .6rem 2.3rem;
    box-shadow: 5px 5px 0 #101a33;
    transform: rotate(-1deg);
    cursor: pointer;
}
#respond .form-submit .submit:hover {
    background: #ffc53d; color: #101a33;
    box-shadow: 2px 2px 0 #101a33;
    transform: translate(3px,3px) rotate(0);
}

@media (max-width: 960px) {
    .single-layout { grid-template-columns: 1fr; }
    .entry-head { grid-template-columns: 1fr; }
    .single-layout .entry-thumb { transform: none; max-width: 420px; }
    .single-layout .entry-poster { padding: 1.4rem 1.2rem 1.2rem; }
    .single-layout h1.entry-title { font-size: 1.55rem; }
}
.home-post .cat-inline {
    display: inline-block;
    align-self: flex-start;
    background: #ff6b1a;
    color: #fff;
    font-family: 'Marhey', cursive;
    font-size: .82rem;
    padding: .1rem .7rem;
    border-radius: 999px;
    border: 2px solid #101a33;
    box-shadow: 2px 2px 0 #101a33;
    margin-bottom: .45rem;
}

/* ---------- sidebar: site sections widget ---------- */
.side-sections {
    background: #f6efe2;
    border: 2px solid #101a33;
    border-bottom: 7px solid #ffc53d;
    box-shadow: 4px 4px 0 #101a33;
}
.side-sections h3 { color: #101a33; }
.side-sections a {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #101a33;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: .45rem 0;
    border-bottom: 1px dashed rgba(16,26,51,.25);
}
.side-sections a:last-child { border-bottom: 0; }
.side-sections a:hover { color: #ff6b1a; }
.side-sections .gate-num {
    font-family: 'Changa', sans-serif;
    color: #ff6b1a;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---------- single: prev / next article nav ---------- */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
    margin: 1.6rem 0 0;
}
.post-nav:has(.post-nav-card:only-child) { grid-template-columns: 1fr; }
.post-nav-card {
    position: relative;
    display: block;
    background: #f6efe2;
    border: 2px solid #101a33;
    border-radius: 14px;
    padding: .9rem 1.1rem .8rem;
    text-decoration: none;
    box-shadow: 4px 4px 0 #101a33;
    transition: transform .15s, box-shadow .15s;
}
.post-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 #101a33;
    border-color: #ff6b1a;
}
.post-nav-dir {
    display: block;
    font-family: 'Changa', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    color: #ff6b1a;
    margin-bottom: .3rem;
}
.post-nav-title {
    display: block;
    color: #101a33;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.6;
}
@media (max-width: 640px) {
    .post-nav { grid-template-columns: 1fr; }
}
