/* Chrome for /hadith/ + /tafsir/ — copied from en.css sections (keep in sync) */
/* Mobile logo sizing (was the inline #mobile-fix block on tohed.com) */
@media (max-width: 576px) {
    .tohed-logo-image { height: 80px !important; width: 80px !important; }
    .tohed-logo { order: 2; width: 100%; justify-content: center; }
    .tohed-header-content { flex-wrap: wrap; justify-content: center; }
    .tohed-mobile-toggle { display: flex; }
}
@media (max-width: 768px) {
    .tohed-logo-image { height: 105px; width: 105px; }
}

/* ── Header search (native WP search instead of Google CSE) ── */
.tohed-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 4px 4px 4px 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    width: 100%;
}
.tohed-search-form input[type="search"] {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: 400 1rem var(--font-body);
    color: #1f2d2d;
    min-width: 0;
    padding: 10px 0;
}
.tohed-search-form button {
    border: 0;
    border-radius: 999px;
    background: #0d4a4a;
    color: #fff;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    cursor: pointer;
}
.tohed-search-form button:hover { background: #0a3a3a; }
.tohed-mobile-search .tohed-search-form { box-shadow: none; border: 1px solid #d8e3e3; }

/* Last nav item ("More") — dropdown opens leftwards so it stays inside the page */
.tohed-nav-item:last-child .tohed-dropdown-menu { left: auto; right: 0; }

/* ﷺ / honorific ligatures: Inter has no glyph — use the Arabic face at a readable size */
@font-face {
    font-family: 'Tohed Honorific';
    src: url('../assets/webfonts/amiri-v30-arabic-700.woff2') format('woff2');
    unicode-range: U+FDFA, U+FDFB, U+FD3E, U+FD3F;
    font-display: swap;
}
:root { --font-body: 'Tohed Honorific', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.tohed-chrome { font-family: var(--font-body, 'Inter', sans-serif); direction: ltr; text-align: left; line-height: 1.5; }
.tohed-chrome .tohed-nav-link, .tohed-chrome .tohed-dropdown-item,
.tohed-chrome .tohed-mobile-nav-link, .tohed-chrome .tohed-mobile-submenu-link,
.tohed-chrome .tohed-footer-links a, .tohed-chrome .tohed-footer-title { font-family: var(--font-body) !important; line-height: 1.45; }
.tohed-chrome .tohed-nav-link { font-size: 0.95rem; }
.tohed-chrome .tohed-notice-banner p { font-family: var(--font-body) !important; line-height: 1.6; margin: 0; }

/* Keep the header search centred when the right-hand app icons are hidden (TOHED_EN_SHOW_APP_LINKS) */
@media (min-width: 577px) {
    .tohed-header-content .tohed-header-actions { min-width: 130px; justify-content: flex-end; }
}

/* =========================================
   EN / UR LANGUAGE SWITCH (2026-10-22) — top bar, phone menu, footer
   Same component on en.tohed.com (theme tohed-en en.css + standalone/chrome.css)
   ========================================= */
.tohed-top-bar-end { display: flex; align-items: center; gap: 14px; }
.tohed-lang-switch { display: inline-flex; align-items: stretch; border: 1px solid rgba(230, 198, 90, .65); border-radius: 999px; overflow: hidden; line-height: 1; flex-shrink: 0; }
.tohed-lang-opt { display: inline-flex; align-items: center; padding: 3px 12px; font: 600 13px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #e6c65a; text-decoration: none; white-space: nowrap; }
.tohed-lang-opt[lang="ur"] { font-family: 'Mehr', 'Jameel Noori Nastaleeq', serif; font-size: 15px; line-height: 1.6; padding-top: 0; padding-bottom: 2px; }
.tohed-lang-opt.is-active { background: #c9a227; color: #0d3b37; }
a.tohed-lang-opt:hover, a.tohed-lang-opt:focus { background: rgba(230, 198, 90, .18); color: #fff; }
.tohed-lang-switch--light { display: flex; width: max-content; margin: 4px auto 14px; border-color: #1a5f5a; }
.tohed-lang-switch--light .tohed-lang-opt { color: #1a5f5a; padding: 5px 16px; }
.tohed-lang-switch--light .tohed-lang-opt.is-active { background: #1a5f5a; color: #fff; }
.tohed-lang-switch--light a.tohed-lang-opt:hover { background: rgba(26, 95, 90, .1); color: #1a5f5a; }
.tohed-footer-bottom-links .tohed-lang-switch { margin-inline-end: 6px; }

/* Copy / PDF actions on /hadith/ and /tafsir/ (standalone/app-actions.js) */
.hadith-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hadith-copy-btn, .tohed-pdf-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 14px; font: 600 13px/1.4 'Inter', system-ui, sans-serif; border: 1px solid #c8dad7; background: #fff; color: #1a5f5a; cursor: pointer; transition: background .2s, border-color .2s; }
.hadith-copy-btn:hover, .tohed-pdf-btn:hover { background: #faf8f3; border-color: #c9a227; }
.hadith-copy-btn.copied { background: #c9a227; border-color: #c9a227; color: #fff; }
.tohed-pdf-btn i { color: #b3261e; }
.hadith-copy-btn--sm { padding: 4px 9px; margin-left: 10px; vertical-align: middle; }
.hadith-full-num { display: flex; align-items: center; justify-content: space-between; }
.tafsir-action-bar .tafsir-pdf-btn { margin-left: 8px; }

/* Breadcrumbs (XenForo .p-breadcrumbs markup in the apps) → tohed teal, like the Urdu .crumbs */
.p-breadcrumbs > li, .p-breadcrumbs > li a { font-size: 14px; color: #3d7a75; }
.p-breadcrumbs > li > a:hover { background: transparent; color: #9e7d1a; text-decoration: none; }
.p-breadcrumbs > li:last-child a, .p-breadcrumbs > li:last-child, .p-breadcrumbs > li.is-current a { color: #1a5f5a; font-weight: 700; }
.p-breadcrumbs > li:after, .p-breadcrumbs > li::after { color: #c9a227; }
